Friday, September 23, 2016

Turns out Geckos are Similar to Cats

I was cleaning out pictures from the past few months from my phone yesterday, and stumbled upon a video I'd taken and forgotten about. I'd found a gecko on my monitor, and decided to see if it would notice my mouse pointer. It did. It was really cute. I couldn't resist making the following video out of the footage:


The gecko in the video is a gold dust day gecko, originally native to Madagascar and some of the surrounding islands, but introduced to Hawaii and other Pacific islands relatively recently. They're by far the most common species of gecko I see around here (there're maybe ten or so species of gecko found in the island chain). They like living in and around houses and are active during the day, which helps, though I'd never actually seen one around my computer before; usually I see them on the lanai or in the kitchen.

I found a few more pictures I'll probably want to post soon-ish, plus I still need to get around to looking at the pictures from my trip to Volcanoes National Park on Labor Day…

Friday, September 9, 2016

The Fictional Element Rant

As an astrophysicist, I enjoy a good science-fiction story as much as anyone. That same fact, though, also makes me pretty good at spotting where the authors are playing fast and loose with physics (for anything but the hardest of science-fiction). Many things I can accept as necessary for a story to work (superluminal travel, for instance), but there's one thing that can break my suspension of disbelief faster than almost anything else if handled poorly: fictional elements.

To see why, let's take a look at the periodic table, which summarizes what we know about the elements. To begin with we need to have a definition of elements themselves. Basically, all atoms have an integer number of protons in their nucleus, known as their atomic number. Atoms with the same number are the same element, and have the same attributes.

An element's atomic number uniquely identifies it.
An element's atomic number is so central to its identity, that it's the first thing I want to know about a new fictional element. And thence the problem: its atomic number can't be one, because that's hydrogen. It can't be two, because that's helium. It can't be three, because that's lithium, and so on all the way up to one-hundred and eighteen, the highest the period table goes at the moment (while elements with numbers 113, 115, 117 and 118 are not named yet, the International Union of Pure and Applied Chemistry is expected to approve names for them before the year is out).

And thus we see the problem that a fictional element (in a moderately hard science fiction setting) must overcome: all the elements up to a hundred and eighteen have been discovered already. Having a new element without further explanation feels to me like someone trying to tell me that they've discovered a new integer between 1 and 118; my immediate response is always going to be, “But we already know all of those integers.”

Now, while this is a problem, there are two approaches that I can see to justifying it:

  1. The easy way: give it an atomic number higher than 118. The problem with this is that everything we know about nuclear physics says that anything with such a number should decay so fast it'd be nearly impossible to detect. But this is science fiction we're talking about here. It's pretty trivial to throw in a section discussing why what we thought we knew about physics was in fact wrong, allowing stable high-atomic-number elements to exists. At the very least, lampshade it by having someone remark how they have no idea how such an element is stable, but it'll give the physicists and chemists something to work on! I've seen this done in a free game set in the Half-Life universe released recently called Transmissions: Element 120. They went with the route of explicitly disclaiming knowledge of how element 120 (the putative source of the game's gimmick) was so stable, but it showed to me that they had at least acknowledged that a problem existed and had thought about it, and it didn't break my immersion the way simply announcing some new element would have. (They even used what would be the correct chemical symbol for element 120, Ununbium: Uub).
  2. The slightly odd way: have the fictional element replace a real one. So this universe is like ours, except that, say, ruthenium is replaced by fictitium. I've never seen this used, and it would really only sort of paper over the problem, but it could be interesting if the replacement element is judiciously chosen. Elements that are uniformly highly radioactive and decay quickly might be good choices to replace; no one's really going to notice if astatine didn't exist, whereas history would be very different if iron didn't exist.

