Journaling on estrip is free and easy. get started today

Last Visit 2024-03-16 17:05:41 |Start Date 2003-07-07 03:39:31 |Comments 5,617 |Entries 6,438 |Images 14,748 |Sounds 119 |SWF 21 |Videos 322 |Mobl 2,935 |Theme |

Category: programming

02/22/06 07:40 - 36ºF - ID#32491

PPC 6700 extraneous data in jpegs

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.

image

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);
}

?>


print addComment

Permalink: PPC_6700_extraneous_data_in_jpegs.html
Words: 368
Location: Buffalo, NY


Category: photos

02/21/06 07:24 - 30ºF - ID#32490

When flickr, boyscouts and vintage mix

image

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.
print add/read comments

Permalink: When_flickr_boyscouts_and_vintage_mix.html
Words: 65
Location: Buffalo, NY


Category: elmwood

02/19/06 01:29 - 17ºF - ID#32489

Standing on the corner

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.

image

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.

image

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.

image

image

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.

print add/read comments

Permalink: Standing_on_the_corner.html
Words: 374
Location: Buffalo, NY


Category: web

02/17/06 11:07 - 23ºF - ID#32488

Paul's Box

I put together some new content administration system to keep track of my content administration systems. I put one together for (e:twisted) too

image

print addComment

Permalink: Paul_s_Box.html
Words: 43
Location: Buffalo, NY


Category: food

02/16/06 06:39 - 40ºF - ID#32487

Washington Market

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,

image

image

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.

image

image

image

image

image

image

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.

image
print add/read comments

Permalink: Washington_Market.html
Words: 201
Location: Buffalo, NY


Category: birthdays

02/12/06 09:43 - 20ºF - ID#32486

My Mother's Birthday

[size=m]The gift of the internet[/size]
(e:mike), (e:terry) and I spent the day with the family in order to celebrate my mother's birthday. mike and I decided to buy her the internet for her birthday. For christmas we got the parents a computer system and now the high speed internet. Someday soon they will know it is like to actually use the internet. I don't think my father has ever actually explored the net. I am so curious where it will take them.

[size=m]Shango's Bistro[/size]
For brunch we went to Shango's Bistro at 3260 Main street (MAP TO: 3260%20MAIN%20ST) . For those of you that have not been there it is right across from UB South Campus. The food is unbelievable and the prices are quite reasonable. I had always thought it was more expensive.

The orange juice was quite fanastic. I like how it came with a slice of orange on it.
image

Where else can you get green eggs and ham with procuitto
image

We all ordered our own brunch meal but the Banana Glaze French Toast sounded so good we ordered an extra plate for the table.

image

(e:terry) had scrambled eggs with sausage
image

(e:mike) and I had sirloin and poached egg - I already weigh 145 how crazy is that. Up five pounds in like a month.
image

My father insisted on dessert so we all shared a balckberry cabernet sorbet
image
[size=m]
Dollar Store[/size]
Afterward we decided to go to Bingo ayt uncle Sams bingo in canada. Sorry (e:thhecarrey) we are never going again. It was definatey not nearly as fun as I rememebered the time that (e:iriesara), (e:terry) and I walked there from Buffalo.

We got there early so we took my mom on a excusrion to the dollar store. She loves those store and we just didn't feel like dressing up [inlink]pyrcedgrrl,18[/inlink] and going to walmart.

image

[size=m]Bingo[/size]
Does this look like a sex toy or what?
image

I never even got close to winning.
image

And the no smoking room in really tiny and smell worse than the gym. Its so opposite of here where the no smoking room is the big room and the smokers have a little box.
image

This one is for you (e:iriesara)

::DOWNLOAD SOUND::



print add/read comments

Permalink: My_Mother_s_Birthday.html
Words: 394
Location: Buffalo, NY


Category: web

02/11/06 11:08 - 24ºF - ID#32485

Discuss

So my application is coming along great.

image

The most fun part is the user interface for adding and removing users from your group discussion or document creation. It is all using surebert to load in users dynamically and then it lets you free drag them in or out of the group. The ones in the group get the cute little face icon and their names change font. Those outside of the discussion group are bold black.

image

You can already visit it at

print addComment

Permalink: Discuss.html
Words: 95
Location: Buffalo, NY


Category: holiday

02/11/06 02:56 - 28ºF - ID#32484

happy valentines day

This "morning" when I woke up at 1PM I heard someone knocking on the door. I ignored it because I was still feeling dazed from sleep. Man they were not kidding that the gym would make you sleep better. The problem is that I never had any problem sleeping. So now will I just always sleep?

image

So the noise at the door turned out to be a package. I assumed it was just YAMC but it turned out to be a valentines box from (e:hodown). Who else would get me maple syrup and mapple candy with a mini shrine to Virgin Mary.

The best part is a bottle of pure maple syrup labled northern comfort.

image

image

Inside there was also a bootie music CD.

I used to have a really big shrine to Mary but one day I came home and (e:terry) and (e:jacob) dressed it all up in orange nd black hell style. It was mostly stolen goods anyways so it probably fit.

Ok I am off to my little cousins birthday. We are already 2 hours late. The kids beat the hell out of a sponge bob square pants pinata. All that was left were some limbs.

image


print add/read comments

Permalink: happy_valentines_day.html
Words: 208
Location: Buffalo, NY


Category: pets

02/10/06 11:18 - 25ºF - ID#32483

It's a party

The neighbors in front had to put their cat to sleep and they are having a party. I am so excited. now I can finally visit the rest of the house. Go dead cats!

image
print add/read comments

Permalink: It_s_a_party.html
Words: 35
Location: Buffalo, NY


Category: exercise

02/10/06 07:32 - 25ºF - ID#32482

Gym and Microsoft Local Live Maps

So I started going to the gym at the BAC downtown with (e:terry) and (e:lilho). It smells like high school. I had forgotten the smell of a lockeroom. It is a weird musty smell. Rememeber what it would smell like when you left your towel in the gym locker between gym classes. It is kind of like that smell.

The machines are pretty fun but I felt like I was going to throw up afterwars.

We are planning on going dancing tonight at Opium if we aren't broken fromt he gym

image

and to the Rabies Beamer Party [inlink]jacksmack,26[/inlink] tomorrow.

Has anyone checked out which is microsofts answer to online mapping that is significatly more amazing than google maps in terms of the clarity and options of the images. You can even view you house very upclose at bird's eye view and choose from four different angles.

image

Today at work I finished writing my drag/drop and effects javascript library that I have been working on. Eventually it will bring new features to the site. Also the discussion program is like 80% done. I just need to build in some sort of diff feature for comparing versions and its set to go. Adding users by dragging and dropping the little cute heads is really fun. You will see.

[size=m]The Pentagon[/size]
This picture is actually reduced here you should see the original. Make sure to click on the large building icon near the top left of the map. It super zooms in then. I am surprised they let you get this close to such sensitive places
image

image

print add/read comments

Permalink: Gym_and_Microsoft_Local_Live_Maps.html
Words: 335
Location: Buffalo, NY


Search

Chatter

New Site Wide Comments

joe said to joe
Never send a man to do a grandma's job...

sina said to sina
yes thank you!
Well, since 2018 I am living in France, I have finished my second master of science,...

paul said to sina
Nice to hear from you!! Hope everything is going great....

paul said to twisted
Hello from the east coast! It took me so long to see this, it might as well have arrived in a lette...