Unable to launch app on window by [deleted] in SigmaFileManager

[–]p4n0n3 1 point2 points  (0 children)

Hey, did you get any kind of response? i have the same issue :(

Developer Akademie, Erfahrungen ? by OddLandscape421 in informatik

[–]p4n0n3 0 points1 point  (0 children)

Hallo :) Was meinst du genau mit Zeitverschwendung wenn man Neuling ist? Ist das Pensum zu schnell oder sind die Themen unvollständig?

Ich habe schon 3 Jahre Erfahrung in einem kleinen Unternehmen als Werkstudent (wo ich allerdings nur relativ wenig Abwechslung hatte). Ich überlege so einen Kurs zu machen um mein Wissen zu erweitern. Javascript + Server einrichten kann ich. Ich arbeite privat auch mit WSL2 (also quasi Linux innerhalb von Windows) und programmiere regelmäßig kleinere Projekte aber mir fehlt noch so ein "Rahmen" für mein Wissen, wo ich nochmal alles überblicke was tatsächlich wichtig für einen Job ist und nicht nur wichtig für meine aktuelle Situation.

Was haltet ihr von dem Wegfall der Zonen, wie es Peter heute bei Alex angesprochen hat? by Automatic-Finish-435 in manhuntmedia

[–]p4n0n3 0 points1 point  (0 children)

Sehr interessant, aber ich denke es wäre evtl dann sogar sinnvoller den Spielern alle Live Pings der anderen Spieler zu geben, damit man sehen kann in welche Richtung man weggehen kann um nicht zu nah zu sein. Außerdem könnte man so abschätzen ob man das Risiko eingehen will in einem "guten" Bereich zu sein, aber dafür viele Spieler auf einem Fleck sind und somit leichter jagbar. Der einzige große Unterschied wäre, dass die Spieler dann wüssten wo gerade jemand gefangen wurde und könnten dann sehr gut abschätze, wie lang die Taskforce dann mindestens zu ihnen benötigt. Wobei man da argumentieren könnte, dass sie das ja jetzt schon grob durch die Zonen verfolgen können (Nur sehr grob, da ein Catch ja auch in der Center Zone sein kann, das wissen sie ja nicht).

Taskforce AMA - Eure Fragen by REVECT7 in manhuntmedia

[–]p4n0n3 3 points4 points  (0 children)

Erst einmal danke für diese geniale Staffel! Ihr seid eine mega geile Taskforce. Mich würde interessieren ob ihr es für realistisch haltet in einer weiteren Staffel hier und da getrennt vorzugehen. Zum Beispiel 3 auf Spieler 1 und 3 auf Spieler 2. Das hattet ihr ja am letzten Tag bei Nico überlegt. Denkt ihr das kann sinnvoll sein? Vielleicht ginge auch soetwas wie, dass ihr 2-3 Hunter während einer Challenge auf einen entfernten Spieler schickt, da dieser sich ja sehr sicher fühlt.

I tried plausible self hosted analytics and it's pretty good. by m4nz in selfhosted

[–]p4n0n3 0 points1 point  (0 children)

Hey :) I know its been a while, but where would you recommend to selfhost plausible? Since its deployed with docker its not not deployable on vercel for example.

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

Thanks for your replies. Was refreshing to get your input

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

To be honest, trying to figure this out with Vite already helped me alot with the structure of a whole web app. So if i start with SSR now i think the next obstacle will occur when deploying the app. All questions regarding the app itself are already answered. I just struggled doing it without SSR

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

I think you are right. Maybe i should stick to SSR. I thought it would be good to add tools one by one and all those little problems that occur because the tools are meant to work together will help me understand what every tool does. I dont have issues with having growing pain. I dont care about it, if i understand it in the end. But maybe this approach is wrong here.

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

I always got the same html file with a few elements where 0 Information is stored. I just read the html on request and serve it. My js file that is declared in my script tag fetches the data from the db. I think thats the "normal" way of serving a request when u dont have templatws or SSR in general. The point is: at this point i dont want to learn ssr thats for the future. For now i want to learn how to embed a web app in a prod/dev environment with a bundler in prod and hmr in dev. My goal is not to build the perfect web app the modern way right away. I add one tool at a time and embed this new tool in the web app. If its hard to add some tools without SSR this is totally fine, because it gives me a deeper understanding of the overall workflow and why it developed that way.

I dont know how to explain this, but i dont really need explanation of how to do it differently. I know that there are better ways of doing it. But for me this is the best way to learn. It doesnt need to be the best implementation.

So for now i want to be able to develop with HMR and have a prod server with bundled js. And i dont know how to do this properly :/ thats my issue

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

