Journaling on estrip is free and easy. get started today

Last Visit 2017-02-04 19:29:30 |Start Date 2004-08-11 03:13:43 |Comments 356 |Entries 175 |Images 168 |Sounds 4 |Videos 40 |Mobl 32 |

Category: classic asp

03/28/06 07:39 - 49ºF - ID#22268

Trinary For Classic ASP

Ok So I lied about what the first one would be, but since I'm working with some code that's useing the topic I'm talking about I have examples.


Ok there's no Trianry operator in Classic ASP. For those of you who don't know what I'm talking about it's this kind of syntax that you can find in most bracketed languages. The operator uses two charcters and looks like this " ?: ". It's used like this:


//JavaScript

var sDude = new String("Anakin");
var sMessage = new String();

sMessage = (sDude == "Anakin")?"Jedi":"Sith";

alert(sMessage);

//alerts "Jedi"



But On the server VBScript dosen't have anyoperators like that which I find are quite a line saver in other languages. Trianry has been found in other places VBScript has been used like VBA (Visual Basic for Applications), and when it is supported it look like a function/language construct called IIf.

A work around for this that I've found usefull was to define a function for the trinary operation, or inline if, or immeidate if as it's been called. Like so


'VBScript
'RunAt=Server

Function IIf(varTest, varTrue, varFalse)
If varTest Then IIf = varTrue Else IIf = varFalse
End Function




But be wary children, you must declare each parameter or you'll get an error.

I'll try to only post things that I think are hard to find answers and things that I at least have a solid work around for. Otherwise happy coding.

--muja
print add/read comments

Permalink: Trinary_For_Classic_ASP.html
Words: 242
Location: Buffalo, NY


Category: classic asp

03/28/06 07:18 - 49ºF - ID#22267

Classic ASP

I program in Classic ASP at work, though I'm moving to .NET soon.

Still there are a lot of programmers that program in Classic ASP, and don't have an option to change that could use a resource like I hope this journal posting will become.

I'm going to keep updating this journal everytime I find something wonky with Classic ASP that I've figured out.

Maybe I'll start a profile called William Gates where I can post these things. Ooh, or maybe I'll just start a category called Classic ASP (enknot's kinda slow sometimes kids, you're going to have to forgive him.)

First one's first is the Data Dictionary .Add Bug...yeah.
print addComment

Permalink: Classic_ASP.html
Words: 111
Location: Buffalo, NY


Category: unnerd

03/07/06 09:08 - 23ºF - ID#22266

Nails...Nine of em'

NIN was the most professional band I've ever seen in my entire life. I've herad about Trent's relentlessly high expectations from his staff, but it really really really paid off.

I've seen shows in gyms and auditoriums before, but nothing that has ever sounded that good....


My friend Andy Blake (a very very good local photographer) took some really close pics of the hate machine him self, and if he let's me I'll post some to this journal.

Yes, today was quite awesome in many ways, but I have the worst work guilt. I'm like married to that job.

I figure I'll just go in a little early and catch up what I missed today...

later peeps
print addComment

Permalink: Nails_Nine_of_em_.html
Words: 117
Location: Buffalo, NY


Category: unnerd

03/07/06 08:45 - 25ºF - ID#22265

Hookey

Andy called me last night and asked if I wanted to go to Nine Inch Nails today for free.

Of course I said yes foolish! We have really close to the front tickets and we might be getting some floor tickets from a scalper.

He has a photo pass so he'll get floor no problem. If ever there was a reason to have a hobby it is to take sweet pictures ( (e:mat) ) so that you can get free tickets to sweet shows.

I never played hoOKy in school....hmm, ok once in like 12 years of schooling. I was such a nerd...ssssigh. This isn't exactly hooky (I have a few days to call off with), but it sure feels fun

:P


I'll try and get some pics of the ReZonator and put em up here for ya'll to see. Hey if anyone want to come with send and email and we'll see what we can do.


print add/read comments

Permalink: Hookey.html
Words: 157
Location: Buffalo, NY


Category: nerd

03/06/06 08:45 - 20ºF - ID#22264

The Hacker's Karma Curse

So any time there's some weird computer behavior at work (e:paul) blames it on "the hacker". It's typically really funny, but I guess you'd only find that funny if you were a huge fat nerd like I am. Ahhhhh, snort.

Anyway I have this network at home that I'm teaching my self networky stuff with at my own pace, and I've come into a bit of anomaly. An anomaly that I'm going to blame on bad karma, and not the sweet Radiohead kind either.

