|
I have an ASP.NET (C#) class that is used both on the client and server.
Depending on whether the code is being executed on the client or the server, it needs to behave differently.
What is the simplest & most efficient way of telling if the code is executing...
Started by Shaul on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Unless we're talking....
Unless you are using Silverlight, C# is probably not run on the client .
Unless you are running Silverlight 2 or Silverlight 3 There is no way for Asp.Net to run C# code in the client (the users' browser)
It's executing on the server .
|
|
Have you ever been in the situation when looking at the code you couldn’t tell if something is a bug or poorly implemented feature? Or you simply didn’t dare to fix something that looked like a definite bug to you, but were not sure if anyone already ...
Started by Totophil on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
I have worked on systems that had very poor documentation, and sometimes it was really difficult to ....
As an absolute last resort, when you can't tell the intent of the code and you; the documentation will tell you.
I humbly volunteer.
|
|
Hi,
Why this piece of code is working on my fsi, but can't build the project? I am using vs2010 and F# 2.0 ...Any ideas that I am missing something?
let arg = [@"C:\Temp\bin"; @"C:\temp\xml"] arg|> List.map(fun (s) -> printfn "%s" s)
getting the...
Started by demokritos on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I think you really what to do this:
let arg = [@"C:\Temp\bin"; @"C:\temp\xml"] arg|> List.iter (fun s -> printfn "%s" s)
which is the same as:
let arg = [@"C:\Temp\bin"; @"C:\... .
Hi,
this snippet compiles on my machine, but the mapping seems weird .
|
Ask your Facebook Friends
|
Which is worse; Your son telling you he's gay, or your son telling you he wants to tryout for the soccer team? Personally I don't see the difference, doesn't playing soccer automatically mean you are gay?
Started by Bear Down - Superbowl XLVII Bound on
, 24 posts
by 24 people.
Answer Snippets (Read the full thread at yahoo):
If he tells you American Football is a mans support, LOL.
Be
OR
2.) Have never actually watched soccer
To answer your question then--- Your son telling you he's gay tell you that's he's going to kill himself.
|
|
How do you tell if a .Net application is running as a Desktop application or running as a service?
We are trying to test our application with Fitnesse, which loads the app up as a service then makes calls into it.. but when a modal error box is pushed...
Started by James Armstead on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I think this will work (no convenient place to test my air code):
// requires a 'using System.ServiceProcess' statement type = Assembly.GetExecutingAssembly().EntryPoint.DeclaringType; bool isRunningAsAService = type.IsSubclassOf(typeof(ServiceBase));... .
|
|
This is a jigsaw piece I am maintaining (bonus: green = commented response.write used for debugging)
So I am wondering, what kind of shape do good code tend to have?
Started by Haoest on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Shape is telling, but more in an intuitive way than by any rule of thumb; it's something that you learn.
|
|
I'm working on a simple story generator and am looking for story building algorithms and patterns to use in my design. Anyone has some good recommendations?
Started by Robert Gould on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
This may not be what you are looking for, but have you thought of one of those story telling.
|
|
In IE it is giving me the "some items on the page are not secure" message. I have tracked it down to this line:
<script type="text/javascript" src="lightbox/js/prototype.js"></script>
which is a lightbox script I downloaded. I tried making...
Started by John Isaacks on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Looking at your page in Fiddler, I see a request to... .
However, in general, I'd follow the advice I provided in a similar question: use Fiddler .
It's hard to say what's going on in your case because the page is currently bombing with PHP and JS errors .
|
|
I am developing a web thin-client for an information kiosk running Win7. I make sure the screen saver is turned OFF and the "Turn off display" setting is set to NEVER.
After I leave the kiosk for part of the day (have not measured exactly how long... ...
Started by williamlweaver on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
This Microsoft Support article may explain this mystery:
The "Turn off the display" setting may change unexpectedly when you configure the "Put the computer to sleep" setting in Windows Vista :
the Turn off the display setting is automatically set to ... .
|
|
I have a situation where there is a rule with a shift/reduce conflict that i understand. I want a rule to never reduce until at the last moment possible (end of line). So I would like to say always shift. How do i do this?
Started by acidzombie24 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If the warning about it bothers you, you can use... .
As Craig notes, when there's a shift reduce conflict, bison does the shift .
You can use precedence declarations to change the behavior.
By default Bison will shift when there is a shift/reduce conflict .
|