Posts

javascript - Gruntfile.js not updating to the directory files -

i keep getting error: get http://localhost:9000/scripts/controllers/about.js localhost/:80 http://localhost:9000/scripts/controllers/main.js localhost/:79 http://localhost:9000/scripts/controllers/ayat.js when renamed controllers main.controller.js , whatever.controller.js for reason, index.html file not being updated other files, when rename without dot in middle. my gruntfile: // generated on 2014-11-15 using generator-angular 0.10.0 'use strict'; // # globbing // performance reasons we're matching 1 level down: // 'test/spec/{,*/}*.js' // use if want recursively match subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // load grunt tasks automatically require('load-grunt-tasks')(grunt); // time how long tasks take. can when optimizing build times require('time-grunt')(grunt); // configurable paths application var appconfig = { app: require('./bower.json').apppath || 'a...

asynchronous - rxjava - Combine onerror and timout handling -

i start want achieve. i want call method returns observabe. i not know if called method handles exceptions , timeouts i want combine observables in call (merge/zip etc) if 1 method fails, want answers methods succeeded - don't want break flow. in case of exception, capable of handling , continuing flow, when try add timeoutmanagement fail. here code public static void main(string[] args) { createobservables(false, true); // stalls timeout zip(); } private static void createobservables(final boolean throwexception, final boolean stall) { obs1 = observable.just(1); obs1 = obs1.map(new func1<integer, integer>() { @override public integer call(integer integer) { int = 0; if (throwexception) getobj().equals(""); if (stall) zzz(10); return ++integer; } }); obs2 = observable.just(111); } pr...

c# - Retrieving drop down list items from list of controls -

i attempting retrieve listitemcollection list of controls. list contains many controls of different types - dropdownlist , label , textbox . i retrieve listitem dropdownlist controls contained in original list of controls. my thought process far has been extract of dropdownlist controls new list, , iterate though pull out each listitem - however, every dropdownlist control coming 0 items controlcollection clist = pnlcontent.controls; list<dropdownlist> ddllist = new list<dropdownlist>(); foreach (control c in clist) { if (c.gettype() == new dropdownlist().gettype()) { ddllist.add((dropdownlist)c); } } listitemcollection itemcollection = new listitemcollection(); foreach (dropdownlist ddl in ddllist) { foreach(listitem li in ddl.items) { itemcollection.add(li); } } i'm sure wrong (and massively inefficient) way of doing this. appreciated. this do: public ienumerable<listitem> getlistitems(con...

multidimensional array - Passing C# List to X++ -

in c# project in microsoft dynamics ax 2012 aot have method returns list , wanted refer method in x++ code. my initial thought should easy. like: list xppprojectlist = csharpgetprojectlist.getstringlist(); . however, didn't worked. after extensive research on internet found out, use system.collections.arraylist instead of list , time works, single dimension collections. x++ code that's supposed consume c# collection: public void getprojectlist() { csharpgetprojectlist = new ps2010service.csharpgetprojectlist(); projectlist = csharpgetprojectlist.getstringlist(); length = projectlist.get_count(); (i = 0; < length; i++) { info(projectlist.get_item(i)); } } c# method returning list<t> works : public static list<string> getstringlist() { list<string> list = new list<string>(); list.add("one"); list.add("two"); list.add("three"); return list; } c# meth...

android - Which one is better option for maintaining application or activities? -

which 1 better option application or activities? a. baseactivity class , [or] b.singleton class. in application of activities same actions show toasts, maintaining sessions, static variables,show edittext errors, http request/response, etc., i'm extends baseactivity in activities needed. you're on right path, baseclass preferred because of thing mentioned (manipulating toasts , edittext functions) require context work with. singleton class need context passed every method call - baseclass not (since technically context itself).

websocket - Why Spring SendToUser does not work -

i followed instruction spring send response particular user, not broadcast message instead.but in end, no response message can sent back. this js code: var stompclient = null; function setconnected(connected) { document.getelementbyid('connect').disabled = connected; document.getelementbyid('disconnect').disabled = !connected; document.getelementbyid('conversationdiv').style.visibility = connected ? 'visible': 'hidden'; document.getelementbyid('response').innerhtml = ''; } function connect() { var socket = new sockjs('reqsample'); stompclient = stomp.over(socket); stompclient.connect({}, function(frame) { setconnected(true); console.log('connected: ' + frame); stompclient.subscribe('user/queue/resp', function(resp) { var body = json.parse(resp.body); showresp('cmid:' + body.cmid + ',reqname:' + b...

jquery - Not able to use cloudfront URL with flexpaper -

i using flexpaper classic trial version accepts swf files display documents in rails web application. i have content available on s3 within private distibution, can accessible using cloudfront signed urls. when provide url flexplayer, example : http://d2qpwcrmsdq67g.cloudfront.net/172/ebooks/1357d6f7c32e68f27caf63b84085bd22.swf?expires=1416463422&signature=signature&key-pair-id=key-pair-id $('#documentviewer').flexpaperviewer( { config : { swffile : "http://d2qpwcrmsdq67g.cloudfront.net/172/ebooks/1357d6f7c32e68f27caf63b84085bd22.swf?expires=1416463422&signature=signature&key-pair-id=key-pair-id", scale : 0.6, zoomtransition : 'easeout', zoomtime : 0.5, zoominterval : 0.1, fitpageonload : false, fitwidthonload : false, printenabled : false, fullscreenasmaxwindow : false, progressiveloading : true, ...