Of course, it's painfully obvious that most of the fictional elements that most badly break my immersion were only added to their respective settings to drive the plot (usually through opposing factions warring over it) and had no thought whatsoever given to them. To those needing such a plot driver, might I suggest a third path? Use an existing element, and give it a new property that explains why it's in such high demand. It's much easier to accept that an obscure element has suddenly become much more sought after due to a recent discovery than a totally new, never-really-explained element. Plenty of elements that were simply intellectual curiosities to their 19th-century discoverers are now critical components of modern items and infrastructure due to discoveries in the intervening time that could scarcely be imagined at the time they were discovered. (Various rare-earth metals being important in making high-end electronics, for one example.)

Note that this whole rant really only applies to science fictional settings of at least a moderately hard nature where it can be assumed that the periodic table exists. Mithril in The Lord of the Rings doesn't bother me because it's a fantasy setting. (You could also rationalize it as maybe being some real element that was unknown to any but the dwarves at the time. A light, strong, silvery metal could apply to aluminum, which is normally found in compounds but can very rarely occur in pure form as nuggets, explaining why it's only found in the mines of Moria. Just a fun thought exercise.)

Similarly, I don't mind if all the elements in a series are fictional. Star Wars goes this route, with the Expanded Universe (before Disney disavowed it) having probably dozens of fictional elements and minerals. That's interesting, and it gives you a lot of latitude in coming up with interesting elements. It's mixing real and fictitious elements (without justifying the latter) that really starts the smoke coming out of my ears as my brain tries to reconcile the fictional element with reality (for settings where it's assumed things are like reality unless specifically noted).

To put it simply, in science fiction stories, don't mix your real and fictitious elements without comment or justification, please. One or the other, not both.

Well, I don't know how interesting any of that was, but it's been buzzing about in my head for a while and I wanted to get it out. Sorry if I've now retroactively spoiled anyone's favorite story. A hui hou!

Tuesday, August 30, 2016

Watching Wild Winds with Windyty.com

Today the rather awesome website Windyty was brought to my attention, which shows these amazing animated maps of various weather conditions over the entire planet, vector maps of wind speed being the default. As I was excitedly ranging to and fro about the whole Earth, I took a look at the Pacific and discovered the rather ominous scene below (you can click and drag to move in, and scroll to change the zoom level):



Those two spiraling vortices are hurricanes Madeline (left) and Lester (right), both Category 3 hurricanes as of the time of this writing, and both bearing down on the location of my abode. Some models have Madeline narrowly missing the Big Island, other have it making direct landfall, but they generally agree that it'll happen sometime Wednesday evening or early Thursday morning. Thankfully, they're also projecting it to drop in strength to a Category 1, or even a mere tropical storm. There are predictions for between 6–15 inches of rain, though we had a little over 6 inches last Tuesday and that wasn't even a tropical storm.

Lester is further out and thus more poorly constrained, but it's possible it could hit as well sometime around the end of the week, though again, it could miss and will likely drop in strength before that happens.

As I've occasionally said before, life's never boring when you live on a volcano in the middle of the Pacific! Looks like the wind's picking up a bit as I write this, and it just started raining as well. While the map above is constrained to show the weather around the time I'm writing this (August 30, ~2:00 PM), the one below is set to the most recent actual forecast, so you can watch it over the rest of the week if you want to watch what the hurricanes do. A hui hou!




Update, August 31, 12:00 PM: The wind pattern picture from this point in time is just so cool I had to share it. Hurricane Madeline is starting to head down south of the island, and it's interesting how the wind speed is high in the ʻAlenuihāhā channel between Hawaiʻi and Maui (famed for its wind-funneling effect) but mostly pretty low over Hawaiʻi itself.

Happy birthday Linux!

Well I've missed the date by a few days, but the Linux kernel (the most basic part of an operating system, that interfaces with the physical hardware) is now twenty-five years old, making it only a little over two years younger than me.

Amusingly, in the post announcing his new project, Linus Torvalds called his new operating system kernel merely a hobby, not intended to be a professional endeavor. Fast-forward to today, and the open-source nature of the Linux kernel has led to it being used in a host of operating systems from basic consumer-oriented distributions to highly-customized distributions running on the most powerful supercomputers on the planet. Linux-based operating systems dominate installations in pretty much every category except desktop computers.

