Category Archives: windows

the easiest way to install #NodeJS and #NPM on #Windows10

Using OneGet, I’ll tell you how to install #NodeJS in 3 easy steps on powershell.

  1. open powershell:
    Run (Window + R) > powershell.
  2. install #Chocolatety provider:
    get-packageprovider -name chocolatey
  3. install #NodeJS
    install-package nodejs

 

#OneGet, the hidden package manager on windows 10

If you are a Linux user, you will probably be familiar with APT-GET the applications package manager.

On windows, I have been using similar pm called “#Chocolatey” but since I upgraded to windows10, I discovered a new way to manage my packages through a new set of powershell cmdlets under a new module called #OneGet.

#OneGet is a package manager for package mangers. you can add package managers to it and manage all your packages though same set of cmdlets.

3056-oneget_2d00_architecture

Here is how it works:

hit powershell (Win+R > and write “powershell”) and follow the post and write these commands.

 

  • Find all package managers: Get-PackageProvider
PS C:\WINDOWS\system32> Get-PackageProvider

Name Version DynamicOptions
---- ------- --------------
NuGet 2.8.5.127 {Destination, SkipDependencies, ContinueOnFailure, ExcludeVersion...}
msi 10.0.10240.16384 {AdditionalArguments}
msu 10.0.10240.16384 {}
Programs 10.0.10240.16384 {IncludeWindowsInstaller, IncludeSystemComponent}
PSModule 1.0.0.0 {PackageManagementProvider, Location, InstallUpdate, InstallationPolicy...}

 

  • install #Choclatety: Get-PackageProvider -name chocolatey
PS C:\Users\Alaa> Get-PackageProvider -name chocolatey

The provider 'chocolatey v2.8.5.130' is not installed.
chocolatey may be manually downloaded from https://az818661.vo.msecnd.net/providers/ChocolateyPrototype-2.8.5.130.exe and installed.
Would you like PackageManagement to automatically download and install 'chocolatey' now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y

Name Version DynamicOptions
---- ------- --------------
Chocolatey 2.8.5.130 {SkipDependencies, ContinueOnFailure, ExcludeVersion, ForceX86...}

 

installing your first package “Google Chrome”: install-package googlechrome

PS C:\WINDOWS\system32> install-package googlechrome

The package(s) come from a package source that is not marked as trusted.
Are you sure you want to install software from 'chocolatey'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y



and voila,
Your machine is now have Chrome installed without googling and looking for installers online.

How to install windows 8 on VHD file and boot from it

Today I have installed windows 8 beside windows 7 on my laptop in a VHD file..
Here is a STEP by STEP Guide to what I have done.

Intro:

There are several ways to install multi OSs,
the easiest way is to simply install the 2nd OS from inside the 1st one on another partition BUT there is a chance for any of them to mess with the other one’s files ..
another way is to install the 2nd one inside virtual machine using virtual PC/VM ware or any other VM Software BUT this won’t give us full hardware performance on the guest machine …
SO
In order to get full hardware access and performance … and don’t let any OS mess with the other.. We will install the OS on VHD file and boot from it.


Prerequisite:

  1. Download “Windows 8″ iso file
    Download it from this link http://msdn.microsoft.com/en-us/windows/apps/br229516 OR here is a link for Windows 8 Developer Preview with developer tools English, 64-bit (x64)
  2.  Download Windows 7 USB/DVD download tool from this link (this is a tool by MS to make bootable Flashdisk or DVD out of ISO files, Released for users who purchase windows online from windows store)
  3. Get a 8.5 Double layer DVD or 16 GB Flash disk


Steps:

  1. Creating Bootable Flashdisk / DVD
    • start installing Windows 7 USB/DVD download tool
    • in the installation process you will pass throught four steps
      • First: Selecting ISO File (select the ISO file u just downloaded in the prerequisists)
      • Second: Choose DVD or USB Device , the media you want to put the installation files on.
      • Third: Select the Flash memory partition OR the DVD Drive.
      • Fourth: Wait for Formatting / installation on your media (~10 minutes)
  2. Making a VHD – Virtual Hard Disk – File
    • Open up CMD -commmand prompet- with Admin Preveligde
    • Run MS diskPart tool by writing “diskpart” and hit enter
    • create a VHD File on the windows by the following command
      DISKPART> create vdisk file=d:\Windows8Dev.vhd type=expandable maximum=50000
      Note:  your can change “d:\Windows8Dev.vhd” to your preferred directory and 50000 to a diffrenet size (but not less than 30000 -30GB-)
    • select the VHD you just created
      DISKPART> select vdisk file=d:\Windows8Dev.vhd
    •  Now attach that VHD to windows
      DISKPART> attach vdisk
    • Create a primary partition on it
      DISKPART> create partition primary 
  3. Booting from Flash memory / DVD and Proceed to the installtion process of windows 8
    • Restart your computer and change your boot order to the flashdisk/dvd
    • once you computer starts installing windows 8, Press SHIFT + F10, you will get a CMD window
    • Write the 2 commands commands of selecting and attaching the vhd
      DISKPART> select vdisk file=d:\Windows8Dev.vhd
      DISKPART>attach vdisk
    • Once you reach the Partition selection window “Where do you want to install windows ?”
      You will find another Disk with 1 partition in the partitions list (with the size you have made in the first step)
    • Choose that partition, and proceed the normal installation process of windows.
  4. Finally..
    • After installation process, you will find a boot menu consists of 2 items “Windows Developer Preview” and “Windows 7”
    • inside windows 8 there is an extra partition C, this is the emulated partition of VHD
    • inside windows 7: your normal partitions without any extras, the file at d:\Windows8Dev.vhd will be about ~10 GB at first installation.

