Posts

Showing posts from February, 2010

wpf - Expander inside ListBox not showing content when expanded the first time from binding -

i have dialog window contains listbox itemtemplate contains expander. isexpanded bound property in item view model. listboxitem 's isselected property bound isexpanded property in item view model object. , selecteditem property of listbox bound property same name in view model. the problem here when setting view model before showing dialog , setting datacontext of dialog, item in listbox gets selected should, expander arrow shows in expanded state, content of expander not displayed. if set view model after showing dialog, eg. in loaded handler of dialog things work expected. going on here, , best way fix it? the dialog window defined as: <window x:class="wpfapplication1.dialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:l="clr-namespace:wpfapplication1" title="dialog" height="300" width=...

javascript - Add an event handler to any normal web request -

i have timer running on page refreshes every minute. there search function on page. search function takes 10 seconds run when there 5 seconds left before page refreshes - ends refreshing anyway , search results lost. i'm wondering if there's way generically hook outgoing web request , in cancel refresh timer. know ajax methods can setup global event handler, there way normal form submits this more generically - not having hook each form manually?

java - StackOverflowError when uploading file on ORBEON 4.1 -

we stackoverflowerror error while uploading file through upload control in orbeon 4.1.: java.lang.stackoverflowerror @ org.orbeon.msv.datatype.regexp.op$rangeop.gettoken(op.java:262) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1702) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1938) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1912) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1938) . . . @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1938) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1912) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1938) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regularexpression.java:1938) @ org.orbeon.msv.datatype.regexp.regularexpression.matchstring(regula...

php - Does Zend_Acl ristricts access to other module's model, mapper class access too? -

i using zend modular application approach. have setup zend_acl module wise. have 1 mapper class default_model_airlinemapper set in default module. class default_model_airlinemapper extends model_abstractmapper { public static function fetchall($columns = null) { $dbtableobj = new default_model_dbtable_airline(); $select = $dbtableobj->select(); if( is_array($columns) && sizeof($columns) > 0 ) $select->from($dbtableobj, $columns ); return $dbtableobj->fetchall( $select ); } } now trying access default_model_airlinemapper admin module controller like public function employeepreferredairlinesaction(){ $dom_airlines = default_model_airlinemapper::fetchall(array('airline_id','airline_name'), null, array('airline_name asc')); $this->view->dom_airline_dd = zend_json::encode($dom_airlines); } i have set access check plugin default module like class default_plugi...

Orbeon session expired handling -

in orbeon 4.1 strange session expired error handling ... when using dev mode, plain text error page +----------------------------------------------------------------------------------------------------------------------+ |an error has occurred | |----------------------------------------------------------------------------------------------------------------------| |session has expired. unable process incoming request. | |----------------------------------------------------------------------------------------------------------------------| |application call stack | |----------------------------------------------------------------------------------------------------------------------| |oxf:/ops/xforms/xforms-server-submit.xpl ...

mysql - Not selecting the id which unsatisfy condition using sql -

i have table repid , date. table: 1 repid logtime 108981 2013-04-09 00:00:00.000 108981 2013-04-09 00:00:00.000 108981 2013-04-11 00:00:00.000 108981 2013-04-11 00:00:00.000 108981 2013-04-11 00:00:00.000 108982 2013-04-09 00:00:00.000 108982 2013-04-10 00:00:00.000 108982 2013-04-11 00:00:00.000 108982 2013-04-11 00:00:00.000 108982 2013-04-11 00:00:00.000 i want regret repid table 1 if atleast 1 date in date range specified in condition didnot match. i have written query like select tl.repid table1 tl convert(date, logtime) > convert(date,'2013-04-08 00:00:00.000') , convert(date, logtime) < convert(date,'2013-04-12 00:00:00.000') here output repid 108981 108982 but want repid 108982 as repid - 108981 not have date '2013-04-10 00:00:00.000' specified in condition. ----or----- how take repid , date not satisfied..... please overcome problem......... try this... select repid (select repid ,(select coun...

javascript - Windows 8 how to choose which camera to initialize -

i developing windows store app , using camera , microphone capabilities. camera initialized examples have found initialize front camera. here's code have: windows.devices.enumeration.deviceinformation.findallasync(windows.devices.enumeration.deviceclass.videocapture) .done(function (devices) { if (devices.length > 0) { // using windows.media.capture.mediacapture apis stream webcam mediacapturemgr = new windows.media.capture.mediacapture(); mediacapturemgr.initializeasync().done(initializecomplete, initializeerror); } else { var div = document.createelement('div'); div.innerhtml = "no camera found"; document.body.appendchild(div); } }); in case mediacapturemgr refers front camera. went through documentation , says have provide videodeviceid mediacapture() function this: mediacapturemgr = new windows.media.capture.mediacapture({ videodevice...

c++ - New and delete operators without effect on the contents of a Deque of pointers to this class -

i have problem have been tackling since last 2 days, rather inexperienced programmer normal assume. question may have easy solution, couldn't find quick reference, decided ask others. in 1 thread of application, create new , pointer user defined class. after it, push new created pointer deque of pointers user defined class, push_back() method. this deque under concern had been passed thread main function of application, contents of user-defined class processed in main loop. thus, when new pointer enters deque, taken in main thread, , used. my problem need make sure memory allocated contents of class should deallocated after use, because store large image arrays. otherwise, program crashes. this, have used delete after push_back() call in thread, assuming memory free, stored in deque . however, apparently, contents of address pointed pointer in deque deleted. not desire. is there way decouple both, maybe without introducing pointers? think new , delete valid in po...

bash - Why node.js can not find the avconv? -

why using exec in node.js: child = exec("avconv -i " + result.params.fulldestinationfilename + " -ab 128k -vcodec libx264 -vb 2000k -r 24 -s 1280x720 " + convertedfilename720p + ".mp4", function (error, stdout, stderr) { sys.print('stdout: ' + stdout); sys.print('stderr: ' + stderr); if (error !== null) { console.log('exec error: ' + error); } console.log("converted!"); }); i error: exec error: error: command failed: /bin/sh: avconv: command not found in bash can execute normally. node.js development use nodeclipse. for reference var exec = require('child_process').exec; exec("ls -la");

c# - Tooltip doesn't work with button that is set enable=false -

this question has answer here: how can show tooltip on disabled button? 4 answers i render buttons on window form , there of them set enable = false. want tooltip still works every button if it's unenable. how that? please help. you can intercept mousemove event , display tooltip programmatically. tooltip1 form tooltip obviously private bool tooltipshown = false; private void control_mousemove(object sender, mouseeventargs e) { var parent = sender control; if (parent == null) { return; } var ctrl = parent.getchildatpoint(e.location); if (ctrl != null) { if (ctrl.visible && tooltip1.tag == null) { if (!tooltipshown) { var tipstring = tooltip1.gettooltip(ctrl); tooltip1.show(tipstring.trim(), ctrl, ctrl.width / 2, ctrl.height / 2); ...

sql - Foreign key matching in PostgreSQL -

just curious, if have table: create table "post" ( "id" serial, "revision" integer not null default 0, "summary" character varying not null, "description" text not null, "user_id" integer not null references "user" ("id") match full on update cascade on delete restrict, "post_type_id" integer not null references "post_type" ("id") match full on update cascade on delete restrict, "ctime" timestamp time zone default now(), primary key("id", "revision") ); to store posts, , table: create table "post_state" ( "post_id" integer not null, "assembly_seat_id" integer not null references "assembly_seat" ("id") match full on update cascade on delete restrict, pr...

exclamation mark in sql xml -

i have problem trying add element illegal character. have following sql select 'en-gb' '@xml:lang', '20120217164611.1712._3fo0zxyq3@gbrappchl1' '@payloadid', '2012-02-17t16:46:11' '@timestamp', '1.2.014' '@version', ( select ( select /* */ (select 'tecsolexchangeid' 'credential/@domain', 33333 'credential/identity' xml path(''), type), (select 'name' 'credential/@domain', 'test limited' 'credential/identity' xml path(''), type) xml path('from'), type ), ( select /* */ (select 'tecsolexchangeid' 'credential/@domain', 66666 'credential/identity' xml path(''), type), (select 'name' 'credential/@domain', 'test company' 'credential/identity' xml path(''), type) xml path('to...

iphone privateapi - IOSurface - IOS Private API - Capture screenshot in background -

i want capture screenshot background service. private api fine don't need submit app store. have tried uigetscreenimage , not work background app. i using following code got so. iosurfacecreate returns null me. appreciated. cfmutabledictionaryref dict; iosurfaceref screensurface = null; char pixelformat[4] = {'a','r','g','b'}; dict = cfdictionarycreatemutable(kcfallocatordefault, 0, &kcftypedictionarykeycallbacks, &kcftypedictionaryvaluecallbacks); uint32_t width ; uint32_t height; void *pitch; void *bpe; void *size; cfdictionarysetvalue(dict, kiosurfaceisglobal, kcfbooleantrue); cfdictionarysetvalue(dict, kiosurfacebytesperrow, cfnumbercreate(kcfallocatordefault, kcfnumbersint32type, &pitch)); cfdictionarysetvalue(dict, kiosurfacebytesperelement, cfnumbercreate(kcfallocatordefault, kcfnumbersint32type, &bpe)); cfdictionarysetvalu...

Ascii characters more reliable in html? -

im making webpage. in html better use ascii characters? following same me when test in different browsers first 1 better practice? opening &#45; opening - it's ok use literals - on escaped &#45 entities, , encouraged readability. characters have escape called "unsafe entities" (like < , > are, can mark new tag , therefore ambigous browser. if declare document encoding utf-8, can insert character (also non ascii, letters foreign alphabets or accented letters) not violate markup syntax. only reason keep &... characters compatibility ancient browser not recognizing utf-8.

HTML5 video controls - Cannot play after pause in chrome only -

hiya hoping if possible please. have html5 video acting strange when viewed in chrome. when user hits play first time, video plays. if click pause video pauses. play button doesn't work @ , way make video play click video screen. any ideas on why happening , how can fix issue please? here's code i'm using: <video width="560" height="320" preload controls> <source src="videos/testimonial2.mp4" type="video/mp4" /> <source src="videos/testimonial2.ogv" type="video/ogg" /> <source src="videos/testimonial2.webm" "type=video/webm" /> <object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="560" height="320"> <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /> <param name="wmode" value="...

jquery - Using Modernizr to Detect Max-Width on Inline Elements -

the reason (sorry, i'm wordy, know) this might tricky, or unusual request on website manage have lot of pages containing images stored inside table. users put image there captions or make sure layout expect. of users not savvy enough use div's tables never going go away. i'm working on making site responsive 1 of issues i've encountered these images browsers behave differently when image in table , viewport resized. firefox, example, not scale image using max width 100% if nested in table. according previous question , partly because there no specification how handle image when nested in inline element. the way i've found fix problem pull out image's width/height img tag , set width 100% in css. in place firefox consistently scales down images if in table cells. here's example of type of thing i'm trying fix . drupal/ckeditor put image's width in style tag , need css/js stuff fix it. the question i want css/js fix apply browsers ...

iphone - ios face detection fails in landscape mode -

i using opencv framework detection of face. have blocked auto rotation. using method face. detectmultiscale(frame_gray, faces, 1.1, 2, 0 | cv_haar_scale_image, cv::size(100, 100)); when hold iphone in portrait mode face detection working fine when rotate iphone landscape mode face detection fails. implantation of cvvideocamera self.videocamera = [[cvvideocamera alloc] initwithparentview:self.imageview]; self.videocamera.defaultavcapturedeviceposition = avcapturedevicepositionfront; self.videocamera.defaultavcapturesessionpreset = avcapturesessionpreset352x288; self.videocamera.defaultavcapturevideoorientation = avcapturevideoorientationportrait; self.videocamera.defaultfps = 30; self.videocamera.grayscalemode = no; self.videocamera.delegate = self; quick fix before initialize cvvideocamera add these these lines nsnumber *value = [nsnumber numberwithint:uiinterfaceorientationportrait]; [[uidevice currentdevice] setvalue:value forkey:@"orientation"]; self...

java - How to autoscroll a WebView HTML File? -

i want able autoscroll page. below method. public class mainactivity extends activity { @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); webview wv = (webview) findviewbyid(r.id.webview1); wv.loadurl("file:///android_asset/1.html"); } } edit: don't want auto scrolled way bottom or top want autoscroll speed goes bottom slowly. you use scrollview enclosing webview in main layout, , scroll programmatically.

How do I find which style is affecting the control appearce in WPF -

if have lot of styles affecting same control, best way determine style in use @ run time. seems hard find right style affecting @ design time style , brushes in use applied @ different levels. for example: have datagrid made of rows , cells. when hover on cell, affects border thickness ( 0,0,1,1 0,0,1,0) , cannot seem find style affecting change. i use snoop debug application @ run time. tell current property value is, , coming (although it's bit vague, such saying "inherited" instead of it's inherited by). but typically can set style single value, , can basedon @ 1 style, don't run problem often. another useful resource dependency property precedence list diagnose values take precedence on others in event same property set in multiple places.

Easiest two-way encryption to be used both on a PHP server and on iOS client -

for private use only , i'm creating , hosting on web server php application retrieves passwords various accounts mysql database , serves them client iphone application should able insert new passwords in database. instead of sending data on internet plain text encrypt them before sending them i'm new encryption i'm feeling little bit disoriented among possible encryption algorithms out there. while mcrypt function on php seems flexible , compatible many encryption algorithms couldn't find on ios. what wanted algorithm easy implement both on php , objective-c that, given plain text , encryption key (stored both on server , on client), encrypt , decrypt plain text. for further detail the server/client communication had in mind this: client sends request containing client-specific-app-id , service password server should return the server checks if client id allowed information if client allowed server querys database , retrieves password the server encry...

iphone - touchesEnded not getting called when combined with UIButton? -

i've implemented when uibutton highlighted , uiswipegesturerecognizer recognizes gesture begin animation. problem want end animation when touchesended gets called after selecting uibutton , making gesture. touchesended never gets called if tap uibutton in process. the rest of time works, useless me if can't use during animation. here did: -(ibaction) swipedown:(uiswipegesturerecognizer *)recognizer { if(onebutton.highlighted) { //animate } } - (void)touchesended:(nsset *)touches withevent:(uievent *)event { for(uitouch *touch in touches) { if(touch.phase == uitouchphaseended) { nslog(@"touched"); } } } any ideas? instead of touchesended, add action button triggered when released. [button addtarget:self action:@selector(buttontapended) forcontrolevents:(uicontroleventtouchupinside|uicontroleventtouchupoutside)];

javascript - Issue using JSON.stringify to convert associative array -

the issue happens when associative array programmatically apposed via literal definition. using stringify on literal definition works. trying understand, used test literal definition. var test = { voice : { state : 'ready' } }; console.log('stringify test: ' + json.stringify(test)); and output i'd expect: stringify test: {"voice":{"state":"ready"}} this isn't happening when initialize programmatically. should mention variable private member of object i've created, has accessor/getter methods. within constructor, have: var states = {}; this.getstates = function() { return states; } this.setstate = function(newstate, mediatype) { states[mediatype] = newstate } now run same test. customobj.setstate('{ state: 'ready' }', 'voice'); var test = customobj.getstates(); console.log('stringify test: ' + json.stringify(test)); and output not expect: stringify test: [] ...

c/c++ : 2-D array variable subscript -

this question has answer here: how come array's address equal value in c? 7 answers int a[3][3]={5}; printf("&a = %u \n = %u \n*a = %u\n&a[0][0]=%d\na[0][0]", &a, a, *a, &a[0][0], a[0][0]); output:- &a = 2359028 = 2359028 *a = 2359028 &a[0][0]=2359028 a[0][0] =5 how can these same? if value of a=2359028, shouldn't *a give value @ address 2359028 i.e. 5? &a gives address of array. it's of type int (*)[3][3] . easy. a denotes array , undergo array-to-pointer conversion become pointer array's first element. array's first element subarray of type int[3] , pointer subarray. pointer of type int (*)[3] . has same address before because first subarray @ start of array. with *a , array undergoes array-to-pointer conversion again same pointer subarray before. dereference subarray itself. expression...

Change Visual Studio html text font color -

can change font color , background plain text in html/razor page in visual studio editor? <h1>highlight plain code</h1> i've tried "plain text" setting, changes everything. it plain text option. changed color , text within h1 blocks changed it, along other plain text in html. not sure mean changing everything, did not change color html elements.

sql - Get all records with child records OR field length > 250 -

i have comment model has-many attachments . want return, of comments either have 1 or more attachment records, or comment longer 250 characters. is there way can without writing entirely in pure sql? i'm struggling build clause in rails method. it's not quite simple i'd hoped :( ideally want scope whatever work fine you try: comment.includes(:attachments).where('attachments.comment_id not null or len(comments.content) > 250')

opencv - change descriptor Size in SURF -

i trying change descriptor size 128 instead of 64 in opencv does know how can change here part of code { surffeaturedetector detector( minhessian , 1 , 1 , 1 , 0 ); // try number of keypoint matching std::vector<keypoint> keypoints_object, keypoints_scene; detector.detect( img_object, keypoints_object ); detector.detect( img_scene, keypoints_scene ); //-- step 2: calculate descriptors (feature vectors) surfdescriptorextractor extractor ; mat descriptors_object, descriptors_scene; extractor.compute( img_object, keypoints_object, descriptors_object ); extractor.compute( img_scene, keypoints_scene, descriptors_scene ); } thanks in advance extended parameter responsible size of descriptors. set 1(true) , 128-element descriptors should calculated. surfdescriptorextractor extractor(hessianthreshold, noctaves, noctavelayers, ***extended***, upright);

android - Google Developer Console publish screenshots for an app -

i don't understand logic publishing screenshots in developer console. there 3 sections: phone / 7-inch tablet / 10-inch tablet i prepared screenshots in different sizes these 3 sections. i checked app in googleplay 10-inch tablet , screens there ( phone , 7 inch ) . thought should show pictures depending on section , not in sequence. on phone appears images. think doesn't make sense. is there way setup pictures ( upload ) appear on devices depending on section ? regards i don't think so. i've make account today. images show in order. if upload screenshots app shown in section "designed tablets" sorry german statemant: damit ihre app in der liste "speziell für tablets entwickelt" im play store erscheint, müssen sie mindestens einen screenshot für ein 7"- und einen screenshot für ein 10"-gerät hochladen. wenn sie bereits screenshots hochgeladen haben, verschieben sie sie unten in den richtigen bereich.

c# - WCF, dealing with simultaneous requests from multiple servers -

i have block of work ive split smaller blocks. want assign each block instance of numbercruncher (each instance hosted @ unique endpoint , run on specific thread on server). instance of numbercruncher @ specified endpoint go , crunch numbers passed client proxy, before returning results in txt file format. from client side, im assuming need keep 2 threadsafe list, 1 containing endpoints linked instances of numbercruncher waiting return results. 2nd instances of numbercruncher waiting assigned more work? regarding adding items these lists, how possible deal multiple requests servers? 1 can added @ time, im assuming client need send message service saying "yes added list, stop requesting added."? edit i'm trying run analysis on time series have collected. ive written program (number cruncher) splits different parameters want check , assigns them different threads (determined number of cores in pc). each thread runs number cruncher assigned input. unfortunately t...

c# - Convert projects to .Net 4.5 ( that uses TPL) -

currently own few projects .net 3.5 , .net 4.0. decided migrate .net 4.5. all projects in vs2012 (c# 5.0) , projects using async-await keywords on .net 4.0 projects being used microsoft.bcl.async on .net 3.5 projects being used asyncbridge.net35 , taskparallellibrary the problem is: - there no taskex class , other extension methods in .net 4.5 or not know existence of these how can make change, without major changes in code? in .net 4.5, taskex methods have been moved task class. example, instead of await taskex.run(...); , use await task.run(...); . should, assuming naming scheme of own classes sane, able global search-and-replace.

Need regular expression that will work to find numeric and alpha characters in a string -

here's i'm trying do. user can type in search string, can include '*' or '?' wildcard characters. i'm finding works regular strings not ones including numeric characters. e.g: 414d512052524d2e535441524b2e4e45298b8751202ae908 1208 if section of hex string, returns false. if "120" or "208" in "1208" string fails. right now, regular expression pattern ends looking when user enters, "w?f": '\bw.?f\b' i'm (obviously) not well-versed in regular expressions @ moment, appreciate pointers may have handle numeric characters in way need - thanks! code in question: /** * * @param searchstring * @param strtobesearched * @return */ public boolean findstring(string searchstring, string strtobesearched) { pattern pattern = pattern.compile(wildcardtoregex(searchstring)); return pattern.matcher(strtobesearched).find(); } private string wildcardtoregex(string wildcard){ stringbuffer s = n...

java - Trigger galaxy S4 Infrared sensor App Development? -

hello i'am complete noob in android development , since have galaxy s4 ir sensor thaught of start developping remote wich works every tv without configourtion. know not easyest app beginner thought quiet expert in java not big thing learn. first want button , if press it should send ir code galaxy s4 ir sensor. did som research , found out infrared codes hex codes example: power on code jvc tv 0000 006d 0001 0011 0140 009e 0014 003c 0014 003c 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 003c 0014 003c 0014 003c 0014 0014 0014 003c 0014 0014 0014 0014 0014 0014 0014 0379 how can send code ir output ar there api's ? give me examples or helpful links if ar interested in project can add me on skype: jonijoni111 thanks in afford. someone wrote sample application samsung galaxy note. tried code samsung galaxy s4 , worked well: https://github.com/rngtng/irdude/blob/master/src/com/rngtng/irdude/mainactivity.java

jQuery Events function once -

i have widgets on site when click titles, content within block refreshes. working also, click function activates once. after fires, disabled allowing 1 refresh. need remove one-time limit. here's js below. <script> $(function(){ $("div#ft1").click(function() { $("div#blk1").load("http://mediahood.net/widgets/feat/inc/blk-entertainment.php"); }); $("div#ft2").click(function() { $("div#blk2").load("http://mediahood.net/widgets/feat/inc/blk-technology.php"); }); $("div#ft3").click(function() { $("div#blk3").load("http://mediahood.net/widgets/feat/inc/blk-music.php"); }); $("div#ft4").click(function() { $("div#blk4").load("http://mediahood.net/widgets/feat/inc/blk-sports.php"); }); $("div#ft5").click(functi...

asp.net - Kendo UI Grid in MVC - How to return selected row Item to Controller -

i have mvc 4 application kendo ui grid using user management. display users information in grid , have custom command button when clicked opens new page edit users information. various reasons (one being there information edited display in grid) need edit users on new page , not inline or popup or incell editing. grid looks this... simple @(html.kendo().grid<websitenew.models.manageusersviewmodel>() .name("grid") .htmlattributes(new { style = "margin-top: 5px" }) .columns(c => { c.bound(model => model.username); c.bound(model => model.firstname); c.bound(model => model.lastname); c.bound(model => model.email); c.bound(model => model.phone); c.bound(model => model.extension); c.bound(model => model.jobtitle); c.command(com => { com.custom("edit").click("edit"); com.destroy(); }); }) .pageable() .sortable() .selectable() .datasource(d => d .ajax() .pagesize(20) .m...

qt - QScollArea doesn't autoscroll when dragging inside it -

i have widgets inside qscrollarea , i'm dragging between these widgets, problem qscrollarea doesn't scroll when i'm dragging inside it, if want drag between widget widget b , widget b not visible on viewport, qscrollarea doesn't automatically scroll when mouse moves edge of viewport. subclass scroll area, , add in 1 of functions below. http://qt-project.org/doc/qt-4.8/qwidget.html#mousepressevent http://qt-project.org/doc/qt-4.8/qwidget.html#dragmoveevent http://qt-project.org/doc/qt-4.8/qwidget.html#dragleaveevent // need one when dragmoveevent reaches edge of widget, or when dragleaveevent happens, detect edge is, or left at, , scroll area in direction. hope helps.

list - Print button in Windows 8 Store app HTML + JS for Split Template app -

i have app made in winjs windows 8 app store, , use split page template. on split page have 2 colums 1 named list column , 1 named item detail column . recipes, , in list pictures , small details, , in right in item detail block recipe details , pictures. want print button print right column details, not entire windows list , etc. can give me example better 1 msdn? as taken codeshow.codeplex.com print fragment: function printfrag(printevent) { var printtask = printevent.request.createprinttask("codeshow print frag", function (args) { var frag = document.createdocumentfragment(); frag.appendchild(q(".print #printfromapp").clonenode(true)); args.setsource(msapp.gethtmlprintdocumentsource(frag)); // register handler print task completion event printtask.oncompleted = printtaskcompleted; }); } which in turn cloning html node , printing it <div id="printfromap...

c# - JSON parse exception using System.Json -

i error while parsing json string object. using system.json parse json string. the json file: (note: cannot change structure of json file because generated) { title: "my title", log: "", nid: "1234", type: "software", language: "en", created: "1364480345", revision_timestamp: "1366803957", body: { und: [ { value: "abc", summary: "def" } ] } } the c# code: string jsonstring = new webclient().downloadstring(".......myjson.json"); //for test purpose var obj = jsonobject.parse (jsonstring); ///<--- @ line exception thrown the exception: system.argumentexception has been thrown. invalid json string literal format. @ line 1, column 2 how solve this? thanks in advance! how solve this? (note: cannot...

ios - Get Directions Button on Map Annotation Detail View -

i have map view several annotations. title of annotation name of business , subtitle address. there detaildisclosure button on annotation view takes user detail view selected annotation. detail view has uilabel text annotation title, uilabel text annotation subtitle (the address), button business website, button business phone number, , lastly, button getting directions address. i'm wanting take address annotation subtitle when user taps directions button, opens in apple maps app can directions. question is, how open maps app address in annotation subtitle? - (mkannotationview*)mapview:(mkmapview *)mapview viewforannotation:(id<mkannotation>)annotation { // if it's user location, return nil if ([annotation iskindofclass:[mkuserlocation class]]) return nil; // try dequeue existing pin view first static nsstring *annotationidentifier = @"annotationidentifier"; mkpinannotationview *pinview = [[mkpinannotationview alloc]initwi...