The life of a CA Copenhagen Campus Connection

Wednesday May 13, 2009

Last week (in the beginning of May) a couple of developers successfully ported Virtualbox for FreeBSD. This is substantial because there isn't currently any proper virtualization software for FreeBSD, so within the FreeBSD community - this is deemed even bigger than the porting of ZFS to FreeBSD. :-)

The Virtualbox people has made a nice draft on how to port Virtualbox, if you feel inspired to look at the procedure.

The original announcement-mail to the Virtualbox developer mailliste can be found here


Thursday May 07, 2009

Thursday April 30th OpenSolaris and NetBeans technology evangelist Roman Strobl paid us a visit in Denmark and did a super talk on the NetBeans IDE - about 22 people showed up despite the fantastic weather and the pre-May 1st celebrations - and Roman did a whole lot of demo'ing of NetBeans - which left people very quiet and attentive throughout the talk. One of the attendees were actually in the middle of implementing a working git repository plug-in for NetBeans!


After about 1 hour we had a small break, in which there was served bagel-sandwiches and refreshments - Sun had also provided for a lot of free stuff for the attendees - t-shirts, coffee mugs, OpenSolaris 2008.11 DVDs and Getting Started on OpenSolaris mini-books which swiftly disappeared.

After the break there was a small presentation on HackLab, which is a new initiative in Denmark - trying to get people working together on larger (open source based) projects. We also talked a little about project Kenai. Afterwards a couple of us went to a local microbrewery called Bryggeriet right beside TIVOLI and continued the informal talking.

It was a really nice event. A big thanks to Roman for a splendid talk :-)

Thursday Apr 30, 2009

Today - Thursday April 30th - we have the pleasure to introduce NetBeans and OpenSolaris technology evangelist Roman Strobl. Roman has approximately 10 years of software development experience in Java and various dynamic languages. He is a frequent speaker at software conferences including Sun Tech Days, various Java events, and user group meetings. He enjoys working with open source communities and his current passion is evangelizing OpenSolaris and NetBeans.

Roman will be visiting us as part of a Central Northern Europe University tour, where he will talk about The NetBeans IDE and NetBeans plug-in development.

NetBeans is an Integrated Development Environment much like Eclipse. NetBeans began in 1997 as Xelfi, a student project under the guidance of the Faculty of Mathematics and Physics at Charles University in Prague. Roman Stanek later formed a company around the project and produced commercial versions of the NetBeans IDE until it was bought by Sun Microsystems in 1999. Sun open-sourced the NetBeans IDE in June of the following year. In October 2008 NetBeans celebrated its 10th year anniversary.

The talk will take place at DIKU, Universitetsparken 1, 2100 København Ø, auditorium Lille UP1 at 5 pm.

There will be a sandwich, refreshments and a couple of give aways for the attendees.
Please sign up for the event.


Wednesday Apr 15, 2009

 

Are you one of those hip Eee-owners?
If yes, then check out http://code.google.com/p/opensolaris-liveusb-for-eeepc/

It makes it darn easy to install OpenSolaris on your Eee. :-)

If you need any help there is a discussion list on
http://mail.opensolaris.org/mailman/listinfo/eeepc-discuss

Or if you are located in Denmark - feel free to join the Danish OpenSolaris User Group (DOSUG) (www.dosug.dk) and ask your questions at our mailinglist. And while you are at it - make a big fat mark in your calendar on April 30th - where OpenSolaris technology evangelist Roman Strobl will visit us for the CNE University tour. :-)

Wednesday Apr 01, 2009

Sun has announced the launch of the JavaFX Coding Challenge, a coding contest that offers both professional and student developers a unique opportunity to win up to $25,000 USD (thats a hell of a lot of money!) in cash and have their application featured on the JavaFX.com website.

Developers and students are required to create and develop rich internet applications (RIA) using JavaFX 1.1 and NetBeans 6.5. The call for entries is open to persons of legal age in more than three dozen countries.

Sun is offering a number of prizes, with a top award of $25,000 USD in addition to cash prizes of $10,000 USD and $5,000 USD. There is a special category for students at an accredited college or university, with three $1,500 USD cash prizes that will be awarded to the top student applications. Students will not be limited to competing in this category, and are eligible to vie for the larger prizes as well. Additionally, Sun will award up to 100 honorable mentions, which will each earn a $25 Amazon gift certificate.

