Posts

NHibernate + AppFabric cache -

NHibernate + AppFabric cache - i utilize appfabric nhibernate 2l cache provider. i have installed appfabric cache service, configured cache cluster , 1 cache apart default one: <datacache size="small"> <caches> <cache consistency="strongconsistency" name="nhibernate"> <policy> <eviction type="lru" /> <expiration defaultttl="10" isexpirable="true" /> </policy> </cache> <cache consistency="strongconsistency" name="default"> <policy> <eviction type="lru" /> <expiration defaultttl="10" isexpirable="true" /> </policy> </cache> </caches> <hosts> <host ...

ios - UITableViewController doesn't work properly in xcode 4.2? -

ios - UITableViewController doesn't work properly in xcode 4.2? - can tell me, doing wrong? have created quick project selecting template 'empty application'. created new controller subclass uitableviewcontroller. i wrote below piece of code phone call controller: -(bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; // override point customization after application launch. // self.window.backgroundcolor = [uicolor whitecolor]; mytableviewcontroller *mtvc = [[mytableviewcontroller alloc] init]; uinavigationcontroller *nav = [[uinavigationcontroller alloc] init]; [nav pushviewcontroller:mtvc animated:yes]; [self.window addsubview:nav.view]; [self.window makekeyandvisible]; homecoming yes; } and fill uitableviewcontroller's methods check if working: - (nsinteger)table...

java - How to resolve dependency errors in Maven with Nexus repository -

java - How to resolve dependency errors in Maven with Nexus repository - i newbie maven/nexus these simple questions hope: when run mvn install on project next errors: [warning] problems encountered while building effective model com.myproj.testproj:jar:0.0.1 [warning] 'build.plugins.plugin.version' org.apache.maven.plugins:maven-compiler-plugin missing. @ line 294, column 12 [warning] 'build.plugins.plugin.version' org.apache.maven.plugins:maven-surefire-plugin missing. @ line 304, column 12 [warning] [warning] highly recommended prepare these problems because threaten stability of build. [warning] [warning] reason, future maven versions might no longer back upwards building such malformed projects. and sec error [warning] pom oracle:ojdbc:jar:10.0.2.0 missing, no dependency info available for first error think wants me add together version info next plugin <plugin> <artifactid>maven-compiler-plugin</artif...

Where should I place resources.resx in a ASP.NET web application? -

Where should I place resources.resx in a ASP.NET web application? - i'm newbie asp.net web applications. when create asp.net web app project, there's file called resources.resx in folder project. working in computer can access file , content without problem. when deploy application can't access file. i've tried copying file seperately, , folder (my project) seperately, file in it, no luck. there way accomplish this? ps: i've read implicit localization , explicit localization i'd know if can done way. it's embedded dll when build (compile). can't alter when it's deployed. if want see in dll, you'll have utilize tool reflector, dotpeek, etc. you can read more on resources here, starting 'compiling resources assemblies' title (as know how utilize them now). asp.net embedded-resource

Java Inheritance and Understanding Interface Classes -

Java Inheritance and Understanding Interface Classes - hi, working on short java assignment have been set (i learning basics) struggling create sense of question. question follows: design , write classes model different types of publications in library. consider different types of publications, e.g. books , magazines. set attributes , methods mutual types of publications in super-class, , extend super-class appropriately create set of sub-classes. make sure include appropriate constructor, getter, setter , customised methods in classes. utilize method overloading , overriding appropriate. make maximum utilize of inheritance in design , class code. implement next interface class in design , coding: + getpublisher() : string + getpublicationtitle() : string + getprice : float + setpublication(publisherin: string, titlein:string, pricein:float) : void so have answered best can, please read , check on right track , understand meant doing, seems fat simple ...

javascript - Anyway to make body scrollbar appear if absolute position element goes below screen? -

javascript - Anyway to make body scrollbar appear if absolute position element goes below screen? - is there way this? don't want content go below screen without beingness scrollable. (this people may have smaller screens most) nb: levi putna right in pointing out behaviour occurs if <div> empty. two options: you set min-height , min-width <body> . you set height on <body> using javascript when window resized. setting min-height , min-width : for example, if absolutely positioned <div> 400 × 300 pixels: class="lang-css prettyprint-override"> body { min-height: 400px; min-width: 300px; } limitations: internet explorer 6 lacks support this, although there easy hacks prepare that. @ point, min-height works in practically every other browser out there. there no way accomodate dynamically sized <div> , expect overcompensating. dynamically setting height (when window resized): given a...

performance - Searching for hex string in a file in php? -

performance - Searching for hex string in a file in php? - i'm using next 2 methods in class job done: function xseek($h,$pos){ rewind($h); if($pos>0) fread($h,$pos); } function find($str){ homecoming $this->startingindex($this->name,$str); } function startingindex($a,$b){ $lim = 1 + filesize($a) - strlen($b)/2; $h = fopen($a,"rb"); rewind($h); for($i=0;$i<$lim;$i++){ $this->xseek($h,$i); if($b==strtoupper(bin2hex(fread($h,strlen($b)/2)))){ fclose($h); homecoming $i; } } fclose($h); homecoming -1; } i realize quite inefficient, php, i'm not allowed other language on hosting plan. i ran couple tests, , when hex string towards origin of file, runs , returns offset. when hex string isn't found, however, page hangs while. kills me within because lastly time tested php , had hanging pages, webhost shut site downwards 24 hours due much cpu tim...