|
|
Update 20091104: Added “1 on 1 with notes landscape”, based on work of Edson Valle. Also added “2 on 1 with notes” and “3 on 1 with notes” layouts.
Update 20091108: Added “2 on 1 with notes landscape”, based on work of Edson Valle.
Update 20091202: Added “1 on 1 with notes”, based on work of Harald Welte.
For all my presentations I have been using LaTeX-Beamer package. One of the things I missed was the possibility of having handouts of my slides with some lines for notes besides the slides. After some searching I found that in the mailing lists of latex-beamer somebody had already come up with a solution.
If you put the file handoutWithNotes.sty either in your local texmf directory or in the same directory as your presentation you can include it with the following command
\usepackage{handoutWithNotes}
After that, to get 4 sheets on the left side of the page with on the right side of the page some lines for people to write notes you can use the following command
\pgfpagesuselayout{4 on 1 with notes}[a4paper,border shrink=5mm]
The resulting PDF file will contain pages like:

Updated 20091104.I received a note from Edson Valle that he created an addition to the notes files, namely one that allows you to print your sheets 1 per page, but with notes on the side. Made a some small alteration to his original contribution to allow for easier usage.
I have updated the original download-link, so you only have to download the latest handoutWithNotes.sty file and you should be ready to use it.
Again, make sure that you include the style file with:
\usepackage{handoutWithNotes}
after which you can now use the “1 on 1 landscape” layout with the following command:
\pgfpagesuselayout{1 on 1 with notes landscape}[a4paper,border shrink=5mm]
.
The resulting files will look something like:
 Showing the 1 on 1 with notes landscape
While I was at it, right away I also created two additional styles “2 on 1 with notes” and “3 on 1 with notes”. The first of these two was already requested once by kc853. Hopefully this new style will be sufficient for his needs. If not, I hope that it will serve as a good starter for modifications.
The “2 on 1 with notes” layout can be used with the command
\pgfpagesuselayout{2 on 1 with notes}[a4paper,border shrink=5mm]
with the following result:

Finally, the “3 on 1 with notes” pages was created because I think that the “2 on 1 with notes” seemed a bit empty You can use this “3 on 1 with notes” layout with the command
\pgfpagesuselayout{3 on 1 with notes}[a4paper,border shrink=5mm]
with the following result:

Update 20091108 : Based on the above updated styles, Edson Valle provided me with another addition, the “2 on 1 with notes landscape” layout. You can use it with the command
\pgfpagesuselayout{2 on 1 with notes landscape}[a4paper,border shrink=5mm]
and the output you will get will be something like:

Update 20091202 : Based on the above updated styles, Harald Welte provided me with yet another addition, the “1 on 1 with notes” layout. You can use it with the command
\pgfpagesuselayout{1 on 1 with notes}[a4paper,border shrink=5mm]
and the output you will get will be something like:

All of the above layouts can be used by downloading the handoutWithNotes.sty file.
Just drop me a note in case you like this or find it useful or in case you have any questions
Today we went to the notary for all the official exchanging of property and after that we received our keys:
 Picture of the keys to our new house
Also nice was the fact that the previous owners provided us with a small bottle of champagne
So upcoming time will be a busy time of moving and painting… We cannot wait for this to be finished and we will be living in our new house
In some weeks we will get the key to our house we recently bought and I thought this was a perfect opportunity to buy a small light-power computer that I can use in the new house as a server. Currently I have my desktop running 24/7 because it also works as a simple webserver and provides me with my email wherever I am.
Yesterday I bought an Asus EEE Box PC. Unfortunately the thing came with Windows XP preinstalled on it, which was not right for the task I had it mind. I thought installing Ubuntu 9.04 Jaunty (server) was going to be really easy, but when I created a bootable USB stick with the installation ISO on it, it did not get recognized by the EEE box as a boot device. I tried all the different USB mass storage device settings in the BIOS, repartitioned my USB stick to use FAT16 instead of FAT32, nothing leading to a satisfying result.
In the end I found a 1GB micro SDHC card I still had laying around, put it in the SD slot and after forcing the BIOS to force the USB boot mass storage device to “Forced FDD”, I finally got the linux boot menu I was looking for (instead of the windows xp boot screen). After I got this far, the rest was really easy and in no-time I had Jaunty up and running.
Now the only thing left is to move all server-data from my desktop computer to this new server and I will be finished completely.
When I was a PhD student I had to give some presentations. I think I tried once to use Powerpoint to give a presentation filled with mathematical equations before I decided that this was not going to work
After some other packages, I finally found LaTeX-Beamer. For the majority of the presentations the default styles provided with LaTeX-Beamer were sufficient, but every now and then I wanted to have a bit more, do I dare to say it, powerpoint like theme
I wanted to have background image over which an white transparent layer would be put, on which the text would appear. I created a latex-beamer style for this and a sample output of this diepen style is given in the two pictures below:
 Screenshot showing example title page of diepen style
 Screenshot of normal sheet in diepen style
