Skip to main content

All Questions

Tagged with
0 votes
0 answers
84 views

Check all files in two folders with partial match in name and update one of the folders with the newest from both

Here is the code I am using it works fine; however, it obviously takes forever when there are a lot of files to check. exact shell is cmd.exe. I am really just looking to make it more efficient. Here ...
James Davis's user avatar
1 vote
1 answer
180 views

swap two different length group of variable in array

The code below swaps two different-length groups of variables of the same array in the same array. Is there any other method to achieve this that is less heavy or less redundant? ...
Ill Magnus's user avatar
7 votes
4 answers
1k views

Calculate average values for each day of the week for each Meter

I have a program with these two methods. One method to import a set of data from a CSV within the given time period and store them in a dictionary. Here the data in CSV file is stored in following ...
HARINDA VITHANA's user avatar
1 vote
1 answer
64 views

Define multiple buttons for Windows commands

I'm teaching myself Python. I wrote this code for work to help me troubleshoot end users PCs. It opens a GUI with a selection of buttons. It's written in python using pyinstaller to convert it to an ...
user18013413's user avatar
5 votes
1 answer
1k views

More efficient way to create an ASCII maze using box characters

I've written a C# program to generate a random maze, and then draw that maze in the Console mode using box-drawing characters, e.g. ─ │ ┌ ┐ ┬ ┼ etc. It works fine, as below, but I'm not convinced that ...
Lou's user avatar
  • 203
5 votes
1 answer
1k views

Requesting 400 links with multithreading and ThreadPool

I am working on multi-threading application to learn multithreading better. My application has a queue with 400 unique links, 4 threads and each thread is pulling link from the queue and sending a Get ...
E235's user avatar
  • 237
5 votes
1 answer
3k views

2048 console game (C#)

So about a week ago I decided to write a simple console version of 2048 game. Well, as you'll see, it came out not that simple... And took a lot more time and practice than expected (should've done it ...
Glitch's user avatar
  • 217
4 votes
1 answer
154 views

Rich Edit Form Input (x86-16)

This procedure is the natural continuation of the Example 4 that I wrote for How buffered input works, a Stack Overflow Q/A. Features include: freely positioning the cursor. Left Moves cursor left....
Sep Roland's user avatar
  • 4,448
3 votes
0 answers
249 views

Colorized zsh prompt with support for Virtualenv and Git

I took the agnoster theme and re-wrote it to this: ...
minseong's user avatar
  • 749
4 votes
1 answer
7k views

Snake game in C++ for Windows text console

Here's my approach: ...
Valentin Dragoi's user avatar
3 votes
2 answers
101 views

Python CLI for download/updating large UniProt protein databases

Background This script is can be used as a command line interface (CLI) or a sub-module in another program to download the latest UniProt proteome for a given taxon. Files are downloaded to the same ...
James Draper's user avatar
3 votes
3 answers
266 views

Interactive console application to edit a sorted list

I am reading a book that has some difficult vocabulary and I, in order to understand the book thoroughly, decided to collect and lookup those words am not acquainted with, spend sometime learning them,...
machine_1's user avatar
  • 581
10 votes
1 answer
247 views

Random Number Generator with Loads of Useless(-ish) Features

For fun, and to refresh my memory on Boost's program_options library, I have written a program with the goal of randomly generating numbers with loads of useless(-ish) features. I have termed it ...
esote's user avatar
  • 3,770
1 vote
1 answer
290 views

Coin tossing simulation to get x heads in a row, ten times - timely at higher amount of heads

I have created a program to simulate a coin being tossed to land on heads/tails x amount of times in a row, where x can be defined by the user. The program then gets x amount of heads in a row, a ...
August Williams's user avatar
2 votes
1 answer
3k views

Multi threaded console IO

For many console applications it is handy to be able to receive input and output at the same time from multiple threads. This is supposed to allow receiving input commands from multiple threads, while ...
KaareZ's user avatar
  • 191

15 30 50 per page