Posts

Showing posts from August, 2011

python - enumerating numbers in strings -

python - enumerating numbers in strings - this seems problem have straight-forward answer; sadly, not fluent in python i'm still learning, , have not been able find helpful on google. my goal enumerate numbers in string based on how much padding number has. think best way describe example: 0-file enumerated 0-file 9-file but 000-file enumerated 000-file 999-file . ultimately want able [number][a-z] , [a-z][number] , , [a-z][number].* (so file10name.so wouldn't match), think can figure part out myself regex later on. so, question boils downwards this: how length of 'padding' in file? how identify in string number is, can replace it? how add together padding when i'm iterating (i'm assuming zfill , i'm interested if there's improve method). quick edit: yes, 'psudo regex' that. concept conveyed, hence why wouldn't match things "-". padding number, not 0, thats alright. both answers received far perfect. can

php - URL encoding issue: different results between two servers -

php - URL encoding issue: different results between two servers - i have 2 servers, both have same configurations. uploaded same code both servers. <?php echo $_server['request_uri']; exit; ?> when access server 1 http://server1.com/%3d it prints /%3d when access server 2 http://server2.com/%3d it prints /= what cause in different results? is there setting can do? or anyway observe it? try using urldecode() <?php $server1 = '/%3d'; $server2 = '/='; print urldecode($server1); // /= print urldecode($server2); // /= eg. print urldecode($_server['request_uri']); example codepad here php codeigniter urlencode

ruby - Why does Rspec of RubyMonk says it true where the outcome is false? -

ruby - Why does Rspec of RubyMonk says it true where the outcome is false? - i have this: def kaprekar?(k) string_k = (k * k).to_s length_k = k.to_s.length.to_i length_k2 = string_k.to_s.length.to_i number1 = string_k[0...length_k].to_i number2 = string_k[length_k..length_k2].to_i number1 + number2 == k end and according error message 297 output true. returns true 297 rspec::expectations::expectationnotmeterror expected false true but when same on repl.it see output: kaprekar?(297) string_k : 88209 length_k : 3 length2 : 5 number1 : 882 number2: 9 => false which right answer. can explain why rubymonk outcome true? edit 1: the task is: problem statement 9 kaprekar number since 9 ^ 2 = 81 , 8 + 1 = 9 297 kaprekar number since 297 ^ 2 = 88209 , 88 + 209 = 297. in short, kaprekar number k n-digits, if square , add together right n digits >to left n or n-1 digits, resultant sum k.

php - How to pass parameter in ajax -

