Click here to Skip to main content
16,020,253 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralPlutovg is a fascinating bit of software Pin
honey the codewitch4-Sep-24 5:48
mvahoney the codewitch4-Sep-24 5:48 
NewsThe Commodordion Pin
RickZeeland28-Aug-24 23:28
mveRickZeeland28-Aug-24 23:28 
GeneralRe: The Commodordion Pin
Mike Hankey29-Aug-24 2:46
mveMike Hankey29-Aug-24 2:46 
GeneralRe: The Commodordion Pin
RickZeeland29-Aug-24 2:58
mveRickZeeland29-Aug-24 2:58 
GeneralRe: The Commodordion Pin
Mike Hankey29-Aug-24 3:01
mveMike Hankey29-Aug-24 3:01 
GeneralRe: The Commodordion Pin
Maximilien29-Aug-24 3:09
Maximilien29-Aug-24 3:09 
GeneralRe: The Commodordion Pin
Richard Andrew x6422-Sep-24 10:48
professionalRichard Andrew x6422-Sep-24 10:48 
GeneralDocker cp file from local file system: Good help from Copilot Pin
raddevus28-Aug-24 11:00
mvaraddevus28-Aug-24 11:00 
Here's the question I needed answered (and couldn't seem to find a good answer on StackOverflow):

I asked Copilot
Can you show me how to copy a file from my local file system into the docker container using bash?

Copilot said
Sure! You can use the docker cp command to copy a file from your local file system into a Docker container. Here’s how you can do it:

Basic Syntax:
docker cp <local_file_path> <container_name>:<container_destination_path>

Example: Let’s say you have a file named example.txt in your current directory that you want to copy to the /app directory inside a container named my_container:
docker cp example.txt my_container:/app/example.txt

Verify the File: You can then verify that the file has been copied by listing the files in the destination directory inside the container:
docker exec my_container ls /app

That's a good one!

Now I know how to interact with files _inside_ my Docker container from _outside_ (from local file system) my docker container.

Copilot is my friend. I've never been able to say that of anyone on SO.
Only, sometimes, could I say "well they didn't entirely abuse me." Laugh | :laugh:
JokeRe: Docker cp file from local file system: Good help from Copilot Pin
Richard Deeming28-Aug-24 21:22
mveRichard Deeming28-Aug-24 21:22 
NewsTotal Recall? nope Pin
RickZeeland29-Jul-24 1:26
mveRickZeeland29-Jul-24 1:26 
GeneralRe: Total Recall? nope Pin
Ron Anders29-Jul-24 5:02
Ron Anders29-Jul-24 5:02 
GeneralRe: Total Recall? nope Pin
Daniel Pfeffer30-Jul-24 12:35
professionalDaniel Pfeffer30-Jul-24 12:35 
GeneralRe: Total Recall? nope Pin
RickZeeland30-Jul-24 18:36
mveRickZeeland30-Jul-24 18:36 
GeneralRe: Total Recall? nope Pin
Nelek30-Jul-24 22:29
protectorNelek30-Jul-24 22:29 
GeneralWhen a UI designer chooses to use a numeric up/down when a checkbox would make more sense Pin
PIEBALDconsult28-Jul-24 17:10
mvePIEBALDconsult28-Jul-24 17:10 
GeneralRe: When a UI designer chooses to use a numeric up/down when a checkbox would make more sense Pin
RickZeeland28-Jul-24 21:12
mveRickZeeland28-Jul-24 21:12 
GeneralRe: When a UI designer chooses to use a numeric up/down when a checkbox would make more sense Pin
Mike Hankey29-Aug-24 4:34
mveMike Hankey29-Aug-24 4:34 
GeneralCSS & Sophocles, more related than you know Pin
raddevus22-Jul-24 12:22
mvaraddevus22-Jul-24 12:22 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon22-Jul-24 14:19
professionalJeremy Falcon22-Jul-24 14:19 
GeneralRe: CSS & Sophocles, more related than you know Pin
raddevus23-Jul-24 2:44
mvaraddevus23-Jul-24 2:44 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon23-Jul-24 6:47
professionalJeremy Falcon23-Jul-24 6:47 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon23-Jul-24 7:02
professionalJeremy Falcon23-Jul-24 7:02 
GeneralRe: CSS & Sophocles, more related than you know Pin
raddevus23-Jul-24 7:16
mvaraddevus23-Jul-24 7:16 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon23-Jul-24 9:13
professionalJeremy Falcon23-Jul-24 9:13 
GeneralRe: CSS & Sophocles, more related than you know Pin
RickZeeland22-Jul-24 19:13
mveRickZeeland22-Jul-24 19:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.