url

Create asp.net Image object from external image url

I want to crop an image at the server side (I am using 'JCrop' and 'ASP.NET 3.5'). There is a case when the user can add an image from external site to an article.I want to anable the user to create a thumbnail from that image and store the result on the server. In this case code like string originalFile = Server.MapPath(this.srcImage....

REST: post vs posts & new vs create

When you design URL schema for your application, which rules you use? example.com/post/ or example.com/posts/ for list of posts example.com/post/new/ or example.com/post/create/ for new post example.com/posts/ + example.com/post/23/ or example.com/post/ + example.com/post/23/ for list and detail of post? example.com/post/23 or example....

catch copy+paste event of locationbar URL (jquery)

I'd like to catch the event of a user copying the link from the browser's location-bar. The user is browsing through my site, finds a page that she likes, selects the URL currently on her browser location bar (window.locationbar focus) and copys the URL to paste it elsewhere (facebook, ...). I would need to catch this event and change t...

How can I create an absolute url in a jsp?

If a have <c:url value="/article"/> in a jsp, I actually want it to produce http://mysite.com/context/article. Is there any simple way to acheive this? ...

how to implement an IP blocking script

hi i want to know the user how many times enter in my website and also from the same ip address using php. i would like to prevent the site from user who continuously hit my site with in 2 seconds or 1 seconds. if continuously any user hit my site i would like to avoid that user ip address. thanks in advance ...

How to verify that URL is valid in Java 1.6?

My application processes URLs entered manually by users. I have discovered that some of malformed URLs (like 'http:/not-valid') result in NullPointerException thrown when connection is being opened. As I learned from this Java bug report, the issue is known and will not be fixed. The suggestion is to use java.net.URI, which is "more RFC ...

Processing URL parameters - name value pairs separated by slashes

I want to have URLs like :- URL 1 - www.projectname/module/search/param/1 URL 2 - www.projectname/param/1/module/search I want a PHP code which takes the above URLs as parameter and returns an array like Array("module" => "search", "param" => 1) (for URL 1) Array("param" => 1, "module" => "search") (for URL 2) So that I can u...

Django return HttpResponseRedirect to an url with a parameter

Hello, I have a situation in my project where i need to make a redirection of the user to an url containing a parameter, (it is declared in the urls.py like: url(r'^notamember/(?P<classname>\w+)/$', notamember, name='notamember'),) How can i put that parameter in the return HttpR...

How can I check if two different URL's point to the same resource?

Lets say I have a web site hosted on a computer named "linux" and it is part of two different networks with the addresses 192.168.1.1 and 10.1.1.1. When working locally on "linux", I can access this web site through the following URLs : http://192.168.1.1/ http://10.1.1.1/ http://linux/ http://localhost/ http://127.0.0.1/ Working o...

Java : replacing all URLs with anchor tags that aren't already in anchor tags

Hey, I'm trying to replace all non-anchor-tag-enclosed URLs within anchor-tag-enclosed URLs for a document. So given the string: I have two urls for google: <a href="http://www.google.com/"&gt;google&lt;/a&gt; and http://www.google.com/ I would like to replace it with this: I have two urls for google: <a href="http://www.google.com/...

Replace part of an image url in ASP.NET using JQuery

Hi, I have a script which translates an image url to a path and works fine for an image fade on primary node navigation. The script below gives me: http://localhost/Bar/App_Themes/main/images/Beers-Faded.gif Once I navigate one node deeper it adds the application path to the url and the function fails: http://localhost/bar/Bar/App_T...

Google APPS site - not being indexed

Help! I am having fun getting Google to index my googleapps site and wandered if anyone can help. 1) I have successfully created CNAME records to point my www.mydomain.co.uk to myap.appspot.com. When the user goes to www.mydomain.co.uk, www.mydomain.co.uk shows in the address bar (fab). When I do a "fetch as googlebot" the detail of ...

Creating a pop-in window effect with hashtags

I'm creating a script that allows me to launch pop-in windows based on the URL's hashtag. I'm able to get it to work when the user plugs in the URL+hash directly in the location bar. However, when the anchor links are clicked, the script doesn't seem to perform the .load() function. Is my sequencing wrong, or am I going about this the co...

WPF Image UriSource and Data Binding using http:\\ URL

I am having a problem displaying an image with a web URL in a WPF user control. I have worked through all the suggestions for a similar problem asked on this site in Aug 2008 (http://stackoverflow.com/questions/20586/wpf-image-urisource-and-data-binding) but none of those suggestions have worked. What I'd like to do is: <Image Width="...

username:password in URL - how to handle this?

I found on Assembla's webhook tool possibility to integrate with twitter. To do this assembla uses such url: http://username:[email protected]/statuses/update.xml How twitter handles that kind of URL? Is this some standard? Does it require some special logic to perform login when someone POST data for URL with username:password? Ho...

how to return to my website from sandboxpaypal when unsubscribe

i m subscribe through my website using sandbox paypal test site and iwant/i have need to unsubscrinbe through same website the problem is that i cant get return url to back to the site from my payapl testing account.please reply me ...

Visual Studio 2010 URL Hyperlink color - is it possible to not use this?

Visual Studio 2010 "helpfully" detects URLs and colors them blue (by default). It will do this regardless of context - whether the URL is in the midst of XML, or it's in a comment, or it's a string in code, etc. I find this distracting. The URLs are part of their context. I'm not coding in Visual Studio in order to click on hyperlinks. ...

How to reference pound sign (#) in jQuery?

I've been trying a new way to set up a website using jQuery to dynamically get the content when a link is clicked. Here is the jQuery code: $(document).ready(function() { var content_loader = $('#content-loader'); $('#nav ul li a').click(function () { $(this).closest('ul').find('li.active').removeClass('active'); $(this).parent(...

Linking the Developer Page at the appStore from an iPhone App

Hi. So I know how to open an app page on the appStore from within my iPhone app. Is there a way to open my company's page? On iTunes on my mac I can do that, but using that URL in the iPhone I can't (or I'm not doing it right). Thanks in advance. ...

UIButton to "view all our apps"

We are trying to add a UIButton to out iPhone app that will direct users to the iStore to show a list of all our apps. We got the button to display an NSLog() so we are almost there. Is there a "search by company name" link we can redirect users to? (Automatically opening the user's iStore app.) What would that code look like? Thanks...