Titanium Mobile Fluid UI layout automatically arrange UI without setting top and height of views

Filed Under (Others) by admin on 08-07-2011

Tagged Under : ,

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'});

Linux get the DNS of your pc

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

Webhosting Hostgator no mod rewrite codeigniter

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/

Use grep to search for a word inside a folder

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

MySql SELCT UNION Illegal mix of collations Error

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;

Google fonts

Filed Under (Others) by admin on 20-05-2010

Tagged Under : ,


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

How to get the version number of your redhat or fedora core

Filed Under (Others, linux) by admin on 07-04-2010

cat /etc/redhat-release

zenburn dreamweaver

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

Google Celebrates greets Newton’s happy birthday Animated Logo

Filed Under (Others) by admin on 04-01-2010

Tagged Under : ,

Visit google today and see an animated logo of a falling apple

newton10-tree

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

looking for an icon?

Filed Under (Others) by admin on 15-12-2009

Tagged Under :


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

ads
ads

Jobs at Lexmark Cebu

Software Tools Developer 5 Dec 2008, 1:11 pm

Software Tools Developer

Source: Jobs at Lexmark Jobs at Lexmark |

Company Nurse 5 Dec 2008, 1:11 pm

Company Nurse

Source: Jobs at Lexmark Jobs at Lexmark |

Industrial Designer 5 Dec 2008, 1:11 pm

Industrial Designer

Source: Jobs at Lexmark Jobs at Lexmark |

Data Owner 5 Dec 2008, 1:11 pm

Data Owner

Source: Jobs at Lexmark Jobs at Lexmark |

Firmware Product Systems Engineer (FPSE) 5 Dec 2008, 1:11 pm

Firmware Product Systems Engineer (FPSE)

Source: Jobs at Lexmark Jobs at Lexmark |

Talent Management Specialist 5 Dec 2008, 1:11 pm

Talent Management Specialist

Source: Jobs at Lexmark Jobs at Lexmark |

Business Control Analyst (Auditor) 5 Dec 2008, 1:11 pm

Business Control Analyst (Auditor)

Source: Jobs at Lexmark Jobs at Lexmark |

SAP System Analyst 5 Dec 2008, 1:11 pm

SAP System Analyst

Source: Jobs at Lexmark Jobs at Lexmark |

Firmware Development Engineers 5 Dec 2008, 1:11 pm

Firmware Development Engineers

Source: Jobs at Lexmark Jobs at Lexmark |

HR Officer (Shared Services) 5 Dec 2008, 1:11 pm

HR Officer (Shared Services)

Source: Jobs at Lexmark Jobs at Lexmark |

Technical Writers 5 Dec 2008, 1:11 pm

Technical Writers

Source: Jobs at Lexmark Jobs at Lexmark |

Spanish-speaking Customer Service Representative 5 Dec 2008, 1:11 pm

Spanish-speaking Customer Service Representative

Source: Jobs at Lexmark Jobs at Lexmark |

Technical Illustrator 5 Dec 2008, 1:11 pm

Technical Illustrator

Source: Jobs at Lexmark Jobs at Lexmark |

Recruitment Assistant 5 Dec 2008, 1:11 pm

Recruitment Assistant

Source: Jobs at Lexmark Jobs at Lexmark |

Team Lead 5 Dec 2008, 1:11 pm

Team Lead

Source: Jobs at Lexmark Jobs at Lexmark |

Technical Support Representative 5 Dec 2008, 1:11 pm

Technical Support Representative

Source: Jobs at Lexmark Jobs at Lexmark |

Technical Trainer 5 Dec 2008, 1:11 pm

Technical Trainer

Source: Jobs at Lexmark Jobs at Lexmark |

Software Build and Library Administrator 5 Dec 2008, 1:11 pm

Software Build and Library Administrator

Source: Jobs at Lexmark Jobs at Lexmark |

Business Database Administrator 5 Dec 2008, 1:11 pm

Business Database Administrator

Source: Jobs at Lexmark Jobs at Lexmark |

EDI - Support Analyst 5 Dec 2008, 1:11 pm

EDI - Support Analyst

Source: Jobs at Lexmark Jobs at Lexmark |