Dictionary Aide - v0.2
Nov. 10th, 2012 12:49 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Sometimes I surprise myself with how quickly I can put together a small program.
Case in point: Yesterday I was playing an online Scrabble-like game called Popotamo, and had been using an online word-search tool to find the highest-scoring options (the longest words, in this case), but kept running into problems when the board got pretty full.
So I decided to grab a copy of the SOWPODS dictionary (the dictionary used by the game I've been playing) and try to write a simple program to provide suggestions based on the tiles I had already, as well as providing an option for specifying constraints for the words.
As it turns out, it was actually a rather simple program to write, taking less than four hours to complete, most of which was spent trying to figure out how to design the User Interface.
Originally, I'd written it in Python, an easy-to-use scripting language, but realized that it's not a very fast language, nor is it terribly portable.
So I decided to rewrite it in Java, which took less than two hours, most of which was spent trying to remember how Java does GUIs...
However, the advantages Java has over Python were threefold: First, it was fast, which is great when processing long lists of words. Second, it is entirely platform-independent, which means that it can run on any type of computer that has a Java implementation. Third, the program can be packaged up into a single file, which means that you don't have to fiddle around with the dictionary file, because it's wrapped up in the single file.
(also, if I so chose, I could embed it in a web page, but I've decided against that for the moment)
Anyway, I was quite surprised at how fast it came together, and once I've found an appropriate place to host the file, I'll be posting a link here so others can use it too.
Case in point: Yesterday I was playing an online Scrabble-like game called Popotamo, and had been using an online word-search tool to find the highest-scoring options (the longest words, in this case), but kept running into problems when the board got pretty full.
So I decided to grab a copy of the SOWPODS dictionary (the dictionary used by the game I've been playing) and try to write a simple program to provide suggestions based on the tiles I had already, as well as providing an option for specifying constraints for the words.
As it turns out, it was actually a rather simple program to write, taking less than four hours to complete, most of which was spent trying to figure out how to design the User Interface.
Originally, I'd written it in Python, an easy-to-use scripting language, but realized that it's not a very fast language, nor is it terribly portable.
So I decided to rewrite it in Java, which took less than two hours, most of which was spent trying to remember how Java does GUIs...
However, the advantages Java has over Python were threefold: First, it was fast, which is great when processing long lists of words. Second, it is entirely platform-independent, which means that it can run on any type of computer that has a Java implementation. Third, the program can be packaged up into a single file, which means that you don't have to fiddle around with the dictionary file, because it's wrapped up in the single file.
(also, if I so chose, I could embed it in a web page, but I've decided against that for the moment)
Anyway, I was quite surprised at how fast it came together, and once I've found an appropriate place to host the file, I'll be posting a link here so others can use it too.
no subject
Date: 2012-11-10 09:02 pm (UTC)Mako
no subject
Date: 2012-11-10 10:25 pm (UTC)I just need to figure out where my site should be attached to HRF.
no subject
Date: 2012-11-11 04:20 am (UTC)Add a bind zone file for your new domain.
Mod the apache config to point incoming requests for that domain to your /public_html directory.
Restart bind and apache.
Profit!
Mako
no subject
Date: 2012-11-11 04:21 am (UTC)Make rollback copies of all configs Before you hack on them.
TY :)
Mako
no subject
Date: 2012-11-11 06:48 am (UTC)I don't need to look quite that professional.
dvanhumb. would work well enough, but even if you said that hirezfox.com/dvanhumb was good enough, I'd go for it.
Mostly it's my lack of self-confidence that asks in this case.
no subject
Date: 2012-11-11 12:09 pm (UTC)Lately I've been sinking back into depression because I seem to have lost some brain cells due to this gluten-intollerance thing. Being dyslexic my concentration was already shot to begin with, but ever since April when I began experiencing the foggy mind and disorientation I've found it much harder to write programs or even write creatively. I'd been working on a furry-themed game in Inform7 but it came to an abrupt end when I suddenly found I could no longer hold coherent thoughts in my brain. :(
no subject
Date: 2012-11-13 12:49 am (UTC)If you're interested, I can explain them a bit, but I suspect you're not quite up to that right now.
I know it would cost more money, but have you thought about seeing a dietitian?
They might be able to help you figure out what you can/should be eating.
no subject
Date: 2012-11-13 02:10 am (UTC)I've just been back to the clinic again, and I'm waiting for the train home now. I'll be posting about it when I get home.