Thursday, July 09, 2009

Sony Ericsson SDK Connection Proxy Woes

I just wasn't able any more to upload software to my JavaME phone with the Sony Ericsson SDK - one problem with the Connection Proxy after another. Tried this and that, restarted the SEMC service, rebooted phone and computer, to no avail - until I plugged the USB cable into a different port. WTF... But that might have to do with my cat chewing on the cable, so maybe moving the cable "fixed" a broken wire, for the moment...

Another thing: What COM port should you configure the connection proxy for? Hint: Using the Windows Device Manager, it will be not listed as a normal COM port (though the entry "Sony Ericsson Device xx USB WMC Device Management (COMy)" does look enticing and the proxy will connect to this port, but uploading an application will not complete successfully).

Look under "Modems" instead: Right-click "Sony Ericsson Device xx USB WMC Data Modem", select "Properties", select the "Modem" tab, and voila: The COM port you need is listed on top.

Wednesday, June 24, 2009

Anita's Life Time Achievements

What has Anita brought in our lives?
  • Living in Waikiki, Oahu, Hawai'i for 18 months
  • Buying our own spacious apartment with large balcony and workshop in the beautiful city of Münster
  • Tiki, Murray, Castor, and Pollux
  • Many travels to Canada, in summer and winter, in freezing cold and heat, from Vancouver over Calgary and Winnipeg to Montreal
  • Mobile phones for the two of us (with all the ensuing Java/ GPS programming fun)
Just a beginning, to be continued...

Tuesday, June 23, 2009

More functions in less gadgets

On vacation (and not only then) I am usually running around with a day pack full of gadgets (and the batteries required):
  • digital still camera for taking photos (Nikon D50 SLR)
  • binoculars for close-up observation (small Celestron)
  • map for navigation (USGS or the like)
  • GPS for recording track and navigation (Garmin eTrex, Foretrex 101)
  • voice recorder for recording sounds and taking notes (Olympus VN5500 PC)
  • walkie talkie for staying in contact with Anita (at least for 1-3km; Motorola)
  • USB stick for storing photos (Corsair 16GB)
  • MP3 player for listening to music (Apple iPod 6GB)
  • video player for watching movies (in example, on the plane; Creative Zen)
This spring I bought my first mobile phone (Sony Ericsson W580i), giving up my status as the last person on German soil without one. Initially I completely ignored that the thing can be programmed in Java. Then I got sucked in and programmed the swiss army knife-equivalent of a GPS application (after having bought a Bluetooth GPS receiver).

A mobile phone with a large flash memory card takes care of:
  • not really: taking photos (nothing replaces a good SLR!). A different phone might present and OK alternative.
  • not: close-up observation (a zoom with a stabilizer would be nice, but still not stereo)
  • OK: navigation -> Paper maps may be used only occasionally (and not get constantly pulled out of the rucksack)
  • perfect: recording tracks and navigation -> The eTrex gets retired
  • nice/perfect: recording sounds and taking notes -> The Olympus gets retired at least for taking short notes (exception: the recording quality of the Olympus is substantially better)
  • perfect: staying in contact with Anita (and that at long distance). Caveat: while within network coverage, and it costs more.
  • to some extent: storing photos (though 4GB is the largest supported memory card)
  • perfect: listening to music -> The iPod gets retired
  • perfect: watching movies -> The Zen gets retired (though the screen is a bit bigger)
  • additionally: the phone can take (mediocre) videos, which the SLR can't
So the eTrex/ Foretrex , the iPod, and the Zen can stay home for sure.

Monday, September 22, 2008

Video editing woes

When it comes to editing videos on a computer I always wonder why oh why things are so incredibly complicated! There is not one program that "does it all"; you always have to keep a zoo of tools around and learn more about their intricacies, shortcomings, and codec voodoo than you ever wanted.

I'm now using Avidemux and VirtualDub for editing and VLC for playing videos.

