Category: food
05/30/06 06:46 - 88ºF - ID#32637
pearl street brewery
It was well worth the walk over here. It started with the DaVinci code and now a coworkers asked, "Do we believe in god." Where is this gonna go?
Permalink: pearl_street_brewery.html
Words: 73
Location: Buffalo, NY
Category: classifieds
05/29/06 04:17 - 82ºF - ID#32636
Intensional Line break?
Permalink: Intensional_Line_break_.html
Words: 2
Location: Buffalo, NY
Category: hiking
05/29/06 12:03 - 79ºF - ID#32635
Hiking at Zoar Valley and Xmen
Zoar Valley was nice as usual, there were a million people to the point where there were no more parking spots in the Point Peter lot. I was so summery out, actually warm enough to swim around in the creek. I didn't bring my phone so I didn't take any pics but matt brought his camera. Hopefully, he will post some pics. I stole this one off his camera.
Afterwards we went to go see Xmen, which was the worst piece of crap movie I ever saw. I mean generlaly I hate movies but then I went to see V for Vendetta and thought it was pretty great so I decided to give Xmen a chance. What a waste of $30 for the three of us. I prefered the stupid Silent Hill movie. At least it had a plot. I would never watch another xmen movie again. Special effects do not substitute for the plot of a movie.
Permalink: Hiking_at_Zoar_Valley_and_Xmen.html
Words: 201
Location: Buffalo, NY
Category: food
05/28/06 12:47 - ID#32634
Wegmans and blood pressure
While we were there I decided to check out my blood pressure which is normally extremely low. Seemed a little high but I tested it again two minutes later and it was normal. I don't trust that machine but I do want to know why my bloodpressure was like 10-15 points higher than usual. Is it that cholestrol laden protein powder?
Does anyone else go grab a magazine for the checkout adventure? This time I grabbed mobile computing magazine which I paged through with the equivalent passion a suburban fervor teenage girl has for a fashion magazine. "Will I still look nerd trendy enough with my laptop and phone through 2007 or do I need a (insert explicative) model to maintain my geek suave."
In the magazine I saw disney is making cell phones for kids that allow the parents to track the children from their phones. Two words: creepy and cancer. Those kids are gonna have brain tumors the size of lemons by the time they are 15.
Thanks to everyone for coming to the party last night. Who has pictures to post? I think everyone was quite thoroughly inebriated which turned out to be fun. I stayed up with the squireels, (e:robin) and soon to be epeep sarah-paul till about 5am.
Clams taste good at wegmans but these kind freak me the hell out. On eitm ewe were in vacation where they only had these funky clams. It was very dissapointing. I mean I love seafood but these ones remidn me of that Klinmgon dish QAGH (WIKIPEDIA - qagh) - lots of info here -
(e:terry) really wants a passion flower (WIKIPEDIA - passion flower) plants but they are $16.99
Permalink: Wegmans_and_blood_pressure.html
Words: 321
Location: Buffalo, NY
Category: nature
05/27/06 04:39 - 72ºF - ID#32632
Inky Caps Eat Plants
There are spreading, where will it stop.
Permalink: Inky_Caps_Eat_Plants.html
Words: 55
Location: Buffalo, NY
Category: elmwood
05/27/06 04:20 - 70ºF - ID#32631
The Crazy Lady on Elmwood
Anyways, she seems like she really need help, like maybe she forgot to take her medication but I think everyone is so afraid of her that she will never get help. I can't imagine what she must feel like. Does anyone know her story?
After the recording some guy out front of the laundromat told her to shut up and she freaked out on him too. You can hear him say shut up at the end of the recording. She told him that he doesn't even care that he ripped her off and stole her money because he is just going to get in his starship and fly away. She has seriously lost it.
Coop food is too damn expensive. I think I am done shopping there again. I can't afford a mansion and yuppy food. It's one or the other.
I mean it cost about $30 for some fruit and a couple thai soup packs.
Permalink: The_Crazy_Lady_on_Elmwood.html
Words: 234
Location: Buffalo, NY
Category: programming
05/27/06 10:37 - 59ºF - ID#32630
Javascript Prototypes Part II
[box]<html>
<body>
<script type="text/javascript">
/*create a sound object for making sounds*/
sound = function(noise){
this.setNoise(noise);
}
/*add new prototype to output the noise */
sound.prototype = {
/*set the noise echoed on sound.out)*/
setNoise : function(noise){
this.noise = noise || 'plain sound';
},
/*output the noise*/
out : function(numTimes){
var noise ='"';
for(x=0;x<numTimes;x++){
noise += this.noise;
if(x<numTimes-1){ noise +=', ';}
}
return noise+'!"';
}
}
/*create a animal object for making animals that make sounds*/
animal = function(name, noise){
this.setName(name);
this.vocals = new sound(noise);
}
animal.prototype = {
/*set the name of the animal*/
setName : function(name){
this.name = name || 'another animal';
},
/*prototype to wrap sound.out*/
talk : function(times){
alert(this.name +" said "+this.vocals.out(times));
},
/*prototype to wrap sound.setNoise*/
changeVocals : function(noise){
mySquirrel.vocals.setNoise(noise);
}
}
/*instantiate an animal ( a squirrel that barks) and make it talk */
mySquirrel = new animal('squirrelio', 'bark');
mySquirrel.talk(3);
mySquirrel.changeVocals('ruff');
mySquirrel.talk(4);
</script>
</body>
</html>
[/box]
A lot of people have come up with different methods for dealing with inheritance. Here is one page that explains it and here is another that abstracts it a bit.
Once you are into the prototyping system you can make your own system to make extending and inheriting easier.
Permalink: Javascript_Prototypes_Part_II.html
Words: 268
Location: Buffalo, NY
Category: programming
05/27/06 12:11 - 64ºF - ID#32629
Javascript Prototypes
SIDENOTE ON SUREBERT
If you want to use surebert for any AJAX stuff at artvoice, feel free. It allows you to easily post data to any page. Here is the non-compressed js version so you can see what is going on.
Prototypes
(e:zobar,59) if you already know this then maybe this is a waste because no one else is going to read it besides maybe (e:enknot) who already knows this because we talk shop all day at work, but in case you haven't thought about it, you can write very extensible objects in javascript using protypes.
In fact, I would argue that the prototype if the basis of complicated OOP in javascript. The prototype is applied to every instance of the object without having to copy the function as it is when declared as a function within the constructor.
Here is how I would write it
Greeter = function(yourName){
this.yourName = yourName;
}
Greeter.prototype.getTimeOfDay = function(timeOfDay){
alert('Good ' + timeOfDay + ', ' + this.yourName);
}
greetZ = new Greeter('Zobar');
greetP = new Greeter('Paul');
greetZ.getTimeOfDay('afternoon');//'Good afternoon, Zobar'
greetZ.getTimeOfDay('evening');// 'Good evening, Zobar'
greetZ.getTimeOfDay('evening');// 'Good evening, Paul'
[/box]
Because everything is an object in javascript, if you have mutliple prototypes for an object you can easily write them like below which look very neat and organized when used with large objects.
[box]
Greeter = function(yourName){
this.yourName = yourName;
}
//javascript object notation for attaching multiple protoypes to an object.Although you could write each one as Greeter.prototype.name of function, I think when have lots of protypes this looks neater. You can also add any of properties as a prototype. In this case I am also creating a property called job. that can be referred to as instanceName.job e.g. greetZ.job you can even attach protoype arrays this way
Greeter.prototype = {
'job' : 'programmer',
getTimeOfDay : function(timeOfDay){
alert('Good ' + timeOfDay + ', ' + this.yourName);
},
getRandNumber : function(min,max){
min = min || 0;
max = max || 100;
alert(Math.floor(Math.random()*max+min));
},
sayHello : function(){
alert("Hello, "+this.yourName);
}
}
greetZ = new Greeter('Zobar');
greetP = new Greeter('Paul');
greetZ.getTimeOfDay('afternoon');//'Good afternoon, Zobar'
greetZ.sayHello();// 'Hello, Zobar'
greetZ.getRandNumber(10,30);// 'Good evening, Paul'
Permalink: Javascript_Prototypes.html
Words: 389
Location: Buffalo, NY
Category: pets
05/26/06 01:16 - 69ºF - ID#32628
My house at 3:30am
Permalink: My_house_at_3_30am.html
Words: 74
Location: Buffalo, NY
Category: dance
05/26/06 11:27 - 64ºF - ID#32627
Terrible Feeling
Permalink: Terrible_Feeling.html
Words: 78
Location: Buffalo, NY
Author Info
Date Cloud
- 03/24
- 11/23
- 02/23
- 01/23
- 12/22
- 01/22
- 12/21
- 11/21
- 12/20
- 11/20
- 01/19
- 12/18
- 08/18
- 04/18
- 03/18
- 02/17
- 01/17
- 12/16
- 11/16
- 09/16
- 08/16
- 07/16
- 06/16
- 05/16
- 04/16
- 03/16
- 02/16
- 01/16
- 12/15
- 11/15
- 10/15
- 09/15
- 08/15
- 07/15
- 06/15
- 05/15
- 04/15
- 03/15
- 02/15
- 01/15
- 12/14
- 11/14
- 10/14
- 09/14
- 08/14
- 07/14
- 06/14
- 05/14
- 04/14
- 03/14
- 02/14
- 01/14
- 12/13
- 11/13
- 10/13
- 09/13
- 08/13
- 07/13
- 06/13
- 05/13
- 04/13
- 03/13
- 02/13
- 01/13
- 12/12
- 11/12
- 10/12
- 09/12
- 08/12
- 07/12
- 06/12
- 05/12
- 04/12
- 03/12
- 02/12
- 01/12
- 12/11
- 11/11
- 10/11
- 09/11
- 08/11
- 07/11
- 06/11
- 05/11
- 04/11
- 03/11
- 02/11
- 01/11
- 12/10
- 11/10
- 10/10
- 09/10
- 08/10
- 07/10
- 06/10
- 05/10
- 04/10
- 03/10
- 02/10
- 01/10
- 12/09
- 11/09
- 10/09
- 09/09
- 08/09
- 07/09
- 06/09
- 05/09
- 04/09
- 03/09
- 02/09
- 01/09
- 12/08
- 11/08
- 10/08
- 09/08
- 08/08
- 07/08
- 06/08
- 05/08
- 04/08
- 03/08
- 02/08
- 01/08
- 12/07
- 11/07
- 10/07
- 09/07
- 08/07
- 07/07
- 06/07
- 05/07
- 04/07
- 03/07
- 02/07
- 01/07
- 12/06
- 11/06
- 10/06
- 09/06
- 08/06
- 07/06
- 06/06
- 05/06
- 04/06
- 03/06
- 02/06
- 01/06
- 12/05
- 11/05
- 10/05
- 09/05
- 08/05
- 07/05
- 06/05
- 05/05
- 04/05
- 03/05
- 02/05
- 01/05
- 12/04
- 11/04
- 10/04
- 09/04
- 08/04
- 07/04
- 06/04
- 05/04
- 04/04
- 03/04
- 02/04
- 01/04
- 12/03
- 11/03
- 10/03
- 09/03
- 08/03
- 07/03
Category Cloud
- 24 linwood
- animals
- art
- basra
- bathroom
- biking
- birthdays
- body
- botanical gardens
- brushwood
- buffalo
- camping
- cars
- clothes
- clothing
- computers
- dancing
- food
- furniture
- games
- haircut
- haircuts
- halloween
- hiking
- holidays
- house
- key west
- mobile
- music
- nature
- pets
- provincetown
- rochester
- swimming
- toronto
- toys
- travel
- vacation
- weather
- wedding
- weddings
- work
- accidents
- allentown
- android
- animals
- apple
- architecture
- art
- artvoice
- bars
- bathroom
- beach
- bikes
- biking
- birthdays
- body
- books
- brushwood
- buffalo
- buffalo rising
- bugs
- buildings
- camping
- cancer
- cars
- cats
- central terminal
- childhood
- church of the ascension
- clothes
- clothing
- computer
- computers
- conference
- crohns
- dance
- dancing
- dentist
- design
- downtown
- drugs
- electronics
- elmwood
- energy
- environment
- estrip
- events
- exercise
- family
- festivals
- firecracker
- food
- friends
- furniture
- gadgets
- games
- garden
- gay
- government
- gym
- hair
- haircut
- haircuts
- halloween
- hardware
- health
- hiking
- history
- holiday
- holidays
- house
- housing
- jewlery
- kenmore
- key west
- life
- linux
- linwood
- love
- marriage
- media
- mobile
- mobl
- movies
- music
- mustache
- nature
- nikon
- opinion
- orange tongue
- party
- peeptalk
- people
- pets
- photos
- poetry
- politics
- portland
- pride
- programming
- property
- protest
- random
- recycling
- religion
- rememberbuffalo
- renting
- school
- shoes
- shopping
- sports
- stress
- stuff
- swimming
- technology
- television
- thesis
- thursday
- thursdays
- toys
- transportation
- travel
- vacation
- vegas
- war
- water
- weather
- web
- wedding
- weddings
- weekend
- windows
- winter
- work
- world
- youtube
- zooey