Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.

icon.linkedin.jpgicon.twitter.jpg

  • Subscribe to this RSS Feed
  • Possible Remediation for Stagefright Android Vulnerability
    07/27/2015 9:56AM

    By now, everyone is aware of the Stagefright vulnerability in Android.  It isn't as much the name of the vulnerability but a media player library used in Android.

    It seems that one of the ways to remediate the vulnerability is to configure your text messaging application to NOT auto-retrieve Multimedia messages (MMS).  On my phone that is under the Advanced Settings, "Auto-retrieve Automatically retrieve messages".

    The other thing that I did was disable Google Hangouts.  I don't use it on my phone anyway so I probably should have turned it off to begin with.

    If anyone has any other ideas, or corrections to this post, please contact me and I will update it.  (I am in the process of openning up the blog to comments).

  • Hadoop Cluster Sizing Wizard by Hortonworks
    07/13/2015 1:36PM

    Anyone who does any Hadoop development or systems engineering arrives at the "how should I size my cluster" question.

    Hortonworks has a very nice cluster sizing calculator that takes into account the basic use-cases and data profile to help get you started with your hardware requirements.

  • Generate a Randome String of a Specified Size with a Shell Script
    06/24/2015 12:48PM

    The following is a one-liner for generating a random string of a fixed size in bash, where the possible characters to use in the string are any digit, letter, and a newline.

    By adding the newline, you are fairly sure to prevent getting one long line of text.

    $ < /dev/urandom tr -dc "[:digit:][:alpha:][\n]" | head -c1000 > file.out

  • Connecting To a Test Kitchen Instance Via SFTP, SSH, or SCP
    06/23/2015 5:25PM

    If you are using Chef and Test Kitchen to test your cookbooks you may have need to connect to the Test Kitchen VM in some other fashion other than $ kitchen login instance-name.

    To do so:

    Do a $ kitchen list to see the running vms

    $ kitchen list
    Instance                      Driver   Provisioner  Verifier  Transport  Last Action
    default-centos-66             Vagrant  ChefSolo     Busser    Ssh        Converged

    Then look in the .kitchen directory from where you ran your $ kitchen command and look for the corresponding .yml config file for the vm

    $ ls .kitchen
    default-centos-66.yml  kitchen-vagrant  logs

    Inside the .yml file for the vm is the path to the ssh key

    $ more .kitchen/default-centos-66.yml
    ---
    hostname: 127.0.0.1
    port: '2222'
    username: vagrant
    ssh_key: "/home/rchapin/.vagrant.d/insecure_private_key"
    last_action: converge

    With that, just use the -i argument to point to the identity file and sftp to the box

    sftp -P 2222 -i /home/rchapin/.vagrant.d/insecure_private_key vagrant@127.0.0.1

  • Setting the Compiler Version for Maven from the Command Line
    06/18/2015 10:42AM

    By default maven sets the compiler version for you.  Of course, you can always set it in the pom, but there are cases where you cannot modify the pom, and/or you might want to test compilation and tests with different versions of java.

    Following are the specific arguments to pass the compiler version to maven from the command line:

    $ mvn clean install -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7

Advanced Search

Categories

Archives