Posts

php - SOAP and NTLM Authentication between Debian an IIS Server -

i have problem soap authentication in php. have check everywhere answer without success. i hope 'll able me here ! so, here deal. my php application server debian 6 apache2 , web service based on iis server. both servers inside our company network. for connection , authentication use class find on web : http://tcsoftware.net/blog/2011/08/php-soapclient-authentication/ here code using class : <?php define('curlopt_certinfo',1); ini_set("max_execution_time",120); ini_set('default_socket_timeout', 120); ini_set("soap.wsdl_cache_enabled", "0"); ini_set('soap.wsdl_cache_ttl',0); include('./soapclientauth.php'); //wsdl $soapurl = "http://myapplicationadress/ws/web100t/patient_identite_chargerparid.wsdl"; $soapparameters = array( 'login' => 'anadlogin', 'password' => 'theadpassword', ...

ios - How to use autolayout to prevent overlapping of arbitrary number of dynamically created UIViews -

this question exact duplicate of: uiview contraints such no 2 subviews can touch how can prevent multiple uiviews overlapping when number of uiviews isn't defined before hand? don't care placed on screen long padding definition met. using autolayout seems way can't right. i need have loop uiview *prevview = nil; (uiview *aview in [self subviews]) { // need check foreach subview if view isn't overlapping // lets assume 2 views simplicity if (cgrectintersectsrect(aview.frame,prevview.frame)) { // update view frame // or update autolayout constraints } } // might need call function recursively if first pass wasn't successful depending on specific wants , needs could: position new subview correctly when creating it. if subviews don't move write logic make correct layout of subviews. loop through subviews suggests , relocate each overlapping subview until it's no ...

android - How to sync AlarmManager with system time? -

i have question, i'm using alarmanager update widget every minute (it's clock) display current time, however, alarmmanager never synced system clock in device, use this: alarmmanager.setrepeating(alarmmanager.rtc, system.getcurrenttimeinmillis(), 60000, pendingintent); it works every minute, however, problem that, if put widget in screen @ 2:15:30 pm example, 1 minute after time alarmmanager going call broadcast again, next update @ 2:16:30 pm, , won't synced system time because when system time displays 2:16:00pm widget still show 2:15:00pm. i hope clear enough, appreciate help, thank you. the second argument setrepeating time want alarm fire first time. need arithmetic align next minute boundary. example like: = system.getcurrenttimeinmillis(); oneminutefromnow = + oneminute; nextminuterollover = oneminutefromnow - (oneminutefromnow % oneminute); then use nextminuterollover second argument setrepeating. (this simplified -- made verbose see c...

laravel - L4 and Wordpress - How to install L4 on subdomain shared with Wordpress -

here structure aiming for: project1.site.com -> laravel projects project2.site.com -> laravel projects project3.site.com -> laravel projects www.site.com -> wordpress install how can accomplish this? tried following web host structure /home/user/www/wp -> wordpress install /home/user/l4/project1 -> laravel app folders /home/user/www/project1 -> laravel public folder however l4 not loading - cannot access app folder ("no such file or directory" when trying access l4 bootstrap folder located outside webroot). checked folder permissions , looks fine, guess wordpress not playing laravel. anyone know how fix this? or provide setup allow wordpress site separate subdomains each laravel project? try structure this: /home/user/www/wp -> wordpress install /home/user/www -> laravel install make sure home page goes /home/user/www/public . also, readability, recommen...

JavaFX ReadOnlyListProperty not read only? -

this code throws unsupportedoperationexception, expect since it's read only. listproperty<string> lp = new simplelistproperty<string>(); readonlylistwrapper<string> rolw = new readonlylistwrapper<string>(lp); readonlylistproperty<string> rolp = rolw.getreadonlyproperty(); rolp.add("element"); however, code not. observablelist<string> ol = fxcollections.observablearraylist(); readonlylistwrapper<string> rolw = new readonlylistwrapper<string>(ol); readonlylistproperty<string> rolp = rolw.getreadonlyproperty(); rolp.add("element"); is bug, or not understanding something? the original expectation wrong - examples provided. unsupportedoperationexception occurs different reason , not because "read-only" list being "written" to. still possible have "read-only" lists. hope answer below helps clarify. the answer needs considered in 2 parts. one: listproperty exc...

erlang - Ejabberd Voip with mod_jinglenodes -

i installed mod_jinglenodes.erl plugin method in ejabberd.it shown in psi+ service discovery option jinglenodes.192.168.1.35 ,but didnot correct response iq a) send iq: <iq type="get" to="kumar@192.168.1.35" id="ab71a"><servicesxmlns='http://jabber.org/protocol/jinglenodes'/></iq> receive it: <iq from="kumar@192.168.1.35" type="error" xml:lang="en" to="babu@192.168.1.35/psi+" id="ab71a"> <services xmlns="http://jabber.org/protocol/jinglenodes"/> <error type="cancel" code="503"> <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/> </error> </iq> b) <channel xmlns='http://jabber.org/protocol/jinglenodes#channel' protocol='udp'/> didnot result. please me. , how send voip call iq example ? from protocol examples in xep-0278 , looks you're s...

ruby - How to check if a value is included between two other values? -

i'm trying express condition this: if 33.75 < degree <= 56.25 # code end but ruby gives error: undefined method `<=' true:trueclass i'm guessing 1 way like: if 33.75 < degree , degree <= 56.25 # code end but there no another, easier way? ruby has between?: if value.between?(lower, higher)