Type: Posts; User: andreasblixt
Search took 0.01 seconds.
December 5th, 2007, 05:13 AM
Use stringVariable.Replace(".", "_") since you don't seem to know what a regular expression is. stringVariable.Replace(".", "_") will return a new string with "." replaced with "_" in stringVariable,...
December 4th, 2007, 05:58 AM
As an answer to your question, I can only quote myself:
You cannot affect the way the browser renders an image (although it's possible that loading an image through a filter in Internet Explorer...
November 28th, 2007, 01:29 AM
If by "messed up" you mean it looks pixelated (even when reducing the size), that depends entirely on how the browser decides to render the image. Certain browsers such as Safari resize the image...
November 26th, 2007, 02:06 AM
For your first problem you could use this:
WHERE AreaID = 1 OR AreaID = 3
GROUP BY EmployeeID
HAVING COUNT(EmployeeID) = 2;
It'll get the ID's of all...
November 22nd, 2007, 08:09 AM
A char will always take up the specified length, while a varchar will only take up the length of its value. I.e.:
A char(10) value set to 'Hello' will become
'Hello ' (five spaces in the...
November 21st, 2007, 02:17 AM
I'm spoiled with SQL Server 2005 and would do this:
WITH Temp AS (
CASE WHEN COUNT(SN) > 1 THEN 1 ELSE 0 END AS Repeating
GROUP BY SN
) SELECT SUM(Repeating) FROM Temp;...
November 19th, 2007, 06:58 PM
That is strange... If offer and currency are the only tables with a column named currency_id, you could try changing
ON t4.currency_id = t1.currency_id
and see if that...
November 16th, 2007, 08:33 AM
Anyways, to get the currently selected option...
November 16th, 2007, 02:32 AM
XMLHttpRequest creates an entirely new request, separate from your page. This means it doesn't matter what form(s) you have on your page (which wouldn't make sense anyways - how would it know what...
November 15th, 2007, 07:38 AM
CREATE PROCEDURE uspTryExecute
@Error nvarchar(2048) = NULL OUTPUT
November 15th, 2007, 01:34 AM
November 15th, 2007, 01:33 AM
Oh, that's right, I didn't see you wanted to include those columns as well, sorry.
November 14th, 2007, 01:02 PM
That's not really a code-related question, in my opinion. It depends mostly on how your game is presented graphically.
In general you split hair from body so that any hair style can be put on any...
November 14th, 2007, 08:26 AM
For an MMORPG, A.I. is quite simple when compared to other game genres (especially FPS and RTS.) I'd still go for an FSM, yes, but since an MMORPG server has to handle a great deal of actors at once,...
November 14th, 2007, 04:23 AM
November 14th, 2007, 01:39 AM
May I ask what adjustments you made? I tried your queries above exactly as they stand, with the exception of not putting them in a stored procedure but rather running them as separate batches (first...
November 13th, 2007, 12:17 PM
You've got machine, customer, category and hire occasion. The machine information isn't actually included (it is only referenced), so I haven't listed it as a table below:
November 13th, 2007, 09:21 AM
Generally FSM are predictable and not very suitable for adaptiveness. The reason I suggested it is because they are simple enough to understand and implement. If you're going for more complex,...
November 13th, 2007, 04:29 AM
Well, that's pretty vague information and poor names for tables/columns. But assuming that "T2" holds a list of items that should be shown in "T3" (excluding items not in "T2"), this query should do...
November 13th, 2007, 01:49 AM
The timestamp column is generally returned as the amount of seconds since the Unix epoch. (Edit: Actually, if you only return the column without any functions or operators, it should display as a...
November 13th, 2007, 01:40 AM
I'd go for a finite state machine (FSM) because they're easy to work with. Basically you give your actor an initial state and let it switch between states depending on what it senses. Say you've got...
November 10th, 2007, 05:29 AM
The problem with using .capcha as an extension is that IIS wouldn't know where to send the request (unless ASP.NET was set up to catch all non-handled requests.) It would merely return a 404 error...
November 9th, 2007, 08:44 AM
My suggestion is a pretty nasty way of doing it if it's a distributable library you are making because the current page will be executed once for each image requested (until the point your control is...
November 9th, 2007, 07:55 AM
Yes, of course it will. Now I'm not sure what you want to accomplish. You know that you can't branch a web request right? It can only ever return one file, which in your case will be either the...
November 9th, 2007, 07:34 AM
Ah, I see.
Try something like this in the RenderContents method:
HttpResponse response = HttpContext.Current.Response;
response.ContentType = "image/jpeg";
// Do something...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.