What Avidemux can do that VirtualDub can't:
  • GUI more userfriendly (obvious and quick selection of video and audio encoding options)
What VirtualDub can do that Avidemux can't:
  • Use the Deshaker plugin for stabilizing videos
  • Write uncompressed AVI (which produced huge files, but avoids quality loss when a coupling of editing steps are involved; some other programs want uncompressed AVIs)
Bugs/ problems I noticed:
  • When I use VirtualDub and Deshaker for stabilizing a video, audio and video are out of sync by the one second (30 frames) that Deshaker introduces in certain modes ("use previous and future frames to fill in borders"). The saved video plays in sync in AVIDemux (!) only, but not in VirtualDub, VLC, and Windows Media Player.
  • Uncompressed videos often don't play in VLC when your hard disc is "slow" (like, on a laptop). It seems that VLC does not play anything when loading the video is slower than needed for playing in (I would be happy with some stuttering).
  • VirtualDub tends to write AVIs (especially xvid-compressed) that can't be read by others like Avidemux (in example, all frames are just plain green) or even VLC.
  • Vista kept bombing when trying to render previews of MPEG4-encoded AVIs until I uninstalled the Xvid codec and removed any xvid remains in windows/system32. Then I reinstalled Xvid, and everything was fine.
  • Compressing an uncompressed AVI with audio time shift (introduces interleaved audio!) produced by VirtualDub into XVID AVI with Avidemux produced stuttering sound.
  • Stuttering sound? Probably VirtualDub is writing interleaved audio.
How to Deshake
  • Load video into VirtualDub
  • Copy any 30 frames("video", "select", "length" 30), append on the end (move cursor to the end, paste)
  • Add Deshake filter, pass one ("scale" "full", "use pixels" "all")
  • Play output video (or save to dummy file). This makes Deshake write a log that is used by the second pass.
  • Edit Deshake filter, pass two ("use previous and future frames to fill in borders")
  • Save output video
  • Load output video into Avidemux (since shifting time with VirtualDub introduces interleaved audio which creates stuttering sound), set audio "Shift" to "1000" (ms), cut off first 30 frames, save

Wednesday, July 23, 2008

Info screens

What to do with two "old" LCD monitors? Connect them to a cheap, small Ubuntu system, and hang them on the wall as info screens, or electric images.

Step 1: Create a steel frame. This required some welding, which I don't have a clue of, but I tried anyways. After some heavy and ugly frying and even some more massive grinding I managed to manufacture a frame which actually did not fall apart AND fit the monitors!



Step 2: Mount monitors into frame, and mount the whole stuff to the wall.



Step 3: Create some nice cover for monitors and computer. To do!

Step 4: Install computer, and get Ubuntu to understand there are TWO friggin' monitors (that is tough going so far).

More images to follow!

Wednesday, July 16, 2008

Two new family members

th At the beginning of May our cat Tiki ate some Ransom on out balcony that we had brought in from our Schrebergarten. Usually we are pretty careful what kinds of plants we put within reach of our animals; this time we weren't - with almost severe consequences. Tiki started behaving erratically within minutes, and Anita rushed him to the vet.



When she came back quite a bit later, Tiki was reasonably OK, and she had a box with a fleece blanket with her. In the box - were two tiny baby cats, just two weeks old. They had been born on a farm, but their mother didn't take care of them. The vet was looking for someone to take care of them, and - voilá - here they were.

The same night I saw the constallation of Gemini setting in the West, with the two stars Castor and Pollux shining brightly. Hm... So the two little guys were named Castor and Pollux. Castor was about 50g heavier than Pollux, and has a more white than orange fur than Pollux.

For the six weeks we had to feed the critters milk every 3-5h, including the nights. Very sweet, but quite demanding, too.



Three months later, and they are already small cats ("quality from the region", the box says). "They grow up so fast" :-)

Sunday, June 08, 2008

Casting the scope column

