Senger CodeLab 🚀

: All Posts

How to do parallel programming in Python

How to do parallel programming in Python

For C we can use OpenMP to do parallel programming however OpenMP will not work for Python What should I do if I want to parallel some parts of my python

Read more →

How to drop all tables in a SQL Server database

How to drop all tables in a SQL Server database

Im trying to write a script that will completely empty a SQL Server database This is what I have so far USE dbname GO EXEC spmsforeachtable ALTER TABLE NOCHECK

Read more →

How to echo with different colors in the Windows command line

How to echo with different colors in the Windows command line

I know that the color bf command sets the colors of the whole command line window but I wanted to to print one single line in a different

Read more →

How to find which promises are unhandled in Nodejs UnhandledPromiseRejectionWarning

How to find which promises are unhandled in Nodejs UnhandledPromiseRejectionWarning

Nodejs from version 7 has asyncawait syntactic sugar for handling promises and now in my code the following warning comes up quite often node11057

Read more →

How to get the changes on a branch in Git

How to get the changes on a branch in Git

What is the best way to get a log of commits on a branch since the time it was branched from the current branch My solution so far is git log git mergebase

Read more →

How to go to a specified filecharacterbyte position in vim

How to go to a specified filecharacterbyte position in vim

Im getting an error message from a python script at position 21490 How can I go to this position in

Read more →

How to list all databases in the mongo shell

How to list all databases in the mongo shell

I know how to list all collections in a particular database but how do I list all available databases in MongoDB

Read more →

How to make PowerShell tab completion work like Bash

How to make PowerShell tab completion work like Bash

Lets say I have the following files in my current directory buildBarbat buildFoobat buildHousebat And I type the following at my command prompt bu and then TAB

Read more →

How to pass prepareForSegue an object

How to pass prepareForSegue an object

I have many annotations in a mapview with rightCalloutAccessory buttons The button will perform a segue from this mapview to a tableview I want to pass the

Read more →