I have discovered some differences between WPF 3.0 and WPF 3.5.
As a result, I need to know if an assembly was compiled against 3.0 or 3.5.
Is there a API for this?
I want to start up my Rails development server like this:
script/server OFFLINE_MODE=1
and have a method that checks for the presence of that constant:
helper_method :offline_mode?
def offline_mode?
defined?(OFFLINE_MODE) ? true : false
end
so I can hide stuff in my app when I'm coding without access to the internet. For some reason though, OFFLINE_MODE doesn't ever seem to be defined and the method always returns false.. thoughts?
Lets say I want to call a function repeatedly if the user selects a CheckBox named "repeat" but the calls to the function should stop as soon as the user 'unchecks' the CheckBox.
I tried using the 'Checked', 'Click' and 'Tap' event of the CheckBox but once the loop starts, it does not sense any changes in the checkbox's state.
I even tried using a loop inside another button's _Click method, but then that creates a lock on the Button's 'pressed' state.
Any ideas/alternate suggestions?
I have a program written in c++ that I want to profile, and I want to avoid restarting it when I start and stop profiling. Ideally I would be profiling both CPU usage and memory allocation. Is there any tool that will allow me to do this?
I have a SVN branch that I branched off from the Trunk several revisions ago. I have merged the branch with changes from the trunk to keep it in sync. Now I would like to finally integrate my Branch with the Trunk. What is the best way to go about this? I cannot use the re-integrate option because our SVN server version is only 1.4.
So I've got a very large database, and need to work on a subset ~1% of the data to dump into an excel spreadsheet to make a graph. Ideally, I could select out the subset of data and then run multiple select queries on that, which are then UNION'ed together. Is this even possible? I can't seem to find anyone else trying to do this and would improve the performance of my current query quite a bit. Right now I have something like this:
SELECT (
SELECT (
SELECT(
long list of requirements
)
UNION
SELECT(
slightly different long list of requirements
)
)
)
and it would be nice if i could group the commonalities of the two long requirements and have simple differences between the two select statements being unioned.
Hi!
I'm making an application which uses MANY images. The application gets the images from a server, and downloads them one at a time.
After many images the creation of a bitmap returns an exception, but i don't know how to solve this. Here is my function for downloading the images:
public static Bitmap getImageFromWholeURL(String sURL)
{
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(sURL);
myRequest.Method = "GET";
// If it does not exist anything on the url, then return null
try
{
HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse();
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(myResponse.GetResponseStream());
myResponse.Close();
return bmp;
}
catch (Exception e)
{
return null;
}
}
Can anyone help me out here?
Thanks in advance!
Hello, I'm trying to run an SSIS 2005 package from a SQL Server Agent job on my local PC. This package is attempting to connect to a SQL Server 2005 database on a remote server, but it gets the error message, "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'". What is the problem and how can I solve it?
Thank you in advance.
I only got the account username (DOMAIN\USER).
The check also has to take into account the user's groups.
I'd like to use this sample, but I can't figure out how to get a WindowsIdentity only from a username without his password.
I have a Java program which is being started via ProcessBuilder from another Java program.
System.exit(0) is called from the child program, but for some of our users (on Windows) the java.exe process associated with the child doesn't terminate. The child program has no shutdown hooks, nor does it have a SecurityManager which might stop System.exit() from terminating the VM. I can't reproduce the problem myself on Linux or Windows Vista. So far, the only reports of the problem come from two Windows XP users and one Vista user, using two different JREs (1.6.0_15 and 1.6.0_18), but they're able to reproduce the problem every time.
Can anyone suggest reasons why the JVM would fail to terminate after System.exit(), and then only on some machines?
I know this type of thing is looked negatively upon but I write software for people with disabilities and sometimes good gui practices don't make sense. In this case, the user interacts with a assistive interface and under certain conditions, my control app needs to prompt the user with a question. My background process creates a dialog (I'm using wxwidgets wxDialog class) and calls Show(). The dialog box appears but it does not have focus (the application that the user was previously using keeps it). Since my users can't use mice, they can't simply click on the window. I've tried calling show and then followed by SetFocus(HWND) but that doesn't do it. What's the problem? Is this even possible? Window7. I'm thinking that it might have something to do with it being a dialog and not a full window (wxFrame). Any help is greatly appreciated.
Sorry, this is probably a terrible question. I've JUST started learning python today. I've been reading a Byte of Python. Right now I have a project for Python that involves time. I can't find anything relating to time in Byte of Python, so I'll ask you:
How can I run a block for a user specified amount of time and then break?
For example (in some pseudo-code):
time = int(raw_input('Enter the amount of seconds you want to run this: '))
while there is still time left:
#run this block
or even better:
import sys
time = sys.argv[1]
while there is still time left:
#run this block
Thanks for any help. Also, additional online guides and tutorials would be much appreciated. I really like Byte of Python. Dive into Python can't quite hold my attention, though. I suppose I should suck it up and try harder to read that one.
Dear ladies and sirs.
Our product consists of client, server and agents. Each deployed on different machines. The QA is having a hard time to manipulate the log4net sections in the respective config files. Right now, they have to have remote desktops to all the relevant machines and open notepad in each of them and then edit the files one at a time switching between different machines as they proceed. A real pain in the ass.
Can anyone suggest a better solution to this problem?
Thanks.
Hi, is it possible to make something similar to the following with Postgresql without using a function?
pseudo sql code:
select * from sometable where somecol = somevalue AND someothercol IN exec( 'select something from exclusionlist' )
My primary intention is to build up a table with predefined queries to call inside a where clause
pseudo sql code:
select * from sometable where somecol = somevalue AND someothercol IN exec( select query from predefinedqueries where id=someid )
I have a Java application that I run from a console which in turn exec's another Java process. I want to get a thread/heap dump of that child process. On Unix I could do a "kill -3 " but on Windows AFAIK the only way to get a thread dump is Ctrl-Break in the console. But that only gives me the dump of the parent process, not the child. Is there another way to get that heap dump?
Hi, I've been messing with this for a few hours, and I just can't get the text to be replaced at all. I really can't believe it's taking so long, especially because I did this a few months ago and got it to work in minutes.
Anyway, here is my site I'm working on:
http://www.moreheadplanetarium.org/regeneration/test/vision.php
and I want to replace the h1 tag (Morehead's Vision). I don't know what's wrong, since I've done everything I know to do. I'm jumping back into web design and using Firebug, and when I check the scripts it only has sifr.js and sifr-debug.js in the list, so I'm assuming the config isn't loading but I have no idea what could be the hold up...
How do you get the debug to work btw?
thanks!
i would like to reduce the live threads on server to reduce the bandwidth consumption for data(data pull while application launching time) transfer from my application to clients in my application.
i did setting like
is this setting enough to reduce the bandwidth consumption on jetty server ?
Please help me any one
1) in Jetty.xml:
<Set name="ThreadPool">
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
<name="minThreads"> 1 >
<Set name="maxThreads" value=50>
2: services-config.xml
channel-definition id="my-longpolling-amf" class="mx.messaging.channels.AMFChannel"
endpoint url="http://MyIp:8400/blazeds/messagebroker/amflongpolling" class="flex.messaging.endpoints.AMFEndpoint"
properties
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>1</polling-interval-seconds>
<wait-interval-millis>60000</wait-interval-millis>
<client-wait-interval-millis>1</client-wait-interval-millis>
<max-waiting-poll-requests>50</max-waiting-poll-requests>
</properties>
</channel-definition>
I mean PHP scripts on Apache are oriented for many users to use tham at the same time.
So will 1000 requests which came at the (relativly) same time be fully responsed faster than C# .Net programm perfoming algorithm 1000 times in while loop?
So we input same data, we perform same algorithm, which is written in a wary same way (respecting language diferencis ofcourse), outputing same data (lat us say saving it to file for tham to be relativly equal)
Who will be faster on some 1000 times of performing O(NN) algorithm, in which case (if it is possible) one will owerrun another?
I have NUnit installed at this directory.
C:\Program Files\NUnit 2.5.5\bin\net-2.0
I made the directory beneath a GAC.
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\NUnit
and copied the nunit.framework.dll, but I got the same error.
When I try to run my unit test (mut.dll) in some random directory. I get the following error. I have to copy the mut.dll under the NUnit directory in order to run it.
ProcessModel: Default DomainUsage: Single
Execution Runtime: net-2.0
Could not load file or assembly 'nunit.framework, Version=2.5.5.10112, Culture=n
eutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system
cannot find the file specified.
What went wrong? How can I install/copy the assembly inside a GAC?
Well, not my server. My friend found it and sent it to me, trying to make sense of it. What it appears to be is a PHP IRC bot, but I have no idea how to decode it and make any sense of it.
Here is the code:
<?eval(gzinflate(base64_decode('some base 64 code here')))?>
So I decoded the base64, and it output a ton of strange characters, I'm guessing either encrypted or a different file type, like when you change a .jpg to a .txt and open it.
But I have no idea how to decode this and determine its source. Any help?
SortedDictionary<int, string> typeDictionary = new SortedDictionary<int, string>();
SortedDictionary<int, int> lengthDictionary = new SortedDictionary<int, int>();
lengthDictionary has values in key value pair as follows:
<1,20>
<2,8>
<3,10>
<4,5>
i want LINQ query which will return me new list like as follows
<1,20>
<2,20+8=28> // 20 from key 1
<3,28+10=38> // 28 from key 2
<4,38+5=43> // 38 from key 3
Result should like this:
<1,20>
<2,28>
<3,38>
<4,43>
I have a local server installed on my Mac (MAMP).
My question is, where I can find the php functions in my computer?
What is the path to the functions folder? For instance, rand() time() isset() explode().
I would like to se the code to learn of it.
I have a while looking for it, but I can't find it.
Or is it that is already compiled?
Can someone help me here? I'm kind of lost.
Thanks people.
EDIT: can you be a little bit more positive? I;m trying to learn here, forgive me if I'm not to smart for you. Thanks again.
Explanations would help better than giving links I guess?