12 years Ago

Truthiness in Ukraine

Published by marco on in Public Policy & Politics

As you can well imagine, this is an exhaustive topic. Trying to get a handle on it is like drinking from a firehose. My style of research involved a lot of reading, evaluation and collection of interesting tidbits, some of which are contradictory to previous bits. Interesting for me does not mean “believable” or “true” but that it was well-written, intriguing or contributed to my knowledge. This piece will start with an attempt at an overview with some interwoven notes, followed by a lot of... [More]

Instapaper demands permissions

Published by marco on in Technology & Engineering

 I use Instapaper quite heavily for managing the content I read. After I’ve read something, I usually archive it so that I can search it later and I “like” it if I found it interesting.

You can see my archive and likes as RSS feeds, but I was looking for something a little pushier.

I have a Twitter account that I don’t use very much. It currently tweets blog posts from earthli News almost exclusively.

I figured it it might be kind of useful if I could have Instapaper automatically post... [More]

Quino: partially-mapped queries

Published by marco on in Programming

In Quino: an overview of query-mapping in the data driver we took a look at some of the basics of querying data with Quino while maintaining acceptable performance and memory usage.

Now we’ll take a look at what happens with partially-mapped queries. Before explaining what those are, we need a more concrete example to work with. Here’s the most-optimized query we ended up with in the previous article:

var query = Session.GetQuery<Person>();... [More]

13 years Ago

Final Sochi 2014 notes

Published by marco on in Sports

U.S. Olympic Hockey

 Patrick Kane has a sadOh my God, what an ass-kicking. Canada put on a clinic for America and then Finland did the same, with even more success.

Patrick Kane never showed up—he missed again and again and took horrible penalties. His face after his second penalty sums things up nicely for the U.S. (see left).

And the US didn’t even both covering the greatest Olympic goal-scorer ever, warming the hearts of 40+ year-old guys everywhere by letting Teemu score not once, but twice.

Continental... [More]

Podunk City, USA

Published by marco on in Fun

 Surprised cowWhen you grew up in the countryside, you tend to have to prove the extreme rurality of your origin to others who share a similarly bucolic provenance. Should I become embroiled in future such contests of micturial prowess and find myself in trouble, struggling to triumph against a backwoods foe prodigiously well-equipped with a backwoods background that threatens to overshadow my own, I will rest assured that I can break the glass in case of such an emergency to retrieve the following link to... [More]

LESS vs. SASS: Variable semantics

Published by marco on in Programming

I’ve been using CSS since pretty much its inception. It’s powerful but quite low-level and lacks support for DRY. So, I switched to generating CSS with LESS a while back. This has gone quite well and I’ve been pretty happy with it.

Recently, I was converting some older, theme stylesheets for earthli. A theme stylesheet provides no structural CSS, mostly setting text, background and border colors to let users choose the basic color set. This is a perfect candidate for LESS.

So I constructed a... [More]

How to configure Visual Studio 2013 with licenses from a multi-pack

Published by marco on in Tips & Tricks

The following article was originally published on the Encodo blogs and is cross-published here.

If you’re only interesting in what we promised to show you in the title of the article, then you can jump to the tl;dr at the end.

Silver Partnership

Encodo is a member of the Microsoft Partner Program with a Silver Competency. We maintain this competency through a combination of the following:

  • A yearly fee
  • Registration of .NET products developed by Encodo (Punchclock and Quino in our case)... [More]

Olympic hockey; why choose?

Published by marco on in Sports

I shelled out CHF8.– for Zattoo for this month so that I can watch the Olympics on my own schedule. It’s pretty sweet, especially for hockey games.

 USA/Czech Republic & Canada/Latvia

Zattoo keeps a 7-day buffer for over 100 channels. You can actually watch for free, but you don’t get HD and you have to watch extra, Zattoo-specific commercials. The Olympics coverage is remarkably commercial-free, at least on the Swiss (Swiss-German, German, French and Italian) and Austrian channels. The German channels have more... [More]

Olympics 2014 opening ceremony

Published by marco on in Sports

 Belgium Bermuda Lithuania Germany Russia Slovenia Tonga France Ireland Italy Lithuania United States Ukraine

Outfits!

Let’s get the initial unpleasantness with the fashion choices of various countries out of the way at the top. In no particular order—which alphabet would I use?—and leaving out countries with no particular reason, here are my bitchy notes. Some of the nations are pictured on the left but not all.

  • Bermuda: Shorts. Still baggy, red and ill-fitting.
  • Cayman islands: Shorts. How original.
  • Ireland: Army camo-like dark-green. Meh.
  • China: Red, how original
  • Belgium: Look for the all... [More]

Rolling your own languages and frameworks

Published by marco on in Programming

