Journaling on estrip is easy and free. sign up here

Paul's Journal

paul
My Podcast Link

03/08/2006 10:24 #32511

My Sick Day
Category: web
BEfore you read this - I ended up helping him more - he turned out to be cool and from denmark - we chatted a lot.

This is the moblog



I guss everyone hates their own countries

17:57] paulsidekick: the farthest north I ever got was kopenhagen
[17:58] paccer01: i live in copenhagen :)
[17:58] paulsidekick: cool
[17:58] paccer01: but im tired of denmark
[17:58] paulsidekick: why
[17:58] paulsidekick: i always thought it seems so great
[17:58] paulsidekick: compared to amerika
[17:58] paulsidekick: i rememerb when I was in germany
[17:58] paulsidekick: they built that bridge
[17:58] paccer01: i hate people in denmark
[17:58] paccer01: i mean
[17:59] paulsidekick: bridging part of denmark
[17:59] paulsidekick: and people seems so excited about their community and their country
[17:59] paulsidekick: compared to here
[17:59] paccer01: if someone falls - people look away pretend they didn't see it... and denmark is pretty racist too
[17:59] paccer01: hate it
[17:59] paulsidekick: oh ya
[17:59] paulsidekick: racist i can believe
[17:59] paulsidekick: i went dancing one time
[17:59] paulsidekick: with some turkish students
[17:59] paulsidekick: when we went to denkamrk
[17:59] paulsidekick: and they wouldnt let themn in the club with us
[17:59] paulsidekick: it was horrible
[17:59] paulsidekick: i was liek fuck you nazis
[18:00] paccer01: pisses me off
[18:00] paulsidekick: is weird
[18:00] paccer01: and you also live in denmark without knowing your neighbour.. and people looks like your insane if you smile at someone
[18:00] paulsidekick: here too
[18:01] paccer01: i wanna move to australia, i think


So I get an IM while laying there sick as hell and figure its twisted so I answered for once. Then it's some dude who read online that I solved (e:shawnr)'s nokia 3220 corrupt jpeg problem and wanted help although I had posted the solution online.

I originally hadn't responded to his email because he ask for a procedural version of the script and I refused to produce it as I had already posted the OOP one and I am too busy rewrite it. I asked him what he was using it for and he said for a moblog. Then i started to feel bad for him. I thought, " oh how sad, I can imagine having a camera phone I cannot use on my blog" and started to help him out.

Mind you I hate helping people nowadays. It has gotten really out of control. Everyone wants my help all the freakin time. My general rule is that I refuse to help on anything commecial unless they are paying me but that doesn't stop all you motherfuckers from harassing me to get information so that you can make more money. Just stop!! You know who you are!

At the end of the conversation after I pretty much held his hand about it because he said he was using it for his moblog, he tells me it is for a dating service he is starting and he will need to process many of these photos per seconds. You can see the conversation below. I am putting it here to deter future commercial help requests.

-update - afterwards I got this explaining it isn't a commercial dating servicel. I guess I shouldn't get so angry so fast. I am just a jerk sometimes but I am also stressed out with helping people. I could have asked for more details but I didn't.


