I have a file that I need to "protect" so that it cannot be copied! I am using Python on Windows XP.
I think it may just be changing file permissions??
I am trying to add some security to my computer at home and would like to have a copy of all Yahoo! IMs sent to me. I am using Python 2.6 on Windows.
I would also like to have every URL in Internet Explorer sent to me.
I'm fairly new to Ruby on Rails, and I'm attempting to create some fancy CSS buttons using the "sliding doors" technique. I have it almost working, but I feel like there has to be a better way to handle the tags for a link.
The way I'm currently doing it:
<%= link_to '<span>New car</span>', {:action => "new"}, :class=>"button" %>
This isn't terrible, per se, but I would like to know if this is the best way to handle span tags is RoR.
How can you stop the dev team from padding their numbers when it comes to creating task times? How is there any motivation for them to do their work if there are no real deadlines and they are just measured against their velocity.
Get the job done by this deadline
vs
Get the job done whenever we will reduce scope, quality or increase resources
In silverlight 3 I had an object that had a property that was an observable collection. I returned this via a web service then databinded to it.
Upgrade to silveright 4.....
Now my program crashes because the Observable Collection is converted to an array.
What is the best way to do this? Observable collection is not even an option any longer.
Basically I have a tear down method that I want to log to the console which test was just ran. How would I go about getting that string?
I can get the class name, but I want the actual method that was just executed.
Class testSomething() {
@AfterMethod
public void tearDown() {
system.out.println('The test that just ran was....' + getTestThatJustRanMethodName()');
}
@Test
public void testCase() {
assertTrue(1==1);
}
}
should output to the screen: "The test that just ran was.... testCase"
However I don't know the magic that getTestThatJustRanMethodName should actually be.
I made a class that represents a composite. I want this composite to take up all available space. How can I do this and have it show up full size in the designer?
So I had a class that referenced a class that referenced another class that called a web service.
So I learn how to create an interface using partial classes.
I inject the web service through the constructor.
Then my unit test fails because I am newing up the actual web service in the second level of the class. So I end up modifying all three classes to pass the web service down through the constructor... was not happy :-( gave up....
what should I be doing in this case?
I have a (potentially international) phone number. It may or may not have a country code prefix. Does anyone know of a database that will help me map phone number = time zone? I would even just like to map phone number = country, since I can probably create country = time zone by scraping existing data on the web. This is a more complicated problem than it looks; for example, how do I know if it's a US-based number -- e.g. is it a USA area code, or an international country calling code?
Any language is fine; I can port it.
Hello I am new to Eclipse (and I am a novice in Java): I am creating a project which should make use of some classes from another project. Do I have to export necessarily this last project as JAR file and add in my project? Are there other alternatives?
I had this awesome idea... but I am afraid maybe it is actually a bad idea....
we use unity for dependency injection.
I make interfaces from my web services using partial classes for the purpose of mocking and web services....
What I want to do is put my web services into unity and get them via dependency injection...
What do you think? Is there too much overhead somewhere? Memory leaks? Is this a bad idea?
for metrics reasons I need to know how many lines of code my class library has. I'm doing this for code coverage....
So if Class library 1 has 50 lines of code and 100% coverage
And if Class library 2 has 500 lines of code and 0% coverage
My total coverage is 90%
Any idea how to do this? Is there a utility or a way to use Visual Studio?
Huge project tons of classes and directories.
Do I make my unit test project mirror these directories or do I put them all at the root directory?
Somewhat annoying to have to make directory changes and class name changes twice.
What are some good design patterns for creating a form in java?
I have an app that has 6 tabs with a different form in each. How does the typical java programmer go about making these items accessible?
For example as a wpf programmer I might databind all these controls to underlying objects.
What do java programmers like to do?
I have a normal web service. Many java and .net users are accessing it. Can I update it to wcf without anyone having to change their code? Any tutorials?
I have a large sln with many project.
I just made a change in project A and it build 9 other projects that project A references, but that had no code change.
Anyone know of any tricks to speed this process up?
So I run my task with ccnet and my task creates files. What is the best way to read the file and identify if there is a certain value in it from msbuild??
Basically I have a tear down method that I want to log to the console which test was just run. How would I go about getting that string?
I can get the class name, but I want the actual method that was just executed.
Class testSomething() {
@AfterMethod
public void tearDown() {
system.out.println('The test that just ran was....' + getTestThatJustRanMethodName()');
}
@Test
public void testCase() {
assertTrue(1==1);
}
}
should output to the screen: "The test that just ran was.... testCase"
However I don't know the magic that getTestThatJustRanMethodName should actually be.
I recently decided to crawl over the indexes on one of our most heavily used databases to see which were suboptimal. I generated the built-in Index Usage Statistics report from SSMS, and it's showing me a great deal of information that I'm unsure how to understand.
I found an article at Carpe Datum about the report, but it doesn't tell me much more than I could assume from the column titles.
In particular, the report differentiates between User activity and system activity, and I'm unsure what qualifies as each type of activity.
I assume that any query that uses a given index increases the '# of user X' columns. But what increases the system columns? building statistics?
Is there anything that depends on the user or role(s) of a user that's running the query?
I have a pop up that is associated with a control on the screen. If the control is to far to the right of the screen the pop up appears off the screen. What is the best way to adjust for edge of screen conditions?
I have a form that is divided into two classes. Each class represents the widgets on part of the form. What is the best way to allow these classes to share data between each other and update each other.
Example:
Button in class A is clicked. Update text field in class C
I dynamically am changing the location and src of an iframe.
Is there an event that will tell me when the page i just put has loaded from javascript?
Basically I want to append something to the page but first need to know that everything is loaded.
It takes hours. Developers who are not going to work on a task are forced to watch the product owner hash out a task, which to me represents wasted time.
How do you avoid wasting time at these things?