A Note for My Stupidity

I’ve been working on learning how to create plugins for Bukkit/Spigot for Minecraft servers. This has been a pain in the ass, and one thing that has kept me from achieving things is being able to read from a simple config file. That’s not special when you’re trying to get it from the main class, but from another class, it’s more difficult. There’s tons of ways people have for doing this, but I ran across the simplest damn method ever thought up ever. Other methods basically have you creating 2 different classes to read from and write to a config file. While that’s great for more advanced purposes, for me right now all I needed to do was access it. Besides, the other ways didn’t work. So what’d I do? This.

String vprefix = Main.getPlugin(Main.class).getConfig().getString("prefix");

The important part about that code is the Main.getPlugin(Main.class).getConfig().getString("blahblah");. It’s important because all it does is go to your main class, knock on the door, ask it to read from a file because that would be the neighborly thing to do, and then tell you what it is. That’s it. It’s that stupidly simple. No extra classes required.

Posted by Zack, 0 comments

Ubuntu 16.10

Today, Canonical released Ubuntu 16.10 (codename Yakkety Yak). This release is fairly exciting as it introduces some new stability to Unity 8 that we haven’t seen before. I personally don’t care much for Unity 8 yet, as the new snaps (to me at least) don’t seem very groundbreaking. However, as with every new release, there are just simple updates. The updates include LibreOffice 5.2, GNOME apps have been updated to at least 3.20 (including Nautilus), and now systemd is used for user sessions.

That isn’t very much for this update, which I think is fine. The major thing that Canonical seems to be focusing on these days is Unity 8, and trying to push that forward. I think the theory behind Unity 8 is fine, but I don’t see many phones or tablets using Ubuntu with Unity, especially when Android is already in existence and Unity on phones and tablets just isn’t a great experience.

A lot of Linux distributions and desktop environments seem to be pushing for a universal platform, and while I think that’s fine, I just don’t think we’d actually see any of it in the wild. I like the Apple approach, where things are linked together but nothing is trying to use the exact same thing as the other. iOS is its own thing, and so is Mac OS. Likewise, the Desktop experience should be different than the mobile experience elsewhere in my opinion. Trying to package something that’s universal would be good in theory, but gets harder to do when introduced with more and more hardware SKUs. Who knows though, I could (and probably will) be proven wrong.

Now then, there are new updates to the server side of things (although the majority of servers in enterprise environments probably still haven’t switched from 14.XX). 16.10 on the server side brings an updates to OpenStack, qemu, DPDK, libirt, Open vSwitch, LXD, cloud-init and docker. These are things that I personally use quite often, and seeing them updated makes me happy. The update on the server side that I’m most excited for is LXD, although I personally am indifferent about the AppArmor feature.

As always, I’m still excited to see where Canonical goes with Ubuntu, and can’t wait what they do next. Fingers crossed that something big actually comes out of Unity 8, and that some other rather important things happen (though I’m not sure what they would be).

Posted by Zack in Thoughts & Opinion Combo, 0 comments