Bradley Martsberger
33 posts

Bradley Martsberger
@bradmarts
Python programmer, Chess player
Spartanburg, SC Katılım Haziran 2009
51 Takip Edilen17 Takipçiler

This is a 2900 rated puzzle on chess.com that only requires the most basic king and pawn endgame knowledge to solve. So why is it so high rated? Is the lack of endgame skill really this much? chess.com/puzzles/proble…
#chess
English

@nova_chess_guy @JoshuaG19367959 @GmAvetik But to your point,
1. Qd6+ Q:d6
2. R:d6 Rb8
3. Rb6 (Why not?)
English

@CraverSan @Elismal4 @ChessVonDoom started by recognizing the two checks and calculating neither works immediately. If the black knight on c5 is gone, Qxc8 Qxc8 Ne7+ wins the exchange. Looked at b4, but Nxa4 gives up too much material. Looked at whether it helps to get the bishop out of danger, found Bd7.
English

@nedbat It also maps to a math meaning. Are any of the numbers in the empty set equal to 1? No. Are all the numbers in the empty set equal to 1? Less obvious, but yes, there is no number in the empty set that isn't equal to one, all of the numbers that are in the set are equal to 1.
English

@treyhunner Not for exiting the repl, but I’ve always been amused that sys.exit() will exit a script whether you remembered to import sys or not.
English

I found a new way to exit the Python REPL:
>>> import venv.__main__ # Prints out an error message and exits
#pythonoddity
English

@AdamChainz How does setUpTestData compare to setUpClass, which also runs only once per TestCase class instead of every test? I have always used setUpClass for this reason and not sure if there is an additional benefit to use setUpTestData.
English

@mkennedy @treyhunner @PythonMorsels I liked this as an exercise. Tried to piece together your intended API from your other tweet replies. github.com/martsberger/mu…. The implementation is fairly short.
English

@treyhunner @PythonMorsels Go for it! I'll share what I create if I make decent progress as well.
English

Anyone know of an in-memory structure (e.g. dictionary++) in Python that lets you have multiple indexes? Like dict[user_id, user] but can also search by user.email, user.favorites.title, etc. Not SQLite, just a simple Python data structure.
English

Jeff Zhang 张佶润@strangeharbors
THREAD: I mostly talk about movies on here, but here goes. We are currently pivoting our factory to solely make surgical masks and other medical garments in short supply. We can make 2 million masks a day, and are looking to help in any way possible during this time. #COVID19
QME

@wsv3000 I let the pygments library (pip install pygments) give me formatted html (with syntax highlighting, line numbers, etc.) and then send that html to the template in the context and render it with mark_safe. Comes out beautiful.
English

Thank you @carltongibson for the #djangocon sprint. Submitted my first PR to Django. GitHub.com/Django/Django/…
English

Today I started at @dmarcian, and I've received an extremely warm welcome from the team! Happy to be aboard!
English

@AdamChainz @ChatDjango @carltongibson Could be if it has been a while. Postgres 10 has been on RDS not quite a year and a half now.
English

@ChatDjango @bradmarts @carltongibson Thanks! I think last time I looked at this I was somehow limited - probably by AWS RDS if it’s not Postgres!
English

@ChatDjango Really enjoy your show. In the latest episode (27, MySQL with Adam Johnson) it was mentioned that Postgres does not support replication that allows writes to the replicated DB. Postgres introduced Logical replication in version 10, which does allow this.
English
Bradley Martsberger retweetledi
Bradley Martsberger retweetledi

We want to (re)start a Python conference in the Carolinas! Want to help? We need it! Retweet and then join Slack: bit.ly/2Y8aoIp . #PyCarolinas #Python #Conference

English

@corbinbs @charlottecodes You should do a knowledge share at a hub.py meetup of stuff you learn at PyCon.
English

Lots of good info/tips in “attracting invisible contributors” talk at #pycon2019 from @charlottecodes
going to apply more of those to github.com/corbinbs/solar… and some other open source projects in the works
Cleveland, OH 🇺🇸 English

@pycoders After the sun sets, it comes back the next day. Are we expecting python2 to come back? No? Can we call this graveyarding instead of sunsetting?
English

Python 3 Statement: Sunsetting Python 2 Support bit.ly/2FyotZL
Deutsch





