JustAskVin Insights

Ideas for leading and building technology well.

Practical writing on delivery, architecture, CMS migrations, digital growth, and the decisions that shape strong web experiences.

Latest

Page 11 of recent writing

All insights home →

General

Who is Anna Hazare ?

1. Who is Anna Hazare? An ex-army man. Fought 1965 Indo-Pak War 2. What’s so special about him? He built a village Ralegaon Siddhi in Ahamad Nagar district, Maharashtra 3. So what? This village is a self-sustained model village. Energy is produced in the village itself from solar power, biofuel and wind mills. In 1975,

Apr 8, 2011

Read article

Symfony

mysql error while executing propel:insert-sql in symfony 1.4

[propel-sql-exec] SQLSTATE[42000]: Syntax error or access violation: 106 you have an error in your SQL syntax; check the manual that corresponds to you server version for the right syntax to use near ‘Type=InnoDB’ at line 16 >> propel Running “insert-sql” phing task [propel-sql-exec] Failed to execute: CREATE TABLE `tb

Feb 26, 2011

Read article

General

London shop to make breast milk ice cream

LONDON (Reuters Life!) – A specialist ice cream parlour plans to serve up breast milk ice cream and says people should think of it as an organic, free-range treat. The breast milk concoction, called the “Baby Gaga”, will be available from Friday at the Icecreamists restaurant in London’s Covent Garden. Icecreamists fou

Feb 26, 2011

Read article

PHP

How to check if requested url exits or not

$requestedUrl = “http://www.example.com/abc.php”; $tags = get_headers($requestedUrl); if(preg_match(“/Not Found/i”,$tags[0]) || preg_match(“/Service Unavailable/i”,$tags[0])) { echo “Requested Url does not exists”; } else { echo “Requested Url exists”; }

Feb 10, 2011

Read article

MVC

select multiple column from multiple table in cakePHP

$markers = $this->Post->find(‘all’, array( ‘joins’ => array( array( ‘table’ => ‘cp_user’, ‘alias’ => ‘users’, ‘type’ => ‘left’, ‘foreignKey’ => false, ‘conditions’=> array(‘Post.postauthor = users.id’) ) ), ‘conditions’=>’Post.poststatus = 1’, ‘fields’=>array(‘Post.postid’, ‘Post.postdate’, ‘Post.posttitle’, ‘Post.post

Nov 27, 2010

Read article

HTML

font size issue on iphone

In case you are viewing the html page in iphone and the content appear differenct (the font size appearing bigger/smaller) than other phone, then add the below meta tag code for iphone in your html file in the head tag For more details visit http://developer.apple.com/safari/library/documentation/appleapplications/refe

Jul 31, 2010

Read article

Mysql

How to fetch multi-lingual content from database

The basic purpose of this post is to guide you all about fetching multilingual content from database. I mean to say that, if you have stored japanese text in your database, So in order to fetch the japanese content , you need to set the character encoding to UTF-8 format, while communication with the database […

Jul 8, 2010

Read article

Symfony

How to use FCKeditor in symfony

1. Download the FCKeditor source from http://ckeditor.com/download 2. Extract the source to /web/js/ directory of your symfony project directory 3. To use the editor in symfony, add (edit if present)the below line //config/settings.yml .settings: rich_text_fck_js_dir: js/fckeditor 4. You have to edit /web/js/fckeditor/

Dec 25, 2009

Read article

Symfony

Update query in symfony

Suppose you want to execute query like UPDATE tableName SET column1 = ‘abc’,column2 = ‘xyz’ WHERE column =’1′; then you can use the below syntax to do so 🙂 —————————————————————————- $con = Propel::getConnection(); /* Here you have to set the condition for which you need to update */ $c1 = new Criteria(); $c1->add(Tab

Dec 11, 2009

Read article