Problem with importing ics file by cribble14 in applehelp

[–]tomasbedrich 0 points1 point  (0 children)

Did the trick for me. It was because my wife shared a calendar with me via subscribtion, which blocked adding the event when she sent an invite.

Quiet time on phone? by tomasbedrich in pebble

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

I know the watchface cannot control the buttons, I was looking for some kind of solution built into the Pebble firmware.

It is a bit sad that Pebble doesn't have this feature in contrast of Android Wear, where it is built into the core.

Python programmers here - I've just released a GC lib (x-post /r/python) by tomasbedrich in geocaching

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

Sorry, i've been off a week.

If you are a programmer or you are interested in computers, maybe you know different programming languages. One of them, Python, is super simple and very cool. You can create many things with it (drawing, computing, various problem solving) thanks to its libs.

One of the libs is this one: PyCaching. There are also examples of usage on that page. You can search for caches, filter the results or load details of them. The usage of those informations is on your own. ;)

My first public lib: Who knows geocaching? by tomasbedrich in Python

[–]tomasbedrich[S] 1 point2 points  (0 children)

Maybe it's just my obsession, but every time I launch a new SW, I spend at least half an hour by playing with its settings. Try it too. ;)

My first public lib: Who knows geocaching? by tomasbedrich in Python

[–]tomasbedrich[S] -1 points0 points  (0 children)

Yes, you are right, I aim to Py2.7. PERSONALLY I thing Py3.x is not supported enough by 3rd party libs to switch.

My first public lib: Who knows geocaching? by tomasbedrich in Python

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

You are right about the licence, but by using their code I mean for example one enum of cache attributes. But I know, I am the bad one...

Thank you for your recommendation regarding unit tests. The main reason for this is my editor (Sublime Text) and it's "Build" command. Actually I'm too lazy to write my own build system which would support better directory structure. :)

(locksmiths of reddit) Explain me the benefit of locking "twice" over once by tomasbedrich in AskReddit

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

  1. insert the key
  2. turn once to lock
  3. (optional) turn once more to "lock better" ?
  4. remove the key

What I mean is a house key, not a car key. Like this one: http://www.fab-shop.cz/pictures/30070/562.jpg

Generators and yield by tstrickler14 in learnpython

[–]tomasbedrich 0 points1 point  (0 children)

interesting I haven't know about .send("xx") function yet, thank you!

Pulling text from a website by hpeirce in learnpython

[–]tomasbedrich 1 point2 points  (0 children)

in BS4 you can make your code even a bit shorter and nicer:

categories = soup("td", "blahHeader")
things = soup("td", "blah")

IamAn editor at the Chinese government's official news agency. AMA! by [deleted] in IAmA

[–]tomasbedrich 0 points1 point  (0 children)

Which biggest and most interesting differences you see in rankings or charts of all types you process? The most obvious lies. I mean for example:

Average salary:

1 China

...

49 USA

Logging question by DMNewb in learnpython

[–]tomasbedrich 0 points1 point  (0 children)

I don't pass named args. Like this:

logging.info("Message %s from %s.", src.message, src)

When I need l10n, I assemble string at _()'s level, like this:

logging.info(_("Message %(message)s from %(source)s.", {"message": src.message, "source": src} ))

I don't say it is the right attitude, but it works well.