Posts

Showing posts from August, 2012

angularjs - UI Bootstrap - how to stop tooltip showing changed text before closing -

i have tooltip working on glyphicon. when click on glyphicon want hide tooltip, , change text of tooltip. reflects change in state glyphicon has been clicked. however, when hide tooltip , change text of tooltip, instead of doing in order, second can see new text in tooltip before disappears. here html: <span class="glyphicon glyphicon-eye-open watch-eye" ng-click="eyeclicked()" uib-tooltip="{{watchtooltip}}" tooltip-placement="auto top" tooltip-is-open="eyetooltipisopen"> </span> and here javascript: $scope.watchingcategory = false; $scope.watchtooltip = 'watch'; $scope.eyeclicked = function() { $scope.eyetooltipisopen = !$scope.eyetooltipisopen; $scope.watchingcategory = !$scope.watchingcategory; if($scope.watchingcategory === true) { $scope.watchtooltip = 'dont watch'; } else if($scope.watchingcategory === false) { $scope.watchtooltip = 'watch

java - getServletConfigClasses() vs getRootConfigClasses() when extending AbstractAnnotationConfigDispatcherServletInitializer -

Image
what difference between getservletconfigclasses() vs getrootconfigclasses() when extending abstractannotationconfigdispatcherservletinitializer . i've been reading lot sources since morning haven't clear understanding on differences yet : please have @ these 2 configurations : 1). public class springmvcinitializer extends abstractannotationconfigdispatcherservletinitializer { @override protected class<?>[] getrootconfigclasses() { return new class[] { conservlet.class }; } @override protected class<?>[] getservletconfigclasses() { return null; } .... .... } the conservlet.class refering @enablewebmvc @configuration @componentscan({ "com" }) @import({ securityconfig.class }) public class conservlet { @bean public internalresourceviewresolver viewresolver() { internalresourceviewresolver viewresolver = new internalresourcevi

file permissions - Having trouble with perms in Ubuntu 14.04 -

i pretty new linux, please forgive me if ignorant. first of this. need modify folder, such subsequent files or folders placed within inherit 777 perms. understand not done, however, isolated system running series of programs move files around, , access these files, need execute perms. i have tried using acl's it, however, dont seem inheriting execute rights reason. chmod -r once, need find way automate process. any ideas? let me know if need more info. you can use inotifywatch watch files moved directory using moved_to event. you use fsmonitor run node process watches changes , executes chmod.

javascript - elasticsearch + AngularJS - How to write a like query search ( not exact search )? -

i trying write query search (not exact search) not able to. here anularjs code - angular.module('searchapp',[]) .controller('searchcontroller', function ($scope,ejsresource) { $scope.searchsubmit = function() { var ejs = ejsresource('http://localhost:9200'); var oquery = ejs.querystringquery(); var client = ejs.request() .indices('articles') .types('article'); $scope.results = client.query(oquery.query('art90' || '*')).dosearch().then(function (resp) { $scope.searchresults = resp.hits; console.log($scope.searchresults); }, function (err) { console.trace(err.message); }); }; }); the result, getting using above exact match only. need search ( e.g if put art in search text should result back.). help? thanks lot in advance!!!!

opengl - Is writing to `gl_Position` in Vertex Shader necessery when there is a Geometry Shader -

this stupid question, yet...: suppose have geometry shader computes output gl_position inputs other gl_in[].gl_position . if previous pipelines stages (vertex , tessellation) not write out gl_position , action of entire pipeline still remains well-defined? or put other way, value of gl_position has effect on functioning of gl before completion of geometry shader? if not, mean can use slot passing data without special spatial interpretation between stages, right? (the question assumes opengl 4.5 forward profile.) gl_position needs written final vertex processing stage (vs, tessellation, , gs) in rendering pipeline. if have active gs, vs connects need not write gl_position @ all. or can put arbitrary vec4 data in it. do note gl_position still need written whatever final vertex processing stage is. assuming want rasterization, of course. , no, that's not being flippant; doing transform feedback. if not, mean can use slot passing data without special sp

c# - WPF and WIndows 10. Invisible border around windows? -

Image
when tried align window side or corner of display, discovered there kind of padding between edge of screen , edge of window. had created new wpf project template, added 2 lines in constructor , got this: why don't fit edge of screen? same problem when try put window right bottom corner this: rect workarea = systemparameters.workarea; left = workarea.location.x + workarea.width - width; top = workarea.location.y + workarea.height - height; it looks window has 7px border (just on win7) invisible on win10. found if set both windowstyle windowstyle.none , resizemode resizemode.noresize , system places window correctly, not need. on win7 same program works expected. of cource can set left property -7, not solution. how can set window place, on both win7 , win10? the resizable border on left/right/bottom invisible on windows 10, , border gap is. if put window in middle of screen, , drag mouse left edge of window, see cursor change resizing cursor 8 pixels furt

asp.net mvc - Trying to add a model to a view but it doesn't show -

Image
why can't find model on image: contactviewmodel class is: using system.componentmodel.dataannotations; namespace moran.viewmodels { public class contactviewmodel { [required] [stringlength(255, minimumlength = 5)] public string name { get; set; } [required] [emailaddress] public string email { get; set; } [required] [stringlength(1024, minimumlength = 5)] public string message { get; set; } } } contact.cshtml: @* more information on enabling mvc empty projects, visit http://go.microsoft.com/fwlink/?linkid=397860 *@ @model bazarmoran.viewmodels.contactviewmodel @{ viewbag.title = "contact us"; } @section scripts { <script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script> <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script> } <div class="row"&g

How to get Haskell Documentation to appear in IntelliJ? -

Image
haskell has documentation "putstrln" here... https://www.haskell.org/hoogle/?q=putstrln but when use intellij ide (default haskell plugin), don't documentation. auto-complete works "putstrln", , says "string -> io()" in auto-complete menu, when press ctr-q or ctr-space, says "no documentation found." how pop-up documentation haskell in intellij? trying alternative "haskforce" plugin. cannot figure out how basic "hello world". * update on haskforce * -- start getting basic haskell stuff: https://eschulte.github.io/emacs24-starter-kit/starter-kit-haskell.html -- haskforce (and uninstall haskell plugin intellij) -- set tools in "settings" -- set compiler settings ^ turned on "install cabal dependencies" because when off got nasty message on run: information:cabal: install dependencies information:cabal: cabal: not resolve dependencies: information:cabal: next goal: base

ruby on rails - Error while installing railsinstaller -

i downloaded railsinstaller 2.1 on pc. every time try install get error 5: access denied. setup unable create directory "c:\sites\todo" since it's giving me access denied error, should run installer administrator. right? error either way. that's odd, right click todo folder , select properties click security tab , verify administrators have full control of folder? you try creating folder first running it, although it'll same when creating sub directories.

java - Why am I getting a com.stormpath.sdk.lang.InstantiationException while trying to get an OAuth2 key from Stormpath? -

i'm building java rest api, using jersey. tomcat web server. user account , oauth2 key management, i'm using stormpath's java sdk. have 1 sample user created through website, , every time post json username/password request account app's v1/token endpoint in postman, exception , stacktrace: com.stormpath.sdk.lang.instantiationexception: unable instantiate instance constructor [public com.stormpath.sdk.impl.oauth.defaultaccesstoken(com.stormpath.sdk.impl.ds.internaldatastore,java.util.map)] @ com.stormpath.sdk.lang.classes.instantiate(classes.java:191) @ com.stormpath.sdk.impl.ds.defaultresourcefactory.instantiate(defaultresourcefactory.java:65) @ com.stormpath.sdk.impl.ds.defaultdatastore.instantiate(defaultdatastore.java:170) @ com.stormpath.sdk.impl.oauth.defaultgrantauthenticationtoken.getasaccesstoken(defaultgrantauthenticationtoken.java:79) @ com.stormpath.sdk.impl.oauth.defaultoauthgrantauthenticationresultbuilder.build(defaultoauthgrant

c - I try to switch a specific struct by creating an int of it and can't find a fault -

i defined structure: struct command_type { uint8_t a,b,command; }; // struct command_type and constants like: #define _heartbeat ((struct command_type) {0x10,0x01,0}) i did use in funktions , use how wanted want switch funtion case should use labels. there defined int_of_command_type this: #define int_of_command_type(a) ((unsigned int) (((int) ((a).a)) << 16) |\ (unsigned int) (((int) ((a).b)) << 8) | \ (unsigned int) (((int) ((a).command)))) when use function print out %u value variable of type struct command_type works perfect. now did want this: struct command_type command_type_var=_hearbeat; ....some code .... switch(command_type_var) { case inf_of_command_type(_heartbeat): ..... break; default: }; and following fault message: case label not reduce integer constant. know, how can round problem easy way, because no

python - How can a runtime object type be used as a generic type hint parameter? -

introduction with python/mypy type hints, 1 can use .pyi stubs keep annotations in separate files implementations. using functionality give basic hinting of sqlalchemy's orm (more specifically, flask_sqlalchemy plugin). models defined like: class mymodel(db.model): id = db.column() ... ... where db.model included directly sqlalchemy. can queried, example, by: mymodel.query.filter({options: options}).one_or_none() where filter() returns query, , one_or_none() returns instance of mymodel (or none, obviously). the follwoing .pyi file hints above construct, though incomplete - there no way hint return type of one_or_none(). class _sqlalchemy(sqlalchemy.orm.session.session): class model: query = ... # type: _query class _query(sqlalchemy.orm.query.query): def filter(self, *args) -> query.query: ... def one_or_none(self) -> any: ... db = ... # type: _sqlalchemy the question how can 1 , generically hint above, , hint return type

datastax solr index no documents -

i have datastax cluster setup, , trying run through demo located here: https://docs.datastax.com/en/datastax_enterprise/4.6/datastax_enterprise/srch/srchtutstrt.html . cluster healthy, 2 datacenters (2 cassandra nodes in 1 dc , 1 solr node in dc). issue i'm seeing solr admin reporting no documents, though there records in cassandra. ideas on @ see why nothing indexing? note: i've tried issuing reindex solr core admin page , runs without error, there no documents.

handlebars.js - Define object & pass it to a partial -

what want do: {{>mypartial foo={bar:1} }} i want define object while passing partial. possible? i know it's possible pass existing object like {{>mypartial foo=foo}} but want define object within markup. why? because it's define layout. want avoid determine layout decisions on backend. partial table layout, , want hide specific columns. but instead of using multiple properties like {{>mypartial hidefoo=true hidebar=true}} i want use single object hide {{>mypartial hide={foo:true,bar:true} }} you can pass new context partial: {{> mypartial context }} example: var data = { title: "foo bar", foo: ["foo1", "foo2"], bar: ["bar1", "bar2"], hide: { foo: true, bar: false } }; var content = "{{title}} {{> mypartial hide }}"; var partialcontent = "<div class=\"{{#if foo}}hidefoo{{/if}} {{#if bar}}hidebar{{/if}}\">h

jquery - wordpress How create select dependent dropdown by meta values or categories -

we had 3 custom fields brand model features (multi input in array ) need dependent drop down form when select brand (or category) > show drop down menu contain models (related selection) select model > show features of model meta value you can see example here http://bit.ly/1q2z9te we tried these codes not worked $rd_args = (array( 'ignore_sticky_posts' => 1, 'orderby' => 'meta_value', 'order' => 'asc', 'meta_query' => array( array( 'key' => 'brand', ), array( 'key' => 'model', ) ) )); $rd_query = new wp_query( $rd_args ); $the_query = new wp_query(array( 'meta_key' => 'votes_count', 'meta_value' => '1' )); $html_out = ''; $html_out = '<select id="office-chooser2&q

javascript - Trying to get Mandrill to send an email (codecademy exercise) -

i'm trying learn how use api's , stumbled upon codecademy's course , i'm doing mandrill api course // create function log response mandrill api function log(obj) { $('#response').text(json.stringify(obj)); } // create new instance of mandrill class api key var m = new mandrill.mandrill('sdjw??-3fk4r1h8ah2vckw'); // create variable api call parameters var params = { "message": { "from_email":"jack??@yahoo.com", "to":[{"email":"jack??@yahoo.com"}], "subject": "sending text email mandrill api", "text": "i'm learning mandrill api @ codecademy." } }; function sendthemail() { // send email! m.messages.send(params, function(res) { log(res); }, function(err) { log(err); }); } the api key should work. course allowed me test in previous exercise. heard mandrill had changes menti

sql - Filtering Date for current date -30 days fails -

i still learning sql , have sample database , trying show orders in past 30 days. can tell me code incorrect, , how fix it? select c.firstname || ' ' || c.lastname customer, o.orderdate customer c o.orderdate >= dateadd(day,-30, getdate()) , o.orderdate <= getdate() left join orders o on c.customerid = o.customerid i apprecaite assistnce. on side note looking sql coach wensday , thrusday of coming week these kind of questions. willing pay via paypal , provide webex work. wouldn't think more total of 4-5 hours oveall. if care out student , make quick money please let me know email address. thank you! one option use sysdate offset appropriate interval : select c.firstname || ' ' || c.lastname customer, o.orderdate customer c left join orders o on c.customerid = o.customerid o.orderdate >= sysdate - interval '30' day , o.orderdate <= sysdate

c++ - Red Black Tree ~ 1 Child Deletes -

is ever possible red parent node have 1 black child node? have been playing around red/black tree simulator online , can't manage case of happen. the reason behind asking believe have unnecessary if in code... if (temp_node->color == black && node->color == red) { node->color = black; global_violation = false; } thanks feedback!! no, isn't possible. remember, in red/black tree, paths root of tree off of tree must pass through same number of black nodes (that's 1 of red/black tree invariants). if have red node x 1 black child y , cannot have red child (since breaks red/black invariant red nodes can't have red children). this means path through x missing child pass through @ least 1 fewer black node path through x , y , , off tree there, breaking red/black tree invariants.

objective c - Label data is erased when I back to the screen from tableview in iOS -

Image
here json response label value. { "dry_cleaning" = 49; iron = 8; name = "shirt/tees"; wash = 15; "wash_iron" = 19; counts = 2; id = 1; total = 98; }, { "dry_cleaning" = 49; iron = 5; name = "kurta(short)"; wash = 20; "wash_iron" = 19; counts = 2; id = 2; total = 98; }, { "dry_cleaning" = 50; iron = 8; name = "kurta(long)"; wash = 15; "wash_iron" = 20; counts = 0; id = 3; }, { "dry_cleaning" = 50; iron = 5; name = shorts; wash = 15; "wash_iron" = 19; counts = 0; id = 4; }, { "dry_cleaning" = 55; iron = 8; name = "trousers/pyjamas"; wash =

Notification of any String object construction in Java 8 HotSpot VM -

is there way notified on invocations constructor of string class (either directly or using reflection) without weaving or instrumenting rt.jar? further possible filter these notifications calls within specific package? further possible make these notifications async (like events) actual jvm invocations not slowed down my use-case intercept strings being created, make pattern match on content , raise alters based on rules (all in backend) part of platform component. as don't want instrument rt.jar, aspectj seems out of question (as ltw can't done on java core classes). potential tool seems jvm ti, not sure how achieve it. thanks, harish is there way notified on invocations constructor of string class (either directly or using reflection) without weaving or instrumenting rt.jar in compile time? you not compiling string class, can weaving @ runtime. , yes, way without creating custom jvm. further possible filter these notifications calls within sp

How to check oauth credentials are valid or not in Netsuite? -

i access token , secret, not working times . getting error invalid login attempt. don't know how solve issue. i have credentials oauth , these consumer key consumer secret account id token id token secret script id deployment id i want know oauth credentials group or individual valid or not . i think way hit suitetalk or restlet. if using restlet, must ensure user has access restlet in deployment options. i have working code using java (using scribe java library) can found here main method: oauthconfig authconfig = new oauthconfig("consumer_key", "consumer_secret", null, signaturetype.header, null, null); token token = new token("token_id", "token_secret"); oauth10aserviceimpl auth10aserviceimpl = new oauth10aserviceimpl(new netsuiteapi(), authconfig); oauthrequest request = new oauthrequest(verb.get, "restlet_url"); request.setrealm("ns_account_id"); auth10aserviceim

svg - Uncaught TypeError: ia.createSVGPathSegLinetoAbs is not a function -

after chrome browser got updated 48.0 version facing issue not able load svg editor .in console window can find message " uncaught typeerror: ia.createsvgpathseglinetoabs not function " have followed suggestions given @ earlier post alternative deprecated svg pathseglist request please give detail description of fix issue. please suggest me steps include pollyfill.js if thats fix issue . the instructions on polyfill page tell do. copy polyfill js file webserver. add script tag html page (or svg file). <script src="pathseg.js"></script> is there other problem preventing doing this?

node.js - not loading jquery files in nodejs with hapi -

i 've tried both code (commented , uncommented) in commented code shows error reply.file not fumction . in uncommented code shows error unknown handler file 've included inert. server.route({ // other assets if have method: 'get', path: '/public/js/{filename}', handler: { file: function (request) { return './public/js/'+request.params.filename; } // try{ // console.log(request.params); // reply.file( './public/js/'+request.params.filename); // } // catch(e){ // console.log(e); // reply.file( './public/js/'+request.params.filename); // } } }); see: http://hapijs.com/tutorials/serving-files#relative-paths use inert module server.register(inert, function () { server.route( { method: 'get', path: '/{param*}', handler: { directory: { path: path.n

c++ - class has no constructor forward declaration -

i'm trying create state engine in game different screens. id start screen, maybe file chooser in future, overworld map, menu screen, etc. when forward declare class says there no constructors. gamestate.h: #pragma once class gamestate { public: virtual ~gamestate() {} virtual void update() {} virtual void handleevents() {} virtual void draw(graphics& gfx) {} gamestate* getcurrentstate() { return currentstate; } void changestate(gamestate* state) { currentstate = state; } protected: sdl_renderer* renderer; gamestate* currentstate; }; gamestates.h #pragma once #include "gamestate.h" #include "texture.h" #include "keyboard.h" class titlegamestate; class introgamestate : public gamestate { public: introgamestate(sdl_renderer* renderer, keyboardclient& kbd) : kbd(kbd) { background = new texture("red.png", renderer); this-

oracle - how to write when-checkbox-changed trigger -

there 2 distinct checkboxes named chkbox_remove_bill, chkbox_print_bill in same block. user can select 1 checkbox @ time. when 1 checked 1 should unchecked. trigger in oracle forms 6i. i wrote on chkbox_remove_bill, when-checkbox-changed trigger declare val number; begin if checkbox_checked(:blk_remove.chkbox_remove_bill) val := 0 ; -- replace real unchecked value --:blk_remove.chkbox_print_bill := 1 ; else val := 1 ; -- replace real checked value --:blk_remove.chkbox_print_bill := 0 ; end if ; begin if checkbox_checked(:blk_remove.chkbox_remove_bill) <> false :blk_remove.chkbox_print_bill := 0 ; else :blk_remove.chkbox_print_bill := 1 ; end if ; end; exception when others call_note_alert('error'); end; i wrote on chkbox_print_bill, when-checkbox-changed trigger declare val number; begin if checkbox_checked(:blk_remove.chkbox_print_bill) val := 1 ; -- replace real unchecked value :bl

java - How to fetch JSON object from Json array in REstAssured -

can please me solve scenario: i new restassured , handling json in our automation script. have api response jsonarray i.e., [{ "id": 1002, "entity": "testcase", "fieldname": "textname", "displayname": "name" }, { "id": 1003, "entity": "testcase", "fieldname": "steps", "displayname": "teststeps" }] while automation, verification need fetch reponse. have tried below 1 not getting expected output string api = "/field/entity/testcase" response response = given().auth().preemptive().basic("test.manager", "test.manager").when().get(api); jsonobject jsonresponsebody = new jsonobject(response.body().asstring()); assert.assertequals(jsonresponsebody.getstring("fieldname"), "textname"); and tried this: jsonarray array = new jsonarra

angular - How to initialize ag-grid api in angular2 application -

i working on application built using angular2 typescript. using ag-grid display data in grid not able find grid api. /// <reference path="../../../typings/jquery/jquery.d.ts" /> import {component} 'angular2/core'; import {hero, heroservice} './hero.service'; var gridoptions; var heroservice; import * core 'angular2/core'; declare var ag: any; ag.grid.initialiseaggridwithangular2({ core: core }); @component({ selector: 'gridapp', template: `<ag-grid-ng2 #gapp class="ag-fresh" style="height: 300px; width:850px" [gridoptions]="gridoptions" [columndefs]="columndefs" [rowdata]="rowdata" enablesorting="true" enablecolresize="true" enablefilter="true"></ag-grid-ng2>`, directives: [(<any>window).ag.grid.aggridng2], providers: [heroservice] }) export class gridviewcomponent { private columndefs: object[]; private row

set - Issue with "contains" hashset method (Java) -

the following code not giving me result i'm expecting: public static void main (string[] args) { set<pair> objpair = new linkedhashset<pair>(); objpair.add(new pair(1, 0)); system.out.println("does pair (1, 0) exists already? "+objpair.contains(new pair(1, 0))); } private static class pair { private int source; private int target; public pair(int source, int target) { this.source = source; this.target = target; } } the result be: does pair (1, 0) exists already? false i can't understand why it's not working. or maybe i'm using "contains" method wrong (or wrong reasons). there issue, if add same value twice, accepted, being set objpair.add(new pair(1, 0)); objpair.add(new pair(1, 0)); it won't accept/recognize class pair i've created? thanks in advance. without own hashcode() implementation, java considers 2 pair objects equal if exact same object

android - FAILURE: Build failed with an exception cordova -

i trying create build file below command. cordova build android here's issue getting a problem found configuration of task ':zipaligndebug'. file '/home/user/applications/android-sdk-linux/build-tools/19.1.0/zipalign' specified property 'zipalignexe' not exist. from 1 of answers found , downloaded zipalign file , put file structure of sdk under tools directory. but got same error. what's wrong.

php - Email Validation on user registration form -

this question has answer here: how validate email address in php 8 answers my code not running properly. doing wrong? please suggest. here code: elseif(!preg_match("/^[_\.0-9a-za-z-]+@([0-9a-za-z][0-9a-za-z-]+\.)+[a-za-z]{2,6}$/i", $email)) { $errormsg= "error: did not enter valid email."; $code= "3"; } please use data validation filters available in php. http://php.net/manual/en/filter.filters.validate.php example. if (filter_var($email, filter_validate_email) === false) { echo("please enter valid email address"); }

Android: Expandable ListView with parent checkbox and child checkbox -

i want create expandable listview parent checkboxes , child checkboxes . whenever parent checkbox selected child checkboxes should selected. whenever child checkboxes selected/unselected parent checkboxes should behave appropriately. i have tried below adapter code after referring link create expandable listview group , child checkbox . public class filterlistexpandablelistitemadapter extends baseexpandablelistadapter { private map<explistgroupitem, list<explistchilditem>> groupchild; private list<explistgroupitem> groups; private activity context; private expandablelistview elv; public filterlistexpandablelistitemadapter(activity context, list<explistgroupitem> cities, map<explistgroupitem, list<explistchilditem>> cityarea, expandablelistview elv) { this.context = context; this.groupchild = cityarea; this.groups = cities; this.elv = elv; } @override public int getgroupcount() { retu

c++ - Storing lines of input into a vector -

in program trying take user lines of input names storing them vector. i wrote own code got runtime error telling me "string subscript out of range". this code const int len = 100; struct case{ public: int no_people; vector<string> names; vector<string> results; void set_data(){ cin >> no_people; int size = no_people; char line[len]; (int = 0; < size; i++){ cin.getline(line, len); names.push_back(line); } } } there's no need use char[] array, use std::string instead, given using it. note op: cin.getline() one: std::istream::getline(char*, int) the 1 ned use std::string 's one: std::getline(istream&, string&) struct case{ public: int size; vector<string> names; vector<string> results; void set_data(){ std::string temp; cin >> size; cin.ignore(); (int = 0; < size; i++){ std::getline(cin, temp);

Testing a Rails belongs_to model with Rspec -

i have profile model: class profile < activerecord::base belongs_to :user def fields_needed_for_completion [self.name, self.city] end def completed? !fields_needed_for_completion.any? { |f| f.nil? || f == "" } end end i trying determine how write unit tests model belongs_to association. in particular i'm not sure how setup data tests. so far, i've put following: describe profile subject(:profile) { factorygirl.create(:profile) } describe "fields_needed_for_completion" context "with fields missing" "returns fields nil" expect(profile.fields_needed_for_completion.all? &:blank?).to true end end end describe "#completed?" #to end end two questions: is fine use factorygirl create profile object instead of calling profile.create directly? there no attributes set in factory right (i.e., factory defined so: factory :profile do; end ) as can se

How to pass a new instance variable to JavaFX Controller using Java 7 -

this question has answer here: passing parameters javafx fxml 6 answers for simplicity have javafx app allows set/get name 2 different classes , display name on scene label. works no problem, can't how pass new instance variable different class "anotherclass" javafx fxml controller? from fxml controller did following reference new instance variable. public class fxmldocumentcontroller implements initializable { @fxml private label label; @fxml private void handlebuttonaction(actionevent event) { system.out.println("hello "); variable var = new variable(); baseline base = new baseline(); var.setname("rob"); base.printout(var); label.settext(base.printout(var)); label.settext(label.gettext() + base.set(var)); } @override public void initialize(ur

cortex m3 - ARM Thumb/Thumb-2 performance -

i working on arm cortex-m3 controller has thumb-2 instruction set. thumb mode used compress instruction 16-bit size. size of code reduced. normal thumb mode, why said performance reduced? in case of thumb-2, said performance improved per these 2 links: wikipedia arm.com improve performance in cases single 16-bit instruction restricts functions available compiler. a stated aim thumb-2 achieve code density similar thumb performance similar arm instruction set on 32-bit memory. what performance? can give few examples related it? when compared against arm 32 bit instruction set, thumb 16 bit instruction set (not talking thumb2 extensions yet) takes less space because instructions half size, there performance drop, in general, because takes more instructions same thing on arm. there less features instruction set, , instructions operate on registers r0-r7. apples apples comparison more instructions same thing slower. now thumb2 extensions take formerl

Springboot not serving css content from html file -

Image
good day, stack. i've been stuck on issue while, there lot of duplicates mine differs in code , hierarchy looks similar others, refuses work. i'll jump right in , show code. the app @springbootapplication public class bookstoreapplication { public static void main(string[] args) { springapplication.run(bookstoreapplication.class, args); } } the controller @controller public class homecontroller { @requestmapping("/") public modelandview showhome() { system.out.println("showing home page"); return new modelandview("test"); } } the config @configuration @enablewebmvc @componentscan("com.sean.books") public class webconfig extends webmvcconfigureradapter { @bean public viewresolver getviewresolver() { system.out.println("settings view resolver"); internalresourceviewresolver resolver = new internalresourceviewresolver(); resolver.setprefi