tags

How to create mercurial tag with a space

I would like to tag a changeset in Mercurial to 'Distribution 1.0'. Unfortunatly I cannot find a command line command for creating a tag with a space in it's name. When I use hg tag -m "Distribution 1.0" (double quotes) I get the help for the hg tag command indicating that I have an error. When I use hg tag -m 'Distribution 1.0' a tag wi...

best python lib to make the textarea safe in the web page when user submit.

i want to clean some tag like : <script> and other, so what python lib you are using to do this . thanks ...

strip HTML Tags with perl

Whats the easiest way to strip the HTML tags in perl. I am using a regular expression to parse HTML from a URL which works great but how can I strip the HTML tags off? Here is how I am pulling my HTML #!/usr/bin/perl -w use strict; use warnings; use LWP::Simple; my $now_string = localtime; my $html = get("http://www.spc.noaa.gov/clim...

Can you use the browser specific prefix in front of all css tags?

Can you use the browser specific prefix in front of all standard tags? e.g. #div{ padding:20px; -moz-padding-bottom:10px; } is the above valid CSS for ensuring Firefox has a different bottom padding to all other browsers? ...

How to efficiently code a query in mysql to AND tags?

I have a common problem to be sure. I'd like to make a query that finds an entity that has "n" tags. So in the simplest case, we find all the entities that have the tag "hey". In a more complex case, we find all the entities that have all the tags "hey", "hi" and "howdy". It seems that I have to join to the tag table 3 times, and and th...

How can I solve this problem? "Error executing tag <export:formats>: groovy.lang.MissingMethodException: "

It seems like it´s not getting the right method or siganture. It has already worked for a long time, but yeterday I got this Error and I don´t know where I can start. I reinstalled the plugin "export 0.3" and I installed the newest Verion "export 0.6". All attempts were in vain. I´m using Grails 1.2, Groovy 1.7 and export 0.6. Here...

Django how to make tags?

if i have a question and answer system, and i want to add a tag feature, as for every question i should have some tags, separated by comma (just in stackoverflow): 1.I want to have a separate class model for that, with a foreign key to a question 2.in the form, i want the user to be able to add many tags, separated by comma, and when th...

how to search multiple tags in doctrine

I have a database with many-to-many relations on tag and person. I am in trouble when tried to search a person with multiple tags. I tried this but its fail: $person = Doctrine_Query::create() ->from("Model_Person p") ->innerJoin("p.tags t") ->whereIn('t.id',$t) ->execute(); The above statement ...

Replace using RegEx outside of text markers

I have the following sample text and I want to replace '[core].' with something else but I only want to replace it when it is not between text markers ' (SQL): PRINT 'The result of [core].[dbo].[FunctionX]' + [core].[dbo].[FunctionX] + '.' EXECUTE [core].[dbo].[FunctionX] The Result shoud be: PRINT 'The result of [core].[d...

Mysql is taking .7 seconds to "copy into tmp table". What is the best way to cache this kind of query?

I have a group-by query that is very fast when it comes to indexing, joining, sending the results etc. Unfortunately, mysql spends 99.6% of its time "copying to tmp table" when I profile it. I am at a loss as to how I can get mysql to perform better on its own. This group by query essentially finds the number of entities for the top 20 ...

Anyone know a common-words list for IT terminology?

I need them for help in building a tag cloud which needs to include IT terms like java, testing, versioning, patterns, agile etc etc. Need a few hundred words at least. ...

Is there any solution for Grails to select a folder like <input type="file"

is there a solution to select a folderpath as comfortable like the input-file tag? ...

is it possible to programatically simulate the click on an <a href> tag using jquery?

can we programatically click on an a href tag using jquery? i have tried $('a#someid').click(); but this does not trigger anything.. although i am using $("a#someid").attr("href", "someurl") to set the href dynamically which works fine.. Also i tried giving window.location = "someurl", but when this is done.. the IE browsers security co...

Wrap first level of "li" tags into one div using Jquery

Hi Have the following question: Say we have a multi-level html list that looks like this: <ul class="catalog"> <li> <ul> <li> <ul> <li>subcat subcat 1</li> <li>subcat subcat 2</li> <li>subcat subcat 3</li> </ul>...

Calling an instance of a class by its tag.

I have several instances of a UIControl class Foo being instantiated, one instance corresponding to each cell in a UITableView. Each foo toggles the image on the left side of the cell via a selector when the image is touched (checkmark, no checkmark). I've also assigned each instance a tag: foo.tag = indexPath.row; The center of the ...

primefaces poll tag does not work

hi all i am using primefaces library this is my jsp page source: <%@taglib uri="http://primefaces.prime.com.tr/ui" prefix="p"%> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request...

Common Tags For Issues

I have been using Issue Tracking system for a week . Right now , I do not really know How to categorize my tickets.I mostly use "enhancement" and "bug" tags .However I want to be more specific about tags.On google's project hosting page I saw tags like "UI" etc,but generally my tickets include lots of part of my application, so I can not...

App engine StringListProperty

I have a model which looks like this: class test (db.Model) : tagList = StringListProperty() siteName = StringProperty() I am storing tags in "tagList" and would like to run a query where I can get all test entities containing a particular tag in their tagList. Is this possible? ...

c# edit avi tag

Hi all! how can I do in c# to read and write some tag of an .avi file?? thanks ...

page setup information in html or page created by asp.net

Hi, I have HTML page of few tables created by ASP.NET and when I do the "Page Setup" option before printing the paper size is already selected as "Letter" and I want that option to be in "A4". I changed the size of the table but its not working. Is there any page setup information I can put in HTML so that "Page Setup" option can take...