Entries Categorized as 'Programming'
February 27, 2008
I was going through all my feeds and checking out all the nerdy stuff going on, when I came across something that rang vaguely familiar with me. Adobe Flex was releasing a version 3. Why did that ring a bell with me? It finally came to me, while I was out at the Zend conference, there was a booth for Adobe Flex and giving out cds with it. I had really been intrigued with it and wanted to try it.
So I downloaded a copy - it’s even better now, it’s a 61 day trial on the Flexbuilder (eclipse based) program. So after scouring around the livedocs and other sites around the net I came up with a hacked little program that allows you to enter a rss feed and it’ll go get it and show you a teaser for the entry you select. It seems to me, rss readers are becoming the replacement for the standard ‘Hello World’ creation.
This is a preview of Playing with Adobe Flex
.
Read the full post (189 words, estimated 45 secs reading time)
Posted in Flex, Programming
1 Comment »
February 27, 2008
I was going through all my feeds and checking out all the nerdy stuff going on, when I came across something that rang vaguely familiar with me. Adobe Flex was releasing a version 3. Why did that ring a bell with me? It finally came to me, while I was out at the Zend conference, there was a booth for Adobe Flex and giving out cds with it. I had really been intrigued with it and wanted to try it.
So I downloaded a copy - it’s even better now, it’s a 61 day trial on the Flexbuilder (eclipse based) program. So after scouring around the livedocs and other sites around the net I came up with a hacked little program that allows you to enter a rss feed and it’ll go get it and show you a teaser for the entry you select. It seems to me, rss readers are becoming the replacement for the standard ‘Hello World’ creation.
This is a preview of Playing with Adobe Flex
.
Read the full post (189 words, estimated 45 secs reading time)
Posted in Flex, Programming
1 Comment »
January 29, 2008
I’m sitting here getting ready to write up a quick and dirty little regular expression for checking INET values, when it got me thinking. I’ve somehow turned my blog into a more technical blog then just some ramblings of mine. My technical posts out number general (or non-geeky) blog posts.
It’s not such a bad thing, in my mind, but that’s why I have another site. It’s not currently working due to the data loss suffered earlier in the month, and I haven’t gotten around to getting it back up and running yet. So what shall I do? I suppose I could just cross post them between the two and try to focus more on the generality of this blog.
It’ll probably straighten itself out in long run (once the other site is up and running), but until then - I guess you’ll be stuck with geeky entries here.
This is a preview of Contemplating an entry about Regular Expressions
.
Read the full post (811 words, estimated 3:15 mins reading time)
Posted in Javascript, Programming, Regular Express
2 Comments »
January 29, 2008
I’m sitting here getting ready to write up a quick and dirty little regular expression for checking INET values, when it got me thinking. I’ve somehow turned my blog into a more technical blog then just some ramblings of mine. My technical posts out number general (or non-geeky) blog posts.
It’s not such a bad thing, in my mind, but that’s why I have another site. It’s not currently working due to the data loss suffered earlier in the month, and I haven’t gotten around to getting it back up and running yet. So what shall I do? I suppose I could just cross post them between the two and try to focus more on the generality of this blog.
It’ll probably straighten itself out in long run (once the other site is up and running), but until then - I guess you’ll be stuck with geeky entries here.
This is a preview of Contemplating an entry about Regular Expressions
.
Read the full post (811 words, estimated 3:15 mins reading time)
Posted in Javascript, Programming, Regular Express
2 Comments »
January 29, 2008
I’m sitting here getting ready to write up a quick and dirty little regular expression for checking INET values, when it got me thinking. I’ve somehow turned my blog into a more technical blog then just some ramblings of mine. My technical posts out number general (or non-geeky) blog posts.
It’s not such a bad thing, in my mind, but that’s why I have another site. It’s not currently working due to the data loss suffered earlier in the month, and I haven’t gotten around to getting it back up and running yet. So what shall I do? I suppose I could just cross post them between the two and try to focus more on the generality of this blog.
It’ll probably straighten itself out in long run (once the other site is up and running), but until then - I guess you’ll be stuck with geeky entries here.
This is a preview of Contemplating an entry about Regular Expressions
.
Read the full post (811 words, estimated 3:15 mins reading time)
Posted in Javascript, Programming, Regular Express
2 Comments »
January 25, 2008
Alright, I think I have it (I’m just waiting to make sure cron fires off and runs everything)! It’s very simple, and probably pretty dirty - but hey I’m not a whiz with shell scripting, nor cron so I think what I have is pretty sweet.
Because I’m lazy (I’m a programmer!) and I know I wouldn’t remember to run backups in an normal fashion, I wanted to make a system to run them automatically, think set it and forget it (wait wasn’t that an infomercial of some type?). So without further adieu…
The Shell script:
#!/bin/sh
export PATH=/usr/local/bin:/bin:/usr/bin
mysqldump --opt -uUsername -pPassword --all-databases >
~/db_backup_tmp/all-db-backup.sql &&
mv ~/db_backup_tmp/all-db-backup.sql ~/db_backup/all-db-backup.sql
The PHP script:
$file = "~/mysql_backup.sh";
exec($file);
Calm down, I’ll explain it…
So first we have the shell script.
#!/bin/sh
From Wiki
This is a preview of Backup my databases! PHP + Shell + Cron = simple backups
.
Read the full post (649 words, estimated 2:36 mins reading time)
Posted in Bash, MySql, PHP, Programming
No Comments »
January 25, 2008
Alright, I think I have it (I’m just waiting to make sure cron fires off and runs everything)! It’s very simple, and probably pretty dirty - but hey I’m not a whiz with shell scripting, nor cron so I think what I have is pretty sweet.
Because I’m lazy (I’m a programmer!) and I know I wouldn’t remember to run backups in an normal fashion, I wanted to make a system to run them automatically, think set it and forget it (wait wasn’t that an infomercial of some type?). So without further adieu…
The Shell script:
#!/bin/sh
export PATH=/usr/local/bin:/bin:/usr/bin
mysqldump --opt -uUsername -pPassword --all-databases >
~/db_backup_tmp/all-db-backup.sql &&
mv ~/db_backup_tmp/all-db-backup.sql ~/db_backup/all-db-backup.sql
The PHP script:
$file = "~/mysql_backup.sh";
exec($file);
Calm down, I’ll explain it…
So first we have the shell script.
#!/bin/sh
From Wiki
This is a preview of Backup my databases! PHP + Shell + Cron = simple backups
.
Read the full post (649 words, estimated 2:36 mins reading time)
Posted in Bash, MySql, PHP, Programming
No Comments »
January 25, 2008
Alright, I think I have it (I’m just waiting to make sure cron fires off and runs everything)! It’s very simple, and probably pretty dirty - but hey I’m not a whiz with shell scripting, nor cron so I think what I have is pretty sweet.
Because I’m lazy (I’m a programmer!) and I know I wouldn’t remember to run backups in an normal fashion, I wanted to make a system to run them automatically, think set it and forget it (wait wasn’t that an infomercial of some type?). So without further adieu…
The Shell script:
#!/bin/sh
export PATH=/usr/local/bin:/bin:/usr/bin
mysqldump --opt -uUsername -pPassword --all-databases >
~/db_backup_tmp/all-db-backup.sql &&
mv ~/db_backup_tmp/all-db-backup.sql ~/db_backup/all-db-backup.sql
The PHP script:
$file = "~/mysql_backup.sh";
exec($file);
Calm down, I’ll explain it…
So first we have the shell script.
#!/bin/sh
From Wiki
This is a preview of Backup my databases! PHP + Shell + Cron = simple backups
.
Read the full post (649 words, estimated 2:36 mins reading time)
Posted in Bash, MySql, PHP, Programming
No Comments »
January 25, 2008
Alright, I think I have it (I’m just waiting to make sure cron fires off and runs everything)! It’s very simple, and probably pretty dirty - but hey I’m not a whiz with shell scripting, nor cron so I think what I have is pretty sweet.
Because I’m lazy (I’m a programmer!) and I know I wouldn’t remember to run backups in an normal fashion, I wanted to make a system to run them automatically, think set it and forget it (wait wasn’t that an infomercial of some type?). So without further adieu…
The Shell script:
#!/bin/sh
export PATH=/usr/local/bin:/bin:/usr/bin
mysqldump --opt -uUsername -pPassword --all-databases >
~/db_backup_tmp/all-db-backup.sql &&
mv ~/db_backup_tmp/all-db-backup.sql ~/db_backup/all-db-backup.sql
The PHP script:
$file = "~/mysql_backup.sh";
exec($file);
Calm down, I’ll explain it…
So first we have the shell script.
#!/bin/sh
From Wiki
This is a preview of Backup my databases! PHP + Shell + Cron = simple backups
.
Read the full post (649 words, estimated 2:36 mins reading time)
Posted in Bash, MySql, PHP, Programming
No Comments »
January 23, 2008
Granted, I’m not trying to sound like a smarty pants here because I really know absolutely nothing about cron and how it works.
So let’s start from the beginning (moves hands to symbolize starting a flash back sequence)
From Wiki
In computing, cron is a time-based scheduling service in Unix-like computer operating systems. The name is derived from Greek chronos (??????), meaning time.
cron has been recreated several times in its history.
Say you want something to automatically run on your server (linux/unix) at certain timed intervals, and example would be, oh say a backup or other routines that need to be run at certain intervals. On a Drupal site I run, they have a built in script to update things using cron. It will update a list of rss feeds and other routine maintenance items. So I first started out with looking at the Drupal site for any documentation (shhhh, it’s not like I asked a guy for directions) on how to set it up. There were plenty of examples shown, but didn’t make a whole of sense to me.
This is a preview of Drupal + Crontab = lots of emails with attached headaches or how to get cron.php to work on site5 hosting
.
Read the full post (870 words, estimated 3:29 mins reading time)
Posted in Bash, Programming
No Comments »
Recent Comments