Filed Under (Others) by admin on 08-07-2011
Problem: Setting manually the top and height of Titanium UI elements individually, just to arrange the Views to make it fluid or stack accordingly,
Solution:
On your main view add layout:’vertical’
var view = Titanium.UI.createView({layout:'vertical'});
Then on the UI you will add to the view add height:’auto’
var label = Titanium.UI.createLabel({text:'Test 1',height:'auto'});
var label = Titanium.UI.createLabel({text:'Test 2',height:'auto'});
Filed Under (Others) by admin on 26-05-2011
To know what is the DNS server on your PC just type this in your terminal
cat /etc/resolv.conf
Filed Under (Others) by admin on 01-05-2011
This is on hostgator and may apply also to other webhosting
When you access your codeigniter website like this
http://mywebhosting/~myweb
and you have mod re write enabled in your .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|public|tmp|images|captcha|js|css|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
SetEnv mod_rewrite_enabled 1
</IfModule>
But somehow it does not remove the index.php, so it is not working
To resolve this you have to add your webshosting username to the rewrite base
Instead of this RewriteBase / change it to this RewriteBase /~seodev
Original solution is found on codeigniter forums http://codeigniter.com/forums/viewthread/82091/
Filed Under (Others) by admin on 16-09-2010
To use grep to search for a word inside a folder with in a folder, like searching a word recursively through the folders
use this command
$ grep -r "check-btn" /var/www/html
it will show the filenames containing the matched word and the lines it contained
Filed Under (Others) by admin on 07-09-2010
This is mostly encountered when doing a SELECT union statement caused by different collation of the columns being joined in the union
Do this before your union select union
SET character_set_connection = utf8;
Filed Under (Others) by admin on 20-05-2010

If your tired of the limited fonts available on your customers pc, try the hosted fonts made available by google
In the example code below we will be using the tangerine font
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">
<style>
body {
font-family: 'Tangerine', serif;
font-size: 48px;
}
</style>
</head>
<body>
<h1>Making the Web Beautiful!</h1>
</body>
</html>
Here are more starter guide samples
check out the google fonts directory
Filed Under (Others) by admin on 04-02-2010

A code view theme for dreamweaver based on zenburn low contrast console theme more info on zenburn official site.
To use in dreamweaver here are the Instructions:
1. Download file here
2. Go to C:\Documents and Settings\\Application Data\Adobe\Dreamweaver CS3\Configuration\CodeColoring
3. Backup first the original Colors.xml rename it as Colors-back.xml
4. Then paste our downloaded Colors.xml file
5. In your dreamweaver go to edit->preferences->code coloring then change your background color to #3f3f3f
Filed Under (Others) by admin on 04-01-2010
Visit google today and see an animated logo of a falling apple

http://www.google.com
Newton himself often told the story that he was inspired to formulate his theory of gravitation by watching the fall of an apple from a tree.
Cartoons have gone further to suggest the apple actually hit Newton’s head.
GRAVITY……… and there goes the apple
Filed Under (Others) by admin on 15-12-2009
Tagged Under : icon

You’re busy coding finishing your web app, you need to put a santa icon or coffecup icon , though google might help save you’re search time.
Youre hoping there is website out there with enough icon archive ready for download and use.
www.iconarchive.com is the answer
From their website:
The Icon Archive is a categorized collection of high quality desktop & web icon sets. We currently host over
27,300 icons in 971 sets from 226 icon authors. Icons can be used for Windows (XP, Vista, etc.), Macintosh (OSX, OS) and Linux (as PNG Files). Copyright of icons belong to original authors. Public usage license can be found on each icon set page.

What impressed me with the site
– quick find on icons.
– rare icons like (ex. giraffe or toaster). is available
– They have apps icons, icons we see usually on apps (save,add,delete update,trash bin).
– quick download, right click save, you’re done, copyright applies read copyright first.
– FILE FORMAT is only at png some have .ico but most of the time I will need a transparent png for my web app buttons or tool bars