Posts

install4j - Is there anyway to have different destination name of the installing file at than the source name? -

i want have different file name @ destination side after installing it. there anyway it? did not option in add files , directories action under define distribution tree. please advise. the "install files" action has "directory resolver" script change installation directory each file, there's no facility change file name. you have use "move files , directories" action purpose.

c# - How to convert nested sql statement to linq to entities? -

i'm trying create basic room availability statement use linq entity framework. have 2 tables: 'room' including columns roomid/roomsize , 'booking' including bookingid/roomid/startdate/enddate. i have got working sql statement: select roomid, roomsize room roomid not in (select roomid booking ('08/01/2015' >= [start] , '08/01/2015' <= [end]) or ('08/20/2015' >= [start] , '08/20/2015' <= [end])) i have got far linq entity statement: var rooms = (from r in db.rooms !(((from b in db.bookings (startdate >= b.startdate && enddate <= b.enddate) || (enddate >= b.startdate && enddate <= b.enddate)).contains(r.roomid)) select new availableroom { id = r.roomid, size = r.roomsize }); i error @ last bracket before .con...

ios - MVVM, dependency injection and too many constructor parameters -

i have been doing ios development using mvvm , dependency injection couple of months , happy results. code clear , easier test. have been stragling problem haven't found solution felt confortable with. in order understand problem want give little bit of context. last app have been working architectured in following way / layers: model view models view / view controllers services : classes know how deal external services twitter, facebook, etc. repositories : repository class knows how interact resource of application's rest api. lets have blog application, have users resources , posts resources. each of thoses resources have several method. there 1-to-1 relation between resources , repositories. when applications starts have bootstrap class initializes app , creates main view model. have restriction view models can create other view models. example in case of having view contains list of elements (in ios represented uitableview) , detail view each of thoses elem...

how to configure apache 2.4.10 to run python code in it -

the sites-enabled ,000-default.conf file changed apache 2.4.10 not able configure apache due this, there 1 can give step step description in how configure? this 000-default.conf file: <virtualhost *:80> # servername directive sets request scheme, hostname , port t$ # server uses identify itself. used when creating # redirection urls. in context of virtual hosts, servername # specifies hostname must appear in request's host: header # match virtual host. default virtual host (this file) # value not decisive used last resort host regardless. # however, must set further virtual host explicitly. #servername www.example.com serveradmin webmaster@localhost documentroot /var/www # available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # possible configure loglevel particular # modules, e.g. #loglevel info ssl:warn errorlog ${apache_log_dir}/error.log customl...

objective c - setInitialText not work with IOS 8.3 (facebook,social,SLComposeViewController) -

the functionality of slcomposeviewcontroller no longer works expected newest facebook iphone app update of april 24th. initial text specified ignored, though setinitialtext method returns true if successful. dialog returns "done" whether hit "done" or "cancel". realize apple call , i'm not using facebook sdk, have verified works previous version of facebook app installed when upgrade facebook app on iphone, functionality no longer works expected. note result of completion handler returns "done" - when hit "cancel" , also, setinitialtext: nothing now. verified same code worked pre-the april 24th release. if([slcomposeviewcontroller isavailableforservicetype:slservicetypefacebook]) { controller = [slcomposeviewcontroller composeviewcontrollerforservicetype:slservicetypefacebook]; [controller setinitialtext:@"hiiiiiii"]; [controller setcompletionhandler:^(slcomposeviewcontrollerresult result) { ...

validation - How to offline check SSL certificate chain? -

prologue i periodically uploading & updating ssl certificates aws' elastic load balancers. the annoying point is, submit certificate, private key , certificate chain , configure load balancer interface not validating certificate on-the-fly. when press "create load balancer" receive error messages regarding missing intermediate certificates or similar. not able go , correct configuration. have start whole process again. not cool. ;) question so looking offline- or online-service can post certificat-chain tell me complete chain. or not. there websites sslshopper.com offer nice services check existing websites, dont know tool can post certificate-chain plain text. any appreciated, in advance! i found solution / workaround myself: create aws ec2 load balancer without https-listener - don't need upload certificate then edit created listener , try add certificate (private key, certificate, intermediate certificate) if error occurs, can go (th...

php - Can't unset rows in my array -

i'm trying delete empty rows in arrays, can achieve that. need help. here's i've tried : $specialites = serialize($_post['specialite']); foreach($specialites $specialite) { if($specialite=='') unset($specialites[$specialite]); } but every time, error (blank page). need please. thank ! i check 1 problem serialize called first before foreach , actual problem. need this:- $specialites = $_post['specialite']; foreach($specialites $key=> $special) { if(empty($special) || $special == '') unset($specialites[$key]); } $specialites = serialize($specialites); note:- if called serialize on variable no more array type variable.