What's Here?
- Members: 306,729
- Replies: 840,921
- Topics: 140,496
- Snippets: 4,465
- Tutorials: 1,165
- Total Online: 2,467
- Members: 138
- Guests: 2,329
|
's Contributions
|
Below are the tutorials, code snippets, and resources has submitted to dream.in.code. For more information on Kudos and contributing to dream.in.code visit: http://home.dreamincode.net/?p=about#kudos.
|
|
Tutorials
in (Last Comment: , Views: 6,211)
in (Last Comment: , Views: 17,785)
in (Last Comment: , Views: 3,622)
in (Last Comment: , Views: 1,243)
in (Last Comment: , Views: 2,371)
in (Last Comment: , Views: 482)
in (Last Comment: , Views: 10,606)
in (Last Comment: , Views: 1,537)
in (Last Comment: , Views: 828)
in (Last Comment: , Views: 4,788)
in (Last Comment: , Views: 4,255)
in (Last Comment: , Views: 8,794)
in (Last Comment: , Views: 6,042)
in (Last Comment: , Views: 8,484)
in (Last Comment: , Views: 12,495)
in (Last Comment: , Views: 5,651)
in (Last Comment: , Views: 5,291)
in (Last Comment: , Views: 2,910)
in (Last Comment: , Views: 21,918)
in (Last Comment: , Views: 8,631)
in (Last Comment: , Views: 5,485)
in (Last Comment: , Views: 1,282)
in (Last Comment: , Views: 6,464)
in (Last Comment: , Views: 4,438)
in (Last Comment: , Views: 4,207)
in (Last Comment: , Views: 10,459)
in (Last Comment: , Views: 7,331)
in (Last Comment: , Views: 2,374)
in (Last Comment: , Views: 1,526)
|
|
Code Snippets
|
 |
|
|
Submitted: January 15, 2008
Views: 2334
Use /dev/audio as a functioning alarm clock
|
|
|
 |
|
|
Submitted: September 13, 2007
Views: 918
Use this in a loop when the char values will stay the same, but you need the decimal to increment.
|
|
|
 |
|
|
Submitted: January 25, 2008
Views: 2190
This function calculaties the days between two dates (Ymd)
For example, if $datum1 = 20071215 and $datum2 = 20081215, the output will be 366
|
|
|
 |
|
|
Submitted: July 18, 2007
Views: 2650
Alter the MAC address for your Network Interface Card.
|
|
|
 |
|
|
Submitted: May 21, 2007
Views: 2951
A windows dll file that will change the proxy server in the registry (for IE).
|
|
|
 |
|
|
Submitted: June 28, 2007
Views: 1344
Change the mouse cursor using only css
|
|
|
 |
|
|
Submitted: March 5, 2009
Views: 903
Check the MAC address of the router in your arp tables, to check for arp cach poisoning (aka MiTM).
|
|
|
 |
|
|
Submitted: October 15, 2007
Views: 637
This script will check for a defined process & tell log if it finds that the process is not running. It will also make an attempt to auto start the process. This may need to be changed for services other than httpd. You could also add an option to use sendmail to notify you of the outage.
|
|
|
 |
|
|
Submitted: October 27, 2008
Views: 1119
Use this code to perform on-the-fly status updates for both local & remote servers.
|
|
|
 |
|
|
Submitted: July 29, 2007
Views: 2100
Command line utility for Windows. If no options are used, it simply shows you what processes are running & the size of heap used. After you see what is running, supply a process name & it will obtain it's process ID & kill the process, freeing the memory heap.
|
|
|
 |
|
|
Submitted: October 12, 2007
Views: 5642
|
|
|
 |
|
|
Submitted: April 15, 2009
Views: 584
Read the CPU ID bit and output to the display
|
|
|
 |
|
|
Submitted: October 18, 2007
Views: 970
Construct the current date for a logfile
|
|
|
 |
|
|
Submitted: June 25, 2007
Views: 1371
This code snippet shows you how to use Java's built in Date functionality.
|
|
|
 |
|
|
Submitted: January 2, 2008
Views: 2017
|
|
|
 |
|
|
Submitted: October 15, 2007
Views: 3574
Example usage of the $_SERVER['HTTP_USER_AGENT'] variable, use it to detect the ie web browser, for ie specific code such as css gotchas.
|
|
|
 |
|
|
Submitted: October 7, 2008
Views: 987
MASM code to detect version of Windows
|
|
|
 |
|
|
Submitted: November 8, 2007
Views: 1729
Use the Linux shell to try to detect, then eject the cdrom.
|
|
|
 |
|
|
Submitted: February 21, 2008
Views: 1342
Use pre-processor defines to use the code correct for the OS that the code is compiled on.
|
|
|
 |
|
|
Submitted: November 2, 2007
Views: 1065
Use JavaScript to detect & display the current URL
|
|
|
 |
|
|
Submitted: October 31, 2007
Views: 1986
Use character attributes such as bold, underline, blinking, colors, ect, ect, on the DOS command line interface.
|
|
|
 |
|
|
Submitted: July 25, 2007
Views: 793
This script runs tests on all files in the current directory (skipping . & ..) & gives some results on those tests.
|
|
|
 |
|
|
Submitted: October 12, 2007
Views: 1851
Standard way to retrieve the size of a file.
|
|
|
 |
|
|
Submitted: October 12, 2007
Views: 780
This snippet uses File::stat to retrieve the size of the file.
|
|
|
 |
