How to detect page loading status using applescript and chrome

This is far from rocket science but I haven’t seen it posted so I’m going to put it here for posterity. This is how you can detect if a page is loaded in chrome with applescript. This is a subroutine, so you can put it at the end of your program and call it with this line

checkForLoading()

Ok, here’s the subroutine.

on checkForLoading()
# checks chrome to see if the frontmost tab is loaded
tell application "Google Chrome" to set chromeLoading to loading of active tab of window 1
repeat while chromeLoading = true
delay 1
tell application "Google Chrome" to set chromeLoading to loading of active tab of window 1
end repeat
end checkForLoading

If I recall correctly, wordpress messes up quotes. If this doesn’t compile then replace the quotes and try again.

Timelapse shutter speed rule of thumb explained

The widely accepted rule of thumb for shooting timelapses is that your shutter speed should be 1/2 your interval. What this means is if you are shooting one shot every 3 seconds, then your ideal exposure is 1.5 seconds.

WHY?

The point of shooting timelapses is to end up with video at some point, right? Film cameras have dealt with this issue for some time now. In a film camera, a piece of film rapidly advances one frame, stops, is exposed to light, then the exposure stops, the film advances and the whole process begins anew. This process can occur 12, 24, 30 or more times per second. The camera needs some time to move the film into position, so it spends some time with the shutter closed (moving film) and then it spends some time with the shutter open (exposing film) The standard for a long time now has been to spend half of the time exposing, and half of the time moving film (not exposing.) On film cameras the shutter is often on a shaft and rotates through the film plane. Thus a 180 degree shutter literally is a half circle that blocks the film from getting light half of the time.

180 degree shutter

WHY?

Well, that’s still a good question. Digital cameras can go from practically 0 degrees up to literally 360 degrees. The big difference is in what it looks like. Motion blur is what this is really all about. Regardless of your exposure or frame rate, a shorter exposure will have less motion blur on it. On the flip side of the coin, a longer exposure will have less action occur when the lens is ‘closed’ and it will look less strobe-like. The balance between those two things is how people decided on a 180 degree shutter, and that brings us back to shooting stills.

When shooting a timelapse, if your shutter speed is smaller than half of your interval then your video will start to look strobey. What I mean by that is that there is a continuity gap from one frame to the other. If the video is of a car driving, then the distance that the car moves between frames will increase and the resulting video will look jumpy.

If your shutter speed is larger than half of your interval you will end up with more motion blur. Trails will occur behind moving objects. This is generally less of a concern because our minds are much less confused by trails than by strobing. Strobing can be dissociative, while motion blur is more like an artistic statement.

In conclusion: Like all rules, this rule of thumb is meant to be broken but it can never be ignored.

Addendum: When you are shooting video in movie mode, this should also guide your shutter choices. If you shoot 720p 60, then you should have a shutter speed of 1/125, and if your are shooting 24fps, then it should be 1/50. Feel free to deviate but know what will happen if you do.

Using Cura on my Reprap

I got a message the other day on g+ from ultimaker letting me know that Cura was available for Macs. Cura is software that does both slicing and printer control. It has some cool features so I decided to check it out.

INSTALL –
The install went very smoothly. It searched for a python module that I didn’t have, then installed it for me. That was it.

CALIBRATION -
Calibration was pretty quick as well. Cura and slic3r both are front ends for skeinforge. EDIT – thanks Gary for the correction. They do a bunch of math behind the scenes so that you can tweak one number and have it ripple through all of the other things that number influences. Cura seems to be even simpler than slic3r, but in my experience that has been a good thing. I had to set my bed size, x,y,z, max length, nozzle size, filament, filament size, and possibly a few other things. There is a first run wizard that guides you through the things that you need to change. The one big sticking point is that you (strangely) need to put your extruder steps per mm into cura. I’m not sure if it was in the wizard. If it wasn’t then you can find it under preferences called “steps per E”

SLICING & PRINTING -
The slicer in cura is well laid out and labeled. It is a little slower than slic3r, but gave me better results. It also allows me to tweak things like speed (by a lot) and have much more consistent results.

COOL THINGS ABOUT CURA –
There is a project planner feature that is pretty awesome. It is a plater, in that it allows you to gang up multiple pieces in one print but it allows you to apply different slicing settings to each piece. Being able to print a wade’s extruder at .2 layers and the gears at .1 on the same bed is really awesome. The coolest thing about project planner is that you can control whether the separate parts are printed individually or all at the same time. I can’t count the number of times that a 3×3 grid of gears will have one gear come up and then it will eventually knock all of the rest free. I LOVE this feature.

There is also a gcode post processor in cura. This has been a staple of traditional cnc software for a long time. I love this. For example: cura was generating a M190 code in the startup. This means that it waits for my heated build platform to get to temp before moving on. I don’t like to wait that long as my apt is cold, and my bed heats up slowly. I was able to swap out all “M190″ codes with “M140″ and away I went!

