How to Fix Windows 7 Not Detecting Any Wireless Networks.

A few weeks ago my laptop running Windows 7 failed to detect any wireless networks after waking up from sleep. After a couple of reboots it suddenly worked until the next power or sleep cycle. Rebooting and hoping for the best wasn’t a viable option…

So how do you fix Windows not finding any wireless networks?


As it turns out, reinstalling the driver works (or at the very least it works for me every time). There might be an issue between the system and the driver.

Step 1: Open device manager (bring up the start menu (press the Win-key) and type device manager, open it) and expand the tree containing network devices. Right click on your wireless card and select uninstall.

wifi2Make sure not to delete the actual driver, because that will prohibit Windows from reinstalling the driver later on.

Step 2: Right click on Network Adapters and select Scan for Hardware Changes. Well, you can pretty much right click anywhere and select that option.

Step 3: Done! Your computer should now detect wireless networks like it should Connect to your wireless network! You might have to enter your wireless key again – I have to re-enter it every single time I do this procedure.


Hope that works for you!

How to Restore OwnCloud Password Without an Email

Forgetting your password can be tiresome, especially if you’re the (only) administrator. Owncloud allows you to reset your password via the user-supplied email address, but this does of course only work if you have an email associated with your account.

Furthermore, the system needs to have a mail server configured. Perhaps you don’t, because of some reason, want to have a mail server up and running.

So here’s how you reset your owncloud admin (or user) password the quick and dirty way.

NOTE: This worked for me, at the time of posting. Future versions might not work this way. Please do proper research before looking into my solution. I am in no way responsible for you breaking something. OK?

First, log in as root or make sure you have sudo access. Or at least make sure you are allowed to modify the owncloud files.

cd /var/www/owncloud/core/lostpassword

We will be modifying the password reset function, instead of going into the database. Please back your existing controller.php file up, and understand that you are going to be susceptible to hacking attempts while making the following modifications.

nano controller.php

We want to supply an email to the system by hard-coding it, and then print the password-reset URL to us. OwnCloud will then continue with its own procedures and attempt to mail the password to the email you provide. Essentially we’re printing the link you’re supposed to get via mail. If you leave this modification in place, anyone will be able to gain access to your OwnCloud!

Go to line 48 and on the line below insert (line 48 begins with $email)

$email = “your-email@domain.tld”; //Set email

Then go to line 53 and on the line below insert (line 53 begins with $link, and this is line 53 after you added the previous line.)

echo $link; //Print email reset link (DO NOT LEAVE THIS IN PLACE)

Now go to your OwnCloud, and try to log in. When it fails, click forgot password link, and then enter your username. You should see the password reset URL pop up. Copy, paste, and chose a new password.

Then, enter

nano controller.php

And remove the lines you just added! DO NOT LEAVE THEM IN PLACE.

I found this to be easier than to edit the database.


Configure SSH to Use Keyfiles Automatically

If you have multiple SSH-keys, perhaps a different one to each server, this can make your life a lot easier. Less typing is better.

Or perhaps you are configuring a remote git repository, or access through some other software.

Go ahead and

nano ~/.ssh/config

And add

IdentityFile ~.ssh/yourkey

Change the domain and filename of your key to the proper values.

Stop Apache2 from listening on port 80

I assume you have enabled SSL so the site is accessible via HTTPS.

Assuming you haven’t changed the configuration, go ahead and type

unlink /etc/apache2/sites-enabled/000-default

This would remove the symlink named 000-default, which points to the default vhost found in sites-available. If you have altered the config, make sure to remove any vhost listening on *:80.

This first step is kind of straight-forward. You want Apache2 to stop listening on port 80, you remove any vhost on that port. But that’s not all.

Open up ports.conf

nano /etc/apache2/ports.conf

