Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: Silly SQL trick 2

Tonight's task is to manually categorize a rather flat tree structure in SQL (currently two levels only) by reading the top level entry and assigning it and its children to a category. On a lark I gave this a shot:

update tree set category=1 where 5 in (id,parent);

and it worked in PostgreSQL.

Why? Because I'm sitting here reading the list of top-level entries in one window while using psql in the other and pressing up to edit the previous query. Before I tried that I had

update tree set category=1 where id=4 or parent=4

so I'd have to retype TWO numbers instead of just one.

User Journal

Journal Journal: Today's two minutes of hate 2

Today's rage divides evenly between:

  1. people who type site addresses into the search box instead of the address bar
  2. gotomeeting.com for not putting "join a meeting" link on their search engine landing pages

That's 15 minutes of my life I'll never get back.

User Journal

Journal Journal: Today's two minutes of hate

Windows Media Player is a flaming pile of shit.

Trying to copy notes from a webinar, and every time I press the pause button in WMP the video keeps playing for another couple of seconds. When you add to this the fact that it takes WMP a couple of seconds before it will start the video again when I'm trying to click on the bar to seek, the tooltip on the bar is "Seek" rather than the time it's going to jump to when I click it, and the fact that there's no x0.5 or x2 or any other speed control but a jerky skiptastic fast forward button, it all adds up to an enormous hassle.

This is turning a task that SHOULD have taken a bit more than 30 minutes (the length of the video) into something I've spent the whole morning on. Good going folks!

After failing to get it to work in MPC or VLC, I managed to get it working in mplayer, but apparently it's only seekable to the nearest 5 minutes or so in there, which probably means that the g2m4 codec put next to no keyframes in the video. But at least mplayer has speed control so I can cover the ground I've already covered quickly, and when I press the space bar it stops immediately.

User Journal

Journal Journal: This thing still on? 4

I'm writing this from Rose Barracks in Vilseck Germany. I'm Stationed here as a Scout in US Army. I'm also married with kid on the way. Those two sentences do a poor job of summarizing the last few years of my life if anybody is still active in this Journal clique I'll let you know the rest.

Miss you guys
-red5

User Journal

Journal Journal: Why the iPad mini works for me

Ever since tablets were first on the horizon (post-iPhone and Kindle but pre-everything else) I always felt that one the size of a paperback would be great. When the iPad came out at 10", I wasn't sure if I'd like that size. My first thought would be a good size for looking at but kind of big to hold. I checked it out (played with friends', had a loaner from work, etc.) and yes, I didn't care for it much. I bought one to do a bit of testing and development on and I figured I'd try to use it and see if I grew to like it. I didn't, and sold it a few months later. (I bought a refurbished iPad 1 shortly after the 2 came out, so it was cheap, and I sold it for not much of a loss -- basically I rented it for like $8 a month, which wasn't bad since it was for work.) It's just big enough that it really takes up some space whenever you set it down, and while it is amazing, overall, that you can get so much power into 1.5 lbs, that's just a bit much to hold and look at for any amount of time.

I ordered the Mini as soon as I could and it arrived this morning and it's great. It's a great size and very light. The screen, while not retina, is still good. We were all happy with our original iPhones before the 4 came along, right? :-) The pixel density of the iPad mini is the same ~160-163 ppi as the original iPhone, the 3G, and the 3GS. I've seen (and love) retina screens but I can live without them.

The bezel on the sides are indeed thin but the whole thing is so light and thin (not referring to the overall thickness -- I mean, not wide, side-to-side) you just let it rest on your fingers (which easily reach about 2/3 the way across the back) and then you just need a bit of pressure from your thumb to hold it in place. It's not like the full-size iPad that you really need a firm grip on so thumb coverage isn't a huge problem.

Speaking of width, thumb typing in portrait is great. On a full-size iPad, the only way I could ever type was by holding it flat with one hand and stabbing the screen with a couple fingers of the other hand, which causes the whole thing to wobble around. When holding the Mini in portrait mode, your thumbs can easily touch each other so it's a cinch to hit every key. (Holding it in landscape, it is again a bit of a stretch.) The split keyboard is a good solution but I'm personally not a fan -- if I were typing a word like 'stew' I might use my right thumb for the 't' -- so I like to have it undocked but merged. (It has 3 modes: docked (stuck to the bottom), floating and split, or floating and merged.) I just hold the tablet in a way that's comfortable and then adjust the keyboard height so it's in just the right spot. My one complaint is I wish Apple would just put a damn number row at the top of the thing, at least in portrait mode. There's plenty of room for one more row of buttons.

The weight is fantastic. The iPad 2 and iPad (4) are right about double the Mini's weight: 0.69 pounds versus 1.33 and 1.44. (0.69 x 2 = 1.38.) The iPhone 4S is 0.306 pounds and the iPhone 5 is 0.247 pounds. So the iPad mini is, in fact, closer in weight to an iPhone than a full-sized iPad. Holding an iPhone in one hand and the Mini in the other isn't drastically different -- you're talking a about a difference of about 3-4oz between those two versus an 8-ounce difference between the Mini and its big brother.

Apple products aren't for everyone. Tablets aren't for everyone. Of the people that like tablets, 7- or 8-inch models aren't for all of them. That's fine with me. I'm just happy to finally have the tablet I want, in the size that I want, at a price that -- while not what I was hoping for -- is not unworkable. :-)

User Journal

Journal Journal: UI WTF 1

UI Elements that only operate when the stars are properly aligned annoy the hell out of me. Especially when they do something I want to do on a regular basis. All those grayed out menu items with no hints as to how to activate them are one thing, at least you know there's something there you can use, but sometimes there's things that make absolutely no sense at all...

