PowerShell Hell

Every programming language has it’s idiosyncrasies, and sometimes it seems like language authors go out of the way to be different. Enough that a seasoned polyglot can benefit from a cheat sheet for keeping track of even the simplest things like if/then/else syntax (elif? elsif? elseif? else if?).

Coming from a bash/Perl background, I am beginning to like Windows PowerShell. The object pipeline capability brings the familiarity of Unix pipes with a more modern object-oriented approach. But you must take the bad with the good, and there is some bad. There is a special hell reserved for the developer of this particular ‘feature’ that I was wrestling with today…

(continue reading…)

Share/Bookmark

CentOS/RHEL GnuTLS Dependents

Last week’s announced GnuTLS bug is a serious one, but do you know the ramifications? Many articles painted Linux with a broad brush, claiming Red Hat, Debian, etc were deeply impacted. While it is true that the GnuTLS library is included in all distros (including CentOS and other RHEL flavors), it may not be widely used.

GnuTLS is licensed under LGPL. The alternative OpenSSL library is licensed under a combined BSD(SSLeay) and Apache 1.0 license. Some distros (notably Debian-based) don’t appear to like the licensing complexity that OpenSSL brings, so GnuTLS may be preferred. But many RHEL packages do not seem to be as fearful.

The following command will show all packages that are dependent on GnuTLS. (Which is not to be confused with “yum deplist” for dependencies.)

repoquery --whatrequires --installed --recursive gnutls

For CentOS and others of similar ilk, it is likely that you’ll find that OpenSSL has more dependents than GnuTLS.

PS: a gnutls patch has already been released, so get a jump and install it. Much is made about the need for dependent apps to regression-test, but don’t wait. If all the patch did was correctly fix the goto logic that left a truck-sized hole, I hardly think the fix could be any worse.


TV Tech In Real Life #1

In this week’s episode of “The Following”, Ryan Hardy receives a threatening video via SMS on his BYOD phone. He hands the phone to an FBI tech who plugs in and instantaneously has the video play on the big screen for all in the Command Center to see.

In Real Life, they would have spent 15 minutes futilely looking for the proper cable, another 15 trying to get AirPlay or GoogleTV to sync, and ultimately they’d end up with 10 people hovering around the small screen to watch.


IT Language Lessons

In “Three Ways CIOs Can Ensure Better Communication“, Paul Mandell of the Consero Group suggests methods to improve communication between IT and partners: encourage open dialogue, build strategic relationships, and establish Finance as a common language. I don’t want to pretend that I know more than the Fortune 1000 CIOs that came up with such a list, but I don’t feel particularly enlightened after digesting it.

Don’t get me wrong, “encouraging open dialog” goes beyond the ‘duh!’ advice that it might initially appear to be. It suggests more than just a passive open-door policy, instead actively soliciting requirements, feedback, and constructive criticism for the department. Nothing wrong there.

And building strategic relationships is paramount for aligning IT to business objectives, so I can’t fault that one. I wasn’t completely convinced of the underlying sentiment, though, since the advice was about exploring “shared interests” and “mutual challenges”. Being a responsive service provider is about doing what’s right for the business, not some bipartisan compromise. But let’s let that quibble slide.

No, the one that struck a sour note was the suggestion of Finance as a common language. While I don’t dispute that IT has financial issues to deal with, the positioning as the one-and-only “bottom line” and universal language is not always true. It smacks of old-school “IT as a cost-center” rather than today’s “agile solution provider for business differentiation”.

It is far more appropriate for finance to be an attribute to consider – one of many, not necessarily a bottom line – in pursuit of a goal. If the objective is cost reduction, then obviously finance plays a major role. But maybe the key objective is security of intellectual property. Or improving communication and collaboration. Or a desire to “eat our own dog food” as a customer showcase. I’ve been in many such situations where finance was hardly a foundational language. In some cases, even the very mention of financial issues during discussions with our business partners resulted in claims that we weren’t listening.

Cost, budgets, revenue impact, and ROI always have a role to play. And partners must certainly be familiarized with IT business drivers. But when money is brought up as the primary dial-tone for the conversation, it dulls the discussion and puts boundaries on creativity & innovation. It is perceived by the customer as too reminiscent of IT as “the department of ‘no’“. Everyone in the room has had the experience of wishing for a Ferrari while only able to afford a Yugo, so there’s no need to over-do it.

