We may not have the option to migrate over to Silverlight 4 right away, so I was wondering if anyone found a way to remove the source domain name from the window's title for out-of-browser Silverlight 3 applications. Our window title currently looks like this: "My App - localhost."
Under Mac, I found the Info.plist file in the application bundle…
I have an application that sends an email to a user so that they may access a web form. In the email there is just a link to the start page of this form. Currently, I have the value for the form location hardcoded. Once the app is deployed I know it is in inetpub/wwwroot/appName, which results in a URL of serverip:appPort/appName.
What is the C#…
I'm working on strengthening my F#-fu and decided to tackle the Facebook Hacker Cup Double Squares problem. I'm having some problems with the run-time and was wondering if anyone could help me figure out why it is so much slower than my C# equivalent.
There's a good description from another post;
Source: Facebook Hacker Cup
Qualification…
I am building an single application that uses WCF to call out to multiple external endpoints. All of the remote endpoints are identical except for the URI. I would like to treat them as a pool: add and remove endpoints through configuration and have the application understand what to do.
My original plan was to define one endoint in the…
I have a page with several drop down lists that all have the same contents. The page starts out with only three ddls, but more need to be added based on user input. There is also other information associated with the drop down lists that is all in a table. So, when the user clicks a link I add a new row of textboxes and drop down lists to…
In my custom field in a BlackBerry CLDC Application, I want to display a specific context menu based on the current state of the field.
My original idea was to do something like this:
protected void makeContextMenu(ContextMenu contextMenu) {
if (isPaused()) contextMenu.addItem(resumeMenuItem);
else…
Since upgrading to VS2010 I'm getting some very strange behavior with the 'is' keyword.
The program below (test.cs) outputs True when compiled in debug mode (for x86) and False when compiled with optimizations on (for x86). Compiling all combinations in x64 or AnyCPU gives the expected…
In EF v1 when we used GetObjectByKey on our context object contrary to linq query it stored queried object in cache is there any change in EF v2 (.NET 4) ?
Hello All,
I am new to Android programming and was handed a fairly large program that is almost complete, but needed support for switching between portrait and landscape view. I added android:configChanges="keyboardHidden|orientation" to the manifest and used onConfigurationChanged to…
Hi,
Some people have told me that my coding style is a lot different than theirs.
I think I am somewhat neurotic when it comes to spacing and indenting though.
Here's a snippet to show you what I mean:
- ( void ) applicationDidFinishLaunching: ( UIApplication *) application {
…
I'm looking for the best idea for what to do while code is compiling or tests are running. Typically around 5 minutes of thumb twiddling.
Only so many cups of coffee can be made and drunk in a day, and I don't want to be seen always in the kitchen or bothering other people.
Suppose I have a matrix A and I sort the rows of this matrix. How do I replicate the same ordering on a matrix B (same size of course)?
E.g.
A = rand(3,4);
[val ind] = sort(A,2);
B = rand(3,4);
%// Reorder the elements of B according the reordering of A
This is the best I've…
Hi all,
I need to get the binary data of a download link.
When I run this link in the browser it always starts download manager. Rather I would like to copy that binary and display it on teh browser. How is this possible in any language.
Objective c or c# preferred.
…
I'm in linker paradise now. I have a C library which only compiles in Visual C++ (it probably works in gcc) if:
I compile it as C++ code
Define __cplusplus which results in all the declarations being enclosed in extern "C" { }
So, by doing this I have a static library…
Hi, I have Start Date and End date parameters that work fine as filters on a query, as follows:
[EMR Reporting].[Appointments].[Appointment Date] between ?Start Date? and ?End Date?
But when I attempt to apply conditional styles to a field based on ?Start Date?, the…
I have two users Bob and Alice in Oracle, both created by running the following commands as sysdba from sqlplus:
create user $blah identified by $password;
grant resource, connect, create view to $blah;
I want Bob to have complete access to Alice's schema…
I can't seem to find a way to convert, or find, a local identifier from a sublanguage string. This site shows the mappings:
http://msdn.microsoft.com/en-us/library/dd318693(v=VS.85).aspx
I want the user to enter a sublanguage string, such as "France (FR)" and to…
I am experiencing some very odd timing behavior from a function I wrote. If I wrap my function inside another empty container function, it gets a 3x speedup.
> tic; foo(args); toc
time elapsed: ~140 seconds
>tic; bar(args); toc
time elapsed: ~35…
Hi fellas,
I'm in the midst of an iPhone app that needs to have 4 separate UITableView objects sharing access to one UISearchBar in the first section and first row of the aforementioned UITableView objects.
I have tried to offset the UITableView's frame by 44…
Hi,
im using the following to send a contact us type form, iv looked into security and only found that you need to protect the From: bit of the mail function, as ive hardcoded this does that mean the script is spamproof / un-hijackable
$tenantname =…
I am comfortable with both Java and C#. Both with Eclipse and VisualStudio. So except I'll have to annoy people with installing Silverlight, is there something that should make me use GWT instead?