BAD THINGS ABOUT CURA –
You can’t control the printer without sending a print to it. The overall print section seems to be the least developed part of the whole thing. You can’t select a gcode file to send without generating it in Cura. You can however generate it in cura, then edit externally, and then send it from cura. I have also had far more print freezes and line checksum errors in cura than in slic3r.

CONCLUSION –
I’m stoked on cura. I wish it had a bunch of other features, but it seems like it is developed by a person (? /community?) that has been continuing to add new features and push things. I’m sure that there are some things that I’ll use pronterface for. I may even do my slicing in cura and my printing in pronterface. Either way I am glad to have made the leap, and now I have another software tool in my toolbox.

Hack saturday – spend $25 free on amex @ small business

American express has a one a year campaign where they will reimburse you $25 if you register your amex card online and spend more than 25 at a participating small business. Just to reiterate, here are the two rules
1) register your (amex) card online at http://shopsmall.com
2) buy a minimum of $25 worth of stuff from an amex approved small business. Want to find one? Check out their online small business finder.

Just so you know that this isn’t “too good to believe” you can see that I did it last year and got a bunch of free gear from sparkfun.

So here is why this is hacky enough to go up on my blog. The small businesses don’t have to be local to you. They just need to be on the map. I’ve looked for a bunch of my favorite small open source hardware / reprap stores and have a small list. The most difficult part is that you need to know the store’s physical address, and their name according to amex. I’m sure that I have missed some just because they might have their cc account under a different name than their actual store name.

Here’s my list:
pololu
makerbot
inventables
artisans asylumn
matterhackers
protoparadigm
robotshop
hobby fever
DIY Drones (3d robotics)
you do it electronics

NOT eligible – post with the zip code and address if you can find that they are actually there. I would LOVE that.
shapeways
sparkfun :(
ponoko
adafruit
emsl
printrbot

It’s not too late to register, and I haven’t picked out my list yet. PLEASE post your thoughts for any hacker friendly small businesses that accept amex, or even better – check them out on the map and post back here

Canon 7D firmware 2.0 and 2.0.3 released


Canon released firmware v2.0.3 for the 7D recently. Go here to find it. It fixes some things broken by the 2.0 update.
The 2.0 firmware enables a bunch of new features. Here is the canon site explaining everything. My favorite options are the higher burst rate, higher max iso, and the manual audio levels.

Oh, and while you’re at it – check out Magic lantern on the 7D. It’s finally making some progress!!

Magic Lantern on 7D! with Video!

I was about to put up a post about the new 7D firmware v2.0.3 from canon being released, but it was eclipsed by some amazong news. Over on the Magic Lantern site it seems that User g3gg0 has figured out the weird dual-digic configuration and has been able to run a hello world test on a 7d! It is not a fully developed release (not at all) but it is GREAT news, and an awesome step in the right direction.

UPDATE – Magic lantern just tweeted this video. It mainly shows the overlay window, but it also shows focus trapping. Even a tiny step is great, but this is a HUGE STEP!

I’ll DEFINITELY keep you updated as this develops. I donated to Magic lantern a few weeks ago, but I’m about to re-up! Here’s that link again, just in case a little $$ will get this first release out the door faster!

CHDK Compatible Powershot SD series cameras


SD Series

The SD series is a slightly higher level version of the A series. They have nice metallic-looking rounded bodies. They have a very pocketable size, and they feel very good in the hand. Their battery life is somewhat a limitation due to their size and their batteries are generally tiny things with external chargers. These cameras can make for a great walk around point and shoot, or a platform for a more involved level of tinkering. With a big enough external battery they could make for a great motion detection photo system, and their small size means that you could tuck them in a dark corner and unobtrusively capture a timelapse or two.

———————–

Canon Powershot SD30 5MP Digital Elph Camera with 2.4x Optical Zoom (Tuxedo Black)

Price: $345.00

4.3 out of 5 stars (50 customer reviews)

7 used & new available from $55.00

Canon Powershot SD300 4MP Digital Elph Camera with 3x Optical Zoom

Price: $45.00

4.0 out of 5 stars (112 customer reviews)

9 used & new available from $45.00

Canon Powershot SD400 5MP Digital Elph Camera with 3x Optical Zoom

Price: $599.90

4.1 out of 5 stars (183 customer reviews)

14 used & new available from $30.96

Canon Powershot SD500 7.1MP Digital Elph Camera with 3x Optical Zoom

Price: $499.99

4.1 out of 5 stars (167 customer reviews)

15 used & new available from $40.56

Canon Powershot SD550 7.1MP Digital Elph Camera with 3x Optical Zoom (Beige)

Price: $699.00

4.3 out of 5 stars (154 customer reviews)

7 used & new available from $75.00

Canon PowerShot SD600 6MP Digital Elph Camera with 3x Optical Zoom

Price: $379.01

4.5 out of 5 stars (505 customer reviews)

33 used & new available from $24.99

Canon PowerShot SD630 6MP Digital Elph Camera with 3x Optical Zoom

Price: $639.39

4.6 out of 5 stars (242 customer reviews)

17 used & new available from $20.00

Canon PowerShot SD700 IS 6MP Digital Elph Camera with 4x Image Stabilized Zoom

Price: $799.90

4.5 out of 5 stars (317 customer reviews)

8 used & new available from $65.00

Canon PowerShot SD750 7.1MP Digital Elph Camera with 3x Optical Zoom (Silver)

Price: $199.00

4.5 out of 5 stars (590 customer reviews)

25 used & new available from $38.50

Canon PowerShot SD770 IS 10MP Digital Camera with 3x Optical Image Stabilized Zoom (Silver)

Price: $310.00

4.5 out of 5 stars (426 customer reviews)

8 used & new available from $65.00

Canon PowerShot SD780IS 12.1 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Black)

