Stripping Characters from Strings with PHP
Posted by Michael on Sunday, Feb 22nd, 2009 |
Comments | code snippet, PHP |
Permalink
This is a simple example of stripping chararcters from a string using PHP.
See comments in code below for results...
<?
$string = "1234567890";
$string = substr($string, 6); //strips off 123456
echo $string; //7890
$string = "123456";
$string = substr($string, 0, 1); //get first character
echo $string; //1
?>
Highlight Table Row on Mouse Over
Posted by Michael on Thursday, Feb 19th, 2009 |
Comments | Javascript, code snippet |
Permalink
Simple Javascript to highlight table rows on mouse over...
<script type="text/javascript">
function hiLiteRows(){
var x = document.getElementsByTagName('tr');
for (var i=0;i<x.length;i++)
{
x[i].onmouseover = function () {this.origColor=this.style.backgroundColor;
this.style.backgroundColor='#D8E5F2';
}
x[i].onmouseout = function () {this.style.backgroundColor=this.origColor;}
}
}
window.onload=hiLiteRows;
</script>
Web Family Photos
Posted by Michael on Wednesday, Feb 18th, 2009 |
Comments | scripts |
Permalink
This web application is written in PHP, and uses a MySQL database backend to store photo data. It will require Apache, PHP and MySQL.
I original wrote this for my dad, who is working hard on our family genealogy. Using this web tool, he was able to securely share old photos with extended family members across the United States, allow them to download the photo and gather valuable information on some mystery photos.
I’ve released the code under the GNU GENERAL PUBLIC LICENSE, so you can download it for free! If you find it useful, I would be interested in how it's being used, so drop me a note.
WBContacts
Posted by Michael on Thursday, Feb 12th, 2009 |
Comments | scripts |
Permalink
I wrote WBContacts a long time ago. Written in PHP with a MySQL back-end, it's a simple contact management web tool. Feel free to download and rip apart as necessary.
If you find this script useful or not, I'd like to hear your feedback, or even how you have used it in your projects.
Review of Evernote 3.1
Posted by Michael on Tuesday, Feb 10th, 2009 |
Comments | reviews, Evernote |
Permalink
I’ve been using Evernote for a couple of years now, and it’s certainly at the top of my list as the best GTD tool I use on a daily bases. I would be lost without it. Over the past several months, it has grown into a sophisticated app with a slick user interface.
I use Evernote for many different purposes, the primary being as a code repository. Since it runs on many different platforms, such as for Windows, Mac, iPhone and the web, it does a great job of keeping my snippets of code at my finger tips, which drastically decreases development time.
Probably the greatest thing about Evernote is that it’s free. They do offer a paid version which allows for increased web storage and the ability to attach files to notes, which comes in very handy if you're on the move and out of the office.
You can download Evernote from http://evernote.com/about/download/