Problem I’m trying to write as simple I/O library in x64 using linux syscalls section .text strlen: xor rdx, rdx […]
Tag: io
The right way to use IPC::Open3 in Perl
Problem Here is the function which does exactly what is specified by its name: sub runCmd_getStdoutStderrAndExitCode(@) { my @cmd = […]
Generate HTML select tag and options using a text file having list of countries
Problem The code below will generate an HTML select tag and options using a text file having list of countries. […]
Two methods to prompt the user to enter the width and length of a rectangle
Problem I have two similar methods for setting dimensions of a rectangle. At first, I had them combined into one […]
User prompts for entering quiz questions
Problem I have two methods here that does the same thing: get the user input and validate them. If they […]
Reader for graph-file with ugly return and questionable use of streams
Problem I wrote a class that contains a static method that reads in files from NetworkRepository and converts them into […]
Exporting an object to a ZIP file
Problem I have my own type of object, which implements Serializable. Here I have one called “extendedFormat” (not a terribly […]
Packing files in a directory to a single file in Java
Problem My little program (called MrPackerUnpacker) takes a full path as an argument and creates a single file that can […]
Keeping track of byte count in a binary protocol handler
Problem I am putting together a fairly simple server that listens for a connection then creates this thread – textbook […]
Extensible Abstract Log Reader
Problem My goal with the following code is to provide an extensible class that can be extended in order to […]