Skip to main content

Posts

Showing posts from April, 2019

create basic script in linux to open new terminals and execute command

write this in "hello.sh" file #!/bin/bash # some older test, doesn't work and complains and I get this message on command line: "QApplication::qAppName: Please instantiate the QApplication object first" # I also can't enter text after command executes #echo "Hello World!" #exec konsole --noclose -e cat ~/.aliases for i in 1 2 3 4 do # opens terminal but then I can't control terminal afterwards xterm - hold - e "echo Hello My World" & done # didn't do anything #exit 0 # didn't do anything except make me type exit an extra time where I executed my shell script #$SHELL chmod +x hello.sh ./hello.sh

get all english dictionary words

import urllib . request word_url = "http://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain" response = urllib . request . urlopen ( word_url ) long_txt = response . read (). decode () words = long_txt . splitlines () there are total of 25487 words as in all will be useful to general random words link to the following https://stackoverflow.com/questions/18834636/random-word-generator-python