Writing about Linux here reminded me of how I've been using Windows 8 at work lately, and while I generally prefer to say nothing if I can't say something nice, I feel like venting some of the frustration I've been feeling. I'd never actually used Windows 8 before, merely heard about its shortcomings from other, but I've now experienced it first hand. In no particular order, here are some of the irritants I've experienced in the past few weeks:

  • Random freezes for no discernible reason while doing mundane things. Nothing quite like opening up a new instance of your browser after just starting the computer, opening a new tab, and having it freeze on you. Similar freezes have happened a few times in the past few weeks. I think it's probably happened about that many times in the last year on my computer. I got Chrome to repeatably lockup on a simple Source Forge page that (ironically) Internet Explorer opened with no problems.
  • Things not scrolling when you hover over them with the mouse. It's a little thing, but once you're used to it it really breaks your flow to have to click on different windows in order to scroll them. Especially when it's something like opening up a file-browser window and the focus is on the search field rather than on the file window proper.
  • Not having the secondary cut'n'paste clipboard from highlighting text that Linux has. I didn't realize just how much I relied on it for casual cut'n'pasting until I had to go back to Ctrl-c, Ctrl-v for everything.
  • The Start Screen that replaces the Start Menu in Windows 8, and its atrocious design of flat, bright, primary-color rectangles. I'm not even sure how to open specific programs now, and I never know when something is going to switch to opening full-screen in Metro mode. And why are Computer Settings and Control Panel two separate programs??
  • A “Save as…” menu that always defaults to a fixed set of best-guess folders, none of which are ones that I ever want to use, and which necessitates an extra click just to get to a general-purpose file-browser. Was simply opening to “My Documents” by default too difficult or something?

Anyway, you get the idea. I'm really glad I decided to jump ship when I did, from Windows 7. Despite growing up using Windows exclusively, I'm not happy with how Windows 8 turned out, and having grown to love Linux in the meantime I can't really ever see myself going back to Windows. Linux is by no means perfect, but it's less hassle and frustration for me in general. It's like the old joke that says the best operating system is the one that aggravates you least and stays out of your way the most.

Anyway, these were just a few disparate thoughts about operating systems I had recently—a hui hou!

Tuesday, August 16, 2016

So I'm a Secretary Now

It's been a bit quiet on the ol’ blog front here, so I thought I'd write something quick to catch up.

Sometime back in…I think June or early July so I heard that my church was looking for a new secretary, as the previous one left back in May. I was persuaded to apply as, although administrative work isn't my preferred job material, it's something I can do and it was proposed to me that it could be something I did for mutual benefit while continuing the job search.

I kinda forgot about it for a while, as I didn't hear anything back from the personnel committee till the end of July, when they invited me for an interview. To make a long story short they ended up picking me, and as of last week I'm now the secretary for Kaūmana Drive Baptist Church on a part-time basis.

