Posts

Showing posts from July, 2012

java - How much of this code should be inside the UI Thread? -

so have asynctask doing work in background. work list of commands done in loop. commands may run following method (inside loop): public void print() { // create , add textview // variable "c" activity reference, in constructor passing "this" activity textview tv = new textview(c); // set text tv.settext(text); // set style tv.settextcolor(color.white); tv.settextsize(fontsize); tv.setsingleline(false); // add linear layout display.addview(tv); // add spacer view spacer = new view(c); // set bg color spacer.setbackgroundcolor(color.argb(0x88, 0, 0, 0)); // set width , height spacer.setlayoutparams(new linearlayout.layoutparams(linearlayout.layoutparams.match_parent, separatorheight)); // add layout display.addview(spacer); // screen should update displaychanged = true; } at end of loop have line: if (displaychanged) updatescreen(); and updatescreen() method: private vo

javascript - chrome.extension.getBackgroundPage is undefined in an extension page in an iframe -

i trying access extension's background page using chrome.extension.getbackgroundpage function. however, following error: uncaught typeerror: chrome.extension.getbackgroundpage not function i calling function bar.js file defined web_accessible_resource in manifest.json how make work? manifest.json { "manifest_version": 2, "name": "xpath helper", "version": "1.0.13", "description": "extract, edit, , evaluate xpath queries ease.", "background": { "page": "background.html" }, "content_scripts": [ { "matches": ["<all_urls>"], "css": ["content.css"], "js": ["content.js"] } ], "permissions": ["http://*/", "tabs", "identity", "identity.email"], "icons": { "32": "stati

knockout.js - A custom bindingHandler's return value/observable -

i have not been able find solution this. i'm trying create custom bindinghandler click event on html element div tag. // custom bindinghandler , observable <div data-bind="onclickevent: hasbeenclicked"></div> // show observable's true/false value <span data-bind="text: 'observable: ' + hasbeenclicked()"></span> this bindinghandler suppose to, if click on div text change. however, observable says if false . ko.bindinghandlers.onclickevent = { update: function (element, valueaccessor) { $(element).text('click here: false'); var observable = ko.utils.unwrapobservable(valueaccessor()); $(element).on('click', function () { observable = !observable; if (observable) { $(element).text('click here: true'); } else { $(element).text('click here: false'); } }); } } fun

c# - ViewPager/PagerAdapter shows all views on first page -

Image
what's happening viewpager in app shows views instantiated on page one. if instantiate 2 views example, both views shown in page one, , second page blank. images showing problem can see below, page 1 contains both pages , page 2 empty. i can't figure out why happening. have been struggling long time now. tried not add view adapter, adding view , providing index, not inflating creating imageview in adapter, etc. what missing? appreciated! code activity [activity(label = "foto's", screenorientation = screenorientation.portrait)] public class picturesactivity : baseactivity { private imagepageradapter _imageadapter; private list<string> _filepaths; private viewpager _viewpager; private const int _maxpictures = 5; protected override void oncreate(bundle bundle) { base.oncreate(bundle); setcontentview(resource.layout.pictures); _viewpager = findviewbyid<viewpager>(resource.id.viewpa

objective c - Tabbarcontroller is working in simulator not on iOS device -

i have created tab bar controller inside interface builder , have created view controllers each tab , tabbarcontroller embedded inside navigation controller. working fine in simulator, tab bar items loaded , changing tabs working too. calling [self.viewcontrollers count]; inside tab bar controller returns correct number of tab bar items e.g 5. but when build same project on ios device (version 7.1) when tab bar controller scene called, shows empty screen , no tab bar items displayed in bar. calling [self.viewcontrollers count]; returns 0 indeed. i can't figure out why simulator working expected , ios device not. this how tab bar view controller push segue view controller : - (void)viewdidload { [super viewdidload]; nsuserdefaults *defaults = [nsuserdefaults standarduserdefaults]; if(![defaults boolforkey:@"isloggedout"]) { dispatch_async(dispatch_get_main_queue(), ^(void){ [self performseguewithidentifier:@"skiplogin&

How does function scope work in JavaScript? -

i having trouble understanding function scope in javascript: function person() { var _firstname; var _lastname; } personone = new person(); personone._firstname = "fred"; alert(personone._firstname); this outputs "fred", thought variables of person function accessible inside function. why work? in javascript, objects dynamically-expandable. for example: var obj = {}; obj.firstname = "matías"; // <-- adds property if doesn't exist in other hand, if want declare properties should part of object in constructor function need qualify them this : function person() { this._firstname = null; this._lastname = null; } extra info if want avoid objects being dynamically-expandable, can use ecma-script 5 object.preventextensions function: var obj = {}; object.preventextensions(obj); // property won't added! obj.text = "hello world";

c++ - How to get size of boost SPSC Queue? -

we know number of element in queue @ given point of time. pushing , popping objects, know number of object in queue buffer. there inbuilt function ? or other way ? http://www.boost.org/doc/libs/1_53_0/doc/html/boost/lockfree/spsc_queue.html you can't reliably size because invites race conditions. same reason, won't find empty() method: time method returned value, irrelevant, because might have changed. sometimes lockfree containers provide "unreliable_size()" method (for purposes of statistics/logging) the special case here spsc assume single producer , consumers: size_type read_available() const; number of available elements can popped spsc_queue size_type write_available() const; get write space write elements note these only valid when used respective consumer/producer thread.

visual studio 2013 - Is there a UI to grant access to roles in VS2013 database Project -

in sql server explorer ui grant roles access read insert etc. on tables. when importing visual studio database project generates grants below tables. e.g. grant insert on object::[dbo].[mytable] [myrole] [dbo]; i can't seem find ui in visual studio though. know if there ui? no, there no such ui, @ least of visual studio 2013.

c++ - fstream <unable to read memory>. Trouble printing all items in list -

i'm working on menu driven program has users keep track of assignment tasks , due dates. program deals text file titled "tasks.txt", , user has 3 options interacting text file: enter new task, display tasks in file, or find task course. program runs relatively nicely except doesn't seem able interact file. below output/input file: tasks.txt cs162;finish project 2;04/10/2015 cs162;finish project 3;04/20/2015 cs162;finish project 4;05/10/2015 cs162;finish project 5;05/20/2015 here's code: #define _crt_secure_no_warnings #include <cstring> #include <fstream> #include <iostream> using namespace std; //global constants const int cap = 100; const int maxchar = 201; // task description can max of 200 characters in case long description (ie: specific instructions) //task struct struct task { char coursename[maxchar]; char taskdescrip[maxchar]; char duedate[maxchar]; }; //function prototypes void openfile(ifstream &infile);

javafx - java thread immediately update UI -

i have javafx application visualizes compuational geometry algorithms. execution of algorithm happens in thread, lets call maincomputingthread . algorithm can update ui @ time adding/removing/modifying shapes. code like: //do computaions (1) updateui(); //do more calculations (2) what want know in updateui method update ui , prevent calling thread running further (marked (2)) until ui update done. i thought boolean guards. code like: updateui(){ boolean guard = false; platform.runlater(new runnable() { run(){ //do actual update guard = true; } }); while(guard==false); } i hope idea of mean. i'm curious if there's better solution problem... simple approach: block background thread until update complete: you need update ui on fx application thread. typically passing plain runnable platform.runlater(...) . if want wait ui update complete before proceeding, instead create futuretask , pass platform.runlater(..

html - How to fetch Digits from a String in javascript? -

i have following string in javascript : var xyz= "m429,100l504.5,100l504.5,106l580,106l570,98m580,106l570,114"; i want fetch numbers , store in array. i tried following code: var x=xyz.match(/\d+/g); and got following output: 0: "429" 1: "100" 2: "504" 3: "5" 4: "100" 5: "504" 6: "5" 7: "106" 8: "580" 9: "106" 10: "570" 11: "98" 12: "580" 13: "106" 14: "570" 15: "114" as can see floating point values such 504.5 has come seperately. how can fetch properly? you can change regex 1 : var x=xyz.match(/[0-9.]+/g); it allow capture number , float well. => http://www.regexr.com/3b46a

excel - Relationship one-to-many -

Image
i'm trying create power pivot model excel tables have problem relations between tables. model @ moment: this picture represents problem: the ex_fieldname not correctly linked fieldname because want involvedparty(cat) -> martialstatus(fieldname) -> martialstatus(ex_fieldname- -> 1(count) if select count of exfieldnames result not every value linked ex_fieldname , need of fieldnames need countofmodel . is possible create this?

Using Synonym in SQL Server 2008 R2 (Create and detect existence of a table) -

is there way create table on sql server 2008 r2 referencing table name synonym? how can detect if object (the base object) existing in database synonym? i've discovered can create synonym object not exist in database. kind of weird. might useful implementation i'm trying do. so if need create table named dbo.customer , want following- /* table dbo.customer has not been created in database yet */ create synonym customer_synonym dbo.customer /* know lines below give wrong result (the object_id detection part) * , error (the create table part), cause i've tried it. * want know if there simple work around */ if object_id(n'customer_synonym') not null create table customer_synonym ( cust_id int not null , cust_name varchar(100) not null ... ... ); any or suggestion appreciated. thanks.

CSV Reader - Java for PostgreSQL -

i need load csv table in database. below table structure. column | type | --------------+------------------------+ ip_from | bigint ip_to | bigint country_code | character(2) country_name | character varying(64) region_name | character varying(128) i'm using csv reader read , insert file. csvreader products = new csvreader("e:\\test.csv"); products.readheaders(); while (products.readrecord()) { string ip_from = products.get("ip_from"); //int string ip_to = products.get("ip_to"); //int string country_code = products.get("country_code"); //char string country_name = products.get("country_name"); //char however, code give me error since datatype ip_from , ip_to different. it should bigint. i try use parseint method, st

logging - Source code link in log in NetBeans IDE / Java -

when program prints stack trace in netbeans ide, example this: exception in thread "main" java.lang.runtimeexception: not implemented yet @ app.app.main(app.java:202) the "app.java:202" part link. when click it, directs me file , line. i in own logs. printing doesn't work me. my not functional log line example: 2015/06/01 10:27:19.197 (dbconnection.java:119) executequery .... solution: stacktraceelement s = thread.currentthread().getstacktrace()[1]; system.out.printf("%s.%s(%s:%s)%n", s.getclassname(), s.getmethodname(),s.getfilename(), s.getlinenumber()); new problem: if print this: app.app.runtests(app.java:128) th_id:1,main warn null database.dbvaluescache.run(dbvaluescache.java:153) .... .. first link works. what now?

elixir - Which OTP behavior should I use for an "endless" repetition of tasks? -

i want repeatedly run same sequence of operations on , on again next phoenix application (without crashing whole web-app if brakes in worker of course) , don't know wether should use genserver, elixir's tasks, agent or different haven't thought far. when start phoenix app worker should start well, periodically pulls values of serial-connection, broadcasts them through phoenix channel, collects them until @save_interval reached , calculates median, broadcasts median via different channel , writes influxdb. right have (kind of working) this: def do_your_thing(serial_pid) stream.interval(@interval_live) |> get_new_values_from_serial(serial_pid) |> broadcast!("live-channel:#{@name}") |> enum.take(div(@interval_save, @interval_live)) |> calculate_medians() |> broadcast!("update-channel:#{@name}") |> write_to_database() do_your_thing(serial_pid) # repeat end i'm starting figure otp stuff out , hope

jquery - Menu transition while resizing -

the issue have given on following pen http://codepen.io/dingo_d/pen/oxbyjw i have working menu. in mobile width (<700px) , in normal browser (>1170px). if refresh pen on sizes, , click on menu item, works fine. on either sizes. however on resize, part of toggle function control animation not working should. code inside header_toggle() function $menu_toggle.on('click', function (e) { if ($(window).width()<960) { $(this).toggleclass('mobile_open'); if ($(this).hasclass('mobile_open')) { $navigation.fadein().animate({width: '70%'},250); } else{ $navigation.animate({width: '0' },250).fadeout(); } } else{ $(this).toggleclass('open'); if ($(this).hasclass('open')) { $breadcrumbs_bar.toggle('slide', {direction: 'up

java - How to de/serialize an immutable object without default constructor using ObjectMapper? -

i want serialize , deserialize immutable object using com.fasterxml.jackson.databind.objectmapper. the immutable class looks (just 3 internal attributes, getters , constructors): public final class importresultitemimpl implements importresultitem { private final importresultitemtype resulttype; private final string message; private final string name; public importresultitemimpl(string name, importresultitemtype resulttype, string message) { super(); this.resulttype = resulttype; this.message = message; this.name = name; } public importresultitemimpl(string name, importresultitemtype resulttype) { super(); this.resulttype = resulttype; this.name = name; this.message = null; } @override public importresultitemtype getresulttype() { return this.resulttype; } @override public string getmessage() { return this.message; } @override public

excel - Getting hours between 2 dates -

a1 = 29/05/2015 14:07 b1 = 01/06/2015 16:02 c1 = =(b1-a1)*24 why getting 22:00 in c1 ? i expecting count hours on weekend too... either a) adjust formatting number or b) not multiply 24 , adjust formatting [h]:mm

html - Move Window Form with the help of javaScript? -

i using mfc html dialog. remove tool window windows form. want create button or control position of windows form mouse in javascript or html. how idea? i try code: function movewidow() { settimeout(function () { this.resizeto(400, 300); this.moveto(0, 300); } , 100); } hresult cmfcapplication7dlg::onbuttonok(ihtmlelement* /*pelement*/) { /*cstringarray arrargs; ccomvariant varres; //arrargs.add(_t("1"));//you can add value cstringarray //arrargs.add(_t("2"));//if javascript function having arguments callclientscript(l"myfunction1", &arrargs, &varres); onok(); return s_ok;*/ cstringarray arrargs; ccomvariant varres; callclientscript(l"movewindow", &arrargs, &varres); return 0; }

Fileupload with CMIS + Apache fails due to "Proxy Error" -

we developed web application uses opencmis , windows client uses dotcmis. web application runs behind apache httpd. we facing following problem: small files can uploaded client without problems (< 1,5 gigabytes). however, if try upload larger files, "proxy error". stacktrace not give more information. tried upload via cmis workbench same result... are there configuration parameters apache maybe overlooked? or think problem should searched elsewhere? edit: should mention, file uploaded nevertheless. , also: tried disable apache, connect via http instead of https , upload file , works perfectly. edit2: found solution, although not seem one... set following configuration entries in httpd.conf: timeout=500 , proxytimeout=500 . default value 60 these entries. solved problem. however, nice know, why problem occures in first place. greets

grails respond error page with status from Url mapping file -

can respond error pages status code url mapping file. basically have democontroller action index. , have created url mapping "/" -> demo/index. index action of demo controller accessible 2 urls i.r. /demo/index , /. now want if hit /demo/index should respond error page status 404 what excluding /demo/index mapping this: static excludes = ['/demo/index']

ios - Track coordinates of UITableViewCell subview -

Image
i fire event when subview of uitableviewcell reaches point on screen, example when origin.y reaches 44 points. nice know if being scrolled or down when reached point. playing kvo on frame of subview seems fixed cell no changes that. task possible? vertical position of uitableviewcell defined frame property, represents position , size of cell within superview, uitableview. typically, frame property of cell changing once every time uitableview requests cell delegate specific index path. that's it, uitableview gets cell, places in , cell lays there unchanged until rectangle stored in bounds property of uitableview ceases include rectangle stored in frame property of cell. in case uitableview marks cell hidden , places pool of reusable cells. since process of scrolling in essence not repositioning of subviews – merely curious illusion of shifting bounds viewport of uitableview – constant observing of uitableviewcell's properties pointless. moreover, frame pro

sql - Select 2 time records from one table -

i have 2 table below postlist: post_id(pk,identity) likelist: like_id(pk,identity), post_id(fk) every entry of post in likelist, liked. this task post on facebook i passing 2 value .cs, when datalist binding whichever post_id , current user id( mid ) count every post like. if current user alredy liked, change button text unlike i create query like, select mid ,(select count(post_id) likelist post_id=@sp_post_id) like_count likelist (post_id=@sp_post_id , mid=@sp_mid) group mid i got post_id count in below case if past post_id=27 , user/mid=2 not found record. what want: check post likes count , check if user post or not. (how check counts , current user or not?) table data: postlist post_id fid mid post_img post_msg post_time 1 1 1 tulips.jpg post user1. 2015-05-26 3 3 2 lighthouse.jpg post user2. 2015-05-26 5 1002 3 road1.jpg post user3.

python - Problems with media and migrations -

have problems. 1)in production django tries access photos @ http://"ip_address"/images/"image".jpg url images must in http://"ip_address"/media/images/"image".jpg 2)i have added 2 more fields (alt , text) existing model. migrations work , show fields added can not see them in admin panel ( have added them list_display) , can not access them in templates. settings media media_root = os.path.join(base_dir, 'media') media_url = 'http://"ip_address"/media/' urls django.conf.urls import patterns, include, url django.conf.urls.static import static django.contrib import admin django.contrib.staticfiles.urls import staticfiles_urlpatterns django.conf import settings admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^media/(?p<path>.*)$', 'django.views.static.serve', url(r'^$','main.views.mainpage'), )+

c++ - Passing pointer to a reference to pointer argument -

i migrating old code solaris linux. have lot of functions accept reference pointer arguments such - static type getinstrument(const item*& item); now, while calling function have lots of constructs such - int test(item *l_item) { type lval = getintrument((const item*)l_item); } this fails compile , match function definition. suggestions how should pass parameters in case? the function expects reference pointer const , suffices cast reference of right type: type lval = getintrument(const_cast<const item*&>(l_item)); where have used const_cast instead of c-style cast express intent more clearly. have worked too: (const item*&)l_item .

javascript - Cannot get values from JSON array object -

with json.stringify can see have data, life of me how can 1 loop , values, want lat , lng , pass them setmark() thats commented out now. function setmarkers(map) { var data = { optstatus: $("input[name='optstatus']:checked").attr("id"), sortorder: $('#sortorder').val() }; var stemp = ""; $.ajax({ type: 'get', url: '/meterreadsdue/getmarkers', async: true, datatype: 'json', success: function (data) { var myarray = data; $("#test1").append(json.stringify(data)); //setmark(map,lat,lng); } }); } the div output json stringified text below... { "contentencoding": null, "contenttype": null, "data": "[{'lat':55.86001,'lng':-4.24842,'content':'08elster-x06a245926'},{'lat':55.86001,'lng':-4.24842,&#

android - How do I draw a wireframe mesh with hidden lines removed in OpenGL ES? -

Image
the cube want draw: the above cube pretty easy created in opengl function glpolygonmode(gl_front_and_back, gl_line) , known opengl es not include function want use. in word, don't want draw cube this: i thank people provide help. ========================least update picture============================ the edge little thinner front edge. there have solution solve problem? current code: gles20.glenable(gles20.gl_depth_test); gles20.gldisable(gles20.gl_polygon_offset_fill); // draw edge gles20.gldrawelements(gles20.gl_lines, lineindices.length, gles20.gl_unsigned_short, lineindexbuffer); gles20.glenable(gles20.gl_polygon_offset_fill); gles20.glpolygonoffset(1.0f, 1.0f); // apply background color , draw faces gles20.gluniform4fv(mcolorhandle, 1, facecolor, 0); gles20.gldrawelements(gles20.gl_triangles, triangleindices.length, gles20.gl_unsigned_short, triangleindexbuffer); here standard trick (assum

c# - Appending multiple values to a Cookie -

i trying store few values in 1 cookie rather creating lot of cookies. have functions named value , set values given names. when form reloaded cookie seems empty...and on @ least 1 occasion there seemed 2 cookies same name in collection. the code below, can see have done wrong? to clarify there 1 cookie, should store several values called code similar below cookievalues.set("test", "thetestvalue", resp); cookievalues.set("name", "nick", resp); cookievalues.set("sex", "male", resp); var x = cookievalues.get("test", resp); public static class cookievalues { public static void set(string key, string value, httpresponsebase resp) { httpcookie cookie = getcookie(resp); cookie[key] = value; cookie.expires = datetime.now.addyears(1); resp.cookies.add(cookie); } public static string get(string key, httpresponsebase resp) {

ios - How to use netsuite API to get data on mobile device? -

i want & post data netsuite.i have explored on google go know phptoolkit & suitescript .i want create custom modules in netsuite & data netsuite using api.please me out how it. thanks in advance netsuite offers 2 different methods of pulling data external system: web services ( suitetalk ) provides standardized soap api has pre-built libraries php, java, , c#. netsuite provides wsdl , can build own client interact soap endpoint. restlets (sub-type of suitescript) provide ability write own custom netsuite endpoints can accept , return custom data formats. typically, json preferred format interface restlets natively supported, can use format you'd like. restlets accept either application/json or text/plain http requests.

hadoop - How to obtain Map Reduce code from Hive Query? -

how hive generate map reduce code automatically each query , possible view map reduce code generated hive each query ? hive not generate map reduce code rather uses different type of operators map operator, reduce operator , join operator, limit operator...... uses corresponding operators based on plan generated our sql. the code operators can found in jar hive-exec.jar here repository link code http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/

How to go about implementing the new Chat beta feature in the Smart Admin Theme and Laravel 5? -

i trying figure out how chat working in smart admin theme as can see, newer version ships chat beta plugin. on "about api" page , gives few instructions on how front end working unfortunately has no information end. how go implementing end chat? purchase account @ cometchat . , if do, still confused implementation both on , front end. i mean listen events cometchat, web sockets , check see new message , open new window on front end display there? work pusher , maybe? i terribly apologize vagueness of question. confused , not able explain myself in manner. can point me in right direction on how chat feature working if end web service built using laravel 5? i trying use nodejs socket.io. guide long way: http://socket.io/get-started/chat/ the reason chose nodejs socket.io, it's realtime. use of sockets allows send messages server client, instead of making client poll new messages every x seconds. with javascript skills, make nice chat application per

Javascript Regex validator for specific condition -

i need javascript regex validator can full fill following condition. string should contain alphabets , space only. first character must alphabetic (lowercase or uppercase). space allowed not mandatory. space should not repeated. there can multiple space in string. last character must alphabetic (lowercase or uppercase). thanks in advance. you can try one: var re = /^(?:[a-za-z]+\s)*[a-za-z]+$/ re.test('a') // true re.test('ab') // true re.test('a b') // true re.test('a b c') // true re.test('a b') // false re.test('ab ') // false re.test(' ab') // false re.test('ab1') // false

shell - tar command unable to add attachment files in unix sun solaris -

i have been passing attachment filenames program , tar command unable create archive attachment files , attachment files can contain spaces in filenames . can me in identifying root cause here atachment files "v al 2015-0974_ca.pdf" "v al 2015-0974_ma.pdf" ksh testing.ksh 2015-0974.htm '"v al 2015-0974_ca.pdf" "v al 2015-0974_ma.pdf"' int 5 testing.ksh file=${1} attachedfiles="${2}" echo ${attachedfiles} targetenv=${3} priority=${4} fnwp=${file%.*} ext=${file#*.} fn=${fnwp##*/} val="tar cvf ${fn}.tar title html email delivertime "${attachedfiles}"" echo $val package=${priority}_$(date +"%y%m%d%h%m%s")_eytaxalert.nwf gzip -cv ${fn}.tar > ${package} exit 0 output: a title 1k html 33k email 4k 2015-0974.tar expected out

javascript - Apply CSS on the parent element -

Image
below html source application generating. <div id="xcp_columnvbox-1053-innerct" class="x-box-inner " role="presentation" style="height: 1210px; width: 1614px;"> <div id="xcp_columnvbox-1053-targetel" class="x-box-target" style="width: 1614px;"> <div class="x-component xcpid_d3_workflow x-box-item x-component-default" style="width: 1600px; height: 1200px; right: auto; left: 5px; top: 5px; margin: 0px;" id="d3_workflow-1054"> <svg width="1600" height="1200" pointer-events="all" id="wkfsvg"> <rect class="background" width="100%" height="100%"></rect> <g transform="translate(105.72459429343519,80.37030244629102) scale(0.8705505632961247)"> <path class="link reject" d=&

Express.js and Node.js : Unable to set value in the request object -

i following practical node.js book. based on older version on express.js. book trying build blog. has several different routes files. ex- index.js, admin.js, article.js etc. route classes called app.js. ex: app.use('/', routes.index);//// issue here ///// app.get('/login', routes.user.login); app.post('/login', routes.user.authenticate); app.get('/logout', routes.user.logout); app.get('/admin', routes.article.admin); app.get('/post', routes.article.post); app.post('/post', routes.article.postarticle); whenever tries access '/', setting collections object of artices , users in request object. var dbarticles = require('./db/articles.json'); var dbusers = require('./db/users.json'); app.use(function(req, res,next) { if (!collections.articles || ! collections.users) return next(new error("no collections.")) req.collections = collections; return next(); }); app.use('/', rout

osx - Juniper Network Connect "session terminated unexpectedly" after Mac Yosemite upgrade -

juniper network connect not working since have upgraded mac yosemite. have read , followed different forums , related question such : https://apple.stackexchange.com/questions/151141/juniper-network-connect-hangs-at-establishing-secure-session-after-upgrading-t but no luck. here log trace: 2015-06-01 12:59:04.180 network connect[p492.t4871] dsloginwindowcontroller.info -webview:didstartprovisionalloadforframe: loading https://ras.optus.com.au/dana-na/auth/url_default/login.cgi... (dsloginwindowcontroller.m:257) 2015-06-01 12:59:04.181 network connect[p492.t4871] dsloginwindowcontroller.info -webview:didstartprovisionalloadforframe: setting cookie <nshttpcookie version:0 name:"dsuseragent" value:"ncwin32" expiresdate:(null) created:2015-06-01 02:59:04 +0000 (4.5482e+08) sessiononly:true domain:"ras.optus.com.au" path:"/" issecure:false> (dsloginwindowcontroller.m:270) 2015-06-01 12:59:04.642 network connect[p492.t4871] dsloginw