tags

Stackoverflows Tags system, How To

OK so now I can understand that SO's search system is primarily based around tags, the tag system they use is a very good one at that but what I want to do is replicate it for my own projects. Now I can understand how to use foreign keys and such, but I'm not exactly sure how it's been developed here, do they use 3 tables or 2 etc. How...

CSS in ID colon means

Hi, I have seen an HTML code like this for the ID tag, id="t1:c3" Can someone explain this to me? What is the purpose of the said colon(:) ? Thank you. ...

Use of the TAGS element with Open Flash Charting 2 (by pullmonkey for rails)

Hi, I am trying to achieve this :: http://ofc2dz.com/OFC2/examples/Tags.html#SampleChart with ruby on rails - but its super tough! any advice out there? thanks! ak. ...

Implementing a Tag property on entity classes

When I create entities in a class library, I tend to add a Tag property which may be used by users and extending libraries to store arbitrary data with the object. Now I am looking for the best way to implement such a Tag property in my class library, and the reasons why. In System.Windows.Forms, Microsoft uses object Tag { get; set; } ...

CakePHP input is the wrong input type. Should be text field but is dropdown :S

I have a added the cakePHP tags functionality to my applications. I have a table called projects that can have many tags associated. So I have a tags table with an id and a tag varchar field. A projects table with a tags varchar field, and a link table projects_tags that has an id, tag_id, and project_id field. When I add the tags input ...

how spring mvc tag works ?

Hi there, I am trying to write some kind of raw html to mimic what spring mvc tag produces after page rendering(and I do make them look exactly the same if you open them with a html element inspector). as I want to create dynamic input form using javascript. but it didn't work. it seems I had to use only what it offers: e.g. <form:input ...

Are self-closing tags valid in HTML5?

The w3c validator doesen't like self-closing tags (those that end with "\>"). Are they still valid in html5? Some examples would be: <br \> <img src="" \> <input type="text" name="username" \> ...

Preserve style tag in fckeditor

I am trying to add tag inside fckeditors textarea. Fckeditor is removing the tag when I save it. I added FCKConfig.ProtectedSource.Add( /<style[\s\S]*?&lt;\/style&gt;/g ); to the fckconfig.js file but it is not helping. I did the same thing for the javascript tags and it works. To preserve style element, do I need to do anything el...

(CVS) Detect when files associated with tag/label have changed

How can I detect when a developer updates files associated with a tag/label in CVS, then changes the tag to point to the new versions? The use case is developers surreptitiously making changes after the checked-in and tagged files have been peer-reviewed and approved, but before they have been built & deployed. I would like to avoid ge...

PHP regex use same letter

Im trying to do a regex where I can find all html tags, but for each one, each opening and closing tag must be the same. Heres what I mean: (Yes I only want max 3 letters) preg_match_all("/\<[a-z]{1,3}\>(.*?)\<\/[a-z]{1,3}\>/", $string, $matches); Where the 2 [a-z]{1,3} are, I want those to be the same, so it doesn't match <b> with <\...

PHP MySQL input HTML tags

I have a PHP MySQL database which I will be storing all my information in. I have a text field on a HTML page that the user can add data to and then on submit a MySQL query inserts this information into a database. Pretty standard stuff. However, I am now in a position where I can attach a TinyMCE or FCKEditor onto my text field (now a ...

HTML tags in XML file, how to ignore HTML tags while XML parsing

Hi all, Thanks in advance, I am using NSXMLParser to parse xml file, in my application, my xml file is like this < item > < ID > 123456 < /ID > < category > Films < /category > < Heading > HollyWood films < /Heading > < Author > samule < /Author > < imageFull > http://tree_one.jpg < /image...

custom tag development - attribute not working

I'm trying to write a custom tab with attributes, but I can not get the tag handler class to read the attribute values. Using an <%= %> , I can get objValue to work. But objValue2 does not get evaluated when I use ${}. jsp: <% CommitmentItem ci = (CommitmentItem) request.getAttribute("commitmentItem"); %> <myTag:calPOP objValue="<%= c...

Getting all articles with a GROUP_CONCAT field of their tags

Hi everyone, I have a table articles, another tags, and a third called article_tags. I want to produce a page which lists all of the articles for a specific tag. My query looks like this: SELECT headline, GROUP_CONCAT(tags.tag_name) AS all_tags FROM articles LEFT JOIN articles_tags ON articles.article_id = articles_tags.article_id LEF...

In rails, how to g-zip a combined javascript file which generated by the 'javascript_include_tag'?

I was thinking javascript_include_tag with :cache option would g-zip the combined javascript file automatically: <%= javascript_include_tag 'j1.js', 'j2.js', 'j3.js', :cache => 'js_all' %> But it just generate a file which simply combined all those javascript files in plain text mod; Then how to g-zip the combinded file automatica...

Select all projects that have matching tags

I'm trying to find the most efficient way of dealing with this but I must tell you front-head I've made a mess of it. Looked around SO and found nothing of relevance so here it goes. How to select all projects that have similar tags to the desired project? Take this table for example: (sql code to recreate tables bellow) project 1 -...

How to prevent CKEditor from stripping < and > (greater-than/less-than)

Every time I enter < or > in a CKEditor window, save, and then come back to it, CKEditor replaces them with whatever was typed within the brackets and the accompanying end tag. For example: if I type <configuration details>, CKEditor will assume it is an HTML tag and put <configuration details></configuration details> in the html source...

Getting error while using display tag

I am using a display tag to display my table and it generating pagination on its own but when i click on the next page link i get HTTP Status 403 - Access to the requested resource has been denied I am using the display tab in combination with the struts tags could any one please tell me what might be going on..? Kaddy ...

Android jAudioTagger Problem - Reading mp3 file - VerifyError

Hi All, I have the following error but cannot workout the problem, i am READING MP3 files and the below error seems to come as it tries to WRITE MP4 files. AudioFile f = AudioFileIO.read(m_file.get(x)); Error comes after calling the above and passing the first MP3 file 08-27 09:51:47.671: ERROR/dalvikvm(4485): Could not find class ...

What does "href" stand for in HTML?

I understand what the "href" attribute in the anchor tag (<a />) is for, but what does the "h" stand for? ...