Computer generated electro music


Do you want your computer to generate some music for you? Then you are in luck - the following code snippet does just that (Linux only; adjust the playback method for other systems). The resulting “music” will play for about 4m22s and then loop back. The attached audio is just a short sample. $ echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay (If aplay gives you error, try putting the C code into a *.

Read more...

Opera SlackBuild update

I reworked my Opera SlackBuild, now it can be used to make packages for all three Opera flavors: Stable (not yet released), Beta and Developer. I also included an option to build local ffmpeg libraries for the browser to support H.264 video and MP3 audio in HTML5 players. BTW, thanks to ml4711 from LQ for the solution to my problem with dynamic library linking! See README file for details about possible options.

Read more...

SlackBuilds batch

I’ve been a bit busy with script writing, as you can see. But let me tell you everything in the right order. Mintstick As I said in my post on Google+, there’s a shortage on tools for USB sticks formatting. The one I chose in the end was mintstick. It’s simple enough for the average PC user and doesn’t have many dependencies. I was also considering Gnome Disk Util, which is for some reason like alpha and omega of easy to use formatting tools, but it requires gnome-common at very least, so I decided to go with mintstick, which I really liked.

Read more...

Mass Photo feather for Chyrp

It took me a couple of days (the whole weekend minus time for watching livestreams) and a lot of effort (I don’t know PHP and generally can’t write anything more complex than simple scripts), but it seems to work. The result is my previous post. The feather (extention for Chyrp blog CMS that provides new format for your posts) is based on the default Photo feather, except there’s no Alt-Text field.

Read more...

Opera SlackBuild

Not Presto, but the new, Blink one, that is based on Chromium. Shitty or not, this is new Opera, and this is their first release for Linux. It’s been only a year… Anywho, I wrote a SlackBuild for it. It also makes use of alienBOB’s Chromium PepperFlash package, so now you can have the latest Adobe Flash in two browsers (which are basically the same thing though). Be warned that:

Read more...

Popcorn Time SlackBuild

Yesterday I discovered Popcorn Time. No, I’ve heard about it for a while, but I only tried to watch something with it yesterday. (If you’re interested, it was Madagascar trilogy after I watched this video.) It’s very convenient: just fire up the app, choose your movie and hope you have enough popcorn. You may say something about piracy. Yes, the app is very controversial. But I have two reasons to use it.

Read more...

Code

#!/usr/bin/env python #-*- coding: UTF-8 -*- import sqlite3 import mutagen.id3 from mutagen.easyid3 import EasyID3 from mutagen.mp3 import MP3 from subprocess import call def getStuff(database): conn = sqlite3.connect(database) c = conn.cursor() result = c.execute("SELECT LocalCopyPath, Title, Album, Artist, Composer, Genre, Year FROM MUSIC WHERE Id IN (SELECT MusicId FROM SHOULDKEEPON)") stuff = [] for track in result: stuff.append(track) # Let's be good programmers and close the connection to database, even though there were only read operations conn.

Read more...

fsLeg

It turned out, that I need a full featured website much less than a simple blog. I don’t want to have a blog on Tumblr, but I do like their implementation of it, so I went with Chyrp, which is pretty close. But then Chyrp died, so I moved to Hugo. The blog is NSFW, as I might occasionally post some pr0n and other disturbing stuff.

Tags
Archives