Code:: css-message-box

I just started a Google Code hosted project since I’m always in need of pretty message boxes for my HTML things. Let me know if you want/can contribute to it. It’s currently licensed under GPL 2.0 Here’s the address: http://code.google.com/p/css-message-box/   Why: This seems to have been dead for a… Continue reading

Git::Basic settings

Add .git_completion.sh to your home directory, and add this to your .bash_profile:   source ~/.git_completion.sh function parse_git_dirty { [[ $(git status 2> /dev/null | tail -n1) != “nothing to commit (working directory clean)” ]] && echo "*" } function parse_git_branch { git branch –no-color 2> /dev/null | sed -e '/^[^*]/d’… Continue reading

My current methods while using Kohana 3.0.8 – part 1

I’ve finally decided to get started on documenting how I’ve been using this wonderful framework. So if you’re patient enough to deal with my crazy schedule (meaning this series may take a while to be finish), fasten your seatbelt: First of all: Know your environment (your public html folder, a… Continue reading

Center a unordered UL/LI based menu

I lost count of how many times I broke my head trying to do this…. so taking a note will hurt less for sure: styles: #footer{text-align:center;list-style:none} #footer li{display:inline} HTML <ul id=”footer”> <li><a href=”1.php”>Link 1</a></li> <li><a href=”2n.php”>Link 2</a></li> <li><a href=”3.php”>Link 3</a></li> </ul> Really simple in the end

Some thoughts on installing Aptana 1.5.1

Last weekend I re-installed all my operating systems and had a lot of trouble installing/updating Aptana Studio on Windows and OSX, I am taking some notes just in case more people face the same situation: 1. Install Aptana 1.5.1 2. Choose your workspace 3. Add 2 new software locations: Aptana… Continue reading

Great way to parse HTML content using PHP

Today I started improving a newsletter system in the company I work for. One of the things I wanted to change is to have images embedded in the email message. The website uses CodeIgniter (http://www.codeigniter.com); for email handling I chose Swift mailer (http://swiftmailer.org/). Then for HTML parsing to replace all… Continue reading

Weird: FCK loses first line of formatted text when submitting

Last night (Oct, 28th), I was fixing a very weird problem where text edited using FCK, submitted via jQuery was losing the very first line when it was formatted (color, style) but not every single time… randomly it seemed. At first, I thought it would be something wrong with FCK… Continue reading