Featured Posts

Earn Residual Income Residual income is a passive or recurring income that continues to generate after the initial effort. Most people earn "linear" income or receive a "one-shot" compensation. Royalties, rent from properties,...

Read more

Job Opportunity Looking for work? Want to earn a few extra bucks? Start full-time or part-time. Be your own boss. Have the flexibility and the freedom. It's a business opportunity where you supply consumers with services...

Read more

Get Paid While Using Your Phone Imagine getting paid each time you or someone else makes a phone call, watches tv, surfs the internet, or uses gas and electricity. Imagine getting paid every month, every year, or over an entire lifetime....

Read more

  • Prev
  • Next

CSS Font Order

Category : CSS, General, HTML, Internet, Linux

When designing web pages, using the appropriate font for your design does wonder to the overall look, feel and layout of your page. Unfortunately, web designers are quite limited to the fonts they can use. Most web designers stick to the tried and true “web safe” fonts.

If you take all considerations including operating systems: Windows, Mac OS X, Linux, Unix, and browsers: IE, Firefox, Safari, Opera, etc, then you are really stuck with just 3 of the safest fonts on the web. They are: Arial/Helvetica, Times New Roman/Times, and Courier New/Courier.

Other fonts that work across platforms are: Palatino, Garamond, Bookman, and Avant Garde.

Fonts that work in Windows and Mac OS, but not in Unix+X are: Verdana, Georgia, Comic Sans MS, Trebuchet MS, Arial Black, and Impact.

If you like to consider all OS platforms in your design, then the order of your fonts in CSS is important. I recommend this sequence.

Establish a Baseline

At the very least, you need to establish your baseline font. Choose whether you want “Serif or Sans-Serif” font. The CSS would look something similar to this:

html { font-family: Serif}
html { font-family: Sans-Serif }

Choose a Web Safe Font

Next, choose a “web safe” font. Your choice comes down to either taking Arial/Helvetica, Times New Roman/Times, and Courier New/Courier. Most people don’t use the monotype Courier font except when displaying code. So, you are essentially down to four fonts, Arial/Helvetica or Times New Roman/Times. Helvetica is very popular. Arial is not far behind. New Times Roman is better than Times. In our example, will now look like this:

html { font-family: Times New Roman, Serif }
html { font-family: Arial, Sans-Serif }

Choose a Cross-Platform Font

If you must, you can choose a “cross platform font.” Again, our choices are: Palatino Linotype, Garamond, Bookman, and Avant Garde. The first 3 are Serif fonts. Avant Garde is the only Sans-Serif font.

html { font-family: Palatino Linotype, Times New Roman, Serif }
html { font-family: Avant Garde, Arial, Sans-Serif }

Add Other Fonts

If you must, you can choose other fonts, although they do not work in Unix+ systems. They are: Verdana, Georgia, Comic Sans MS, Trebuchet MS, Arial Black and Impact.

html { font-family: Georgia, Palatino, Times New Roman, Serif }
html { font-family: Verdana, Avant Garde, Arial, Sans-Serif }

There you have it. A safe way to implement CSS Fonts across all OS platforms.

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Ubuntu Going from Brown to Gray

Category : Linux, News

There are rumors and rumblings that Ubuntu might be going from brown to gray. I certainly would welcome the change. I think, you can only be brown for so long. I think it’s time for Ubuntu to get a face lift, a much needed one. Maybe some Botox shots.

What could be better for the most popular Linux distro in the world to get a new color scheme. Gray is a good start. To tell you the truth, I wasn’t so very keen on the brown color to begin with. After years of color deprivation, I finally switched to a non-earthy color, like green.

Currently, I’m using Linux Mint, a derivative of Ubuntu. If Ubuntu switches to gray, I think it will attract more people to use Ubuntu. By the way, my theme just went from black/white/red to black/white/gray scheme. I’m ahead of the curve. Just pure coincidence.

If the rumor were true, I can’t wait to see this new color scheme.

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Run Multiple Applications in CodeIgniter

Category : General, Linux, PHP, Programming

You’ve installed CodeIgniter and you’ve written a couple of applications. Now, you want to run two of your applications under one install of CodeIgniter. The following article discusses how to run several applications within a single install of CodeIgniter. The approach is accomplished using Apache’s Virtual Host.

