Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

I have a Rasperri Pi 5 and I need to increase swap memory to 4GB. I made sure that zram generator is installed by running: sudo apt install systemd-zram-generator and I have ONLY one config file in ...
spy95's user avatar
  • 131
5 votes
4 answers
244 views

I have a long string. In the string, I have two non-overlapping parts. They can have a gap between them. The lengths can be different. For example a string: This is a "foo", that is a "...
Karel Bílek's user avatar
  • 38.1k
5 votes
2 answers
180 views

Below is the most common implementation of std::swap: template<typename T> void std::swap(T& a, T& b) { auto tmp = std::move(a); a = std::move(b); b = std::move(...
xmllmx's user avatar
  • 44.6k
0 votes
0 answers
66 views

Can it be an error in configuration or swap routing(may be because of partial fill?) that I've got too low output from 1inch aggregation router v6? Example of transaction: https://arbiscan.io/tx/...
RomanKovalev's user avatar
1 vote
2 answers
72 views

The following data frame is grouped by the id variable. For each id on variables X, Y, and Z, I wish to replace "no" with "yes" on the first row if and only if the specific id has &...
T Richard's user avatar
  • 673
1 vote
0 answers
53 views

Context I have a file of binary logs and each log is 7 bytes. The first 4 bytes is a timestamp (writeUInt32BE), the following 1 byte is an indicator (num 1 or 2 using writeUInt8) and the last 2 bytes ...
user423896's user avatar
0 votes
0 answers
289 views

I’m working with a public GitHub repo (you can find it here: https://github.com/AL-THE-BOT-FATHER/raydium_py) that interacts with the Raydium decentralized exchange using Python. I’m trying to fetch ...
Christopherus's user avatar
0 votes
0 answers
63 views

I am trying to understand the intuition behind why a convexity adjustment is required when calculating the YoY rate on inflation swaps. (Assume no lags for simplicity). The current inflation index is ...
PyNance's user avatar
0 votes
1 answer
43 views

could someone provide an example how to swap 2 lines in txt document using assembly? I would be using it as an example, because right now i'm able to copy contents from one txt file to another, but ...
dodanija's user avatar
0 votes
4 answers
116 views

I want to write a decorator that will count the number of swaps in a sorting algorithm. I created a swap function to swap numbers and a decorator that counts each call to this function. The issues I'...
UsernameTHC's user avatar
3 votes
1 answer
1k views

I am using Jupiter api for my app and on my app I want to swap and directly send the swapped token to merchant account. can I do this on one transaction? https://station.jup.ag/docs/apis/payments-api ...
creative pioneer's user avatar
1 vote
0 answers
422 views

I’m currently working on implementing a swap function that exchanges 0.01 SOL for USDC using the Raydium SDK on the Solana mainnet with TypeScript. I’ve set up the environment, connection, and wallet, ...
Murodxon Ramazonov's user avatar
0 votes
1 answer
633 views

I need to calculate estimate gas fee for the swap function using wagmi import { useEstimateGas } from 'wagmi' import { parseEther } from 'viem' import { config } from './config' function App() { ...
Wishwajith Dissanayake's user avatar
0 votes
1 answer
536 views

I'm using python quantlib to price a swap, but the NPV and cashflow result differently from BBG results as all the input controls the same, fixed schedule should be the same but floating cashflow is ...
Hanqing's user avatar
-5 votes
1 answer
61 views

This is the code for Quick sort in which i used assignment to swap the values. def partion(arr,low,high): partion_index=low pivot=arr[partion_index] while (low < high): while low < ...
izz's user avatar
  • 1
0 votes
0 answers
261 views

I try to use the following code to exchange tokens on the Uniswap V3 exchanger in the Arbitrum network. from web3 import Account, Web3 from abi import UNISWAP_V3_ROUTER2_ABI, WETH9_ABI, MIN_ERC20_ABI ...
Zevs's user avatar
  • 1
0 votes
1 answer
391 views

I’m attempting to create a solana bot that has limit order to buy $MAGA using raydium. However everytime i run the code, the transaction does not go through. <!-- begin snippet: js hide: false ...
Angela's user avatar
  • 71
0 votes
0 answers
145 views

gm. This is my first post here, i will do my best to be specific. I started to work and build some python scripts to automate some operations on Polygon-PoS network. I have the following working:(each ...
Robert Son Hedler's user avatar
0 votes
0 answers
253 views

I get the list of pools with Pancakeswap Exchange V3 Subgraph API, but the price information in the pool information does not match the price on the site. Also, as the amount increases, the price on ...
S.K.'s user avatar
  • 1
0 votes
3 answers
337 views

using a for loop i have to write code to swap the 2nd and 3rd digit of a number given via user input in javascript. for ( i = 0; i < entNum.length; i++) { if (i === 0) num2 = entNum[i]; ...
NewQode10's user avatar
1 vote
1 answer
1k views

Hello Stack Overflow Community, I am working on swapping tokens in a base layer2 network using Uniswap V3 and ethers.js. I have successfully approved the transaction using the approve function, but ...
Ghassane Aboughazaouat's user avatar
0 votes
1 answer
42 views

function swap(ev, targetId) { //Working on a school project and got stuck, was trying to swap .gif like drag and drop const currentId = ev.dataTransfer.getData("text"); const current = document....
user23856718's user avatar
0 votes
1 answer
69 views

I would like to rearrange the positions of certain cells in my Excel spreadsheet using R. There are two columns, place_x and place_y, where the coordinates are not correct. I intend to swap some ...
Antoine Beauclaire's user avatar
1 vote
1 answer
96 views

Do rvalue references satisfy the Cpp17MoveConstructible requirement? For this to be the case, in the expression T u = rv;, u would need to be "equivalent" to rv. If T was an rvalue reference ...
Jan Schultke's user avatar
  • 43.6k
0 votes
0 answers
29 views

cell_icons = {} image_references = {} def on_release(event, label, image_path): if label in dragged_icons: x, y = event.x_root, event.y_root x -= table.winfo_rootx() y -= table....
Vaibhav Pawar's user avatar

1
2 3 4 5
51