Adding PECL Uploadprogress to 1&1 shared hosting for Drupal FileField

Drupal 6.x is the platform we use to build great websites. There are modules FileField and ImageField 3.0 that allow the ability to update a progress meter when uploading a file. This requires installing a PECL extension to PHP called uploadprogress. Here is the process I used to get it working on a 1and1.com hosting package. You will need a hosting package with ssh support currently the Business and Developer packages do.

  • Download PECL uploadaccess to your 1&1 account
  • Extract the package
    tar xvzf uploadprogress-1.0.0.tgz
  • Go into the directory
    cd uploadprogress-1.0.0
  • Run phpize5
    phpize5
  • Change php-config to php-config5 in configure script
    sed -i 's/=php-config/=php-config5/g' configure
  • Run Configure
    ./configure
  • Change include directives in Makefile
    sed -i 's#-I/usr/local/include/php#-I/usr/include/php5#g' Makefile
  • Run make and make test
    make
    make test
  • Make new extensions folder for new extension to go in
    mkdir ~/extensions
  • Copy uploadprogress extension to new folder
    cp .libs/uploadprogress.so ~/extensions/
  • Create new php.ini under your main folder (or under a single subfolder for just that application) to add new extension_dir then add this code to the file
    extension_dir=/kunden/homepages/6/d87663654/htdocs/extensions/
    extension=uploadprogress.so

That should be it. You should now be able to see the “Upload progress Enabled (PECL uploadprogress)” on the admin/reports/status page in Drupal.

Links that helped me with the above info:

All the good ideas are taken. Lost item locator.

Had a thought last night as I was searching for my daughters pacifier for more than 15min as she was upstairs crying her little eyes out. “Pink passy” she crys from atop the stairs as I rummage around the kitchen, living room and across every corner, nook and cranny. My thought was, “If there was an RFID tag on that stupid passy I could have already found this thing!” After I finally found said passy behind the pantry door I wondered if such as product existed that allowed you to place a small RFID tag onto any item and then locate it with a transceiver by walking around the house. Seems it was such as good idea that someone already patented it. Not that I should be suprised because all the good ideas are taken! Well not really, but any of the obvious ones I come up with seem to be. So maybe one day I’ll come up with something that no one has patented, copyrighted or otherwise thought up and do something really great.

Suggest topics for me to write about: Skribit

I would love for those who read this blog (all 3 of you lol) to suggest topics for me to blog about. I was alerted to a very kewl service called Skribit that allows people to suggest items. Please post your suggestions there or use the skribit box on the right. Thanks alot!

Paypal’s Security FOB

Yes this has been reviewed multiple times (here) as well as talked about on one of my favorite podcasts Security Now (transcript), but I just had to let the people who look at my blog (all 8 of you lol) how great it is. Here is a picture of it:

This hangs on my keychain and has a button that when I press on it gives me a 6 digit number which I can then use to log into paypal.

In fact I just used it to login to paypal to help my buddy Matt get his Dad a new wii at http://www.mydadneedsawii.com/. Please check it out and donate a dollar or two.

So here are the steps to using the Paypal Security device:

1) Goto http://www.mydadneedsawii.com/
2) Click on the Donate button on the right
3) Enter an amount (ie $5) and click Update Total
4) Enter your paypal email and password
5) Then instead of logging you in you are presented with a box to enter your 6 digit security code from your Paypal FOB.

So that is it. Pretty simple and makes your paypal account alot more secure. Check out more on the paypal site.. You also get to use the same key for your eBay login!

TextMate is the best editor evaaaaar!

Yeah, so I love TextMate. It is in my opinion one of the greatest text editors. It is easy to use, has great features (see below), makes it easy to program (especially in php) and is all around great. Yeah I know I could expound more, but I’m doing other things so read the features below or check out the site. Definitely worth the money (OSX only).

* Ability to Search and Replace in a Project
* Auto-Indent for Common Actions Like Pasting Text
* Auto-Pairing of Brackets and Other Characters
* Clipboard History
* Column Selections and Column Typing
* Completion of Words from Current Document
* CSS-like Selectors to Pinpoint the Scope of Actions and Settings
* Declarative Language Grammars for Graceful Mixing and Hacking
* Dynamic Outline for Working With Multiple Files
* Expand Trigger Words to Code Blocks With Tab-able Placeholders
* File Tabs when Working With Projects
* Foldable Code Blocks
* Function Pop-up for Quick Overview and Navigation
* Plug-able Through Your Favorite Scripting Language
* Recordable Macros With No Programming Required
* Regular Expression Search and Replace (grep)
* Run Shell Commands from Within a Document
* Support for Darcs, Perforce, SVK, and Subversion
* Support for More Than 50 Languages
* Switch Between Files in Projects With a Minimum of Key Strokes
* Themable Syntax Highlight Colors
* Visual Bookmarks to Jump Between Places in a File
* Works As External Editor for (s)ftp Programs
* Works Together With Xcode and Can Build Xcode Projects

SuSE SLES 10 Migrating from NIS using MigrationTools

So we were moving a NIS database to LDAP under SUSE SLES 10 using the MigrationTools-47 scripts. It generated the ldif file, but would not import because it was failing on adding groups. This was the error we were getting:

(65) no structural object class provided

All we had to do is change this:

objectClass: posixGroup
objectClass: top

to this:

objectClass: posixGroup
objectClass: namedObject
objectClass: top

for each group in the ldif file. Then we redid slapadd -l file.ldif and everything worked.
Continue reading

Wish I had an iPhone

After looking over the unpacking of, the disassembly of, the workings of, the howto videos of and more I think I have finally gotten iPhone envy. But just like I waited for the Macbook Pro Core 2 models to come out I think I will wait for the iPhones w/ GPS, 3G, 16-30GB, and more. Good things come to those who wait (some would say good things come to those who get in line first). So have fun with your iPhones. I’ll just sit here wishing I had one and play with my Blackberry Pearl.