Second Mono Project in the bag
It was another toy program, although a bit more useful than last time. It reads through a directory and recurses through subdirectories to fine all txt files and builds up a cache. Then it searches those for any text you want to search for.
Perhaps I missed a subtlety, but it appears to only search on one character searches as opposed to a whole word.
Next issue begins a real program - an RSS reader. Since I have that issue, I think I’ll do it tonight and then turn in for the night.
Hello Bill
Just tested and, yes, for the small, uncomplicated Hello World program it works just fine on Windows XP. I just had to install .NET. (It took about 10 minutes….I don’t know why)
Introducing my SECOND CGI program: Eric's BlogRoll
You can find it here or on the right-hand side under “My pages”. This is a program that’s been in my head for about four days and which I spent most of yesterday working on until I realized I was going down the wrong path. Ah, but I’m getting ahead of myself. This program is my attempt to bridge the borders which artifically divide us in the blog world, while also providing myself with a convinience. The page, if you haven’t visited it yet, displays blogs from my blogroll all on one page. Live Journal, a blogging site, allows you to do this, but only with other LJ users. Similarly, Tripod blogs allow you to do it only with other Tripod users. However, they failed to appreciate the power of hacker bloggers, such as myself.
Use Minix....create a free OS?
As we all know, Linus Torvalds created Linux out of his frustration with the lack of features in Minix, a teaching OS meant to duplicate a POSIX-compliant Unix system. Well, as a great followup to Saturday’s Post, why not check out Minux yourself? A new group has begun developing Minix3, in the hopes of getting into a niche somehwere between FreeBSD and Linux: tiny, old computers. All you will need is the VMWare Player and Minux source. Typing root at login gets you in without any passwords. Tinker with Minux3 and tinker with a bit of history. It’s not EXACTLY the version Linux used, but it’s still pretty darned cool!
Two Programming Firsts! (for me)
It took me the better part of about 2 hours to figure out how to get everything to work correctly, but I am finally done with my program, GNaughtyNice. It figures out how naughty or nice a word is by using the Google search API and searching once with the porn filter on and once with it off. You can access this great feat of programming at http://server.ericsbinaryworld.com/GNaughtyNice.html
I think it’ll probably make a pretty god party game. You also need a Google search API key because I only get 1000 searches which could get used up quite quickly if this were to become popular enough.
My first project on Freshmeat!
Frustrated with the lack of an easy way to create a video DVD on Linux, I decided to write a program to do just that! I wrote a program that will generate the dvdauthor.xml file needed to create the video DVD. Then I realized that if I had been so frustrated, perhaps others were too, so I created a project on Freshmeat.net.
Check out my project! Pydvdauthor
Yay for Monkeys!
The title of this post is, of course, a play on words. The company Ximian has developed Mono, an open source competitor to MS’s .NET. Mono is spanish (and probably latin) for monkey. The reason I’m excited is that according to Gnomedesktop.org, Fedora Core 5 will have mono! This means we’ll get great new programs being coded in Mono such as F-Spot, a photo organization program, and Beagle, an AMAZING search tool on par with the search tool in the latest Macintosh. Basically, it indexes the file system in such a way as to be able to look through not only filenames, but also tags in photos, music, and documents. Beagle even searches through AIM logs created by Kopete and Gaim. But the COOLEST thing is that, unlike the search in Windows which takes forever, this is instantaneous since it’s always indexing your computer. In fact, there are demos you can see by clicking on the beagle link on the right-hand side of my blog, that show a search being conducted and as the author write stuff in his IMs, it appears in the search. I can’t wait for this to be available to us Fedora users!
My Monty Hall PHP Script
Well, actually, it’s not mine. It was a script in Linux Format Magazine a few issues ago. As hobbyists have done since the beginning, I copied the code down to see it actually work.
First the background on Monty Hall. Here it is from Wikipedia.com:
The Monty Hall problem is a puzzle in game theory involving probability that is loosely based on the American game show Let’s Make a Deal. The name comes from the show’s host, Monty Hall. In this puzzle a player is shown three closed doors; behind one is a car, and behind each of the other two is a goat. The player is allowed to open one door, and will win whatever is behind the door. However, after the player selects a door but before opening it, the game host (who knows what’s behind the doors) must open another door, revealing a goat. The host then must offer the player an option to switch to the other closed door. Does switching improve the player’s chance of winning the car? The answer is yes — switching results in the chances of winning the car improving from 1/3 to 2/3.
Bash Shell Scripting
One of the best things about Linux is the ability to write shell scripts. These are most often used as utility programs to do repetitive tasks for you. I just wrote my first one on Sunday and here it is followed by commentary.
#!/bin/bash echo "starting xchat..." xchat& echo "starting Gaim..." gaim& echo "starting Thunderbird..." thunderbird& echo "starting Gkrellm (docked)..." gkrellm -w& echo "starting 2 instances of Eterm (transparent, no buttonbar, no scrollbar)" Eterm -x --scrollbar=0 --buttonbar=0 --trans& Eterm -x --scrollbar=0 --buttonbar=0 --trans&
Two down....three to go
Today I finished up yet another class. The first one I finished up was a project where I was conducted a study for the School of Electrical Engineering to switch over to Linux and open source alternatives. I also published my study as my first publication at Lulu.com. It was great to have one class out of the way, especially one which was such a joy to participate in.
Today I wrapped up another favorite class, microcontroller design. As my faithful readers know, I’ve been providing the source code to each of the labs we completed during the semester. Well, today my group demoed our final project to our professor and TA. They were quite impressed with the progress we had made on the code, despite its limitations. Our final project, a web server on a microcontroller, was a lot of fun to work on. There were a lot of frustrating times, but it’s the good kind of frustration that motivates one to try as hard as they can to get around the problem. One of my favorite taks is to participate in design and debugging, trying to get my design to work because I know it *should* be working, so what did I forget? Was it simply a semi-colon? Was it something more significant, some kind of oversight? It was hard sticking to the project and keeping Rich from rewriting it from scratch, but I think we had a much better product because we sat through all of our problems and figured out what the original author of the source code we were basing it off of had done. After all, in a real work environment you have to figure what the previous guy did. There is no time to rewrite the code, no matter how awesome you are at coding. I will be posting the code and my report soon, probably over the next few days. I invite and challenge anyone out there to work on the code and make it more robust and reliable, there is PLENTY of room for that. You just need an Atmel Mega32 and STK500 development board. (As well as the computer on which one does the programming)