Sunday, September 1, 2013

Halo and Dragons

My son has become a fan of the Halo game. He plays it as much as we allow. Since the Xbox is our primary form for entertainment - with Hulu, Netflix, and Amazon Prime - we have to kick him off fairly often.

He's also a fan of the Eragon books. He's reading, or claims to be reading, a thick one with a green dragon on the cover. He likes dragons. Part of the reason could be my unused D&D collection that serves as a dust attractor.

So recently I asked him if he'd like for me to write a story for him. He replied that he wanted one about Halo soldiers fighting dragons. Seemed right up my alley so I started a short story that I hope to complete soon.

Here's the first few paragraphs.

My name is Sergeant Augustin Xavier Montpellier. For you folks that don't speak Old Earth French, that last name is pronounced Mont-pe-lay. Yes, I know it has an ‘R’ at the end. Think of it like someone’s ugly baby. You see it. You just don’t say it. 
Most people call me Sarge. I’m a Spartan with the Void Hammers. For you Old Worlders not familiar with New Space lingo, Spartan is another word for mercenary. I get paid take care of problems. 

Saturday, August 17, 2013

Family Fun - Space City Con


While on a campout a while back, my wife asked if there were any family activities that I enjoyed. I listed off a few but she wasn't satisfied with my answer. I like camping. I even enjoy it. But it's unlikely you would ever see me jump up and say "Let's go camping!"

For those of you who miss the obvious, I'm a geek. I enjoy more cerebral endeavors. I love all things in geekdom including science fiction, fantasy, and role playing games. I am, however, alone in my family. No one else actually enjoys those like I do, or so I thought.

I also enjoy writing. I've written several novels, published a novella titled  The New Moon Murders, and try to write a few blog posts a week. When the Space City Con announced that  Tracy and Laura Hickman would be running a writer's workshop and Jim Butcher would teach two writing classes I began lobbying the family for a weekend pass. To my surprise, both Zack and Debbie wanted to attend.

It turns out that Space City Con has something for everyone, even the non-geeks.

Zack enjoyed the Mech Corps. These were videogame pods set up so you felt like you were in the cockpit of a giant walking robot. The behemoths fired rockets, lasers, and other weapons at one another while running around the simulated battlefield. If you've ever seen the move Robot Jox or played the game Battletech you know what this videogame is all about.

In theory there were two teams but I didn't see anyone spared who walked into the crosshairs of another player regardless of which side they were on. As far as I could tell, the tactic that worked best was to run around, avoid fire, wait for two other Mech's to mix is up, and pounce on both of them.

While I never stepped into a battlepod, Zack stayed spent most of two hours playing in one.

My son also enjoyed the Live Action Role Play. This involves people running around with foam-covered weapons and beating each other. This is right up Zack's alley since it involves constant movement and simulated violence against his fellow man.

The gave him a Paladin to play first. This character class has healing, is tough, and can soak up a lot of damage. The problem with Zack playing a Paladin is that he would hang back and wait for a large adults back to turn. He would then run up wail on them from behind. I'm thinking rogue might be a better option for the next convention. They get bonuses for attacking from behind.

My wife Debbie enjoyed the cosplay and seeing some of the old TV stars that make celebrity appearances at these events. The shopping was also plentiful with costumes, jewelry, books, and all sorts of things Zack would like for Christmas. She probably enjoyed the hotel and its pool most.

As for me, I enjoyed all of the above along with the writing session. If you enjoy science fiction films, books, or video games, you could do worse than spend a day at Space City Con. It's set up as a family event with a wide variety of panels and people. But to be honest, its the fans I enjoy most.

They have clubs, create costumes, hold panels. What they do mostly is have a great time. If you attend Space City Con, so will you.



Related Links:
Jim Butcher's Writing Advice

Thursday, May 16, 2013

Taming the Chrome Memory Pig

As I wrote in my last post, I've had problems with memory swapping on my Ubuntu system. Swapping is when programs and data are taken out of RAM and put on disk. Systems do this so they won't run out of RAM. Ubuntu, however, ships with a fairly aggressive swapping strategy.

