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 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.

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 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 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]))

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.

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..., 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... 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.

Tuesday, September 2, 2014

Diving And Drowning

We've back from the Netherlands and Amsterdam — and I haven't posted about Okinawa yet, to say nothing about the summer festival at the local temple, my birthday and other things… I'm drowning in unedited pictures and unfinished posts and I don't see a way to really catch up. I'm hereby declaring Blog Bankruptcy.

What will that mean? I will no longer even try to write long, single posts about things like travel. At this pace I'd be posting about our summer holiday in December and New Year in July. And I won't try to keep things in chronological order. Instead I'll post bits and fragments when they're ready, in whatever order they come.

And with the drowning bit out of the way, here a few pictures from underwater Okinawa. As you may remember I went to Okinawa this summer to tutor at OCNC, a computational science summer school. I won't say too much about the school; it was fun and very educational for me as well as (hopefully) for the students, but it was work, not play, and the details aren't really interesting to others.

But we did have some free time during the course, and Ritsuko came to Okinawa towards the end so we could spend a weekend together. And we spent much of that time snorkeling.

Cape Maeda is a famous and popular diving spot. It's easy to get to, easy to get in the water, and fairly shallow so it's good for snorkelers as well as beginning divers. The only drawback is its popularity; during weekends you hardly see the fish or coral for all the divers, snorkeling tours, boats, and swimmers.

Cape Maeda
The stairs down to the water at Cape Maeda.

The wildlife here is very used to humans. Many tour guides feed the fish to get them close, so some species really crowd around you hoping for something to eat. These batfish aren't quite that familiar with people, but if you wait a while you have a good shot at getting a picture.

Blue Cave
The Blue Cave is a famous spot at Maeda. It's a seaside cave going back a few tens of meters into the cliff, ending with a small opening to land. Below the surface the world turns a brilliant clear blue colour — when the view isn't obstructed by people, that is.

Fish (surgeonfish, perhaps) crowd around a float off the Maeda coast. The waters here really are this lively.

A fellow tutor finds a few moments to relax in the warm water.

Manzamo is another spot. north of Maeda. Unlike Maeda, though, it's not that easy to get to. The divers' entry point is a fairly rugged cliff at the end of some slippery rock formations. Nothing for beginners. There's a small sandy beach to one side, but you can only enter during high tide and to get there you have to use a narrow path through the rocks and dense brush; that makes me nervous what with the Habu snakes and all.

But the effort is worth it — wonderful, wide fields of coral sloping down to the sea shelf where it suddenly drops to several tens of meters of more. Divers can even see sea turtles here. And there's rarely any other snorkelers around so you can explore in peace and quiet. I didn't have much luck with photography this time, with the memory card full of near-misses. But it was a memorable experience, with lionfish, a stone fish and many other sights.

Crown of Thorns
A Crown of Thorns starfish is eating a coral.

Crown of Thorns
Some mixed corals along the sea bed.

A bright-blue starfish.

After the end of the three-week course I met up with Ritsuko at the nearby Rizzan Resort, a family-oriented resort hotel just down the coast from OIST.

Rizzan Hotel
Rizzan Resort hotel. Yes, it's big; and yes, it's a bit loud and in-your-face. But the atmosphere is relaxed and easygoing, and the young families crowding the place seemed to have just as much fun here as we did.

The wedding "chapel" at the Rizzan — it's not consecrated or anything. Wedding events is a major part of business for resorts. All wedding guests stay at the hotel for the ceremony, the couple get married and can spend their honeymoon right here. Many guests would need to travel wherever they got married anyway, so this may even end up less expensive than a regular wedding overall.

To our surprise, even the beach just outside our hotel had a fair amount of marine life. We took a quick snorkeling tour as well. It was fun, but unfortunately we had to wear vests so no diving down for pictures.

Close, but not quite
A clown fish almost manages to avoid detection in his anemone.

Small seascape literally a couple of meters from the hotel beach. People were swimming right above, never realizing this kind of scenery exists below.

Titan Triggerfish
A Titan Triggerfish.

Living Under a Rock
A busy ecosystem literally living under a rock at the hotel beach.

Picasso Triggerfish
A Picasso Triggerfish.

A whole school of …something rushes right past us.

Sunset at Tancha bay.