tags

How to get whole text including tags from an XML file with jQuery

I have an xml file like: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <legends> <legend> <number>1</number> <legendString><ul><li>1.across:a system of rules of conduct or method of practice</li><li>1.down:a disagreement or argument about something important</li><li>2.down:any broad thin surface</li><li>3.across:the passage of...

UITextview viewWithTag - updating the text doesn't work while I know I have access to it.

Hey There, your kind help on a small matter. I have a UITextview with a tag // Text view UITextView *currentPage = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 300.0, 194.0)]; currentPage.scrollEnabled = YES; currentPage.textAlignment = UITextAlignmentLeft; currentPage.tag = 100; currentPage.editable = NO; currentPage...

HTML tag to have image dynamically adjust to fill screen?

I am learning how to make a slideshow presentation with S5, and it allows the insertion of images via standard HTML tags. For slideshows, it is often useful to have a background image that fills the screen during the presentation. Is there a way, such as a HTML tag, that specifically adjusts an image to fill the screen? Thanks. ...

Django odd problem with using reverse and url tag

I've found very odd thing about using reverse in Django 1.2.1. I have: myapp/ views.py urls.py in urls.py from django.conf.urls.defaults import * urlpatterns = patterns('myapp.views', url(r'^$', 'browse'), ) in views.py from django.shortcuts import render_to_response from django.core.urlresolvers import reverse print reve...

Oracle Read only users monitoring

I have 2 users tom,rick. I have designed a small schema for them, but i want to monitor when ever they login in to this schema. How to track user logins using stored procedures in oracle. I appreciate your help. Thanks venkat ...

JS/Jquery/RegEx - Remove all tags except the ones with classname XYZ

Hi everybody, this is driving me nuts ;-) I have a string whith various span tags... I want to remove all span tags except the ones with classname XYZ... The problem is that i havent found a solution to leave the closing tag... My starting point is this regex: text = text.replace(/<\/?[^>]+(>|$)/g, ""); But everything i tried to sa...

how to implement 3D Tag Cloud on iPhone, similar as FLASH web pages

a reference demo is here: http://www.roytanck.com/2008/03/06/wordpress-plugin-wp-cumulus-flash-based-tag-cloud/ could anyone share some hints? And are there any static lib to use? thanks! marcos ...

Vertical spacing around UL tag

One of the unintended differences between a <div> tag and a <ol> or <ul> tag is that the list tags add 20px of padding at the top and bottom of the block to whatever is specified in the style properties. In fact, using a <div><li></li><li></li></div> gives exactly the desired results. Although this workaround is apparently illegal- (qu...

Regular Expression (Python) to extract strings of text from inside of < and > - e.g. <stringone><string-two> etc...

I'm currently playing with the Stack Overflow data dumps and am trying to construct (what I imagine is) a simple regular expression to extract tag names from inside of < and > characters. So, for each question, I have a list of one or more tags like <tagone><tag-two>...<tag-n> and am trying to extract just a list of tag names. Here are...

Keyword or keyphrase in tagging system?

In term of effectively categorizing web content, I am wondering what are the pros and cons between keyword (a.k.a tag, e.g, google-app-engine) and keyphrase (e.g. google app engine). I know that delicious.com and this site are using keyword as a tag. But why don't they use keyphrase instead? If they use keyword, then it may cause certai...

mysql many-to-many tag implementation + full tag listing

based on http://stackoverflow.com/questions/1529073/how-to-implement-tagging-system-similar-to-so-in-php-mysql ive made small changes, and have the following image tag implementation: SELECT I.imageId, GROUP_CONCAT(DISTINCT T.tagName SEPARATOR ' '), COUNT(*) FROM Images I INNER JOIN ImageTagMap M ON I.imageId = M.imageId INNER JOIN Ima...

Is passing values to javascript/JQuery through the id attribute in tags common practice? Is it safe?

I find myself doing this a lot, for specific properties for animation purposes, and specially when I'm generating something using database values obtained through PHP. Is there a reason not to do this. Some sample code, to clear up ambiguity. This would be the JQuery: $('.class').each(function(){ var my_new_width = $(this).attr('i...

django feedparser limit the result

Hi guys, im doing something with feedparser: i have a templatetag for display "news" in my home page, but , how ill limit the feedparser result? inclusion tag from django.template import Template, Library import feedparser register = Library() @register.inclusion_tag('rss_render.html') def rss_render(object): #RSS URL "object" rss...

Cocoa - Insert text between tags

Hello, I was wondering how it is possible to insert text between HTML tags in Cocoa. I am displaying source code in a NSTextView - example: <html> <head> <title>test</title> </head> <body>hello!</body> </html> The code above can vary in size, but what should I do if I wanted to insert say <link rel="apple-touch-icon" href="webclip.pn...

like stackoverflow questions tags,how to design it in databases?

i has 3 plans: 1, in questions table: question ------------------------------------ id title content ... tags ------------------------------------ 1 aaa bbb ... tag1,tag2,tag3 (use , to split more tags) 2, in tags table and split: tags ------------------------------------ id tag --------------------------...

How can I display a HTML element at a precise location?

Hello, My question is almost stupid because I think I know the answer but I wanna be sure. Does it exist a mechanism to be able to put a tag at a specific location. I mean, I can set the coordinates X and Y of a tag. Maybe this specific tag should be placed in a special parent tag? Do you know an another way to do this? An example sho...

SQL posts top tags

I am using a MySQL database and looking to capture the top tags from my blog. The table looks like this: ++++++ post_tags ++++++ + id INT(10) + + post_id INT(10) + + tag_id INT(10) + +++++++++++++++++++++++ ++++++++ tags +++++++++ + id VARCHAR(10) + + title VARCHAR(50) + + uri VARCHAR(75) + +++++++++++++++...

How safe is it to accept a pre-defined set of non-harmful HTML tags from a request?

Hi guys, One of the first things I learned as a web developer was to never ever accept any HTML from the client. (Perhaps only if I HTML encode it.) I use a WYSIWYG editor (TinyMCE) that outputs HTML. So far I have only used it on an admin page, but now I'd like to also use it on a forum. It has a BBCode module, but that seems to be inc...

Multiple tag search in an associative table scheme

I'm working with your standard three table tag setup item_table item_id item_name tag_table tag_id tag_name tag_map map_id tag_id item_id How this works should be obvious to anyone who has used a similar scheme for their tagging architecture, now, using this scheme I have a scenario in which I need to print the results of the...

sortable tag lists, in terms of popularity?

I want to implement a tag list, for instance, top ten tags used in the website. Are there any tutorials or articles that can help me to create this! For example: #topic (200 mentions) #topic (150 mentions) #topic (50 mentions) .... and so on.. ...