Recent Notes

Displaying keyword search results 1 - 5
Created by voodoo on August 03, 2012 08:42:38    Last update: August 03, 2012 09:31:25
The C function getsockopt lets you get the error codes with the option SO_ERROR . The possible error numbers are defined in the global errno.h . The relevant values are: #define ETIMEDOUT 110 /* Connection timed out */ ... But here's the whole list on my Linux system ( /usr/include/asm-generic/errno.h ): #ifndef _ASM_GENERIC_ERRNO_H #define _ASM_GENER...
Created by jinx on May 03, 2011 09:42:12    Last update: May 03, 2011 09:42:12
The @ operator suppresses error messages. A usual example is: <?php $v = @$a['non-existing-key']; ?> which suppresses the "undefined index" PHP notice. Another example is: <?php @include('non_existent_file'); ?> In this case, @ not only suppresses error messages for non-existing file, it also suppresses any error messages coming from the included file when it does exist. Create file test.php : <?php @include(''); ?> Create : <?php <?php garbage ?> The "undefined constant" PHP notice message is suppressed by @ .
Created by Dr. Xi on April 27, 2011 11:57:36    Last update: April 27, 2011 11:58:35
This is a sample struts-config.xml file for Struts 1.x . <?xml version="1.0" encoding="UTF-8"?> <!DO...
Created by freyo on April 12, 2011 13:16:00    Last update: April 12, 2011 13:16:00
You get this error message when you try to install an Android APK. Most likely, the APK you are trying to install declared sharedUserId , but there's an existing package with the same sharedUserId , which was signed with a different key than the package being installed.
Created by Dr. Xi on December 04, 2009 04:33:05    Last update: December 04, 2009 04:33:05
Variable Meaning $_ The default or implicit variable. @_ Within a subroutine the array @_ contains the parameters passed to that subroutine. $a, $b Special package variables when using sort() $<digit> Contains the subpattern from the corresponding set of capturing parentheses from the last pattern match, not counting patterns matched in nested blocks that have been exited already. $. Current line number for the last filehandle accessed. $/ The input record separator, newline by default. $| If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0 (regardless of whether the channel is really buffered by the system or not; $| tells you only whether you've asked Perl explicitly to flush after...