Sunday, January 19, 2014

Android Layouts

In this blog post, i am documenting at high-level the leanings i had on the Android - Layout Types
  • Linear Layout (Aligns its child elements in single direction one after another)
    • Horizontal Layout
    • Vertical Layout
  • Relative Layout
    • Align's child elements relative to its sibling or parent. Help to avoid nested linear layouts.
  • Frame Layout (Allows child views to put on top of one another child views)
  • Table Layout (Aligns elements in Row & Column format)

More TB typed...

Friday, January 3, 2014

Powershell commands

This post i am documenting some of powershell quick reference scripts

Get Members of a command
c:> get-service | gm

Get-help CMD-NAME
Example:
c:> get-help start-service

Get-process -name "Name"
Example
c:> get-process -name "outlook"

Get Process - physical directory path
PS C:\Windows\system32> get-process outlook | dir

Directory: C:\Program Files (x86)\Microsoft Office\Office14

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---         3/31/2011   4:08 PM   15933792 OUTLOOK.EXE

c:> get-service -filter * | select -Property name, @{name='ComputerName',expression={$_.name}_