The wonders of long battery life

I always go on (and on…) about how I chose a 12″ powerbook because it was really portable and had decent battery life. Thinking about it, it isn’t that much more portable than a bigger powerbook or macbook, but it has better battery life than those with bigger screens. Now that I have a new battery in here I have to gush about how nice it is to have really useable battery life. Last night I watched a film (well a long TV episode) on battery power, listened to about an hour of radio paradise over wifi, and then here I am this morning, blogging, surfing and doing some web development and still have a third of my battery left. All this time i’ve had wifi on, screen at full brightness and about 10 applications open.

archived comments

Battery life for every piece of mobile equipment I have is awful. I should get myself a decent piece of kit.

Jim Toe 2008-06-17 14:26:40

Set your own life time more easy get the business loans and all you want.

KathrynJuarez28 2011-08-07 23:57:35

If you love your plone data, set it free…

If you can get it back into version 2.5 then the data belongs to plone, otherwise it never belonged to plone in the first place..

I’m still undecided and a bit lost about how i’m going to get upgraded from 2.1 to plone 2.5

To recap:-

  • I can’t really upgrade it in situ (although could be persuaded to try it if people think this is the best bet)
  • portal zexp import didn’t work for me
  • smaller zexp imports left me with broken stuff.
  • it is on a shared instance so the data.fs file is too big to move realistically (once again, still an option if encouraged)

so…I’ve started creating some zpts that I can use to dump content as xml files (e.g. all_articles.xml, containing title, content, url and any other data I need to move – kind of RSS on acid). Not quite XMLforest, but I haven’t got my head round that yet as I live in the skin layer mostly. The masterplan is to then use some python foo magic to populate a fresh 2.5.most_recent_stable site from this XML.

Obviously I need to handle the images and other files seperately – so far I have used a skin script to generate a file containing wget statements for each visible/published image on the site and download the images with a mirrored folder structure, along with an accompanying xml file with the captions, descriptions and paths. I intend to rebuild my products from scratch (pop my zope 3 cherry even?) so I don’t necessarily need my existing products to be 2.5 compatible.

Think i’m going about this the wrong way? Please let me know! Please also bear in mind that while I am a keen student, I am mostly a GUI guy (+ basic archetypes development), and am easily confused by your crazy python talk, and have been made weak by your excellent installers, to the point that I haven’t got a clue how you would go about installing or upgrading zope if it requires me to do anything more than click buttons 😉

archived comments

You might want to look into GenericSetup. There was a talk at the Plone conf about it.

Also check out CMFFolderExport:

Good luck.

skeeter 2006-11-21 17:23:40

Moving the Data.fs is the recommended (and only guaranteed) way that this’ll work. Your time is too valuable for you to waste it re-building XML support. 😉

Just remember to pack the database from the control panel before transferring it, and it should be a decent size (depending on the content, of course).

Alexander Limi 2006-11-21 18:06:21

There’s ArcheCSV that you could try: Walk over your content types with a page template and create a .csv out of it and use ArcheCSV to import it. It looks like you have ~40 or so articles so it shouldn’t be too bad…