The picture that is on the background can be changed into any picture you choose, although I found that in most cases the result is the best when the used image is not too bright.
To use the style, you must first download the source, unpack it to a directory of your choice in the texmf directory (or your local texmf directory) and make sure that you have run the texhash command under linux or the windows equivalent such that pdflatex is able to find the style files.
After you have done this, you can use it by placing the following command in the preamble of your beamer file:
The following options are available:
If you have any questions about this diepen style, please let me know.
For the last couple of days an increasing number of people were mentioning that they had problems with synce in Ubuntu. After running synce-pls they received the following error:
** (process:6884): WARNING **: synce_info_from_hal: Failed to obtain property pda.pocketpc.iface_address for device /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00: org.freedesktop.Hal.NoSuchProperty: No property pda.pocketpc.iface_address on device with id /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
process 6884: arguments to dbus_move_error() were incorrect, assertion “(dest) == NULL || !dbus_error_is_set ((dest))” failed in file dbus-errors.c line 278.
This is normally a bug in some application using the D-Bus library.
** (process:6884): CRITICAL **: synce_info_from_hal: Failed to obtain property pda.pocketpc.platform for device /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00: org.freedesktop.Hal.NoSuchProperty: No property pda.pocketpc.iface_address on device with id /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
** Message: Odccm is not running, ignoring
synce-pls: Could not find configuration at path ‘(Default)’
It turned out to be a small error in the libraries that somehow made it into the launchpad repository. Sometimes Murphy just happens to pay a visit
The problem should be fixed soon, when new packages are uploaded to the repository.
So if you are running Ubuntu and seeing the exact error above, please be patient for some days and try often to see whether there are updates
Last weekend I went for a city trip to Dublin together with my wife. Of course we had to visit two things that Dublin is famous for: the Guiness brewery and the Jameson distillery
At the Jameson distillery you have a guided tour that shows you the process of whiskey making. At the start of the tour, they ask for some volunteers, but we did not yet know for what that would be. I was chosen as one of the volunteers, and at the end of the tour it was clear what the task was: a whiskey tasting event We had three shots of whiskey, one Jameson, one Jack Daniels, and one Jimmy Walker and at the end we had to answer the question which of these three was the best To prove that I gave the right answer I got the following certificate:
 Jameson whiskey tasting certificate
