Be Better – Benjamin Franklin’s List of Virtues

  1. Temperance —Eat not to dullness; drink not to elevation.
  2. Silence —Speak not but what may benefit others or yourself; avoid trifling conversation.
  3. Order —Let all your things have their places; let each part of your business have its time.
  4. Resolution —Resolve to perform what you ought; perform without fail what you resolve.
  5. Frugality —Make no expense but to do good to others or yourself; i.e., waste nothing.
  6. Industry —Lose no time; be always employed in something useful; cut off all unnecessary actions.
  7. Sincerity —Use no hurtful deceit; think innocently and justly, and, if you speak, speak accordingly.
  8. Justice —Wrong none by doing injuries, or omitting the benefits that are your duty.
  9. Moderation —Avoid extremes; forbear resenting injuries so much as you think they deserve.
  10. Cleanliness —Tolerate no uncleanliness in body, clothes, or habitation.
  11. Tranquility —Be not disturbed at trifles, or at accidents common or unavoidable.
  12. Chastity —Rarely use venery but for health or offspring, never to dullness, weakness, or the injury of your own or another’s peace or reputation
  13. Humility —Imitate Jesus and Socrates.
Posted in Information, Men's Health, Writings | 2 Comments

Auto mount WebDAV drive in fstab (Debian/Ubuntu Linux) (Hetzner Storagebox)

This is easier than you think.

Be sure to install davfs:
sudo apt-get install davfs2

The Configuration File

Edit /etc/fstab like so.:

Now you’ll need to edit your /etc/davfs/secrets file and add a line in the section marked # Credential Line like so:

Et, voila.

Posted in Computer Science, General Computing, Tips and Tricks, Tutorials, Writings | Leave a comment

The Second Essential Habit – Daily Exercise

Your body is your brain. It may not seem like that, but from a computer perspective, it doesn’t much matter the processor if you have a hard drive with low I/O speeds, No RAM, fuzzy monitor, and a keyboard missing important keys, like the forward slash.

The mind and the body form a system, not to mention the fact that your “gut” is sometimes called your “Second Brain.”

Your overall health in non-brain areas affects your brain, your mood, your motivation. The number one cause of procrastination is: Feeling like crap.

The second essential habit to studying is having an exercise routine that gives you a nice shot of mood enhancing endorphins.

Mood improvement immediately after a single bout of exercise is well documented, but less is known about successive and longer term effects. … However, exercise seemed to have a much greater effect on positive than on negative moods. The favorable moods induced by each class seemed to have worn off by the following week, to be reinstated by the class itself. In the Callanetics class, positive mood also improved significantly over time. The Callanetics class involved “slower,” more demanding exercises, not always done to music. The Callanetics and Advanced classes also showed significantly greater preexercise negative moods in the first three sessions. However, these differences disappeared following exercise.

Generally speaking, daily exercise for 7-10 minutes is really all you need to keep fit and get the benefits.

Here is a list of what I do:

  1. Bicep Curls
  2. Shoulder Press
  3. Bench Press
  4. Push Ups
  5. Air Squats
  6. Lateral Raises
  7. Arnold Presses

I also do a small yoga routine first, but that’s to taste. If you are up for it, I strongly suggest you add some yoga preparation into your workout routine to stretch out and get your blood flowing.

Posted in Information | Leave a comment

Braintree – No Acceptable Use or The Puritan Processor

Now I’ve mentioned Braintree Payments a few times as the measuring stick against which all CC processing APIs should be considered. It’s a company I’ve wanted to work with for so long, just because I hate all of the existing payment gateway APIs. Finally a client came along who needed a replacement for the insanely Nazi-esque Paypal. Paypal by the way is a company that I hate, with a passion.

So I hop on over to Braintree Payments and what do I see, a Paypal Company. What the hell? That’s right, they sold out, but not just to any company, but the one company in the whole world that I hate with the fire of a thousand suns: Paypal.

Oh well, I imagine they just got bought by Paypal, so I decide to shoot them an email to see if they can help me with my client, selling legal goods online (just the kind of legal goods that Paypal will freeze your account over.)

I get a nice reply from a sales rep who directs me to their Acceptable Use Policy. Words fail me. Do they process any transactions at all?!?

It’s like they decided to decline to process transactions for 90% of the fucking internet. No Porn. No Age Restricted Services. No telecommunications equipment? No drug paraphernalia? Like t-shirts? Pipes? Because those are legal, it’s just the drugs that aren’t. And in some places, Mary-J is legal.

Essay Mills? I can only guess they mean those sites that sell college/university level essays? Umm, yeah…

Was this fucking list written by John Calvin or Martin Luther? What the hell. While I can understand not wanting to process transactions for things that are Illegal, that’s to be expected. But many of the things this company won’t process are simply immoral, by Christian Standards (not mine actually.)

What a disappointment, what a shame. Puritanism is alive Online, and it’s seat of power is the credit card processors. Whatever are us dirt merchants, vice ridden purveyors of sin, going to do…

Such a shame really.

Posted in Computer Science, Reviews and Rants, Topics, Writings | Leave a comment

Moving to Go-lang: The little language that can…can

A year or so ago I tinkered with Go, a language created and promoted by google. I liked it, but I just didn’t have any project to use it with, so it didn’t go anywhere.

Now I’ve been seriously considering updating my website with a more custom solution. I love wordpress and all, but it can be a really pain in the ass sometimes. Then I had an idea, why don’t I do my website in Go. That will give me a project to learn Go with.

So I’ve been reading the docs, looking at source code, and I gotta say. Some of the ideas of Go just seem right. Go looks like a scripting language (it’s not the prettiest), but it compiles. Not only that, but the developers of Go have made some decisions that remove common irritations. Like formatting code. Everyone has an opinion, but Go tosses that shit out the door and says: Not fucking here. I like that. The formatting of Go appears to be, to a large extent, a part of the language. It’s not so strictly enforced, but because Go can compile its own AST, the go fmt tool can reformat someone elses code to the established standard. This leads to one of the many great ideas with Go, go fix. When API changes are made, the go tool chain can help you update your code, looking for common patterns and rewriting them in place for you, or printing an error when the code is too complicated.

To me that’s a great idea.

Apparently more people are using Go every day, and its shaping up to be the little language that can. To me it feels like Go has the potential to unseat Java, which is a language I wouldn’t mind seeing die.

I don’t really like that it’s a Google product. Google is evil, they are like Weyland Utani, and I live in constant fear of them unleashing some kind of hellish Xenomorph at one of their Google Talks. That aside, in the modern day, I don’t really think a traditional small open source language could be competitive. Without Googles backing, and testing, no one would adopt.

There are some features missing from Go for sure, it’s not a complete swiss army knife. It’s not C++. But then again, do we really need so much C++? I get the feeling that 70-80% of all programs written in C++ didn’t actually have to be.

I hate C++ with a passion, it took C and made it ridiculously over complicated. And ugly.

Go is also ugly. But it’s the kind of ugly that grows on you as you read it. You start to even think that, as ugly as Go may be, it has a really good personality, and it’s actually quite fun to hang around with. It may not be as pretty as Ruby, or as flexible as C++, but it feels like the better of both of them. Just cute enough when the lights are low, and when it’s time to get hot and heavy, Go can do some serious acrobatics.

I really need to knock it off with the innuendos…

Posted in Computer Science, Programming Language Design, Reviews and Rants, Topics, Web Design, Writings | Leave a comment