Friday, November 11, 2011

Google Sets is Dead! Long Live Google Sets!

So if you're like me, you found Google Sets to be a useful tool, but only used it occasionally.

You recently checked, and it's not been removed! 404! Oh No!

But wait.. it's still usable. Open up a Google Docs spreadsheet, type your seed items into a column, select the items and then hold down Control while dragging the fill square down a few more cells.

Wait a few seconds...

Ahhhhh.

Thursday, September 08, 2011

Fun little project

Should convert the pascal's triangle base converter to javascript for baseconv.html.

Or just implement it from scratch based on this.

Monday, September 05, 2011

Use the Euro for international transactions

The American dollar is a dangerous investment. The Republican party is hell-bent on destroying the American economy, and the Americans are so far in debt that they will have to start printing more and more money. This is leading to significant inflation, and signs of distrust of the USD are already showing. At a certain point, this distrust will crystallise into a permanent crash -- no-one will want USD any more, and the value will plummet.

The Euro is the best alternative. The notes are far more durable, leading to fewer losses. It is already widely traded and accepted. It is much harder to counterfeit.

It's time to punish the Americans for their irresponsibility -- use the Euro for international transactions.

Monday, August 22, 2011

TrollDad

From reddit

If someone asks you if you can close the door you close the door, open it again and say: yes, I can close the door. And walk back to your original position.

This is the kind of shit my dad does all the time.
Another of his favorites is, if someone asks you to move (or move a body part like "Move your arm") just wiggle around instead of actually moving out of the way.

Or the ever classic;
"I feel like a hamburger."
"You don't look like a hamburger."

Related (with my four year old daughter)
"I don't like hamburgers."
"They always say such nice things about you!"

I prefer: "They probably don't like you very much neither."

"Mom, can you make me a sandwich?"
"Well...okay. POOF! You are now a sandwich!"
-My Childhood

Yeah when I'd say "I'm thirsty" my dad always responded with , "Hi thirsty, I'm Tom."

"what's up?" "the roof" ....sigh

My dad's favorite is when I say "I'm bored." "Funny, you don't look like a piece of wood."

Monday, August 15, 2011

Why use factories?

I'd often heard / seen people using factories in programming. I never really understood the point of having a whole new class just for allocating/creating objects.

There is no reason to have only one factory class. The thing I missed is that the usefulness is obvious once you have two: one real one, and one that makes fake objects for testing the code that relies on the created objects. This allows easily injecting test objects into your tangle of production code/logic without changing the production code.

To really make this work, writing really testable code requires that you use a factory to create almost every object, and that factory might make real objects or test ones. This is the thing that requires constant effort / attention.

(You also don't need a different factory for each class. One for short-lived objects and one for long-lived ones is probably enough.)

Monday, August 08, 2011

Useful chrome shortcuts

Ctrl+Shift+I Dev Tools: Network
Ctrl+Shift+C Dev Tools: Inspect Element

Monday, June 27, 2011

Moving out

Weird feeling.

Why are all the good ones taken?

They're good because they're taken. Go train your own.

Wednesday, June 15, 2011

Business ideas

  • Short-range kinect to allow accurate gesture recognition in front of a monitor
  • Software company developing physical simulations

Sunday, June 05, 2011

Steam Update slow?

So I'm installing steam, and the update process the installer goes through is painfully slow. This is because the default server is getting pounded. You can't change which server it uses until it's fully installed.

Other sites advise deleting ClientRegistry.blob; I found that this didn't help. Another solution was to reset your external IP address by resetting your router; this was not possible.

Instead, you can trick Steam into trying different servers by killing its connections. Go get TCPView from the microsoft website and run it. Find the Steam connection to the update server (my Steam.exe had only one connection) and kill it. Steam will create a new connection and try to download from a different server.

You might have to kill the connection a few times before the Steam client finds a fast server. You'll know you've got a fast one when the Rcvd Bytes column starts going up fast -- it should get past 1,000,000 within a few seconds. Slow servers don't get past 10-20,000 within 20 seconds.

Fully installing steam requires downloading more than 90MiB . On the default server, at 10 kB/s, this would take about three hours.

Valve should really fix this. The server choosing/indexing needs a bit of fixing.