Archive for the 'programming' Category

Need framework? Why not Yii?

sausio 23rd, 2013

What is Yii? Yii is a high-performance PHP framework, not so complicated like Symphony or Zend. About performance! The graph below shows how efficient Yii is. We compared Yii with other PHP frameworks. In the graph, RPS (request per second) describes how many requests an application can process per second. The higher the number, the […]

SugerCrm: How to disable Ajax for a specific module

birželio 13th, 2012

You also have option of disabling the AjaxUI for modules or across the entire system. From 6.3 version, SugarCrm have admin section for disabling the AjaxUI on a per module basis (/index.php?module=Administration&action=ConfigureAjaxUI). It can also be done manually in the config override with a line like: $sugar_config[‘addAjaxBannedModules’][] = „Acounts“; That would cause links to the […]

Remove duplicate values from an array in PHP

balandžio 23rd, 2012

Today’s chalenge: How to remove the duplicate values from a PHP array? after short search i found solution array_unique. How this function works: <?php $input = array(1, 2, 2, 3, 3, 4); $result = array_unique($input); var_dump($result); ?> will output: array(4) { [0]=> int(1) [1]=> int(2) [3]=> int(3) [5]=> int(4) } Remember: Output of array_unique() will […]

XML to PHP array

balandžio 10th, 2012

Some times when working in PHP you need a way to convert an XML document into a serializable array. If you ever tried to serialize() and then unserialize() a SimpleXML or DOMDocument object, you know what I’m talking about. Assume the following XML snippet: <tv> <show name=“The Simpsons“> <husband>Homer</husband> <wife>Marge</wife> <kid>Bart</kid> <kid>Lisa</kid> <kid>Maggie</kid> </show> </tv> […]

MIT launchesApp Inventor public Beta

kovo 6th, 2012

the Android apps creation tool is no longer being managed by Google. MIT worked up its own version. Now you can go and log into the MIT App Inventor with valid Google ID. App Inventor lets you develop applications for Android phones using a web browser and either a connected phone or emulator. The App […]

Converting date in PHP from yyyymmdd to yyyy mm dd format

gruodžio 12th, 2011

I have dates in the following format (yyyymmdd, 18751104, 19140722) and i need normal date (yyyy mm dd, 1875 11 04, 1914 07 22). 1. first you can use strtotime and date functions (this will fail with dates before the Unix epoch at the start of 1970. ) <?php // prints 1995 Oct 12 echo […]

Delete default input value on click

lapkričio 18th, 2011

I hate this task: „Delete default value of an input text on click„. Many times i use code like this <input type=“text“ value=“email@email.com“ name=“email“ onblur=“if (this.value == “) {this.value = ’email@email.com’;}“ onfocus=“if (this.value == ’email@email.com’) {this.value = “;}“ /> Forget about this! I would recommend you try HTML5 solution below which uses the placeholder attribut. […]

Friendly and high quality fuel

lapkričio 16th, 2011

How do you heat your home? If that is wood pellets – you are about to visit the right place www.greenpellets.nl. The goal of the project is to provide Dutch people with environmentally friendly and high quality fuel for pocket friendly prices. More to come.

How To Reset Joomla Password

rugsėjo 6th, 2011

Information database editing. Get a randomly generated 32 character string such as: („138gbd53j984jne63v573jn9dk47sm29“) Add that random string to the new password. („password138gbd53j984jne63v573jn9dk47sm29“) Perform an MD5 hash of the combined string. („2be69387c187cf45059a83f577c7eb06“) Add this string into the _users table in the joomla db followed by a : and the 32 character string. („2be69387c187cf45059a83f577c7eb06:138gbd53j984jne63v573jn9dk47sm29“) This sets the […]

Getting WordPress to save your FTP Information

birželio 29th, 2011

If your a WordPress user which runs WordPress on a server then you’ll know that each time you install or remove a plugin you need to provide FTP information in order for WordPress to  get authorization to add or remove a plugin. But did you know you can get WordPress to remember the FTP information? […]

Next »