Pages

Thursday, 20 November 2014

WAMP server!! MSVCR110.dll Error!! WINDOWS 8.1!! Solved :)

In this post i will explain you why MSVCR110.DLL error occurs in windows while installing wamp server

Mistake that n00bs make while downloading wamp server 

while we click to download wamp server in their official website a pop-up appears!! basically this pop-up has two downloading links 



1.) Link to download wamp server
2.) Link to microsoft official website from where we have to download microsoft redistributable file !! n00bs forget to complete this step and thats why they face a simple problem i.e. MSVCR110.dll

I have made a video for this tutorial and uploaded it on YouTube....



 Thank you!! 

Create Aliases in Windows!!

Hey!! guys i like to share this pretty cool knowledge with you that we can also create aliases in windows as we create in linux .... in windows we call it DOS key!!

DOSKEY  (Wikipedia crap :p)

               
DOSKEY is a utility for DOS and Microsoft Windows that adds command history, macro functionality, and improved editing features to the command line interpreters COMMAND.COM and CMD.EXE. It was included as a TSR program with MS-DOS and PC DOS versions 5 and later, Windows 9x and Windows XP or later.
In early 1989 functionality similar to DOSKEY was introduced with DR-DOS 3.40 with its HISTORY CONFIG.SYS directive. This enabled a user-configurable console input history buffer and recall as well as pattern search functionality on console driver level, that is, fully integrated into the operating system and transparent to running applications. In summer 1991 DOSKEY was introduced in MS-DOS/PC DOS 5.0 in order to provide some of the same functionality. DOSKEY also added a macro expansion facility, which, however, required special support to be implemented in applications like command line processors before they can take advantage of it. Starting with Novell DOS 7 in 1993 the macro capabilities were provided by an external DOSKEY command as well. In order to also emulate DOSKEY's history buffer functionality under DR-DOS, the DR-DOS DOSKEY works as a frontend to the resident history buffer functionality, which remained part of the kernel in DR-DOS.
In current Windows NT-based operating systems DOSKEY's functionality is built into CMD.EXE, although the DOSKEY command is still used to change its operation.

Practical Work 

In this pic i wanna make a short and simple alias for sublime text as you can see i made it using the following command

doskey s1 = sublime_text.exe $* 

and thats it ... remember i have sublime_text.exe file in my environment path variable 
so now instead of typing the whole bullshit(i.e sublime_text) i just have to enter the alias that i have setted in the particular command prompt

Problem 

The main problem is that if the close the session or can say when you close the cmd you doskey setup is lost :( :(  and it will not work in other command prompt

Dont be sad i have a solution for it

Solution 

 1.) Create a new folder in the c:\windows directory called bin.
 2.) Run notepad as Administrator.
 3.) Enter the following command in it

 @echo off
@doskey sl = sublime_text $*

4.) Now save the file as doskey.bat in the c:\windows\bin folder that we actually created
5.) press control + r and run box will open
6.) type regedit in the run box and hit enter
7.) search for HKEY_CURRENT_USER\Software\Microsoft\Command Processor
8.) Add a new String Value called AutoRun and set the absolute path in the value of c:\windows\bin\doskey.bat.



The doskey.bat file will now be executed before opening a new cmd session which will set all of your alias ready for you to use.

Now i have alias for windows same that i used in linux environment

Thanks for giving your valueable time in reading this post
Thank you !!

Thursday, 24 July 2014

Compile C, C++ Directly from command prompt

Today i'm gonna compile C and C++ codes directly through command prompt of windows operating system !! lets start :) 

First of all download  CODEBLOCKS IDE from here -- www.codeblocks.org  
Basically codeblocks is an Integrated Development Environment aka IDE
just install it on your system !!
then press the windows button and search for "Environment variable" and go for the second option that says "Edit the system environment variable" hit on that option !!
following window will pop-up on your screen --

now next thing you have to do is click on the environment variable :)
following window will pop-up --

Now under the system variable section scroll for variable "PATH" like this --
now double click on the path following edit system variable window will pop-up --
Click at the end of address bar in Variable value. now put there a semicolon (;)
here u have to add a address follow this following steps to paste the address

