GM 👍#nostrfamily
#quotestr
Q: How many lawyers does it take to change a light bulb?
A: Whereas the party of the first part, also known as "Lawyer", and the
party of the second part, also known as "Light Bulb", do hereby and forthwith
agree to a transaction wherein the party of the second part shall be removed
from the current position as a result of failure to perform previously agreed
upon duties, i.e., the lighting, elucidation, and otherwise illumination of
the area ranging from the front (north) door, through the entryway, terminating
at an area just inside the primary living area, demarcated by the beginning of
the carpet, any spillover illumination being at the option of the party of the
second part and not required by the aforementioned agreement between the
parties.
The aforementioned removal transaction shall include, but not be
limited to, the following. The party of the first part shall, with or without
elevation at his option, by means of a chair, stepstool, ladder or any other
means of elevation, grasp the party of the second part and rotate the party
of the second part in a counter-clockwise direction, this point being tendered
non-negotiable. Upon reaching a point where the party of the second part
becomes fully detached from the receptacle, the party of the first part shall
have the option of disposing of the party of the second part in a manner
consistent with all relevant and applicable local, state and federal statutes.
Once separation and disposal have been achieved, the party of the first part
shall have the option of beginning installation. Aforesaid installation shall
occur in a manner consistent with the reverse of the procedures described in
step one of this self-same document, being careful to note that the rotation
should occur in a clockwise direction, this point also being non-negotiable.
The above described steps may be performed, at the option of the party of the
first part, by any or all agents authorized by him, the objective being to
produce the most possible revenue for the Partnership.
GN
I realized all this because of the use of 'echo' in the Windows terminal
once I used Perl to write the pwd.txt file, everything went fine ... no surprise, no added extra characters
the file generated by the echo command had a BOM invisible character at the start, FF FE and 00 every second character because UTF-16 requires two code units to represent a single character.
surprise, surprise
I learned a lot today
BOM starts with (FF FE)
https://unix.stackexchange.com/questions/137205/process-a-file-that-starts-with-a-bom-ff-fe
UTF-16 sometimes requires two code units to represent a single character.
BOM starts with (FF FE)
https://unix.stackexchange.com/questions/137205/process-a-file-that-starts-with-a-bom-ff-fe
after a long troubleshooting, I finally understands what went wrong
This is how I created the pwd.txt file
echo "abcde" > pwd.txt
and by doing so, it generated a UTF-16 encoded file, which has the annoying habit of having invisible characters added to it at the beginning and in between the characters as well ...
Windows stuffs
Thanks nostr:npub175nul9cvufswwsnpy99lvyhg7ad9nkccxhkhusznxfkr7e0zxthql9g6w0
I am struggling with converting a perfectly working program on Linux into a Windows version
Can't believe a simple text file is handling differently in Windows (because at the beginning a character is detected in Perl)
The program I posted in the Article, is actually not working because of that ...
When working with text files in Perl on Windows, you may encounter strange characters at the beginning of the file.
Yes I do
and this is nonsense
#perl

Visual Studio Code
with GitHub Copilot Chat
You are trending
#quotestr

#create
#quotestr

#snake

#painting

