Posts

ios - iOS9 Safari content blocker extension not invoked -

i'm playing xcode7 beta, trying test shiny new " content blocker extension ". example class adopting same nsextensionrequesthandling protocol (already known) sharing extension. essential difference sharing extension class plain nsobject , not *viewcontroller subclass because, know, blocker extension isn't supposed showing ui feedback. that's understanding @ least. anyway crucial method beginrequestwithextensioncontext supposed feed blocker declaration json extension point, not invoked. extension have truepredicate nsextensionactivationrule , safari acknowledge existence of host app in new safari config "content blockers". still no cigar. does know if it's supposed working in beta or press release? and, oh, while we're @ it, there any documentation of declarative json format or it's google-fu failing me? :) how know extension isn't getting invoked? i built quick test app , did simple nslog() beginrequestwithexten...

angularjs - Once I turn off debuggingData in angular, is there another way to get the rootscope? -

i think having debugging info on default in angular sink large apps. can disable in production: https://docs.angularjs.org/guide/production#disabling-debug-data but there cases do: angular.element(document).scope() in order access rootscope. there way in angular $rootscope without debugging feature on? to access $rootscope angular.element(document).injector().get('$rootscope')

javascript - While call function I got this error HttpUserAgent.Errors.SendRequestFailure -

Image
i got httpuseragent.errors.sendrequestfailure error while try call function. works fine when use http when try call https url side httpuseragent.errors.sendrequestfailure error. function process() { var ua = new httpuseragent(); script.log("test"); var resp = ua.request("http://www.google.com"); //var resp = ua.request("https://www.irctc.co.in"); script.log("test1"); return resp; } i following error:

Elasticsearch. Nested field type and raw string subfield -

i has mapping: { "properties":{ /*some fields ommited*/, "properties":{ "type":"nested", "properties":{ "fielda":{ "type":"string", "fields":{ "raw":{ "index":"not_analyzed", "type":"string" } } } } } } } and documents: { /*some fields ommited*/, "properties":{ "fielda":"one" } } { /*some fields ommited*/, "properties":{ "fielda":"two" } } and on. i try make query: { "query": { "nested...

javascript - Safari turns Simple Cors Request into Preflight after 302 redirect -

i found out following issue occurs on safari via javascript, jquery ajax: i make cors simple request using get server responses 302 safari follows redirect uses options instead of method, preflight request i expect step 3 invoke simple request using get, how done in chrome , firefox. the problem server responses request after step 3 can not handle requests method options , therefor fails status "method not allowed". since have no influence on server side, need force either not follow redirect automatically , manually instead or somehow tell safari not switch options. is there way 1 of options?

c++ - MacPorts clang not using its own headers -

i'm trying emscripten work on os x 10.8, see this post related issues there. apparently clang++ version shipped xcode old, got recent clang 3.7.0 using macports. told cmake use compiler (passing -dcmake_cxx_compiler=clang++-mp-3.7 on command line), still fails: [ 33%] building cxx object cmakefiles/optimizer.dir/parser.cpp.o /opt/local/bin/clang++-mp-3.7 -std=c++11 -fno-exceptions -fno-rtti -o3 -dndebug -o cmakefiles/optimizer.dir/parser.cpp.o -c …/emsdk/emscripten/master/tools/optimizer/parser.cpp in file included …/emsdk/emscripten/master/tools/optimizer/parser.cpp:2: in file included …/emsdk/emscripten/master/tools/optimizer/parser.h:12: …/emsdk/emscripten/master/tools/optimizer/istring.h:3:10: fatal error: 'unordered_set' file not found #include <unordered_set> ^ 1 error generated. i can reproduce issue launching compiler command line. in parallel build mode, it's instead complaining <cstdint> optimizer.cpp instead. bo...

excel vba - VBA CSV Import Code in Shared Network not working on co-workers connections -

i have coded csv import file imports , sorts information, import section of code being skipped no errors on co-workers computer , not mine. both access same file in same folder on same shared network, reason not running code same. there no error codes, , set connection shared network using same network folder: n:\12abc\program\main (put csvs here) sub importallcsv() dim fname variant, r long r = 1 fname = dir("*.csv") while fname <> "" importcsvfile fname, activesheet.cells(r, 1) r = activesheet.usedrange.rows.count + 1 fname = dir loop end sub sub importcsvfile(filename variant, position range) activesheet.querytables.add(connection:= _ "text;" & filename _ , destination:=position) .name = replace(filename, ".csv", "") .fieldnames = true .rownumbers = false .filladjacentformulas = false .refreshonfileopen = false .backgroundquery = true .r...