I have created a simple iOS application with buttons and a progress bar (see image below). If you are interested in the code please send me an email (st(dot)strohmeier(at)gmail.com) and I will send you the source code.
it has been quite a while since my last post. Today I was working on some code for an iPhone application and the other developers use git to maintain the code. The command line version of git is a bit tricky: it is not too intuitive to switch between branches. Luckily, a friend mentioned the GUI sourcetree (www.sourcetreeapp.com) which deals with git by means of a nice graphical interface. I thought this is worth sharing. So, go to the website and check it out.
there is a great add-on for firefox that saves you time and keystrokes while you are surfing the internet with firefox and you want to look something up in google or open a website. The add-on is called “search it up”. With “search it up” you can choose a keystroke, the default is “strg-q” to look something up very fast. The words you search for are opened in a new browser tab. If you highlight a website link the add-on will open a new tab with the specific website in a new tab.
I recommend using this add-on to save some time and keystroke.
That is it. Enjoy and save some more time by being efficient.
After the installation of the new SSD I wanted to try out if disabling spotlight gives some performance boost. Some say it will make your solid state drive last longer. I am not sure. However, I disabled spotlight according to the guide here:
I don’t use spotlight so it might be ok. Perhaps some other applications might use it to do some searching. If I encounter any strange behaviour I will enable it again.
I just bought a 60GB solid state disk. I went for the model Vertex 2 from OCZ. In the following I will explain what I did to install it, configure it and how it is running now. I will also try to write down which and how I installed the beloved software.
1) open the battery case
2) open the three screws and remove the hidge
3) take the white plastic strap and pull out the old hard drive
4) put the thin case from the old disk onto the new one
I basically followed the instructions here with additionally mouting the hard disk slider from the old to the new hard drive:
1) I made a clean reinstall, first formatting the ssd with the journaled file system
I got the hints from here (it is in german that’s why I will translate some of it):
More will followw
My task was to convert a decimal number to a date/time format. It is easy to do in Excel but I found that Windows Excel and Mac Excel gave two different years. They differ by four years. The reason is that each one uses a different year for its origin. It is 1900-01-01 in Windows Excel and 1904-01-01 in Mac Excel. To get the right year in Mac Excel you can substract 1462 days from the numerical value…or you can uncheck the box under Formulas and Lists in the Excel settings panel.
Or you can do it in R by using the as.Date-function and the function times from the chron package.
as.Date(39011, origin=”1904-01-01″) # is “2010-10-22″ on Mac Excel
times(0.4872) # gives “11:41:34″
You can assign a short via the keyboard shortcut menu to mark all feed messages as read. Choose mail.app as application, as action you take the text of the contextual menu. In the german app this was “Alle Nachrichten als gelesen markieren” (engl. mark all messages as read). Then you can assign the shortcut you want and when you re-open the application it should be working.
Hopefully, it is of help to some of you.
I wanted to use a tab delimiter in an applescript and I didn’t know how to do it. Then I realized that I could use the ascii table to do it. This is how it is done:
1. put this in your applescript file:
set crlf to (ASCII character 13) & (ASCII character 10)
set escapeChar to ASCII character (9)
2. use it in your script as, i.g., like this:
set body_text to body_text & “Time:” & escapeChar & result & crlf
Hope it helps,
I got the origianl part of the script from this website: http://de.w3support.net/index.php?db=su&id=27981
I changed the layout a bit to make it suit my needs. Here is the the applescript file.
The Growl notification shows title, artist, album and rating informations. Now, you can add this script to Launchbar and envoke it as you please via your Launchbar shortcut.
To use the Qt example GoToCellDialog in the “C++ GUI Programming with Qt 4″ book (page 40) you have to use the following make chain:
1. qmake -project
2. qmake filename.pro
3. qmake -spec macx-g++
This will produce an executable filename.app file. More on this later…