I've got a unit test project using NUnit. When I add the mspec (machine.specifications) assembly to the references, both ReSharper and TestDriven.Net stop running the NUnit tests and only run the mspec tests.
Is there a way or setting that allows both NUnit & mspec tests to co-exist and run in the same project using R# & TD.Net test…
Hi,
I have a datagrid with an XML object as dataprovider. There are 2 columns in the datagrid which have comboboxes as their itemrenderers. The rendereriseditor property is also marked true. These itemrenderers are defined in their own mxml files. What i want is if the user selects a particular item in the combobox, say NA, then the value…
I have an O(n^2) operation that requires me to read line i from a file, and then compare line i to every line in the file. This repeats for all i.
I wrote the following code to do this with 2 file handles, but it does not yield the result I am looking for. I imagine this is a simple error on my part.
IN1 = open("myfile.dat","r")
IN2 =…
The escape_javascript method in ActionView escapes the apostrophe ' as backslash apostrophe \', which gives errors when parsing as JSON.
For example, the message "I'm here" is valid JSON when printed as:
{"message": "I'm here"}
But, <%= escape_javascript("I'm here") %> outputs "I\'m here", resulting in invalid JSON:
…
Hey gang,
Bear with me as I try to learn more about .htaccess redirect rules - I'm a UI guy by profession and I'm doing my best to enhance my coding skills languages other than HTML/CSS/PHP, etc
So, what I have is an index.php file that contains a menu - pretty simple. If Javascript is enabled on the users computer then…
Ok, so I have a "navigation" div and "content" div.
When something on the navigation is clicked, I fade in the content div with the new data.
Now, I would like to have the old data returned when the user hits the "back" button on his/her browser, but I'm having a hard time doing this.
I know I can set the content to…
I've got a column in a database which contains company names, and customer names all in one field... what I'd like to do is keep the CompanyName column completely intact, but wherever there is a comma in the CompanyName I'd like to take that information and populate it into a FirstName and LastName field. So that…
I've spent hours/days trying to figure this out and now I'm completely perplexed so I thought I'd give stackoverflow a try. I'm (a newb) working in Java/JSP using Eclipse hosting on Google App Engine trying to develop an app for a volunteer organization I'm a member of. Rather than embarrass myself by showing my…
I have a situation where I need to perform several small (but similar) tasks. I can think of two ways to achieve this.
First Approach:
function doTask1();
function doTask2();
function doTask3();
function doTask4();
Second Approach:
// TASK1, TASK2, ... TASK4 are all constants
function doTask(TASK) {
…
Hi everyone...
Consider i have 4 workbooks with the following structure...
1. Main.xlsx
Name Jan Feb Mar
A
B
C
2. Jan.xlsx
Name Jan
A 3.3
B 6.4
C 5.3
3. Feb.xlsx
Name Feb
A 1.3
B 3.4
…
I've discovered multiple options for convert a few to serveral PDFs into Postscript, but many are command-line programs with command-line limitations (this application lives on .NET).
Our application generates tens-of-thousands of PDFs that we need to send to a printer, except BEFORE the Postscript is…
I have an Android phone/tablet apk which is currently in Play store and has these settings in its manifest file:
package="com.company.xyz"
android:versionCode="0803010008"
android:versionName="01.00.08" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />
…
Hello,
I'm trying to do soemone a favour, and it's a tad outside my comfort zone, so I'm stuck.
I want to use R to scrape this page (http://www.fifa.com/worldcup/archive/germany2006/results/matches/match=97410001/report.html ) and others, to get the goal scorers and times.
So far, this is…
memberA is defined in the header of ClassA.
memberB is defined in the header of ClassB.
ClassB is a subclass of ClassA
Inside an instance of ClassB, setting memberA via simple assignment:
memberA = 0.05
...also changes memberB, but to a crazy number -- 1028443341. Additionally,…
I know I should generally avoid messing up with such system settings, but my application do already use nonstandard colors and I have no influence on that. I would like to be able to add standard .NET controls in some places, but their colors do not match. I would like to have a hack…
I developed a web application that allows users to modify existing web pages.
When a user type a url of an existing web page, I read the content of this page and using an ajax call, i display the content in a div inside my web application.
Now my problem is that often the content…
I'm trying to write a C#/.NET application that optimizes the hard drives for our XP workstations
Set pagefile to "No paging file"
Reboot
Run a defrag utility to optimize the data and apps
Create a contiguous page file
Reboot, run pagedefrag from Sysinternals
I'm really…
Hi,
I have a flex datagrid with 3 columns. The first column contains the image name(unique key). The other two columns have username and size details.
I want to split the username into lastname, firstname, address and some other stuff.
Can we have multiple rows in the grid…
Since the suggested way of storing plugins in MS CRM is via the CRM database, I figured it's about time to do something about the method I'm currently using, which is storing the DLLs on the disk.
The trouble however is that I don't know how to embed all the other various…
Is there a way to go through different commits on a file.
Say I modified a file 5 times and I want to go back to change 2, after I already committed and pushed to a repository.
In my understanding the only way is to keep many branches, have I got that right?
If I'm right…
I've got an app that's in invite-only beta right now. Problem is, I can't get the invite system to work. :(
On my root page there's a login form (which works just fine), and I'm trying to add a "request invite" form on the same page. I started doing it by putting the form…
hi ive got an activity with a list of contacts, which when clicked opens another activity and tells it which row was clicked. How would i load only this contacts name phone email etc. into strings in the new activity?
thanks
ng93
My web configuration looks as follows:
<system.web>
<compilation debug="false"/>
<httpRuntime executionTimeout="90"/>
</system.web>
This is fine for most webservices but one webservice has a query that is running a very long (5 minutes)…
Hi all, hopefully this is a basic question about make pattern rules:
I want to use a wildcard more than once in a prerequisite for a rule, i.e. in my Makefile I have
data/%P1.m: $(PROJHOME)/data/%/ISCAN/%P1.RAW
@echo " Writing temporary matlab file for $*"
…