parsesdkcontent failed when using Eclipse for Android dev

Recently I had some problems with starting Eclipse.

The problems started after I tried to create a Android 4.0 AVD and Eclipse (whole computers) got stuck.

I had to reboot my computer and after it Eclipse wouldn't start anymore without the 'parsesdkcontent failed' error. I tried to redefine the SDK path in the preferences but no luck.

My final solution. Delete the 'bad' avd in my .android folder (both the ini and it subfolder). After this.. Eclipse would start again just fine.

Robert

php-fcgi gave a big load on my server

I recently switched to Nginx. But my first impression wasn't that positive. The websites didn’t run that smooth and the machines memory was all consumed.

But what could it be? There are so many good stories about Nginx essescialy on low-memory machines. So it had te be something in my configuration.

Very soon I noticed that there where a lot of php-fcgi process. But I didn’t know if this was normal or not (I’m just started to learn about php-fcgi ;-) ). But why are there so many process. Well the answer was (luckily) simple: a misconfiguration.

Drupal Nginx and multisite

I'm testing with Nginx and so far so good.

But I encounterd two issues:

  • Domain access module didn't seem the work (a Drupal 7 site)
  • Multisite didn't seem to work (a Drupal 6 multisite)

I started with the first one and it looked like it was a bit difficult for me ( ;-) ). I thought that replacing the fastcgi_param SERVER_NAME with the correct variable would solve this problem:

Change: fastcgi_param SERVER_NAME $server_name;
To: fastcgi_param SERVER_NAME $http_host;

Switching a Drupal site from apache to nginx

When I started with this item, my Drupal site was still running on Apache. But because my server doesn't have that much memory, I thought that I might want to give Nginx a try. I have some experience with it, but not that much.

This is how I did it:

- Started with reading: http://wiki.nginx.org/Drupal

- Checked if the required packages are installed:
php5-cli php5-cgi spawn-fcgi

- Install Nginx ( apt-get install nginx )

Synology files not indexed / updated

Because my TV supports DLNA I enabled the Mediaserver on my Synology.

But unfortunately every (new) file I added to my media folders didn't show up on my TV. Only when I started a reindex, the files are visible in the media libary.

I learned that files are not indexed if you add them by NZBGet (or WinSCP, Telnet, ssh, etc). So I needed I solution.

After some searching I found one:

http://forum.synology.com/enu/viewtopic.php?f=37&t=30242&start=0

Show visitors on WebGL-Globe with the usage of analytics

I recently created some code (link) to display the visitors on a website using the WebGL-Globe project.

I think that was very easy (and I'm not a PHP programmer..)

But I made it even more simpeler, MySQL with Geo information is not needed anymore, just use Analytics!

Here's the code:

<?php

require_once "/gapi-1.3/gapi.class.php";

Show visitors on WebGL-Globe

Recently Google launched there WebGL-Globe project. Link.

I wanted to use it to show (in realtime) where the visitors of a site are coming from. I ended up with the following how-to:

 

Create a Json data file on-the-fly

I needed some code to create a (correct) json datafile with the information information stored in a ‘Log’ table:

Visitors table:

WebDAV with HTTPS on a Synology

For some time now I own a Synology NAS. A perfect Device! The Synology also has an option for WebDAV. I decided to use this feature. But I wanted to use it with a HTTPS connection. Before it finally worked, I had some problems to solve (no matter how simple the solution was finally).

downgrade php 5.3 to php 5.2

Not so long ago, I decided to upgrade my Debian Lenny to Debian Squeeze. With Squeeze I also got a update of PHP (5.3).
 
At first I wanted to use this new version. After some testing with Drupal 6, I decided that it was better to use PHP 5.2. But how do I do a downgrade…
 
Browsing the internet gave me a great couple of links, but none of them really where the answer. This is how I did it.
 

Upgrading Debian Lenny to Squeeze.

My first attempt to use Drupal 7 with SQLite ended with upgrading Lenny to Squeeze.
 
This is why:
A couple of months ago, I already did an install of Drupal 7. But with the first stable release, I wanted to start using it. Besides updating Drupal 6 to Drupal 7, I also want to start using SQLite. I find MySQL a bit to memory consuming and I wonder how SQLite will act on my 'low-memory' server.
I know Apache is also questionable if it comes to efficiency on a low memory server. But that will come later..

Syndicate content