Last May I bought an astronomical telescope, and for good observations you need a stable mounting. The scope comes with a pretty massive tripod, but for astrophotography and added comfort you want a real mounting such as a concrete column.

Now, building a concrete column on rented property is usually frowned upon. Luckily Anita found us a Schrebergarten (a 300m² parcel in a garden colony) in April, and that made it possible to implement the plan.

2008_0229_162345AA

It started with a 80cm deep, square hole (about 60x60cm) in the ground. Why 80cm deep? This is the recommended depth to be frost-safe in Germany. Otherwise ice might form under the foundation, and tilt the construction. Into the hole went three vertical reebars in a triangular configuration, four horizontal rebar mats at regular intervalls, 12 bags of screed cement (40kgs each; I feld like dead afterwards), and lots of brick debris I found in the garden. I cut myself two plywood discs to keep the rebars in the desired position until the concrete set.

2008_0301_163344AA

Then nothing happened for a couple of months since casting the column required frost free weather. And, yes, the garden gets very wet at times.

2008_0501_163427AA

A 20cm diameter plastic drain pipe would provide boarding. I cut a screed rebar mat into a rectangle and bent it into a cylinder, using some wire to hold the ends together.

2008_0503_183745AA

The rebar mat went over the three vertical rebars (that is, the rebars are inside, the mat is wrapped around them on the outside).

2008_0501_171750AA

Two plastic cable canals went into the center of the column, held in place by wire. One canal will be used to supply power, the other will... be used for something I decide in the future.

2008_0502_182238AA

How do you keep the boarding away from the rebars (there should be about 2cm of concrete between rebars and the surface)? After trying some stuff that did not work I drilled three holes into the concrete foundation, and put plugs and screws in. These screws kept the plastic pipe were I wanted it. Don't use force when putting on the borading - I broke off one screw, and was not happy about it. No need to care about the vertical rebars since they are already embedded in the foundation.

2008_0503_184211AA

The last ingredient are three threaded stainless steel rods. The aluminum plate that will later hold the scope mounting is already in place to hold the rods in position when the column is poured. I tied the rods to the rest of the construction with wire.

2008_0504_170509AA

Tadaa! The concrete is in, with Annie helping a lot. I used a long stick to compact the concrete and drive out bubbles, and used a rubber hammer to tap the boarding, again to remove bubbles. That actually worked quite nicely.

A note on the side: I had bought five sacks of concrete for the column though that seemed a bit much. It turned out I calculated the volume by using the diameter instead of the radius, ending up with a number 4 times to high...

Parts mounting adapter

Remember that aluminum plate two images fourther up? That will be the base for the mounting. The three parts in this picture form the counterpart: a ring made from thick plywood (glued together three 4mm layers) acting as a spacer, another aluminum plate, and a fastening screw I welded together from a threaded rod, a nut (both stainless steel), and a cut-off hexagonal spanner ("Inbus-Schlüssel").

Detail mounting adapter

This is how it looks put together (from below the base plate). Note the distance between the column and the base plate is quite large, but I can make that smaller if I want to.

Scope mounting, nicely horizontal

The base plate is held in place by three nuts below and three nuts above. After some dickering I got the plate in a nicely horizontal position.

Concrete column with mounting

Two weeks later I cut open the boarding (a longish session with a Dremel cutting disk and lots of cursing, but it worked). The column looked great, pretty smooth with only a few bubbles. A hexagonal platform made from Siberian Larch to sit on with a camping chair will be added later (the boards already have been bought and cut).

Labels:

Tuesday, February 26, 2008

Pouring the observatory foundation

Last Sunday Annie and I have been inspecting the Schrebergarten to see what the plants are doing, and my gaze fell upon that muddy whole that was supposed to contain the foundation of my telescope column.

