Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: Jmeter Does Not Have Access to Environment Variables?

Maybe not, but if you "set > workspace/job.properties" and pass your Job Path in to jmeter as a property, you can read the damn things back out with a beanshell sampler later on. Handy for grabbing variables from your Hudson parameterized build. Just don't forget to define JobPath as ${__P(JobPath,)} in your user defined variables.

import java.io.BufferedReader;

String response = "";

try {
      BufferedReader in = new BufferedReader(new FileReader("${JobPath}/workspace/job.properties"));
      String nextLine = in.readLine();
      while(null != nextLine) {
              String[] keyval = nextLine.split("=");
              if (2 == keyval.length) {
                    vars.put(keyval[0],${__eval(keyval[1])});
              }
              response = response + nextLine + "\n";
              nextLine = in.readLine();
        }
} catch (java.io.FileNotFoundException e) {
        response = "Unable to locate properties file for environment; using defaults.";
}

SampleResult.setResponseData(response);

User Journal

Journal Journal: Oh, shit. 28

About a year and a half ago, my wife met a really cool lady while doing community theater. Her boyfriend turned out to be a computer nerd, like me. In that year and a half, my wife and this woman grew very close, having similar interests and character. Although I tried to befriend the boyfriend, he always seemed distant. We knew, from his girlfriend, that he had had a "bad" childhood. We just never knew how bad, I guess. Yesterday at six AM, their house was raided by a fifteen man task force including state police, the FBI, and the district attorney's office. Because they had been investigating him for a year, and had the house under observation for a month, they knew they did not need the SWAT team for a flash-bang entrance, as was common in these cases. They were looking for child pornography, and they found it. Not "barely legal" stuff, two to six year olds, in violent and incestuous situations. He admitted guilt, at least according to the police, who questioned him away from his girlfriend. Yes, I realize that could be an interrogation tactic, but he also never protested his innocence to her, and seemed to know exactly why the raid was happening.

The raid was professional and the police were amazingly courteous. They found about an eighth of pot and quite a bit of paraphernalia, and asked whose it was. She admitted that her mom is an old hippie and had left a bunch of bongs there, but the rest was hers, that she used to calm herself down because she had hyperthyroidism, which is true. They let her keep everything and joked that, after this, she'd probably need it. The police doing this kind of work probably look on pot like they look on jaywalking, technically illegal, but not worth their time. They had a list of specific files that had been downloaded and came prepared with the utilities to scan any electronic device or media on the premises. The fact that he used Linux didn't phase them for a second. She gave up all the passwords she knew. As soon as they found the first match, about an hour and a half into things, he was cuffed and taken away. The raid lasted another three and a half hours after that, as the police methodically searched for additional evidence.

She had class, and needed her laptop, so they scanned that and gave it back to her right away, but she couldn't go to class because, if you leave the scene of an investigation, you can't come back until they are done. Which meant she couldn't go buy cigarettes, either, she was out, and none of the police smoked, the poor thing. So she pulled some hair out, strand by strand. The police had a rookie with them they assigned to her, probably like "Watch what we do and make sure she doesn't freak out." They set up two tables in her driveway. Anything potentially dangerous was brought there, as well as electronics and media. Other things were opened, searched, and placed on the floor. They took all hard drives and electronic components. They searched stacks of blank CDs, looking for any hidden amongst the blanks. They took all hand labeled CDs. They felt all cushions carefully, but not finding anything, did not rip them open. They opened all boxes, jars, bags, etcetera, and searched them.

I know all this because we spent about five hours last night going over it with her. If you ever have a friend go through a traumatic experience, this is the best thing you can do for them. Just listen, as they say the same things over and over again. Heck, when they slow down, ask questions to get them going again. Encourage them to show their feelings about it, too, if they cry or rage or shake or whatever, so much the better. The earlier you can get them to do it, the better, because (according to some psychological theories as I understand them) during traumatic, emotional events, the rational mind shuts down and disassociates at least a little. The experience is stored in memory as an undifferentiated lump with heavy emotional triggers attached. If it isn't processed, anything associated with the event can trigger strong emotions, once again causing the rational mid to shut down a little. Having one's rational mind shut down all the time is sub-optimal. She is going to clean up, move all his stuff to storage, and smudge the place with sage, which normally would earn an eye-roll from me, but this is exactly the place for that ritual. It's not magic, it's psychology.

