Pokazywanie postów oznaczonych etykietą windows. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą windows. Pokaż wszystkie posty
piątek, 26 września 2014
Fork bomb in Windows
It's really simple. Just install Cygwin, write fork bomb (even by accident) and finally run in bash - works fine. I had to restart my machine with restart button.
czwartek, 11 września 2014
Python: rename file in Windows
Observation: function os.remove under Windows doesn't allow to overwrite an existing file. Python from Cygwin works properly.
Here is a workaround:
Here is a workaround:
def rename_file(old, new):
if sys.platform != 'win32':
os.rename(new, old)
else:
os.remove(old)
os.rename(new, old)
Subskrybuj:
Posty (Atom)