Random snippets of all sorts of code, mixed with a selection of help and advice.
Coding minecraft plugin with java
4 March 2026 @ 10:29 am
I wanted to make a minecraft plugin but i don't have any idea about how...
Do you have any suggestions about editors and library?
Also some tutorials to watch or guides for start from 0, maybe some bases or suggestions...
Thank u,
Tommy
dict to dataframe to export in Excel
4 March 2026 @ 10:28 am
I am facing a bug within a small Python script. Basically I am trying to convert a dict in a df in order to export it into excel. Since I cannot export a list of dict I need to convert it in df.
However, I have an issue with my columns/index, if I understand correctly, I have several columns with the same name which is not possible within a df.
Once I run the code, I have this bug :
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)
Do you have any idea of how to solve this issue ?
ps: please be kind with me I am starting Python :)
path = r"C:\zzz"
xls = pd.ExcelFile(path)
df1 = pd.read_excel(xls, 'CORRESPONDANCE')
df2 = pd.read_excel(xls, 'OP LIST')
coldel = np.r_[6, 7, 11:42]
df2.drop(df2.columns[coldel], inplace=True, axis=1)
df2= df2.drop(df2.index[0:7])
df2.columns = df2.iloc[0]
df2 = df2.sort_values(by='Portfolio',key=lambda x: x.str.split('MP'))
df2 = df2.dropna(subset=["Portfolio&qu
I'd like to know how update app in TestFlight
4 March 2026 @ 10:28 am
TestFlight Installation Issue - Need Help
Hi everyone,
I’m stuck with a TestFlight problem and would appreciate any guidance.
I’ve uploaded multiple builds to TestFlight (versions 1.0, 2.0, and 3). All builds show “Testing” status in App Store Connect and appear to be processed correctly.
However, when I try to install on my iPhone, I get:
- “Could not install Assistant aura. The requested app is not available or doesn’t exist.”
- OR “TestFlight couldn’t connect to App Store Connect. Try again.”
What I’ve Verified
Builds are uploaded and showing “Complete” status
My Apple ID is added to Internal Testing
Internal Testing group is assigned to the builds
Bundle ID and Team ID are correct
I’ve tried: reinstalling TestFlight, signing out/in, restarting iPhone, different networks
Details
- App: iOS app built with Xcode
- Issue: Can’t install any version fr
Securely encrypting data in a Chrome Extension without sending it to a server (key management problem)
4 March 2026 @ 10:23 am
I am building a Chrome extension where some user data (for example tab metadata or browsing-related information) must remain on the user’s device due to Chrome Web Store privacy policies. The extension is not allowed to send this data to my server.
Because of this restriction, I need to store the data locally using something like chrome.storage or IndexedDB. However, storing the data in plain text is not acceptable from a security perspective.
My current approach is to encrypt the data before storing it locally and decrypt it when needed.
For encryption I am using the Web Crypto API with AES-GCM, and deriving the key from a user password using PBKDF2.
Here is a simplified version of the encryption logic I am currently using:
const ALGO = 'AES-GCM';
const KEY_LENGTH = 256;
const IV_LENGTH = 12;
export async function deriveKey(password, salt) {
const
str_increment missing in PHP 7
4 March 2026 @ 10:17 am
We are migrating a legacy php application from php 7 to php 8
I got an issue increasing a variable with a letter
$d = 'H';
++$d;
Give a deprecated warning in php 8
Deprecated: Increment on non-numeric string is deprecated, use str_increment() instead
PromQL How to explain increase() to decrease when reset
4 March 2026 @ 10:10 am
I am trying to understand how the increase() function works, but I cannot explain this behavior.
For example, I am trying to obtain the total increase of a counter that has been reset in the last 24 hours. During my internet research, I understood that I needed to use the increase() function, which allowed me to manage counter resets.
But I have this situation : bytes_out_total and the increase function increase(bytes_out_total[24])
and it seems that it is not working. I was expecting this curve (handmade in red)
![Triple grpah, one with raw data bytes_out_total, another with function increase(bytes_out_total[24]) decreasing and a third handmaded in red showing expectation graph](https://i.sstatic.net/O9XV6Ri1.png)
and it seems that it is not working. I was expecting this curve (handmade in red)
![Triple grpah, one with raw data bytes_out_total, another with function increase(bytes_out_total[24]) decreasing and a third handmaded in red showing expectation graph](https://i.sstatic.net/O9XV6Ri1.png)
Video on first startup is bad quality
4 March 2026 @ 10:08 am
So recently i upgraded my application from Expo 48 to Expo 51 .
I am now facing an issue when, once i start the application after installing it on my device the video quality is horrendously bad BUT once I login and log back out the quality fixes itself.
How can i prevent that it doesn't show in bad quality when i first start up the application.
Versions:
"expo": "^51.0.39",
"react-native-video": "^6.18.0",
Code snippet:
<Video
key={`${rerenderComp}-${useFallbackVideo ? "fallback" : "file"}`}
source={fileVideoSource}
resizeMode="cover"
repeat={true}
paused={false}
muted={true}
volume={0}
onLoad={onVideoLoad}
onError={onVideoError}
/>
The application has to be running 24/7.
Running the sequence with TestStand 32bit
4 March 2026 @ 10:08 am
This is based on Bundle 2018.
I found that when switching the adapter to LabVIEW 2018 (32‑bit), I also needed to install TSM 2017 (32‑bit) and TestStand 2017 (32‑bit) in order to execute the test sequence. I’m not completely sure if there are additional items I should pay attention to when switching between TestStand 64‑bit and 32‑bit environments.
I would be great if there is any input, thanks
Setting up SSO authentication on Proxmox via Authentik [closed]
4 March 2026 @ 10:00 am
I am working on implementing SSO authentication on Proxmox via Authentik and I am facing a persistent issue.
Currently, all groups that a user belongs to are exported to Proxmox. The requirement is that only the highest-priority group should be exported when a user belongs to multiple groups.
To handle this, I have written a Python filter that assigns a priority to groups based on their permission level and returns only the highest-priority group. I am attaching the script for reference.
GROUP_PRIORITY = {
"Infr_Adm": 3,
"Infr_Sen": 2,
"Infr_Staf": 1,
}
ALLOWED_GROUPS = set(GROUP_PRIORITY.keys())
# --- Retrieve the user's groups ---
user_group_names = [g.name for g in user.ak_groups.all()]
matched_groups = [g for g in user_group_names if g in ALLOWED_GROUPS]
# --- Block if the user belongs to no allowed group ---
if not matched_groups:
raise Exception(
"Access denied: the user does not belong
How do I get VSTest fails to register as fail and not warnings?
4 March 2026 @ 9:59 am
We have a YAML test script which has steps with dependencies on previous Jobs.
Job 1 will build the smoke tests app and then run it. If the VSTest step fails we see a status of warning instead of fail as below.
This causes a problem with the next steps one of which has condition of succeeded and the other fail, despite the fail in the tests the succeeded step is ran and not the failstep. How do I get the test step to return a fail step when the tests fail? The YAML in shown below,
- stage: RunTheSmokeTests
displayName: Smoke Tests
jobs:
- job: GetAndRunSmokes
steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGetTool'
- task: NuGetCommand@2
displayName: 'NuGet Restore'
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
displayName: DeltaTestsBuild
inp
This causes a problem with the next steps one of which has condition of succeeded and the other fail, despite the fail in the tests the succeeded step is ran and not the failstep. How do I get the test step to return a fail step when the tests fail? The YAML in shown below,
- stage: RunTheSmokeTests
displayName: Smoke Tests
jobs:
- job: GetAndRunSmokes
steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGetTool'
- task: NuGetCommand@2
displayName: 'NuGet Restore'
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
displayName: DeltaTestsBuild
inp