3,817
questions
0
votes
0
answers
9
views
Is there any node.js implementation available for Reverse Soundex & Reverse NYSIIS?
There are Phonetic Algorithms like "Reverse Soundex" ,"Reverse Nysiis" . We are not able to find anything about its implementation in Node Package Manager website (npjms.com). Can ...
0
votes
0
answers
42
views
How to fix gdbpeda
I'm using WSL and already installed gdb and gdbpeda using apt install. I even git cloned gdb peda. But when I run gdb, gdb-peda is now showing, rather than it shows multiple errors. I installed six ...
0
votes
2
answers
114
views
Reverse singly linked list in C and return new head
Please, what am I missing? I am trying to reverse a singly linked list (in-place), but all I get returned is the one node (pointer to the head of the list). I've tried using a void function (as a ...
1
vote
1
answer
30
views
Django reversed for loop slice
I am currently trying to reverse a slice of a list going from 0 to 11
class Game(models.Model):
board = models.JSONField(default=list)
game = Game(board=[4] * 12, scores=[0, 0], current_player=0, ...
0
votes
3
answers
46
views
Trying to redirect user from a booking page in django
This is my first Django project and I am really struggling. It is a simple booking app where the logged in user is on a page with a form to make a booking and a list of current bookings. I can make ...
1
vote
6
answers
124
views
How to get the last characters in a string arithmetically?
I have a hex string I want to print out 32 characters at a time, starting from the right and going left. E.g.
11010401c3cf0e0e383434d0c0c302c2cb0a0a28242490808201c1c7060618141450404100c0c302020804041
...
1
vote
2
answers
114
views
Reverse the order of parenthetically grouped text and reverse the order of parenthetical groups
I have a strings with pattern, something like this:
(X,1,1,3),(X,1,1,3),(X,@2,@2,@2,@2,@2,(Y,1))
And I need to extract from this One big array, reverse order, and generate new string:
(X,(Y,1),@2,@2,@...
0
votes
0
answers
53
views
socat to fork interactive sessions to support reverse shell
I want to use socat to fork multiple screeen/tmux sessions which accept reverse shell from nc. Let's say socat listens on 5555.
I used many approaches, one of them:
#!/bin/bash
# Use socat to listen ...
0
votes
0
answers
60
views
error CS0433: The type 'List<T>' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral
I am working on reversing the app built by Unity 2019.4.15f1 and I am using same version of Unity.
Using the AssetRipper tool, I get the project structure and asset files. But When I build the project ...
2
votes
1
answer
247
views
Trying to write a pwntools exploit to buffer-overflow a binary
My goal is to buffer-overflow a binary written in C. That binary asks me to input a name.
After having opened the binary with Ghidra, I discovered the following code that should help me to build an ...
0
votes
2
answers
48
views
I don't understand why the Django built in 'Reverse' function is not working [duplicate]
I am trying to learn Django in python, when today, I stumbled upon this error:
"NoReverseMatch at /downloader/
Reverse for 'login' not found. 'login' is not a valid view function or pattern name.&...
0
votes
1
answer
40
views
How to keep original array in this case?
When I console.log the results I get that the original array has changed. I can't find why? I did slice().reverse() to save the original but it doesn't work. If I edit this code so it's a 1D array it ...
0
votes
1
answer
32
views
Indexing in a method to reverse certain elements in a linked list
I'm doing a bootcamp of DS&A and there is an exercise of reversing certain elements from a linked list but I don't understand the code and the explanation given wasn't clear enough.
This is the ...
0
votes
1
answer
25
views
opposite of above result required but condition is DISPLAY =YES and REMARK =ITEM
Opposite result required in mysql like in Microsoft SQL using except. Pls do it in mysql
CREATE TABLE `table1` (
`SERIAL` bigint(20) UNSIGNED NOT NULL,
`DISPLAY` varchar(20) DEFAULT NULL,
`...
1
vote
1
answer
45
views
removing reversed vector items from a list [closed]
Suppose I have a list of vectors in R each of item being of differing length. How do I find and remove items that have a duplicate but for which that duplicate is the reverse of the one of the list's ...
1
vote
1
answer
119
views
Can we reverse the elements in a Singly Circular Linked List using only two pointers? Is that possible, efficient and what is the time complexity?
I need to know about only one thing clearly, as I had tried the singly circular linked list reversal using the C language. In that I can't find the correct way and I have no idea regarding this one. ...
0
votes
3
answers
104
views
Is it possible to create non-tail recursive reverse list function in Scheme?
I was experimenting with reversing a list in Scheme. I came up with this code:
(define (rev lst)
(let loop ((lst lst) (result '()))
(if (null? lst)
result
(loop (cdr lst) (cons (...
1
vote
2
answers
98
views
XPath 3.1 fn:sort order descending
Sorting with XPath 3.1 uses fn:sort(), with up to 3 parameters (target, collation, function).
The question is about the definition and use of the function parameter, which bubbles-up the sort key, how ...
0
votes
0
answers
45
views
Why does List.reversed() work in LeetCode's Java environment but not in standard Java? [duplicate]
I recently encountered a piece of Java code on LeetCode that uses a reversed() method directly on a List<Integer> object, like so:
List<Integer> l = Arrays.asList(1, 2, 3, 4, 5);
System....
0
votes
0
answers
87
views
How should I use the uncompyle6 tool to decompile Python 3.9 version .pyc files?
enter image description here
How should I use the uncompyle6 tool to decompile Python 3.9 version .pyc files?
"Decompiling Python 3.9 .pyc files"
F:\ni tools\pyinstxtractor-master\...
1
vote
2
answers
105
views
do v. do*: Why does the same code produce a different result?
I'm was playing around with the do macro, and I decided to write a function to reverse a list:
(defun my-reverse (my-list)
(do ((alist my-list (cdr alist))
(acc nil (cons (car alist) acc)))
...
-1
votes
1
answer
70
views
Assign values based on reverse combination of two columns
Following this question, Multiple values in one tile with geom_tile and matrix plot, I'd like the tile attributes in agreement_num to be symmetrical, i.e. for the reverse pair combination, I'd like to ...
-2
votes
1
answer
49
views
is there any one having solutions to reverse and redirect to pages in Django after submitting the form or update
I redirect to goals list by clicking the category ID and I want to add an other goal and then redirect to goals list but display errors NoReverseMatch at /planningCycle/goal_update/15/
Reverse for '...
1
vote
1
answer
107
views
Scrolling in both directions (Right to Left <=> Left to Right) with Flutter PageView widget
I'm using 'PageView' widget in flutter to show a list of images horizontally - one image at a time; I've implemented below code and it works fine but it won't scroll when trying to scroll from right-...
-1
votes
1
answer
328
views
How to Reverse String in Dart: Efficient String Reversal Techniques in Dart
By splitting the input string str into an array of individual characters, then reversing the order of the characters in the array, and finally joining them back together into a single string.
// ...
-1
votes
3
answers
105
views
Why does linked list work for node name, but not the pointer?
I am writing the code for reversing a linked list. This is the code
Node* reverseLinkedList(Node *head)
{
Node* temp = head;
Node* prev = NULL;
while(temp != nullptr) {
Node* next ...
0
votes
1
answer
27
views
Conceptualizing a linked-list post reversal
I'm seeking clarification on how to properly understand a singly linked list once it has been reversed. Typically, the first element of the list should always be stored at the head of the linked list....
0
votes
0
answers
46
views
Dynamic hostnames with Bind9 reverse lookup
I'm wondering how it is possible to let bind9 generate IP-based hostnames for reverse lookup zones.
For example, my ISP does this for his public IPs. 81.89.161.129 -> 81.89.161.129.suec-darcor.de
I ...
0
votes
1
answer
778
views
Nginx reverse proxy to hide my real servers
I have 2 servers, both using nginx.
Server 1: 192.168.xxx.xxx (This is the main server with the mydomain.com domain with LEMP)
Server 2: 128.111.xxx.xxx (which will come)
On the first server I used ...
1
vote
2
answers
52
views
Sort String Length, but reversed (longest String first) [duplicate]
I have to do an excercise where i have to write a method orderQuestionsByLength(), which should sort questions by its length (descending)
the following code works (but it's not sorted descending):
`...
0
votes
0
answers
37
views
Is it possible to have a Captive portal pop-up on android when reverse tethering?
I am trying to set up captive portal interfaces on my nvidia device. Right now I am currently using hostapd, dnsmasq and nginx to set up this process. I have already successfully gotten a captive ...
-1
votes
1
answer
87
views
leetcode python syntax error reversed linked list
I'm trying to write a reversed linked list on leet code and I keep getting a `Syntax error on line 37: print(curr.data, end=" ")
I don't get what the problem is. my code is running just ...
0
votes
1
answer
48
views
Reverse a sentence using stack in js
I have wanted to reverse a sentence using Stack in JavaScript, so here if I give input, Hey, how are you doing? and want to get output done? You are hey, so I traverse the loop and check until space ...
1
vote
0
answers
55
views
Program to reverse a given WAV file in C not working
I'm writing a program to reverse wav files in c. I've (seemingly) finished it and looked over it many times to find any logical errors. It compiles into an executable program, and outputs a wav file. ...
1
vote
0
answers
65
views
Is this intentional behavior of undefined when using .sort()?
I was trying to solve a Codewars Kata that requires a 47 bytes code solution for reversing an array of any[] type. The catch is - you cannot use .reverse(). As a solution I came up with using .sort() ...
0
votes
1
answer
201
views
How to write function in Golang to reverse unicode string with only 1 alloc/op?
I need to write my own reverse.Reverse analog for unicode strings. This is my code:
func Reverse(input string) string {
runes := []rune(input)
var result strings.Builder
result.Grow(len(...
1
vote
1
answer
99
views
Python - reverse nested dictionaries dict in dict
I am trying to reverse dictionary nesting such that dict2 in dict1 becomes dict1 in dict2. For this, I followed the method from the link:
Pythonic Way to reverse nested dictionaries
This dictionary ...
0
votes
2
answers
115
views
Bash reverse words in string preserving punctuation character position
Before posting went thru almost all suggestions in stackoverflow wizard but non of them were for bash most in c#.
The exercise is for c language.
The problem.
Write a program that reverses the words ...
1
vote
3
answers
42
views
How to implement reverse circular array from index position in typescript?
I want to get last 12 months from current month using typescript.
like suppose current month is Jule then my output should be ['August','September','October','November','December','January','February',...
0
votes
1
answer
183
views
Problem with Reversing DNA/mRNA Sequences in Python
I'm having trouble getting my program to work under all circumstances and anyone who has expertise in biology and coding should be able to tell me where I'm going wrong. I am attempting to create a ...
0
votes
2
answers
90
views
How to reverse the levels of a numeric vector
I have a vector with 47 numeric objects, values of objects from 1 to 7.
df$PS<- 2 3 7 4 5 3 7 3 7 3 1 6 3 6 3 3 1 5 1 3 3 1 3 2 3 5 3 5 4 4 2 1 4 3 5 3 2 4 4 3 7 3 6 4 1 6 2
I need to reverse ...
1
vote
3
answers
152
views
issue in reversing a string in java
cant reverse my string using char[] array
if my input is geeks and output shpuld be skeeg
if i reverse using charAt function it reverse the string correctly if i use the reverse[i]=reverse[j] i cant ...
0
votes
3
answers
67
views
Iterative Insertion Reverse Search
I have a code that iteratively inserts itself at user specified positions. It gives a long string as a result of the iteration. What I need is to do the reverse. Writing a code that takes a string and ...
1
vote
3
answers
168
views
Safe countdown loop
The following code will produce a segfault due to integer overflow when i reaches -1. If I change "unsigned int i" to "char i", then it will work fine but will generate a compiler ...
0
votes
1
answer
98
views
How to reverse order of pandas string column
I have a tennis dataset that looks similar to the following:
import pandas as pd
player_name = ['Novak Djokovic','Rafael Nadal','Roger Federer','Andy Murray']
match_id = [202, 202, 203, 203]
score = [...
1
vote
1
answer
166
views
Reverse geocoding in an array formula in google sheets for state and county
I have the below code for reverse geocoding in google sheets to find the US state and county. It works but I need to use it in an array formula and can't figure it out. I am fairly new to coding so ...
0
votes
0
answers
103
views
Why does my seas() function from the R seasonal package return an error when I reverse the order of my data?
I am trying to run the seasonal adjustment function seas() from the seasonal package on R. My code is as follows:
#import and load required packages
#install.packages("seasonal")
#install....
1
vote
2
answers
157
views
Reverse key indexes with multiple columns strategy
I'm creating a local index on partitioned table the Table is partitioned X (List partition)
The table TEST looks like this:
X
Y
Z
AB
24
63
AB
24
65
CD
24
63
CD
24
65
EF
24
63
If I create an ...
0
votes
0
answers
26
views
MPI Scan reversed
I am using mpi_scan (In MPI, how do reduce and scan differ?) to make a summation, in order for each process to have the partial sum.
However, it appears to me that using mpi_scan, the summation is ...
-1
votes
1
answer
51
views
Getting correct output match from insertion code
I am having trouble getting the test case strings in iter_position_reverse to pass. I am not sure what I have to change in order to fix this
This is the iterrative_insertion code:
def ...