remove

Problems removing rows from dataset in C#

I have this situation: I have to create a dataset that takes all data from another dataset. In some cases I have to remove some rows from each of the new dataset. When both foreach cycles are finished, both datasets are empty, even when finish only the first, the first dataset has some rows. Any idea why, ... or tell where I have code w...

Remove Non English Characters PHP

hey, how can i parse a string to remove all non english characters in php right now I want to remove things like სოფო ნი� Thanks :) ...

Java 6: what is the best way to remove the first element from an array?

I have string array (String[]) and I need to remove the first item. How can I do that efficiently? ...

How to remove plist in documents directory when closed the application in iPhone?

Hi friends, I have stored the data into the plist(documents directory) and retrieved the data from the plist and displayed in the table view. Now i want to remove the plist, when i closed my application. How can i do that?. I have removed plist in my controller. But how can i remove the plist after i closed my application. For Eg : Fi...

Jquery dropdown remove class after disappears

I have this code for a dropdown and I need to remove the class 'hovered' on '#products' after the menu slides up and has disappeared. How do I do this? Currently it disappears straight away onmouseout Thanksfor any help in resolving this! :-) $(function() { var divTop = 168; $('#products div ul').css({'margin-top': '-' + divT...

JS/Jquery/RegEx - Remove all tags except the ones with classname XYZ

Hi everybody, this is driving me nuts ;-) I have a string whith various span tags... I want to remove all span tags except the ones with classname XYZ... The problem is that i havent found a solution to leave the closing tag... My starting point is this regex: text = text.replace(/<\/?[^>]+(>|$)/g, ""); But everything i tried to sa...

Beamer: How to remove shadow under the title on a given frame?

On one particular frame I would like to remove the shadow that the theme I am using inserts under the title. The reason is that with a black background (which I use only on this frame), it looks quite ugly. Do you have any idea can I do that? I've managed to remove the shadow under a block environment, thanks to: \setbeamertemplate{...

Removing new line function when enter button is pressed Java

Hi I have a text area that I would like to become blank when the enter button is pressed. I know this would normally be done with a setText method. However when I do this, the text is removed but the new line function created by the return key being pressed. My question is, is the anyway of stopping this default action from happening? ...

jQuery select the parent of a div

I have this html: <div class="vt ddsitem"> <a href="url"><img class="pt" id="xyz1" src="url"></a> <div> <img class="updown" src="images/updown.gif"> <a href="url"><img class="bin" src="images/bin.gif"></a> </div> </div> <div class="vt ddsitem"> <a href="url"><img class="...

Can't remove object from NSMutableArray

Hi guys, i am trying to remove objects from my NSMutableArray but i keep getting bad_access error. I used "removeAllObjects" and "removeObjectAtIndex" but none of these work. If i add objects to this array , everything is fine. What i want to do is to clear my array before filling it again. I didnt release the array before trying to...

How can I completely uninstall perlbrew?

I'm lovin' it, but I suspect it causes some problem. I know I can use perlbrew off but I would like to completely remove it. How do I do that? ...

Scheme list modification

I am trying to write a scheme function that takes a list of the form: ((#f ((1 1) (2 1))) (#f ((1 3) (5 1))) (#f ((1 4) (7 1))) ) and removes all the #f to give a list like: ( ((1 1) (2 1)) ((1 3) (5 1)) ((1 4) (7 1)) ) I have tried the following code but cannot get it to work: (define meth (lambda lst (if (equal? (cdr...

Fastest way to remove duplicate lines in very large .txt files

What is the best way to remove duplicate lines from large .txt files like 1 GB and more ? Because removing one-after-another duplicates is simple, we can turn this problem to just sorting file. Assume, that we can't load whole data to RAM, because of it's size. I'm just waiting to retreive all records from SQL table with one unique in...

R: removing the last elements of a vector

Hello How can I remove the last 100 elements of a zoo series? I know the name[-element] notation but I can't get it work to substract a full section ...

I'm having a problem removing an element with jQuery.

I'm trying to remove this element on success function, but it's not doing it!! jQuery file: $(function () { //More Button $('.more').live("click", function () { var ID = $(this).attr("id"); if (ID) { $("#more" + ID).html('<img src="moreajax.gif" />'); $.ajax({ ...

Remove unallowed character from specific pattern in the php

I have a text field in which user can enter any character he/she wants. But in server i have a string patter [a-z0-9][a-z0-9+.-]*, if any of the character in the value from the text box doesn't match the pattern, then i must remove that character from that string. How can i do that in php. is there any functions for that? Thanks in adva...

jquery remove from dom based on variable

Have a script to add / remove options from a select field -- the "value" of the option I want to remove should be equal to the "class" of the link clicked. I've tried several different versions of this script and I cannot for the life of me figure out how to properly get the variable delText into the function to remove it. help pls! ...

Erase-remove idiom with std::set failing with constness-related error

Can someone help me out here? Compiling this code: void test() { std::set<int> test; test.insert(42); test.erase(std::remove(test.begin(), test.end(), 30), test.end()); // <- Line 33 } Is generating the following error when compiling: $ make g++ -c -Wall -pedantic-errors -Wextra -Wunused -Werror a_star.cpp /usr/lib/gcc/i686-p...

Android Remove Custom Listview Blur Effect

I have a custom listview which is populated correctly. Each view contains a thumbnail. When I hold the listview for scroll i can see the pictures blurring and probably their size changing a little bit. When I release the listview it is back to normal. How can I remove this effect? It is breaking the layout of each views while scrolling. ...

Remove file from different directory

How do I remove certain files from a different directory than $PWD using the bash shell script. Looking at the documentation for rm, it appears that rm only works in $PWD. Am I forced to use this method: oDir=$PWD cd directorytoremovefiles rm files cd oDir ...