Posts

Golang won't import remote packages without a top level domain

I was trying to pull a Go package from a private Github enterprise server that had no top level domain (TLD) in it's hostname. Just git . Internally it resolved to git.company.net but was accessed just through git . My issues started then the go tool tried to pull a dependency from the import path "git/JesseMichael/project/package" but failed with the error: unrecognized import path "git/JesseMichael/project" (import path does not begin with hostname) go/src/cmd/go/internal/get/vcs.go#L766-L769 host := importPath[:slash] if !strings.Contains(host, ".") { return nil, errors.New("import path does not begin with hostname") } Go does not allow you to have a remote import path for a server without a . in the hostname. But changing the import path to include the full hostname doesn't fix the problem. When the import path is "git.company.net/JesseMichael/project/package" I would get the error: parsing...

Rest in Goodness

Does anybody still try and argue 'Would a morally "good" person who never heard about God get into heaven?'. I believe that thought truly misunderstands the infinite holiness of God. That thinking rationalizes small infractions against God to meet human standards when the punishment for sin is death. But that makes having Jesus as a savior even more amazing! That he is the plan to save mankind from their sinful lives to bring us into his family. Not by the "good" things we've done but by who Jesus is! Is there really no other religion other than Christianity that is based on a savior and not by works? I've heard that so many times, but shouldn't that fact drive everyone far away from all other religions? Who would want that weight on their shoulders? Who can live up to that standard of only making it in by being perfect? And doing what is "good" out of fear? When I struggle with my sin, I remind myself of what Jesus has said. This v...

Battling Jackson

This week at work I spent far too much time battling the FasterXML Jackson JSON library that I feel the need to write about the struggle. What I wanted to do was to be able to deserialize my models through multiple levels of polymorphic inheritance working off of different property values. In this case I was developing in Scala. When trying to find a solution, I kept seeing people use the example of a zoo, So I will use the Zoo example in my work here. The more I need to do custom JSON parsing with Jackson, the more that I have become familiar with their annotations. And this task would have been really easy if I could use the JsonTypeInfo and JsonSubTypes annotations, but I discovered a limitation that has been set in Jackson's Parser. Eventually this Stack Overflow question led me to this Jackson Github issue where it explains: No, full inheritance is supported, but you can not use separate type discriminator properties: it is not possible to use, say "type" AN...

Remove Specific Namespace from XML

Recently, I needed to come up with a solution to remove a namespace from a scala.xml.Node. I couldn't find anything online that would solves this specific problem. I found some help removing all namespaces from the Node, and built my solution off of that ( http://stackoverflow.com/questions/12535014/scala-completely-remove-namespace-from-xml ) But I wanted to share my code to remove a specified namespace incase this helps someone out there trying to do the same thing. Loading GitHub Gist ... This Snippet of XML rewriting code will loop through all of the Nodes within a given Node. On each of the XML Elements it will take the namespace you want removed and: - remove entire elements that are prefixed with the attribute - remove attributes that are prefixed with the namespace - remove the namespace from the scope of the XML Element This will result in the following transformation: 123 456 789 10 123 789 10 When used like this: val transfo...
Image
Like many other people, Ludum Dare 29 was my first.   This weekend was so exciting but so stressful. There was so much I wanted to do with my game, but it may have felt short. Irregardless, I am thrilled that I ended the weekend with anything.     I tried to keep my design super simple. A hero, a Monster, and their combat. And for this game I decided to try using Unity for the first time. I fell in love with Unity within the first hour of starting. I’ve never had such an easy time organizing a project. I loved how easy Unity makes animations. And I love how everything i could need was available to me.     To play my game, click the screen, drag back add force, and release. The arrow will fire in the angle of the start and end clicked positions. This is fairly boring as a gameplay mechanic, I know. But I am only encouraged to make the game feel more fun, and to try harder to create fun gameplay in my next Ludum Dare.   http://www.ludu...

Long over due update

Hello blog, It's been a long time since I have updated you, and there has been so many great things I want to tell you! I hope you'll be happy to know after ask my hard work and searching and waiting I finally have a career in software engineering! I have been working at Unicorn Media for 2 weeks now. It is the best job in the world! I feel like this is what I have been waiting for all along. In other news, Cameron is back in California for one more semester at CBU. I miss her alot, but it's okay we're happy! Also, I have a new car. One with air conditioning and a stereo and everything! Things are pretty good right now, and I an very grateful fit the gifts that I have been given. I just thought you should know.

Phone Buddy is on Android

Phone Buddy is now on Android! After a lot of headaches and frustration and learning a new framework that did everything backwards from what I was used to,  the app is finally ready! Search for "Phone Buddy on your Android phone or tablet or click here . Go and give me a good review! Also look for it in the Amazon app store here . Converting my C#/XNA Code to Java/AndEngine was a lot of work, but it was well worth it. I'm so happy that I can show off my talents to a larger audience. I guess the next task would be to create an iPhone version... But I don't have a Mac yet. So, until I do, I guess I will keep responding to user feedback on Phone Buddy. Or maybe it's time to start a new project!