Niteo Blog

Collective SVN project -> GitHub

  Published on 2011/06/09

  Last updated on 2015/10/13

 By Neyts Zupan

More and more Plone projects are being migrated over to GitHub for various reasons. Here’s a quick guide on how to import your Collective SVN project into GitHub. GitHub can directly import SVN projects only by specifying a URL to the repository. However, for some reason this does not work for Collective SVN repositories. The […]

Read more

Assertion `t_size >= b_size’ failed

  Published on 2011/03/22

  Last updated on 2015/10/13

 By Neyts Zupan

Recently, when migrating a Plone 4 site from one VPS server instance to another, we had the following problem: We were not able to start Zope with Supervisord because it crashed every time we tried to start it. Running Zope in foreground (bin/instance fg) produced the following error: Python: Objects/typeobject.c:1736: extra_ivars: Assertion `t_size >= b_size’ […]

Read more

Multiple configurations for Tunnelblick

  Published on 2011/02/26

  Last updated on 2015/10/13

 By Neyts Zupan

A while ago I wrote about configuring Tunnelblick OpenVPN client for OS X. Here is how you can have multiple OpenVPN configurations with TunnelBlick: 1. Open ~/Library/Application\ Support/Tunnelblick/Configurations/ with Finder. 2. Rename openvpn.conf to openvpn-location-a.conf. 3. Duplicate openvpn-location-a.conf and rename the duplicate to openvpn-location-b.conf. 4. Open both of these configurations and change values such as server IP, etc. 5. Restart Tunnelblick. […]

Read more

Finding bad blocks on USB flash drives

  Published on 2011/02/01

  Last updated on 2015/10/13

 By Neyts Zupan

After a recent thorough cleaning of my office desk I found a handful of USB sticks. I knew some of them were more or less broken and some should be OK. But which are whic The solution that first came to mind was to scan USB drives for corrupted sectors / bad blocks. After some […]

Read more

Deploying Cyn.in 3.1.3 on CentOS 5.4

  Published on 2011/01/10

  Last updated on 2015/10/13

 By Neyts Zupan

Last week we were upgrading Cyn.in to the latest version. After a few days of testing on a local server it was time to deploy it to the server. Since Cyn.in needs quite some RAM to operate normally, we chose Virpus VPS instance with 2 gigs of RAM, running CentOS 5.4. Running buildout on the […]

Read more

Testing memoized methods

  Published on 2011/01/06

  Last updated on 2015/10/13

 By Neyts Zupan

For a recent Plone project we needed to write unit tests for methods that were using plone.memoize for caching return values. With a standard Plone’s PloneTestCase I got the following error: Error in test test_main_image (niteoweb.elcond.tests.test_stol.TestContent) Traceback (most recent call last): File “/Users/zupo/work/python/parts/opt/lib/python2.6/unittest.py”, line 279, in run testMethod() File “/Users/zupo/work/niteoweb.elcond/src/niteoweb/elcond/tests/test_stol.py”, line 75, in test_main_image image […]

Read more

Order of ‘parts’ when compiling lxml

  Published on 2011/01/05

  Last updated on 2015/10/13

 By Neyts Zupan

CentOS’s repos don’t have a working version of libxslt (you need 1.1.20, repos have 1.1.17) so we need to statically compile it for collective.xdv to work. But, there is a catch! You need to be careful about how you order your parts in your buildout.cfg. For examle, the following buildout.cfg works perfectly fine, it downloads […]

Read more

Upgrade Cyn.in 2.1 to 3.1.3

  Published on 2011/01/03

  Last updated on 2015/10/13

 By Neyts Zupan

We started using Cyn.in for internal documentation repository about 2 years ago. We are a small team of developers and we don’t use all of it’s features, but we still do use it daily and have grown to love it. It’s just great to have a place to store all little bits and pieces of […]

Read more

Secure IM for internal communication

  Published on 2010/10/18

  Last updated on 2015/10/13

 By Neyts Zupan

During this summer we finally got some time to review our internal working processes. One thing clearly missing was a solid IM solution for quick communication when working remotely. After trying out several different approaches we decided to use the old and well-proven one: IRC. Very important feature we were looking for was secure communication. […]

Read more

Click2Sell integration for Plone

  Published on 2010/10/15

  Last updated on 2015/10/13

 By Neyts Zupan

After integrating Clickbank with Plone last month we decided we also need integration with Click2Sell affiliate marketing network. A new Plone add-on was born: niteoweb.click2sell. The add-on has the same feature-set as it’s sister add-on niteoweb.clickbank, enabling you to have paid membership on your Plone site. It’s very simple to install and use. Project page: […]

Read more