Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 428 429 430 431 432 ... 552
Assuming your DataSet (named, ds) is already populated with Data and contains only one table.
0 2614 posted 17 years ago by blackf0rk
It's important that the newPn var that you pass into the Convert.ToInt64 function is in the xxxxxxxxxx format and that no characters are present.
1 2861 posted 17 years ago by blackf0rk
Passing in a seed and your string will return an encrypted string. Pass in the same seed and the encrypted string again and it will return the original unencrypted string.
1 2299 posted 17 years ago by blackf0rk
If you need to get the HTML from a Web page to rip it, process it, and/or display it in the way you want, the following function will work for you.
0 2223 posted 17 years ago by blackf0rk
This function will parse out the Google Maps coordinates from a Google Maps link url like this one: http://maps.google.com/?ie=UTF8&ll=43.068888,-87.978516&spn=23.565589,33.925781&t=h&z=5. The coordinates in this URL are 43.068888,-87.978516.
0 2842 posted 17 years ago by blackf0rk
0 1790 posted 17 years ago by smoover
Connects to a web page, reads in the content and strips whitespace.
2 2255 posted 17 years ago by gdvickery
A nice example of utilizing Groovy closures in order to create a when statement in Groovy (http://www.transentia.com.au/flatpress/?x=entry:entry090311-222726).
0 2206 posted 17 years ago by narkisr
1 1675 posted 17 years ago by muhammet
Adding a namespace to an event can make it easier to unbind. It is very easy to unbind all events with the same namespace.
1 2088 posted 17 years ago by 1man
Never used the index() method in jQuery but could be useful to know. Find a selected elements index when you click on it. Note the $('ul#mylist') inside the index method, gives the search some context of where to look for .selected, saves looking thr...
1 2099 posted 17 years ago by 1man
jquery ui/tabs initiation ensures screenreaders can focus content when selecting tabs. Tested using Jaws 8.
3 1689 posted 17 years ago by terrencewood
0 1736 posted 17 years ago by timstepp
Just add this in script tags in your Affiliate Center footer:
0 1582 posted 17 years ago by kickjoel
3 2701 posted 17 years ago by jamesming
5 2334 posted 17 years ago by jamesming
0 1860 posted 17 years ago by hlubek
This is how you can connect SQL Server to a Share folder for your backups. After running this, you will see the letter T: in the GUI. Each line must be run seperatly.
0 2230 posted 17 years ago by pollusb
This function simply takes a Windows UTC timestamp and converts it to Unix epoch. This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since Janua...
0 2179 posted 17 years ago by cllorca
This script will also work on any spreadsheet program like Google Docs.
0 1879 posted 17 years ago by pollusb
0 1756 posted 17 years ago by muhammet
Bourne Shell Script (created on a FreeBSD_7.1-RELEASE system :-)
0 1701 posted 17 years ago by hackware
Serializes any <serializable/> object and writes it to the specified location on the disk. Example: Dim obj As DataTable 'save obj to disk SerializeToFile(filepath, obj) 'to read it back, use DirectCast Dim obj2 As DataTable = DirectCast(...
0 2102 posted 17 years ago by chavcho
Use this to extract an image embedded as a resource in your project. Call the function supplying the full path to the resource, for example: Dim myImage as Bitmap = EmbeddedIcon("MyApplication1.myImage.png") Where "MyApplication1" is the root n...
0 2110 posted 17 years ago by chavcho
1 ... 428 429 430 431 432 ... 552