1.) Open your C drive where the files of your operating system are placed.
2.) Go into your program files look for "codeblocks" folder which we have earlier installed.
3.) Go into the codeblocks folder and then search for "MinGW" folder go into it.
4.) Go into the "BIN" folder thats it
5.)  See at the top at address bar and right click on the address bar and copy the address like this ..

Again come to the Edit variable system and paste the address after semicolon like this --
click ok and save the settings :)

Now open your text editor .. like Notepad(It Sucks, Please dont use it) , Notepad++(Awesome) or Sublime text(Awesome, recommended)

Type your C++ code Like this
Save it wherever u want(in this explanation i will save it on the desktop) and then open the command prompt
And then navigate to the directory with "cd" and "dir"
like this

now we have found our C++ code then we have to compile it to produce a executable file
for compilation of a C++ code use the following Commands
"g++ -o helloworld helloworld.cpp"
In case of C programming Use "gcc -o helloworld helloworld.c"
lets see what happens ..

 


You Can see in command prompt that a helloworld.exe file is created just type the name of the executable file i.e helloworld in command prompt and the file will be executed :) and your C++ or C source code is compiled as well as executed like this

Thanks for giving your valuable time on reading this post :)  Happy Programming!!

Sunday, 22 June 2014

Recover Missing Unallocated Space On USB Drive Using Windows DiskPart !!

Many of you guys faced a problem with a bootable usb .. first you made a bootable usb of linux to dual boot your pc !! but when you tried to format your pendrive a space of about 4 gb(depending on the size of your linux .iso file ) gets invisible .. Now i will show you how to recover that missing unallocated space on usb drive ..

Follow this simple steps : --

1.) Open Command Prompt.
2.) Type diskpart
3.) Now type list disk

you will see the following picture


4.) Now type a simple command :- select disk 2 
     As here Disk 2 is my pendrive it can be seen by the size 
5.) Now type command :-  clean
6.) Then finally type the command:- Create Partition Primary

you will see the following picture


7.) Now search for disk managment and a window will appear like this ..


8.)If your disk is unallocated make it allocated and format it ..  

Your Problem is solved !! Thanks for reading 

Saturday, 26 April 2014

Browse Websites in Offline mode 


Hi guys i am back this time with a cool stuff. Suppose you are browsing a website to learn something like webdevelopment from http://www.w3schools.com . Everytime you open the webpage it takes a lot of data..  also suppose another case you are going to someplace where you are disconnected from internet world .. so how you can browse this websites offline .... i will show you

Follow the  simple steps :-  

1.) Go to this website = > http://www.httrack.com/



2.) Then click on the download button :)
3.) Download the software i.e HTTrack website copier
4.)Install it and run it ..
5.) If you are accessing internet through proxy dont forget to enter the ip address and port
6.) Now enter the URL of the website you want to download
7) After that the HTTrack do its work like this ...


8.) Then it will save your files for offline browsing ..!!

Basically the software download all the files of the website and stores it in your HDD and link all the files in your HDD so that you can do offline browsing !!

Thanks for reading :)

Friday, 28 March 2014

Hack: A New Programming Language Invented by Facebook


Hack is a programming language for the HipHop Virtual Machine (HHVM) invented by Facebook. It was introduced on March 20, 2014. Before the announcement of the new programming language, Facebook had already implemented the code and tested it on a large portion of Facebook’s site. Over the last year, they have migrated their entire PHP codebase to Hack.
Hack has deep roots in PHP. In fact, most PHP files are already valid Hack files. Many new features are added to it that helps make developers more productive. The language is open source.



Q.) What is HipHop Virtual Machine ??
=> HHVM is an open source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.

for more information about hack language go to this link


=>> An open source version of Hack is released to the public at http://hacklang.org/ as part of HHVM runtime platform, which will now support both Hack and PHP.

Thursday, 6 March 2014

(#6)HOW TO DOWNLOAD TORRENT ON INTERNET WHEN BITTORRENT CLIENTS ARE BLOCKED





Friends today i m going to tell you how to download torrent when software's like utorrent are blocked on your INTERNET connection...

There are mainly two websites which provides us the facility to download torrent



I recommend you to use the second website (i.e. https://filestream.me/) as it provides good downloading speed.