Skip to content

Instantly share code, notes, and snippets.

@mcolyer
mcolyer / updateclosing.js
Created May 31, 2014 14:50
My function for Google App Script to grab tickers
function updateClosingPrice() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var positions = spreadsheet.getRangeByName('positions')
var values = positions.getValues();
var numRows = positions.getNumRows();
// Collect all of the symbols
var symbols = [];
for (var i = 0; i <= numRows - 1; i++) {
var row = values[i];
How to make standalone IE6 work
Note: You can not run standalone IE6 if IE7 is currently open. You MUST close all IE7 windows.
Make a file called config.py and save it to your current directory.
IE_BINARY = "C:\Program Files\<Put your directory here>\iexplore.exe"
In a command window:
set WINDMILL_CONFIG_FILE="config.py"
windmill -x shell
2009-05-07 23:27:26.943 Safari[26106] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x4003, name = 'com.apple.Safari.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2009-05-07 23:27:26.944 Safari[26106] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (com.apple.Safari.ServiceProvider)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/suite.py", line 172, in run
self.tearDown()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/suite.py", line 261, in tearDown
self.teardownContext(ancestor)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/suite.py", line 278, in teardownContext
try_run(context, names)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/util.py", line 451, in try_run
return func(obj)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/windmill-1.1.1-py2.5.egg/windmill/authoring/__init__.py", line 66, in teardown_module
from mozrunner.runner import Mozilla
Mozilla.__init__ = lambda self, binary, profile, cmd_args=[], aggressively_kill=[], env=None: Mozilla.__init__(self, inary, profile, cmd_args=[], aggressively_kill=[], env=None)
usbmuxd: starting
usb_set_debug: Setting debugging level to 3 (on)
usbmuxd: Successfully dropped privileges
usbmuxd: waiting for connection
usbmuxd: new client connected (fd=5)
usbmuxd: usbmuxd_client_init_thread[426f3950]: started (fd=5)
usbmuxd: usbmuxd_client_init_thread[426f3950]: Got scan packet!
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Found 008
usb_os_find_busses: Found 006
<script>
document.write("<img src=\"http://discover.heroku.com/ads/468x60.gif\" width=\"468\" height=\"60\" />")
</script>
<img src="http://discover.heroku.com/ads/120x600.gif">
<img src="http://discover.heroku.com/ads/125x125.gif">
<img src="http://discover.heroku.com/ads/160x600.gif">
<img src="http://discover.heroku.com/ads/728x90.gif">
stat64("/usr/lib/mozilla/plugins/flashplugin-alternative.so", {st_mode=S_IFREG|0644, st_size=10131640, ...}) = 0
stat64("/usr/lib/mozilla/plugins/flashplugin-alternative.so", {st_mode=S_IFREG|0644, st_size=10131640, ...}) = 0
open("/usr/lib/mozilla/plugins/flashplugin-alternative.so", O_RDONLY) = 10
# Q: What are the Field Tags that I can add to my messages?
A:
You can easily insert a tag into your email for your contact's first name, last name, phone number, or any other information that you have included for those contacts within your lists. Remember, you need to import this information for all contacts before you can reference it in your emails. If you have fields named:
* firstname
* lastname
* state
then you could include this data in your email with the corresponding tags