View History on an file in a branch show only changes since the branch. I need to go back further -- like how created the file in the first place. I've also tried Sidekicks, and it doesn't seem to show history from before the branch either.
Short of hunting down the file in the trunk manually, is there a way to view a file's history from the time it was added to now following the path in the branch?
Is it possible to apply the Replication mechanism on single MySQL server?
I want to replicate the changes done in test db to Main db in the same server, so can i use this Replication mechanism on same server?
I have a python module with a lot of variables. These variables are used and changed by many other modules. And I want to reload this module from itself when it happens (for refresh).
How to do that?
# ==================================
# foo.py
spam = 100
def set_spam(value):
spam = value
foo = reload(foo) # reload module from itself
# ==================================
# bar.py
import foo
print foo.spam # I expect 100
# assume that value changes here from some another modules (for example, from eggs.py, apple.py and fruit.py)
foo.set_spam(200)
print foo.spam # I expect 200
dear experts,
This question is an extension of this question I asked.
I have a std::vector vec_B.which stores instances of class Foo. The order of elements in this vector changes in the code.
Now, I want to access the value of the current "last element" or current 'nth' element of the vector. If I use the code below to get the last element using getLastFoo() method, it doesn't return the correct value.
For example, to begin with the last element of the vector has Foo.getNumber() = 9. After sorting it in descending order of num, for the last element, Foo.getNumber() = 0.
But with the code below, it still returns 9.. that means it is still pointing to the original element that was the last element.
What change should I make to the code below so that "lastFoo" points to the correct last element?
class Foo {
public:
Foo(int i);
~Foo(){};
int getNum();
private:
int num;
};
Foo:Foo(int i){
num = i;
}
int Foo::getNum(){
return num;
}
class B {
public:
Foo* getLastFoo();
B();
~B(){};
private:
vector<Foo> vec_B;
};
B::B(){
int i;
for (i = 0; i< 10; i++){
vec_B.push_back(Foo(i));
}
// Do some random changes to the vector vec_B so that elements are reordered. For
// example rearrange elements in decreasing order of 'num'
//...
}
Foo* B::getLastFoo(){
&vec_B.back();
};
int main(){
B b;
Foo* lastFoo;
lastFoo = b.getLastFoo()
cout<<lastFoo->getNumber();
return 0;
}
I have the problem that C++ compiler does a recompile without any changes done.
Does anyone of you know how to get a list on criterias why VisualStudio decides to start a compilation.
All of the NHibernate examples I've see that use hbm files have the hbm.xml file set as an embedded resource with "do not copy" chosen in the file properties. This means that if a database column name were to change in production, the app would have to be recompiled with the changes in the hbm.xml file during build time.
Is there any way to make NHibernate load the hbm.xml files from the file system at application startup instead of using an embedded version?
I'm working on giving our users context-specific PUSH notification settings, similar to what Facebook has in their settings menu.
As far as I can tell though, there's no way to actually notify our server of these changes until the user actually launches the app.
Is this correct? Is there any mechanism provided for immediately alerting our servers to a settings change?
I want to traverse a tree and return changes to the tree whilst doing so. The result should be a Maybe monad, with Just tree if it succeeds otherwise None.
The question is, what is the cleanest way to stop with the traversing half-way and return None if necessary?
I have a method in a silverlight application. I want to start calling this method when an event occurs (mouse move), and continue to call this method every 1 second until a simple boolean condition changes. Is this possible ? I can't work out how to get the rx to generate multiple 'events' from the single event
I am trying to fire the asp.net button click event from javascript. Its working fine in IE, but the same code is not working on Chrome, please help me. Here is the js code,
var btnSave = document.getElementById('btnSave');
btnSave.click();
alert("The changes are saved sucessfully!!");
Please help me
D'oh! I just made a perfectly good commit to the wrong branch.
How do I undo the last commit in my master branch and then take those same changes and get them into my upgrade branch?
Thanks!
Is there any interpreter that takes a string or even a custom object as input and execute it on my datasource?
I cannot use linq to object because query always changes and the report i'm working on, has about 6000 queries which i can reduce to 9 if i find some tool doing that for me.
Opensource is very applicable.
thanks in advance.
Does anyone have or know of a guide for how to migrate from Delayed Job to Resque? I can't find any on Google and figure I must not be the first one doing this. Just a general list of changes that need to made and things to watch out for would be great.
Hey,
This one has me stumped.
Is it possible at all to change the background color of a UIButton in Cocoa for iphone.
I've tried setting the background color but it only changes the corners. SetBackgroundColor seems to be the only method available for such things.
Please refer to my screen shot
[random setBackgroundColor:[UIColor blueColor]];
[random.titleLabel setBackgroundColor:[UIColor blueColor]];
In Visual studio 2008 is it possible to have a resource file that is included as a separate file after compilation rather than as an embedded resource. This is to enable small changes to be rolled out more easily.
I have tried build options of Resource, None, Compile and also copy local on and off for most of these. However when ever I try access the resource at run time I get a cannot find resource exception.
Is this actually possible or am I wasting my time?
I have a control for uploading an image and above it is an image control.
When User clicks 'Upload' button, image turns to an animated image displaying 'WAIT' message, after the image is uploaded, the image source changes to that image.
I want to do this using simple AJAX, JAVASCRIPT (xmlHTTP objects) , ASP.NET, VB.NET.
Can anyone help me out???
Don't wanna use iframe or flash besides above four.
I need to be able to update my ec2 instance from a label in mercurial when it resets so my application is always set at the right revision.
It'd be great to be able to push my changes to a mercurial host and have my instances automatically update across the ec2 network when they are reset!
I really don't want to host mercurial on the same instance (or even a dedicated instance)
Visual Studio 2010 highlights all references to the same variable (or class) when your cursor is placed over it.
with the theme I use highlighted references are white on white - making them virtually impossible to read. what is the name of "display item" in Options- Environment Fonts and Colors that is responsible for that color?
changing Plain Text to a darker one partially solves an issue however that also changes color for lots of other stuff on a screen, so ideally would be to change a background for this type of "selection"..
I have a fullscreen path which consists of about 20 lines. Currently I am animating changes in this path using an NSTimer which frequently calls -setNeedsDisplay. Believe me: Performance sucks absolutely.
I slightly remember that there was some better way to animate paths on the iPhone. Some kind of special CA layer. I don't remember anymore it's exact name. Who knows?
I have this code:
a=[['a','b','c'],['a','f','c'],['a','c','d']]
for x in a:
for y in x:
if 'a' in x:
x.replace('a','*')`
but the result is:
a=[['a','b','c'],['a','f','c'],['a','c','d']]
and bot a=[['b','c'],['f','c'],['c','d']]
What should I do so the changes will last?
I need to detect if a request cookie - value is different from a response cookie - value.
Its not as easy as:
if(cookiesArePresent)
{
bool isDifferent = HttpContext.Current.Response.Cookies[".ASPXANONYMOUS"].value == HttpContext.Current.Response.Cookies[".ASPXANONYMOUS"].value;
}
But I read that changing the Response.Cookies changes the Request.Cookies. That would mean they are always the same if HttpContext.Current.Response.Cookies[".ASPXANONYMOUS"] was changed. Is there an easy way around this?
http://chance.lindseydev.com/2009/04/aspnet-httprequestcookies-and.html
I have a C# button, let's say 'ON/OFF':
I want to change 'OFF', when we first click it and run buttonOFF()
When we click again, it changes to 'ON' and run buttonON()
and so on..
What's the correct way to do that? Can I do it all in one onClick event? peace of small example would be useful. Thanks !
I have a page which contains following components:
1 Button
1 drop down list using jQuery
1 button whose on click event changes a text box value using jQuery
2 another buttons shown on hover
If I change the dropdown value, or press a button, then the page is re-rendered by ajax. After that, jQuery does not work anymore. If I refresh the page, then jQuery works fine.
How is this caused and how can I solve it?
Is there anything that stops the DateTime AddDays() method that doesn't run within a while loop. I have this simple bit of code;
DateTime last_day = monthCalendar2.SelectionRange.End;
DateTime first_day = new DateTime(year, month, day);
//Insert dates into vector
while (first_day != last_day)
{
dates.Add(first_day);
first_day.AddDays(1);
}
I step through the program and first_day never changes, anyone know why?!