« first day (3997 days earlier)      last day (39 days later) » 

12:58 AM
0
Q: Rust Wake-on-LAN CLI

freebieI'm new to writing rust code, and looking for any alternate approaches to writing this code or changes to make it more idiomatic, and readable. My use of traits, specifically, I dislike. It feels like I've reached for a chainsaw to sharpen a pencil. But was the only way I could find of move closu...

 
1:43 AM
0
Q: Hangman game in JavaScript

Napoleon BonaparteI have attempted to create a hangman game in JavaScript. Some parts of my code is a bit DRY. Basically, the Hangman class is a wrapper for all of the available actions in a typical hangman game: setup the board, generate a word, detect game end, etc. This class will be integrated into my UI logic...

 
 
2 hours later…
3:59 AM
 
FWIW I asked Simon about Duga... sounds like she is offline
in Coding Projects and Duga Heaven :), 4 hours ago, by Sᴀᴍ Onᴇᴌᴀ
@SimonForsberg https://duga.zomis.net/tasks appears to be timing out :/
 
 
7 hours later…
11:09 AM
0
Q: C++ - Find all duplicate files

HarithIt requires no explanation, so here's the code. Code: #include <filesystem> #include <fstream> #include <iomanip> #include <iostream> #include <optional> #include <string> #include <unordered_map> #include <vector> #include <openssl/evp.h> static std::optional<std::string> compute_file_hash(con...

 
 
2 hours later…
1:33 PM
Monking
 
 
2 hours later…
3:21 PM
0
Q: Wrong Answer for 3 testcases on The Bovine Shuffle - USACO Silver December 2017 Contest

Raunak SinghTrying to solve The Bovine Shuffle from USACO Silver December 2017 Contest. Problem link here: https://usaco.org/index.php?page=viewproblem2&cpid=764 Testcases 3,5, & 7 are giving wrong answer. I cannot find out why. My approach is to use the floyd cycle detection algorithm to count the number of...

 
 
2 hours later…
5:16 PM
1
Q: Simplified VarDumper in PHP

CodeWithPhpXI wrote a simplified VarDumper and wanted to get feedback on areas I can improve on my code. My biggest area of concern is the captureContext method making sure I get the correct file and line depending where dd() is called or if I call the dump method without helper function. My Response class s...

 

« first day (3997 days earlier)      last day (39 days later) »