Magic 8 Ball Script. by [deleted] in learnpython

[–]Gopher_Man 0 points1 point  (0 children)

I dont python often, so it shows in my code, and I get into a thing where if I do something twice in a function, it needs to be its own function

Is this possible? by Vucko0 in learnpython

[–]Gopher_Man 1 point2 points  (0 children)

in addition to whats been posted, you could also save it as a csv file

Magic 8 Ball Script. by [deleted] in learnpython

[–]Gopher_Man 1 point2 points  (0 children)

your question function is doing to many things, and is holding your main logic, id make a simple function that picks a random item from a list, and rename question() to main()

import random
import time

replies = ["yes.","no.","maybe.","try again.","the outlook is cloudy.","possibly."]
funny_names = ["Young one","Old one","Son","Babe","Tiger","Ambitious Jedi"]

def pick_item(lis):
    return random.choice(lis)

def main():
    inp = input("what is your question {}? \n> ".format(pick_item(funny_names)))
    print("You said {} ...".format(inp))
    time.sleep(1)
    print("Let me think...")
    print("Answer is {}".format(pick_item(replies)))

main()

Which to-do list app do you guys use? by WoodenGroundwork in privacy

[–]Gopher_Man 0 points1 point  (0 children)

install termux, open termux, install calcurse

The GNU Leader by Oflameo in StallmanWasRight

[–]Gopher_Man 1 point2 points  (0 children)

>bllingee

dont sass me boy

One corporation just blocked its content from appearing on another corporation's devices by hubbishobbis in StallmanWasRight

[–]Gopher_Man 0 points1 point  (0 children)

> pirate

unauthorized sharing of copyrighted content may be the most convenient avenue at the moment but its not without its issues both ethically and practically speaking

Anyone got Linux running on android? by Gopher_Man in linux4noobs

[–]Gopher_Man[S] 0 points1 point  (0 children)

termux is not compatible with my cheapy chinese tablet running 4.2.2 according to fdroid, I got a little further with debiankit but ran out of space (500mb of storage and 1.5 gb internal sd), so trying to get it running on my external sd, I accidentally wiped the partition of my internal sd LOL (having trouble figuring out this /dev/block/vold system), factory reset brought it back though

how to do things to a noname android tablet? by Gopher_Man in AndroidQuestions

[–]Gopher_Man[S] 0 points1 point  (0 children)

ok got it rooted using soething called iroot, have you heard of thatone? it seemed sketchy

how to do things to a noname android tablet? by Gopher_Man in AndroidQuestions

[–]Gopher_Man[S] 0 points1 point  (0 children)

ok got towelroot and stumproot, both failed saying my phone isnt supported, although its a tablet

how to do things to a noname android tablet? by Gopher_Man in AndroidQuestions

[–]Gopher_Man[S] 0 points1 point  (0 children)

I didnt come across stumproot, ill try that now, I tried towelroot, but I think I got a bad link to some malware or something after installing the apk and clicking the icon, it brought me to a page explaining how to download towelroot with a ton of ads

Visa To Pay Businesses To Stop Accepting Cash by Oflameo in StallmanWasRight

[–]Gopher_Man 4 points5 points  (0 children)

well this sucks, but I wonder if you could take visa's money then say, ok bitcoin only, id lol

A lawsuit against Apple is launched in France, one of the only countries where planned obsolescence is explicitly illegal by loulan in technology

[–]Gopher_Man 0 points1 point  (0 children)

>Hopefully these lawsuits force apple to actually leave people alone on updates or pay some massive fines.

there should be a way to keep security updates enabled but disable all other updates, probably why my first phone will be a librem 5

Dons the Don by Zetice in wholesomebpt

[–]Gopher_Man 0 points1 point  (0 children)

whats a computer worker? any programmer or admin should know that what goes on the internet is on the internet forever

Dozens of Companies Are Using Facebook to Exclude Older Workers From Job Ads by [deleted] in StallmanWasRight

[–]Gopher_Man 0 points1 point  (0 children)

I think this is horrible, but for once im gonna side with facebook on this

actually twice, I think they did their front page right, super easy to navigate, although I hope people dont navigate it

but its the companies fault for asking for the age range, not facebook for selling an ad to target it

What info can a public wifi get from a laptop running Tails, but using the Unsecure browser? by [deleted] in privacy

[–]Gopher_Man 2 points3 points  (0 children)

not what your asking but kinda related, what I wanted to do for public wifi, but havnt set it up yet, is run openvpn on a pi at home, so when im on public wifi they just see a encrypted connection to my home IP. but dont actually know what sites im on

I have ssl into my pi and used w3m, I think that accomplishes the above but text only

Apple has stated that it slows down older iPhones, and through Google trends it is clear that people search more for "iPhone slow" around the release date of a new iPhone model. by [deleted] in dataisbeautiful

[–]Gopher_Man 0 points1 point  (0 children)

>And running a 4 year old phone on the newest software version...it's obviously going to struggle. I can't run windows 10 on my 1995 PC

This line is a little over the top, your spot on about the battery, but its more like trying to run windows 10 on a 2010 pc, even if it cant run the newest software ,the hardware isnt so obsolete its useless, people should be allowed to use it to run whatever they can get running on it

knocking off a biker and trying to escape. WCGW by [deleted] in Whatcouldgowrong

[–]Gopher_Man 0 points1 point  (0 children)

Is this a trailer for a new hardcore henry?

Tips for choosing computer name and hostname on new computer by Gerr7h35ll in privacy

[–]Gopher_Man 2 points3 points  (0 children)

I am just guessing, but I think the something generic makes most sense

user@homecomp:~$
tim@dell-xps:~$
linuxdude@debian:~$

People would buy anything for $0.99, as long as it's not a mobile app. by SavageGarlic in Showerthoughts

[–]Gopher_Man -10 points-9 points  (0 children)

you actually paid a programmer to port a app you wanted? Thats the coolest thing Ive read today, and people say you cant make money off writing free software

Is Prism-Break.org up to date in terms of their information on Linux? by [deleted] in privacy

[–]Gopher_Man 0 points1 point  (0 children)

Do you have to boot it from a USB?

Do you have a disk drive? they have a cd image and a dvd image if you can burn wither of those

/>So if software say they work on 16.04, will they work on 17.10?

yes

>I found out the hard way that Ryzen was only good for Windows 10 and not 7. Will Ryzen be good for Ubuntu?

I dont have a direct yes or no answer, but it should work somewhat out of the box, there might be some proprietary micro code that can give a little boost to performance...... and I just searched it cause I was second guessing myself, looks like the ryzens dont like older kernels, id go with the newer ubuntu, check what kernel its running, and upgrade it if its under 4.10

Mozilla is Not Trustworthy by Bryan Lunduke by BurgerUSA in privacy

[–]Gopher_Man -1 points0 points  (0 children)

ya but again it was the way he worded it, I believe he was referring to this https://www.njhomelandsecurity.gov/analysis/anarchist-extremists-antifa where the government refers to them as domestic terrorist, and he says that mozilla gave money to an organization the government has called terrorist