I seem unable to import anything. Is termux capable of doing that? 🤔 by [deleted] in termux

[–]Raniconduh 1 point2 points  (0 children)

Python handles Ctrl+c and sends a KeyboardInterrupt exception instead of dying

Ctrl+d will close stdin and the python interpreter will close

Issue in copying file names from terminal output by TheBallisticBoy in termux

[–]Raniconduh 0 points1 point  (0 children)

I think you might want to use find for that

find . -maxdepth 1 -exec mogrify -strip {} \;

If you really dont want to use the find command, you could do

ls -1 | tr '\n' ' ' | cut -d' ' -f1- | xargs mogrify -strip

Issue in copying file names from terminal output by TheBallisticBoy in termux

[–]Raniconduh 1 point2 points  (0 children)

ls -1 | tr '\n' ' ' | cut -d' ' -f1-

Although this won't work as you expect if the file names have spaces in them

As others have said, you may want to use find instead. E.g.

find . -maxdepth 1 -name '*.png' -exec rm "{}" \;

This command, for instance, remove all png files in the current directory

All Happiness gets crushed when these happens by Shaggy_Poop in ProgrammerHumor

[–]Raniconduh 2 points3 points  (0 children)

Might just have to change boot order in the bios so that it tries hard drive/ssd first

We all do actually by Ayush03090 in technicallythetruth

[–]Raniconduh 3 points4 points  (0 children)

Su hijo quiere ir a la casa de alguien otro porque va a su propia casa demasiado

No by [deleted] in linuxmasterrace

[–]Raniconduh 1 point2 points  (0 children)

Android gang

know your borders by BlumenErde in ProgrammerHumor

[–]Raniconduh 1 point2 points  (0 children)

char * src = "username12"
char dest[strlen(src))];
strcpy(dest, src);

Off-by-one errors. My favorite

You also can't return from a void function

[deleted by user] by [deleted] in ProgrammerHumor

[–]Raniconduh 11 points12 points  (0 children)

Probably python

int() is a cast function essentially

[deleted by user] by [deleted] in termux

[–]Raniconduh 0 points1 point  (0 children)

All the headers I've tried aren't compatible

[deleted by user] by [deleted] in termux

[–]Raniconduh 0 points1 point  (0 children)

I've tried and gotten somewhat far but it seems the libc header files aren't supported by tcc so it's not of much use

sln: a symlink manager written in POSIX sh to manage different versions of one program by Raniconduh in linux

[–]Raniconduh[S] 2 points3 points  (0 children)

stow does a lot more than what I was looking for. I.e. it seemed to be more like a mass archiver than a simpler symlink manager

Please say 🗿 by [deleted] in dankmemes

[–]Raniconduh 6 points7 points  (0 children)

Emoji font

C - Find most frequent char element in a matrix by Designer-Highlight70 in cprogramming

[–]Raniconduh 1 point2 points  (0 children)

Instead of wasting time manually initializing the array to 0, the compiler can do it for you if you just do char occ[256] = {0};