Highlight Warnings in Make
Curtis just gave me this incredibly handy piece of code that higlights errors and warnings in make output. Now, when I’m building, all the warnings are highlighted in yellow, and the errors in red. Just put the following in your bash profile script:
make()
{
pathpat="(/[^/]*)+:[0-9]+"
ccred=$(echo -e "\033[0;31m")
ccyellow=$(echo -e "\033[0;33m")
ccend=$(echo -e "\033[0m")
/usr/bin/make "$@" 2>&1 | sed -E -e "/[Ee]rror[: ]/ s%$pathpat%$ccred&$ccend%g" -e "/[Ww]arning[: ]/ s%$pathpat%$ccyellow&$ccend%g"
return ${PIPESTATUS[0]}
}
Of course, improvements and more ideas welcome! Thanks goes to Curtis for this!
I’m in a podcast!
A little while ago I got interviewed by Anthony Bryan from the metalink project. I feel sorry for him because it took me several long months to actually get the time to sit down and talk to him. Anyway, you can check out the podcast here. They used an old facebook photo of mine, so, uh, pardon the odd image of me. I figured it could be worse though.
It’s worth a listen though. I talk about some of the features of the new download manager (old news now, but he ask for this interview a while ago…), how I got involved with the Mozilla project, and a few other interesting tidbits including what I’ve currently been working on. There is other interesting things in there too!
Another new release? Why!?!
Well, Wordpress has seen fit to release version 2.2. Now I have to decided if I want to upgrade now, or wait awhile. So, I ask you all this - is it worth upgrading, or should I stay on the 2.1 path for now (which is up to date for any of you would be hackers)?
Secure PHP on the Web
PHP is a powerful and easy language to learn. As a developer, you must use that power in a safe and effective manner. While being easy to learn means that it is easy to pick up, it also means that you may not have any experience with writing secure code. Writing secure code is a must, however, if you do not want your server to be compromised, user data stolen, your site destroyed, or quite possibly worse. In this article, you will learn about writing more secure PHP code.
Read more
Google Spreadsheets
Last week I was helping a local political candidate with his fund raiser dinner. I knew that I would be manning the donations table and figured it would be a good idea to just type the information up right away instead of giving it to the candidate to do at a later time. So I grabbed my mother’s laptop and took off to the dinner. I knew that she didn’t have MS Office on there, but I figured it wasn’t a big deal since Quattro Pro was installed on it.
After helping setup a bit, I figured it would be a good idea to get the spreadsheet all set-up. Upon opening Quattro Pro, I was informed that the trial had run out and I needed to purchase the product. Crap. I thought she got the full version, but I didn’t have time to find out. Luckily, the place had WiFi, so I figured I’d just go download Open Office and install that. About a minute into the download I realized that I could sit here, wait for the download to finish, and then install it and waste about 20 minutes, or I could just use Google Spreadsheets.
I had never used or read any reviews about it, so I wasn’t sure what to expect. I was pleasantly surprised, however. It’s no Excel, but it got the job done. The best part was that you can download it as an xls file, csv file, or as an HTML file.
They have several functions too, like SUM and AVERAGE, but I couldn’t figure out how to get DATE to work. Overall I was impressed with the service, but it still needs some work and better documentation. If you are ever in a bind and need some type of spreadsheet software though, consider using Google Spreadsheets.