Quick Tip: How to Restart a Windows machine through CMD

Open a Command Prompt Window (CMD) and execute the following command:

shutdown -t 0 -r -f

This command is really handy when you manage your Windows Server or PC through remote desktop and you need to reboot it.

Note:

In Windows, the shutdown button/menu is contextual by design, which means if you are in remote desktop mode, the menu will hide all of the (Restart, Log off, Sleep, Shutdown…) options and will only show a “Disconnect” option.

I personally think that it was designed this way to eliminate the human error of restarting or shutting down an important server…

You Might Not Need jQuery

Check out this website: http://YouMightNotNeedjQuery.com/

jQuery and its cousins are great, and by all means use them if it makes it easier to develop your application.

If you’re developing a library on the other hand, please take a moment to consider if you actually need jQuery as a dependency. Maybe you can include a few lines of utility code, and forgo the requirement. If you’re only targeting more modern browsers, you might not need anything more than what the browser ships with.

At the very least, make sure you know what jQuery is doing for you, and what it’s not. Some developers believe that jQuery is protecting us from a great demon of browser incompatibility when, in truth, post-IE8, browsers are pretty easy to deal with on their own.

Tip: How to fix Spotify “Not Responding”/Freezing issue in Windows 8

I’ve been trying to use Spotify since I moved to Ireland (in Jan 2013) with no luck…

Once I launch the app on my windows 8, it freezes after ~20 seconds and enters a “Not Responding” state, not only that, also the “spotify.exe” process in the windows task manager could not be killed, it keeps showing an "access denied" error message.

I did a quick search online for a solution with no luck, so I left it for a later time.

Today I wanted to listen to some new songs while working so I remembered this issue and traced it out to fix it.

I tried to reinstall the app twice, and the sound card driver… also a lot of things with no luck.

I have a Virtual Machine running windows 8 too so I installed it on the VM and it worked perfectly, so it seems that this issue is happening because of a change that I’ve made to my windows environment, anyway, after hours of the investigation, I believe that I finally found the solution! :)

The Solution:

Disable the Internet Sharing feature on your Network Adapters.

How to Disable Internet Sharing?

  1. Go to the “Network Connections” section in your control panel
    • Quick Tip: simply copy ncpa.cpl hit the “Windows Key” and press “CTRL+V” to paste it in the search box then hit the “Enter” key.
  2. Select a network connection and Right click on it > Properties
  3. In the properties windows find the “Sharing” tab and uncheck the option “Allow other network users to connect through this computer’s internet connection” then hit the “OK” button to save your changes.
  4. Repeat from Step #2 for all of your network connections if needed.
  5. Run Spotify and Enjoy! :)

image

Harlemify.com: Let any website do the Harlem Shake!

It has been a while since I developed a website, and I have seen the youtube’s “do the harlem shake” website trick and it inspired me to build Harlemify.com website just for fun…

Check it out http://www.harlemify.com/ … and let any website do the Harlem Shake! :)

and if you liked it, Share it!

Featured on:

Wamda: