Posts

Showing posts from August, 2010

Android Fragment: getActivity() returning null when coming from background -

i'm developing android application has activity. activity has viewpager loads 2 fragments using fragmentstatepageradapter. this adapter being recreated on activity's onresume method. this how bug appears: with activity created, put app in background(using device's home button)and open other applications (specially consume lot of memory). after that, open again application background. have method in 1 of fragments in viewpager: public void dosomething(){ if(getactivity() != null) { ((homeactivity) getactivity()).dothings(): } } while debugging found getactivity() method returns null @ point. "dothings()" method never executed. noticed fragment's views created. i don't have problem when don't open other apps consume memory on app's background time. is overflow memory error? why getactivity() method returns null if fragment appears correctly loaded? thank in advance you can override onattach(activity) meth

sonar runner - SonarQube analysis java and net together -

i have problem. need analyze these 2 languages along sonarqube 5.6, idea how of it? i have install maven , msbuild sonarrunner never made them run together i don't understand how managed combine opposing tech stack in project. i guess talking 2 projects analysis in same sonar instance. in case use sonar.language=java enforce analysis of 1 language. if talking 1 project using 2 stack can work together, don't specify sonar.language sonar analyser deduct language analyse based on plugins have installed. if 1 project analysis done seperately override key , name of project distinguish them. can override passing command line arguments -dsonar.projectkey=asdf-java

octave - Reading variable length cell arrays into matrix -

i using octave 4.2 , using xlsread in loop import data several different rtds. importing using following code: for i=rtdmin:rtdmax filnum=num2str(i); fid = strcat(pre, filnum, filtyp); j = exist(fid); if j == 2 [num{i}, txt{i}, raw{i}, lim{i}] = xlsread(fid); time{i} = num{i}(:,2); temp{i} = num{i}(:,3); endif endfor the problem none of rtds have exact same number of readings (30,000 +-200), or stop , start @ exact same time, although readings overlap. because of variable size of data in each cell cannot pull out matrix in order process data. can suggest solution of how data matrix, or can suggest change existing code data read matrix begin with. thank in advance.

vb.net - Exception with sqlite database "no such table" -

first of i´m developing database autosuggest box. i´ve created database db browser , imported data. reading documentation in c# how connect database , retrieve data. issue show exception error: enter image description here i´ve connected database in properties content option. paste code: public notinheritable class metartaf inherits page dim dbpath string = path.combine(applicationdata.current.localfolder.path, "airportsdb.sqlite3") dim conn sqlite.net.sqliteconnection = new sqlite.net.sqliteconnection(new winrt.sqliteplatformwinrt(), dbpath) dim airportinfo list(of string) = nothing public sub new() ' call required designer. initializecomponent() end sub private sub autosuggestbox_textchanged(sender autosuggestbox, args autosuggestboxtextchangedeventargs) dim datairport new list(of string) dim retrieve = conn.table(of flugzeuginfo)().tolist if args.reason = autosuggestionboxtextchangereason.userinput if sender.text.length >

rest - Test version of web API url -

for our web api project use following url versioning system: https://{fqdn}/{apiversion}/{apiresourcename}/{resourcepath}?{parameters} for instance can have following: https://myapi.mysite.com/v1/customer/2 now considering above, let want release 2 versions (live,test) customer. 1 live version (working live data) , other 1 test (working test data customer development test). for live 1 use 1 mentioned : https://myapi.mysite.com/v1/customer/2 . how name test version of above api? test version of api url version v1? can specify test api url? also best practices qualified domain name of api {fqdn} when using url versioning? there several ways this. one way, instance, use attribute routing give different path. create separate method, give path of /vtest/customer/2 example , if users access /vtest/ version (or v2 or 3 or whatever) return test data/new version. see example in question another way host "test data" api in different application in ser

python - S4cmd giving permission denied error -

i installed s4cmd on ec2 ubuntu instance, when trying run giving below error:-bash: /usr/local/bin/s4cmd: permission denied i tried sudo -s, updating pip & advised in other questions. none of them working me. as of now, using s3cmd. put requests ec2 either dreamobjects or centurylink object storage painfully slow. uploading one-by-one. project demands uploading extremely large number (over million) of small objects. this quite possibly not useful answer, trying execute file when doesn't have permission executable. go /usr/local/bin/ directory , try following command chmod +x s4cmd and see if works...

EaselJs - cross-domain images workaround? -

when try use: temp = new createjs.bitmap(obj.path) i error: uncaught error has occurred. due security restrictions on reading canvas pixel data local or cross-domain images. this related this question . except in above case user isn't using web-server. in case i'm using web-server need images hosted on aws s3 bucket using https. is there setting can use allow cors easeljs? cors settings on s3 bucket: <corsconfiguration> <corsrule> <allowedorigin>*</allowedorigin> <allowedmethod>get</allowedmethod> <maxageseconds>3000</maxageseconds> <allowedheader>authorization</allowedheader> </corsrule> </corsconfiguration> edit: related question bitmap not handle cors, since must define cross-origin property on image directly before setting src. the best way create image yourself, , apply cross-origin, before passing bitmap. var image = document

javascript - meteor js (meteor-autoform + iron router) pass value after form is submitted -

after form validated redirect user specific page , display values. don't know if way think use correct one. here's tried already: creating form in template: {{> quickform collection="transactions" id="inserttransaction" type="insert"}} then created hook called when form validated & inserted autoform.addhooks('inserttransaction',{ onsuccess: function(data){ router.go('one', null, {query: 'amount=' + data->amount}); console.log(data); } }); @michel floyd my one.html <template name="one"> <div class="row"> <div class="col-sm-7"> 1 page... </div> <div class="col-sm-5"> {{ amount }} </div> </div> </template> my code home.js (client/home.js): autoform.addhooks('inserttransaction',{ onsuccess: function(data, data2, data3){ result = transactions.findone(data2,

javascript - How to highlight the second time reference in my code -

var img = new image(); var = new date(); var weekday = new array(7); weekday[0] = "sunday"; //9:00 - 11:00 pm weekday[1] = "monday"; //11:00 - 11:00 pm weekday[2] = "tuesday"; //11:00 - 11:00 pm weekday[3] = "wednesday"; //11:00 - 11:00 pm weekday[4] = "thursday"; //11:00 - 11:00 pm weekday[5] = "friday"; //9:00 - 12:00 weekday[6] = "saturday"; //9:00 - 12:00 am var checktime6 = function() { var today = weekday[now.getday()]; var timediv6 = document.getelementbyid('timediv6'); var dayofweek = now.getday(); var hour = now.gethours(); var minutes = now.getminutes(); //add or pm var suffix = hour >= 12 ? "pm" : "am"; // add 0 1 digit minutes if (minutes < 10) { minutes = "0" + minutes }; if ((dayofweek == 0 || dayofweek == 1 || dayofweek == 2 || dayofweek == 3 || dayofweek == 4) &a

python - gdalwarp causes ERROR 6: PNG driver doesn't support 6 bands in gdal2tiles -

i've problem gdalwarp function. what i've done: i built .vrt file 6 .tif images: gdalbuildvrt -overwrite /input/base.vrt /home/tiles/base/*.tif my gdalinfo looks that: driver: vrt/virtual raster files: temp/vrt/base.vrt /home/tiles/base/17_base_1.tif /home/tiles/base/17_base_2.tif /home/tiles/base/17_base_3.tif /home/tiles/base/17_base_4.tif /home/tiles/base/17_base_5.tif /home/tiles/base/17_base_6.tif size 60007, 40007 coordinate system `' origin = (468000.000000000000000,5510000.000000000000000) pixel size = (0.100000000000000,-0.100000000000000) corner coordinates: upper left ( 468000.000, 5510000.000) lower left ( 468000.000, 5505999.300) upper right ( 474000.700, 5510000.000) lower right ( 474000.700, 5505999.300) center ( 471000.350, 5507999.650) band 1 block=128x128 type=byte, colorinterp=red band 2 block=128x128 type=byte, colorinterp=green band 3 block=128x128 type=byte, colorinterp=blue band

java - I'm Having an error with calling a constructor with another constructor -

using below code closest solution keep getting error saying "(" or "[" expected , under ";" expected. i'm not sure missing. public class manager extends salariedsubordinate implements imanager{ private arraylist<isubordinate> listofsubordinates; private double managerbonusfund = 5000; private double basesalary; public manager(double basesalary, imanager manager, arraylist<isubordinate> subordinates) { this.basesalary = basesalary; this.manager = manager; this.listofsubordinates = subordinates; } public manager(double basesalary, imanager manager){ this(basesalary, manager, new arraylist<isubordinate> subordinates); } when create new empty array list, this: new arraylist<sometype>(); right? then why did write new arraylist<isubordinate> subordinates when pass new array list constructor? () s? why add word subordinate ? so add () , delete word subordinate

sql - Simplifying WHERE clause -

is there way simplify statement 1 has declare airport , storename once , let category , fixture vary? select * product_display (airport = 'jfk' , storename = 't3' , category = 'pralines' , fixture '%w15%') or (airport = 'jfk' , storename = 't3' , category = 'kinder' , fixture '%w12%') or (airport = 'jfk' , storename = 't3' , category = 'nutella' , fixture '%g04%') or (airport = 'jfk' , storename = 't3' , category = 'tic tac' , fixture '%w12%') you can simplify below select * product_display airport = 'jfk' , storename = 't3' , ((category = 'pralines' , fixture '%w15%') or (category = 'kinder' , fixture '%w12%') or (category = 'nutella' , fixture '%g04%') or (category = 'tic tac' , fixture '%w12%')) hope out.

C++ Builder 6 - Don't know how to include mpi.h library -

i'm trying include mpi.h library project have @ c++ builder 6. options change include path , library path? found can see had vcl.h already. project/options... this project not mine it's professor's project.

globals declarations with TypeScript -

does following style of declaration in typescript files? /* globals console define require react async */ or there different way typescript? no has no effect on typescript compiler. what globals in scope typically selected choosing 1 of predefined library settings in typescript compiler options, example command line tsc --lib es5,dom brings global scope declared in files lib.es5.d.ts , lib.dom.d.ts supplied compiler. if lib.dom.d.ts can see how example window declared there: declare var window: window; window interface defined earlier in file. you can same own global variables - can create own .d.ts file containing declare var @ top level, , include file in compilation either on command line or adding files in tsconfig.json . everything installed in node_modules/@types included in compilation default, every global declared these typings in scope, unless limit setting "typeroots" or "types" in tsconfid.json . also, if use

c++ - display the values of area for inherited classes -

in code below how can display areas of rectangle , triangle. can print strings area returned. how can print returned value functions. should change here in code, please help. class shape { protected: int width, height; public: shape( int = 0, int b = 0) { width = a; height = b; } virtual int area() { cout << "parent class area :" <<endl; return 0; } }; class rectangle: public shape { public: rectangle( int = 0, int b = 0):shape(a, b) { } int area () { cout << "rectangle class area :" <<endl; return (width * height); } }; class triangle: public shape{ public: triangle( int = 0, int b = 0):shape(a, b) { } int area () { cout << "triangle class area :" <<endl; return (width * height / 2); } }; // main function program int main( ) { shape *shape; rectangle rec(1

sql - subquery select when group by is null -

i've got query cannot figure out. select ( select count(bar.id) bar foo.some_id = bar.some_id ) num_bar foo group some_id if foo looks this: id|some_id ---------- 1 |null 2 |apple 3 |orange and bar looks this id|some_id ---------- 1 |null 2 |apple 3 |orange 4 |null 5 |apple 6 |orange i expect return: num_bar ------- 2 2 2 howerver, count on null grouping returns 0 each time. what proper way account clause when group null? sql aggregate functions , comparisons may ignore null values in computation what might want give value , interpret nulls accordingly. in below query, asking query interpret null values -1. select ( select count(bar.id) bar isnull(foo.some_id, -1) = isnull(bar.some_id,-1) ) num_bar foo group isnull(some_id,-1)

javascript - Sort elements by their unix timestamp data attribute -

i have html output: <div id='bildirimlerdonen'> <a href="http://www.example.com/kupon-56097" data-tarih="1485534721"> <div class="bi_b"> <div class="bi_tip"> <div class="bi_tip_not"></div> </div> <div class="bi_mesaj yenibildirim" style="background-color: #fccdee;"> <b class="pembeyazi">56097</b> nolu kuponunuz <span class="bi_kaybetti">kaybetti! <br>(28 bp kaçtı)</span> </div> </div> </a> <a href="http://www.example.com/kupon-56096" data-tarih="1485278899"> <div class="bi_b"> <div class="

angular - Angular2 form builder with result of asynchronous call -

am creating form following result of asynchronous call stuck @ how should pass results of asynchronous calll form builder this ive tried export class performinspectionpage implements oninit { checklists: any; inspectionform: formgroup; ngoninit(): { this.checklists = this.ongetitems(); //this fetch data not sure of //another way use. let checkinputs: formarray = new formarray([]); (let = 0; < this.checklists.length; i++) { checkinputs.push( new formgroup({ description:new formcontrol(this.checklists[i].item), input: new formcontrol(''), yesradio: new formcontrol(''), noradio: new formcontrol(''), }) ) } this.inspectionform = this._formbuilder.group({ inputfileds: this._formbuilder.array(checkinputs.controls) }) } now function gets items still on same component ongetitems(){ return this._inspectionservice.getchecklists() .subscribe(

reactjs - How can I clear row selection of a materialui table programatically? -

Image
i materialui table render list of items this: <table selectable={true} onrowselection={(index) => this.onrowselection(index)} classname="searchable-table"> <tableheader adjustforcheckbox={false} displayselectall={false} style={style}> <tablerow style={style}> <tableheadercolumn> <textfield hinttext="search" onchange={(e) => this.onsearch(e)} fullwidth={false} /> </tableheadercolumn> </tablerow> </tableheader> <tablebody displayrowcheckbox={false} deselectonclickaway={true}> {this.renderrows(this.state.data)} </tablebody> </table> when click on row, onrowselection gets triggered expected, , row gets selected (highlighted). if want fire onrowselection again, have click on selected row twice. 1

javascript - Chome Extension, list its directory entries -

i trying develop chrome extension occurred in problem. i need list entries of directory inside of extension itself, but, when try implement chrome.runtime.getpackagedirectoryentry(function(root) {} console notifies me chrome.runtime.getpackagedirectoryentry not function . function getimage(callback) { chrome.runtime.getpackagedirectoryentry(function(root) { root.getdirectory("images", {create: false}, function(localesdir) { var reader = localesdir.createreader(); // assumes there fewer 100 locales; otherwise see directoryreader docs reader.readentries(function(results) { callback(results.map(function(de){return de.name;}).sort()); }); }); }); } getimages(function(data){console.log(data);}); i post manifest.json too { "name": "my ext", "version":"1.1", "manifest_version":3, "content_scripts": [ { "matches": [ "*://mysite

php - how to store uploaded one image to parent and sub directories -

i have 2 directory company model branch model both have upload folder $name = $_files["file"]["name"]; // here working move_uploaded_file( $_files["file"]["tmp_name"], "upload/" . $name ); move_uploaded_file( $_files["file"]["tmp_name"], "branch model/upload/" . $name ); use copy() $target_path = "upload/"; $target_path2 = "branch model/upload/"; move_uploaded_file($_files['file']['tmp_name'], $target_path.$name); copy($target_path.$name, $target_path_2.$name);

javascript - How do you get the language Microsoft Edge is using? -

when user lands on site, i'd language code corresponding language they're using. (e.g, "en-us" english, "fr-ca" french canadian.) have culture/language dependant features. (among other things, there's french translation of site in works.) have central place store language code, , have works in chrome , firefox using navigator.language, internet explorer using navigator.browserlanguage. need way information user in microsoft edge. i'm using javascript, angularjs, , kendo if 1 of has useful tool. mildly prefer pure javascript answer, , prefer entirely in frontend. note: it's possible navigator.language in edge. returns "en-us" me , in us, i'm using testing environment should set it's uk. confirmation navigator.language user language , environment leaky counts answer, if includes edge gets information can fix environment , test it.

c# - How to create report in windows Form using Report Viewe with an object Data Sourcer -

i'm using visual studio 2013 , widows form , want generate reports report viewer i'm new on topic. class wich must used object datasource using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace windowsformsapplication3 { public class result { public string epc { get; set; } public int nombreesseyage { get; set; } public double dureeessay { get; set; } public string marque { get; set; } public string nom { get; set; } public string couleur { get; set; } string taille { get; set; } public result(string epc1, int nombreesseyage1, double dureeessay1, string marque1, string nom1, string couleur1, string taille1) { epc = epc1; nombreesseyage = nombreesseyage1; dureeessay = dureeessay1; m

if statement - PHP if else not working -

why if not working ? idea anyone.. know there minor wasted more half hour already. <?php if(1){ ?> <?php echo " <ul class=\"nav navbar-nav navbar-right\"> <li><a href=\"#\" data-toggle=\"modal\" data-target=\"#loginmodal\"><span class=\"glyphicon glyphicon-pencil\"></span> post</a></li> </ul> " ; }?> <?php else{ ?> <?php echo " <ul class=\"nav navbar-nav navbar-right\"> <li><a href=\"#\" data-toggle=\"modal\" data-target=\"#loginmodal\"><span class=\"glyphicon glyphicon-pencil\"></span> post</a></li>

boost python - Why can't I pass T as HeldType to class_? -

according boost docs default heldtype t . should able explicitly pass t . cannot, because boost asks me provide public constructor class accepts arguments pyobject*&, boost::reference_wrapper<const t>::type& why? boost behaves if following rule applied: if heldtype derived t, exposed constructor(s) must accept initial pyobject* argument refers python object contains heldtype instance, shown in example. ( source ) is bug or oversimplification in documentation?

copyDoc.saveAndClose(); Missing ) after argument list Google Sheet Script -

i not not know coding - i'm trying run script below , recieve error missing ) after argument lis t on line 79 copydoc.saveandclose(); blockquote here url doc: https://docs.google.com/document/d/1fcbvbhmccdfjcakxsu5ueaod30h1d5ytyqp_s28vpzc/edit?usp=sharing here script. please advise. sincere thanks. function myfunction() { // rsaez@shsd.org // travel request // template google docs , name var doctemplate = "1fcbvbhmccdfjcakxsu5ueaod30h1d5ytyqp_s28vpzc"; // *** replace template id *** var docname = "travel_request"; // when form gets submitted function onformsubmit(e) { //get information form , set variables var email_address = "rsaez@shsd.org, rsaez@shsd.org"; var building = e.values[5]; var request = e.values[6]; var total_days = e.values[7]; var substitute_needed = e.values[8]; var staff_member_type = e.values[9]; var coverage_type = e.values[10]; var time_of_day = e.values[11]; var co

c# - how can i view the month date year only? i'm using datetime, data type -

public static void addemployee(string eid, string fname, string lname, int salary, datetime birthday) buz.addemployee(textbox1.text, textbox2.text, textbox3.text, int.parse(textbox4.text), datetime.parse(textbox6.text)); by code, can generate month date year. protected void calendar1_selectionchanged(object sender, eventargs e) { textbox6.text = calendar1.selecteddate.toshortdatestring(); calendar1.visible = true; } but when view it still includes time. how can view month date year only? you can this: int year = calendar1.selecteddate.year; int month = calendar1.selecteddate.month;

javascript - How-to Dynamic update a chart via socket.io and slide chart view as a sliding window? -

could me figure out missing on showing last x samples in chart, please? looking @ this example , this thread, developing simple page receives samples server via socket.io , plots last 10 samples. however, not working , struggling figure out missing. the server.js simple samples generator: var app = require('express')(); var http = require('http').server(app); var io = require('socket.io')(http); app.get('/', function (req, res) { res.sendfile('index.html'); }); // on connection event. io.on('connection', function (socket) { console.log('a user connected'); socket.on('disconnect', function () { console.log('user disconnected'); // todo (how-to) release connection (?) }); var max = 100; // scale samples 0 100. // generate random samples. setinterval(function () { var x = (new date()).gettime(), // current time y = math.floor((math.rando

java - How to update the Hibernate Entity Record when only few fields of entity obj are modified and remaining fields should not be null -

is there other different solution code. every pojo class have check modified data coming browser , store modified data database. see below billingtax obj coming browser updated data , billingtaxdbobject obj retrieved database , check if condition whether updated data changed or not if pojo class has 20 fields, have write 20 if conditions if pojo class has 5 fields, have write 5 if conditions instead of writing if conditions checking wheter data modified or nor there other simplest way? @override public billingtax update(billingtax billingtax) throws datainsufficientexception, recordnotfoundexception { log.debug("billingtaxserviceimpl.update()...................."); try { if (billingtax == null) throw new datainsufficientexception("billingtax object null"); billingtax billingtaxdbobject = get(billingtax.getid()); if (billingtaxdbobject == null) throw new recordnotfoundexception("bil

debugging - breakpoints when transforming an array in javascript -

i have been getting more functional approach writing javascript. i'm trying figure out how debugging should done in way when transforming arrays. more precise, how can use of breakpoints? here example a : myarray .filter(foofilter) .sort(foosort) .map(foomap) .reduce(fooreduce) how 1 add breakpoint this? if code looked instead (more imperative way) example b : const filteredarray = myarray.filter(foofilter); const sortedarray = filteredarray.sort(foosort); const mappedarray = sortedarray.map(foomap); const reducedarray = mappedarray.reduce(fooreduce); adding breakpoints example above not problem. so trying ask if possible somehow modify example a somehow support easier breakpoints? also, how should 1 think when comes debugging when writing according functional paradigm? edit 1: i trying put breakpoint through webbrowser such chrome. adding through changing code not solution im looking here. i trying add breakpoint after each transform see result of tra

Memory Leak in cassandra datastax java driver -

for cassandra 2.1.8 , using datastax java driver cassandra-driver-core 3.0.2 i found memory leak, class com.datastax.driver.core.tablemetadata holds uuid references created driver only. diagnosed using jprofiler has experienced similar issue ?

c++ - Compare QTime and QTimer values -

i call function after x seconds , after y seconds etc.. number of seconds wait before calling function stored in qtime i thought launching timer , when value of qtimer has value of 1 of qtime, call function, dont' know @ how .. here idea in "pseudo-code" : qtime time1(0, 0, 10); // 00:00:10 qtime time2(0, 0, 15); // 00:00:15 // init qtimer if (qtimer.value == time1.value) function1(); if (qtimer.value == time2.value) function2(); how can ? thanks help the easiest way use 2 qtimer objects, each interval respective function. another option single timer fires @ rate of lowest common denominator, in case 5 seconds, , call each function @ appropriate count. i.e. function1 every second timeout, function2 every third timeout. another option calculate time until next event , start timer interval.

c# - Selenium error ystem.InvalidOperationException -

i'm pretty new c#, using selenium other day. tried use today i'm getting error thrown @ me which is system.invalidoperationexception: session not created exception unknown error: runtime.executioncontextcreated has invalid 'context': {"auxdata":{"frameid":"12184.1","isdefault":true},"id":1,"name":"","origin":"://"} to replicate problem me this try { iwebdriver driver = new chromedriver(); driver.navigate().gotourl("https://google.com"); } catch (exception ex) { console.writeline(ex); console.readkey(); thank you.

Not getting preview screen in activity_main.xml in android studio(version 2.2)on. There is only + sign with 2 slashes.? -

Image
as shown image besides palette window not getting screen of virtual device. getting + sign 2slashes. you need select android api dropdown. please see screenshot attached.

c++ - Avoid error reading characters of string. char * -

Image
i on several similar question, couldn't find proper solution situation. trying omp parallel loop. inside 1 of functions in parallel region, trying create m_buffer guess shared (it huge , complicated piece of code, user). //vector of pointers, each of points start of one-way list of free elements of same size. //the size of elements in each list determined list's index in vector, //namely size of element (sizeof(void) * (index + 1)). std::vector<char*> m_buffer; ... bufidx = i_element_size / sizeof(void*) - 1; ... if (m_buffer[bufidx] == nullptr) { ... } else { //comes here! } apparently 1 thread tries allocate element inside buffer @ index of 0. attached question see buffer in debug using vs 2013. wondering if there way detect situation beside if condition.

c# - How to Append videos in Unity3D programmatically -

i working in unity3d video gallery app. need upload , download videos server. can append 4 videos in unity3d programmatically , upload. please suggest me solution. highly obliged. i order load video server or local filesystem not directly in asset folder need use www . here example documentation image works same way video: public class exampleclass : monobehaviour { public string url = "http://images.earthcam.com/ec_metros/ourcams/fridays.jpg"; ienumerator start() { www www = new www(url); yield return www; renderer renderer = getcomponent<renderer>(); renderer.material.maintexture = www.texture; } } here link unity documentation: www

ui-router states connection between angularJS and spring mvc not bind with Spring controller -

i trying send request spring controller through angularjs ui-router in gives 404 not found exception... here code: home.jsp through cal js page want call html <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page session="false" %> <%@ page import="java.sql.*" %> <%@ page import="org.tempuri.*" %> <html> <head> <title>home</title> <script src="resources/libs/angular.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-router /0.2.8 /angular-ui-router.min.js"></script> <script type="resources/libs/angular.ui.router.min.js"></script> <script src="resources/js/mock_app.js"></script> </head> <body ng-app="formsubmit"> <!-- ng-controller="formsubmitcontroller -->" <!--

c# - Logical Proposition -

hello , first of sorry bad english...i ask here cause last chance homework done.my homework must : have prove inside ( parentheses must match ) true , if 1 word inside () small letter wrong example (!a) - true (its proposition) (a&b) - true or (! ( a-> b ) v (! (a | b) ) ) - true i manage make few example work in particular case let me show i'v done : console.writeline("enter proposition: "); string userinput = console.readline(); switch (userinput.length) { case 1: checkbigandsmallletters(userinput); break; case 5: check5(userinput); break; case 8: check8(userinput); break; case 9: check9(userinput); break; case 11: check11(userinput); break; case 13: check13(userinput); break;

javascript - Extjs 5.0.1 How to send a JSON POST request the proper way -

good day all. i'm totally new extjs , i've been inserted big project started , left alone. i'm studing framework of course, i'm getting struck every bit of code. now, i'd understand proper way make rest call, using json parameters in post. this actual situation: i have defined combobox in view file (called setup.js) , i've put listener on select following emptytext: 'select country', listconfig: { itemtpl: [ '<div><span class="" style="margin-right: 10px;"><img src="resources/flags/{id}.png"></span>{name}</div>' ] }, listeners: { /*created after render listener wait until store loaded. set default value*/ select: 'oncountryselect', afterrender: 'onafterrendercombo' } on fil