Category Archives : Uncategorized

G. K. Chesterton Quotes for Orthodxy

Nothing more strangely indicates an enormous and silent evil of modern society that the extraordinary use which is made nowadays of the word “orthodox.” In former days the heretic was proud of not being a heretic. It was the kingdoms of the world and the police and the judges who were heretics. He was orthodox. He had no pride in having rebelled against them;t they had rebelled against him. The word “heresy” not only means no longer being wrong; it practically means being clear-headed and courageous. The word “orthodoxy” not only no longer means being right; it practically means being wrong. … people care less for whether they are philosophically right. For obviously a man ought to confess himself crazy before he confesses himself heretical. The Bohemian, with a red tie, ought to pique himself on his orthodoxy. The dynamiter, laying a bomb, ought to feel that, whatever else he is, at least he is orthodox. We are more and more to discuss details in art, politics, literature. A man’s opinion on tramcars matters; his opinion on Botticelli matters; his opinion on all things does not matter. He may turn over and explore a million objects, but he must not find that strange object, the universe; for if he does he will have a religion, and be lost. Everything matters — except everything. At any innocent tea-table we may easily hear a many say, “Life is not worth living.” We regard it as we regard the statement that it is a fine day; nobody things […]

Lexical Analysis: You should use FLEX…right?

It’s been a hobby of mine for that last few years to try to create my own programming language. Don’t ask why, I just want to. Over the years I have tried and failed multiple times. This is mainly due to the fact that I am a self taught programmer with no CS background, or Math background, or any real education. When you set out to learn how one makes a programming language you will receive a series of answers similar to this: Use flex to generate a lexical analyzer. Use Bison to generate a Parser Forget both of those and use ANTLR To understand what you need to do to create a programming language, you will need to understand that in general all programming languages have a set of modules that take turns with the users input (i.e. the script). The Lexer The Lexer, or Scanner is the first component of a programming language. It reads a stream of characters and groups them together into meaningful parts. The Lexer adds no semantic meaning to the stream. Lexers create “meaningful” tokens. They generally, but not always, do not create whitespace tokens, they “ignore” them in the sense that they do not lead to the emission of a token, but they “use” them to delineate tokens. Flex has a simple interface for creating a lexer, a simple Scanner will look like this: If we save that as test.y and run: flex test.y cc lex.yy.c -o example -lfl ./example We can then start entering in some text. […]

Jay n’ Mike’s Rules of Acquisition

My programming partner and I have been working for quite some time on some large projects, and we have come up with a basic list of rules that apply to startup computer businesses, from software development to software sales. You have to pay – Nothing in life is free, someone is always paying for it, in time, energy, and or money.  Never-Ever do anything for free, because when it’s free, you’re the one paying for it. That doesn’t mean you have to charge money for things, there are many forms of currency, favors, endorsements, contributions, and forgiveness for mistakes and lateness are all ways of getting compensated for going the extra mile. No funny stuff- This is also what we call Jay n’ Mike’s Razor, similar to Occam’s Razor, where the simplest solution is usually the correct one, this rule states that the simplest and most direct route to a solution is the most maintainable, stable, and testable. Arcane, convoluted, esoteric systems are a hassle. This applies to development as well as business.This rule is akin to the KISS principle, keep it simple stupid, but is more precise in its application, that is, it is not so much about keeping it simple, somethings just can’t be made simpler than they are, it’s about keeping things explicit. While the No funny stuff rule may seem simple and obvious, there are some important conflicts, for instance, while some meta-programming is permitted, it almost always violates the No funny stuff rule. Some optimizations in code, like managing several […]

Never Again! Backing up your rails .sqlite3 dbs

Well, with mysql, it’s pretty hard to overwrite your dbs, but with sqlite, it’s real easy. I did this, luckily I only lost about a days worth of work, but nevertheless, I have instituted a new rule for sqlite3 dbs: Hourly backups. Here’s the script: #!/bin/sh D=`date +%H` cp -f /var/www/app/db/production.sqlite3 /var/www/fapp/db/production.sqlite3.bak.$D

Editable eBay Item Template 10

This is an editable template, using jQuery, that produces customized versions of an eBay auction item template. I didn’t do the original design, I simply converted it from a table to div based layout, and fixed the spacing and css, then added in the necessary javascript to make it editable. The template hooks into a filemanaging backend in PHP so the templates can be saved and reloaded.

Philatelic ROR Website

Philatelic Website Design and Hosting

This website has been an ongoing project for sometime. It features highslide.js on the frontend for that cool image popup functionality. On the backend, all items can be managed via webforms, or via excel .csv uploads/downloads. It integrates with eBay FileExchange, and produces printable code39 Barcodes for all of the items.