Saturday, 9 May 2020

ipdb.set_trace(context=##) (note to self)

I guess out of comfort it's like the n+1th move I'd consider (because I keep forgetting how it's done - because it's like the n+1th move I'd consider :) ) to make things easier when debugging with ipdb (yes, I'm a bit of a console guy at times), even though it often deserves to be there from the very beginning

You can get more context by doing:
ipdb.set_trace(context=21)
And then, there are ways to fix the default setting too (though I guess it will involve every single virtual environment you may have there to work on, so it's ... well, it is a bit of a tradeoff):

 
replace
def set_trace(frame=None, context=3):

with
def set_trace(frame=None, context=20):
in the relevant ipdb package __main__ file, something like

/home/<yourusername>/.virtualenvs/<yourvirtualenvname>/lib/python3.5/site-packages/ipdb/__main__.py


source

I wouldn't be suprised if I wasn't the first to think that an environment variable setting would be desirable, maybe it's out there already (TODO: give it a look).
 

Tuesday, 28 April 2020

"Same in English"

Always happy to get spammed a bit ;)
(just a bit!)

"Dear Example First Name,"

Besides, I am wondering how much worse I'd do in the same situation though ... maybe something I am not that keen to find out about?

Related stuff:


Post image

Possible courtesy of the greatest Hungarian government.

#proudHungarianAsWell

Monday, 27 April 2020

"own risk"

Ermm.... what?


"The Microsoft (R) File Checksum Integrity Verifier tool is an unsupported command line utility that computes MD5 or SHA1 cryptographic hashes for files. Microsoft does not provide support for this utility. Use this utility at your own risk. Microsoft Technical Support is unable to answer questions about the File Checksum Integrity Verifier. For more information, see Microsoft Knowledge Base Article 841290."

Probably it's just some misunderstanding, but I guess the entire purpose of the procedure is to eliminate some risk ... and of course, if the party distributing stuff is not really taking responsibility in this game, it feels like as if there wasn't any game o.O




source