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 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?
As far as I can tell, there's no difference between the error reporting or message redirection between users. They both use the same PHP ini.
However, when I run a script as a regular user, I get tons of NOTICES, when run as root, I get none. When starting PHP interactive mode as a regular user, I get two PHP Warnings that 'memcache' and 'xmlwriter' are already loaded; when starting as the root user, I get no warnings.
I know that I should be fixing the warnings, not "making the warnings go away;" that's on the ticket. The question is, Why are the users treated differently? Why does a regular user get notices and warnings, but root does not, even if their error reporting are the same?
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 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?
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!
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.
I have a script that calls the rand function:
<?php
echo rand(0, 9);
?>
If I run this script multiple times, will I get different numbers out, or will it always be the same? In other words, does PHP seed rand automatically?
In cygwin in windows vista, I tried to remove a few zip files I created from the command line in cygwin. The rm finished without complaining, but there remains entries for these zip files in the directory, that cannot be opened or deleted, either in cygwin or vista.
For example, ls -l shows the following after performing the rm:
$ ls -l
ls: cannot access submission.zip: No such file or directory
ls: cannot access otherfile.zip: No such file or directory
total 36
??????????? ? ? ? ? ? submission.zip
-rwx------ 1 username None 68 May 4 13:36 makefile
??????????? ? ? ? ? ? otherfile.zip
...
What's causing this, and how can I fix it?
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.
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 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?
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.
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>
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>
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.
I am currently experimenting with Java Socket Programming and succeeded in creating a simple application that allows me to send data back and forth between a client and a server.
I don't want to power my laptop (on which the server application runs) 24/7. Therefore, of course, no computer (that runs my client application) will be able to communicate with my selfmade server application as long as my laptop is turned off.
Now I'd like to know:
(1) Is it possible to run the server application on a remote (physical) server, so that I don't need my laptop for that purpose?
(2) If yes, do you have any suggestions where I could rent such a remote server?
As I said, I'm just curious about how all that stuff works. I don't really something expensive.
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?
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 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?
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 want to be able to call VB scripts from C#, which is easy enough, but I need to be able to get back the results from these scripts at times. Should I use the method referenced with something to read back, or should I use a different method? I've found a method to getting data back from powershell scripts using Runspaces and Pipelines, but I don't know enough about this technology to know if it will work with VB scripts as well. Ideally, I'd like to do something similar to the powershell method where I can just pass in the contents of the script without needing to reference an external file and get back the results. Can anyone tell me how to do this? Thanks.