Enough! So I donned the rubber boots and shoveled out mud for 30 minutes. To my surprise the hole did not cave in (though the upper part had widened a bit), and I had a pretty clean surface on the bottom that slowly got covered in water. Hurry! I put in a couple of brickes, laid on one of the three rebar mats I had cut half a year ago (holy sh*t), put in three vertical rebars, and started mixing cement in two large plastic vats.

Mixing concrete manually with a shovel is hard work! I started dripping after the first two bags, and had eight more to go. Removing the mud already had me caked in, and the concrete added some more accents that later required showering with my clothes on, using a brush to clean me off the worst.

10 40kg cement bags later (I could hardly close my fingers for two days from lugging around the weight and mixing the concrete), two more rebar mats and all of the stones we had found in the garden had disappeared in the hole, filling it to about 10cm under the surrounding surface. Just like I hoped it would. Meanwhile in total darkness I fixed the rebars into position, and called it a day.

Now I have to wait for the frost-free time of the year before I can pour the column itself. And then - enjoyable astronomy without tripod from a rock-solid, horizontal and polar-oriented platform.

Labels:

Saturday, April 07, 2007

Open Source has its problems, too...

I just installed Trac, an OpenSource bug tracking system. And, boy, what an experience it was. While I'm aware that Joe Average would not install a bug tracking system on his computer I am no Joe Average (I have some 26 years of computer experience on my back), and I don't understand or at least I don't like things to be that complicated.

How did it go? I downloaded Trac and ran the installer.

BUZZ! Python was not found. Downloaded Python 2.5, installed that, installed Trac afterwards, tried to start Trac. OK, where is the start button? No entry in the program menu. Where did it install to... hm, it didn't actually ask me... can't find it! Used the Windows search function, and, aha, it installed itself somewhere south of the Python installation. F...ine, looked at the Trac web page and ran the Python interpreter with the admin command.

BUZZ! SQLite missing, a lightweight SQL database. So I downloaded that, but how to tell Trac where to find it?! I don't know! Copied it into the Python install dir; to no avail. In the end located a Python SQLite module and installed that. At least now the admin tool runs to completion. Ahhhh... Issued the command to start the web interface.

BUZZ! "Clearsilver" not found - some HTML template mechanism by the Trac people that I never heard of before. Isn't it great to have standards? Let's create our own! Located Clearsilver, but only could find binary builds for Windows - good for Python 2.4 (plenty of current builds for Linux). After contemplating an excursion into building the stuff from source myself, I cursed, uninstalled Python 2.5, downloaded 2.4, installed that, and Clearsilver on top. The web interface started up, so I tried it out.

BUZZ! Now I am getting even more annoyed than I was before. For Christ sake, I want to run a simple bug tracking tool! Why can't there be a "install it all" option for people who are not experienced Linux sys admins?! It seems I selected SVN integration, but there are no Python binding for SVN installed, whatever that is. Used Google for a while and found a 40+MB Windows version of SVN, and matching Python binding. Installed both, a way bigger helping than Trac is. Why in hell does SVN have to bring it's own Java Runtime? I know, I complained above, but expecting people to have Java installed is a bit different from demanding Python and Clearsilver to be present.

After that the web interface worked, but for today I lost my appetite to explore Trac.

Saturday, August 26, 2006

Breakfast at the Rieselfelder

Canada Geese in flight Today we had breakfast on the observation tower overlooking the Rieselfelder North of Münster. From here one has a fantastic view of the surrounding shallow lakes, marshes, and meadows, and the hundreds of birds that live here. Every now and then, a flock of noisy Canadian Geese flew by, commuting between a lake and a meadow (video).

As we unpacked and ate our goodies we made the acquaintance of a very nice couple from the vicinity of Düsseldorf. Being keen hobby ornithologists, we were advised on different bird species living or migrating through the area. Additionally, we were able to use their fancy spectives with a magnification of up to 60x.

Nutria But not only birds live here. We got pointed out a nutria nibbling away at the greens just below the tower. Just's just like in a nature documentary! We were impressed, and stayed over three hours without feeling bored for a second. Pleasant warm weather, good food, nice company, great views - what more could you want.

