Hi,
I found that code somewhere and I find it quite useful but I would like to find a way to make it work so it capture only the given window target. Maybe with a processID or Window Name. Even if that window is not active.
I do not want to make that window active but want to get a screen capture like if I was doing Alt+PrintScreen on it.
Here…
My Kohana app runs perfectly on my local machine.
When I deployed my app to a server (and adjust the config files appropriately), I can no longer log into the app.
I've traced through the app login routine on both my local version and the server version and they both agree with each other all the way through until you get to the auth.php…
I'd like to know the best/easiest way to get a visual diff of a file given 2 revisions in Mercurial.
ie: I'd like to visualize the difference between revision 3 and revision 12, etc.
I have downloaded the VS2008 integrated shell, and the F# Feb CTP and I have the F# environment working just fine. The problem comes when I try to debug. Nothing happens at all. The output window says
------ Build started: Project: ConsoleApplication1, Configuration: Debug Any CPU ------
========== Build: 1 succeeded or up-to-date,…
Working on implementing image descriptions to a php run gallery and can't seem to figure out how to call each text file for each individual image.
//total number of images
$total = 77;
//max number of thumbnails per page
$max = 9;
//what image do we want to start from?
$startcount = $_GET["start"];
//if there is…
A reference converter from UTF-8/16/32 in C used to be available at ftp://ftp.unicode.org/Public/PROGRAMS/CVTUTF/. This included the files ConvertUTF.h and ConvertUTF.c.
It was freely available and is incorporated into numerous open source projects. But now it's gone! What's the story? Can is still be legally used? Was there a problem…
Hi... I am sending an Ajax Request using jQuery. What happens is that I am getting an "405 Method Not Allowed" Error. I am just posting a form, which would get the detail from the form and insert it into the DB. Just the usual stuff.I am using WEBrick that comes as default with the rails package. Can somebody please tell me how to fix…
Hi, the current page my flash application is running from is http://localhost:3000/. I'm trying to play a video using NetStream.play(relativeURL) by using a relative URL (e.g. "myVideo.flv"), but when I look at the actual request made by actionscript, it's dropping the port number. (e.g. http://localhost/myVideo.flv).
Is there…
I am running a website over Windows 2003 Server and IIS6 and I am having problems to write or delete files in some temporary folder obtaining this kind of warmings:
Warning: unlink(C:\Inetpub\wwwroot\cakephp\app\tmp\cache\persistent\myapp_cake_core_cake_): Permission denied in…
I'm trying to use dbghelp.dll. If I set it up in the VS2008 properties to point to the correct library and header file, and put dbghelp.dll in the same directory as the executable, one of the functions in the dll fails. If I LoadLibrary the dll, everything that function works.…
In an Activity, I need to call a web service every 30 seconds or so, and use the data to update the UI.
Is there a recommended approach on how to schedule a repetitive task?
Thanks
I am parsing a very large file of records (one per line, each of varying length), and I'd like to keep track of the number of bytes I've read in the file so that I may recover in the event of a failure.
I wrote the following:
string record = myTextReader.ReadLine();…
I have recently started working on a very large C++ project that, after completing 90% of the implementation, has determined that they need to demonstrate 100% branch coverage during testing. The project is hosted on an embedded platform (Green Hills Integrity). I'm…
I've written a linq-to-sql program that essentially performs an ETL task, and I've noticed many places where parallelization will improve its performance. However, I'm concerned about preventing uniquness constraint violations when two threads perform the following…
I'm building multiple countdown clocks on one page. The number of countdown clocks varies from day to day so I need to call javascript several times from within "while" code in php to produce different clocks. The following code works but it's based on knowing how…
I am trying to redirect visitors to a site based on their referring url.
Here is the script:
php
$domain='blankds.com';
$referrer=$_SERVER['HTTP_REFERER'];
echo $referrer;
if (preg_match("/$domain/",$referrer)) {
header('Location:…
When you use the its method in rspec like follows its(:code) { should eql(0)} what is 'its' referring to.
I have the following spec that works fine
describe AdminlwController do
shared_examples_for "valid status" do
it {…
I have a vage understanding of the Yield keyword in c#, but I haven't yet seen the need to use it in my code. This probably comes from a lack of understanding of it..
So; What are some typical good usages of Yield?
I'm just trying to figure out exactly what kind of script this is, and where I can find more info on implementing it. Not sure exactly what to call it. If you click on one of the speakers here, you can see it in action:…
I'm copying a subset of some data, so that the copy will be independently modifiable in future.
One of my SQL statements looks something like this (I've changed table and column names):
INSERT Product(
…
Hello,
I'm trying to learn programming by myself, I'm working from a book that has the following problem which I can't solve:
Allow the user to input two values: a character to be used for printing an…
I have a Class<? extends Annotation> and tried calling newInstance() but Java yelled at me for the obvious reason that I can't instantiate an interface. But I know frameworks like EasyMock are…
I'm getting ready to deploy a CakePHP site for the first time. I'm using the site with a MySQL database, and I'm still a little unclear about the proper use of users & permissions for MySQL --…