Continue reading “JSHeroes 2018 | Cluj-Napoca”
The rule of thumb in all of Angular (2+), alongside the complete rewriting of the HTTP Client in 4.3, is that the data flow should be handled using Observables. All of the Client’s calls are themselves Observables, to which you can subscribe and receive the required data on completion.
This should be a good way to handle your data, but what happens when you want to create a Service that manages your data, as models, or maybe just as JS primitives, store them, and modify/delete them when needed. Continue reading “Angular Data Services, helped by the beauty of BehaviourSubjects (they are not BS)”
When you backup whole database by using dumpdata command, it will backup all the database tables.
If you use this database dump to load the fresh database(in another django project), it can be causes IntegrityError (If you loaddata in same database it works fine).
To fix this problem, make sure to backup the database by excluding contenttypes and auth.permissions tables.
./manage.py dumpdata --exclude auth.permission --exclude contenttypes > db.json
Long version, with natural primary and foreign keys:
manage.py dumpdata --natural-foreign --natural-primary -e contenttypes -e auth.Permission --indent 4
There is a new kid on the block, and long story short, he is quite AWESOME.
We are talking about YARN, a new package manager that wants to solve a few problems that have become a real nuisance in today’s favorite, the Node package manager – npm. Continue reading “[The Cookie Jar] Yarn – A new (and fast) pkg mgr”