This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contentjson : [ | |
{ guid : '9cb7e642-1156-4d79-8aa0-dec85a74aa87', type : 'image/jpeg' }, | |
{ text : 'hello world' }, | |
{ guid : 'b9d9b0d4-799b-45f7-b662-991143a48640', type : 'audio/mpeg' } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajaxSetup({ | |
xhrFields: { | |
withCredentials : true // allow FF to send auth cookie | |
}, | |
headers: { | |
"X-Requested-With" : "xmlhttprequest" // tell server we're ajax | |
} | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
var audioId = 'apm-audio:/marketplace/segments/2013/07/19/marketplace_segment11_20130719'; | |
$.ajax({ | |
url: 'http://api.publicradio.org/audio/v2/?id='+audioId+'&ref=bar', | |
//dataType: 'jsonp', | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"index":{"_id":2284}} | |
{"collection_id":93,"created_at":"2013-04-15T16:40:58Z","date_broadcast":"2000-03-01","date_created":"2013-03-01","date_peg":null,"description":"The Walrus was Paul","digital_format":"audio/mpeg3","digital_location":null,"duration":9900,"episode_title":"Episode","extra":{"notes_":"African-American politician. http://dc.lib.unc.edu/cdm/compoundobject/collection/sohp/id/8466/rec/16"},"id":2284,"identifier":null,"image":null,"is_public":false,"language":null,"music_sound_used":null,"notes":null,"physical_format":null,"physical_location":null,"series_title":null,"tags":["civil rights","georgia","race relations"],"title":"Love - The Beatles - Right","updated_at":"2013-04-15T16:54:25Z","contributors":["Lennon and McCartney"],"producers":[],"interviewers":[],"interviewees":[],"creators":["Lennon and McCartney"],"hosts":[],"guests":[],"transcripts":[],"collection_title":"Jack_s_spreadsheet_for_Pop_Up_beta_testers.csv","confirmed_entities":[],"low_unconfirmed_entities":[],"mid_unconfirmed_entiti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my %TOPIC_DOCS = ( | |
'Arts' => '89944632-fe7c-47df-bc2c-b2036d823f98', | |
'Culture' => '9c3c8f9e-f038-4b7e-9719-f5c4b1404c1a', | |
'Education' => '7a1c4403-0bce-4866-a9eb-8066da226985', | |
'Food' => '635bb7a1-9e49-4a5d-bab3-048ff945b5fb', | |
'Health' => '9bd2ec35-be2f-4eb1-9ef9-54a59405dd85', | |
'Money' => '4d0acb4c-7057-4771-987d-97fc21ad0bcc', | |
'Music' => '4993cf23-968a-4182-acb2-4d46a96d0ac8', | |
'News' => '5c0f1387-024e-4a84-8804-43048779cc37', | |
'Politics' => '588eb430-d600-4617-ab8f-f601839436a9', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/workers/web_hook_worker.rb b/app/workers/web_hook_worker.rb | |
index b8e422f..0b1dbf5 100644 | |
--- a/app/workers/web_hook_worker.rb | |
+++ b/app/workers/web_hook_worker.rb | |
@@ -38,14 +38,14 @@ class WebHookWorker < BaseWorker | |
end | |
def http_execute(uri, data, options={}) | |
- connection = Excon.new(uri.to_s) | |
+ connection = Excon.new(uri.to_s, :ssl_verify_peer => false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[karpet@workhorse:~/pua/audiosear.ch]$ HEAD -S -U https://archive.org/download/keeping-memories-of-chinatown-alive-and-kicking.0nC96k.popuparchive.org/WEB.ShowGirls.mp3_ts_start.json | |
HEAD https://archive.org/download/keeping-memories-of-chinatown-alive-and-kicking.0nC96k.popuparchive.org/WEB.ShowGirls.mp3_ts_start.json | |
User-Agent: lwp-request/6.03 libwww-perl/6.08 | |
302 Moved Temporarily | |
HEAD https://ia600307.us.archive.org/21/items/keeping-memories-of-chinatown-alive-and-kicking.0nC96k.popuparchive.org/WEB.ShowGirls.mp3_ts_start.json | |
User-Agent: lwp-request/6.03 libwww-perl/6.08 | |
200 OK | |
Cache-Control: max-age=21600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ActiveJob] [WebHookWorker] [8467d0dd-d6f1-4d87-88ae-2d7cc63fe731] WebHookWorker web_hook: "{\"web_hook\":{\"id\":137,\"informer_id\":\"46134e2d-8eaf-4d65-b4c0-6fe528d2f84d\",\"informer_type\":\"TaskLog\",\"url\":\"https://pop-up-archive-staging.herokuapp.com/fixer_callback/files/audio_file/29737?cbt=9617c845f7bf2d1d\",\"message\":\"{\\\"task\\\":{\\\"id\\\":\\\"ce471b40-074d-4c51-b806-e30fd209773f\\\",\\\"task_type\\\":\\\"transcode\\\",\\\"label\\\":\\\"259214\\\",\\\"options\\\":{\\\"bit_rate\\\":\\\"96\\\",\\\"cbt\\\":\\\"9617c845f7bf2d1d\\\",\\\"channel_mode\\\":\\\"s\\\",\\\"format\\\":\\\"ogg\\\",\\\"sample_rate\\\":\\\"44100\\\"},\\\"call_back\\\":\\\"https://pop-up-archive-staging.herokuapp.com/fixer_callback/files/audio_file/29737?cbt=9617c845f7bf2d1d\\\",\\\"result\\\":\\\"s3://www-stage-popuparchive/fixer-test-2.coAr5a.popuparchive.org/us_constitution_preamble_pek.ogg\\\",\\\"result_details\\\":{\\\"status\\\":\\\"created\\\",\\\"message\\\":\\\"created message.\\\",\\\"info\\\":null,\\\"logged_at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
#<Sequence:0x00000007d6ecd0 | |
id: "999d0c55-68f6-49af-860f-bdc4c709f0da", | |
job_id: "9d030ede-755a-4877-8a6c-e662fe2ce72e", | |
sequence_id: nil, | |
status: 2, | |
position: 1, | |
type: "Sequence", | |
task_type: nil, | |
label: nil, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```perl | |
#!/usr/bin/env perl | |
use strict; | |
use Data::Dump qw( dump ); | |
use Net::LDAP::Class::User::AD; | |
use Net::LDAP::Class::Group::AD; | |
use Path::Class; | |
my $usage = "$0 first-or-last-name\n"; | |
my $name = shift(@ARGV) or die $usage; |
OlderNewer