A mind that is stretched by a new experience can never go back to its old dimensions.

Do Not invest in Lending Club

July 23rd, 2018 Posted in general | No Comments »

If ever you thought that peer-to-peer lending is a good way to make money, trust me, it is not. I’ve lost a few thousand dollars with Lending Club, and am having a hell of a time getting my remaining cash out of LC.

This is what my current statement looks like. Insane amounts of fees, failed recovery attempts from borrowers, and overall disappointment. I chose a high-risk portfolio and accepted that, but never expected to lose so much and still pay such ‘investor fees’.

Vagrant VMware Fusion plugin hasn’t been verified

April 20th, 2018 Posted in geek out | No Comments »

We use Vagrant at work, with the vagrant-vmware-fusion plugin to hook up VMWare Fusion as the hypervisor on MacOS X. It generally works pretty well, but has been causing me some issues recently.

 

raj$ vagrant up
Your license to use ‘vagrant-vmware-fusion’ hasn’t been verified in
months. We’ll attempt to verify it now. This requires an internet
connection. If the verification fails, you’ll need to connect to the
internet. If verification continues to fail, please contact support
at support@hashicorp.com

Solution:

raj$ vagrant plugin uninstall vagrant-vmware-fusion
Uninstalling the ‘vagrant-vmware-fusion’ plugin…
Successfully uninstalled vagrant-vmware-fusion-4.0.24
raj$ vagrant plugin install vagrant-vmware-fusion
Installing the ‘vagrant-vmware-fusion’ plugin. This can take a few minutes…
Fetching: vagrant-vmware-fusion-5.0.4.gem (100%)
Building native extensions. This could take a while…

Vagrant is installing the VMware plugin which requires
root access. You may be prompted for your password to
complete setup.

Password:
Installed the plugin ‘vagrant-vmware-fusion (5.0.4)’!
raj$ vagrant up
Your license to use ‘vagrant-vmware-fusion’ hasn’t been verified in
months. We’ll attempt to verify it now. This requires an internet
connection. If the verification fails, you’ll need to connect to the
internet. If verification continues to fail, please contact support
at support@hashicorp.com
Verification successful. Please use Vagrant while connected to the
internet from time to time so Vagrant can keep your license verified.
Bringing machine ‘default’ up with ‘vmware_fusion’ provider…

Find out who’s hacking into your EC2 instance with Flow Logs

September 15th, 2017 Posted in geek out | No Comments »

A cool video:

and article about how to find out what’s connecting to your EC2 instance:

https://www.piasoftware.net/single-post/2017/09/04/Who-is-breaking-into-your-EC2-instance

How to find your Verizon FIOS Email Address

March 14th, 2017 Posted in geek out | No Comments »

I had to find my Verizon FIOS Email address so that my Synology NAS’ can send out notification email.

Finding the generic SMTP settings was fairly easy with the help of Google:
https://www.verizon.com/support/residential/announcements/general-announcements01.htm

But what the heck is my actual address?!?! it’s not my Verizon login name, tried that and failed.

I cannot believe I had to go through this stupidity, but here are the steps I went through to discover my Verizon Email address. None of the documents or web services showed the actual address.
1. Log in to “My Verizon” at https://www.verizon.com/foryourhome/myaccount/pr/dashboard/details .

2. Click the link that says “Your Email”

3. Send an email to your gmail address.

Total idiocy, right?

My username is ‘rqbanXXX’ to log into the site, but my email address is vze1elXXXX@verizon.net . Why don’t they give us the option to choose an intelligible username?

RVM, Rails, AWS, and ‘error was SSL_connect returned=1’ on OSX

November 20th, 2016 Posted in geek out | No Comments »

Failed to login, error was SSL_connect returned=1 errno=0 state=error: certificate verify failed

I have a rails application with the following versions:

$ rvm -v
rvm 1.27.0 (latest) by Wayne E. Seguin , Michal Papis [https://rvm.io/]

$ ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]

$ gem list rails
*** LOCAL GEMS ***
..
rails (5.0.0.1)

$ gem list aws
*** LOCAL GEMS ***
aws-sdk (2.6.19)
aws-sdk-core (2.6.19)
aws-sdk-resources (2.6.19)

While running my Rails app and making my first actual service call to AWS, I get:
log_groups = cloudwatch.describe_log_groups
ERROR:
Seahorse::Client::NetworkingError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):

SOLUTION:
Successful Solution:
The cert linked through OpenSSL’s distro wasn’t matching what AWS uses for it’s API endpoints. This fixes it:


require 'aws-sdk'
require 'aws-sdk-core'

Aws.use_bundled_cert! <---- THAT'S THE FUCKING MAGIC RIGHT THERE
creds = Aws::Credentials.new(@access_key, @secret_key)
cloudwatch_client = Aws::CloudWatchLogs::Client.new(region: session[:default_region], credentials: creds)

Failed Solution #1:
I tried RVM’s Suggested Solution, but it failed without a good answer:
$ rvm osx-ssl-certs update all
Updating certificates for /System/Library/OpenSSL/cert.pem: Updating certificates in '/System/Library/OpenSSL/cert.pem'.
tee: /System/Library/OpenSSL/cert.pem: Operation not permitted
Failed.
Updating certificates for /etc/openssl/cert.pem: Already up to date.
Updating certificates for /usr/local/etc/openssl/cert.pem: Already up to date.

There is nothing in /System/Library/OpenSSL/cert.pem , and I cannot even edit the file if i sudo, so I gave up on that solution.

Failed Solution #2:
Actually, this partially worked but would not work in production. The cert linked through OpenSSL’s distro wasn’t matching what AWS uses for it’s API endpoints.

I got AWS’s certificate bundle from:
https://raw.githubusercontent.com/aws/aws-sdk-ruby/master/aws-sdk-core/ca-bundle.crt

require 'aws-sdk'
require 'aws-sdk-core'
Aws.config[:ssl_ca_bundle] = "/full_path_to_my_app/vendor/assets/ca-bundle.crt"
creds = Aws::Credentials.new(@access_key, @secret_key)
cloudwatch = Aws::CloudWatchLogs::Client.new(region: session[:default_region], credentials: creds)

30 countries… need some more

March 24th, 2016 Posted in travel | No Comments »

raj’s Travel Map

raj has been to: Bahamas, Canada, Switzerland, People’s Republic of China, Colombia, Costa Rica, Czech Republic, Germany, United Kingdom, Greece, Hungary, Ireland, India, Italy, Japan, Cambodia, Saint Martin, Mexico, Netherlands, Poland, Portugal, Senegal, Sint Maarten, Thailand, Turkey, United States, Vatican, British Virgin Islands, U.S. Virgin Islands, South Africa.
Get your own travel map from Matador Network.