blog.code-head.com
Programming « Web Development - Programming - Codehead
http://blog.code-head.com/category/programming
JQuery UI Dialog And The Enter - Return Key Problem. This is another post for my ‘Annoying Stuff’ collection and this one is very, so very annoying…. Assuming that you use the same syntax jQuery UI suggests to create your form, the fix is something like this:. Assuming the first one is the action button */. You might have to modify it a tiny bit, if that’s the case, you most likely have to change the part $(’.dialog’) so that it selects the right container that wraps the form…. Filed under: Annoying Stuff.
blog.code-head.com
PHP « Web Development - Programming - Codehead
http://blog.code-head.com/category/php
Script For Counting Number Of Lines Of Code In Your Website; Composite Design Pattern. This is another thread from our forums which we are closing down soon. This script will count the number of lines in all of your source files recursively. Just place it in any folder and point your browser to it and it will count all the lines including sub directories. You also have an option to exclude file extensions and directories. DIRECTORY SEPARATOR ,. Count lines (. Skipping File: { $file. Otal lines in { $this.
blog.code-head.com
onMouseOut fix on nested elements - JavaScript « Web Development - Programming - Codehead
http://blog.code-head.com/onmouseout-fix-on-nested-elements-javascript
OnMouseOut fix on nested elements - JavaScript. OnMouseOut fix on nested elements - JavaScript. When you have nested elements and you add an onMouseOut event handler to the parent element, browsers trigger onMouseOut event when mouse pointer hovers it’s child elements. While this is a standard behaviour, for one project I needed to write a code to override this behaviour. With this code, when you mouse over the child elements, onMouseOut event will be ignored. You can download this code here:. Marco on C...
blog.code-head.com
PHP MySQL Web Development Security Tips - 14 tips you should know when developing with PHP and MySQL « Web Development - Programming - Codehead
http://blog.code-head.com/php-mysql-web-development-security-tips-14-tips-you-should-know-when-developing-with-php-and-mysql
PHP MySQL Web Development Security Tips - 14 tips you. PHP MySQL Web Development Security Tips - 14 tips you should know when developing with PHP and MySQL. We are closing down our forums, it’s time to move on, but we are keeping some important threads, here are the AJAX tutorials. PHP MySQL Web Development Security Tips - 14 tips you should know when developing with PHP and MySQL. 1 Do not trust user input. Here is an example:. SELECT * FROM post WHERE id = $post id. PHPnet recommends this function: (we...
blog.code-head.com
I Know Which Tablet I Want « Web Development - Programming - Codehead
http://blog.code-head.com/i-know-which-tablet-i-want
I Know Which Tablet I Want. I Know Which Tablet I Want. OK, if you are an Apple fan, don’t be mad at me, I like Apple but I don’t like the spooky-dishonesty stuff…. To be honest, some Apple fans are kind of scary, have you ever seen their comments on YouTube or elsewhere? It’s like Apple is their religion and Steve Jobs is their profit, no wonder…. Anyways, things like this bother me a lot:. Which is a very cool chip; it has dual ARM Cortex 1GHz CPUs! I have a big laptop for work, but I have a little one...
blog.code-head.com
General « Web Development - Programming - Codehead
http://blog.code-head.com/category/general
1 - Did you know that there were only 300 years of peace on Earth in total? 2 - GPS satellites have atomic clocks that tick at around a few billion times per second, did you know that their clocks tick a little faster than the clocks on earth? This is what Albert Einstein predicted, clocks that are closer to a strong source of gravity tick slower! Http:/ en.wikipedia.org/wiki/Global Positioning System#Relativity. If you don’t believe me, listen to Buzz Aldrin talking about it:. I Know Which Tablet I Want.
blog.code-head.com
Web Development - Programming - Codehead
http://blog.code-head.com/page/2
Fatal error: Call to undefined method FacebookRestClient: users isAppAdded() - Updating An Old Facebook Application. If you get this error message after updating your Facebook library files:. Fatal error: Call to undefined method FacebookRestClient: users isAppAdded(). Try changing this code:. This will clear cookies for your application and redirect them to a login prompt. This will clear cookies for your application and redirect them to a login prompt. Posted by: Codehead on January 25, 2010. I left ou...
blog.code-head.com
Operating Systems « Web Development - Programming - Codehead
http://blog.code-head.com/category/operating-systems
I Know Which Tablet I Want. OK, if you are an Apple fan, don’t be mad at me, I like Apple but I don’t like the spooky-dishonesty stuff…. To be honest, some Apple fans are kind of scary, have you ever seen their comments on YouTube or elsewhere? It’s like Apple is their religion and Steve Jobs is their profit, no wonder…. Anyways, things like this bother me a lot:. 2 - Steve Jobs said that they designed the A4 chip “right here at Apple” but in reality it is a ARM Cortex chip! I Want An iPad. But seeing St...
blog.code-head.com
Web Browsers « Web Development - Programming - Codehead
http://blog.code-head.com/category/web-browsers
Document.getElementById On All Browsers - Cross browser getElementById. Here is a little JavaScript function that gets an object according to it’s id and it’s cross browser. Get an object, this function is cross browser * Usage: * var object = get object(element id); * @Author Hamid Alipour http:/ blog.code-head.com/ * /. Get object (. Posted by: Codehead on February 8, 2010. How to fix transparent PNGs in Internet Explorer. So here is the solution that works great:. Filed under: Annoying Stuff. It also ...
blog.code-head.com
Apple « Web Development - Programming - Codehead
http://blog.code-head.com/category/apple
I Know Which Tablet I Want. OK, if you are an Apple fan, don’t be mad at me, I like Apple but I don’t like the spooky-dishonesty stuff…. To be honest, some Apple fans are kind of scary, have you ever seen their comments on YouTube or elsewhere? It’s like Apple is their religion and Steve Jobs is their profit, no wonder…. Anyways, things like this bother me a lot:. 2 - Steve Jobs said that they designed the A4 chip “right here at Apple” but in reality it is a ARM Cortex chip! I Want An iPad - NOT! 2 - No ...