401 'Unauthorized' should actually be 401 'Unauthenticated'
It should be used for missing or bad authentication.
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
File.open(local_filename, 'w') {|f| f.write(doc) }File.open(local_filename, 'w') {|f| f.write(doc) }
if( document.getElementById ){
var myReference = document.getElementById('divID');
}
There are six methods to select folds:
manual manually define folds
indent more indent means a higher fold level
expr specify an expression to define folds
syntax folds defined by syntax highlighting
diff folds for unchanged text
marker folds defined by markers in the text
Don't do this. Just use strcat() and strncpy() instead.#include <stdlib.h>
char* concat(char*, char*);
int main (int argc, char** argv)
{
char *x = "something";
char *y = " completely different.";
char *combined = concat(x, y);
printf("And now for %s\n", combined);
}
char* concat(char *a, char *b)
{
char *target = malloc( strlen(a) + strlen(b) + 1 );
strcpy(target,a);
strcat(target,b);
return target;
}
i=$(( i + 1 ))See http://www.softpanorama.org/Scripting/Shellorama/arithmetic_expressions.shtml
let i+=1