reverse

Reverse proxy capable pure python webserver?

I am looking for a pure python based web server has the capability for reverse proxy as well? ...

XSLT Reverse template order via apply-templates or call-template?

I am writing a transform for a set of nodes, similar to this. <xsl:template match="/" name="nav"> <!--do stuff--> <xsl:if test="notEnd"> <xsl:call-template name="nav"></xsl:call-template> </xsl:if> </xsl:template> The result it generates is top down (recursive): <!--do stuff 5--> <!--do stuff 4--> <!--d...

How can you do a safe, backwards-compatible "reverse-monkeypatch" in Ruby?

If your coworker "opens" ("monkeypatches") a class in Ruby and redefines some important functionality that you need to use, how do you access that original pre-monkeypatched functionality without breaking a system that already relies/has dependencies on his monkeypatched definitions? ...

Passing variables to a Django generic view template using reverse()

I have a urlpatterns like this: urlpatterns = patterns('', ... (r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', info_dict, 'poll_detail'), ... My html page template contains this: {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %} My view code contains: return HttpRespo...

Using the google maps api for reverse geocoding lat/long from iPhone

I am currently using the google maps' reverse geocoding API to convert long/lat received from an iPhone's CoreLocation API into city/state information on a google app engine server. Would this be considered a violation of the terms? I've done some research and cannot find a direct answer to this question. Right now, we will be distrib...

Sorted Dictionary in C#

Is there any way I can iterate backwards (in reverse) through a SortedDictionary in c#? Or is there a way to define the SortedDictionary in descending order to begin with? ...

How do you reverse a string in place in JavaScript?

How do you reverse a string in place (or in-place) in JavaScript when passed to a function with a return statement? All without using the built-in functions? .reverse(), .charAt(), etc. Thanks! ...

Reverse engineering a statistics data file from my insulin pump controller

This may or may not be a grey area subject, though my intentions are certainly not, so my intention is not to stir up an ethical debate on the topic of reverse engineering. I'm a type 1 diabetic currently undergoing pump therapy. I'm an OmniPod user, it's a disposable pod that adheres to my body and dispenses insulin for 3 days. It'...

Reverse Engineering - Hardware

Recently discovering that the xbox 360 drive can be flashed to do 'questionable' things. What I was interested in is the people that discover these things. How to they go about it? ...

iphone UIScrollView reverse order positioning

Dear All, I'm building an app based upon the "Scrolling" sample code that Apple provided. All is working very well. The nature of the images that I want to display, would make it desirable, if the order of the images is reversed, and that the first visible image is the right-most, rather than the left most. Basically, the user should scr...

Can one do a for each loop in java in reverse order?

I need to run through a List in reverse order using Java. So where this does it forwards: for(String string: stringList){ //...do something } Is there some way to iterate the stringList in reverse order using the for each syntax? For clarity: I know how to iterate a list in reverse order but would like to know (for curiosity's sake...

C++ Reverse Array

In C++, I need to read in a string from user input and place it into a char array [done] Then, I need to pass that array to a function [done] That function is supposed to reverse the order of characters [problem!] Then after, back in the main(), it displays that original array with the newly reversed characters. I'm having trouble cr...

Django: reverse function fails with an exception

I'm following the Django tutorial and got stuck with an error at part 4 of the tutorial. I got to the part where I'm writing the vote view, which uses reverse to redirect to another view. For some reason, reverse fails with the following exception: import() argument 1 must be string, not instancemethod Currently my project's urls.p...

How can I get the reverse url for a Django Flatpages template

How can I get the reverse url for a Django Flatpages template ...

what is the best way in php to reverse letters in words

i have a string . i want to reverse the letters in every word not reverse the words order. like - 'my string' should be 'ym gnirts' ...

Value of the last element of a list

Hi, how to get the value of the last element of a List? I've noted that List.hd (or .Head) return an item, while List.tl (or .Tail) returns a List. Is rev the List and get the hd the only way around? Thanks. ...

Django cross-site reverse URLs

Probably simple question and I'm just missing something, but I'm stuck out of ideas. I have Django project serving several sites with distinct sessions.py and completely different ROOT_URLCONFs. One site handles user registration, authentication and profile settings, other site (on another domain) acts as file manager and so on. Sites a...

how to get the content of a variable from the last element

I was just wondering how I can get the content of a variable starting from the last value instead of the first ( using foreach), $variable = [1,2,3,4]; how can I print 4 then 3 and so on (if the size of the variable in unknown, is it possible to get the last value first). thanks ...

How can I reverse a string that contains combining characters in Perl?

I have the the string "re\x{0301}sume\x{0301}" (which prints like this: résumé) and I want to reverse it to "e\x{0301}muse\x{0301}r" (émusér). I can't use Perl's reverse because it treats combining characters like "\x{0301}" as separate characters, so I wind up getting "\x{0301}emus\x{0301}er" ( ́emuśer). How can I reverse the str...

Printing an array in C++?

Is there a way of printing arrays in C++? I'm trying to make a function that reverses a user-input array and then prints it out. I tried Googling this problem and it seemed like C++ can't print arrays. That can't be true can it? ...