Posts

Showing posts from 2013

Spell checking on your Git commits with VIM!

Image
Hey all!  This is a quick tip for all you guys using git version control, and the command line.  Have you wanted to get spell checking into a basic editor but wasn't sure how to get it in vim automatically (but maybe you don't want to enable it in your ~/.vimrc for everything)? Lucky you, I have an easy solution.  To enable spell checking in vim for all your git commits, it's as easy as one command.  In bash type (or copy paste, I won't tell anyone you dirty cheater): git config --global core.editor "vim -c \"setlocal spell spelllang=en_us\"" That's all there is to it.  All your commits on all your projects will now use vim with spell check on by default.  That's US English of course, for other languages please substitute your language type. To get help on spell just type in vim: :h spell Here's some basic commands to get you started : ]s next spell error [s previous spell error zg add word to spellfile (corre
Want to help me make Text Message Scheduler work for you?  Please join the discussion on improvements on Reddit! http://www.reddit.com/r/Android/comments/1crmno/can_i_get_feedback_on_my_text_message_scheduler/ Thanks Guys!
Image
Hey guys, take a peak at my new Text Message Scheduler app (BETA) and let me know what you think. https://play.google.com/store/apps/details?id=com.razzlegames.textmessagescheduler "Remind your husband to deposit that check after work! Ask your wife to pic k up some eggs after Billy's soccer practice! You won't have to remember, just schedule it with Text Message Scheduler. Text message scheduler will allow you to send a text message in the future when ever you want. 1 hour from now a few weeks from now, 10 years from now, TextMessageScheduler doesn't care! Text Message Scheduler is so easy to use too."

Arcade Style Physics Monkey Game

Image
Well here's a little progress report on what I am working on. Over the last few months, I have been playing with and learning all the Android quirks, while posting here (as you may see from my previous entries). While doing this I have been active in creating an Android game in my free moments with a pretty simple but fun premise.  Throw projectiles at enemies and kill them  Clear all enemies to end level or free Monkey friend Perhaps avoid hitting some objects (evil monkey, some enemies that multiply if hit ;) ) Clear certain blocks to find hidden goodies Obtain all objectives to earn all full credit for level (Bananas? Stars? Dentures? ) Projectiles will be stupid fun, like poop, numbchucks, bombs, kittens, skulls, shoes and anything else I can think up.  I'll make the physics different on each one and try to tie it to the level objectives.  Angry Birds Clone? No no, not really.  I really want to get back to the qu

Tutorial: How to set up Smart Pointers and TR1 C++ in the Android NDK

Image
Optimus prime is a smart pointer.  Memory leaks?! He'll straight up kick you in the throat! This isn't Go Bots son! What's the point If you have ever coded in C or C++ you know you've had a memory leak some time or another. Ownership semantics are best, but sometimes those are muddy and, most of the time, the benefit of automatically reclaimed pointers far outweighs any costs (they are not much in terms of resources). What are smart pointers?   These are pointer containers/classes with reference counting and ownership semantics built in.  The easiest to understand and use is shared_ptr , which when all references are gone delete's the object from memory, and as expected calls the objects destructor (if it exists). For example if you create a raw pointer in a function (and don't store a reference to it anywhere else)  you would get a memory leak! void leak_function() { Sprite* sprite = new Sprite(); // Use sprite // After functio

Emacs/Vim: Jump to errors for Java and C++ on Android

Any of you guys use vim or emacs to develop Android apps?  I sure do.  No substitute for a good editor.  Only problem is when I am doing NDK code and Java mixed (like so many others who develop games), the editor won't go to the errors in Java code since Ant formats the error output strangely. Well fear not folks, it is an easy fix.  I usually do all my development in a Makefile that calls ant for the Java stuff and the normal ndk-build for the JNI stuff: http://code.google.com/p/razzlegames-android-ndk-tutorial/source/browse/trunk/Makefile You simply add the -emacs option to your ant command.  I personally bind a function key to :make in vim, and have the ant command as one of the default targets.  It ends up being called like this for debug builds: ant -emacs  debug Now, with this addition, Vim and emacs will jump to all your NDK and Java errors for Android development. It's as easy as that folks!  Happy Viming!