Posts

c# - WPF application stops interacting on screen rotate -

we have wpf app runs fine, user reported locks when screen rotated. (tablets that!) the app renders after rotate stops responding mouse/keyboard. doesn't show 'non-responding' in windows sense. we can simulate "lock up" here, debugging odd: lock not occur while in vs debugger if try , attach locked process, vs says process built without debug information before lockup vs can attach/deattach same exe process we have put trace outputs in global unhandled exceptions nothing fired. i can think of 1 next step debug start hack out chunks of code , find breaking area. anyone seen before or got suggestions? thanks! the issue update library using called sparkle . it creating hidden winforms form in it's constructor. there must kind of wpf/winforms interop bug during screen rotations. removing form or removing library fixed issue.

mysql - Nested update in select -

i executing select id uid, ( update trans set paidout=1 user_id=uid , sum(amount)>0.5234 ) accounts but no success, why doesn't work? you have used wrong syntax ,you can use select subquery in update query, in select query can't update subquery ,if want update paidout trans table scenario user_id same id accounts table , sum of user amount should greater 0.5234 can update trans t join accounts on(t.user_id = a.id) join (select user_id trans group user_id having sum(amount) > 0.5234 ) tt on(tt.user_id = a.id) group a.id set t.paidout=1

netlogo - Equivalent to link-here? -

how 1 access link object @ current location of turtle? instance count number of times event occurs while traversing particular link. i had (perhaps stupidly) assumed could: ask link(s)-here [set count count + 1] but link-here not method , doesn't work. any advice appreciated many reading. stephen are turtles wandering around plane , happen cross on links? if so, see bryan's answer. or, turtles intentionally walking along links? if latter, add: turtles-own [current-link] and @ time turtle chooses link , begins following it, store link in variable.

java - NullPointerException in an Array Stack -

i'm trying implement stack using array program reverses sound clips, taking pieces of .dat file stack , popping them off 1 one. i'm getting nullpointerexception in pop() method whenever run client program, , can't figure out why. here stack implementation: import java.util.emptystackexception; public class arraystack implements dstack { private int size = 0; private static int default_capacity = 10; private double arrayst[]; public arraystack(){ arrayst = new double[default_capacity]; } public boolean isempty(){ boolean empty = true; if(arrayst.length != 0) { empty = false; } return empty; } public void push(double d){ if(size == arrayst.length){ increasecapacity(); } arrayst[size++] = d; } public double pop(){ boolean empty = isempty(); if(empty == true){ throw new emptystackexception(); } double d = arrayst[--size]; arrayst[size] = null; return d; } public double peek(){ ...

c# - Force WebBrowser control to create isolated cookie for application -

i have gone through many questions related – not this. have webbrowser control in windows forms project. multiple instances of application run frm same windows server machine – different user credentials website. as know, webbrowser uses ie engine , has session merging. what best way force webbrowser control use individual cookie folders each instance of application wouldn’t mind cookie of other application. note: ie8 browser installed on server reference internetsetcookie function webbrowser control mishandling cookies when internet explorer open how clear webbrowser control cookie in c# multiple webbrower sessions / processes in 1 window c# webrequest using webbrowser cookie how delete cookies windows.form? internetsetcookie function: cookies created internetsetcookie without expiration date stored in memory , available in same process created them. cookies include expiration date stored in windows\cookies directory.

regex - Anchors inside of [ ] in sed -

using sed, why match: sed 's/test$/pass/' <<< "test" ...when doesn't? sed 's/test[$]/pass/' <<< "test" because […] represents character class in regular expression, [$] matches single literal $ character. in other words, cannot match anchors inside character classes. if want match a or b character or end of string, use alternation: sed 's/test([ab]|$)/pass/' <<< "test"

Hadoop MapReduce on Eclipse: Cleaning up the staging area file:/app/hadoop/tmp/mapred/staging/myname183880112/.staging/job_local183880112_0001 -

2014-04-04 16:02:31.633 java[44631:1903] unable load realm info scdynamicstore 14/04/04 16:02:32 warn util.nativecodeloader: unable load native-hadoop library platform... using builtin-java classes applicable 14/04/04 16:02:32 warn mapred.jobclient: use genericoptionsparser parsing arguments. applications should implement tool same. 14/04/04 16:02:32 warn mapred.jobclient: no job jar file set. user classes may not found. see jobconf(class) or jobconf#setjar(string). 14/04/04 16:02:32 warn snappy.loadsnappy: snappy native library not loaded 14/04/04 16:02:32 info mapred.fileinputformat: total input paths process : 1 14/04/04 16:02:32 info mapred.jobclient: cleaning staging area file:/app/hadoop/tmp/mapred/staging/myname183880112/.staging/job_local183880112_0001 java.lang.nullpointerexception @ org.apache.hadoop.conf.configuration.getlocalpath(configuration.java:950) @ org.apache.hadoop.mapred.jobconf.getlocalpath(jobconf.java:476) @ org.apache.hadoop.mapred.localjobrunn...