Tuesday, May 4, 2010

Web Application Exploits and Defenses

The codelab is organized by types of vulnerabilities. In each section, you'll find a brief description of a vulnerability and a task to find an instance of that vulnerability in Jarlsberg. Your job is to play the role of a malicious hacker and find and exploit the security bugs. In this codelab, you'll use both black-box hacking and white-box hacking. In black box hacking, you try to find security bugs by experimenting with the application and manipulating input fields and URL parameters, trying to cause application errors, and looking at the HTTP requests and responses to guess server behavior. You do not have access to the source code, although understanding how to view source and being able to view http headers (as you can in Chrome or LiveHTTPHeaders for Firefox) is valuable. Using a web proxy like Burp or WebScarab may be helpful in creating or modifying requests. In white-box hacking, you have access to the source code and can use automated or manual analysis to identify bugs. You can treat Jarlsberg as if it's open source: you can read through the source code to try to find bugs. Jarlsberg is written in Python, so some familiarity with Python can be helpful. However, the security vulnerabilities covered are not Python-specific and you can do most of the lab without even looking at the code. You can run a local instance of Jarlsberg to assist in your hacking: for example, you can create an administrator account on your local instance to learn how administrative features work and then apply that knowledge to the instance you want to hack. Security researchers use both hacking techniques, often in combination, in real life.

An excellent resource for learning about coding defensively. Nice work Google :)

Posted via web from johnweldon4 - posterous

Sunday, May 2, 2010

Mind Your Body: Going Through the Motions | Psychology Today

Athletes have long used mental imagery to complement physical practice, and research indicates that going through the motions only in your head can enhance performance just as well as—and sometimes better than—actually working up a sweat.

In one study at Texas A and M, medical students learning venipuncture received 30 minutes of guided physical practice followed by either 30 more minutes of practice, 30 minutes of guided mental imagery, or no more training. When tested, the first two groups performed better than the third, and just as well as each other. The same effect was seen in students learning to suture.

I wonder how this translates to programming? I mean, it's all mental already right? The physical acts of reading the screen, and typing words don't really contribute to the process much... it's just I/O :)

Of course there would probably be benefits in learning how to hold more information in your mind at once...

Posted via web from johnweldon4 - posterous

Saturday, May 1, 2010

Does 'Freedom' ipso facto mean less government?

Interesting argument; counter-arguments after the link...

 

If freedom involves having a decent set of alternatives available to us, then government action can enhance our freedom even if it involves restraints on conduct that would not otherwise violate anyone’s rights. Consider traffic laws. Those of us who drive are constantly subjected to government dictates telling us what we can and cannot do. We can only drive on one side of the street. We have to stop at red lights and stop signs even when no one else is around. If freedom means only that government should not tell us what to do, then the traffic laws are a massive intrusion on our liberty.

I suspect that most people don’t see things that way, though. They probably agree with Elizabeth Anderson, from whom I have taken this example:

To be sure, in a state of gridlock, one has the formal freedom to choose any movement in one's opportunity set -- which amounts to being able to rock forward and back a couple of inches from bumper to bumper, getting nowhere. Some freedom!

Normally, the point of driving is to get somewhere. The traffic laws enable us to get where we are going much more quickly and safely than we would if each of us had to decide for him- or herself which side of the street to drive on. The traffic laws do not tell us where to go. They leave the choice of destination, and for that matter the decision whether to drive at all, entirely up to us. They simply tell us which side of the road to drive on, that we should stop at various points, and so forth. By taking away our freedom to drive on the left, or to blast through busy intersections, they grant us much more freedom in the form of a greatly enhanced ability to get wherever we want to go quickly and safely.

Anyone who thinks that the traffic laws enhance our freedom should acknowledge that in some cases, including this one, government action can enhance our freedom, even if that action takes the form of restrictions on what we can and cannot do. An enormous number of questions about which (other) forms of government action might enhance our freedom would remain to be answered, but the fact that some government policy involves either a more active government or new restrictions on our action would not, by itself, imply that it diminishes our freedom.

Posted via web from johnweldon4 - posterous

Sunday, April 25, 2010

The Challenge of Indifference « Scott Berkun