[14:43] paccer01: hi paul
[14:43] paccer01: sorry to disturb you - hope you don't mind
[14:44] paccer01: have you read my email about the 3220 jpeg fix?
[14:45] paulsidekick: i did
[14:45] paulsidekick: but i have been really busy
[14:45] paccer01: ah - okay
[14:45] paulsidekick: i only write OOP
[14:45] paulsidekick: i have no idea how to write it otherwise
[14:45] paulsidekick: as that is all i learned
[14:45] paulsidekick: lol
[14:45] paulsidekick: but basically
[14:45] paulsidekick: what you need to do
[14:45] paccer01: oop example is fine ;)
[14:45] paccer01: i just perfer non-oop
[14:46] paccer01: because oop is harder for me to read
[14:46] paulsidekick: you need to read you image into a varibalre with file_get_Contents
[14:46] paulsidekick: then pass the data to imagecreatefromstring
[14:46] paulsidekick: if you run that in a command line php program
[14:46] paulsidekick: it will spit out an error
[14:46] paulsidekick: tell you there are so many extraneous bits of data
[14:46] paulsidekick: before marker whatever it says
[14:47] paulsidekick: it will tell you before which marker
[14:47] paulsidekick: then basically you can open it up in a hex editor
[14:47] paulsidekick: and find those bits
[14:47] paulsidekick: delete them but record what they are
[14:47] paulsidekick: or wherr they are
[14:47] paulsidekick: then write a program to remove those bits everytime
[14:47] paulsidekick: it relaly deopends on the phone model
[14:47] paulsidekick: and its a little bit time consuming
[14:47] paulsidekick: but it works everytime
[14:48] paulsidekick: are you on windows or linux
[14:48] paccer01: both... :)
[14:48] paulsidekick: it shoudlnt matter
[14:48] paulsidekick: well on windows just run the php file form the comand line
[14:48] paulsidekick: and from linux run it in the temrinal
[14:48] paulsidekick: it spits back an error that you otehrwsie will not see if you run it through apache or IIS
[14:49] paulsidekick: that error tells you exactly where the problem is in the image
[14:49] paulsidekick: then you just have to write the progrwm to cut that part out
[14:49] paccer01: its just odd that your fix did not work in my case
[14:49] paccer01: its a 3220 too
[14:50] paccer01: it does not find chr(0x28).chr(0x36).chr(0x28).chr(0x2B) in image for an example
[14:50] paulsidekick: it could be different in differtn for your model
"color:red">[14:52] paccer01: shouldt it be possible to just set phps error reporting a bit higher instead of running it from shell[14:52] paccer01: i had no idea that there was a difference
[14:53] paulsidekick: Corrupt JPEG dta: 74v extraneous bytes bedore marker 0xd9
[14:53] paulsidekick: is what your image says
[14:53] paulsidekick: the erro is not a PHP error
[14:53] paulsidekick: its actually an error being output by the jpeg library
[14:53] paulsidekick: that php uises
[14:53] paulsidekick: so php doesn't catch it as a module for a server
[14:54] paulsidekick: but it does spit it out to the command prompt
[14:54] paulsidekick: that is why these images wont work with gimp either
[14:54] paulsidekick: well they do but it warns of an error
[14:54] paulsidekick: anything using the jpeg libs in GD will reject them
[14:54] paulsidekick: unless they are fixed
[14:54] paulsidekick: in your case
[14:55] paulsidekick: because it is 74 byres befoe d9
[14:55] paulsidekick: which is at the end of a jpeg
[14:55] paulsidekick: you need osmethign similar to my eat function which keeps
[14:55] paulsidekick: removing a byte before whatever character
[14:55] paulsidekick: and then testing again
[14:55] paulsidekick: until the image is correct
[14:55] paulsidekick: and imagecreatefromstring returns true
[size=m]AT THIS POINT I FEEL TIRED OF EXPLAINING IT TO HIM SEEING AS I HAVE ALREADY DOCUMENTED THIS ALL ONLINE WHICH IS HOW HE FOUND ME - SO I ASK WHAT HE IS USING IT FOR BECAUSE IF IT IS COMMERICAL I AM NOT GOING TO HELP ANYMORE[/size]
[14:56] paulsidekick: what are you using this for
[14:56] paccer01: a moblog
[size=m]I FEEL BAD FOR HIM AND CONTINUE[/size]
[14:56] paccer01: at the moment, i just write the files directly to disk - but i'd like to convert files into jpegs before writing them to disk
[14:57] paulsidekick: ya
[14:57] paulsidekick: you can't manipualte them ihtout fixing this
[14:57] paulsidekick: alternatively
[14:57] paulsidekick: you can pipe the images out to imagemagick'
[14:57] paulsidekick: which can handle them
[14:57] paulsidekick: its a linux graphic program
[14:57] paulsidekick: or to photoshop or something
[14:58] paccer01: i was actually thinking about that
[14:58] paulsidekick: by using exec() with PHP
[14:58] paulsidekick: alhtough
[14:58] paulsidekick: this method is better
[14:58] paulsidekick: because it is native
[14:58] paulsidekick: if you can figure out what exactly need sto be cut form your images
[14:58] paulsidekick: some phoens it is easier
[14:58] paulsidekick: for exmaple with my PPC 6700
[14:58] paulsidekick: oits always the exact same string near the beginning that needs to be removed
[14:58] paulsidekick: so I just detect is it fromt heppc6700-
[14:58] paulsidekick: if so cut this data
[14:58] paulsidekick: no need to keep retesting it
[14:59] paccer01: how do you detect its from a 6700?
[14:59] paulsidekick: open the file in a hex editor
[14:59] paulsidekick: tehre is always something unique about it
[14:59] paccer01: the attachment?
[15:00] paccer01: one of my problems is that i don't really have much to test with
[15:00] paccer01: or compare with
[15:00] paulsidekick: what do you eman
[15:00] paulsidekick: mean
[15:00] paccer01: well - to find unique stuff - i need to compare it with something.. to find out whats unique and whats not
[15:01] paulsidekick: there are a million jpegs on the web
[15:01] paulsidekick: lol
[15:01] paulsidekick: a bizzilion
[15:01] paulsidekick: really
[15:01] paccer01: heh - yea.. of course
[15:01] paccer01: i was thinking mms'es
[15:01] paulsidekick: if you opent hat file in a hex editor
[15:01] paulsidekick: the 3220fixme.jpg
[15:01] paulsidekick: you can see ff d9
[15:01] paulsidekick: are the last two bvytes
[15:01] paulsidekick: meaning you need to delete the 74 bytes before that
[15:01] paulsidekick: if you take more pictures with your phone
[15:01] paulsidekick: you might find out that it is always 74 bvytes off
[15:02] paulsidekick: in that case just deete the 7 bytes
[15:02] paccer01: as
[15:02] paulsidekick: 74
[15:02] paccer01: so all i have to do is run a substr like you do
[15:02] paccer01: before the last two bytes
[15:02] paccer01: i think i got it now :)
[15:03] *** paulsidekick wants to directly connect.
[15:03] paccer01: pretty easy actually ;)
[15:04] paulsidekick: i am trtying to send you the fixed image
[15:04] paulsidekick: basically just rememeber each set of 2 letter in hex is one byte
[15:04] paulsidekick: e.g d9 is a byte
[15:04] paulsidekick: ff is a byte
[15:04] paccer01: i might need to open a couple of ports in my router to recieve
[15:05] paccer01: maby you could send to paulsidekick@paccer.dk ?
[15:05] paulsidekick: i emailed it
[15:05] paccer01: great
[15:05] paulsidekick: back to whatevfer you sent from
[15:05] paulsidekick: mms3220fix@paccer.dk
[15:05] paulsidekick: to there
[15:05] paccer01: :)
[15:05] paccer01: fine
[15:05] paccer01: got it
[15:05] paulsidekick: i just deleted all 74 bytes
[15:05] paulsidekick: so the more images you have from your comera
[15:05] paulsidekick: the more you can test till you ffigure it out
[15:05] paulsidekick: inthe case of my friend shawns nokia 3220
[15:06] paulsidekick: it was different everytime
[15:06] paulsidekick: but it always came before the end
[15:06] paulsidekick: so i just kept deleteing 1 and then check
[15:06] paulsidekick: in a loop
[15:06] paulsidekick: until imagecreatefromstring returns true
[15:06] paulsidekick: then you are all set
[15:06] paccer01: doesn't running imagecreatefromsting in a loop eat ALOT of resources?
[15:07] paulsidekick: no
[15:07] paulsidekick: its no big deal at all
[15:07] paulsidekick: you can run that script ina couple seconds
[15:07] paulsidekick: its not actually working when it returns false
[15:07] paulsidekick: milliseonds
[15:07] paulsidekick: i meant
[15:08] paccer01: hm
[15:08] paulsidekick: how many iamges do you expect to uplaod to your blog
[15:08] paccer01: have no idea actually
[15:08] paccer01: to start with - a few
[15:08] paulsidekick: i mean if you were sending 3000/mnute
[15:08] paulsidekick: you might want another solution
[15:08] paccer01: k
[15:09] paulsidekick: it only needs to run it on nokai 3220s for your blog
[15:09] paccer01: yea
[15:08] paccer01: at most, it will be one pr second, i thin
[15:08] paccer01: but maby it will be a part of a dating service i am working on
[15:09] paulsidekick: i cannot help you anymore if its comercial

