How To: Create a Comments Box with Facebook Connect in 5 Minutes

Got to try this out soon. Check out the Vid.

How To: Create a Comments Box with Facebook Connect in 5 Minutes from Pete Bratach on Vimeo.

Create Favicons and Extract Layers from PSD

Another link to goodies. Here you can find plugins for Photoshop. I like the plugin that conveniently creates a Favicon straight from Photoshop, no need for third party applications, if you don’t know what a favicon is – it is the small icon you see before the URL that distinguishes the bookmark from other bookmarks. Also on the same site is nice plugin that allows you to quickly extract a particular layer(s) from a PSD file without opening the file, plus recover layers from corrupted PSD files.

These plugins are free and author only ask a small donation.


Submit a Form using Enter Key

Here is a little Javascript I picked up. I run into a problem in IE wherein a form won’t submit when you hit the Enter key it just reloads itself but clicking the Submit button would processes your form. The form works with the Enter key fine in FF but not in IE.

Chances are that you maybe calling a function on your Submit button that will load the requested page? Something like this?

input type=”submit” name=”search” value=”Search” onClick=”myfunction();” >

Where in the myfunction() function can be anything like validating a page before it submits your data, or trigger another event or load an ajax request.

To fix this and allow using the Enter key to submit your form in IE. Create a new function in your Javascript like below which checks for the Enter key being pressed, keyCode == 13 then call your original event myfunction.

function checkEnter(e){
var characterCode
if(e && e.which){
e = e
characterCode = e.which
else {
e = event
characterCode = e.keyCode

if(characterCode == 13){
myfunction(); // onClick function you were loading on the submit button
return false
return true
} // checkEnter

Then on one of the input fields call the onKeyPress event and call your new function.

input type=”text” name=”keywords” onKeyPress=”return checkEnter(event)” >

iPhone card counting app raises concerns in Nevada casinos

Officials at the Nevada casinos were given a tip about a particular application used for counting cards for Black Jack that runs on iPhone and iPod Touch. Players caught can face up to 6 years in prison. If you watched the movie “21” its a method of attempting to keep track of the number of face cards, aces and 10s in the multideck Blackjack shoe, now this is not illegal but using a device to do so is illegal. Amazing how people come out with ways to beat the table.


Read more here.

How to quote your hourly rate

Just got back from accident I blogged on my other personal finance blogsite. Anyway I was browsing through my emails, someone shared me a link to this site which offers a tool for quoting how much you should charge your clients.

It allows you to properly quote efficiently your rate when working on projects for clients. Fill out the form with details about your rent, hardware maintenance, utilties, software and upgrades etc.. With all these factors you can come up with a good figure on how much you should charge your clients.
Read the rest of this entry »