Newest Questions
77,898 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
33
views
Sending and receiving TypedArray's in Chromium Web extension messages
This is an alternative approach and follow up dealing with this issue Extension messaging uses base::Value (JSON) serialization but could use WebSerializedScriptValue (structured cloning), closely ...
5
votes
4
answers
410
views
Absolute-path Python function taking as argument a path relative to the directory of a script (.py) or Jupyter notebook (.ipynb) file
I'm currently still in the early stages of learning Python and Jupyter notebooks, and I wanted to ask if the following code for returning absolute paths relative to the directory of a script (...
5
votes
3
answers
550
views
Ping sweep of IP subnets
I made a ping sweep for the first time, and I want to do better. What do you think that I might be missing?
...
5
votes
1
answer
135
views
Breakout Game as a Bookmarklet in JavaScript
Why I made it
I wanted to experiment with javascript: bookmarklets and see how far a small injected script could go on any site by making a simple injectable game.
...
1
vote
1
answer
157
views
Force Google Translate to translate text between <code....> and </code> tags on my webpage by replacing code with span and revert it after translation
Some browsers were not showing text on my webpage in bold so I put some text that was between <span> tags between ...
7
votes
3
answers
872
views
Bash Backup script for password DB
Can you please comment on the script below? It backs up my local password database to a remote repository if a change is detected. It works as intended. I'd like some comments in terms of syntax, ...
5
votes
1
answer
136
views
On the absence of protected member concept in javascript
I wanted to create a protected member in a javascript (ES) class but, of course, there is no such concept. So I devised a way that would let me create a member or something that "no one could ...
9
votes
2
answers
615
views
Find the nearest school to you
I have created a text-based program that finds the nearest school using your coordinates.
The CSV DataFrame is available through LimeWire.
I'd like to know how I can improve it.
...
7
votes
3
answers
467
views
MinMaxStack - tracks minimum and maximum values
I'm implementing a MinMaxStack<T> in C++20 that tracks minimum and maximum values. The class needs T to support ...
5
votes
2
answers
239
views
Transform dataset coordinates from Lambert Conformal Conic projection to WGS84
I am trying to convert a dataset which has a Lambert Conformal Conic projection to the classic WGS 84 with Python. Unfortunately, the dataset does not have a defined EPSG code, but the general ...
5
votes
3
answers
740
views
Bash script for manually cleaning up the Traefik access log file and limiting it to a maximum of 50 MB
I have written a short bash (or POSIX-compliant) script to clean up the Traefik access log file and limit it to a maximum of 50 MB. I would like to know what you think of it. Any suggestions are ...
5
votes
3
answers
600
views
News API in Python - Take II
From my previous post, I tried to take into account all of the nice answers made by Kate, Chris, J_H, Booboo and mudskipper
Changes made
In short, I attempted to apply all of the following:
API key ...
8
votes
5
answers
1k
views
News API in Python
Why I made it
I’m building a voice assistant and thought it would be great if it could deliver news updates.
What it does
It cleans up the user’s query, determines whether it refers to a news category ...
0
votes
0
answers
58
views
Streaming messages for Chrome MV3 Web extensions
Explainer
Problem
No standardized Web Extension API to send or transfer TypedArrays or ArrayBuffers or
...
4
votes
2
answers
277
views
Create Frame Widget with Pygame
I developed two custom UI components with Pygame: a Button widget and a Frame widget. After placing the Button inside the Frame, I encountered an issue with the Button’s collision detection.
...