03/08/2006 08:50 #32510

Walking to Work
Category: work
The last two days I walked to work because (e:terry) had to tak ethe car at 7am. It's probabaly why I got sick but it was a nice glimpse of what it will be like when the warm weather comes and I can walk to work everyday.

image

According to my coworkers, it is fucking freezing in ur office during the summer. In fact my boss kleeps an extra jacket in his office for the summer. It's a little ridiculous because right now it is about 90 degrees in the office and on one side they have giant tubes that pump cold air in during the winter so we don't overheat too much. There is something to be said for efficiency. It actually freaks me out that the building I am in is where a lot fo the cancer research - sort of the forefront of science - yet they cannot figure out the enviornmental control systems. I know, it's not the same scientisist but it is the same organization.

I hope the new building we are moving to soon, doesn't have the same environmental problems. There is nothing I hate more than being freezing in the summer.

I took this picture and afterwards realized it looked like I was worshipping my phone.
image

The good news is I found out that my superphone is the only one sprint does not charge for tethering with. Happy tethering to me.

I really need to cut my hair off. I wish it would just warm up before the buzzcut. I cannot believe it just does this naturally. I haven't used a styling product since the 90s. I guess that is self evident.

image

03/07/2006 21:38 #32509

Unexpected Programming
Category: estrip
I am really sick right now. I caught whatever (e:matthew) has and I just wanted to go to bed. I think I may be to sick for work tomorrow. Anyhow - I was programming this file sharing app at work today and when I got home I thought, hey, this could really work for the epeeps to let the share files with other peeps. The application is called gather and there is a link to it about the hangman game when you are logged in. You basically just upload files and oit gives you a secret url where other peeps or yourself can grab the file from later. You can even set the files to expire. Only logge din peeps can pick up and drop off files.

