Skip to Content

Posts Tagged ‘foss’

LCA Day #2

Permalink

The talk “Demystifying PCI” in the LinuxChix miniconf by Kristen Carlson Accardi was a highlight of day two. Using sysfs and lspci on a running system was an effective way to introduce the PCI bus and is certainly more entertaining than reading the PCI spec. A couple of new things I picked up from the talk: lspci -x prints out the configuration space of the PCI devices in hex which lead to the observation that the vendor code for Intel is 8086, ha!

It was also good to meet Kristen in person; she had helped me with a patch for adding the docking station entries to sysfs. Hopefully we can get her down to Oregon State to give a talk to our open source development class.

Google Tab at LCA2007

After the conference on Tuesday Google sponsored a party for all conference goers. It was a great night to meet and chat. In particular I got a chance to meet a few of our donors including conference organizer Lindsay Holmwood. Thanks again to everyone who donated.

LCA Day #1

Permalink

I had been meaning to post daily updates from LCA but the conference is just too awesome to get a chance to blog- ROCK!

Debian Miniconf #6
As a Debian groupie I started the conference off with a brief by the Debian project leader (DPL) Anthony Towns. The first minute of the talk was really strong. Then his phone rang and he took the call! It was the first time I had ever seen this at a conference.

After a good minute of “uh huh *pause* yes, yes, ok ok” he got off the phone and asked one of the audience members to call his mum. Naturally, everyone was very confused. It turned out he was moving today and his mom was the only person in the area to look after the movers.

With that brief interruption the Debian miniconf was off!

A few of the highlights:

  • Funny: m68k buildd is keeping up properly thanks to an emulated build box running on amd64
  • Hopeful: the rework of the GNU Free Documentation License to fit into the DFSG
  • Sad: There were updates on IceWeasel. Why is Sun better at working with Debian than the much more open Mozilla Corp?

bluetooth cameras

The next talk was interesting because of the problem domain: honey bees. Jamie Honan, the presenter, was trying to find a way to keep an eye on his remote bee hives to prevent them from swarming. The problem with a swarming hive is that his next door neighbor is allergic to bees. The best detection method of a swarming hive is smacking the hive and listening to the frequency of the reaction. He didn’t have a mechanical process for smacking the hive yet but a device like the Fascinating Electronics USB servo controller that I brought along for show and tell would work great.

The last session I went to before the embedded show and tell was a talk by Keith Packard on the direction that X.org is heading. If all goes according to plan it shouldn’t be necessary to have much of an xorg.conf in a few more versions as most everything will be hot-pluggable. w00t!

It was a great day. Thanks to the Seven who are putting this week together.

Ink on my Hand

Permalink

Some notes that I wrote on my hand at American Dream while talking with Kernel Developer and all around cool person Val Henson.

CS 411 - Best CS Class Yet?

Permalink

My first lecture of the term was today at 9am: Operating Systems II. Paul Paulson, OSU instructor, detailed what I have known for a few months: this class will now use the Linux Kernel and simulate a class size open source community. The required text is “Linux Kernel Development” by Robert Love (a book I recently read and enjoyed) and halfway through the term a special lecture by Greg KH is scheduled! It should be a great course.

Java Without the IDE?

Permalink

Duke the Java Mascot
Today I stayed home but wanted to do some work on the Registry. However, I don’t have a workstation at home with the specs to run IntelliJ with any reasonable speed. Furthermore, I was hoping that dumping the ultra slick IDE will help me learn a bit more about the Java environment.

Eclipse Integration in Vim (Eclim) was the first promising lead I found. However, I had a tough time getting the Registry to run properly under Eclipse and Eclipse is as resource hungry to run as IntelliJ.

I couldn’t turn up any other good Vim tools so I started searching for Emacs tools. Although I am not a huge fan of Emacs I was very impressed with the SLIME environment when I did my towers of hanoi assignment in LISP. And it turned out a very slick Java environment for Emacs is available tool

A quick search for emacs java lead me to the Java Development Environment for Emacs (JDE) which offered a reasonable level of integration including:

  • Debugger Integration
  • Syntax Higlighting
  • Ant Integration
  • Code Templates

JDE Emacs with the Registry

However, it was a beast to configure. My primary problem was that the Debian jde packages in unstable are broken. After uninstalling this package and doing a manual install I had JDE running like a champ.

JDE Emacs with the Registry

The next task was to write a prj.el that would contain all of the information for JDE including: source location, classpath, default file headers, and build configuration. With some help from an example prj.el I wrote one for use with the Registry (here). Although, this file looks daunting the IntelliJ project files are unreadable by comparison.

This screenshot shows Emacs and JDE after an unsuccesful compile of the Registry. Clicking on the ant error loaded the proper file making it quite clear that I had an unfinished line.

Another standard IDE feature that JDE supports is method completion using the compact keystroke [sic] C-c C-v C-.. This brings up a dialog that lists all methods that can be called on this object.

