Disable Skype home window from popping up

With the latest updates of Skype we got an extra present: an annoying Skype Home window popup! I dont like popups so I needed a solution to prevent this from happening.

It appears that before opening the Skype Home window, the application checks if an domain called apps.skype.com is available. When it cannot find it, it aborts the process.

Adding this line to my %WIN%/system32/drivers/etc/hosts file prevented the Skype Home window from popping up on my machine:                apps.skype.com

I’am not sure if it kills or breaks usefull functionality, but up until now everything continues to work fine.

This solution should also work on Mac OS and Linux but you’ll have to look for the exact location of the hosts file yourselfs.

If your not comfortable with changing the hosts file, have a look at Andrews’ Kill Skype Home (KSH).

Happy Skyping!

September 7th, 2011 - Posted in thingies | | 1 Comments

Install Zend Studio 5.5 on fedora 13

I just came from Eclipse with de Zend 7 plugin evaluation on Fedora 13. The installation worked perfect but the IDE was responding really slowly. Opening and closing Workbenches took ages, killing an task in progress did not resolved anything. Last but not least the FTP support really sucks, connecting to wrong ftp servers, mixing usernames, unable to retrieve directory listing etc.

Having seen that I decided to go back to Zend 5.5 but after the installation an old error popped up: Zend IDE starts but with an empty window. So here is the solution another time:

Make sure you add the line “-Dawt.toolkit=sun.awt.motif.MToolkit” to runStudio_unix.sh. It should give:


../jre/bin/java -Dawt.toolkit=sun.awt.motif.MToolkit -Xms16m -Xmx256m -cp ZendIDE.jar:MRJToolkitStubs.zip:sftp.jar:axis.jar:commons-discovery-0.2.jar:commons-logging-1.0.4.jar:javaxzombie.jar:jaxrpc.jar:saaj.jar:wsdl4j-1.5.1.jar:jhall.jar:../docs/help.zip com.zend.ide.desktop.Main

After that you need to install libXp with yum.

August 23rd, 2010 - Posted in thingies | | 2 Comments

Mantis plugin paste image from clipboard

Finally I’ve implemented the possibility to paste images from your clipboard directly into a bug report. We all know how difficult it is to post a really descriptive bug report and after all images speaks bookparts ;)

Credits: It’s made possible by a guy called lassebunk. You can find his blog over here.

- Mantis 1.1.8
- Lassebunk’s PasteImageApplet

1. Download mantis_screenshot_plugin.rar and replace the files in your Mantis installation
2. Download the PasteImageApplet.zip
3. Create the following directories in you Mantis root:
/plugin/pasteimageapplet/shots and CHMOD 777
4. Copy the files tst.jar and shoot.php to /plugin/pasteimageapplet

Example bugreport:


And thats it!

January 6th, 2010 - Posted in thingies | | 4 Comments

Import osCommerce data into Magento shops

The basics al boil down into creating an formatted CSV file which is readable by Magento(). We’ll be connecting directly to the osCommerce(osc) database using this small class.

Ofcourse I’ve tried several plugins either offered by Magento or/and other community supplied tools, but none could do the job. Either they didn’t install or suddenly broke off while processing data without any usefull warning or error.

November 24th, 2009 - Posted in thingies | | 2 Comments

Online convert thunderbird message filters to sieve script

For many years I’ve used Outlook as my main email client but 3 years ago I switched to Thunderbird. Now its time to leave the Windows Operating System for what its worth and from now on I’am using Fedora Core 11. My former jobs depended heavily on Windows (MSSQL, IIS, ASP) but that now belongs to the past.

Currently I like to explore the possibilities of FLEX with whatever Linux based backend (BlazeDS, amfPHP, etc.) Switching dekstop OS made me deside to go webbased as far as possible, so now it’s time to replace Thunderbird for a webbased email client like Roundcube. But what about the message filters, damn I really liked those!

Since we´re using a Cyrus mail server with Sieve I decided to write a simple conversion script, which works very simple: Thunderbird saves all rules for each account in a seperate file called msgFilterRules.dat* Select this file, located in the profile folder and press ‘Convert’
NB. This version only accounts for ‘or’ and ‘fileinto’ operations…

* If your using Thunderbird with more than one account you can copy this file to your other accounts to ‘copy’ the message filters ;)

November 5th, 2009 - Posted in thingies | | 4 Comments

AdWords tutorial

What are Google AdWords?

With Google AdWords, you can create and run ads for your business, quickly and simply. Run your ads on Google and our advertising network — no matter what your budget, you’ll only pay when people click your ads.

AdWords ads are displayed along with search results when someone searches Google using one of your keywords. That way, you’ll be advertising to an audience that’s already interested in your business. You can also choose to display your ads on content sites in the growing Google Network. And, you can choose the exact content placements where you’d like your ad to appear, or you can let contextual targeting match your keywords to content.

You can choose from a variety of ad formats, including text, image, and video ads, and easily track your ad performance using the reports available in your account.

There’s no minimum monthly charge with AdWords — just a nominal activation fee. Learn more about the cost of advertising with Google AdWords.

November 4th, 2009 - Posted in thingies | | 0 Comments

Open Office 3 error libuno_sal.so.3 on Fedora 11


After installing OpenOffice 3.1.0 from RPMS on Fedora 11 with:

prompt# yum localinstall *
prompt# yum localinstall desktop-integration/openoffice.org3.1-redhat-menus-3.1-9399.noarch.rpm

Starting Calc (or any other component) will terminate with the error:

/opt/openoffice.org3/program/soffice.bin: error while loading shared libraries: libuno_sal.so.3: cannot open shared object file: No such file or directory

