Saturday, December 10, 2011

schedule automatic start for an application

Suppose i want to run a program say vidalia at system startup only on some specific time and day.
eg: 1. From Monday to Friday only when PC is started after 6 pm.
      2. On Saturday and Sunday everytime PC is started.
The following batch file program can do it...

@echo off
IF %date:~0,3% EQU Sat goto yes
IF %date:~0,3% EQU Sun goto yes
IF %TIME% GTR 18:06:26.00 goto yes
IF %TIME% LSS 08:00:00.00 goto yes
:no
exit
:yes
Start /D D:\softwares\Internet\Proxy\"Tor Browser"\ D:\softwares\Internet\Proxy\"Tor Browser"\"Start Tor Browser.exe"
exit

Sunday, October 23, 2011

FIX .jar extension default application for Java

After installing some software which change the default application for .jar file it becomes difficult to restore the previous state.It can be fixed as described below:
Create a .reg file following content and then run the file:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jar]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jar\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jar\OpenWithProgids]
"WinRAR"=hex(0):
"jarfile"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jar\UserChoice]
"Progid"="jarfile"

Tuesday, October 11, 2011

UPDATE INTERNET DOWNLOAD MANAGER (IDM) ADDON

After updating Firefox, generally the older version of idm addon doesn't work and it is disabled by the firefox.One solution is to update the addon from here.

Saturday, October 8, 2011

Mark all Unread mails in gmail as Read

  1. Go to your Settings/Filters page and create a new filter.
  2. In the Has the words field enter “is:unread” (without quotes), and click the Next Step button.
  3. You’ll get a message warning you that this type of filter won’t be applied to new mail, but that’s OK.  Click OK to continue.
  4. Check the boxes next to Mark as read and Also apply filter to … conversations below.
  5. Click Create Filter button, and you’re done.  You should delete the filter once you finish since it won’t be needed anymore.

Change Login Screen in Fedora 14

Code:

su
(provide the root password)
cp /usr/share/backgrounds/laughlin/default/wide/laughlin.png /usr/share/backgrounds/laughlin/default/wide/laughlin.png.original
cp /usr/share/backgrounds/laughlin/default/standard/laughlin.png /usr/share/backgrounds/laughlin/default/standard/laughlin.png.original
cp /usr/share/backgrounds/laughlin/default/normalish/laughlin.png /usr/share/backgrounds/laughlin/default/normalish/laughlin.png.original
cp /current/file/location/filename1.png /usr/share/backgrounds/laughlin/default/wide/laughlin.png
cp /current/file/location/filename2.png /usr/share/backgrounds/laughlin/default/standard/laughlin.png
cp /current/file/location/filename3.png /usr/share/backgrounds/laughlin/default/normalish/laughlin.png


Note: filename1,filename2,filename3 can be a single file or different files with different dimensions according to the requirement.

Auto mount drives in Fedora

Open a gnome-terminal window and type
su
(provide the root password)

Code:
cd /usr/share/polkit-1/actions && cp -p org.freedesktop.udisks.policy org.freedesktop.udisks.policy_original

(it is always advisable to save the original copy of any configuration file before modifying it).

Next, still as a superuser, open in a text editor following file

/usr/share/polkit-1/actions/org.freedesktop.udisks.policy


and find the block of text containing the line:

    <description>Mount a system-internal device</description>

On Fedora 14, this is the third block from the top (the first is the header, the second is the «Mount a device» block). A few lines below in the same block you will find the line:

      <allow_active>auth_admin_keep</allow_active>

Modify it as follows:

      <allow_active>yes</allow_active>

Save the changed file and exit the editor.

The change takes effect immediately: no need to log out or reboot.

Run CMD Commands Through C program

Here  is the required format of the C program;
#include<windows.h>

void main()
{
 system("cmd.exe /c <command> ");
}

Thursday, October 6, 2011

Tracking the Location of An Email Sender

Sometimes it seems essential to track the location of the person who send you an email. To find if the email came from a genuine sender or not… To get some of the background details or the GEO details of the person.

