Ajax Word Search Solver

I almost forgot about this.

This project was written purely out of my boredom in class. I wanted to learn 1) Javascript, 2) jQuery, 3) JSON, and 4) more Ajax, so I decided to write this simple word search solver. The “backend” (puzzle solving algorithm) is written in PHP not because I didn’t know how to write it in Javascript (ok, maybe it’s because of that),  but because I wanted to try out JSON by allowing PHP to pass the puzzle solutions to Javascript. This word search solver has features such as: solving the puzzle live by highlighting the solution as you type, adding lists of words, removing words from list with delete key or double click, etc.

It’s also very buggy, because as I stated, I wrote this in a few hours with zero knowledge of jQuery/Javascript.

Anyways, here’s the site: http://yifan.lu/wss/ and the source: http://yifan.lu/p/wss

Google Apps User Registration Script

Here’s another one of my famous 3-hour-projects. I finally decided to cleanup my email. It’s too hard to “clean”, so I decided to start from scratch by making a new email account. So, I made a Google Apps account. Google Apps is a great product, but one thing missing is registration for users. (You must make an account manually for your user) So, I decided to make one myself. This PHP script acts as a proxy between you and Google Apps. It allows your users to create their own account with you and your Google Apps. It is composed of a backend and a frontend. The backend does the work of taking your admin credentials and form data from a user and creating an account for the user. The frontend hosts the GUI. I made sure to well-comment the code, so it should be easy to create your own frontend to match the style and code of your site. I’m probity won’t work on this project again, but because it’s released under GNU v3 (as all my projects), you can take it and add on to it.

Google Apps User Registration Script

My first iPhone app (kind-of)

Well, it took two days to coding, but I finally did it. I made an web-app for the iPhone. The reason I decided to do this was to familiarize myself with advanced aspects of PHP, such as classes, curl, and different sorts of weird functions. I created the KGD (KISD Gradebook Disassembler) from scratch in PHP. What it does is logs in to http://pic.katyisd.org/ (where you check grades), and gets to the gradebook page. It parshes the HTML and generates an array of infomation. This array can be sent to other pages for easy creation of stuff based on it. Some other features Idid was cacheing, so it would download the HTML every time, for maximum speed. It also requires NO connection to any database, so it’s very portable and expendable. It may also be one of the cleanest code I’ve ever written and the first one at is object-oriented (to train myself before I get to iPhone SDK programming).  The first thing I did is iGradebook. It is a cool app with an slick UI that allows you to check your grades on the iPhone. Some other things I’m looking into with the KGD core is maybe writing a desktop alert app or an Facebook plugin. If you would like to try it, check out the projects page. Look forward to the KGD core being released under GNU when I’m done. (Oh yea, this only works for KISD students, as that’s the only place I have access to grades)