Posts

Showing posts from February, 2014

c# - Process.Start takes long time to start outside application -

i have method launches second exe. issue i'm having if i'm in debug mode in visual studio , put breakpoint directly after process.start call second application launches if have no break points in vs or run main c# application outside of vs launching of second application via process.start can take 2 minutes. method below , put breakpoint see immediate launch of 2nd app @ line "if(null != _processmine)". put launch of second exe in worker thread because when close main exe want second exe close also. public static void runbtnprocessthread(string processname, string sargs, button btn) { // disable button until release newly launched process btn.enabled = false; backgroundworker worker = new backgroundworker(); worker.dowork += (doworksender, doworkargs) => { processstartinfo startinfo = new processstartinfo(); startinfo.createnowindow = false; startinfo.useshellexecute = false...

OpenShift PHP Image Asset Giving 500 Error -

i have deployed php website openshift php 5.4 cartridge. application loads fine, css, js, etc. images not load correctly. images exist in git repo being pushed openshift fine when attempt access image, http://someopenshiftapp/images/logo.jpg fails 500 error. the server log gives me: /app-root/runtime/repo/images/.htaccess: invalid command 'indexignore', perhaps misspelled or defined module not included in server configuration i trying resolve issue far google has not been able me. tried editing httpd.conf include module read file. may have create new cartridge scratch? how serve images openshift? i don't know exact reasons why apache behaving was. there robots.txt file disallowing user agents in image directory developer had added. causing apache installation give 500 error when attempting access resources within images sub-directory. if has further explanation willing listen mystery solved. i may test exact case in stand alone apache environment unrelat...

html - Automatic 1px width of div inside table -

this happens in chrome (43.0.2357.124) , safari (5.1.7) not firefox or internet explorer. for reason, <div> element in following code has automatic width of 1px. table, tbody, tr, td, div { padding: 0; margin: 0; border: 0; } table, tbody, tr, td { border-spacing: 0; border-collapse: collapse; } <table><tbody><tr><td><div></div></td></tr></tbody></table> the same happens when applying display: inline-block; , width: 100%; <div> simulate display:block added bonus <td> has height of 18px. table, tbody, tr, td, div { padding: 0; margin: 0; border: 0; } table, tbody, tr, td { border-spacing: 0; border-collapse: collapse; } div { display: inline-block; width: 100%; } <table><tbody><tr><td><div></div></td></tr></tbody></table> i'm aware apply...

When Using Typescript+angularjs the api result is not displaying in html -

below controller , html: when make api call in controller storing result in result variable, now,that result variable when trying print in html not printing anything, have used 1 more variable name in controller printing in html when print it. when try print result variable in controller printing data in console. so, getting data in variable correctly. but, why not printing in html. please help. controller : module typescript { var my_app = angular.module('my_app', []); export class test { public name: any; constructor(private $http: ng.ihttpservice) { this.name = "test data"; this.getdata(); } getdata() { return this.$http.get('facilities.json').success(function(response) { this.result = response; console.log(this.result); }) } } test.$inject = ['$http']; myapp.controller("test", test); } an...

javascript - How can I add rel="follow" to specific domains manually when setting all external links with rel="nofollow"? -

i'm building community social network or whatever call. set code external links become not followed links. now, want code allows me remove nofollow att specific domains , add follow att, i've option add quality domains manually in .php affect root folders , sub-domains under these specific domains. the main point not treat domains spam or not recommended search engines, instead want recommend , quality domains used user in community search engines. the project: http://www.jumzler.com/ a full sulation, resources, or headlines do. thank you. ive set client side script using jquery think meets requirements requested. $.setallowexternallinksfollowed = function(externallinkwhitelistarray) { "use strict"; var $externaldomlinks = $('a[href^="http"]'); $externaldomlinks.each(function() { var $linkinstance = $(this); // nofollow ext links $linkinstance.attr('rel', 'nofollow'); externallinkwhitelista...

