I updated my SoundSwitch Application.
You can install it by going here.
The purpose of SoundSwitch is to be able to easily switch between 2 or more Audio output devices.
For example, I have a wireless headset and my regular speakers.
Both are detected as a separate audio card in the sound panel.
The only way to switch between them is to open the playback devices panel and select one of them and choose to put it as default device.
That’s such a hassle!
With SoundSwitch you just press Ctrl+Alt+F11 and it toggles between the cards you selected.
Todos:
Let the application start up when the user logs in. (currently you have to start it yourself)
Allow users to set their own shortcut (instead of Ctrl+Alt+F11)
Make the configuration easier. (Won’t be possible I’m afraid though)
UPDATE: Changed the hosting to CodePlex, apparently you can host ClickOnce applications there!
This small plugin will scroll to a selected element when calling .scrollTo() on it.
It has an optional parameter which specifies the duration of the scroll.
For example, if i would have a div with the id “#mydiv” I would let the screen scroll to it using this code:
$('#mydiv').scrollTo();//Or, if you want the animation to be slower
$('#mydiv').scrollTo(2000);
The top of the selected element will be displayed at 50% of the screen unless the scrollbar is too short, then the element will be lower on the screen.
On weekdays I live by myself in Brussels to be closer to the University.
Of course, I have to do my own shopping and buy food supplies myself.
I also have to keep track of what’s in my fridge and what’s expiring when.
I suck at that.
However, I’m good with computers. And computers are good at keeping track of stuff.
So I created a small tool to do just that, Fridgemon.
With only 5 million speakers it’s not very easy to find resources on learning Norwegian compared to other languages. Listed below is a compilation of the resources I found while looking for learning materials. Norwegian is the first language I’m consciously learning on my own, not in a school environment. (I say consciously because I learned English by watching a load of movies and series, I didn’t really have to make an effort then) I’m currently a complete beginner in Norwegian with only 25/30 Pimsleur lessons done and some extra vocabulary with Anki. » Read more: Learning Norwegian – Some resources
The project I was talking about in the previous post was this one, bulktts.
With Google Translate you can only listen to the sound of the text you typed in, but you can’t download it.
I found a url which with the right parameters lets you download the mp3 file generated by Google Translate, but if you need a bunch of words converted to speech this is a a tedious job of changing the url, save as.. etc.
Bulktts allows you to choose a language, paste your list of words in and download a zip file with the mp3′s.
There are still some bugs though, at the moment words with special characters won’t product the correct sound. Update: Sound bug fixed. Only the filenames for special character words in zip files are still not correct.
I needed this for something where I wanted to send the visitor of a website a bunch of files he selected at once.
An easy way to do this would be to add the files to a zip file and then send that zip file to the user.
Unfortunately Python doesn’t have an in-memory zip file library, you can only interact with zip files on disk.
After a bit of googling around I came to this StackOverflow answer.
That worked like a charm, and here is my more reusable version:
Save as “inmemoryzip.py” and import it as “inmemoryzip”.
This is quite limited compared to the standard ZipFile class, but this gets the job done for what I needed it.
I have an Artificial Intelligence course and one type of search algorithm handled is Genetic Algorithms.
Very interesting because it uses the principle of evolution to find a solution to a problem.
You start with a population of begin states and each state has a ‘fitness’ which indicates how close it is to a solution.
Based on that fitness you will crossjoin or mate 2 states. Higher fitness = higher chance of mating.
I implemented the example given in my AI course’s slides in python.
The example is trying to find a solution to solve an n-queens problem, in this case 8 queens on an 8×8 chessboard.
Briefly explained: you need to place 8 queens on a chessboard so that none of the queens can attack eachother.
(A queen can move like a Bishop and a Tower, horizontally and diagonally)
The previous post was about the basics of setting up an application using Django on Google App Engine.
This one will continue on that as we follow the Django Tutorial for building a poll application, but with some modifications so it will run on GAE.
It’s been a while since I’ve written something here, that’s cause I’ve been quite busy with school. (recreational as well as educational :))
I was planning on writing a big series of blog posts about solving the exercises in SICP as a way of studying for my exams, but as I was solving them I noticed there are quite a lot of them and there are a bunch of pretty hard ones in there so that didn’t quite fit in my schedule :)
But I’ve made a start so I’ll probably continue it one day or an other.
As I was studying I naturally got bored of it, so I looked for more interesting things to do – Learn something else :D
I already looked for information about setting Django up on GAE (Google App Engine) but only found information scattered on different websites/blogs/.. but I finally managed to figure it out.
This post should serve as a single list of instructions to follow how to get Django running on GAE.
I was asked by Davy how my previous code would be written in idiomatic python.
First of all I had a vague recollection of what idiomatic meant but I looked it’s meaning up just to be sure.
And then I had to find out how this relates to Python.
I’m Jeroen Pelgrims, currently transitioning between student and developer.
This blog is about things I have learned or discovered. It will mainly be about computer related things, especially programming.
If you see me write something wrong or something that can be improved, please tell me by writing a comment. Help me learn.