Thursday, March 27, 2008

U.S. Patriot Act causes ethical concerns for software developers

Here's the topic from the third paper:

“Pick an example from Chapter 2 or 5 and show if the people who built the software acted ethically according to Appendix A and your general sense of ethics.”


It occurs to me that I haven't noted which textbook we are using. It is A Gift of Fire, by Sara Baase, Third Edition.

Here's my paper, I tried not to include too much reference to the book, but it was needed for this assignment.

A good example of software that has been built upon questionable ethics is the software and procedures that the government uses to obtain personal information about suspected criminals.[1] “The U.S. Patriot Act, passed in the weeks after the September, 2001, terrorist attacks in the United States, gives authorities the means to secretly view personal data held by U.S. Organizations” from the article Patriot Act haunts Google service on www.theglobeandmail.com. This law conflicts with many other government's privacy laws, which require organizations to protect all private information, and also require that the consumer is informed when this information is obtained, regardless of the process, by a third party. According to the Software Engineering Code of Ethics and Professional Practice (Version 5.2) section 1.04 Software engineers shall, as appropriate “Disclose to appropriate persons or authorities any actual or potential danger to the user, the public, or the environment, that they reasonably believe to be associated with software or related documents.” It is my argument that the U.S. Patriot Act causes the potential threat of private data being obtained by an outside party, in this case, the U.S. government, and that this causes an ethical dilemma for software developers, specifically in the U.S.

Some people have recently noted effects of the law. In the recent article posted on www.theglobeandmail.com, and also covered on boingboing.net, there is a discussion of how the U.S. Patriot Act affects the use of Gmail, specifically in countries outside of the U.S. The information obtained by Google when a user uses Gmail can legally be reviewed by the U.S. government under loose controls. Not only is the ethicalness of the U.S. Patriot Act in the regards to privacy put into question, but it also causes an ethical dilemma for software developers. If the government can obtain personal information about someone without a warrant, is it ethical for a software company to keep data about you without informing you of the potential breach of privacy? A well defined privacy policy such as Google's are likely to provide a clause for this situation, such as “We may also share information with third parties in limited circumstances, including when complying with legal process, preventing fraud or imminent harm, and ensuring the security of our network and services.” It is my opinion that privacy policies are created to protect the organization, instead of to protect the end user.

Many people would argue that the privacy policy is a solution to the ethical issues prevented here, but I do not think that it provides a full solution. The majority of users will never read a privacy policy, and of those that do, many of them will not understand the complete implications of it. It's likely the privacy policy misses some small detail that is important to the user, or some situation that the writer completely overlooked. It would be nearly impossible for the writer to know the complete set of laws that govern their organization, especially with the recent globalization of Internet based companies. How far do you have to go in informing the end user of possible dangers of using the service for you to have done what can be considered ethical?

Unfortunately, I don't have a solution to this problem. Ethical guidelines dictate that you should inform the end user of all potential danger to them, and breaches of privacy clearly fall in this category. However, “because no matter what promises companies make (or what privacy laws Congress might enact), data leaks happen.”, so maybe that should be taken into account when writing up a privacy policy. If there is a distinct possibility of a third party obtaining a user's personal data without the permission of that user, the software developer should make this information apparent to all of it's users. It doesn't matter if the third party is a government, or someone malicious looking to steal your identity, it still constitutes a breach of privacy, and the user needs to be informed.

Monday, March 24, 2008

Security through Open Source

Topic for paper number two:

Write a “Short paper on a computing technology of your choosing introduced in the last 30 years that you believe has been used unethically. Include references and cite from the Codes of Ethics in Appendix A.”



There have been many new computing tools introduced in the last 30 years, some even earlier, that have been used unethically. Usually these tools have legitimate and legal reasons for being created, but often these tools can also be used for questionable or unethical behavior. The UNIX security scanner Nmap has many legitimate uses, and comes installed on almost all Linux systems. However, even a program this widespread can be used for black-hat purposes.

A more recent example (Nmap was created in 1997), came up in an article on Coding Horror entitled A Question of Programming Ethics. A program called G-Archiver was found to contain code that used a hard coded email and password to send an email containing every username and password that entered into the software back to the creator of the program. This was a huge breach of trust between the author of the program and it's users. Luckily, a good hearted programmer had looked into the source code and found this, and instead of abusing what he found, he deleted all of the emails in the account, changed the password, and sent a message to Google asking them to delete the account.

