tags

Hierarchical Structure Vs Flat Structure

What are the pros and cons of using hierarchical data structure over flat data structure (more like tagging systems in blogs) Ecommerce systems like ebay, yahoo shopping and yellow pages use product and service hierarchy trees to represent data but if one wants to create a open tagging based ecommerce system then what are the possible c...

datagridview winform tag only brings back the first row value

I'm using visual studio 2008. I have a datagridview in a winform. I've bound to it using an object Private Sub LoadAllCampers() Dim Os As List(Of LE.Camper) = Nothing Dim Oc As New LE.Camper_Controller Os = Oc.GetCamperData(0) With Me.dgResults .DataSource = Os End With CamperBindingSource.DataSourc...

How do I extract <input> tags from and (X)HTML input in PHP?

Hi, I need to extract all the tags from an HTML file, In such a way that I would end up with either an array containing key=value for each of the attributes, or at least the raw text that makes up the tag. I don't quite get along with regex, much less in PHP, so I would really appreciate some help in this. PD: Some of the tags may sp...

audio (tag?) info via cmd line or .NET?

I know formats such as mp3, ogg and flac have tags such as artist, album etc. I would like to extract that information if available. Right now i am using ffmpeg to conv the audio so a way to do it within ffmpeg is convenient but not required. My website is writing in C# ASP.NET. I dont mind parsing cmd line output or using a lib call. W...

Looking for Custom <code> & <pre> CSS styles in Wordpress!

I'm looking for a way to customize my < code > and < pre > tags in my blog. I'm in need of custom CSS styles/codes. Anyone able to guide me to a few good examples? ...

tagging db with asp.net mvc - controller versus model question

i am using the Toxi solution on this site for tagging bookmarks: http://www.pui.ch/phred/archives/2005/04/tags-database-schemas.html In controllers, i have a LinkController class class LinkController ActionResult AddNewLink(FormCollection collection_) ActionResult Index() In Models, i have a LinkRepository: class LinkRepository v...

Struts Tag> use anchor tag instead of submit

<s:form action="products" method="post" theme="simple"> <s:hidden name="code" value="%{code}"/> <s:submit type="button" method="selectSale" value="see"/> </s:form> Question> How can I change <s:submit> to <s:a> struts tag? I want to send parameters to next page(action) by post (not get) ...

what is a TOPIC in Struts2

HI, I am learning struts 2 with Tiles 2 and the word "topic" shows up very frequently... What is a topic? for example: The sx:a tag (specifically the ajax a template) and the div tag support an ajax event system, providing the ability to broadcast events to topics. You can specify the topics to listen to using a comma separated list in...

how do i get a list of all tags used in a particular flickr set

with the flickr API i want to find out all tags used in one particular set of photos. i know it's easy to find out all my tags (via flickr.tags.getListUserPopular), but i don't know an easy way to limit the tags to the ones used in a particular set. checking every tag against teh photos in the set is too very slow. ...

How to use ASP.NET <%= tags in server control attributes?

Hi, This works: <span value="<%= this.Text %>" /> This doesn't work: <asp:Label Text="<%= this.Text %>" runat="server" /> Why is that? How can I make the second case work properly, i.e., set the label's text to the value of the "Text" variable? ...

php echo vs open&close tag

Just to clarify: The issues "echo vs print" and "double quotes vs single quotes" are perfectly understood, this is about another thing: Are there any reasons why one would prefer: echo '<table>'; foreach($lotsofrows as $row) { echo '<tr><td>',$row['id'],'</td></tr>'; } echo '<table>'; over: ?><table><?php foreach($l...

Struts Tag> submit to anchor

Question> How can I change <s:submit> to <s:a> in struts tag? I want to send parameters to next page(action) by post (not get) <s:form action="products" method="post" theme="simple"> <s:hidden name="code" value="%{code}"/> <s:submit type="button" method="selectSale" value="see"/> </s:form> help me~ ...

How to tag text in emacs

I'm developing a text annotation system in emacs, where the format of the annotation is something like this. If this is the text: Lorem ipsem por favor I need to annotate it like this: {latin}Lorem imsem{/latin} {spanish}por favor{/spanish} So what I want to do is select a region and then run a function or a macro that will prompt...

AMFPHP & PHP - Return xml data with tags. Do not want.

I'm using the simplexml extentsion and AMFPHP to send xml data to flash. Say I have this xml: <?xml version="1.0" encoding="ISO-8859-1"?> <people> <person> <name>bob</name> </person> </people> And I load it in with simplexml_load_file(). When I do this: $name = $xml->person[0]->name; return $name; it returns "<name>bob</nam...

Matching contents inside php tags using regex

Hi, I have some trouble matching the contents inside php tags. Currently I have this code, but it's not working for me: <?php preg_match_all('/<\?php(.+)\?>/', $str, $inside_php); ?> I need to retrieve the contents so I can do other things with them, like eval(). ...

Universal MP3 and WMA tag reader for Delphi

I know similar subjects have appeared in SO, but there wasn’t answer I am looking for. I need a Delphi library for reading tag information from music files. Currently I am using TJvID3v1 from JEDI library, but as far as I see, JEDI does not work with WMA files. I have found some manuals on how to implement such tag reading, but most of ...

An easy way to support tags in a jekyll blog

I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really to tag my posts. I can tag a post by using the YAML front matter, but how do I generate pages for each tag that can will list all posts for a tag? ...

[Struts Tag] how to change a link tag: Submit to Anchor

Question> How can I change <s:submit> to <s:a> in struts tag? I want to send parameters to next page(action) by post (not get) <s:form action="products" method="post" theme="simple"> <s:hidden name="code" value="%{code}"/> <s:submit type="button" method="selectSale" value="see"/> </s:form> ...

PHP Dom XML Parsing on empty self closing tags

HI Guys, I'm using DOM to parse an xml file. And I am having trouble catching an error that throws when the XML tag is empty and self closed. eg. <Title /> $xml=("http://www.exampleUrl.com/xmltoparse.xml"); $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); $x=$xmlDoc->getElementsByTagName('Root'); for ($i=0; $i<=10; $i++) { $id=...

PHP Search Title and Tags

Greetings, I'm thinking about the best way to implement a search on my website. I know about Sphinx and MySQL Full-text searches, however I'm not just searching a single field. I have two things that I want to search: the title of an article and the tags associated with that article. What I was thinking of doing is defining another col...