In Gmail or any other email client, when a person send you an email, there is always more information at your disposal then actually that is on surface. To know more information, we need to dive into an email header. Along side the Reply button there is a dropdown option of Show Original. When you click this an original message with all details and email header is shown to you.

In this header text of email (CTRL + F) the text Received: from . It is of utmost importance to know the details of sender. In front of this field the public IP address or the smtp address of the sender is mentioned. The IP address is mentioned like [ xxx.xxx.xxx.xxx].


After you have this public IP address of sender, you can now actually do a Reverse IP lookup or a Reverse Email Lookup.

Below are some of the tools to do this lookup:



  1. Visual Trace route Tool : This tool helps you do that and much more visually http://www.yougetsignal.com/tools/visual-tracert/. You just need to enter the IP address mentioned in square brackets. It will then show you each and every IP address and locations through which the Email has traversed on map.
  2. Facebook : You can also track the sender by doing reverse email lookup in facebook. Just type in the email ID of sender in facebook search and if you are lucky you will find his/her profile page.
  3. IP2Location : This is a webapp for tracking the info like Country, State, City, Latitude, Longitude and ISP
  4. GEOBytes : Its also a Reverse IP lookup program that get many useful pieces of information from the IP location.
Apart from these ways you can also search for sender’s email address in google search. From there you may find person’s social profiles, websites and many other thing

Wednesday, October 5, 2011

Vidalia Proxy error in Fedora.

After installing Viadalia Fedora it seen that the proxy "127.0.0.1:8118" doestnot work
The main reason is that the proxy application polipo don't run automatically in Fedora.
Polipo has to be configured manually as follows:
1.Replace the content of file "/etc/polipo/config"  with this.

2.Open the Settings window of Vidalia
3.In the General tab enable the checkbox to start a proxy application when Tor starts.
4.Add following line in the space provided
    /usr/bin/polipo
5.In Proxy Application Arguments: add following line
    -c "/etc/polipo/config"

6.Done

NS2 Installation on Fedora 15

1.Before your ns-2 installation following packages must be already installed:
(Type these commands in terminal)
yum install tcl-devel
yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install libXmu-devel


2.Some errors Encountered in Installation with solutions:

.1 Errors relating to GammaRandomVariable.
solution:
Following files need to be edited(in Fedora) for successful installation.
 1.    ~/ns-allinone-2.34/ns-2.34/mobile/nakagami.cc

   In line number 183 replace-
     resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value();
     with    resultPower = ErlangRandomVariable(Pr/m, int_m).value();
       
    In line number 185 replace-
      resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value();
      with    resultPower = GammaRandomVariable(m, Pr/m).value();

 2.   ~/ns-allinone-2.34/ns-2.34/tools/ranvar.cc
       
   In line number 219 replace-
   return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);
  with   return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);

2. Error with following lines:
mac/mac-802_Ext.h:In member function 'u_int32_t PHY_MIBExt::getHdrLen11()':
mac/mac-802_Ext.h:175:19: error: expected primary-expression before 'srtuct'
mac/mac-802_Ext.h:175:41: error: 'dh_body' was not declared in this scope
mac/mac-802_Ext.h:175:51: error: 'offsetof' was not declared in this scope
mac/mac-802_Ext.h:177:3: warning: control reaches end of non-void function [-Wreturn-type]

Solution:

Include the header file "stddef.h" in  the file ~/ns-allinone-2.34/ns-2.34/mac/mac-802_11Ext.h


3. error while loading shared libraries: libotcl.so: cannot open shared object file: No such file or directory

Solution:
The environment variables need to be set. An example is as shown (edit Path according to your system)
export PATH=$PATH:/home/unicorn/ns-allinone-2.34/bin:/home/unicorn/ns-allinone-2.34/tcl8.4.18/unix:/home/unicorn/ns-allinone-2.34/tk8.4.18/unix

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/unicorn/ns-allinone-2.34/otcl-1.13:/home/unicorn/ns-allinone-2.34/lib:/home/unicorn/ns-allinone-2.34/tk8.4.18/unix:/home/unicorn/ns-allinone-2.34/tcl8.4.18/unix/

export TCL_LIBRARY=$TCL_LIBRARY:/home/unicorn/ns-allinone-2.34/tcl8.4.18/library

