Jukebox is available for download!
I’ve decided to go ahead and give out the source code for my Jukebox project. It’s not much, but I figured it’s better to let people take a look if they want. I am offering no promises that this will compile on your system, but I’m just getting it out there. You can post in the comments if you’re having trouble, but I’m not yet familiar enough with C++ to offer much help.
So here is my first release. Dependencies are a c++ compiler, the ncurses library, and the FMOD Ex library installed. I have compiled this project on both Linux and Windows, but it may take a bit more work to compile under Windows which I have outlined in the README.
I have included the program compiled under a Linux i686 machine. You will need to recompile if you are not using Linux or if you have a 64-bit operating system.
Enjoy! I added some screenshots to an imgur album here. Any comments? You can message my Tumblr account, add a comment to the post, reblog with a comment, or send me an email to the email listed in the README.
What about the source code?
I have also made the two source files available for online viewing on Codepad:
Jukebox.cpp - Contains main() and most of the jukebox and ncurses logic.
player.h - Contains the Player class which accesses the FMOD sound library.
Jukebox is controlled completely through your keyboard. Here are some keys to know:
- Arrow keys. Up and down change your song selection.
- Use Space to start a song.
- Press ‘p’ to toggle pause/play.
- Press ‘n’ to play the next song.
- Press ‘c’ to change the color scheme, and ‘i’ to invert colors.
- Press 1-3 to sort by a column. 1 sorts by the first column, 2 sorts by the second, and so on.
- Press 0 to randomly sort all the songs, also known as shuffling.
- Press ‘q’ to quit.
Thanks for taking a look! Any feedback is more than welcome.
This is the latest project I’ve been working on. It’s a jukebox mp3/ogg player that is run completely in the command line. Written in C++, this jukebox uses the ncurses library (or pdcurses on Windows) to create a user interface. The program reads files out of a directory and sorts them according to their tags. The program also supports color changing if your terminal supports it. The best part about this is that it weighs in at only 5 MB of memory usage! Very lightweight.
I might write more on this later and release the code if I get around to it. Here’s another screenshot so you can get an idea of how it looks with different color schemes:
Tumblr spam accounts are only in it for ad revenue
I’ve been getting tons of spam lately from a new form: people “liking” my posts. It seems relatively harmless. I leave for the day, and come back the next to find that I have ten blog updates for various people liking something on my blog. I’m glad to see that until I actually look to see who it is that’s liking my posts. I think I’ve found out what all this spamming is for.
Being a programmer does not make you a genius
Why do people assume that I can help them with anything remotely related to computers at all just because I like to program? I’m not some sort of wizard at all things mechanical. I don’t know why your off-brand phone doesn’t sync contacts correctly.
Image lightbox previews improved!
So, as I was finishing up coding my jQuery plugin yesterday, I needed a way to minify, or compress, my plugin code so that it would download faster for my readers. The person whose code I modified to make the plugin had left a strange-looking comment at the top of his code that looked like this:
/**! * @preserve Multi-value shadow animation jQuery-plugin 1.8 */
I wondered what