remove

Git: removing selected commits from repository

I would like to remove selected commits from a linear commit tree, so that the commits do not show in the commit log. My commit tree looks something like: R--A--B--C--D--E--HEAD I would like to remove the B and C commits. So that they do not show in the commit log, but changes from A to D should be preserved. Maybe by introducing a s...

JQuery delete DOM element after fading out

I want to delete an DOM element right after fading out. What I did so far is $(element).click(function() { $(this).fadeOut(500, function() { $().remove(this); }); }); But now I always get this error in Firebug: http://dl.getdropbox.com/u/5912/Jing/2009-02-04_1109.png I guess it is because the fadeOut function is not really done w...

Find and Remove some text in Excel Worksheet with c#

Hi , i wanna find some text for example "Joe" and remove it from where it is in Excel Worksheet with C# ? ...

How to remove elements from array but effectively shift down everything else in the array?

Given a file compact.txt that contains no more than 100 integers greater than 0, you need to read the file into an array, then traverse the array removing all the zeros keeping the original order of numbers in tact. And below is my unfinished code. import java.io.File; import java.util.Scanner; public class CompactUtil { private st...

C# - LinkedList - How to remove all nodes after specified node?

I am implementing an undo/redo buffer with generic LinkedList. In this state: [Top] state4 (undone) state3 (undone) state2 <-- current state state1 [bottom] When I do a Push, I would like to remove all states after the current one, and push the new one. My current bypass is to do while (currentState != list.last), list.removeLast(); b...

Getting the removed text from a Java text component

A JTextComponent allows you to add a DocumentListener to its Document, which will tell you when text was added or removed, and the offset and length of the change. It will not, however, tell you what the text of the change was. This is not much of a problem for text addition, as you can use the offset and the length to find the added t...

How to hide the Dock icon

I want to make a preference for hiding the Dock icon and showing an NSStatusItem. I can create the StatusItem but I don't know how to remove the icon from Dock. :-/ Any ideas? ...

Removing a slot on a child button click

I've been trying to remove a slot from a child button click, but I can't seem to get it to work. E.G. flow do button("X") {parent.remove} end Any suggestions? ...

Unable to remove fast many files in Git

I removed 777 files which were in Git's branch newFeature by rm !(example) I would like to commit. Git ask me to manually remove each of the removed files by git rm file It would take a lot of time to write the above command for all 777 files which names are not similar. How can I remove these 777 files in my Git branch newFeatur...

Removing an element from an Array (Java)

Is there any fast (and nice looking) way to remove an element from an array in Java? ...

ViewState and dynamicly removed controls

A ASP.NET page's ViewState seems to have troubles keeping up with dynamicly removed controls and the values in them. Let's take the following code as an example: ASPX: <form id="form1" runat="server"> <div> <asp:Panel runat="server" ID="controls" /> </div> </form> CS: protected void Page_Init(object sender, EventArgs e) { B...

Common Lisp: The Remove Function, how is it used?

I have a query request-uri in the form of "/node/143" (just an example of the format). I want to strip the first forward slash from the string, I looked up the function remove and had a try. I just can't seem to get it working (I'm using SBCL on Linux). I've set the request-uri using this code. (setq request-uri "/node/143") When I ...

Removing <div>'s from text file?

Hey, Ive made a small program in C#.net which doesnt really serve much of a purpose, its tells you the chance of your DOOM based on todays news lol. It takes an RSS on load from the BBC website and will then look for key words which either increment of decrease the percentage chance of DOOM. Crazy little project which maybe one day th...

MSMQ Private queue automatically remove unread message beyond 24 hours

Hello, I use MSMQ through WCF to store messages in private queue. (private queue hosted by Windows Server 2003). Messages are stored only for 24 hours and automatically removed from queue, somebody know why ? Thank's for your help ...

How to remove files starting with double hyphen?

I have some files on my Unix machine that start with -- e.g. --testings.html If I try to remove it I get the following error: cb0$ rm --testings.html rm: illegal option -- - usage: rm [-f | -i] [-dPRrvW] file ... unlink file I tried rm "--testings.html" || rm '--testings.html' but nothing works. How can I remove such...

How to remove an arbitrary element from a JavaScript array?

In my Google Maps application I can place markers on the map, and I keep a reference to each of the markers placed, along with some extra information in an array called markers. Adding markers is easy, I just push() the newly created object onto the array (markers.push(marker)); However, when it comes to removing an arbitrary marker fr...

how to remove a node from an xml file using a C program ?

Hello Guys, I am using libxml/xmlparser.h library in my program to parse the xml file. Is there any function in that library that can remove a node from the xml file? I want to completely remove the node, i.e. its attributes and properties also. ...

Is it possible to let List collapse after I do removeAt certain times?

Let's say there is a list of List<UInt32> Thus, : 12|12 23|33 33|22 11|22 I need to remove 0th and 2nd element (List<UInt32>). However, when I try to foreach this list and first remove 0th, the List collapses its elements and 1st becomes 0th now.. so I don't want to delete the wrong element, because my another List<int> includes the ...

How delete folder in C++

Hey all, How delete folder using C++? I am something find at internet, but do not help me :( Can somebody help me? Thank you ...

How to remove a stack item which is not on the top of the stack in C#

Hello, Unfortunately an item can only be removed from the stack by "pop". The stack has no "remove" method or something similar, but I have a stack (yes I need a stack!) from which I need to remove some elements between. Is there a trick to do this? ...