Posts

Showing posts from January, 2012

asp.net - Insert data into Database from grid view & delete textbox values in gridview -

i had problem when insert db textbox values grid view, command true button, may know how delete texbox value in grid view without using db ? kindly advise, thank you. <asp:label id="label1" runat="server" text="name"></asp:label> <asp:textbox id="txtname" runat="server"></asp:textbox> <asp:label id="address" runat="server" text="label"></asp:label> <asp:textbox id="txtaddress" runat="server"></asp:textbox> <asp:button id="button1" runat="server" onclick="button1_click" text="add" /> <asp:gridview id="gridview1" runat="server" autogeneratecolumns="false"> <columns> <asp:boundfield datafield="name" headertext="name" /> <asp:boundfield datafield="address...

Text Index Parameter in concept insights gives only one instance of concept occurance -

i have multiple mentions of concept (e.g. "gold") in document. concept insights' conceptual search return gold concept , 1 text index concept (usually first occurrence, not always). there specific reason why concept insights' conceptual search ignores other mentions of "gold" in document? interested in pulling snippets of text around occurrences of concept. have been great if got text index mentions of concept. there way it, other doing string match @ end. thanks in advance help! the conceptual search concept insights not ignore several mentions of same (or related) concept within document. in fact, service uses information reinforce system's understanding of concept areas covered in each document. however, true in "explanation" of why document related document, /conceptual_search endpoint returns select set of concepts. because system trying show diversity of concepts justify connection between query , document, can omit repe...

How to change GCC preprocessor output format? -

how can change gcc preprocessor (cc1.exe) output format: #line 1 "path/to/file.c" currently, getting format: # 1 "path/to/file.c" it states here output #line directive, getting different output format. there parameter option need use? simplest answer, write script process file generated gcc preprocessor stasfy requirement. write script yourself, take output of gcc preprocessor input, , replace # 1 #line 1 , named myscript . write script automatically call gcc preprocesss first ,and call script myscript . name above script in step 2-- gcc , put in local path.

java - android fragment control main activity -

