Use the Evernote Clipper With Safari On iPad and iPhone

Updated 05/15/12: Latest code for the bookmarklet in a text file. The original post was done in May of 2011 with the code at the time that seems to be generating problems for people. I have updated the code part of the post and put it as a separate text file to avoid the code being messed-up with WordPress theming. -Jonathan

The Evernote Clipper is a great way to add URLs and sites to Evernote notebooks. It is a bookmarklet javascript that one can place on their browser bookmark bar to quickly select. But, in iOS, you don’t have that kind of functionality. Good news is the bookmarks function in Safari on iOS does allow execution of javascript. Works well on iPad, works okay on iPhone.

Here is what you do.

1. Go to http://www.evernote.com on your iPad or iPhone

2. Bookmark that in Safari

Add Bookmark on your iOS Device

 

3. Go to Bookmarks in Safari and edit the Evernote bookmark you just did.

 

4. Change the name/title to ‘Evernote Clipper’ or whatever you want it to be.

 

5. Copy the code from this text file and paste it in the field where the URL is (from the “j” in javascript to the “;” ) and save.

iOSEvernoteWebClipper

 

Pasting the JavaScript Into the URL Field

 

6. Save out of everything and go to a website or something and then when you are on the page, hit the bookmarks icon and select ‘Evernote Clipper’ bookmark to get the Evernote clipper screen.

Using the Clipper Bookmark on iOS

 

You might need to do the initial Safari login to Evernote, but after that, you should be good to go.

Clipper Javascript Bookmark on iOS

Update 05/09/12: It has also been reported on iPhones that it is best to set the Safari Options on “Open Links” from “In New Page” to “In the Background” if you are having resizing issues. Here is how you do it–

Go to “Settings” on your iPhone then Safari.

iPhone Safari Settings "Open Links" preference

Change that “Open Links” option to “In the Background”

iPhone Safari Settings on "Open Links"

Posted in Apple, Educational Software, Internet, Software, Utilities | Tagged , , , , , | 40 Comments

#Supermoon from San Francisco

Yes, we have a lot of city light and I don’t have a great lens, but it is pretty special. The pictures don’t do it any justice but had to post them.

 

Posted in San Francisco | Tagged , | Leave a comment

Passing command-line options to OS X Apps with Platypus

Platypus from Sveinbjorn Thordarson

I love the Google Chrome Canary browser. For the last year, it has been my browser of choice on Mac, Windows and Linux after leaving the chaos and mess that has become Mozilla Firefox.

The only aspect that is bothersome for me in Chrome or Chrome Canary is the way the software deals with self-signed SSL certificates. I use a lot of them internally. Because of the current inability to trust self-signed certs in Chrome, you are forced to click through an error/acknowledgement warning prior to continuing to the address you want. This can get really annoying after a few times a day per site across a bunch of internal sites I use for monitoring or various sysadmin functions. Clicking the “Proceed Anyway” gets old. At least with Safari or Firefox, you can trust the cert and be done with it.

Google Chrome Self-Signed Certificate Error

The good news is that until they add some cert trust management into Chrome, you can at least pass a command-line flag to Google Chrome to ignore cert errors. Here is a great list of the various command-line flags or options you can pass to Google Chrome. But starting Chrome or other applications from Terminal is not usually what I do when I am in OS X.

"Fun" way to open an OS X application executable with command-line options

The other typical way to change an OS X application settings at launch is to modify the Info.plist. But, after trying to pass some environmental variables to the application via that method in adding dictionary keys, I had to try something else. Even if I could get something to stick and have Chrome recognize the command-line args via the Info.plist under the app “Contents” directory, there was the probability I would need to mess with it over and over again each update. Not fun.

Enter Platypus.

Platypus has been around for years and allows you to quickly and easily generate a new executable .app that references other application but can merge with shell scripts or other stuff to get around the limitations of not being able to access functions lost when applications are ported to OS X.

Generating a new .app via Platypus that makes a call to start the executable in the Contents of the OS X app and an external shell script is a great way around this because the shell script and app will still work as long as the path to the Google Chrome Canary.app stays consistent from update to update.

Once in Platypus, I created a shell script that it places by default under the ~/Library/Application/Support/Platypus. The script makes a call to the executable and adds the flag that I wanted to nix the cert warnings.

Script to start Google Chrome Canary with the command-line arg in OS X

You can also test the syntax in the application.

Checking syntax of the script for errors.

After you get what you want, you can save the project as an application. I named my “ChromeHelper.app” and saved in the /Applications directory. This is the launcher I will use that starts Chrome Canary with the additional option. You can also snag the icon for the application from the real application “Get Info” dialogue then paste it into the Platypus interface to give the app a “custom icon.”

Creating the OS X .app in Platypus

After saving, you get an application wrapper that gives to the additional layer of code to pass the args to the executable. Super handy. Here is what the “Get Info” window looks like after the app creation via Platypus.

Dropping the app in your dock or creating a shortcut will have it act just like the original app, but with the additional options. Pretty cool and a great way to get around the one weakness in the application until they add the functionality or Mozilla gets their act together to make Firefox the best browser again one day.

Posted in Apple, Software, Tech Articles, Utilities | Tagged , , , , , , , , , | Leave a comment

Getting the QCN ONavi USB Sensor Going Under 64-Bit Windows

I had a heck of a tough time getting the ONavi USB sensor operational and stable under Windows to work with the Quake Catcher Network project at Stanford. I tried numerous different hosts and operating systems, but wanted to get it going on a 64bit Windows 2008 server we use in-house for student software development because it had some decent horsepower and sat idle on non-school days.

We got the sensor in last year and had some limited success with it on 32-bit Windows for testing, but was unable to get it recognized in Windows as a device. The trick was to NOT use the drivers that QCN recommended. They don’t work. Also, they just provide a windows installer and not the drive files, so you can’t even point Windows to try and force it to load the drivers in their method.

In the QCN forums, there are many entries on the ONavi driver issues but deep in the various threads, I was able to find the link to the drivers that actually did work. This is a direct link to them hosting on my server.

XR21x141x-XP2KVista7-DriversOnly-Vers1.8.0.0

Download the above file and unzip it. Then, go into Windows Device Manager and find the USB device it can’t figure out a driver for and point it at this expended folder. When you do and it loads the driver, you will see that the ONavi sensor hardware is really from Exar Corporation.

ONavi Black USB Sensor in Windows Device Manager after drivers are loaded

Here are some screenshots on the device details after the drivers are loaded from the link above.

Onavi USB Sensor Device Details

Onavi USB Sensor Device Details UART

Once the drivers were loaded, BOINC had no problems going to work in a consistent way.

QCN Running With ONavi USB Sensor on Windows

Hope this helps if you were having issues.

Posted in Hardware, Lick-Wilmerding, Software, SysAdmin, Utilities, Windows | Tagged , , | Leave a comment

“The iPad” Salute to Abbott & Costello: “What’s the 3rd?”

Had to do an Abbott & Costello “Who’s On First?” version for the recent “The iPad” announcement where Apple fails to give the third generation iPad a product model name. Thanks xtranormalEnjoy!

What’s the 3rd?
by: jmergy

Posted in Hardware, Humor, Video | Tagged , , , | Leave a comment