Comment out (put # at the beginning of the line)

NameVirtualHost *:80
Listen 80

Go ahead and restart the web server and load the changes

service apache2 restart

Now Apache2 should listen on port 443, and 443 only.

Enable HTTPS on Apache2

This would be a quick way to enable HTTPS (SSL) on Apache2.

cd /etc/apache2/sites-enabled
ln -s 001-ssl ../sites-available/default-ssl
nano 001-ssl

Make sure that the vhost configuration is valid. By default it is configured to /var/www. You might want to have some other directory as your document root.

Then run

a2enmod ssl
service apache2 restart

Do leave a comment if you get any errors. Remember to use sudo if you do not have a root shell.

Find Big Files Wasting Your Disk Space With WinDirStat

Storage isn’t that much of a problem anymore, since storage capacity is cheap. But, then again, the files we store are a lot bigger today. And how are you supposed to find what files are hogging your storage space?

For finding a stray file, searching for an asterisk (“*”) and then sorting by size does the trick. No need for fancy software. But sometimes your need a little bit more power.

WinDirStat will, after analyzing your hard drive(s) give you some really useful information. Primarily, you will see a graphical representation of your space, allowing you to find large files in an instant. It will also allow you to see the size of any directory (which is the sum of its content).

You can see how much space every file type allocates. So you’ll be able to notice large amounts of small files as well. Go check WinDirStat out! (

There’s a Linux variant available as well.

iPhone 4 Dies Before 0% Battery

Some time ago my iPhone 4 died, claiming it was low on battery. Strange, I thought, because it reported 15% just a few minute earlier. So why would my iPhone discharge before the battery is drained?

Turns out the iPhone 4 (or any other model, perhaps) can at times report an incorrect amount of charge. Perhaps you’ve never fully charged the device, or perhaps a bug occurred.

Anyway, how do you fix the battery meter on the iPhone 4?

  1. Restart your iPhone.
  2. Then, you drain the battery. Let the phone discharge on its own, or speed it up by using it (i.e. playing a game).
  3. Let it sit for an hour or two. This is to make sure it’s empty.
  4. Start charging your iPhone, and be sure not to interrupt the charging
  5. Let it sit for an additional hour or two after it’s fully charged. This is to make sure it’s fully charged.

That’s it! Now your iPhone should be recalibrated and report the correct charge.

First time I’ve ever restored a laptop

My Asus laptop worked nicely, but I felt like trying Windows 8 on it. Said, and done. Windows 8 actually makes the laptop seem quicker, but it doesn’t perform as well in games.

I don’t know if it’s Microsoft’s or AMD’s fault, but at times the graphics card wouldn’t engage. The APU (my CPU can do GPU stuff with quite the performance) tries to keep up but obviously can’t keep up. When the card is in use, the crossfire solution gives me the strangest of errors, like black screens in 3D applications.

I’ve tried different drivers. The beta drivers available for download (somehow the non-beta drivers were harder to obtain) didn’t solve the issue, but at least it perform a little bit better. Still nowhere near Windows 7.

And for usability… every time I plugged in a screen via HDMI I had to do a hard reboot. The computer would simply not switch to the internal display again. An ordinary reboot didn’t work either.

So I decided to restore my laptop using those DVD images you get. Burning and restoring took an hour, which I thought was okay since we’re talking about 12GB of data. But of course that wasn’t the entire recovery…

Why ship an image when you can ship a complicated recovery system?

After removing the last DVD from the tray and rebooting, my laptop proceeded to configure itself. On occasion I would see a full Windows shell, with a text overlay of “… DO NOT OPERATE.”. I wonder what would’ve happened if I tried to mess things up at that point.

The amount of restarts needed in order for Asus to configure my system amazes me. And the time! Why did it take a couple of hours? Does it perform a full diagnostic as well? Installing Windows 7 from scratch would be faster.

But I was afraid doing so would leave me in the same graphics-broken state as before.

Aaaaaaand… done! All that remains now is to patch. This feels like the longest part. Slow download. Slow install. No automatic reboot. Slow shutdown. Slow boot. Done! More updates. And again. Done!

If you’re going to restore an Asus laptop, I’d recommend having at least 8 hours. It’s mostly an automated process and can be left unsupervised. The patching requires some clicking.

Time to check what gaming performance I’m getting now :3…