Basically this means that the OpenOffice binary cannot find it’s own library…


First check if you have this file installed, fe. like:

prompt# locate libuno_sal.so.3

Which should output something like this:


If not execute:

prompt# yum localinstall openoffice.org-ure-1.5.0-9399.i586.rpm

Finally let Open Office know where to find it’s library with:

prompt# echo “/usr/lib/openoffice.org/ure/lib/” > /etc/ld.so.conf.d/openoffice3.conf
prompt# ldconfig

Open Office now starts normally using the menu or console like:

prompt# openoffice.org3

September 8th, 2009 - Posted in fedora 11 | | 7 Comments

Wordpress SPAM II - Anti spam measures continues

Well, that didn’t seem to have done the job, apparently the bot reads in the form before posting its message.  Which is the good news! She doesn’t blindly scan for wp titles on pages obtained through a google search (or by selecting ip ranges for that matters).

Today I’ll add in an extra dynamic form field which is inserted just before the onsubmit.  An extra input field is dynamically inserted with DOM->appendChild(), which I’ll call “wordpress_anti_spam_measure_B” . Lets see how that works!

function wordpress_anti_spam_measure_B( oFORM ) {
if (oFORM) {
oINPUT = document.createElement("INPUT");
oINPUT.setAttribute("type", "text");
oINPUT.setAttribute("name", "wordpress_anti_spam_measure_B");
return true;

May 16th, 2009 - Posted in wp anti spam | | 1 Comments

Wordpress SPAM

The StatPress statistics revealed all kind of strange script attacks (see here), now we can add spam to the list of one of those thingies. This blog is being polluted with adds promoting all kinds of medicines.. and the strange thing is.. off all places why did they had to come to me ;P

Anyway I still do not want to put up any kind of chaptas, confirm boxes or whatever. Today I’ll start a series of test which will hopefully end this spam maintaining user friendly commenting to articles, cause that´s the whole point of being here in the first place!

Lets see how smart these bots are. I’ll start by throwing in an extra hidden form field:

<input type="hidden" value="on" name="wordpress_anti_spam_measure_A"/>

August 10th, 2008 - Posted in wp anti spam | | 2 Comments

Call recording in Asterisk

I´ve been using asterisk for a while and it performs like a charm. Using a basic dialplan with the IAX protocal its time to add some call recording. There are at least two way to go about it:

  • Plain extentions.conf ’scripting’. This file is being pulled through some kind of parser -everytime- a call is being requested. Furthermore all kind of system variables are available. If your familiar with PHP you can compare them to $_GLOBALS.
  • Using macro´s. Usually I’ am not a fan of macros, but this is the exception to the rule. They greatly enhance readability of your dialplans and are similar to PHP functions.


Cut-out extentions.conf
exten => _0034[9]XXXXXXXX,1,Verbose(1|vsp-out)
exten => _0034[9]XXXXXXXX,n,NoOp()
exten => _0034[9]XXXXXXXX,n,MixMonitor(${SCREEN_FILE},b)
exten => _0034[9]XXXXXXXX,n,Dial(SIP/vsp/${EXTEN})
exten => _0034[9]XXXXXXXX,n,StopMonitor()
exten => _0034[9]XXXXXXXX,n,Hangup()

For every outbound request you start with defining a filename for the recording eg. SCREEN_FILE. In this example I used a combination of system variables to make up a filename. By default they are put into a wav format but with some extras realtime convertion to mp3 is possible.
Second you have to start the recording; this is done with MixMonitor() which takes, among others, the filename as an parameter. By default all files are stored in /var/spool/asterisk/monitor, which is defined in asterisk.conf. Finally the recording is stopped with StopMonitor().


There comes a time, especially when you´re getting the hang of asterisk scripting ;), and feel the power of a fully fledged PABX at the tip of your fingers, rewriting of your extentsion.conf is needed. I mean really needed! After building all kind of nifty things like demo accounts to test the quality of speach/connections through Echo(), or rotating huntgroups, playing back welcome messages before actually any call is taken with Play(ing)back() the weasels, IVR´s and making your server crazy doing all kind of silly stuff controlled by DTMF… just to name a few..
Ok, uh macros… right! ;) Here it comes:

exten => s,n,NoOp()
exten => s,n,Verbose(1|VR ${ARG1}/${ARG2} ${SCREEN_FILE})
exten => s,n,MixMonitor(${SCREEN_FILE})
exten => s,n,Dial(SIP/${ARG2}/${ARG1},20)
exten => s,n,StopMonitor()
exten => s,n,Hangup()

In order to get a macro called you’ll have to give it a proper name. Although they both appear in extentions.conf, written between [], asterisk distinguishes between a ‘context’ and a macro by its name prefix. So in this example the macro ‘record’ is defined as [macro_record]. It´s basically a rewrite, with some extra tweaks but more importantly it uses a variable ARGS2 for the extention being dialed.

The first dialplan can now be rewritten in just two lines:

exten => _0034[9]XXXXXXXX,1,Verbose(1|vsp, CV)
exten => _0034[9]XXXXXXXX,n,Macro(record,${EXTEN},vsp)

So if your need to add another country with a different VSP you could use:

exten => _0044[6]XXXXXXXX,1,Verbose(1|vsp2, CV)
exten => _0044[6]XXXXXXXX,n,Macro(record,${EXTEN},vsp2)

You probably have noticed all the Verbose() lines. I use them to ‘debug’ while testing in the asterisk console. I you feel confident about your creations you can erase them. Effectively reducing a channel selection with call recording to one single line! Cool hè

Asterisk dialplan
Asterisk macros

July 21st, 2008 - Posted in asterisk | | 1 Comments

Next Page »