Posts

ios - Xcode 6 UIView set width to zero causes height equals zero as well -

ios - Xcode 6 UIView set width to zero causes height equals zero as well - i have next code below: - (ibaction)ontappedaddvalue:(id)sender { cgrect rect = self.progressview.frame; rect.size.width = rect.size.width + 1; self.progressview.frame = rect; nslog(@"%@", [nsvalue valuewithcgrect:self.progressview.frame]); } by pressing on button resize view, works if view has illustration rect (0, 0, 100, 10); but if set width 0 in storyboard , heigh 10 points, reason sdk thinks height should equal 0 after pressing button , invocation code above. please check video , sources if want see how works. when set uiview's width 0 in storyboard , seek increment pressing button, width incrementing reason height equal 0 in stroryboard has 10 pt. ios uiview uikit xcode6 cgrect

mariadb - Synchronous vs Asynchronous Clustering -

mariadb - Synchronous vs Asynchronous Clustering - i reading mariadd knowledge base of operations on galera cluster , came across this: the basic difference between synchronous , asynchronous replication "synchronous" guarantees if changes happened on 1 node of cluster, happened on other nodes "synchronously", or @ same time. "asynchronous" gives no guarantees delay between applying changes on "master" node , propagation of changes "slave" nodes. delay can short or long. implies if master node crashes, of latest changes may lost with lastly sentence, have understood though updates on slave in asynchronous cluster setup not performed @ same time, logs these updates bin log file updates beingness made on master. in case master crashes before info passed on slave, updates still go ahead when master restored since bin log file logged updates. can please tell me if understanding wrong , clarify on matter me please. thanks. ...

jquery - Is there a way to extract ID from autocomplete in Rails 3.2 app? -

jquery - Is there a way to extract ID from autocomplete in Rails 3.2 app? - the autocomplete implemented in bom model works fine. here autocomplete related code in bom model: belongs_to :part, :class_name => billofbasematerialx.part_class.to_s def part_name_autocomplete self.part.try(:name) end def part_name_autocomplete=(name) self.part = billofbasematerialx.part_class.find_by_name(name) if name.present? end after user selects part name generated autocomplete , save part id @part_id in controller , pass @part_id views farther processing. other part name in params[:bom][:part_name_autocomplete] , did not find object @part or related part id . can still retrieve part object name, prefer have part id instead. there way retrieve part id after autocomplete? jquery ruby-on-rails autocomplete

android - Google Map v2: to display multiple locations on Google Maps -

android - Google Map v2: to display multiple locations on Google Maps - i need point out 5 different locations on google maps. far got output successfully. there no errors in code. my problem points single location. have points different locations, example, 1 have point chennai , other have point delhi or else. mainactivity.java: public class mainactivity extends activity { // google map private googlemap googlemap; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); seek { // loading map initilizemap(); googlemap.setmaptype(googlemap.map_type_normal); double latitude[] ={13.07891,13.11602,13.11355,13.12511,13.08367}; double longitude[] = {80.28215,80.23166,80.29613,80.29554,80.23961}; // lets place 10 random markers (int = 0; < 5; i++) { ...

java - Bootstrap class doesn't have method (String host, int port) -

java - Bootstrap class doesn't have method (String host, int port) - trying create test client - server application , faced problem this channel channel = bootstrap.connect(host, port).sync().channel(); bootstrap's class doesn't have method connect arg types string, int. how can obtain channel? public class chatclient { private final string host; private final int port; public static void main(string[] args) throws exception{ new chatclient("localhost", 8080).run(); } public chatclient(string host, int port) { this.host = host; this.port = port; } public void run() throws exception { eventloopgroup grouping = new nioeventloopgroup(); try{ bootstrap bootstrap = new bootstrap() .group(group) .channel(niosocketchannel.class) .handler(new chatclientinitializer()); channel channel = bootstrap.connect(host, por...

How to Get Last Modified Date of excel file from Sharepoint using VBA? -

How to Get Last Modified Date of excel file from Sharepoint using VBA? - i need lastly modified info of excel file variable share point. i have excel file in sharepoint updated weekly. need lats modified date in variable proceed macro. please help. thanks in advance!!! check this solution exceluser.com: public function lastsavetime() string application.volatile lastsavetime = thisworkbook.builtindocumentproperties("last save time") end function this should work workbook stored in sharepoint library - tested sharepoint 2010 edit grab info sharepoint list: check link - there explained how able read list info excel. with link able listname , viewname. with 2 combined easiest way create new view list , add together alter column view - when info has been imported excel can read info , drop added table again. hope helps in right direction. (tested , working sp2010 list) excel-vba sharepoint

c++ - How to create a simple MFC uniform color HICON icon by code? -

c++ - How to create a simple MFC uniform color HICON icon by code? - this simple: have application uses clistctr in study mode , want assign icons entries. icons should simple square uniformly coloured icons 16x16. i know ( - i think know - ) how handle clistctr , cimagelist , challenge have following: the icon colour created code , arbitrary colorref the icons not created files in resources should created code also. if need be, there can 1 'template' icon in specific color replaced colorref above. essentially, want 'abuse' images kind of status-light in clistctr arbitrary colour. can give me short illustration code snipped for: creating hicon element 16x16 uniformly filled bitmap of colorref specified colour? try this: cdc dc; dc.createcompatibledc(null); m_bitmap.createbitmap(16, 16, dc.getdevicecaps(planes), dc.getdevicecaps(bitspixel), null); m_imagelist.create(16, 16, ilc_colorddb, 0, 1); hgdiobj hold = dc.selectobject(m_bitmap); dc...