Remap your acer TravelMate 8472 notebook keyboard

If you have ACER’s I5 TravelMate 8472

with the annoying $ & € keys beside up arrow key,

and it always happen to click it accidentally when clicking left arrow or right arrow.

I have made a registry file that will remap your $ to be right arrow and € to left arrow.
Download link: http://www.4shared.com/file/Wj24_NTW/Remapping_DollarSign_to_RightA.html

After downloading..
Run the file, then restart your computer 🙂

Enjoy ^_^

RIP my laptop-keyboard’s letter-A (Remapping KB)

Extremely sad news .. at age 3 and half, the letter A of my laptop-keyboard is dead =(

 

–Me, my laptop, the keyboard and every single gadget in my room are extremely sad =(
We are gonna miss u letter A =D

=============================================================

How could possibly I live without letter A !! , that’s not possible for sure 🙂 SO, lets have a little solution:

Remapping Keyboard letters:

Having useless keyboard buttons -Never used before by u-.. and sometimes u don’t know even what is the role of it ! (ex. scroll , located beside delete).
for me CAPS LOCK is not just a useless button but also annoying sometime cuz i accidentally click on it while chatting or even worse while typing a password =S.
I used to disable CAPS LOCK to avoid this problem, but now I’ll swap it to work instead of letter A. .. and that will need some registry tweaks.


so let’s open the Registry Editor by typing regedit in the run dialog.
then scroll down to:
= HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout =
You have to have a Scancode Map entry for a key remapping..
so create a REG_BINARY entry called Scancode Map with the following value:
00 00 00 00 00 00 00 00 02 00 00 00 1e 00 3a 00 00 00 00 00

[                       1                          ][           2           ][     3   ][   4     ][         5            ]

1 & 5. 
represents Null space value.
2.
the length of data you want to change.
3.
the letter you want to change to (remap to it) Letter A .
4.
the letter you want to change from (remap from it) CAPS LOCK .

so in order to just disable CAPS LOCK, all you need to do is just putting [00 00] instead of [3a 00] in part 3.

 

Now save your newly added key, and restart your computer and enjoy disabled useless caps lock button.

0000000000000000020000001e003a0000000000

how to disable DST in Microsoft windows

first: windows seven:

Click on the Date/Time area at the bottom right to open date/time settings
Date/Time
Click on Change date and time settings
Change date and time settings
Click Change Time Zone
Change Time Zone
Choose Cairo from the Time zone drop down menu and ensure that ‘Automatically adjust clock for Daylight Saving Time‘ is unchecked
Cairo
Press OK to apply the new changes

second: windows XP:

WindowsXP
Double click on the Date/Time area at the bottom right to open date/time settings
Date/Time
Click on the Time Zone tab
Time Zone tab
Ensure that the time zone is ‘GMT+02:00 Cairo’
Change Time Zone
Disable the check box ‘Automatically adjust clock for daylight saving changes
Cairo
Press OK to apply the new changes
thanks 🙂
P.S: I took these images from Microsoft Egypt email 🙂

All .EXE files open windows media center – windows7 virus

Two days ago, one of my friends called me for help in windows 7 problem .. when ever he opens a “.EXE” executable file he got ‘windows media center’ opened !

When i started to tell him what to do, I realized that its not possible to open rstrui or msconfig or even the task manager cuz all are executable LOL ..

I thought it could be a registry problem, and guess what regedit is also an executable file =D .. so I opened my registryEditor and started digging … and here is what i found :

the .exe file Extension in locates in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\

but we still can’t change anything in his computer because we can’t run the registry editor =D .. so I created this .reg file that hopefully saved him .. http://www.4shared.com/file/0LaqiLZj/exeFix.html
 
Hope this helps if anyone else have the same problem 🙂