Friday, May 28, 2010

Steam is Alive!

There is still stuff out there for steam engines!

http://www.toysteam.net/ has basic Wilesco and Jensen engines as well as Krick boat kits.

Put-Put engines might be the simplest steam engine to build at home, see http://sciencetoymaker.org/boat/makeBoat4_07.htm

iphone, blackberry, mobile web pages

When trying to create web pages for web browsers in mobile devices, the initial idea might be to simply create "small" pages which for example contain images with a widths of 480 pixel that should fill the display of a 480-pixel-wide phone.

In reality, that image might then only use about 50% of the screen!

Reason: Mobile web browsers pretend to be like a desktop web browser, for example having close to 1000 pixel screen width, and then scale the web page down to fit onto the physical display, so a 480 pixel images uses 480/1000 = about 50% of the screen.

One important hint is this HTML tag that instructs the mobile web browser to use the phyisical screen widths:


<meta name="viewport" content="width=device-width">

See


Friday, May 14, 2010

'Processing' for graphical art and gimmicks

Found this: http://www.openprocessing.org/ : Language based on Java for creating graphical gimmicks.

Laptop from Trash to the Ham Shack

Assume you have a 6 year old Compaq Presario 3000, disk is full of programs no longer (or never) used. Plus: it has been dropped so that the display's lower 5mm are garbled up and the DVD drive no longer closes.

Throw it in the trash?
Or:
  1. Reinstall Windows from scratch, then add Google Chrome, GIMP, EchoLink, Java, Eclipse
  2. Move the task bar from the damaged lower section to the left of the display
  3. Close the DVD drive with tape
  4. Add more memory, 1GB can be had for less than $30
Voila, good as new! Not really, but good enough for the shack, plus its speaker system is nice for watching online movies.











Damaged Display


DVD Drive that won't close


Task Bar at left, avoiding Damaged Display


"Fixed" DVD Drive


Thursday, May 13, 2010

Features for Multi-OS Plugins

Assume you have a plugin for more than one, but not all platforms. One that may run on Windows and Linux, but not OS X. Assume it's called the "non_osx_tool" plugin, and the plugin's MANIFEST.MF contains a filter:

Eclipse-PlatformFilter: (| (osgi.os=linux) (osgi.os=win32))

Fine.

Now you switch to P2, and base your Product on Features. So there's a feature that lists this plugin. If you just list the plugin, then try to compile for all OS, all will look OK, but installation will fail on OS X because the feature requires the installation of the "non_osx_tool" plugin, which in turn declares itself unavailable for OS X.

You can specify in feature.xml that a plugin is OS-specific:

<plugin id="non_osx_tool" os="linux" ...

That way, the installation will work better because the feature will only trigger installation of the non_osx_tool on Linux. But you can only list one OS, Linux or Windows, not both.
I tried to use os="linux,win32" but that resulted in compiler errors The type ... cannot be resolved. It is indirectly referenced from required .class files referring to code in dependent plugins which were suddenly not found. Listing multiple architectures is either unsupported, or uses a format that I couldn't find.

Solution:
Create additional features "my_feature.win32" and "my_feature.linux". They each list the plugin for only win32 or linux, and the top-level feature then includes both these sub-features with a filter:

<includes
id="my_feature.linux"
version="0.0.0"
os="linux"/>
<includes
id="my_feature.win32"
version="0.0.0"
os="win32"/>

Sunday, May 9, 2010

Copyright Header Utility

Found this Copyright wizard for Eclipse http://www.wdev91.com/?p=cpw_ug that works very well! Download zip, add single jar to dropins or use update manager, then invoke menu Project/Apply Copyright... and it helps to
  • Determine the text based on EPL or other examples
  • Add that to all *.java files or even other file types (see Preferences/General/Copyright)
  • Update previously entered copyright headers to make them all consistent

Saturday, May 8, 2010

Align TRex 600 OS 50 Engine Problem

After running great for month, the engine started to have a rough idle. Otherwise it seemed OK, especially it was not running hot. Eventually, though, it quit in flight. It has never been quite right since then: Rough idle, and when using the governor, the engine RPM seemed to oscillate around the target RPM.

After trying this and that, including taking it apart, eventually even getting a new engine for comparison, reasons for the problems seem to include:
  • Rust on bearings. Unclear how that happened because I'm using after-run oil. It is because of the oil?
  • Play in throttle serve
New engine in comparison idles down to a low put-put that I don't remember ever achieving with the original engine. Either I've gotten better at adjusting engines, or the previous one always had some imperfection?





Good entry about OS 50 Engine rebuild, everything except for removing the crank and bearings:


Yes, be careful with the piston ring. It does snap easily when taking it off the piston, especially when it's brittle from having been in the engine a long time. On the other hand, a new piston ring goes on quite easily, snapping right into place.

Friday, May 7, 2010

