tags

SVN: trunk, branches and tags

Hi everybody. It's a month I'm trying to figure out the best solution to my problem and this is the best one. I would like to know if you agree with it. We are developing a set of interconnected web applications. We treat each application as a single solution indipendent from the others. Each application is formed by different projects,...

ROR + How to make Textarea with few conditions of validation and property .

Here, In my code I have to put one of the text_area and i have to put some certain condition over them. Code which was used by me. Ruby Code:: <%= text_area "rate_unit","rate_unit_notes", "rows" => 3, "cols" => 50, :tabindex=>3, :maxlength=>100 %> HTML Code after executing the page <textarea tabindex="3" rows="3" name="rate_...

PHP get all unclosed HTML tags in string

Hello! How can I get all the unclosed tags in a given string, prefferably in the order they should be closed? Note: consider that there are no errors in the HTML and that it was just cut off after X characters. No it's not a case of bad html or overlapping tags etc. Also there will be no ending Example: <p><span>Lorem</span><b>ipsum ...

How to pre-compile jsp tag files?

http://download.oracle.com/javaee/1.4/tutorial/doc/JSPTags6.html says: Tag files can also be compiled into Java classes and bundled as a tag library. This is useful when you wish to distribute a binary version of the tag library without the original source. If you choose this form of packaging, you must use a tool that ...

How do people do this: http://mysite.com/#/page-name

I want to use deep linking on my site using this url method, but I'm not sure how it works. When I set my links to work like this: <a href="/#/page">stuff</a> the browser doesn't put it in the window location bar. Ideas? ...

User selects nodes for a custom view (DRUPAL)

Hi, all, I hope you can either help me, or direct me the the easy-to-find-in-retrospect answer which is already out there. I have had two drupal RFPs in the past month where the admins maintains content, but wants users to be able to mark nodes for viewing later in their own custom view. in both cases, the user should be logged in, and...

db access via interactive tags map

I want to create an interactive tags map, kinda like 'visual thesaurus' (http://www.visualthesaurus.com/), and use it as an a access portal to my DB (display tagged data in a separate area), what do you think would be the best technology to use? I need something that would be SEO friendly of course, easy to use (user wise), and easy to ...

Access switch and textfield in tableview from another method

I'm having a tableview with a couple of cells with 4 uiswitches and one textfield inside. Simple question. I need a way to read all the positions of the switches and the string inside the textview by clicking a button. Tableview, textfield, switches and button is working fine. Just need to access the values of the switches and textfield ...

Controlling XAML tags from C# code

Hi , everyone I have a WPF application , and I would like to modify the background color of the UI based on the user's selection at run time . Now , I want to create a button that changes the color each time its clicked , so this button must change a value from the XAML tags Please , help me doing it , I need it badly Thanks ...

changeFreq - new attribute for all (or at least most) HTML tags - is this a good idea? I'd like opinions before I take this further...

Hey, I have noticed, over the years, that sometimes search results will display results for pages where the content changes on pageload - for example if an online catalogue displays 5 random products in the "Featured Products" section. Some of the search results may be for these areas of the page. An idea I just came up with is that ea...

PHP - calculate color (hex) based on given variables

Hi I'm trying to create a tag cloud and need help in creating a function that can calculate the color needed to apply to each tag link. I have 3 variables: individual tag importance (from 0.1 to 1) largest (most important) tag color (hex code, eg. 'fff000') (hex code) smallest (less important) tag color (hex code) ...

replacing custom html tag in php

I have custom html tags in my apps, it looks like this: <wiki href="articletitle">Text</wiki> and want it replaced to be like this: <a href="http://myapps/page/articletitle"&gt;Text&lt;/a&gt;. How I can do that in PHP? ...

Removing XML-tag via regex

Greetings, I've read some threads about this topic, but actually I was unable to find or to think of a adequate solution (see for example: http://stackoverflow.com/questions/121656/regular-expression-to-remove-xml-tags-and-their-content). I have an xml tag like that: <bla_tag size="100" diameter="50" ratio="0.2" ...

jquery remove tags from external files and save them

Greetings, I need to remove tags (about 1000) within an XML file. I tried it with jquery, but with no success: <html> <!--jquery app removes specific <t2_patch ...>-tag --> <script src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt; </head> <body> <button>Kill t2_patch-tags </button> <script> $("button").clic...

How to write tag deleter script in python

I want to implement a file reader (folders and subfolders) script which detects some tags and delete those tags from the files. The files are .cpp, .h .txt and .xml And they are hundreds of files under same folder. I have no idea about python, but people told me that I can do it easily. EXAMPLE: My main folder is A: C:\A Inside A, I...

PNG won't display in classic asp site

I've got an ASP page and try to show the FF logo image on it and it won't display. It won't even show if I copy it local; only seems to be this particular PNG file: <p><img src="http://sfx-images.mozilla.org/firefox/3.6/468x60_orange.png" alt="Spread Firefox Affiliate Button" /></p> Page URL: https://english.ttu.edu/fyc/testpng.a...

Preg_Match_All: two values in a pattern

I have custom tags [tag val=100][/tag]. How do I get val and whatever goes between the tags? ex: [tag val=100]apple[/tag] value1 = 100 value2 = apple edit: what if I had multiple items inside the tag ex: [tag val=100 id=3] ...

Nhibernate criteria API for many-to-many

My object model is the following: Item has many Tags and a Tag could belong to many Items I'd like to execte the following query using criteria's. SELECT * FROM Item item where item.Id in (Select it.ItemId from dbo.ItemToTags it where it.Tag_id = 'ONE') and item.Id in (Select it.ItemId from dbo.ItemToTags it where it.Tag_id = 'TWO') ...

Cache tags with Ehcache

I have 2 functions: first public String doA(Integer userId, String someValue) that I want to cache (taking into account parameters of function), and second public String doB(Integer userId) that should drops cache of function "doA" for current userId. Does Ehcache support something like memcached tags or anything other that can he...

How to get last Git tag matching regex criteria

Hi! I need Git command to get/find last tag starting with 'v' to get last versioning commit (I am using tags with v letter at the beginning to tag next application version (example: v0.9.1beta). Is there any way to do it? ...