Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php:215) in /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php on line 222

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/items/model/_itemquery.class.php on line 628

Warning: Cannot modify header information - headers already sent by (output started at /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php:215) in /home/hemmi3/public_html/blog/inc/_core/_template.funcs.php on line 59
Simple Zen

Pages: 1 2 3 4 5 6 7 8 9 10 11 ... 26 >>


Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 878

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981

13-07-11

Permalink
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
18:47:41, by admin Email , 766 words   English (EU)
Categories: Computers, Linux

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/sessions/model/_hit.class.php on line 901

On my desktop -which basically acts as a server- I did upgrade from Ubuntu 10.11 to 11.04. But as we all know there's Unity and that's not what I want. As an alternative I considered several alternatives. Of course there's Kubuntu or another KDE derivate. I did try that in the past but fucked the install with an undisclosed experiment. Drawbacks -apart from my failed experiment- were the resources it used and the immaturity of several core applications.
You must be curoius about the experiment. IIRC I tried the latest version of KDevelop from some external repo (Debian sid?) With it came newer versions of core libraries which were incompatible with the rest of the install. I decided to abandon ship.
On my laptop I never upgraded Ubuntu to 11.04. I did have a serious look at several other distro's. I managed to install Arch but failed in a similar way to Kubuntu when trying the then just stable Gnome3. Arch in itself is very boring. It's simply that I don't want to spend all that time and effort to only keep the install up-to-date, let alone compile whatever I need only to write a note or do something I just want to do at that very moment. It made me love all those volunteers creating distro's with all the art work and precompiled standard applications.
So I tried the Fedora 15 live CD in it' s beta stage. Gnome3 looked promising. More so than the tablet interface Unity is. I decided I'd go for it. It required several attempts to install and configure the way I want. So, for the record, and as note to self some remarks.
- I always use GParted to partition my disks (ext4 usually). Fedora live CD doesn't come with it, so use Ubuntu or an Ubuntu CD to re-partition your harddrive before installing Fedora. I created a 20Gb partition for / and more for /home. I don' t intend to use /home for larger collections of images, music, video or whatever. I will auto-mount either a seperate /data partition or -on the laptop- an nfs mount to the 1Tb harddrive on the server.
- Near the end of the Fedora install it asks to isntall grub. Don't if you want to keep the Ubuntu alongside it. Fedora will install Grub legacy (Grub 1). Instead install Fedora, boot into Ubuntu and run

sudo update-grub

It will find and add Fedora to the existing Grub2 menu.
- After reboot into Fedora it will ask for your name. Don't forget to add yourself to the administrator group. That's a checkbox choice in that panel
- Now updater all packages. The package update manager failed but it should run nicely in Terminal with

su -c 'yum clean all'
su -c 'yum update'

Spoiler: yum sucks, dpkg / apt rocks.
- Install the free and non-free repositories from RPM Fusion on http://rpmfusion.org They contain the applications and drivers you really care about.
- I managed to install Chrome by hand from the Chrome download page. Can't tell just now if that's a wise decision. Will it upgrade itself when a new version of chrome arrives?
- I downloaded the 64 bit Flash .so file from Adobe. Put it in ~/.mozilla/plugins the (re-) start Firefox and it should just work. Also Chrome did pick it up nicely.
- I struggled with the nfs connection to the server. The documentation of nfs on Fedora is outdated (for Fedora 14). The documentation on Ubunut is how I did set it up in 10.11 on the server and on the Ubuntu partition on the laptop. I managed to get it to work with:

sudo -c 'yum install nfs-utils'
sudo mount -t nfs4 -o proto=tcp,port=2049 
    192.168.1.65:/data /mnt

In Ubuntu you'd install nfs-common. Also there's something weird with the mount command.
On the server the folder is /export/data and this command shows all files in /mnt whre I expected a /data folder. nfs-server:/data, as advertised in the Ubuntu guide didn't do the trick. I'll try a couple more times after I reboot the install. Since it works I don't expect serious issues here.
- The printer was found easily. Cups rocks. The printer is attached to the server, not directly to the laptop but that's all taken care of as easy as it was in Ubuntu.
- I tried to install the ATI Radeon driver on earlier occasions. All failures. I think I need to reconfigure /etc/X11/xorg.conf before the reboot but since the non-proprietary driver works just fine I'll not engage in another disappointment. Dual head works out of the box. That's my main concern.

So far I'm happy. Just not really that confident as I'm with my Ubuntu install.


Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 878

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981

28-06-11

Permalink
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
04:36:28, by admin Email , 247 words   English (EU)
Categories: Computers, Programming

I shot some photographs for a friend and put them in an open dir for himto grab them. NO big deal, but he mailed me that he'd rather see the images in the folder.
I did that before at least twice. This time I decided to grab an exiting script. I found http://www.phpace.com/image-resizing-with-php/ by Sam Yapp. The script scans the folder fot images, creates thumbs with the GD library and displays them.

I liked two lines of code because they feel so Pythonic. This is the first:

preg_match('#^(.+?)(_t)?\.(jpg|gif|png)#i', 
    $entry->getFilename(), $matches) );
list( ,$name, $is_a_thumb, $extension) = $matches;

If you look beyond the regular expression, at least if you're intimidated by them, the array $matches collects matches from the regex. $matches[0] is the complete match consisting of the filename of an image. $matches[1] contains the first part (before the dot) of the filename, $matches[2] contains '_t' if it's there (thumbnails are created with an added _t in the filename) and $matches[3] contains the part after the dot.
Interesting is the list constructor in the second line of the example code. That's the Pythonic part. It creates all the variables in one line. Or am I mistaken and is it Perl magic in origin?

That's not all there is. You see the $entry->getFileName(). That comes from this code:

$dir = new DirectoryIterator($path);
foreach( $dir as $entry ){

Wow. An iterator in PHP. I hadn't seen this in PHP before. I have in Python though. hte DirectoryIterator seems pretty complete. PHP is growing up.


Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 878

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981

26-02-10

Permalink
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
12:48:44, by admin Email , 1 words   English (EU)
Categories: test

Hello


Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 878

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981

30-01-10

Permalink
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
18:39:19, by admin Email , 88 words   English (EU)
Categories: Computers, Programming

"Google announced Friday that it will be phasing out support for Internet Explorer 6, more than two weeks after the attacks on Google's servers that targeted a vulnerability in IE6. In a blog post, Rajen Sheth, Google Apps senior product manager, said that support for IE6 in Google Docs and Google Sites will end March 1. At that point, IE6 users who try to access Docs or Sites may find that 'key functionality' won't work properly. Sheth suggested that customers upgrade their browsers to pretty much anything else."
Source: Slashdot


Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 878

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981

22-10-09

Permalink
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
21:25:39, by admin Email , 1 words   English (EU)
Categories: test

1 2 3 4 5 6 7 8 9 10 11 ... 26 >>


Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/sessions/model/_hitlist.class.php on line 127