Allow Password SSH Access on Your Ec2 Server

It’s real easy. For passwort logins edit /etc/ssh/sshd_config and set “PasswordAuthentication” to “yes”, issue a “/etc/init.d/ssh reload” for the new config to become active. But a much better solution is to use ssh keys. Password access should only be allow temporarily. You should also have a rule set up in your firewall (I prefer CSF) that blacklists an IP if

Handling Pre-populated Form Fields

I’m working on something right now where I needed a quick and dirty way to make form fields go blank when a user clicks on them and then re-populate if they don’t enter any text. I know this is standard behavior right now, but I’ve always had a personal javascript library that I use to handle these sort of interactions.

Embed a Google Hangout Session on Your Website

Lately I’ve been getting alot of questions about an embeddable hangout on your personal/company site. While there’s not currently a way to do this through the google platform. There is a way to do this through some clever albeit inconvenient hack. Get Live Stream Procaster (http://www.livestream.com/platform/procaster)   Stream your Desktop. Get the embed code from the procaster screen and embed

Buttonizer

I haven’t had much time to post lately, but here’s something I’ve been playing around with. It basically takes an image you upload and turns it into a randomly scattered mosaic of buttons! I don’t know why…. Demo It basically just moves your uploaded image to canvas where we can gather pixel information. Based on the color of the pixel

web socket fun part 1

So I’ve been playing with websockets (because I’m a geek). I made this demo using socket.io to link an iPad’s movements to your desktop. It shows only the beginning of what’s possible with websockets. If anyone wants more of an explanation, feel free to contact me. I don’t think its worth putting up on github, but I’ll post the code

Make your weak ass node process strong like bull

Ok so your shit keeps shutting off. Every time you restart your server or echo anything to the terminal through STDOUT – your node process goes all to shit and you have to log on and get it running again…something like: node server.js& Well, screw that. We’re not going to take this shit any longer. On your ubuntu installation there’s

How to ssh to your goddamned ec2 instance

I hope the title conveys my frustration at recent events surrounding ssh access to your ec2 instance. Amazon recently changed their interface, and doesn’t allow you to create 506 certificates from the admin panel anymore. Now you must create the private key when you create a new instance. So it’s actually more streamlined but damn confusing for those of us

Positioning pages within iframes

Let’s say I don’t want the whole page of an iframe. Let’s say I just want to grab the news box of Yahoo’s page… There’s a great tutorial here. You just want to trick the browser into only showing a window of the iframe and then loading the whole page behind the window. So the user only sees through the

Getting Started with the Google Closure Library

Let’s start using the google closure library shall we? First we need to install it… First, install the closure library: First lets install the closure library, this will allow us to use some of the tools the library includes. This method uses svn to install to whichever directory you call it from. If you don’t have SVN and you’re using

Adding a Virtual Host (vhost) in XAMPP on a Mac

Recently, I had to set my other mac up with a local dev environment and found it hard to find the correct files to edit on a mac with XAMPP. I want to set up an environment where I can hit localhost.com and get served XAMPP files. So here goes: Edit your hosts on mac 10.6: In /etc/hosts – add