Transparent ARGB hex value

Transparency is controlled by the alpha channel (AA in #AARRGGBB). Maximal value (255 dec, FF hex) means fully opaque. Minimum value (0 dec, 00 hex) means fully transparent. Values in between are semi-transparent, i.e. the color is mixed with the background color. To get a fully transparent color set the alpha to zero. RR, GG and BB are irrelevant in this case … Read more

numpy max vs amax vs maximum

np.max is just an alias for np.amax. This function only works on a single input array and finds the value of maximum element in that entire array (returning a scalar). Alternatively, it takes an axis argument and will find the maximum value along an axis of the input array (returning a new array). The default behaviour of np.maximum is to take two arrays and compute … Read more

Relative imports in Python 3

It’s quite common to have a layout like this… …with a mymodule.py like this… …a myothermodule.py like this… …and a main.py like this… …which works fine when you run main.py or mypackage/mymodule.py, but fails with mypackage/myothermodule.py, due to the relative import… The way you’re supposed to run it is… …but it’s somewhat verbose, and doesn’t mix well with a shebang line like #!/usr/bin/env python3. The simplest … Read more

What is the difference between git push origin and git push origin master

The default action of git push and git push origin has changed since git version 1.7.11: Before 1.7.11, git push by default pushes all branches that also exist remotely with the same name. Since 1.7.11, git push by default pushes the current branch to a remote branch with the same name. Before and after version 1.7.11, the default behavior can be configured with the push.default configuration option. This configuration option has … Read more

How to properly use jsPDF library

you can use pdf from html as follows, Step 1: Add the following script to the header or download locally Step 2: Add HTML script to execute jsPDF code Customize this to pass the identifier or just change #content to be the identifier you need. Step 3: Add your body content

How to view Plugin Manager in Notepad++

s of Notepad++ version 7.5, plugin manager is no longer shipped with Notepad++ From the Notepad++ release notes: You may notice that Plugin Manager plugin has been removed from the official distribution. The reason is Plugin Manager contains the advertising in its dialog. I hate Ads in applications, and I ensure you that there was no, … Read more

http://localhost/phpMyAdmin/ unable to connect

AMPP by default uses http://localhost/phpmyadmin It also requires you start both Apache and MySQL from the control panel (or as a service). In the XAMPP Control Panel, clicking [ Admin ] on the MySQL line will open your default browser at the configured URL for the phpMyAdmin application. If you get a phpMyAdmin error stating “Cannot … Read more