Sunday, October 2, 2011

Enable Incompatible Add-Ons in Firefox

  1. Open Firefox.
  2. In the Address field, type about:config and hit Enter.
  3. Click on the disclaimer “I’ll be careful, I promise” button.
  4. Right-click and from the menu, select New and right after that Boolean.
  5. A new, small window will appear on your screen.  Type in extensions.checkCompatibility.5.0 if you have Firefox 5.0. (Replace 5.0 by your version of Firefox).
  6. Click OK.
  7. When prompted select False and click OK.
  8. Restart your browser for the changes to take effect.
  9. Run and execute your old, incompatible  addons!

Saturday, September 24, 2011

HIDE FILES IN A IMAGE

1.Add all required files to be hidden in a .rar file (eg secret.rar).
2.Select an image under which the files are to be hidden.
3.keep both files in the same folder.
4. Open command prompt and browse to the folder containing above files.
5. type the following command
copy /b myimage.jpg + secret.rar myimage.jpg
here  myimage is name of the image under which files are hidden and secret.rar is .rar file
mentioned earlier.

Wednesday, September 21, 2011

BATCH TRICK

If a batch file is created with the same name as the command used
in the batch file it may not give desired results by executing recursively.

Tuesday, September 20, 2011

Run Ipmsg through cmd

Use the following command.
start "" "C:\Program Files\IPMsg\ipmsg.exe" /MSG /SEAL 10.0.8.34 HIII

Sunday, September 18, 2011

Mediafire Download Manager

Download files from  mediafire with resume capability and also captcha recognition
use Mipony.

Saturday, September 17, 2011

Tuesday, September 13, 2011

NO Mouse

To oprate PC without mouse and tuchpaid press
shift+alt+numlock then use 8 to up 6 to right 4 to left 2 to down its realy work

Kill Process through CMD

You can at last get rid of tasks on the computer from the command line by using ‘taskkill /pid‘ and the task number, or just ‘tskill’ and the process number.
Find that out by typing ‘tasklist’, which will also tell you a lot about what’s going on in your system.

Make an Undeleatable folder

1. Open CMD.
2. Change the directory to where you want to create the folder.Type 'cd..' to exit the current directory. As an example i will be creating the folder in C:, so i will use the 'cd..' command twice to navigate to C:

3. Type md\lpt1\\ and press enter, the folder now will be in your C:
4. If you try to delete it, it wont delete. This works on all version of windows.

5. If you want to delete it just go to 'CMD', navigate to the directory and type
rd\lpt1\\ and press Enter.

super account in vista

Deep inside the bowels of Windows Vista, there’s a secret Administrator account, and it’s different from the normal administrator account you most likely have set up on your PC. This Administrator account is not part of the Administrator group.It’s a kind of superadministrator, akin to the root account in Unix, and by default it’s turned off and hidden. (In describing this article, i’ll always use the capital “A” for the secret Administrator account, and a lowercase “a” for a normal administrator account.)

In versions of Windows before Windows Vista, the Administrator account wasn’t hidden, and many people used it as their main or only account. This Administrator account had full rights over the computer.

In Windows Vista, Microsoft changed that. In Vista, the Administrator account is not subject to UAC, but normal administrator accounts are. So the Administrator can make any changes to the system and will see no UAC prompts.

Turning on the Administrator account is straightforward. First, open command prompt by typing cmd into the run box on the Start menu, or by right-clicking the command prompt icon that appears at the top of the Start menu, then selecting Run as administrator.

Then enter this command and press Enter:

Net user administrator /active:yes

From now on, the Administrator account will appear as an option on the Welcome screen, along with any user accounts you may have set up. Use it like any other account. Be aware that it won’t have a password yet, so it’s a good idea to set a password for it.

If you want to disable the account and hide it, enter this command at an elevated command prompt and press Enter:

Net user administrator /active:no

Improve the speed & load time of firefox

This tricks will improve the speed & load time of firefox. And you will be able to surf faster.

Open Firefox and type about:config in the address bar, Then look for the following entries, and make the corresponding changes.

• network.http.max-connections-per-server =32

• network.http.max-persistent-connections-per-proxy =16

