Packetslave Industries

This is my blog. There are many like it, but this one is mine.

Python Class and Object Attributes

In [1]: class Foo(object):
   ...:     bar = 123

In [2]:
Out[2]: 123

In [3]: f = Foo()

In [4]:
Out[4]: 123

In [5]: = 234

In [6]:
Out[6]: 234

In [7]:
Out[7]: 123

In [8]: del

In [9]:
Out[9]: 123

Sort Files With Underscores First in Linux

On my work Linux box (Ubuntu 12.04, aka “Precise Pangolin”), the ‘ls’ command lists files beginning with an underscore intermixed with other files. In other words, the following four files will be displayed like so:

blanders@arya$ ls
a.txt  b.txt  _c.txt  d.txt

This is not what I want. I want files that begin with an underscore to be sorted first in the list. Fortunately, there’s an easy way to fix this. The sort order is controlled by the LC_COLLATE locale variable. By default, it’s set to:

blanders@arya$ locale | grep LC_COLLATE

If we override this to set LC_COLLATE to either ‘C’ or ‘POSIX’, Linux will do what I want:

blanders@arya$ LC_COLLATE=C ls
_c.txt  a.txt  b.txt  d.txt

I don’t want to override LC_COLLATE globally, since that may cause unexpected effects elsewhere, so let’s just override it for the ‘ls’ command:

alias ls='LC_COLLATE=C ls'

blanders@arya$ ls
_c.txt  a.txt  b.txt  d.txt


How Many Pingable Devices Do You Have?

A Google+ post from a colleague reads:

Make a tally of all Internet-connected devices in your home. Only count devices that ping (so dumb switches and such don’t count)

I decided to count mobile devices that are usually on the network when I’m at home, e.g. phones and tablets.

  • iMac 27” desktop
  • Macbook Pro laptop
  • iPad 2
  • iPhone 5
  • Playstation 3
  • Panasonic Viera TV
  • Foscam FI8910W wireless camera
  • Synology DS1511+ NAS
  • Buffalo LinkStation Pro Duo backup NAS
  • Withings internet scale
  • Cisco ASA 5505 firewall
  • Netgear WNDR3700 wireless AP
  • HP 2811 managed gigabit switch

Finally Some Raid Drops!

After two solid weeks of nothing but gold from raiding, I finally got some upgrades this week!

I also finally got the last 2 drops of Sigil of Power to complete The Strength of One’s Foes. Now I just need to re-run ToES again next week to kill the Sha of Fear and get my Crystallized Horror.

I also broke down and bought Enchant Weapon – Jade Spirit and a full set of level upgrades for my Giorgio’s Caduceus of Pure Moods.

Only a couple more 400-level items to replace before I’m done with Chidori unless I start raiding for real. Don’t think that’s going to happen. I just don’t have time to get back into the grind more than I already have.

On an amusing note: a Druid healer in last night’s raid got beat in healing on Sha of Fear by the DK main tank! That’s just sad.

Tiny WoW Update

Not a lot going on in the WoW world. Still raiding LFRs every week, but not a lot of useful drops. I did build up enough Valor points to get Ring of the Shado-Pan Assault, which was a nice upgrade.

Currently working on maxing out Valor points every week to get Wisp-Weave Pantaloons, or Bracers of Shielding Thought, depending on what drops I get in the mean time, but that’s going to take a while.

Hit an amusing milestone on my Warlock tailor this week: I’ve finally run out of new recipes to discover, I think. Three days in a row of no discovery when crafting Imperial Silk. Need to get one of the recipe addons to see which ones I’m still missing.

Another Productive Week of Raiding

Couple of nice pieces tonight from some ToT raiding:

Finally got enough Valor points last night to pick up Necklace of the Terra-Cotta Mender and replace my last blue.

Got Giorgio’s Caduceus of Pure Moods last night, but ended up not using it, since I also got Giorgio’s Caduceus of Pure Moods. Combined with Venomlord’s Totemic Wand, which I already had, main-hand/off-hand is a better mix than the staff.

Also got a nice robe upgrade with Robes of Static Bursts, although still several better slot items there to work towards in the future.

Catching Up on WoW

Ran a bunch of LFR instances this week, with a ridiculous amount of Gold drops. Only got one new piece: Durumu’s Captive Eyeball.

I did manage to hit Revered with the Klaxxi, which let me finally get my rid of my blue belt in favor of Klaxxi Lash of the Seeker.

Tonight’s goal is to do Heart of Fear to hopefully get a leg upgrade, and possibly Mogu’shan to try for an off-hand, although neither are huge upgrades. Mostly, I want to max out my Valor points for the week so I can get Soothing Talisman of the Shado-Pan Assault next week.

Throne of Thunder!

I’d been stuck at an ilvl of 470-478 for the past several days, which prevented me from doing Throne of Thunder LFR (minimum ilvl 480). Tonight I ran the first half of Mogu’shan Vaults and didn’t get a single drop, even using Mogu Runes of Fate for extra rolls. I was annoyed, since I was now saved to all available raid content.

Then, I had an inspiration: I bought a Golden Lotus rep ring, Simple Harmonius Ring, even though it couldn’t be equipped (I already have Leven’s Circle of Hope in that set). Just having the second ring in my bag, though, put me over 480.

All well and good, but I’ve now “wasted” 625 valor points on a ring I can’t wear. It would be slighly useful for offspec DPS, but I have all the stats I need there for doing dailies and scenarios.

Fortunately, now that I’m 480 I can LFR for Throne of Thunder, where ilvl 502 gear drops. Into the troll mines I go! Fortunately, the drop gods were very kind to me:

Once I got both drops, I hopped back to the Golden Lotus quartermaster (still within the 2hr cooldown) and sold back the unneeded ring to get my Valor Points back. Still 480, sweet!

I have two bosses left in ToT for the weekend, then I’m done raiding until Tuesday when things reset.