Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

paul’s journal

🏷️ programming

48 posts

visual basic logic

· · 🌡️ 0°F

strComp is a visual basic string manipulation function that compares the contents of two strings. When they are equal it returns 0. Yes, that is a zero, known everwhere else as false.

So I couldn't sleep

· · 🌡️ 37°F

I couldn't sleep with the hangman game not being done and the idea of a new cell phone in my head. After finishing the PHP backend, I finished the javascript front end of the game, now I just need to come up with a scoring system and rip a couple thousand words from the journal entries. At least I can now say, e:hangman will soon be available for your chat game pleasure.

I think it will be really fun to implement other multiplayer games. I might need the help of @shawnr for this.

Sherbert Beta Hits

· · 🌡️ 50°F

Introducing Paul Visco's Sherbert - An easy to use AJAX API

Sherbert - sher·bert (-bûrt') 1. A frozen dessert made primarily of fruit juice, sugar, and water, and also containing milk, egg white, or gelatin. 2. A beverage made of sweetened diluted fruit juice. 3. Australian An alcoholic beverage, especially beer. 4. Cross browser compatible xmlHTTP objects created by Paul Visco to make devloping Web 2.0 AJAX applications easier.

image

I decided that I was sick of depending on an external AJAX xmlHTTP object API. When I first started using AJAX on the site last year I used my own xmlHTTP scripts but soometime thereafter I picked up an XMLhttp API called CPAINT. Last night, I decided there were lots of things I liked about CPAINT but that I didn't need many of the lines of code it was using and that it would be good top just make my own API. It was also the last little snippet of code that wasn't my own out of the thousands of lines that make up (e:strip) and related projects.

You can find out a lot more information about Paul Visco's Sherbert Objects at the Sherbert website , which will be expanding shortly to include links to many new AJAX applications including the site sound chat.

image

Delaware Park - Google Map Programming

· · 🌡️ 41°F

Here you can see Delaware Park from 1920 and 2005. Look how different the waterways are. Can you believe how much bigger the scajacuada was. No wonder it is so disgusting.

image

So @jessbob sent me a to some aerial maps of Buffalo from the earlier part of the 1900s. I wanted to superimpose them with some google maps, but the google maps window was not large enough, not to mention that as one of my students pointed out today, the google map API does not offer geocoding services. That means that you cannot use an address in javascript and get the latitude, longtitude from it.

Well, that didn't stop me. I wrote my own full screen google map demo that looks addresses up on another site to get the latitude and longitude and then plots and focuses on the location on my full screen google map. Without making any of this overhead obvious to the end user.

Here you can see the full screen nature of it.
image

To visit an address simply type the address in the grey box in the upper right corner. No need to use any commas or other punctuation, simply type spaces between each part of the address e.g. "444 linwood avenue buffalo ny"

Eating Web Sites

· · 🌡️ 73°F

I have become obsessed with eating and recreating data so when @shawnr asked me to rescue his data fromt he evil overlords that had stolen it I was more than excited. I didn't think I would have a chance till sunday but I got the stomach flu last night which gave me some time to think about it. I basically programmed it in my halucinitary dream last night and then woke up this morning to type it out in about five minutes.

I love programming dreams.

image

IE PNG javascript fix and php.net

· · 🌡️ 77°F

After a year of using a self made PHP solution for handling transparent jpeg in MSIE I switched over to client side solution I wrote in javascript. It saves the server the xtra work and it allows the cache to work properly by serving one identical image to both browsers and just fixing it afterward in IE. I mean why should the server fo extra work for the broken browser. I think the if people are going to use lame crappy browsers it reasonable to make the crappy browser work harder.

You should see a quote with no background color here.

image

I also posted my first contribution to php.net today. I would have contributed before but I didn't realize it was so easy to post a comment.

This might look familiar - nokia fix

· · 🌡️ 0°F

I stole this image off of @shawnr's mobile blog

image

I was going to make a derivitive work but it was against his license, lol. Anyways, the real reason this is here is to prove that I fixed the nokia picture phone bug. After hours of studying the jpeg format and playing with a hex editor, I wrote a nice PHP class to test for and fix images from certain nokia phones that write bad jpegs. Shame on you nokia for making such nonsense files. Basically any open source program that was based on a certaing jpeg library could not deal well with them including GIMP and GD, as well as, many other programs. At least now people with mobile blogs can use there nokia pics again! You can find it in p:labs if you need a copy yourself.