5 tips om als bedrijf uit het MKB een aanbesteding te winnen

  • 15 August 2014
  • Alex

Wij zijn trots op het feit dat wij als bedrijf uit het MKB een aanbesteding van de Belastingdienst hebben binnengesleept én dat wij deze succesvol hebben afgerond. Wil je ook inschrijven op een (overheids)aanbesteding en meer kans maken om de opdracht binnen te slepen? Maykin Media heeft 5 tips om als bedrijf uit het MKB een succesvolle inschrijving te doen en je kans van slagen te vergroten...

Read More

Django redirects with regular expressions

  • 02 September 2013
  • Alex

We've been doing quite a few projects lately where old incoming links need redirecting to new pages (both for visitors and the much sought-after Google juice). In such projects SEO is mostly tacked-on as an afterthought and often neglected, however giving your users the tools to set this up themselves is always appreciated. The default redirects app in Django works pretty well for users, but ...

Read More

Twitter API 1.0 goes 410 Gone, time to upgrade to 1.1

After quite a few warnings Twitter finally pulled the plug on API 1.0 last Tuesday, leading to quite a few Twitter applications to break. Their new API has been around for some time, but as OAuth authentication for all endpoints to the new API is required (combined with stringent rate-limiting and no longer being able to get RSS, Atom or XML responses) transitioning to it ...

Read More

Customizing Django startproject with templates

When it comes to Django everyone has their own way of structuring a project. The default layout when running startproject is reasonable for smaller projects, but it quickly gets messy when those projects grow. Two Scoops of Django has a whole chapter on the subject, but rightfully states that no two developers would structure their project in the same way. The default project structure of ...

Read More

Go Three60!

Maykin Media congratulates AmLab with the successful launch of the Three60 product! The tool shows a vision of aid information being accessible to all, from a top-down statistical perspective all the way to the words of the recipients themselves in how aid has improved their lives. The approach of using open source data provided in real-time appeals to us here at Maykin Media and we ...

Read More

RestORM - The client side of REST

RestORM structures the way you access a RESTful API and allows you to easily access related resources. It tries to be as generic as possible so it's not tailored to any specific API or server-side API library. With RestORM you can mock an entire API and replace the real client with a mock version in unit tests. RestORM is very extensible but offers many functionalities out of the box to get you up and running quickly.

Read More

MySQL AES_ENCRYPT in Python

MySQL features a function called AES_ENCRYPT(str, keystr). In this blogpost, we show you how to emulate that same function in Python.

Read More

Custom choices in Django admin

Allow custom choices in the Django admin in a select widget.

Read More

Nested resources in Tastypie

More elegant approach to do nested resources in Django Tastypie and make authentication work while at it.

Read More

Custom reStructuredText Directive for Sphinx

test

Read More

Using gp.vcsdevelop for vcs dependencies in zc.buildout

When using gp.vcsdevelop bear in mind that you'll explicitly have to add the egg installed by gp.vcsdevelop (through using pip) to the buildout eggs.

For example if you want to add grappelli revision 1072 from googlecode's svn and django-nose revision bda1f7820223f913e09d from github to your django project, do it like so:

Read More

Django "view-permissions" for related objects

You have a model A with a relation to another model B. In the Django admin, you have full permissions for model A and none for model B. However, if you create a new object for model A, you need to select a related object from model B. Tough luck: Permission denied!

Read More

Openfiler permission problems with shares on MacOSX and Windows

We recently came across a problem with our file server where I was unable to write to a particular directory on Openfiler. It turned out that this directory was created on a Mac and I was unable to place any files in it from Windows. What's happening? Some Googling got me to various unanswered posts where people roughly described the same problem although not everyone ...

Read More

Allow squid/mod_wsgi to pass the HTTP_AUTHORIZATION header to Apache

So we had some issues using django-piston (a webservice framework for Django) in combination with HTTP Basic authorization. By default both Squid and mod_wsgi will not forward the HTTP_AUTHORIZATION headers to the next layer. So if you have a wsgi application that does its own authorization you need to do the following: In your squid.conf you need to add the login=PASS to the cache_peer entries ...

