Wednesday, June 3, 2015

Create Table of Contents using MS word

1. Highlight section you want the link to take you. In this case highlight Test.


2. Go to Insert -> Bookmark-> Create new Bookmark  (Test_one)

3. Now create the Hyperlink in your Table Of Contents page: Test
Go to Insert -> Bookmark-> Create new Hyperlink, enter #Test_one

 

Done. Now when you click on Test below it will take you to the Test paragraph in your document.






Reference:
https://www.youtube.com/watch?v=qg0azAaJaRI

Thursday, May 28, 2015

Android Development**

Work in Progress....
Android Arsenal:
http://android-arsenal.com/

Android Developers Blog:
http://android-developers.blogspot.com/
http://developer.android.com/develop/index.html

Google i/o 2015:
https://events.google.com/io2015/

Google design Guidelines:
http://www.google.com/design/articles/design-from-ios-to-android/

icons:
https://www.google.com/design/icons/

Backend for Android:
https://www.parse.com/
https://www.firebase.com/

Android Security:
https://www.airpair.com/android/posts/adding-tampering-detection-to-your-android-app
https://manifestsecurity.com/android-application-security-part-21/


Android Dev Sumit:
FYI Android Dev Summit Videos are on youtube.
Day two https://www.youtube.com/watch?v=JtdqDvgWGNA

Code samples from the conference:

CodePath Resources:
RecyclerView:
Android UI:

Security Tools:
2. Drozer- 
 Android UI testing w/ espresso:

testing:

Monday, May 11, 2015

Android and Gradle

Gradle: is a build system for Android apps.

First install gradlehttps://gradle.org/downloads/

Info:
Below image shows three directories
1. Vanilla
2. Strawberry
3. Main

Vanilla and Strawberry are the apk build flavors, this both dirctories by default will use the settings from Main folders(java/... ; res/...; AndroidManifest.xml), if we declare this folders inside Vanilla or Strawberry it will override the setting from Main.
Ex:
Change icon for Vanilla apk. You can modified the app icon by adding res directory to the project.


Commands:
run: $chmod +x gradlew

info: $./gradlew -P
Generate APKs: $./gradlew assemble
Generate Taks: $./gradlew tasks 
Install apk build genreated by tasks: $./gradlew installVanillaDebug 

build- generates .apk file, need to configure: $./gradlew build

clean- deletes the generated .apk file: $./gradlew clean

version: $./gradlew -v

Enable the Gradle Daemon:
Via properties file - add org.gradle.daemon=true to GRADLE_USER_HOME»/gradle.properties
Reference:

Thursday, April 9, 2015

Good Resources/Tutorials

Good Readings:
IBM http://securityintelligence.com/mobile-insecurity/#.VSbwmXDF-Xw

Good tutorials:
https://geekytheory.com
http://hackr.io/


Security:
http://builditsecure.ly/
https://androidsecuritywiki.com/
Good Android tutorial:
http://www.learncomputer.com/android-interview-questions/

tools:
http://www.android4devs.com/2014/07/5-tools-every-android-developer-must.html

Gradle:
http://www.techotopia.com/index.php/An_Overview_of_Gradle_in_Android_Studio
https://www.youtube.com/watch?v=g56O_HeefBE
https://gradle.org/getting-started-android/#build-operator
https://gradle.org/docs/current/userguide/tutorial_using_tasks.html


Material Design:
http://www.androidhive.info/2015/04/android-getting-started-with-material-design/

-proguard:
http://developer.android.com/tools/help/proguard.html

-lifecycle:
http://programmerguru.com/android-tutorial/activity-life-cycle/

-sharedata:
http://programmerguru.com/android-tutorial/how-to-send-simple-data-to-other-apps/

-facebook:
https://code.facebook.com/projects/android/
https://newsroom.fb.com/news/2015/04/introducing-hello/
https://www.hackerrank.com

-Interview questions:
http://www.toptal.com/android/interview-questions
http://www.itechaleart.com/2015/02/android-interview-qa.html
good:
http://www.androidinterview.com/android-fragment-tutorial-example/
file:///Users/andres/Downloads/Android%20Interview%20Questions.pdf


Scala:
http://www.scala-lang.org/docu/files/ScalaByExample.pdf

Java:
Big O-
http://bigocheatsheet.com/
http://www.corejavainterviewquestions.com/idiots-guide-big-o/

