tagged [reverse]

Best way to loop over a python string backwards

Best way to loop over a python string backwards What is the best way to loop over a python string backwards? The following seems a little awkward for all the need of -1 offset: The following seems mor...

c# Trying to reverse a list

c# Trying to reverse a list I have the following code: ``` public class CategoryNavItem { public int ID { get; set; } public string Name { get; set; } public string Icon { get; set; } public C...

17 Oct at 23:48

Reversing single linked list in C#

Reversing single linked list in C# I am trying to reverse a linked list. This is the code I have come up with: ``` public static void Reverse(ref Node root) { Node tmp = root; Node nroot = null;...

9 Oct at 02:5

Reversing an Array in Java

Reversing an Array in Java If I have an array like this: What is the best way to reverse the array so that it looks like this: I have the code below, but I feel it is a little tedious: ``` public int[...

1 Oct at 21:23

angular ng-repeat in reverse

angular ng-repeat in reverse How can i get a reversed array in angular? i'm trying to use orderBy filter, but it needs a predicate(e.g. 'name') to sort: Is there a way to reverse original array, witho...

nginx - read custom header from upstream server

nginx - read custom header from upstream server I am using nginx as a reverse proxy and trying to read a custom header from the response of an upstream server (Apache) without success. The Apache resp...

18 Dec at 20:59

Sniffing/logging your own Android Bluetooth traffic

Sniffing/logging your own Android Bluetooth traffic I recently bought chinesse device that connects via bluetooth with android phone / tablet. Since there is no application availible for windows / lin...

Protect .NET code from reverse engineering?

Protect .NET code from reverse engineering? Obfuscation is one way, but it can't protect from breaking the piracy protection security of the application. How do I make sure that the application is not...

How to reverse a generic list without changing the same list?

How to reverse a generic list without changing the same list? I have a generic list that is being used inside a method that's being called 4 times. This method writes a table in a PDF with the values ...

14 Mar at 22:32

Reverse a string without using reversed() or [::-1]?

Reverse a string without using reversed() or [::-1]? I came across a strange Codecademy exercise that required a function that would take a string as input and return it in reverse order. The only pro...

Error during SSL Handshake with remote server

Error during SSL Handshake with remote server I have `Apache2` (listening on 443) and a web app running on `Tomcat7` (listening on 8443) on `Ubuntu`. I set apache2 as reverse proxy so that I access th...

18 Sep at 13:19

Entity Framework Core creating model from existing database

Entity Framework Core creating model from existing database With Entity Framework Core, how do you generate the EF model and the entities? According to [ASP.NET Core - Existing Database](https://learn...

JNZ & CMP Assembly Instructions

JNZ & CMP Assembly Instructions Correct me if I am wrong. This is my understanding of `JNZ` and `CMP`. `JNZ` - The jump WILL take place if the `Z` Flag is NOT zero (1) `CMP` - If the two values are eq...

How can I generate UML diagrams from C# code written in Visual Studio 2012 into Visio 2010?

How can I generate UML diagrams from C# code written in Visual Studio 2012 into Visio 2010? I am trying to find a way to generate UML diagrams (sequence diagrams, class diagram, etc) from my C# code w...

Cognito - Client is not enabled for OAuth2.0 flows

Cognito - Client is not enabled for OAuth2.0 flows I've successfully set up an AWS Cognito environment that runs on Localhost following [this tutorial](https://developerhandbook.com/aws/how-to-use-aws...

Generate UML Class Diagram from Java Project

Generate UML Class Diagram from Java Project Is there a good tool that can help to reverse engineer Java classes to UML that will show an overview of how my classes are related to each other? It doesn...

Using Python's list index() method on a list of tuples or objects?

Using Python's list index() method on a list of tuples or objects? Python's list type has an index() method that takes one parameter and returns the index of the first item in the list matching the pa...

25 Aug at 12:39

List of all index & index columns in SQL Server DB

List of all index & index columns in SQL Server DB How do I get a list of all index & index columns in SQL Server 2005+? The closest I could get is: ``` select s.name, t.name, i.name, c.name from sys....

How to get a reversed list view on a list in Java?

How to get a reversed list view on a list in Java? I want to have a reversed list view on a list (in a similar way than `List#sublist` provides a sublist view on a list). Is there some function which ...

22 Sep at 10:17

Why there is two completely different version of Reverse for List and IEnumerable?

Why there is two completely different version of Reverse for List and IEnumerable? For the `List` object, we have a method called [Reverse()](http://msdn.microsoft.com/en-us/library/b0axc2h2.aspx). It...

12 Sep at 15:2

How do you determine what technology a website is built on?

How do you determine what technology a website is built on? Quite often I come across a nice looking or functional website, and wonder what technology was used to create it. What techniques are availa...

17 Mar at 08:52

Django: reverse function fails with an exception

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 view, which uses to re...

19 Aug at 15:45

Nginx reverse proxy causing 504 Gateway Timeout

Nginx reverse proxy causing 504 Gateway Timeout I am using Nginx as a reverse proxy that takes requests then does a proxy_pass to get the actual web application from the upstream server running on por...

How to enable CORS in Nginx proxy server?

How to enable CORS in Nginx proxy server? As my title, here is the config file located in conf.d/api-server.conf ``` server { listen 80; server_name api.localhost; location / { add_header 'Access...

1 Sep at 18:55

How do i prevent my code from being stolen?

How do i prevent my code from being stolen? What happens exactly when I launch a .NET exe? I know that C# is compiled to IL code and I think the generated exe file just a launcher that starts the runt...