User:Brett Wuth/Running Notes/2012-12

From PCSAR

< User:Brett Wuth | Running Notes(Difference between revisions)
Jump to: navigation, search
(Add Members:2012-12-08_21_42_57u-scan.pdf)
Current revision (06:13, 1 January 2013) (edit) (undo)
(2012-12-17)
 
(8 intermediate revisions not shown.)
Line 25: Line 25:
* {{link|Image:Members:2012-12-08_20_53_01u-scan.pdf}}
* {{link|Image:Members:2012-12-08_20_53_01u-scan.pdf}}
* {{link|Image:Members:2012-12-08_21_42_57u-scan.pdf}}
* {{link|Image:Members:2012-12-08_21_42_57u-scan.pdf}}
 +
* {{link|Image:Members:2012-12-08_21_44_02u-scan.pdf}}
 +
* {{link|Image:Members:2012-12-08_21_56_34u-scan.pdf}}
 +
* {{link|Image:Members:2012-12-08_21_57_27u-scan.pdf}}
 +
* {{link|Image:Members:2012-12-08_21_58_20u-scan.pdf}}
 +
* {{link|Image:Members:2012-12-08_21_59_12u-scan.pdf}}
 +
* {{link|Image:Members:2012-12-08_22_00_17u-scan.pdf}}
 +
== 2012-12-17 ==
 +
 +
documents:
 +
* {{link|Image:Members:2012-12-17_20_46_41u-scan.pdf}}
 +
* {{link|Image:Members:2012-12-17_22_58_12u-scan.pdf}}
 +
== 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"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="YYYYYYYYYY=" /></div> <p>
 +
 +
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
 +
 +
<pre>
 +
<a href="/contacts/21974215/edit">Edit</a>
 +
</pre>
 +
 +
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
 +
<pre>
 +
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,,,"","","",""
 +
</pre>
 +
 +
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.

Current revision

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.