Tag Archives: hacks

LibraryThing Widget

I just spend some minutes this evening updating the LibraryThing Widget CSS styles.

LibraryThing Widget

The DIV classes used by LibraryThing are as follows:

.LTwrapper .LTheader .LTitem .LTprovided

LTwrapper is for the whole widget, LTheader only for the “Random books I have” line, Ltitem for each book and finally .LTprovided for the footer “powered by LibraryThing”.

However, to get some more flexibility in the layout you should make usage of the cascading property in CSS and define the .LTitem img class to position the images. It could look like the following then:

.LTitem img { float: right; margin: 0px 0px 0px 10px; }

Robotics Studio: Additional Shader Files for NVidia GeForce Go 5200

Due to some issues with the NVidia GeForce Fx Go 5200 graphics card of the Toshiba m200 Tablet PC, I got some modified shader files for this card, with permission to put them on the Channel9 sandbox.

“Together with the Redmond group we did some experiments using several different shader files with the Robotics Studio Simulation Environment and a NVidia GeForce Fx Go 5200 graphics chips with 32MB memory as it is found on the Toshiba m200 Tablet PC”

The archive contains two shader files. Unpack and copy the files into the folder store\media within your MSRS directory.

I have tested these files with the chipset mentioned above and the November CTP of the Robotics Studio.

As it works with the mobile version of the chipset, the shaders may also work with the NVidia GeForce Fx 5200 as well as with other chipsets. Please contribute in testing your graphics card (as it does not work with the November CTP) and let the team know if your graphics card does run the simulation with these shader files.”

The files can be downloaded directly from Channel9.

World Clock

Today, I spent some minutes to enhance my desktop. I installed AveDesk 1.2 and the World Clock v0.2.0 docklet.  Just rename the zipped file to .aveinst and double click it. Also ensure, that SysStats is installed before that. After spending some more time with setting up the clocks, I got only one black clock without any map in it. It took a while to find out, where the problem was. The problem is already known and depends on the regional settings of your windows. Using the German settings the system expects some floats using a format like this xxx.xxx.xxx,xx while the US layout the docklet was written for, uses xxx,xxx,xxx.xx. Unlike in the article before the World.vba there does not work, because the french settings use numbers with a format like xxx xxx xxx,xx.

This additional function and the two changes in MoveMap() should be enough for the German settings:

Function stringToFloat(strMeters)

  if isNull(strMeters) then
    stringToFloat = 0
    exit function
   end if

  'US xxx,xxx.xx to DE xxx.xxx,xx
  strMeters = replace(strMeters, ".", "foobar")
  strMeters = replace(strMeters, ",", ".")
  strMeters = replace(strMeters, "foobar", ",")

  stringToFloat = strMeters

End Function
Function MoveMap()

 centerX = SysStatsModel.Width/2
 centerY = SysStatsModel.Height/2

 latitude = stringToFloat(SysStatsModel.Meters("Latitude"))
 longitude = stringToFloat(SysStatsModel.Meters("Longitude"))

 ' ...

End Function

You can download the modified World.vbs (as it is, without any warranty, usage on your own risk, just rename the file from World.txt to World.vbsl). Now copy the file to the folder DockletsSysStatsscriptsworld within your AveDesk directory. If you try to add more then one instances of the world clock on your desktop, copy the World.ini file from the DockletsSysStatsconfigs directory for each clock and rename it. Assign to each clock its own .ini file. Otherwise all the docklets will be the same after the next start of AveDesk.

After spending this afternoon to find out how it works, it looks pretty nice: