Saturday, October 25, 2014

Homemade Olives

Did you know there's olive groves in Osaka? Neither did I. A few weeks ago, Ritsuko found fresh olives at a local farmers market and bought a small bag on a whim.

Olives are pretty much inedible when fresh, so you have to pickle them in brine. There's lots of recipes on the net, and they all vary quite a lot. That's a good thing; it usually means that the details don't really matter too much.

Fresh olives are very bitter, so first you need to soak them to remove that flavour. We cut the olives in top and bottom and put them in a jar. We poured a brine of 1 part salt to 8 parts water (by weight) in the jar, then used a small glass lid as a weight to  keep the olives below the surface.


Our olives just after the second pickling.

It's been two weeks now, and the olives have turned a muted olive green and the brine has turned brown. We strained the olives and washed them in fresh water. The bitterness is gone and there's a faint but definite olive flavour. But they're still kind of raw and crunchy, so we put them back in a clean jar, mixed another batch of brine and added two halved cloves of garlic and one sliced dried chili. Top up with olive oil as a "lid" to avoid contact with air, then put the jar back in the closet again.

The major worry is that they will spoil. If they don't, they should be edible in about two months or so, just in time for the year-end holidays. I'm looking forward to trying them.


Friday, October 10, 2014

Okinawa II


I've finished the film pictures we took in Okinawa earlier this year. The black and white pictures are from my Fuji GF670, a fully modern medium-format rangefinder camera.

The Storm
A storm is approaching. Tancha, Okinawa.


The colour shots are with Ritsuko's Canon Demi. It's a half-frame 35mm camera — it takes two vertical pictures in the space of one horizontal 35mm shot — from the late 1960's. Yes, it's older than me, and I'm not exactly fresh out of the box any more. The half-frame format was popular when colour film was new and still very expensive, as you can get 72 pictures on a single roll.

The Demi has a light meter but no range finder. You simply dial in the lens to the distance you want, guided by small symbols ranging from a head (for close-ups), to a person, to a group of people, to a mountain. It's not very exact, but more than good enough for a semi-wide lens like this one. The high-end Rollei 35S works the same and manages to take excellent pictures. The Demi lens has plenty of distortion and is prone to glare, and the small-size images lack fine detail, but all that just adds to the retro appeal of the finished images. And with 72 shots to a roll you can shoot on a whim and not worry about wasting film.

There's two quirks to be aware of with this camera: First, the camera shoots in portrait orientation, so you'll end up holding the camera vertically a lot. Also, the light meter cells degrade over time. You really need some sort of cover or lid for the meter around the lens when you're not using it. There is no manual mode at all; if the meter stops working, then so does the camera.


As I wrote in an earlier post, we spent a couple of days at Rizzan, a nearby family resort hotel. We felt very touristy and relaxed, exactly what I needed after an intensive month of work.

Poolside
Poolside at the Rizzan hotel. It's all very family-friendly, and that makes for a lively atmosphere without party crowds. As you can see if you check the larger size, there isn't all that much detail in this picture. But it's plenty enough for a blog post like this, and it looks really good in a small-sized print.

Beach Life
Beach Life. This is what happens if you set the wrong film speed and have to correct the image afterwards. I deliberately left the frame edges; it adds to the old-timey feel, I think.


We spent our last day in Naha. Our flight home did not leave until evening, so we deliberately left in early morning in order to get a full day walking around town. Naha is a pleasant, somewhat sleepy town with more than a little south-Asian vibe to it.

Back streets
A lot of Naha is like this, with quiet streets bathed in sunlight. It's probably a pretty good place to live in many ways. I wouldn't mind trying it for a few years.


Kokusai street is a popular area for sightseers, but it's honestly a pure tourist trap now; rows of near-identical souvenir shops and little else. Stay away from that street and try the side streets, the market or other nearby areas instead. It's much more fun.

Jamming
Some people hang out in the shade of a local park just off the end of Kokusai street. It seems pleasant enough, although I'm happy I'm old enough not to have to do this any longer.

Wall Art
Many buildings are brightly painted or decorated. It fits the warm, sunny climate, and adds to the distinct Asian atmosphere.

Makishi market is right next to Kokusai street, an area of small covered alleyways centered around a fish market. Again, the atmosphere feels southeast Asian as much as Japanese. The rear side is not very crowded; it's a pleasant place to walk around in especially around midday when the heat and the sun is strongest.

Makishi Market
A fruit stall at Makishi market.

Umbrellas
Umbrellas are used for protection against the sun as much as rain. Makishi market.

Coffee Break
We're having a coffee at "The Coffee Stand", a tiny, tiny coffee place at the rear of the market. This has to be the best coffee place I've found in Okinawa so far. The owner is a true enthusiast - you can select from any number of single-source beans from around the world, then pick the way you want it made, including drip, french press, aeropress and espresso. The magazine rack is full of coffee speciality magazines. It's a great place to enjoy a seriously good cup of coffee.

Todays Catch
Fish at the market. Tropical seas may not always give you the best-tasting seafood, but it does give you the most colourful.

Mysterious
Mysterious structure behind a school in Naha. A little Hayao Miyazaki-like. Or perhaps it's just the angle.

Up, up into the light
Balconies. Naha, Okinawa.

Wednesday, October 8, 2014

Lunar Eclipse

Lunar eclipse in Japan tonight. As I walked home along Nagahori street in the cool autumn air, people were standing around, talking, and taking pictures. Some office workers sat on a railing outside Yamaya, our local liquor shop, drinking a beer and watching the eclipse.



Tuesday, October 7, 2014

Automatically Resize Vim Splits


If you think "Vim splits" may have something to do with a cleaning product then this post might not be for you. Geekery ahead.

I am a long-time user of the Vim text editor. It's made for use from the keyboard (though you can use a mouse if you want), and works great running on a remote computer. When I program I often use split windows, where I have multiple files open and visible at the same time in different window panes:


A Vim editor with three splits, each editing a different file.

Split windows are very useful. But when you have many splits or when you're on a small laptop screen, each split becomes too small to edit things properly. You can of course resize them in various ways: ctrl-w _ and ctrl-w | will maximize vertically and horizontally; ctrl-w + and -, and < and > will increase and decrease the split size; and ctrl-w = will equalize them all. But that's a hassle; also, when you maximize a split you no longer see the contents of the other ones. Ideally you'd increase the size just enough to edit properly, and do it automatically.

So I have a small function written in Vimscript that I stick in my vimrc file:

" Resize the current split to at least (90,25) but no more than (140,60)
" or 2/3 of the available space otherwise.

function Splitresize()
    let hmax = max([winwidth(0), float2nr(&columns*0.66), 90])
    let vmax = max([winheight(0), float2nr(&lines*0.66), 25])
    exe "vertical resize" . (min([hmax, 140]))
    exe "resize" . (min([vmax, 60]))
endfunction

When you call this (on the command line as :call Splitresize()), it will resize the current split to 2/3 of the entire editor width and height; but always at least 90 columns by 25 rows, and no more than 140 colmuns by 60 rows. That guarantees that the split is always large enough even on small screens, and never becomes ridiculously huge on large screens.


I moved from split 2 on the left to split 3 on the lower
right, and it has resized itself to a comfortable size.

My preferred way to make this automatic is to add these mappings:

" move between splits without the ctrl-w prefix

nnoremap <silent><C-J> <C-W><C-J>:call Splitresize()<CR>
nnoremap <silent><C-K> <C-W><C-K>:call Splitresize()<CR>
nnoremap <silent><C-L> <C-W><C-L>:call Splitresize()<CR>
nnoremap <silent><C-H> <C-W><C-H>:call Splitresize()<CR>

You can move between splits with ctrl-w h, j, k and l. It's a bother to press ctrl-w all the time, though, so many people add mappings so ctrl-h, j, k and l move between splits directly. These mappings add :call Splitresize() to the end, so your splits will resize automatically when you move to them. And you can still use the ctrl-w hjkl mappings or select a split with the mouse when you don't want the split to resize.

If you use Vim then give this a try. And if you have any feedback or ideas to improve this then please get in touch.

Friday, October 3, 2014

An Ode to the Review Paper

Much as I enjoy doing science, it's a real pain to sort through piles and piles of research papers for the information I need. Papers are strictly organized and ruthlessly trimmed to make it as quick as possible to find what you want, but it still takes a lot of time when there's hundreds and hundreds of them to go through.

Each paper yields just one or two scraps of relevant information; information that is often incomplete or contradicts that of other papers. Half the time you can't even judge if the data will be relevant to your work. There's nothing surprising about this, of course. The low-hanging fruit ("neurons use electro-chemical signals!", "the eye is a lens!") have long since been picked, and it takes a lot of time, ingenuity and effort to tease out even a few new scraps of knowledge in detail. Most papers present only a few small new findings because that's all a year or more of work will yield.

But it means any search for background information is a long, slow struggle. And it never ends; there's always more to find if you look. More than a few graduate students get caught in this trap: they think they need all the background before they do their own work, then get stuck in an endless loop of literature searches with no results of their own to show as their grad school clock runs down.

Enter the review paper. That's a paper where a researcher collates, summarizes and interprets all the recent literature on a topic. It can run to dozens of pages and contain hundreds of references. It summarizes the current state of knowledge, and is a great one-stop source for all the major papers. A good review paper also highlights areas of disagreement and areas we don't know enough about.

Some people criticise review papers. They tend to get a lot of citations, often more than the original papers, even though the author often hasn't done much or any of the work it presents. But I say review paper authors are if anything receiving too little credit, not too much.

It truly is a monumental struggle to go through and synthesize all that material. A well-written review paper is a tremendous service to the field, a time saver for hundreds of other people, and a great way to make clear what we do and do not actually know. The more we have of them the better.


Wednesday, September 17, 2014

Film news at Photokina

The German Photokina camera exhibition is in full swing, and there's a couple of interesting film developments:

  • Epson has finally released the successors to their V700 film scanners, creatively named the V800. They promise better optics, 6400dpi resolution(1), LED back-light and better film holders. The changes are welcome, and while it's certainly not worth replacing my V700, I'm very happy there's a successor waiting for me if it would break.

  • Some three years after Leica said they'd not release any new film cameras, they've ...released a new film camera: Leica M-A 

    The M-A is the brutally minimalist version of their MP film camera. With no electronics of any kind, there's not even a battery holder. You'll need an external light meter or rely on Sunny-16 for this one. Intriguing idea, and probably a lot of fun to use, though if I could afford a new film Leica I'd likely pick the M7 or MP instead.


#1 Note that the current V700 promises 4800 dpi but doesn't achieve more than about 2200-2400dpi in practice. We'll see if this is a real improvement or just a marketing figure.

Wednesday, September 10, 2014

Phone Payments


Apple, like Google and others before them, are launching a phone payment system. We have a system for phone payments here in Japan already. It's based on "Felica", the standard card system in Japan. It's a precursor to the NFC-based payment cards used all over the world and to the phone payment systems introduced by Google and now Apple. Most domestic phones have it built in, and it's quite popular.


Phone!
Yes, yes, we love our phones. That doesn't mean we need to use them for everything.

And I don't understand why that is. Why do you want to have your commuter pass (that's the most common use) or small-payment card as part of your phone? Instead of a separate plastic card in your wallet or a card holder? Yes, your phone is always with you, but then, so is your wallet. And a card won't break or lose power. I see these scenarios in my mind:

You're on your way to work. The subway turnstiles are crowded as usual. You juggle your bag and coat to take our your pass. Just as you swipe it you get bumped from behind and you lose your grip; it drops hard to the floor, and gets stepped on for good measure. You pick up your...

...phone, and realize it's dead. It refuses to turn on and the screen has a large, glittering spiderweb of cracks around the corner where it fell to the stone tile floor. The insides make a sad little maraca-like sound as you futilely try to shake it awake. Not going to pay anything with this for a while. Or make calls, check email or throw birds at pigs.

...wallet, and realize it's not just dusty, it even has a footprint on it. You vaguely wipe it off as you hustle to the train and realize it may be time to actually wash it one of these months.


Also, for all that I love my phone, for all that I love the power, knowledge and convenience of our digital world, I am also acutely aware of just how rickety and error-prone our software ecosystems are. Our general-purpose computers, tablets and phones are beset by software problems big and small. They're not the most reliable of machines:

You stand in line to buy a lunch bento at the convenience store when you realize your phone got a software update. Unfortunately, it seems there's a problem; your...

...mobile payment app keeps crashing. You repeatedly try to restart it, and even reboot your phone, but it doesn't help. As the line behind you grows longer and more annoyed you dig frantically through your pockets for small change to pay for your food.

...favourite game keeps crashing. As you pay for your lunch and walk back to work you darkly ponder the prospect of a whole lunch break without flinging a single irate avian.


So no, I don't want Mobile Felica, Google Wallet, Apple Pay or any other way to pay with my phone. I don't want to use my phone as a house key either, or as a workplace security pass. I prefer a life where I don't entrust all the most important and sensitive functions to the single least secure and reliable thing I own.

Local feline
It's a cat. I hear the internets likes cats. And it's taken with a phone. I hear the internets likes phones.