The thing is, she had broken up with him the week before, and it was under consideration for a long time, because he just couldn't get his shit together after his dad died two years ago. He hadn't worked in years, he didn't do anything around the house, he just didn't do anything. He never wanted to hang out with me, even though we have similar interests and had fun conversations at parties. She would come home and find him crying on the couch. He doesn't remember much of his childhood, what he does remember is terrifying. His dad was a hoarder, and they were divorced when he was very young. His mom treated him like a boyfriend. His girlfriend reported seeing his mother sit on his lap and stroke his hair. He's thirty five. He had not had sex with his girlfriend in six or eight months.

I knew some of this before the incident so if it seems I rushed to judgment yesterday it is only because so many things suddenly made much more sense in this new light. It is still possible he is innocent of everything. It depends on exactly what they found, I suppose, and they have a year long record of someone, using several different IP addresses which they can now connect securely to him, I believe, viewing a great deal of very disturbing things online. They read the titles and descriptions of all of them to my wife's friend. We had a large bust of a child pornography ring here last month, actual production of the stuff, and the police admitted that there were fifteen additional people being raided here yesterday. I believe he had also recently befriended a young autistic man of twenty four or so who has young children. The police asked if he he had had any contact with people with young children, and his girlfriend told them that he had, and who they were, so they could question them. In retrospect, I'm glad I didn't get closer to this guy. My cousin has young kids and they are over at our house a lot. Again, I'm not saying this man actually did anything to children himself or intended to. But I see a lot of data points that fit a certain class of patterns of human psychological illness here.

So that's about it. That's all I know at this point. My wife and I are glad that we can be there for her friend while she goes through this, it isn't over for her yet, not by a long shot. Her family owns the trailer park (no snickers, it's very nice) where she lives (in a three bedroom double wide that is as nice as my place, and why am I worried about class issues right now?) She may have to testify, that depends a lot on him, I imagine. We don't even know where he is being held. No local police were involved, it was all state and federal. He called and left a message for her, said not to believe anything they said, asked her to pray for him, and asked her to help bail him out. His bail is eighty thousand, so someone would have to some up with eight. There is no way in hell she is going to put up any money. Note that in his message, again he did not directly protest innocence, he said, "Don't believe them." I believe there is a high risk that if he did get out, he would kill himself, which is why I made the comment yesterday. I was empathizing with what I can only imagine a person in his apparent situation must be going through. That's one of my flaws, I can't really shut off my empathy. It makes it hard to be around people sometimes, or even watch certain kinds of movies or television, like the original British version of The Office took me a really long time to warm up to, I always felt too much empathy towards the character Michael Scott to laugh at him. But I'm babbling now, I guess I don't really have anything else to say at present.

User Journal

Journal Journal: Emacs ruby-mode font locking

If you want ruby mode to do syntax highlighting, make sure to have (global-font-lock-mode 1) before you load the ruby mode library. This will save much misery.

User Journal

Journal Journal: Slashcode Follies 6

The codemonkeys of Slashdot have obviously been pounding randomly on their keyboards recently. Here's a thought, if you are going to hire monkeys to maintain your code, you should at least test it before deploying it to your live servers. This hasn't been Rob Malda's personal blog for years, it's a fricken' business. Do you Slashdot employees like your jobs? Do you want them to continue to exist? If so, perhaps you should start treating this like a business and not like a hobby. Quit breaking things.

User Journal

Journal Journal: Now I've done it 16

They made me do it! It was the peer pressure! I... I'm on... Facebook now.

