A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.
0
votes
0answers
21 views
Publishing angular-cli component library to npm or like
I've found a lot of blog posts that seem to suggest publishing a library TypeScript (as source) and all to npm or to a private repository. It feels like we should be doing some transpiling first and ...
-7
votes
0answers
34 views
How to know good and clean code for google [closed]
Please help me to review my site [originvietnam.com][1]
[1]: https://originvietnam.com/halong-bay-cruises/ - is it good code for search engine? any recommendation? thanks
8
votes
3answers
149 views
Vending Machine
After doing a lot of reading and practicing, I've come up with a simple program that implements multiple OOP techniques, principles and several design patterns such as Observers, Factories and ...
8
votes
1answer
57 views
Convert an image into characters and colors for the windows console
I've written a function to convert an image into characters and colors for the windows console. At the moment the calculation takes about 13 seconds with a 700x700 pixel image but that time is ...
4
votes
0answers
38 views
Bash manual page selection menu (version 3)
This is an interactive script for selecting and reading the manual pages from the terminal command line. This is the 3rd version of this script. If you want to see the evolution of this script, follow ...
7
votes
0answers
48 views
Powershell menu-driven text file viewer / presenter tool
This is a simple Powershell script to provide menu driven manuals and standard operating procedures.
Sops and mans with the extension .sopman.txt will be loaded.
...
5
votes
0answers
27 views
Drawing a roaming figure in a field, with less flickering
I'm a student to programming. I currently just working a thing where the player can walk around a field of hashtags. so far you can only walk horizontally but before i go any further, i realized that ...
9
votes
8answers
759 views
Temperature conversion application
I'm two months in a programming course and our instructor told us we should think about building real-world applications as to gain valuable experience. I got the idea of doing a simple temperature ...
5
votes
1answer
672 views
Create shapes in a console
I've done a job interview assignment on shapes (surprising ah?!) which is a C# console application which creates a list of shapes basically. It's available here, but for my question the only relevant ...
6
votes
1answer
125 views
Simplifying parsing command-line arguments
I'm currently working on a command-line "database migration" utility. Here are some of the requirements regarding reading the command-line arguments part:
It should accept regular database connection ...
0
votes
0answers
35 views
Quadratic equation solver in Ruby
I wrote a simple quadratic equation solver with Ruby to help me solve quadratic equations. Please tell me what I did right or wrong, and what I can do to improve it.
...
5
votes
2answers
57 views
Moving a cursor with the keyboard in assembly
I am a beginner in assembly. But that didn't stop me from making a simple operating system completely made in assembly. It's very simple and doesn't do much. It's just a proof of concept. I would like ...
8
votes
1answer
89 views
Python cat, aka Unix Meow
I have used linux and Windows interchangeably over the last time, and I got used to the more comfortable and options-rich syntax of linux' commands, so I decided to replicate some of them in python (...
3
votes
1answer
48 views
Showing all programs' man pages
I'm trying to discover useful command line tools in Arch Linux, and it seems one good way of going about that is to look through all of the man pages related to ...
7
votes
2answers
168 views
Object Oriented Console menu in Java
I am a Spanish programming teacher in a vocational training course and I want my students to make a CRUD exercise on arrays.
I want them to start using OOP as well and as an example, I'm going to give ...
6
votes
1answer
82 views
Reading numbers from console until input isn't a number
I want to read N numbers (Nmax = 100) from console into a list. N is not known, but the first input that is not a number may break the reading process... However the solution should be as simple as ...
7
votes
2answers
163 views
Command line parser only with switches (if-less)
I've been playing around with C# 7 and created this if-less and switch-only command-line parser. What do you think of it? Can it be made more C# 7 or otherwise ...
4
votes
1answer
50 views
Minimal colored write
I remembered a cwrite application that I used in the good old DOS times.
Basically it took a color code as first argument and some text as the second and printed ...
2
votes
1answer
136 views
Suppress console output from React in Jest testing output but not in browser output
I have a React app that I am testing with the built-in jest testing tools. In the process of debugging, I sometimes send data to the console (e.g. console.log, <...
2
votes
1answer
107 views
IRS Tax Calculator in Java
I am working on a tax calculator for a school assignment and was hoping to get some feedback on my current progress. I kind of feel like I over-complicated the code.
NOTE: I am required to do all of ...
1
vote
1answer
127 views
Terminfo parser in C++
I've written a pretty minimal parser for terminfo files which works as intended. It compiles fine and I've actually setup some tests over here which pass successfully too. Now I would like to get it ...
4
votes
1answer
66 views
Noughts and crosses command line game in Python 3.5
Based on this Code Review answer, I have created a noughts and crosses game in Python, which asks for an index (1 to 9) and updates the grid, and displays it on the screen. I have done some very ...
6
votes
1answer
106 views
Display Loading Text with Spinner in Console
Here is my approach to creating a loading text spinner in the console. I did what I thought was best in designing the class, which means there is probably a lot of room for feedback.
The class is ...
1
vote
0answers
38 views
Firefox portable launcher for multiple network configurations
I am making a Software package which let you launch a portable version of Firefox with several user profiles to choose from.
The goal is to make a an small and easy to use software package which ...
1
vote
0answers
55 views
Parsing the first two command-line arguments and extracting the remainder
My program can be called like this:
FakeDpi someInteger someExecutable [parametersForSomeExecutable]
For example:
...
2
votes
2answers
62 views
Find combination of sets which sum up to a specified result
Example input :
A) 1, 2
B) 2, 8
C) 7, 8
Required Result : 8, 10
The output from the program with this input should be A + C.
Few notes :
We can only combine 2 sets.
There must ...
4
votes
1answer
62 views
A tiny command-line program that prints a sum of numbers
Here's my first Rust program that I could actually use for something:
...
11
votes
3answers
2k views
6
votes
2answers
247 views
Command line Hangman game
I was wondering if you can give me advice / and your opinion on the following code. I'm aware there are a few things that it doesn't presently deal with that could be enhanced (I don't have time, this ...
3
votes
2answers
82 views
File Archiving Console App
Overview
I wanted to create a small console app that would point at a given directory, evaluate the last accessed date of each file within that directory, and if the last access date was below a ...
4
votes
2answers
116 views
Huffman compressor in C++
I have this Huffman compressor that can compress both text and binary files by treating each as binary files. (By the way, it is fully compatible with this Java implementation.) See what I have:
Code
...
7
votes
1answer
122 views
Text-based adventure game using classes and XML
I am studying software engineering and we just started learning about object oriented programing. I wanted to be a bit ahead of all others, so I decided to write a little text-adventure using classes.
...
7
votes
2answers
137 views
Josephus algorithm using array in C#
I'm trying to write the Josephus algorithm as a project for school, however, I think that there is a better way than what I already have.
...
0
votes
1answer
98 views
Huffman compressor in Java - follow-up
This post improves upon my Java implementation of the Huffman algorithm for data compression.
I did the following improvements:
The map mapping each byte value to its frequency does not rely on <...
5
votes
2answers
280 views
Faster brute force algorithm
I have this brute force code, where you input a password and runs through combinations of numbers, lowercase and uppercase letters, and special characters until it match the password given.
The ...
7
votes
2answers
463 views
Huffman compressor in Java
(See the next iteration as well.)
I have this Java program that can en-/decode files, both text and binary. What comes to critique I want to hear anything regarding these points:
Performance,
...
2
votes
2answers
74 views
Printing log messages with varying length fit into screen width
I'm writing a simple sanity tool for a simple USB driver.
The customer is directly facing the output so I have to care about how it looks.
The log messages that I need to print are varying length, ...
5
votes
1answer
92 views
Python Hex Viewer
I have created an hex viewer in python, as a timed-challenge by friend. My implementation was in the form of a class, with a separate main file running with argparse...
8
votes
1answer
76 views
Ntree: a reimplementation of the tree utility
tree is described as "a recursive directory listing command that produces a depth indented listing of files" on the homepage for its Linux implementation. I don't ...
6
votes
2answers
117 views
Console colorizer
To be able to apply various colors to the console I created a ConosoleColorizer. It's really simple. It just takes an XML and renders it to the console with the ...
6
votes
1answer
69 views
X86 Legacy boot loader error trapping
The boot loader that I'm designing is just simply going to setup (A) Stack, (B) Segment registers (C) Load remainder of track for specified device. Conventionally, this could have been up to 4 floppy ...
6
votes
2answers
58 views
A telephone book command line program in ANSI C - follow-up 2
(See the previous iteration.)
What does this program do?
This program gives you a command line interface for managing your personal telephone book. The program supports three actions:
Adding a ...
2
votes
1answer
62 views
Multi platform ASCII spinner in C
Okay I've just finished writing a nice tiny C program to have an ASCII spinner (works on Windows and POSIX). I'm quite new to C, so any suggestions would be great. This is designed to be a small ...
5
votes
2answers
38 views
Image batch processing in Ruby
I know a lot about Java, PHP and stuff, but I'm fairly new to ruby.
I've written this script to look into the current working directory, get two parameters from the command line and then resize and ...
1
vote
1answer
48 views
A telephone book command line program in ANSI C - follow-up
(See the next iteration.)
This question is a slight improvement over A telephone book command line program in ANSI C
I have incorporated almost all points stated by Toby Speight.
Now I have this:
...
2
votes
2answers
83 views
Simple library app
I'm trying to learn coding by actually coding my first working and hopefully expandable in future app. Yesterday I asked about optimizing my menu and got some answers about my take on it. Obviously ...
4
votes
1answer
71 views
A telephone book command line program in ANSI C
(See the next iteration.)
Introduction
I was in the mood for some C code and wrote this program for handling a personal telephone record book. One of the goals is strict portability; the code ...
1
vote
0answers
64 views
RSYNC Style Mirror Folder Application
I've written a mirror folder application in C#. It uses CommandLine for command line parsing. I'm just looking for a general review.
...
3
votes
3answers
635 views
Optimizing simple menu in console app
I want to optimize code in my simple app that I'm writing to learn C#. I feel it's really badly optimized in terms of good coding practises. Could anyone take a look at it and give me a hint to make ...
4
votes
1answer
107 views
Basic C# R-E-P-L
So I was thinking of making a C# REPL, as I didn't find any viable solution that would work for me, so I made a simple, basic one, I am sure it can be improved, as it seems once the REPL class is ...