The way I fixed the problem was to reduce the swappiness configurable in Ubuntu but, as I was analyzing that, I discovered that both Xorg and Chrome were eating a great deal of memory. As far as I can tell, Xorg bloats due to applications not releasing display memory properly. I figure there's not much I can do about that.

Chrome, however, was another matter. I found a Chrome plugin called OneTab. This product claims to reduce Chrome memory usage by 95%. It accomplishes this by collapsing all the open browser tabs down to one filled with links which, when clicked, restore the tab with no data loss.

It actually seems to work. The only problem is that restored windows don't retain their browser history so you can't use the back button to return to a previous screen after restoring a window. Still, when Chrome has your system crawling, OneTab is a good alternative.

Tuesday, May 14, 2013

Ubuntu Swappiness

My desktop has been running slow for a while. Granted I have a PoC computuer with only 4GB of RAM but it should suffice to run Ubuntu. The disk seems to grind a lot which usually indicates a lot of swapping. Since the wife and I use different browsers I have to assume one is swapped out over time. This seems odd since the system monitor shows swap space being used even though I have plenty of RAM left.

Enter the swappiness configurable. Here's a cut and past from the Swap FAQ.

What is swappiness and how do I change it?


The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for system and applications if processes are too aggressively moved out of memory.
  • swappiness can have a value of between 0 and 100
  • swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible
  • swappiness=100 tells the kernel to aggressively swap processes out of physical memory and move them to swap cache
The default setting in Ubuntu is swappiness=60. Reducing the default value of swappiness will probably improve overall performance for a typical Ubuntu desktop installation. A value of swappiness=10 is recommended, but feel free to experiment. Note: Ubuntu server installations have different performance requirements to desktop systems, and the default value of 60 is likely more suitable.
To check the swappiness value
cat /proc/sys/vm/swappiness

To change the swappiness value A temporary change (lost on reboot) with a swappiness value of 10 can be made with
sudo sysctl vm.swappiness=10

To make a change permanent, edit the configuration file with your favorite editor:
gksudo gedit /etc/sysctl.conf

Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:
vm.swappiness=10

Save the file and reboot.

I'll try a swappiness of 10 and report back here in a few days if performance improves. The instant I changed it the disk stopped grinding so I am hopeful this will fix my problem.



Sunday, May 5, 2013

Setting up Ubuntu as a Media Server for Xbox and Android Devices

Recently we cut the cord with cable, relying solely on the internet for our entertainment. The reasons were many but not going deeper in the financial hole each month was a strong motivator. Also, our Wii system broke so we needed a replacement media console for Netflix and Hulu. My son wanted an Xbox we decided to go down that path.

The Xbox is a beefier gaming console and now that Zack is older, he wants to play more of the shoot-em-up games which the Wii doesn't support well. The Wii also does poorly with flight simulators, which Zack loves, so I decided to bite the bullet and spend the $300 for a new system.

I was pleasantly surprised to find a pretty sweet deal on new Xboxs. You can get one with 256 GB of memory for $99 if you sign up for 2 years of Xbox live. Since I was going to need the live account anyway, it seemed like a pretty cheap entry point.

What we had:
AT&T cable with a 12 MB internet pipe and phone, Netflix, Hulu, Amazon ~ $200/month

What we have now
25 MB internet pipe, phone, Netflix, Hulu, Xbox Live ~ $80/month

So we're saving around $120 a month. Over a year that adds up.

Before I start on the technical details I have to add a caveat: the wife isn't happy with the number of steps it takes to watch her shows. Some of them I have to find on either Amazon, Hulu, or Neflix. Others I find them on YouTube or other media sources. Still, we only watch a few shows each week so I don't consider this a burden. I think my wife feels differently.

Also, if you aren't going to use your PC as a media server that plays content you've stored there, then you really don't need to read much of this article. Everything I've listed above is well documented and pretty easy to set up. If, however, you want to use your computer as a way to serve up music, photos, and videos then read on.

Also, this is one area where windows is probably a better solution than Ubuntu. I have Ubuntu doing well but the Xbox is a Microsoft product and thus integrates with Microsoft windows really well. I've read more than one post stating people basically gave up and bought a cheap computer to sit next to their gaming console.

So, for you Ubuntu and Mac users, read on.