When I went to go upload the Little Link button to it, I accidentally erased the old chat. This left me in an awkward situations because ethe new chat had already been programmed for the geek meet but I didn't really feel like integrating it at 2am. I had no choice at this point because the old chat system would have also taken some work to get it back.

I think you will appreciate ethe new chat a lot more. I need to fix some media stuff up but generally it is much faster.

[size=m]New chat features/changes[/size]
1. The input box only shows up when logged in. When not logged in the chat refreshes every 10 seconds.
2. When logged in it refreshes near instantaneously, even more realtime than before.
3. The sound system has been completely redone using flash instead of quicktime. This makes the system more reliable but also ups the number of people with the plugin. Best of all it doesn't do that stupid window pop forward thing that eveyrone was bitching about. Blame apple, they started it.
4. The new chat is a complete rewrite of the system from the ground up. It is now an xhtml ordered list that uses DOM manipulation to insert nodes at the top. The only thing I am using innerHTML for right now is to post parse out the silly words and links.
5. The new version no longer uses MySQL but is based on SQLite and PDO.

The next thing to get upgraded is the text editor. Maybe even tomorrow. The code has also been rewritten from the ground up as is much more extensible so that we can add new features easily to the editor.

Then last the media library need some fanciness.
leetee - 03/08/06 05:37
Thanks so much for all the work you are doing on (e:strip) and its chat, (e:Paul)!

