Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A database table is basically an array of dictionary objects. As long
as all the fields are valid property list types, you can loop through
the array creating a managed object for each dictionary and setting
the values. If you have an array con...
2
2571
posted 18 years ago by zingo
The setTimeout ensures that if there is an issue attaching the link to the bottom of the head (e.g. if the head hasn’t finished loading when the link is trying to be attached) it retries after 100ms. Resetting the css variable to null avoids potent...
1
2683
posted 18 years ago by natalie
How to check if a number is odd or even in PHP. Could also use the MOD (%) function, but apparently this method is better performance-wise.
12
3832
posted 18 years ago by andyhartleeds
-nd do not create a hierarchy of directories (save all recursively retrieved files in the current directory)
-r recursive retrieving
-l1 set maximum recursion depth to 1 (stay in that folder): set to 2 if necessary
--no-parent do not...
3
2704
posted 18 years ago by iblis
If you set the NSObjCMessageLoggingEnabled environment variable to "YES", the Objective-C runtime will log all dispatched Objective-C messages to a file named /tmp/msgSends-.
0
1878
posted 18 years ago by zingo
Drupal snippet: outputs all theming variables of a content type or page. Add to template.php the following function:
function _phptemplate_variables($hook, $vars) {
return array('vars_data' => $vars);
}
then add the snippet to the relativ...
5
3115
posted 18 years ago by marcoba
You can also check other kind of perms changing the constant os.R_OK
0
1947
posted 18 years ago by arcturus
This is as small as this can go:
'xs:dateTime(sql:variable("@stringDate"))'
It needs to be a literal string for the Value() function.
Xml Datatype
http://msdn2.microsoft.com/en-us/library/ms189887.aspx
Sql:Variable() Function
http://ms...
0
2502
posted 18 years ago by rengber
Good info here too: http://www.ilisys.com.au/support/linux-password-protect/
2
3482
posted 18 years ago by jonhenshaw