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

Friday, July 24, 2015

Visual Studio 2015 keyboard shortcuts

Visual Studio 2015 and Visual Studio Code

While Visual Studio 2015 is the next product version in the line, Visual Studio Code is a surprise. Fast start, MarkDown preview, syntaxt highlighting and intellisense. Seems like a great text editor. Currently in preview version and free.

Downloads

Monday, July 13, 2015

Disable annoying Tools panel in new Adobe Acrobat DC

Somebody clever at Adobe forums has found an easy way to disable the annoying Tools panel in the new Acrobat Reader. The product, btw, is now called Adobe Acrobat DC and offers some neat cloud integration so that you can see your documents across different devices. This probably means that any file you open goes to the cloud so beware when opening confidential documents.

The solution, in brief, is:
Go to the install directory, i.e." C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroApp\ENU". Create a new subfolder (I used "Disabled"). Move 3 files from the "ENU" folder into the new "Disabled" folder: AppCenter_R.aapp & Home.aapp & Viewer.aapp. Open a PDF and no more Tool Pane!  I originally moved just the "Viewer" file but if you clicked on "Home" or "Tools" on the toolbar you couldn't go back to the "Document." Moving all 3 files takes care of that issue.
Link

On a positive note, the new Reader is very fast when opening documents and is a welcome upgrade to the previous version.
Android version, on the other hand, takes a bit longer to start.