Java FX is a runtime with supporting tools and technologies that enable content authors and developers to create new content that combines the best capabilities of the existing Java platform with new immersive media services, which can be securely accessed from mobile phones, desktop browsers, TV and other consumer devices. The JavaFX platform is unique in that it allows content developers to focus on creativity, and not coding, while enabling them to create expressive content through the use of one platform across multiple media assets. The latest JavaFX Mobile platform was released in February.

The contest runs from now through May 29th. The entries will be judged by a panel of experts, to include members of the JavaFX engineering and product marketing teams. The winners will be announced during the week of June 29th.

The details of the contest can be found at http://www.javafx.com/challenge - now go go go make some fun apps!

Sunday Mar 15, 2009

At April 15th you have the possibility to attend CommunityOne North in Oslo for FREE. Its a jam-packed day of education, innovation and exchange.

CommunityOne North is held in connection to the Nordic conference GoOpen 2009 and the Nordic Perl Workshop  - so you can attend 3 conferences in 4 days - it's almost like an early easter egg...

The organizers have been working their butt off, to put together a super program including:
  • Ian Murdock: Connecting the dots: Open Source and Cloud Computing
  • Håkon Wium Lie, Opera Software: One Web
  • Simon Phipps: The Third Wave of Open: Open Source and Business Models
  • Knut Yrvin, Nokia: Why Nokia acquired QT

Check out the program - its going to be a  tough choice which session to attend! Sun got so many cool things going on a the moment.

Best of all - you can register today!

Hope to see you in Oslo on April 15th :-)

Tuesday Feb 24, 2009

Late 2008 I succeeded in persuading our database teacher to try out Glassfish for a new course on Web and Database programming for first year students. So before I knew it I was responsible for setting up a central Glassfish server for around 120 freshman programmers - UGH!

So how to best do this? This course has weekly lab-exercises and the teachers assistant need to grade them, so a distributed solution with a virtualbox image including netbeans and glassfish was not really the way forward - we needed a central server that the IT-dept. could maintain.

At DIKU we primarily use Gentoo Linux for our server park, so a standard HP DL360 G5 rack server was bought and a 64 bit version of Gentoo was installed from our customized Gentoo installation environment with Cfengine on top. Fortunately somebody had already made a Gentoo e-build package for Glassfish v2UR2, which easily could be updated. And within the hour I had a Glassfish server up and running - then the fun began  - it needed configuration.

Our education environment is based on Sunray terminals, but uses Linux based application hosts. Our app-hosts had Eclipse installed, so at first I thought that Eclipse could be used to interact with the remote Glassfish-server, but NONONO! Our Eclipse was the basic Eclipse installation, which didn't support Java EE applications, so I tried installing the Eclipse Enterprise Edition which has a nice Glassfish plugin - but alas - this plugin only support a local installation of Glassfish and couldn't connect to a remote server, so I turned to Netbeans 6.5.

The full edition of Netbeans 6.5 did the trick, but STILL required a local installation of Glassfish for the plugin to connect to the remote host. OK - so far so good. Now the students should be able to connect to the server from within Netbeans and deploy their web-apps.

Then for the configuration of the server: 120 freshman programmers, which need to be able to run their web-apps without crashing the server or overwriting each others programs. I turned to the Sun Java System Application server 9.1 admin guide (which is Glassfish).

Glassfish has support for virtual hosts, so I was wondering whether just setting up 120 virtual hosts would do the trick. Unfortunately the Netbeans Glassfish plugin, does NOT (currently) support deployment to a specific virtual host, so each student had to be given his/her own Glassfish domain which include two dedicated ports - one for the admin interface and one to view the web-apps.

I ended up configuring each domain with the following setup:

I started /opt/glassfish/bin/asadmin in interactive mode and typed:

create-domain --user di080156 --adminport 11156 --instanceport 12156 di080156

Our student accounts are named di080XXX for the student year 2008/2009 where XXX is an increasing number. The UNIX UID for these accounts are always 11XXX where XXX is the same number as in the account name. So I chose that the adminport number should be the same as their UNIX UID, which can easily be looked up in the system by using the command

purps@ask ~/$ id di080156
uid=11156(di080156) gid=10000(del1user) groups=10000(del1user)


The instanceport number is the UNIX UID + 1000

The name of the domain is the same as the student account number, so when I do a 'list-domains' from asadmin, it will be clearly visible which domains might need to get started.