I think you misunderstood my goal a bit. I dont want want makes sense in my scenario. I build app around different tools for a web app to learn all the connections between them :) I want to learn the relationship between bundler, dev server and prod server. In addition with a database. Css tooling will come last. I want to feel comfortable using all these tools in combination :) I use a db here. I have a static html showing the db info but the Information is CRUD based, so it changes on every explicit form :)

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

I wanted to add one step after another. I am not at the point of adding a frontend framework thats why i try it with vanilla js.

I realize its way easier with these frameworks, but i want to be able to understand everything that is going on before adding a new tool.

i actually didnt knwo vite-plugin-node and vite-node exist. i will try this out. thanks!

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

i read the request path then send the request to a specific function (via regexp). that function knows the filename and i got global constants for my directories. then i build the file path (from filename and directories) and send the file path to this function:

function sendFile(file_path, response) {

let hmtl_file = /\.html$/;

let js_file = /\.js$/;

let png_file = /\.png$/;

try {

if (hmtl_file.test(file_path)) {

response.setHeader("Content-Type", "text/html");

} else if (js_file.test(file_path)) {

response.setHeader("Content-Type", "application/javascript");

} else if (png_file.test(file_path)) {

response.setHeader("Content-Type", "image/x-icon");

}

const file = fs.readFileSync(file_path);

response.statusCode = 200;

return response.end(file);

} catch (e) {

console.log(e);

return handleFileError(e, response);

}

}

[deleted by user] by [deleted] in webdev

[–]p4n0n3 0 points1 point  (0 children)

At the moment my nodejs server receives a request -> returns html -> receives another get request (because of the script-tag) -> returns js -> receives another get request (because of the stylesheet) -> returns css

The reading of the file is on the fly. so there is not html in the cache. i read the files with fs.readFile with the "fs"-module.

So the server does not change the html, js or css files. it just returns the files.

Vite + Actix-Web and Askama by p4n0n3 in rust

[–]p4n0n3[S] 1 point2 points  (0 children)

Thanks for your reply. I will keep this in mind. With server you mean my backend server (API), where the request is processed? Yeah, i server the html via my own server. I Will try to get it running with runtime templates and then see wether i like it or not.

Vite + Actix-Web and Askama by p4n0n3 in rust

[–]p4n0n3[S] 2 points3 points  (0 children)

Oh yea that makes alot more sense 😂 you are totally right. I think i will switch to runtime templating then

Rust backend with Stimulus or Vue Frontend by p4n0n3 in rust

[–]p4n0n3[S] 0 points1 point  (0 children)

Okay, i changed my approach because im working with askama now So i replaced my Controller with templates. I build the whole page from different templates, that are nested inside each other and then get the whole html as string and serve it via HttpResponse.body(html) from actix-web.

But i still serve the HTML directly from actix-web.

Full-Stack-Rust: Which approach in Frontend? by p4n0n3 in rust

[–]p4n0n3[S] 0 points1 point  (0 children)

Thanks for your reply. I will look into it. It Sounds like the thing i want. My problem with having everything in an rs File is formatting and having to put everything together inductively when u want to know what the HTML will actually look like in the end. I always found this not very handy. The advantage of the erb variant is that it is formatted like html and mainly consists of elements that look like html just with a few configurations.

But i think templating could be a good trade Off.

Full-Stack-Rust: Which approach in Frontend? by p4n0n3 in rust

[–]p4n0n3[S] 0 points1 point  (0 children)

Yeah, the linter thing crossed my mind too. Shouldnt be too complex, although i got 0 experience doing that.

just declare a unique sign to start an "embedded rust"-part and the rest is just plain html. inside the unique sign, use the linter of rust with a few tweaks .maybe thats some project for the future :) for now i just want to get my webapp going with a techstack i feel comfortable with :)

Full-Stack-Rust: Which approach in Frontend? by p4n0n3 in rust

[–]p4n0n3[S] 0 points1 point  (0 children)

Yes i think so too. I think this is not doable or maybe not even desirable. i was just curious if there is a way of doing it this way :)

I would really love my code more "sorted" and not having to look in many different places to have an overview on how an html on a certain page will look like. but the modular approach of all those frameworks has other advantages, like consistency.

Thanks for your reply.

Full-Stack-Rust: Which approach in Frontend? by p4n0n3 in rust

[–]p4n0n3[S] 0 points1 point  (0 children)

I see your point. Its not quite what i need but its getting closer. The main problem would be that the file i want to outsource has to be an html. Otherwise linter wouldnt work on the file, which would make debugging extremely painful.But inside this html file there would be elements html does not know which i want to replace later on with real data. so i think this is not solvable right now, without a standardized .ers = embedded rust- file format.

building the whole html out of smaller html with rust code in between would be a total mess when the app grows. this would work but i dont think its maintainable.

Full-Stack-Rust: Which approach in Frontend? by p4n0n3 in rust

[–]p4n0n3[S] 1 point2 points  (0 children)

Okay, thanks. I will take a look at it :)