November 6, 2009 at 6:14 pm
· Filed under programming, technology, tips
Window -> Show View -> Display.
Type some code into this view, highlight it and then press the “J” button in the top right of the frame. This will execute the code and return the results.
I’ve been using Eclipse for over three years and I only found about this feature the other day. Oh well, we live and learn.
Permalink
November 5, 2009 at 7:44 pm
· Filed under technology, tips
Do you use SquirrelMail as your webmail client? I do. Recently I signed up to a mailing list that generates about a hundred e-mails a day. Tired of having to manually clean my inbox, I decided to set up a mail filter to do it for me. Here’s how to do it.
Firstly, you need to log into your Mailbox Manager. This is seperate from the SquirrelMail site, and, for Dreamhost account, can be found at mailboxes.yourdomain.com. The SquirrelMail login page links to it for me, but your milage may vary.
Once in the Mailbox Manager, you need to set up two mail filters. Why two, you ask? Simple. One rule to move the messages to where you want them and a second rule to delete the messages from your inbox. Wait, wait – move and then delete? For some reason, SquirrelMail treats “move” as “copy”. When you add a new rule you can choose the “Move it to folder” option. Back in the Mailbox Manager this rule appears as “copy emails”, though, which I didn’t pick up on for a few days. No wonder it didn’t work!
Oh, and your first rule needs to be set as “execute and continue” and your second one as “execute and stop.” The first rule needs to be set like that to ensure that the second rule is actually run after copying the e-mails. The second rule has to be set like that – you aren’t allowed to delete and e-mail and then carry on running filters on it
One final thing – when you specify the folder to move the e-mail to you don’t need to give the full path if it’s a subfolder of inbox. E.g, if your target is Inbox->MyFolder, then just write “MyFolder”. If your target is Inbox->MyFolder->MyOtherFolder, then you need to write “MyFolder.MyOtherFolder”. Entering “Inbox.MyFolder” will create a folder with the path Inbox->Inbox->MyFolder.
The Mailbox Manager tells you that the folder needs to exist before the filters can move messages to it, but the existence of Inbox->Inbox->MyFolder on my system rather proves that wrong…
Permalink
November 5, 2009 at 7:30 pm
· Filed under technology, tips
Have you ever “lost” a window? You click on it on the taskbar but it won’t reappear. You have no choice but to kill the program, losing anything that you hadn’t saved.
Well, here’s a tip for you – bring up the Task Manager (press ctrl+shift+esc, right
click on the taskbar and click “Task Manager” or press ctrl+alt+del followed by t),
navigate to the Applications tab, right click on the program that you can’t bring up
and click “Bring To Front.” No more losing a half-written email before you save it!
No more disappearing online bingo games. No more losing your work. I hope that this saves you some time and frustration. Sorted!
From my experience, this problem generally happens when you minimise a window just before it pops up a dialog box. Using the task bar won’t restore the application as it can’t change its window state until you’ve responded to the dialog. Shame you can’t actually see the dialog box…
Permalink
January 2, 2009 at 10:40 pm
· Filed under maths, meta, technology
It’s all in the title, really. I now have a G1.
I’ll write more about it once I’ve got a bit more used to it.
Permalink
December 21, 2008 at 8:03 pm
· Filed under anime, programming, technology
It’s been far too long since I last wrote anything here. Let me give you a quick summary of what I’ve been up for the last few months…
Read the rest of this entry »
Permalink
August 7, 2008 at 11:47 pm
· Filed under programming, science, technology
My NerdKit arrived last week. I haven’t had as much time to play with it as I’d have liked, but it’s still awesome. I’ve built the first two examples, a temperature sensor and a binary adder. I’ve modded the adder to light up a couple of LEDs depending on the sum, which taught me how to set pins as output and drive them high or low. It’s all done with bitshifting and logical operators. The variables that control things like input or output are stored in 16 bit integers (if I recall correctly). Each bit stores a boolean value referring to a single pin or setting. With some nice logical operations, it’s possible to retrieve a single bit, or change a single bit to a 1 or a 0. I might write a guide about this someday.
So, what should I tackle next? Should I upgrade the binary adder into the binary RPN calculator that I talked about before (this would require buying some more switches) or should I try to drive the piezoelectric buzzer at frequencies corresponding to musical notes and make music? How can I choose?!
Permalink
July 22, 2008 at 9:19 pm
· Filed under programming, technology
This morning I finally got around to ordering the Nerdkit that I’d been drooling over for the last few weeks. After I’ve built all of the example projects, I plan to order some more switches (and probably some more LEDs) from Maplin and build a binary RPN calculator. Because, you know, that’d be way cool.
More on the Nerdkit when it arrives!
Permalink
June 16, 2008 at 11:50 pm
· Filed under meta, programming, technology
It’s been about a month since my last exam. I think. Time has gone either quickly or slowly. I’m not really sure anymore. It seems a long time ago, but if I think about it – or check my diary, which I just did – then it’s been just under four weeks.
Anyway.
I’ve been learning some CSS recently. I did have a web technologies course in my first year, but it wasn’t very good. The normal lecturer didn’t take the course, for some reason, and the lecturer who ended up teaching the course had about two days notice to learn the material. Don’t get me wrong, I really enjoyed her lectures, but it somewhat put me off the whole ‘web’ thing
Point is, I now have some basic CSS knowledge to go with my basic PHP and HTML knowledge. I have used this knowledge to upgrade my website. I’m not sure that everything is working yet, so I’ve put it up on a subdomain – test.worthlesscheese.com. Once I’m awake enough to give it a proper test (that’d be after I’ve slept, I would think) I’ll finally upload it to the main domain.
The site is still rather lacking in content, but, darnit, it’s finally got some style!
Permalink
April 18, 2008 at 9:06 am
· Filed under meta, programming, technology
I’ve done a bit more work on my website, now. It’s still very much a work in progress, but at least I’ve created the various sections that I plan on writing. I’ve also uploaded a game I wrote – Animal, Vegetable, Mineral, which can be found in the code section. It’s based on an old Amstrad game that I used to play, which in turn was based on 20 questions. The code is fairly basic -it runs in a command line, the user has to decide whether an object should be prefixed with ‘a’ or ‘an’ (if the user forgets then it isn’t handled) and it only knows a handfull of animals, vegetables and minerals- but it’s still a pretty fun little game.
Back to the website, the sections I’ve created are Code and Guides, to suppliment the About, Blog and Photo Gallery sections, all of which are fairly standard.
The Code section is where programs I’ve written will go. The aforementioned AVM game lives in the Code section, as will the C++ wordcount tool I wrote, when I get around to uploading it. Revision has to take priority over working on my website. Eventually, I plan on uploading my final year project to the Code section. It needs a little more work before I release it to the world, though.
The Guides section is where I plan on writing short intro guides to various technical things. Take LaTeX, for example. My University department recommends the use of LaTeX for both second and third year projects, but doesn’t give us any pointers as to learning it. Not that learning it is that difficult, but I feel that the guides I used could have been a bit more helpful in places. The guide I plan on writing will basically say “This is what you need to install, use this program and not that one, this is what you need to do, this is what this error message means.” It won’t be a replacement for more fully featured guides, such as the LaTeX WikiBook, but it will act as a good primer for newbies, I hope.
More: Some stuff about AVM
Read the rest of this entry »
Permalink
March 28, 2008 at 12:49 pm
· Filed under anime, books, meta, politics, programming, technology
Welcome to my blog!
The current title of my blog refers to XKCD – I might well change it later, depending on how I feel.
I’m going to be using this blog to write about whatever I feel like, while keeping the personal stuff to a minimum. If I go abroad and take some awesome photos, then you’ll all get to know about it. If I’m feeling confused due to girl trouble, then you won’t. This isn’t (my) LiveJournal!
Some subjects that I plan to write about are:
- Anime, both reviews of shows that I’m watching and spotlights on various creators
- Games – mostly Japanese ones, I expect
- Technology – what I’m using, what I’m wanting
- Programming – anything interesting that I’ve learnt or made
- Politics – thoughts about various issues
- Books – what I’m reading
- ..whatever else takes my fancy!
I make no promises about any of this actually coming to pass. Check my blog every now and again and you might get a surprise!
Permalink