Top posts

Latest articles


Playing around with my new HP TouchSmart IQ532

Posted by Jongerius under General Rant, Uncategorized
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

I recently got very sick of having one of those bulky computers sitting next to my table, sucking in air all day and making a lot of noice with it. Yes as you may have guesst I don’t have the latest version of a PC. Well any way since a few weeks I was looking for a all in one PC. Which to me means no seperate monitor, no computer and if possible no mouse or keyboard. Wtf, you may think does such a thing exists!

You are not alone. I wasn’t even sure if such a thing exists either. Well the first part of the quest was very easy, find a computer that does not have a seperate casing for the actual computer. So an all in one system. Well these things actually exists, I mean look at the iMac. So I know they are out there, I just don’t want an iMac because non of the software I use is available for it. And I’m not a big fan of the Apple company, but that’s a completely different story all together.

HP TouchSmart IQ532It was only a couple of days later that by accident I came accross a small poor quality video of the HP TouchSmart series. Which appearantly has been out ever since early 2007. These computers have everything build into the monitor, not just that but they are touch enabled. And I say touch enabled because they don’t have a touch screen in the traditional sense. The HP TouchSmart series has a shit load of LED’s build into the screen that detect where you press on the screen (and no you don’t even have to touch the screen for the LED’s to detect the touch).

Initially I was considering either a late model of the IQ500 series, which was brought out in 2008 or the IQ800 series which was brought out in 2009. The trouble with my little quest was that the 800 series is currently very hard to get. When I called several shops they could not get any computers in that series at all! So I ended up going for the IQ532, which was the best out of the IQ500 series currently available. And I can honestly say I like it, no more wires. And best of all you can choose to not use the mouse or keyboard. The touch part works pretty damn good, even with the onscreen keyboard that HP made for us as you can see in the screenshot below.

Vista onscreen Keyboard

So I really like it, I mean the HP Touch application that is provided is pretty useless to me. But the idea of not needing anything and only having a single cable for your entire computer. Having bluetooth, WiFi and even a TV Tuner integrated is perfect for me. So just for you I have included some YouTube movies on the HP TouchSmart Series.

 


Apache 2 and SSL trouble

Posted by Jongerius under Development, Webdevelopment
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

I’ve been playing around with a couple of corporate website’s lately. One of the things I’ve been trying to work out is creating more security for the management and webmail systems for my websites. This is also were I ran into some difficulty.

I have my own root certificate for all of my websites, so that I can sign my own certificates and use them all over the place. I only have to ask my clients to accept the root certificate and all is fine. This seems to work fine except when I tried to load them into Apache. Here’s what my problem is and was. I have multiple domains hosted on the same virtual server. Which basically means a lot of websites running under one IP-address.

In this setup I have several domains I want to add a SSL variant of. For example webmail.domain.com as well as admin.domain.com. And this is where it became problematic.

I configured this without any problems in apache. Setup a virtual host listening to port 443 and setup the listener instruction in apache. But for some reason all of my secure domains ended up using the same certificate. Which off course causes a lot of security warnings for the browsers :( . And a lot of people are having the same issue, just read the thread on howtoforge.com.

As it turns out Apache is only able to host one secure virtual host per IP-address and port combination. Which is kinda obvious since Apache cannot read the domain name until it has decrypted the SSL information, something which it cannot do until the SSL handshake with the client has been done. Hence that only one set of certificates is allowed per IP and port.

Long story short I ended up setting the websites up with different ports since I don’t have multiple IP-addresses to host the websites on.


Some unexpected down-time

Posted by Jongerius under General Rant, Webdevelopment
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

As you may have been able to notice over the past week or so my websites and those I am hosting for clients had some down-time last week. As such I’ve not been doing much other then trying to figure out what is going on, and haven’t had to much time to write something new.

Unfortunattely for me and my clients the problem seems to be with the provider I have to rent my servers. After some digging I found out even their own servers where unreachable. (Could not even setup a SSH connection to my servers).

It seems to be fixed at the moment, so keep praying that it stays that way ;) .


PHP catching all function calls

Posted by Jongerius under Development, Webdevelopment
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

Recently I came accross something really fancy that was introduced in PHP 5. It is appearantly possible for any class to catch all functions that are called on a class. So one function would catch $obj->callOne() as well as $obj->callTwo().

So why is this a nice feature to have, well because I am a very lazy progammer and this feature allows me to magically generate getters and setters. To do this I have the following setting for each class:

  1. The constructor method __construct initializes an array containing the names of all variables that we want to store. We also create a second array to save the values in for the variables.
  2. We implement the __call function to catch all functions being called on the object, which is currently still undocumented by PHP.net

So a basic class would look something similar to this:

class MyObject {
   private $my_vars = array();
   private $allowed_vars;

   function __construct() {
      $this->allowed_vars = array('var1', 'var2', 'var3');
   }

   function  __calls($function_name, $arguments) {
      $_variablename = substr($function_name, 3);
      if (array_search($_variablename, $this->allowed_vars) !== FALSE) {
         if (stripos($function_name, 'get') == 0 && stripos($function_name, 'get') !== FALSE) {
            return $this->my_vars[$_variablename];
         } else if (stripos($function_name, 'set') == 0 && stripos($function_name, 'set') !== FALSE) {
            $this->my_vars[$_variablename] = $arguments[0];
         }
      }
      else throw new Exception('Unkown function called on '. __CLASS__);
  }
}

Which does exactly that which I described above. Mind you it’s just a very basic example but it shows the power of a catch all function.


A fresh start

Posted by Jongerius under General Rant, Uncategorized
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

As you may have noticed by the lack of me posting new articles in the past couple of months I have been really busy on a lot of projects. This has caused me to focus on other things then blogging on Narnio (unfortunattely :cry: ).

I will attempt to start posting somewhat more regularly from now on again, as I’ve sorta managed to get some stuff out of the way. One of them is my work on a complete overhaul of a part of the platform that the Zylom site is running on. Well enough of that!

Ok so what have I been up to that caused little posts. One of my new projects was a complete change of the corporate website I have been maintaining. It’s not live yet, but great things are comming for this website. Which also gets me into the next phase of my career, as I am now looking into starting my own company, and it is really a scary thought 8-O.

I will soon start writing some more posts on developing website platforms in both PHP and Java, as I’ve been learning a lot recently for each one of these two languages.

« Previous PageNext Page »