If you're using the current Chrome, right click the reload button. OK, now open the developer console (Ctrl+Shift+J). Right click the reload button again. An option to dump cache and reload! Pretty cool, eh?

I don't even know what the fuck inspired me to try right clicking the reload button in the first place...

User Journal

Journal Journal: Get off my Lawn! 6

I feel old, guys. I feel like the old man sysadmin with the Unix Beard and suspenders (which I continually think of as a halloween costume, less and less ironically). My coworkers are all... what would have been slashdotters had they not found digg or reddit, or whatever it was.

These are "kids" who grew up with linux. (They're all 30.) But they don't have the base knowledge that I expect them to have. They only know bash. They mostly know Ubuntu and Red Hat, although the one 'sysadmin' type dude knows virtual machines with Xen, and seems to know what he's doing most of the time.

I figured I'd pick up python, because I ordered a raspberry pi, and it seems that's what all the cool kids are doing. (I get along fine with shell and perl for most of whatever it is I do around here.) The advice I got from one of my coworkers was that I should "uninstall the IDE." IDE? For python? Seriously? It's interpreted, you use a goddamned text editor. Apparently that's one of the 'tips' from "Learning Python the Hard Way." (I'm reading Programming Python on my nook, FWIW. And I'm already yelling at it, as the examples are how to create a database from your filesystem with pickle, because seriously, if you're managing peoples' salaries, you don't want your data in flat files, or necessarily in a readable format to your other employees. But that's my cross to bear.)

When I got home, I started ranting about that to the Benny. Frothing at the mouth kind of ranting like I used to be able to do. Who uses a goddamned IDE for an interpreted language!? There's no "I" for your "DE". When you're writing C, in a complex environment, sure. When you're writing Obj-C for your iPhone app of the year, fine. You have libraries, you have interdependencies, you have reasons to have a debugger and a compiler. Python is interpreted. There's no need for these things.

Goddamned kids these days. In my day, we had emacs and vi, and flamewars about both. There was no IDE for writing shell scripts. There was no IDE for perl. There wasn't even really decent tab completion! We used 'more' instead of 'less'. We knew how to pipe things to awk and grep. We used which instead of locate. And we liked it, damnit!

I'm running OpenNMS on Ubuntu at work, using vi (technically vim) to edit all the xml files and java.properties style files. I don't run KDE, Gnome, or any other desktop on the damned thing. It's a server, for pete's sake. Not that it's lacking RAM or CPU for me to run that, but because I'm old, and old-school. Some of my coworkers (and I use that word loosely, as I'm a department of one) run linux on the desktop ... not because all the tools are there and work, necessarily, but because our IT group doesn't know how to deal with linux, and they can get away with it.

User Journal

Journal Journal: Election Campaign Forecast 7

On the Democrat side, I expect to see more "adjustments" in the jobless rate. On November 7th, we'll be back to 9%.

On the Republican side, I expect to see more refineries have mysterious fires, power outages, and pipeline closures. On November 7th, they'll all suddenly be fixed.

User Journal

Journal Journal: A Shout Out to my Peeps!

Word up to the Shane of Westgate for confirming all my stories.

DG

Lord of the Rings

Journal Journal: [Beloved] A Pretty Song (redux) 2

From the complications of loving you
I think there is no end or return.
No answer, no coming out of it.

Which is the only way to love, isn't it?
This isn't a playground, this is
earth, our heaven, for a while.

Therefore I have given precedence
to all my sudden, sullen, dark moods
that hold you in the center of my world.

And I say to my body: grow thinner still.
And I say to my fingers, type me a pretty song.
And I say to my heart: rave on.

-- Mary Oliver
User Journal

Journal Journal: Site Maintenance Alert! 10

Only the Slashdot frontpage will be accessible tonight between 23:00 and 23:15 EDT while maintenance is occurring.

"... Once maintenance is complete, the Slashdot frontpage will no longer be accessible."

(Interesting. When I preview this, the blockquote tags are ignored. Oh well, I'll add an i tag so it blockquotes anyway)

User Journal

Journal Journal: Joys of Windows #1245 3

Print document, spooler crashes. Document cannot be removed from queue because spooler is not running.

Reboot computer. Document in queue immediately tries to print, spooler crashes.

Solution: Turn off printer, reboot computer. Delete document from queue. Turn on printer.

You'd think that critical infrastructure like the print spooler would be a bit more robust. Or at least be able to detect that it is repeatedly crashing on a single document and ask the user if they'd like to cancel the offending print job. Or make cancelling print jobs not dependent on the spooler service. Also, apparently user permission to manage print queues does not extend to restarting the print service itself.

Aside: You know how when you say a word over and over it starts to sound funny? Apparently Chrome gets the same way too... it didn't start highlighting "spooler" as a misspelled word until I wrote it about 5 times.

Canada

Journal Journal: My new career path. 24

More here.

As a bonus , I'll probably soon reveal the unbelievable story of how I acquired my legal knowledge - by doing something nobody else ever has, and which, until now, would be considered pretty much impossible.

I'd rather not, because there is some danger involved, but it's necessary to achieve my goals in an open and transperent fashion.

Advice and help sought and welcome.

Open Source

Journal Journal: Yet another open source failure 14

Trying to print an envelope address in openoffice under linux? What a waste of time.

Do the people who code this sh*t actually ever use it? Or do they never use anything else, so they simply don't know that it's possible to do better?

Easy prediction - open source will never be competitive. When it's so bad that I'm tempted to throw a copy of XP (or even Wn95) on the box because linux on the desktop is still 2 decades behind the times anyway, there's a fundamental problem that obviously will never be fixed.

I really hate them, but my next computer is going to be a mac.

Slashdot Top Deals

What hath Bob wrought?

Working...