Price: $269.99

4.3 out of 5 stars (796 customer reviews)

37 used & new available from $44.99

Canon PowerShot SD790IS 10MP Digital Camera with 3x Optical Image Stabilized Zoom

Price: $465.95

4.5 out of 5 stars (253 customer reviews)

15 used & new available from $59.11

Canon PowerShot SD800 IS 7.1MP Digital Elph Camera with 3.8x Wide Angle Image-Stabilized Optical Zoom

Price: $80.00

4.5 out of 5 stars (582 customer reviews)

17 used & new available from $80.00

Canon PowerShot SD870IS 8MP Digital Camera with 3.8x Wide Angle Optical Image Stabilized Zoom (Silver)

Price: $69.99

4.3 out of 5 stars (481 customer reviews)

20 used & new available from $69.99

Canon PowerShot SD880IS 10MP Digital Camera with 4x Wide Angle Optical Image Stabilized Zoom (Silver)

Price: $50.00

4.2 out of 5 stars (297 customer reviews)

11 used & new available from $50.00

Canon PowerShot SD890IS 10MP Digital Camera with 5x Optical Image Stabilized Zoom

Price: $499.00

4.2 out of 5 stars (228 customer reviews)

8 used & new available from $49.99

Canon PowerShot SD900 Titanium 10MP Digital Elph Camera with 3x Optical Zoom

Price: $799.00

4.4 out of 5 stars (131 customer reviews)

8 used & new available from $119.90

Canon PowerShot SD950IS 12.1MP Digital Camera with 3.7x Optical Image Stabilized Zoom (Titanium)

Price: $84.50

4.3 out of 5 stars (170 customer reviews)

5 used & new available from $84.50

Canon Powershot SD990IS 14.7MP Digital Camera with 3.7x Optical Image Stabilized Zoom (Black)

Price: $229.95

4.5 out of 5 stars (184 customer reviews)

5 used & new available from $229.95

Canon PowerShot SD1000 7.1MP Digital Elph Camera with 3x Optical Zoom (Silver)

Price: $499.88

4.4 out of 5 stars (893 customer reviews)

33 used & new available from $30.00

Canon PowerShot SD1100IS 8MP Digital Camera with 3x Optical Image Stabilized Zoom (Silver)

Price: $445.00

4.5 out of 5 stars (972 customer reviews)

16 used & new available from $40.00

Canon PowerShot SD1200IS 10 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Silver)

Price: $391.00

4.3 out of 5 stars (760 customer reviews)

5 used & new available from $325.00

Not linked – SD850
———————–

As with every camera purchase, you’ll need to make sure that you end up with an appropriate memory card (or two), a battery, and charger. If you buy new this is less of a concern, but a lot of these cameras are only really available on the used market so keep an eye out for what accessories are bundled with the camera.

Go Back to the CHDK compatible overview page

CHDK compatible Powershot A series cameras
CHDK compatible Powershot ELPH series cameras
CHDK compatible Powershot S series cameras
CHDK compatible Powershot SD series cameras
CHDK compatible Powershot SX series cameras
CHDK compatible Powershot G series cameras

CHDK Compatible Powershot S series cameras

S Series
The S series is where best buy thinks that the line between point and shoots and SLRs starts to get blurry. These are a bigger form factor, and the are not pocketable. They may look like a dslr from a distance, but the lens is not detachable. This series generally has a nice long optical zoom length but doesn’t win many style points. These cameras can be picked up pretty cheap (*used) because they aren’t the sharpest looking canons on the market. (body-wise, not image-wise) They still can have great optical quality and their larger size enables both larger screens and longer lasting batteries. If all that you care about is the picture then these might make a good tradeoff of price per pixel.



