Storing a user’s input in MIPS

You are not using the read string system call correctly. I suspect you haven’t actually looked at the documentation on how to use it. You have to pass two arguments: So you should do something like: Nevertheless, this shouldn’t cause a crash since $a0 should still hold the address of firstPromptString that you set up for the printing, earlier, and that … Read more

How to run Pip commands from CMD

Little side note for anyone new to Python who didn’t figure it out by theirself: this should be automatic when installing Python, but just in case, note that to run Python using the python command in Windows’ CMD you must first add it to the PATH environment variable, as explained here. To execute Pip, first of all make sure you have it … Read more

Display Animated GIF

Android actually can decode and display animated GIFs, using android.graphics.Movie class. This is not too much documented, but is in SDK Reference. Moreover, it is used in Samples in ApiDemos in BitmapDecode example with some animated flag.

Easy pretty printing of floats?

It’s an old question but I’d add something potentially useful: I know you wrote your example in raw Python lists, but if you decide to use numpy arrays instead (which would be perfectly legit in your example, because you seem to be dealing with arrays of numbers), there is (almost exactly) this command you said you made … Read more

How to compile makefile using MinGW?

Excerpt from http://www.mingw.org/wiki/FAQ: What’s the difference between make and mingw32-make? The “native” (i.e.: MSVCRT dependent) port of make is lacking in some functionality and has modified functionality due to the lack of POSIX on Win32. There also exists a version of make in the MSYS distribution that is dependent on the MSYS runtime. This port operates … Read more

Creating a maze solving algorithm in Java

You probably should module your program – as I can understand it, you are reading the maze from file and trying to solve it at the same time. A better approach will be to split the program into 2 distinct parts: read the input file and create a matrix with all the data solve the maze from … Read more

How do I set up Eclipse/EGit with GitHub?

Make sure your refs for pushing are correct. This tutorial is pretty great, right from the documentation: http://wiki.eclipse.org/EGit/User_Guide#GitHub_Tutorial You can clone directly from GitHub, you choose where you clone that repository. And when you import that repository to Eclipse, you choose what refspec to push into upstream. Click on the Git Repository workspace view, and … Read more