Tagged Python

How to Disable Auto-Lock in Pythonista

Pythonista, coupled with LLM for vibe coding, is a great way to play around with making your apps come true quickly. No need to pay for a developer account or register it. However, being an iOS Python IDE, there are limitations on what it can mimic. One such limitation was disabling Auto-Lock while a script is running. I’d asked LLMs to fix it more than once, only to crash Pythonista every time.

How to Run Python Script from iOS Home Screen

On iOS, Pythonista is likely the go-to Python environment runtime for many script writers. I, for one, recommend using Pythonista for any projects that need some horsepower. As I have shared many times, one such problem was generating passwords. It is completely doable on Shortcuts, only that it would be so cumbersome to make it happen.

How to Generate Memorable Password

I have made several Python password generators. One consistent goal of my generators is its password usability; memorized or not, a user should be able to type it without the worry of user errors. The key here is “type”, because, I’ve learnt the hard way that some password policies out in the wild are purely sadistic. I won’t name names, but one website I use frequently doesn’t allow copy-pasting, no extensions, and virtual keyboards only, on both mobile and desktop environment. Memorizing a password by muscle memory is simply not possible; whoever came up with that idea must have thought…

How to Fix gdbm Issue for Python 3.14.2 on pyenv

This post is for the documentation purpose. Looking back, most people would immediately find the solution before questioning all the other myriads of avenues of possibilities like I did. Long story short, fixing the problem wasn’t the issue. It was why it happened that boggled my mind.

How to List CPython on Pyenv

Python, with its dominant status, does not have an easy way to install and kickstart the experience for beginners or anyone who simply wishes to run Python scripts. Fortunately, for most modern systems, it comes packaged with some version of Python — which is also inevitably an open invitation for disaster. Python has been changing rapidly since version 3, and some of the scripts written in post 3.0 era are inherently incompatible with historical versions that may have been shipped with the OS. This is where pyenv comes in.

How to Generate Type-Friendly Password pt. 3

I do hope I wouldn’t need to come up with even more type-friendly password generators than this version. After making two, one for generic, one for copy-paste, versions of password generators, I am now hit with one of the weirdest policies I’ve encountered yet: there were different limits on how many digits and special characters a password can have. I don’t have a word to describe the misery I felt. At least the website in question supported up to 16 characters long password.

How to Generate Type-Friendly Password pt. 2

As I have written in the past on generating a type-friendly password with Python, it hit me like a freight truck today. One of the Korean apps have “upped” their security policy demanding now I type the password which is likely 20 or more characters, completely random, on a virtual keyboard. If you have never used one of those, it’s like a touchscreen keyboard, except all the locations are scrambled. Typing 20+ characters on those keyboard is an arduous task.

How to Generate 6+1 Lottery Numbers from Python

I am playing a different kind of raffle this year, one that use official South Korean lottery numbers. Usually these small group raffles use raffle tickets (like the ones in the featured image) then to pick out the winner, or play a bingo. This game is just like a lottery, only that they are not running the ball-pulling show. But that’s not really the point I’m getting at.

App to Manage Python Versions

I know it’s a well known tool. But having introduced Python many times as go-to method to write codes to automate and for personal uses, I realize now that I didn’t mention the tool to manage Python. Unlike like programming languages, Python has gone through some major changes from versions to versions, most notably from Python 2 to 3.

How to Generate Type-Friendly Password

For the life of me, I do not see why this is a thing for Korean websites and apps, but Korean apps often require “virtual keyboard” on a smartphone. Yes, you heard me correctly. On a smartphone’s virtual touchscreen keyboard, they insist to put in a new randomized keyboard for security sake, while banning the use of simple copy-paste or password manager. Not to mention the password policy of these apps often limit the length to either 8 characters in extreme cases and maybe 16 in some half-decent banks. KISA, Korea Internet & Security Agency, actually published an article NOT…

How to Randomly Generate a Pattern Lock pt. 2

The last how-to I published had some backstories. It’s always easier to input a pattern lock when it only has 8-direction: up, down, left, right and 4 diagonals. But security-wise, having more options is always more preferable. This is one of the weakness of the pattern lock; you might as well use a simple PIN code for better security.

How to Randomly Generate a Pattern Lock

PSA before we begin: if you are using pattern lock on your device as primary method of authentication, find alternatives. Pattern lock is unsafe. There is a reason why password managers don’t try supporting it. Compared to that of PIN, the safety provided by pattern lock is mediocre at best even with the best of practices.

Universal Quicksaver for All v.MTP2023-07-02

Yes, I had to return with some updates on the script. Please do check out the previous post, as I will be keeping it up to date. As for why the separate post was made, I thought to share where some of the changes were made and why. If you are looking for the new script, check out the original post.