The web site blog thing of Alex Mazzucca: Web developer, musician, nerd.
search
Web Development Category

CSS Dog

Wednesday, February 24th, 2010

Stewdio’s Browser Pong

Tuesday, January 5th, 2010

Pong

Click here to play. The coolest thing I’ve seen so far in 2010. Brought to you by Stewdio.

FireFTP: A FTP Client for FireFox

Wednesday, December 30th, 2009

FireFTP

Works great as a lightweight, simple FTP solution for quick transfers. Once installed, simply go to “Tools > FireFTP” within FireFox to launch. Click here for more information and to download.

Effective Twitter Backgrounds: Examples and Current Practices

Tuesday, September 22nd, 2009

Read the article here. Lots of great inspiration!

SOURCE:Smashing Magazing

PHP: Update Else Insert

Friday, September 11th, 2009

Here’s a snippet of useful PHP that will insert a row into a database if there is no preexisting entry with the same name (‘email’ in this case). If there IS an existing entry, it will simply update it with the appropriate information (‘score’). Once again, (for the search engines) this PHP will update unless it doesn’t exist, in which case it will insert a new row. Simple. I couldn’t find a proper working example of this so I hope this comes in handy for others.

$query = mysql_query("SELECT * from game WHERE email='$email'");
if(mysql_num_rows($query) != 0){
$result = mysql_query("UPDATE game SET score='$score' WHERE email='$email'")
or die(mysql_error());
}
if(mysql_num_rows($query) == 0){
$result = mysql_query("INSERT INTO game (email, score) VALUES ('$email', '$score')")
or die(mysql_error());
}
}

BTW-I realize that I could have used an “else”. I tried it. Didn’t work! Sware.

Become a Fan of Creative Strategy Group on Facebook

Wednesday, August 12th, 2009

Looping Two Keyframes in After Effects

Thursday, July 23rd, 2009

I always forget the simple expression to loop keyframes in After Effects. I’m posting this so that I’ll always have a place to easily find the expression when I need it:

loop_out("cycle",0)

THERE! No excuses. I hope this helps others out as well. While I’m at it, here’s the expression to pingpong between keyframes:

loop_out("pingpong",0)

This Site = Bacolicious

Thursday, February 5th, 2009

Click here.

Google Rolls Out Favicon

Friday, January 9th, 2009

In case you didn’t notice, Google’s now using a really strange favicon. Wow. Not a big fan.

FoxMarks Bookmark Syncing Utility

Monday, November 17th, 2008

I’ve been looking for a solution to sync my FireFox bookmarks at work with my bookmarks at home. FOUND! FoxMarks it is. Not only does it sync bookmarks, but it will sync saved passwords as well (an optional feature). You can set up different profiles for different groups of bookmarks / passwords. For instance, a group for your work stuff, home stuff and mobile stuff.  It’s very lightweight and installs as a FireFox addon. Check it out.