@media print not working – Solved

Internet

@media print not working? As soon as you want to print the website, all CSS expires? That can drive you crazy, but luckily we found the solution. @media print probably works, but your site doesn’t read the lines in your stylesheet because you locked out the stylesheet in print mode. How is that possible? Check how you call up the stylesheet. Most likely your HTML link will contain the following in the header of your page:

media=”screen”

The complete link will then look something like this:

<link href="style.css" rel="stylesheet" type="text/css" media="screen" />

You can include an @media print in the stylesheet with all the rules you want, but because you indicate in the HTML link that the entire stylesheet should only be opened when it concerns a screen and not a print or other version, the rule for the print, print preview or print to pdf will never be read.

@media print { The solution is simple

  1. create a separate stylesheet for the print styles;
  2. place a new link in the header of your page under the link that calls the other stylesheet and put the piece media=”print”

Just an example:

<link href="print.css" rel="stylesheet" type="text/css" media="print" />

Background colors

Background colors are often ignored by the browsers. You can use box shadow with inset as bypass for this:

box-shadow:  0 0 0 1000px rgba(236,236,236,1) inset;

!important

It is also possible that some rules are not included because, for example, you also have various style rules inline. These are then loaded later than your stylesheet for printing and thus have the last word. If you want to overrule this, you can use !important behind those lines.

Can you use coffee grounds twice?

Can you use coffee grounds several times? Can you make coffee 2 or more times with the same coffee grounds? That is the big question today!

A small cup of coffee

Imagine waking up in the morning, wanting to start the day relaxed with a good cup of coffee, but then your beans are finished and it’s Sunday and the shops really don’t open today. Dilemma. Because you also get visitors and they probably also want a nice cup of coffee.

Making coffee twice from coffee grounds?

Can you make coffee from already used coffee grounds? The answer is Yo (Yes and No)! Yes you can just throw water in your machine and a brown / black substance will come out. But whether you can call that coffee that remains to be seen. In any case, it won’t be espresso.

The whole point of the brewing process is to extract the oils and flavorful compounds from the coffee grounds. The methods we use (in terms of the amount of coffee grounds, the amount of water, and the methods of introducing the water onto the coffee grounds) are designed to maximize the amount of “coffee liquid” that we can obtain.

The amount of real coffee that we can get from a certain amount of ground coffee beans is limited. In addition, the ability of our machines to extract the coffee from the beans is not perfect. So when you repeat the process you will get colored water. But because you have already extracted most of the content from the ground beans. And because all the substances that were easiest to extract are of course already completely gone. Therefore, it only makes sense that your second pot will contain far less “coffee elements” after the same amount of effort.

In addition, not everything you can get out of the coffee grounds tastes good. So not only will your second pot of coffee have less “coffee” aroma, it will also have a more bitter taste.

 So, use coffee grounds twice?

So making coffee twice from the same coffee grounds is not recommended. But just try it once yourself and you will taste why. Maybe you like it very much. That of course saves you a lot of money ?.

The Reuse of leftover coffee grounds

Despite the fact that it is not advisable to brew coffee several times, you can still very well reuse coffee grounds for other purposes. Plants are very happy with it, for example, and neutralizing odors is also possible with your ground beans.

How do I Scroll parent page to top when child page is click within iframe?

Internet

With this piece of code you make sure that your Parent page scrolls up again when a visitor clicks on a link in your Iframe! Very useful for high Iframes!

When you use an Iframe and your visitor clicks on a link in this Iframe, the Parent page usually remains as it is. This is especially fine with small frames, but what if you have a large Iframe that actually needs to blend into the rest of your website?

Then you want the entire page to scroll up again when you click on a link at the bottom of the Iframe. By adding the code below to your Iframe you ensure that when a visitor clicks on a link, the entire page scrolls up again.

onload="window.parent.parent.scrollTo(0,0)"

The complete example could look like this:

<iframe onload="window.parent.parent.scrollTo(0,0)" style="width: 100%; height:2000px; border:3px solid black;  
     " src="jouw eigen pagina.nl" id="Iframe"></iframe> 

Car ticks when starting engine does not start

Why o why! Just when you need the trusty 4-wheeler, it does not start and it also makes a strange ticking sound when you turn the key and try to start.

As an A-technical figure, you immediately worry about the condition of your car and you can already see the downpour. An expensive garage will probably want to help you, but then you actually want to drive the car for so long and you should not orient yourself to other options.

But first take a look on the internet, because luckily auto and amateur mechanics are also good at writing forums about similar problems. And yes, not even a few minutes later you have the first questions and answers that are very similar to the situation! Top those forums and blogs!

Cause: An empty battery!

I was so relieved to find out that in this case it would most likely just be a dead battery. Because the voltage of the battery has become so low, the starter motor can no longer even crank the flywheel and you only hear the clicking of the relay.
The solution? Tadaa: Recharge that battery!

Jumper cables

Charging the car battery can of course be done with the well-known jumper cables, which you do not have around as standard as soon as something like this happens, so go to the store or immediately browse online, now that you are behind the computer.

Battery charger

In addition to jumper cables, you can also look at a jump starter or a battery charger / trickle charger. The latter is a box that you connect to the mains via a normal plug and the other cables connect to the battery. This way you can charge your car at home, you are not dependent on others and be the first to ask if your heavy diesel is a hybrid, great!

Jumpstarter

Now I can easily get everywhere in our village on foot and you don’t have to be in a hurry if you just adjust your priorities. If you have more time pressure and / or a bit more to spend, you can also look at the second option, the jump starter. That is actually jumper cables and auxiliary car in one. Where you have to be patient with a battery charger, you can immediately continue with the jump starter.

Freedom!

Having such a charger or jump starter always gives you the freedom that when such a situation arises, even in the middle of the night, you can act immediately. The prices are also not too bad. At the local car shop or hardware store you can get battery chargers from about € 30, – and a jump starter is already around € 100, – You can also get them online, for example at bol.com

And then… maybe replace the battery?

As soon as you have recharged the battery, you can simply hit the road again. Of course it is important that you check why your battery has run down and whether it may not be time to replace it.

Replacing a battery isn’t rocket science either. View the Voltage and Ampere on the old battery, order a new battery online and you can replace the battery. Usually no more than a few nuts and bolts loosen and then retighten. Pay attention to the order of connection. If you want to continue with the new battery for a long time, order one from a good brand such as Varta. Compare the best options online. For example, look at Bol.com or Amazon

How to view mbox files?

Internet

Okay, the problem is you have a lot of e-mail one day that you should delete to clean up you inbox and let you have more free space to work with. Making a backup isn’t the problem and the ‘big guys’ like Google, Microsoft and other main companies all give you tools to generate backup files. Which is great!

What is a .mbox file

Mbox files can contain your e-mail messages. All messages in an mbox file are concatenated and stored as plain text. This is a great way to backup and archive a large number of e-mail messages to a single file.

How to make the .mbox file readable again?

Now a couple of years later you need to extract a specific e-mail. Ha, you were smart, because you remembered the backup you made! The only problem is: “how do you make this .mbox file readable again?” This question took me a morning to figure out.

On the internet you will find all sorts of options and smart software packages to convert .mbox to .pts or readers that will give you access to the e-mails in your file. The main problem with most of them is that the trials won’t let you search or are limited to a specific number of e-mail. So if you need to unpack a large file, I recommend Thunderbird.

The best option? Thunderbird.

After a long search and trying a lot of software packages I came across Thunderbird, the e-mail software developed by Mozilla, the open source giant! If I had know this before, the whole process might have taken me 5 minutes.

Here is how to read .mbox files with Thinderbird:

  1. Download Thinderbird, https://www.thunderbird.net/nl/;
  2. Connect with one of your e-mail accounts;
  3. Go to MENU sign and select the Add-ons tab.
  4. Go To Extensions;
  5. Search for ImportExportTools NG and install the file.
  6. Now Restart Thinderbird;
  7. Place your cursor on one of your folders, like your inbox (or create a new one).
  8. Right click and select ImportExportTools NG > import mbox file.
  9. Now find the file or folder and let the tool do the work.

.mbox to .Pst converter

You could also try to convert the .mbox file to .pts so you can import the e-mails to your Microsoft Outlook. You can use:

  1. Softaken MBOX to PST Converter, https://www.softaken.com/nl/converteren-mbox-naar-pst
  2. Stellar Converter for MBOX, https://www.stellarinfo.com/blog/free-download-full-version-mbox-pst-converter/

Convert .MBOX files to Gmail

With The BitRecover MBOX to Gmail Wizard you can unpack the MBOX file and let the messages be imported to your Gmail account. Check https://www.bitrecover.com/mbox-to-gmail/

MBox Viewer

Rather like a quick access? You can try out one of the available MBOX viewers:

  1. SysTools MBOX Viewer, https://www.systoolsgroup.com/mbox-viewer-pro.html
  2. Kernel MBOX Vieuwer, https://www.kerneldatarecovery.com/mbox-viewer.html