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

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

Symfony

How to set the meta tag information intemplate file in symfony

You can set the meta tag information in your template file as below. sfContext::getInstance()->getResponse()->setTitle(‘Your meta title here’); sfContext::getInstance()->getResponse()->addMeta(‘description’,’ Meta description information’); sfContext::getInstance()->getResponse()->addMeta(‘keywords’,’meta tag keywords

Oct 25, 2009

Read article

PERL

nl2br in perl

How to replace new line character with br $tempString = “Hello is testing for new line\n to br”; $tempString =~ s/\n/<br\/>/; output = “Hello is testing for new line to br”;

Aug 19, 2009

Read article