Forgot your password?

typodupeerror
User Journal

Journal: Jmeter Does Not Have Access to Environment Variables?

Journal by Greyfox

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: Emacs ruby-mode font locking

Journal by Greyfox

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: Obama Needs to Bring Chicago to DC 1

Journal by Greyfox

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: My Regime

Journal by Greyfox
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: Trend in the IT Industry

Journal by Greyfox
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: Greyfox's Solution to The Health Care Issue 1

Journal by Greyfox
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: Worst President Ever

Journal by Greyfox
I really wish Nixon had lived to see this administration. I think he died feeling really bad and thinking he'd be remembered as the worst president ever, and after this he could say "Well... you know... I may have been bad but at least I wasn't that guy!"

To be fair to the Bush administration, they were left holding the bag that was started in the 80's when the Reagan administration started deregulating everything. And to be fair, the Clinton administration continued that trend. And hey, imagine our surprise when, realizing that they were no longer accountable to "laws," companies victimized the American people. Had Congress noticed, in the past two decades that lenders were coming up with new and elaborate schemes to treat the American people as their personal piggy banks, perhaps the trend could have been reversed. They were too busy whoring out the law to the highest bidder. More than enough blame to go around, here.

Meanwhile, when corporations couldn't meet their unrealistic growth goals to keep their stock prices propped up, they had to resort to their own shenanigans. Even after we noticed that, we didn't do much about it. That would have required evil regulation. God forbid we have that, we much prefer the current system where companies regularly sacrifice their own employees to the god of the almighty profit.

No the Bush administration is simply the poo cherry on a giant turd sandwich that has been years in the making. Had things gone just slightly differently they would only be remembered as a mildly ineffective and inept administration. But as they say, the buck stops at the top no matter how much you might try to point the finger of blame elsewhere. You can say "But... it wasn't my fault!" That's OK. We'll blame you anyway. Nixon would be happy to know that he'll go down in history as the second worst president ever.

User Journal

Journal: Who the Fuck is Cerberus and Why Should You Care?

Journal by Greyfox
http://en.wikipedia.org/wiki/Cerberus_Capital_Management

Bush cronie John Snow and Chrysler? No matter how much bleach we apply to this administration's taint-stain of failure and ineptitude, I don't think we're ever going to get it clean.

Question is, does Bush bail out the auto-industry because he gives a damn about all those workers who are going to lose their jobs, or to help his former cronie recoup his losses and jettison the company?

Let's organize this thing and take all the fun out of it.

Working...