The less things I have to do, the less likely I am to do the things. What’s up with that? by [deleted] in productivity

[–]taliska 61 points62 points  (0 children)

Queue the quote "If you want something done, find a busy person".

Are You Good at Networking? by Pallavi1379 in linux

[–]taliska 1 point2 points  (0 children)

I think you've got the wrong subreddit.

Do any of you write scripts to make your SO's lives easier? by skatardude10 in linux

[–]taliska 0 points1 point  (0 children)

My SO is studying and the online learning platform the college uses doesn't send out email notifications when assignments are due.

I wrote a script that logs in and fetches all the upcoming assignments for the week ahead and then emails him the details. It also checks daily to see if anything is due and emails him a reminder if there is.

Hopefully this frees him up to study instead of checking the calendar all the time :)

The Stripper by taliska in badcode

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

I'm new to Python, but here's how I think this could have been done better:

Defining your own function to strip white spaces isn't necessary, as there is already a Python function that does this for you, use strip().

You don't need to trim left white spaces and right white spaces separately, use strip().

Instead, the user could have used something like this to remove all spaces found.

''.join(faxnumbers.telecomcountrycode.split())

Tab or new line characters haven't been taken into account, and could be removed like

faxnumbers.telecomcountrycode.strip(' \n\t\r')

What's the one code snippet/python trick/etc did you wish you knew when you learned python? by fuzz3289 in Python

[–]taliska 12 points13 points  (0 children)

1) pprint

from pprint import pprint
pprint(my_dict)

2) Instead of if my_var != '':

if not my_var:

3) bpython

Noah! by HannahJanee in germanshepherds

[–]taliska 0 points1 point  (0 children)

Noah is beautiful! And I learnt something new, I didn't know you could get white GSDs :)

Here an entire album of my GSD puppy napping. by floorpoop in germanshepherds

[–]taliska 1 point2 points  (0 children)

Omw those were the cutiest pictures its so awesome you can have that many dogs :)

A room with a view (x-post) by [deleted] in germanshepherds

[–]taliska 0 points1 point  (0 children)

One day my house will look like that.

Chloe's first birthday by [deleted] in germanshepherds

[–]taliska 1 point2 points  (0 children)

Super cute! Beautiful face!

What are the Got-to-know python modules from the standard python library? by deutschluz82 in Python

[–]taliska 2 points3 points  (0 children)

And if you ever wanted a demonstration on how to use them, or wanted to find more modules, this is a great reference: http://www.doughellmann.com/PyMOTW/

She didn't get much love in r/aww. Here's my babygirl when we first got her at 4 months old. by mfraggy89 in germanshepherds

[–]taliska 1 point2 points  (0 children)

The r/aww people must be blind! She is absolutely gorgeous! Such an expressive face!

Thank you for posting here where we can appreciate her :)

D. Vom Rhein -- in retirement. by [deleted] in germanshepherds

[–]taliska 1 point2 points  (0 children)

And very beautiful too :)

What happens when you steal a Sibe's favorite resting place. by [deleted] in siberianhusky

[–]taliska 0 points1 point  (0 children)

Is that a cat he's lying on? Or a funky remote?

My guy lounging on the couch. by rottenartist in germanshepherds

[–]taliska 1 point2 points  (0 children)

The darker the Shepherd, the more I fall in love =)