All Questions
337
questions
0
votes
0
answers
40
views
Does executing a Lua script in Redis block the entire Redis server or just the database being accessed?
Details:
Atomic Operations: I understand that Lua scripts in Redis are executed atomically. However, I need clarification on whether the atomicity affects only the Redis database being accessed by the ...
0
votes
0
answers
46
views
Low performance when receiving large amounts of data from tarantool
There is a task to get a large enough amount of data for certain purposes. Usually it's 2-4 million records, which I retrieve from various SQL tables.
I'm not happy with the time taken to retrieve the ...
0
votes
0
answers
39
views
pypandoc ignores lua filters
I'm using pypandoc to use pandoc in python to convert html to markdown
I'm trying to make pypandoc apply lua filters. But non of the filters are applied. I put checkpoints at every function head and ...
0
votes
1
answer
66
views
sending multible inputs to lua-script with subprocess
I have a lua script which takes multiple inputs and I now want to run this lua script from a python program.
I used a subprocess to run the lua script and it works fine with one input.
python code:
...
0
votes
0
answers
159
views
How do I use scrapy_splash with lua using chromium engine?
Hello,
I'm trying to make scraping bot for a site that uses javascript. I have about 20 urls from the site and would like to scale to houndreds, I need the urls to be scraped quite often, so I tried ...
0
votes
0
answers
55
views
Dynamic Content Loading and Interaction with Splash in Scrapy: Email Input Popup Issue
I'm working on a Scrapy spider that involves interacting with a webpage using Splash. The webpage has a dynamic email login feature where, upon clicking the "E-posta adresiyle devam et" (...
2
votes
1
answer
502
views
nvim: compile/run code based on filetype in function from keymap using lua
I'm trying to map my F12 key to compile and run code in neovim using the term command. I've been able to get it to work for java files, but only if I opened nvim from the same location as the file I'm ...
0
votes
0
answers
29
views
I need to compare %01[1 02813]$ which is the output from my weighing scale with TCP IP Connection Protocol
When i connect to 192.168.1.10:1001 port and send command %01R$$ then i get some value i.e. %01[1 02813]$
which i then splice and get it into one single variable Call Actual Weight . (Please Refer the ...
0
votes
1
answer
79
views
How do you clear scrapy splash cache after running in a container
*EDIT: It is not specific to Zyte, I have the same issue when running in a docker container. I have to throw an exception to log in. I need it to work for multiple runs while having the container be ...
5
votes
1
answer
4k
views
How to set keybindings to execute Python files in Neovim using the built-in terminal?
I started Neovim and downloaded LunarVim. The only LunarVim feature I'll use is the key <M-1> for opening the terminal.
So let's assume I'm working on Python file, and if I press <F7>, it ...
1
vote
0
answers
47
views
How do I bind Python function to Lua function in Lupa or Lunatic
How can I bind function created in python for use in Lua? In other words I want to make somewhat minimal Lua API in python.I can use both lupa or lunatic-python.
# foo.py
def foo():
# Do python ...
1
vote
1
answer
380
views
Python output highlighting in Quarto
Continuing on this question about code output highlighting in Quarto: Is it also possible to make this work with Python output?
A minimal working example:
---
title: "Output line highlighting&...
0
votes
1
answer
228
views
Possible alternative to combo of Lua and C++; that has 3rd party libraries [closed]
I code frequently in python. It does help me in rapid prototyping, debugging capability and the vast amount of 3rd party libraries. Recently, I'm wary of the huge size (min 10Mb), slow startup times ...
0
votes
0
answers
142
views
Recompiling Lua files properly for KOF XIII
So recently decided to really knuckle down and try to figure out how to mod KOF XIII. The game utilizes Lua files, which are XOR encrypted with the key 0x66, and compiled. Made a Python Script to ...
-2
votes
1
answer
48
views
A general programming question: Is there a way to trigger a function every x seconds without remembering the last time it was triggered? [duplicate]
Sorry if this is a basic question, but I want to have a function trigger every fixed amount of time, say 2 seconds. In general I would do something like:
lifetime = getCurrentTime
if (lifetime - ...