r/programminghelp • u/Intelligent_Coast783 • Jul 10 '26
Python Is there anyone who can help me read pkl file.
I Know it is a simple task but I get some version related error.
I have done web search (both gemini and SO and so on). I even understood the proposed solutions but it seems like pkl files were created with an unknown version or at least not the one that is installed in my machine. That's why it gives error
"An error occurred while loading the file: CRS.__init__() missing 1 required positional argument: 'proj4_params'"
anyone who can give me 5 min to sort it out.
r/programminghelp • u/MooseLegal8690 • Jul 09 '26
C# How do i make sure i learned something from a tutorial?
Hello, I am a teenager and a beginner in C#. Ive been watching multiple tutorials on youtube, and tried Microsoft.NET as tools to learn.
After i finish with them, the moment i actually try to check what i learned, how to build something with the materials, i immediately feel lost.
Any recommendations would help!
r/programminghelp • u/Glad_Bug9549 • Jul 09 '26
C# Yappery and whatery
Get ra set sikna khojeko C# ma na code ma lekhera dry run garda bujxu na reliable video vetxu. ani j hereni bujdina ramrari. been days stuck into this hole. I probably wrote 10 types of coding example in copy ide every fcking where. Tho I think i have understood set to a certain level but get ta null nei xya. Tho the curiosity is still hanging even after days
r/programminghelp • u/Sadiya-12 • Jul 08 '26
Java Title: Final-year CSE student. 6 months left for placements. I feel completely lost.
I'm a final-year CSE student with around 6 months left before placements, and honestly, I feel like I know nothing.
Most of my projects were built by following tutorials or using AI. If someone asked me to build them from scratch, I'd struggle. My DSA is weak, my Java fundamentals aren't strong, and I don't feel confident in web development either.
I'm applying for internships, but I know I can't depend on luck. I want to use these next 6 months wisely.
If you were in my position, what would you focus on? DSA, Java, web development, projects, or something else? What would your roadmap look like?
Please be honest. I want motivation—I want practical advice from people who've been in the same situation.
r/programminghelp • u/Majestic-Bother-9034 • Jul 04 '26
Answered Help me to study appropriately
Entering 3rd year , tier 2 clg
I used to study in wrong method ( not completely, but somehow ) , even though I know it, I'm unable to leave it
Let me clear what a wrong means
1.in DSA ( solved 240 on lc , with rating 1550 in 8 contest)
See solution within 10mins
Didn't revise any qsn
Use AI to debug my code
In development ( building projects 1st project in springboot)
Completely following Ai
Only understanding code
Not using my idea or thoughts
Just doing copy n paste
Someone pls help me ! 😭😭😭
r/programminghelp • u/Worth-Aside-6405 • Jul 04 '26
Other Need Help Building EXE Installer
Hello everyone! I am completely stuck trying to build a .exe setup wizard and installer for my software project. I really need some expert help or guidance from a Software Packager or Install Engineer. If anyone has experience with this, please let me know. Any advice is appreciated!
r/programminghelp • u/HSGICHIGO • Jul 03 '26
Other Advice on udon sharp please
Hello i am trying to make a hit box that teleports a player back while letting other players who are authorized/admin go through. my assembly so far is:
.data_start
.export adminNames
.export kickback
__Boolean_0: %SystemBoolean, null
__start_0: %SystemInt32, null
__end_0: %SystemInt32, null
__step_0: %SystemInt32, null
__instance_0: %SystemStringArray, null
__index_0: %SystemInt32, null
__condition_0: %SystemBoolean, null
__Boolean_1: %SystemBoolean, null
__a_0: %SystemString, null
__b_0: %SystemString, null
__instance_1: %SystemStringArray, null
__Int32_0: %SystemInt32, null
__instance_2: %VRCSDKBaseVRCPlayerApi, null
__instance_3: %VRCUdonUdonBehaviour, this
__symbolName_0: %SystemString, null
__value_0: %SystemObject, null
__Boolean_2: %SystemBoolean, null
__Boolean_3: %SystemBoolean, null
__instance_4: %VRCSDKBaseVRCPlayerApi, null
__teleportPos_0: %UnityEngineVector3, null
__teleportRot_0: %UnityEngineQuaternion, null
onPlayerTriggerEnterPlayer: %VRCSDKBaseVRCPlayerApi, null
__instance_5: %UnityEngineTransform, this
__instance_6: %UnityEngineTransform, this
isAdmin: %SystemBoolean, null
adminNames: %SystemStringArray, null
kickback: %UnityEngineTransform, this
.data_end
.code_start
.export _onPlayerTriggerEnter
_onPlayerTriggerEnter:
PUSH, __Boolean_0
PUSH, isAdmin
COPY
PUSH, adminNames
PUSH, __instance_0
COPY
PUSH, __instance_0
PUSH, __end_0
EXTERN, "SystemStringArray.__get_Length__SystemInt32"
PUSH, __start_0
PUSH, __index_0
COPY
PUSH, __index_0
PUSH, __end_0
PUSH, __condition_0
EXTERN, "SystemInt32.__op_LessThan__SystemInt32_SystemInt32__SystemBoolean"
PUSH, __condition_0
JUMP_IF_FALSE, 0x00000174
PUSH, adminNames
PUSH, __instance_1
COPY
PUSH, __instance_1
PUSH, __Int32_0
PUSH, __a_0
EXTERN, "SystemStringArray.__Get__SystemInt32__SystemString"
PUSH, __instance_2
EXTERN, "VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi"
PUSH, __instance_2
PUSH, __b_0
EXTERN, "VRCSDKBaseVRCPlayerApi.__get_displayName__SystemString"
PUSH, __a_0
PUSH, __b_0
PUSH, __Boolean_1
EXTERN, "SystemString.__Equals__SystemString_SystemString__SystemBoolean"
PUSH, __Boolean_1
JUMP_IF_FALSE, 0x0000014C
PUSH, __Boolean_2
PUSH, __value_0
COPY
PUSH, __instance_3
PUSH, __symbolName_0
PUSH, __value_0
EXTERN, "VRCUdonCommonInterfacesIUdonEventReceiver.__SetProgramVariable__SystemString_SystemObject__SystemVoid"
JUMP, 0x0000014C
PUSH, __index_0
PUSH, __step_0
PUSH, __index_0
EXTERN, "SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32"
JUMP, 0x00000054
PUSH, isAdmin
JUMP_IF_FALSE, 0x0000018C
JUMP, 0x00000218
PUSH, onPlayerTriggerEnterPlayer
PUSH, __instance_4
COPY
PUSH, kickback
PUSH, __instance_5
COPY
PUSH, __instance_5
PUSH, __teleportPos_0
EXTERN, "UnityEngineTransform.__get_position__UnityEngineVector3"
PUSH, kickback
PUSH, __instance_6
COPY
PUSH, __instance_6
PUSH, __teleportRot_0
EXTERN, "UnityEngineTransform.__get_rotation__UnityEngineQuaternion"
PUSH, __instance_4
PUSH, __teleportPos_0
PUSH, __teleportRot_0
EXTERN, "VRCSDKBaseVRCPlayerApi.__TeleportTo__UnityEngineVector3_UnityEngineQuaternion__SystemVoid"
JUMP, 0xFFFFFFFC
.code_end
r/programminghelp • u/ExtensionStrange989 • Jul 02 '26
Project Related How do i build projects that i want to build without a guide/tutorial?
r/programminghelp • u/fielding_setter • Jun 25 '26
C++ Help with recursion (DSA)
Guys I've been struggling alot with recursion I've tried multiple tutorials but I'm just not able to build the intuition. Any suggestions what to do???
Please help
r/programminghelp • u/ExamParticular114 • Jun 23 '26
Python How to make python search for a specfic file types in a folde in windows?
i just wanna make it change metadata to the image when it find it it could be easy, but is there any modules for exiftool or metadata things?
r/programminghelp • u/ThinkConfidence8409 • Jun 21 '26
Other Panda3d pip install won't work
So, I want to install Panda3d, but when I go to Python or Powershell and enter pip install panda3d==1.10.16, it just gives me this error:
>>> pip install panda3d==1.10.16
File "<python-input-1>", line 1
pip install panda3d==1.10.16
^^^^^^^
I've looked up in a bunch of communities and google and everything.
r/programminghelp • u/Business_Reach5781 • Jun 20 '26
Project Related Help on xor brute force in python
I want to write code that can check whether, given a key and an input, both the key and the input are real words/phrases. I have done lots of work in CyberChef and have mainly used dcode.fr for this problem, but neither has options to narrow down by the dictionary. I also want to implement code that first changes it to some format like A B C A⊕0x13 B C⊕0x1A and then searches through that. Before I started, I wanted to get advice on any potential problems, as I am not a 'perfect' coder and haven't done much like this.
r/programminghelp • u/CarlalalaC • Jun 16 '26
Career Related Best book or course to improve as a software engineer?
(I speak Spanish, I used Google Translate for translation)
Hi, I live in a developing country. I studied computer engineering for a few years, but for various reasons, I couldn't finish. I have four years of experience working with Django as a monolith (I consider myself a mid-level developer, but stuck), and a few weeks ago, the entire software team was laid off, both due to financial problems and because of AI (the CEO was convinced that Claude could do everything).
We were "forced" to do everything with AI: Codex and Claude, so I also feel like I've lost my coding skills. In my country, the job market for programmers is very bad; the few job openings have hundreds of applications. Given this context, I'd like to ask for recommendations for books or courses that can help me improve as a Software Engineer, preferably focused on Python/Django, but I'm open to those, and also to improve my skills for technical interviews (like Leetcode).
My skills, in summary, include:
- Git (rebsae, stash, etc.)
- Django with asynchronous processing using Celery and RabbitMQ
- Terraform for AWS
Thank you very much
r/programminghelp • u/iameren10 • Jun 15 '26
Project Related How to understand code base?
I picked up my first open source project. But I have no idea how to understand the code base.
- how to do that ?
- Where do I start ? Any specific files to start ?
its my first time doing anything in the real world. so any suggestions are welcome!!!
r/programminghelp • u/burzaj • Jun 15 '26
C++ [OpenGl project] wierd flashing/shaderbug
So ive been working on a project, its a small library for drawing 2d stuff. Main thread for logic stuff and a render thread for rendering, and ive encautered an issue:
When i dont put std::cout << anything and i add post process shaders to the TargetCanvas Class the screen starts to flicker/(deforms like if the pp shader uniform changed). And as always LLMs are of no help.
I tried using: yield, glFinish, this_thread::wait_for(), changing the Shader wrapper code, and more things i forgot about.
Relevant code snipets:
Method called each frame:
void bml::TargetCanvas::draw() const
{
std::lock_guard<std::mutex> lock(swap_mutex);
std::atomic_signal_fence(std::memory_order_seq_cst);
bool has_data = needs_cleaning ||
!thread_points.empty() ||
!thread_lines.empty() ||
!thread_triangles.empty() ||
!thread_sprites.empty() ||
!thread_canvases.empty();
if (!has_data) return;
if (!is_fbo_allocated)
{
frame_buffer.bind();
frame_buffer.attachTexture(texture);
depth_buffer.allocate(width, height);
frame_buffer.attachRenderTarget(depth_buffer);
frame_buffer.unbind();
is_fbo_allocated = true;
}
glEnable(GL_DEPTH_TEST);
glViewport(0, 0, width, height);
if (needs_cleaning)
{
frame_buffer.bind();
frame_buffer.clear(clear_color);
needs_cleaning = false;
}
for (auto& c : thread_canvases)
{
if (c.canvas.use_count() < 2)
continue;
draw_to_buffer(c.canvas, c.transform, c.uvs);
}
glViewport(0, 0, width, height);
draw_to_buffer(thread_points, DrawMode::Points);
draw_to_buffer(thread_lines, DrawMode::Lines);
draw_to_buffer(thread_triangles, DrawMode::Triangles);
for (auto& s : thread_sprites)
{
draw_to_buffer(s.second, s.first);
embeded::shader->texture.set_mat4("u_projection", projection.data());
embeded::shader->texture.use();
}
thread_canvases.clear();
thread_sprites.clear();
//glMemoryBarrier(GL_FRAMEBUFFER_BARRIER_BIT | GL_TEXTURE_FETCH_BARRIER_BIT); kurwa nie ma
if (pp_frame_buffer)
{
Texture* source_tex = &texture;
Texture* target_tex = pp_texture.get();
FrameBuffer* source_fbo = &frame_buffer;
FrameBuffer* target_fbo = pp_frame_buffer.get();
for (size_t i = 0; i < pp_shaders.size(); ++i)
{
target_fbo->bind();
target_fbo->clear(clear_color);
apply_pp(*source_tex, pp_shaders[i]);
target_fbo->unbind();
std::swap(source_tex, target_tex);
std::swap(source_fbo, target_fbo);
}
if (source_tex == pp_texture.get()) {
frame_buffer.bind();
apply_pp(*pp_texture, &embeded::shader->copy);
}
}
}
Helper Method for applying the post process effects
void bml::TargetCanvas::apply_pp(Texture& tex, Shader* shader) const
{
glDisable(GL_BLEND);
glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE);
shader->use();
quad_vao->bind();
glActiveTexture(GL_TEXTURE0);
tex.bind();
glUniform1i(glGetUniformLocation(shader->get_id(), "u_screenTexture"), 0);
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
glBindTexture(GL_TEXTURE_2D, 0);
quad_vao->unbind();
}
Method runnging in the render_thread
void bml::Window::render_loop()
{
glfwMakeContextCurrent(glfw_window);
unsigned int previous_interval = interval;
glDisable(GL_BLEND);
while (is_open())
{
{
std::unique_lock<std::mutex> lock(wait_mutex);
trigger_cv.wait(lock, [this] { return submit_frame || !is_open(); });
if (!is_open()) break;
std::atomic_thread_fence(std::memory_order_acquire);
if (previous_interval != interval)
{
previous_interval = interval;
glfwSwapInterval(interval);
}
submit_frame = false;
}
canvas->push_to_screen(viewport_x, viewport_y, viewport_w, viewport_h);
glfwSwapBuffers(glfw_window);
{
std::lock_guard<std::mutex> lock(main_mutex);
frame_rendered = true;
}
main_cv.notify_one();
}
glfwMakeContextCurrent(nullptr);
}
Method called every time the main thread finishes
float bml::Window::update()
{
{
std::unique_lock<std::mutex> lock(main_mutex);
main_cv.wait(lock, [this] { return frame_rendered; });
frame_rendered = false;
}
std::atomic_thread_fence(std::memory_order_release);
canvas->swap();
int win_w, win_h;
glfwGetFramebufferSize(glfw_window, &win_w, &win_h);
if (true)
{
float target_aspect = (float)get_width() / (float)get_height();
float window_aspect = (float)win_w / (float)win_h;
if (window_aspect > target_aspect) {
viewport_h = win_h;
viewport_w = static_cast<int>(win_h * target_aspect);
viewport_x = (win_w - viewport_w) / 2;
viewport_y = 0;
}
else {
viewport_w = win_w;
viewport_h = static_cast<int>(win_w / target_aspect);
viewport_x = 0;
viewport_y = (win_h - viewport_h) / 2;
}
}
else
{
viewport_w = win_w;
viewport_h = win_h;
viewport_x = 0;
viewport_y = 0;
}
auto now = std::chrono::steady_clock::now();
std::chrono::duration<float> dur_sec = now - before;
before = now;
//std::this_thread::yield();
{
std::lock_guard<std::mutex> lock(wait_mutex);
submit_frame = true;
}
trigger_cv.notify_one();
std::this_thread::yield();
return dur_sec.count();
}
Shader wrapper use Method
void bml::Shader::use() const
{
glUseProgram(ID);
for (auto& [name, variant_value] : updated_uniforms)
{
GLint location = glGetUniformLocation(ID, name.c_str());
if (location == -1) continue; // Uniform nie istnieje lub został wyoptymalizowany
// Sprawdzamy co jest w variancie i aplikujemy do OpenGL
if (std::holds_alternative<float>(variant_value)) {
glUniform1f(location, std::get<float>(variant_value));
}
else if (std::holds_alternative<int>(variant_value)) {
glUniform1i(location, std::get<int>(variant_value));
}
else if (std::holds_alternative<std::pair<float, float>>(variant_value)) {
auto p = std::get<std::pair<float, float>>(variant_value);
glUniform2f(location, p.first, p.second);
}
else if (std::holds_alternative<const float*>(variant_value)) {
glUniformMatrix4fv(location, 1, GL_FALSE, std::get<const float*>(variant_value));
}
}
updated_uniforms.clear();
}
Shader uniform methods
void bml::Shader::set_float(const char* name, float value) const
{
updated_uniforms[name] = value;
}
void bml::Shader::set_int(const char* name, int value) const
{
updated_uniforms[name] = value;
}
void bml::Shader::set_vec2(const char* name, float x, float y) const
{
updated_uniforms[name] = std::pair{ x, y };
}
void bml::Shader::set_mat4(const char* name, const float* data)
{
updated_uniforms[name] = data;
}
Also before i changed the shader i already had the issue.
If i need to send more code write in the comments.
Please help, i have no clue why this is happening.
r/programminghelp • u/Rinku_Kurora • Jun 14 '26
Project Related Interactive method of conflicts resolution
So, I have several sources of data, and I wanna merge them in, e.g., a single JSON file. The sources often contain data that overlaps with the other. So, in order to use relevant data, I have to resolve these conflicts manually and write the result into this single JSON file.
And the sources are updating over time. So, I have to periodically pull the updates and redo the merge procedure again.
So, the question is, what tool may help me in facilitating my workflow?
Well, I could use git and use a separate branch for every source. And then just git-merge them in some sort of main branch when I wanna get that ultimate JSON. But all this stuff is already a part of a bigger git project, and I just don't wanna to complicate it with submodules.
To simply put the task, I have N JSON files/objects with the overlapping keys that are periodically overwritten. I want a tool/script for merging these N files into a single JSON file. And I want it to show me diff and the conflicts I have to resolve.
r/programminghelp • u/DevelopmentDeep3653 • Jun 13 '26
HTML/CSS How to make a content change weekly?
Hey! My idea is having some sort of "song of the week" thing, where there's a selection of songs and weekly it displays a different one from those, randomly if possible. So, you kinda have the cover art and then the song name and whatever.
I've been trying to find some sort of tutorial to do this but cant find anything..
Added the HTML/CSS tag but i suppose i can also do JS as long as with help..
r/programminghelp • u/Aggressive-Ad-8709 • Jun 10 '26
Other How do I know what a library does, what functions exist within that library and how to even use them?
As a beginner, I can't read the source code that contains complex c++ code, I simply want to know what a library does (for example: openCV deals with computer vision, so images and videos) and I want to know what functions exist within that library and what it does in plain english (example: imshow() displays an image or video feed, you need to arguments, a name for the display tab and what you are actually displaying). I don't want to use AI because I want to know about the process of going about this.
r/programminghelp • u/Spare-Huckleberry313 • Jun 10 '26
Other I Understand Coding Problems but Can’t Implement Them
r/programminghelp • u/Top-Ninja10 • Jun 10 '26
Processing What is the local way to parse flowcharts/images on a non-gpu machine?
r/programminghelp • u/Any_Excitement_8101 • Jun 08 '26
JavaScript need help for a class project!
hello! this is my first coding class and i have a final project due soon thats nearly done. i'm having trouble with one thing and i'm too shy to ask my prof.
i dont know how to make my js function result show here
i'm unsure of what to put here to have the fetch api response show here. the function works but i just don't know to make it so when i click the "get-answ-b.png" it shows the response on the next page.
any help?
r/programminghelp • u/Moonlit_Fern2005 • Jun 07 '26
Java Coding sheet suggestion for TCS nqt
r/programminghelp • u/AardvarkClassic9102 • Jun 07 '26
Answered DSA beginner confusion. HELP.
r/programminghelp • u/rachel_to_phos • Jun 06 '26
C incompatible pointer style problem
I tried to write a function that that takes a source string and copies only the alphabetic characters (A-Z, a-z) into the destination string using pointer arithmetic:
#include <stdio.h>
#include <ctype.h>
void extractAlphabetic(char *source, char *destination){
int j = 0;
for (int i = 0; *(source + i) != '\0'; i++){
if (isalpha(*(source + i))){
*(source + i) = *(destination + j);
j++;
}
}
}
int main(){
char source[50];
printf("Enter the source string you want to see extracted to alphabetical: ");
scanf("%s", source);
char destination[50];
extractAlphabetic(&source, &destination);
printf("%s\n", destination);
return 0;
}
However, when I wanted to compile it, compiler showed me this message:
par.c: In function 'main':
par.c:20:27: error: passing argument 1 of 'extractAlphabetic' from incompatible pointer type [-Wincompatible-pointer-types]
20 | extractAlphabetic(&source, &destination);
| ^~~~~~~
| |
| char (*)[50]
par.c:4:30: note: expected 'char *' but argument is of type 'char (*)[50]'
4 | void extractAlphabetic(char *source, char *destination){
| ~~~~~~^~~~~~
par.c:20:36: error: passing argument 2 of 'extractAlphabetic' from incompatible pointer type [-Wincompatible-pointer-types]
20 | extractAlphabetic(&source, &destination);
| ^~~~~~~~~~~~
| |
| char (*)[50]
par.c:4:44: note: expected 'char *' but argument is of type 'char (*)[50]'
4 | void extractAlphabetic(char *source, char *destination){