linuxmofo

- friends
1 link karma
18 comment karma
send messageredditor for
what's this?

TROPHY CASE

  • dust

Does anyone know any decent Sysadmin fiction? by Solontusin sysadmin

[–]linuxmofo 0 points1 point ago

It's not really 'sysadmin' fiction, more cyberpunk stuff, but they are good reads.

Snow Crash, Infoquake, Multireal, Genosyncron

Also when younger I read, pretty much just older hacker cases.

Masters of deception, Take down, Hackers

Flask is Awesome For Beginners by mitsuhikoin Python

[–]linuxmofo 0 points1 point ago

I just started using flask in the last week or two. And I've only been dabbling in Python.

I find Flask itself great. The quickstart guide was pretty good. I would love another walk through with some other code for comparison and better understanding of how all the pieces work.

I found that it was difficult to wrap my head around jinga2. A beginners guide to using it and what you can do it with and some way beginner level template guide would have saved me a bunch of time. I finally get it, but the path to using it well is still lacking.

Thanks for everything!

Trouble with making random.randint() random by linuxmofoin learnpython

[–]linuxmofo[S] 0 points1 point ago

Ah, I see what you mean now. I figured it may be doing something where it was running the exact same thing or just using what it had already run. I'll bang on this some more going the direction you suggested.

Trouble with making random.randint() random by linuxmofoin learnpython

[–]linuxmofo[S] 1 point2 points ago

Yea the idea of using random.seed() was to hope to make it change it's values. So I was doing something like random.seed(time.time()), but this didn't work, probably due to where I was trying to make things random.

Need help understanding how to return a value to variable from a function. by linuxmofoin learnpython

[–]linuxmofo[S] 1 point2 points ago

sorry, this has been archived and can no longer be voted on

Oh, I haven't learned about that little guy yet (call stacks). I'll have to rework some things a bit to fix this.

Is it better to have one big ugly bit of code vs a bunch of smaller functions?

Is the solution to having bunches of functions (if needed) to make them return /something/?

Need help understanding how to return a value to variable from a function. by linuxmofoin learnpython

[–]linuxmofo[S] 1 point2 points ago

sorry, this has been archived and can no longer be voted on

Ah, I think I see what I was missing. Let me give it a spin and see how it goes.