Skip to main content

Posts

How to get a US visa with a baby in the Philippines

My wife already has a multiple entry US visa. I want to get one for myself and our baby (11 months old).   My parent company in the US also invited me for a training so we aimed for a B1/B2 visa. I hope my notes below can help. TIP #1 : Smile, look people in the eye when you are talking, make your voice loud and authoritative. BE HONEST! My schedule is 7:15 AM (I noticed Consuls are in very good mood first thing in the morning). Arrived at ~6:45AM, immediately went to the entrance. Still made to line a very short line before the 7AM line. I was given the E card (i think because of the baby). First guard check: make sure you comply (bring only documents) Filed using an envelope filer and labelled with Post-it or something so you can quickly retrieve With baby: diaper, wipes, burp cloth You can buy water and food inside. Made to wait in the waiting area after the 7AM line. This waiting area is not air-conditioned and it is VERY HUMID so wear clothes that can breath. ...

How to detect Macbook open and close lid

I find this useful when tracing the time I spent in the computer or when I opened/closed my computer. Find when you opened the lid: $ tail -n 1000 /var/log/system.log | grep "Wake reason: EC.LidOpen (User)" Replace 1000 with the number of lines you wish to backtrack system.log might have already logrotated. gunzip if the past logs are already rotated: $ ls /var/log/system.log* Example: $ gunzip /var/log/system.log.0.gz Find when you closed the lid: $ tail -n 1000 /var/log/system.log | grep "messageType = 0xE0000280" Example line: Nov  1 15:37:07 My-MacBook-Pro kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280

Globe's HOOQ.TV an (unethical) scam!!

After being terribly disappointed with the subscription stage and after also after a very disappointing test drive (at least Netflix tries to be do-no-evil), I am now very disappointed with the un-subscription of HOOQ.tv with Globe. Globe sends me a message: Hi! We'd like to remind you that your free HOOQ will end in 7 days on 10/27/2015. Upon expiry, your subscription will auto-renew to the paid version for P149 per month. If you don't want the paid version, text HOOQ STOP to 8888. before the expiry date. Thank you! I send the HOOQ STOP to 888 and received: Sorry, you have entered an invalid keyword. Please make sure your keyword is correct with no extra characters and spaces. For more info on promos, dial *143#, FREE from your Globe/TM mobile phone. I called Globe Support (211). Here's the scam: - GoSurf 999 comes with the HOOQ Free Plan - After the Free HOOQ Plan (which you did not use because it sucks) expires, it will auto-renew without your consent (!!! UNETHI...

DO NOT USE my-shoppingbox.com (SCAM!!!)

This was an incident last November / December 2014. Yes it is the Black Friday Sale but who is not anticipating it. First the weighting system. For some reason they push it to that extra 0.something of a pound so you pay for the whole pound. It is clearly a scam! Second the filing system. It took them about 23 days just to record in their system that you have received a package. First you should receive a notification from the merchant where you bought the item that they failed to receive the item. This is from USPS: We're writing about the order(s) (#xxx).  USPS attempted to deliver your package but was unable to leave the package unattended. In order to make arrangements for redelivery or pickup at your local Post Office, please visit  USPS Redelivery  and use the package tracking number xxx.  If the package was attempted to be delivered to a business location that was closed during the time of the delivery attempt, USPS will automatically attempt to redel...

aircrack-ng (rt2x00 Mac80211 Linux wireless stack) in Ubuntu Trusty 14.04 (14.0.4.1) LTS

