So I’m doing homework, and this center of gravity thing is pretty cool. In Location Strategy they use it to find the best location for stores and such on an X-Y plane with points that have certain weights or populations. “Well that’s neat,” I thought to myself. “I’ll make a little calculator using AJAX and PHP.” Because I really have nothing better to do.
It’s a pretty simple center of gravity calculator, just put in the weights first, seperated by comma’s, then the X coordinates and finally the Y coordinates. You should have the same number of each, if not, well, it’s just wrong. You should get two numbers back, these are the (X,Y) coordinates of the perfect center of gravity.
Enjoy my fancy “Center of Gravity Calculator” that I wasted 25 minutes minutes creating.
This has been added in 2.8! Don’t install this if you have 2.8! Read this instead.
This little plug-in adds a fancy little description field to the “Edit Tag” pane in WordPress. It also adds a function called single_tag_description(); that does just that but only on the tag page. Not really sure why the tag description isn’t available by default, seems like it would be pretty useful. Basically, you can describe your tags and echo that description on each tag page with the above function; pretty simple!
Please enjoy and note that some of the code came from a thread I read on WordPress.org, but some of it came from extracting similar core code, I just made it into a WordPress plugin. Download it now.
Well, I just put together a little mini web-app with AJAX jQuery goodiness called Was That Guy In…?. The basic is concept is this:
Sometimes I am watching a movie and I notice an actor or actress that I think was in some other movie I had previously seen. Unfortunately, I rarely know thier name and I don’t feel like searching IMDB for the character name to find out. I want to know if he/she was and who they played.
So, I made this app. You just put in the name of two movies and it will tell you who was in both of them. It does a pretty good job going deep in the cast, but isn’t perfect. Sometimes Car Driver #1 (uncredited) is that guy you thought you saw. In that way, it can be pretty powerful.
Also, it has been brought to my that IMDB has already done this common search thing before me. That’s fine. Mine’s prettier and has AJAX and is much more specialized in finding actors. Their’s kind of sucks, no offense.