Posts

Showing posts from May, 2013

I want to change reference of css in html files -

i want change reference of css file local server cdn , have got many pages ,rather changing them 1 one want change them ,i using visual studio 2010. if recall correctly there function in visual studio replace same code in entire project. try ctrl + shift + h.

javascript - CRM RibbonWorkbech - 3rd Party Librarys -

i have js function running on custom button visible on view not form. the function requires xrmservicetoolkit complete it's purpose, therefore on ribbon workbench on custom button added action call xrmservicetoolkit library, there needs function name. does know correct way working thanks my favorite "dummy" function purpose isnan <javascriptfunction functionname="isnan" library="$webresource:myjslib" />

c# - (Solved) DataGrid binding on a List in an Object -

i'm trying bind class schedulep on datagrid in wpf application. inside class there's class every day of week, inside list. have 7 columns, , i'm trying bind data of list inside these columns i tried setting {binding day[0].name} not display anything... displaying time string. any ideas? thanks in advance. //cs public class schedulep { public string time { get; set; } public list<_day> day = new list<_day>(); public class _day { public string name; public string subject; public bool lab; } } public main() { initializecomponent(); schedulep sch = new schedulep(); sch.day.add(new schedulep._day() { name = "asd", subject = "asd", lab = true }); sch.time = "ads"; list<schedulep> users = new list<schedulep>(); users.add(sch); programmgrid.itemssource = users;

dart - pub build fails due to urlencoded version numbers -

pub build throws following error resolving dependencies... error on line 1, column 1 of https://pub.dartlang.org/api/packages/source_maps/versions/0.10.0%2b2: invalid version constraint: not parse version it seems pub tries update https://pub.dartlang.org/packages/source_maps version 0.10.0+2. url contains version number , encoded + sign %2b . pub version 1.6.0, os fedora 19, ways overcome this? pub version 1.6.0 didn't yet support + in version constraints. need update newer version.

cordova - how to check file is exist or not in mobile sd card using javascript -

