




Dvorak-intl-code is a keyboard layout optimized for polyglot hackers I’ve started working on and using in 2008.
This article demonstrates how to easily create your own keyboard layout by extending an existing one, storing your config in your home directory and load it with a command which .xinitrc or whatever can call.
Just add a file in ~/.xkb/symbols
, for example I put mine in /home/jpic/.xkb/symbols/code
, and looks as such:
// Dvorak variant for polyglot coder
Read MoreWhich may save quite some SLOCs (Single Line Of Code)
Curry is nothing more than a function returning a function to call a function
Hello everybody <3
Let’s talk about ideas for deprecation / discouraging the use of get_context_data()
.
get_context_data()
is useful to support legacy templates from the pre-CBV era, since CBV we can now access any attributes from the view instance with {{ view }}
.
I’ve seen things like this in many projects, I wonder if it’s the case for other people too:
def get_context_data(self, **kwargs):
c = super().get_context_data(**kwargs)
c['something'] = self.something
return c
And I’m guilty as charged you can find commits from myself like this all over internet.
Read MoreNext CRUDLFA+ version with Materializecss preview !
https://www.patreon.com/materialize?utm_medium=social&utm_source=yourlabs&utm_campaign=plshare
Yessss! We are now a proud patron of Alan and Alvin on @Patreon, and you should be too ;) With LOVE
https://docs.google.com/document/d/1C-ceqQ3UxvURLPsMxd5Ej658ETuwxEK4hElKafwBsyQ/edit
What my work looked like in 2013 (French).
It’s an honour for YourLabs Business Service, 2 months after opening, to make a small donation to a new alternative lifestyle project: L’Hermitage. This donation will be used to organize the first DIY workshops and open source home automation and heat management for large houses! With LOVE
https://stackoverflow.com/jobs/160985/postgresql-database-specialist-gitlab
Gitlab recruits remote DB specialist.
Stumbled accross some really good looking web based debugger: https://github.com/Kozea/wdb
Sometimes, we need to make views around objects which are not stored in the database. They may be calculated on the fly in python, or come from some data source that’s not the database, or which aggregates several objects in the database.
This is supported out of the box with CRUDLFA+, the modern web framework for Django. All you need to implement is:
Meta.managed=False
,save()
and delete()
like you want in it, if you want create, update and delete views to work,get_queryset()
and get_object()
like you want in the Router.This example model from crudlfap_example uses a class attribute in the manager to store the object list in memory. That’s probably not what you want to do in your own project, but that works for the PoC because it demonstrates how to override save()
and delete()
.