When creating a new domain an admin-user and an admin-password need to be set. The admin username will be the student account number, while the password will be db + the students birth date (DDMMYY) which I could easily pull from our central postgreSQL server.

Now it will be relatively easy for each student to remember the most important data (the servername, the admin-port, the username and the password) to connect to the Glassfish server through Netbeans:

Log on to DIKUs system from a sunray terminal
open a xterm with 'besthost bach'
open /opt/netbeans-6.5/bin/netbeans &
(wait while Netbeans starts)

Choose File | New Project...
Choose Java EE and the type of project
Choose a name and place for the project

Click on button Target Server - choose Add...

Server: Glassfish V2 - click Next
Platform Location: /opt/glassfish-v2ur2

Choose Register Remote Domain og choose Next
Host: glassfish.diku.dk
Port: enter your UNIX UID for your student account
Choose Next
Type Admin username: your di080xxx account name
Type Admin password: dbDDMMYY - where DDMMYY is your birthdate
Choose Finish

Tuning the Glassfish-server

Unfortunately starting 120 domains requires A HELL OF A LOT OF RAM. Each domain is by default started with 512 MB. Our server "only" had 20 GB RAM and 140 GB of swap, so I needed to decrease the RAM usage of each domains JVM. I found the document "Tuning your Glassfish - Performance Tips" presentation and went to /opt/glassfish/domains and for each domain I changed domain.xml from

<jvm-options>-Xmx512m</jvm-options>

 to

<jvm-options>-Xms192m</jvm-options>
<jvm-options>-Xmx192m</jvm-options>

Afterwards each domain can be started with the command 'start-domain di080XXX' from asadmin, but after a while you don't want to start 120 domains manually, so a collegue of mine wrote a small script to start/stop all domains sequentially.

#!/bin/bash

ASADMIN=/opt/glassfish/bin/asadmin
DOMAINDIR=/opt/glassfish/domains

start_all(){
        for DOMAIN in ${DOMAINDIR}/*; do
                ${ASADMIN} start-domain ${DOMAIN##*/}
        done
}

stop_all(){
        for DOMAIN in ${DOMAINDIR}/*; do
                ${ASADMIN} stop-domain ${DOMAIN##*/}
        done
}

usage(){
        cat <<-HERE
        Usage: ${0} [command]

        where command is one of

          start     start all domains
          stop      start all domains
          restart   first stop and then start all domains

        HERE
}

case ${1} in
        start)
                start_all
                ;;
        stop)
                stop_all
                ;;
        restart)
                stop_all
                start_all
                ;;
        *)
                usage
                ;;
esac

Now I am anxiously awaiting the students use of the server. The RAM usage is horrifying and it is swapping like crazy, and I am unsure if I should stuff even more physical RAM in the machine or try turning down the JVM RAM usage on each domain even more. Here is a snapshot of top:

top - 12:23:00 up 22:22,  2 users,  load average: 1.55, 4.88, 4.06
Tasks: 212 total,   1 running, 211 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.2%us,  0.3%sy,  0.0%ni, 79.3%id, 19.1%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:  20600040k total, 20497768k used,   102272k free,     6736k buffers
Swap: 143338536k total, 18882040k used, 124456496k free,    18708k cached
Which user (blank for all):
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                
23825 root      20   0  708m 166m 3820 S    1  0.8   1:49.27 java                    
 7208 root      20   0 10560 1288  876 R    1  0.0   0:00.37 top                     
31804 root      20   0  784m 167m 3820 S    1  0.8   1:50.51 java                    
  242 root      15  -5     0    0    0 D    0  0.0   4:08.55 kswapd0                 
  394 root      20   0  706m 167m 3848 S    0  0.8   1:47.89 java                    
 1537 root      20   0  787m 168m 3820 S    0  0.8   1:48.49 java


Sunday Feb 15, 2009

I've just returned home from 3 days in Prague - 3 fantastic and awesome days!

The tour was a opportunity to meet with the rest of the Campus Ambassadors from Central Northern Europe - and my expectations were fulfilled - it was 3 very intensive days.

A couple of us landed around the same time in the airport on Wednesday and shared a cab to the hotel. Afterward we went sightseeing in Prague - it was damn cold, windy and snowing, but it was the only day we had time for it, so we walked and walked and walked around the beautiful city with its churches and bridges and amazing castle.


Karls Bridge by night

Day 2 was an orientation with lots of sales talk and info on the goals of the Campus Ambassador program mostly for all the new CAs. Day 3 was more technical (more me), with presentations from the Solaris Testing Team and the Netbeans team which are both located in the Prague office.

