Web Development

How to edit and test javascript / jquery online

Ever hear of jsFiddle? Try it – it’s a really cool tool to use for developing javascript and even sharing your code by just passing a URL. Here’s a simple example: http://jsfiddle.net/r7MgY/. Add your HTML, CSS, and Javascript; hit run at the very top, and see the executed result. Now since they are in Alpha [...]

Share

How to add Drupal data to Javascript using drupal_add_js

There are times when one will need to pass Drupal data in Javascript or JQuery. One example that comes to mind is for analytics purposes, say after a user clicks on a specific link, you’d want to find the node type of the page the user made this click. In your .tpl.php, template.php file or [...]

Share

A tool to automate your tests for web applications

I recently went to a Google session for testing code – the speaker mentioned Selenium as a great software to use for recording and testing web-based applications.  Not only is it a tool, it’s an IDE (Integrated Development Environment) – where you can record your actions, edit the code, and re-run.  I haven’t used it [...]

Share

Take website snapshots on a timely interval

I’ve been having a strange occurrence of a website going down for a minute or two well into the early part of the morning – let’s say about 2 AM.  Since the hosting provider doesn’t really help me understand why this happens (since no alerts are being sent), I wanted a way to learn a [...]

Share

php session_start() issues for php captcha

I was going nuts (banging my head on my desk) because I just couldn’t figure out why session variables weren’t being stored after submitting a form with php captcha (http://www.phpcaptcha.org).  I looked through the settings, http headers, check my validation code, almost everything just for a simple form to submit after a user enters the [...]

Share

full-text index issue in mysql 5

I was having issues with full-text index using MySQL 5.  Basically, on one host I would see results with the same query but not on another host. Here is the sample query I used: SELECT * from table_name WHERE MATCH(Description, Title) AGAINST (‘yes” IN BOOLEAN MODE) AND title like ‘%yes%’ ; Because the length of [...]

Share

Free code editors

*update* This question comes up many times, do you know of any HTML software or text to HTML software I can download online for free?  Well, I usually use Dreamweaver, but since this costs money, I figure I’ll ask this to my web friends.  I came up with the best one: NotePad ++ Here are [...]

Share