SSL sucks

I swear every time I start going down the SSL path I get similar errors and never remember what they mean. Trying to get my app talking to qpid broker using the JMS client.


Caused by: javax.net.ssl.SSLException: Received fatal alert: bad_certificate
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1630) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1598) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1767) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1063) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:887) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:761) ~[na:1.7.0_55]
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) ~[na:1.7.0_55]
at org.apache.qpid.transport.network.security.ssl.SSLReceiver.received(SSLReceiver.java:102) ~[qpid-common-0.22.jar:na]
... 3 common frames omitted

Phone scam

Just received a call from 1-202-456-7890 (notice the increasing numbers) telling me that I’ve been selected by the “government” for a $9,000 grant. It is only given to those citizens that pay their taxes on time, no bankruptcies, etc. Apparently I can use this money for whatever I want home repair, buy a new car, etc. EXCEPT for gambling. I can receive this money in one of two ways either a bank account (savings, checking, money market) or a “plastic account” that is credit card, debit card, etc. I asked if this money was subject to income tax, they said NO (yeah right), then I asked to have a certified check mailed to a PO Box. They said it can only be sent via bank or plastic account. The “government” has not authorized payment via check.

At this point I grew tired of his bulls**t and said that I’m going to report them to the FTC, FBI and FCC. Do not call my number anymore. After I hung up I called the number to see if it was indeed a fake one, and sure enough “you’ve reached a non-working number”.

So if you get a Washington, DC or any call asking for information, don’t give it to them. It is fun playing along though :)

The FTC already has this scam in various forms:

http://www.consumer.ftc.gov/articles/0113-government-grant-scamshttp://www.consumer.ftc.gov/blog/another-chapter-free-grant-fictionhttp://www.consumer.ftc.gov/search/site/grant

Eclipse you suck!

I’ve spent several hours trying to get the Android Developer Toolkit version of eclipse to run on Fedora 20. It’s constantly keeps dying with a segfault and libsoup.

[13899.331278] java[15520]: segfault at 0 ip 0000003929c70061 sp 00007fb66bd4df40 error 4 in libsoup-2.4.so.1.7.0[3929c00000+a8000]

I’ve tried all the workarounds on the net which suggest to make it use mozilla, so far no luck.

-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib64/xulrunner/

I even deleted my $HOME/.eclipse, that didn’t work. I switched to a new workspace specifically for ADT. Again didn’t help, still constantly dies.

UGH! Piece of Garbage. And to Ajay, no IntelliJ comments :)

tmux window name

Here’s how I got my tmux windows to be named ‘short hostname:working directory’.

Create a bash function in your $HOME/.bashrc.

settitle ()
{
    # only run this in tmux
    case "$TERM" in
        screen*)
            # get hostname without FQDN
            H=`hostname -s`
            # get current directory without the full path
            D=`basename $PWD`
            # set title of tmux/screen window
            printf "33k$H:$D33\\"
            ;;
    esac
}

Then call settitle from your PS1 prompt variable:

PS1="...(settitle)\$ "

Here is my current prompt:

PS1="[\u@\h \W\$(git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/{\1}/')]\$(settitle)\$ "