But what was really really great about this meeting was the hallway track (as always). Meeting the other CAs face to face, hearing their experiences and best practices on how to be a Campus Ambassador. Learning new stuff between presentations and having a laugh with new friends.

Thanks guys - you're awesome!

Universal Translation Architecture

Did I forget to mention that the beer in Prague is damn good?

Saturday Feb 07, 2009

Wedensday I was attending Talk-IT at Copenhagen Business School. Granted - the program was not technical oriented, but it gave a good overview of the current state of open source in Scandinavia. It was also a Norwegian 101 language-course, since 2 of the three speakers were from Norway:
  • Per Andersen, CEO IDC Nordic
  • Heidi Austlid, CEO Nasjonalt Kompetansesenter for Friprogramvare
  • Lasse Andresen, CTO Central & Northern Europe Sun Microsystems

Per started out with a couple of statistics. Fx. the use of open source in services, which is on the rise, fueled by the economic recession, but still only holding a small percentage of the overall service market. There is room and potential for growth in this sector.


Heidi Austlid was the second speaker. Giving us an overview of the state of open source in Norway as seen from her chair. On some points Norway is far ahead of Denmark, when it comes to initiatives regarding open source in the public sector fx. schools and municipalities (local authorities). Here the economic recession is also speeding up the adoption of open source in the public sector - local authorities want to use the tax money actively on welfare instead of passively on fx. licenses.



Also Nasjonalt Kompetansecenter for Friprogramvare is the main initiator of the Norwegian open source conference GoOpen, which had about 550 participants last year. GoOpen 2009 is scheduled for 16th -17th April. This year it is co-hosted along with the Nordic Perl Workshop and Sun Microsystems plan to have a small Nordic CommunityOne conference on the day before. From what I heard from the organizers, they have a strong lineup of speakers ready - so check out the program - it should be released any day now.


Last on the program, was Lasse Andresen, CTO of Central & Northern Europe from Sun Microsystems - and he was the main reason I was attending Talk-IT. David and Rikke from CommunityBuilder was nice enough to introduce me during the break, and I had a nice chat with Lasse, who was a very down-to-earth-kindda-guy (like most other Sun folks I've talked to) despite the fancy title.



Lasse's main focus of his talk was not OpenSolaris but the entire stack of open source software from top to bottom that Sun is capable of delivering. In fact I think he's opening remark was something like "This is NOT going to be about Linux" - which was very much in line with Per's notions on the growth of the open source service market. Sun Microsystems is right now one of the worlds biggest contributors to open source, only beaten by a very well known university (University of California/Berkley).

All-in-all it was a really good experience to participate in Talk-IT, and if you can find the time - the first Wedensday in every month from 15.00-17.00 @ CBS, you should attend.

Thursday Feb 05, 2009

So finally - the new gadget program "So ein ding" with Nikolaj Sonne from DR is here. Don't forget to watch it every Tuesday at 20:30 at the channel DR2 (Danish Television). If you aren't into watching TV at particular times, it can also be downloaded as a podcast and viewed at the webpage www.dr.dk/ding.

In the first show they are reviewing the new touch screen from HP.

Wednesday Jan 14, 2009

My little GPSSpot project for the High School Teachers Inspiration day has moved a little forward. I now have the GPS wired to the SunSPOT - all I need now is to get the code working. Fortunately SunSPOT developer David G. Simmons already have a working prototype, so I'm going to borrow as much code as possible from him (thanks David!) :-)

I had to drill a small hole in the sunroof to pull the wires through. The GPS module is currently held by double sided tape underneath, so I can remove it afterwards.

Here is a nice picture of the whole thing. It's a pretty compact little package:

And here is the schematics of how it is currently wired. The 1-pulse-per-second (Pin 6), is not currently connected.


Thursday Jan 08, 2009

"Ohhhhhh how cute" - My happy exclamation caught my colleagues ear and she swiftly responded - "OK Sidsel, you might as well show me - what hardware landed on your desk today?" - I giggled - she know me way to well, to know that "cute" in my world means small nifty hardware and not fluffy "Hello Kitty"- stuff.

I promptly showed her the 4 small GPS units from US GlobalSat (SiRF StarIII - EM406A) which I plan to mount on my SunSPOTs. I chose this particular unit, because its been used successfully with the SunSPOT before.

On January 30th the University of Copenhagen is hosting a High School Teachers Inspiration Day, with lots of info about how the teachers can use and incorporate knowledge from the university in their teachings. The afternoon is spent in different 3 hour workshops of which I will participate in the one entitled "Outdoor life".


Showing Computer Science to non-computer scientists can some times be a bit tricky, since most of what we do include thinking and sitting behind a screen and code stuff that people mostly don't see directly - (unless you are a game developer of course). But here the SunSPOTs come in handy. You place a SunSPOT in peoples hands and suddenly they can walk around with an application that respond to the environment, or in this case their position and movement - pervasive computing at its best.


Once they get within range of the base station it will plot their route through the north campus on Google Maps - at least thats the plan - it's not working yet. The Gym teachers can measure the distance they've walked, the Geography teachers can talk about longitude and latitude and perhaps time zones and The CS teachers (if there are any attending the workshop) can talk about the Global Positioning System (GPS) and fx. decoding of the NMEA format. If there are any Danish teachers they might discuss "the ethics of the surveillence society".


I have yet to figure out what to tell the Chemistry teachers though :-/ 

If you have any ideas, I'll appreciate your input.

Thursday Nov 20, 2008

 

Last week the Danish radio program Harddisken sent out a mail to their Facebook-group. They needed volunteers to screen their ideas for a new Gadget Magazine, which is to run on Danish National TV  (channel DR2) beginning in 2009. For a gadgeteer like me, it sounded way to fun to pass an opportunity like that, so I sent them an e-mail. They had received about 50 answers to their mail, and they needed only 5 volunteers - luckily I was one of them :-)

