abidibo.net

Weblog

How to customize django change form redirect url

django-admin django

Sometimes may happen you need to customize a bit more than usual your django admin interface. Maybe because you need a different dashboard approach, or you just need to aggregate functionalities in a way which differs from a pure CRUD interface. Anyway, if possible, you try to keep the change and delete form code of the django admin, because you really are too lazy to rewrite all the add/change/delete stuff.

In such a situation I found myself searching ...

read the full post


Otto Backup, a friendly rsnapshot GUI application

backup rsnapshot python

Every developer have to deal with backups. In the linux world the most used tool is probably rsync, and often it is run through rsnapshot, which lets you create incremental snapshots of your directories.

Almost any developer will not have any problems configuring and running rsnapshot through the command line and add it to the crontab schedule, but what if one of your clients asks for a way to download manually a backup of their application?

You could solve this ...

read the full post


react-native-location-manager

geolocation react-native react-native-location-manager

Managing location related tasks inside a react-native project can be quite frustrating. I've encountered many problems, for example when getCurrentPosition was always returning me a cached position object, despite of my configurations. For this reason I wrote a getLocation function that tries to incapsulate all the code needed to get a reliable position with a fallback to low accuracy mode.

But getting the real location is only a part of the story, which consists of many other tasks:

  • authorize the app to access location
  • enable location setting if disabled
  • inform the user about what it's going on
  • ...

So I finally decide to wrote a reusable component which tries to manage all this stuff in one place, which makes use of ...

read the full post


Geolocation with react-native

geolocation react-native

I've had many problems with react-native geolocation module.

In particular I faced a weird behaviour of the getCurrentPosition method: while the world was lamenting timeout problems, probably due to the fact that gps tracking is not fast at all in closed spaces, my problem was that with highAccuracy set to true, the returned value was always a cached one, no matter how I set maxAge option.

If your problem is a timeout problem, then you can just call getCurrentPosition with ...

read the full post


A vim configuration model

vim

I've been a vim user for many years, I tried so many plugins I just can't remember, I changed my vim configuration very often reaching a sort of model that now, with vim 8 and async jobs on stage, I'll ...

read the full post




Add app's contents inside ckeditor with django-resckeditor

ckeditor django django-admin

I always use django-ckeditor in my web site projects when I need an html editor. CKEditor is a nice tool, highly customizable, which produces a well formatted html. Here at Otto srl there was the need to include custom app's contents inside the editor in an easy way, since the tool has to be used by unexperienced people.

I approached these requirements developing a custom CKEditor plugin, which can communicate with django apps async through ajax requests. Every app can ...

read the full post


Internationalization with react-redux-starter-kit

i18n react redux

This was the first time I had to manage serious translations for a react-redux project. I use to develop my applications starting from the awesome react-redux-starter-key by davezuko.

This starter kit doesn't include i18n support out of the box, so some work is needed. I followed this article from freecodcamp and changed things a bit, so let's start.

Install react-intl

It seems that in the react world there is one library to choose for internationalization: react-intl by yahoo.

Let's install ...

read the full post


Django Baton, a cool, modern and responsive admin app

django django-admin programming

I was a happy developer using django-suit for all my working projects. Now django-suit v1 is becoming a bit oldie, it is based on bootstrap 2.3, and rewrites so many templates that its compatibility with some other apps begins to suffer (i.e. django-filer). It's a shame, it was in my opinion the best admin app overthere.

I know django-suit v2 is on stage, at the moment of this writing it is in development, and I'm quite sure it'will ...

read the full post


Your Smartwatch Loves Tasker!

Your Smartwatch Loves Tasker!

Now available for purchase!

Featured