Posts

Showing posts from August, 2013

.net - WPF ItemsControl horizontal orientation and fill parent? -

i trying horizontally place items in itemcontrol whilst making them fill parent control. here xaml: <itemscontrol itemssource="{binding annualweatherviewmodels}" visibility="{binding isannualweatherviewmodels, converter={staticresource visibilityconverter}}"> <itemscontrol.itemspanel> <itemspaneltemplate> <stackpanel orientation="horizontal"></stackpanel> </itemspaneltemplate> </itemscontrol.itemspanel> <itemscontrol.itemtemplate> <datatemplate> <v:aerosolsimpleweathercharacteristicsview datacontext="{binding}"></v:aerosolsimpleweathercharacteristicsview> </datatemplate> </itemscontrol.itemtemplate> </itemscontrol> the 2 variations have trie

mysql - Trying to add a delete button to PHP website -

i'm new php , trying add delete button remove object (job) list, want delete button appear beside each of individual objects (jobs) , once clicked job gets deleted database table. below code both edit_jobs.php (displays jobs particular user) , delete_job.php (suppose remove particular job table) can please tell me i'm doing wrong, my edit_jobs page displays jobs in table particular user has posted. <?php include_once "connect_to_mysql.php"; $id = $userid; $username = $_get['username']; $result = mysql_query("select * jobs user_id ='$id'") or die(mysql_error()); while ($row = mysql_fetch_array($result)) { echo '<a href="job.php?id=' . $row['job_id'] . '"> ' . $row['job'] . '</a><br />'; echo 'category: ' . $row['category'] . '<br />'; echo 

iTextSharp - Don't display page numbers if only one page -

i have pdf generated using itextsharp displays "page 1/4" etc. thing in footer. works fine , implemented using pdftemplate set in onendpage() method total number of pages added in onclosedocument() method. what remove if there 1 page in document. i've tried in onclosedocument() method, doesn't remove template: public override void onclosedocument(pdfwriter writer, document document) { base.onclosedocument(writer, document); if (writer.pagenumber >= 3) { template.begintext(); template.setfontandsize(f_cn, cocservice.footerfont.size); template.settextmatrix(0, 0); template.showtext("" + (writer.pagenumber - 1)); template.endtext(); } else { template.reset(); } } just reference, here's relevant code onendpage() method: public ov

php - using CSS to hide certain tr with specific class name only if it contain keyword -

i have many tr s have same class name - sectiontableentry1 . want tr hidden if contains keyword, such "recommended" . here example http://jsfiddle.net/aqfqk/1/ if not misstaken, looking : $('.sectiontableentry1').each(function(){ if($(this).html().indexof('recommended') != -1){ $(this).hide() } }) since want little blurry me, tell me if wrong.

c++ - "Access Violation Reading Location" with Vertex Buffer -

i trying convert following piece of code 1 uses vertex buffer: glbegin (gl_quads); gltexcoord2fv (&_vertex[ci->index_list[7]].uv.x); glvertex3fv (&_vertex[ci->index_list[7]].position.x); glvertex3fv (&_vertex[ci->index_list[5]].position.x); glvertex3fv (&_vertex[ci->index_list[3]].position.x); glvertex3fv (&_vertex[ci->index_list[1]].position.x); glend (); my faulty code partly looks this: glfloat * p = (glfloat *) malloc(sizeof(glfloat)*14); //memcopies vertices p pointer memcpy(&p[counter+0], &_vertex[ci->index_list[7]].uv.x, sizeof(glfloat)*2); memcpy(&p[counter+2], &_vertex[ci->index_list[7]].position.x, sizeof(glfloat)*3); memcpy(&p[counter+5], &_vertex[ci->index_list[5]].position.x, sizeof(glfloat)*3); memcpy(&p[counter+8], &_vertex[ci->index_list[3]].position.x, sizeof(glfloat)*3); memcpy(&p[counter+11], &_vertex[ci->index_list[1]].position.x, sizeof(glfloat)*3); glgenbuffers(1,

sql - How should I use the cursor in the Function? -

i want use cursor in package's function this: package pkg type result_t table of varchar2(30); function generatef return result_t pipelined; end pkg; / create or replace package body pkg function generatef return result_t pipelined begin tlc in (select name users) loop pipe row(tlc.name); end loop; return; end; end pkg; / select * table(pkg.generatef); i think right issue focusing on select name users because if use select sysdate dual the function works well. if want extract data other view, bring error this: error(7,45): pl/sql: ora-00942: table or view not exist". but actually, view exists. i don't know problem. , i'm not sure whether it's ok use cursor mentioned.

Getting name from Submit Button php -

basically making list of buttons , want single $_post['submit'] delete database depending on button pressed. there 2 values keep within submit button. thanks! ...while($row = mysqli_fetch_array($papertoreview)){ if ($row > 0) { echo '<td width = 200><input type=submit name=' . $row['uid'] . 'value=removerow />'; echo '</tr>'; }} if (isset($_post['submit']) && $_post['submit'] =='removerow'){ dbsubmit("delete paper_review paper_reviewer_id = '" ???submit button name???"' , paperid = '"???some other part of submit button"'"); you can't pass 2 values through $_post variable 1 form element. unless put them in value attribute, use php explode split values. in html form have <input type="submit" name="btnsubmit" value="valuea-valueb" /> then in php script

java - libgdx coordinate system differences between rendering and touch input -

i have screen (basescreen implements screen interface) renders png image. on click of screen, moves character position touched (for testing purposes). public class drawingspritescreen extends basescreen { private texture _sourcetexture = null; float x = 0, y = 0; @override public void create() { _sourcetexture = new texture(gdx.files.internal("data/character.png")); } . . } during rendering of screen, if user touched screen, grab coordinates of touch, , use these render character image. @override public void render(float delta) { if (gdx.input.justtouched()) { x = gdx.input.getx(); y = gdx.input.gety(); } super.getgame().batch.draw(_sourcetexture, x, y); } the issue coordinates drawing image start bottom left position (as noted in libgdx wiki) , coordinates touch input starts upper left corner. issue i'm having click on bottom right, moves image top right. coordinates may x 675 y 13, on touc

google maps api 3 - Getting coordinates by clicking over a circle overlay -

i have script gets coordinate of map clicking. @ same time, there circle overlays spread across map. can coordinate of anywhere area covered overlays. work-around problem? either make circles {clickable: false} or capture click event on circles also

How to get my active users' information from Android Market? -

not programming question closely related. trying send notification users of app, reason can't see how can emails developer's console. know how can list? have full list of emails in database when signed within app, want active users, , in database can't distinguish between active , inactive. thanks on this. android doesn't send emails unless pay app (then can cancel orders or send refunds). way send announcement users use push messaging.

regex - Escaping special meaning of characters while matching patterns formed using variables: PHP:preg_match -

i performing regular expression matching find first occurrence of specific set of words in text. since don't want generate false positives when sub strings of other word, want use patterns. for example, want find whole word " dom " not substring dom in " randomizer ", say. so, using pattern " \bdom\b " consider occurrences of dom word boundary on either side. dom, ansd other such pattern strings coming array $tags. reading each tag $tag $tags, comparison be: preg_match("/\b$tag\b/", ...) but trouble if $tag = " .net ". "\b$tag\b" start matching strings cnet , inet , etc. interpreting . wildcard character. so, how escape special meaning of characters inside variable being used form pattern? have @ preg_quote() . preg_quote() takes str , puts backslash in front of every character part of regular expression syntax. useful if have run-time string need match in text , string may contain special regex

java - How to make numeric comparison when using morphia to perform an $elemMatch query -

my document has following structure: { "scores": [{ "scoretitle": "environment", "scorevalue": 3, "scoredescribe": "good" }, { "scoretitle": "service", "scorevalue": 3, "scoredescribe": "good" }, { "scoretitle": "taste", "scorevalue": 4, "scoredescribe": "good" }] } in mongo shell, can use following query find document has score title 'environment' , value greater 2. db.reviews.find({"scores":{"$elemmatch":{"scorevalue":{"$gt":2},"scoretitle":"environment"}}}) now want query document using morphia, api doc, 'elem' operator supported in fiter method, , additional query criteria object required, example, query document has score title "environment" , describe "good": score score = new sc

c# - Setting a DateTime appointment schedule -

newbie question using datetime method set schedule inside telerik calendar. want use telerik controls calendar set schedule music bands tour schedule. i can't seem desired results. below code in sampleappointmentsource cs file. thought setting datetime.parse("5/19/2013") in of appointments when use adddays(1) or adddays(20) appointemnts follow datetime.parse("5/19/2013") pattern doesn't. appointments use current date , time (now). when add days, appointments aren't added parsed date ("5/19/2013"), added current datetime. appointments referenced current system date. i hope wasn't confusing.... what need use desired results? is because of datetime.now.adddays(1) line? should not datetime.now? { public class sampleappointmentsource : appointmentsource { public sampleappointmentsource() { datetime date = new datetime(); date = datetime.parse("5/19/2013"); } public override void fetchdata(

c# - In NUnit, how can I indicate that a 'DataPoint' is applicable to just one Theory? -

in nunit , there way indicate datapoint(s)attribute should applied 1 theory only, if there more 1 theory in same testfixture class? reason ask have followed unit test convention methods of test class (cut) tested multiple [test] methods rolled single test fixture class, , trying move away parameterized tests toward [theory] . or should continue use values / range / random attributes of parameterized tests such tests? e.g. below, want ensure different datapoints theories add , divide: // c.u.t. public class badmaths { public int badadd(int x, int y) { return x + y - 1; } public int divide(int x, int y) { return x / y; } } [testfixture] public class badmathstest { // ideally want 2 x different datapoints - 1 add, , different 1 divide [datapoints] private tuple<int, int>[] _points = new tuple<int, int>[] { new tuple<int, int>(20, 10), new tuple<int, int>(-10, 0), }; [theory] public

java - Why is this code failing to detect DTMF tones properly? -

i trying detect dtmf tones playing on machine. have code person found on website. have rearranged code based on needs. looks code detecting tones when there none playing! what doing wrong here? piece of code uses goertzel algorithm detecting dtmf tones. import java.io.ioexception; import javax.sound.sampled.audioformat; import javax.sound.sampled.audiosystem; import javax.sound.sampled.dataline; import javax.sound.sampled.lineunavailableexception; import javax.sound.sampled.targetdataline; public class dtmfdetect { /** * @param args */ float[] lowfreq = new float[]{697.0f, 770.0f, 852.0f, 941.0f}; float[] highfreq = new float[]{1209.0f, 1336.0f, 1477.0f, 1633.0f}; float[] dtmftones = new float[]{697.0f, 770.0f, 852.0f, 941.0f, 1209.0f, 1336.0f, 1477.0f, 1633.0f}; int dtmfboard[][] = { { 1, 2, 3, 12 }, { 4, 5, 6, 13 }, { 7, 8, 9, 14 }, { 10, 0, 11, 15} }; //byte[] buffer = new byte[2000]; static final char frame

jmeter: Error invoking bsh method: eval -

when try execute following code in jmeter: import org.json.jsonarray; import org.json.jsonobject; string jsonstring = prev . . . '' i following error: error - jmeter.util.beanshellinterpreter: error invoking bsh method: eval sourced file: inline evaluation of: import org.json.jsonarray; import org.json.jsonobject; string jsonstring = prev : typed variable declaration : object constructor script org.apache.jorphan.util.jmeterexception: error invoking bsh method: eval sourced file: inline evaluation of: import org.json.jsonarray; import org.json.jsonobject; string jsonstring = prev . . . '' : typed variable declaration : object constructor i have no idea means. your code wrong: prev . . . '' it should java code compatible jdk1.4 you have option use jsr223 + groovy anyway code wrong

php - I'm unable to update the entered data into db -

this question exact duplicate of: entered form data not saving in mysql db? 1 answer here code <?php include('admin/class.php'); this db connection $link = mysqli_connect("localhost", "root", "", "timesheet1234"); here giving action save button if(isset($_post['save'])) { $sel=@$_post['selpro']; $mon=@$_post['mon']; $tue=@$_post['tue']; $wed=@$_post['wed']; $thu=@$_post['thu']; $fri=@$_post['fri']; $sat=@$_post['sat']; $sun=@$_post['sun']; this problem occurs if(isset($_session['user'])) { echo "session user"; it not accepting mysqli $stmt = mysqli_prepare($link,"update empdaytimesheet set `projectcode`='$sel',`mon`='$mon',`tue`='$tue',`wed`='$wed

to fetch array key and compare wih a key in a different array in php -

i have table stores subjects offered , table stores results scored students in exam, in displaying results using view table, want system display (-) student not take subject , score taking subject. the sample array of subjects stored is: array ( [0] => stdclass object ( [subcode] => 101 [subname] => english ) [1] => stdclass object ( [subcode] => 102 [subname] => kiswahili ) [2] => stdclass object ( [subcode] => 121 [subname] => mathematics ) [3] => stdclass object ( [subcode] => 231 [subname] => biology ) [4] => stdclass object ( [subcode] => 232 [subname] => physics ) [5] => stdclass object ( [subcode] => 233 [subname] => chemistry ) [6] => stdclass object ( [subcode] => 311 [subname] => history ) [7] => stdclass object ( [subcode] => 312 [subname] => geography ) [8] => stdclass object ( [subcode] => 313 [subname] => cre ) [9] => stdclass object ( [subcode] => 443 [subname] => agricultur

c# - Browser back button and state retains? -

this question has answer here: browser button not updating page 3 answers i have ecommerce system have listed viewed count , items viewer browse details page. when user had viewed item using browser , click button of browser then, viewed items module doesn't refresh @ all. on reloading url(refresh), module gets refreshed , shows viewed items , count? look history.js . framework uses html 5 browser's features , can handle button events.

r - Convert from lowercase to uppercase all values in all character variables in dataframe -

i have mixed dataframe of character , numeric variables. city,hs_cd,sl_no,col_01,col_02,col_03 austin,1,2,,46,female austin,1,3,,32,male austin,1,4,,27,male austin,1,5,,20,female austin,2,2,,42,female austin,2,1,,52,male austin,2,3,,25,male austin,2,4,,22,female austin,3,3,,30,female austin,3,1,,65,female i want convert lower-case characters in dataframe uppercase. there way in 1 shot without doing repeatedly on each character-variable? starting following sample data : df <- data.frame(v1=letters[1:5],v2=1:5,v3=letters[10:14],stringsasfactors=false) v1 v2 v3 1 1 j 2 b 2 k 3 c 3 l 4 d 4 m 5 e 5 n you can use : data.frame(lapply(df, function(v) { if (is.character(v)) return(toupper(v)) else return(v) })) which gives : v1 v2 v3 1 1 j 2 b 2 k 3 c 3 l 4 d 4 m 5 e 5 n

titanium - Increase Navigation bar height for ipad -

trying increase navigation bar ipad navgroup.height = 80; can on suggest me increasing navigation bar ipad. well, apple's ios human interface guidelines states "don’t specify height of navigation bar programmatically,". so can't, hardcoded 44dip on ipad. however, make own navbar view, own custom gradient, float top of window, start, background gradient , custom height of 50px: var win = ti.ui.createwindow({ navbarhidden : true }); var navbar = ti.ui.createview({ top : 0, width : ti.ui.fill, height : 50, // custom navbar height backgroundgradient : { // nice linear gradient, put own custom colors here type : 'linear', startpoint : { x : 0, y : 0 }, endpoint : { x : 0, y : '100%' }, colors : [{ color : '#75060a', offset : 0.0 }, { color : &#

javascript - dir=auto attribute is not working when applied to div tag -

i have applied dir=auto attribute <div> element in order text alignment based on input language. if <p> tag present inside <div> dir=auto attribute not working <p> tag. again have apply dir attribute p tag also. is there behavior difference when both div , p tags present?. <div id="editbox" dir=auto contenteditable="true" style="margin: 5px; overflow-y: scroll; overflow-x: scroll;"> <p style="margin-top:0;margin-bottom:0;"><br></p> </div> i testing in android emulator. can apply dir attribute body element, take care of text alignment based on input language? the attribute dir=auto (an html5 novelty limited support) sets directionality of element according first characters strong directionality. not try analyze language of text @ all. the way make element’s directionality depend on own content in sense set dir attribute value auto on element itself. cannot m

asp.net mvc - How to deploy mvc application -

i have finished mvc application , want publish on test website. managed publish files publish command in vs, when access link app, nothing. i used ftp publish website, checked if files on host, are, application not open. index.cshtml not showing. need configuration in order make work ? also, followed steps http://msdn.microsoft.com/en-us/library/dd410407(v=vs.90).aspx . is there change have make web.release.config , web.debug.config ? here web.config : <configsections> <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=5.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" /> </configsections> <connectionstrings> <add name="defaultconnection" connectionstring="data source=xxxxx initial catalog=xxxx; persist security info=true; user id=xxxxx; password=xxxxx" providername="system.data.

coffeescript - #each with call to helper ignores first entry in array -

i'm trying generate menu handlebars, based on array (from coffeescript): template.moduleheader.modules = -> [ { "modulename": "dashboard", "linkname": "dashboard" } { "modulename": "roommanager", "linkname": "raumverwaltung" } { "modulename": "usermanager", "linkname": "benutzerverwaltung" } ] the iteration looks (from html code): {{#each modules}} <li {{this.isactive this.modulename}}> <a class="{{this.modulename}}" href="#">{{this.linkname}}</a> </li> {{/each}} {{this.isactive}} defined (coffeescript code again): template.moduleheader.isactive = (currentmodulename) -> if currentmodulename session.get 'module' "class=active" based on session.get 'module' appropriate menu item highlighted css class active . on reload, session-variable module

d3.js - Degraded performance on d3js -

i'm using d3js building force-directed graph. in pre-version, can example make 1200 nodes , 3717 links graph without problem of performance. in clean version of script, 580 nodes , 649 links graph very slow. in first version, creation of graph , style of nodes , links made in same time. in second version version, need modify dynamically style of nodes, example hiding little nodes when zoom out or when click on button. doing this, separate script in 4 functions : choice of nodes , links use in force-system start of force system choice of nodes show style of nodes show with this, have case : add or remove nodes call functions or zoom in or out call last 2 change user see. is possible separation cause of lack of performance ? don't think because problems occur when of these functions over, when tick function running. it's change between 2 versions. thanks in advance help, , sorry poor english ! edit 1 : code choice of nodes , links use in force-system

jQuery reduce number of listeners/events -

the below code works me need cleaned , simplified as possible, can help? in advance $('#dealtemplatei18nmetatitle_en_au').keyup( function() { var len = $(this).val().length; if (len >= 32) { $('#dealtemplatei18nmetatitle_en_au').css("background-color", "#ff3b3b").css("font-size", "16px").css("font-weight", "bold").css("color", "#ffffff"); } else { $('#dealtemplatei18nmetatitle_en_au').css("background-color", "#82b548").css("font-size", "16px").css("font-weight", "bold").css("color", "#ffffff"); } }); i don't think can remove listeners or events (you have 1 , 1 need if you're watching keyup events). if going make changes js without changing markup, i'd go this: http://jsfiddle.net/mryga/ $("#dealtemplatei18nmetatitle_en_au").keyup(function() {

delphi - Can I somehow "instrument" Graphics.TBitmapCanvas with overriden GetPixel/SetPixel methods, which are specific to TBitmap's canvas? -

as know, working tbitmap 's pixels ( bitmap.canvas.pixels[x,y] ) slow in out-of-box vcl. has been caused getter , setter of pixels property inherited tcanvas , encapsulates general wingdi dc object , not specific memdc of bitmap. for dib section-based bitmaps ( bmdib ) well-known workaround exists, not see way integrate proper getter/setter in vcl tbitmap class (besides direct modification of library code, proven real pain in stern when comes compiling against different vcl versions). please advise if there hackish way reach tbitmapcanvas class , inject overriden methods it. i'm sure done more elegantly, here's ask implemented using class helper crack private members: unit bitmapcanvascracker; interface uses sysutils, windows, graphics; implementation procedure fail; begin raise eassertionfailed.create('fixup failed.'); end; procedure patchcode(address: pointer; const newcode; size: integer); var oldprotect: dword; begin if not vi

java - on OptionsMenu click listener -

i want options menu toggle sliding menu havent found standard click listener options button. onprepareoptionsmenu method fires when clicking options button? don't want use method because method gets fired when application starts up. update: menu button (hardware button), can use event onkeyup: public boolean onkeyup(int keycode, keyevent event) { if (keycode == keyevent.keycode_menu) { if (event.getaction() == keyevent.action_up) { log.d("onkeyup", "onkeyup"); return true; } } return super.onkeyup(keycode, event); } note: solution below actionbar just override onoptionsitemselected function. can listen click event on menu items , trigger actions want according case: here example main activity class: @override public boolean onoptionsitemselected(menuitem item){ switch(item.getitemid()) { case r.id.menu_calendar: maketoast("loading..."); opencale

json - Intent inside AsyncTask (Not accessible in scope) -

first of all, want apologize bad english. i'm using asynctask class, called main_activity, , when in postexecute call de intent, error "not enclosing instance type accesible in scope" package com.example.pfc; import android.os.bundle; import android.app.activity;`enter code here` import android.content.intent; import android.view.menu; import android.view.view; import android.widget.button; import android.widget.textview; public class principal extends activity { private button botonsalir; private button botonatras; private button botonclientes; private button botonmaquinas; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_principal); botonsalir = (button) findviewbyid(r.id.botonsalir); botonatras = (button) findviewbyid(r.id.botonatras); botonclientes = (button) findviewbyid(r.id.botonclientes); botonm

ServiceStack example on Mono -

working on getting servicestack.net helloworld example , going on mono. stuck @ error: system.web.httpexception failed load httphandler type `servicestack.webhost.endpoints.servicestackhttphandlerfactory, servicestack' description: http 500.error processing request. details: error processing request. exception stack trace: @ system.web.configuration.httphandleraction.loadtype (system.string type_name) [0x00053] in /root/mono-2.11.4/mcs/class/system.web/system.web.configuration_2.0/httphandleraction.cs:170 @ system.web.configuration.httphandleraction.gethandlerinstance () [0x00039] in /root/mono-2.11.4/mcs/class/system.web/system.web.configuration_2.0/httphandleraction.cs:296 @ system.web.configuration.httphandlerssection.locatehandler (system.string verb, system.string filepath, system.boolean& allowcache) [0x0004b] in /root/mono-2.11.4/mcs/class/system.web/system.web.configuration_2.0/httphandlerssection.cs:80 @ system.web.httpapplication.locatehandler (system.web.htt

iphone - Getting Images From Array Change Randomly -

i developing 1 app in app images nsarray , store imageview image view scroll vertically , each every page has single image. i want display random images when app start each every time.all images shuffle every time. i tried one. uiscrollview *scrollview=[[uiscrollview alloc]initwithframe:cgrectmake(0, 0, 320, 490)]; [scrollview setpagingenabled:yes]; [scrollview setshowshorizontalscrollindicator:no]; nsarray *imagearray=[[nsarray alloc]initwithobjects:@"image1",@"image2",@"image3",@"image4",@"image5", nil]; for( i=0; i< [imagearray count];i++) { int i=arc4random()%[imagearray count]; // shuffle images nsstring *imagename=[imagearray objectatindex:i]; nsstring *fullimagename=[nsstring stringwithformat:@"%@.jpeg",imagename]; int padding=25; cgrect imageviewframe=cgrectmake(scrollview.frame.size.width*i+padding, scrollview.frame.origin.y,

c# - CAML- WebService Sharepoint -

hello stackoverflow community i got load of forum. though time couldn't find. i made asp.net application , try use sharepoint webservice items of list. so far succeed in getting whole list using caml request, have select items between 2 given dates i found lot of around , i'm using method format iso 8601 date string : private string formatdateforcaml(datetime thedate) { string result = thedate.tostring("yyyy-mm-ddthh:mm:ssz"); return result; } and here caml request building : system.xml.xmlelement query = xmldoc.createelement("query"); query.innerxml = "<where>"+ "<and>"+ "<geq>"+ "<fieldref name=\"startdate\" />"+ "<value type=\"datetime\" includetimevalue=\"true\">" + thestart + "</value>" + "</geq>"+

Arrays are reified in Java -

i came across that, arrays reified in java. is, know type information during run time. little confused definition. if arrays said know type information during runtime, should literally able assign values arrays, since typing known @ run time errors thrown @ run time only. not case in real time. compile time error that. so can throw light on "what mean - arrays reified"? what think means given lines of code throw exception: string[] arrayofstrings = new string[10]; object[] arrayofobjects = arrayofstrings; // compiles fine arrayofobjects[0] = new integer(2); // throws runtime exception (arraystoreexception iirc) arrays covariant: string[] extends object[]. actual type of array known @ runtime, , attempt store instance not of right type throws exception.

android - JNI, C++ problems -

i did opencv's application en windows , using jni convert code android having problems. in concrete native code not nothing. this java class define native methods: package com.example.telo3; import org.opencv.core.mat; public class process { static { system.loadlibrary("nativo"); } public process(){ dir=inicializar_nativo(); } public void procesar(mat framedetect, mat framedraw){ procesar_nativo(dir,framedetect.getnativeobjaddr(),framedraw.getnativeobjaddr()); } private long dir; private static native long inicializar_nativo(); private static native void procesar_nativo(long thiz, long framedetect, long framedraw); } this jni code: #include "nativo.h" #include <opencv2/objdetect/objdetect.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "opencv2/video/tracking.hpp" #include <iostream> #include <stdio.

asp.net mvc 4 - change the content of div with another div- jquery -

my requirement: have 3 different <div> s. when user click first link, first <div> data should display. when click second link, display second <div> data @ position of first <div> . code: <div id="firstdiv" > //first div data </div> <div id="seconddiv"> //second div data </div> <div id="lastdiv"> //last div data </div> <ul class="footer_links"> <li><a href="#" id="firstlink"></li> <li><a href="#" id="secondlink"></li> <li><a href="#" id="lastlink"></li> </ul> here when user click firstlink need display fistdiv data , when user click secondlink need display seconddiv data @ position of firstdiv . for have done jquery, not proper way. $(document).ready(function () { $("#firstdiv").replacewith($(&#

delphi - Datasnap Client/Server 32/64 -

i have problem datasnap in delphi xe3. at server side create application load data xml file in clientdataset , shares through datasetprovider. client has clientdataset load data grid. it works fine if server , client run both @ 32 or 64 bit, if try run server @ 32 bit , client @ 64 or viceversa client can't insert or delete record , gives exception (access violation). thanks reply. tarroni andrea.

Windows storage for windows 8 app -

i used develop wp7 apps using isolated storage. port apps windows 8 , want used windows local storage save stuffs. wp7, use common isolated storage settings dont know how change code windows storage. want change following codes windows.storage - if (!isolatedstoragesettings.applicationsettings.trygetvalue( this.name, out this.value)) //**need change codes windows storage** { this.value = this.defaultvalue; isolatedstoragesettings.applicationsettings[this.name] = this.value; //**need change codes windows storage** } thank in advance help!!! good sample how save\get\check application settings in windows 8 apps https://stackoverflow.com/a/14662969/1200453

Issue with Highcharts pie charts with frameset -

i using highcharts pie charts. displaying 4 pie charts in single page different series of data. it's working , good. if im using frameset , calling pages inside these pie charts not displaying, if move page forwared backward charts displaying. kindly figure out this. <?php include('../control/config.php'); if($_request['basic']!=null) { if($_request['basic']=='internal') { $basepage='internal.php'; } if($_request['basic']=='external') { $basepage='index.php'; } } $projectdir= '../data/project'; // open known directory, , proceed read filename if (is_dir($projectdir)) { if ($dh = opendir($projectdir)) { while (($file = readdir($dh)) !== false) { if($file!="." , $file!=".." , $file!=".svn") { $project_files[]=$file; } } closedir($dh); } }