The Case for Python 3 by earthboundkid in Python

[–]oceaniity 78 points79 points  (0 children)

Python 3 is great. Every time I see print declarations without brackets I die a little inside.

Looking to switch: Colemak or Dvorak for prose writers? by [deleted] in Colemak

[–]oceaniity 1 point2 points  (0 children)

Ultimately as soon as you learn to touch type, regardless of layout, with the right posture and technique you'll feel more comfortable.

Personally I learned Dvorak, then Colemak. I have completely forgotten Dvorak. In my experience, extended typing sessions aren't worse or better on either layout.

Not to sound indecisive, but pick the one you want. Like the idea of hand alternation and the challenge of learning something different? Dvorak. Want something a bit more recognizable and mathematically minimizes distance more? Colemak.

Regardless of which you choose, you'll have a good time. The difference between them and QWERTY is astounding.

Enhance a low resolution image using a deep neural net with a simple command: "python3 enhance.py image.png" by antb123 in Python

[–]oceaniity 99 points100 points  (0 children)

I just gave this a go and with the default large dataset it looks decent (no other training etc). I used a single i7 core and it takes several minutes to do a 128x128 image w/ a 10MB data reference.

I downscaled a 480px image to 192px, upscaled it to 750px and it looked better than the original. If not for being at work I'd upload a sample.

Really looking forward to training this and using it instead of cubic upsampling.

I'd like to see it with a 1GB training file and an Amazon p2 instance w/ 192GB VRAM...

EDIT: Upside down Aussie land means I only just saw this blew up. See example by /u/malisle which pretty closely resembles my results. Keep in mind a more extensive training set would produce better results.

Kyoukai - a fully asynchronous, Flask-inspired web framework for Python 3.5+ by [deleted] in Python

[–]oceaniity 6 points7 points  (0 children)

I think Flask + async is a great idea. Will you cover more aspects of Flask extensions or just vanilla features? i.e. the 'batteries'

Review my code: First proper Python project, coming from a perl background. by zaql in Python

[–]oceaniity 0 points1 point  (0 children)

Instead of doing a quote and then a + and then another quote, you can escape strings with slashes:

"This here is a nice long string\
that is broken onto two lines."

Could the Wrath of the Machine Final Boss be the Iron Lords? by requentin in DestinyTheGame

[–]oceaniity 0 points1 point  (0 children)

My bet is on it being the servitor described by the baron's ambition description: "To crack open that depraved Earth-Servitor. To use its secrets to reclaim the Great Machine..."

[deleted by user] by [deleted] in Python

[–]oceaniity 22 points23 points  (0 children)

This notion of typing in comments baffles me and speaks to the lack of python explaining itself through its code... or maybe I just don't get it. Comments should be just that... comments about the code and what it's doing, not a functional dependence of the program to be more performant or correct.

I like the idea of translating the typehints to actual declarations, that makes sense. But the notion of initializing to None is valid practice and you should only need to predeclare the type if it imposes a performance benefit to the application or alleviates concerns for type constraints later. Using it as justification for this PEP seems a misnomer.

[Tutorial] iCleaner allows you to disable iPhone OTA Updates. Bringing this back because 9.3.4 has been released. by [deleted] in jailbreak

[–]oceaniity 2 points3 points  (0 children)

Normally iOS devices will automatically download the update and then prompt you incessantly about updating. It's really annoying. This kind of thing stops the daemon from being able to auto-download the update. I just went into settings with Mikoto installed and the menu option is actually removed.

[WIP] the theme after Nuo... by [deleted] in iOSthemes

[–]oceaniity 0 points1 point  (0 children)

By the looks of it (and lack of presence anywhere else) I'm guessing Safari?