Tuesday, August 01, 2006

Flying over Münster

This is the Google Earth view of a flight with a pilot friend (Thomas) over Münster. We took off at Telgte (top right), did a loop over Münster (left), and did some experiments on the way back (multiple drops in height, bottom).

Sunday, December 11, 2005

The Next Big Thing (Ruby, Rails, AJAX)

Every now and then The Next Big Thing on the Internet is being advertised. And indeed, the press coverage and number of followers is growing, big companies are making big announcements. I get nervous - is this something I better take a look at? Is my knowledge portfolio of Java and Swing becoming obsolete?

After reading the documentation and working through a couple of tutorials I can report: relax. While some aspects are nice, there is nothing really new under the sun.

Ruby is an OO-oriented scripting language, and Rails is a web application framework built on Ruby. Quite a number of people praise Ruby for its simplicity, getting rid of the supposed strictness and rigidness of Java, and compare it to Perl and Python, but with a better OO-feel.

This is when my alerts go off: while I like Perl very much, its lack of type checking and a number of other "strict and rigid" features make it a huge pain in bigger applications. In that regard, Ruby is just the same. While the OO-features are excellent, the lack of compiler checks might become a problem with larger applications with many 1000s of lines of code.

Rails is cool, too: it indeed is possible to hammer together a DB-based web application in no time at all. Provided you're happy with the Rails framework, which gets 80% of the work done in very little time. The other 20%, that you might not need, can be a problem, though: you'll have to dig as deep into the framework as you'll have to with other technologies.

Same with AJAX: It helps to get a more local-GUI like feeling with Web apps, but the whole thing is a huge JavaScript, HTML DOM, and XML contraption that makes me wonder why people don't just use a Java Swing client.

If it is so painful to use HTML and a Web Browser to create an application that is easy to use, responsive, and optically pleasing: isn't that a hint that maybe you're trying to achieve something with the wrong tools?

Monday, August 15, 2005

Münster - The August that did not happen

The weather persistently sucks this August. After a marginal Saturday everything is back to normal today - low clouds, rain showers, and 14°C in the morning. This is the 4th coldest August since 18xx so far! And the weather tries every day to cement and extend this record.

This does not keep us from going on our walks around the Aasee or town, but wouldn't it be for the green leaves in the trees nothing would be different from a not-so-nice October day. Maybe we get a nice September, or Indian Summer in October? Maybe pigs fly? Let's see...

Tuesday, July 26, 2005

Münster - What summer?

He's a catsaroo! With that kind of weather you better sleep until things get better - that's what Tiki is doing. The long lense - perspective makes me wonder if his mother had an affair with an animal from Australia :-)

If I was a mushroom I'd be happy - no sun, low clouds, moisture, lots of rain, warm temperatures would be just what I need. Alas, I'm only human and would prefer sunshine, blue skies, dry air, no rain, and summerly temperatures. This weather seriously sucks and depresses me!

Friday, July 22, 2005

Tiki - When he was a child

Tiki in Annie's arms It's been not so long ago - Tiki was born around end of September/beginning of October last year, and came to us beginning of November. He was soooo small, but sliced and diced like a high tech blender. Hard to believe when he is deeply asleep, ultimately trusting the person that holds him dear.

Tiki, vertically asleep I had huge problems with my allergies at first, and developed asthma-like problems (it's much better now). We tried to shut him out of our bed at night by putting a card board barrier around it. It regularly took about 90 seconds of truly heartbreaking meouwing before we let him in.

Tiki's on the ball How could you possibly shut out something so sweet? Sometimes he would look at the TV, and fall asleep as he lay streched out to reach the top of the arm rest of the couch. At times we woke up in the morning only to find Tiki had nestled in between us (under the blanket, that is), or sleeping on the cushion wrapped around our heads. I wished I had been reacting less allergically then...