Archive for May, 2010
Live Character Counter as in Twitter using Jquery
Share In this tutorial i would explain how to implement live character counter using Jquery . I have included a live demo and the complete source code . The package contains only a single file with 3parts a css part , javacript part and an html part #bar { background-color:#5fbbde; width:0px; height:16px; } #barbox { [...]
Set Credentials using security.yml in Symfony 1.4
Share Symfony provides some cool configuration features that would allow you to minimize your coding part . In this tutorial i would explain how to configure security.yml to set credentials for a different users. Create a class file named account.class.php under apps/frontend/lib folder with content .The class below checks weather the user is admin and [...]
Create Twitter alert style using Jquery.js and CSS
Share In this tutorial i would explain to you how to create twitter alert style using jquery.js and simple css . The alert drop downs from top of the screen to display what is in a PHP $_SESSION variable . I have included a live demo also . Hope this would help you . Here [...]
Generation of same SQL even after changing Schema.yml | Symfony | Doctorine
Share Symfony have updated its ORM to doctrine and me too have update myself to new ORM . I was able to follow the jobeet tutorial – wrote yml schema – generated the model – generated sql and successfully completed the project . When i tried to customize the schema.yml by updating the schema , [...]
Pagination | Using Pager with Doctrine | sfDoctrinePager | Symfony | PHP | MVC Framework
Share As symfony is updated frequently i decided to update my skills too . I have been into many symfony project but the ORM used was Propel but the latest version supports Doctrine , so planned to do a project using doctrine . As i like yml than xml , wrote schema using in yml [...]
Symfony | Doctrine | Error | SQLSTATE[HY000]: General error: 1005 Can’t create table XXX.#sql-818 _1′ (errno: 121). Failing Query:” ALTER TABLE xxx ADD CONSTRAINT …. FOREIGN KEY (xyz) REFERENCES XXX(id) ON DELETE CASCADE”
Share Symfony is a web application framework written in PHP which follows the model-view-controller (MVC) paradigm . A symfony developer may use Object-Relational Mapping (ORM) – Propel or Doctrine . The earlier version of symfony supported propel and i was using it . But in updated versions symfony supported Doctrine and was forced to update [...]
PHP Regex to Make Twitter Links Clickable
Share Most of you would have integrated twitter update with your web application . I too have done the same but found that the links and mentions in the tweet were not clickable . To make it work i wrote a regex function that would fulfill the need . I am sharing you the fuction [...]
Regular Expression Basic Syntax Reference
Share Characters Character Description Example Any character except [\^$.|?*+() All characters except the listed special characters match a single instance of themselves. { and } are literal characters, unless they're part of a valid regular expression token (e.g. the {n} quantifier). a matches a \ (backslash) followed by any of [\^$.|?*+(){} A backslash escapes special [...]
Sun Java Certification Exam Materials | Dumps | SCJP Tutorials | E-pad | Troytec Testkiller
Share I did my Sun Certification last year [2009] and successfully cleared the exam . I am sharing you the materials that i referred to clear it . From my experience clearing the exam is not difficult you just need to mug up the dumps . But i wouldn’t recommend that as you wont get [...]
Post on wordpress remotely with xmlrpc in PHP
Share Recently i have been working on some wordpress blogs that required frequent addition of post . Coding an automated post generator was not a big task but didn’t know how to post it using php . After a research found that we can post on wordpress remotely using xmlrpc . I am sharing you [...]