There is no way to know exactly how many people could have found this before the security flaw was exposed, and instead of doing what this person did, stayed quiet and used the stolen information for their own purposes. Since the source code was easily examined, this flaw was found, but imagine how long this could have occurred if the source was not accessible. This brings up the topic of security through openness.

By completely exposing what your program does, the end user has a way to ensure your program only does what you say it does. However, this also allows the end user to more easily find vulnerabilities in the software. Having an open source program forces the programmer to understand these risks, which also helps to avoid poor decisions such as using security through obscurity. This could be interpreted to apply directly to Principle 1.04 of The Software Engineering Code of Ethics: “Disclose to appropriate persons or authorities any actual or potential danger to the user, the public, or the environment, that they reasonably believe to be associated with software or related documents.” How can you disclose any more information about your software than releasing the full source code?

There will always be tools created for completely legitimate purposes that will be converted into tools for unethical uses. Something as simple as a match can be used for many ethical uses, but it could also be used to burn down a house. The only thing that you as a programmer can do, is make sure that you make ethical decisions; you don't get a choice of what your users will do.

Wednesday, March 19, 2008

Google's role in the spread of Information

I'm taking a class at WPI this term called "Social Implications of Computing" where everyone is required to write a short paper on topics relevant to ethics and information processing. I plan to publish all of them that are at least remotely interesting.

With all of that out of the way, here is the first one:

One page paper on a point you choose to make about the statement:
"Google brought information to the general public."


Google did not bring information to the public, they have only made information more easily accessible to the general public. Information has been around forever, so to say that Google was the first to bring information to the general public is incorrect. Google is also not the only way to get the information that is on the Internet, there are many other search engines which index the same information.

It would be hard to make the statement that any search engine has brought information to the general public, since that search engine could easily be replaced by any other one. To put this in context, a Internet based company that I would say has brought information to the general public is Wikipedia. It has a publicly available, regularly updated, central source of information about a massive amount of topics.

Information has been available to the public in so many ways, from storytelling to printed information; including newspapers, magazines, and books. However, there was no central place to collect and store the information contained in these mediums. The Internet provided this, Google and other search engines exist to index this information and make it much easier to find what you are looking for.

More recently, Google has provided more access to the data they have already collected, through it's multitude of API's. However, even though this information is available to the general public, it is almost completely currently used by software developers, not the general public. This opens up a new aspect to the question, since Google is now a place to obtain information from. An interesting use of this information can be seen at a project called googleDrive, which allows you to drive a car on top of a simple overhead map pulled from Google Maps.

In conclusion, I would argue the point that “Google has brought information closer to the general public.” Information is not provided to you by Google, you must use it's service to find the information you are looking for. Google is a great service in this regard, since it allows a user to find and retrieve the information they are looking for in a matter of seconds, a speed which would have been nearly unthought of until recently in the past.



PS: googleDrive was made by Samuel Birch. It's fairly simple so far, but I am happy to see more people using the data that they already have available to them.

Someone should work on an openGL version using street view, maybe a street racing simulator, or just so you can get familiar with the location without having to waste gas.

EDIT 3/24/08: Fixed a typo

Wednesday, January 16, 2008

From Web 2.0 to Web 3.0

Recently the term Web 2.0 has been becoming more and more often used when referring to the current state of the internet and specifically new trends in web design. The term Web 2.0 often refers to the use of AJAX, which itself is just a term used to refer to a set of technologies; including JavaScript and XML, which allows a web page to retrieve and display extra data, without having to reload the entire page. It also commonly refers to websites which have social networks, wikis, or blogs. However

“The Web 2.0 meme has become so widespread that companies are now pasting it on as a marketing buzzword, with no real understanding of what it means.”
-Source
http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html
If I was going to sum up what I think best describe the changes that have happened to the internet in the last few years, which is what I think has led to what people are calling Web 2.0, it would be that the internet has moved from static pages which serve content that the publisher wants you to see, to now being a place of content submitted by the users, and websites are now services that aim to aggregate and display this information as efficiently as possible.

