Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
# The code for my article with the same name. You can find it at the URL below: | |
# https://www.mvanga.com/blog/basic-music-theory-in-200-lines-of-python | |
# MIT License | |
# | |
# Copyright (c) 2021 Manohar Vanga | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
(From http://stackoverflow.com/questions/2452861/python-library-for-converting-plain-text-ascii-into-gsm-7-bit-character-set, ran out of space in the comment section.)
Running the original file does not work in either Python 2 or 3.
In Python2, the program prints this:
64868d8d903a7390938d85
(which is wrong) because it is using the indexes of gsm
which do not map to the index of their GSM encodings due to the fact that it is a bytestring with some characters taking up multiple bytes. gsm
is actually equal to
$ python xor.py | |
Training: | |
Epoch 0 MSE: 1.765 | |
Epoch 100 MSE: 0.015 | |
Epoch 200 MSE: 0.005 | |
* Target MSE reached * | |
Evaluating: | |
1 XOR 0 = 1 ( 0.904) Error: 0.096 | |
0 XOR 1 = 1 ( 0.908) Error: 0.092 | |
1 XOR 1 = 0 (-0.008) Error: 0.008 |
I hereby claim:
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
""" | |
Adds some PostgreSQL jsonb support to pydal. | |
Check https://www.postgresql.org/docs/9.6/static/functions-json.html for additional info. | |
In order to use operators you must specify the 'jsonb' type on `Field` class. | |
Included query operators: | |
- `@>`: db.where(db.table.jsonb_field.jcontains({"foo": "bar"})) | |
- `<@`: db.where(db.table.jsonb_field.jin({"foo": "bar"})) |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
/ip pool | |
add name=vpn-pool ranges=10.2.2.2-10.2.2.22 | |
/ppp profile | |
set [find name=default-encryption] dns-server=10.2.2.1 local-address=10.2.2.1 remote-address=vpn-pool | |
/ppp secret | |
add name=帳號 password=密碼 profile=default | |
/interface l2tp-server server |