Posts

java - javax.net.ssl.KeyManagerFactory is a restricted class error with GAE -

i have spring social application deploying on google app engine , i'm getting following error during 1 of application workflows: java.lang.noclassdeffounderror: javax.net.ssl.keymanagerfactory restricted class. please see google app engine developer's guide more details. @ com.google.appengine.tools.development.agent.runtime.runtime.reject(runtime.java:51) @ org.apache.http.conn.ssl.sslsocketfactory.createsslcontext(sslsocketfactory.java:184) @ org.apache.http.conn.ssl.sslsocketfactory.createdefaultsslcontext(sslsocketfactory.java:209) @ org.apache.http.conn.ssl.sslsocketfactory.<init>(sslsocketfactory.java:333) @ org.apache.http.conn.ssl.sslsocketfactory.getsocketfactory(sslsocketfactory.java:165) @ org.springframework.social.support.httpcomponentsclienthttprequestfactory$httpcomponentsclient_4_1.getinstance(httpcomponentsclienthttprequestfactory.java:185) @ org.springframework.social.support.httpcomponentsclienthttprequestfactory.<...

jquery - Radio box select search form -

hello have search form in mangeto website , http://upgrade.fisapacient.ro looks : <form id="search_mini_form"> <div class="form-search"> <label for="search">search:</label> <div class="input-box"><input id="search" type="text" name="q" value="" class="input-text" autocomplete="off" lang="ro"></div> <button type="submit" title="cauta" class="button"><span><span>cauta</span></span></button> <div id="search_autocomplete" class="search-autocomplete" style="display: none; "></div> <input name="se" type="radio" value="catalogsearch/result/">produse <input name="se" type="radio" value="cauta">site <script type="text/javascript...

Authentication with node.js, nano and CouchDB -

is there way change config parameters in nano after initialization? i'd init nano with: nano = require('nano')('http://127.0.0.1:5984') and later change user , password, after user submits login form. error: nano.cfg.user = params.user.name typeerror: cannot set property 'user' of undefined or should fork nano , write auth function adjust values? i can't test right now, but, looking @ sources, can note 2 things: that configuration is exposed config , not cfg ; that config option connection url . then think need set url configuration option new value authentication parameters: nano.config.url = 'http://' + params.user.name + ':' + params.user.password + '@localhost:5984'; or can keep configuration object in couch.example.js , like: cfg.user = params.user.name; cfg.pass = params.user.password; nano.config.url = cfg.url; update : here's complete example: var cfg = { host: "localhost...

Windows / Perl / Net::SSLeay / OpenSSL: What locations are CA certificates loaded from? -

here's program https request, code @ start i'm going explain below: use 5.012; use lwp::useragent; use http::request::common; use net::ssleay; begin { return unless $^o eq 'mswin32'; # needed on windows print stderr "attempting set https_ca_file pem file path\n"; require mozilla::ca; # load module determine pem file path $pemfile = { $path = $inc{ 'mozilla/ca.pm' }; $path =~ s#\.pm$#/cacert.pem#; $path; }; if ( -f $pemfile ) { $env{https_ca_file} = $pemfile; print stderr "https_ca_file set $pemfile\n"; } else { warn "pem file $pemfile missing"; } } # ========================================================================== $net::ssleay::trace = 2; $ua = lwp::useragent->new; $req = 'https://client.billsafe.de/'; $rsp = $ua->request( $req ); $rsp->is_success ? 'success' : 'failure'; $rsp->status_line; ...

.htaccess - shorten url string -

i'ld shorten link. think .htaccess solution fo this, right? http://www.example.com/myfolder/?option1=hello&name=world&land=how&location=are&city=you how can managed? thanks i think want achive this http://www.example.com/hello/world/ => http://www.example.com/myfolder/?option1=hello&name=world&land=how&location=are&city=you right? if so, can use htaccess this: rewriteengine on rewriterule ^([a-za-z-_0-9]*)?\/([a-za-z-_0-9]*)\/?$ /app/index.php?option1=$1&name=$2 the use somehow complicated, idea is: if open url: http://www.example.com/first/second/ the first: ([a-za-z-_0-9]*) 'captures' word 'first' the second: ([a-za-z-_0-9]*) 'captures' word 'second' and converts /app/index.php?option1=first&name=second check article more info http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html i'm using [a-za-z-_0-9] because url can contain letters, numbers , unde...

javascript - jQuery not changing the background -

my html code is: <ul class="nav"> <li class="nav-one" ><span class="righttab activeright">&nbsp;</span><span class="lefttab activeleft">&nbsp;</span><a href="#featured" class="current">featured</a></li> <li class="nav-two" ><span class="righttab" id="rightnav2">&nbsp;</span><span class="lefttab" id="leftnav2">&nbsp;</span><a href="#core" >core</a></li> <li class="nav-three" ><span class="righttab" id="rightnav3">&nbsp;</span><span class="lefttab" id="leftnav3">&nbsp;</span><a href="#jquerytuts" >jquery</a></li> <li class="nav-four last" ><span class="righttab" id="rig...

android - Where can I see exactly what Xml Attributes do codewise (TextView)? -

http://developer.android.com/reference/android/widget/textview.html#attr_android:password i can't find in android code applied android:password xml attribute. basically, want set transformationmethod manually in code instead of using xml attribute. if call: textview.settransformationmethod(new passwordtransformationmethod()) then happens textview correctly mask characters, until textview focused on in landscape orientation it's full screen keyboard text you're entering. in screen, text in plain text. obviously, xml attribute android:password doing more setting transformation method. can point me xml attributes interpreted in android code, or tell me else need mask characters correctly? the reason can't use xml attribute because i'm doing specific character masking, want hyphens in plain text, while masking else (***-**). this, have extended passwordtransformationmethod ignore hyphens, have call transformationmethod setter manually in code. update: thin...