url

Weather Channel API support for videos

Hi, I am developing an iPad application in which I will be displaying weather information for location entered by the user. I am using Weather channel API for this. Is it possible to get the video that shows weather of near-by locations of the location entered. (The Weather Channel Application is showing the video of the location say ...

Configure path to images in CSS for dev and production environments

Hi folks, I'm currently developing a website and I have my local environment which is hosted on an XP box with IIS 5.1. I'm using ASP MVC2 and .NET Framework 4.0. What I want to know is, if there's a way to "configure" in web.config (or any other ways) a path for all my images so that when my CSS uses url() it automatically knows w...

Is the Scheme Optional in URIs?

I was recently asked to add some Woopra JavaScript to a website and noticed that the URL started with a double slash (i.e. omitted the scheme). I've never seen this before, so I went trying to find out more about it, but the only thing I could really find was an item on the Woopra FAQ: The Woopra JavaScript in the Setup does not inc...

Encoding rules for URL with the `javascript:` pseudo-protocol?

Is there any authoritative reference about the syntax and encoding of an URL for the pseudo-protocol javascript:? (I know it's not very well considered, but anyway it's useful for bookmarklets). First, we know that standard URLs follow the syntax: scheme://username:password@domain:port/path?query_string#anchor but this format doesn...

Dynamic URL Routing w/ Web Forms

I have posted in here before but all have led to dead ends. First of all I got this to work via ASP 4.0 with MapPageRoute. But in 3.5 I apparently don't have that option. I want to accomplish the following: destination.aspx?id=1 -> destinations/rome destination.aspx?id=5 -> destinations/florida Below is the code I currently have: <%...

Android: Parsing URL into web service without space character

Hi, All I want to do is to send a URL String into my RESTFUL web service with some kind of code like this URL someURL= new URL("http://myWebService:port/service/"+CharSequence.getText()); Its all going well until I found error with space character in my URL. I found some solution about replacing the space character with %20 which is I...

Problem with URL escaping in Rails

I use Rails RESTful routing to generate URLs for one resource in my application. My resource ID contains some special characters. The confusing part is that in the generated URL, when I look in the HTML, is double escaped. For instance, /item/item+one get escaped to /item/item%252Bone instead of /item/item%2Bone. When getting the ID par...

URL Rewriting-Page display - rewrite rule in .htaccess

For URL Rewriting, i have got the output for static URL But , for dynamic URL , i am getting partial output only. I have placed the .htaccess file in the root directory only. Here is the code: Options +FollowSymLinks RewriteEngine on RewriteRule ^booking/price/([0-9]+)/?$ booking.php?price=$1 What will be the solution ? ...

Picture not displaying on IE !

Hi, I have a laughing problem : I upload a picture on my server. This image is displaying on Firefox, but not on IE, why ?? ...

send an url parameter to server from url (PHP/JavaScript)_

http://nomilead.com/create.php?uid=abc&amp;key=c79a&amp;web_url=http://dinesh707.blogspot.com/ Here im trying to send the url as a parameted "web_url". The shown is an ajax request that sends to a php server back end. from php end im trying to capture this by $web_url = $_GET["web_url"]; but it does not work. Please help me out ...

sysLoader.getResource() problem in java

Hi all, I am having following lines of code. sysLoader = (URLClassLoader)Thread.currentThread().getContextClassLoader(); url = sysLoader.getResource("tempFile.txt"); It is giving an weird problem. If I run this from a path where there is no space in the path (Folder names) then it is running fine. But if the path contains any spaces ...

URL rewriting in ROR

I am Amit. i am new to Rails. Please forgive me if ask any stupid questions. I have gone through this article. I am also suffering with the same problem. my website URL like this: locahost:3000/users/edit/30 I don't want to show the controller:users and action: edit. I want to Re-Write (rewrite) the URL or i want to maintain the URL...

Rewrite base rule- php

Internal URL: example.com/abc/xyz/rule.php?price=1&pass=2 External URL: example.com/abc/xyz/rule/1/2 But the css, js files are not coming into effect in the external URL. My .htaccess file: RewriteEngine On RewriteBase /example.com/abc/ RewriteRule ^rule/([0-9]+)/([0-9]+)/?$ rule.php?price=$1&pass=$2 ...

Change wordpress gallery shortcode slug to filename

Is it possible to change the attachment page slug to the referring filename? In short... i use the Gallery Shortcode to build a simple page based gallery. I change the orignal filename (like DSC1223.jpg) during the upload process (to 3b1871561aab.jpg) but it does not appery as slug within the url. It uses only DSC1223. Is there anyway ...

Django Images Display

Ok, now I know how to display images on ONE /myurl/ in Django as a list (YEAH!) But how can I display ONE Image per url with a button to click to the next image etc. So basically I would want to come to the first /urlstart/: text and a next button. brings user to e.g. /urlstart/1 There the first image of a List is displayed and belo...

Flex & OpenX Market: IMG URLs Incorrect Problem?

Hi, I've got OpenX working on my Flex site. But, I'm having problems getting OpenX Market working. At the moment, I only get my OpenX dummy ad-- no OpenX Market ads are displayed. So, I set an alert on the img tags and looped through the return. I'm trying to figure out whether the img tags that are referenced are correct. The odd on...

XML Parsing error not well formed. The problem is in the variable content, workaround?

Working on an API but I've run into a problem. This specific part of the response (in XML) returns a URL. Here's the error I'm getting: XML Parsing Error: not well-formed <item_to_page_url>http://cnn.com/.../?hpt=C2&amp;replytocom=11119#respond&lt;/item_to_page_url&gt; First off, I added an ellipses to shorten the length of that for...

URL as variable in .htaccess rewrite

I'm writing an API where a URL needs to be passed via $_GET variables. Now that's all cool when I'm just using the raw URL, create_page.php?url=http://example.com, but I've tried to make this look pretty using htdocs like I have the other API calls and it doesn't work. Here's my htaccess code so far. RewriteRule ^create_page/(.*)$ creat...

(iPhone app) error: too many arguments to function 'URLWithString:'

I'm trying to format a URL string however it's saying there are too many arguments. My code is below: -(IBAction)tweetRandom { //NSLog(@"CALLED"); test = 100; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://twitter.com/%i", test]]; // problem line } Anyone know how to format the URL? Was hoping there was ...

I am trying to create an expression that will extract URLs

I want to extract URLs from a webpage these are just URLs by themselves not hyperlinks etc., they are just text. Some examples would be http://www.example.com, http://example.com, www.example.com etc. I am extremely new at regex so I have copy and pasted like 20 expressions online all failed to work. I don't know if I am doing it right o...