Now, if you're sick, go get some rest. Honest, (e:Strip) will be fine without your attention for a few days, or even a few hours! You deserve a rest. Just remember, you don't need to get sick to rest!

03/05/2006 21:04 #32508

The gym, not the hotel
Category: body
So I decided I am done thinking about the hotel. I really don't care now that home of the hits is included in the future of elmwood. It is a waste of my time when I should be spending it on other stuff like buying a house, finishing rememberbuffalo.org before none of the original buffalo is left and working out.

I am so torn between buffalo and one hundred other cities where I could make twice as much money. I will probably end up staying here out of pure laziness. I am so motivated when it comes to programming but so unmotivated when it comes to picking out a house or say finsihing my thesis which is now screaming - LEAVE OF ABSENSE.

Technically, I already own one big house but it is on Prospect near D'Youville and honestly that part of Buffalo is just not part of my immediate future. Sure, it is improving and someday will be great but not great enough for me to live there and not great enough ever in my lifetime. When am I going to put down this freakin laptop and buy a house. House, house, house, now.

One think I have remained commmitted to besides programming is going to the gym. I have managed to continue to going three times a week. The hardest part is eating all the freakin' food but soon I will be seriously tough. Then instead of debating stuff I am just going to kick everyone's ass.

image

I looked up our current residence at the historical society and it seems like our landlord paid $26,000 for this house in 1986. Now it costs around $200,000. Should I buy a house like this now - will it keep going up - or is it going to crash?
flacidness - 03/07/06 13:46
BUYING A HOUSE HUH? MY BOYS ARE FINALLY GROWING UP. GOOD LUCK ON FINDING SOMETING FABULOUS. AND MAKE SURE IT HAS ENOUGH ROOM FOR VISITORS. (HINT HINT) AS FAR AS MOVING TO ANOTHER CITY, WELL AS LONG AS IT'S NOT OUT OF THE STATE. THEN i'D HAVE TO FOLLOW YOU.
dcoffee - 03/06/06 12:47
houses around here will keep going up. it's tough to find anything decent on the west side for under 70,000 you could buy one of those and upgrade it to 120,000 if you're serious about it.
Although if the casino goes through, that could throw Buffalo's current trend out of whack, I say 65% chance the casino fails, the current lawsuit is well designed.
Anyway, if you buy a house between Richmond and Linwood, I think you're very secure.

03/05/2006 12:37 #32507

Elmwood Style
Category: elmwood
I never said I was for the Hotel [inlink]dragonfire1024,16[/inlink]. Apparently, I am part of a radical anti-progress fringe group. Having grown up along the various parts of elmwood I have to say that this along with the coop's box and the giant box house store extravaganza across the street from the coop are really changing the atmosphere of the elmwood strip. How many of you residents actually go to Abrahams Jewlers? Ok now compare that to how many of you went to Home or the Hits, Mondo Video, or Don Apparel?

For all you people that keep complaining about the condition of those houses, you cannot overlook that person who wants to have the hotel built is the one who owns them. He also tried to build a walgreens there in the past. It's just like complaining that the Atwater house in in bad condition so they should let Pano tear it down, even though Pano owns it and let it get really run down.

I am totally anti-progress and anti-change - at least in the direction it is going. Just as the coop ripped down and put up their box, and the hotel will do the same, what is going to stop a walmart or a rite aid?

Speaking of which, if we could bring in some bigger chain stores like have in other urban cities, we would be set with the mall. Maybe a gap, how about a banana republic, a rainforest cafe, a glass ceiling and oh ya security guards to keep it "safe" and drug free. What about a foodcourt? It would definately need a McDonalds in it, but not just any McDonalds - a fancy upscale appearing McDonalds that appear to be "elmwoodfied" would be required. Maybe they should dhave a thing that the workers need to appear urban too.