Now, I'm not the most honest person in the world. I've done things on the slide from time to time in my life. I'd like to think that anyone who'll tell you that they have never done anything dishonest is probably lying to you...to get you in bed, or to buy a lot of magazines you'll never read. Yeah. And I don't think a little wi-fi theft is outside the realms of reasonabitlty. I figure your broadcast it, you want people to pick it up, right? Well my neighbor broadcasts, and though he wanted to have me (and the other house tenants) pitch in to use his network, he also wanted to dictate what we could do on said network. So naturally, I said bully to that and got my own connection. But then I got my lappy and discovered the joys of bedside web browsing at the expense of my neighborly neighbor without paying a cent. (Insert sheepish grin) (Bad Karma: 1pt, Good Karma: Ziltch).


Ok, I'm going to stack the logs upon which I will burn now.

Jenny gave me a wireless router when last I visited her. I bought an antenna from new egg to broaden the signal, but they didn't work together so I exchanged them, 60 bucks, and a lil white lie at CompUSA for a new SUPASWEET Router and now the anomaly!(Incase you were still keeping count; Bad Karma: 3pts, Good Karma: Goose Egg).


My whole house (3 aptartments) shares one internet connection and thats why I'm using a router at all. It's nice to share files and an internet bill and not have to worry about big brother making sure all the porn you look at is nice healty clean porn. I've even secured our network so that we can make private transactions wirelessly and so that we're the only one's using the net work (Bad Karma: 3pts, Good Karma: one measly lil point), but there's something fishy going on.

I've uploaded a snapshot of the DHPC table from my router and yes there are more computers on it than I currently think should be on it, but this could just be a lack of experince or something, but it's pretty clear that 1 Muja Compy, 1 Downstairs Compy, 1 Upstairs compy, and 1 Enknot Lappy dose not equal 7 connections. Alas, I will learn, or maybe catch the hacker in the act...

print add/read comments

Permalink: The_Hacker_s_Karma_Curse.html
Words: 480
Location: Buffalo, NY


Category: all squishy inside

03/03/06 12:25 - 22ºF - ID#22263

Hugs and Drugs

You guys are sooooo open on this site. It's kind of intoxicating.

Sorta makes me feel like you internet people aren't just funny numbers inside my lil lappy impersonating shapes that look like people. If you guys keep it up I might put my guard down.

Ok, I'll let something out.

There's this Jenny. She's like a drug, no better, no worse. She's my dopamine.

She's funny, and cute, and we talk everyday, and we've dated, so this isn't that story, but I think I have a problem.

I haven't left my house for social activity since...well since I impersonated Bob, and that company party thing was kind of a flop. Lots of nice pork chops to eat but mostly it was people who gave going out up a long time ago and somehow forgot why for a night. I escaped before I had to dance with the lady in the tight bell bottoms..., but that's another story.

About this Jenny, but before I digress, I have gone out lately, just not often enough. Mardi Gras was too cold and the energy was way too low. That's right I saw no boobies, it's was a sad time...so back to digressing.

She's great and I always have her, and so I have this excuse for failing (there's always jenny...), and I've been doing terribly at meeting other people.

Oh there's Erika, who's cute and has a million friends, and there's Colleen who I met a bar and mostly likes me because of my hair (which by the way is kinda lame), but my problem hasn't been missing a lady lately, not really. I don't think.

Jenny's a really good friend. She was a shitty girl friend, broke my heart on valentines day even called me up this valentines day to rub it in, ok she must have forgotten or just didn't remember, but she's always there. I guess that means a lot to an over aged bachelor. Even if she is 3000 miles away in the other red state...


print addComment

Permalink: Hugs_and_Drugs.html
Words: 339
Location: Buffalo, NY


Search

Chatter

  • sina 05/16 12:00 :) hello everybody
  • sina 11/29 05:04 I can not read or write any comment :(
  • joe 11/07 01:05 hey!
  • mrmike 11/07 12:29 hey ya all
  • Linnie 10/17 06:57 Hi Neighbors - I just bought a groovy renovated carriage house on Linwood Ave, and I'm so excited to live in our wonderful city! The large house in front of the carriage house burned down in the 70's. An article I found about the property cited that 'Matthew' on this site had posted a series of photos called 'Lost Linwood" (article was from 2012). I thought maybe Matthew was still on this site or perhaps someone could help me find the photos. I'd love to see the original house and carriage house

New Site Wide Comments

mike said to mike
it's been 5 more years now and they are still $1...

mike said to mike
How weird life is , that I now know the Capozzi's, well at least Al ...

mike said to mike
How weird life is , that I now know the Capozzi's, well at least Al ...

mike said to mike
How weird life is , that I now know the Capozzi's, well at least Al ...