|
|
Submitted: July 31, 2007
Views: 746
Use the sub function to create a looping menu.
|
|
|
 |
|
|
Submitted: February 27, 2009
Views: 1587
Using css, you can point the individual options to the class type/name for the effect you want them to have.
|
|
|
 |
|
|
Submitted: May 25, 2007
Views: 10451
Assemble a DLL in ASM (MASM32) & load it into your CPP program. You can then access the functions written in ASM, inside your CPP program.
|
|
|
 |
|
|
Submitted: February 17, 2008
Views: 644
this code will search for the file extension inside of multiple directories from the current directory.
|
|
|
 |
|
|
Submitted: October 12, 2007
Views: 682
Use of md5 to create 128-bit hash value
|
|
|
 |
|
|
Submitted: October 16, 2007
Views: 538
Add this snippet to your perl script, & you can feed files via command line.
It will give the md5 results on each file passed in.
|
|
|
 |
|
|
Submitted: December 18, 2007
Views: 639
Don't leave your passwords laying around for others to find. MD5 has them into a database (or other storage) & compare the results.
|
|
|
 |
|
|
Submitted: July 1, 2008
Views: 1192
Since MSSQL does not offer the describe command, it can be frustrating digging through the columns. Maybe this can help!
Found at http://www.crydust.be/blog/2006/12/26/mssql-lacks-describe-statement : and added constraint_type
|
|
|
 |
|
|
Submitted: October 18, 2007
Views: 1028
This snippet will allow you to use more than one button & check for the results with PHP Post variables.
|
|
|
 |
|
|
Submitted: September 5, 2009
Views: 166
Get the name of the person currently signed onto a Windows system, through the registry.
|
|
|
 |
|
|
Submitted: June 12, 2007
Views: 1157
A number guessing game.
|
|
|
 |
|
|
Submitted: April 15, 2008
Views: 941
Ounces to grams conversion
|
|
|
 |
|
|
Submitted: May 22, 2007
Views: 2633
Pass the return value from one exe to another program.
|
|
|
 |
|
|
Submitted: August 27, 2007
Views: 743
Get results similar to https://www.tdnam.com/trpHome.aspx?t=4 by using the css strikeout style.
|
|
|
 |
|
|
Submitted: February 8, 2009
Views: 780
Feed input text to your favorite (selected) search engine.
|
|
|
 |
|
|
Submitted: July 25, 2007
Views: 1237
Insult your visitors
|
|
|
 |
|
|
Submitted: June 5, 2008
Views: 1129
Generates & then evaluates random values & then uses those values as the arguments for tput as well as the colors for the foreground & background of the text.
|
|
|
 |
|
|
Submitted: October 9, 2007
Views: 778
Read a file, display the results
|
|
|
 |
|
|
Submitted: July 20, 2009
Views: 302
This code snippet will fill a declared buffer of input text from the user, & then output that message with a portion of predefined text.
|
|
|
 |
|
|
Submitted: July 12, 2007
Views: 1145
Show your ip, compares it to what it may have used to be.
|
|
|
 |
|
|
Submitted: July 26, 2007
Views: 2684
This script uses the split command to split a string into an array & then reverses the order of the array elements.
|
|
|
 |
|
|
Submitted: March 10, 2008
Views: 1672
Use the JavaScript event self.close() to close the current Web Browser inside of a styled button.
|
|
|
 |
|
|
Submitted: May 24, 2009
Views: 406
|
|
|
 |
|
|
Submitted: June 28, 2007
Views: 851
Using the .profile to create easy to use aliases.
|
|
|
 |
|
|
Submitted: August 21, 2007
Views: 1380
I got tired of looking through php.net referances for $_SERVER variables.
This will dump everything!
|
|
|
 |
|
|
Submitted: May 18, 2007
Views: 1825
The original code I wrote this program for, was used on my laptop that ran slackware 9.1. I wrote it to print off reciepts & end of day sales reports on my HP Laster Jet 4 while selling computer equipment on the road at computer shows.
|
|
|
 |
|
|
Submitted: May 18, 2007
Views: 1358
A re-write of my store program (you can find it in C code snippets) into Java.
It currently does not print however =-(
I have ran this on both Slackware 10.1 & Windows XP.
|
|
|
 |
|
|
Submitted: February 28, 2008
Views: 1323
This will create a table border on the outside only, & the inner text/images will not have the border around each item.
|
|
|
 |
|
|
Submitted: January 21, 2008
Views: 787
Use loops to do all of the grunt work in making tables.
|
|
|
 |
|
|
Submitted: May 30, 2008
Views: 925
Throw this script into your xwindows menu & at the click of a button you can have a screenshot ready for the next screenshots post!
|
|
|
 |
|
|
Submitted: October 18, 2007
Views: 716
Subroutine to Remove whitespace from the start and end of a string.
|
|
|
 |
|
|
Submitted: February 16, 2009
Views: 407
Although very simple, this is a commonly overlooked or unthought of usage for php. Often I see a site that uses php, but has an out of date copyright for their code.
|
|
|
 |
|
|
Submitted: May 25, 2007
Views: 1249
Tracks hits for your web site, as well as rebuilds the html for the next hit to be displayed. So when your site is viewed, you have pure text out put, not a jpg or gif.
|
|
|
 |
|
|
Submitted: October 9, 2007
Views: 622
Write text, or a list of files into a log file, using perl!
|
|
|
| |