Dear Santa, thank you for the dolls and pencils and the fish. It's Easter now, so I hope I didn't wake you but... honest, it is an emergency. There's a crack in my wall. Aunt Sharon says it's just an ordinary crack, but I know its not cause at night there's voices so... please please can you send someone to fix it? Or a policeman, or... Back in a moment. Thank you Santa.
Saturday, August 13
Oboontoo 2
So, I've done six Ubuntu installs so far this week. Two on Virtualbox on Windows (desktop and laptop), one on VMWare Fusion on Mac (my shiny Retina iMac), one on OpenVZ on our development server, one on AWS EC2, and one on KVM*, upgrading from 14.04. None yet on bare metal, but that's coming soon.
And... Basically, all of them just worked. Ubuntu 16.04.1 gets the coveted Doesn't Suck award.
* I'm moving mu.nu / mee.nu to virtualised dedicated servers - basically, small servers running just one virtual machine each. The virtualisation makes administration much easier, which means that the servers are much cheaper. I can get a full quad-core server with 32GB of RAM and a 1TB SSD for the price of a 4GB low-end instance in Amazon AWS. About 20% slower than a bare metal server (or OpenVZ on bare metal, which has near zero overhead), but about 50% cheaper, so I can just get twice as many.
Posted by: Pixy Misa at
07:00 PM
| No Comments
| Add Comment
| Trackbacks (Suck)
Post contains 162 words, total size 1 kb.
Bluescreenbird Of Unhappiness
Windows 10 has a new and much more cheerful blue screen of death.
You're still dead, though. That hasn't changed.
Update: Usual story:
C:\> bootrec /RebuildBcd
C:\> bootrec /fixMbr
C:\> bootrec /fixboot
Though why it should be necessary for me to do this is another question entirely.
1
And then...
https://uwsgi-docs.readthedocs.io/en/latest/Management.html#signals-for-controlling-uwsgi
Posted by: Ken in NH at Wednesday, August 10 2016 01:24 AM (GYeaQ)
2
It's a Swiss Army application server. With separate tools for getting stones out of the hooves of horses, camels, zebras, and giraffes.
Posted by: Pixy Misa at Wednesday, August 10 2016 01:49 AM (PiXy!)
3
This is the logical endpoint of open source. "Well, if they don't like it, they don't have to use it!"
Posted by: Steven Den Beste at Wednesday, August 10 2016 03:31 AM (+rSRq)
4
Should be part of any CS 101 class. "This is called feature creep."
Posted by: Doug O at Wednesday, August 10 2016 08:16 AM (sdWdc)
5
In this case, it's driven by paying customers. They get the features they pay for, and after a while, most of these make it into the open source version.
While its a bit disorganised, it's very well implemented on a feature-by-feature level; it's reliable and incredibly fast.
Posted by: Pixy Misa at Wednesday, August 10 2016 09:23 AM (PiXy!)
I've been using RedHat-based distros of Linux since 5.1. Not RedHat Enterprise 5.1, which came out around 2007, but the original RedHat 5.1 from a decade earlier. I use CentOS 6 and 7 - the free distribution of RedHat Enterprise - for production, because I know where everything is, and can go straight to the right config file to fix any issue, rather than crawling through Stack Overflow looking hints.
But I really like Ubuntu 16.04. I'd tried a couple of earlier versions and they were mostly fairly blah, but this one shows a lot of improvements. It's fast, the UI is clean, it has good container support and ZFS, and the code repos are comprehensive and up-to-date.
I've ditched Bash on Windows for now, because it's very, very beta, and replaced my old CentOS Virtualbox VMs with a new Ubuntu one. So far, so good.
1
We found Scientific Linux a better RPM-based distro than CentOS, although we've had to stick with 6.x, because systemd. We have developers who keep insisting they need to work on Ubuntu, and when we corner them, it's always because some third-party package they want to use only has one flavor of installation instructions.
-j
Posted by: J Greely at Friday, August 12 2016 03:26 AM (ZlYZd)
2
"Because systemd" really sums it up, doesn't it?
But I have to say, being able to apt install julia or apt install pypy rather than fussing about with tarballs of portable binaries is really nice. And a hell of a lot better than waiting two hours for PyPy to compile.
Posted by: Pixy Misa at Friday, August 12 2016 07:53 PM (PiXy!)
3
[zaitcev@lembas ~]$ dnf search julia
============================== N/S Matched: julia ==============================
julia.i686 : High-level, high-performance dynamic language for technical
: computing
julia.x86_64 : High-level, high-performance dynamic language for technical
: computing
Posted by: Pete Zaitcev at Monday, August 15 2016 05:32 AM (XOPVE)
Explanation: I'm testing some of the features of uWSGI (a lightweight web application server) for the next release of software at my day job. I'd seen promising benchmarks of the RPC feature, but those benchmarks were mostly over TCP. uWSGI also supports local RPC calls, so I tried it in Python, on a little Xeon E3 1230. (Workhorse of the web world.)
It takes 224 nanoseconds to call one Python routine from another via uWSGI's RPC stack.
Which made me curious:
4364561.2 RPC calls per second say "Hello World"
13675770.1 local calls per second say "Hello World"
Okay, there is some measurable overhead there; about 150 ns is spent traversing RPC. I honestly think I can live with that; my fastest function calls are in the 5-10 microsecond range.
What this lets me do is deploy mixed-language apps (PHP, Ruby, Python, and some Lua scripting) with near-zero latency for method calls between languages. Basically, as fast as we can squash results down to JSON on one side and unsquash them on the other.
Pretty neat.
Posted by: Pixy Misa at
11:07 PM
| No Comments
| Add Comment
| Trackbacks (Suck)
Post contains 190 words, total size 2 kb.
Sunday, August 07
Time Travel Girl
Come on. Everyone should know by now that you don't use a defibrillator on someone who -
Wait, he's specifically in ventricular fibrillation? Very well, then. You may proceed.
Update: "If taking back his opinion would set him free, why doesn't he just do it?"
Update: Wait a minute! Did they just create a four hundred year stable time loop using only whipped cream, sponge cake, and a magnetised needle stuck through a cork?
Update: And to top it all off, a practical demonstration of the Curie temperature of iron, which I've never seen done before.
Update: "Did they just create a stable time loop with a cake and a compass needle?" Yes. Yes they did. This series is about three things: The electromagnetic force, stable time loops, and cake. Works better than you might expect.
Promo
I love the music in the promo. I don't know where it's from, or if it was written specifically for this series. It's not the opening theme, which is below, or the ending, which isn't available on Youtube. But without spoiling anything, it is used within the show when the situation calls for it.
Opening
Ending
I know I just said it wasn't on Youtube, but I finally found it by searching for MariWaka rather than Time Travel Girl. (The full name of the show is Time Travel Girl - Mari, Waka to 8-nin no Kagakusha-tachi. Mari and Waka are the two girls in the picture above.)
I'm enjoying this more with every episode. Recommended. Streaming on Funimation and (in Australia) AnimeLab.
Posted by: Pixy Misa at
05:46 PM
| No Comments
| Add Comment
| Trackbacks (Suck)
Post contains 276 words, total size 3 kb.
Saturday, August 06
You Got Linux In My Windows!
[bumped with additional notes]
The Windows 10 Anniversary Update is out, and with it.... Linux!
More specifically, Windows Services for Linux and the Ubuntu command-line environment. It looks like it's based on version 14.04, which isn't the latest release (Ubuntu's version numbers are year.month) but is an LTS release with 5-year support so it's a reasonable choice.
Much tinkering to follow as I build a production environment on my 2lb notebook...
Update 1: If you have a MySQL server running on the Windows side of Windows, you can't start one with default settings on the Linux side, because they will be trying to use the same port on the same IP address. Obvious once you realise that, and easy to work around.
Update 2: Aha! Windows drives are available under /mnt, so /mnt/c, /mnt/d, and so on.
Update 3: There are some quirks, which is to be expected. I tried compiling Redis, and it wouldn't bind a socket. But the Ubuntu Redis package works fine. And MongoDB's WiredTiger storage engine doesn't work, but using the Percona version with their TokuFT storage engine does.
Update 4: It requires a little fiddling to get sshd working. WSL (Windows Services for Linux) doesn't seem to support chroot jails yet, and sshd is configured to use them by default, so it rejects logins even before attempting authentication. (Not to mention before logging the request - you need to run sshd in the foreground with debugging enabled to even see this.)
You will need to set
UsePrivilegeSeparation no
in /etc/ssh/sshd_config for it to work. Since that makes it less secure, I also bound it explicitly to localhost (127.0.0.1) so that remote logins are impossible.
Also, since when did Windows have its own SSH server? I was rather surprised to find it running, and turned it off, but it worked and allowed remote logins (with a password) to the Windows command prompt.
Update 5: Elasticsearch doesn't seem to like running in the Windows 10 Bash Shell Environment Thing. It goes immediately to 200% CPU and stays there, doesn't respond to queries, and might have locked it up and required a reboot. (I'm not sure of that; I was doing many other things at the same time.) That's not fatal since Elasticsearch will run fine on Windows itself, but it's the only thing I've found so far that I couldn't quickly work around.
Update 6: Yrrg. No, sorry, this is all a bit too beta at the moment. I'm heading back to Virtualbox. After running for a while, it either inevitably either grinds to a halt or locks up entirely.
Posted by: Steven Den Beste at Saturday, August 06 2016 01:49 AM (+rSRq)
2
Yep. Windows 10 now runs Linux programs. You could do that before with third party programs like Cygwin, but for that you had to recompile, and not everything worked.
This new system from Microsoft works with existing code, including all command line apps bundled with or compiled for Ubuntu 14.04. That's a very popular version of Linux, so barring bugs, just about anything I'd want to use should work, like Python and MongoDB and Redis and uWSGI.
GUI programs apparently can be coaxed into running, but it's more complicated and I don't care so much about that for the stuff I do.
Posted by: Pixy Misa at Saturday, August 06 2016 05:07 AM (PiXy!)
3
I felt a disturbance in the force, as millions of Linux purists screamed in agony and were silenced. (As they realized that there is nothing they can do to stop MS from doing this.)
Posted by: Steven Den Beste at Saturday, August 06 2016 11:56 AM (+rSRq)
4
Waiting for more and more Windows based services and background functions to transition to the Linux versions, until Windows and MacOS are both considered competing versions of Linux.
Posted by: Mauser at Saturday, August 06 2016 12:33 PM (5Ktpu)
5
MacOS is actually Unix. (And so is iOS.) Android and ChromeOS are Linux, and now Windows runs Linux.
It is finally the year of the Linux/Unix desktop! And also laptop, tablet, and phone and everything else.
Posted by: Pixy Misa at Saturday, August 06 2016 03:28 PM (PiXy!)
6
Steven, if you're a web developer with a Windows laptop, this is brilliant. You get up-to-date drivers for your hardware, you can run Word and Excel and Photoshop natively, and you get your full Linux software stack so you can test locally.
And there are a lot more web developers these days than old-school Unix purists. Enough that Microsoft thought it was worth spending the time to build this tool, even though it competes directly with their ASP.Net stack.
Posted by: Pixy Misa at Saturday, August 06 2016 03:40 PM (PiXy!)
7
The sshd service is turned on when you activate Developer Mode, so that your machine can be used as an install/debug target. There appears to be no way to disable this other than manually disabling the associated services. Apparently they haven't bothered to distinguish between "develop on" and "develop for".
I couldn't get Emacs (even the -nox package) to install, and a quick test shows that the window the bash shell runs in doesn't support the Windows IME or pasting kanji, so it's still got a ways to go to be as useful to me as a Mac. Even with Photoshop and Perl. :-)
-j
Posted by: J Greely at Sunday, August 07 2016 07:19 AM (ZlYZd)
8
Thanks J. That certainly explains why I never noticed ssh running before!
I was able to install Emacs without a problem, but overall WSL doesn't seem to be very stable yet. It is in beta, but it feels more like an alpha.
I'll give it a try on a less cluttered machine (I have a notebook with a fresh Windows 10 install) and see if that helps, but I think it needs another six months of work before it's really ready for use.
Posted by: Pixy Misa at Sunday, August 07 2016 11:01 PM (PiXy!)
9
I had to nuke it and reinstall to get Emacs working. Somehow I'd gotten the package manager into a state where it refused to do anything. Between the official FAQ and the Fun with WSL blog entry, I got it sorted out on the second install.
Their Github issue tracker has some interesting things on it, including a promise to eventually provide offline installs, so you don't have to download from the Windows Store every time. That would be particularly useful when you've really hosed things.
Honestly, I think the best thing about it is that you don't have to deal with the Ubuntu team's attempts to emulate the Windows look and feel; you can just use Windows. :-)
-j
Posted by: J Greely at Monday, August 08 2016 03:52 AM (ZlYZd)
10
It got totally wedged for me as well, and I've done a forced reinstall. (Had to manually delete the previous install files.)
I'm going to try something simpler now; all I really need is Python, Ruby, PHP, Lua, and uWSGI.
Posted by: Pixy Misa at Monday, August 08 2016 10:29 PM (PiXy!)
A little over a year ago, I wrote an item titled Five Good Things about five promising advances or trends in computer technology.
These were:
3D chips
USB 3.1 / Type-C
NBASE-T
Retina displays
2.5D chips
Shingled storage
Where are we a year later?
3D chips are taking over the SSD world. Samsung, Micron, and Toshiba all have 3D flash memory in production, and it performs significantly better than 2D flash while also lasting ten times longer. What it is not, yet, is any cheaper than 2D, because it takes a lot of extra steps to manufacture the 3D chips.
USB 3.1 and Type-C - and Thunderbolt 3, which is based on USB 3.1 and the Type-C connector - are also taking over. The only major company that doesn't have products with Thunderbolt 3 yet is Apple - which is a little odd, since they were the champions of Thunderbolt versions 1 and 2.
NBASE-T on the other hand is nowhere to be found in the consumer market. This makes me a sad bunny, because Gigabit ethernet is about eleventy billion years old now and 10Base-T still isn't affordable.
2.5D chips - that is, the use of silicon interposers, putting individual silicon chips on a larger piece of silicon rather than directly on a circuit board - are still limited to a few graphics cards, but will likely expand in 2017 when HBM2 memory starts shipping in quantity and AMD's new Zen APUs and Vega GPUs start shipping.
And shingled storage, basically, just works. I have a backup server with a RAID array of 8TB shingled drives that cost me less than one with the same number of regular 4TB drives. The firmware does a very good job of hiding the quirks of shingledness, so long as your workload is either mostly reads or mostly sequential.
Shingled drives are alternately great and terrible and random writes - for the first 20GB or so, they are the fastest spinning drives available, and then they fill up their buffer area and become the slowest. The difference between buffered performance and sustained performance is two orders of magnitude. I've only run into this once, while doing a Linux update and a RAID array sync at the same, but when it happened I was getting IOPs in the single digits.
Posted by: Pixy Misa at
05:33 PM
| No Comments
| Add Comment
| Trackbacks (Suck)
Post contains 391 words, total size 3 kb.
Sunday, July 31
Terrarium
I sank over a hundred hours into Terraria back when it was fairly new, before it died its untimely death and then undied again.
Now that Starbound is out (and honestly kind of meh) I was curious as to what was up with Terraria these days. Here's part of the changelog for the recent release of version 1.3.1:
Added Logic Gates (AND, NAND, OR, NOR, XOR, NXOR)
Added Logic Gate Lamps (On, Off, Faulty)
Added Logic Sensors (Day, Night, Under Player)
Added Liquid Sensors (Water, Lava, Honey, Any)
Added Conveyor Belts.
Added The Grand Design.
Added Yellow Wrench.
Added Junction Box.
Added Mechanical Lens.
Added Announcement Box.
Added Actuation Rod.
Added Team Blocks and Platforms.
Added Static Hook.
Added Presserator.
Added Engineering Helmet.
Added Companion Cube.
Added Gem Locks.
Added Large Amber.
Added Weighted Pressure Plates (4 colors).
Added Wire Bulb.
Added 12 new craftable Critter Statues.
Added Portal Gun Station.
Added Trapped Chests.
Added Projectile Pressure Pad.
Added several new monster statues.
Added Angler Tackle Bag.
Added Geyser Trap.
Added Bone Campfire.
Added Ultra Bright Campfire.
Added Multicolor Wrench.
Might need to fire it up again...
Update: Starbound gets better. In Terraria, you spend most of your time on a single world, defending it from various menaces. In Starbound, things don't really get into gear until you get off your starting planet. Unlike Terraria, where you have to build (or rebuild) everything yourself, there's a functioning civilisation in Starbound. You just need to find it.
1
Sadly, Terraria got rid of infinite houses in 1.3, which I'd never heard of before today while I was looking something else up.
Posted by: Rick C at Monday, August 01 2016 12:40 PM (EsJO/)
2
I hadn't heard of that one before either. But it's a pretty blatant bug, and might have had other side effects, so I'm not surprised they patched it.
Posted by: Pixy Misa at Monday, August 01 2016 04:10 PM (PiXy!)
3
I gather--if the forum posts I read were correct--that it, along with the "NPCs can now defend themselves" created situations where you could turn goblin invasions into AFK meat grinders.
Posted by: RickC at Tuesday, August 02 2016 11:34 AM (EsJO/)