• network.http.max-connections = 64

• network.http.max-persistent-connections-per-server = 10

• network.http.pipelining = true

• network.http.pipelining.maxrequests = 200

• network.http.request.max-start-delay = 0

• network.http.proxy.pipelining = true

• network.http.proxy.version = 1.0


Lastly right-click anywhere and select New -> Integer. Name it nglayout.initialpaint.delay and set its value to 0. This value is the amount of time the
 browser waits before it acts on information it recieves.

Enjoy !!!

Saturday, September 10, 2011

Pr0xy s/w ports

Proxy softwares with setting
1. Freegate            127.0.0.1:8580.
2. UltraSurf            127.0.0.1:9666.
3. GTunnel             127.0.0.1:8081.
4. Tor                      127.0.0.1:8118
5. GappProxy         127.0.0.1:8000
6. Hyk-proxy           127.0.0.1:48100
7. Your Freedom    127.0.0.1:8080
8. GPass                127.0.0.1:8000
9. Tunnelier            127.0.0.1:7070

Tuesday, September 6, 2011

Fix the launch manager e button in Acer for windows 7

1.open notepad and type the following :
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Compal\LManager\Settings\unicorn\Buttons]

[HKEY_CURRENT_USER\Software\Compal\LManager\Settings\unicorn\Buttons\P1]
"Command 0"="1;dropper;<path to the application to be launch>"
"Command Count"="1"
"Current Command"="0"


2. save the file with .reg extension.

3.Run the file and now we are done.

4.Press Big e button  to launch the application

Install media codecs in Fedora 15

Step 1:  Add the RPMFusion repository to Fedora

Open a terminal and run the following command -
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free
/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfu
sion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'

Step 2: Install the gstreamer restricted plugins

Open a terminal and run the following command -

su -c 'yum -y install gstreamer-plugins-bad-free gstreamer-ffmpeg gstream
er-plugins-bad gstreamer-plugins-ugly'

Configure TCP/IP from the Command Prompt

Use the following command to change the static ip address, subnet mask and default gateway:

netsh interface ip set address name="Local Area Connection" static <ipaddress> <subnet mask> <default gateway>


example : netsh interface ip set address name="Local Area Connection" static 10.0.8.34 255.255.255.0 10.0.8.1
                changes ip address to 10.0.8.34, subnet mask to 255.255.255.0. and default gateway to 10.0.8.1
Note: Command Prompt must be run with administrative privileges.

Saturday, September 3, 2011

Reset Linux Password

Here is the step by step guide to recover forgotten Linux password :
1.In the Grub bootloader screen Select Fedora and press 'e'.
2.Select line something like "kernel /vmlinux..."  ending with "quiet" or "quiet splash" and press 'e'.
3. Keep a blank space and the append '1'.
4.Press 'b' (or "CTRL +b" in case of Ubuntu) to boot.
5.We will get root account logged in.
6.Now type "passwd username"  to change the password of user "username".
7.To change the password of root account simply type passwd and press enter.

Saturday, August 27, 2011

Fix .exe opening through other application Problem

Often computer get infected by some malacious program which makes all the .exe files to be opened through any
other application like Internet Explorer or Media center etc. This can be easily fixed through the following
steps:

1. Type regedit in the run menu.
2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\UserChoice
3. Delete the Folder UserChoice
4. Quit regedit and we are done.
5. Restart your PC to get the default icons.

Recover Fedora Using Fedora DVD

Generally after reinstallation of windows the bootloader of fedora get hidden and we are not able to boot Fedora. Here are the steps to recover Fedora:
1. Insert the Fedora DVD and boot from it.
2. Select the rescue previous installation menu.
3.  Answer the questions about keyboard and language.
4. Tell the rescue mode to use your proper partition to mount (the one that you want to get booted into)
5.In the console prompt type chroot /mnt/sysimage.
6. Type nano /boot/grub/grub.conf   
7. Note the partition for Linux.
8. Type grub
9. Type root (hd0,<Linux partition index noted earlier>)
10. Type find /boot/grub/stage1    (Optional)
11. Type setup(hd0)
12. Now quit the console prompt and restart your PC.