17 Posts Tagged "Cows"

/img/rss.pngRSS Feed for "Cows" Tag

Blog source code released

* This page is related to "Clojure 1, PHP 0".

By popular demand, I've released the source code for my blog. Hope someone finds it useful.

http://github.com/briancarper/cow-blog/tree/master

Feedback and bug reports welcome, email me or post them somewhere on my blog and I'll find them.

Clojure

cow-blog

The source code for the blog you're reading right now.

http://github.com/briancarper/cow-blog/tree/master

clj-crud

SQL Database CRUD operations for Clojure.

http://github.com/briancarper/clj-crud/tree/master

clj-qt4-mailtray

A system tray app to check your email and notify you of new messages.

http://github.com/briancarper/clj-qt4-mailtray/tree/master

Mandelbrot Set in Swing

http://briancarper.net/clojure/mandelbrot-swing.clj

Sample pictures:

These were colored via GIMP, because I cheated. Make good wallpapers.

Mandelbrot Set in ASCII

http://briancarper.net/clojure/mandelbrot.clj

Darn you, spammers.

* This page is related to "Clojure 1, PHP 0".

I was in a rush to get this darn blog finally done, so I threw some stupid anti-spam measures on here. Namely, the comment form included 20 textareas, 19 of which were display: hidden and one of which was randomly the right one, and any text in the hidden ones would cause the comment posting to fail.

It only took a spam bot 48 hours to figure this out, I guess, because the last hour I've been hammered. So I implemented a CAPTCHA as another short-term holdover until I can code up something good. At least it immediately stopped this spam bot whose crap I've been deleting for the past hour.

Hopefully this isn't too intrusive. I think it fits the site fairly well, as you will probably agree once you see it.

About Me

Me

Hi, I'm Brian. This blog is a place to write about things I find interesting. That will generally be programming and Linux. I am not an expert programmer but I am a very enthusiastic one.

Now let's do this bullet style.

Bullet Style!

  • Location: BC, Canada.
  • Marital status: Married. Sorry to disappoint.
  • Occupation: Code Monkey Cow.
  • Religion: No thanks.
  • Operating system: Gentoo Linux.
  • Text Editor: Vim. Emacs is acceptable in an emergency.
  • Programming language: I write Ruby for a living. I write Lisp for fun.
  • Aspirations: To be a better programmer. To learn everything about everything.
  • Music preference: German or Japanese preferred. Loud and fast.
  • Own a wallet made of duct tape: Yes.
  • Email: brian... at briancarper... dot... net!.

Me Elsewhere

My Other Websites

About Cows

Cows are domestic ungulate mammals of the species Bos primigenius. For more information, please consult your local library.

White text? Black text? Cow text?

I took a screenshot of my blog and went into Gimp and did Colors => Invert and thus a new blog layout was born. I also brought back the purple/green one. You can change it via the little skin-selector drop-down thing that's hopefully showing up and working properly for everyone. Skin selection is courtesy of a WP plugin; that site is not in English, but the instructions in the download are, if you want to use it yourself.

Black text on white vs. white text on black... the age-old question. My Vim theme has forever been a black background (ps_color to be specific). Even in broad daylight I find that a black background reduces eye strain considerably. Or maybe it's all in my mind, but then again this is a subjective sort of thing, so whatever's in my mind is all that really matters isn't it?

It's notoriously difficult to use a dark-background GTK/QT theme. Too many programs are written with the assumption that your theme is going to be light backgrounded. However thanks to Kore and a few tweaks here and there I've been getting along pretty well for a few months with a dark theme in KDE. I really need to start posting desktop screenshots more often again. Note to self.

So what's up with the cows? Cows are big, dumb, silly beasts. They can represent strength, or embody vulnerability. They're so disgusting that it somehow wraps around again to awesome.

Are cows really dumb though? Does their silent cud-chewing indicate stupidity, or thoughtfulness? Are cows really silly? Or do we project our own latent silliness onto them? Cows thus embody some of the deepest philosophical questions man has ever dared to ask.

Not really. I've been told by various people that I have the kind of sense of humor where it's impossible to tell whether I'm joking or being serious. Sometimes even I can't tell whether I'm joking or not. I love walking that line. Cows are partly a joke that I never get tired of telling, but also they really do make me smile. Cows are a way to have fun with this website. I view my website almost as a sort of parody of a blog, but a parody I still take seriously in a way. I believe it was Friedrich Nietzsche who said:

If you look long enough into the cow, the cow begins to look back through you.

The internet does not have to be serious business, and I don't want my website (or my opinions) to be taken as seriously as many people seem to want to. My secret hope is that whenever someone comes on here to flame me about my opinions, they'll look up and see a cow in a fedora and say "Wait a second... what am I doing?"

Also Gentoo's mascot is a cow. I estimate that the cows on my website increase its overall performance by 14%.

New blog layout (now with more cows)

"OK, what's up with the cows?", you might ask. Actually no one ever has asked. So I'm not saying.

I'm experimenting a bit with a new blog layout. It's black text on white rather than my customary white text on black/grey. I drew the cow in the top right using Inkscape. (Inkscape is such a wonderful program. So easy to use. )

I put this layout together from scratch in exactly 4 hours (not counting cow-drawing time). Just goes to show how easy it is to make Wordpress themes I guess.

I've gone from a sort of three-column layout to a one-column layout. This is partly / largely because I post source code snippets, and I need the full width of the screen for those.

Source code should generally go into PRE tags to preserve whitespace. However that usually has the side effect of preventing text from line-wrapping. In many blogs with multi-column layouts, source code snippets overrun into the sidebar area, and either end up being hidden under the sidebar (thus unreadable), overflow over top of the sidebar (thus looking messy), or if you're lucky, the PRE element itself is side-scrollable like a mini frame (which is kind of annoying). In a one-column layout, I get to use the full width of the screen, which is much nicer in my opinion.

The other reason I like one-column is that the sidebar columns in a multi-column layout invariably have just a few links at the top, and then you have a 200-pixel wide column of blank space all the way down the page to the bottom. It's a bit of a waste. This layout on the other hand is still fairly readable even if I resize Firefox to 400 pixels wide.

Do users really USE most of the links webmasters put into their sidebars? If people want to look at my archives, they can probably go to an archives page. It seems almost absurd how much we try to cater to people's whims and impatience by loading up websites (and computer interfaces in general) with every single thing anyone might want to do on every single page. It ends up looking cluttered and most of those links are probably unused the vast majority of the time. I wish I know how many times anyone ever used the tag cloud I had displayed in my sidebar for so long.

If anyone has any suggestions about things that would make this layout easier to read or use, or if you loathe the new layout (or love it, I guess that's a slim possibility) feel free to leave me a scathing comment. I've tested it in Firefox 2 / 3, IE7, Opera and Konqueror. IE6 can die in a fire.

Wordpress theme download (Cow 1.0)

I put my old Wordpress theme up for download as requested. Enjoy. I think.

Wordpress - Cow

* This page is related to "Themes".

Updated cows

I've read that good website layouts evolve slowly over time, and it's better to change and improve the layout you've already got rather than redo the whole thing from scratch. Probably sage advice. I tweaked my layout a bit to take more advantage of a bunch of empty space where nothing much was happening, and also to add more cow. My girlfriend drew me a cow silhouette for my blog layout. (By the way, when your girlfriend is willing to take the time to draw you a cow graphic for your blog layout, you know it's true love. <3) I used a sort of cliche'ed "reflective" effect, thanks to the GIMP, but such is life. I couldn't think of anything better to put up there, and this may be the first time it's ever been used on a purple cow, so maybe I'm breaking new ground.

I think there is a science to certain aspects of layout design. For example should you have your links underlined or not? It's likely that many people (especially people who've been using the internet for a long time) associate underlined text in webpages with links. Having links that aren't underlined may slip people's notice; on the other hand, having text underlined that isn't a link may make people click around on non-links before they notice. It may only break someone's concentration for a split second, but sometimes that can still be annoying, especially if it happens lots of times. To that end I try to make all my links underlined, and nothing else. An exception is that category cloud thing on the right, because I figure people are probably smart enough to figure out to click there, and the underlines cluttered it so much that it was hard to read. In reality I have no idea what I'm talking about, but these kind of things probably matter.

To my amazement, someone actually expressed interest in my putting this layout up for others to download, so I plan to once I remove all the places I've hard-coded the thing to work with my website. It's not the prettiest code in the world, but PHP never is.

I've said it many times, and I'll never stop saying it: you simple can't go wrong with cow-based web page layouts.

Layout

I finished my new layout, for some sufficiently small value of "finished". I went really minimalistic with a hint of cow. Lack of cow was the real problem with my last layout.