Alternative to ui-grid(doesn’t support angular2/4)

I was researching this recently, since I have an application that I used ui-grid on, and may be upgrading to angular 2 soon. I’ve found… Angular Datatables https://l-lin.github.io/angular-datatables/#/getting-started ag-Grid which has a free version https://www.ag-grid.com/

How to change background color in android app

You need to use the android:background property , eg Also you need to add a value for white in the strings.xml Edit : 18th Nov 2012 The first two letters of an 8 letter color code provide the alpha value, if you are using the html 6 letter color notation the color is opaque. Eg … Read more

How do I set a variable to the output of a command in Bash?

In addition to backticks `command`, command substitution can be done with $(command) or “$(command)”, which I find easier to read, and allows for nesting. Quoting (“) does matter to preserve multi-line variable values; it is optional on the right-hand side of an assignment, as word splitting is not performed, so OUTPUT=$(ls -1) would work fine.

Arduino sprintf float not formatting

Due to some performance reasons %f is not included in the Arduino’s implementation of sprintf(). A better option would be to use dtostrf() – you convert the floating point value to a C-style string, Method signature looks like: Use this method to convert it to a C-Style string and then use sprintf, eg: You can change the minimum width and … Read more

Insert some string into given string at given index in Python

An important point that often bites new Python programmers but the other posters haven’t made explicit is that strings in Python are immutable — you can’t ever modify them in place. You need to retrain yourself when working with strings in Python so that instead of thinking, “How can I modify this string?” instead you’re thinking “how … Read more

window.variableName

window.variableName means that the variable is being declared at the global scope. This means any JS code will have access to this variable. Using window. is not necessary but is frequently used as a convention to denote that a variable is global. Globals are generally to be avoided. You should define variables within the scope of functions.

Compare 2 directories in windows

For Windows you can use this solution. Here’s the right way to do it, without the external downloads. It looks like a lot at first, but once you’ve done it, it’s very easy.It works in all Windows versions from 7 back to 95. For our example assume that you’re comparing two directories named ‘A’ and ‘B’. … Read more