Author Archives: Christoph Breidert

Seekity.com – Search Engine based on web usage behavior

Back in 2010 I created a prototype of a search engine based on web usage behavior. Back then I was heading a SEO-Driven startup and got so annoyed with search engine optimization, that I thought about ways to classify the web that cannot be optimized. Firstly a search engine like this should not rely on [...]

Javascript goodies: Get parameter from url – Round number with dot and comma

Here is some useful javascript stuff Get parameter from url: function getURLParam(strParamName){ var strReturn = “”; var strHref = window.location.href; if ( strHref.indexOf(“?”) > -1 ){ var strQueryString = strHref.substr(strHref.indexOf(“?”)).toLowerCase(); var aQueryString = strQueryString.split(“&”); for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){ if (aQueryString[iParam].indexOf(strParamName + “=”) > -1 ){ var aParam = [...]

Drupal Block Internet Explorer Update Warning XP Security Certificate Warning

Background: To optimize for IE6 is a pain in the !$”§$  - Therefore we want to display a warning message when a user visits one of our Drupal pages with Internet Explorer 6. We have multiple Drupal sites running on the same machine with the same IP address. Some of sites use HTTPS certificates. In [...]

Drupal module node_limit – limit per user in role

Tonight I wrote an extension to Drupal’s node_limit module, allowing administrators to apply a Node Limit to all users that have a certain role. With this extension the administrator only selects the role. The limit gets applied for all users that have the configured role individually. Node_limit was easy to extend thanks to the well-written [...]

Programmatically upload form with text field and file field to server using PHP stream_context_create

OK, this turned out to be a tricky one. For some reason I wanted to programmatically post data to a server. I wanted to do the equivalent to posting this form from a web-browser: <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″> <title>Upload</title> </head> <body> <form action=”http://localhost/upload” method=”post” enctype=”multipart/form-data”> [...]

PHP-5.2 and PHP-5.3 for Drupal applications under Apache on Ubuntu 10.04 LTS

Why do this? For running legacy Drupal applications it can be necessary to have different version of PHP on your system. Drupal5 runs on PHP-5.2, Drupal6 and later versions run on PHP-5.3, more about this here: http://drupal.org/requirements. In a situation like this you might want the PHP-5.2 application (e.g., Drupal5) and the PHP-5.3 application (e.g., [...]

Qype – Free vs. Premium – HOWTO

Nachdem ich gestern das Angebot von 1xINTERNET bei Qype eingetragen habe, wurde ich heute von einem Mitarbeiter von Qype angerufen, der mir eine Premiummitgliedschaft verkaufen wollte. Beim Gespräch habe ich erfahren, dass 1xINTERNET in der Suche nicht berücksichtigt wird, weil Verschlagwortung u.s.w. exklusv Premiummitgliedern vorbehalten ist. Auf Qype kann mein Eintrag über zwei Wege erreicht [...]

Günstige Homepage mit Domain, Emailadressen und Hosting

Meine Frau und ich haben gemeinsam mit Partnern Anfang des Jahres 1xINTERNET gegründet. Die Idee ist durch das “Do-it-yourself” Homepageangebot von 1und1 entstanden. Das Problem bei einer “Do-it-yourself” Homepage ist, dass ein unfahrener Ersteller sehr lange braucht, und dass die resultierende Homepage in vielen Fällen unprofessionell aussieht. Also haben wir uns gedacht, wenn wir das [...]

Howto Solr Ubuntu 10.04 Lucid Tomcat6

I had some difficulties finding good howtos for setting up Solr on my system. There are some covering the topic, but none of them worked for me. The best I found was by Paul Bramsher published here, but this was for older versions of Ubuntu and Solr. There is also a wiki for setting up [...]

Virtual hosts overlap on 443, first has precedence

I had this problem after restarting apache2: [warn] _default_ VirtualHost overlap on port 443, the first has precedence I use name based virtual hosting and let apache2 figure out from which virtual host to serve based on the different host names. For virtual hosts running over http (port 80) that was no problem. However, i [...]

Easy AdSense by Unreal