Posts

php - How to protect www folder on windows -

i made intranet shop , going give computer intranet on it. want make sure can not copy files , install on computer. i want protect "www" folder in apache server. using appserv. on local computer. checked tools on net truecrypt, folderencrypt etc. these encrypt folder contents. if www folder encrypted, php won't work. there way lock folder in windows without encrypting contents.[ little harder crack no lock @ all] i using zend guard protect php file , checks hard disk name , model , computer model not give %100 protection. heard zend encode gets decoded online. i need suggestions. $output = shell_exec('wmic diskdrive model'); echo $output; echo "<br>"; $output1 = shell_exec('wmic csproduct name,vendor,identifyingnumber'); echo $output1; you obfuscate php code or compile using example http://developers.facebook.com/blog/post/358/ produce binary, difficult , modify (although of course possible). obfuscating good, not c...

html - Fade background with transparent curtain -

it quite popular question, think. i looking crossbrowser css solution black opaque layer. hide stuff under it. my example: http://jsfiddle.net/pb9jv/ . not crossbrowser. (ie 6+ pain in ass). try adding the css style apply fadeover (in example : #black) filter: alpha(opacity = 50); edit : want opaque or transparent given example? have @ this, work on ie 6

tsql - Filter an ID Column against a range of values -

i have following sql: select ',' + ltrim(rtrim(cast(vessel_is_id char(2)))) + ',' 'id' vessels ',' + ltrim(rtrim(cast(vessel_is_id varchar(2)))) + ',' in (',1,2,3,4,5,6,') basically, want filter vessel_is_id against variable list of integer values (which passed in varchar stored proc). now, above sql not work. have rows in table `vessel__is_id' of 1, not returned. can suggest better approach me? or, if above ok edit: sample data | vessel_is_id | | ------------ | | 1 | | 2 | | 5 | | 3 | | 1 | | 1 | so want returned of above vessel_is_id in variable filter i.e. '1,3' - should return 4 records. cheers. jas. if object_id(n'dbo.fn_arraytotable',n'fn') not null drop function [dbo].[fn_arraytotable] go create function [dbo].fn_arraytotable (@array varchar(max)) -- ============================================= -- autho...

visual studio - VS show intellisense for constructors without having to delete a bracket or comma -

i have moved jobs , use tfs. if want @ intellisense constructor, (for code has been written, or dot.net code) have delete bracket or comma , type again constructor intellisense appear. this gets more annoying tfs wants check code out, (and don't). there shortcut key intellisense without typing in class? i have tried obvious, (ctrl + space.. ctrl + alt + space... ctrl + j). thanks i've run few times well. in case, fix go tools->import , export settings... , choose "reset settings" , restart visual studio. point, ctrl-space show intellisense completions. in case, however, work , stop working, there may different problem on machine. this clobber customizations you've made (so sure export them if care) has fixed problem me.

weblogic, deployments are not reading properties from WEB-INF/classes, configured using Spring -

i have similar problem to: using external properties files in weblogic , note accepted answer there working me. however, have follow-up (sorry, cannot work out how add comments re-open original question) does know actual cause of , "correct" (if there such thing) solution, or people take copying files domain common practise in weblogic (10.3.3) what using is: spring config has this: <bean id="messages" class="java.util.resourcebundle" factory-method="getbundle"> <constructor-arg index="0" value="config/messages"/> </bean> the messages bean referenced in other beans error is <code> <11-apr-2011 11:47:23 o'clock bst> <error> <deployer> <bea-149265> <failure occurred in execution of deployment request id '1302518829904' task '4'. error is: 'weblogic.application.moduleexception: ' weblogic.application.moduleexception: @ web...

hover - jQuery setInterval / hovering : it works once, but then stops the setInterval -

have problem 'setinterval' function, i'd start function when i'm hovering div, setinterval work @ first time when hover div => if i'm staying on div, doesn't keep on changing picture, stop 'setinterval'. is problem mouseenter? tried 'hover', etc. nothing seems make trick. does have solution? thanks lot help, here's code : img.bind('mouseenter', function(){ setinterval(next($(this)),1000); }); function next(elem){ var img_li = elem.find('li'); count++; if (count>2) count=0; img_li.eq(count).fadein('fast', function(){ img_li.eq(current).css({'display':'none'}); current = count; }); } it because assigning return value of next($(this)) setinterval , not function itself. try this: img.bind('mouseenter', function(){ var = $(this); //use that-this model avoid scope issues reference setinterval(function...

c# - All items in list query with nHibernate -

i know there restriction "in" allows detect if 1 or more elements in property in target list need tell me if items property in target list. here's example: i want person these competencies competenciescriterion : ilist<competency> { walking, running, rolling } between persona , personb: persona : person competencies : ilist<competency> { walking } personb : person competencies : ilist<competency> { walking, rolling, running } is there restriction or expression allow me execute search or know clean way instead of stacking "in" within "conjunction"? thanks in advance, Étienne brouillard i found way result wanted. stacking "in" not working figured out using subquery , counting "in" produce criteria on can verify condition counts equal. here's sample: var competencysubquery = detachedcriteria.for<employee>("employee2"); competencysubquery.createalias(...