I just wrote the following macro and helper procedures for logging text to the terminal and log file, or to an explicit file, for use in my autoconf library.
Portable R7RS doesn't seem to have built in way to append to an output file, so I had to copy the contents of the file first into a list of lines, then I output those lines before appending the new message. Thoughts for improvement?
(define log-file #f) ; this gets initialized later
(ac-echo "Hello, " you "!\n") ; prints "Hello, /prog/!" to the terminal and to the current log file if any (ac-echo > "out.txt" "Hello, " you "!\n") ; writes "Hello, /prog/!" to the file named "out.txt" (ac-echo >> "out.txt" "Hello, " you "!\n") ; appends "Hello, /prog/!" to the file named "out.txt"
Name:
Anonymous2014-08-29 9:48
Formatting was ruined at end. Should be:
(define you "[spoiler]/prog/[/spoiler]")
(ac-echo "Hello, " you "!\n") ; prints "Hello, [spoiler]/prog/[/spoiler]!" to the terminal and to the current log file if any (ac-echo > "out.txt" "Hello, " you "!\n") ; writes "Hello, [spoiler]/prog/[/spoiler]!" to the file named "out.txt" (ac-echo >> "out.txt" "Hello, " you "!\n") ; appends "Hello, [spoiler]/prog/[/spoiler]!" to the file named "out.txt"
Name:
Anonymous2014-08-29 21:49
Get this through those thick skulls of yours: THERE ARE NO BEST PRACTICES!!! There are only unsuitable ones, good ones, and better ones for the particular situation at hand, and being able to consider the tradeoffs between all possible solutions is the skill that any engineering is about. Attempting to distill the decisionmaking process of a whole discipline into a set of "best practices" to be followed religiously and brainlessly like trained monkeys is pure idiocy.
>>21 That's the whole point. Programming is a social activity and LITHPers are forever bound to be uncommunicative loners comforting themselves with the "I'm lone wolf genius above the averages" myth.
I just thought I’d introduce myself. My name is Jessica Hartwell. I am a business major at a rather good university. I was introduced to Linux a couple years ago by my boyfriend (a computer science major) and I just love it. It not only looks pretty, but it’s so much more functional than Windows. My boyfriend is currently teaching me C, so I will be posting code snippets from my projects in this blog. I hope to one day contribute to the Ubuntu community that has given us so much to look forward to. :)
>>29 My name is Jenny. I am 16 years old and have dark blonde hair. NOW THAT YOU HAVE STARTED READING YOU MAY NOT STOP!! I was murdered July 14th with my fathers shotgun and butcher knife. If you do not post this on 20 other threads i will come to
your house in the middle of the night and kill you with my fathers shotgun and butcher knife. You have 5 hours to complete this task. Dont believe me, *maria marshall, Pelham, Texas 1998, was showering and went to bed right after, found dead the next morning. * keisha jones, Nashville, Tennesee 1995, fell asleep while watching television and mother heard gunshot and scream, found next morning lying on the floor. omar wilkionsin, milwaukee, wisconsin 2002, reading a book to go to bed and was shot and stabbed through the book after he fell asleep. Still dont believe me? google their names....Trust me i did not want to paste this. But its kinda scary so i did it just to be sure
i am a heron. i haev a long neck and i pick fish out of the water w/ my beak. if you dont repost this comment on 10 other pages i will fly into your kitchen tonight and make a mess of your pots and pans
Name:
Anonymous2014-09-07 0:29
I just thought I’d introduce myself. My name is Jessica Hartwell. I am a business major at a rather good university. I was introduced to uncircumcised peni a couple years ago by my boyfriend (an uncircumcised male) and I just love it. It not only looks pretty, but it’s so much more functional than circumcised peni. My boyfriend is currently teaching me blow jobs, so I will be posting selfies from my cock suckings in this blog. I hope to one day contribute to the uncircumcised community that has given us so much to look forward to. :)
Name:
Anonymous2014-09-07 1:02
I just thought I’d introduce myself. My name is Jessica Hartwell. I am a business major at a rather good university. I was introduced to circumcised cock a couple years ago by my boyfriend (a circumcised male) and I just love it. It not only looks better, but it’s so much more functional than uncircumcised cock. My boyfriend is currently teaching me blow jobs, so I will be posting selfies from my dick suckings in this blog. I hope to one day contribute to the circumcised community that has given us so much to look forward to. :D
i am a heroin. i'm in a plastic bag and i shoot into veins of the blood w/ a needle. if you dont repost this comment on 10 other pages i will fly into your syringe tonight and give you a really good time
Name:
Anonymous2014-09-07 13:45
>>36 Heroin comes in balloons. Remember how that whore in Pulp Fiction stole Vincent's junk thinking it was coke and overdosed? That's because the dealer put it in a baggy because he was out of balloons when he sold it to him.