The blog post/article So You Want To Write Your Own Language? by Walter Bright (Dr. Dobbs) contains a lot of interesting information, related to only to parsing, but also to runtime and framework design. Bright is well-known as the designer of the D programming language, so he’s definitely worth a read.

I thought he jumped back and forth between topics a bit, so I summarized the contents for myself below:

Parsing

Bright identifies Minimizing keystrokes, easy parsing and minimizing the number of keywords as false gods.... [More]

Big Business

Published by marco on in Quotes

“As long as politics is the shadow cast on society by big business, the attenuation of the shadow will not change the substance.”
John Dewey

Watching movies made by rapists

Published by marco on in Miscellaneous

What is it worth to wade into a discussion where you are asked to choose a side based on no clear rules of evidence?

I mostly enjoy Woody Allen movies. That he has been with Soon Yi, the adopted daughter of his ex-wife for years doesn’t really weigh on my opinions of his films. I must admit that knowing that Polanski raped a teen-aged girl and fled the country enters into it very little when I’m considering whether to watch one of his movies. Polanski clearly got away with it and wasn’t... [More]

On the nature of addiction

Published by marco on in Science & Nature

Perhaps uncharacteristically, this post will consist mostly of citations of other articles about the nature of addiction. I have relatively little contact with addiction, but the truth of what these ex-users write is evident to anyone of a rational bent who is reasonably informed about the world.

The article Philip Seymour Hoffman is another victim of extremely stupid drug laws by Russell Brand (Guardian) writes,

“People are going to use drugs; no self-respecting drug addict is even remotely deterred by prohibition.”

... [More]

Published by marco on in WebCore

Text-formatting manual updated!

The manual for the earthli text formatter has been updated to include all of the latest tags and attributes. All of the non-trivial tags now have examples, including <pullquote>, <abstract>, footnotes (<fn> and <ft>), <clear>, <anchor> and <hr>.

There are a couple of new tags for showing messages, <info>, <warning> and <error>, examples of which are shown below.

This is an informational message.
This is a warning message.
This is an error message.

Quino: an introduction to query-mapping in the ORM

Published by marco on in Programming

The following article was originally published on the Encodo blogs and is cross-published here.


