Dec
27
2010

Visual Basic Script Tutorial – else/if

visualbasic

The idea of elseif is to make an if statement within another if statement. Lets see what i mean : <script type=”text/vbscript”> arthackers.net arthackers= 60 If arthackers> 70 Then document.write(“Wear a T-Shirt!”) ElseIf arthackers> 60 Then document.write(“Wear please!”) ElseIf arthackers> 50 Then document.write(“O god! Wear a tshirt!”) Else document.write(“Take a coat!”) End If </script>

Dec
27
2010

All Windows cmd commands for beginners

windows-logo

ADDUSERS Add or list users to/from a CSV file ARP Address Resolution Protocol ASSOC Change file extension associations• ASSOCIAT One step file association ATTRIB Change file attributes b BOOTCFG Edit Windows boot settings BROWSTAT Get domain, browser and PDC info c CACLS Change file permissions CALL Call one batch program from another• CD Change Directory – move to a specific Folder• CHANGE Change Terminal Server Session properties CHKDSK Check Disk – check and repair disk [...]

Dec
27
2010

Objects in Python

images

Python functions have attributes, and that those attributes are available at runtime. A function, like everything else in Python, is an object.Once you import a module, you can reference any of its public functions, classes, or attributes. Modules can do this to access functionality in other modules, and you can do it in the IDE too. This is an important concept, and you’ll talk more about it later.Everything in Python is an object, and almost [...]

Dec
27
2010

Shorten Text or link / URL in PHP – script

php-logo language tutorials

Sometimes, when you want to display the URL on a web page, it can be so long it looks untidy and messes up your layout. Of course, you can come up with suitable text for a hyperlink instead of showing the URL, but what about when a user posts a web address to your web site? Here’s a little script that, can be integrated directly into your site. function shorten_link($link) { preg_match(“#<a(.*?)>(.*?)</a>#”,$link,$m); for($i = 1;$i<sizeof($m)-1;$i++) [...]

Dec
27
2010

Caps Control with PHP

php-logo language tutorials

When dealing with user input, you will often come across people who keep their Caps Lock key permanently enabled, which can make reading what they write difficult on the eye. It also looks like they are shouting. To solve the problem, we can writhe a simple PHP script which with different modes for case manipulation. function Convert($text,$mode=”") { if($mode == “ac”) return strtoupper($text); else if($mode == “al”) return strtolower($text); else if($mode == “cew”) { $text [...]

Dec
27
2010

Wrap Text in PHP

php-logo language tutorials

You can make text wrap in a browser in various ways, including using tables, iframes, and textareas, but sometimes you need absolute control over the wrapping in terms of the number of characters at which the wrap should occur, regardless of whether the user resizes their browser window. Using this plug-in, it’s easy to pass a string of text and have it wrapped using <br /> tags. What’s more it can also indent the start [...]

Dec
27
2010

Subroutines in Perl

perl

If you have written programs longer than one hundred lines or so, I don’t need to tell you how important it is to organize programs into subroutines. But for some reason, many Perl programmers seem to be allergic to them.I tend to use a lot of subroutines. In fact, when I start a new project, I usually write a subroutine with the same name as the program, and start the program by invoking it. sub [...]

Dec
27
2010

Errors in Perl

perl

What could possibly go wrong? Only three things: Compile-time error:  Perl compiles the entire program before it starts exe-cution. If there is a syntax error anywhere in the program, the compiler prints an error message and stops without attempting to run the program. Run-time error: If the program compiles successfully, it will start executing,but if anything goes wrong during execution, the run-time system prints an error message and stops the program. Semantic error: In some [...]

Dec
27
2010

How to execute Perl script

perl

There are several ways to execute a Perl program, but the most common is to put a “shebang” line at the beginning that tells the shell where to find the program called perl that compiles and executes Perl programs. #!/usr/bin/perl print @ARGV; The UNIX utility called echo takes any number of command-line arguments and prints them. Here is a perl program that does almost the same thing: print @ARGV; The program contains one print statement. [...]

Pages:«12345

Facebook Fans

Share Me With Google Plus!

Popular Posts

Social Bookmarking sites list 2012 - New and fresh bookmarking sites
Comments93
Bulgarian proxy or how to open arenabg and zamunda
Comments65
+ 150 New Free Directory Sites List 2012 - Sorted by Page Rank
Comments22
Scrapebox crack free download ?
Comments19
Great List With Google Plus / FB likes/ tweets exchange sites - Hot Topic
Comments16
How to make World Of Warcraft Cataclysm Server
Comments10
The Best Bulgarian Torrents - Listing
Comments9
500 Free Directory List 2011 !
Comments9
Free RSS Directory List Where To Submit Your Site
Comments9
Guest Blogs List and Useful Information
Comments8

Recent Posts

Calendar

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031