Category: Uncategorized

  • Felix Gogo shell command examples & cheat sheet

    A short overview of frequently used Felix Gogo OSGi commands with examples. List all installed bundles on the system (nb. lb is short for list-bundles) g! lb START LEVEL 1 ID|State |Level|Name 0|Active | 0|System Bundle (4.2.1) 1|Active | 1|Apache Felix Bundle Repository (1.6.6) … Get the current framework startlevel and then sets it. When […]

  • Maven Eclipse (m2e) SCM connector for subclipse 1.10 (svn 1.8)

    Running Maven m2e on Eclipse Kepler (4.3) with subversion is not working out of the box, which is astonishing when taking into account the ubiquity of these three technologies Eclipse/Maven/Subversion. In short my successful attempt: Installed Eclipse Kepler 4.3 (which comes with m2e) Installed from Marketplace Subclipse 1.10 (update site is http://subclipse.tigris.org/update_1.10.x) Now to check […]

  • Associate files without extension to a given programm or editor

    (Info found on superuser.com) In Windows 7, to associate a default program to files without extension (eg. README or INSTALL) you need to open cmd.exe as administrator execute the following commands: >assoc .=”No Extension” >ftype “No Extension”=”C:\Program Files (x86)\TextPad 4\TextPad.exe” “%1” >assoc “No Extension”\DefaultIcon=%SystemRoot%\System32\imageres.dll,-102 Obviously, adapt the path to the editor you want to use.

  • Install plugins in Eclipse in Windows 7

    Starting with Windows 7 and Eclipse Indigo you need to start Eclipse as administrator to be able to install plugins. This is true as well for plugins which do not have an install site. Those plugins must be placed in the dropins folder of your eclipse install.

  • ant scp needs jsch.jar in Eclipse

    If in Eclipse, using ant scp you get the error: Cause: Could not load a dependent class com/jcraft/jsch/Logger It is not enough to have Ant’s optional JARs you need the JAR files that the optional tasks depend upon. Ant’s optional task dependencies are listed in the manual. Action: Determine what extra JAR files are needed, […]

  • Make Google Desktop search for local files per default

    Google Desktop Search per default searches the web. In order to make it search the local files per default, change the following registry key: [HKEY_CURRENT_USER\Software\Google\Google Desktop\Deskbar] “search_type”=”Search Desktop”

  • USB modem drivers for Kies / Samsung mobile phone

    I just got my new Samsung GT-B5722 phone. There’s PC synchronization software that comes with it called Kies. I connect the PC to the phone using the USB cable – but my Windows XP complains that it cannot find the relevant Samsung USB modem driver and the device does not show up in Kies. We […]

  • Convert byte to binary representation

    Use the following to show a byte value in binary representation.

  • Eclipse running in a JDK to use Maven tools

    The Maven Intergation requires that Eclipse be running in a JDK and that installed JREs are also using JDK installs. In order to achieve this, edit your eclipse.ini file, located for example at C:\Program Files\eclipse\eclipse.ini. You need to specify the virtual machine to use. Add the following lines to the file before any -vmargs: -vm […]

  • Calculating the mean and standard deviation in one pass

    It is possible to calculate the mean and the standard deviation of a serie of double values while iterating only once on the whole set of data. This approach is thus also suitable for streaming data; it could update the mean and standard deviation on-the-fly. Here I present an implementation of the algorithm shown by […]