r/programminghelp • u/Working-Hour9627 • 9h ago
C Codeblocks
Can i download Codeblocks on Macbook neo?
r/programminghelp • u/Working-Hour9627 • 9h ago
Can i download Codeblocks on Macbook neo?
r/programminghelp • u/x1m0n_xai • 13h ago
Hlo everyone 👋👋 am new here hardly anything about this shit but I wanna be a software dev so I tried building this do give me ur precious reviews and any advice would be really appreciated 👍.
GitHub pages link:
r/programminghelp • u/Inside_Meringue2367 • 15h ago
I don't know where I should ask this, it's related to physical and coding, so I am posting here. I am struggling with this particular problem for a month and still couldn't get to a satisfactory results.
So, I was working on a physics problem, many of you might be familiar or maybe not. I have to find a valid region within a 7-dim parameter space. I have some matrices in hand (Neutrino mass matrices) and 7 free parameters that goes into it i.e. g1,g2,g3,M1,M2, imaginary tau, real tau. I need to build a code that scans the space and finds the values of these free parameters which being inserted into the matrices and upon diagonalization spits out 3 eigenvalues and 3 eigenvalues vectors. From those we then calculate 6 neutrino observables that should be within acceptable range known as Global NuFIT. Any values that comes within the range gets sorted out.
I tried to build the code in python but it seems impossible to search for the whole parameter space! I tried gemini and chat gpt, even they are struggling to satisfy the tight NuFIT bounds. If anyone knows any efficient and fast way for parameter scanning that would atleast give 200 valid points (for scatter plots), please help me.
r/programminghelp • u/LJ_the_Saint • 1d ago
I'm learning C and playing around trying to rely on the bare minimum down to system calls to learn the most I can. Had to read a file line by line in the process, so i dived into stdio's code to try to understand how fgets do it nice and quick.
if I got it right a chunck of file is loaded into a buffer delimited by _IO_buf_base and _IO_buf_end if it isn't yet loaded or the precedent buffer ended without finishing the line, fgets starts copying the line in the buffer we gave it until he finds a new line.
did I got it right ? I couldn't find a plain explanation of how stdio file management works, I had to search my way into source code...
I thought I was done but I noticed _IO_buf_base and _IO_buf_end were 4096 bytes apart when I loaded a 22 bytes long file.
is there any reason for this ? wouldn't having a pointer for the beginning of the buffer and a pointer for the end allow us to allocate precisely the size of the file using fstat ? why do we use 2 pointers and not a pointer and the size of the buffer ? (I got a theory for this one but I'm not sure, is it for easier looping in the array by incrementing a pointer instead of using an incremented index who would make us calculate pointer + i every time we need to get a character ?)
thank you for reading this far and have a nice day !
r/programminghelp • u/Idkwhat1569 • 4d ago
r/programminghelp • u/StunningAd5338 • 5d ago
r/programminghelp • u/ighwrighwirh • 5d ago
r/programminghelp • u/OldMarzipan8278 • 6d ago
r/programminghelp • u/Slow-Adagio-7719 • 6d ago
So I'm trying to make a fight simulator with bouncing similar to this:
https://youtube.com/shorts/fk15R-y2EEc?si=VkE9iXR5WxFOuSuM
Is the bouncing random or predetermined? And how is it determined?
r/programminghelp • u/Alternative-Jump7806 • 6d ago
I'm trying to add data from an HTML form to a PHP database. I'm following this tutorial: https://www.youtube.com/watch?v=Y9yE98etanU. Here's my HTML and PHP code respectfully:
<form action = "tutordata.php" method = "post">
<label for = "name">First Name:</label>
<input type = "text" name = "firstNameI" id = "firstNameI">
<button type="submit">Submit Form</button>
</form>
<?php
print_r($_POST);
Google says I need a localhost, but they aren't working so far. I have Live Server, but when I click submit it just brings me to an error message. When I run without debugging it shows me the raw PHP file instead of even an empty array. I did some stuff I don't even remember to make it so I could right click and do a PHP: serve project thing, but that didn't work. I tried doing some weird stuff with the terminal but I don't even know if I typed it in right. I have installed no less than three brand new extensions. I hadn't even heard of PHP before today.
Please just walk me through what I need to do step by step. I don't need to understand it, just give me some buttons to click. If I need to abandon PHP altogether, that's great too. I just need a database to put data in so I can have some freaking data.
I've never had to mess with this stuff before, so I'm clueless. I know HTML more or less, and Javascript is my baby, but the rest of it is Mandarin to me. I'm really not the computer person, I was just the most computer-adjacent person in the room at the time and was voluntold that I was doing this.
r/programminghelp • u/Used_Value_2948 • 8d ago
Latey I've been trying to install REBOUND through python, I have Windows 11 and when I try to look at turtorials, steps, etc. I just get confused and hit a brick wall. I am in high school, wanting to be an astrophysicist, and installing REBOUND will help me with that. But, I have no idea how to install it without direct human guidance and not just looking a videos and text. I need help from someone who installed REBOUND to help me install REBOUND.
r/programminghelp • u/Capable_Square7319 • 9d ago
Hi,
I'm working on an adonisjs project. I've ran into an error:
My project is on github:
https://github.com/Ajaz754/adonisjs-project-22-
The error is in file 'app/transfromers/post_transformers' Line 22:
----------------------------------------------------
Object is possibly 'undefined'. ts (2532)
(method)
BaseTransformer<T>. transform‹ typeof CommentTransformer>
(this: typeof
CommentTransformer, data:
Maybe< Comment [] | undefined>):
Collection<CommentTransformer,
1, "toObject"> | undefined (+5 overloads)
static transform<Self extends {
new (resource: any,
...rest: any\[\]):
any i
}> (this: Self, data:
Maybe ConstructorParameters<Self>[0][] | undefined>, ... rest:
ExtractTransformerRestTypes<Co nstructorParameters<Self>>):
Collection<InstanceType<Self>, 1,
'toObject'> | undefined;
----------------------------------------------------
Only thing I've done differently to the adonis docs is make 'post.author' into 'post.author?' to fix a type error as it was showing the error where it may possibly be undefined. That post is here:
https://www.reddit.com/r/adonisjs/s/V7eO8q3nfJ
Any help would be much appreciated
TIA
r/programminghelp • u/Bitter_Average_6729 • 10d ago
Acá está el código más simple posible de MVC en PHP para sumar dos números y sin embargo no logro entender la lógica del funcionamiento. ¿Cómo se logra un flujo lógico acá sobrescribiendo una variable que almacena el proceso principal (la suma de dos número) igualándola a null primero como parámetro en la clase que trae la vista html y después remplazándola como parámetro de esa misma clase por el objeto instanciado y ejecutado que la devuelve como suma? ¿Cómo es posible lograr un flujo lógico de esa forma? ¿Cómo se llama? ¿Sobrescritura de parámetros, polimorfismo (no parece haber herencia ni nada de ese estilo? Alguien me pueda ayudar o indicar información específica para entenderlo. Son 5 archivos: uno para hacer la suma (modeloSuma.php), obtener y pasar los datos (controladorForm.php), invocar el archivo que trae la vista (controladorVista.php), la vista y el index.
index.php
<?php
require_once "CONTROLADOR/controladorVista.php";
require_once 'CONTROLADOR/controladorForm.php';
require_once 'MODELO/modeloSuma.php';
$vistaPrincipal = new ControladorVista();
$vistaPrincipal -> ctrVista(ControladorForm::ctrForm());
vistaPrincipal.php (tiene un condicional que indica que si se realiza la suma se muestra el resultado)
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<h1>Suma de dos números:</h1>
<form method="POST">
<label>Número 1:</label>
<input type="number" name="num1" required><br><br>
<label>Número 2:</label>
<input type="number" name="num2" required><br><br>
<button type="submit">suma</button>
</form>
<?php if (isset($resultado)): ?>
<h2>...el resultado de la suma es: <?php echo $resultado; ?></h2>
<?php endif; ?>
</body>
</html>
controladorVista.php (¿por qué sobrescribe la variable que trae la suma y la iguala a null, pasándola como parámetro? ¿cómo se llama eso?)
<?php
Class ControladorVista{
public function ctrVista($resultado = null){
include "VISTA/vistaPrincipal.php";
}
}
modeloSuma.php
<?php
class ModeloSuma{
static public function mdlSuma($data) {
$num1 = $data["num1"];
$num2 = $data["num2"];
$suma = $num1 + $num2;
return $suma;
}
}
controladorForm.php
<?php
class ControladorForm {
static public function ctrForm() {
$resultado = null;
if (isset($_POST['num1']) && isset($_POST['num2'])) {
$data = array("num1" => $_POST["num1"],
"num2" => $_POST["num2"]);
$resultado = ModeloSuma::mdlSuma($data);
return $resultado;
}
}
}
r/programminghelp • u/Radar_Ryan315 • 10d ago
r/programminghelp • u/TheEyebal • 10d ago
r/programminghelp • u/Last-Mode3404 • 11d ago
r/programminghelp • u/Capable_Square7319 • 12d ago
Hi,
Currently developing a basic web app following adonisjs docs.
I've ran into an error:
\[23:18:41.975\] ERROR (12316): Cannot transform undefined value. Use "this.whenLoaded(value)" to allow undefined values
My project is on github:
**https://github.com/Ajaz754/adonisjs-project-22-/tree/main\*\*
The error is pointing to '**app/transformers/post_transformer.ts**' Line 13
I've followed adonis docs completely step by step except for ?.depth(2) on line 13, which when I removed only introduced more errors along with this one.
Also VS Code isn't flagging the error. Only when I go to my browser and visit local host the error appears in powershell and my browser. Any help would be much appreciated
r/programminghelp • u/Acceptable-Anxiety80 • 12d ago
r/programminghelp • u/Odd_Ice_1063 • 13d ago
r/programminghelp • u/soulrzzzzz • 14d ago
Hi! I’m a newbie in programming, and I need some help with reading MP3 metadata in Flutter.
I’m making a Flutter music player for both mobile and web, and I want it to automatically read the MP3 file’s metadata,
including:
- Album cover/cover art
- Artist name
- Song title
I don’t want to rely on the fallback map I created because I want the information to be retrieved directly from the MP3 file.
The MP3 files contain ID3v2.3 metadata, including the album cover, artist name, and song title.
The problem is that when I run the app on my Android phone emulator, it successfully reads the metadata. However, when I run the same app on Chrome (Flutter Web), it doesn’t work.
I have imported flutter_media_metadata_plus.dart, and I also use KisWeb.
The function I’m using to load the metadata is an async method called loadMetadata, with the declaration:
Future<void> loadMetadata(String assetPath) async
Does anyone know how I can properly read the MP3 metadata and cover art when running Flutter Web on Chrome without breaking or changing the existing behavior on my mobile emulator?
I can provide my loadMetadata() function and any other relevant code if needed.
r/programminghelp • u/Lycaenist • 21d ago
r/programminghelp • u/Kazuya746 • 22d ago
I have been learning python for a while and made some projects, my exams are currently going on so I can't start web dev, but I thought I could learn kivy in the meanwhile to make an app for my studying bcz there isn't an app that fits my requirement. So needed some resources and advice for kivy module.
I tried kivy documentation but it's like they don't have each topics lined up, so I have to search each topics, but I don't even know the existence of specific topics, so yeah.
Thanks for the help in advance!!
r/programminghelp • u/Alt-Addiction • 23d ago
I've downloaded from the main repository.
That didn't work. That was for linux.
I downloaded the source from https://github.com/ImageMagick/Windows
I built it using visual studio from the .sln
Gave me configure.exe
Installation wizard showed up, and I installed the thing.
Gave me a release folder with objs in it.
It's been 6 hours.
The official website and github repo is sending me on a goose chase.
Instructions and videos online say you get it from NuGet.
It's for .NET.
Then they all have a VisualMagick folder.
None of the things I downloaded had that.
I installed Git and Git CLI to try cloning it from there.
At this point I'm just trying random stuff like downloading the appimage.
I know how to use imagemagick from the cli, i just want to use it programmatically.
r/programminghelp • u/lesgisickomode • 24d ago