remove

.htaccess rewrite subdirectories to null

Hello, I want the browser location bar to show http://dir/ when I really am in http://dir/subdir/subdir. How do I do that? Thanks in advance! ...

iPhone: How to remove all objects from a UIScrollView

Basically I want to remove all objects from a UIScrollView and I haven't yet found a solution to it because a simple "removeAllObjects" command doesn't work. Does anyone have an idea how to do it? ...

Removing array elements

Hi, how do I remove an element from a Perl array ref? I've got its index and I don't want to set the element to undef, but to remove it completely. For example, how do I change $a = [1, 2, 3]; into $a = [1, 3];. ...

Remove part of URL

Hello, i have a url like this http://example.com/blog/photos/photos/gallery/image/1. And i need to remove the second photos folder. How do i remove the part using mod_rewrite and .htaccess? For your interest /blog is my document root. Thanks a lot for any suggestions, Steve EDIT You should know that the URLs being generated by Word...

hide column (header and rows) post jqGrid render

Is it possible to hide a specific column in jqGrid after it has been setup, while ensuring all alignments are correct (table width and header/data alignment) for IE/FF. The data can't be removed at back-end w/o major refactoring. I am reiterating through a specific column and checking if it is all empty, and if so, I tried .remove() on...

Setting Tab Index

Hi.. I have some values in Grid at Runtime.. Two Columns "Name" and "Value".. I made column[0] i.e Name uneditable..So when I press tab I don't want tabindex on Column[0]..I want Tab to move only on editable values.. Can Anyone Help!!! Thanks in Advance!!! ...

WPF - Best way to remove an item from the ItemsSource

Hi, I'm writing a custom ItemsControl (a tabbed document container), where each item (tab) can remove itself from the UI when the user closes it. However, I can't remove it directly from the ItemsControl.Items collection, because the items can be databound. So I have to remove it from the ItemsSource, which can be anything (ICollection,...

How to %-sign in php string

Hi i need to remove % sign from file or image name in directory which string i use $oldfile = "../wallpapers/temp-uploaded/".$file ; $newfile = "../wallpapers/temp-uploaded/". trim( str_replace('%', '', $file)); rename("$oldfile","$newfile"); But its not work reply me which string i use ( trim, str_replace not work preg_replace ho...

Jquery remove link with a certain label and the whole text after this link

For example: <a href="/" title="Go to homepage">Homepage</a> text after link; <a href="/" title="About">About</a> text after link; <a href="/" title="Contact Us">Contact Us</a> text after link; No problem: I can remove the link with: $("a:contains('Homepage')").remove(); My question: How to remove the text after the link previously...

Ldap Removing Property attribut

I am trying to remove a property from ldap. I know that if I do entry.Properties["myProperty"].Remove(entry.Properties["myProperty"].Value); it keeps the attribut and sets the Value to null the question is how do I remove the entire attribute from LDAP coul someone help..? ...

How to remove email addresses and links from a string in PHP?

Hi, i need to remove all email addresses and links from a string and replace them with "[removed]" and i'm a bit lost on how to do it. Can someone help me on this? Thanks. ...

in slickgrid how I can delete a row from a javascript function

how I can delete a row from a javascript function from a button for example ...

Remove duplicate elements off a multi-dimension array in php

Hay guys, i have an array contain this data Array ( [id] => Array ( [0] => 1 [1] => 10 [2] => 4 ) [age] => Array ( [0] => 1 [1] => 1 [2] => 2 ) ) Now i want to remove duplicates from the ['age'] and leave the first one ...

Python list remove method: how's the implementation?

In java, I have my client class that have the "code" attr, and the equals method. Method equals receives another client and compares with itself's code attr. In python, I just read that we have the __cmp__ method, to do the same as java method equals. Ok, I did that. I created my class client, with "code" attr and the method comp that v...

jQuery, Using .remove() , but I would like a confirmation box to appear.

I am using jQuery's .remove() to get rid of divs of content, but I would like to be able to have a confirmation or dialog box appear before it is removed. I am just not sure of the context of how I would write such a dialog. $(".remove").click(function () { $('div').remove('#item1'); }); Upon clicking the link with class remove I wo...

php arrays (and remvoing certain element)

I'm not 100% but this ($settings) would be called an array in php: $setting; $setting['host'] = "localhost"; $setting['name'] = "hello"; but what's the name for this that's different to the above: $settings = array("localhost", "hello"); Also from the first example how can i remove the element called name? (please also correct my...

Java, IO - fastest way to remove file.

Hey guys, My problem is that I have an app which is writing a lot of relatively (100-500kb) small CSV files (tens and hundreds of thousands ). Content of those files then get loaded in database via sql loader call (its oracle db) and this is what I have to live with. So, I need to remove those small files time to time to prevent them...

unable to remove div inserted by jquery

hello guys, am trying to remove a div inserted by jquery onclick. for some reason its just not working i tried remove(); hide(); css(); empty(); they all are just not working.. so here's my js function function callme() { var content = '<div id="floating_box" class="fb">' 'sdfsdfsdfsdfsfsddsfsfsdfsdfsdfsfsdfsdfsdfsfsdfsd' '</div>'; jQu...

Remove item from string array

I have a database field with data such as this: 76,60,12 If I want to remove, for example, 60, what do I have to do? The number to be removed could be any place. I also need to remove the comma, if needed. I'm using .NET 2.0. ...

Compare arrays and remove duplicates, in Ruby?

What would be the easiest way to compare multiple arrays, and remove duplicates? So (arrays inside arrays in this case)... a = [[2, 1], [3, 3], [7, 2], [5, 6]] b = [[2, 1], [6, 7], [9, 9], [4, 3]] c = [[2, 1], [1, 1], [2, 2], [9, 9]] d = [[2, 1], [9, 9], [2, 2], [3, 1]] ...would come out (with priority given to array a, the...