The title pretty much describes it. If I resize my WPF app so that it stretches over two monitors in a dual monitor setup, and resize it back, there will be a ghost window in the second monitor that does nothing, but is still moved when I move the original window in the first screen.
Has anyone had issues like this? I think its a refresh bug on some OSs (I use WINXP 32 bit), but would like to confirm with the community.
I'm trying to install the Python Imaging Library on Mac OS X 10.4, but I get errors. I'm not sure where the error starts, it's just a huge wall of text when executing sudo python setup.py install.
But the last few lines are:
...
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccNKvQpP.out (No such file or directory)
error: command 'gcc' failed with exit status 1
I've googled, but none of the results are working.
I am importing SSIS packages to SQL Server 2008 that were originally built for SQL Server 2005. I upgraded them in VS2008 and them imported them. They all import and work except for the one with the Konesans File system Watcher task. I installed in the setup exe for Konesans File system Watcher SQL Server 2008 on my dev pc and the production server, but still get this error:
Exception from HRESULT: 0xC0010026 (Microsoft.SqlServer.DTSRuntimeWrap)
Any advice?
My current setup is only useful once collision has been made; obviously there has to be something better than this?
public boolean CollisionCheck(Rectangle rect1, Rectangle rect2) {
if(rect1.intersects(rect2)) {
return true;
}
return false;
}
How can I do preemptive collision detection?
I have a setup where I'm serving simple python pages using the mod_python publisher. At some points I'd like to have the python function raise a standard apache error - for example throwing a 500 error if a required file is missing. How can I throw an apache error from within a mod_python script?
I've got vim setup as my external diff tool:
[diff]
external = git_diff_wrapper
!/bin/sh
vimdiff "$2" "$5"
Say I have 300 files that have been modified; via bash, I type "git diff". It launches 300 vimdiffs sequentially, how do I abort it?
Hello, I can't login to github with generated ssh-keys. I've followed this manual: http://help.github.com/linux-key-setup but at step:
ssh [email protected]
I get:
Agent admitted failure to sign using
the key. Permission denied
(publickey).
What's wroing? And, of course, I'm adding my own user email.
We have our mail setup with google apps. We want to be able to run some regular expressions on incoming mail and process this information.
Is this possible today with Google App Engine? Does google provide some kind of infrastructure that can do this?
Since I have Django 1.1x on my Debian setup - how can I use virtualenv or similar and not have it mess up my system's default django version which in turn would break all my sites?
Detailed instructions or a great tutorial link would very much be appreciated - please don't offer vague advice since I'm still a noob.
Currently I store all my django projects in ~/django-sites and I am using Apache2 + mod_wsgi to deploy.
I didn't think this was going to be hard. I have a commmand file, d:\a.cmd which contains:
copy /b d:\7zS.sfx + d:\config.txt + d:\files.7z d:\setup.exe
But this line of C# wont' execute it:
Process.Start("d:\\a.cmd");
Throws Win32Exception: "%1 is not a valid Win32 application."
Process.Start opens .pdf files...why not execute command files?
Thanks in advance,
Jim
I have -- what I think -- is a simple question. Here's my code:
class Fruit < ActiveRecord::Base
end
class Apple < Fruit
end
class Kiwi < Fruit
end
Assume that I have all the STI setup correctly, and there are multiple types of Apple and Kiwi records in the table. From here...
fruits = Fruit.find(:all)
...how do I return an array of just Apples from the fruits array?
Do you have any advice as how to setup a Dropbox like service using git?
Do you think git is the right tool for this?
I was thinking about using a git + rush solution what do you think about it?
Hey guys, I am web developer who currently works mostly on his own but, some projects require outside coding help (my brother.) Anyway, after running in to the problem of "working on the same files" and "saving over each others edits" I decided to research ways to avoid this.
Through the help of stackoverflow I decided on subversion. My setup is the following: A windows 2008 server with a clean install. My desktop which is on the local network of the server. Then my brothers desktop which is at his house, not on lan. We both prefer to use netbeans for development.
My Questions:
How do we set this thing up correctly and most optimally. Here is my current setup and work flow.
dev site: in the past I just created sub domains with my web host for test sites (company1.bythepixel.com, company2.bythepixel.com), and editted those sites with netbeans set up having remote sources (ftp). how do i set up my netbeans now? should I set it up with remote sources? I guess I may need to set up a web server on my local server. I'm just not sure of the work flow. When i hit save in netbeans.. will it update the repository.. then do i need to update the site from the repository somehow?
live site: when going live, i would just copy all the files from the dev site into the live site. from what i gather i should be able to update the site from the dev repository?
Currently I am toying with virtualsvn server (http://www.visualsvn.com/server/) on my local server. It looks like it is set up to use the http protocol. Is there advantages to this or should I consider something that does the file//. Do you recommend any other subversion software that would run on my 2008 box?
how will my brother connect? should i set up a permanent vpn from his house to mine? suggestions?
(not that important) how do I deal with databases, there anyway to do subversion on database?
I know I have a lot of questions and I am trying to read / make sense of the free online subversion book, but its all so overwhelming! Wish there was a small subversion for dummies guide :)
If there are several methods in the test class, I found that the order to execute is alphabetical. But I want to customize the order of execution. How to define the execution order?
For example: testTestA will be loaded first than testTestB.
class Test(TestCase):
def setUp(self):
...
def testTestB(self):
#test code
def testTestA(self):
#test code
I have an ASP.NET web application developed in VS 2008 and i have implemented ASP.NET web forms URL routing by following this link
http://www.4guysfromrolla.com/articles/051309-1.aspx#postadlink
It works pretty good when i run it on the Visual studion IDE.But does not works when i created a site under my IIS and deployed the same files there.I have set ASP.NET version as 2.0 in the Properties window of my application too.But does not work. Any idea Why ?
Is there anything else to be setup ? Thanks in advance
In Internet Explorer 7 body onmousemove or document.onmousemove events only seem to fire while the mouse is inside the browser window, not when it's outside. Yet in Firefox the onmousemove event is called correctly when I move outside of the browser window.
How can I setup an event to be called outside of the browser window in IE?
Google Maps does this in IE. If you hold the mouse button down and move the mouse outside of the browser window you can see that the map still moves.
Hi guys,
I'm trying to get a few web development ideas off the ground. Unfortunately I will be the only developer, so I'm focusing on getting a good debuggable, testable setup going that I can develop applications rapidly with.
Which languages, development styles and frameworks would you recommend for rapid development? Last time I checked RoR was the next big thing but that was a while back.
Is there a simple way, preferably using LAMP tools, to register a domain, and setup the email system such that it takes all emails sent to [email protected] and forwards them to [email protected].
i.e., automate all the forwarding based on the username, so [email protected] would forward to [email protected], across all usernames.
I want to set data breakpoint for TCNT1 register of ATMega16 in AVR Studio 4.17 Build 666.
I add breakpoint by specifing in the Location field of "Add data breakpoint" window the value IO@0x2C.
But breakpoint seems not work.
Can some one help me how to setup a data breakpoint for an IO reginster?
Situation: jax-ws web service on Weblogic appserver; wsdl first development, jaxb customizations in external binding file.
I would like to get a handle to the actual jaxb context that will process the incoming soap xml message, before it has been unmarshalled into java objects.
Then I would like to get the unmarshaller of this jaxb context - the one that actually will be used during the unmarshalling. And then setup some properties of this unmarshaller (e.g. listener and idresolver).
Our server returns a custom 'X-Execution-Time' HTTP response header that returns in miliseconds the time between the server getting a request and our code returning a page, ie how long our code takes to run. I'm using JMeter to do some testing & I'd like to be able to report on this number of over time. I've setup this regular expression extractor: X-Execution-Time:\s(\d+) but I don't know how to get JMeter to report on this number per request so i can get a trend over time
Can someone shed light on how to setup by_star gem: https://rubygems.org/gems/by_star?
I ran ruby script/plugin install git://github.com/radar/by_star.git.
However, when I went to call a by_star method in one of my models from console, I got an undefined method error.
Do I need include or require statement? Could I be missing dependent gems? Ruby version issue?
I have a fairly complex Django project which makes it hard/impossible to use fixtures for loading data.
What I would like to do is to load a database dump from the production database server after all tables has bene created by the testrunner and before the actual tests start running.
I've tried various "magic" in MyTestCase.setUp(), but with no luck.
Any suggestions would be most welcome. Thanks.
Hi friends!
In my application I tried to search diff map location using diff lat and long. First time the application show the map but wen i change the lat long and try to invalidate the mapview using diff lat long, map is not refreshed.
Below is my code please have a look and suggest accordingly:
//Source code
protected void onCreate(Bundle icicle) {
// TODO Auto-generated method stub
super.onCreate(icicle);
setContentView(R.layout.main);
infoTextView = (TextView) findViewById(R.id.infoTextView);
// Finding Current Location
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
1l, 1l, this);
Location location = locationManager.getLastKnownLocation("gps");
// mock location by hard-code if DDMS has not sent a fake loc to the emulator.
if (location == null) {
lat = 13.6972 * 1E6;
lng = 100.5150 * 1E6;
} else { // get real location if can retrieve the location sent by DDMS or GPS
lat = location.getLatitude() * 1E6;
lng = location.getLongitude() * 1E6;
}
setGPSLocation(lat, lng);
}
//This is the function which I am calling with different lat and long
public void setGPSLocation(Double lati, Double longi)
{
lat = lati;
lng = longi;
System.out.println("Latitude :"+ lat +" Longitude :"+lng);
// Prepare text being shown
String tmpLoc = LOC_INFO_TEMPLATE;
tmpLoc = tmpLoc.replace("lg", String.valueOf(lng));
tmpLoc = tmpLoc.replace("lt", String.valueOf(lat));
infoTextView.setText(tmpLoc);
// Setup Zoom/Hide Buttons
linearLayout = (LinearLayout) findViewById(R.id.zoomview);
mapView = (MapView) findViewById(R.id.mapview);
mapView.invalidate();
mapView.setBuiltInZoomControls(true); //new by me
mapView.setSatellite(true); // Set satellite view
mZoom = (ZoomControls) mapView.getZoomControls();
linearLayout.addView(mZoom);
// Setup Marker
mapOverlays = mapView.getOverlays();
drawable = this.getResources().getDrawable(R.drawable.marker);
itemizedOverlay = new MyItemizedOverlay(drawable);
GeoPoint point = new GeoPoint(lat.intValue(), lng.intValue());
OverlayItem overlayitem = new OverlayItem(point, "", "");
itemizedOverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedOverlay);
// Centralize Current Location
myMapController = mapView.getController();
myMapController.setZoom(DEFAULT_ZOOM_NUM);
centerlizeCurrentLocation(point);
}
Any suggest is truly appreciable.