My Best Teaching Is One-on-One

一対一が僕のベスト

Of course, I team teach and do special lessons, etc.

当然、先生方と共同レッスンも、特別レッスンの指導もします。

But my best work in the classroom is after the lesson is over --
going one-on-one,
helping individual students with their assignments.

しかし、僕の一番意味あると思っている仕事は、講義が終わってから、
一対一と
個人的にその課題の勉強を応援することです。

It's kind of like with computer programs, walking the client through hands-on.
The job isn't really done until the customer is using the program.

まあ、コンピュータプログラムにすると、得意先の方に出来上がった製品を体験させるようなことと思います。
役に立たない製品はまだ製品になっていないと同様です。

Saturday, April 21, 2012

APIs and mathematical languages (not an allegory)

(Copying and editing something I posted to groklaw:)

Went in to the other room to make my daughter's bed with this thought ringing in my head:

An API is an abstact language for commanding the abstract machine that is the program. And pretty soon copyrights look like patents and physical machines look like abstract machines, and the bases of property law disappear in a puff of smoke as everything becomes a metaphysical tangle of maths.

But let's fix that.

An automaton is an abstract mathematical machine. Some automata are models of real-world machines. Models of real-world machines vary in the degree to which they match the thing being modeled.

In theory, a really good model could be substituted for the actual real-world machine.

Programs are models of real-world machines and processes. When they work well, they are the poster children of the above principle, that a model can be substituted for the real thing.

(This is probably one of the primary sources of the illusion of software patents -- When we see a programmed model functioning as if it were a real machine, it's hard to that the program itself is an abstract model, and it's hard to understand that the thing which renders it a real machine is the combination of the CPU and the run-time model, oh! Deity, where is the termination condition for the recursion here?)

An abstract mathematical machine is equivalent to a mathematical language. Well, to a language plus the semantic mappings of the elements, by the time we humans finish interpreting the machine.

A mathematical language consists of vocabulary and grammar. (Natural languages differ from mathematical languages in that both vocabulary and grammar are fluid. In mathematical languages, The vocabulary and the grammar are fixed.)

A computer program is (the implementation of) a mathematical language, plus the semantics. This includes both (compilers for) programming languages and the programs written in those languages.

For instance, in the case of a program to add two numbers, the numbers are vocabulary, as is the addition command. The sequences in which the numbers and the command may be entered is the grammar. The semantic of this simple machine is the function of addition, and is somewhat independent of the language itself.

(There is a corollary to the principle of linguistics, that words have no inherent meaning, here.)

The language doesn't care about the output other than that the output shows (recognizes) whether the combination of vocabulary and grammar was valid or not.

In the functional (mathematical) model of this example, the numbers and the addition instruction are inputs, the addition operation, or transform, is (part of) the semantics, and the sum is the output.

An API is a set of inputs and validation rules for those input, with a specification of the expected operation or transform. Ergo, it is an abstract description of the language recognized by the abstract machine (ergo, the model) and its semantics.

In many cases, the API of real programs is not fully rendered in human readable form, thus the expression, "The code is the documentation." (Okay, in most cases, actually.) This is similar to the specifications of a physical machine not usually being fully exhaustive (especially in terms of error, failure, and other exceptional conditions).

We'd usually rather just get on with using the machine, you see.

