Skip to content

Instantly share code, notes, and snippets.

View clayote's full-sized avatar

clayote

View GitHub Profile
@clayote
clayote / buildozer.log
Created May 10, 2025 15:00
buildozer log with pinned numpy version gives weird meson fail
This file has been truncated, but you can view the full file.
(buildozer-venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien$ python -m pip freeze
appdirs==1.4.4
build==1.2.2.post1
buildozer @ https://github.com/kivy/buildozer/archive/refs/heads/master.zip#sha256=8440035cc4a48c8968b4ab5f01037d0db5c23760e458119fd87f7cd5858aa25b
colorama==0.4.6
Cython==0.29.34
distlib==0.3.9
filelock==3.18.0
Jinja2==3.1.6
@clayote
clayote / buildozer.log
Created May 10, 2025 06:34
Similar numpy buildozer strangeness, but on the scipy_updates branch
This file has been truncated, but you can view the full file.
(buildozer-venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien$ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
@clayote
clayote / buildozer.log
Created May 10, 2025 05:04
mystifying buildozer debug build failure. it was working yesterday
This file has been truncated, but you can view the full file.
(buildozer-venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien$ python -m pip freeze
appdirs==1.4.4
build==1.2.2.post1
buildozer==1.5.0
colorama==0.4.6
Cython==0.29.33
distlib==0.3.9
filelock==3.18.0
Jinja2==3.1.6
@clayote
clayote / buildozer3.log
Last active April 30, 2025 03:03
Clean run of `buildozer update` failing
This file has been truncated, but you can view the full file.
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ rm -rf .buildozer
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ rm -rf ~/.buildozer
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ export JAVA_HOME=/usr/lib/
Display all 192 possibilities? (y or n)
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ export JAVA_HOME=/usr/lib/jvm/
default-java/ java-1.21.0-openjdk-amd64/
java-1.11.0-openjdk-amd64/ .java-1.21.0-openjdk-amd64.jinfo
.java-1.11.0-openjdk-amd64.jinfo java-17-openjdk-amd64/
java-1.17.0-openjdk-amd64/ java-21-openjdk-amd64/
@clayote
clayote / texture_stack_plane_bug_demo.py
Last active December 2, 2024 09:57
Demonstration of a condition where a Fbo can draw outside the StencilView it's in
from kivy.core.image import Image
from kivy.graphics.fbo import Fbo
from kivy.properties import ObjectProperty, BooleanProperty, ListProperty
from kivy.graphics import (
InstructionGroup,
Translate,
Rectangle,
)
from kivy.clock import Clock, mainthread
from kivy.uix.widget import Widget
@clayote
clayote / betterfollowing.py
Created May 18, 2021 17:03
My effort to get useful data out of Twitter profiles
from requests_html import HTMLSession, HTML
from lxml.etree import ParserError
import json
import time
import random
with open('following.json', 'rt') as inf:
useless = json.load(inf)
session = HTMLSession()
@clayote
clayote / bumpme
Created January 7, 2020 20:13
for Concourse tutorial
asdf
@clayote
clayote / sample.py
Last active December 2, 2019 17:24
Trying to hand-compile KvLang into Python for optimization. It isn't working
from random import uniform
from kivy.config import Config
Config.set('kivy', 'log_level', 'debug')
from kivy.app import App
from kivy.clock import Clock
from kivy.graphics import Line
from kivy.lang import Builder
from kivy.properties import ListProperty
from kivy.factory import Factory
@clayote
clayote / 8bitdo
Created June 2, 2018 19:38
Problems getting 8bitdo pro controllers to work on Linux
Both the FC30 Pro and the SN30 Pro are detected by Ubuntu, and are usable insofar as all of the buttons and axes they do have are all present. However, they both present a pair of axes that look like pedals, but which aren't really on the controller. Instead, these axes default to -32767 and flip to positive 32767 when some buttons are pressed -- buttons that are already accounted for by some other input.
Axis 4 flips when I press right on the D-pad or the L2 button (button 8).
Axis 5 flips when I press left on the D-pad or the R2 button (button 9).
The controllers also appear to have 14 buttons, but I can only really press 12. Buttons 2 and 12 cannot be pressed. I thought these would be the Star and Home buttons, but pressing those does nothing, and these extra buttons are not present on the FC30 Pro.
It's sometimes possible to work around this with remapping, but the inability to press button 8 without flipping axis 5 makes it impossible to do this in an automated fashion; you have to use something like x
@clayote
clayote / etesync-dav.log
Created July 10, 2017 22:00
Better log
[7fe602771700] INFO: Starting Radicale
[7fe602771700] DEBUG: Authentication type is htpasswd
[7fe602771700] DEBUG: Listening to localhost port 37358
[7fe602771700] DEBUG: Radicale server ready
[7fe5f8a89700] INFO: PROPFIND request for /[email protected]/ with depth 1 received from 127.0.0.1 using "Thunderbird CardBook/19.7 Lightning/5.4.2.1"
[7fe5f8a89700] DEBUG: Request headers:
{'CONTENT_LENGTH': '126',
'CONTENT_TYPE': 'application/xml; charset=utf-8',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': '*/*',