Not linked – S5

As with every camera purchase, you’ll need to make sure that you end up with an appropriate memory card (or two), a battery, and charger. If you buy new this is less of a concern, but a lot of these cameras are only really available on the used market so keep an eye out for what accessories are bundled with the camera.

Go Back to the CHDK compatible overview page

CHDK compatible Powershot A series cameras
CHDK compatible Powershot ELPH series cameras
CHDK compatible Powershot S series cameras
CHDK compatible Powershot SD series cameras
CHDK compatible Powershot SX series cameras
CHDK compatible Powershot G series cameras

CHDK Compatible Powershot ELPH cameras

Elph Series
The ELPH Series are good looking cameras with metal bodies. They are a small form factor camera and easily pocketable. These are a good choice if you are using chdk to get a few more features from your point and shoot, but you don’t want to do any hardware hacking or explore manual modes. Enabling RAW format on these cameras could easily be worth the effort, even if you didn’t play around with many of CHDK’s other features.


Not linked – ELPH 300 500

As with every camera purchase, you’ll need to make sure that you end up with an appropriate memory card (or two), a battery, and charger. If you buy new this is less of a concern, but a lot of these cameras are only really available on the used market so keep an eye out for what accessories are bundled with the camera.

Go Back to the CHDK compatible overview page

CHDK compatible Powershot A series cameras
CHDK compatible Powershot ELPH series cameras
CHDK compatible Powershot S series cameras
CHDK compatible Powershot SD series cameras
CHDK compatible Powershot SX series cameras
CHDK compatible Powershot G series cameras

CHDK Compatible Powershot G series cameras

G series
The G series is really the jewel in the powershot line. All of the cameras from the G7 on up have metal bodies, full manual modes, and are built with dials and buttons in order to allow you to use the manual mode without going through any menus. Most of the cameras have a threaded ring around the lens that allow you to mount (a few) accessories like a wide angle lens. These cameras also all have hot-shoes for mounting flashes just like a dslr. Even broken, these cameras will sell for a few hundred dollars. If you can get your hands on one of these affordably, then jump at the chance. The listed price is the lowest (usually used) price on Amazon.

G SERIES CHDK RES ZOOM IS LCD RELEASED REVIEW
G7 CHDK 10 6 y 2.5 2005 dpreview.com

Canon PowerShot G7 10MP Digital Camera with 6x Image-Stabilized Optical Zoom

Price: $949.00

4.4 out of 5 stars (148 customer reviews)

12 used & new available from $159.95

G SERIES CHDK RES ZOOM IS LCD RELEASED REVIEW
G9 CHDK 12.1 6 y 3 2007 dpreview.com

Canon PowerShot G9 12.1MP Digital Camera with 6x Optical Image Stabilized Zoom

Price: $1,049.99

4.2 out of 5 stars (297 customer reviews)

36 used & new available from $90.00

G SERIES CHDK RES ZOOM IS LCD RELEASED REVIEW
G10 CHDK 14.7 5 y 3 2008 dpreview.com

Canon Powershot G10 14.7MP Digital Camera with 5x Wide Angle Optical Image Stabilized Zoom

Price: $1,072.50

4.4 out of 5 stars (250 customer reviews)

11 used & new available from $290.00

G SERIES CHDK RES ZOOM IS LCD RELEASED REVIEW
G11 CHDK 10 5 y 2.8 2009 dpreview.com

Canon PowerShot G11 10MP Digital Camera with 5x Wide Angle Optical Stabilized Zoom and 2.8-inch articulating LCD

Price: $729.99

4.4 out of 5 stars (203 customer reviews)

24 used & new available from $170.00

G SERIES CHDK RES ZOOM IS LCD RELEASED REVIEW
G12 CHDK 10 5 y 2.8 2010 dpreview.com

Canon G12 10 MP Digital Camera with 5x Optical Image Stabilized Zoom and 2.8 Inch Vari-Angle LCD

Price: $799.00

4.4 out of 5 stars (356 customer reviews)

27 used & new available from $310.00

G SERIES CHDK RES ZOOM IS LCD RELEASED REVIEW
G1x CHDK 14.3 4 y 3 2012 dpreview.com

As with every camera purchase, you’ll need to make sure that you end up with an appropriate memory card (or two), a battery, and charger. If you buy new this is less of a concern, but a lot of these cameras are only really available on the used market so keep an eye out for what accessories are bundled with the camera.

Go Back to the CHDK compatible overview page

CHDK compatible Powershot A series cameras
CHDK compatible Powershot ELPH series cameras
CHDK compatible Powershot S series cameras
CHDK compatible Powershot SD series cameras
CHDK compatible Powershot SX series cameras
CHDK compatible Powershot G series cameras