Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
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: Mitt Romney's Attitude 5

The Guardian has a very insightful and informative editorial called Mitt Romney and the myth of self-created millionaires.

Although I'm British, the US Presidential elections are 6 weeks away, and this man stands a good chance of soon becoming the Most Powerful Man in the World, which will affect us all.

This is the man who recently wrote off Democrat supporters (47% of Americans) as being feckless, lazy leeches on society.

Ubuntu

Journal Journal: Linux: adoption by those who are fed up? 6

Today, I had the most peculiar experience. A (female, and pregnant, but that has no importance at all for this story) cousin of mine complained on Facebook about a virus infection on her Windows machine (I assume Vista, but I actually didn't bother to ask). Locked out by one of these ransom viruses. Worst part is that she did have an up-to-date antivirus sponsored by the Bank where here partner works.

I don't mind helping, but -of course- my first comment was. "Drop that crap OS and go to ubuntu.com and get a real operating system". I NEVER expected her to actually do that. Well, she jumped on the occasion. She was also very happy to hear what a live CD is and that she could recover her data from her current installation using the LiveCD and copy it to a USB disk. So, she managed to burn the ISO, boot to it, copy her data and install the whole thing. Basically without me helping except saying that it could be done. I also explained what dual booting was and she could do that.

She asked me one question: Why do you use Windows? My reply was: I don't, unless I want to play games (the non-Flash variants. I illustrated Flash games with FarmVille). The tipped her over: She'd go full Linux.

I was completely baffled... You have to imagine the frustration Windows had to put on her so that she would try something completely unknown, just because I say I use it.

First reactions were: Hey, this thing already has Firefox,,Thunderbird and an Office suite. Wow, I have four workspaces (she means virtual desktops). She found Ubuntu Cloud (5GB seems a lot to her, I wonder where else she has been?) and -while not Ubuntu specific- I explained her what Firefox Sync is. She also seemed to like the idea of the Software Store (I compared it to Apples App Store, I know not the same, but she has to understand what it is) and steered her to installing ubuntu-restricted-extras and explained it was to install Flash and similar.

Linux on the desktop... Yes, it can be done... She is non-IT, perhaps a bit geeky, but definitely non-IT.

User Journal

Journal Journal: Thanks 5

Thanks to whoever burned five.

User Journal

Journal Journal: You get that many mod points 6

Wow, you get so many mod points, you feel the need to blast all 10 at me? I'm no longer the most prolific poster on slashdot, why do you bother?

User Journal

Journal Journal: Got myself a new monitor... No, nothing special, just cheap. 5

Got myself 58% more screen real estate at 117.99€. The prime condition on a Full HD[*] monitor was that it must have integrated speakers. This is because it saves desk space. That's hard to find in my allocated budget of max. 149€.

Funnily enough, this is exactly the same model as my moms screen which I bought nearly two years ago. 149€ back then. I have cursed myself ever since that day that I didn't buy one for myself.

The integrated speaker isn't as great as the ones in my old Fujitsu-Siemens C17-2, but more than sufficient for the occasional youp...I mean youtube video.

On a related note, I start to have quite a few "spare" LCD screens now.

[*] As much as I'd love to have a 2560x1440 monitor, there is no way I want to spend 400€++ on a monitor.

Java

Journal Journal: Does anyone even use the tomcat/jsf packages of Debian? 3

I don't program much these days any more, but due to a not very important reason, I wanted to do a little something with Java Server Faces. Being a sysadmin by day, I thought that setting up such an environment would be easy-peasy, as long as I stick to the default packages, I'd get an environment that would be more than sufficient for my modest needs. Basically, my idea was that

aptitude install tomcat6 libjsf-impl-java

on a base Debian squeeze would do it. I mean change a config file left and right, drop the webapp in /var/lib/tomcat6/webapps/ and point my browser to http://dusky.sharks:8080/megasuperextremewebapp

Well, apparently, it's not that easy. I took this as test web application, as it looked extremely simple. I immediately got greeted with a ClassNotFoundException on com.sun.faces.config.ConfigureListener. That seems to be one of the core JSF classes. No problem right? Just a classpath problem right? Well, I do remember that could get quite complicated. To make a long story short. The JSF jars are in /usr/share/java where you'd expect them. Superficially there didn't seem to be an entry to that in the classpath, so I added it manually. Didn't help.

Well, let's try adding a few symbolic links to the web applications WEB-INF/lib part... namely jsf-impl.jar and jsf-api.jar. Nope... Then I read something that can't do that but need to copy the jars to make it work. I do so. It still doesn't work, but the ClassNotFoundException is gone (replaced by another one). WTF?!? Java doesn't work with symlinks?

It's pretty much at that point that I decided to write this, because despite all my Googling, I found no references on how to do this (using default packages on Debian). All instructions basically are quite Windows centric, instruct you to download software here and there tell you to copy jars nilly willy, which would be okay if they explained why. I don't like "just do this" instructions.

I'm a big fan of the central repositories, but unless I have a blonde moment, server-side Java doesn't play nice at all...

So, is there anyone who ever tried using just the packages and have it work?

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
Hardware Hacking

Journal Journal: I know you want to be green of envy... 4

Public album on Google+. You don't need a Google+ account to view.

It's my full Raspberry Pi kit: I was lucky, the two high speed 4GB SD cards were 5€ each on sale, and the power adapters were on sale at 7.50€ each.
The RS Components Pi was 39,16€. The Farnell/Element 14 Pi was 42.05€ (including the t-shirt!).

The whole shebang was thus "only" 106,21€....
The SD cards are both loaded with the default Raspbian, with SSH enabled (just added links manually in /etc/rc[2-5].d)

User Journal

Journal Journal: Lego Rolls-Royce Trent 1000 Jet Engine

This is pretty cool. Some "professional Lego builders" have made a half-size scale model of a Rolls-Royce Trent 1000 jet engine, and it goes round! It was inspired by a model made by a 5-year-old boy and his dad.

Allegedly, it's made from only standard Lego bricks. I'd love to take it apart to see how they did it.

The Trent 1000 powers the Boeing Dreamliner.

Hardware Hacking

Journal Journal: Farnell Pi underway 2

Called them up Wednesday to ask why the order never shipped. They confirmed me that it was because of an expired card, and if I wished to cancel the order. HELLO NO!

*grin*

Windows

Journal Journal: Windows 8 might become a success 8

I'm not a Windows fanboi... Far from it. Yet, Windows 8 might not deserve the bad rap it gets in the tech world.

I think this because I remember how the tech community reacted to Unity on Ubuntu. Hey, I did react violently too, because Unity in 10.10 to 11.10 definitely sucked. I continued to use it and I have to admit that in 12.04 it has become good. Sure, perhaps a bit dumbed down for the average power-user, but I can live with that.

If you read here more often, you might think "why for hells sake did you continue to use it if you didn't like it". The reply to this is that I use Ubuntu (LTS) for a "drop and forget" for non tech users. I was utterly dreading giving them Unity.

My worries were unfounded. When my dad had to go to the hospital (twice) earlier this year (He has COPD as we've now been told and has been on the brink of death twice), I provided him with a low-weight dumpster-diven laptop (CoreDuo/4GB RAM, if you must know) on which I quickly installed Ubuntu so he could surf and email. Not a single question was asked... None. Sure, my dad is Windows power user, but really, no question at all.

I upgraded my Mom's computer to 12.04 LTS in May.. Not a single question either... My mom is no tech...

I will say it how it is: Mark Shuttleworth was right, and the tech community wasn't.

What has this got to do with Windows 8? Simple: the interface is radically different, just like Unity. It's radically simplified, just like Unity... We techs all hate it, just like Unity. However, has anyone ever bothered to sit down a real non-tech user in front of it? That will tell us the success of failing of it. Normal, non-tech users, will probably like the simplicity.

I predict that, if Windows 8 doesn't have other problems, it might not be the disaster we techs think it will be.

User Journal

Journal Journal: I do think I get my Raspberry Pi 3

To my complete and utter astonishment, I got my Raspberry Pi today. Not the one ordered at Farnell, but the one ordered at RS Online on 23 May 2012. Very quick. (Okay, for a piece of hardware with these kind of waiting lists) They never sent me an email that it was shipped. Nice surprise though.

Downside: the Farnell one should have shipped with a t-shirt. I like t-shirts... My wife doesn't, at least not the geeky ones.... So we'll just put this up as a draw ;-)

So sometimes, betting on two horses, does work.

Upgrades

Journal Journal: I don't think I'll get my Raspberry Pi 2

Given Farnell promised them for end-June, I really don't expect them to deliver next week (no email, no nothing), I bothered to go through my credit card statements. The money was never booked. I have no idea why...

It could have to do with the fact that my credit card expired in April (this means, in April it was still valid) and I ordered the 4th of April 2012. Should still have worked, but if for some reason they delayed the transaction, the credit card they had from me was expired. Just a little email to update my details would have sufficed, but I guess with the demand, why bother with a single order, right?

So my bet is: I won't get it. Not from Farnell. The RS Electronics one was booked, but the order was made much later on my new credit card.

User Journal

Journal Journal: Gratuitously Decadent CPU Down/Upgrade 5

I've been an AMD fan since 1999 when I bought a K6-2/400. I went 64-bit in 2007 with an Athlon 64 3200+. Then I went to and Athlon 64 X2 5200+ and a Phenom II 940 BE (quad core, 3GHz).

The 64-bit chips were installed in an ASUS M2N-SLi Delux motherboard with (initially 1GB DDR2 667) 4GB DDR2 800 RAM.

Each upgrade produced a very noticeable and exciting boost in performance, and having multiple cores to play with is cool. The Phenom II 940 BE is a 125W CPU, quite hot but the fan wasn't too noisy. The motherboard eventually gave up (the capacitors split open) so I replaced it with an ASUS M4A77D motherboard, which so far (after about 18 months) been very good.

I don't believe in spending vast sums of money on the absolute top-of-the-range CPUs but occasionally I like a new toy to play with. So I went looking for a Phenom II X6 to put in this motherboard, which supports most of them with a BIOS upgrade.

Unfortunately, I left it a bit late to buy a Phenom II X6, and the only one I could find at a reasonable price was a 1045T which "only" runs at 2.7GHs but it has turbo core (a kind of frequency scaling) which means that it can overclock one (or maybe 2?) of the cores by up to 500MHz if the others are not busy. The good thing is that this CPU is only 95W so it pumps out less heat and uses less electricity. As a rough estimate, the 10% lower clock frequency is compensated for by the extra two cores fairly well so that overall, on something like SETI@Home, it should be 45% faster.

I wrote a little program to do some very simple number crunching and timed it. It does seem to go a lot faster when none of the other cores are in use. This wasn't a very scientific test, so I'll have to investigate further.

My machine only runs Linux, so to flash the BIOS I used a utility called Flashrom which you run from Linux as root. I downloaded the source and compiled it (on Slackware64-13.37) and it Just Worked(TM). Even although the M4A77D isn't listed as being supported, using lspci I saw that the chips on the PCI bus corresponded to those on their supported list. I used it to read the BIOS from flash a couple of times, and compared the binaries by eye using hexdump -C (to see whether they looked sane) against the uncompressed BIOS file to be installed which I got from the ASUS website.

So I took a deep breath, wrote the new BIOS and rebooted...

It all worked, so I installed the new CPU and away it went!

Slashdot Top Deals

The flow chart is a most thoroughly oversold piece of program documentation. -- Frederick Brooks, "The Mythical Man Month"

Working...