So what is the “common language”? The answer was already there. In an IT organization properly aligned to business objectives, it is the business objectives themselves that provide the common language. Don’t think in terms of us vs. them trying to find some middle ground via Finance. Instead, IT needs to learn to speak in terms of “opportunity management”. What better way to be on the same page with your partners than using the most direct language possible?


The Nihilism of Deadwood’s Al Swearengen

With Breaking Bad concluded, went looking for other “quality TV”. I had heard good things (aside from being canceled prematurely) about Deadwood, so it was added to the watchlist. Highly recommended, with some excellent writing and memorable characters.

One standout character in particular is Al Swearengen, the proprietor of the town’s more earthy saloon/whorehouse, played flawlessly by Ian McShane. It was said “when he ain’t lyin’, Al’s the most honorable man you’ll ever meet”. Although not to the same degree as Walter White, he’s something of a bad guy to be celebrated.

Al is, as the Doc says, “an object lesson in the healing powers of obstinacy and a hostile disposition”. Whether acting the role of Greek Chorus narrative when talking to a decapitated head, or strategizing with his more able-bodied cohorts, he had some acerbic lines that underscored a rather nihilistic philosophy of the hard life in the wild west. “Quiet! Al’s got words.”

[Editorial note: Al is a top-flight cusser. I've trimmed all the f**k**g to allow the wisdom of the words to soak in. Also of interest is that these individual quotes, when taken out of episodic sequence, almost make a coherent soliloquy in their entirety.]

In life you have to do a lot of things you don’t want to do. Many times, that’s what life is… one vile task after another.

From the moment we leave the forest, it’s all a givin’ up and adjustin’.

What can anyone of us ever really hope for, huh? Except for a moment here and there with a person who doesn’t want to rob, steal or murder us?

Pain or damage don’t end the world, or despair, or beatings. The world ends when you’re dead. Until then, you got more punishment in store. Stand it like a man – and give some back.

Every beatin’ I’m grateful for. Every one of them. Get all the trust beat outta you. And you know what the world is.

Most of what happens is people being drunk and stupid and trying to find something else to blame for that that makes their lives totally [messed up].

You gotta behave like a grown man, huh? You gotta shut up. Don’t be sorry, don’t look back, because, believe me, no one [cares].

I did not shame myself. I keep an open mind in that area. Kid yourself about your behavior, you’ll never learn a thing.

Worse ways to spend a night, puttin’ shoulder to an idea.

Do not fault them for your own fears of tumblin’ to somethin’ new.

That’s the way with any new idea. Takes the hoopleheads time to adjust.

Change calls the tune we dance to.

Till the race is finished, never mark the wager paid.

Bidding is open always on everyone.

Can you say it straight out before I have a birthday?

Ever wonder if you expressed yourself more directly you might weigh less?

When given to utterances of that type, consider drinking.

An opinion solicited does not equal one freely voiced.

If I sought an echo, I’d now be addressing a mountain.

I need your truthful reply. Lie, I will know it… and death will be no respite.

What a type you must consort with that not fear beatin’ for such an insult.

To work for crumbs or to keep from the lash says maybe a slave’s what you are.

Quit a job before you fall asleep on it.

I wouldn’t trust a man who wouldn’t try to steal a little.

If I bleat when I speak it’s because I just got fleeced.

Sometimes I wish we could just hit ‘em over the head, rob ‘em, and throw their bodies in the creek.

Don’t I yearn for the days when a draw across the throat made resolution.

You can’t slit the throat of everyone whose character it would improve.

You might want to learn how to indicate interest in a girl other than murdering another person.

I’d rather try touching the moon than take on a whore’s thinking.

Who amongst us hasn’t wanted to shoot at women once or twice?

Announcing your plans is a good way to hear God laugh.

Some shit’s best walked through alone.


My Top 25 Songs (2013 Edition)

A bit late, but no one else is paying close attention (or probably cares, for that matter). Here is my iPod play rankings for 2013 releases. Interesting to note that “new music discovery” can emerge from unusual circumstances, as Junip edged out the more mainstream OneRepublic “Counting Stars” and Bareilles “Brave” thanks to exposure in the commercial for the Breaking Bad finale…

  1. Lorde – Royals
  2. American Authors – Best Day Of My Life
  3. Fitz & the Tantrums – Out Of My League
  4. New Politics – Harlem
  5. Imagine Dragons – Demons
  6. Vampire Weekend – Unbelievers
  7. Smallpools – Dreaming
  8. Serena Ryder – Stompa
  9. Boy – Little Numbers
  10. Kacey Musgrave – Follow Your Arrow
  11. Haim – The Wire
  12. Delta Rae – If I Loved You
  13. Jake Bugg – Lightning Bolt
  14. Frank Turner – Recovery
  15. The 1975 – Chocolate
  16. Wild Cub – Thunder Clatter
  17. Nonono – Pumpin Blood
  18. The Dear Hunter – Whisper
  19. Jason Isbell – Live Oak
  20. Chvrches – Recover
  21. The Boxer Rebellion – Diamonds
  22. Bastille – Pompeii
  23. The National – Don’t Swallow The Cap
  24. Beth Hart – Bang Bang Boom Boom
  25. Junip – Line Of Fire

Vampire Weekend had my favorite overall album, honorable mention to Chvrches and Haim. Surprised that Lorde was Grammy-nominated for Best Song and Record Of The Year, but missed the Best New Artist trifecta, but then again, maybe it doesn’t matter


iPhone Panoramas

As many have already said, the iPhone is a surprisingly good camera, on par with most high-end point-and-shoots. But on a recent trip to New York, I developed a new found appreciation for it and liken it closer to a quality 35mm. In particular, the iOS7 Panorama mode is actually quite incredible. And this is on a previous-gen iPhone5!

Panorama mode works by joining frames as you pan the camera left-to-right, with up to 180deg field of view. There are some artifacts that you wouldn’t get with a true panoramic lens (see the motion blur of rushing travelers in Grand Central Station). Yet the responsiveness was quick enough to not muddle the messages of the flashing screens in Times Square, and the ability to stitch the frames of Liberty Island despite the rolling of the boat is really quite amazing.

(Click on images for full size.)

Grand Central Station

Grand Central Station

 

9-11 Memorial, North Reflection Pool

9-11 Memorial, North Reflection Pool

 

9-11 Memorial, South Reflection Pool

9-11 Memorial, South Reflection Pool

 

Coney Island Beach

Coney Island Beach

 

Liberty Island, from Miss Liberty

Liberty Island, from Miss Liberty

 

NYC Skyline, from Miss Liberty

NYC Skyline, from Miss Liberty

 

Times Square, W46th

Times Square, W46th

 

Times Square, W45th

Times Square, W45th

 


This Article Is Not Innovative Enough

Yesterday I read a review where the latest Apple Airport Extreme was cited for a lack of innovation. Seriously? For a wireless router?! Innovative?? Aren’t we beating this Apple-is-not-innovative drum a bit too loudly? Let’s get real. (continue reading…)


Kali on ChromeBook

http://www.kali.org/wp-content/uploads/2013/03/k-blog.pngI recently purchased a Samsung ChromeBook. Not for ChromeOS, but for the fact that Kali Linux – the network pen-test successor to BackTrack – announced a ChromeBook build. I figured I couldn’t go wrong with $250 for a Linux wireless ultra-portable dedicated to network testing. Turns out perhaps I could go wrong. (continue reading…)


Google Glass: Coming Soon To An Interaction Near You

Google Glass is in limited release to a select group of beta “Explorers”. Robert Scoble is one of them, and he just posted the most stunning testimonial that Google could have hoped for. If techies weren’t drooling over this new gadget before, they are now. Comments to Scoble’s piece were overwhelmingly positive and frothy, but there are skeptics out there. I’m not one of them, but…

(continue reading…)


  • DarkSideGeek on Twitter

  • Categories

  • New This Month

    October 2014
    M T W T F S S
    « Jul    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Copyright © 1996-2010 The Dark Side Geek. All rights reserved.
    Jarrah theme by Templates Next | Powered by WordPress