Windows Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 9 April 2013

How to Not Suck at Scripting, Part 1

Posted on 21:46 by Unknown
I hear this ALL OF THE TIME from IT guys who have somehow not caught the script-writing bug: "I wish I knew how to write scripts". Usually it's followed by a deep breath, a sigh, and staring off either up into the ether, or down at the ground.  I'm here to tell you how you can find that bug, and make it bite you in the ass. This is Part 1 of a 2-part article.  This part will focus on the "why" aspects.  Part 2 will focus on the "what" and "how" aspects.

The Basic Basics

First off, before I get into the enumerated list, I have to explain what is this thing we call "script-writing" or "scripting".  A "program" or "application" generally implies, or denotes, program code that has been compiled into a new binary file that can be executed by the operating system, or by another (aka "host") application.  A "script", on the other hand, is generally *not* compiled into a new (i.e. binary, hex, octal, whatever) file, but left "as-is" in the original "source code".

Source Code is the stuff you type with your own sweaty, trembling Red Bull-infused hands.  If you use something like Windows Notepad to open a program file, and you can actually spot words or phrases in your native language (e.g. English, German, etc.) it's probably either source code or script code.  If you open it in Notepad and it looks like the following crap, it's probably compiled code.

MZ
(*&(#*$)@&)#($*@&#$*&^(000011100-11)!00*!&^0010010101100011100(*&@#][}{}\?<>??::^!@~&^%&^0111011010101001]]]

The simplest giveaway is the file name extension.  I'm not going to back to 101 level stuff here, but you should have a clue that .EXE files are programs or applications, while .BAT, .VBS, .JS, .PS1 and .PY are usually script files.

One important thing to remember is that while there are many scripting languages, they are all basically serving a common purpose:  providing a low-cost, low-complication resource for system admins to automate tedious or repetitive tasks.  Sure, some languages offer more robust features for certain tasks than others, but in the end, it's a matter of matching up the tools for the jobs.

This discussion dovetails a bit with my recent post titled "Why Every SysAdmin Should Learn to Write a Script", however, this one will go in the direction of establishing a few basic technical ground rules.  Stay tuned for more... :)
Read More
Posted in automation, network administration, programming, scripting | No comments

Wednesday, 3 April 2013

Another Book Announcement and More!

Posted on 19:26 by Unknown
I've just published another book!  Yes! I know exactly what you're thinking:  "What the...? Why do they let him keep doing this?!  Have they no mercy upon our eyeballs?!"

Well, in the interests of science, humanity, environment and the ever-pressing need to keep gasoline in the tank of my car, I've decided it was time to pull together as many of the mindless stories I could from my old-as-dirt years working in the world of IT.  That was a very long run-on sentence.  My high school English teachers are probably rolling over in their graves right now.

There's also quite a lot of blabber about how I got into the world of IT and how I swam through the sea of CAD into the ocean of Infrastructure Management and Software Development. It really is fascinating.  Not how I got into IT, but the fact that I could construct a sentence that almost sounded coherent.  Wow!

What's this New Book All About?



The new book is called "You're Only as Good as Your Last Mistake".  Sub-titled "25 Years of Boneheaded Reflection and Stupid IT Stories to Dull your Senses".  It's a blending of a little biographical nonsense, some seriously pretentious pontification, some articles adapted from my blog (this blog), and stories about things going bump in the electronic night. I suppose it could be called a BioTechieHumorFailDisasterFest.  Uhhh.  Yeah.

It's available on the Amazon Kindle store in every country where Amazon can sell books (US, UK, France, Germany, Italy, India, Japan, Spain, Canada and Brazil, as far as I know).

Here's the GOOD NEWS!

  • It's only $2.99 (USD) and whatever that translates to in other currency
  • Don't have a Kindle?  No problem.  You can download a FREE Kindle Reader app for iPhone, Android, Blackberry, Windows Phone, Windows XP/Vista/7/8, Mac OS, and ...
  • You can read Kindle books online in almost any web browser using the Kindle Cloud Reader!
  • If you are an Amazon Prime member, you can "borrow" eBooks, including all of my eBooks, for FREE!
What's the Catch?
  • I only ask a small favor:  It's a BIG favor for me, and a small effort on your part, but I really would appreciate honest reviews of my books.  If you've purchased, or borrowed, any of my eBooks and actually read them (without pausing in the middle to stab yourself in the eyeballs with a fork), please go to the Amazon web site for the book(s) you've read and submit your opinion on them?
  • You can start at my Author Profile page to make it easy.
  • Thank you!
Sample: "Where it All Began: From Doritos to Digital Ships"
"Chronologically it's weird, because some of those jobs were in parallel with others.  For example, in that maze of titles I managed to fit in roughly five good years of rock and jazz band, but whatever. I also weaved in about ten years of artwork (painting, drawing, squishing clay stuff around, and so on) which never earned me more than "Hey man, that's cool!"  I remember responding a few times with "Cool enough to buy?", and the response to that being something like "Yeah! By somebody.", but somehow "somebody" could never be found. 
Sometime in early 1984, Mark, one of my brothers stoned friends, walked into our kitchen while I was maniacally inhaling a bowl of Fruit Loops (my favorite cereal at the time).He stopped at the doorway to exclaim "I got a job, dude!" to which we all replied with stunned silence.  I decided to inquire, saying something intelligent like "Oh yeah? What?"  
He explained that he was hired as a "Naval Designer" at a local Naval engineering firm, and went on to indulge us in this magically mysterious thing called "benefits", and something even more interesting, called a "salary". If I hadn't grown up in a Navy town (okay, a Navy "region"), I would have assumed a "Naval Engineer" designed belly-button replacements or something. 
Most of what Mark said was really fascinating, even though I could barely hear his muttering over my own cereal-chewing noise.  The best way to describe him is to think of someone who looks, sounds, and acts a lot like Jeff Spiccolli (Fast Times at Ridgemont High), only not as funny, has a mustache and wears glasses, coming in and telling you he was hired at an engineering firm.  You get the idea. 
Somewhere towards the end of my bowl of cereal Mark said something that perked my ears up.  I think it was something he mentioned about there being more positions needing to be filled, and that they paid pretty well. As it turned out, there were roughly twenty openings for "Drafting Apprentice" jobs, so I ran down and applied.  After a short interview ("Can you hold a pencil, boy? Alrighty! You is hired!"). 
I was finger-printed, scanned, questioned, photographed, probed and stamped with a badge and told to show up at 7:30 AM the following Monday.  That led to five or six years of my work as a Drafter/Designer in the U.S. Naval engineering field." 
Sample above (C)2013 David M. Stein, All Rights Reserved. May not be reproduced or copied, transmitted, in whole or in part, for any purposes or derivative use, without explicit written consent of the author (me). And let's face it: If you're so desperate that you'd consider copying this literary fast food schlock, well, you may need some serious medication already.
Read More
Posted in amazon, authors, books, humor, kindle, publishing, stories, stupidity, writing | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Voting Time: Help Me Out?
    I need to get a better view of how I should manage this blog if I'm going to keep at it. I'd like to know how you typically discover...
  • A World Without Competition
    Try to imagine what things would be like today had there not been fierce competition in certain key parts of our world.  I’ll give you some ...
  • Book Update
    I posted some gibberish a few weeks ago about another book project.  Well, I'm getting close to wrapping it up, so I thought I'd go ...
  • Cost
    Software technology, like any technology, provides a means to solving problems.  Some big. Some small.  Some that help.  Some that hurt.  An...
  • Windows 7: Default User vs All Users
    A lot of confusion seems to occur with understanding the difference between the "Default User" profile, and the "All Users...
  • Time to Give Props
    With the ever-expanding volume and breadth of information on the Internet today, it's easy to focus on my own thoughts, experiences, ide...
  • Table of Contents (Preliminary)
    Here's the preliminary Table of Contents for my new book "The AutoCAD Network Administrator's Bible - 2013 Edition".  I...
  • The Nicest IT and IT Vendor Folks I Know
    I've ranted many times before how it's unfair to "hate" an entire company, without providing a rationale for it based on s...
  • Windows 8
    Two small, yet irritating things, that I hope Windows 8 addresses with respect to Windows 7: Being able to put the Recycle Bin in the S...
  • Stupid Assumptions
    After years of watching sci-fi TV shows, movies, etc. it's finally come to a point where even the so-called brightest of our authors and...

Categories

  • a
  • activation
  • active directory
  • advertising
  • agile
  • agility
  • amazon
  • american
  • apple
  • application virtualization
  • applications
  • art
  • articles
  • asp
  • augi
  • authors
  • autocad
  • AutoCAD Autodesk
  • autodesk
  • autolisp
  • automation
  • automotive
  • backups
  • batch
  • beer
  • beta
  • blackberry
  • blogs
  • bongloads
  • book
  • books
  • Books writing kindle amazon technology business projects
  • browsers
  • business
  • cad
  • career
  • certification
  • chrome
  • city government
  • civilization
  • cloud services
  • cmd
  • cmmi
  • comedy
  • command
  • community
  • computers
  • conferences
  • config manager
  • consultants
  • consulting
  • contracting
  • cranium drainium
  • crapware
  • culture
  • data center
  • data mining
  • databases
  • deployment
  • directx
  • DLL
  • domains
  • dumb
  • earth
  • economy
  • editor
  • education
  • election
  • elections
  • employment
  • engineering
  • entertainment
  • environment
  • error monitoring
  • events
  • exchange
  • facebook
  • family
  • firefox
  • flexnet
  • fud
  • fun
  • funny
  • games
  • gary vaynerchuk
  • gmail
  • google
  • government
  • group policy
  • hampton roads
  • health
  • history
  • holidays
  • home
  • html5
  • humor
  • hyper-v
  • iis
  • industry
  • infrastructure
  • installation
  • installshield
  • internet
  • internet explorer
  • interviews
  • jobs
  • jtbworld
  • kindle
  • kixtart
  • lab setup
  • languages
  • ldap
  • learning
  • legal
  • licensing
  • life
  • lifecycle
  • linux
  • lisp
  • logging
  • management
  • manufacturing
  • marketing
  • markets
  • mdop
  • mdt
  • medical
  • messaging
  • microsoft
  • microsoft access
  • military
  • mountains
  • movies
  • mozilla
  • music
  • nature
  • network administration
  • news
  • nook
  • nothing
  • office
  • open source
  • openoffice
  • opera
  • operating systems
  • oracle
  • osx
  • packaging
  • patches
  • people
  • photos
  • podcasts
  • policy
  • politics
  • powershell
  • predictions
  • process automation
  • products
  • programming
  • projects
  • psychology
  • publishing
  • rail
  • reading
  • registry
  • religion
  • reporting
  • reviews
  • rsat
  • rss
  • safari
  • safety
  • sales
  • satire
  • sccm
  • scheduling
  • science
  • scripting
  • search
  • security
  • servers
  • services
  • sharepoint
  • shopping
  • sms
  • social stuff
  • society
  • softgrid
  • software assurance
  • software deployment
  • software development
  • software packaging
  • sony
  • speaking
  • sports
  • sql express
  • sql server
  • statistics
  • Statistics news marketing
  • steve jobs
  • stories
  • stuff
  • stupidity
  • symantec
  • sysinternals
  • system center
  • systems architecture
  • t-sql
  • taxes
  • technet
  • technical support
  • technology
  • TED
  • ted talks
  • testing
  • textpad
  • thoughts
  • traffic
  • training
  • transportation
  • travel
  • troubleshooting
  • tutorials
  • twitter
  • ubuntu
  • unattend
  • unemployment
  • updates
  • upfront ezine
  • utilities
  • vacation
  • vba
  • vbscript
  • video
  • virginia
  • virginia beach
  • virtualization
  • visual lisp
  • vmware
  • vmware server
  • voting
  • war
  • weather
  • web
  • web browsers
  • web development
  • web sites
  • windows
  • windows 7
  • windows live
  • windows server
  • windows server 2012
  • windows8
  • winpe
  • wise
  • wmi
  • work
  • writing
  • ws08
  • wsus
  • wwa
  • x64
  • xml
  • ze frank

Blog Archive

  • ▼  2013 (37)
    • ►  October (1)
    • ►  September (5)
    • ►  August (8)
    • ►  July (2)
    • ►  June (4)
    • ►  May (4)
    • ▼  April (2)
      • How to Not Suck at Scripting, Part 1
      • Another Book Announcement and More!
    • ►  March (2)
    • ►  February (8)
    • ►  January (1)
  • ►  2012 (120)
    • ►  December (14)
    • ►  November (12)
    • ►  October (10)
    • ►  September (7)
    • ►  August (3)
    • ►  July (2)
    • ►  June (6)
    • ►  May (6)
    • ►  April (20)
    • ►  March (16)
    • ►  February (18)
    • ►  January (6)
  • ►  2011 (343)
    • ►  December (15)
    • ►  November (23)
    • ►  October (27)
    • ►  September (35)
    • ►  August (29)
    • ►  July (17)
    • ►  June (23)
    • ►  May (20)
    • ►  April (38)
    • ►  March (61)
    • ►  February (54)
    • ►  January (1)
Powered by Blogger.

About Me

Unknown
View my complete profile