Few weeks ago I was telling my co-workers how I wish there was an application that would put the windows of running applications back to “where they belong” when I plug my MacBook into a secondary monitor at work. Yesterday I finally found that app.
Category: Computing
Apple’s attention to detail
This is something I’ve actually noticed on their machines and I’ve always wondered why nobody else bothers to make a computer look like it is actually “sleeping.”
http://floodlite.tumblr.com/post/1011047822/apples-attention-to-detail
Verizon, LTE and iPhone
AppleInsider is running a story about a possible iPhone 4 launch on the Verizon network in 2011. This seems to jive with a bit of information from I got from a Verizon worker on the roll out of LTE beginning sometime in the end of 2011 or beginning of 2012. In fact, towers in the Fargo ND area are being upgraded to LTE capable equipment right now. I have my doubts we’ll see a CDMA only version of the iPhone on Verizon’s network and I am betting on a simultaneous iPhone and LTE launch. iPhone being the first LTE capable phone on Verizon’s network would be big marketing win for both the iPhone and Verizon.
Sometimes you just need to rethink how something is done
Since Steve Jobs came back to Apple there has been one thing Apple has done that nobody can really argue. Innovation in the PC industry. While everyone, including Apple at the time, was producing boring looking beige computers Apple decided to completely rethink how a computer can look and introduced iMac. Love it or hate it, the iMac was completely different than anything else at the time and soon other manufacturers tried to add some amount of flair to their PC lineup.
Skip a head a few years later and Apple did it again. While everyone else was basically creating incrementally different smart phones in 2007, Apple simply destroyed how everyone assumed a smart phone should look and work by bringing to market iPhone. They made it far easier, intuitive and beautiful and from that moment on, they made it so that any phone on the market that didn’t have a touch screen or had a touch screen that required the use of a stylus was simply awkward and outdated.
Apple’s most recent market disruption was none other than iPad. During the summer prior to iPad’s release the netbook craze was in full swing. Just a year later there are reports that sales on netbooks have slowed considerably and some reports even show netbooks are losing out because of iPad.
At iPads reveal in January of 2010 Steve Jobs quipped that netbooks weren’t better at anything, they were simply cheaper laptops. Many people argued that netbooks were most useful for consumption and were never really meant for creating content. Yet netbooks looked and worked just like any other ordinary PC. Apple changed this by creating something that looked and worked nothing like a PC. Note too that iPad was the first tablet device on the market. Microsoft has been trying to get consumers using tablet PCs for years but I don’t think anyone could argue they’ve been anything near the run away success that Apple has seen basically over night.
The inspiration for my post comes from Marco Arment’s recent post. He also poses the interesting question of, “How do you think the subcompact, inexpensive computer category will look in three years?”
KDE based tablet interface
…the future for KDE technologies on mobile platforms certainly looks bright.”
I really beg to differ.
(via OSNews)
Mac tip of the week: Two great new OS X tricks
I’m a bit behind on my Mac tip of the week entries and these two tips won’t really make up for it but they’re interesting all the same.
First one is that you can manage applications from the application switcher. By pressing command tab you can then tab to different applications. Once an application is highlighted you can issue other command+? commands like command+q to quit or command+h to hide an application.
The second tip involves iCal. iCal in Snow Leopard now officially supports synchronizing with Google Calendar. Adding new accounts is simply done in iCal’s preferences area but adding addition calendars you have access to isn’t as obvious. To add additional calendars simply click on the delegates tab when editing your iCal accounts in preferences.
The HP Slate saga just doesn’t stop
So the HP Slate that Balmer so proudly showed off at CES this year has gone from “it’s running Windows 7” to “it’s canceled” to now, HP Slate no longer a consumer product, will arrive for enterprise this fall. What a freaking joke.
How do you measure programmer productivity?
via – http://www.computerhistory.org/highlights/macpaint/
“When the Lisa team was pushing to finalize their software in 1982, project managers started requiring programmers to submit weekly forms reporting on the number of lines of code they had written. Bill Atkinson thought that was silly. For the week in which he had rewritten QuickDraw’s region calculation routines to be six times faster and 2000 lines shorter, he put “-2000″ on the form. After a few more weeks the managers stopped asking him to fill out the form, and he gladly complied.”
Using mod_rewrite to proxy requests to an application server
Not so long ago I wrote about my experiences on getting Railo running on under OS X as a test. Along with just getting Railo running as well as a custom CMS I needed to be able to proxy requests through an Apache server to the Railo application server. One method is to use the simple mod_proxy module available as part of Apache. In my setup I wanted a bit more control than what mod_proxy could provide me. Enter mod_rewrite.
Mod_rewrite is used to manipulate URLs as they enter and pass through Apache. One way mod_rewrite is useful is that it allows you to rewrite incoming URLs so that what the user sees in their browser’s location bar is translated into what the application expects. You can also use it to manipulate the URL in the event that the location of an object has changed. In my setup I wanted to use mod_rewrite to rewrite certain URLs and then proxy them through the Railo application server.
Lets say my Railo application lives at http://localhost:8080/ and I want any URL that comes into Apache (on port 80) that starts with a keyword like ‘show’ to be rewritten and passed to Railo. Railo could just as easily be hosted on some other machine but for this example lets just say it is located on the same system as Apache.
In my example, I have a new vhost configured in Apache and it looks like this:
<VirtualHost *:80> ServerName railo.dustinrue.com DocumentRoot "/Users/dustin/Sites/railo.dustinrue.com" <Directory "/Users/dustin/Sites/railo.dustinrue.com"> RewriteEngine On RewriteRule ^show/(.+)$ http://localhost:8080/index.cfm?url=/show/$1} [P] </Directory> </VirtualHost>
Notice that I’ve told mod_rewite that I want to use an external command for rewriting the incoming URL. An external program basically accepts one argument, which is the URL portion that matches the rewrite rule, and then prints out the reformatted URL which Apache then uses from that time on and in this case, passes to Railo.
In this example, mod_rewrite will take a URL that might look like:
http://railo.dustinrue.com/show/article/id/123456/
And turn it into:
http://localhost:8080/index.cfm?url=/show/article/id/123456/
At the end of the mod_rewrite rule you see a flag telling mod_rewrite to proxy the request through the rewritten URL rather than giving than than telling the browser to visit the new URL (the default behavior). In turn, the request comes into Apache which sees the ‘show’ keyword. This keyword causes the request to be passed to the application server which responds with the appropriate output and this output is then sent to the browser.
In my example, the rewrite is very simple. You can do far more advanced stuff than this and it’s even possible to do some rewriting right within Railo and the server it is running under such as Jetty or Tomcat.
Mac tip of the week: More keyboard shortcuts
I have two keyboard shortcuts that I just found. Keyboard shortcuts are of course always shown in the menus of applications but I thought I’d mention these two.
Here’s the first one. If you have a folder as a stack item on your dock, command clicking it will immediately open the folder instead of doing the usual stack animations.
The second one is, if you select a file anywhere on the desktop or in a finder window and press command+shift+T you’ll add that item to the dock as a direct link to that file or as a stack if it is a folder. Command+T itself will the selected file as a sidebar item in Finder.