url

Zend newbie - logic based on URL

url is: http://mySite.com/adminusers/listusers/ my controller is called public function listusersAction() http://mySite.com/adminusers/listusers/regular http://mySite.com/adminusers/listusers/premium http://mySite.com/adminusers/listusers/excecutive How can I capture last piece of the URL as a paremter in controller file listu...

RESTful URLs with Spring 3

How do I get nice-looking URLs in Spring (without a UrlRewriteFilter)? Does Spring 3 have any convenient way of getting nice-looking URLs (like, annotations, or something)? For example: /springmvc/hello instead of /springmvc/hello_world.html. ...

How to remove http:// from a website URL

Question: I just stumbled upon: http://icculus.org/~chunky/writing/inetd I realized it removes the http://www in front of the URL. How is that done? I am not aware of URL-rewriting being able to do that, or not ? ...

Rails 2.3 Namespace and Nested Shallow Resources Prefix Issue

I've added two namespaces into my routes that split the public and admin areas respectively. The idea is that they share models but the views and controllers are different for each namespace. My admin namespace is /admin and my public namespace is just / So... map.namespace :admin, :path_prefix => "/admin", :name_prefix => "admin_" do...

Proper way to catch KeyError in Django?

I am creating an API where a URL is sent to the server. I want to get the username, etc from the URL. I use the following code to do that: try: username = request.REQUEST['username'] message = request.REQUEST['message'] time = request.REQUEST['time'] except KeyError: ... However, there are times when the URL does...

Apache log analyzer that can handle URL parameters?

Hi, I have a web site that uses IBM Websphere Portal technology with an Apache web server inside. The content for the web site is stored in Oracle's UCM (the web content management system). When a user of the web site asks for a web page, a request like this is logged in the Apache log 10.32.3.111 - - [26/Jun/2010:11:16:09 +1000] "GE...

jQuery not animating links.

Hi, I am trying to get the fade effect of my image slider plugin to work correctly with links. At the moment the slider fades correctly however the links are failing to change. The first image is supposed to link to Google.com & the second link is supposed to link to Hotmail.com however both of them are linking to Hotmail.com only (the ...

UIPasteboard size

I am trying to do an upgrade path for a lite to full version of an application, that can store an indefinite amount of data (I dont want to do in app purchase). I would like to be able to upgrade using a custom url without needing an online presence to cache the data to. So was thinking of using a UIPasteboard object. Does anyone k...

How to add parameter to multiple rendered URLs?

Hi, I've got a PHP page serving content into an Iframe on another website, and it needs to re-load content inside the Iframe according to user interaction on the host website. The page content that's inside the Iframe contains multiple URLs. In order for the Iframe interaction to work, I was thinking of using a request parameter in the...

At what point do MVC "pretty urls" end and "ugly urls" begin?

I'm working with ASP.NET MVC but this really applies to any MVC framework. I understand that one of the benefits of an MVC framework is the construction of "pretty" urls. I have kept my small application simple thus far and most routes use the normal convention of: controller/action/id. However, now I've created a simple page that wil...

Perl uri_escape_utf8 inconsistent behaviour (or programmer error!)

Hi Folks, I'm trying to implement some URI encoding of filenames in my urls, but am experiencing some strange problems with uri_escape and uri_escape_utf8, where it appears to be behaving inconsistently. Using the perl command line: richard@magic-box:$ perl use URI::Escape; print uri_escape_utf8("\"quotes\"_in_a_filename.pdf"); %22quo...

Alternatives to .NET provided apis regarding uris and urls

I've recently come to the realization that the .NET apis working with URLs and URIs frequently come up short in achieving even basic functionality (atleast easily) including things such as: generating a FQDN url from a relative path, forcing https or back to http, getting the root of the site, combining relative urls properly and so fort...

How does the App Store website know if iTunes is installed?

Hi, As a user, I really love how the Apple App Store website on a browser can tell if I have iTunes installed or not and can act accordingly. For example, if I go to an App's page like "Remember the Milk": http://itunes.apple.com/app/remember-the-milk/id293561396?mt=8 and then click on the "View in iTunes" button, If I have iTunes i...

How to store a url in variable after onclick event?

For example, in this piece of code: <a href="www.some.html" onclick="...">www.some.html</a> What I have write instead of three dots if I want to store the url (www.some.html) in variable (var MyURL) after click on link? ...

Get current url including parameters of Jqgrid

I am looking to get the full url of the last request to my ajax service made by JqGridincluding page, records per page, search params etc. Is there any method or collection of methods within the JqGrid api I can use to achieve this? ...

Getting controller name and action name from url

I'm searching for an easy way to "translate" url strings into arrays of controller/action name pairs. example1: /users/ should return array('controller'=>'users','action'=>'index') example2: /admin/users/view/23 should return array('controller'=>'users','action'=>'admin_view') example3: / should return array('controller...

Application-Relative URLs

I've just create a new ASP.NET Web Application in VS2010, and set it up as an application in IIS7. Not sure if this is relevant, but the code physically resides in the \myserver\projects\epeui\epe folder (the projects folder is the root of my default web site). The application hangs off the root of this machine's default web site: http:...

mod_rewrite - convert querystring to paths

Im trying to rewrite a url that has a query string to its SEO friendly name i.e. consider mysite.com/models?p1=v1&p2=v2&p3=v3&p4=v4&p5=v5&p6=v6 Id like it to rewrite to mysite.com/models/v1/v2/v3/v4/v5/v6 or mysite.com/models~v1~v2~v3~v4~v5~v6 whichever works better for SEO. any suggestions j ...

mod_rewrite - convert paths to querystring

consider this rule RewriteRule ^/models/(.*)/(.*)$ /models?$1=$2 [NC,L] this rewrites /models/application/lawnmower to /models?appliction=lawnmower nice, just what i want now consider this rule (there are up to 6 name/value pairs) RewriteRule ^/models/(.*)/(.*)/(.*)/(.*)$ /models?$1=$2&$3=$4 [NC,L] this should rewrite /...

Get Facebook real profile image URL

Hello According to Facebook graph API we can request a user profile picture with this (example): https://graph.facebook.com/1489686594/picture We don't need any Token since it's a public information. But the real image URL of the previous link is: http://profile.ak.fbcdn.net/hprofile-ak-snc4/hs356.snc4/41721_1489686594_527_q.jpg If ...