After some digging it turns out debugging the application while it is running in Tomcat is a straightforward affair also. After deploying the application into the $TOMCAT_HOME/webapps directory running $TOMCAT_HOME/bin/catalina.sh jpda start starts Tomcat with remote debugging via JPDA on port 8000. Because the prj.el I wrote has this port set in jde-db-option-connect-socket using the menu Jdb->External Process->Attach via socket enables the debugger. Using this mode common debugging tools such as breakpoints and variable inspection are available.

Overall I am very impressed and excited to start using JDE. Only one thing is holding me up: JSP debugging. Anyone have a solution?

Open Source and Defense

Permalink

Phlak linux logo, http://phlak.org/Recently I recieved an email from Jay Lyman of NewsForge.net who wanted my input on an article he is working on:

I heard you talk a little about your work developing software at NASA when I got a tour of the OSU Open Source Lab earlier this year. As I recall, you mentioned that some of your work had the potential to end up in weapons systems, and a discussion of the matter then followed. I’m working on an article now on the appropriateness of open source for weapons, military and national defense and would like to include your input.

This is a very creative and timely topic given our current political climate and I was happy to help by answering the questions that followed.

Do you believe that military, weapons or defense applications are contrary to the ideals of the open source software community? Please explain.

Freedom is the number one ideal of open source and I believe it would be contrary to these ideals to restrict what the software is being used for. The FOSS community is providing a general purpose foundation for a computing system that requires a great amount of customization for a military application and because of the dedication to the ideals of freedom I think it is a valid however possibly unfortunate use of the software.

As a developer, are you concerned about the use of your creations and development for military/defense purposes?

The project I worked on this summer while in the NASA Goddard Robotics Internship Program was general purpose hand recognition software that had as much application on a Mars rover and physical rehabilitation as it does on a military platform.

This is the only software that I have ever developed that has any military applications.

Although I am concerned that the software could be used in a weapon I am hopeful that more productive application may be found. And by using a FOSS license a developer may be inspired by this software and create an entirely new application.

Do you believe open source is appropriate for these types of applications and national defense?

Ensuring that FOSS is protected by licenses that offer liberal and wide freedom to everyone is key. It would be dangerous to start trying to put any restrictions on how FOSS is used as many good things can come out partnership with governments such as the NSAs SELinux.

Furthermore creating additional barriers of use may confuse consumers and scare off vendors from distributing FOSS.

For example would using Linux on desktops in the Senate be considered defense use? Senate does handle defense funding and decide on military actions.

From your perspective, how significant is open source software in this area?

The group that I worked used Linux for prototypes. However this is primarily R&D and proof of concept work. Deployed military applications more than likely are then converted to a specialized CPU like an FPGA.

I think FOSS is used for rapidly prototyping and feeling out a concept but deployed hardware is futher ruggedized and made more compact and manufacturable by special hardware.

Anything else you would like to add?

Freedom is a central value of the community and I think restricting that freedom to protect from unwanted users, such as the military, would be subverting this value.

The next day after emailing my response I started reading The Debian System and read the following passage:

The additional ability to use Debian for whatever purpose a user thinks fit is equally important. Debian does not allow any discrimination of persons, groups, or fields of endeavour. Debian may be put to use by anyone for anything, even in morally debateable domains, such as genetic research and warfare. Debian does not attempt to define what is acceptable and what is not because it would put a limit on the freedom of its users

So it seems that the community has already given some thought to this topic; however I am still anxious to see what Jay has found from the research of his article.

Note: Tux logo borrowed from Phlak linux, a modular live security Linux distribution, see http://phlak.org

Mozilla Day Part 1

Permalink

Today shall be deemed Mozilla Day.

Update: Write-up from the OSLUG Website

Weather Balloon
Spectator balloon
Last Saturday at a Kveton BBQ Polvi, Marineau, Kveton and I were trying to come up with an idea to celebrate the 100 Millionth download of Mozilla Firefox.

At 50 Million we painted a Firefox logo mural in the middle of the MU quad which got a ton of attention. This time we wanted to do something even bigger so after several suggestions like paper mache logos and beachballs.

Then I remembered the NASA Oregon Space Grant Consurtium and LaunchOregon weather balloon program. Perfect!
NASA and Firefox together at last
So after a few minutes of thinking through the logistics it was a done deal.

On Monday I went to the Space Grant and talked to Catherine Lanier at the OSGC and she was pumped! w00t. The weather balloon was a go.

By Friday Northwest Graphic Imaging had donated a 5′x6′ poster that would fly on the balloon, press was covered and we found out perspective students would be hitting the quad at 12:00pm for launch due to the Beaver Open House.

The event went off smoothly today and we had a ton of people and coverage in the quad. It was a great collaboration of OSLUG, NASA Oregon Space Grant Consurtium, Mozilla, and NW Graphic Imaging. Thanks guys!

Around 3:00pm the satellite should have landed back on Earth from a descent of 100,000 feet. The satellite carried two cameras, one pointing down and another pointing at the poster both were on a 3 minute delay. And when we recover the balloon there will be amazing shots of the horizon and the Firefox logo.