One of the most-used components of Quino is the ORM. An ORM is an Object-Relational Mapper, which accepts queries and returns data.

  • Applications formulate queries in Quino using application metadata
  • The ORM maps this query to the query language of the target database
  • The ORM transforms the results returned by the database to objects (the classes for which were also generated from application... [More]

The job of a descriptivist linguist

Published by marco on in Quotes

“Yes, there are rules of grammar. It is Coogan’s job (and yours) to try to obey them. And it is my job as a linguist to try and figure out what they are, and to state them precisely. And also to not be a jerk about it: my job as a language user is to forgive Coogan (or you) for any difficulty he (or you) might have in following them in spontaneous speech, and to use my common sense in trying to figure out what he (or you) might have meant.”
Everything he was in he raised the quality by Geoffrey K. Pullum (Language Log)

Super Bowl XLVIII (Euro edition)

Published by marco on in Sports

 The Super Bowl takes place way too late on a school night for all but the most ardent fans on this side of the pond. This is not to say that there are no such fans over here. The Germans and British both had full coverage, with the British channel Film4 having gotten Terrel Davis and Mike Carlson to assist the Scottish announcer Colin Murray, who started off slowly but got steadily more hilarious as the game unfolded into a slaughter of Denver by Seattle. There were plenty of people willing to... [More]

Generating JSON from Dart object graphs

Published by marco on in Programming

 A while back, I participated in an evaluation of languages that could replace JavaScript for our web front-end development language at Encodo. We took a look at two contenders: Dart and TypeScript. At the time, Dart was weaker for the following reasons:

  • It had not yet been released
  • It had little to no tool support
  • Integration with existing JS libraries was somewhat laborious

Though TypeScript has its weaknesses (it has technically not yet hit a 1.0 release), we eventually decided to go in... [More]

The Ruby language: where you can randomize your base class

Published by marco on in Programming

 I have never really examined Ruby in detail but it seems to be even more of a treasure-trove of ad-hoc features than PHP.

It takes full advantage of being evaluated at run-time to offer features that I haven’t seen in even other dynamic languages. Some of these features seem like they might be nice shortcuts but also seem like they would be difficult to optimize. Not only that, but they seem so obscure that they would likely will trip up even more seasoned users of the language.

At any rate,... [More]

Setting up the Lenovo T440p Laptop

Published by marco on in Technology & Engineering

I recently got a new laptop and ran into a few issues while setting it up for work. There’s a tl;dr at the end for the impatient.

Lenovo has finally spruced up their lineup of laptops with a series that features:

  • An actually usable and large touchpad
  • A decent and relatively sensibly laid-out keyboard
  • Very long battery life (between 6-9 hours, depending on use)
  • Low-power Haswell processor
  • 14-inch full-HD (1920x1080)
  • Dual graphics cards
  • Relatively light at 2.1kg
  • Relatively small/thin... [More]

Is Fukushima radiation polluting the entire Pacific Ocean?

Published by marco on in Science & Nature

Take a deep breath. Step back. Does that sound plausible? Is the mighty power of the atom, harnessed by decades-old technology, likely to be able to effect such mighty change?

Because the Pacific Ocean is huge. Like, really gigantic. It has 16 times as much surface area as the entire United States of America. Hell, there’s a Pacific Garbage Patch whose estimated size is about the surface area of the US of A and we can barely even tell it’s there.

The article True facts about Ocean Radiation... [More] by Kim Martini (Deep Sea News)

WEF (World Economic Forum) Panel

Published by marco on in Finance & Economy

The panel from the World Economic Forum on Saturday ended at 16:45 GMT+1. SRF Info was streaming it live in Switzerland in English and I caught the tail end of one of the panels. The discussion included Schäuble from Germany, Christine LaGarde (president of the IMF) and the presidents of the banks of Japan, England (who seems to be American?) and India as well as the president of Blackrock (an investment company) and was moderated by Martin Wolf of the Financial Times.

They discussed the... [More]

Cursing: for when you really hate something

Published by marco on in Miscellaneous

There are things that make us mad in this world. There are various release mechanisms for this. A common—and very effective—one is to curse.

But sometimes the thing about which we need to curse is so terrible, so skull-fuc&$kingly bad that you have to invent new curses for it. And sometimes, you have to invent entirely new technologies and possible futures in order to envision a situation bad enough to engender the creation of a language that would include language severe enough to... [More]

Police stories from the trenches

Published by marco on in Public Policy & Politics

The first rule of policing

The post Dallas Cops Fight For the First Rule of Policing by Scott H. Greenfield (Simple Justice) defines that rule as “make it home for dinner”. No matter what else is going on that day or how a given situation develops, the first rule is self-preservation. Everything else—including gunned-down innocents—can be handled later and usually papered over with the help of others, both on the force and on the bench.

This post discusses a shooting incident in Dallas, in which a 48-year–old officer was,... [More]

The constitutional professor

Published by marco on in Public Policy & Politics

Cartoonist Ted Rall published the following cartoon at the end of 2013:

 On Sec. 107(a) of the NDAA

The first couple of panels document the most recent transgressions that the Obama administration has made under the auspices of the NDAA—the National Defense Authorization Act. These include sweeping away constitutionally guaranteed rights in a manner breathtaking even for citizens who survived eight years of the Bush/Cheney administration.

The final panel shows a soldier wondering how this can be, while another... [More]

The Internet will consume you

Published by marco on in Fun

The following screenshot of the post What is an example of a “useless/worthless PhD” or its opposite? by Mathbosss (Reddit) presents a prime example of how the Internet actively works to consume your every waking moment.

 Screenshot of a /r/math post

I found the conversation quite interesting and somewhat humorous and was sorely tempted to continue. Fortitude intervened.

TrueCrypt: yet another organically grown user interface

Published by marco on in Technology & Engineering

I use TrueCrypt at work to encrypt/protect the volume where I store source code for various customers. It generally works pretty seamlessly and I don’t even notice that I’m working on an encrypted volume.

The other day, Windows started complaining in the Action Center that my drive needed checking because errors had been discovered. At first, I thought that it was referring to my system drive—which is not encrypted—and I rebooted Windows to let it do its thing.

Windows was back up and... [More]

Maybe it’s as bad as they say?

Published by marco on in Public Policy & Politics

Purely out of morbid curiosity, I visited Healthcare.gov to see what’s going on over there. I’d heard so much.

Here are some comments additional to those embedded in the screenshot:

 Home page is decent, if a little careless

  • It did not reject me because I’m browsing from a foreign country. +1
  • It redirected me from www.healthcare.gov to healthcare.gov. Canonical name is the short one. +1
  • It loaded quickly. +1
  • It’s pretty light on graphics. +1
  • There are way too many fonts and font sizes. –1
  • Stop using small-caps for anything other... [More]

Deliberate vs. Accidental Terrorism

Published by marco on in Philosophy, Sociology, & Culture

It matters quite a lot whether an act of destruction was deliberate.

If someone takes credit for such an act, the act is denounced and it is immediately decided that we must do everything in our power to prevent its repetition.

When the perpetrators are known but deny responsibility, we enter a gray zone, which can be whitewashed by clout and connections and money.

When planes are flown into towers, killing about 3000 people, it is terrorism. When chemicals are spilled on Bhopal, killing... [More]