javascript - Radial progress bar doesn't change color -

i've found animated radial progress bar using css mostly. main thing need display 227%. animation want make change bar color after 100% , 200%. i've been trying use .css , .removeclass(loader-spiner) main class , .addclass (loader-spiner-100), i've been trying use .attr add own style outputs not functions or smth that. can me this, please? http://jsfiddle.net/artofbw/qgqren9e/ $(document).ready(function () { function renderprogress(progress) { progress = math.floor(progress); if(progress<25){ var angle = -90 + (progress/100)*360; $(".animate-0-25-b").css("transform","rotate("+angle+"deg)"); } else if(progress>=25 && progress<50){ var angle = -90 + ((progress-25)/100)*360; $(".animate-0-25-b").css("transform","rotate(0deg)"); $(".animate-25-50-b").css("transf...

Long tap recognizer in Sprite Kit with swift -

hello i'm planning game , essential part of game move left , right pressing right side of screen or left side. but how can detect long press? many thanks! :) it not called long tap. tap can't long. called uilongpressgesturerecognizer. can take @ documents here

precision - Composing two functions in R gives different result than a new function enclosing both -

Image
i tried @ logistic map logmap <- function(x){ r <- 0.5 4*r*x*(1-x)} and compositions such as: logmap2_a <- function(x){ logmap(logmap(x))} of course, can directly write new function composes logmap itself: logmap2 <- function(x){ r <- 0.5 16*r*r*x*(1-x)*(1-16*r*r*x*(1-x))} now, plotting 2 things not show same curve: curve(logmap2, from=0, to=1) curve(logmap2_a, from=0, to=1) the first figure shows result of logmap2, second of logmap2_a. my first idea problem arises due precision of returned data, cannot imagine problem reasonably large numbers. idea going on? logmap2 <- function(x){ r <- 0.5 16*r*r*x*(1-x)*(1-4*r*x*(1-x))}

plsql - PS/SQL dereference from nested table -

i got nested table reference other object: tables: create type towar object ( towar_id integer, nazwa varchar2(64), cena decimal(6,2) ); create table towar_tab of towar; create or replace type towar_zamowienie object ( ilosc integer, produkt ref towar ); create type towar_zamowienie_tab table of towar_zamowienie; create table zamowienie_tab ( id_zamowienie integer primary key, klient ref klient, towary towar_zamowienie_tab ) nested table towary store zamowienie_towar_nested; procedure: declare cursor zamowienia select deref(klient) k, id_zamowienie id_zam, towary zamowienie_tab; integer; tow towar; begin r in zamowienia loop dbms_output.put_line(r.id_zam); in 1 .. r.towary.count loop --select (deref(v)) tow r.towary(i) v; dbms_output.put_line(' '||i||'. ['||r.towary(i).ilosc||'] ' || tow.nazwa); end loop; end loop; null; end; now in r.towary have nested table produkt ref towar , want pr...

iphone - Xcode 6 with iOS 9? -

i'm new ios development , upgraded device ios 9.0 beta, see how app faired. however, did not upgrade xcode 7 beta. i'm getting error says device "ineligible", specifically, iphone (3) may running version of ios not supported version of xcode. is standard? have upgrade xcode 7 if i'm running ios 9.0? yes, need install xcode 7 in order develop ios 9. able keep xcode 6 running alongside xcode 7.

Batch file to rename files by adding different suffix to each file -

i want create batch file rename files folder adding different suffix each file example this, file1.mp4 file2.mp4 file3.mkv file4.mkv to these file1 sandwich.mp4 file2 hot dog.mp4 file3 apple.mkv file4 toast.mkv i hoping put these words in batch file putting in separate txt file more preferable note : put same number of suffix in txt file there files on folder. i want faster way of adding these suffix doing 1 one manually i have limited knowledge these codes the program below rename files in order given dir command suffixes given in suffixes.txt file. if there more files suffixes, last suffix used several times. @echo off setlocal enabledelayedexpansion < suffixes.txt ( /f "delims=" %%a in ('dir /b folder\*.*') ( set /p suffix= echo ren "%%~fa" "%%~na !suffix!%%~xa" ) ) for example: c:\> type suffixes.txt sandwich hot dog apple toast c:\> test.bat ren "file1.mp4" ...

