exclude

Exclude Category From wp_get_archives?

Is there any way to exclude a category from wp_get_archives? I'm trying to show the months in the sidebar, but I want to exclude the posts that are not blog entries. $catID = get_cat_id('Projects'); $variable = wp_get_archives('type=monthly&show_post_count=1); echo $variable; ...

Grep: Excluding a specific folder using

Say our folder structure looks like this: /app /app/data ... /app/secondary /app/secondary/data I want to recursively search /app/data but I do not want to search /app/secondary/data. From within the app folder, what would my grep command look like? ...

Jquery: Exclude a contained element

Hello <div><img src="truc.png" /> Chouette</div> I'd like to mouseoverize the div but not the img $('div').mouseover(go_truc); How can I do that ? ...

Drupal - Hide a single page from search index

Hi, I've taken over an existing Drupal installation and have been asked to remove a single page from the site search results. I know about the lullabot tutorial through this question: http://stackoverflow.com/questions/1748837/hide-drupal-nodes-from-search, but that talks about excluding a class of content when I really just want to excl...

Exclude category from custom taxonomy output

Hello, I'm using the query below to output all links from a custom taxonomy. It outputs all posts that are tagged 'http' from the taxonomy 'words'. I would like to exclude some general categories from the output. So, fe. it only outputs links in the media and news categories. What would be the best way to achieve this? $wp_query->re...

maven-compiler-plugin exclude

Hi, I have a following Problem. I would like to exclude some .java files (*/jsfunit/.java) during test-compile phace and on the other side i would like to include them during compile phace (id i start tomact with tomcat:run goal) My pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-...

Trying to exclude certain extensions doing a recursive copy (MSBuild)

I'm trying to use MSBuild to read in a list of files from a text file, and then perform a recursive copy, copying the contents of those directories files to some staging area, while excluding certain extensions (e.g. .tmp files) I've managed to do most of the above quite easily using CreateItem and the MSBuild copy task, whatever I do t...

Django excluding specific instances from queryset without using field lookup

Hi, I sometimes have the need to make sure some instances are excluded from a queryset. This is the way I do it usually: unwanted_instance = Mymodel.objects.get(pk=bad_luck_number) uninteresting_stuff_happens() my_results = MyModel.objects.exclude(id=unwanted_instance.id) or, if I have more of them: my_results = MyModel.objects.exc...

RegEx to match a pattern and exclude a part of the string

Hi, I have got some strings to be matched via RegEx. We have a java application which reads the regex from a config file and takes two groups of strings, number of which are specified in the same config. E.g. CustomAction.523274ca945f.dialogLabel=Executing Custom Code... will be matched with (?m)^(?!#)\s*(\S*)\s*=\s*(\S*.*) What...

SQL: Performance comparison for exclusion (Join vs Not in)

Hello, I am curious on the most efficient way to query exclusion on sql. E.g. There are 2 tables (tableA and tableB) which can be joined on 1 column (col1). I want to display the data of tableA for all the rows which col1 does not exist in tableB. (So, in other words, tableB contains a subset of col1 of tableA. And I want to display t...

Run command from variables in shell script

I wrote this piece of code to scan a directory for files newer than a reference file while excluding specific subdirectories. #!/bin/bash dateMarker="date.marker" fileDate=$(date +%Y%m%d) excludedDirs=('./foo/bar' './foo/baz' './bar/baz') excludedDirsNum=${#excludedDirs[@]} for (( i=0; i < $excludedDirsNum; i++)); do myExcludes=${...

How to build Android without the phone application?

i'm trying to get android running on a gumstix overo system. since i'm not planning to use the final "product" as a phone, i asked my self if it is possible to exclude applications like the phone/dialer-app from the kernel build-process (any config parameter probably?) thanks for any advice in advance :-) ...

SQL select without showing joining columns in Joins

How do i exclude duplicate columns of joining keys when we do a join? ...

Django - How to transform a QuerySet to a Q object?

Is there a way to transform a QuerySet to a Q object in django? My specific motivation: I would like to subtract one QuerySet (qs_A) from another QuerySet (qs_B). The only way I can think of is by using exclude() and a Q object equivalent of qs_A. Example: def my_function(qs_A, qs_B): # Here I need to transform qs_A to a Q object ...

jquery: exclude children

I know this has been asked numerous times, and I have tried all the suggestions, and read all about varying selectors, and etc. but nothing is working for me given the following piece of HTML: <div class="class1"> <p><a>link</a></p> <div class="class2 class3"> <p><font><a>link2</a></font></p> </div></div> I want to select t...

SQL Query - SELECT all rows except where value in column begins with 402 or 403 or A40

I have a (MS) SQL VIEW with no control over and it also queries several other SQL VIEWs that I also have no control over but must use. Get all rows based on "pilot" value except where it starts with 402 or 403, or A40. This is the current query that works fine as long as all "pilot" entries are possible to interpret as INT. SELECT * fr...

Is there an elegant way to exclude the first value of a range?

Let's say I have a range from 0 to 10: range = 0...10 Three dots mean, that the last value (10) is excluded: range.include? 10 => false Now, is there a similar and elegant way to exclude the first value? For the above example, this would mean to include all values that are bigger (>, not >=) than 0 and smaller than 10. ...

How to symlink folders and exclude certain files

Hey Guys, I'm not a server guru (unfortunately) but have a decent knowledge of linux & bsd. I'm trying to symlink multiple instances of HLDS (game server) but need to exclude certain folders & config files to achieve this properly. I need to do it this way as HLDS loads many mods automatically, and putting an exception to disable the mo...

ant zip; exclude all sub-directories and files

When creating a zip from ant, how can I exclude all sub directories and files from a given directory? I have tried the following but it doesn't seem to prevent them from being included in the zip <target name="zip"> <zip destfile="C:\Projects\example\builds\.zip" excludes="C:\Projects\example\logs\**\*.*"> ... ...

Is there a way in a visual studio database project to exclude certain object during deployment?

I have a scenario where I am using a visual studio 2010 database project to deploy changes to multiple database installations, but on certain ones I want to exclude a set of views from that copy. Is there a way using build configurations to exclude these views from being deployed? ...