Subversive Apatana CTRL ALT U Shortcut Update Commit

In case you are using Subversive’s SVN plugin, try enabling ‘SVN’ in the Commands Group availability pane.

Window > Customize Perspective > Command Group Availability > Ensure ‘SVN’ is on

Nasty workaround, but it is a known Subversive bug as far as I know.

Position on Desktop

If I understand you correctly and you want to draw on the desktop, basically, then this might help: http://www.neowin.net/forum/lofiversion/index.php/t293883.html

[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr FindWindow(
[MarshalAs(UnmanagedType.LPTStr)] string lpClassName,
[MarshalAs(UnmanagedType.LPTStr)] string lpWindowName);
[DllImport("user32.dll")]
public static extern IntPtr SetParent(
IntPtr hWndChild, // handle to window
IntPtr hWndNewParent // new parent window
);

IntPtr hwndf = this.Handle;
IntPtr hwndParent = FindWindow(“ProgMan”, null);
SetParent(hwndf,hwndParent);
this.TopMost = false;

That would reparent your form as a child window of the desktop itself.

After reading the code some more times I’m not sure why they use FindWindow() looking for “ProgMan” instead of using

[DllImport("user32.dll")]
static extern IntPtr GetDesktopWindow();

but I didn’t give it a try myself so far.

Javascript submit POST request

var doc = window.open(“”);
var html = ‘<html xmlns=”http://www.w3.org/1999/xhtml”>’ +
‘<head><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /></head>’ +
‘<body>’ +
‘<form action=”http://chart.apis.google.com/chart” method=”POST” id=”post_form” onsubmit=”this.action = “http://chart.apis.google.com/chart?chid=” + (new Date()).getMilliseconds(); return true;”><input type=”hidden” name=”cht” value=”gv”/> <input type=”hidden” name=”chl” value=\”;
html = html + requestContent;
html = html + “‘/></form></html>”;
doc.document.write(html);
doc.document.getElementById(“post_form”).submit()

EPCIS QueryCallback

Fosstrak EPCIS – User Guide

 

How to Use the Query Callback Interface

After a subscription has been registered, the EPCIS repository will deliver results of query executions through the Query Callback Interface. The query results will be deliverd as HTTP POST requests to the URL specified by the dest parameter in the query subscription. It is the client’s responsibility to listen for the response at the given URL.

If you want to have a look at the query result responses without coding anything, you can use a TCP monitor tool, such as Apache TCPMon. This tool can be configured as a listener for a given port and allows you to monitor incoming messages.

If you need to access the query results from whithin your code, you can take advantage of the QueryCallbackListener class from the epcis-commons.jar library. This class implements a very simple HTTP server that listens for requests to a given URL. It catches any incoming POST data and delivers it to an application upon request. The listener can be used as follows:

QueryCallbackListener listener = QueryCallbackListener.getInstance();
if (!listener.isRunning()) {
    listener.start();
}
synchronized (listener) {
    try {
        listener.wait(timeout);
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
}
String response = listener.fetchResponse();

In this code, the wait() method waits until either the listener receives a response or the specified timeout has elapsed.

 

SSL Client Certificate in Mylyn

According to http://coding.stampfini.info/tag/eclipse
put the following to eclipse.ini
-Djavax.net.ssl.keyStore=c:\temp\cert.p12
-Djavax.net.ssl.keyStorePassword=aa //note: empty password in p12 does not seem to work
-Djavax.net.ssl.keyStoreType=PKCS12

Steffis Nudelsalat

Zutaten:
250 g Nudeln, vorzugsweise Penne
250 g Kirsch- oder Cocktailtomaten
125 g Schafskäse
100 g schwarze Oliven
1 Zwiebel
2 Zehen Knoblauch
2 EL gehackte Petersilie
2 EL gehacktes Basilikum
1/8 l Gemüsebrühe
4 EL Essig
1/2 – 1 Zitrone (Saft davon)
5 EL Olivenöl
1 Prise Zucker
Salz und Pfeffer

zusätzlich:
1/8 l Gemüsebrühe
4 EL Essig
1/2 – 1 Zitrone (Saft davon)
5 EL Olivenöl

Nudeln kochen (al dente) und während dessen Tomaten waschen und halbieren.
Schafskäse in kleine Würfel schneiden (oder zerkrümeln). Zwiebel und Knochblauch
schälen und klein schneiden.
Gemüsebrühe etwas abkühlen lassen und Nudeln abgiessen, bevor man sie mit allem
anderen zusammenmischt. Über Nacht im Kühlschrank ziehen lassen.
Wenn dere Salat tatsächlich bis zum nächsten Tag überlebt, extra Gemüsebrühe, Essig,
Zitronensaft und Olivenöl mischen und zum Nudelsalat geben, da dieser über die Nacht
die gesamte Flüssigkeit absorbiert hat.

Unlock Web’n'Walk Stick 1

I found a nice piece of software. Unlocking your Web’n'Walk is about 15€ at dc-unlocker.com. But there ist already an opensource solution for unlocking at http://dogber1.blogspot.com/2010/01/unlocker-for-option-gio225.html

The python script seems to be a little sensitive – I own two sticks. I was able to unlock one with Win7 Ultimate. The second stick unlock didn’t work on my laptop. So I tried another one with XP installed – things even got worse. Finally I tried a desktop PC, there it worked without issues. Unlocking is quite easy:

  1. Install python 2.6.x (32 bit version): http://www.python.org/download/
  2. Install pywin32 for python 2.6: http://sourceforge.net/projects/pywin32/files/
  3. Install pyserial: http://sourceforge.net/projects/pyserial/files/
  4. Download the unlocker (http://sites.google.com/site/dogber1/blog/msm-unlock-v1.6.zip) and unpack it (e.g. into the directory C:\msm)
  5. Download a firmware update for the 3G modem from Option or T-Mobile
  6. Unpack the firmware update into the directory used above (e.g. C:\msm)
  7. Remove the SIM card from the modem and plug it in . Make sure that you have the latest drivers from the option website installed before you start msm_unlock.py. Also, close all the tools for the stick (‘connection manager’ etc.).
  8. Write down the unlock code. Unplug the stick, replug it and apply the unlock code with msm_apply.py.
  9. Unplug and replug the stick once more and you’ve got yourself an unlocked 3G modem.

Thanks a lot Dogbert!

Asterisk conference systems

MeetMe() standard solution for conferences, needs dahdi driver to mix audio. On OpenVZ-based vservers no kernel modules can be loaded in virtual machine, so this won’t work

app_confbridge new in Asterisk 1.6.2.2, no more dahdi needed @see http://www.ip-phone-forum.de/showthread.php?t=195434

appconference alternativ to meetme, last stable from sourceforge won’t compile, so make sure to check the latest dev from svn

scanimage 2272×1704 300dpi

imagemagick convert

convert -resize 30% bla.gif bla.jpg

Follow

Get every new post delivered to your Inbox.