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...
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...
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...
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...
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?
...
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...
<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)
...
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...
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.
...
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?
...
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...
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~
...
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...
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...
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().
...
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 ...
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?
...
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>
...
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=...
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...