http://www.dafont.com/font.php?file=bitstream_vera_mono
Very readable!
eKini: Web Developer BlogPHP, MySQL, Javascript, MVC, Zend Framework, AJAX, jQuery Javascript Framework, Graphics and Design
talking about...AJAX apache Apple Arts blogs Business and Economy cheatsheet Code Igniter css Entertainment excel Firefox Games General Google Graphics Health Hobbies Humour Internet java Javascript Jobs jquery Legal Battles Linux Mac Movies Music MySQL News and Media Personal Philippines philweavers PHP Politics Random Recreation and Sports Ruby on Rails Science Sex Society and Culture symfony Technology Tourist Attractions in Philippines training tutorials Web Development yahoo Zend Framework http://www.dafont.com/font.php?file=bitstream_vera_mono Very readable! Get number of hours between 2 timezonesFiled Under (General) by Wenbert on 21-02-2008Tagged Under : PHP, timezoneHere is a way to get the number of hours between two different timezones. I am sure that there is a way of doing it shorter and faster, but I did it this way for readability purposes.
List of suported timezones in PHP can be found here: Hightlight a table row on click using jQueryFiled Under (General) by Wenbert on 19-02-2008Tagged Under : html, Javascript, jqueryThe scenario: Every time you click on a row, the row highlights. When you click on the highlighted row - remove the highlight.
And for the HTML Code:
How to filter database inserts - HTML, Usernames, etc. in Zend FramworkFiled Under (General) by Wenbert on 15-02-2008Tagged Under : MySQL, PHP, Zend FrameworkI woke up today thinking about how to handle strings when inserting to MySQL. What if the string I am trying to save into the database contains HTML characters? Let’s say you are using FCKEditor, how would you “generally” handle strings to be inserted into your database? Because when I think of it, I don’t have a quick answer. I have to test it around until satisfied with the output. If I am too strict of what to save — then I would have problems outputting the HTML into the browser. Tables would be messed up and form elements would not work. So, how do you filter different kinds of data to be inserted into MySQL using Zend Framework? Kinds of data as in:
Update rows in Table A from values of Table B in MySQLFiled Under (General) by Wenbert on 14-02-2008Tagged Under : MySQLSometimes, we need to update values of tables from the values from another table. Here is an example:
Cron job examples for newbiesFiled Under (General) by Wenbert on 12-02-2008Tagged Under : cron, LinuxHere are a few examples from this site. 01 * * * * root echo "This command is run at one min past every hour" 17 8 * * * root echo "This command is run daily at 8:17 am" 17 20 * * * root echo "This command is run daily at 8:17 pm" 00 4 * * 0 root echo "This command is run at 4 am every Sunday" * 4 * * Sun root echo "So is this" 42 4 1 * * root echo "This command is run 4:42 am every 1st of the month" 01 * 19 07 * root echo "This command is run hourly on the 19th of July" Do a “crontab -e” on the shell. If you don’t have permission, try “sudo crontab -e”. It should open up Vi. What is the safest way to do database queries in Zend Framework?Filed Under (General) by Wenbert on 12-02-2008Tagged Under : MySQL, Zend FrameworkI have no idea. You tell me. All I do is this:
Please share your thoughts below. jQuery: Select all options in a Multiple-option Select BoxFiled Under (General) by Wenbert on 04-02-2008Tagged Under : Code Igniter, Javascript, jqueryAlright, here is a quick example of how to use jQuery to select all of the items in a multiple-option select box.
//Javascript part assuming that you have already included jquery.js in your header
$(document).ready(function() {
$("#select_all_col_managers").click(function() {
$("#col_manager_list").each(function(){
$("#col_manager_list option").attr("selected","selected"); });
}) ;
$("#unselect_all_col_managers").click(function() {
$("#col_manager_list").each(function(){
$("#col_manager_list option").removeAttr("selected"); });
}) ;
});
and now for the HTML part…
Filter by Collection Manager:
< select class="select_multiple" id="col_manager_list" multiple="multiple" name="RTCLMG[]">
< option>Must Select One
< option> value="< ?=$value['col_manager']?>">< ?=$value['col_manager']?> < / select>
< a href="#" id="select_all_col_managers">Select All< / a>
< a href=”#” id=”unselect_all_col_managers”>Unselect All< / a>
Please note that I am using Code Igniter with this. All the Cheatsheets for Web Development in da World!Filed Under (General) by Wenbert on 02-02-2008Tagged Under : cheatsheet, Web DevelopmentA few weeks back, someone sent me an email. Hi, We just posted an article “The Cheat Sheet Cheat Sheet: Top 100 Lists of Web Development Cheat Sheets “ ( http://www.virtualhosting.com/blog/2008/the-cheat-sheet-cheat-sheet-top-100-lists-of-web-development-cheat-sheets/ )I thought I’d bring it to your attention just in case you think your readers would find it interesting. Either way, thanks for your time!
Why I hate Code Igniter (and why ZF FTW!)Filed Under (General) by Wenbert on 01-02-2008Tagged Under : Code Igniter, Zend FrameworkHere is a snippet from my code…
While in my other method, i have this…
|
|