php - How to pass parameter in ajax - i have ajax script working fine. 1 time success, want pass parameter header("location: tar.php?php=$value"); till know $("body").load("rumour.php"); help me pass parameter have in php $.ajax ({ type: "post", url: "update_comment.php", data: { id1: id, comment1: comment }, success: function(data) { $("body").load("rumour.php"); } ); try this: $("body").html(data); php ajax

node.js - nodejs uncaught exceptions after sending reponse -

node.js - nodejs uncaught exceptions after sending reponse - i've restify server requests client parameters run long process. so, after initializing attributes , checks, service returns json client (and start processing asynchronusly). client can monitor process via log files on sockets. the problem exception before res.send(jsonobject) can caught by process.on('uncaughtexception'... but exception after sending response can't caught!!! regardless handling exceptions way isn't best way , tailing on sockets isn't good i want able grab later exceptions may occur after sending response client!! perhaps should take @ this post regarding exception handling. when error bubbles uncaughtexception puts process in unknown state. if you'd instead isolate these exceptions consider using domains wrap logic safely. per nodejs documentation: "note uncaughtexception rough mechanism exception handling , may removed in future.

java - Calculating 'n' maximum value in hadoop -

java - Calculating 'n' maximum value in hadoop - i have scenario. output previous job1 in next job need find i key having maximum value.eg i=3, 3 keys having maximum value. ( i custom parameter) how approach this. should calculated max in job2 mapper there unique keys, output coming previous reducer or find max in sec jobs reducer.but 1 time again how find i keys? update i tried in way instead of emiting value value in reducer.i emitted value key can values in ascending order. , wrote next mr job.where mapper emits key/value. reducer finds max of key 1 time again stuck cannot done seek id , because id unique,values not uniqe. how solve this. can suggest solution this. thanks in advance. you can find top i keys priorityqueue . simple code illustrate idea: public static class topnmapper extends mapper<intwritable, doublewritable, intwritable, doublewritable> { private static class mypair implements comparable<mypair>

Using "this" in getters/setters in C# -

Using "this" in getters/setters in C# - short , sweetness (hopefully), there specific reason not utilize this keyword when writing getters , setters in c#? know typical format, , 1 i've used, is: public void setday(int _day) { day = _day; } public int getday() { homecoming day; } recently though, i've been learning java, , in several of books i've been using i've seen written instead this: public void setday(int _day) { this.day = _day; } public int getday() { homecoming this.day; } so basically, there reason avoid doing same way in c#? cause problems or errors, or valid approach , matter of personal preference. i'm wondering because, while know this in c# understood, explicitly using this keyword seems aid in eliminating bit ambiguity, thing. thank you! there's not much really. can it, , can avoid it. think it's quite obvious when you're in getter/setter you&#

php - How to configure APC for many sites? -

php - How to configure APC for many sites? - we're running many sites on 1 machine, apc.shm = 4g . not sufficient in caching everything, set apc.ttl= 600 unused entries evicted. it's not clear if working planned. see cache nail rate of ~91%, 100% fragmentation quickly. we started seeing php go unresponsive requires apache restart, nil logged in php or apache logs. apache can still serve static files without issue during time. gut tells me related churn @ apc in way. here current settings: apc.cache_by_default 1 apc.canonicalize 0 apc.coredump_unmap 0 apc.enable_cli 0 apc.enabled 1 apc.file_md5 0 apc.file_update_protection 2 apc.filters apc.gc_ttl 3600 apc.include_once_override 0 apc.lazy_classes 0 apc.lazy_functions 0 apc.max_file_size 1m apc.mmap_file_mask /dev/zero apc.num_files_hint 1024 apc.preload_path apc.report_autofilter 0 apc.rfc1867 0 apc.rfc1867_freq 0 apc.rfc1867_name apc_upload_progress apc.rfc1867_prefix upload_ a

sql - Assign String variable in SSIS -

sql - Assign String variable in SSIS - i have execute sql task in ssis seek store string value this query declare @idlist nvarchar(max) select @idlist = coalesce( @idlist + ''',''', '') + id table select @idlist = '''' + @idlist select @idlist the result looks 'abc','bcd','def','fds' and seek store value string variable in ssis result set: single row result name: 0 variable name: string_contact this error got [execute sql task] error: value type (__comobject) can converted variables of type object. [execute sql task] error: error occurred while assigning value variable "string_contact": "the type of value (dbnull) beingness assigned variable "user::string_contact" differs current variable type (string). variables may not alter type during execution. variable types strict, except variables of type object. ". anyone know what's issue?

scala - How do I correctly compare Options members in Slick? -

scala - How do I correctly compare Options members in Slick? - i'm doing things addresses, , fellow member subpremise(apartment/condo #) causes retrieves miss. have concerns subpremise beingness part of unique index constraint, given can null. failure filter: tablequery.filter(c=> (c.longitude === r.longitude && c.latitude === r.latitude) || (c.streetnumber === r.streetnumber && c.route === r.route && c.subpremise === r.subpremise && c.neighborhoodid === r.neighborhoodid)) successful filter: (by removung subpremise) tablequery.filter(c=> (c.longitude === r.longitude && c.latitude === r.latitude) || (c.streetnumber === r.streetnumber && c.route === r.route && c.neighborhoodid === r.neighborhoodid)) i've included definitions below s.t. if there contributing factor i've missed, noticed. case class address(id:option[long],streetnumber:short,route:string,subpremise:option[

Openlayers change WMS call URL -

Openlayers change WMS call URL - i'm relatively inexperienced openlayers, , i've been trying figure out while now. i've created layer on map wms call. have url set when click radio button, runs function, , inserts part of url link proper file on server. it's improve explain code... var layer_type = "tavg_sddiff"; var layer_name = "tavg_sd_diff"; function layer_names(id) { layer_type = openlayers.util.getelement(id).id; } tavg = new openlayers.layer.wms("tavg", "http://convection.meas.ncsu.edu:8080/thredds/wms/sco/synthesis/eval_wicci_" + layer_type + "_50km.nc?", {layers: layer_name, version:'1.1.1', crs:'crs:84', "transparent":'true', "styles":'boxfill/shrmc-mxhgt', "colorscalerange":'-2.1,2.1', "numcolorbands":'42', "abovemaxcolor":'extend', "belowm

url rewriting - How to make a "beautiful" URL with Django-Python -

url rewriting - How to make a "beautiful" URL with Django-Python - i have url product of form: /capidahl?fecha=2014-06-23&hora1=00&minutos1=00&hora2=23&minutos2=59 i want create shorter, capidahl/2014/06/24. how can rewrite url using django? that done in django. in urls.py, specify handler: (r'^capidahl/(?p<fecha>[0-9-.]+)/*(?p<hora>[0-9]+)/*(?p<minutos>[0-9]+)', 'my_function') then, function handles variables: def my_function(request, fecha, hora='12', minutos='00'): explained at: https://docs.djangoproject.com/en/dev/topics/http/urls/ django url-rewriting django-forms

javascript - jQuery specify inner html -

javascript - jQuery specify inner html - i creating jquery div element below; var divele = $('<div />', {'class': 'editabletxt','data-model-attr':currelmmodelattr,'data-model-id':'currelmmodelid'}); now want append html text/value within div... so should render as; <div class="editabletxt" data-model-attr="modelattr" data-model-id="currelmmodelid">my inner html/text</div> i doing; $(this).parent().append(divele).append($(this).val()); but renders separate kid element , not within divele... how specify in same syntax above ? you should utilize .html() set html divele $(this).parent().append(divele.html($(this).val())); or simply use var divele = $('<div />', { 'class': 'editabletxt', 'data-model-attr': currelmmodelattr, 'data-model-id': 'currelmmodelid', 'html' : &#

c# - How to call a full postback after the execution of the button click event inside an user control? -

c# - How to call a full postback after the execution of the button click event inside an user control? - okay, have scenario: there user command update panel within it. there button within update panel proper postback trigger beingness set. button_click event defined well. need phone call total postback of parent aspx page 1 time "button_click" event completed. under ideal case, form submission events such postbacks occur before event based methods executed. means page first reloaded button click event executed. want reverse operation. first button_click event execution 1 postback after on aspx page(this page calls user control-> , user command has updatepanel button in it). any possible way out highly appreciated. i don't think there's way alter asp.net's lifecycle, 1 described. (dirty) way of postbacking parent page set hidden button on page, , phone call via javascript in uc. (via scriptmanager.registerstartupscript) c# asp.ne

java - JAX-WS. SOAP response body tag to custom tag -

java - JAX-WS. SOAP response body <return> tag to custom tag - i receiving deploy time error in glassfish 4 when seek deploy jax-ws service @webresult annotated method. below artifacts. @webservice(name = "testmartcatalog", targetnamespace = "http://www.testmart.com") public interface productcataloginterface { @webmethod(action = "fetch_categories", operationname = "fetchcategories") public abstract list<string> getproductcatagories(); @webmethod public abstract list<string> getproducts(string category); @webmethod public abstract boolean addproduct(string category, string product); @webmethod @webresult(name="product") public abstract list<product> getproductsv2(string category); } @webservice(endpointinterface="come.lets.learn.jaxws.productcataloginterface", portname="testmartcatalogport", servicename = "testmartcatalogservice&q

jquery - Slide out html menu for mobile / ipad etc -

jquery - Slide out html menu for mobile / ipad etc - i want slide in/out menu ipad/mobile device platform responsive css website. i've hand written 1 sort of works doesn't allow sliding close or clicking outside close (have utilize close button). all examples i've seen utilize wordpress i'm writing pure html/jquery/css. does have prepare this? tried jquery mobile panel didn't work wanted, because it's not mobile site guess. my main html is <div> <h2>lorum ipsum 5 times length</h2> <p>at vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. et harum quidem rerum facilis est et expedita distinctio. nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo mi

jsf 2 - Login Logout in JSF 2 -

jsf 2 - Login Logout in JSF 2 - i tried login , logout method refer article http://www.itcuties.com/j2ee/jsf-2-login-filter-example/ login method fine logout doesn't work! loginbean.java @managedbean @sessionscoped public class loginbean implements serializable { @ejb private usersfacadelocal usersfacade; public loginbean() { } // public string dologin() { string redirect = ""; if (usersfacade.loginuser(email, password)) { loggedin = true; redirect = navigationbean.redirecttomain(); } else { facescontext facescontext = facescontext.getcurrentinstance(); facescontext.addmessage(null, new facesmessage(facesmessage.severity_warn, "username or password incorrect", null)); redirect = navigationbean.redirecttologin(); } homecoming redirect; } // public string dologout() { externalcontext ectx = facescontext.getcu

Print counting in loop java -

Print counting in loop java - i have java programme simulates values , returns them. want see how far simulation printing current state. ex: system.out.print("number of simulations: "); for(int i=0;i<number_of_simulations;i++){ /* calcutions*/ system.out.print("\b" + i); } i thougth possible, output is: number of simulations: 0?1?2?3?4?5?6?7?8?9?10?11?12? i want see current state, not counter. if i++ current removes , i+1 shown. \b go 1 char. pawel veselov said, utilize \r go origin of line. of import thing that, depending on you're testing output (ide), won't work expected. should test in shell (windows cmd or linux terminal) in order see real result. java loops printing

symfony2 - Passing options array to EventListerner from a FormType -

symfony2 - Passing options array to EventListerner from a FormType - i have formtype reused editing & creating records. form has 1 entity field renders select populated depending record id, need skip field when creating new record. read http://symfony.com/doc/current/cookbook/form/dynamic_form_modification.html , after changing roots, seems fine until i'm trying edit existing record when stuck error: contexterrorexception: notice: undefined variable: options in /users/a77/documents/dev/uvox com/src/acme/demobundle/eventlistener/venuefieldsubscriber.php line 32 mi venuesformtype : namespace acme\demobundle\form; utilize symfony\component\form\abstracttype; utilize symfony\component\form\formbuilderinterface; utilize symfony\component\optionsresolver\optionsresolverinterface; utilize acme\demobundle\eventlistener\venuefieldsubscriber; class venuestype extends abstracttype { public function buildform(formbuilderinterface $builder, array $options) {

How to deal with: redeclaration of C++ built-in type ‘char16_t’ -

How to deal with: redeclaration of C++ built-in type ‘char16_t’ - in c++11 project have utilize external c library. library main header file defines typedef uint16_t char16_t; and because of compilation of c++ programme includes library fails, message: redeclaration of c++ built-in type ‘char16_t’ the thought have repackage whole library because char16_t pervasive in library time consuming (if possible). there sensible ways of dealing problem? edit: i have thought of removing problematic line , replacing every occurrence of char16_t uint16_t have modify 3rd party library headers , not particularly thought (there can more similar errors). wonder whether there way of dealing of broader problem of incompatibilities between c++ , c when including headers. you utilize macro rename library type while keeping unrelated new language type char16_t : #define char16_t library_char16_t #include <library> #undef char16_t then, library header

java - javax.naming.NoInitialContextException in simple jms app -

java - javax.naming.NoInitialContextException in simple jms app - import java.util.properties; import javax.jms.*; import javax.naming.*; public class topicconsumer implements messagelistener { public static void main(string[] args) throws jmsexception, namingexception { system.out.println("------>starting jms topicconsumer<----"); context context= topicconsumer.getinitialcontext(); system.out.println(">>>1<<<"); topicconnectionfactory topicconnectionfactory= (topicconnectionfactory)context.lookup("connectionfactory"); system.out.println(">>>2<<<"); topic topic= (topic) context.lookup("topic/akshay"); system.out.println(">>>3<<<"); topicconnection topicconnection= topicconnectionfactory.createtopicconnection(); system.out.println(">>>4<<<"); topi

Are JSON schemas necessary for defining the structure of a JSON? -

Are JSON schemas necessary for defining the structure of a JSON? - i asking because see current json schema draft (http://json-schema.org/) proposes have schema of json in next way: for json : { "a":"abc" "b": 123 } the schema proposed in draft like { "type":"object" "properties":{ "a": {"type":"string"} "b": {"type":"integer"} } } my question here json not define structure? separate schema necessary? the schema proposed draft validates json have above construction , json of format { "a":"string" "b": 1 (or number) } so need of separate schema json. can utilize json define construction also. ps. know can specify restrictions on values json can take through schemas proposed in draft, point of view of defining construction of json, proposed schemas necessary? the json not define structure.

windows phone 8 - How to customize Syncfusion WP8 SfColorPalette control? -

windows phone 8 - How to customize Syncfusion WP8 SfColorPalette control? - i need customize features in control, did not saw public property/method for: hide command header; change command header (like "select favorite color" instead of "colors"); hide button alter swatches set default swatch palette. tnks suggestion query #2 xaml: <sync:sfcolorpalette fontsize="20"/> create resource file given details. mandatory. file name : syncfusion.sfcolorpickers.winrt.resources file extension : .resw resources : colors, swatches add resource file project. header alter automatically. windows-phone-8 syncfusion

c# - Show MessageBox inside Pastinghandler WPF -

c# - Show MessageBox inside Pastinghandler WPF - i have dialog user can edit fields. there 3 specific ones have validation. these fields created pastinghandler following: dataobject.addpastinghandler(mytextbox, numericvalidatorhandler); when seek show messagebox within handler exception. seems paste runs in different thread... my workaround @ moment utilize backgroundworker , set 2 events dowork , runworkercompleted. in first 1 set result args pass numericvalidatorhandler 'argument' property 'numericvalidatorhandler' bw.runworkerasync(args); .... 'doworkhandler' e.result = e.argument; .... 'runworkercompletedhandler' //here utilize e.result create output message messagebox is there easier way show messagebox within past eventhandler? you can add together work item onto ui thread work item queue using dispatcher class. seek this: public void dataobjectpastingeventhandler(object sender, dataobjectpas

c++ - Turn casting / construction into a perfect forwardable function -

c++ - Turn casting / construction into a perfect forwardable function - sscce: #include <functional> using std::function; using std::forward; template<typename totype, typename... fromtypes> totype construct(fromtypes&&... fromtypes) { homecoming totype(forward<fromtypes>(fromtypes)...); } class maybe { public: maybe() : m_value(42.0f) {} template<typename function> auto apply(function function) const -> decltype(function(std::declval<float>())) { homecoming function(value()); } private: float const& value() const { homecoming m_value; } float m_value; }; int main() { maybe a; a.apply(construct<int, float>); homecoming 0; } gives error: test.cpp: in instantiation of ‘decltype (function(declval<float>())) maybe::apply(function) const [with function = int (*)(float&&); decltype (function(declval<float>())) = int]’: test.cpp:31:32: required here test.cpp:17:28:

python - WTForms when rendering two forms on the same page with a Recaptcha fields only one is displayed -

python - WTForms when rendering two forms on the same page with a Recaptcha fields only one is displayed - i using flask wtforms. using wtfrecaptcha plugin in order utilize captcha fields. turns out need utilize 2 forms on same page. when assign captcha field on each form, 1 of captchas not rendered on .html page. because captcha created same id: captcha , forms declaration on forms.py file: from wtforms import passwordfield, stringfield, validators, widgets, radiofield wtforms.form import form wtfrecaptcha.fields import recaptchafield class firstform(form): """first form""" #omitting fields here captcha_1 = recaptchafield('captcha', [], public_key='omitting_public_key', private_key='omitting_private_key', secure=true) class secondform(form): """second form""" #omitting fields here captcha_2 = recaptchafield('captcha', [], public_key='omitting_publ

sql server - Need the query to check the column type for inserted or deleted Magic tables -

sql server - Need the query to check the column type for inserted or deleted Magic tables - i trying create trigger table has 1 image/text type column.i know sql not allow trigger text, ntext , image column.so decided audit table without above mentioned type column.i dont want utilize instead of trigger changing 1 of existing programme generate trigger table in database. what want select * [inserted] (column type not text/image/ntext) i need query check column type inserted or deleted table. you can utilize data_type alter test_db select data_type,* test_db.information_schema.columns order table_name, ordinal_position select data_type,* test_db.information_schema.columns data_type = 'text' or data_type='image' or data_type='ntext' order table_name, ordinal_position select data_type,* test_db.information_schema.columns table_name='inserted' , ( data_type not in( 'text', 'image','ntext')) order table_name

bash - awk/sed extract string from between patterns -

bash - awk/sed extract string from between patterns - i know there has been few hundred forms of question asked on stackoverflow, can't seem find suitable reply question. i'm trying parse through /etc/ldap.conf file on linux box can pick out description fields between (description= , ) : *-bash-3.2$ grep '^nss_base_passwd' /etc/ldap.conf nss_base_passwd ou=people,dc=ca,dc=somecompany,dc=com?one?|(description=td_fi)(description=td_f6)(description=td_f6)(description=tri_142)(description=14_142)(description=rex5)(description=rex5)(description=1950)* i'm looking extract these own list no duplicates: td_fi td_f6 tri_142 14_142 rex5 1950 (or on 1 line proper delimiter) i had played sed few hours couldn't work - i'm not exclusively sure how utilize global option. you utilize grep -p option, $ grep '^nss_base_passwd' /etc/ldap.conf | grep -op '(?<=description\=)[^)]*' | uniq td_fi td_f6 tri_142 14_1

forms - In Mechanize (Ruby), how to login then scrape? -

forms - In Mechanize (Ruby), how to login then scrape? - this question has reply here: how fill out login form mechanize in ruby? 1 reply my aim: on ror 3, pdf file site requires login before can download it my method, using mechanize: step 1: log in step 2: since i'm logged in, pdf link thing is, when debug , click on link scraped, i'm redirected login page instead of getting file there 2 controls did on step 1: (...) search_results = form.submit puts search_results.body => {"succes":true,"url":"/sso/inscription/"} apparently login succeed puts agent.cookie_jar.jar => find info session, si guess cookies saved any hint did wrong ? (could important: on site, when login "http://elwatan.com/sso/inscription/inscription_payant.php", redirected home page (elwatan.com) below code: # step 1,

ios - Core Data initialisation -

ios - Core Data initialisation - i'm new coredata have basic question have providers entity, in view controller @ viewdidload implement method: -(nsdictionary *) allproviders { providers *orangefr = [nsentitydescription insertnewobjectforentityforname:@"providers" inmanagedobjectcontext:self.managedobjectcontext]; orangefr.name = [nsstring stringwithformat:@"orange"]; orangefr.adress = [nsstring stringwithformat:@"champ de mars"]; providers *sfrfr = [nsentitydescription insertnewobjectforentityforname:@"providers" inmanagedobjectcontext:self.managedobjectcontext]; sfrfr.name = [nsstring stringwithformat:@"sfr"]; sfrfr.adress = [nsstring stringwithformat:@"sfr adress"]; nsarray *frproviders = @[orangefr, sfrfr]; providers *att = [nsentitydescription insertnewobjectforentityforname:@"providers" inmanagedobjectcontext:self.managedobjectcontext]; beelineru.name = [nsstring

node.js - nodejs connect usage of built in modules -> method not found -

node.js - nodejs connect usage of built in modules -> method not found - when phone call node.js file var connect = require('connect'); var app = connect(); app.use(connect.static('public')); app.listen(3000); i get app.use(connect.static('public')); ^ typeerror: object function createserver() { function app(req, res, next){ app.handle(req, res, next); } merge(app, proto); merge(app, eventemitter.prototype); app.route = '/'; app.stack = []; homecoming app; } has no method 'static' using connect 3.0.1, there changes integrated modules? if yes, how work then? big changes coming connect 3: middleware modules not included longer. find them @ github.com/expressjs. "static" "serve-static". needs installed separately with: npm install serve-static the above code should this: var connect = require('connect'); var servestatic = require('serve-static')

javascript - add a listener to Cordova events in a Backbone view and not to all document -

javascript - add a listener to Cordova events in a Backbone view and not to all document - i'd add together listener, cordova events, in specific view of backbone , @ moment did using document : var view = utils.view.extend({ initialize: function() { document.addeventlistener( "online", function( ) { // cordova event alert("connected"); // .... }, false); } }); but every time alter view , go view new event listener appended , document has many listeners, need one. how can add together event listener 1 time view , avoid creating new ones every time go view? thanks i have solved similar issue in past doing following: add listener on load of application instead of when view loads have listener phone call function checks specific variable set true or false when specific view initialized, set variable true when specific view replaced, or when other view initialized, set variable false th

java - issue with maven dependency? -

java - issue with maven dependency? - trying execute twilio java api fails follows: 18:17:35.270 [main] debug o.a.h.c.protocol.requestaddcookies - cookiespec selected: best-match 18:17:35.296 [main] debug o.a.h.c.protocol.requestauthcache - auth cache not set in context 18:17:35.297 [main] debug o.a.h.impl.client.defaulthttpclient - reopening direct connection. 18:17:35.297 [main] debug o.a.h.impl.client.defaulthttpclient - effort 1 execute request java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ com.twilio.sdk.appengineclientconnection.flush(appengineclientconnection.java:197) @ org.apache.http.protocol.httprequestexecutor.dosendrequest(httprequestexecutor.java:258) @ org.apa