How can I 301 redirect any URL that starts with a number between 1 - 9999, for example
domain.com/12/something/anotherthing
domain.com/378/product/widgets
domain.com/2560
I am trying to redirect an old URL that uses a query string to the new url that does not..
/tripinfo.cfm?RiverNameID=1&AdventureID=6
Now needs to go to
/trips/big-ass-river/overnight.html
So I am trying..
RewriteRule ^tripinfo.cfm?RiverNameID=1&AdventureID=6$ /trips/big-ass-river/overnight.html [R=301]
But this is not…
I have an unordered list with a few list elements.
#tags {
width: 300px;
height: 300px;
position: relative;
border: 1px solid red;
list-style: none none;
}
#tags li {
position: absolute;
background: gray;
}
I have also started writing a jQuery plugin to animate the list elements. So far, I place the list…
I have a table:
'objects' with few columns:
object_id:int, object_type:int, object_status:int, object_lati:float, object_long:float
My query is :
$stmt = $db->query('SELECT o.object_id, o.object_type, o.object_status, o.object_lati, o.object_long FROM objects o WHERE o.object_id = 1');
$res = $stmt->fetch();
Pdo throw error:…
I'm using Web Developer 2010. I just created a resource file lang.resx with different values in english. Then I created a lang.FR-fr.resx with French equivalents. However after tryingto compile, I get
Error 131 Task could not find "AL.exe" using the SdkToolsPath "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0…
C#, visual studio 2005
I have several 3rd party activeX control. I need to use them in my .net windows application. These controls are graphical.
I created a wrapper with aximp.exe for them. But it seems that something wrong. When I call some methods of wrapped activeX control == targetinvocativeexception occured. Or visual…
This is what I've coded it up, and it appears to work.
window.onload = function() {
var currentSpan = document.getElementById('current');
var minute = 60000,
hour = minute * 60,
day = hour * 24,
week = day * 7,
month = week * 4,
year = day * 365;
var start = new Date(2009, 6,…
I understand the basics of dataflow programming and have encountered it a bit in Clojure APIs, talks from Jonas Boner, GPars in Groovy, etc. I know it's prevalent in languages like Io (although I have not studied Io).
What I am missing is a compelling reason to care about dataflow as a paradigm when building a concurrent…
The library in question is Tokyo Cabinet.
I want is to have the native library, JNI library, and all Java API classes in one JAR file to avoid redistribution headaches.
There seems to be an attempt at this at GitHub, but
It does not include the actual native library, only JNI library.
It doesn't work (for me): when I use…
So Firefox supports gradient Backgrounds. Also supports multiple Background images.. So why does this not work??
background:-moz-linear-gradient(top, #5989bd,#336296), url(Active-Arrow.png) right center no-repeat;
Also tried:
background-color:-moz-linear-gradient(top, #5989bd,#336296);
background:url(Active-Arrow.png)…
Hi.
I have the following css code.
button.png is image where 3 button states are pasted vetrically, so i just move image in css.
a.button
{
background-image: url(button.png);
background-position: 0px 0px;
width: 100px;
height: 30px;
display: block;
…
Hi! i have to create a movie where a text string move in horizontal.
the problem is that in the movie (800px wide) the text should go from right to left in about 7 seconds (so it have to go about 400px to the left in 7 sec).
i created a motion-tween with ease for my "text" and the tween is long (at 30fps) 30*7=210…
I have the following problem. I have a charting program, and it's design is black, but the charts (that I get from the server as images) are light (it actually uses only 5 colors: red, green, white, black and gray).
To fit with the design inversion does a good job, the only problem is that red and green are…
It seems to not get past this step:
[ 16%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/lib/system/gen/sys/dynamic_table_func.no.cpp.o
UPDATE
The above was just slow. I left my desk and came back after several hours, and the build had completed successfully.
Only problem now is I cannot…
Hello all.
Problem:
I have to design an algorithm, which does the following for me:
Say that I have a line (e.g.)
alert tcp 192.168.1.1 (caret is currently here)
The algorithm should process this line, and return a value of 4.
I coded something for it, I know it's sloppy, but it works, partly.
…
Hi,
I am trying to make a materialized view in Oracle (I am a newbie, btw). For some reason, it doesn't like the presence of sub-query in it. I've been trying to use LEFT OUTER JOIN instead, but it's returning different data set now.
Put simply, here's the code I'm trying to modify:
SELECT *
FROM …
I have an odd issue with how msbuild is behaving with a VS2008 Web Deployment Project and would like to know why it seems to randomly misbehave.
I need to remove a number of files from a deployment folder that should only exist in my development environment. The files have been generated by the web…
I have a UIActionSheet as follows:
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:[NSString stringWithFormat: @"Cancel New %@? Changes will be lost.", [creator propertyName]] delegate:self cancelButtonTitle:@"Stay Here" destructiveButtonTitle:@"Discard and Close"…
Thanks to Hadley's plyr package ddply function we can take a dataframe, break it down into subdataframes by factors, send each to a function, and then combine the function results for each subdataframe into a new dataframe.
But what if the function returns an object of a…
Hi all,
I have a very strange problem that I cannot fix and don't know what's going on... I am using VS 2010 Premium and .NET 4.0.
Here are my steps to simulate the problem.
Step 1. Create a new VB class library project named "MyClassLib"
Step 2. Create a new class…
I have a html-page where used jquery-ui accordion.
Now I have to add in this page 2 image which should vary depending on the active section.
How can I do it?
HTML:
<div id="acc">
<h1>Something</h1>
<div>Text text text</div>
…
I was just thinking to myself "How exactly is a PHP script executed?" I thought it was parsed first for syntax errors etc, and then interpreted and executed.
However, I don't know why I believe that is correct. I'm probably wrong.
So, how exactly is a PHP file…