User Journal

Journal Journal: Freedom 5

I just had an interesting revelation regarding freedom. My mom came down with pancreatic cancer about a year ago, and I felt my personal sense of freedom curtailed. Sure, it was only curtailed by my own sense morality and obligation. but it was limited nonetheless. And I noticed, there is only so much freedom I am willing to give up. I was suddenly much more aware of, and resistant to, all the other limitations on my freedom like my marriage and my job and living in a society where I have to wear pants. Then my mom died, and I inherited a house and quite a bit of money. Now that my freedom is far less constrained by finances, or by dying single mother, only child dynamics, the minor impositions of job and marriage and pants obsessed society don't even register.

I've read that the sense of certainty is simply an emotion, a specific analog circuit that engages and drives our logical mind to come up with explanations. Now, through experience, I believe our sense of freedom is another emotional circuit. While in a strictly deterministic world individual freedom does not exist as such, the sense of personal freedom is a very real part of the chain of cause and effect.

(And thus, a personal conundrum is resolved, cognitive dissonance is decreased, and pants are worn.)

User Journal

Journal Journal: Changing my sig 1

After nearly a decade with the same sig, I've decided to get rid of the Python quote and replace it with something even more combative. I saw it in an Empire: Total War loading screen, heh heh.

"None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton.

Liberty is a social contract, it requires active participation to achieve it. License is "I get to do what I want."

User Journal

Journal Journal: You've been served 13