So, when you dig down this far, you suddenly see all the frayed edges of all sorts of social artifacts, including the legal bases of property, itself. (Oh, nuts. Let's just get real and quote the preacher: "Vanity, vanity, all is vanity, and there is nothing new under the sun.")

The architects of the Constitution and the original laws about patent and copyright understood the above, and that's why there was not supposed to be any intellectual property under the US Constitution. We post-moderns, excited with our actual implementations of maths in machines, have lost sight of the forest for the trees.

Computers! Computers! We have our Computers, and we have no need of any further reality! (And we wonder why it is never really satisfying.)

If we get rid of the boundaries between real property and the somewhat intangible temporary liens on pieces of the market which copyright, patent, and trademark were intended to be, we find ourselves eroding the very principle of law.

And we shortly find ourselves without any protection left against either tyranny or the anarchy which tyranny hides.

(This came together better than it has in the past, I guess I'm going to copy this here and edit it a bit and then try to refine it a bit on my defining computers blog. Not yet for the refining part, though, I have a deadline hanging over me on a "real" job.)

Wednesday, April 11, 2012

pwning pieces of the mind

When we start talking about "intellectual property", we need to make sure that everyone knows what we are talking about.

That means we need to make sure we are not talking in implicit oxymoron, such as when one party to the conversation misunderstands how far property rights can extend.

It is quite possible to temporarily own mindshare, or to be the primary public agent of a meme. That's usually the purpose of modern advertising, unfortunately.

That's not what intellectual property is all about, although some people seem to be confused and thinking in that direction. That's not the only error, but it is one that you should check:

Are you wanting a patent or copyright on something the other guy is not going to be able to get out of his mind?

This is similar to having a patent (in the old sense) on tobacco or coffee or some other pseudo-staple. Or tea. (In case you missed the reference, I'm referring to the Boston Tea Party.)

US-Americans should remember where that kind of commercial behavior leads.

It should be obvious that one cannot own what is in another person's mind in the same way as one can own a home and rent it out to another person.

Sure, you can call the police and take things to court and stuff, but you can't prove that the other guys is thinking the "owned" property, and you can't be sure that he is not. That means you end up hanging real punishments on a person's word.

There is no surer way to pervert a lot of people's intent to be honest than to force them to choose between going to jail and lying about their thoughts. Sure, some serious fanatics would choose jail to declare publicly that their thoughts will not be coerced. Some others might choose jail for the free lunch.

But the population at large will ultimately choose duplicity in such a situation. That means, if you attempt to control thoughts by law, the law works against itself. Unless you are so cynical as to be trying to destroy the law by such tricks, that would be counter to your purpose.

That is one of the fundamental reasons for governments to acknowledge and respect freedom of thought. To do otherwise is to be self-destructive, and governments should not be programming themselves to self-destruct.

So, when we talk about intellectual property, we don't want to talk about thought control, okay? We don't want to talk about it in any hidden way, either.

Intellectual property needs to be re-named. The subject is material that takes intellectual effort to produce, but it is not but it is the effort, not the subject, that is intellectual. A more relevant appellation would be "intangible", but "intangible property" as a term seems to have been rejected. (Possibly because those who want to claim this stuff as property recognize that it would get them far less sympathy.)

Moreover, it is neither the effort nor the product of the effort that is the property. What we call intellectual property is a lien against a piece of the market commons. It is a temporary right to control production and/or distribution of a physical or literary/artistic product, or the trademark under which the production and distribution activities occurs.

As a property, if it can be bought and sold, it would have to be bought and sold in ways similar to stocks and bonds. But it has one huge difference. It has a built-in termination. (There is a reason for that, and it relates to the freedoms issue above, but I don't want to go there in this rant. In another rant, yes, but not this one.)

(Israel apparently had a built-in termination clause on certain kinds of commercial activities. It was called the Jubilee.)

It is not a property, really, it is a lien. A temporary lien. It's supposed to be that way.

Patents, copyrights, trademarks, all these things that are forced under the false rubric of "intellectual property", each one is separate. They can be combined in effect, but they are separate.

What they have in common is a monopoly principle. They are, indeed, monopolies, and that is one of the reason certain people who don't know how to compete on quality and service in a free market want them to own them.

Unlimited monopolies work against every government that grants them. Not just democracies, not just governments that recognize individual freedom, every government. If you give a person an unlimited patent on roads, it won't be long until that person or his successor in interest is holding the roads as ransom against the government, through the public interest, if not directly.

Likewise any staple food, or any food-like product that can be coerced into staple status. A history book with a copyright of too long a term could be made popular enough among educators to be considered indispensable, and then the printer producing that book has a wedge against the public interest.

If a patented memory circuit can be made part of a standard that gets adopted everywhere, it can be used as a weapon against all other memory manufacturers.

If a common term (like "windows" was a common technical term just a couple of decades ago) is allowed to be trademarked, and the trademark rights are allowed to be asserted in broad ways, the owner of the trademark can use the trademark as a wedge and a club against an entire industry, an evil that extends as far as the trademark can be asserted.

And so forth.

So, let's get this straight. "Intellectual property" is a euphemism for monopoly.

Now, do you still want to argue for making them unlimited?

Monday, April 9, 2012

lottery -- くじ引き

(Started this sometime back in March or April, didn't have time to finish or translate it.

これは先の三月か、四月の頃に書き始めたものですが、ちゃんと終わらせることも訳すことも、時間が足りなかった。)

My wife and children were listening to Doujou Youzo between NHK language programs this morning. He and his new assistant, Megumi, or Kyu-chan, were talking about the US lottery and comparing it to the Japanese lottery.

今朝、家の嫁、子供は道上洋三の番組をNHK 言語番組の隙に聞いていて、道上と新補佐の愛(めぐみ=「きゅうちゃん」)が米国のたからくじを話題にして、日本の宝くじに比べていた。

The biggest Japanese public lottery is for a JPY ¥600,000,000 jackpot. (About USD $7,000,000 at the current exchange rate.) Apparently, a recent jackpot in the US was for $656,000,000 (Mega Millions, how late did they stay up thinking up that name?), split between three people. That would be, what? about $220 million each.

日本の第一大きい籤と言えば、6億円です。(現在の為替で7百万円。)アメリカの最近の大当たりはその百倍に近い6億5千6百万ドルを三人に分けられたたそうです。(「メガミリオンズ」というヤツ。何時まで起きていてそんな名前を考えたかな?)一人当たりおよそ、えぇっと、2億2千万ドルですね。

Hmm. Do they get to decide individually whether to take it lump sum or in monthly payouts?

さて、一括か、月々の方法でいただくのを一人個人で決めれるのでしょう?三人一同で決めなあかんかな?

Lump sum will chew into the total, as will taxes. (Apparently, Japan does not tax their lotteries. At least, the wikipedia articles I read did not mention any taxation.) But, even if they take the lump sum and can't find any shelters to postpone the tax hit, $70 million is not chump change. (English wikipedia article indicates lump sum can cut the total to a third of the published value. Of course, the wikipedia article could be wrong.)

一括なら、最後の金額は減らされるそうです。税金によっても。(ウィキペディアの記事で探したが、もしかして日本のクジは税金かからないかも知らない。はっきりと税金のこと言わないのです。)しかし、一括でもらって減らされて、税金を後回しにするための投資対策が分からなくても、7千万ドルは馬鹿銭ではない。(ウィキペディアの英語の記事によると、一括でもらった場合は記された値の三分の一までに減らされることもある。ウィキペディアは場合によって外れることもあるし。)

How much would monthly payouts be, assuming a 40 year payout? $460,000 a month?  Income tax is going to take a bite of that, too, but that's still gonna be more money in a month than I've earned in the last five years.

月々の場合は、40年にかけて払ってもらうならどれほどになる?一ヶ月46万ドル?それに税金かかるでしょうが、この俺が先ほどの5年間にかけて稼いできた給料を一ヶ月に、一期に上回ることになるでしょう。

Yeah. I succumb to daydreams about that kind of money sometimes. Even now, I could dream about buying my ISP and starting the next big internet thing.

まあ、空想にふけることもある。今すら自分の ISP を買収して、インターネットの次の大ヒットになる運動を開始する夢が見れる。

But when I think seriously about it, there are a number of problems.

だが、真剣に考えることになったら、問題点は多い。

One, money is not value. It is supposed to represent value. Value is something you generate by working an honest job. (Not just realize value, generate it.)

第一、お金は価値に等しくない。価値を代表するはずです。意味ある仕事を正直で働くことによって価値を作り出す。(見出すだけではない。作り出す。)

Lotteries suck the value out of our society just like pyramid investment schemes. Do you buy lottery tickets? Even though lotteries are legal, they are not significantly different in effect from Nigeria 419 schemes.

法に叶ったものにしても、クジはピラミッド型投資計画と同じように社会の価値をその社会から吸い出し、結局、法にしたがったものとされても、結果の実状では、ナイジェリア419条詐欺とそれほど変わりません。

You could, for instance, cut your lottery ticket purchasess by half and take the other half to places like kickstarter.

たとえば、ロットクジけんをその枚数を半分にして、余ったお金をキックスターターのようなところに持っていくことも可能なはずです。




Saturday, April 7, 2012

Pig In a Poke -- 羊頭狗肉

これは以前に投稿した 福袋 の話をもうちょっとまとめたものです。

ドコモで家の嫁さんの携帯の切り替えに付き添いに行って、無線インターネットに目をつけて、自分も切り替えてアンドロイド器にしようと思った。

しかし、携帯無線ルーターも売ってくださる。

便利なのかな。

どこでもインターネット本格的に接続できる。

さらに、超小型ラップトップパソコンをお負けにしてくれる。

迷った。パソコンにリナックスを入れれると思って、ルーターの方を買っちゃった。

パソコンはもちろん、毎苦労ソフトウィンドーズスターターが入っている。
あの悪性アプリに脆いエムエスウィンドーズです。アンチウィルスは別売り。
このままではインターネットに乗れない。のったらダメ!

(こんなアホな営業には、裏にどんなお金が動いているでしょう。ドコモもLGも結構な損を被ると思う。)

まあ、リナックスを入れるつもりなので、大丈夫なはず。

だが、LG社が言うのはこのルーターの更新はエムエスウィンドーズのみ。マックもリナックスも対応外。こんな現代にこんなバカなハナシ。

インストールメディアもないので、リナックスを普通にインストールしてしまうとルーターの不具合が出たとき、更新できない。対照できない。(ウチの家には毎苦労ソフトのマシーンなんて、今まではなかったのです。)

全部のパーティションを使ってくださっているので、普通に、二重起動用のマルチブートインストールも不可。

この小型パソコンをルーター更新専用機に置いとかないとアブナイ!

結局、目的の出かけ先インターネット接続は、テザリングできるアンドロイド器を買うことになるでしょう。今のところはその方が使い勝手なのですけど。どちにしろ、アンドロイドアプリの作りかた勉強せな空かん。

ルーターもおまけのパソコンも役に立たない。

二年の契約を使わずそのまま寝かせるか、3万円で処分するか。

その値段だったらもっと好いパソコンを買えたはず。

エラいもん買っちゃった。

と言っても、実は、福袋のポストの英語を我慢していただけるなら、どうやってリナックスを入れたか読んでいただける。ただ、あのエムエスウィンドーズのシステムが崩れたら、ルーターの更新のためにインストールメディアを買わなっきゃいけないに思う。

無駄な作業ばかり。

Saturday, March 31, 2012

Thomas's Story

Some time ago, I sent a comment to the Whitehouse via their feedback form on the website. I'm cynical enough to doubt Obama ever saw it. But I let them put me on their mailing list, so I get to see their efforts to play our emotions.

The latest one is about Thomas, who was born with Hemophilia and, his family burned through the insurance before he turned eight. And how the national insurance fiasco helps people like Thomas.

Huge, huge questions begging. I responded as follows:
 
Thomas's story is so sweet.

But the problem is not the lack of government programs.

The problem is deeper, and government programs don't solve the deeper problems. They only make the deeper problems worse.

There will soon be dozens of ways to cheat the national insurance, and then they will have to tighten all the rules and send people around to make sure the Thomases are all legitimate and this particular Thomas may or may not get overlooked in the mess.

Giving the people more ways to depend on the government only makes them less willing to help each other.

Stop it.

Start preaching individuals helping individuals, and when necessary, individuals getting together to help individuals.

That is the solution, and because it is too weak, too simple, too unenforceable, people with the money don't want to hear it. Not enough hidden ways to cheat.

But if the law really is one person one vote, the people with the money are in the minority.
Now, if you read this and are inclined to call me grinch, or worse, let me explain what happens to these government programs.

It's exactly what happened to the insurance in the first place.

Too many people fudging a little, making a little more use of the insurance than they should. But that's not the real problem.

We are supposed to be somewhat forgiving of each other, you see.

But there are these people who go to college and learn how to count beans. And there are these people who are not willing to forgive each other. And these people who are not willing to forgive each other sick the bean counters and the lawyers on anyone and everyone, trying to make the rest of us not forgive each other. And then while the dust is flying, these people cheat huge on insurance, investment, tax, and other rules. And they get all the good stuff and we get all the crud and they walk away with all our money.

The rich should only have one vote. They should not have the privilege of running lobbying machines.

And that is the reason why the Thomases in this world can't get the money they need. In a few years, the bean counters and the rich-in-their-own-minds will tighten the screws on the national insurance, and Thomas will once again have nowhere to turn.

If you're so rich, just give Thomas's parents the money. Set up a trust. Quietly. Don't make a fuss. And Thomas's problem is solved.

If you aren't quite that rich, get together with some of your friends.

And make sure Thomas's parents have work they can do that gives them time to take care of Thomas.

That's the way to solve these problems.

It may not raise your bottom line tomorrow, but it keeps value inflation down, so you don't have to run so hard keeping your bottom line on the steep rise.

In the end, giving from your own pocket is the better value proposition.

Way better than more government programs.

Tuesday, March 20, 2012

Grabbag - 福袋

Or, you might call it a pig-in-a-poke.

それとも、羊頭狗肉と言いましょう。

I let Docomo sell me their Cross-i mobile internet plan. About JPY 1,500/month if you don't use it, steep slope from 300 MB to 2 GB, where it tops out at JPY 5,000 or so. Until you exceed 7G, at which point, it hits the steep slope again.

ドコモにその「クロッシ」携帯インターネットプランを売られてしまった。使わなかったら月におよそ 1,800円。300メガバイトから急な率で上がって、2ギガバイトまで行くと大体5千円になる。そこから7ギガバイトまではフラット。つまり、2ギガバイト使ってしまったら、もう使い放題と考えてほしい。7ギガバイト越えたら、またその率で上がっていくけど。

Don't dare test the limits yet until I get some work that justifies using it on the road.

本格的に使って見ようと思いません。まあ、お金もらう仕事で使うことがあればその時は使う。

Okay, it's not bad for current wireless internet connection. I'd have preferred a jailbreakable Android phone with tethering. But they got me on the freebies.

さて、現在の携帯無線接続にしてはそんなに悪くもないけど、開放可能アンドロイド電話の方が良かったでしょう。お景品に負けてしまった。

The wireless router was one freebie. I'm not satisfied with it, at all, but it was part of the bundle.

無線ルーターはおまけにくれる。使ったら満足はしていませんが、一括販売だったの。

Downer, the router requires (Seriously, in this day and age!) an MSWindows box (gag) to update the thing. No INTEL Macs, definitely no Linux boxen. (Although, if I nose around, who knows about the Linux boxen? I'd better nose around.)

落ち込むわ。この現代的な時代に、真面目にこんなものを売るんか。ルーターの更新は、毎苦労ソフトのあのオペレーティングシステムでしか動かないアプリケーションを使って行うのです。インテル型マックさえも駄目。リナックスなんてとんでもない話のようです。(まあ、リナックスと言えばどこかのマニアックが単独で作っているかも知れない。暇ある時見ておこう。)

But that partly explains the other freebie, a Lenovo S100 Ideapad. Gotta have something to update the router with.

というのを考えたら、セット売りのおまけにしてくれるもう一つの景品の、レノボ・アイデアパッドS100がわかるような気がする。更新用のつもりかも知れない。

Single core Atom N455. 1GB RAM. 250G or so HD. SD interface. 3 USB ports, no built-in DVD.

単コアアトム N455 に、RAMは1ギガ、ハードディスクはおよそ 250ギガバイト、SD記憶装置取り付け可能。USB ポートは3基、組み込み DVD ドライブ無し。

Three power buttons. One is for normal MSWindows. One is for something called "QuickStart", a browser-dedicated Linux pseudo-distro that boots quickly and doesn't really let you do anything but browse the web. Present condition, it seems you can't even update it. (Haven't seen an offer to provide the source code, yet, either.)

And the other power button is for emergency booting straight to a special program that is supposed to "restore" your hard disk to a (hopefully safe) saved state. (Emphasis on "supposed to". Yeah, I'm sure you're thinking what I'm thinking, that's Microsoft for you. Don't make it work right, just provide a button to sort of fix it every time it breaks.)

電源のボタンは3つ。一つは普通の MSウィンドーズを起動する。もう一つはクイックスタートという閲覧専用の即急起動でき、ウェブを閲覧する以外の機能のほとんど無いリナックスの 偽 ディストリビューションです。現状は更新さえできないようです。(おまけに、そのソースコードを提供するような話はこれまで見つけられない。)

3番目の電源ボタンの目的は、以前に保存した(望ましくは安全な)状態に復帰できるはずの特別なプログラムに直接に緊急起動するボタンです。(「出きるはず」と思って下さい。さよう。ぼくと同じように、これが毎苦労ソフトの特質だと思っていらっしゃるでしょう。ちゃんとしたものを作らんと、壊れる度に何とか直せるボタンを取り付けること。)

Well, the BIOS expects the disks partitioned the old DOS way, which means you're limited to four (count 'em, four) primary partitions.

では、入出力用基盤形態(ええっ、と BIOS)の既定によって、ディスクの切り分けは昔のDOS型ではないとダメです。つまり、基本パーティションは数えて4つに限られる。

So, indeed, let's count them:

  • Partition 1: Boot partition. Maybe it handles switching between QuickStart, recover, and normal boot. I'm not sure. Since I don't use MSWindows very much these days, for all I know it could be standard practice for MSWindows 7 Starter to require a separate boot partition.
  • Partition 2: MSWindows C: drive. The usual stuff. Also contains the QuickStart image. (On NTFS? Who's going to care? You have to play serious games to get at the disk drives in the QuickStart. No shell, no file manager.)
  • Partition 3: MSWindows D: drive. Backup copies of some of the pre-loaded half-apps.
  • Partition 4: Restore image partition. 

なるほど。数えましょう。
  • 区切り1~起動パーティションです。もしかして、クイックスタート、復帰、及び通常の起動の切り替えがここに制御されるように気がするけど、よくわかりません。現在はMSウィンドーズをさほど使うことの無いので、MSウィンドーズ7スターターには別の起動パーティションが通常仕様になってもビビってもしようがないのですが。
  •  区切り2~MSウィンドーズの C: ドライブです。決まりの物々が入っている。クイックスタートのイメージもこの中にある。(NTFS上?まあ、誰が気にするでしょう。クイックスタートからディスクに触れるのが結構本物の遊びなのだ。シェル無し。ファイル管理も無い。)
  • 区切り3~MSウィンドーズ D: ドライブです。組み込みのアプリケーション擬のバックアップコピーぐらいです。
  • 区切り4~復帰イメージのパーティションです。

So, I tried  the restore function, and it wouldn't restore because I had changed my partitions a little. While I was at it, I looked around the restore function to see if I could find dialogs for re-partitioning and doing a fresh install. Could not find any.

ちなみに、復帰の機能を試したが、パーティションを若干変えているので復帰過程が失敗に終わった。その序でにパーティションを切りなおして再インストールする用のダイアログを探したが、その類のもの出ませんでした。

Getting rid of any of those partitions so I can install Linux is going to risk making the MSWindows OS unavailable to me for updating the router. So this box is effectively hobbled.

リナックスをインストールできるようにこのパーティションのどちらもなくしたら、更新用のMSウィンドーズを使えなくする可能性がありますので、実質的にこの機械の足が縛られている。


And, since most of the work I do is in Linux, if I can't install Linux on it, this pig-in-a-poke is pretty much useless to me.

困ったこと、ぼくの仕事の作業のほとんどはリナックス上行っているのでインストールできないとこの羊頭狗肉箱がほとんど利用不可になっています。

Well, okay, here are the simple options for installing Linux:

  • Live USB works. Not really install, but it works.
  • Regular install on SD or USB should work. But don't forget to use noatime on the file system to help the flash life. The SD card pokes out a bit, so it has a physical disadvantage similar to the USB drive.
まあ、簡単インストールの選択肢は以下のとおりです~
  • ライブ USB は機能します。本当はインストールではないのですが、確認しています。
  • SD もしくは USB に通常インストールは可能なはずです。フラッシュの寿命のため、 noatime を忘れないでください。 SD カードは完全に中に隠せなく、5ミリぐらい突き出るので、 USB に似た不便がある。
These are not really good options for regular use, so what I did was use a live USB (Fedora's Security Spin) to dump (dd) an image of the restore partition to the MSWindows C: drive. Now, I should be able to reconstruct the restore partition if I need to.

普通の利用には以上の選択肢は役に立ちません。したがって、ぼくがフェドラセキュリティスピンのライブ USB を使って、 dd を使って復帰パーティションのイメージをMSウィンドーズの C: ドライブのファイルに写して保存しました。これで、必要があれば、復帰パーティションを再構築できるはずです。

When I have a little more money and time to work with, maybe I'll get a 16G USB drive and write the image to it, to see if I can boot and use the restore image from the USB drive.

もうちょっと経済と時間の余裕がある時、16ギガバイトの USB を買って、そのイメージを書き込んでみたい。復帰イメージが USB から起動して使えるか見てみたい。

Needless to say, the hidden third power button does not do what it used to.

無論、隠されている3番目の電源ボタンは以前のように機能しません。


That frees up a 15 GB primary partition for installing the OS to, but I still need a swap partition.

これで OS インストールのために 15 ギガバイトの基本パーティションを開放しましたが、スワップパーティションがまだできていません。

With some work, I could get Linux to use a swap file instead of a partition, but there's another way.

ちょっとの努力でリナックスにスワップファイルを使うのが可能なんだけど、別の手もあります。

The D: drive is actually on an extended partition. No fragmentation yet. (I checked.) Just for good measure, I tar-red all the files on it over to the C: drive. Then I shrank the D: drive. Not as intellectually satisfying as LVM, but it gives room for swap (2G) and /home (4G) and a little for later on.

D: ドライブは拡張パーティションの中に在る。見ておいたら、断片化は全然進んでいなかった。万一の場合に備えて、tar を使って D: ドライブにあったファイルをすべて C: ドライブにコピーしてから D: ドライブを縮小しました。 LVM 程の理想感覚ではないのですが、スワップの2ギガバイト及び /home の4ギガバイト、また予備の場所を儲けることができました。

Then I just installed the Security Spin from the live USB. It's compact, so it fits just fine for now.

そのままセキュリティスピンをそのライブ USB からインストールしました。小容量なのでゆったりに入ってしまった。

I shrank the C: drive by half, as well, thinking ahead for when I want to remove the extended partition and make a much larger one, to get more room for stuff I haven't loaded yet.


先を考えて、 C: ドライブをも半分に縮小しておいた。いつか、拡張パーティションを抜いて、まだインストールしていない色んなもののためにもっと大きいパーティションを切れるようにしておいたのです。

Okay, so what should Docomo do? They should apply a little pressure to LG to get them to build the router update tool in Linux and Mac OS X versions. It's not that hard. And, Presto! No more reason for me to keep MSWindows around, no reason for playing stupid games with the partitions.

さて、ドコモに何やってほしい? LG に少しの圧力を掛けて、リナックス版及びマック版のルーター更新ツールを作ってもらってほしい。それほど難しいものではありません。それと、見てほら! MSウィンドーズを残す必要もなく、パーティション切り直しバカ遊びの必要もない。

If they want their Cross-i to compete with WiMax, they'd better do things like this.

Cross-i が WiMax との競争にのってほしいなら、こんなことを怠るのは賢明だはないでしょう。

Saturday, March 17, 2012

Need a good pocket calculator?


Wayne Madsen linked to Cory Doctorow's post on pi day, and I, like the fool I am, posted a bc session calculating pi to 1999 good digits. It goes like this:

$ bc -l
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
pi=a(1)*4; pi
3.14159265358979323844
scale=2000
pi=a(1)*4
pi
3.141592653589793238462643383279502884197169399375105820974944592307\
81640628620899862803482534211706798214808651328230664709384460955058\
22317253594081284811174502841027019385211055596446229489549303819644\
28810975665933446128475648233786783165271201909145648566923460348610\
45432664821339360726024914127372458700660631558817488152092096282925\
40917153643678925903600113305305488204665213841469519415116094330572\
70365759591953092186117381932611793105118548074462379962749567351885\
75272489122793818301194912983367336244065664308602139494639522473719\
07021798609437027705392171762931767523846748184676694051320005681271\
45263560827785771342757789609173637178721468440901224953430146549585\
37105079227968925892354201995611212902196086403441815981362977477130\
99605187072113499999983729780499510597317328160963185950244594553469\
08302642522308253344685035261931188171010003137838752886587533208381\
42061717766914730359825349042875546873115956286388235378759375195778\
18577805321712268066130019278766111959092164201989380952572010654858\
63278865936153381827968230301952035301852968995773622599413891249721\
77528347913151557485724245415069595082953311686172785588907509838175\
46374649393192550604009277016711390098488240128583616035637076601047\
10181942955596198946767837449448255379774726847104047534646208046684\
25906949129331367702898915210475216205696602405803815019351125338243\
00355876402474964732639141992726042699227967823547816360093417216412\
19924586315030286182974555706749838505494588586926995690927210797509\
30295532116534498720275596023648066549911988183479775356636980742654\
25278625518184175746728909777727938000816470600161452491921732172147\
72350141441973568548161361157352552133475741849468438523323907394143\
33454776241686251898356948556209921922218427255025425688767179049460\
16534668049886272327917860857843838279679766814541009538837863609506\
80064225125205117392984896084128488626945604241965285022210661186306\
74427862203919494504712371378696095636437191728746776465757396241389\
086583264599581339047802759008

You don't have to store pi in an intermediate variable, of course.

Doctorow's blog had a lot of feedback, and some of that inspired me to calculate the pi moment:

scale = 31
pi = a(1) * 4
pi
3.1415926535897932384626433832792
date = (pi - 3) * 100
date
14.1592653589793238462643383279200
hour = (date - 14) * 24
hour
3.8223686155037723103441198700800
minute = (hour - 3) * 60
minute
49.3421169302263386206471922048000
second = (minnute - 49) * 60
second
-2940
second = (minute - 49) * 60
second
20.5270158135803172388315322880000

(Notice the woops with minnute, there. Also, notice that I have changed the evaluation between the date and the hour.)

March 14, 3:49:20.53 in the morning. FWIW.

bc allows defining functions, so you could write a general function that takes any decimal fraction and turn it into a moment.

Well, maybe not any. e, 2.7182818284590452353602874713526..., for instance.

There is, of course, no February 71st. Proof that it's easy to attempt to apply a system out of context. (I'm looking at you, Bill Gates. Take that abomination you call MS Office back off the market.)

Well, so bc is a pretty neat little calculator. (And so are Ruby and Python, among other full-blown languages.)

How do you get bc into your pocket?

Jailbreak your Android.

Don't try it on your iPhone, because you have to pay Apple something like a hundred dollars a year just to do things like this. And you have to have a stupid Intel processor Mac to do the development, last I heard. (I could almost forgive Intel the 8086 if they would just quit trying to kill the market for other processors and other companies, and if they would quit trying to take over the internet. Almost. That 8086 is never, ever, going to be power efficient, and we need power efficiency now. Intel, it's time to move over, get out of the way.)

Jailbreak your Android device, and if Android is too limiting, install Linux on it.