I wanted to be able to show file upload progress for my Python asyncio-based Pushbullet.com library but could not find any obvious solution using aiohttp and tqdm. Here is what I created. Essentially I intercept the calls to reading a file and update the tqdm progress bar accordingly.
I finally figured out at least one way to have a Python tkinter app use asyncio event loops, so I thought I should share it. In the end, the solution was simply running an asyncio event loop on another thread. I hope one day Python will merge the two event loops, but for now this works OK.
# Thread that will handle io loop
def _run(loop):
asyncio.set_event_loop(loop)
loop.run_forever()
ioloop = asyncio.new_event_loop()
asyncio.run_coroutine_threadsafe(_connect(), loop=ioloop) # Schedules connection
t = threading.Thread(target=partial(_run, ioloop))
t.daemon = True # won't hang app when it closes
t.start() # Server will connect now
I had the unfortunate experience of having to talk to CenturyLink about something, so I thought I would give the “Live Chat” feature a try. I wanted to know how much it would cost to have service for three iPhones and whether or not they would pay any cancellation fees with my current carrier.
I was asking too much. I am still not convinced that I was talking to a real human being; maybe I just have too much faith in humanity to believe this was a human operator.
Here is the transcript of the chat that took 15 minutes to get nowhere.
I was having terrible Netflix performance when connecting through my pfSense 2.3 router (running on XenServer 6.5), but Netflix was fine when I bypassed pfSense altogether or when I connected to Netflix through my StrongVPN connection passing through pfSense.
After much research, investigations, and Wiresharking, I made the following three configuration changes that seem to have fixed the problem. Read more…
I hope this is a unique problem, but my month-old iPhone SE with the “fancy” inlaid Apple logo on the back had a leaf failure. The “color matched stainless steel logo” on the back is made of two separate pieces, the apple and the leaf, which are pressed into place.
My leaf fell out.
At a genius bar Apple replaced the phone free of charge, but they did not know how to classify the problem. I was the first they had heard of such a problem.
I suspect it was sucked out by a car holder I use with a sticky pad that holds the phone in place.
I was disappointed to see that I could no longer run iMovie HD (available here) after upgrading to Mac OS X 10.10 Yosemite. The Finder gave me an error saying, You can’t use this version of the application “iMovie HD” with this version of OS X. You have “iMovie HD” 6.0.3. I was delighted to discover a workaround that works, well, for now. Here’s how.
UPDATE, Sept 2015: Looks like this trick works in El Capitan too.
I bought an 8-port general purpose IO expander for adding ports to my MSP430 projects via I2C, but I couldn’t find any library for accessing it. Fortunately the I2C communication with the on-board Texas Instruments PCF8574 chip is pretty straightforward, so after studying the LiquidCrystal_I2C library, which uses the PCF8574 for communicating with the popular 16×2 LCDs, I made my own library for this port expander. You are welcome to it. I release it as Public Domain code.
For my office door I’ve made a sign using a 16×2 LCD display controlled by an MSP430 and connectable via Bluetooth. A button lets me cycle through canned messages like, “The doctor is in,” and “At lunch.” Via Bluetooth I can give it an ad hoc message that I had not pre-programmed.
Door sign using 16×2 LCD, MSP430, Bluetooth, and 433Mhz radio
Recent Comments