Ubuntu is actually installed in a Virtualbox virtual machine on Mac OS X Yosemite 10.10 (10.10.2). Before proceeding read the important intro below from  http://www.aircrack-ng.org/doku.php?id=cracking_wpa#introduction Install aircrack-ng suite. $ sudo apt-get install aircrack-ng It should install and provide the following. # dpkg -s aircrack-ng Package: aircrack-ng Status: install ok installed Priority: optional Section: net Installed-Size: 2167 Maintainer: Ubuntu Developers Architecture: amd64 Version: 1:1.1-6 Depends: libc6 (>= 2.15), libgcrypt11 (>= 1.4.5), libsqlite3-0 (>= 3.5.9), zlib1g (>= 1:1.1.4), wireless-tools, iw Recommends: wget Description: wireless WEP/WPA cracking utilities  aircrack-ng is an 802.11a/b/g WEP/WPA cracking program that can recover a  40-bit, 104-bit, 256-bit or 512-bit WEP key once enough encrypted packets  have been gathered. Also it can attack WPA1/2 networks with some advanced ...

Use Private Internet Access (PIA) in DigitalOcean

tags: PrivateInternetAccess, Digital Ocean, VPS, VPN This runs the PIA VPN using OpenVPN all from the command line. sudo apt-get install openvpn network-manager- openvpn Not sure if you need  network-manager- openvpn . sudo wget https://www.privateinternetaccess.com/openvpn/openvpn.zip Extract. Move ca.crt and crl.pem to /etc/openvpn Move "Hong Kong.ovpn" to "/etc/openvpn/Hong Kong.config" for example. Modified the following lines. auth-user-pass /etc/openvpn/login.conf route-up /etc/openvpn/route-up.sh These are the contents of these files. # cat /etc/openvpn/login.conf username password Replace with your username and password. # cat route-up.sh  #!/bin/bash ip route flush table 100 ip route flush cache ip rule add from x.x.x.x table 100 ip route add table 100 to y.y.y.y/y dev ethX ip route add table 100 default via z.z.z.z Replace x.x.x.x with your public IP address, y.y.y.y/y with your subnet. Compute using http://...

Error when installing Zenoss in Centos 6 Docker image

This happens when using auto-deploy installation ( hint ). # ./core-autodeploy.sh The error happens in  https://gist.github.com/fortran01/e6eb87c87fa8bb7aa3eb/ebdcce749b366c6cf97346f0411e91dd114a61d4#file-zenoss-core-autodeploy-ec817e6_core-autodeploy-sh-L261-L265  when the zenoss service is started. Zenoss not initialized. Performing first-boot initialization... Fresh install pre steps Checking RRDtool version >= 1.4.7: [FAIL] Missing. Error: rrdtool is not in the search path. Please confirm that RRDtool (version >= 1.4.7) is installed. It can be verified that rrdtool is already installed. # rrdtool --version RRDtool 1.4.7 Copyright 1997-2012 by Tobias Oetiker Compiled Apr 5 2012 17:36:08 The routine that checks for rrdtool is in /opt/zenoss/bin/install-functions.sh. Look for confirm_rrd(). It uses the command `which` that is not installed by default in the Centos 6 docker image. # yum install which -y Loaded plugins: fastestmirror Sett...

Reset or fixing display settings in Mac OS X 10.10 (Yosemite) for external display LG 22LS2100

For some reason after the Yosemite installation when I tried to change the Display Settings to "Best for Display" resolution font smoothing just went crazy. I tried to do the following without any effect. Forcing RGB mode  - I did the workaround suggested by the author (taken from a commenter) Changing Font Smoothing Settings in Yosemite The workaround involves creating a new user and re-logging in to that new user. I know this is painful but for me this is a quick workaround because the old user is disposable for me. In the new user I notice that the Display Settings resolution is scaled but it does not indicate which scale it used. The BIG NOTE is not to use auto-scale resolution this time in the new user.

Mac OS X - rackspace-novaclient - UserWarning: Unknown distribution option: 'pbr'