Recommendations:
  • This assumes you already have a broadband internet connection. Most plans these days will do but the ideal size of your internet pipe depends on how many machines you're going to connect. 12 MB download speed should be sufficient for anything. 
  • For the best experience, I suggest an HDTV using an HDMI cable for connection between the Xbox and the TV. 
Details
  1. Go to the $99 Xbox page - you'll have to sign up for an Xbox Live account for $15 a month then take the coupon to one of the participating stores (Microsoft, Best Buy, GameStop, Toys R Us, or Walmart) to redeem the coupon. You'll have a choice between a larger disk drive and a Kinex system. I recommend more drive space since the 4GB that comes with the Kinex isn't enough to store much.
  2. Purchase your system and install it at home. I would leave it outside of any cabinet, this system runs a hot.
  3. Set up your Amazon, Hulu, and Netflix accounts - its fairly simple. ( you can stop here if you aren't setting up your PC as a media server)
  4. Go to the PS3 Media Server Download page. You'll find links for Windows, Mac, and Linux. 
  5. For Linux, you'll see a pms-generic-linux-unix*.tgz file. Download this and extract the contents to a directory of your choosing.
  6. You have a choice of running the server by hand or setting it up as some sort of service. I still run it by hand but created a script on my desktop to run it. To run it the first time open a terminal window, cd to your extract director and run ./PMS.sh. You should see the window below. 
  7. You'll need to go to the Navigation/Share Settings tab and tell the PS3 Media Server what directories it can access.
  8. Add your Video, Picture, and Music directories here.
  9. I've found the transcoding video media streams doesn't seem to work well from PMS. My devices time out before my POC computer can serve the first of the stream. My advice is to only stream videos your device (Xbox or Android) that they can consume natively. Therefore, go to the transcoding tab and add mp4 and mpv to the 'skip transcode' box. 
  10. I'm not sure if this is needed but I would Quit the PMS and then start it back up again. 
  11. Now go to your Xbox and access the System Media Player under TV and Video. You should see your PMS server available. Now navigate to your content and enjoy!
Diving Deeper

Now for some of the fiddly bits. The MKV format is popular for downloadable internet content but Xbox doesn't support it and, if I read the Xbox support site correctly, they have no intention of supporting it.  A product called HandBrake solves the problem.

With HandBrake I can convert the mkv files into mp4 format which the Xbox reads well. To install on Ubuntu run the following commands in a terminal window
sudo add-apt-repository ppa:stebbins/handbrake-releases
sudo apt-get update
sudo apt-get install handbrake-gtk
This link talks about handbrake no longer supporting xbox and ps3 but other say it does
I installed it and created a m4v format ( basically an mp4 with apple compatibility crap) and it worked fine.

Other media streamers I've experimented with are MediaTomb and minidlna. Both are available from the Ubuntu store (for free) and both work well on my Android device. Xbox won't even see MediaTomb, however and minidlna sort of works for music.

For minidlna, you'll want to follow the config instructions at https://help.ubuntu.com/community/MiniDLNA
On extra thing I needed to do was manually create the /var/cache/minidlna directory then grant global permissions to is since it's used by everyone. The commands are
mkdir /var/cache/minidlna
chmod a+rw /var/cache/minidlna
Android

So this is one of those happy finds. I wanted a way to stream my PS3 Media Server to my phone. I found a package called Skifta available from the Google Play and Amazon store. Not only does it let me watch files served from any of the media servers I've listed in the article, it also share my phones media to anyone on my local network. So now I can watch movies on my phone on my Xbox. I use it on both my Kindle and Samsung.

I'm still experimenting with mkv formats on android. The best option so far seems to be creating either an mp4 or avi out of the mkv. A product called avidemux solves the problem. Just select the file type of either avi or mp4 when saving. It takes a while. After that you have video content your android can read.

I'm not happy that avidemux can't create mp4s or avis that xbox can read. I'm sure with a little more digging I could find the proper settings but this will do for now.

Good luck and happy viewing. 

Links

PS3 Media Server - http://www.ps3mediaserver.org/


Friday, January 25, 2013

Writing Update - Prescription for Revenge


If you read this blog often, you know I'm one of the worst at self-editing and not just in a small way either. I have two things working against me, my ADD and my astigmatism. Combine this with normal writer's blindness and you get a powerful typo machine. I'm lucky enough to have friends that are willing to read an unedited manuscript and help correct the inevitable typos and rough patches.

But there's more to editing than just typos. Stephen King once gave a formula for writing: Final = Draft - 10%. My friends have helped me find a few trimming spots so hopefully I'll come in on target. One of the difficult sections of the book comes in chapter 5 and 6 where my 1930's hero is confronted with the race relations of that era. It's a delicate balance. You don't want to beat the reader over the head with how bad things were in 1930s Chicago but you don't want to gloss over them either.

During World War I, many African-Americans migrated from the jobless South to major metropolitan areas such as Chicago. They filled the jobs left empty by the WWI draft. When the servicemen returned, they found blacks in there old jobs. Conflict ensued.

Red Summer, as it was called, occurred in May of 1919 as race riots broke out in a number of cities. Hundreds of home were burned in the Black Belt of Chicago as black fought white for jobs and territory. Eleven years later my story takes place.

I attempted to write about the feelings my World War I veteran protagonist would feel toward persons of color inside a predominantly black neighborhood. My friend editors did not take this section well. I decided to trim back on some of the content. To be honest, it's against my better judgement but I've done it anyway. The concern was almost universal and so I'm left with writing what I feel is right or writing for the enjoyment of others. I suppose on this round I'll write for the enjoyment of others.

On to the next conundrum.


Monday, January 21, 2013

Writer's Blindness


I learned a hard lesson when I began writing with an eye toward publishing. I have one heck of a time finding my own writing errors. You are truly lucky if you're gifted with wonderful self-editing abilities. The rest of us have real issues finding problems in our own work.

Why is smooth copy so important? Because one of your writing goals is to keep your reader in the story or article without thinking of the words you use. In effect, the words should disappear to be replaced with your concept, scene, or action. This is true regardless of whether you're writing fiction, entertainment, or opinion.

For many, a poorly formed sentence or mis-punctuated passage yanks them out of your work completely. They have to work around the error to figure out what you're trying to say. One friend called these 'hard stops.' It completely derails the reading experience.

This isn't unusual. Your brain is a crafty organ. It knows how to get out of work by skipping things it already knows. The slang term for this is "writer's blindness." You know the story so your brain starts skipping words and misses malconstructed sentences over and over again. There are various tricks to overcome this. One is simply changing the screen and font size on your word processor. Your brain sees it as new and you'll pick out a few more errors.

You write as your inner voice dictates. You read a passage and it makes complete sense to you. If the passage has a missing comma or mismatched verb, your readers may have to reread it a few times to understand what you're saying. The way it sounds in your head his not the same way it sounds in theirs if your mind is playing the skip trick.

One way to avoid this is to read your work out loud. While your coworkers or housemates may think it odd to hear you mumbling to yourself while you work, this is a very effective tool for finding awkward passages. Different parts of your brain's language centers activate when you speak. Often this is enough for you to find those bad spots.

Another trick is to find some friends willing to read your work and criticize it. Note, this isn't just any criticism; it's constructive criticism. Someone who glows over your work as the best thing they've ever read is as useless as someone who just says "it sucks" with no reason as to why.

Encourage your friends to sit down with a red pen or a word processor that tracks changes and write things like "awkward", "had to read twice to get it", "what?", and other phrases that help you, the author, find those hard stops. Also have them mark any grammar issues even if they aren't good at it. If something bothers them, it will likely bother someone else.

Lastly, I recommend finding a professional proofreader. If you find a good one, the money you spend will be well worth it to your readers. I'll have more on that subject in a future article.

Hopefully this article gave you a few tricks to make your writing more readable. If you have other tricks of the trade please leave them below in the comments section.

Tuesday, January 15, 2013

Zack's Journey - Baseball

In our effort to find extracurricular activities for Zack, we tried tee-ball. Debbie's nephews all played and I remember having fun playing baseball in the Y league so it seemed a natural fit. There are some problems that come with baseball, however.

The Leander baseball league for kids is really competitive. Some of the older teams regularly compete in statewide competitions and win. It's a program known for producing college scholarships for baseball.

Sadly, even at the five and six year old level, some of the coaches were incredibly competitive. They played vicariously through their sons and any mistakes were met with harsh criticism. I'll have to say I was proud of the coaches on Zack's team. They didn't suffer from this but others in the league did and I found it disturbing. These over-competitive folks stressed out all the kids during a game.

Another problem with baseball is that the kids wind up standing out in the field for a long time with nothing to do but wait. This really wasn't and isn't the sort of activity Zack enjoys. He and others wound up squatting down and looking at ants or flowers or looking off in the distance at something they found interesting.

We lasted one year and were glad for the experience but, in the end, decided this wasn't the right path for Zack. I will say his coach was amazing and never gave up on Zack. He asked me to bring him back the following year but it didn't work out. Zack was his fastest runner and a good hitter. It was the field work that was problematic and Zack began suffering what can only be described as panic attacks before taking to the field much like he did with soccer.

It was later we learned that Zack had something called Sensory Integration Dysfunction. Basically it's like hearing dyslexia. It made it hard for Zack to react to coaching yells while he was in play. Once we discovered that, we began looking for other sorts of activities that would naturally limit the effects of this issues.

The good news is that we found several things that worked. Those posts will be coming shortly but first, something that came close to working: swimming.


Friday, January 11, 2013

Tech Bits - Reading AOL mail in GMail

In the way of full disclosure, I've had an AOL account for almost 20 years now. I began back in the days when it was $10 a month and was dialup access only. Back in those days, you'd dial into AOL and have access to, well, AOL. It had a build in browser for going to the rest of the web but it wasn't the intranet. It was AOLs portal. It wasn't browser based either. You installed an AOL client on your PC that would be updated from time to time. It was the worlds largest internet walled garden.

Back in those days AOL was a powerhouse that actually bought Time Warner. This turned out to be a bad move for Time Warner as the cable companies made it easier and easier to purchase cheap high-speed internet access. The AOL pricing model collapsed causing Time Warner to spin off AOL in 2009 to leave the sinking ship to its own devices. AOL has since adopted the Yahoo model of being a web portal with exclusive content and email.

And here I sit with my old AOL account that I still use for family matters.

I've used GMail since the beginning and like the interface a great deal. I have several account linked to it from various smaller sites so I decided to take the plunge and have it handle my AOL email as well. The method for this is fairly simple.

Go to the Google Gear in the upper right of the screen inside GMail. Select Settings.


From the new window, select Accounts and Import.


Look for two links:

  1. In the 'Send Mail As' section click on Add another email address you own and follow the wizard.
  2. In the 'Check mail from other accounts' section, do the same for Add a POP3 mail account you own.
At this point GMail will begin importing your AOL messages. In my case, I had thousands. There is a problem, however: all the messages come in as unread. There is a solution to this but it is far from obvious.

Once your messages have arrived from AOL, to the the email search box at the center of the main GMail screen and type is:unread. This puts a filter on your email showing you only the unread items. 

Go to the check box control in the upper left of the screen and select all.



Once you do this you'll get a link above the email list that reads 'Select all conversations that match this search'. Select this and then, in the 'More' drop-down, mark all as read.



Presto, you have all your old AOL mail available in GMail.




Friday, January 4, 2013

Writing - Scrivener


Man is a tool-using animal. Without tools he is nothing, with tools he is all. 
Thomas Carlyle 


If you're serious about writing  you should get serious about your writing tools. You'll need a word processor and Microsoft Word is the big bull in the pasture. There are others, like Libre Office Write, that are as good as word with a lower cost. But all word processors try to do everything for everybody. They mail merge, fax, print labels and envelopes, and all sorts of other tasks that have nothing to do with writing a novel, screen play, or short story.

Thursday, January 3, 2013

Zack's Journey - Gymnastics

A word of caution, the Zack's Journey articles will likely be out of chronological order. I've documented these experiences on other blogs but they came in a random order as I remembered to write them down.

I belive the post below occurred when Zack was 5, in 2008.

Gymnastics
Hotel beds are meant for jumping!
Well, we’re off on another Zack sports event: Gymnastics!