Install Apache Virtual Host

1. To add a virtual host, edit /etc/apache2/sites-available/default. We will use “vhostname” as the virtual hostname in this example. Edit the default file and add the following:

<Virtualhost *:80>
ServerName vhostname
DocumentRoot /var/www2
</VirtualHost>

2. Run the a2ensite script which enables your virtualhost within the apache2 configuration. It creates symlinks within /etc/apache2/sites-enabled.

# sudo a2ensite vhostname

3. Restart Apache

# sudo /etc/init.d/apache2 restart

4. Check your virtualhost if it’s working by pointing your browser to http://vhostname.

CodeIgniter Setup

One way of setting up CodeIgniter to support multiple applications, is to have separate folders for each application. You can set up your CodeIgniter directories like the following:

system/
   application/
       app1/
          config/
       app2/
          config/

1. Under the “app1/config” directory, edit the config.php file. Point your application to be hosted at vhostname by changing the following line:

$config['base_url'] = “http://vhostname/”;

2. Copy the “index.php” file under the main CodeIgniter directory to the http://vhostname web root directory.

3. The “.htaccess” file recommended by CodeIgniter also needs to placed to the web root of http://vhostname.

4. Open your browser and check if your application is working by placing http://vhostname in the address bar of the browser.

5. Repeat steps 1-4 to add additional virtual hosts.That’s it.

If you have questions or suggestions, please leave a comment.

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Another New Look

1

Category : General, Linux, PHP, Programming

All right, not wanting to get stuck with a certain theme, I decided to get really, really simple. It has lots of white space and it’s even colorless. This is likely to be a temporary patch until I can find a decent theme. In the meantime, this will do for now.

I’m kind of looking forward to the new WordPress which is being merged with WordPress-Mu in the next release. I’m not sure yet what the implications are to the upgrade. I will most likely take advantage of the multiple installs on one platform as opposed to having multiple WordPress installs.

Another product that I’m looking excited about is Ubuntu 10.04 which is going to be LTS or Long Term Support. It has been two years since the last LTS. The only issue is I’m really starting to like Linux Mint. I have been using it for 3 months. There is usually a one to two month delay before Mint follows Ubuntu.

I have been playing around with CodeIgniter. It’s a MVC framework that makes you write fast kickass PHP programs. Well, that’s what CodeIgniter website says. The only gripe I have with CodeIgniter is the way it latches on to one application at a time. You kinda have to edit the configuration file to switch to another application, but I found a workaround by installing Apache Virtual Hosts. One virtual host per application. Maybe, I’ll document and write about it when I have time.

Finally, I got a chuckle when I saw this article, “Seeking the One True Linux: Is Linux Distro-hopping a Thing of the Past?” I don’t really know why there is a need to have a one true Linux Distro. The last thing Linux users need is a distro monopoly. There is good to having a variety of distros. Linux users need choices.

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Damn Small Linux

Category : General, Linux

Speaking of small, take a look at Damn Small Linux or DSL. The distro comes in a CD less than 50MB. DSL practically runs on memory gas fumes, a mere 128MB. DSL is also capable of running as a SSH, FTP and HTTP server. In addition, you will get a XMMS music player, Firefox browser and a host of other apps. Here’s a list:

XMMS (MP3, CD Music, and MPEG), Netrik web browser, FireFox, FTP client, Dillo web browser, spreadsheet, Sylpheed email, spellcheck (US English), a word-processor (Ted), three editors (Beaver, Vim, and Nano [Pico clone]), graphics editing and viewing (Xpaint, and xzgv), Xpdf (PDF Viewer), emelFM (file manager), Naim (AIM, ICQ, IRC), VNCviwer, Rdesktop, SSH/SCP server and client, DHCP client, PPP, PPPoE (ADSL), a web server, calculator, generic and GhostScript printer support, NFS, Fluxbox and JWM window managers, games, system monitoring apps, a host of command line tools, USB support, and pcmcia support, some wireless support.

Other Linux distros with small footprints are Puppy Linux, Tiny Core Linux, Antix, Vector Linux, SimpleLinux, etc.

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon