ArchivePage 2 of 11

Another great ride through the Sacramento valley

So I’ve been quite busy for the last few days.  I think I’m going to spend independence day in Mineral and head back to S.F. on sunday.

I spent most of the day yesterday riding into Chico by way of the Capay valley.  So beautiful.  About 15 miles out of Chico, near Butte City, California, my clutch cable snapped and I just stayed in 5th until I absolutely *had* to stop.  After that I manually shifted the clutch (which was piping hot) with my hand, and ‘limped’ the bike home in 2nd and 3rd, manually shifting by reaching down to the lever.  It was crazy fun.  I got here a few hours ago, and I’ll be able to replace the cable tomorrow morning, so its all a good learning experience I guess.

Funny thing is, I noticed the cable was fraying, but I thought I would be fine for ‘just one more trip’.  It was something above 100 degrees today, I bet that contributed to softening the final strands on that darn cable.

a bear

cross country

the legless hitchhiker

cabin works

a bear and ella

stickies problem

I love stickes but it wasnt built for this:

I want a gui for a text file that I use as a daily diary.

stickiesproblem

turn register_globals off in 1&1 basic(cheap) linux hosting

C is the best option…

it seems people who don’t understand the variety in packages their webhosting provides run into these problems..

1&1 offers many paths for webhosting and the cheapest (basic/beginner packages & using linux) requires something like option C from my previous post for a fix… I bet this is the same with other cheap hosting accounts.

oh i quote from 1&1 RTFAQ:

Disabling global variables:

The following will disable global variables on root servers, managed servers, and shared hosting.
This will help prevent PHP injection attacks.

.htaccess

# Offers protection during hacking attempts by NOT displaying
# error messages, server paths, and turning off your globals.

php_value display_errors off
php_value register_globals off
#recursive
#only on a root server or a managed server that has PHP loaded as a
module

php.ini
# Disable register_globals for security reasons
register_globals = ‘off’
#not recursive-must be in every directory where you want it

#The below solution is the only solution for shared hosting-
#only works on a managed server or a root server

http://faq.1and1.com/scripting_languages_supported/php/upgrade/6.html

What do I need to consider if I want to use PHP5?

With 1&1 Linux hosting packages you have the choice between PHP3, PHP4
and PHP5. To distinguish a script as PHP5, simply name the script with the
file extension .php5.

While the PHP developers have done their utmost to ensure compatibility, we
cannot guarantee that PHP4 scripts will function 100% correctly under PHP5.

Please note that in contrast to PHP4, the default for the variable
RegisterGlobals is “off”.

By default Apache uses PHP4 for .php extension. If you don’t want to rename
all your scripts to .php5 you can do the following:

Create a .htaccess file and place the following line AddType x-mapp-php5
.php in it.

This will tell Apache to use PHP 5 instead of PHP4 for the extension .php
in the directory the .htaccess is placed and all sub-directories under it.

php configurations for 1&1 (or 1and1)

It looks like there are 2-3 ways for 1&1 basic level webhosting users to configure the php flag register_globals with CMS packages like drupal or pixelpost (the register_globals should be ‘off’ for security reasons)

(A) edit .htaccess file by adding the following line [ha! this hasn't worked in drupal_6.2 for me yet!] (I always prefer vim and if you don’t use it, spend 25 minutes learning it by typing ‘vim tutor’ at a terminal prompt!)

php_value register_globals 0

  1. since 1and1 basic webhosting doesn’t include a file editor (AFAIK): Edit on your local system with vi/m (plain text editing) on the drupal .htaccess file (the .htaccess file is in the drupal directory, you can name it ‘htaccess’ without a ‘.’ from the terminal to make it visible, you do know how to use basic unix commands in the terminal, right? Alternative is to change os X folder view options and make .htaccess files visible!)
  2. upload using the 1&1 webspace exploder, erase the previous .htaccess file and rename the one you just uploaded to .htaccess
  3. but this didn’t work right off! editing the big drupal .htaccess file by adding in the single line above resulted in a 500 Internal server error!

(B) The second option is to use your editor on a php.ini file (again, use VIM) [this WORKED, but I'm stubborn to get the orginal .htaccess file working!]

register_globals = off

(one could also add in the memory usage directives that drupal needs currently not sure that this init file is enough, as drupaoperates on many subdirectories and this may only cover a single one, the following is perhaps a better path)

(C) option threee: I have not tested this yet! use at your own risk as this is just forum chatter I overheard

again, make a .txt file called htaccess and add the following data, then upload the file to 1&1 at drupal’s root and rename it “.htaccess”

#Forcer PHP5 chez 1and1
AddType x-mapp-php5 .php

As PHP5 has “Register Globals” set to 0 by default at 1&1 !

ssh tunneling

yey!

kserve project has tunneling through ssh to itunes.

what does this mean? it means all my music is available over the internet as a shared library in itunes or daapd capable media players. i’m listening to Shirley Bassey right now, streamed from the kserve… i.e. my huge music library can have a robust & accessible home on a media server that *I* maintain.

What’s more is that eventually the mediaserver (mediaservers are a dime a dozen these days) will level up to a media Librarian.

As with any wifi network service, bandwidth and connection access is a limiter, right now (at cafe Abir) the surfandsip dsl cops drops the library connection from time to time, but for the home this is perfect, for work this would be perfect also. The library will always be available at home for any media player using the wifi network.

some notes and questions:

Is this necessary over ssh? Is the encryption overhead an unnecessary waste of bandwidth

need to make a diagram of the network connections being used, to add to mrblack’s handy documentation…

need to add beacons(using beacon for os X now, very cool new way to easily link up the daapd service to itunes, would love to see video bots built from this kind of software) for file shares over ssh through samba or nfs… for file sharing in general…

i had to restart the mt-daapd server to get it to recognize & add songs to the shared library … (use cron to watch the directory for changes and restart the server everytime new files are copied? )