Reverse postal code lookup in PHP

 I've never played with any geolocation tools before but I thought I'd take a whack at it. After stumbling across GeoHelper, I thought I'd test things out with it. Well, after finding that the only reverse postal code lookup is Canada Post, I might as well make my own.

Download GeoHelper and script at the bottom of the page and place it in the same directory. That's pretty much it, the code explains itself. It can also do a reverse lookup on IPs.

 

Live demo here

 

 

 

Pasteros: cloud-based text storage

I just had to create [another] text storage project, just for shits. Pasteros (temporary domain) is a text storage storage (think Pastebin, Pastie, etc) running on DotCloud. It uses Twig for templating and I just converted the MySQL innerworkings to PostgreSQL (juste pour le fun). I also made an API for public use as well. I'll be releasing the source code shortly. Any feedback is appreciated.

PPTP server on pfSense

 One of the servers that are at my disposal has a very low CPU usage percentage (if that makes sense). On my way to set up a PPTP VPN server on the box, I realized my router running pfSense could do it out of the box. In this short tutorial, I'll show you how to get a PPTP VPN working so that you can connect to it anywhere.

Head under VPN -> PPTP

Next, click on the Enable PPTP server radio button. For the Server address put in your WAN (public) IP. For the Remote address range, put in a local IP of which the range will start at. Near the end of the page, check Require 128-bit encryption.

Click save and click on the Users tab. Add a user, in this example, test and a password. You can enter an IP of which the user will be assigned but it's not neccesary.

And that's it! You now have a working PPTP server.

Now, I tried to connect with my iPhone 3G over Wifi. Worked fine. Over 3G? Nope. Did some Googling, it seems like you have to pay an additional $10 for a VPN option (I'm on Rogers) since Rogers gives you a LAN IP (such as 10.x.x.x) and firewalls the GRE protocol (of which is needed for a PPTP VPN to work).

It looks like the only way to get around this is to buy the $10 package, browse over to unlockit.co.nz on your iPhone, change your APN settings and voila.

 

Any comments are appreciated :)

 

'or 1=1

Jeez, almost been a week since my last blog post. Recently, I've been working on Sysode more and more. Numerous bugs have been fixed, yet there are more and more features everytime I work on it. It's open for registration, but more than likely your account will be deleted if you end up signing up.
I'm open for any feedback on it :D

I was planning on finding a job this summer, but well, I haven't gotten around to it yet. Staples seems interesting, but meh. Retail doesn't interest me at all. I could always freelance though, little scripting and remote adminstration on the side to bring in some green.

 

I installed Synergy on my workstation and my two other laptops (which are on either side of my tri-monitor workstation). All I can say is amazing. So much more convenient and productive.

'Bout 05:00 here, I'll wrap up working on Sysode then hit the ol' dusty trail ;)

Google Chrome dev on Linux

Google officially released Chrome for Mac and Linux.

Grab the x86 .deb package here, and run dpkg -i google-chrome-unstable_current_i386.deb 

Got around to installing Chrome on my Thinkpad running Xubuntu. I can say for sure that it uses less resources compared to Firefox. For the most part, it works. Google stresses that it's not suitable for general use, there are many privacy features that just aren't there yet. I haven't had it crash...yet.

 

In other news, I'm still sketching out the plans for Sysode. One thing that might be a pain, is automation. I dreamt of it being similar to Dropbox, but I make web shit not software. I'm also looking for a graphic designer to make a logo for it, so if you have any offers leave a comment ;)

 

Sysode

Sysode is a simplified file backup system for developers. Really, none of the code has been put together as I'm still 'brainstorming'. It's mainly targeted at single developers or small teams, for backup and archival purposes. (Free of course)
"Hey, did you get version YZ from X?"

"Nope!"

"Login to our Sysode account and get it!"

Not sure how [specifically] it's going to work. Setting up a good API so [other] developers can write stuff for it is a must.

 

Any comments on this idea, or other stuff is appreciated :)

Ticketto - semi finished

I coded Ticketto in around 5 hours. You can check it out here: http://jroppie.co.cc:45/ticketto/ and try logging in with 'test' and 'test' respectivly. Also, check out the admin panel: http://jroppie.co.cc:45/ticketto/adminby using 'admin' and 'admin' for the username/password.

 

For those that don't want to check it out, Ticketto is a simple support ticket system. Users/client signs up, picks department and creates a ticket. Admin signs in, answers ticket and set status of ticket to closed, answered, etc. More features are planned ;)
Anyway, if anyone wants the source, just leave a comment.

PHP Support Ticket System

Ticketto (rhymes with Geppetto) is new project I started today; it's based on mail (MailX) so the foundation is already there. A client can create a support ticket in different departments and view the response from staff/admin/whatever. Admins can have seperate departments, so three admins three departments.

The client will also have their own area for other stuff (I'm working on it.)


Anyway, it's Sunday so I'll be watching some TV (if the satelite isn't out still).

Easton
Free Cron Job Hosting

Nojde[http://tinyurl.com/ddkl9d] offers free cron job hosting, check em out!

Easton
Tags