Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 466 467 468 469 470 ... 552
It's easy to find the categories used on one item, but find all categories NOT used on current item? This snippet stores a "NOT IN" query. This is used with PHP & mySQL. The query can be written differently on other databases, but this seems to w...
0 1889 posted 17 years ago by stavelin
Word Cut Function
2 1656 posted 17 years ago by gfazioli
Borrowed from Ajaxian, url is above.
0 1842 posted 17 years ago by mikegreen
https://www.chrisjmendez.com/2008/09/21/jquery-ensure-that-at-least-one-checkbox-is-selected/
4 2037 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/08/09/python-basic-feedparser-example/
1 2239 posted 17 years ago by chrisaiv
secure and stable
1 1250 posted 18 years ago by leferreyra
0 2051 posted 18 years ago by ezerick
Example: ln -s /usr/local/apache/logs ./logs
3 2937 posted 18 years ago by jonhenshaw
Creates a MySQL table with all 50 states + Washington D.C. in alphabetical order.
1 1661 posted 18 years ago by simplistik
For user-friendly animations on hover event. Prevents repeating animations when hovering object many many times. Example needs "jquery.color" plugin for color animations. But you can use any animations you want.
0 1825 posted 18 years ago by DesTincT
Sniff and disable Firebug. Not sure why you'd need it though. Firebug is just great.
4 1897 posted 18 years ago by zerolab
This example shows how to clone an object from an existing one by using MOP in Groovy, first we find all the writable properties of the cloned object class, secondly we traverse them and on each iteration we copy the value from the current object i...
2 2933 posted 18 years ago by narkisr
Tracy from FlexCoders advises against using lastResult. This property is intended for use in binding expressions, and you cannot depend on its value when you access it in AS code (though it usually works). Note that if you ever decide to use bi...
0 1568 posted 18 years ago by nextstep
Nothing amazing here, just an efficient way to get the first row. Be sure to set your ORDER BY clause properly.
0 2512 posted 18 years ago by stews
I often need to know if a record exists in a table. This method is probably the most efficient. Too many people don't use the exceptions that Oracle provides, which is a shame. I think I got it from Tom Kyte's site? Or Steven Feuerstein?
0 4234 posted 18 years ago by stews
This compares selected columns between 2 tables that you think might have differences. It lists the rows and values that are different between the two sources You can add WHERE clauses as appropriate. You could also use this to compare the resul...
0 4557 posted 18 years ago by stews
I can never remember the syntax on the "FOR UPDATE OF" clause!
0 4025 posted 18 years ago by stews
0 1492 posted 18 years ago by djiao
Remove *.LCK for any other extension you want to remove.
0 2152 posted 18 years ago by luizlopes
0 1668 posted 18 years ago by Anthony
1 2098 posted 18 years ago by tonic
Basic web.xml setup for using Spring MVC, Sitemesh, and Hibernate (using hibernate filter for lazy loading)
2 2216 posted 18 years ago by jcblitz
1 ... 466 467 468 469 470 ... 552