Posts

javascript - Reload a single resource when it has changed in Angular? -

i have bit of predicament. make use of notification feature on our angular site, , obvious reasons notification changes occasionally. i reload element/div that displays notification, when notification changes. to accomplish this, know 1 have clear cache of item, or force refresh or reload of item, bit stuck in regard. don't want clear entire cache accomplish this, , not sure route follow. insight on this. below <div> displays notification (this part of larger page): <div id="notificationbox" class="{{current.type}}" ng-controller="currentnotificationcontroller" ng-hide="hidenotification"> <img src="images/close.svg" height="15" width="15" title="close notification" class="closeicon" ng-click="closenotification()" /> <img src="images/info-icon.svg" height="20" title="ornico notification" /> <span class=...

java - Is it possible to send Hornetq jms using websocket in Nodejs while receiver end is in pure JMS? -

i have application receives jms messages in /queue/xxx_queue. , have project in nodejs. have need make jms communication between 2 application. using hornetq jms communication. checked, there way send jms message using websocket , got package called stompjs. using that, trying below code. not getting connected in sender side , not getting error also. receiver jms , hornetq running. stompjs test code : var stompjs = require('stompjs'); var stompclient = stompjs.overws('ws://localhost:1099/stomp'); stompclient.connect('', '', function() { console.log('connected'); stompclient.send('queue/xxx_queue', {}, 'test message'); }, function(error) { console.log('console : ', error); }); i don't know wrong doing here. , there changes needed in receiver end, if using websocket stomp plugin in client end.

Python download table and save to Excel -

i trying download table html not in usual td/ tr format , includes images , save result excel. the html code looks this: <div class="dynamicbottom"> <div class="dynamicleft"> <div class="content_block details_block scroll_tabs" data-tab="tabs_details"> <div class="header_with_improve wrap"> <a href="/updatelisting.html" onclick="ta.setevtcookie('updatelisting', 'entry-detail-moreinfo', null, 0, '/updatelistingredesign')"><div class="improve_listing_btn ui_button primary small">improve entry</div></a> <h3 class="tabs_header">details</h3> </div> <div class="details_tab"> <div class="table_section"> <div class="row"> <div class="ratingsummary wrap"> <div class="histogramcommon bubblehistogram wrap"> <div class="coltit...

Application not listed in Android Auto -

i'm trying develop media application android auto. me, i've downloaded androidmediabrowserservice sample ( https://github.com/googlesamples/android-mediabrowserservice ). i've succeded in installing application, when launch android auto on phone , click media icon in bottom right corner, application not listed other ones , can't find out why. can me please ?

sql - What is the difference between TRUNC and TO_DATE in Hive -

hi trying find out difference between using trunc , to_date in hive. currently within oracle wrote following case statement against data shown below: order_no | name | date_ | task_no abc123 | humpty | 07-oct-16 12:30:54 | 1 abc123 | humpty | 07-oct-16 12:30:54 | 2 abc123 | humpty | 07-oct-16 12:32:20 | 6 select order_no, name, date_, task_no (case when date_ - lag(date_) on (partition order_no, name, trunc(date_) order date_) <= 1/48 0 else 1 end) count1 and gives me result: order_no | name | date_ | task_no | count1 abc123 | humpty | 07-oct-16 12:30:54 | 1 | 1 abc123 | humpty | 07-oct-16 12:30:54 | 2 | 0 abc123 | humpty | 07-oct-16 12:32:20 | 6 | 1 which correct. if use same query in hive against full data set error message: error while compiling statement: failed: semanticexception failed breakup windowing invocations groups. @ least 1 group must depend on input columns. so changed trunc to_date , works , gives me following results: sele...

c# - Generalize a function -

i trying figure out if there way generalize function takes hashset of 2 unrelated objects similar attributes. have sample code below: private ilist<idictionary<string, string>> builddictionary(hashset<classa> classa) { ilist<idictionary<string, string>> data = new list<idictionary<string, string>>(); foreach (var in classa) { dictionary<string, string> adictionary = new dictionary<string, string>(); adictionary.add(a.code, a.code + "," + a.name); data.add(adictionary); } return data; } private ilist<idictionary<string, string>> builddictionary(hashset<classb> classb) { ilist<idictionary<string, string>> data = new list<idictionary<string, string>>(); foreach (var b in classb) { dictionary<string, string> bdictionary = new dictionary<string, string>(); bdictionary.add(b.code, b.code + ",...

ruby on rails - bower install just says cached validate, but doesn't install -

i trying install progressbar.js rails app. i run bower install progressbar.js and terminal puts out: bower progressbar.js#* cached https://github.com/kimmobrunfeldt/progressbar.js.git#1.0.1 bower progressbar.js#* validate 1.0.1 against https://github.com/kimmobrunfeldt/progressbar.js.git#* the files not put app. when run bower list, has: progressbar.js#1.0.1 extraneous how install this? other times run bower install, has worked no problem.