Posts

Showing posts with the label mac

Apple Keynote: combining mirroring and Presenter Display

This blog post describes a new setup for presenting with Apple’s Keynote app that I’ve experimented with. It involves: A Mac running Keynote An iOS device (iPhone or iMac) The wish For presentations, mirroring the laptop’s display with the projector’s is perfect, because: It is easy to do interactive demos (e.g. switch to a REPL, run some JavaScript code). You can use the cursor as a virtual laser pointer (there is a preference under “Slideshow” to show the cursor in that mode). But there are several pieces of information that would be nice to have while presenting: The next slide, for smoother segues Remaining time (countdown) Presenter notes (I don’t use them, but many people do) Therefore, many people don’t mirror displays and Keynote’s Presenter Display. But then you lose the previously mentioned advantages. The best of both worlds It’d be cool to have mirroring plus extra information displayed somewhere, but I don’t even know how exactly that would work. Non-solution: Keynote Remo...

Using the Logitech Presenter R700 with a Mac

Recently, I was shopping for a presenter (a remote control for PowerPoint, Keynote, etc.) and liked the Logitech Presenter R700 (a newer European-only version of the R800) best, due to its design and its integrated display with a countdown. Alas, Macs are not officially supported for this device. Thankfully, they can be made to work together, as explained in this blog post. I also mention how my configuration file can be adapted to an R800. Installation If you press keys on the R700, wireless signals are sent to the R700’s USB stick, which appears to OS X as a USB keyoard. The key presses that OS X receives work for PowerPoint, but not for other apps. Thankfully, a tool called KeyRemap4MacBook lets you remap the keys per app and only for the R700 – without affecting other devices (including the actual keyboard). Based on Andrew Ferrier’s work , I wrote a configuration file that makes the R700 work with Keynote, DVD Player and VLC. Installation: Install KeyRemap4MacBook Copy the file...

OS X: kill all Google Chrome tabs from the shell

If there are a lot of tabs open in Google Chrome, it tends to become slow. Killing tabs by hand, via the Task Manager helps, but is tedious. The following bash script (by Sindre Sorhus ) lets you conveniently kill all open tabs from the shell (OS X only): #!/bin/bash ps ux | \ grep '[C]hrome Helper --type=renderer' | \ grep -v extension-process | \ tr -s ' ' | \ cut -d ' ' -f2 | \ xargs kill # [C] explained: http://www.commandlinefu.com/commands/view/402/exclude-grep-from-your-grepped-output-of-ps-alias-included-in-description That is, all tabs are still open, but they don’t display any content. You can reload any tab to get the content back. I’d love Chrome to have a mode where all background tabs are stopped completely and only the frontmost tab is active. Kind of like processes are managed on iOS.

Controlling the Mac user interface from the shell

The Mac OS X shell has several Mac-only commands for communicating with the graphical user interface (GUI). They are useful in three cases: First, when switching back and forth between shell and GUI. Second, when interacting with the system from a language that is not Objective C or AppleScript: Bash, Node.js [1] , Python etc. open The open command performs multiple tasks. The following subsections give an overview, consult the man page for complete documentation: man open If you use open programmatically (instead of interactively via a shell) then it helps to know the long forms of the options. You can list those by calling open without any arguments. open open and files You can use open to work with files: Open a folder in the Finder: open . Open a file in the application that has been associated with it (which can be overridden per file): open index.html Reveal a file in the Finder (instead of opening it): open -R index.html Open a ...