tags

what is the query to get "related tags" like in stack overflow

i have 3 tables: links (id, linkName) tags (id, tagName) tagsBridge (tagID, linkID) i am trying to support showing related tags like in SOF. so if you click on tags "XYZ", right now i am showing all the links with tag "XYZ" but i also want to show the distinct list of all other tags that people have tagged those items that also h...

reading Struts2 tag values in javascript

Hello, I am using struts2 with jsp. In Jsp, i have a table in which few rows of data are present. I have used iterators to display row data of table. Each row contains a button to update the row data(like priority of row data). I am trying to use javascript to update row data when a button is clicked. I am not able to access the...

Can non-latin characters be used in XML tags?

Is this legal? <?xml version="1.0" encoding="UTF-8"?> <Glāžšķūņa Rūķīši="7"> </Glāžšķūņa> I know I can use all kinds of characters in the content and attribute values, but can I use them in tag names and attribute names as well? ...

svn: differences between tags and a revision number reference

This is a similar but not identical question to What do you use the svn tags directory for anyways?; there are some subtleties here that I want to understand. Besides the following features: referencing a particular state of a file tree with a name rather than a number modifying name-number associations (but maintaining their history)...

Getting count of related tags

I recently asked this question to get related tags like in Stack Overflow: http://stackoverflow.com/questions/1648190/what-is-the-query-to-get-related-tags-like-in-stack-overflow I would like to show the count like in Stack Overflow, so with each related tag, what is the count of this other tag on questions with the first tag? Because ...

Getting related tags from SQL Server when you have filtered down

I asked this question before and got a great working answer. http://stackoverflow.com/questions/1648190/what-is-the-query-to-get-related-tags-like-in-stack-overflow but i realized that SOF actually takes it one step further as it supports multiple tag drilldown what i mean is, if click on the tag C#, that will filter to 20,000 questi...

is there an equivalent of the "IN" function for adding "AND"s to queries

i have the following tables in sql server: photoalbumsTable: album_ID album_caption albumtagmap id album_id tag_id albumtags id tag_name i have the following query which will show me where t.tag_name is in "Trips" OR 'Beach": SELECT b.* FROM albumtagmap bt, photoalbums b, albumtags t WHERE bt.tag_id = t.id...

Strip tags using jQuery?

HTML: <table> <tr> <td> <a href="#">link</a> </td> </tr> </table> I want to: FIND 'link' in 'a' and STRIP ALL parent tags except/until 'table'. I know its not the ideal way to do it, but sometimes you just can't modify the markup so it'd be great to know a jquery hack for this. ...

why <br /> and not <br/> ?

This is one of those things that you read once, say "aha!" and then forget. Exactly my case. Why is the line-break tag in xhtml preferentially written with a space <br /> and not in the also ok format <br/> ? I remember the reason was interesting, and as you can imagine it's not easy to find with google. For sure it's not an issue of x...

Tags mapping in NHiberbate

When I'm asking this question on stackoverflow, I can add tags to it. So, in DDD, I would have a class Question that somehow has tags. One way to model it would be with a List of tags, since a tag is not really an entity (or is it?). public class Question { // ... public List<string> Tags; } In the database, however, I would ...

How to read copied html text from clipboard with its html tags?

Hi, When a user selects and copies a text from a web page, I need to get that text with all the html tags included so that I can select some specific attributes etc. Is it possible to read it from .NET application? thanks ...

Django tags for templates in Eclipse

Hi people. I'm wondering if is it possible to have autocompletion, autoformatting, and those beautiful things working in Eclipse IDE for Django based templates. Mainly for these things: {% ... %} {{ ... }} Thanks in advance ...

tag replacement

Hi everyone ! Does anyone know how to set a new tagName to a tag using Jquery? Let's say i have an HTML document and I want to replace all 'fieldset' width 'div'. Thanks in advance ! ...

TourtoiseSVN: How to diff 2 tags?

How do I do a diff between 2 tags without checking out both tags? ...

What is the keyboard shortcut for jumping to the matching tag in Visual Studio 2005?

When editing HTML in Visual Studio, is there a keyboard shortcut for jumping to/from the matched html tag in much the same way that you can do so with matched brackets? I've already been to the Visual-Studio-Keyboard-Shortcuts Question. For example: I want to move from <head> to </head> when I press a keyboard shortcut. ...

Java Remove empty XML tags

I'm looking for a simple Java snippet to remove empty tags from a (any) XML structure <xml> <field1>bla</field1> <field2></field2> <field3/> <structure1> <field4>bla</field4> <field5></field5> <structure1> </xml> should turn into; <xml> <field1>bla</field1> <structure1> <field4>bla</fi...

tags in mysql + php

Is there a common way of dealing with tags in databases? I'm thinking of using tinytext with pipes. I think adding another table and using IDs might make it more complicated for little gain. What's your preferred way of doing this? and what is the right way of doing queries in a table to find results matching multiple or single tags...

add id to li a using jquery

Hi all, I'm looking for something that will allow me to add an id tag to the 9th li a tag in my list.. I'm not even sure if it's possible? Here's the code: <ul id="p7menubar"> <li><a href="#" class="trigger">Home</a></li> <li><a href="#" class="trigger">About Us</a></li> <li><a href="#" class="trigger">Collections</a></li> <l...

Re-insertion of <script> tags

Insertion of a file's tag, thus executing the file's code. Removal of the file's tag. Insertion of the same file's tag. Firebug does not seem to acknowledge and does not show the reinserted tag when the file's has already been inserted before. It does upon new insertions, of course. EDIT: Is this a problem of some kind? (the file...

Is <object> old fashioned?

Something like below,which is complicated to figure out what it exactly means: 9.<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="945" height="102"> 10. 11. <param name="movie" value="66.swf" /> 12. 13. <param...