I'm a small business web designer and marketer. I do a little of everything, and I'm always interested in learning new techniques and technologies.

Nov
27
comment remove a string from a file using nodejs
Just a thought, but maybe take a look at the file variable. It could have special characters that need to be escaped before passing it in to your regex.
Nov
18
comment Turn Off Display Error PHP.ini
Am I missing something or is display_errors some kind of custom function? I don't see it in the manual.
Nov
13
awarded Nice Question
Nov
12
comment Appropriate PTR records for mail server
Thanks, that was the information I was missing.
Nov
12
accepted Appropriate PTR records for mail server
Nov
12
comment Appropriate PTR records for mail server
Yes, I'm aware of the need for proper SPF records, DKIM signing, throttling, etc. Thanks.
Nov
12
asked Appropriate PTR records for mail server
Nov
4
awarded Yearling
Nov
4
awarded Yearling
Nov
2
comment WP function/filter for modifying http headers?
That is very possible, but in this case it looks like the two hooks simply perform different functions. send_headers is an action that fires after the headers are sent while wp_headers is a filter on the headers that is applied before they are sent.
Nov
1
comment WP function/filter for modifying http headers?
Hmm, that's interesting. You checkout the wp_headers filter here.
Oct
17
comment How do I access this select value in template file in wordpress
I'm not 100% sure what you're after here, but a lot of times you can just write a function that returns the content you want and call that instead of trying to reference your variable. Otherwise, look at the PHP global declaration.
Oct
14
awarded Autobiographer
Oct
10
comment Backporting OpenSSL-1.0.1e to Debian Lenny (armv4l)
+1, just wanted to say thanks for posting your workaround here. I couldn't get the accepted answer to work in my environment (compiling for DNS-323), but the #define line seems to have done the trick.
Oct
9
comment Is it possible to dump the DOM with JavaScript and preserve CSS effects and layout?
A possible alternate approach that I've never used but seems promising would be the window.getComputedStyle method. I suppose you could loop through the entire DOM, get the style for each element/psuedoelement, and store that information as inline style attributes.
Oct
9
comment Is it possible to dump the DOM with JavaScript and preserve CSS effects and layout?
I suppose you could make AJAX requests for all the external resources and then "in line" them before you output the html string. You might even be able to find a js library to base64 encode the images to inline them as well. Seems like a lot of code/work though.
Sep
30
awarded Popular Question
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
1 2 3 4 5