tags

SQL query: get tags associated with post

I have three tables. posts | id | title | +---------+-----------+ | 1 | hello | | 2 | goodbye | +---------+-----------+ posts_tags | tag_id | post_id | +---------+-----------+ | 1 | 1 | | 2 | 1 | | 2 | 2 | +---------+-----------+ tags | id | name | +----...

Get text between complex tags in PHP

Hi, I'm trying to get text from in between 2 html tags, only the difficulty is that the tag can differ from name. I'll explain into detail: <icon displayid="62115">inv_helmet_130</icon> I have to get the inv_helmet_130 But the displayid of the tag can differ, any ideas on how to solve this? Perhaps with a regular explression b...

Tag Conventions

Currently, these are the preparations I'm making: Convert to lowercase. Strip HTML tags. Check if tag already exists Are there any other things that I consider? note: Tags may be in Arabic. here the method i use function sanitize_tag($tag){ //strip slashes if(get_magic_quotes_gpc()) { $tag = stripslashes(trim($tag)); } //Re...

Looking for a starting point for a tagging system.

Basically I want to setup a tagging system like stack overflow has for entries and trying to plan out how a relevance based search would work. I want to have an option to pull up similar tagged entries for a related entries section. Right now I am using two tables for tags, a table for each unique tag and a join table. I am trying to thi...

Vim as a note taking platform: Jump to tag in vertically split windows

In the past, I have used Vim as a note taking platform by creating an index.txt file with a list of tags using the Vim help file format and then creating a bunch of text files that have the normal *Help_Tag* link syntax so that using CTRL-] on a tag in the index.txt file will jump to the respective tag in an arbitrary notes text file. Yo...

Subversion (and TortoiseSVN): Is it possible to create a tag directly from an existing tag?

In my subversion repository, I have the standard /trunk, /branches and /tags folders and a tag, say /tags/tag1. Is it possible to checkout /tags/tag1, make some local changes, and then commit directly as another tag, say /tags/tag2? Can I do this without touching the trunk or any branches? Also, if this is generally possible using subv...

Symfony: Is it possible to put elements inside a link_to tag?

Hi, I'm using Symfony 1.4 and wondering whether it's possible to achieve the following: <a href="#"><span>Text</span></a> ... using Symfony's link_to helper? Of course, it's possible to do this: <a href="<?php echo url_for('#') ?>"><span>Text</span></a> But I'm wondering if there's a simpler way to do it, especially as combining...

CakePHP - HABTM - adding multiple tags to multiple points

I am trying to 'tag' multiple 'points' with multiple tags. I'm tagging my single points successfully. Unfortunately, when i try and use a tag, such as 'test2' on another point as a tag it is either giving me a duplicate entry error if i have my 'unique' set to false or if 'unique' is set to true, it will del my tag for all other points ...

Is there a way of synchronizing changes made in a html file only in some areas in Vim? (leaving the other elements intact.)

Is there a way of synchronizing changes made in a html file only in some areas? leaving the other elements intact. Lets say I have these 2 files: hello-world-english.html: <div> <p>Hello World</p> </div> hello-world-spanish.html: <div> <p>Hola Mundo</p> </div> And I make the following change to the first one (hello-world-english....

git: Is an unannotated tag worse than a tag with a bad annotation?

Every git tutorial you look into has a clear opinion about tags: One should always use annotated tags, one of the reasons being that they are used by git describe. However, I don’t see anything bad in using git describe --tags which also takes the unannotated tags as a reference point. Is there anything else that’s considered bad about ...

Where are wordpress default widget files or functions located?

I'm trying to slightly modify the default wordpress tag cloud widget. I don't want to create my own widget because I literally want to adjust one small thing. I've looked through my wordpress installation but can't find the php file that contains the basic widgets. Even though I assume that they are defined in each theme, I still look...

JiBX unmarshalling - is it possible to tell JiBX to ignore the order of elements??

Is there a way to get by this? For example, my XML: <group> <idExt>new group idext</idExt> <user-id>1</user-id> <parent-id>2</parent-id> </group> when unmarshalling, goes without errors, but when I change order: <group> <user-id>1</user-id> <parent-id>2</parent-id> <idExt>new group idext</idExt> </gro...

iphone/cocoa custom ui element

Hi guys I'm very interested in using the typical mac 'tag' element in an iphone app (see specimen 1 - The Blue round element'). I dont really have any idea of how to implement it except for copying the color and making it a uibutton. I would like to be able to drag this tag from one 'section' to another 'section'. Can someone point me...

Algorithm for recommending content to user on the basis of tags

I am looking for a good algorithm that can recommend content objects to user by calculating similarity between user and content object. To calculate it, we have the content object tags (meta data) and user's interest data. We can learn about user's interest in two ways: Explicitly asking him: Ask him to rate a particular content item...

Does exists a tags field or something like tags in Mac OS for iPhone SDK?

Hi, I want to create a tags system for an iPhone app that let you type the tags names and appear like in some Mac OS software. Like this: Do you know if there's a way to do that? Or if there's a third party library for that? Thank you! ...

A question about UIVIEW Tags objective-c

I have a question about tags for UIViews. Is it possible to create your own tag like myview.tag="main" or something like that? I'm asking because my views are created in code and not with a nib file. After the container view has loaded and an xml file is fully parsed I need to be able to get at the subviews and update values. After a b...

Trying to go to the definition of class/function in vim

Hi, i have installed vim 7.2 and ctags 5.8 and created the tags file with "ctags -R /foopath". I have many methods that are called with the same name in several classes, so if i put the cursor in a function calling and i execute ":tag" it shows the first of the tags listed. If the i execute ":tn" several times i finally find the method...

jQuery access variable in <body> tag?

Essentially I need to specify a JQuery variable in my webpage's body tag, and have a function in my head tag read it. This is the function in my head tag (simplified): <script type="text/javascript"> $.noConflict(); jQuery(document).ready(function($) { $('a.paymentAdd').click(function(){ alert ("rowCount 1 = " + rowCount); rowCoun...

C# - Lost in Regex - Matching groups on different machines

Hi Ive thought i knew how to write basic regex. On my x64 pc in VS2008, C#, im writting the following regex: private static readonly Regex TagRegex = new Regex(@"\{QTable\((?<key>(.*?))#(?<query>(.*?))#(?<columns>(.*?))#(?<heading>(.*?))#(?<tbl>(.*?))#(?<headers>(.*?))#(?<row>(.*?))\)\}", RegexOptions.Compiled | RegexOptions.Multiline...

jquery tag cloud error?

I've got a problem. I made a tag cloud thingy to my website, but it doesn't work :( ({ tags:[{tag:'asdasd',freq:'4'}]}){tag:'asdasdsadasd',freq:'4'}]}){tag:'xcvxcvcx',freq:'2'}]}){tag:'cvbvcbcbvbcv',freq:'11'}]}) this is the response of the PHP file, and i'd like to get it with my html- <script type="text/javascript" src="../script...