So I served a guy a restraining order today. He'd beat up my friend a couple times, gave him a concussion the last time. So my friend got a restraining order, but he's a waiter and this is the dead time of year for that in Santa Fe, and he doesn't have the money to pay the sheriff to serve the papers. So I volunteered. This guy is a punk ass gangster wannabe who hangs out with a crowd of (snicker) Santa Fe toughs. But they kicked the shit out of my friend in public a couple times, and they are cracked out of their heads a lot of the time, so yeah, I was a little scared. But it was the right thing to do, and the fact that you have to pay someone to serve a restraining order sucks balls, so I had to do it. I had to track the fucker down, too, because he didn't show up for work tonight. He was off at some bar with his friends. I walked right up to him, made sure it was him (I've never met the guy), handed him the papers and walked out, calm as you please.

My hands are shaking a little bit now, though.

User Journal

Journal Journal: Mom passed away Christmas morning 9

Pancreatic cancer. You just don't recover from that one. This last year has been pretty hard. I'm the only child of a single mom, so this has all been on me and my wife. And of course, being my mom, she had to go die oversees. In a little tiny village outside of Peterborough in England. Well, she actually passed away in a Sue Ryder hospice in Peterborough, Thorpe Hall. The building is older than my country. She was staying with her old friend Marianna and her husband in Nassington. So there we were, my wife and I, in a foreign country experiencing the snowstorm of the decade, staying with virtual strangers in a tiny village with all of 20 or so buildings, for Christmas. I'll just say this, my mom died like she lived: weirdly.

Space

Journal Journal: I AM BACK 7

I'm sorry to have been away for so long, but I have returned! Now that unpleasantness is over I can read over all my emails, and such. Hmmm. Nothing here? WHAT?

Nobody missed me, nobody cared. It was like a million voices continued on while I was away from Slashdot. I suppose being on a spec in the middle of a sandy beach of specs in the floating massiveness of universialitude, I could not be missed had I evaporated and rained all over the prairies. Alas, some things on Slashdot have changed.

What is all this Javascript? Looks good! Things appear to be much more interesting! Hey I've got achievements!!! LOL

User Journal

Journal Journal: Obama Needs to Bring Chicago to DC 1

Invite the top Democrats in for a spaghetti dinner and give them (verbatim) the Al Capone teamwork speech from "The Untouchables." Baseball bat at all. You know the guy he stops at when he gets to the end will feel pretty damn uncomfortable...

It's funny.  Laugh.

Journal Journal: My Regime

In a number of posts I've talked about my regime. When I become Dictator for Life (through an open election process) things will be run a bit differently. I thought I should get this all down in one place so that people will not be confused about my regime's stances on various topics.

My regime would bring back impaling. It worked for Vlad the Impaler -- in the height of his reign you could leave a bag of gold on the street and no one would touch it. They were afraid of being impaled. I'd get rid of most victimless crimes, and would need to work out for the rest of them where exactly the impaling would start. Drunk driving, I think, would be an impalable offense. Murder and rape, definitely impaling there. Monetary fraud etc... impaling... Needless to say the prison population in my regime would be a LOT smaller.

My regime would require mandatory reversible sterilization of all citizens at puberty and a license in order to reverse it for breeding. After all, currently you need a license to buy a car or a gun but any jackass who can figure out how to stick a penis in a vagina can make a baby with no government regulation. Needless to say, breeding license applicants would need to demonstrate financial stability and a degree of minimal competence for parental obligations.

If you're not breeding, gay marriage will not only be legal, it will be mandatory. This will encourage people to be competent enough to pass the breeding license exam and everyone else will be happy with it. Or else...

My regime would mandate samurai honor code for corporate officers and public officials. Bring dishonor to your office via fraud, ineptitude or corruption and you will be allowed to kill yourself, or you'll be impaled. The events of the past few years make it painfully clear that this is necessary.

My regime would ban organized religion except for the state-sponsored one, which would involve Smurfs. Non-smurfy behavior will be punishable by impaling. Heresy will be punishable by feeding the offending people to Garganel.

Oh yes and my regime will have public health care. My regime would not tolerate insurance companies feeding on the corpses of my citizens, no. My regime puts its citizens first and will work to insure their well-being. Any other attitude would be completely non-Smurfy.

The Almighty Buck

Journal Journal: Trend in the IT Industry

I was just talking to a fellow I worked with a couple years back. He was (somewhat) forcibly retired from the company he worked for after 35 years of service to them. It wasn't a performance issue, rather he was "retirable" and the company was downsizing. They lost a lot of very specialized knowledge when they got rid of him, from a project that was a pretty big component of their sales process a few years ago.

There's a trend in the industry to treat employees as hot-pluggable resources. One person is viewed as just as good as another with no consideration of experience or ability. If you can get rid of one person and load twice the amount of work on someone else in his team (And let THEM figure out how to complete it all on time) that does fine.

This makes the industry a shitty place to work, drives the more experienced people out of the market and encourages the 90s style job-hopping that let a lot of people with no business in the industry inflate their salaries to outrageous levels without actually doing any work. I've had to clean up after a few of those people.

It takes a while to learn a job and the business practices and processes of the company you're working for. From what I've seen, most people need three to six months to get comfortable in the environment and learn their way around a code base if they're programming. After that the productivity goes up dramatically. The current practices of the industry makes for a lot of turn-over before you hit that point and views someone with years of experience in that position as being easily replaced by a fresh college graduate. This, in my view, is a mistake.

So what to do about this? I think eventually the market might sort this out. If it's a bad thing, I think that any company that comes along with different attitudes could end up out-producing and out-maneuvering its more clueless competition.

If anyone works for such an enlightened company I'd love to hear your views on the subject. And... um... are you guys hiring?

Democrats

Journal Journal: Greyfox's Solution to The Health Care Issue 1

New Law: No member of the legislative, judicial or executive branches of the US government may enjoy any federally funded health care plan that better in any way than the plan of the lest privileged United States citizen.

That ought to sort things out pretty quickly.

User Journal

Journal Journal: My positive contributions? Bwahahaha! 8

I got a new box on Slashdot this afternoon, thanking me for my 'positive contributions' and letting me turn off advertising because of them. Wait, there's advertising on the Internet now? When did that start?

Slashdot Top Deals

FORTRAN is not a flower but a weed -- it is hardy, occasionally blooms, and grows in every computer. -- A.J. Perlis

Working...