The PPC 6700 which runs Windows Mobile 5.0 is my first truly futuristisic phone. I had a sidekick, I had a blackberry, I had a Nokia 7710 but this phone blows the other ones away in tersm of features, network speed (~200-500kps), includes Wifi, bluetooth, keyboard, IR. It is amazing.
The only problem is that the 1.3 Megapixel camera produces faulty jpegs that have 16 extraneous bytes in their EXIF data. The unfortunately cause the photos to not work with many web sites which use open source Jpeg libraries to resize images. I heard they even have problems being viewed in gmail.
In order for the phone to be truly useful I had to be be able to take images from the phone and use them on my journal. So it was time to get out the old fashioned hex editor and begin experimenting with which bytes were the extraneous ones. Turns out it was a regular sequence right at the end of the EXIF data. The etxra string looks like this:
"x00x10x4Ax46x49x46x00x01x01x00x00x01x00x01x00x00"
I found that this string identifies the images as from the PPC 6700
"x41x70x61x63x68x65x00x48"
Unfortunately, the string is sometimes repeated but only the first one was extraneous, so you can't just doa blind search and replace. instead you have to just repalce the first one. here is some PHP code that would allow you to use these images as normal ones using GD. You an find a copy of this
<?php
function checkFixPPC6700($orig){
//get the file contents
$data = file_get_contents($orig);
//if its a PPC 6700 image cut out the extraneous 16 bits
if(strstr($data, "x41x70x61x63x68x65x00x48")){
$bad_data = "x00x10x4Ax46x49x46x00x01x01x00x00x01x00x01x00x00";
return substr_replace($data, "", strpos($data, $bad_data), strlen($bad_data));
} else {
//if not from a PPC 6700 return data unaltered
return $data;
}
}
$data = checkFixPPC6700('IMAGE_006452.jpg');
//$im = imagecreatefromstring($data);
if (($im = imagecreatefromstring($data)) !== false) {
header('Content-Type: image/jpeg');
imagejpeg($im);
}
?>
Paul's Journal
My Podcast Link
02/22/2006 19:40 #32491
PPC 6700 extraneous data in jpegsCategory: programming
02/21/2006 19:24 #32490
When flickr, boyscouts and vintage mixCategory: photos
They have lots of old pics
I can't believe how few people paid attention to my journal about the clipboard reading flaw in IE. I have read about 3000 clipboards to use in my newest epoem for the epoetry symposium at UB. It is entitled, "Microsoft Security" with a refrain of get firefox, get firefox.
02/19/2006 13:29 #32489
Standing on the cornerCategory: elmwood
Welcome to the site new peeps. The latest one (e:dragonfire) wrote [inlink]dragonfire1024,1[/inlink] about the demolition of the first section of elmwood after forrest to put in a new hotel. It is so sad that a part of elmwood that I remember as being "the elmwoodstrip" as a kid is going to disappear. I signed the petition but I honestly have no hope anymore after the coop destroyed the old brick brid house to make their store. I figure it is just a matter of time.
Once that is done the Atwater hosue will come down. The sticky buns that used to come from the bakery in there was one of the original reasons I would skip school and ride the bus down elmwood. (e:iriesara), remember when you used to live there with the ghosts, lol.
[size=m]Allen Street[/size]
I seem to spend a lot of time standing on the corner of Allen and Franklin on the way home from work recently. Sometimes, I think I want to go to Cafe 59 but then I don't because for some reason it feels weird to go out alone. Does anyone rememeber when it used to be Java Temple?
I have a feeling a lot of prositutes stand near this corner here or around here by the way the people seem to drive by and stare over and over sometimes.
There is a nice tile floor there. I like to stare at it while I wait.
The sky was so beautiful yesterday. It is hard to tell in these last two photos I took before the battery died on my phone but it was the really nice orange, purple, blue combo. We were driving at like 30mph int he car so they didn't come out real nice but you can still see the clouds.
The Buffalo news article is coming out on Monday or Tuesday in the city section or possibly the front page accordig to the reporter. I am excited to see what they say about the site. The geek meet is also coming up in one week and I have to really start preparing my stuff. Luckily, tomorrow is presidents day and I have off.
Once that is done the Atwater hosue will come down. The sticky buns that used to come from the bakery in there was one of the original reasons I would skip school and ride the bus down elmwood. (e:iriesara), remember when you used to live there with the ghosts, lol.
[size=m]Allen Street[/size]
I seem to spend a lot of time standing on the corner of Allen and Franklin on the way home from work recently. Sometimes, I think I want to go to Cafe 59 but then I don't because for some reason it feels weird to go out alone. Does anyone rememeber when it used to be Java Temple?
I have a feeling a lot of prositutes stand near this corner here or around here by the way the people seem to drive by and stare over and over sometimes.
There is a nice tile floor there. I like to stare at it while I wait.
The sky was so beautiful yesterday. It is hard to tell in these last two photos I took before the battery died on my phone but it was the really nice orange, purple, blue combo. We were driving at like 30mph int he car so they didn't come out real nice but you can still see the clouds.
The Buffalo news article is coming out on Monday or Tuesday in the city section or possibly the front page accordig to the reporter. I am excited to see what they say about the site. The geek meet is also coming up in one week and I have to really start preparing my stuff. Luckily, tomorrow is presidents day and I have off.
iriesara - 02/21/06 19:34
You mean the witches, Paul? 1079 Elmwood, I think was the address, two houses down from the Carraige Trade Pastries....Although I do think that place was haunted by something, that's for damn sure. Although, Paul, we didn't skip school, we went on 1/2 days....Which corner are they talking about putting this hotel at? The Subway corner, or Home of the Hits? Do either of those places even exist anymore. I read Jason's journal today, he moved to the Strip in 2001? He should've seen it in 1995, huh? or '89 for that matter....
Even between the time when I started living there (1996) and left (what was that, I moved to Texas in 1999), there was a HUGE difference.... nature of the beast? Sign of the times? Take your pick!
You mean the witches, Paul? 1079 Elmwood, I think was the address, two houses down from the Carraige Trade Pastries....Although I do think that place was haunted by something, that's for damn sure. Although, Paul, we didn't skip school, we went on 1/2 days....Which corner are they talking about putting this hotel at? The Subway corner, or Home of the Hits? Do either of those places even exist anymore. I read Jason's journal today, he moved to the Strip in 2001? He should've seen it in 1995, huh? or '89 for that matter....
Even between the time when I started living there (1996) and left (what was that, I moved to Texas in 1999), there was a HUGE difference.... nature of the beast? Sign of the times? Take your pick!
leetee - 02/20/06 10:06
The first couple of weeks we lived in Buffalo, we used to go to Cafe 59 all the time. We didn't have any of our stuff delivered yet, including no internet connection. They have (had?) free wireless. I thought the place was ok. I found the food a little overpriced but decent. One thing that stood out overwhelmingly to me, though, was how unfriendly the staff was. We were new to Buffalo at the time and we were impressed by how friendly strangers were, in general. Until there. I guess we weren't cool enough...
The first couple of weeks we lived in Buffalo, we used to go to Cafe 59 all the time. We didn't have any of our stuff delivered yet, including no internet connection. They have (had?) free wireless. I thought the place was ok. I found the food a little overpriced but decent. One thing that stood out overwhelmingly to me, though, was how unfriendly the staff was. We were new to Buffalo at the time and we were impressed by how friendly strangers were, in general. Until there. I guess we weren't cool enough...
theecarey - 02/19/06 21:50
Last I knew she moved to Amsterdam, did some traveling. If I recall, aslo has some family down south. Not sure what she is up to now. We chatted a lot..had some beers together, but we weren't exactly chummy.
I didn't know about the Weakest Link gig.. I wouldnt doubt it!
again, I miss Java :(
Last I knew she moved to Amsterdam, did some traveling. If I recall, aslo has some family down south. Not sure what she is up to now. We chatted a lot..had some beers together, but we weren't exactly chummy.
I didn't know about the Weakest Link gig.. I wouldnt doubt it!
again, I miss Java :(
paul - 02/19/06 19:52
What ever happend to heidi? I though someone said she was on "the weakest link" TV show? Does she have a new business in town?
What ever happend to heidi? I though someone said she was on "the weakest link" TV show? Does she have a new business in town?
theecarey - 02/19/06 16:46
I was just telling Timika about the Java Temple. I miss that place so much. I spent a lot of time there between 1996 until the owner, Heidi, sold it. Was that 2002?
Before it had a smoking room, it had a "smoking couch", haha.
I was just telling Timika about the Java Temple. I miss that place so much. I spent a lot of time there between 1996 until the owner, Heidi, sold it. Was that 2002?
Before it had a smoking room, it had a "smoking couch", haha.
ladycroft - 02/19/06 15:27
carey and i were JUST talking about checking out 59 and how it was java temple!
carey and i were JUST talking about checking out 59 and how it was java temple!
02/17/2006 23:07 #32488
Paul's BoxCategory: web
I put together some new content administration system to keep track of my content administration systems. I put one together for (e:twisted) too
02/16/2006 18:39 #32487
Washington MarketCategory: food
I went to the Washington Market with (e:enknot) for lunch. The food was yummy and it is in a nice central downtown location. They had these shrimp samples. Whiochi unfoprtunately has cillantro (which I am alergic to) but I ate them anyways because they were so freakin yummy and free,
My lunch was a little more expensive than the equally delicious fare I would get at roswell but I fiugured it was worth evtnuring somewhere new, The prices for non-prepared food were very reasonable and they had much of the same stuff as the coop.
Today I designed a site for people with brain tumors. I really do not want to see any more pictures of brain tumors. It is really making me nervous in fact I started using my cell phone on speaker phone. At least the site looks pretty now to see if the design will be accepted. The old site is . More than a redesign I made a new CMS backend so that the client can update, add media, etc all from the site itself.
My lunch was a little more expensive than the equally delicious fare I would get at roswell but I fiugured it was worth evtnuring somewhere new, The prices for non-prepared food were very reasonable and they had much of the same stuff as the coop.
Today I designed a site for people with brain tumors. I really do not want to see any more pictures of brain tumors. It is really making me nervous in fact I started using my cell phone on speaker phone. At least the site looks pretty now to see if the design will be accepted. The old site is . More than a redesign I made a new CMS backend so that the client can update, add media, etc all from the site itself.
uncutsaniflush - 02/16/06 21:48
As far as I know Paul Tsouflidis and Sarah Mahoney are (were?) the owners of the Washington Market and they get their produce from Guericos.
It's possible that Billy Fuccillo is a silent partner (though how silent can he be if he is actually serving customers) or they sold it to him.
My guess is that it is a case of mistaken identity. Perhaps there are two large Italian men in the Buffalo who look like Billy Fuccillo.
What can the odds of that be? lol, next, someone will tell me that Coles sometimes closes for private parties.
The mind boggles.
As always I could be wrong.
As far as I know Paul Tsouflidis and Sarah Mahoney are (were?) the owners of the Washington Market and they get their produce from Guericos.
It's possible that Billy Fuccillo is a silent partner (though how silent can he be if he is actually serving customers) or they sold it to him.
My guess is that it is a case of mistaken identity. Perhaps there are two large Italian men in the Buffalo who look like Billy Fuccillo.
What can the odds of that be? lol, next, someone will tell me that Coles sometimes closes for private parties.
The mind boggles.
As always I could be wrong.
imk2 - 02/16/06 18:46
i was there once and thought it was a pretty cool place, until i saw the fucillo chevloret "it's huge" guy working behind the counter. god, he gives me the heebe jeebes. i guess he's the one who owns it. how do you jump from car dealer to grocery store owner?
i was there once and thought it was a pretty cool place, until i saw the fucillo chevloret "it's huge" guy working behind the counter. god, he gives me the heebe jeebes. i guess he's the one who owns it. how do you jump from car dealer to grocery store owner?
I love vintage photos.. I really love the one you posted. I checked out the remainder on Flikr. Nice.