Software engineering facts, information, and skills from January, 2018

Search and replace unicode zero width characters <U+200B>

Varghese Chacko 1 year, 2 months ago

When we copy-paste text from applications like MS-Word or similar to our HTML or text files, we end-up having unicode characters in the file, ultimately leading to different issues. Inlinus, itseasy to replace it from all files in current directory. A typical example is the zero width space <U+200B> 

Python sort arrays with sorted method

Varghese Chacko 1 year, 2 months ago

Python provides a method sorted which returns the sorted array and will not change the original array, where as list.sort() with change the array in place. 

Search database with regular expression in Django

Varghese Chacko 1 year, 2 months ago

Regex and iregex are  the two field lookups that enable us to search database with regular expressions. regex is case-sensitive where as iregexis case-insensitive.

Django - check for null in database

Varghese Chacko 1 year, 2 months ago

isnull

In django, the NULL valuein the database field is tested with field lookup isnull It takes either True or False, which correspond to SQL queries of IS NULL and IS NOT NULL, respectively.

Django field lookup - contains and icontains

Varghese Chacko 1 year, 2 months ago

Field lookups are how we specify the conditions in the WHERE clause of an SQL. They are specified as keyword arguments for QuerySet methodslike filter(), exclude() and get().

Django field lookup - exact and iexact

Varghese Chacko 1 year, 2 months ago

Field lookups are how we specify the conditions in the WHERE clause of an SQL. They are specified as keyword arguments for QuerySet methodslikefilter(), exclude() and get().

Django-Compress compressJs/CSS of your application forbetter performance of...

Varghese Chacko 1 year, 2 months ago

Django-compress is a Django application that allows us to compress our CSS andJavascript for better performance of the the application. The django compress provides a tag named compress that takes the typr to compress, namely, css and js.  The compressor combines the CSS/JS contained in the tag and save as a single file in static directory. Default location is <STATIC DIRECTORY>/CACHE

Scrum - Practical Agile Methodology

Varghese Chacko 1 year, 2 months ago

Scrum is a most practiced, flexible, iterative, adaptive and effective methodology practiced in Agile development. It is designed to deliver significant values throughout the project development lifecycle. Scrum creates an environment for contineous progress and collective accountability and ensures transparent communication within the team and between the development team and the client.