Java Interview q's:
http://www.programmingsimplified.com/java/source-code/java-program-find-factorial
http://www.newthinktank.com/category/web-design/java-video-tutorial/
https://www.youtube.com/watch?v=M6lYob8STMI
http://www.tutorialspoint.com/java/java_basic_operators.html
http://java2novice.com/java-interview-programs/fibonacci-series/


People Skills:
https://www.linkedin.com/pulse/7-skills-extraordinarily-likable-people-jeff-haden


Work/Family Balance:

Phone Screens:
https://sites.google.com/site/steveyegge2/five-essential-phone-screen-questions


Common Interview questions:
https://www.themuse.com/advice/interview-translation-what-4-common-questions-really-mean

https://www.facebook.com/notes/facebook-engineering/get-that-job-at-facebook/10150964382448920





Wednesday, April 8, 2015

List of useful Linux commands (Work in progress)

Email me if you know other useful/cool commands :)

Command: tree
Displays file structure of directory
Install:
$brew update (first install brew how to Install)
$brew install tree
$tree



Command: >
Saves output of command to a file
$cat device.config > device.txt


Other commands:
ls
cd

vi
:wq
:q!


More commands coming soon :)

Work in Progress...

Wednesday, April 1, 2015

How to recognize USB in VirtualBox. (to use $adb devices)

Today I had an issue using Ubunutu14 with my VirtualBox image, it was not able to recognize when I plugin my android device. When I type $adb devices it didnt appear.

Steps to resolve:
1. You need to install gnome-system-tools
$sudo apt-get install gnome-system-tools

2. Dash home and type: users, select Users and Groups -> Advanced settings


3.  Select: Use VirtualBox virtualization solution

4. Reboot 

5. Now go to your VM and it will recognize the USB and you are able. 
$adb devices , and your device will appear. 




Reference:
http://askubuntu.com/questions/140081/virtualbox-doesnt-recognize-usb

Thursday, March 12, 2015

How to install Python3 with brew(mac)

$brew install python3

You will see below process:
==> Installing dependencies for python3: xz, pkg-config, readline, sqlite, gdbm, openssl
==> Installing python3 dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.2.1.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/xz/5.2.1: 59 files, 1.7M
==> Installing python3 dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.28.yosemite.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.28.yosemite.bottle.2.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.28: 10 files, 612K
==> Installing python3 dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-6.3.8.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring readline-6.3.8.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X provides similar software, and installing this software in
parallel can cause all kinds of trouble.

OS X provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/readline/lib
    CPPFLAGS: -I/usr/local/opt/readline/include

==> Summary
🍺  /usr/local/Cellar/readline/6.3.8: 40 files, 2.1M
==> Installing python3 dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.8.8.3.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.8.8.3.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

OS X provides an older sqlite3.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/sqlite/lib
    CPPFLAGS: -I/usr/local/opt/sqlite/include

==> Summary
🍺  /usr/local/Cellar/sqlite/3.8.8.3: 9 files, 2.1M
==> Installing python3 dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.11.yosemite.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring gdbm-1.11.yosemite.bottle.2.tar.gz
🍺  /usr/local/Cellar/gdbm/1.11: 17 files, 532K
==> Installing python3 dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2.yosemite.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2: 459 files,  18M
==> Installing python3
==> Downloading https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/python3/3.4.3 --enable-ipv6 --datarootdir=/usr/local/Cellar/python3/3.4.3/share --datadir=/u
==> make
==> make install PYTHONAPPSDIR=/usr/local/Cellar/python3/3.4.3
==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python3/3.4.3/share/python3
==> Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-12.2.tar.gz
######################################################################## 100.0%
==> Downloading https://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz
######################################################################## 100.0%
==> Caveats
Pip and setuptools have been installed. To update them
  pip3 install --upgrade pip setuptools

You can install Python packages with
  pip3 install <package>

They will install into the site-package directory
  /usr/local/lib/python3.4/site-packages

See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md

.app bundles were installed.
Run `brew linkapps python3` to symlink these to /Applications.
==> /usr/local/Cellar/python3/3.4.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar
==> /usr/local/Cellar/python3/3.4.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar
==> Summary
🍺  /usr/local/Cellar/python3/3.4.3: 5899 files, 100M, built in 2.7 minutes
Andress-MBP:~ andres$ python
Python 2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> 

Add django:
Andress-MBP:/ andres$ open usr/local/Cellar/python3.4.3
location:
$open /usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4