Posts

html - Divs displaying outside of container div -

there strange issue in simple html structure. here html code <body> <div class='datepicker' style="display: inline-block"> <div id="daydiv" class='daydiv borderme'> <div id='uparrowdivs' class="borderme" style='display: inline-block; height:10%;width:100%;'> <div class='uparrowdiv borderme'> </div> <div class='uparrowdiv borderme'> </div> </div> </div> </div> </body> here 2 innermost divs displaying outside of parent div has id "uparrowdivs". here jsfiddle link can see whats going on in stylesheet. add rule .uparrowdiv vertical-align: top; see the fiddle

extjs - Sencha touch 2 Event listeners in Ext.Define -

i reading sencha docs event handling , listeners config. in documentation of the listener config found note : note: bad practice specify listener's config when defining class using ext.define(). instead, specify listeners when instantiating class ext.create(). i have seen number of s.o. answers have listeners in ext.define() . also came accross blog post the evils of ext.define , listeners think more relevant ext-js sencha touch 2. , new sencha touch. can explain difference cons of adding listeners in ext.define() , difference make? the problem pretty basic. if have listener property in class, moment create instance of class , add listener property particular instance, gong override ext.define 's listener property. this: var obj = { foo: { bar : 'hello world' } }; obj = ext.merge(obj, { // here ext.merge show how 2 objects can merged foo : 'i got changed!' }); will bar property of foo object? no. identical prope...

dependency injection - Equivalent of @ImplementedBy in Spring -

what equivalent of guice's @implementedby annotation in spring di? (i googled no results.) there not exist jit default binding in spring. can set 1 implementation dependency or use naming qualifier @named or @qualifier annotation specify implementation static binding (not equivalent @implementedby guice implementation). i created spring extension enabling jit-binding. library add @implementedby annotation spring. see https://github.com/devacfr/spring-implementedby , give me feedback

asp.net mvc 4 - SignalR connection error -

i have simple chat client project running using signalr , mvc identical asp.net one (i'm experimenting - client code identical). i've wired following watch things occur: $.connection.hub.statechanged(function(state){console.log(state)}); the connections working fine i've noticed if shut down iis express , watch console in chrome, see this: //as expect state goes connected connecting object {oldstate: 1, newstate: 2} //then times out after 30 secs , throws awesomeness @ console websocket connection 'ws://localhost:61623/signalr?transport=websockets&connectiontoken=vdf640emz7pfmtoc6vxle_5-7qs5dzmszv4spbqo7efemsssitnwkszreqfl4mgq8txitg2xb5f-2zdhp-2t3shpzn2hemty1zmewlb8non5oruvexasoark9xjeo5b00&connectiondata=%5b%7b%22name%22%3a%22chathub%22%7d%5d&messageid=b%2c7%7cl%2c0%7cm%2c0%7cn%2c0&tid=0' failed: websocket closed before connection established. jquery.signalr-1.0.1.js:1117 //reconnecting disconnecting - why error above? object {oldstate:...

centos - Linux Process Monitoring Using Statsd and Graphite -

i monitor linux processes (log cpu , ram usage statistics , display them graphically on period of time) using statsd , graphite. have configured statsd , graphite run services. how can send linux resource usage statistics (namely cpu , ram) statsd can graphically viewed graphite web ui? thanks. we use collectd (collectd.org) our os-level metrics graphite. don't go through stated, collectd has own summarizing functionality.

mysql - Representation of a simple messeger application using a database -

in application there users, conversations , messages. more 2 users participate in conversation. i thinking this:(---- relations, capital_words entities) message ---- conversation ---- user msg contains sender , content sent; conversation contains users participate in conversation; but not enough because sender user , there link between msg , user. if add relation have problem because sender should user participate conversation.(there is-a relation if i'm not mistaking) i don't know how model problem. if conversation between 2 users, need message , user. in fact conversation entity pretty strange. if eliminate conversation initial problem have add in message field contains list of partecipants. in way miss concept of conversation , if have retrieve msgs related conversation need join of data :) . --> impractical i appreciate every suggestion. don't know if database idea kind of application. thought not difficult work with.(keeping in mind can lose perfo...

How can I get the date of the last Full Crawl in Sharepoint 2010 using Powershell? -

i can run following current crawls , there determine last crawl completed date. # search app sharepoint $searchapp = get-spenterprisesearchserviceapplication "my search service" get-spenterprisesearchcrawlcontentsource -searchapplication $searchapp $contentsource = get-spenterprisesearchcrawlcontentsource "mycrawl" -searchapplication $searchapp $contentsource.crawlcompleted but last time any crawl completed. want date of last full crawl. i can see information in crawl history. when try , crawl history (see http://blogs.msdn.com/b/carloshm/archive/2009/03/31/how-to-programmatically-export-the-crawl-history-to-a-csv-file-in-powershell.aspx ) using below don't seem object can work (its 1 big string container far can tell) , full of ids. $s = new-object microsoft.sharepoint.spsite("http://portal"); $c = [microsoft.office.server.search.administration.searchcontext]::getcontext($s); $h = new-object microsoft.office.server.search.administ...