I guess you must have a different concept of the word "Native" than I do;)
Lets assume that we have a "Vanilla" installation of Windows XP... how well does PowerShell work compared to VBScript?
Considering that I have absolutely no control over what is installed on about 90% of the PCs in the organisation, and that I am rolling out scripting solutions to all PCs, that means that I am limited in choice to using either VBScript or WinBatch (or JScript... no thanks).
Try scripted support of an organisation full of Windows XP machines using WMI without it. Its useful only because its native to that platform (and it ties into WMI nicely).
Its a balance of using the right scripting language for the right job.
Plus, too many peoples brains explode when they try and read a 2000 line Batch File with "functions", loops, and all manner of other obscenity.
I tried it, and my system just said "The system cannot find the path specified.".
I even had cygwin installed:D. Though I probably shouldn't try that in the cygwin console.
Re:I really want a copy of this...
on
Clean Code
·
· Score: 1
I remember my second foray into obfuscation. A simple little function ended up like this:
#include #include #include #include int main(int(c),char(*a[])) {(!a[1])?exit(1):(*a[1]==0)?exit(getch()):(*a[1]==32)? printf("%c",*(a[1]+1)):exit(main((int)((strcpy(a[0],++a[1])||-1)&(6)),a));exit(main((int)((strcpy(a[0],++a[1])||-1)&(-40)),a));}
I didn't know I had it in me... the first started out elegant.
l(char*O){return*O?1+l(++O):0;}
also, this one was fun to write up on the university board during our first C++ tutorial just to watch all the beginners heads explode. They dared to ask for a simple function;).
I never went for obfuscation again after this, I learned my lesson.
For VBScript I tend to use google to find specific things. I haven't found one site that really covers enough in one place. Most people will write off VBScript being that it is Microsoft and Windows is evil and all that.
Seeing as I use VBScript mainly for natively being able to pull information from LDAP directories from a Windows XP machine I must at least defend it.
If you think we have forced Telstra to open their network you really haven't seen outside of whatever city you are living in. I have no choice for ADSL2+ except bigpond. If it was shared, the way it was supposed to be, then any other ISP could be recieving my business.
As it is I choose to wait until they finally do open it up to competition. ADSL1 for me until then. *sigh*
At least for now we don't have the throttling of service going on too rife. But thats probably because we are paying exhorbitant fees for poor service instead of the kind of prices we could be expected to pay in a free market.
Have it tunnel out instead? On Port 443? Then it just looks like HTTPS traffic. This obviously doesn't work from behind a Proxy, but should get you through most Firewalls.
I believe the submitter was thinking that the ISP would pass the cost on one way or another. If the ISP pays to improve Infrastructure, ultimately the Consumer pays (at the moment).
Well, now that you mention it, at least it should give you some idea BEFORE reading the article what bias it has, so you can turn on your bullshit-meter accordingly to help you filter out the shit from the truth. Might actually have a purpose after all.
Why do they need lasers at the Sydney Cricket Ground? Do they have Streaker control issues that Andrew Symonds cannot manage? Or did you mean the SGC (Star Gate Command)?
I use WMIC for doing WMI through CLI. I prefer the control I get over the commands by using WMIC, and I can call it via a Batch file or I can directly interface with WMI through VBScript *shudder*. I am dealing more with UNIX now though, as it hosts some of our big corporate apps.
I think what they mean is that by downloading the latest Britney Spears track, you are likely to require heavy drug use to forget everything you just heard.
In VB you have to "re-write the entire class yourself"? What happened to inheritance and overriding methods? Or are you talking about the NEW AND IMPROVED VB 6? Not that I'd use VB for anything other than what is specified by my Uni, but clearly you do not understand the language as stated in your post.
Funny, in most of Australia we still can't get more than 1.5Mbps. So you are in one of the metropolitan areas I assume. Relative to a lot of places in the world, that is still a lot of money to be paying. I have to pay that much to get over 10GB capped (shaped) download on 1.5Mbps.
I guess you must have a different concept of the word "Native" than I do ;)
Lets assume that we have a "Vanilla" installation of Windows XP... how well does PowerShell work compared to VBScript?
Considering that I have absolutely no control over what is installed on about 90% of the PCs in the organisation, and that I am rolling out scripting solutions to all PCs, that means that I am limited in choice to using either VBScript or WinBatch (or JScript... no thanks).
I use VB (or WSH) You Insensitive Clod!
Try scripted support of an organisation full of Windows XP machines using WMI without it. Its useful only because its native to that platform (and it ties into WMI nicely).
Its a balance of using the right scripting language for the right job.
Plus, too many peoples brains explode when they try and read a 2000 line Batch File with "functions", loops, and all manner of other obscenity.
So that explains why I am smitten with The Joker!
Then it must just be The Brain with some plot to take over the world via Maniacal Law Suits. He must have left Pinky in charge of WB.
We all know that the balance of power is required, so it is best to ensure that the current term is alternated.
Damn, I expected you to say "not if they are called crapweeds, or stenchblossoms"...
I tried it, and my system just said "The system cannot find the path specified.".
I even had cygwin installed :D. Though I probably shouldn't try that in the cygwin console.
I remember my second foray into obfuscation. A simple little function ended up like this:
#include
#include
#include
#include
int main(int(c),char(*a[])) {(!a[1])?exit(1):(*a[1]==0)?exit(getch()):(*a[1]==32)? printf("%c",*(a[1]+1)):exit(main((int)((strcpy(a[0],++a[1])||-1)&(6)),a));exit(main((int)((strcpy(a[0],++a[1])||-1)&(-40)),a));}
I didn't know I had it in me... the first started out elegant.
l(char*O){return*O?1+l(++O):0;}
also, this one was fun to write up on the university board during our first C++ tutorial just to watch all the beginners heads explode. They dared to ask for a simple function ;).
I never went for obfuscation again after this, I learned my lesson.
Because Possession is 9/10 of the law? I thought that was supposed to work in favour of the person who held possession...
For VBScript I tend to use google to find specific things. I haven't found one site that really covers enough in one place. Most people will write off VBScript being that it is Microsoft and Windows is evil and all that.
Seeing as I use VBScript mainly for natively being able to pull information from LDAP directories from a Windows XP machine I must at least defend it.
MS Scripting Guy, DevGuru, 4GuysFromRolla, and last but not least ActiveXperts.
It depends if I want info on WMI, LDAP, or general WSH Objects.
For VB or MSVC++ its MSDN.
The main source of information just is.
*Ducks*
Or "I'd tap that"?
If you think we have forced Telstra to open their network you really haven't seen outside of whatever city you are living in. I have no choice for ADSL2+ except bigpond. If it was shared, the way it was supposed to be, then any other ISP could be recieving my business.
As it is I choose to wait until they finally do open it up to competition. ADSL1 for me until then.
*sigh*
At least for now we don't have the throttling of service going on too rife. But thats probably because we are paying exhorbitant fees for poor service instead of the kind of prices we could be expected to pay in a free market.
Have it tunnel out instead? On Port 443? Then it just looks like HTTPS traffic. This obviously doesn't work from behind a Proxy, but should get you through most Firewalls.
I believe the submitter was thinking that the ISP would pass the cost on one way or another. If the ISP pays to improve Infrastructure, ultimately the Consumer pays (at the moment).
Well, now that you mention it, at least it should give you some idea BEFORE reading the article what bias it has, so you can turn on your bullshit-meter accordingly to help you filter out the shit from the truth. Might actually have a purpose after all.
I guess this means that we can expect some form of "Blews" Screen of Death
Why do they need lasers at the Sydney Cricket Ground? Do they have Streaker control issues that Andrew Symonds cannot manage? Or did you mean the SGC (Star Gate Command)?
I use WMIC for doing WMI through CLI. I prefer the control I get over the commands by using WMIC, and I can call it via a Batch file or I can directly interface with WMI through VBScript *shudder*. I am dealing more with UNIX now though, as it hosts some of our big corporate apps.
I think what they mean is that by downloading the latest Britney Spears track, you are likely to require heavy drug use to forget everything you just heard.
Wait! If they can grow them bigger then we all really could end up with a heart as big as Phar Lap's.
In VB you have to "re-write the entire class yourself"? What happened to inheritance and overriding methods? Or are you talking about the NEW AND IMPROVED VB 6? Not that I'd use VB for anything other than what is specified by my Uni, but clearly you do not understand the language as stated in your post.
Ah, but when you have CE/ME/NT shackled to your feet, they will pull you endlessly into the blue depths.
I was wondering why my food tasted bad, and after eating my jaw was feeling loose and mobile. At least the food went down easily.
Funny, in most of Australia we still can't get more than 1.5Mbps. So you are in one of the metropolitan areas I assume. Relative to a lot of places in the world, that is still a lot of money to be paying. I have to pay that much to get over 10GB capped (shaped) download on 1.5Mbps.
The Gorrilla Children would evolve into a creature far more advanced than your average Windows User? Oh no! I am a Windows User! *ducks*