url

How to add a URL to a latex bibtex file?

I'm using bibtex for my bibliography in latex. I have some URL's I need to cite in the paper. How do I add URLs into the bibtex? A typical section in my bibtex file looks like this: @conference{eigenfacepaper, title={{Face recognition using eigenfaces}}, author={Turk, M. and Pentland, A.}, booktitle={Proc. IEEE Conf. on Computer ...

Accessing URL executes JavaScript

Hey, I've coded an HTML page using jQuery for loading content. Now if I want to link directly to a submenu, is this possible to do with JavaScript? So for example if someone goes to www.mydomain.com/submenu1/ then some JavaScript code will execute and load the needed contents? Thanks a lot :) Is it possible to realize that with htacc...

Best way not to hardcode url's when using ASP.NET MVC with JQuery

Hallo guys, I'm using ASP.NET MVC with jquery and it's going great for now. Just, there is one question that is bothering me. How should I handle urls in jquery methods? I really wouldn't like to hard code it, like here: $(function() { $.getJSON("/Home/List", function(data) { var items = "---------------------"...

Include ":" character in parameter using Apache's mod_rewrite

I use something like that to pass to the parameter 'text' what follows after the domain RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?text=$1 [L,QSA] So if I have www.example.com/tralala I get $text='tralala' But I want it to be possible to have in the parameter the character ":...

Fixing broken urls

Does anyone know of a library for fixing "broken" urls. When I try to open a url such as http://www.domain.com/../page.html http://www.domain.com//page.html http://www.domain.com/page.html#stuff urllib2.urlopen chokes and gives me an HTTPError traceback. Does anyone know of a library that can fix these sorts of things? ...

How can I change the hostname in a URL using Perl?

I have some URLs like http://anytext.a.abs.com In these, 'anytext' is the data that is dynamic. Rest of the URL will remain same in every case. I'm using the following code: $url = "http://anytext.a.abs.com"; my $request = new HTTP::Request 'GET', $url; my $response = $ua->request($request); if ($response->is_success) ...

add a hash with javascript to url without scrolling page?

add a hash to url without scrolling page? with javascript i open page i scroll down i click link that adds a hash (maybe with a value #test) (example: http://www.example.com/#test) the page MUST not scroll back to the top. how can this be done? note: just checking if it's possible to disable the movement even if there is some tag wi...

Request Object not decoding UrlEncoded

C#, ASP.NET 3.5 I create a simple URL with an encoded querystring: string url = "http://localhost/test.aspx?a=" + Microsoft.JScript.GlobalObject.escape("áíóú"); which becomes nicely: http://localhost/test.aspx?a=%E1%ED%F3%FA (that is good) When I debug test.aspx I get strange decoding: string badDecode = Request.QueryString[...

How can I shorten a string and later get back the original contents?

I have a really long string that I need to pass in a URL, say 10,000 characters. Anyone know a good way to shorten it to under 2,000 chars, and then on a server somehow get the original back? This is Objective-C talking to Ruby, but that shouldn't matter. ...

controller sample code in php mvc framework and also support URL Routing

Please help me in coding for controller and support for URL Routing for PHP MVC framework. ...

Generate URL in HTML helper

Normally in an ASP.NET view one could use the following function to obtain a URL (not an <a>): Url.Action("Action", "Controller"); However, I cannot find how to do it from a custom HTML helper. I have public class MyCustomHelper { public static string ExtensionMethod(this HtmlHelper helper) { } } The helper variable has t...

Change URL location on CURL requests?

Hi, I have a page that is making an XML POST-Request to an URL on a different server (e.g. "http://wwww.externalserver.com/login"). This server is sending plain HTML as response. The problem is, that the URL shown in the browser ist still on my local server, let's say "http://localhost/callExternal.php". The external URL is redirecting ...

using seo user friendly in php

Hi, this is the URL path I currently use: /index.php?page=1&title=articles I want to get the URL path as /index/page-1/title-articles using SEO user friendly URLs in PHP. And how to get the value of the "title"? Any one can help me pls. ...

URL redirection

When user write http://nextech.pk/ in the browser, I want to redirect to http://www.nextech.pk/ , So I want to embend www to the URL when user write nextech.pk in the browser How can I accomplish this? I think I need to write some rules in the web.cofig to accomplish this, but I don't know exactly Thanks...

Changing URL through html select

What is the best way to change your URL through an html select? <select> <option selected="selected">Change to URL X</option> <option>Change to URL Y</option> </select> What Javascript should be used? ...

PHP - url-address for send-script

Hello, I'm creating pagging for some data. For example, I have a page: http://example.com/news.php?type=bla&amp;smth=bla There are I have a list of news with links to another pages. Link to the first page is: http://example.com/news.php?type=bla&smth=bla&page=1 Here is script, which creates pages links: print '<a href="?'.$_SERVE...

.NET: Verify URL is image

I have a requirement to verify that a user-specified URL is to an image. So really I need a way to determine that a URL string points to a valid image. How can I do this in .NET? ...

Dealing with special characters in a URL using Java.

I've written a Java program to generate an m3u file based on a CD ripped from k3b which pretty much preserves special character encodings in artist, album and track names. I then place these m3u files on a server and generate a GWT web application where the m3u file name is the target of an HTML anchor tag. For 99+% of cases, this all ...

Dynamic Query based on mulitple GET variables (Refine Search Form)

So im trying to find a script that can start me off with creating an 'refine search' panel which will be a form, hopefully something close to what Ebay have got at the moment. Whilst I know this is going to be a form and using the GET method, I cant find a script that can parse a url for multiple params and update the query all dynamica...

What's a Django/Python solution for providing a one-time url for people to download files?

I'm looking for a way to sell someone a card at an event that will have a unique code that they will be able to use later in order to download a file (mp3, pdf, etc.) only one time and mask the true file location so a savvy person downloading the file won't be able to download the file more than once. It would be nice to host the file on...