Inside of a perl CGI script (run through mod_perl on Apache), I want to be able to inspect a URL and based on certain conditions, either decide to allow the requested file or alternately respond with some other behavior (like a 404 or whatever).
So, essentially, I have a .htaccess file routing...
I have a perl file i'm running from an apache request as a cgi file (mod_perl).
Inside this file, I want to use the Apache2::Response module and be able to call methods on an object instance. Essentially, I want to be able to conditionally decide to send certain HTTP response codes (like 204 or...
I've been banging my head on this topic all day.
I want to have an iframe load a url which will return nothing but json. And the url will be same domain, so no cross-domain issues. And I want to then access that json from parent document. I've tried several dozen variations of this, to no...
So, let's say I had a table (call that "bar") that had one column in it, and like 5 rows, each with a different string value, like 'abc', 'def', ... etc.
I could LEFT JOIN against "bar" from another table (call that "foo"), which only happens to have a subset of those string values as rows in...
I have a little widget that I've been working on which creates a virtual "browser window" that you can drag around your page, resize, etc. It contains in it an iframe, which the user can load up with any arbitrary page (including those not on the domain of the hosting page), like google.com for...
I'm looking to get a javascript implementation of IDNA conversion (RFC 3490), which involves:
* StringPrep/NamePrep (RFC 3454/3491) unicode string preparation
* Punycode (RFC 3492) translation between unicode and ascii representations
LibIDN (http://www.gnu.org/software/libidn/) has C, java...
I know there are a million and one posts and websites about people trying to achieve various layout things and setting html/body to height:100% and bottom floating footers and all that jazz.
My CSS problem is similar to all that, but has nothing to do with the out-and-out size of the...
I have a little widget/tool I'm building which creates some different boxes in the web page viewport, and uses position:fixed to keep them hovering anchored to the viewport, regardless of scroll or window resize.
I have style-expression hacks in place for IE6 (and IE7 in non-standards-doctype...
I've been searching for a way to command-line compile (opensource-wise) AS1 code. The reason I need to do so is I've got a project that has a SWF that is compatible with the FP6.0.65 player to expose the ExpressInstall functionality, but I want to be able to let people re-compile the SWF without...
So I am well aware of the long standing problem with how select-boxes cannot be covered up by standard div elements simply with z-index'ing tricks, and that this problem plagues IE6, but was fixed in IE7.
And I'm aware of the 2 main strategies for dealing with this problem:
1. iframe shim...
I have the following VBScript function:
Function bintostr(obj)
Dim I,S
Dim J
For I = 1 to LenB(obj)
J = AscB(MidB(obj,I,1))
If J = 0 Then
S = S & ""
Else
S = S & Chr(J)
End If
Next
bintostr = S
End Function
This function takes a binary object, such as...
OK, I know this may sound like a strange request, but...
Let's say from some location (like an ActiveX object for instance) I'm getting in my JAVASCRIPT a variable that is a binary packed object. This object is guaranteed to be a set of packed bytes, where each byte represents a single...
I have a simple c++ program that i've written which forks a process, calls ssh so it can execute a remote command, and relies on root's private key (by passing the command line switch -i/root/.ssh/id_dsa) to be able to make the ssh connection without a password prompt.
i have set the c++...
I have just finished installing and configuring Apache 2.2 on a debian linux system. I've set it up to use VirtualHost entries, as there are about half a dozen different sites being hosted on there.
I've got apache set to start on boot up from init.d with the symlink to the apachectl script...
so, I have the need to do the following: from a c++ program, i need to take a string inputted (on the command line for instance), encrypt it (i chose 3DES as my algorithm), and stick the encrypted value (and the randomly generated string key used in the encryption) in a mysql DB table.
Then...
I am setting up a slave DNS server. I am using Bind for both the master server(s) and the slave server.
What I want is this... I want a slave-only DNS server that I can basically set up to automatically be a slave to multiple master servers for whatever zones those master servers have.
In...
I'm being told by my registrar that I am not allowed to have 2 different nameserver names (ns.mydomain.com and ns2.mydomain.com) pointing to the same IP address. Now, to be fair, I understand the rationale behind this as a general default protection, because usually, it's not good to have a...
I want to write a simple c/c++ program that does some specific, sensitive querying of a local mysql database.
i know there are probably a million ways to do this... but i don't need any kind of special ability, just some simple select and insert queries... and no need for advanced exception...
anyone have any experience with the DLZ patch to Bind 9.2.2 which allows for Bind to connect to databases (in my case, MySQL) to dynamically load it's zone information?
I'm having an issue where a second installation of DLZ is not working like the first one did. could definitely use some help...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.