Just as I said before with the coop it is setting up an example for the tear down and suburbanize policy.

Pretty soon, it is going to be too upscale for all the people that made it elmwood the place it is and become a lot more like a fancy mall with upscale stores.

My question is why does elmwood need to be upscale to attract tourists? The whole Ithaca outdoor mall/ elmwood reality is coming true and once it's complete I am moving to Williamsville. I really want a place by glen falls. How about Williamville.com? I mean by the time I decide to purchase a house in my newly gentrified neighborhood it will cost about $300,000 anyways. Already so many houses are hitting the $200,000 mark in the area all around the coop.
dcoffee - 03/05/06 17:17
Home of the Hits is actually NOT being torn down. The buildings north of it are. I was excited to hear that since it is probably the best and most useful business on that strip.

Yours is a very real concern, it’s the flipside of a city that is improving, prices go up. But I would rather have my city improve, than see Buffalo’s urban real estate stay one of the lowest priced in the nation. It will grow from Elmwood outward toward Grant and Main St, and I for one am willing pioneer into the edges of a neighborhood and invest in a home.

I want to buy a home on the lower west side, or just west of Richmond and help the Elmwood / Allen areas further improve by being involved in my community. I’ll take a hands on approach to bettering my neighborhood, because I think this community is great and I want other people to come in and appreciate it too. When new businesses and new people feel secure moving into the area, that means I have succeeded.

If you’re worried about low cost housing and amenities there are other ways to address the issue. The Co-op Mansion on North and Elmwood is a good housing solution, or move into an apartment building instead of a two family home. As for retail, the demand for inexpensive rents will always be there, and building owners will take the opportunity to start opening basement and side-street commercial spaces.

It is possible for upscale visitors to coexist with the current environment. We should at least give them a chance.
zobar - 03/05/06 13:52
Gentrification has always been a difficult topic for me. I used to live in a tenement in New York City's Lower East Side [map]147 Orchard St, 10002[/map] above a store named 'You Give Us $5 We Give You Nice Purse,' where there was no air conditioning on the hottest summer on record, the air shaft smelled like stale curry, and a scoop of ice cream that some kid dropped on the windowsill stayed there for a month. I truly loved it there, and my rent was only $750/mo - and that got me a room in somebody else's apartment, a shelf in their bathroom, and a shelf in their kitchen. 'Way' back then, in 1999, new business started moving into the neighborhood. Nothing big - a trendy bar here, a boutique clothing store there. When I moved back to the New York City area after a couple years and popped in to my old stomping grounds, it was barely recognizable. [Thankfully Savarino seems to have more sense than the people at the Hotel Rivington :::link::: .] Investment in a poor neighborhood is wonderful, but on the flipside, not everyone benefits. Those who don't get pushed out to another ghetto, and eventually out of the city.

But I'm still pro-hotel. Why? Gentrification is something that happens when rich people move in to a poor section of town, but I would not consider Elmwood Ave to be a low-rent district in the first place - at least not until you get up to Black Rock. One of the tenants has said that the Mobius 'slum' was the only place he could afford on the strip, and it's been like that at least since he moved in, which was over a decade ago. I know a guy who was looking for a place for his new scooter shop :::link::: . He was not looking on Elmwood, but he was looking at a tiny, mediocre building just off Allen on Franklin that was going for $1/4 million, and another off Delaware at Forest that was going for $200,000. If it's gentrification we're against, we've already missed the bus, and leaving the Mobius 'slums' there isn't going to stop it. [The scooter shop, by the way, is now located in an actual poor neighborhood at 10 E Oakwood Pl [map]10 E Oakwood Pl[/map] and will be opening up at the end of this month.]

- Z