Read More

Using Fabric to update a remote svn checkout with ssh public key authentication

For our subversion repositories we only allow users to connect through ssh public key login. We are switching towards using Fabric for doing automated deployments (in combination with zc.buildout, which we already use). Unfortunately it seems that both Fabric and paramiko, the python library Fabric uses for making ssh connections, don't support the ForwardAgent option in ~/.ssh/config which allows you to forward your ssh-agent to ...

Read More

Proper access rights with SSH+SVN

We want to use SSH+SVN. However, access rights can be a pain with this protocol since we cannot use SVN's built-in access management. I explain how to use SSH+SVN and have proper access rights with multiple users and groups.

Read More

Installing Subversion on Openfiler

  • 10 July 2009

In previous posts, I explained how you can built your own file server and get it up and running with Openfiler. The server runs smooth and you're thinking: Can't we use this server for some more purposes, like Subversion? Of course you can... but, consider that Openfiler was not made for this. There can be trouble when updating Openfiler, installing additional packages may cause conflicts, ...

Read More

Allow ssh-agent to work when using sudo

We maintain all of our server's /etc directories in subversion repositories and just disabled password logins on our subversion server. So that means you actually need ssh-agent to work when using sudo. This can be done by editting the /etc/sudoers file and adding the following line: Defaults env_keep="SSH_AUTH_SOCK"

Read More

Using a jumpbox with subversion

Just as I wrote in Using a jumpbox in ssh it can also come in handy to use a jumpbox with subversion. A jumpbox is an in between server which you use to tunnel traffic through, because the end point is somehow not reachable directly. In this case we migrated to a new internet connection in our office. Which brought in a Zyxel modem/router. Our ...

Read More

Installing Openfiler - Part 2

In my previous post, I went over the basic installation of Openfiler. In this final part, I'll describe how we configured Openfiler via the web interface to create users, partitions and shares. Services What is our NAS going to do? We can configure all that we need from the web interface. The Openfiler documentation, at the time of writing this blog post, was messy and ...

Read More

Using mysql load data infile with django

To import large amounts of CSV data from a file into a MySQL database you can use the LOAD DATA [LOCAL] INFILE command. There are some caveats using this command having to do with security. In order for LOAD DATA to work you will have to enable the command on both the server and client. To do this for the server, you can edit your ...

Read More

Using a jumpbox in ssh

Sometimes you will need to access a service on a client's machine from an untrusted network, but you don't want to expose this client's SSH server to untrusted IP's. If this is the case you can use a trusted machine (a so called jumpbox) as an intermediate to connect to the client's box. For example, to connect the user test (user available on both jumpbox ...

Read More

Installing Debian 5.0 (lenny) as a Python/Django/Postgresql/Mysql server

At Maykin Media we have decided to become more fanatical about documenting our findings and sharing them with the rest of the world, if they make some sense of course. Besides our cheap but reliable fileserver configuration which Joeri documented here, we also needed a staging and production server. We chose to use a Virtual Private Server solution: which means that both servers are not ...

Read More

Installing Openfiler - Part 1

Openfiler is an open source storage appliance software package. It can be installed like any other Linux distribution and allows us to manage groups, users and shares. We'll go over the set up of our 2x 1 TB disks as RAID-1 array and tweak the boot manager to set both disks as bootable. If one hard disk fails, the other can take over. Smooth.

Read More

Building a file server

To store our documents, invoices, etc. we needed a good ol' file server connected to our network, or rather, a network attached storage (NAS). We want it to be cheap, fast, have lots of storage and accessible under Windows and MacOSX. Now we got a cool looking file server meeting all these demands and for backup we rotate mobile USB harddisks.

Read More

PuTTY Tunnel Manager

How often don't I just want to open a tunnel to some server (that I'm sure to have in PuTTY) without opening a full SSH terminal? Or, isn't it annoying that everytime you open a terminal session in PuTTY, all tunnels related to that session open as well? -- PuTTY Tunnel Manager is here!

Read More

Search Bar

Categories

Latest Tweets