2011
04.03
Quietly I’ve been working over the last few months on a website called sweebe.
It’s an Events website which is at the moment dedicated to Dublin.
Two days ago I put live the first alpha version.
Feel free to have a first look.
http://www.sweebe.com/
More on sweebe.com on it’s official blog:
http://www.blog.sweebe.com/
2011
02.28
Just came across a little issue as I tried to upgrade my Ubuntu 10.10 (maverick) to 11.04 Alpha 2 (Natty).
I followed the offical upgrade guide on ubuntu.com (http://www.ubuntu.com/testing/natty/alpha2) and ran into following error.
root@jazz:/home/andreas-glaser# update-manager -d
warning: could not initiate dbus
**
GLib-GIO:ERROR:/build/buildd/glib2.0-2.26.1/gio/gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Aborted
Solution
Instead of “update-manager -d” simply use “dbus-launch update-manager -d”
Enjoy!
2011
01.18
Granted, Googles Chrome looks a thousand times better than Firefoxes default theme.
Luckily we can with only three small addons make Firefox look and feel almost identical.
Required Addons
Result

Enjoy!
2011
01.04
The waiting is almost over – Drupal 7 is finally going to be released tomorrow the 5th of January 2011.
D7 will bring loads of new and improved features, modules from D6 which proved to be useful that made it into the core and much better default administration layouts.
Especially the new layouts will help newbies to get their heads around Drupal in less time to fully enjoy the endless flexibility and efficiency.
Drupal certainly stood the test of time since it’s release in January 2001 and will definitely experience a boost from this major release.
Google Trends Comparison (Drupal vs Joomla vs Typo3 vs Concrete5)
If you haven’t yet worked with Drupal this is definitely the perfect time to get in touch.
Places all your questions will be answered
Personally I’ve been working with Drupal for many years now and developed quite some business websites on it and it gets my recommendation any time. (if you’re not a bloody rookie ;) )
http://drupal.org/
2010
11.29
As I was browsing the web I came across this excellent article about REST and Soap written by Paul Prescod.
Roots of the REST/SOAP Debate
I hope you guys enjoy it as much as I did.
2010
08.09
It happened to me quite a few times now, that I imported a mysql dump file and afterwards noticed that the character encoding was broken.
To help you guys preventing this from happening use following import command.
1
| mysql -u root -p --default_character_set utf8 NAME_OF_YOUR_DATABASE < mysql_dump_file.sql |
The important argument is “–default_character_set utf8” to preserve the encoding.
Enjoy
2010
06.11
1
| ErrorException [ Warning ]: htmlspecialchars() expects at most 3 parameters, 4 given |
If Kohana 3 throws this exception, that means that your currently installed PHP version is lower than 5.2.3 .
This can be easily be fixed by updating PHP to the latest stable version (recommended) or by changing one of Kohana (not recommended).
To fix it code wise open following file with your preferred editor
1
| /system/classes/kohana/html.php |
Search for…
1
| return htmlspecialchars((string) $value, ENT_QUOTES, Kohana::$charset, $double_encode); |
… and change it into
Done :)
2010
05.24
A common task in web development is to track or show a users online time.
Theory
We record and save the time (in seconds) of the users first interaction with our website. On every following click we subtract this information with the current time.
Working example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| /* tell php to start a new or resume an existing session */
session_start();
/* store time of first user interaction */
if(!isset($_SESSION['session.started'])) {
$_SESSION['session.started'] = time();
}
/* calculate time elapsed since first click */
$onlineTime = time() - $_SESSION['session.started'];
/* display online time in various formats */
print 'Seconds: '.$onlineTime;
print "<br />\n".'Minutes:'.floor(($onlineTime / 60));
print "<br />\n".'Hours:'.floor(($onlineTime / 60 / 60));
print "<br />\n".'Days:'.floor(($onlineTime / 60 / 60 / 24)); |
PHP - Track user online time (651 bytes, 303 hits)
Enjoy!
2010
04.28
“Allow mock locations” – means to be able to fake/simulate the location you’re at for development purposes