How to create a new TypeScript project

In the following tutorial, we will learn how to start a new TypeScript project using Visual Studio Code with the Node package manager (npm). What you should know? Basic knowledge of programming, using of Visual Studio Code (VS Code) and executing of shell commands. What do you need? Visual Studio Code – popular source code editor […]

NoSQL Data Modeling Techniques

Originally posted on Highly Scalable Blog:
NoSQL databases are often compared by various non-functional criteria, such as scalability, performance, and consistency. This aspect of NoSQL is well-studied both in practice and theory because specific non-functional properties are often the main justification for NoSQL usage and fundamental results on distributed systems like the CAP theorem apply well to NoSQL…

Open Navigation Drawer with a Handle

This type of functionality is not supported on DrawerLayout from support libraries. There are some third party libraries with all kind of additional functionality. They are huge and usually we don’t need all components included. The implementation is very easy. After looking at source code of DrawerLayout class, we can see that there is onTouchEvent […]

Terminating python script and releasing resources

Python script can be used as a background running service in order to provide some functionality. This service is often stopped on very aggressive way with process termination. Therefore some resources may not be released or child threads stopped.Below are two options how to handle script termination. 1.  Catching KeyboardInterrupt and SystemExit errors: try: running_service() except […]

Raspberry PI: Volume control

Set the volume of sound output jack or USB sound card on Raspberry PI with Raspbian distro. This action will be perfomed with amixer utility. First list all audio capable devices: $ amixer Sample output: Simple mixer control ‘Speaker’,0 Capabilities: pvolume pswitch pswitch-joined penum Playback channels: Front Left – Front Right Limits: Playback 0 – […]

SQLite documentation page exception

Try this url: http://www.sqlite.org/search?q=AND+OR. Should be exception in sql. 🙂 Error: SQL logic error or missing database SQL logic error or missing database while executing “db one { SELECT count(*) FROM page WHERE page MATCH $::A(q) }” (procedure “searchresults” line 37) invoked from within “searchresults” (“uplevel” body line 1) invoked from within “uplevel { set doc […]