i have app working fragment called main activity. works great able control menu above fragment layout. so lets navigate fragment blog posts text view set in menu above fragment update or hide button or show button set visibility. i have no clue how control things not in current fragment. how should go this. thanks define interface in fragment , have activity implement interface. public interface myinterface { // add methods here } in onattach, interface: @override public void onattach(activity activity) { super.onattach(activity); if (activity instanceof myinterface) { mmyinterface = (myinterface) activity; } else { throw new classcastexception(activity + " must implement interface myinterface"); } } @override public void ondetach() { mmyinterface = null; super.ondetach(); } then call mmyinterface methods needed.

javascript - How do I get users to enter their username after logging in? -

i want users enter username before dashboard view (if it's first time ever logged in) , "enter unique username" appear once after first login , never appear again. i'm not sure involve homecontroller , dashboard view(timeline) or not , whether should @if , @else statement distinguish between username = null or not. home controller: use auth; class homecontroller extends controller { public function index() { if (auth::check()) { return view('dashboard.index'); } return view('home'); } } this user.php: use illuminate\foundation\auth\user authenticatable; class user extends authenticatable { protected $table = 'users'; protected $fillable = [ 'username', 'first_name', 'last_name', 'email', 'password', 'location', 'gender', 'date_of_birth', ]; protected $hidden = [ 'password', 'remember...

php - Login required error when attempting to use the YouTube API -

i trying setup script can create live events via youtube api , have taken example off developer console , attempted modify use api key instead going our own account , not users using own account. also, fyi using google api php client v1 . i have below code: require_once 'includes/google/autoload.php'; require_once 'includes/google/client.php'; require_once 'includes/google/service/youtube.php'; $client = new google_client(); $client->setapplicationname("my title"); $client->setdeveloperkey("xxxxxxxxxxxxxx"); $client->setscopes('https://www.googleapis.com/auth/youtube'); // define object used make api requests. $youtube = new google_service_youtube($client); try { // create object livebroadcast resource's snippet. specify values // snippet's title, scheduled start time, , scheduled end time. $broadcastsnippet = new google_service_youtube_livebroadcastsnippet(); $broadcastsnippet->setti...

Input in a lm (linear regression) function in R -

i doing lm in r using vectors y<-c(1,0,1,2,5,1,4,6,2,3,5,4,6,8,4,5,7,9,7,6) x<-c(60,63,65,70,70,70,80,80,80,80,85,89,90,90,90,90,94,100,100,100) rg<-lm(y ~ x) summary(rg) x1<-c(61,64,69,73,76,77,82,84,87,90,95,99,100,101,102,103,104,107,110,120) when use x1 input predict y1 <- predict(rg,x1 ) i have error: "error in eval(predvars, data, env) : numeric 'envir' arg not of length one" this error doesn't occur if use data.frame object input...i dob't understand why need data.frame , vector doesn't work am doing wrong?? thanks in advance i agree gregor. x1, "newdata" should data.frame. y1 <- predict(rg, as.data.frame(x1))

osx - How do I properly upgrade SVN on MAC? -

i'm starting on new team on pcs using tortoisesvn svn version 1.9.2 . i'm on mac osx (el capitan) using versionsapp. when check svn --version in terminal 1.7.10 . when try svn command such svn update get svn: e155021: client old work working copy @ '/users/dpowell/desktop/sites/site.org.new' (format 31). need newer subversion client. more details, see http://subversion.apache.org/faq.html#working-copy-format-change i've gone site , downloaded python script don't know (i.e. don't know how use it). i've downloaded 1.9 package , tried installing svn way. i'm not sure path take solve issue the python script downloaded there downgrade svn version - need upgrade svn version. recommend going homebrew route - save lots of pain in upgrading / installing osx packages in future. follow instructions here: http://brew.sh/ (copy line terminal press enter, follow prompts) then, when homebrew installed, update svn, brew install svn ...

ssh - Lsync not processing files in the correct order in a master-master/bi-directional setup -

i'm using lsync synchronize web root 2 separate centos 7 servers running apache. far, seems running decently, every often, notice lsync doesn't process files properly. an example of issue i'm having - if have file called hello-world.txt on server01 , server02 , , delete server01 , when lsync runs, instead of deleting server02 , re-creates on server01 . i haven't found online this, , i'm new using lsync, i'm not quite sure how go fixing this. not sure it's needed, here's lsync configuration file ( /etc/lsyncd.conf ): settings { logfile = "/var/log/lsyncd.log", statusfile = "/var/log/lsyncd.stat", statusinterval = 2 } sync { default.rsync, source="/var/www/", target="192.168.1.36:/var/www/", rsync={ rsh = "/usr/bin/ssh -l lsync -i /etc/lsync/.ssh/id_rsa", } } any appreciate! thanks! lsyncd not bidirectional synchronization; purpose make tha...

mongodb - Is Mongo aggregation with a date range broken? -

i have collection of documents string field "action" , "receivedtimestamp" date field, values of march , april 2016. i'm trying count how many there of each action in date range. when run this: db.getcollection('foo').aggregate([ {"$group": {"_id": "$action", "count": {"$sum": 1}}} ]) i 68 results. when run this: db.getcollection('foo').aggregate([ {"$match": {"receivedtimestamp": {"$gte": new date("2016-01-01")}}}, {"$group": {"_id": "$action", "count": {"$sum": 1}}} ]) i 68 results. when run this: db.getcollection('foo').aggregate([ {"$match": {"receivedtimestamp": {"$gte": new date("2017-01-01")}}}, {"$group": {"_id": "$action", "count": {"$sum": 1}}} ]) i 68 results. ...

git - Escaping characters in Ruby Shell -

i have bash command: git log --numstat --pretty="%h" -1 | awk 'nf==3 {plus+=$1; minus+=$2} end {printf("+%d, -%d\n", plus, minus)}' i want assign command string variable , process output using exec(stringname) method. the string command breaks @ "+%d, -%d\n" . there way can escape these special characters? if need quote has quotes in already, use %q method: command = %q[git log --numstat --pretty="%h" -1 | awk 'nf==3 {plus+=$1; minus+=$2} end {printf("+%d, -%d\n", plus, minus)}'] doing of in ruby gives lot more control: require 'open3' open3.popen3('git', 'log', '--numstat', '--pretty="%h"', '-1') |stdin, stdout, stderr, wait_thr| stdout.each_line |line| if (line.match(/\a(\d+)\s+(\d+)\s+(.*)/)) puts '+%d, -%d' % [ $1, $2 ] end end end

.net - Faulting module name: vrfcore.dll, version: 6.3.9600.16384 and Exception Code : 0x80000003 -

i created winform application in vs express 2013 windows desktop , sql server 2012, runs beautifully , expected both in debug , release modes when try run exe out of visual studio (by clicking on .exe) crashes , found faulting module name: vrfcore.dll, version: 6.3.9600.16384 , exception code : 0x80000003 in event logger as in image ,i have written code in vb.net, can 1 me this vrfcore.dll used application verifier , creates registry entry in cases. make sure not deleting or changing else while doing following step:- goto registry editor-> win+r->regedit->hkey_local_machine->software->microsoft->windows nt->currentversion-> image file execution options -> (your application name.exe). ->right click , export registry settings backup. ->delete registry entry application , try run. hope works.

mysql - 2NF database Normalization -

Image
good day- i'm working on task in have create data model on basis of following information. your task create model storing following information: list of albums , album art each (image files), tracks 1 album, band’s record label or labels, genre, , band members. i have created 5 tables far. , have cover normalization part i'm confused it.one of table have created has following columns , data. bandmember bandmemberid - auto increment bandladelid - fk realname nickname memberphoneno memberrole memberactive memberdob memberage and table has following data far. for resolving have removed comma separated values , add each row data. it's this. could please guide me how can split table , remove problem (if normalization exist)? because i'm confused primary key here. examples referred on internet based on age column. i'm not getting examples. in advance. your step split row multivalued attribute multiple rows loo...

Datastax connection exception when using beeline or hive2 jdbc driver (Tableau) -

i have installed datastax enterprise 2.8 on dev vm (centos 7). install went through smoothly , single node cluster working great. when try connect cluster using beeline or hive2 jdbc driver error shown below. main aim connect tableau using datastax enterprise driver or spark sql driver. error observed is: error 2016-04-14 17:57:56,915 org.apache.thrift.server.tthreadpoolserver: error occurred during processing of message. java.lang.runtimeexception: org.apache.thrift.transport.ttransportexception: invalid status -128 @ org.apache.thrift.transport.tsaslservertransport$factory.gettransport(tsaslservertransport.java:219) ~[libthrift-0.9.3.jar:0.9.3] @ org.apache.thrift.server.tthreadpoolserver$workerprocess.run(tthreadpoolserver.java:269) ~[libthrift-0.9.3.jar:0.9.3] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [na:1.7.0_99] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolex...

coordinates - How to convert geometry type to latitude x longitude in Ruby -

the postgressql dbms has st_tranform method convert coordinate stored hash (geometry column type) in latitude , longitude, how implement in ruby , or exists lib developed feature? hashed coordinates called geohash https://en.wikipedia.org/wiki/geohash this geohash converter ruby https://github.com/davetroy/geohash can decode geohash this: geohash.decode('f77') => [63.98438, -73.82813]

Nginx / Apache / WSGI / Django - Unexpected raising 500 errors (499 on Nginx) -

i have problems django server on webfaction hosting. request (about 1.000 request 500.000 per day) can see errors in access logs. in nginx log can see requests code "499", in apache log have "500" error code. weird not see problems in django logs (usually receiving mail excepting stacktrace). can me, can cause strange behaviour? i start investigate logs after receiving problems exceeding hosting memory limit. seems app has memory leaks, because can see used memory rising. tryed quickfix optimize wsgi processes, thread , try set maximum-request param. after investigate cause of memory leak. my infrastructure following: nginx - frontend server (this operated webfaction) apache/2.4.16, mod_wsgi 4.4.13/python 3.4 django 1.8.12 my httpd.conf following: serverroot "/home/quick/webapps/citaty/apache2" loadmodule authz_core_module modules/mod_authz_core.so loadmodule dir_module modules/mod_dir.so loadmodule env_module modules/mod...

The plot function in R version 3.2.4 Revised is not working -

the plot function in r version 3.2.4 revised not working, example below. > <- c(1, 2, 3, 4) > plot(i) no protocol specified no protocol specified error in .external2(c_x11, d$display, d$width, d$height, d$pointsize, : unable start device x11cairo in addition: warning message: in (function (display = "", width, height, pointsize, gamma, bg, : unable open connection x11 display '' can me can solve problem? appreciate help.

how to use var value name as function name in JavaScript -

hi guys can use value function name in javascript? have functions same name input values such as: var ta = $('li.ramin.active').attr("id"); var act = $('input[name="'+ta+'_acceptdeny"]:checked').val(); act(freq, meid); // question in way have error "uncaught typeerror: act not function" yes know act not function want use var act value function name!! need know how can that? all you can use window[act](freq, meid) thanks justin niessner pointing out work if act defined in global scope. use eval , however, considered unsafe.

Chrome Extensions and Firefox WebExtensions Manifest: Application Key Support -

firefox webextensions require applications key in extension's manifests. chrome's extensions not appear support applications key , chrome throws error when key present, unlike firefox ignores unsupported keys. is there way around error not require use of 2 different manifests each browser? chrome gives error when applications key appears in manifest: unrecognized manifest key 'applications'. maybe not directly answer question, according blog microsoft microsoft edge extensions available preview , in keeping our commitment interoperable web, we’re participating in w3c browser extension community group’s efforts define standardized extension apis based on familiar web technologies . so maybe can forward future.

c - Need help understanding what strncmp function in for loop is doing -

i dont understand happening in code below in strncmp function. why (all+j*100)+i ? /* search jth string in char all[][100] *pat*/ int patternsearch( int j, char *all, char *pat ) { int i; ( i=0; < strlen(all+j*100); i++ ) { if ( strncmp(pat, ((all+j*100)+i), strlen(pat)) == 0 ) { return(i); // *pat found @ ith byte of all[j] } } return(-1); // *pat not found in all[j] } it great if please explain me in detail going on in loop. the comment in first line explains all. array all divided in chunks of 100 characters, , argument j tells chunk start looking pattern. strncmp applied positions starting @ beginning of j th chunk, until end of array. return offset of character pattern found relative beginning of j th chunk. what (all+j*100)+i do? the j*100 gets index of first element of j th chunk of array. is, if j 2, obtains 200 index of first element of 2nd chunk (the chunk @ start zeroth chunk). all...

bioinformatics - R and Gviz: How to remove (/crop) a region of a plot? -

Image
this code: altrack <- gviz::alignmentstrack( system.file(package = "gviz", "extdata", "gapped.bam"), ispaired = true) gviz::plottracks( altrack, = 3048500, = 3049000, chromosome = "chr12") produces plot: using gviz package. problem empty space that's appearing in bottom of picture. how can remove specific region of plot / crop keep region need? if remove lower 15% of produced plot r function great. the specific region want not appear: the max.height parameter it. already answered here: https://support.bioconductor.org/p/81044/

How to specify a typescript version with atom -

Image
i'm trying figure out how use specific typescript version atom. have older project uses backbone , not compile latest version of typescript, , therefore requires earlier version. the closest answer i've found answer in faq: can use custom typescript compiler? if conforms latest typescript services api yes! set path typescriptservices.js in package options. https://github.com/typestrong/atom-typescript/blob/master/docs/faq.md i don't see how make work. typescriptservices.js file find part of visual studio 2015, doesn't seem should impact atom or atom-typescript package. c:\program files (x86)\microsoft visual studio 14.0\common7\ide\commonextensions\microsoft\typescript how can force atom compile custom path tsc.exe (or @ least use specific version)? edit i found setting talks about, when installing typescript 1.0, there no typescriptservices.js file. there tsc.js file, if update setting that, error. looks may not possible, @ least version old 1...

bash - How to use environment modules in a ssh command line? -

the environment modules package used dynamic modification of user's environment ( debian package environment-modules ). i use module directly ssh command line. purpose able execute commands on different nodes bash script executed on front node. don't want explicitly update path , ld_library_path environment variables each different node configuration. when directly connect node , call module node, working: jyvet> ssh mynode jyvet@mynode> module load gcc-6.0 jyvet@mynode> gcc --version gcc (gcc) 6.0.1 but following approach fails: jyvet> ssh mynode "module load gcc-6.0; gcc --version" command not found: module gcc-4.8 (debian 4.8.4-1) 4.8.4 module initialized /etc/profile.d/modules.sh called /etc/profile (which sets environment variables @ startup of shell). the ssh command execution shell non-interactive shell , neither call /etc/profile , nor read config files. here solution: jyvet> ssh mynode "source /etc/...

iphone - how to call a methode in the superview from the subview? -

i had view controller initialised in appdelegate.i added viewcontroller navigation controller addsubview methode,inorder show above navigation bar.now adding viewcontrollers view subview of view.now when pressing button on subview need perform methodes in superview.i tried way` appdelegate.viewcontroller =(viewcontroller*)self.view.superview; } if(appdelegate.viewcontroller==nil) { nslog(@"appdelegate viewcontroller nil"); } else { [appdelegate.viewcontroller setmessage:@""]; } `but giving me error [uiview setmessage:]: unrecognized selector sent instance.can point me in going wrong? for (uiview* next = [self.view superview]; next; next = next.superview) { uiresponder* nextresponder = [next nextresponder]; if ([nextresponder iskindofclass:[uiviewcontroller class]]) { [(uiviewcontroller*)nextresponder viewwillappear:yes]; } }

javascript - Bootstrap/JQuery - Radio Button Group Event Functions -

my goal run function depending upon radio button in group selected. using other posts able implement bellow scripts. here errors encountering: 1) initial button declare checked default not call function. if remove checked attribute button functions others do. 2) each button works once. example if click button two, fires appropriate function. when button 3 clicked, functions successfully. problem when try go button 2. not fire second time. jquery $("#btn-group-data :input").on("change",function () { switch (this.value) { case "radar": console.log(this.value); //do stuff... break; case "watches": console.log(this.value); //do stuff... break; case "warnings": console.log(this.value); //do stuff... break; case "temp": console.log(this.value); // points click...

html - Javascript Window PopUp -

i new javascript , not sure how approach this. how can create chromeless window using javascript? further more, let have multiple images, instead of opening new pop every time, reload image selected on same pop window. can done? update: there way use 1 window.open open multiple files or need create multiple window.open each file? look bootstrap , read on "modal" section. you can use jquery via swap: -- $('.thumbs img').click(function() { var thmb = this; var src = this.src; $('.bottleswrapper img').fadeout(400,function(){ thmb.src = this.src; $(this).fadein(400)[0].src = src; }); }); http://jsbin.com/asixuj/4/edit

Integrating spring-boot with RESTEasy -

i trying prototype spring boot application. i'm coming guice jax-rs application, prefer standard jax-rs annotations spring mvc. i've gotten jetty , serving: @configuration @import({resteasybootstrap.class, springbeanprocessorservletaware.class, httpservletdispatcher.class}) public class embeddedjetty { @bean @singleton public embeddedservletcontainerfactory servletcontainer() { jettyembeddedservletcontainerfactory factory = new jettyembeddedservletcontainerfactory(); factory.setport(9000); factory.setsessiontimeout(10, timeunit.minutes); return factory; } } however, can't figure out how resteasy hooked correctly. above springbeanprocessorservletaware bails, seemingly servletcontext not injected through servletcontextaware before ends being used: java.lang.nullpointerexception: null @ org.jboss.resteasy.plugins.spring.springbeanprocessorservletaware.getregistry(springbeanprocessorservletaware.java:30) @ ...

java - Expected? CDI Request scoped bean injected into producer injected into dependent bean gives WELD-001303: No active contexts -

assume requestscope active (using cdi-unit's @inrequestscope) given package at.joma.stackoverflow.cdi; public class product { public product(string withvalue){ this.value = withvalue; } public string value; } an injection of product active request scope package at.joma.stackoverflow.cdi; import javax.inject.inject; import org.jglue.cdiunit.additionalclasses; import org.jglue.cdiunit.cdirunner; import org.jglue.cdiunit.inrequestscope; import org.junit.assert; import org.junit.test; import org.junit.runner.runwith; @runwith(cdirunner.class) @additionalclasses({ producer.class, somecache.class }) public class expectedtest { @inject product producta; @inject product productb; @test @inrequestscope public void testscoping() { assert.assertnotnull(producta); system.out.println(producta.value); assert.assertnotnull(productb); } } using dependent producer (with injectionpoint parameter, m...

javascript - Html5: add image to a parent div and keep the child div images visible -

i have html5 code. has parent div, , 2 child div. parent div takes whole page , each child div takes half page. add images left div , right div. need add image parent div , keep images on both left , right child divs visible, i. e want images super imposed , visubale. easiest way of doing this? code this: <div id="parent"... > <div id="leftchild">... </div> <div id="rightchild">... </div> </div> something this? http://moody.es/nons/kek.html view page source see code. the parent image has position: absolute; , i've set children's <img> have z-index: 1; . when using z-index, element in question must positioned, hence position: relative;

mysql - Creating JDBC driver in R using RJDBC -

i trying create jdbc driver in r using following code: have set directory location .jar folder located drv <- jdbc("com.mysql.jdbc.driver", "mysql-connector-java-3.1.14-bin-g.jar", identifier.quote="`") i following error: error in .jfindclass(as.character(driverclass)[1]) : class not found what problem? the following works me i.e. not "class not found" error. downloaded mysql-connector-java-5.1.38-bin.jar current working directory , ran below without issues library(rjdbc) drv <- jdbc(driverclass="com.mysql.jdbc.driver", classpath="mysql-connector-java-5.1.38-bin.jar", identifier.quote="`")

precomputing some code in a scala closure. -

in scala, have following code: def isdifferentgroup(artifact2: defaultartifact) = getartifact(artifact1id).getgroupid != artifact2.getgroupid val artifacts = getartifacts().filter(issamegroup) the function isdifferentgroup accessing external string variable artifactid (closure). i'd avoid computing getartifact(artifactid) each item in list. i follows: val artifact1: defaultartifact = getartifact(artifact1id) def isdifferentgroup(artifact2: defaultartifact) = artifact1.getgroupid != artifact2.getgroupid val artifacts = getartifacts().filter(issamegroup) however, creating variable artifact1 outside fonction isdifferentgroup , , ugly, because variable used inside fonction isdifferentgroup . how solve it? one possibility make partial function follows: def isdifferentgroup(artifact1: defaultartifact)(artifact2: defaultartifact) = artifact1.getgroupid != artifact2.getgroupid val artifacts = getartifacts().filter(isdifferentgroup(getartifact(artifact1id))) howe...

c# - Unreachable code detected by using const variables -

i have following code: private const flycapture2managed.pixelformat f7pf = flycapture2managed.pixelformat.pixelformatmono16; public pgrcamera(examform input, bool red, int flags, int drawwidth, int drawheight) { if (f7pf == flycapture2managed.pixelformat.pixelformatmono8) { bpp = 8; // unreachable warning } else if (f7pf == flycapture2managed.pixelformat.pixelformatmono16){ bpp = 16; } else { messagebox.show("camera misconfigured"); // unreachable warning } } i understand code unreachable, don't want message appear, since it's configuration on compilation needs change in constant test different settings, , bits per pixel (bpp) change depending on pixel format. there way have 1 variable being constant, deriving other it, not resulting in unreachable code warning? note need both values, on start of camera needs configured proper pixel format, , image understanding code needs know how many bits image in. so, there workarou...

multithreading - Multithreaded merge-sort algorithm in Clojure -

i need write implementation of merge-sort algorithm in clojure in single thread , using parallelism options 2, 4, 8, 16, , 32 threads. program read large collection of integers (1 million) text file , put them list sorting. newbie on clojure , functional programming @ all. i've written code reading file ... (use 'clojure.java.io) (defn get-lines [fname] (with-open [r (reader fname)] (doall (map read-string (line-seq r))))) (def numbers (get-lines "numbers.dat")) ... , found single thread implementation. can't realize parallel algorithm. seems beyond me. me? if looking for... (use 'clojure.java.io) (defn get-lines [fname] (with-open [r (reader fname)] (doall (map read-string (line-seq r))))) (def numbers (get-lines "numbers.dat")) (defn merge-lists [left right] (loop [head [] l left r right] (if (empty? l) (concat head r) (if (empty? r) (concat head l) (if (> (first l) (first r)) (recur (co...

plot - Plotting vectors and planes in 3D with Mathematica -

Image
i trying out mathematica software, , playing representing in 3d vector projections on plane. i got point: i know... not looking impressive, , ask modifying beveling of red arrowhead, changing color of plane, getting projected vector looks more shadow, , labelling vectors on plot. or of it... here's code i've used far: show[{plot3d[{z = 0}, {x, 0, .75}, {y, 0, .75}, axeslabel -> {x, y, z}, mesh -> none, boxed -> false, axes -> false], graphics3d[{red, arrowheads[0.05], arrow[tube[{{0.25, 0.25, 0}, {0.5, 0.5, 1}}]], brown, arrowheads[0.05], arrow[tube[{{0.25, 0.25, 0}, {0.5, 0.5, 0}}]]}]}]

Intern/Leadfoot : Getting error - Expecting a function in instanceof check, but got [object Object] on .Click() method -

i learning intern/leadfoot , trying write simple test. test logging user site , logging out user after verification on next page. using chromedriver v2.21. getting unknown error : expecting function in instanceof check, got [object object] click() method element. however, element being identified , value getvisibletext(). here test code: define(function (require) { var registersuite = require('intern!object'); var assert = require('intern/chai!assert'); registersuite({ name: 'acceptance', 'login': function () { return this.remote .get(require.tourl('http://example.com')) .setfindtimeout(5000) .findbyxpath('id("ius-userid")') .click() .type('user@user.com') .end() .findbyxpath('id("ius-password")') ...

jquery - Filter table row based on i tag attribute value in 5th td -

i know there ton of examples out there, nothing seems work me , im going nuts. here code. have multiple rows, want show rows in 5th td 1st i contains attr stopnotify , equals 1 example ( stopnotify="1" ) i need return entire tr my question how jquery filter table rows , show rows in 5th td , 1st there attr stopnotify="1" html <tbody class="searchable"> <tr data-index="0" style="display: table-row;"> <td style="text-align: left; width: 20px; ">1</td> <td style="text-align: left; width: 20px; ">testing</td> <td style="text-align: left; width: 20px; "><a href="http://www.example.com/" target="_blank">http://www.example.com/</a></td> <td style="text-align: left; width: 20px; "> 2 <i class="fa fa-search emailsfound" data-toggle="modal" data-target="#mymodal...

c# - Passing parameters from Detail to MainViewModel in MVVMCross -

i have 2 views : mainview , detailview . have list of items display , when user select item , passing item properties detailviewmodel , user able update these values. everything works far, wonder how passing updated values mainviewmodel ? mainviewmodel.cs public mainviewmodel selecteditem { { return _selecteditem; } set { _selecteditem = value; showviewmodel<detailviewmodel>( new detailviewmodel.parameter { date = date, age = _selecteditem.age, category = _selecteditem.category, discount = _selecteditem.discount, } ); raisepropertychanged(() => selecteditem); } } detailviewmodel.cs public class detailviewmodel: mvxviewmodel { public double age { get; set; } public double category { get; set; } public double discount { get; set; } public class parameter { public datetime date { get; set; } public double age { get; set; } public int category{ ge...

mysql - Updating same table in stored procedure after UPDATE and INSERT -

relationship : students (1 can have n) addresses scenario: students can have many records 1 associated record must have ' current ' field set ' yes ' (other value null ) query below should return 1 record per student. select * address student_id = 5 , current = 'yes' problem: people mark more 1 record 'yes' after insert or update same student need avoid it. best way of doing using triggers or stored procedures within mysql? if update happens on 'address' table should run somewhere mark other records null: update addresses set current = null student_id = in_student_id if insert happens on 'address' table should run somewhere mark other records null: update addresses set current = null student_id = in_student_id , id <> in_inserted_id thanks in advance if need updated automatically after data modified, right approach trigger. notice trigger may call stored procedure. however not able implement described b...