How to call JS function outside from AngularJS app? -

i have js file simple function on clear js: function alert(){ alert(); } in file have application on angular js. @ first connected simple js file on page , after angular js on tags <head> how can call alert() method controller angular js? simple js file: $(function(){ function lefttimeinit(){ $.each($('.action-loader'), function(index, val) { initloader($(this), $(this).data('percentage')); }); } }); angular js in controller: lefttimeinit(); i error: uncaught referenceerror: lefttimeinit not defined you shouldn't dom manipulations in controllers. should rethink how want use function. anyway, lefttimeinit declared in anonymous function, , visible there. can't call anywhere else. if want that, you'll have move out of $(function(){}) . i've said, not recommended. as alert() example... in angular have access simple js global functions via $window (of course, they're global...

Extract Argument from C Macro -

i have number of definitions consisting of 2 comma-separated expressions, this: #define pin_alarm gpioc,14 i want pass second expression of definitions (14 in case above) unary macros following: #define _pin_mode_output(n) (1u << ((n) * 2u)) how can extract second number? want macro, call "pick_right", me: #define pick_right(???) ??? so can make new macro can take "pin" definitions: #define pin_mode_output(???) _pin_mode_output(pick_right(???)) and can do: #define result pin_mode_output(pin_alarm) do not use macros this. if must, following work throwing away left part first number remains. use care. no guarantees. #define pin_alarm gpioc,14 #define rightpart_only(a,b) b #define pin_mode_output(a) rightpart_only(a) #define result pin_mode_output(pin_alarm) int main (void) { printf ("we'll pick ... %d\n", pin_mode_output(pin_alarm)); printf ("or maybe %d\n", result); return...

java - creating proper array for file input and output to JTextArea -

so new not java programming in general. being said trying write program creates calendar based note such depending on day chosen can make note , put file based on month , year , retrieve , other note on day day basis. has use array somehow not know how implement being totally confused how work arrays( tutorials aren't helping). here have far. first userinterface.java file: import java.awt.*; import javax.swing.*; import java.awt.event.*; public class userinterface extends jframe implements actionlistener { private string[] months = {"january","february","march","april","may","june","july","august","september","october","november","december"}; private string[] days = {"1", "2", "3", "4","5","6","7","8","9","10","11","12","13...

multithreading - Spyne receiving multiple requests -

i'm looking @ spyne able make webservice handles requests in json. problem still didn't managed working more 1 request @ time. i thought https://github.com/arskom/spyne/blob/master/examples/async.py might solve, can't seem make work get_callback_info() isn't found anywhere... know example of how handle multiple requests @ same time spyne? thanks! you mean can't spyne concurrent? has nothing spyne, it's transport's job implement concurrency. i assume refer examples use wsgiref, reference wsgi implementation, doesn't support concurrency. news is, spyne can , being used concurrently python daemon can be. you can use twisted in async mode twistedwebresource or in sync mode wsgiapplication . can find relevant examples in examples/twisted directory in resource.py , wsgi.py respectively. if twisted scares (for reason, it's got totally baseless "not faint-hearted" kind of reputation) can use cherrypy. put cherrypy wsgi ex...

javascript - Why can't I load up a local JSON file with AngularJS $http? -

i trying load local file( todo.json ) in same folder webpage following line: $http.get("todo.json").success( function( data ){ //do logic}); but following error message in javascript console: error: failed execute 'send' on 'xmlhttprequest': failed load 'file:///c:/users/quickcoder/desktop/html5apps/todo.json'. ... as mentioned, index.html file consisting of code in same html5apps folder todo.json . suggestions ? i think need running webserver serves files , json file have in folder of server. you can use server node-serve . it's easy run once installed type serve in terminal. [...] protocol local file not http:// file://. therefore, cannot direct ajax request local file. same applies many other apis available through javascript, can request access through http protocol. because of web's security model, we'll discuss in article. source of quote mdn

javascript - Jquery Reading Position progress between article content -

in example http://jsfiddle.net/snjxq/61/ reading progress indicator it's width increased top of site !! but need progress bar width begin increasing when article content div reached until end of article content and sample code need edit html <div class="bar-long"></div> <header>header & menu <br>header , menu content <p>header & menu <br>header , menu content <p>header & menu <br>header , menu content <p> </header> <h1>begin article <br>(need show bar here) </h1> <p> <article> <div class="bar-long2">article content <br />article content <br />article content <br />article content <br />article content <br />article content <br />article content <br />artic...

python - Shifting within a list when past end range? -

i created simple program performing caeser cipher on user inputted string. in order allow shift go past end of list , beginning, duplicated list values list. is there more pythonic way of achieving result shift beginning , continue shift if shift goes past end of list range? while true: x = input("enter message encrypt via caeser shift; or type 'exit': ") if x == 'exit': break y = int(input("enter number have message caeser shifted: ")) alphabet = list('abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz') encoded = '' c in x: if c.lower() in alphabet: encoded += alphabet[alphabet.index(c)+y] if c.islower() else alphabet[alphabet.index(c.lower())+y].upper() else: encoded += c print(encoded) if want way, you're best bet use modular arithmetic calculate index in alphabet : while true: x = input("enter message encrypt via caeser shift; ...

java - How to display listView in fragment class? -

i'm new in android programming. want try make simple tab layout app using fragment , how display listview in fragment? , i,ve googling , find solution not using fragment class. can show webview how show listview my tab1 class: public class tab1 extends fragment { webview webview; @override public void onactivitycreated(bundle savedinstancestate) { super.onactivitycreated(savedinstancestate); // url open // set webview webview = (webview) getview().findviewbyid(r.id.webview); webview.setwebviewclient(new mybrowser()); webview.getsettings().setloadsimagesautomatically(true); webview.getsettings().setjavascriptenabled(true); webview.setscrollbarstyle(view.scrollbars_inside_overlay); webview.loadurl("http://www.google.com"); } @override public view oncreateview(layoutinflater inflater, @nullable viewgroup container, @nullable bundle savedinstancestate) { view v ...

PHP - How can I convert a ParseObject to a JSON? -

i´m getting parseobject query , need convert json. when print_r($results) lot of stuff when $json = json_encode($results) , print it, $json empty. here var_dump of $results: array (size=5) 0 => object(parse\parseobject)[12] protected 'serverdata' => array (size=1) 'usuario_fk' => object(parse\parseuser)[15] ... protected 'operationset' => array (size=0) empty private 'estimateddata' => array (size=1) 'usuario_fk' => object(parse\parseuser)[15] ... private 'dataavailability' => array (size=1) 'usuario_fk' => boolean true private 'classname' => string 'asistencia' (length=10) private 'objectid' => string 'mdhr3zzo6z' (length=10) private 'createdat' => object(datetime...

networking - HttpListener working on local network, but not externally -

i attempting spin application listens on port , responds http requests. on windows 8 machine connecting through netgear router provides port forwarding. have: modified dns zone file of 1 of domains point ip address assigned cable modem added port-forwarding rule router sends requests port 8080 port 8081 on computer opened port 8081 on windows firewall executed netsh http add urlact http://+:8081/ user=everyone listen=yes administrator started app uses simple webserver solution found @ http://codehosting.net/blog/blogengine/post/simple-c-web-server.aspx uses httplistener object prefix of http://+:8081/ . from machine on local network , can browse http://home.example.com:8080/blah/blah , works great. whenever attempt same url machine connected elsewhere on internet, connection times out. have tried using ip address instead domain name, , have tried disabling windows firewall (temporarily), still no luck. i'm sure more of network setup issue code issue, thought ...

javascript - Only display certain items in AngularJS -

i newbie angularjs , ionic framework , using basic starter tabs ionic template , want able "favourite/bookmark" items , display them on different tab. my books.js structure follow: .factory('books', function() { // books data var books = [{ id: 0, title: 'sample title', author: 'sample author', category: 'horor, fiction', cover: '/cover.jpeg', details: 'some details book', chapters: [ { id : 1, name: 'chapter 1', filename: 'chapter1.html', }, { id : 2, name: 'chapter 2', filename: 'chapter2.html', } ] } ..... return { all: function() { return books; }, // remove book list remove: function(book) { books.splice(books.indexof(book), 1); }, now, if want able add book list, should create new array? or angularjs provide sort of library can store ...

.net - Implementing UserManager to use a custom class and Stored Procedures -

all of authentication , authorization process of app done using stored procedures. i've written class of functionalities need, e.g. getusers , login , addrole , addmember , etc. admin page managing users , roles , permissions done using class. i need add authentication (i mean authorize attribute), cookies login , logout , storing server-side data each login. think need implement identity that? in case, can please guide me implementation? seems basic thing need implement create method passes instance of iuserstore constructor. don't need have tables users or roles, how can implement method? this current class, , please let me know if need see custom authentication class uses stored procedures. public class appusermanager : usermanager<appuser> { public appusermanager(iuserstore<appuser> store) : base(store) { } public static appusermanager create(identityfactoryoptions<appusermanager> options, iowincontext context) { //appu...

c# - Why GetPortNames method returns nothing? -

i trying send sms computer cell phone. first step: com ports use it. used code, no benefit: private void form1_load(object sender, eventargs e) { string[] ports = serialport.getportnames(); foreach (string prt in ports) { combobox1.items.add(prt); } } it returns nothing. can do? i ran following code on pc , returns "com1": string[] ports = serialport.getportnames(); console.writeline("the following serial ports found:"); foreach(string port in ports) { console.writeline(port); } console.readline(); so, it's either permissions or don't have serial ports. or perhaps registry corrupt? note: the port names obtained system registry (for example, hkey_local_machine\hardware\devicemap\serialcomm). if registry contains stale or otherwise incorrect data getportnames method return incorrect data. ref: serialport.getportnames

ruby on rails - Param is missing or the value is empty: ParameterMissing in ResultsController#update -

i have result belongs website. after create website create result , redirect edit page. here want add more values. my problem is: when try update result, get: param missing or value empty: result request parameters: {"utf8"=>"✓", "_method"=>"patch", "authenticity_token"=>"grn/y/04qbsm9dzluabuyf8zsv2emhnrzgbzy/6gmdlobdq8v5uncij9vrp51uydc6m/qc61jpwwpuehsuc5xa==", "data"=>["//html/body/div[position() = 3]/ul/li[position() = 16]/ul/li[position() = 2]/child::text()", "//html/body/div[position() = 3]/ul/li[position() = 16]/ul/li[position() = 2]/p/a/child::text()", "//html/body/div[position() = 3]/ul/li[position() = 16]/ul/li[position() = 4]/child::text()", "//html/body/div[position() = 3]/ul/li[position() = 16]/ul/li[position() = 5]/a/child::text()"], "commit"=>"update result", "id"=>"66"...

jquery ajax click passes a number to a php file. Need jquery to pass a text response -

i getting response, number. how can actual text name ? echo "<td><a href='#' class='js-load-more' data-playername='" .($players['first_name'])."'>".($players['first_name'])." ". ($players['last_name'])."</a></td>"; $(document).ready(function () { $(".js-load-more").click(function () { var name = $(this).data('playername'); $.ajax({ url: '/test2.php', type: 'get', cache: 'false', data: 'name', success: function (data) { $('#info').html(data); }, }); }); }); returns number "1". why not name?: <?php $test = isset($_get['name']); echo $test; ?> because isset() returns boolean value. isset($_get['name']); // returns true or false $_get['name...

javascript - What's is going wrong with this "Check for Palindromes" JS Function? -

i'm practising js exercise, , got stuck palindromes function. there i'm not been able figure out, code not splitting string array. function palindrome(str) { var re = (/[^\w]/g); str.replace(re).tolowercase(); var newstr= str.split().reverse().join(''); if(str=== newstr){ return true; } else{ return false; } } palindrome("eye"); palindrome("not palindrome"); //not working str. so how split() should presented in code works. maybe want: function palindrome(str) { str = str.replace(/[^\w]/g, "").tolowercase(); var reversestr = str.split("").reverse().join(''); return str === reversestr; } this fixes several problems in original code: you calling .replace() , not passing 2nd argument replace anything. .replace() returns new string have assign result in order use result of replace operation. you calling .split() no arguments doesn't split it. should cal...

c# - Handle Deserialization Exception in Formatter of Delegating Handler -

i'm using web api , implementing delegating handler. i have customization of json serializer / deserializer registered formatter in api configuration. var globalformatters = globalconfiguration.configuration.formatters; var jsonformatter = globalformatters.jsonformatter; jsonformatter.serializersettings.formatting = newtonsoft.json.formatting.indented; jsonformatter.serializersettings.converters.add(...) as exception handling, i've added exceptionfilterattribute, , added filter in configuration. public class methodattributeexceptionhandling : exceptionfilterattribute { public override void onexception(httpactionexecutedcontext actionexecutedcontext) { var errorhandler = new errorhandler(); var response = errorhandler.processerror(actionexecutedcontext); actionexecutedcontext.response = response; } } this seemed working well, until encountered deserialization exception, did not caught in filter. i've read...

iOS transfer app from ad hoc to Enterprise on another account -

i've created app friend's company. until now, i've been using ad hoc distribution, company has signed enterprise account. process them able distribute app employees using enterprise account? send them project file? have on end? remember when created app, certificates , profiles , crap confusing, involving push notification service. have redo of stuff? thanks. you have set appid , provisioning profiles in enterprise account - since wwdc 2015 apns available enterprise well. make sure change bundle identifier well. next have adjust project settings reflect changes. you add new target in project , set new settings , keep original target old settings, way can build both setups

ios - Realm: Module was created by an older version of compiler and could not build objective-c module -

Image
i have followed steps provided add framewowrk link https://realm.io/docs/swift/latest/ it gives error issue? is because compiled older version of xcode, since have latest xcode 7 beta? if so, how solve this? you'll have wait support swift 2.0 ( #2062 ) before can use realm swift in swift 2.0 project. because framework written in swift built in old version compiler not able use in xcode 7. therefore, needed re-build using compiler of xcode 7. however, swift 2 required on xcode 7; working adapt realmswift.framework swift 2.

java - Player Movement Direction Logic -

consider points , b walls , point o player inside walls. so o b. i want player move left when touches rightpoint b. , move right when touches leftpoint a. the screen being rendered , player position either incremented 5 right direction or -5 left direction. what tried do: put in if else if statement. if distance between , o zero, player position gets +5 incrementation. if distance between o , b zero, player position gets -5 incrementation. touches wall(say right wall), moves -5 , 5 , again -5 , 5. i understand why happening not have logic implement this. code: sorry not post actual code. im on mobile internet. dont have computer internet. suppose leftwall @ 50, 0 , rightwall @ 550, 0 , player @ 50, 0. //this being rendered. if (rightwall - playerpos <=0){ posincrement = -5; } if (leftwall - playerpos <=0){ posincrement = 5; } translatex (playerpos); if player should between walls, implies left wall should have position lower the player posi...

r - Opening csv of specific sequences: NAs come out of nowhere? -

i feel relatively straightforward question, , feel i'm close i'm not passing edge-case testing. have directory of csvs , instead of reading of them, want of them. files in format 001.csv, 002.csv,...,099.csv, 100.csv, 101.csv, etc should explain if() logic in loop. example, files, i'd like: id = 1:1000 setwd("d:/") filenames = as.character(null) (i in id){ if(i < 10){ <- paste("00",i,sep="") } else if(i < 100){ <- paste("0",i,sep="") } filenames[[i]] <- paste(i,".csv", sep="") } y <- do.call("rbind", lapply(filenames, read.csv, header = true)) the above code works fine id=1:1000 , id=1:10 , id=20:70 pass id=99:100 or sequence involving numbers starting @ on 100, introduces lot of nas. example output below id=98:99 > filenames 098 099 "098.csv" "099.csv" example output below id=99:100 > filenames ...

ePassport Problems reagrding MAC creation in ICAO 9303 "worked examples" in Java/Clojure -

i work on application need read data epassports. i'm working through "worked examples" in icao doc 9303 part 3 volume 2 (third edition). there section in worked examples, put mutaual_authenticate apdu. involves calculating mac of "72c29c2371cc9bdb65b779b8e8d37b29ecc154aa56a8799fae2f498f76ed92f2" key "7962d9ece03d1acd4c76089dce131543" euqals "5f1448eea8ad90a7" . bouncycastle put code calculation inline document. but in section "secure messaging" mac of "887022120c06c2270ca4020c800000008709016375432908c044f68000000000" key "f1cb1f1fb5adf208806b89dc579dc1f8" . should equal "bf8b92d635ff24f8" , exact same code worked previous example different result here. ( "582afc932a87f378" ) how can be? change how macs createt in mutaual_authenticate , in secure messaging? can't find in document it. here code, i'm using clojure, work done in bouncycastle (java) (defn gen-mac [key mess...

How to resolve Xcode codesign error about multiple binaries sharing the same path? -

Image
when try export signed copy of application archives screen, following error. i used find . -type l ls find symlinks in project directory: there none. went xcode/archives folder archive , searched symlinks there, , there none of them in devmatekit.framework mentioned in error message. i've tried adding build step manually delete second binary, doesn't help. the code signing being done automatically xcode, , files being copied through standard copy files task. there 1 manual piece of code signing, done through run script task, manually codesigns different framework 1 in error message (although can't see how relevant). xcode version 6.3.1. any suggestions? if using devmatekit v1.1.1 or less, check ' link binary libraries ' build phase , phase copying frameworks , remove devmateissuesreporter.framework list if it's present there. if won't help, contact devmate support problem or create new issue github ( https://github.com/devmate/devmate...

ios - local notification at different times everyday -

i know best approach if want fire notifications more 1 time each day everyday. i did research , read notifications next day cannot fired unless user opens app next day , updated notification. true? there anyway can without need of user opening app everyday? thank you you can schedule 64 local notifications. there no limit on time period; can schedule them years in advance if like. that said, if need mechanism schedule new notifications, if app not running @ (e.g. because user terminated it), need background mode that. fetch way go here, doesn't need special trigger. send silent push notifications in order wake app, make calculations , schedule new notifications.

ios - How to enable notification on applewatch? -

i can push notifications on iphone device, cannot them on apple watch,please advise. on simulator notification test works, on real device doesn't work. ios decide best send notification. it not send both devices. if ios thinks best display on phone, notify there or vice versa. ios automatically makes decision using facts such wearing watch, because if you're not wearing watch, there's no point in sending notification there.

Loading foreach using core methods in ZK MVVM -

i read values vm. here's example of i've done far <div foreach="${vm.activitydata.activitylist}"> <label value="@load(c:cat3('vm.activitidata.', each, '.organizer' ))" /> </div> but seems unable read each inside cat3 . objective organizer each activity. idea how achieve ? update for example, want simplify codes : <div> <label value="@load(vm.activitydata.a.name)" /> <label value="@load(vm.activitydata.asponsor)" /> <label value="@load(vm.activitydata.aorganizer)" /> <separator/> <label value="@load(vm.activitydata.b.name)" /> <label value="@load(vm.activitydata.bsponsor)" /> <label value="@load(vm.activitydata.borganizer)" /> <separator/> </div> into <div foreach="${vm.activitydata.activitylist}"> <label value="@lo...

python - How can I get data from a specific class of a html tag using beautifulsoup? -

i want data located(name, city , address) in div tag html file this: <div class="maininfowrapper"> <h4 itemprop="name">name</h4> <div> <a href="/wiki/province/tehran"></a> city <a href="/wiki/city/tehran"></a> address </div> </div> i don't know how can data want in specific tag. i'm using python beautifulsoup library. there several <h4> tags in source html, 1 <h4> itemprop="name" attribute, can search first. access remaining values there. note following html correctly reproduced source page, whereas html in question not: from bs4 import beautifulsoup html = '''<div class="maininfowrapper"> <h4 itemprop="name"> name &nbsp; </h4> <div> ...

javascript - Ajax call returning a Uncaught TypeError when deployed to Heroku -

i have rails project i'm making couple of requests through ajax. when run locally, request comes me , i'm able parse through data , append view page. however, when pushed heroku, doesn't work , following error: uncaught typeerror: cannot read property 'stops' of null the line error referencing first ajax call. when run locally returns data me (no errors @ when have console open , view it), not sure why wouldn't work once deployed. guess it's assuming value 'stops' has finished (which seems locally), on heroku it's using before returned. i'm not sure why. hoping might have idea why happening. i know view recognizing javascript page - threw alert message make sure firing , worked. not else involves ajax calls (although might first ajax call that's causing issue). below if ajax request if helps: // code above $.ajax({ type: "get", datatype: "jsonp", url: response, data: {}, success: function(result...

How to get all roles list from Tomcat in Java EE application -

i have java ee application , want list of roles tomcat , show them in combo box in application. tomcat configured read users , roles database. how can this? as far know enumeration of existing roles not part of standardization - can configure tomcat various realms - simple xml file ldap or various database integrations. or combination thereof. or sso system. for reason, enumerating different roles might available function user database of choice must provide. is possible them? yes. can them "from tomcat"? no. @ least not in simple , generic way. you'll have know exact realm has been configured , access datastore. of realms might require restart of tomcat in order use changed data.

Spring Security SessionRegistry java config only -

can provide real working code snippet on how not empty sessionregistry object in spring security using java config only (without xml). i'm using spring security v4.0.1.release and i'm tried do: implemented hashcode() , equals() methods in userdetails apache commons lang: @override public int hashcode() { return hashcodebuilder.reflectionhashcode(this, "password", "id", "role", "description", "registrationdate", "enabled"); } @override public boolean equals(object obj) { return equalsbuilder.reflectionequals(this, obj, "password", "id", "role", "description", "registrationdate", "enabled"); } enabled httpsessioneventpublisher : public class appsecurityinitializer extends abstractsecuritywebapplicationinitializer { @override protected boolean enablehttpsessioneve...

c# - WFA Progress bar Background color or texture (not foreground) -

i have been looking solution quite long time, here, or other guidance sites.. many people want chhange foreground color of progressbar (the part, rising progress) i think, small image can everything: http://screenshot.cz/wt5ko/progbar.png now, using code paint custom bar, can see above. possible compose background-edit code constructor code? public class newprogressbar : progressbar { public newprogressbar() { this.setstyle(controlstyles.userpaint, true); } protected override void onpaintbackground(painteventargs pevent) { // none... helps control flicker. } protected override void onpaint(painteventargs e) { const int inset = 0; // single inset value control teh sizing of inner rect. using (image offscreenimage = new bitmap(this.width, this.height)) { using (graphics offscreen = graphics.fromimage(offscreenimage)) { rectangle rect = new rectangle(0, 0, thi...