Category Archives: Other

Other

Adding Infiniband to my Bitcoin Mining Cluster for HPC Tasks (Part 1 – Overview)

I now have a cluster with InfiniBand network hardware in my garage. This is my bitcoin mining cluster that I’ve had running for a few years. Last summer I upgraded the CPUs from the cheapest available (Sempron 140s) to something faster but compatible with the same motherboards (Phenom II X4 975 BEs) so that I could run simulations for work, but I ran into scaling issues using 100 Mb/s Ethernet. At that point I got a cheap TrendNet gigabit switch and switched the cluster over to that, and I was able to scale across 2-3 machines (8-12 cores), but after that things really started to slow down.

I’m happy to report that with the InfiniBand hooked up as of yesterday I can now scale across all 6 IB-equipped compute nodes with approximately linear scaling. Unfortunately the older single-data-rate (SDR) hardware I got for ‘cheap’ from eBay didn’t produce the kind of dramatic reductions in latency I expected compared to gigabit Ethernet. I expect for that I’ll really need to upgrade to QDR IB at some point, but I’ll also probably want faster machines at that point. Total cost for the IB upgrade (24-port Cisco Topspin switch $350, 7 Mellanox HCAs for $39.90/ea – $279.30, 7 CX4 cables with latch connectors at $16.00/ea – $112.00) was $741.30. I intend to add some posts later with more details of the setup, as I know there some interest out there in setting up cheap IB hardware at home.

AR-15 Magazine Block on Defcad

I am building an AR-15 from a stripped lower receiver, and had read that it is good to have a vise block to hold the lower in place while installing parts. Rather than buy one, I was going to 3D print a magazine to use for this purpose. However, I was happy to see that defcad.org as a vise block ready to print. I’m warming up the printer now.

Password-protected VNC access to Macs from Linux with more than 8 character passwords

The Vinagre VNC viewer included in GNOME on Linux does not currently allow more than 8 characters in a password due to historical limitations of the VNC protocol.

Apple has somehow (and I don’t pretend to understand this) extended the protocol to use both a username and a password, including passwords longer than 8 characters.

Someone provided a patch to the Vinagre project to fix this over six months ago, but they blew it off. I went ahead and patched the source and rebuilt the package on my x86_64 Debian Wheezy/Sid system. You can download it from here, and go pester the developers to accept the patch in mainline.

Why Credit Cards are Good (alternate title: Why Debit Cards are Bad)

I am a reader of the comic “Templar, AZ” (sometimes NSFW), and a one-time reader of “The Tightwad Gazette”, so when I found out that Templar, AZ artist and author Iron Spike (whose actual name I do not know) wrote a comic with another artist on how to live well but thriftily, I was all about that.

It was funded through a Kickstarter campaign well before I ever heard of it, but just yesterday the PDF went up for sale for $5, so I snagged myself a copy.

I find myself agreeing with much of the book, but a little diatribe against credit cards at the beginning really put me off. I know this has been hashed and rehashed, but credit cards are not inherently evil. If you can’t control yourself with a credit card in hand, fine, don’t use a regular credit card. The spendthrift character in the book objects by saying something like, “But, how can I buy stuff online without a credit card?”, and the penny-wise protagonist assures her that she can use her debit card instead.

This is a very, very bad idea.

Imagine this scenario: your credit or debit card (or account info) is stolen. Someone goes on a spending spree, buying $1000 worth of prepaid phone cards before the fraudulent activity gets shut down one way or another. How would this go with credit vs. debit cards?

Credit: Notify company of fraud (if they didn’t call you first, as they usually do these days). Sign a sheet of paper saying you didn’t make the charges. Get a new card. Done.

Debit: Notify bank of fraud. Probably sign a sheet of paper as above (never had my debit card / number stolen, because I DON’T USE IT), wait for the bank to put the money back into your account.

Now, it’s one thing if your debit card and checking account only had a small portion of your money on/in them. However, if you had a lot in there, you could be without a big, important chunk of your money for a long time, assuming you ever get it back. This happened to a friend of mine in grad school, and it took her I think 1-2 months to get her money back. Thousands of dollars. Just don’t do it.

If you really, really can’t trust yourself to use a regular credit card with restraint and pay it in full every month, get a secured credit card (where you load money onto the card and then spend it), or if you must use a debit card, make sure it’s well segregated from the bulk of your money. Keep it in a different bank from your savings. In fact, you should probably have another checking account as well, just open a checking account specifically for the use of that debit card.

Please stop using debit cards. The banks love them because they get merchant fees. They love them so much that most banks now charge you extra for a plain old ATM card instead of a debit card. But don’t fall for it. Use cash, use credit cards, us prepaid or secured cards, or segregate your debit card in its own bank. But don’t just go using your debit card attached to your main bank account.

The book also decries the use of credit cards as an emergency buffer. An ‘emergency’ credit card with a $20+k limit and a negotiated low interest rate in addition to your emergency savings fund could be a huge lifesaver in a major, expensive emergency, and help you build credit to get lower interest rates on, say, a mortgage. Really that’s another topic entirely, though.

End rant.

EDIT: Key point – most people think of credit cards as reasonably secure. In practice, not really. Thousands of credit (and debit!) card numbers are stolen every day, if not every hour. The whole system (at least the way the USA does it and the way most merchants seem to run their security) is full of holes like swiss cheese. Would you rather go putting your debit card number (linked to your checking account) out there, or your credit card number?