Pages

Thursday, August 27, 2015

Thursday, August 20, 2015

Customize installation path of Visual Studio

If the default graphical UI of the installer does not allow for customization of the destination path for installation of Visual Studio, there is still a way to adjust it.
Visual Studio (in this case 2013) installer accepts command-line parameters.
/CustomInstallPath parameter (reference) should help in this case.

Here is another useful utility - TaskKill, which can kill (/im /f) all instances of the installation executable in case it starts multiplying own processes.

Online Training

Here are some links to online training courses:

Friday, August 14, 2015

Use different colours based on the theme

Here is just a quick reference on what is involved when you want to use different colours based on the selected theme in an Android app:
  • In attrs.xml, define an attribute that references an item in a theme. Add a line, i.e.
    name="calculator_button_background" format="reference" />
  • In themes.xml, add the item
    name="calculator_button_background">@color/color_dialog_number_button
  • The colour can be a direct @color or, in this case, can use predefined colour in colors.xml
    name="color_dialog_number_button">#474747
 Then, based on the selected theme, the R.attr.calculator_button_background or ?attr/calculator_button_background will reference the colour defined in themes.xml.

Wednesday, August 12, 2015

Field naming convention for Android Java

Follow Field Naming Conventions

  • Non-public, non-static field names start with m.
  • Static field names start with s.
  • Other fields start with a lower case letter.
  • Public static final fields (constants) are ALL_CAPS_WITH_UNDERSCORES.
More: Code Style Guides

Sunday, August 02, 2015

Disable windows defender in Windows 10

http://www.tenforums.com/antivirus-firewalls-system-security/5879-permanently-disable-windows-defender.html