Bizarrely, having a job again has somewhat sharpened my thinking regarding my future plans, which has otherwise remained annoyingly nebulous. I'm not making enough at my new job to be long-term sustainable (though it may buy me a few more months), and I either need to find a better-paying job (preferably in astronomy), or see about going to graduate school. Given the paucity of astronomy jobs that don't require having a Ph.D., and the fact that UH Hilo doesn't have a doctoral program in astronomy, either path is likely going to require me to move within a year, a fact I've been desperately trying to avoid facing, as moving means a lot of stress and almost certainly a less-preferable climate. (Ah, the sheer bliss of a climate where 90% of the time it's simply “comfortable!”)

But I've got to do something, and despite just starting a new job the writing is on the wall in regards to having to end it in the near future. What happens next remains to be seen, but there will probably be some big changes for me ahead…

Wednesday, August 3, 2016

Comparing Edifices with SVG

I wanted to make a quick post and share some cool SVG files I found on Wikipedia the other day, because they're just too neat not to share. Clicking on either of the following links will open the file in a new window. Each one shows a comparison of multiple related things—the first shows a number of the largest pyramids (including modern skyscrapers that are somewhat pyramidal in shape) and the second shows various large bridges from throughout history.

Pyramids

Bridges

In each case, mousing over either the pyramid/bridge or its name will cause both to light up. Clicking on one will cause it to remain highlighted, allowing you to easily compare two or more edifices. Clicking on the little 'i' in a blue circle near a name will take you to the associated Wikipedia page.

I really love these kinds of comparative schematics, and would love to be able to make something similar someday. It's really quite impressive what you can do with scalable vector graphics. I hope you've enjoyed them as much as I have. A hui hou!

Sunday, July 24, 2016

Hurricane Darby

I just discovered that, as of yesterday, I've now experienced two-fifths of all the tropical cyclones of tropical storm strength or higher that have ever made landfall on one of the major islands in the state of Hawaii since records began in 1949, as Hurricane Darby made landfall down in Kaʻū on Saturday as a tropical storm. (The other four landfalls were an unnamed storm in 1958, Hurricane Dot in 1959, Hurricane Iniki in 1992, and Tropical Storm Iselle in 2014, the other landfall I experienced.)

While Darby got as strong as Category 3 on its trip through the Pacific prior to arrival, by the time it made landfall it had been downgraded to a tropical storm. While I don't know what kind of havoc it wreaked down in Kaʻū, its effects in Hilo were mostly limited to some heavy rain Friday night and Saturday morning and some intermittant gusts of wind and light rain the rest of the day, plus some cloud cover for most of today.

Anyway, I just figured I'd let everyone know I made it through all right. A hui hou!

Tuesday, July 12, 2016

Speed-Vectorizing Saruhan's Flag

I've got another flag vectorization video today, this one for the tiny nation of Saruhan.

Saruhan doesn't exist in 1444 when Europa Universalis IV starts, having been long incorporated into the nascent Ottoman Empire. It was one of the Anatolian beyliks, small principalities or petty-kingdoms established in Asia Minor by various Turkish beys (roughly equivalent to the feudal European term “lord”). The beyliks formed in Asia Minor in the vacuum of power left after the decline of Seljuq centralized power following the Mongol invasions; among them was the beylik of Saruhan, on the western coast of Asia Minor adjourning the Aegean Sea.

Saruhan's flag. Saruhan. Not a similarly-named wizard…
The Ottoman Empire itself started as just one among many beyliks, in the north-western part of Asia Minor, before conquering or otherwise assimilating the other beyliks one by one until it began to expand out of Asia Minor. Saruhan was conquered in 1410. In Europa Universalis IV Saruhan doesn't normally exist, but can be released from the Ottoman Empire.

As a possible nation, it needs a flag, and here I suspect Paradox Development Studios (hereafter just “Paradox” for simplicity) of putting in a shout-out to The Lord of the Rings where Saruman's emblem is a white hand on a black background.

You see, the nation of Aragon (eastern third of the Iberian peninsula, historically joined with Castille to form modern Spain) has an amusing mission that can pop up, named “Defeat Saruhan.” The mission involves conquering a province Saruhan historically held, and is described with the following text:
Saruhan sounds a lot like a threat to the Lords of the West. If Aragon is ever to fulfill their destiny Saruhan must be defeated.
Thus Paradox is certainly well-aware of the similarities, and quite willing to add an in-joke to their game. I suspect that Saruhan's flag is another such joke, as it's highly unlikely such an old, minor state would have an actual flag available to use.

Anyway, have a video of me vectorizing the flag:





Since doing the last of these videos I've changed both my screen-recording software and video-editing software, which I figured I'd note here for any other Linux users aspiring to do similar things.

For screen recording I'm now using Simple Screen Recoder by Maarten Baert instead of Kazam which I was using before. SSR is actually much more powerful than Kazam (which is truly simple), but for the majority of cases you can just leave all its default values alone and it'll be fine. It's simple to use, and the additional power and complexity is there if you want or need it. It unfortunately doesn't come as a Debian package so I had to build it from source, which put me off of trying it for a few months, but it wasn't too difficult to build and is well, well worth it in my opinion. (It does come pre-packaged for a handful of other Linux distros, so be sure to check.)

After running into a whole bunch of crashes with OpenShot Video editor which I was using, I scoured the Internet for any available non-linear video editors for Linux, and tried several. None of them fit my needs and I was about to give up until I tried the very last one I'd been able to find, Kdenlive.  This is by far the best video editor I've found, combining simplicity of use (bar a few minor confusing but easily-learned quirks) and powerful editing features, such as the ability to see the background when writing a title to be overlaid on it. (An ability not to be underestimated, and one which every other editor seemed to lack.) Also it makes speeding up clips much, much easier than OpenShot did (and which one otherwise-decent editor I looked at couldn't do at all!).

Anyway, I hope that helps any aspiring video-makers on Linux out there. A hui hou!

Thursday, June 30, 2016

Speed-Vectorizing Urbino's Flag

I've got another flag speed-vectorization video today (I really need a pithier name for these things). This one focuses on the flag for Urbino, a city in Italy a bit to the north and east of Rome.

Urbino was part of the lands given by Pepin the Short to Pope Stephen II in 754–56, marking the beginning of the Papal State as a political entity. The city and surrounding area were ruled as vassals of the Papal State until it was finally annexed in 1626.

Urbino is the small blue country circled in the middle. The Papal State is the cream-colored land around it.
I'm not sure why Urbino's flag in Europa Universalis IV is different from the actual Urbino coat of arms shown on the Wikipedia page, though given how small the flags are in-game the real thing might not look very good. It at least looks to be partly inspired by the branches in the real thing.


This map took me the longest of any one shown thus far, about an hour and a quarter. Mostly because I took far too long to realize just how symmetric the branches, leaves, and the… yellow things are. What are those supposed to be, anyway? Berries?

Anyway, hope you enjoyed it. A hui hou!

Tuesday, June 28, 2016

Happy Tau Day, 2016!

Happy Tau Day everyone! I've talked about tau before, but if you're new (or don't remember), tau is what pi should have been: instead of the ratio of the circumference of a circle to the diameter, tau is the ratio of the circumference to the radius, which is much more natural given circles are defined by their radii. Mathematically, \(\tau=C/r\). Numerically, the first couple of digits are 6.283185… (hence why June 28 is Tau Day!).

For an excellent introduction to tau and why it's a better choice than pi, look no further than The Tau Manifesto by Michael Hartl. He explains much better, and in much more detail than I can here, why tau makes much sense mathematically, and, perhaps even more importantly, how it simplifies learning more advanced math like trigonometry.

I've talked about tau before, so today I'm just going to briefly explain an experiment you can do to estimate tau. This uses a problem known as Buffon's needle, originally posed in the 18th century. The problem can be stated as:
Suppose we have a floor made of parallel strips of wood, each the same width t, and we drop a needle of length l onto the floor. What is the probability that the needle will lie across a line between two strips?
If we assume that the needle is shorter than the distance between two lines (not necessary, but it simplifies things), then the answer (given in full on the Wikipedia page linked above) is simple: the probability P is given by \(P=\frac{2l}{t\pi}\). This formula can be rearranged to find pi: \(\pi=\frac{2l}{t P}\). Remembering that \(\pi=\frac{1}{2}\tau\), we get \(\tau=\frac{4l}{t P}\).

If you drop n needles (or toothpicks, or matchsticks, etc.), and h of them cross a line, then the probability P can be approximated by \(h/n\). This mean you can approximate tau by:
\[\tau\approx \frac{4l\,n}{t\,h}\]The more needles you drop, the better your estimate is likely to be (barring some sort of systematic bias in how you're dropping the needles).

Anyway, that's it for today! Have a great Tau Day, and do let me know in the comments if you actually try this experiment!