Now people are starting to talk about the term Web 3.0, which is completely not defined, but is just a term that is used to refer to the general future of the internet. I have seen the term Web 3.0 used as a marketing tool in many places, an example of this can be seen at http://onebuckwiki.com/blog/2007/11/13/we-are-goin-web30/
where the term is used to try to hype up new features that will be implemented in future releases of the website. Some people have tried to define what they think Web 3.0 is going to be. But all of these definitions are just predictions of where people think the internet is going to be in a few years. These predictions range from simple explanations with no references, such as
“It basically means web browsing with 3D experience”
-Source http://www.profy.com/2006/11/24/web30-is-a-coming/
to the more complicated, and filled with as many buzzy catch phrases as possible
“Web 3.0, expected to debut in 2007, will be more connected, open, and intelligent, with semantic Web technologies, distributed databases, natural language processing, machine learning, machine reasoning, and autonomous agents."
-Source http://www.kurzweilai.net/meme/frame.html?main=/articles/art0689.html?m%3D3
If you want to check out more of peoples predictions, Wikipedia has a couple on it's Web 3.0 page. All of the many references to Web 3.0 only have one thing in common, and that is they speculate about the future of the internet.

That being said, I think that it shouldn't be too hard to find the differences in Web 2.0 and Web 3.0. Web 2.0 generally refers to the current set of trends within the internet, and Web 3.0 is just a term used by people who want to continue using this style of naming the phases of the web, and would like to make predictions about where they think these trends will lead in the future. So if Web 3.0 is the future, what will be the impact of it? Unfortunately, I do not have the answer to this question, although I'm sure whatever happens that things will change, since that is really the only constant in as time passes.

In conclusion, do I think that Web x.y is just a marketing gimmick? To be blunt, yes. The term has been used to refer to the new age of the internet, and it has been used so commonly and without thought or definition that to most people it has very little meaning. Web 3.0 currently has no definition, so it is just a term that people use to attract people who have followed the crowd of Web 2.0, which is most often used as a marketing tool. The internet will always continue to evolve, and unless a major change causes everyone to access or publish on the internet differently, I see no reason to use version numbers on the web. When I open up my browser, I still go to the same internet as before, the content has changed, and it will continue to change in the years to come.

Saturday, December 15, 2007

Quick Tip: Update Yum to Avoid kmod-nvidia/kernel Conflict

A useful tip to prevent some minor headaches: There seems to be a bug with dependency resolution in YUM on Fedora 8 in some versions prior to yum-3.2.8. On my x86_64 dual core AMD box using kmod-nvidia (newly a default package in F8 I believe) it manifested itself in the following way for me:

[sgibbons@localhost ~]$ sudo yum update
Password:

Setting up Update Process
Resolving Dependencies
--> Running transaction check

... ( A lot of depsolving )

Error: Missing Dependency: kernel-x86_64 = 2.6.23.1-49.fc8 is needed by package kmod-nvidia-2.6.23.1-49.fc8

At first I though this might be an issue with the repo, but it appears to actually be a yum bug. It was quickly remedied by updating yum and then doing the system update:

[sgibbons@localhost ~]$ sudo yum update yum
...
[sgibbons@localhost ~]$ sudo yum update
Hope this saves some forum digging and repo cursing.


Sunday, October 28, 2007

Scheduled Downtime

It was 3am on Sunday night and, for whatever reason, I wanted to see if my landlord had cashed a recent rent check. I pulled up my online banking with Citizen's bank and was greeted by this far-too-common message:

Online banking is down for scheduled maintenance.

Ryan S and Eric V, co-posters on this blog, happened to be present for this and each of them suggested we check their respective online banks: TD Bank North and United bank. They were down for "scheduled maintenance" too. Getting a bit worried about the nation's banking infrastructure we checked a couple more banks: Bank of America and Sovereign Bank. Both, from what we could tell without accounts, thankfully were up. Now this was by no means a scientific survey of uptime for online banking at 3 am on a Sunday (though I'd love to see one - it would likely be quite illuminating) but 3 out of 5 banks, all of them fairly major, having online banking downtime at the same time is unacceptable.

Online banking should never be down for scheduled maintenance. Really, no serious public-facing service should have scheduled downtime. There's just no reason for it. Load balancing, redundancy, rolling upgrades - there's no need to take down a whole service. At worst, there should be a performance hit during maintenance. There's no big trick to avoiding scheduled downtime: you just need a decent infrastructure with decent people managing it. It's really not that hard.

A company's public facing web services are easily as important as a flagship branch in meat-space. In fact, I would say that a company's web-based location should be considered the international flagship branch. Every single customer has the potential visit the web-based location - that cannot be said about any physical flagship location for a global, national, or even large regional organization, no matter how optimally it is located geographically. If companies aren't spending equal or more money and effort on their web-based locations as they are on their most premiere physical locations they are making a critical error. Scheduled downtime is a clear sign that they are making this error - it is simply shoddy workmanship of the sort that would never be tolerated at a physical flagship.

