User:Brett Wuth/Running Notes/2012-12

From PCSAR

< User:Brett Wuth | Running Notes
Revision as of 06:13, 1 January 2013 by Brett Wuth (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

[edit] 2012-12-04

documents:


[edit] 2012-12-05

documents:


[edit] 2012-12-07

2012-12-07 16:10 Louis

phone app for sonar detecting when distracted texter is about to run into something

OCR software that does page flattening takes video and and recognizes when page of book is flipped

[edit] 2012-12-08

documents:

[edit] 2012-12-17

documents:

[edit] 2012-12-31

Can use wget to log into Rapid Notify, clear out the call out list, and repopulate it with new entries.

Log in:

  wget --save-cookies cookies.txt --keep-session-cookies https://alert.rapidnotify.com/session/new
<form action="/session" method="post">
<input name="authenticity_token" type="hidden" value="YYYYYYYYYY=" />

The authenticity_token does not change throughout the session.

  wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies --post-data 'authenticity_token=YYYYYYYYYY=&login=brettwuth&password=XXXX' https://alert.rapidnotify.com/session

Get the current list. List #41871 is the test PCSAR call out list. The number should not change as long as we never delete and replace the list (as opposed to the list contents).

This will produce the current contact numbers which should be deleted.

  wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies  https://alert.rapidnotify.com/lists/41871
<a href="/contacts/21974215/edit">Edit</a>

Delete each contact:

  wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies  --post-data 'authenticity_token=YYYYYYYYYY=&_method=delete' https://alert.rapidnotify.com/contacts/21974215

Add new contacts:

  wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies  --post-data 'authenticity_token=YYYYYYYYYY=&contact[first_name]=#13   John Smith&contact[phone_number]=4036271212&contact[phone_number2]=4036271212&contact[phone_number3]=4032351212&contact[email]=wuth@acm.org&contact[sms]=4036271212' https://alert.rapidnotify.com/lists/new_contact/41871


Note that download produces some interesting fields

Name,Email,SMS,Phone,Pin,Report field1,Report field2,Report field3,Report field4,Report field5,Active,Phone number2,Phone number3,Address,City,State/Province,ZIP/Postal
#02   Charlie Brown,"",,4036271212,"","","","","","",true,,,"","","",""

There's a header line. Perhaps if that's reproduced exactly, uploads would not require manual column matching.

There's a field "Active" which is undocumented and not accessible from the GUI. Perhaps uploads can manage, or more importantly, using POST

parameter. Think GreaseMonkey extension.

Personal tools