Product Editor Bug

When switching to P2 and changing from plugin-based to a feature-based product, the application suddenly refused to start because of problems in the config.ini.

Traced down to misleading product editor, https://bugs.eclipse.org/bugs/show_bug.cgi?id=312086

Default Eclipse Workspace via config.ini

By default, the workspace of an RCP app is somewhere inside the install location, and might actually differ for Linux, Windows, OS X or different Eclipse releases.
I needed a location in the user home directory, independent from the OS, and not affected by updates (including complete replacement) of my RCP application.
The solution is adding something like this to the RCP's config.ini:

# Set default workspace location
osgi.instance.area.default=@user.home/MyRCPAppWorkspace

In the *.product file editor, the Configuration section allows you to specify a custom config.ini to accomplish this, but that brought up another problem: The original content of the config.ini beyond my workspace location settings, entries like osgi.framework=file\:plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar, changes with Eclipse releases, so you have to continually update your custom config.ini?

Solution with P2: Use the auto-generated config.ini, and instruct P2 to add your custom content by adding a file p2.inf to your product with the following content:

# Add the following to the generated config.ini
instructions.install = \
setProgramProperty(propName:osgi.instance.area.default,propValue:@user.home/MyRCPAppWorkspace);

Tuesday, May 4, 2010

Learning Eclipse P2

Good intros: http://www.vogella.de/articles/EclipseP2Update/article.html ,
http://www.slideshare.net/irbull/p2-introduction.

Exporting a feature with P2 info from the IDE is quite straight forward.

When adding the P2 UI to the final product by adding the feature org.eclipse.equinox.p2.user.ui, I had strange problems under Eclipse 3.5.2:
Product wouldn't start, or not include the P2 UI, or not have much P2 information.
It only works halfway from within the IDE, and only after the run-configuration is deleted and re-created.

To export a working product:
Include org.eclipse.equinox.p2.user.ui with either the full version number, or use 0.0.0, but beware that this must be entered manually because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=279480

This will provide a product with the P2 GUI, but About/Installation Details would be nearly empty, Configuration completely blank unless also exporting with metadata.
Checking the "metadata" option on export combined with source export, however, results in error "gather.sources" does not exist because of bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=286940.
Export with meta data but without sources works OK.

Info about plugins/features in general, based on the old update mechanism: http://www.eclipse.org/articles/article.php?file=Article-Update/index.html Includes tip to always end the update site link with "/"!

Merging repositories, for example a repository resulting from a new stable version into the 'main' repository on a web site:

Remaining issue:
  • OK to export product, based on features, into repository
  • OK to export additional feature into repository, then install into product via UI
  • OK to export update for that additional feature, and update product via UI
What doesn't seem to be possible:
  • Export update for feature in product to repository. Update fails with message regarding conflict between the new plugin from the updated feature and the original plugin that the product requires
Workaround: Always update the whole product, including version of the whole product, then the old product can update itself.

Big Brother

Scary amount of information available about random people: http://www.123people.com

Sunday, May 2, 2010

PSK31 Volume and RF Output


One way to adjust the output that seems straight forward and "works":
Set the FT897 HF power to 100%, then adjust the sound card output such
that the power is only 20 or 30 watts.

GPS Map to Model Airplane Field

To track location on Magellan explorist:
  • Menu Button
  • Track Log
  • Active Track
  • Either "Start Logging" or "Clear" if already logging
When done:
  • Menu Button
  • Track Log
  • ActiveTrack
  • Save with some name under "Track Logs"


To display track on map image:

Connect to GPS to computer, which should mount as "removable USB disk". Locate "Track Logs" directory.
On GPS Visualizer web page,
upload the track log, select map, ...

Echolink Audio Setup, DTMF

Under Tools/Setup/Audio, the Calibrate button suggested a fine tuning of -94, but with that the DTMF tones were not recognized...

What works:
  • Fine tuning: 0 (default)
  • Sound card "Microphone" level 50% with "Advanced", "Boost" enabled
  • Sound card "Volume" all 100%, master volume around 75..80%

Echolink Network Setup


After installing Echolink, the Firewall/router test failed.

Fix:
  1. In Windows firewall (Wireless interface, Properties, Advanced, Firewall, ...) add Exceptions for UDP port 5198 and 5199, i.e. add 2 separate exceptions.
  2. In the D-Link DI-614+, add similar exceptions under Home, Advanced, Virtual Server: Traffic from "public port" 5198 needs to go to "private port" 5198, where the "private IP" is the IP of the laptop, like 10.0.104. Again add 2 separate Virtual Servers for 5198 and 5199.
The D-Link setup has the drawback that it's locked to an IP address, so the Laptop should have a fixed IP on the local wireless net.

This post shows how to enable Port Triggering which solves the IP address issue: http://echomac.sourceforge.net/routers.html