Today’s going to be a bit of a cheat because GifGuide is still semi-on hiatus and Pivot Tables don’t involve code. They can, however, help you avoid coding in instances where you just want to summarize a massive pile of data.
No need for Python. No need for VBA. It’s just built into Excel.
Continue reading “What the Heck are Pivot Tables?”
There are two options for drawables in Android Studio—the first is to inflate an image (PNG or JPGs) and the second is to define the drawing you want in an XML file. The XML route is what I’m looking at today.
Continue reading “Java: How to Handle Drawables”
Arrays have a beautiful way of condensing code. To put it simply, an array is just storage space. It’s a closet. You throw data inside, so that it’s easier to find and use later.
Continue reading “Java: How to Use an Array in an App”
Last week we covered how toast happens in Android Studio. Today, we’re going to make it a tad more dynamic with an if/else statement. Going back to this Riddler App, I want to add hints for the user if they can’t guess the answer outright. Quick reminder, our test riddle was “What has a neck but no head?” Most people start guessing insects for that one (isn’t an earthworm basically all neck? you might argue), but the answer we’re looking for is “A Bottle.”
To keep the mystery alive, we’re going to keep hints semi-living creatures related. If a user hits the Hint button once, a toast message will pop out reading, “It has no fingers or toes either.” Otherwise, the toast will say, “And lives all over the world.”
Today’s tutorial is a continuation of How to Make a Genuinely Basic App. All we’re doing is adding a method to give a new button a job. This is the coding equivalent to dipping a toe in the water so as to not become overwhelmed at the sheer horror of all the java inside a basic project in Android Studio.
The method of choice for our experiment—toast.
Continue reading “Java: How to Add Toast to an App”
I’m back! After a short 14 month siesta, I’ve decided to change gears and pick up App design.
Don’t worry. Today’s tutorial is going to be extremely light on the coding because for the most part, we’re just generating a hoard of files with pre-written code. After that, this is going to be an exercise in strategically ignoring all but the most essential bits required to make an Android app. Our goal is to adapt a few key pieces of that code to lay the groundwork for java tutorials in the future.
Let’s get started.
Continue reading “Java: How to Make a Genuinely Basic App”
Regex is one of those massive pains in the ass that’s just too helpful not to learn. I won’t pretend it’s fun. I’d put Regex at the same level of No-Dear-God-Why-Is-This-Happening as an enema or a certified letter from the IRS. But once you wrap your head around it, you’ll be wanting to use them all the time because they make everything else just… stupid easy.
Continue reading “Python: What the heck is Regex?”
Did you know that if you go to Google Docs and try to load a csv file with 11,920 rows and 92 columns, you’ll likely get a warning like this?
Continue reading “Python: How to Parse CSV Files”
Today I’m stretching my use of the word “code” to include memory hacks.
There exists a memory technique called the Roman Room, or Method of Loci, in which you associate information you want to remember with specific places in a house or building you know. For anyone who has better recall on spacial data or visual imagery, it’s ideal. That’s me in a nutshell.
Continue reading “A Roman Room: 1900-1910”