Category: classic asp
03/28/06 07:39 - 49ºF - ID#22268
Trinary For Classic ASP
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
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
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.
Permalink: Classic_ASP.html
Words: 111
Location: Buffalo, NY
Category: unnerd
03/07/06 09:08 - 23ºF - ID#22266
Nails...Nine of em'
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
Permalink: Nails_Nine_of_em_.html
Words: 117
Location: Buffalo, NY
Category: unnerd
03/07/06 08:45 - 25ºF - ID#22265
Hookey
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.
Permalink: Hookey.html
Words: 157
Location: Buffalo, NY
Category: nerd
03/06/06 08:45 - 20ºF - ID#22264
The Hacker's Karma Curse
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...
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
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...
Permalink: Hugs_and_Drugs.html
Words: 339
Location: Buffalo, NY
Author Info
Date Cloud
- 11/14
- 07/13
- 11/12
- 06/12
- 05/12
- 10/11
- 09/11
- 08/11
- 07/11
- 06/11
- 05/11
- 04/11
- 03/11
- 02/11
- 11/10
- 10/10
- 08/10
- 07/10
- 06/10
- 05/10
- 04/10
- 02/10
- 01/10
- 12/09
- 11/09
- 07/09
- 06/09
- 03/09
- 01/09
- 12/08
- 11/08
- 09/08
- 08/08
- 07/08
- 06/08
- 04/08
- 02/08
- 01/08
- 12/07
- 09/07
- 08/07
- 07/07
- 05/07
- 04/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
- 08/04