Saturday, October 20, 2007

Pentax K10D DSLR Hands-on Review

I had been waiting a long time to try out the Pentax K10D digital SLR camera and finally got some hands-on time with one. I owe it to you to first say that I'm not a big Pentax fan, having played with the *ist D, *ist DS, K100, K110, and a slew of their Optio point and shoots. I have yet to be really impressed by any of their cameras, including this one. That said, if I was going to buy a Pentax DSLR, this would be the one, hands down.




Weather sealing.


I'm the kind of photographer who probably beats on his camera more than most. I like to throw my camera over my shoulder and rock out with it, not worry about it. The weather sealing was the main reason I wanted to check out this camera. You get most cameras in its class even a little moist and they'll choke on you. I've got to say, the K10D is pretty rugged for its price. It's got a nice big feel to it unlike its brothers who feel too light and plastic-y. It's much beefier and has many more features. I'm convinced that the K100D/K110D are far too stripped down and babyish to be useful. The K10D feels like a real camera with plenty of settings right up front via a switch or dial.

The battery door, memory card door, and cable connection door all have rubber seals to keep water out. The cable port door doesn't have a positive lock, meaning it can be flipped open pretty easily. All in all I was hoping the weather sealing would be a little more substantial. The rubber seals are only about 1mm wide and don't seem to be very soft. I was expecting the rubber to "give" like a common o-ring would.
All of the buttons and switches on the K10D are supposedly sealed behind the body too.

Controls layout.

In a word, the K10D made me a little uncomfortable. Barring the shutter, every button, dial, and switch on the entire camera was tougher to push, twist, and click that I expected. I do like the color-coding they've used on this camera a lot though. More on that in a minute.

The mode dial is actually one of the better ones for cameras in this class. Most of the time you've got like portrait mode, landscape, sports--stuff like that right on the mode dial. Not on the K10D. Instead there's "user" mode which takes care of those. There's sensitivity-priority which is a welcome mode. You set the sensitivity ad the camera automatically sets the aperture and shutter speed. Then there's "green mode" which is something Pentax has been doing for a while. This is sort of like a combination of program and automatic modes. There's also a "green button" to the left of the top display screen, I couldn't really figure out what it was for. Exposure, focus, and stabilization all have a green setting too so you can whack any setting into "auto" at a glance. You can click over to bulb exposure or 'X' mode on the dial too. I didn't really experiment with these other than to find out that the camera will fire without a lens attached.

AF and exposure-compensation buttons are within thumb reach on the back. I really like it whenever any camera has an alternative to auto-focusing other than just half-pressing the shutter button. You can customize the AF button's job in the menus. Moving your thumb from the back scroll wheel to these buttons takes an extra second to get used to, but I like how they're separated by a ridge of plastic.

Around the mode knob you'll find the exposure mode dial. As with the other controls, its pretty sticky. If you change between full frame, center-weighted, and spot metering a lot you might wish this option were more readily dialed in like on the Nikon D200. On the other hand I can understand that this is probably the least-used dial on the camera so putting it out of the way on the top left is probably okay for the casual shooter.

Drive mode button: my favorite control.

Thank goodness they put a drive mode button on the back to the left of the viewfinder. I've come to expect this button on DSLRs because I shoot a lot more bracketed shots with digital. Pressing it pulls up an on-screen menu to change between drive continuous shooting options, bracketing, and self-timers. I regret not having tested the K10D's bracketing options more thoroughly but I like having the control at the touch of a button.

The Menu, Trash, Info, and Playback buttons are all what you'd expect. Pentax DSLRs make use of the Fn (function) button on the bottom right side of the screen. In the cheaper models, this has been your go-to button for making adjustments to common options. If you're coming from one of those, it's probably right where you expect it. If not, you might think its dwarfed by the nearby D-pad and stabilizer switch. If you ask me, the Fn button is too small and too out-of-the-way for such a powerful control. If all of the buttons were the same size (1/4" diameter) as the AF and exposure compensation buttons, I would have been a lot more comfortable. Since the K10D is a competitor to cameras like the Nikon D200/D300 and Canon 30D/40D, I really would have liked Pentax to make the periphery buttons a little bigger.

My shooting style doesn't use an auto-focus lock to often but if I did, I'd feel cramped. The AF-L button is pretty out of the way at the top right corner. It feels like this was the last button they designed into the camera and didn't give it at much thought. If you have different hands maybe this will be more comfortable. It's still fine for occasional use since they put it on the corner of the body.

