I am in Love with Cake!!!

I am loving CakePHP.

Yes, I am trying to be resistant to what CakePHP has to offer but I eventually ended up learning what is MVC {Model -> View ->Controller}

Okay, think like this for simple understanding.

Model -> Logic, Processing, Validations etc

View -> Output, plain HTML or PHP code

Controller -> Input, user inputs

So simple? right? so just hang on and I shall detail you about how to make full use of CakePHP in our examples.

Keep Hacking, Keep Clicking!!!

Why need Frameworks?

I dont know why people "force" so much on frameworks. I am just not able to understand.

I know I may be talking like a fool but then if you only want to write better code, you can even write it in Object Oriented way right?

And I dont mean nor I want to say that people who write/use frameworks are fools. But I dont.

So may be I am a fool.

I am going to stick only with PHP, MySQL and Ajax for development and lets see if it can work out for me.

Some of the Best PHP FrameWorks!!!!

These are some of the most known and well respected frameworks for PHP.

1. Symfony Project

2. CakePHP

3. CodeIgniter

4. Zend Framework

5. PHP on Trax

6. Agavi

Do u know more? Drop in comments and I shall update the list here.

How to use Dojo Chaining Effects!!!

Dojo is an opensource javascript library that help web developper to write browser side code. It provides widgets, effects, graphic renderers and also helpers to write AJAX enabled apps.

This is not an really an AJAX example, just a simple effect created in chaining two basic dojo effects. This is not the case here, but in my application loadHandler function is called when data arrive from the webserver.

Following would be your output after this tutorial.

Read the complete tutorial here


I am in love with PHP!!!!

I thought of intially giving up PHP for Ruby on Rails.

But now I am sticking on with PHP.

I am also trying to learn a new PHP framework, Symphony.

So you can expect lot of stuff coming from my end in terms of LAMP development as well.


Im learning to become a Ruby on Rails programmer

All these years I have been coding using PHP and Mysql.

And from today I have started to learn to code in Ruby on Rails.

Intial feeling of mine was "yyyyuuuuck" since I cudnt get much help about how could I potential use it for my web based applications.

But now Since I have a application up and running.

I believe it should be fun to learn and develop some nice web based applications using Rails.

JQuery vs Prototype. Which is Best????

And we rate JQuery the best!!!!

Listen, Prototype makes Javascript interesting. It's a great [big] library. It's beautiful. Go and use it. It's nice, really.

But, JQuery, oh JQuery! JQuery makes Javascript fun — just as advertised! Though Prototype is starting to feature some of the same features, JQuery already allows you to objectify any element(s) that can be selected with any CSS 1-3 selector (yes, any valid selector, including the ones that browsers don't support) as well as most any XPath designation as well. It opens the DOM like some well written book.

For instance to make a table with styles alternating on every other row, here's the code to do it using either library:

For the complete details you should read this

New Version of Script.aculo.us is out there!!!!

Scriptaculous 1.8 , Prototype 1.6 & the Bungee Book are out now.

So whts special about these releases?

Loads of new features and ofcourse lot of bug fixes as well
  • Prototype 1.6 final
  • Complete rewrite of Ajax.InPlaceEditor and Ajax.InPlaceCollectionEditor
  • Full CSS inheritance in Effect.Morph
  • New core effect: Effect.Tween
  • Sound: play mp3 files for sound effects; uses native playback on IE and available plugins
  • whereever possible
  • Duration and distance options for Effect.Shake
  • Performance improvements
  • Tons of bugfixes

I dont see any reason why you should not upgrade your libraries?

Go now and Grab them from these links

Scriptaculous 1.8: http://script.aculo.us/

Prototype 1.6 Library: http://prototypejs.org/2007/11/7/prototype-1-6-0-script-aculo-us-1-8-0-and-the-bungee-book-now-available

& Buy the Book: http://pragprog.com/titles/cppsu

Simple JavaScript Slide Show Using script.aculo.us

Simple JavaScript slide shows are a very useful way of slickly displaying images on any site. I recently found my way on to DZone Snippets which provided a nice little article on creating a slide show, so, I thought it would be nice to take that script and add to it slightly making it easier for anyone to add it to their site.

Andrew also goes on to make a simple yet powerful slideshow.

Its must to check out for all you developers and designers out there.

Please click to see the Simple JavaScript Slide Show example.

Please feel free to download the Simple JavaScript Slide Show code.

Most Simple and Easy Scriptaculous Slideshow

Most Simple and Easy Scriptaculous Slideshow

This took a little while to get working properly earlier this week, so I figured I'd share the love...

This one is coming from Caboose.

I liked it so I am sharing with you guys too.

Just check it and drop in your comments...

Find the link HERE

How to use Scriptaculous Effects in a better way?

How to use Scriptaculous Effects in a better way?

Here is a simple snapshot from the demo page from 24ways.

Gather around kids, because this year, much like in that James Bond movie with Denise Richards, Christmas is coming early… in the shape of scrumptuous smooth javascript driven effects at your every whim.

Now what I’m going to do, is take things down a notch. Which is to say, you don’t need to know much beyond how to open a text file and edit it to follow this article. Personally, I for instance can’t code to save my life.

Well, strictly speaking, that’s not entirely true. If my life was on the line, and the code needed was really simple and I wasn’t under any time constraints, then yeah maybe I could hack my way out of it But my point is this: I’m not a programmer in the traditional sense of the word. In fact, what I do best, is scrounge code off of other people, take it apart and then put it back together with duct tape, chewing gum and dumb blind luck.

No, don’t run! That happens to be a good thing in this case. You see, we’re going to be implementing some really snazzy effects (which are considerably more relevant than most people are willing to admit) on your site, and we’re going to do it with the aid of Thomas Fuchs’ amazing Script.aculo.us library. And it will be like stealing candy from a child.

Check out the code and Demo on this page Here

If you like this tutorial, drop in comments.

How to get last inserted record ID in mysql?

How to get last inserted record ID in mysql?

mysql_insert_id function is used to "Get the ID generated from the previous INSERT operation"
How to use the function?
Example code:

$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());

mysql_query("INSERT INTO mytable (product) values ('kossu')");
printf("Last inserted record has id %d\n", mysql_insert_id());

Best IDE for Web Developers!!!

EditPlus v3.0

EditPlus v3.0 is an Internet-ready text editor, HTML editor and programmers editor for Windows. While it can serve as a good replacement for Notepad, it also offers many powerful features for Web page authors and programmers.

EditPlus supports powerful and customizable syntax highlighting for HTML, CSS, PHP, ASP, Perl, C/C++, Java, JavaScript and VBScript by default. Also, you can create your own syntax file to support other programming languages.

Key Features

1] Seamless web browser for previewing the content of your HTML document or Java applet without leaving the editor. Browser window also has common browser commands so you can

2] browse Internet web sites as well as local HTML files.

3] FTP commands for uploading your local files to FTP server or for editing remote files directly.

4] Highlights URL and e-mail addresses in normal text files and lets you activate them with a single keystroke (F8) or ‘Ctrl + double-click’.

Which IDE do you prefer?

Drop in ur comments and share with us.