So today I went to "DR-byen" to listen for about an hour or so. Two teams pitched their ideas for the new magazine, which is (hopefully) to be placed right after the program "Viden Om" (a science show) every Tuesday on DR2.

Do you know the Danish Gear-TV? DR snatched their host for their new show and he is going to present all the new gadgets to Mr. and Mrs. Denmark at prime time.

Their ideas sounded really fun and cool - so if you are a gadget fanatic like me - keep a lookout for the new program in 2009!

Tuesday Nov 18, 2008

For a while now its been bugging me, that I was unable to use our radius controlled wifi-access on campus from my iPhone, so it was time to investigate how to resolve it. 

It turned out to be ridiculously easy :-)

First you need to download and install the iPhone Configuration Utility 1.0.1 to your Mac
From within this tool you make a new configuration profile containing the right radius authentication with TTLS-PAP


Afterwards you export the .mobileconfig file (which is basically a normal mac plist XML based file)

Now upload the file to a webserver of your liking fx. Apache - and change the httpd.conf file to include the following MIME-type to recognize the file on the iPhone

AddType application/x-apple-aspen-config mobileconfig

Now open up Safari on the iPhone and go to the URL, where the .mobileconfig-file is located.

You now get the option to install the configuration. Press the Install button. (Sorry - text on screenshots is in Danish!)



You now get prompted to type in your radius username - type it and press Next


Now you get prompted to type in your radius password - type it and press Next


Press OK to the confirmation that the configuration has been installed.

Now go to the Preference wifi-pane on the iPhone and choose eduroam, you will get prompted with the radius certificate - press Agree



Congratulations - you're now on eduroam/radius with TTLS-PAP authentication :-)

Wednesday Nov 12, 2008

It had to be tried - installing the brand new OpenSolaris 2008.11 on my Eee pc 901.
It wasn't a bump free road....

I downloaded the new OpenSolaris 2008.11 snv 99 from www.genunix.org. Attached a USB DVD-drive and booted from it. Chose the first boot option from the Live  CD, and waited.

The good news - keyboard now works without having to add -v option to GRUB. The bad news - the boot stopped when trying to launch the GUI part of the Live CD. So I booted the text console option and ran a scanpci to check the graphics card.

Then off to defect.opensolaris.org to enter the bug into bugzilla. Pretty soon thereafter I got a mail about trying out some new Intel 945GME drivers, so I followed the hints in the blog

http://blogs.sun.com/oslab/entry/patched_intel_video_drivers_for

but unfortunately I still couldn't get it to work, propably due to some failure on my part :-(

meanwhile OpenSolaris 2008.11 snv 100 has been released, so I felt the urge to try again.
No luck :-(

Then I stumbled on http://blogs.sun.com/menno/entry/support_for_the_intel_945gme
- oh joy the Intel 945GME chip is supported from build 103 - must go download.....