I want to generate a url from a tag name.
In my view (asp.net mvc) I have the following:
<%= Html.ActionLink(Html.Encode(tagName),
"tagged" //action,
"posts" //controller,
new {tagName=Html.UrlEncode(tagName)} //querystring argument,
new {@class="tag"} //html attributes)
%>
But this generates the following URL if the tagName i...
If I know the URL of an MP3 file, what is the easiest/fastest way to get its length, bitrate, size, etc?
How can I download just the ID3 tag part of the MP3 to get these details?
...
Hi, I'm trying to figure out how to automatically link the email addresses contained in a simple text from the db when it's printed in the page, using php.
Example, now I have:
Lorem ipsum dolor [email protected] sit amet
And I would like to convert it (on the fly) to:
Lorem ipsum dolor <a href="mailto:[email protected]">[email protected]</a> ...
Hi Guys,
I have this code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="250">
<param name="movie" value="Spotify_premium_300x250.swf" />
<param name="quality" value="high" />
<embed src="Spotify_pre...
I need to be able to convert:
(url) http://www.joe90.com/showroom
to
(namespace) com.joe90.showroom
I can do this using tokens etc, and a enforced rule set.
However, is there a way (a java package) that will do this for me?
or do i need to write one myself?
Thanks
...
What is considered best practice to generate a URL that is publicly accessible, but shared via a side channel, so that it is in practice private to the group sharing it?
Something like:
http://example.com/club/XX-XX-XX-XX
http://example.com/club/YY-YY-YY-YY
Where XX-XX-XX-XX shared among one group, and YY-YY-YY-YY is shared by another...
i'm running out of ideas on the best regex implementation for this problem.
Sample user input:
bla bla bla http://foo.com bla bla bla http://tinypic.com/boo.png bla bla bla
Looking for solution that will detect non-image url and turn it into a link and also turn image url into an image embed (IMG tag).
so the output will be:
bla bla...
Let's say I have a big RSS feed full of Twitter posts, and they are all plain text. Lots of the posts contain URLs, and I'd like those URLs to be turned into links.
So I've got a variable that is equal to:
Visualization of layoffs by industry, number and date. Looking forward to seeing similar for hiring trends. http://bit.ly/XBW...
Hello,
I have a Data: URL (see: http://en.wikipedia.org/wiki/Data_URI_scheme) (as a NSString) and I want to open it in Safari. How would you accomplish this (I tried openURL:.)
Example:
data:text/html;base64,(Some Base64 Encoded Data Here)
Thanks,
Isaac Waller
...
I have an object like this:
public class adapterContext {
public HttpRequest Request;
}
adapterContext ac = new adapterContext();
ac.Response = context.Response;
I pass this object to my functions and use ac.Request[""] to get my url variables. However this somehow does not translate national/special characters correct. When I us...
I need to build a URL with a query string in C#. What is the best approach to doing this? Right now, I'm using something like,
string url = String.Format("foo.aspx?{0}={1}&{2}={3}", "a", 123, "b", 456);
Is there a better, preferred approach?
...
On our site, we provide to users a simulation based on their private information (given through a form). We would like to allow them to get back on their simulation results later, but without forcing them to create a login/password account.
We have thought of sending them an email with a link, from which they could get back their resul...
For some mysterious reason, Google has indexed both these adresses, that lead to the same page:
/something/some-text-1055.html
and
/index.php?pg=something&id=1055
(short notice - the site has had friendly urls since its launch, I have no idea how google found the "index.php?" url - there are "unfriendly" urls only in the content mana...
Is there a built in method to handle urls like Default.aspx/mycontent or do I need to handle it myself by taking the url and stripping of the file's path?
I have tried searching for it but haven't been able to find anything.
I'd like to handle .aspx/parameters and am not looking at Mod/URL Rewrite.
...
Coming from a PHP background I love using clean URLs to grab data from one service to another.
However, on some of my ASP.NET projects I get the horrible ViewState parameter in my URLs.
Is there a way to turn this off globally?
What affect will this have on my ASP.NET app?
...
Hello.
I am not entirely sure if this is possible or not but so far you guys here at SO were always able to help me out so here it goes:
The following website: www.bgarchitect.co.nz
Has a navigation that works fine on the main page but (due to me making a mistake) does not work on the sub pages as it relies on images being loaded and ...
Experience tells me I shouldn't be storing a url in my database of media items.
However that is what my architect is telling me. Surely it is the job of a front end server to map the filepath to a url?
Any hints? What should I be considering with regard to URL rewriting?
...
Okay, this is probably a simple one...
I've got a string in .NET which is actually a url. I want an easy way to get the value from a particular parameter.
Normally, I'd just use Request.Params["theThingIWant"], but this string isn't from the request. I can create a new Uri item like so:
Uri myUri = new Uri(TheStringUrlIWantMyValue...
I need to be able to send users a link that contains an encrypted value which is used to authenticate the user when they visit the link.
The current process uses a salt and roughly 40 character unique hash which is then encrypted and base64 encoded so that it can be safely be transported via email and in theory come back safely through...
I'm new to Regular Expressions and things like that. I have only few knowledge and I think my current problem is about them.
I have a webpage, that contains text. I want to get links from the webpage that are only in SPANs that have class="img".
I go through those steps.
grab all the SPANs tagged with the "img" class (this is the har...