Image stabilization.

Probably the best thing about Pentax's SLR line is that you can take any K-mount lens ever made and it becomes an image stabilized lens on this body. Of course you know it comes with an 18-55mm kit lens. The image stabilization on the K10D is pretty good. I don't think I would even consider buying this camera if it didn't have it. It makes a nice competitor to the Sony A100 and A700, which have sensor-shift image stabilization also. Probably Sony lets you shoot a fraction of a stop slower though. The anti-shake on/off switch looks like lever-type power switches I've seen on Canon and other lately. For some reason I have to wrestle with these angled levers once in a while. Personally I like the K100D/K110D IS up-and-down slider switch better.

Power to the depth of field.

For whatever reason, Pentax has a differet approach to the depth of field preview (DOFP). The shutter button is surrounded by an on (left)/off (center) switch like many other cameras. But unlike others, this one includes a DOF preview when you pull the power switch right. There's a little stopped-aperture icon to remind you. I think I like this DOF preview method button better than having a button anywhere else on the body--all too often they are positioned too strangely for me.

The other thing about the DOFP on the K10D is that it really works! Strange to say right? Well if you've used the K100D/K110D, you know they use a really weird method. In those cameras, pulling the DOFP actually takes a picture and shows it to you on-screen, not through the viewfinder. This image is just for previewing; it is not stored. The problem is this is incredibly slow and distracting. You set your aperture, pull the DOFP, it clicks a picture, and shows it on the screen so you have to pull your eye away from the viewfinder. The K10D doesn't do any of that nonsense; the DOFP stops down the aperture so you can preview your image through the viewfinder like any other SLR.

Focus area dial: my least favorite control.

Take a glance at the back of the K10D. There's a directional pad like you expect. Around it there's a grippy ring that you'd hope would be a scroll dial. It's not. It's the focus area selector. You've got auto focus point selection (in green), manual selection, and center. I found this ring to be pretty difficult to twist. The tactile feedback is poor because it doesn't have a nice "clicking into place" feeling. After about 10 times changing auto focusing modes I decided this dial is pretty inconvenient. Of course it beats going into a menu though!

Auto-focus mode switch: more sticky, less clicky.

The camera feels like it focuses significantly faster than its more inexpensive brothers. The focus switch offers you AF-S, AF-C, and MF focusing options. I could not figure out how to manually override the auto-focus (i.e. autofocus then defocus the lens manually). As with most of the other controls, the focus switch has a nice shape but it's tougher to move than I'd like. If you compare the focus mode switch to the Sony A700, you'll like Pentax's more. The K10D has more of a "lever"-type switch where the A700 has more of a "dial"-type. When holding the camera up to my eye and changing focusing modes, I found I had to push it fairly hard and double-check to make sure it was where I wanted it. The focus mode switch on many cameras has a positive feel when clicking between modes--that way you know it's changed without looking. This switch was definitely quiet, but at a cost of tactile feedback.

Battery & card compartments: load and lock.

The K100D and K110D both use 4 AA batteries, which is think is awesome. You can pick up a set of batteries at any convenience store in a pinch. But the battery doors on those cameras stink, in my opinion. Plus their battery life blows. The K10D uses a rechargeable battery pack which is probably unavoidable for a camera of this caliber. I had a tough time with the battery door because it has a different opening method than most of its competitors. To open the battery compartment, there is a tab that you have to lift up with your fingernail and then twist to open. If you have small fingers or no fingernails, you will be frustrated. The memory card slot opens in the same way, with the lock on the bottom back right.

Also on the bottom of the camera is a port for connecting the optional D-BG2 battery grip. The port is covered with a removable rubber "plug." I would have preferred to see this connectivity go through the bottom of the battery compartment. The plug is an extra thing to lose and an extra place for moisture to get in (it took me a few tries to push it all the way in for a full seal). By the way, the battery grip also uses this "lift tab, twist to open" method. So there's a total of three spots where you'll see this. I have small hands and reasonable fingernails and these little twisting locks drove me nuts. If you change memory cards often, I'm worried you might miss some shots messing with the card slot door.

The bottom line.

The Pentax K10D has the features (image stabilization and weather sealing among them) and ruggedness to compete in the sub-$1000 DSLR category. If you already have Pentax lenses, get this camera. If you are entering the DSLR market, consider other options--you might be frustrated by the way Pentax handles certain features.