Posts

css - Force HTML Tables To Not Exceed Their Containers' Size -

this question has been asked several times, none of answers provided seem me: see in action here: http://jsfiddle.net/blam/bsqnj/2/ i have "dynamic" (percentage based) layout 2 columns. .grid { width: 100%; box-sizing: border-box; } .grid > * { box-sizing: border-box; margin: 0; } .grid .col50 { padding: 0 1.5%; float: left; width: 50%; } in each of these columns have table supposed use full column width. .data-table { width: 100%; } .data-table td { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } my problem of columns in table have content needs truncated fit in given width of table. not happen, though. 2 tables overlaying each other. requirements: needs percentage based. can't set absolute sizes. each rows' height must not grow beyond 1 text line (which happen if remove white-space: nowrap) must work in chrome, firefox , internet explorer 8+ can't display tables below each o...

Grails - How to use named queries inside Criteria -

i have case where, need use named query inside criteria. doesnt work! is possible use named query inside criteria? if yes how? you can't. but can use namedquery 1 class in namedquery of class. refer this jira issue . (mainly jeff's comment)

c# - Access To A Resource Text File Within My Application -

i building windows phone 8 application struggling following problem. although can access text files on computer , cannot access text file created in resource folder created in application. does know how access textfile in folder belongs application ande use streamreader read it? thank ! you use application.getresourcestream method passing in uri of file, in order access streamresourceinfo object returned, has stream property access (which can pass streamreader , on). as uri, depends on build action (from properties window) have set file, ie. whether resource or content. if it's resource, uri should be: new uri("/assemblyname;component/path/file.txt", urikind.relative); if it's content, uri should be: new uri("path/file.txt", urikind.relative); note 'assemblyname' name of assembly project contains file. , 'path' forwardslash-separated path file within project taking account folder , subfolders in.

Issue with GlobalExceptionHandler Sharepoint 2010 -

i have fatal error not know how solve,even after several days of trying. error have : "could not load file or assembly 'globalexceptionhandler, version=1.0.0.0, culture=neutral, publickeytoken=ed6585c9914bae60' or 1 of dependencies. system cannot find file specified." for more details: -i had never before seen error when deployed project encountered error cited above... -so ,after change, assume action mentioned before caused me error. -for this, executed orders @ "windows powershell" as: stsadm-o-name deletesolution solutionname.wsp remove solution completely. -after that, made sure project deployed ​​is no longer in server. -later, when logged the" sharepoint central administration" on port 24427. ,in hoping not see error anymore ,i saw error has not disappeared . so , no longer have access " sharepoint central administration",as error remains. i grateful proposal you. thank & sorry english. . please t...

c# - How to remove the null value exception in the following statement -

the following code raising null value exception record rec = (record)obj.records.where(x => x.id == no).singleordefault(); there 3 potential places nullreferenceexception occur ( edit: know id int ): obj.records if obj null records.where(...) if records null x.id in lambda if there null entry in obj.records enumerable (ie x in context null ). here wouldn't (assuming compiles): singleordefault throw exception if there more one entry. if there isn't, return null reference type, or default value value type. (record) casting. since there no compiler error, assume record class. if there value, throw exception if it's invalid cast (and not null exception). (record)null valid reference type. you should debug , step through find out causing exception.

ios - Allocate any mutable object with immutable class or vice versa -

this may sound pretty strange people.. went on ask this.. obviously, no 1 wants it.. make concept clearer, want ask. this: nsstring *mystring=[[nsstring alloc]init]; nsstring *mystring=[nsstring string]; as far understand, gives pointer object of nsstring class, but, if this: nsstring *mystring=[[nsmutablestring alloc]init]; nsstring *mystring=[nsmutablestring string]; if happens, kind of class "string" belong.. , since have initialized mutable class, can i send messages of nsmutablestring class "mystring", object of nsstring class ?? whatever case can know concept behind this.. also, can in case of arrays, dictionaries , many other calsses. yes. type of object 1 used alloc method. if allocated nsmutablestring, object member of nsmutablestring class. nsstring *mystring=[[nsmutablestring alloc]init]; what's going on it's have pointer allocated object type of it's parent class, compiler not see methods of nsmutablestring , warn...

arrays - How to display dynamic marker label info from database -

for past month or have been trying solve problem. checked website extensively, including tutorials find, , bought book. posted have had no luck. have more info help. have map in filemaker database. works fine, except 1 thing change. when roll on each marker see label show customers name, instead of static "marker 1", "marker 2", etc. included link dropbox has html, markersarray custom function , info that's passed html may needed. through trial , terror , can't figure out how make happen. or guidance appreciated. steve https://dl.dropboxusercontent.com/u/71328624/googlemapsdocs/html.txt https://dl.dropboxusercontent.com/u/71328624/googlemapsdocs/ss1geo.png instantiate variable calculates company name inside of loop. replace "marker" +i variable.