Archive for Web Development

JavaScript – The easiest way to clean-up your JavaScript code

// July 28th, 2010 // No Comments » // JavaScript

You can use any desktop tool to clean-up and beautify that poorly formated JavaScript you got from a blog or web resource.

I my case I am working on a JavaScript based event calendar that displays a calendar and highlights the current date with the dates which have events associated with them.

I got this great event calendar thats totally based on JavaScript from this link and it was not formatted correctly.  As I had to make a few adjustments to the code as for my needs, I needed it to be correctly formatted so I could work on it.

So here is how I cleaned that minimized code. Its probably the best and fastest way of doing it.  I opened up this website http://jsbeautifier.org/ and pasted my javascript code that needed to be cleaned up for editing and just a click on Beautify  and Voila, my code is clean and beautiful.

Don’t firget visiting back for another JavaScript tip tomorrow. Also if you found this tip useful, you may also find the follwing Tip useful too.

Adding an pure JavaScript event calendar to your site.

JavaScript – Adding an pure JavaScript event calendar to your site.

// July 28th, 2010 // No Comments » // JavaScript

You may find this tutorial very useful if you are looking for a way to do a simple event calendar on your site with no dependency on server side scripting.

Please check this simple and elegant way of adding an event calendar on your site.

PHP: Text cropping with defining the number of characters, words or sentences

// March 18th, 2009 // 2 Comments » // PHP, PHP Tips, Web Development

I have recently been working on PHP RSS reader script that was supposed to do three different things with RSS description text. To make a teaser RSS text, I was asked to develop the functionality in a such a way that text can be cropped in these three ways.

  • with defining the number of words.
  • with defining the numbers of characters.
  • with defining the number of sentences.

Here is a set of functions that helps you crop a text in three different ways. The usage of the function is also mentioned at the end f the script. (more…)

How to make sure your PHP RSS feed reader doesn’t mess up

// March 18th, 2009 // No Comments » // PHP, PHP Tips, Web Development

I was recently working on a custom RSS feed reader where the prior most concern of the client was being able to crop the text with respect to the

  1. Number of words.
  2. Numbers of characters.
  3. Number of sentences. (more…)

I am on home page of oDesk, feels great

// March 17th, 2009 // 1 Comment » // PHP, Portfolio, Web Development, Wordpress

Hi guys

I am feeling good right now. Have been working on oDesk from Feb 17, 2009. And its good you get paid on hourly basis. I like oDesk the most among freelancing sites I have worked on. Anyhow, I took a few screen shots to show you that I was once featured on home page on oDesk.

(more…)

We don’t mind if you code all night.

// September 11th, 2008 // No Comments » // News, Web Development

They are starting Yahoo Hack Day again. They call it, “The hack is back!. Do you want to request an invite to Open Hack 2008, September 12-13? Sign up at www.hackday.org. Hope you can join us at Yahoo! HQ in Sunnyvale. We don’t mind if you code all night. ” (more…)

Convert date formats between PHP and MySQL (mm/dd/yyyy to yyyy-mm-dd)

// September 8th, 2008 // 1 Comment » // CodeIgniter, PHP, Web Development

I have a view in HWC where I am using Javascript DHTML date picker script to pick the date and insert into test field. By the way HWC is the PHP-MVC (using codeigniter) application I am working on.

Date Picker in dhtml/Javascript

Date Picker in dhtml/Javascript

(more…)

Codeigniter – Clean URLs – Apache mod rewrite : Removing /index.php/ from URL in CodeIgniter Application

// August 22nd, 2008 // 8 Comments » // Articles, CodeIgniter, Frameworks, PHP, Web Development

OK readers, here is a simple method to achieve clean urls with your PHP application developed in CodeIgniter.

Please note that this method is applicable only to applications developed in CodeIgniter. Much of the content has been taken from CodeIgniter wiki but rewritten in my own way. (more…)

Nasheed Resourse my latest work

// March 30th, 2008 // No Comments » // Eid-ul-Adha, Eid-ul-Fitr, Eid/ Ead, Music, Videos, Web 2.0, Web Development, You Tube

Hello buddies. I have developed a new website in love and appreciation of my Favorite Nasheed Artists like Sami Yusuf,Shaikh Hamza Yusuf, Yusuf Islam (Yousaf Islam) and many others. Just check it for yourself. The best part is you can download the videos too. I will be looking forward to your suggestions to improve it. But it should be positive criticism and for the sake of improvement. I am really looking forward for such a feedback.

Islamic Nasheeds videos on  NasheedResource.com [Your Ultimate online resouce for videos related to Nasheeds. Searching Youtube, Metacafe, yahoo, google videos in a single click] on  NasheedResource.com [Your Ultimate online resouce for videos related to Nasheeds. Searching Youtube, Metacafe, yahoo, google videos in a single click]

WordPress Plugin: Get recent posts within a dynamic wordpress content page or post from 2 different categories

// March 15th, 2008 // No Comments » // Blogging Engines, Open Source, PHP, Plugins, Web 2.0, Web Development, Web Development Software, Wordpress

OK I usually work on the wordpress stuff and do all the fancy things with wordpress on these two Blogs of Josh Freedman

His press room at http://www.6seconds.org/press/
His blog is at http://6seconds.org/blog/


I spent my times for release and support my plugin. If you like my plugin and enjoy the support, do consider to make a donation to me. Thank you :D . I am available for hire too :)

You can view the plugin working at his press room at http://www.6seconds.org/press/

Its showing the 2 different categories’ recent posts. The number of the posts can be defined in the plugin’s only php file.
WordPress Plugin: Get recent posts within a dynamic wordpress content page or post

OK how to do such thing?

I am going to release a modified generic open source version if Josh allows me.

Update 1:33 AM : Yeah he allows me :) so here is the download material (on full post page).. (more…)