Posts

Where does PHP store the error log? (php5, apache, fastcgi, cpanel) -

i on shared hosting , have cpanel, apache, php run fastcgi. php store error log? is there other way can find error log on shared hosting environment instead of having go through entire site structure error_log files? i have access php.ini (i using php version 5.2.16). php stores error logs in /var/log/apache2 if php apache2 module. shared hosts storing log files in root directory /log subfolder. but...if have access php.ini file can this: error_log = /var/log/php-scripts.log according rinogo 's comment: if you're using cpanel, master log file you're looking stored (by default) at /usr/local/apache/logs/error_log if else fails can check location of log file using <?php phpinfo(); ?>

wpf - Transparent floating window. -

i'm trying create transparent floating dockable window. but, having difficulting achieving this. tried opacity, no luck. here snapshot of code : // floating dockable split pane splitpane splitfloating = new splitpane(); xamdockmanager.setinitiallocation(splitfloating, initialpanelocation.dockablefloating); xamdockmanager.setfloatinglocation(splitfloating, new point(my.xcoordinate, my.ycoordinate)); xamdockmanager.setfloatingsize(splitfloating, new size(my.width, my.height)); tabgrouppane tgpfloating = new tabgrouppane(); contentpane cprichtext = new contentpane(); cprichtext.content = new richtextbox(); cprichtext.opacity = 0.0; tgpfloating.items.add(cprichtext); tgpfloating.opacity = 0.0; splitfloating.panes.add(tgpfloating); splitfloating.opacity = 0.0; this.dockmanager.panes.add(splitfloating); this.dockmanager.opacity = 0.0; i don't know infragistics suite, speaking should set...

objective c - iOS - How do I create a read and write stream to a network socket? -

i new ios development. attempting create read , write stream. using cfnetworking programming guide's examples try , working. i trying schedule read stream on run loop work around issue of streams blocking. right away have run issues. how can create cfhost object using cfhhostcreatewithaddress? here have far: nsstring *address = @"irc.ubuntu.net"; cfdataref addressdataref = (cfdataref)[address datausingencoding:nsasciistringencoding]; cfhostref host = cfhostcreatewithaddress(kcfallocatordefault, addressdataref); //create read , write stream cfstreamcreatepairwithsockettocfhost(kcfallocatordefault, host, 8008, &readstream, &writestream); the second line bombs. can please tell me how create cfhostref? thanks lot! the documentation states second argument cfhostcreatewithaddress() must "a cfdataref object containing sockaddr structure address of host. value must not null." you're passing cfdataref representing "irc.ubuntu.ne...

java - StAX XML Parser not escaping single quote (&apos;) -

we using stax parser read large xml files , strip off of elements/attributes , write xml file the source xml file valid xml file i.e. have xml special characters( < , > , ' , " , & ) escaped respective xml versions( &lt; , &gt; , &apos; , &quot; , &amp; ) when stax parser writing these special characters in output file escaping < , > , & characters not ' , " characters i.e in output file can see ' , " characters, although input file have escaped versions i have tried replace using string.replaceall("'","&apos;") method before sending output stax parser writeattribute method but stax parser escaping <,>,& character output showing &amp;apos; can let me kow there configuration/utiltity in stax parser api solve issue in stax parser? or, alternatively, other suggestions use xml writer tool solves problem? single quotes need escaped if occur in attribute ...

Call R plots from c++ using RInside/ Rcpp -

is possible call plot functions c++ ? when try that, ubuntu terminal sort of freezes sometime ( may duration 3d plot created , rotated full 360 degrees) , unfreezes, without ever popping new window. expected behavior or there doing wrong ? how can plots ( r graphics ) run within c++ using rinside , rcpp ? thnx -egon yes, there working examples in rcpp package. @ file functioncallback/newapiexample.r in examples/ directory. may need experiment sleep() 'hold' plot moment, or plot file , have file displayed. depends gave little detail.

wpf - Binding of static method/function to Func<T> property in XAML -

i'm working on using xaml create object tree , 1 of nodes looks this: public class executemethod : inode { #region implementation of inode public bool evaluate() { return function != null && function(); } public string name { get; set; } private string _type; public string type { { if (string.isnullorempty(_type)) { _type = gettype().name; } return _type; } } #endregion public func<bool> function { get; set; } } my goal essential make xaml , code behind clean possible isn't case right i'm creating wrapper properties every function: public static func<bool> func1 { { return method1; } } public static bool method1() { //do stuff here return true; } and xaml looks above code: <root xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="clr-namespace:xamlbt;assembl...

jquery - javascript submit -

i have form 4 question, each have 2 answers choose - radio button type. (1)do want milk? yes no (2)are happy? yes no (3)do have parents? yes no (4)do have sisters? yes no (1) first have javascript or jquery validation make sure each question have answer chosen, form should not submited null value. (20) if user chooses yes of question, takes them yes.html page if user chooses no, takes them no.html. them no.html, have choose no answers each question so yes, higher preference here.. please help. i want this, validation make sure selected: <script type="text/javascript"> function choosepage() { if(document.getelementbyid('weightloss').form1_option1.checked) { window.location.replace( "http://google.com/" ); } if(document.getelementbyid('weightloss').form1_option2.checked) { window.location.replace( "http://yahoo.com/" ); } } </script> ...