Posts

Showing posts from June, 2011

matlab - Unexpected legend when plotting with quiver -

Image
i cannot legend display desired when plotting quiver. using r2017a. % parameters k1 = 1; k2 = 1; k3 = 10; e = 10; % establish grid of possible c , s values [cmesh,smesh] = meshgrid(0:0.5:10,0:0.5:10); % calculate nullcine , tendencies @ each value of grid cnull = k1.*e.*smesh./(k1.*smesh + k2 + k3); dsdt = -k1.*(e - cmesh).*smesh + k2.*cmesh; dcdt = k1.*(e - cmesh).*smesh - (k2 + k3).*cmesh; % plot phase plane quiver(smesh,cmesh,dsdt,dcdt); hold on; plot(smesh, cnull); hold on; plot([1:10],[1:10]); legend('trajectory', 'c nullcline', 's(t),c(t)'); xlabel('s'); ylabel('c'); axis([0,10,0,10]); title('phase plane'); the line colors not match plotted lines in figure created. the problem in line- plot(smesh, cnull); you plot there 21 lines 1 on another, can't see it, , colors change down there... if fix line that: plot(smesh(:,1), cnull(:,1)); you figure:

javascript - How do I use .split() to break up a string into much smaller strings? -

i making code supposed split alphabet each letter on different line. when press submit button, instead of displaying letters, absolutely nothing @ all. not sure why not working. the output should be: a: b: c: d: etc... any appreciated, please not use jquery. <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns:hi="http://www.w3.org/1999/xhtml"> <head> <title>my string prototype</title> </head> <body> <form action = "#"> <input type="submit" id = "sub" value="submit" onclick = "show_alphabet();"/> </form> <script type="text/javascript"> function show_alphabet () { var str = "abcdefghijklmnopqrstuvwxyz"; str.prototype.sendarray= function (){ str.split("");...

smalltalk - Checking for the presence of a class -

i check if particular class has been loaded. smalltalk at: #tabularxslxexport ifnone: [ ] this not lead result in pharo. how do this? i think method you're looking #at:ifabsent: (not #at:ifnone: ). so, inspecting result of smalltalk at: #string ifabsent: [ nil ] will let inspect string class, while smalltalk at: #strign ifabsent: [ nil ] will open inspector on nil (note "strign" deliberate misspelling of "string" lookup fails). edit : max leske points out in comments, #hasclassnamed: more suitable method if you're trying determine whether class exists, , not interested in class being returned.

MongoDB text search with sorting in C# -

i'm trying implement text search in mongodb, in c#. the documentation doesn't cover how sort text search results in c#. i have list of tags, separated spaces, match. if provide string "tag1 tag2", results provided in following order: anything has both 'tag1' , 'tag2', followed by anything has 'tag1', followed by anything has 'tag2' i have been trying piece code: var f = builders<mongopost>.filter.text(tags); var s = builders<mongopost>.sort.metatextscore("textscore"); return mongo.driver.find(f).sort(s).tolistasync().result; but following error: {"queryfailure flag true (response { \"$err\" : \"can't canonicalize query: badvalue must have $meta projection $meta sort keys\", \"code\" : 17287 })."} no proper documentation error... then found following code on site: var pipeline = new list<bsondocument> { bsonserializer.deserialize...

How can I use Linq to build a c# object from xml where an element has zero or more elements of the same type? -

i'm trying parse xml file looks this: <?xml version="1.0" encoding="utf-16" ?> <log> <request id="1" result="deny"> <user name="corp\joe"/> <session number="1"/> <file name="xyz"/> <policy type="default" name="default rules" result="deny"/> <policy type="adgroup" name="domain users" result="allow"/> </request> <request id="1" result="deny"> <user name="corp\joe"/> <session number="1"/> <file name="abc"/> <policy type="default" name="default rules" result="deny"/> <policy type="device" name="laptop12" result="deny"/> </request> </log> note p...

java - Primefaces Download File Which is Outside FacesContext -

i'm uploading excel workbook directory outside application context (for backup purposes) , saving path database. now need download file , i'm trying use primefaces download, i'm getting null file . here code (much primefaces showcase download section): bean: private streamedcontent file; public void download(arquivo arquivo) throws ioexception { inputstream stream = ((servletcontext)facescontext.getcurrentinstance() .getexternalcontext().getcontext()).getresourceasstream(arquivo.getnomearquivo()); file = new defaultstreamedcontent(stream); } view: <h:commandlink id="btndownload" title="download arquivo" actionlistener="#{arquivobean.download(obj)}"> <p:filedownload value="#{arquivobean.file}" /> </h:commandlink> basically need pass external path inputstream instead of facescontext. from see problem i'm passing application context inputstream, appending path in argument o...

c# - WCF binding I not understanding what is wrong -

i started coding in vs 2013. have 2 endpoints (besides mex) - wanted download lot more data last endpoint. - added config - own http binding > bhbinding (sorry flaling) 2147483647 everywhere - client seams getting old error 65536 not big enough. "the maximum message size quota incoming messages (65536) has been exceeded. " i have not delt wcf - able in past work, not sure not seeing or understanding. , regards. here config: <system.servicemodel> <bindings> <basichttpbinding> <binding name="bhbinding" allowcookies="true" maxbufferpoolsize="2147483647" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647" > <readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxnametablecharcount="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647"/> ...

eigen3 - Setting decomposition threshold (tolerance) Eigen::JacobiSVD -

i trying experiment jacobisvd of eigen. in particular trying reconstruct input matrix singular value decomposition. http://eigen.tuxfamily.org/dox/classeigen_1_1jacobisvd.html . eigen::matrixxf m = eigen::matrixxf::random(3,3); eigen::jacobisvd<eigen::matrixxf, eigen::noqrpreconditioner> svd(m, eigen::computefullu | eigen:: computefullv); eigen::vectorxf svec = svd.singularvalues(); eigen::matrixxf s = eigen::matrixxf::identity(3,3); s(0,0) = svec(0); s(1,1) = svec(1); s(2,2) = svec(2); eigen::matrixxf recon = svd.matrixu() * s * svd.matrixv().transpose(); cout<< "diff : \n"<< m - recon << endl; i know internally svd computed iterative method , can never perfect reconstruction. errors in order of 10^-7. above code output -- diff : 9.53674e-07 1.2517e-06 -2.98023e-07 -4.47035e-08 1.3113e-06 8.9407e-07 5.96046e-07 -9.53674e-07 -7.7486e-07 for application error high, aiming error in range 10^-10 - 10^-12. question how set threshold ...

jquery - Asynchronously Send HTML Email with PHP After Form Submit -

i'm trying make form submits fields asynchronously database , send out html conformation email submitted email address. db part working fine can't send out html email (but none html email works, see more info below). here's jquery , php i'm using: jquery (this function gets called on click): function commentfio() { var name = $('.fio #name_js').val(); var name = encodeuricomponent(name); var email = $('.fio #email_js').val(); var email = encodeuricomponent(email); var telephone = $('.fio #telephone_js').val(); var telephone = encodeuricomponent(telephone); var hkid = $('.fio #hkid_js').val(); var hkid = encodeuricomponent(hkid); var comment = $('.fio #comment_js').val(); var comment = encodeuricomponent(comment); if($('.fio #marketing').prop('checked')) { var marketing = '1'; } else { var marketing = '0'; } i...

javascript - cannot let another variable point to console.log -

this question has answer here: uncaught typeerror: illegal invocation in javascript 2 answers i new javascript terminologies might wrong. since functions variables in javascript, why chrome console complain when var f = console.log and apply f(123) the error log following. uncaught typeerror: illegal invocation @ <anonymous>:2:1 @ object.injectedscript._evaluateon (<anonymous>:905:140) @ object.injectedscript._evaluateandwrap (<anonymous>:838:34) @ object.injectedscript.evaluate (<anonymous>:694:21) works here: http://jsfiddle.net/8pl5lgd2/ var f = console.log; f("!23");

jquery - Toggle open both ID tags -

i'm complete noob @ jquery, came across problem. title says how can both of id tags toggle @ once, slip scorlling effect. example if click on #nav-icon3 should toggle open #nav-icon4. stole from: http://codepen.io/designcouch/pen/atyop $(document).ready(function(){ $('#nav-icon3,#nav-icon4').click(function(){ $(this).toggleclass('open'); }); }); cheers, jquery noob no, inside click handler this refers clicked element using toggle this toggle class of clicked element not of other element. but solution, can store reference jquery object containing both elements, use register handler , toggle like $(document).ready(function() { var $btns = $('#nav-icon1,#nav-icon2,#nav-icon3,#nav-icon4').click(function() { $btns.toggleclass('open'); }); }); * { margin: 0; padding: 0; } /* icon 1 */ #nav-icon1, #nav-icon2, #nav-icon3, #nav-icon4 { width: 60px; height: 45px...

sqlite - How to make a query for getting the specific rows with the latest time column value -

below sample data, host:value pair latest time. +------+-------+-------+ | host | value | time | +------+-------+-------+ | | 100 | 13:40 | | | 150 | 13:00 | | | 222 | 13:23 | | b | 210 | 13:55 | | b | 300 | 13:44 | +------+-------+-------+ wanted rows latest time value each host column value. result should like: 150 13:40 b 210 13:55 i think there several analytical function achieve requirement in oracle i'm not sure can in sqlite. can let me know how can make query? here ansi-compliant way of performing query should run on all versions of sqlite. potentially shorter solution see answer @cl. select t1.host || '-' || t1.value || '-' || t1.time hostvaluetime table t1 inner join ( select host, max(time) maxtime table group host ) t2 on t1.host = t2.host , t1.time = t2.maxtime order t1.host desc output: +---------------+ | hostvaluetime | +---------------+ | a-100-13:50 | | b-210-13:55 | +---------...

android - Center A View using Java in AndroidStudio -

how can center view created in java? have following code in oncreate method of activity: gridlayout gridlayout = new gridlayout(this); gridlayout.setcolumncount(5); gridlayout.setrowcount(5); (int = 0; < 25; i++) { imageview imageview = new imageview(this); gridlayout.addview(imageview, i); } setcontentview(gridlayout); now, i'd gridlayout containing imageviews vertically centered on screen when program runs. how can this? setlayoutparams(layoutparams); set layout params gridview , imageviews. able check views clearly.

php - Laravel Form Request not being passed to argument -

i'm busy migrating app laravel 4.2 5.1, , experiencing issue form requests. it's simple i'm missing - not sure. the method below meant attempt sign in if signinrequest authorises request. however, if validation passes, signinrequest not passed attemptsignin , throws process off error: argument 2 passed app\http\controllers\auth\authcontroller::attemptsignin() must instance of app\http\requests\signinrequest, none given this method (controller authcontroller ) in question, tries sign in using username or email address: public function attemptsignin($type = 'regular', signinrequest $request) { switch ($type) { case 'regular': $identifierfieldname = 'account_identifier'; $field = filter_var($request->input($identifierfieldname), filter_validate_email) ? 'email' : 'username'; $request->merge([$field => $request->input($identifierfieldname)]); $specif...

msdeploy failure: IIS 7.5->8.5: Error: The ApplicationHost.config file is invalid / eventlog error 9000 on destination system -

using v7.1 (that ver @ cmd prompt), 3.6 (from web platform installer) of msdeploy.exe migrating win2008-r2 iis win2012-r2 attempting move iis related over. (and yes, have customized applicatiohost.config, not know mods... why using migration tool,,, move everything...) command running: c:\program files\iis\microsoft web deploy v3>msdeploy -verb:sync -source:webserver, computername=win-67e8gtgadgj -dest:webserver,computername=192.168.2.21, username="administrator",password="###" output: info: using id '1d59e6bd-0f89-4479-9853-98e164c9f613' connections rem ote server. info: using id '0c99bd7f-faa3-4737-ac35-d65c495402b6' connections rem ote server. info: adding msdeploy.webserver (msdeploy.webserver). info: adding webserver (msdeploy.webserver/webserver). info: adding apphostconfig (). error: (8/24/2015 10:28:43 pm) error occurred when request processed on remote computer. error: applicationhost.config file invalid. cannot proceed ...

php - Opencart api in json format -

i need api in opencart json format. find load categories , products in opencart: https://github.com/zenwalker/opencart-webapi but, doesn't have 'login' , 'register' , 'add basket' , etc. are have suggestion help? thanks

javascript - php jquery ajax jquery >than not working as it should -

i have form validated through below code: function add_to_cart(){ jquery('#modal_errors').html(""); var quantity = jquery('#quantity').val(); var available=jquery('#available').val(); var error=''; var data = jquery('#add_product_form').serialize(); if(quantity==''||quantity==0){ error+='<p class="text-danger text-center">you must enter quantity greater 0!!! set order 0 kindly visit cart!!!</p>'; jquery('#modal_errors').html(error); return; }else if(!(quantity < available)){ error += '<p class="text-danger text-center">there '+available+' available, kindly enter number equal or smeller availability!!!</p>'; jquery('#modal_errors').html(error); return; }else{ jquery.ajax({ url : '/aresv2/admin/parsers/add_cart.php', method : 'post', data: data, success: function()...

How to escape the (hash) # sign in a Github markdown header? (backslash is not working) -

Image
i have following code on readme.md file on github, trying display hash sign on header (i trying escape using \ symbol) so: ### c\# * [beginning game programming c#](https://www.coursera.org/course/gameprogramming) however renders so: i want hash sign appear on header, , tried use double backslash, didn't work. how pound sign appear? edit : linked question deals github links, question headers on .md file. you try , add matching '#', followed 1 '#': ### c# #

grails - Using a variable from bootstrap.groovy file in config.groovy -

i initializing variable in bootstrap.groovy file def loglocation = tunable.findbytunatag("loglocation") here tunable domain class. i want use variable loglocation in config.groovy file.how achieve this? .thanks in advance bootstrap executed after config read. can change config bootstrap: `grailsapplication.config.loglocation = ...`

Parameterized for loop in Python -

i need write parameterized loop. # works but... df["id"]=np_get_defined(df["methoda"+"id"], df["methodb"+"id"],df["methodc"+"id"]) # need loop follows df["id"]=np_get_defined(df[sm+"id"] sm in strmethods) and following error: valueerror: length of values not match length of index remaining definitions: import numpy np df pandas.dataframe strmethods=['methoda','methodb','methodc'] def get_defined(*args): strs = [str(arg) arg in args if not pd.isnull(arg) , 'n/a' not in str(arg) , arg!='0'] return ''.join(strs) if strs else none np_get_defined = np.vectorize(get_defined) df["id"]=np_get_defined(df[sm+"id"] sm in strmethods) means you're passing generator single argument called method. if want expand generated sequence list of arguments use * operator: df["id"] = np_get_define...

Integrating IMA iOS SDK -

Image
i have integrated google sdk manually without cocoapods because i'm using inside static library. , have added frameworks (avfoundation,..etc) needed ima sdk. my app getting crashed whenever trying set imasettings language. here error: +[nsdictionary gtm_dictionarywithhttpargumentsstring:]: "unrecognized selector sent to" this code : - (imasettings *)createimasettings { imasettings *settings = [[imasettings alloc] init]; settings.language = @"en"; return settings; } i have initialized ads loader here : self.adsloader = [[imaadsloader alloc] initwithsettings:[self createimasettings]]; you miss category method gtm_dictionarywithhttpargumentsstring likely, part of sdk haven't setup linker right add -objc app's linker flags if isn't it, you're missing framework google - google toolbox mac

angularjs - sending data to server using services and controllers -

i want send data client side server side. want send data using service , controller. data won't pass server side, this view.html <section class="af-wrapper"> <h3 id="addstyles">add styles</h3> <form class="af-form" id="af-form" novalidate> <label for="input-name" class="header">header image</label> <input type="file" fileread="styles.uploadme"/> <b id="preview">preview:</b> <img src="{{styles.uploadme}}" ng-model="styles.vm.uploadme" width="100" height="50" alt="image preview..."> <div style="white-space:nowrap"> <label for="mycolor" class="background">background</label> <color-picker ng-model="styles.mycolor" class="colorpicker"></color-picker> </div>...

Validation errors move button right - CSS -

.password-reset { padding: 40px 50px 0; float: left; } .form-field { float: left; font-size: 18px; color: #fff; margin-right: 15px; } .form-field--wide { width: 100%; float: left; margin-bottom: 20px; } .form-field label { margin-bottom: 3px; width: 100%; display: block; color: black; } .form-field input { padding: 10px; color: #000; width: 245px; float: left; } .form-field input.error { color: #ed1b2e; } .form-field--half { width: 48%; margin: 0; } .form-field--half input { width: 100%; } .form-field--repos { float: right; } .form-error { color: #ed1b2e; font-size: 14px; float: left; margin: 5px 3px 0 0; display: inline-block; } .form-error.alert { clear: both; } .form-error ul { list-style: none; padding: 0; margin: 0; } .form-error li { /*display: inline-block;*/ margin-right: 3px; } .form-field--wide .form-error { font-size: 18px; color: #ed1b2e...

javascript - show image name through browse field in php -

how can show image name through browse field. sorry that, new in php. use code, it's not working <input id="photo" type="file" value="<?php echo $results['image'];?>" class="form-control" name="image" /> you can not show image on input field. what can is: <img src="allyourdomainurl/<?php echo $results['image'];?>" /> that show real image user.

filtering names by multiple conditions ( age range and gender) in python 2 -

this in text , code far: { "people": [ {"name": "jack", "gender": "m", "age": 25}, {"name": "jerald", "gender": "m", "age": 24}, {"name": "jim", "gender": "m", "age": 23}, {"name": "bill", "gender": "m, "age": 22}, {"name": "barry", "gender": "m", "age": 25}, {"name": "rikki", "gender": "m", "age": 35}, {"name": "ross", "gender": "m", "age": 33}, {"name": "jane", "gender": "f", "age": 25}, {"name": "bela", "gender": "f", "age": 24}, {"name...

c++ - Visual Studio not finding boost include files in release mode (works in debug) -

i'm using boost visual studio 2013 express. visual studio finds #include <boost/filesystem.hpp> in debug mode, not in release mode. when try compile in release mode, says: error 1 error c1083: cannot open include file: 'boost/filesystem.hpp': no such file or directory when right click on #include directive open file manually, works in debug configuration, again not in release, there says: file 'boost/filesystem.hpp' not found in current source file's directory or in build system paths. i checked build configurations , c/c++ - > general -> "additional include directories" linker -> general -> "additional library directories" linker -> input -> "additional dependencies" are same both configurations. do need edit "build system paths", error says? thought 3 options above do. what else cause problem? double-check you've checked settings of project actual fail...

Verilog Parameter overriding -

during parameter overriding, parameter my_secret getting overridden 2.3.4.5. want impose condition overrides my_secret 2 count = 0 10, my_secret 3 count = 10 20, my_secret 4 count = 20 30, my_secret 5 count = 40 50 ? test bench: module tb_def_param; // inputs reg clk; reg rst; reg [4:0] a; reg [4:0] b; reg [5:0] count; parameter my_secret = 4'd0; wire [6:0] sum; initial begin // initialize inputs = 0; b = 0; clk = 1; rst = 1; // wait 100 ns global reset finish #100 rst = 1; #100 rst = 0; // add stimulus here = 5'd2; b = 5'd3; end @ (posedge clk) begin if(rst) count <= 6'd0; else count <= count + 1; end secret_number #(2) u0(.clk(clk), .rst(rst), .a(a),.b(b),.sum(sum)); secret_number #(3) u1(.clk(clk), .rst(rst), .a(a),.b(b),.sum(sum)); secret_number #(4) u2(.clk(clk), .rst(rst), .a(...

angularjs - Fetch data from sqlite and display it in autocomplete -

i'm working iphone application using phonegap. in application there few dropdowns values more 10000. trying replace dropdown autocomplete. we maintaining 10000 records in sqlite db , fetch records db user enters string. code: <input type ="text" class="inputformtext" ng-model="location.location" id="location" list ="locvalues" placeholder="{{'lsummary_location_text'|translate}}" autocomplete = "on" maxlength="80" ng-keyup="populatelocations($event)"/> <div class="alistcon"> <datalist id="locvalues"> </datalist> </div> $scope.populatelocations = function($event){ if ($event.target.value.length > 2) { try { db.transaction(function(tx){ tx.executesql(...

CSS: 100% height not working on div with display: table -

Image
i have problem causes headache me hours now. have following html: <ion-view class="menu-content" view-title="postkarte"> <ion-content> <div class="postcard-container"> <div class="postcard"> </div> </div> </ion-content> </ion-view> and following css: .postcard-container { display: table; position: absolute; background-color: yellow; height: 100%; width: 100%; } .postcard { display: table-cell; vertical-align: middle; background-position: center center; background-image: url("../img/frames/postcard_00.png"); background-size: contain; background-repeat: no-repeat; } the result this: so 100% width working 100% height ignored. why? there no way control height of table . includes elements have display: table; . height adheres content in table . you have find other method a...

PostgreSQL: Row count over time -

i have simple mysql sql-script, outputs me row count on time specific table (based on datetime field in table) select concat('m-', s.label) , s.cnt , @tot := @tot + s.cnt running_subtotal ( select date_format(t.created,'%y-%m') `label` , count(t.id) cnt `templates` t group `label` order `label` ) s cross join ( select @tot := 0 ) now want migrate postgresql, have no idea how migrate variables pg-based syntax. the inner statement is, of course, no problem: select to_char(t.created,'yyyy-mm') label , count(t.id) cnt templates t group label order label anyone here, can me variable-part? here's simple table data: create table "templates" ( "id" bigserial, "title" varchar(2048) default null::character varying, "created" timestamp, primary key ("id") ); insert templates...

rtos - what is v and x means in freeRTOS task creating or used in it? -

what mean x , v in task creating or managing of free rtos? xtaskcreate or vtaskcreate? the leading character(s) of freertos functions identify return type of function. functions start "v" return void. functions start "x" typically return result code or handle. see naming conventions page of freertos coding standard.

My bootstrap datepicker's some part looks transparent ,what can be cause -

Image
i using bootstrap datepicker. have problem it. when click on glyphicon-calendar icon , open datetimepicker widget, looks transparent in parts, remaining part of normal. can cause? <div class="row"> <div class='col-sm-12'> <div class="form-group"> <div class='input-group date' id='datetimepicker2'> <div class='input-group date' name="igunudtl"> <input type='text' class="form-control" id=" iadetarihi " /> <span class="input-group-addon "> <span class="glyphicon glyphicon-calendar "> </span> </span> </div> </div> </div> </div> </div> if datetimepicker ( eonasdan ) appears transparent: c...

Aws::S3::Presigner undefined method credentials for nil:NilClass in Ruby -

i have use aws-sdk-core gem getting error during getting url form aws following code def initialize(bucket:, region:) @bucket = bucket client = aws::s3::client.new(region: region) @signer = aws::s3::presigner.new(client: client) end def sign(key, expires_in: 3600) @signer.presigned_url(:get_object, bucket: @bucket, key: key, expires_in: expires_in) end i getting error nomethoderror - undefined method `credentials' nil:nilclass: aws-sdk-core (2.1.15) lib/aws-sdk-core/signers/v4.rb:24:in `initialize' aws-sdk-core (2.1.15) lib/aws-sdk-core/s3/presigner.rb:88:in `block in sign_but_dont_send' if known how presigned url please lets known thanks the unhelpful error message indicates have not configured aws credentials. these need generate signature. if had used client send request have gotten more helpful error message indicating credentials required. def initialize(bucket:, region:) @bucket = bucket creds = aws::credent...

php - Opposite condition producing required results in If Else statement -

supposing have following array [agent - 134] => array ( [0] => array ( [0] => 2015-07-14 12:03:33.089210 [1] => connect ) [1] => array ( [0] => 2015-07-14 12:03:55.053394 [1] => completeagent ) [2] => array ( [0] => 2015-07-14 12:07:29.913989 [1] => connect ) [3] => array ( [0] => 2015-07-14 12:07:56.693848 [1] => completecaller ) [4] => array ( [0] => 2015-07-14 12:09:02.989649 [1] => connect ) [5] => array ( [0] => 2015-07-14 12:09:35.608860 ...

orleans - Immutable attribute or Immutable wrapper object - which one? -

quick question might know! it appears there 2 ways mark message immutable in orleans.. new immutable(...) or attribute [immutable] on message class which preferred , more importantly why - or matter of personal taste? [immutable] applies instances of class (everywhere use it, instances of class considered immutable), while new immutable(...) applies every instance usage (at 1 place can pass class mutable , @ other place immutable). if instances of class immutable, [immutable] more terse , elegant approach.

angularjs - Angularjstable example -

hai guys got data restfull web service angular function need place data in form table not getting code pls me code is. need show in table form in json pls suggest me <script type="text/javascript"> function contactcontroller($scope,$http) { // $scope.contacts = ["hi@email.com", "hello@email.com"]; $scope.add = function() { $http.get('http://localhost:8080/projectmanagement/rest/getproject/details').success(function(data, status, headers, config,response){ var json = json.stringify(data); var getresponsetext = json.parse(json); var prjdetails=getresponsetext.responsetext; var fields = getresponsetext.split("|"); $scope.people = []; var projectid = fields[0]; var projectname = fields[1]; var claintid = fields[2]; var projectstatus = fields[3]; var prjstartdate = fields[4]; ...

javascript - Candlestick-Chart with title on x axis -

i wanna use candlestick-chart amcharts title on x-axis. (like title on y-axis.) y-axis example: "valueaxes": [ { "position": "left", "title": "that title on y axis" } ] example: http://www.amcharts.com/demos/candlestick-chart/ is possible? yes, possible. simply add title property categoryaxis : "categoryaxis": { "parsedates": true, "title": "that title on x-axis" } here's working example: var chart = amcharts.makechart( "chartdiv", { "type": "serial", "theme": "light", "datadateformat":"yyyy-mm-dd", "valueaxes": [ { "position": "left", "title": "that title on y-axis" } ], "graphs": [ { "id": "g1", "balloontext": "open:<b>[[open]]</b...