FWIW, one thing I did last week was bulk import about 500 links into a Plone portal from an unordered list of links on a single HTML page. I parsed the page with BeautifulSoup ( and used a Plone Link template (download any Link content type via WebDAV to get the template) to create individual link files that I could just upload via WebDAV.


Shane Graber 2006-11-21 19:41:38

Upgrading from 2.1 to 2.5 should be pretty painless to do in situ – just make sure you have backups, so you can revert if it for some reason should fail.

Alexander Limi 2006-11-22 12:44:23

Thanks for all your much appreciated advice – I have made a bit of progress by moving data.fs – I now have a partially functional local copy running on plone 2.5 on my mac 🙂

Rick Hurst 2006-11-22 14:14:58

Access Compact and Despair Utility

An asp/ MS Access web app of mine suddenly stopped working, and was throwing an error:-

Microsoft JET Database Engine error ‘80004005’

The Microsoft Jet database engine cannot open the file ‘C:foobar.mdb’. It is already opened exclusively by another user, or you need permission to view its data.

I knew that it wasn’t opened by another user, so it must be related to the permissions. I remembered the previous day I had run “compact and repair” in the Access GUI to bring the database size down. Running this as administrator via the GUI in situ on the server seems to remove the permissions for the IUSR_(your server name) account. You can add permissions back in for that user via the security tab for the file (if you have access to the server gui).

One way to avoid this is to run the compact and repair procedure from an asp script like this one. This seems to do the trick without breaking anything

security on public wifi

web bug

After attending the excellent recent Skillswap on security by Oliver Humpage at the Watershed in Bristol, I am feeling more paranoid than ever about security on public wifi. We are all being encouraged to use wifi and work from wherever you want, but little advice is given about how to avoid transmitting your unencrypted usernames and passwords over the network.

By default the average user will not be using any encryption – virtually everyone using ordinary email (i.e. using a desktop mail client) transmits their username and password when they check their mail. During the presentation Oliver demonstrated how applications such as dsniff can be used to sit and gather unencrypted data on a wifi network – this is not difficult to do.

Being already paranoid, I tend to use a web proxy over ssh to surf on public wifi, but I have a whole load of other applications running -IM, skype etc that I suspect also transmit unencrypted data that needs securing, which may or may not be tricky to do over ssh. Apparently a VPN is the way to go.

gmail mobile app certificate error

I decided to try the new java gmail app on my sony k750i. It installed OK, but when I tried to connect it was telling me I did not have the “appropriate certificate”. After abit of googling I found advice on this forum thread to navigate to the following URL on my phone browser:-

I did this (even though I am reluctant to take the seven hours it takes to type in a URL that long on my phone) and it gave me a certificate to accept. The app now works a treat 🙂

archived comments

Hi, I tried this on a k700i – and got an “invalid certificate” error. I think certificates have different formats… there’s this x.509 format, etc. This certificate’s format might not be appropriate/valid for some phones. It would be great if google’s email app could just download the appropriate certificate in the appropriate format, if the phone didn’t have it…

Qasim 2006-12-08 05:21:22

Nice! it works, thanks!

dereck 2006-11-23 20:53:28

If that URL is too long for people, use this TinyURL instead:

Emyr Thomas 2006-11-24 09:37:11

hai there, i’ve tried this link and other at , but my phone respond is unsupported content type – my phone is Nokia 6275i CDMA – how to install this certificate if the content tytpe is unsupported ? please help

ngux 2006-11-25 17:45:19

Hi. I came to this page looking for help about the GMail app security certificate in SE K700i and thanks to you, I found the solution. The long URL is really a pain in the ass but after the application started working, it felt totally worth the effort. Thanks a lot!

Raunak Mehta 2006-12-18 22:13:40

I have the same problem with my Nokia 6275i, but I can’t access the mentioned urls (both long and short one). Anybody can help me. Thanks a lot!

ykristiawan 2006-12-27 10:58:59

Thanks for the resolution. it worked very well indeed.

Skyin 2007-01-07 15:42:29

Is there any new issue, loading this page with my K700i it tells me illigal certificate.

Andreas 2007-02-19 17:58:01

Yeah – thanks, works great 🙂

Tim 2007-02-28 09:00:29

Anyone figure out how to get a Samsung SGH-a707 to accept the certificate and work with the gmail mobile app?

UghSamsung 2007-03-24 17:19:59

I have a samsung sgh as well, when I try to download the certificate it says unsupported file type. Also, you don’t have to ttype in the whole URL, you can send a text message online then goto

kristen 2007-03-25 21:08:36

I have a SGH Z720. Whenever logging and signing in to Gmail, after a short moment, certificate error message – Sorry, Gmail will not work on your phone. Your phone doesn’t have the appropriate certificate to communicate with the server. Try accessing Gmail on your mobile browser at Well, accessed, downloaded re-installed, still the same. So puzzled. Seek help, anyone, please.

Philip 2007-04-08 06:37:57

Thanks! This helped me with my Nokia 6131! 🙂

Annie 2007-04-28 07:37:07

Thanks to this article it was working on my k750i in a jiffy.
Many thanks for the tiny url Emyr !

Neil 2007-05-23 14:01:26

Thanks a million! This trick worked perfectly with my Nokia 6131

Jarn 2007-05-28 13:41:55

Thanks a lot. Works fine (after an unsuccessfull first time) on my Nokia 6233.

Wim Tas 2007-06-03 11:38:16

On my k700i it perfectly works.
I’ve downloaded it on my PC and sent it to the phone with a bluetooth connection

Thanks a lot

Diego 2007-06-05 06:16:21

Many thanks for this. I had my Nokia 6131 reflashed and the GMial app wouldn’t work afterwards until I found this.

halifax555 2007-07-03 21:26:37

Well .. I can see lot of ppl found the solution for the cert … but never the less it does’t work for all …

Like many I too own Nokia 6275.
The browser does not support to download cert as it is.
Also when I checked the browser’s cert info I could see 2 from Versign and others.

This could be a basic problem with Series 40 Nokia phones.

MObiles CDMA 2007-07-30 10:06:14

I read from another site that just setting the POP (incoming) server to and leaving the SMTP and all other settings the same will cure the problem. Worked great!

I tried it on my Nokia 6233 and it worked, after I also logged into Gmail and enabled POP access from the “settings…” menu.

Good luck

nokia6233 2007-08-27 12:11:42

This is excellent information, thank you indeed!

Jacob Wieland 2007-09-30 14:26:22

Google’s pages have wrong MIME type for this cert, which causes that Nokia Series S40 phones won’t recognize it. I left solution to google’s support-team and propably they will fix it some day.

I made little webpage to my own server, where you can download certificate to your Series 40 phone (may work with other phones too).

Mikko 2007-10-06 07:21:41

I tried this for my K800i but it didn’t work. Any suggestions?

aidanxc 2007-12-21 14:07:01

Worked like a charm, good info dude. My phone is a modified Nokia 6133, debranded and flashed with the latest software.

Frank 2007-12-26 06:20:13

Obviously many Nok’s have had their day in the sun. I’m still here melting my Sam keys trying to find some URL that will override Samsung’s incompetent engineering. Without reading volumes of threads does anyone have anything on loading up Gmail onto the SamSync (707)? Hey…ANYTHING would be greatly appreciated. You can even bill me…maybe. Merci Dear Friends and Foe alike.


Westown 2007-12-27 15:16:53

I had Gmail for mobile working just fine on my IC902 and then one day I get this error message “Certificate Error” Gmail for mobile will not work with your phone.. blah blah blah. I just sent the url above to my phone via sms using googles text to phone extension. It said it was going to overwrite the certificate with the new one but they had the same valid date. It still doesn’t work on my IC902.

I called Sprint and they referred me to Google and wouldn’t even let me talk to a technician about it since it was a third party.

Elijah 2008-04-21 19:07:38

I’ve just run into this problem, but I only get a “Downloading failed” error when trying to download the root cert 🙁

This is with a Nokia 6230i.

Maybe it’s time for a new phone.

Michael 2009-12-14 22:23:03

Posted in Uncategorised

comlounge TV coverage of plone conf and sprints

I have to admire the commitment and effort of Christian Scholz with the videos from plone conf (and subsequent sprints) he has been producing under the banner of COM.lounge TV. These things are appearing online at a prolific rate, it’s difficult to keep up! From my experience with helping Nate to video a few things at snow sprint 3, it takes a lot of organisation, time and effort and… free disk space to get these things edited and online in any decent amount of time, let alone to produce them with professional quality like these ones. I think “videocast evangelist” Robert Scoble could learn a thing or two from Mr Scholz.

Posted in Uncategorised

How to confuse the hell out of the plone navtree and yourself in six easy steps

Six simple steps to make the plone 2.5 navigation portlet get it’s knickers in a twist:-

  1. create a folder in the root of a plone site
  2. in folder contents in the root, move your folder to the top so that it is the first item (after “home” if you have that enabled) in the navigation tree
  3. in the new folder create a new page and set that page as the default view
  4. in the ZMI enable “Folder” as a type that can be used for a default page (see this is where I should have known something bad was going to happen)
  5. go to the root of the site and set your new folder as the default view of the portal (i.e so that the homepage of the portal is in fact the default page in your new folder one level deep – believe it or not I had a reason to do this)
  6. Hey presto your new folder falls to the bottom of the navtree – no amount of reordering will persuade it otherwise! You can try swearing too if you like, that won’t work either 😉

archived comments

Yep, I realise this is a bizarre use case – one which came from a client where I had migrated their site from another CMS, which had the home page of the site being the same page as the default page of an “about” section. They didn’t want to change this set-up. I won’t file it as a bug and I promise I won’t do it again 😉

In the end I solved my problem by not doing the “folder as default page” hack, but adding “about” as the first option for default_page under site_properties – a hack which works here as long as there are no other objects of the same name. I’ll publish the url of the site when it goes live so you can see my use case.

Rick 2006-11-08 08:42:42

I’m not even going to try to think about why you’d want to do this. File a bug if you wish. It’ll probably be assigned to me and I’ll probably ignore it on account of silly use case. 🙂

If you see this happening with other types than Folder (i.e. where there is a real use case) then it’s a more serious bug. I think RichDocument and other non-structural folder (marked with INonStructuralFolder) are the ones that would be bad if they don’t work.

If I were to guess, I’d say that:

– When the Folder is the default-page of the portal, it ought to be hidden
– However, you have showAllParents on
– The folder itself actually has a default page, or something else is causing the showAllParents logic to be invoked (this may be a bug)
– showAllParents will always place at the bottom (limi says we may move this to the top instead)

To be clear, showAllParents (a flag, which when true implies this behaviour – ) works on things that are ordinarily not in the tree (typically marked with “hide in navigation” or of a non-listed type). If the current item or one of its direct ancestors is not visible and showAllParents is true, it will still show those items. It may not know where to show them, though, in which case it’ll end up at the bottom. It depends. Navtree code is complex.


Martin Aspeli 2006-11-07 23:16:32

There’s a reason folders are not enabled as being default views of a folder, you know. If you change that, you’re on your own. 😉

Alexander Limi 2006-11-08 00:23:58

PloneFormGen – through the web form builder for plone

An off-hand comment I heard about PloneFormGen while I was at plone conference has possibly just payed for most of the conference and travel expense to get to Seattle. I can’t remember where I heard it, but someone mentioned that it was a nice product. I stuck it on my mental to-do list to try it out…

I’m currently working on a site that is close to going live and I had an email waiting for me from the client on friday, saying something like “by the way, can you change that join button so that it sais join our mailing list?” The conversation that followed let me establish that in fact what they wanted was a custom contact form with a few extra options. Usually I would then proceed to hack the contact form and mail script around to achieve this – knowing that I would have to be careful not to lose my customisations if I upgraded or reskinned the site, but this time I decided to try PloneFormGen.

Now that really was painless, really easy to figure out (i’m one of those people who you have to threaten with physical violence before I will RTFM). Thumbs up to Steve McMahon for a very useful product 🙂

what I did on hol..h^h^h.. at plone conf 2006

central not so perky

I intended to do a comprehensive wrap up of our trip to plone conference in seattle (and stopover in new york), but it is still a bit of a blur, and i’m still jetlagged (ok, i’m just a lightweight, i’m always sleepy). I need to have a look at all the presentation material and my notes, so I promise to write something up and provide some feedback to the presenters in the next week.

The major insight (plonewise) to come out of this week is that resistance to Zope 3 is futile, in fact i’m quite excited about the idea now 🙂