I don't quite know what to make of Mr. Berkun yet (1), but I found this article very good.

Indifference, feigned or real, is such a pervasive part of North American culture (maybe just here in the Pacific Northwest, I don't know). I forget how surprising this was to me when I first came to the USA when I was 18.

Short excerpt follows, and the full article if you follow the link.

 

And as I stood there, I started to feel weird. Why am I the only one listening? Even though I knew it was right in the sense this is something alive and real and I can spare at least 30 seconds for that – it felt weird simply because no one else was doing it. Had there been a crowd around any one of these buskers, more people would stop to listen, simply because they could do it without having to stand out.
via scottberkun.com

 

(1) I've read one of his books, Confessions of a Public Speaker, and thought it was good and worth reading, and I've been reading his blog for several months. Still not sure what to make of him though.

Posted via web from johnweldon4 - posterous

Thursday, April 22, 2010

The Secret of Great Bread - Let Time Do the Work - NYTimes.com

Mr. Lahey’s method is striking on several levels. It requires no kneading. (Repeat: none.) It uses no special ingredients, equipment or techniques. It takes very little effort.

It accomplishes all of this by combining a number of unusual though not unheard of features. Most notable is that you’ll need about 24 hours to create a loaf; time does almost all the work. Mr. Lahey’s dough uses very little yeast, a quarter teaspoon (you almost never see a recipe with less than a teaspoon), and he compensates for this tiny amount by fermenting the dough very slowly. He mixes a very wet dough, about 42 percent water, which is at the extreme high end of the range that professional bakers use to create crisp crust and large, well-structured crumb, both of which are evident in this loaf.

The dough is so sticky that you couldn’t knead it if you wanted to. It is mixed in less than a minute, then sits in a covered bowl, undisturbed, for about 18 hours. It is then turned out onto a board for 15 minutes, quickly shaped (I mean in 30 seconds), and allowed to rise again, for a couple of hours. Then it’s baked. That’s it.

I'm going to try this out! It will be my first loaf of bread I've ever made, and I'm expecting it to ROCK! :)

Posted via web from johnweldon4 - posterous

Tuesday, April 20, 2010

Brain-training games don't work

Alas, research published today in Nature indicates that the possibility of improving your general cognitive abilities by playing brain-training games is an empty promise. More than 11,000 volunteers were split into three groups: one who played brain-training-type exercises; a second practised more general cognitive tests; and a control group who just pootled around the internet answering random questions. They did this for six weeks, bookended by benchmarking tests of memory, reasoning and other standard tests of cognitive function.

All three groups displayed improvement in the tasks they were performing. But all three groups also showed only small and similar increases in the benchmarking tests, possibly simply the effect of repeating the test. Conclusion? Practising brain-training games will improve your performance on brain-training games, but that effect will not transfer to other aspects of brain function. They will not make you brainier, so you may as well just pootle around on the internet. As lead researcher Adrian Owen says: "You're not going to get better at playing the trumpet by practising the violin."

Ah... there goes that theory.

Posted via web from johnweldon4 - posterous

Monday, April 19, 2010

Team Hanselman and Diabetes Walk 2010

Two months before my 21st birthday I started peeing a lot. A LOT. Like I was drinking four 2-liter bottles of Sprite a day and was still thirsty beyond belief. We'd just had a family photo taken and I was 130lbs on a 5'11" frame (for those of you outside the US, that's thin.) I was wasting away and looked like death. My father, a Portland Firefighter and Paramedic for thirty years smelled the sugar on my breath and sent me right away to the hospital where my blood glucose level was higher than the meter could read...and it's supposed to be under 100mg/dl.

I spent that spring learning how to give myself shots, four a day, along with a regiment of pills. Twelve years later I have no side effects, knock on wood. Not everyone is that lucky. I recently went to a funeral of a high-school friend who was the exact same age and succumbed to Type 1 Diabetes.

I knew a young man who was just starting out in life; young wife and an adopted kid. He began experiencing similar symptoms, but it took less than a couple days between him realizing there was a problem and being dead.

Diabetes is a dangerous killer, and I want to see it stopped too.

Posted via web from johnweldon4 - posterous