Faulty install logs below. $ sudo pip install rackspace-novaclient --verbose Downloading/unpacking rackspace-novaclient   Running setup.py egg_info for package rackspace-novaclient     running egg_info     writing requirements to pip-egg-info/rackspace_novaclient.egg-info/requires.txt     writing pip-egg-info/rackspace_novaclient.egg-info/PKG-INFO     writing top-level names to pip-egg-info/rackspace_novaclient.egg-info/top_level.txt     writing dependency_links to pip-egg-info/rackspace_novaclient.egg-info/dependency_links.txt     warning: manifest_maker: standard file '-c' not found     reading manifest file 'pip-egg-info/rackspace_novaclient.egg-info/SOURCES.txt'     writing manifest file 'pip-egg-info/rackspace_novaclient.egg-info/SOURCES.txt' Downloading/unpacking python-novaclient (from rackspace-novaclient)   Running setup.py egg_info for package python-novaclient     /System/...

Eclipse AWS Toolkit error Missing requirement: IdentityManagement

Error when installing Eclipse AWS Toolkit: Cannot complete the install because one or more required items could not be found. Software currently installed: AWS Toolkit for Eclipse Core 2.0.1.v201305021159 (com.amazonaws.eclipse.core.feature.feature.group 2.0.1.v201305021159) Missing requirement: IdentityManagement 1.0.0.v201305021159 (com.amazonaws.eclipse.identitymanagement 1.0.0.v201305021159) requires 'bundle com.amazonaws.eclipse.ec2 1.1.0' but it could not be found Cannot satisfy dependency: From: AWS Toolkit for Eclipse Core 2.0.1.v201305021159 (com.amazonaws.eclipse.core.feature.feature.group 2.0.1.v201305021159) To: com.amazonaws.eclipse.identitymanagement [1.0.0.v201305021159] Resolution: Install EC2 Management first to get IdentityManagement.

Google Apps migration for Microsoft Exchange - ERROR: invalid source server or invalid user ids

The first few lines of the log file contain: 2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!GetOutlookExePath @ 24 ()> Failed with 0x80070002, last successful line = 17. 2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!GetOutlookVersion @ 255 ()> Failed with 0x80070002, last successful line = 247. 2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!GetOfficeRegistryBase @ 356 ()> Failed with 0x80070002, last successful line = 354. 2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!ResourceStrings::GetOutlookLanguage @ 89 ()> Failed with 0x80070002, last successful line = 76. Configuration: Exe name: C:\Program Files (x86)\Google\Google Apps Migration\ExchangeMigration.exe Install Microsoft Outlook (trial should also work).

Zenoss and splunk python issues

FIX: Add `unset PYTHONPATH` in splunk boot script (e.g. /etc/init.d/splunk) root@zenoss:/opt/splunk/bin# ./splunk start Splunk> Take the sh out of IT. Checking prerequisites... Checking http port [8000]: open Checking mgmt port [8089]: open Checking configuration... *** glibc detected *** python: free(): invalid pointer: 0x09c26100 *** ======= Backtrace: ========= /lib/tls/i686/nosegneg/libc.so.6(+0x6c321)[0xb76cf321] /lib/tls/i686/nosegneg/libc.so.6(+0x6db78)[0xb76d0b78] /lib/tls/i686/nosegneg/libc.so.6(cfree+0x6d)[0xb76d3c9d] python[0x80ae4d0] /usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0x4a2f)[0xb6fc9a2f] /usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0xb881)[0xb6fd0881] /usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0xd348)[0xb6fd2348] /usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0x118d7)[0xb6fd68d7] /usr/local/z...

Authorization error with API user knife initialization `knife configure -i`

Notice these errors. First error shows the API user of knife (root) failed to authenticate: # knife client list WARN: HTTP Request Returned 401 Unauthorized: Failed to authenticate! /usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 401 "Unauthorized" (Net::HTTPServerException) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:217:in `api_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:268:in `retriable_rest_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:198:in `api_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:101:in `get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/api_client.rb:185:in `list' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/knife/client_list.rb:35:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/application/knife.rb:115:in `run' from /usr/lib/ruby/gems/1.8/...