how check if excel file (.xlsx) exists on sd card on android using phonegap? if file exits, how import , export file contents through javascript? first add cordova file plugin project.then use following code : var reader = new filereader(); var filesource = <file path>; reader.onloadend = function(evt) { if(evt.target.result != null) { // if receive not null value file exists } else { // otherwise file doesn't exists } }; // going check if file exists reader.readasdataurl(filesource);

google maps - How to get nearby place in android when getting mylocation by lat and long -

i working on application mylocation latitude , longitude .now want users in 5 km within range .i using following code lat , long of user. if(gps.cangetlocation()){ getlatitude = gps.getlatitude(); getlongitude = gps.getlongitude(); latitude_mstring = string.valueof(getlatitude); longitude_mstring = string.valueof(getlongitude); log.d("value of lat , long", latitude_mstring+""+longitude_mstring); log.d("u r", "ur in register lati loni"); new thread(null,latlongthread,"").start(); } }else{ gps.showsettingsalert(); } marker = new markeroptions().position(new latlng(getlatitude, getlongitude)).title("me"); //marker.icon(bitmapdescriptorfactory.fromresource(r.drawable.)); cameraposition cameraposition = new cameraposition.builder().target(new latlng(getlatitude, getlongitude)) .zoom(12).build(); googlemap.animatecamera(cameraupdatefactory.newca

.net - C# WCF service | Word document -

i have angularjs app consuming wcf rest services. i have method in service create word document. i try using microsoft.office.interop.word i found won't work because it's on server-side... do have idea how can create word document in wcf service ? one way install ms word on server (but it's not practice). another way use open xml: https://msdn.microsoft.com/en-us/library/office/bb448854.aspx https://msdn.microsoft.com/en-us/library/bb735940%28v=office.12%29.aspx

plsql - oracle - write package output results to a file on client side -

so have this: create or replace package my_first_package procedure employee_analysis (p_id in number := 100, /*default formal parameter no arguments invokation */ p_percent in number := 0.01); /* -||- */ end my_first_package; create or replace package body my_first_package procedure employee_analysis (p_id in number := 100, p_percent in number := 0.01) cursor c_city (select l.city employees e inner join departments d on (e.department_id = d.department_id) inner join locations l on (l.location_id = d.location_id) e.employee_id = p_id); cursor c_manager (select e1.last_name employees e1 inner join employees e2 on (e1.employee_id = e2.manager_id) e2.employee_id = p_id); cursor c_department_name (select department_name employees e inner join departments d on (e.department_id = d.department_id) e.employee_id = p_id); /*---------------------------------

wordpress - CSS issue with created triangle and background overlap -

i trying make custom element on wordpress website. 1 of downward pointing triangles leading next page section, has number on top of it. my problem way have now, number becomes hidden behind background of section above, , can't number/text remain ontop, exacerbated when seen via mobile. changing z-index didn't help. this css using: /**to create triangle in middle of page **/ div.arrow-down-tan { width: 0; height: 0; border-left: 55px solid transparent; border-right: 55px solid transparent; border-top: 35px solid #f6f6f6; position: relative; left: 50%; margin-left: -55px; margin-top: -3%; padding: 0; z-index: 2; } /**to create text ontop of triangle **/ div.arrow-text { position: absolute; left: 50%; margin-left: -1.25%; top: -8%; color: grey; font-size: 20px; z-index: 10; } and html using (raw html within wordpress visual composer page section - may part of problem since preceding page section's background covering number)

messaging - Stream data aggregation sorted by timestamp -

i have use case receiving events client , of these events logically related (belong single session), , there definite ordering among events based on timestamp. now, want build solution should continue aggregating events until last 1 of particular group received in increasing order of timestamp. so, if event not in order received, should held on until events before them, received. , then, go ahead storing in data store such hbase based on key of particular group. the problem number of such incomplete groups @ time can in millions, , need can support fast appending incomplete group , holding events received unordered. how should go this? you use event stream processing or complex event processing frameworks http://en.wikipedia.org/wiki/complex_event_processing . write query/pattern, load in engine, feed engine events , query being continually updated or fires when time comes. i codehaus esper, it's open source, restricted in unpaid version, had implement storing of

eclipse - How to change project properties to run locally? -

i working on cvs in web project on eclipse, in address bar see: http://remote server address:8080/myproject/ . when needed test changes, had synchronize , commit able test. i want have own version of project on workspace different server, , address bar looks like: http://localhost:8080/myproject/index.jsp . i tried copy , paste, whenever put in workspace detects address of server. you need change server location, right click on project click run server , select local tomcat server , done. whenever done testing commit code. if doubt update here.

python - How to maintain multiple versions of a library -

this question exact duplicate of: does python have versioned dependency management solution? 1 answer are there practical solutions maintaining multiple versions of library in python environment? for example, have 1 web framework using pluggable design. under framework, there can several applications registered (application , framework running in same python process). each application have business logic code , common code, common_httplib . problem how can ensure multiple versions of common_httplib don't conflict each other? each application expected use own copy of common_httplib different versions. absolute import, import hook, imp etc. don't work because common_httplib may import other third party libraries may have same version problems. following code structure of applications. under $framework_home/apps/ , there is: /app1 /common_htt

android - Changing the fragmentmanager not recognize the buttons and fails -

very good. met problem had when declaring buttons on other fragments contain fragment. forum , @shudy solve problem. last post: when declaring buttons different fragments not recognize but needs had change way had embedded fragment of buttons , when run app. error not how fix. this code modified public class grp1fragment extends fragment { private int contarrayask = 0; private int contright = 0; private int contfailed= 0; private button buttontrue; private button buttonfalse; private button buttonnextask; private button buttonsharescore; private view view; string[] arrayfragmentaresultsgrp1 = new string[]{"0","1","0","1","0","1","0","1","0","1",}; private fragment[] fragmentschangeask = new fragment[]{ new grp1fragmentp1(), new grp1fragmentp2(),

Why is a loop not working inside a passive informatica java transform? -

i looping through array in java transform, writing of elements outputs in same row (passive). loop stops @ 1st iteration (int c = 1 ; c < arr.length; c++){ string fldname = string.valueof(c); int fldidx = integer.parseint(prop.getproperty(fldname)); if( isoutfldprojected( fldname) && (!issetnullcalled( fldname))){ outputbuf.setstring(outrownum, fldidx, arr[c]); } if arr contains 16 elements , exiting in first iteration, must throw kind of error or exception. should getting @ output console. or loop may iterating 16 times without meeting if condition : if( isoutfldprojected( fldname) && (!issetnullcalled( fldname))) try debugging. if missed info please provide.

ajax - ASP.NET MVC jQuery mobile like pages mechanism -

to give more appish experience asp.net mvc application, make links other pages (actions in mvc) loaded using ajax (displaying loading sign while request being processed). have been quite successful doing jquery mobile project doing prefer not use it. in part because loading jquery mobile css previous of site disrupted. is there similar page mechanism in asp.net? better if features such transitions , pre-rendering of pages available too, jquery mobile does. an example of try achieve i have controller this: public actionresult list() { return view(); } public actionresult dashboard() { return view(); } then on dashboard view link: <a href="@url.action("taskpage", "list")">list</a> clicking link request list page server , start slide effect transition 1 page other. thanks ideas , knowledge on that!

I am looking for regex which returns false if it finds particular words anywhere in the paragraph in Java -

in our application allowing users write html scripts , don't want save script if contains particular words onmouseover, onclick etc. e.g. if user enter script below regex should return false. if not contain words should allow user has entered. <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td><b onclick="alert('wufff!')">click me!</b></td> <td width="190"><b onmouseover="alert('wufff!')">click me!</b></td> </tr> </tbody> i tried regex , did not work: ^(?=((?!onmouseover\s*=|onclick).)*$)(?=[\p{l}\p{p}\p{n}\p{so}\p{sc}\s+%26&=&amp%\\\-_|<>/]+)$ you can use alternatives check if unwelcome words appear in input text. (?s)^((?!cellpadding|cellspacing|onmouseover).)*$ i guess question not parsing html , validating input in specif

angularjs - Run controller in angular js -

i new angularjs made 1 example call controller not able call controller ... this sample code <head> <meta charset="utf-8"> <title>insert title here</title> <script type="text/javascript" src="js/jquery-1.9.0.js"></script> <script type="text/javascript" src="angularjs/angular.min.js"></script> </head> <body ng-app=""> <div data-ng-controller="mycontroller"> </div> <script> function mycontroller($scope, $http) { alert("alert"); } </script> </body> try this <body ng-app="learning"> <div data-ng-controller="mycontroller"> </div> <script> angular.module("learning", []) .controller("mycontroller", function($scope, $http) { alert("

c# - Read excel file stored in SharePoint Document -

i have excel file stored in sharepoint document library. need read excel file , data programmatically file path. string rangename = "sheet1!d43"; string value = getrangevalue("abc.xslx", rangename); string url = "http://sharepoint1.net/excel/_vti_bin/excelrest.aspx/docs/" + workbookname + "/model/ranges('" + rangename + "')?$format=html"; here, when keep link in browser, desired value in html. now, how can in c# code. if specified query works, depending on preferences @ least following .net components available: httpwebrequest class webclient class httpclient class (.net >= 4.5) below provided example consuming sharepoint excel rest services based on webclient class . public class excelclient : idisposable { public excelclient(uri weburi, icredentials credentials) { weburi = weburi; _client = new webclient {credentials = credentials};

Block change value of variable when refresh page in javascript -

i have 2 variables name first , last. when window size less 768px, want first = 1 , last = 5. , when window size greater 768px, first = 1 , last = 3. here code. var first = 1; var last = 5; window.onresize = function(){ var w = window.innerwidth || document.documentelement.clientwidth || document.getelementsbytagname('body')[0].clientwidth; if (w <= 768){ first = 1; last = 3; } if (w > 768){ first = 1; last = 5; } } it's worked. when window size 600px (less 768px), press f5 (refresh), first variable = 1 , last = 5 (these values changed). want when press f5, if window less 768px, still 1 , 3. can now? me. thanks. this how should be. so now, have 1 function set variables per width of window. call 2 times when page loaded, should set variables (first,last) per size of window when page resized, should set variables again. var first = 1; var last = 5; function setvari

c# - Can't get Value and DisplayMember from CheckedListBoxControl bound to LINQ -

the question has been asked before on stackoverflow might think it's duplicate, i've tried number of solutions, i'm still stuck. i have winforms checkedlistboxcontrol bound linq query , fail value , displaymembers. below tries value , displaymember values: var avail = c in dc.costcenters select new { item = c.costcenterid, description = c.costcenterid + ": " + c.description }; mylist.datasource = avail; mylist.displaymember = "description"; //retrieval: foreach (var item in mylist.checkeditems) { datarowview row = item datarowview; //try 1: row empty string displaymember = item["description"]; //try 2: cannot apply indexing [] expression of type 'object' var x = item[0]; //try 3: cannot apply indexing [] expression of type 'object' row3 = ((datarowview)mylist.

Java IRC, processing login command correctly -

for school have create java irc client without using libraries (pircbot example). have created bot called "skynet". bot handles commands send it. but login function need command processed senders username , not bots (skynet) bufferedwriter writer = new bufferedwriter( new outputstreamwriter(socket.getoutputstream())) else if (line.contains("!login")) //!login <username> <password> { string[] parts = line.split(" "); string user = parts[4]; string pass = parts[5]; string inpuser = user; string inppass = pass; bufferedreader br = new bufferedreader(new filereader("c:/users/leroy/documents/users.txt")); { string userpass; //user#pass while ((userpass = br.readline()) != null) { string pass = userpass.split("#")[1]; string user = userpass.split("#")[0]; if (inpus

php - SQLite Alternatives -

i looking alternative sqlite. have application has lighttpd built , serves php scripts interact multiple instances of application. architectural questions aside, reason, person wrote chose use sqlite database php scripts -- store , retrieve information scripts themselves. such, appears have locking issues. deal programmer used stuff this: $executed = $storedb->exec($updatesql); while($executed === false && $i<10) { $storedb->close(); $storedb = new sqlite3('c:/path/path2/lighttpd/store.db'); $pragmadb = "pragma journal_mode=wal"; ($storedb->exec($pragmadb)); $executed = $storedb->exec($updatesql); $i++; } i understand why sqlite chosen can copied on , over, not need installed server, , small. however, multiple instances of application hitting php scripts, concurrently, can see causing problems: information retrieval operations fail , data not updated. warnings in log this. an update statement [07

ios - change first responders in uitableviewcell textfield -

i developing app using storyboard. there custom class uitableviewcell ( moneyentrytableviewcell ) contains uitextfield . question: want move focus other text fields, added in other cells, press previous/next ( <> ) in keyboard. in .h file @interface moneyentrytableviewcell : uitableviewcell @property (strong, nonatomic) iboutlet uilabel *lblmemname; @property (strong, nonatomic) iboutlet uitextfield *textamount; @property (strong, nonatomic) iboutlet uilabel *lblmemid; // hidden @end in .m file @implementation moneyentrytableviewcell @synthesize lblmemname,textamount; - (void)awakefromnib { } - (void)setselected:(bool)selected animated:(bool)animated { [super setselected:selected animated:animated]; } @end in controller, cellforrowatindexpath func... - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { moneyentrytableviewcell *cell = (moneyentrytableviewcell *)[tableview dequeuereusablecellwith

sql server - Import Excel To SQL -

hello have little issue i'm unable resolve. here context: i have 64-bits sql server 2014 instance on computer , 32-bits office installation (on component installed excel, no word, no office tools, no office shared features...). try import data stored in .xls file on network drive on daily basis, i'm unable find right way it. here's why: i try command: insert bbimport select * opendatasource('microsoft.jet.oledb.4.0','data source=w:\..\aaa.xls;extended properties=''''excel 8.0;hdr=yes''''')...[sheet5] after resolving permission issues, got error: "the 32-bit ole db provider "microsoft.jet.oledb.12.0" cannot loaded in-process on 64-bit sql server." note: tried microsoft.ace.oledb.12.0, same error. i try install microsoft ace 64-bits, not compatible 32-bits office installation -_-... however succeed import data using import wizard of sql specifying followings: data sourc

python - Combine two lists based on a column -

i trying combine 2 lists based on field (similar performing inner join) list : name, position, employee id sample entries 1) bob, admin, 32443 2) jack, security, 5464 list b: position, tasks sample entries 1) admin, check system files 2) admin, add users 3) admin, delete users 4) security, perform review 5) security, check settings i need final output this: bob, admin, 32443, check system files bob, admin, 32443, add users bob, admin, 32443, delete users jack, security, 5464, perform review jack, security, 5464, check settings please guide me how include such code in simple loops. new python thank in advance take cartesian product, skip items fail join condition: ((name, position, emp_id, tasks) name, position, emp_id in lista position2, tasks in listb if position == position2) if use itertools , can shorten avoid nested for loops: ((name, position, emp_id, tasks) (name, position, emp_id), (position2, tasks)

Matlab: Bar chart x-axis labels missing -

Image
i'm using following code create bar chart in matlab. a = [1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9] bar(a) set(gca,'xticklabel',{'one','two','three','four','five','six','seven','eight','nine','zero','one','two','three','four','five','six','seven','eight','nine'}) code works fine except x-axis labels don't appear on corresponding position on x-axis. how resolve issue? when set xticklabel , telling matlab replace text each tick currently new text provide. if run first 2 lines, see matlab default has put xticks on 0:2:20. can resolve issue first telling matlab put ticks each individual bar, , re-labeling these ticks: a = [1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9] bar(a) set(gca, 'xtick', 1:length(a)) set(gca,'xticklabel',{'one','two','three','four','five

c# - More effective way to change runtime terrain Unity? -

in unity game players able chop down trees using example axe. tree gets removed terrain , replaced falling tree prefab. works fine in small scale. looking more effective way though, because: the entire terrain needs reloaded if tree cut down. if terrain large , complex means entire game freezes few seconds whenever tree cut down. it works poorly in multiplayer. in order terrain stay in sync, players terrain needs reloaded each time tree cut down. means everyone's game freezes every few minutes. i have thought "chunking" terrain entire terrain built , don't know of way break parts after has been made. any ideas appreciated! i'm intermediate level programmer don't need write code me here, need idea or suggestion best way this?

jsf ajax process different parts of form -

i have detected strange behaviour of ajax: i have 1 form ajax-components (e.g. buttons or textfields ajax-submit on focuslost). when process e.g. first textbox, fine in backing bean (viewscoped). when process second textbox seconds later, values first submit lost completely, , second value in backing bean. is normal?

How to do exception handling on multiprocessing python -

i use multiprocessing in python code. python code imports pysnmp , multiprocessing. half of time code runs smoothly. unfortunately half of other time code doesn't work , shows exception "pyasn1.error.pyasn1 error: type tagset". code first creates "multiprocessing.dummy.pool(numofthreads)" number of threads. calls "p.map(sendsnmpget, [iprange + '.' + str(x) x in range(1,256)])" takes function "sendsnmpget" thread function, , calls function 255 times values of "1-255". code: from pysnmp.entity.rfc3413.oneliner import cmdgen pysnmp.proto.rfc1902 import integer, ipaddress, octetstring import multiprocessing.dummy import multiprocessing def snmpget(ip, community, oid, version = 1): generator = cmdgen.commandgenerator() comm_data = cmdgen.communitydata('server', community, version) # 1 means version snmp v2c transport = cmdgen.udptransporttarget((ip, 161),timeout=0.5,retries=2) real_fun = getattr(gene

F#, MailboxProcessor and Async running slow? -

background. i trying figure out mailboxprocessor. idea use kind of state machine , pass arguments around between states , quit. parts going have async communication made sleep there. it's console application, making post nothing because main thread quits , kills behind it. making postandreply in main. also, have tried without let sleepworkflow = async , doesn't make difference. questions. (i doing wrong) go24 not async. changing runsynchronously startimmediate makes no visible difference. end should somewhere below getme instead. @ same time done printed after fetch. isn't control supposed t returned main thread on sleep? go24, wait go24 1, end fetch 1 done getme ... run time terrible slow. without delay in fetch it's 10s (stopwatch). thought f# threads lightweight , should use threadpool. according debugger takes appr 1s create every , looks real threads. also, changing [1..100] "pause" program 100s, according processexplorer 100 thre

What should a C# object initializer for a Dictionary<string, string[]> look like? -

i trying declare dictionary values string arrays. how can this? i tried following code (which not work): dictionary<string, string[]> newdic = new dictionary<string,string[]> { {"key_0", {"value_0.0", "value_0.1"}}, {"key_1", {"value_1.0", "value_1.1", "value_1.2"}}, } you need specify values arrays like: using implicitly typed array {"key_0", new[] {"value_0.0", "value_0.1"}}, or explicitly specifying type {"key_0", new string[] {"value_0.0", "value_0.1"}}, so class like: public static class newclass { private static dictionary<string, string[]> newdic = new dictionary<string, string[]> { {"key_0", new[] {"value_0.0", "value_0.1"}}, {"key_1", new string[] {"value_1.0", "value_1.1", "value_1.2"}}, };

wcf - Running several update stored procedures in C# code -

i have rest wcf service depend on pass update method going update column. example can update addresses, phone numbers, emails,... each of these updates run own stored procedure update. not sure if code ok problem happened when 2 users try update email address @ exact same time, updates second user email address 1st user. public model.returnresponse updatecustomerprofile(model.customer customerdata) { model.customer customer = getcustomerinfo.instance.returncustomerinfo(); model.returnresponse rs = new model.returnresponse(); dal.datamanager dal = new dal.datamanager(); foreach (var pr in customerdata.gettype().getproperties()) { string name = pr.name; object temp = pr.getvalue(customerdata, null); if (temp int) { int value = (int)temp; if (value != 0) {

ios - Framework Errors in Parse App ParseFacebookUtils -

i updated parse framework newest version in app, , getting ton of errors in app, framework related: undefined symbols architecture x86_64: "_objc_class_$_fbsdkaccesstoken", referenced from: objc-class-ref in parsefacebookutilsv4(pffacebookutils.o) objc-class-ref in parsefacebookutilsv4(pffacebookauthenticationprovider.o) "_objc_class_$_fbsdkapplicationdelegate", referenced from: objc-class-ref in parsefacebookutilsv4(pffacebookutils.o) "_objc_class_$_fbsdkloginmanager", referenced from: objc-class-ref in parsefacebookutilsv4(pffacebookauthenticationprovider.o) "_objc_class_$_fbsdksettings", referenced from: objc-class-ref in parsefacebookutilsv4(pffacebookauthenticationprovider.o) "std::string::find_first_of(char const*, unsigned long, unsigned long) const", referenced from: macstringutilspfc_::integervalueatindex(std::string&, unsigned int) in parsecrashreporting(string_utilities.

php - $_FILES empty after multiple files upload -

i trying upload multiple files mysql database. everything works fine untill surpass around 7 8 mb. lot of internet reactions should have php.ini settings, i've tried check them. php version 5.2.17 code below: <?php include_once "mysql.php"; ?> <body> <form action="" method="post" enctype="multipart/form-data"> <label for="album">album</label> <input type="text" id="album" name="album" /><br> <label for="fotos">foto's</label> <input type="file" id="files" name="files[]" multiple accept="image/*" /> <input type="submit" value="upload" /> </form> <?php echo "<br>upload_max_filesize: ".ini_get('upload_max_filesize'); echo "<br>post_max_size: ".ini_get('post_max_size'); echo "<br>memory_limit: &

Python Installing Cython & Numba but no vcvarsall.bat despite Visual C++ 2010 -

i use python 3.4 i try install cython , numba keep getting "unable find vcvarsall.bat". i googled solution , found need microsoft visual c++ 2010 installed (for python 3.4). so installed it. and tried installing cython , numba ---> fail. and must type "set vs90comntools=%vs100comntools%" in command prompt, did, c:\users\dorky>set vs90comntools=%vs100comntools%. and tried installing cython , numba again ---> fail. not enough that, went environment variables set vs90 vs100 thing manually. and tried installing cython , numba again ---> fail. so how can solve special "unable find vcvarsall.bat" problem? what heck special vcvarsall.bat user must install microsoft's programs in order use it? why not extract out vcvarsall.bat file independent file , copy&paste file or directory needs , not bother rest of software package? why not python team extract out vcvarsall.bat , incorporate python packages whenever user insta

does the starting address of the section in linker script is applicable to only virtual memory -

i have read linker script. have got 1 confusion regarding allocating memory. when define section starting want load file. 1) memory locations have specified applicable virtual memory ( . = 0x10000 ). in linker script (and resulting binary), addresses addresses. whether these meant virtual or physical solely depends on loader (which might tiny bootloader @ system init doesn't know virtual addresses or full blown os provides sophisticated virtual environment). so it's program brings binary memory decides whether addresses interpreted virtually or physically, not linker script. unless tell specific environment, can't tell more.

java - Wicket AjaxLink isLinkEnabled() = false renders a clickable span -

i'm using wicket 6.11 , have come across strange error. have wicket ajaxlinks icons inside of them on large application, islinkenabled() can return false based on various circumstances. when does, renders link disabled expect (a span tag em tag inside it), when click on icon, event still fires! example code: ajaxlink<object> button = new ajaxlink<object>( "editlocationbutton" ) { private static final long serialversionuid = 1l; public void onclick( ajaxrequesttarget p_target ) { // things } /** * @see org.apache.wicket.markup.html.link.abstractlink#islinkenabled() */ @override protected boolean islinkenabled() { return super.islinkenabled() && getselectedlocation() != null; } }; html file: <td style="width:0%"> <a href="#" wicket:id="editlocationbutton" class="editbutton iconbutton"> <wicket:message key=&qu

javafx - Why -fx-border-color reset border radius of TextField? -

Image
i want change background , border color of textfield use javafx css. don't understand why -fx-border-color reset border radius of textfield? as can see second textfield doesn't have border radius. sample/style.css : .validation-error { -fx-background-color: #fff0f0; -fx-border-color: #dbb1b1; } sample/main.java package sample; import javafx.application.application; import javafx.geometry.insets; import javafx.scene.scene; import javafx.scene.control.textfield; import javafx.scene.layout.vbox; import javafx.stage.stage; public class main extends application { @override public void start(stage primarystage) throws exception{ textfield txtwithoutstyle = new textfield(); txtwithoutstyle.settext("without style"); textfield txtwithstyle = new textfield(); txtwithstyle.settext("with style"); txtwithstyle.getstyleclass().add("validation-error"); vbox root = new vbox();

ios - Get frame of a view after autolayout -

i have method: - (void)underlinetextfield:(uitextfield *)tf { cgfloat x = tf.frame.origin.x-8; cgfloat y = tf.origin.y+tf.frame.size.height+1; cgfloat width = self.inputview.frame.size.width-16; uiview *line = [[uiview alloc] initwithframe:(cgrect){x,y,width,1}]; line.backgroundcolor = [uicolor whitecolor]; [self.inputview addsubview:line]; } that underlines input uitextfield ; textfield has width changes depending on screen width (nib autolayout). i have tried using [self.view setneedslayout]; [self.view layoutifneeded]; and [self.inputview setneedslayout]; [self.inputview layoutifneeded]; before call method no change in result. resulting line wider uitextfield (it matches original size in nib). i want resulting frame of uitextfield in question after being processed autolayout solution: (using 'masonry' autolayout) - (uiview *)underlinetextfield:(uitextfield *)tf { uiview *line = [[uiview alloc] initwithframe:cgrectzero];

android - BluetoothAdapter variable not being found? -

Image
hello working on android ble project , running problem can't check if bluetoothadapter variable null? why that. should straight forward? did forget import something?

Android.mk - what toolchain used by default? -

what toolchain used default when compile through android.mk ? , how change toolchain ? the default toolchain gcc-4.6 long time. has changed gcc-4.8 in ndk r10d version (currently latest version). you can choose use toolchain through modifying ndk_toolchain_version variable, through ndk-build call (example: ndk-build ndk_toolchain_version=clang3.4 , or setting inside application.mk file. example: ndk_toolchain_version := clang3.4

c# - Eternal loading time with Update statement in ASP.NET -

i have code: <asp:sqldatasource id="updatefullnamesql" runat="server" connectionstring="<%$ connectionstrings:userqueries %>" providername="<%$ connectionstrings:userqueries.providername %>" updatecommand="update users set firstname = :changefirstname, lastname = :changelastname (username = :currentusername)"> <updateparameters> <asp:controlparameter controlid="changefirstnamebox" name="changefirstname" propertyname="text" type="empty" /> <asp:controlparameter controlid="changelastnamebox" name="changelastname" propertyname="text" type="empty" /> <asp:controlparameter controlid="usernamebox" name="currentusername" propertyname="text" type="empty" /> </updateparameters> </asp:sqldatasource> afte

eclipse - displaying Java double value -

here's piece of java code: import java.util.*; public class javatests { public static void main(string[] args) { double decimal = 0.60; system.out.println(decimal); } } i'm trying print 0.60, compiler prints 0.6. how can print 0.60? thanks! numberformat formatter = new decimalformat("#0.00"); double decimal = 0.60; system.out.println(formatter.format(decimal));

mysql - displaying revenue for each year -

i'm using northwind sql database. not familiar, has of following tables: orders, orderdetails, products, categories (orders.orderid = orderdetails.orderid) (products.productid = orderdetails.productid) (categories.categoryid = products.categoryid) orders has column named "orderdate" (formatted dd/mm/yy) orderdetails has column named "price" i need display total "revenue" each year. is, sum of "prices". idea how so? try this, don't have complete table structure. way of group mysql select sum (od.price) revenue orderdetails od inner join orders o on orders.orderid = orderdetails.orderid group year(o.orderdate);

c# - BitmapImage not loading with correct reference and .dll -

Image
i'm attempting bitmapimage in windows phone 8.1 pivot app, cannot work using system.windows.media.imaging; correct .dll any advice great, cheers. ps. tried rebuilds. you want use windows.ui.xaml.media.imaging.bitmapimage , not system.windows.media.imaging.bitmapimage . the former part of windows runtime api windows store or windows phone apps, whereas latter wpf. can't use wpf in windows store or windows phone app.