I have to say that this tour was really good fun.
The tour at the Guiness brewery was completely different, you could just walk through the complete museum by yourself, and at the end of the tour there was the complementary pint of Guiness in the Gravity bar, which is on the 7th floor with an amazing view over Dublin.
If you are planning to go to Dublin, I can recommend the above two activities
When following some different blogs about Operations Research the other day, I found the following very nice OR joke on the ThinkOR blog:
At the end of his course on mathematical methods in optimization, the professor sternly looks at his students and says: “There is one final piece of advice I’m going to give you now: Whatever you have learned in my course – never ever try to apply it to your personal lives!”
“Why?” the students ask.
“Well, some years ago, I observed my wife preparing breakfast, and I noticed that she wasted a lot of time walking back and forth in the kitchen. So, I went to work, optimized the whole procedure, and told my wife about it.”
“And what happened?!”
“Before I applied my expert knowledge, my wife needed about half an hour to prepare breakfast for the two of us. And now, it takes me less than fifteen minutes…”
Towards the end of my studies, I started to work in the field of Operations Research. After that, my PhD topic was also in the field of Operations Research. Currently I work for paragon, which is the developer of AIMMS and as can be seen on the website of our company, we strive to enable people to apply OR successfully.
Now there always was the problem that I have to explain to other people what exactly Operations Research is. The other day I found the perfect post about this on the blog of Michael Trick, who in turn got this from the first OR post on the blog of Jim Orlin.
After reading the comments, I have to say that I like the explanations I found in the comments, like “practical math”. But I fully agree with the modified definition given by Michael Trick: “The science of better decision making.
Also, I really enjoyed the following algorithm that Jim Orlin gave that helps me explain what exactly OR is:
Algorithm for describing operations research to a friend or colleague.
Step 1. Find out a system about which the other person is both interested and knowledgeable. (e.g, sports, entertainment, communication, travel, or anything relating to a person’s job.
Step 2. Develop a plausible scenario based on the system in Step 1; e.g., scheduling sports teams, designing wireless phone systems to provide for the best possible reception, or designing queuing systems at Disneyworld. (I have found that it is very useful to give an example that addresses a problem at the other person’s work that he or she just told you was important.)
Step 3. Explain how operations research can be used to find an excellent solution for the scenario in Step 2 or provide very useful information for the scenario in Step 2.
Who has never encountered the following problem:
You want to send somebody an email with an attachment. You create the message, hit send and the second you let go of the send button, you think “%$@!%!^, I forgot to attach the file”
One of my colleagues had a possible work around for this problem: prevent outlook from sending messages directly when you hit send, but have outlook send all messages in the outbox every given number of minutes. This way, on average you have some time to figure out you forgot to attach something
I have to say that I did not like this work around that much, so I started looking on the internet what I can find as other means to tackle this problem. I found aBlog with some VBA macros that will give an additional warning when it appears you forgot an attachment while sending the email.
The author of the original article did have one other complaint, and that was that he was getting a security warning every time the macro was run. This can be solved in two ways: you can either set the security level for macros in Outlook to Low (i.e. every macro can be executed, bad bad idea ). The other way is to self-sign your VBA project, for which you can also find instructions on the internet.
One other thing that I did not like about the code as presented on ablog, is that it does not try to be clever about false positives: If I send an email to somebody with the word attach in it, and that person replies to my email, this reply contains the word attach (because of my original message). If you now reply to this reply again, the macro will detect the word “attach” from the original message, and trigger a warning when you try to send the email. I don’t want to be bothered with warning messages if they are most probably not needed, so the macro almost fit my needs, but not 100% yet
To overcome this last problem, I have modified the original code just a little bit. Because I hope that somebody else might have some advantage with this modification, I have put it below:
Option Explicit
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Item.Class = Outlook.olMail Then
If Item.Attachments.count = 0 Then
If SearchForAttachWords(Item.Body) Then
Dim userReply As VBA.VbMsgBoxResult
userReply = VBA.MsgBox("It appears you are sending the email without attachments while " & _
"the body/subject contains possible references to an attachment." & _
VBA.vbnewline & "Do you want to send the message without attachments?", _
VBA.vbYesNo + VBA.vbDefaultButton2 + VBA.vbQuestion + VBA.vbSystemModal, _
"Possibly missing attachment...")
If userReply = VBA.vbNo Then
Cancel = True
End If
End If
End If
End If
End Sub
Function SearchForAttachWords(ByVal s As String) As Boolean
Dim positionMailTo As Long
positionMailTo = VBA.InStr(1, s, "mailto:", VBA.vbTextCompare)
If positionMailTo = 0 Then
positionMailTo = VBA.InStr(1, s, "From:", VBA.vbTextCompare)
If positionMailTo = 0 Then
positionMailTo = VBA.Len(s)
End If
End If
Dim v As Variant
For Each v In Array("attach", "enclosed", "bijgevoegd", "bijlage")
Dim tempPos As Long
tempPos = VBA.InStr(1, s, v, VBA.vbTextCompare)
'Only interested in the keywords when they are before mailto:,
'which would be the original message we are replying to
If (tempPos <> 0) And (tempPos < positionMailTo) Then
SearchForAttachWords = True
Exit Function
End If
Next
End Function
To get everything working, copy the above to your clipboard, fire up outlook and press ALT-F11 to get to the visual basic editor. In the visual basic editor, go to the ThisOutlookSession which can be found under Project1->Microsoft Outlook Objects. After you copied this and you don’t want to be annoyed with security warnings of outlook, please follow the earlier mentioned link regarding signing the project with a self-signed certificate.
Some comments regarding the above code:
- I prefix all functions and values with their respective origin (e.g. VBA.InStr(…), VBA.MsgBox(…), and VBA.vbYesNo, etc ). The reason for this is that at my work, I have outlook 2007 installed on my computer. I have created quite a bunch of macros that are now distributed via copying the VbaProject.otm file. Unfortunately, when other users have outlook 2002 or outlook 2003, they get error messages about things that cannot be found when I do not prefix everything. After the prefixing, there are no problems at all.
- bijgevoegd / bijlage are the dutch words for “attached” and “attachment”. Of course if you want to have the warning trigger on other words, you can put the additional words on this line.
Please let me know if you have any additions to the macro that I did not think of yet, or drop me a note in case the macro has saved you from some embarrassing resend after you just sent a message without attachment
Recently I got a new phone: the Sony Ericsson Xperia X1. Before this I had pretty much every phone of the MDA series of T-Mobile (the branded version of the HTC phones). From the first windows mobile phone I got I have always had the ones with a QWERTY keyboard. I found this to be very useful when I am typing emails or surfing the internet. So when my contract was ending, I decided that again I wanted to have a phone with a QWERTY keyboard and fortunately t-mobile just released their branded X1
One of the new things of the X1 is the panel display, where you have the 9 different panels to access different kind of tasks easily. This new function was something I did not really use. One thing I still was missing for windows mobile was a good native client for Facebook. My wife has a blackberry from her work and there is a very nice facebook client for the blackberry. It struck me as a bit odd that no really good client yet existed for Windows Mobile. I even got to the point of thinking how difficult it would be to start programming a simple client myself…..
Luckily, this last bit was not needed and I finally found a use for the panels. When looking at the sony ericsson X1 page, I found that there was a new facebook panel, which appears to be working quite well. It sure beats using the mobile portal m.facebook.com
Waiting for more interesting applications, either as a panel for the X1, or just windows mobile applications in general.
|
|