Skip to content

Instantly share code, notes, and snippets.

using ACE.DatLoader.FileTypes;
using ACE.Entity.Enum;
using SkiaSharp;
List<int> GetImageColorArray(Texture texture)
{
List<int> colors = new List<int>();
if (texture.Length == 0) return colors;
switch (texture.Format)
# How do two Substrait producers produce a plan for this relatively simple
# query?
#
# SELECT * FROM penguins LIMIT 10;
#
# Let's see:
import duckdb
import json
{
"relations": [
{
"root": {
"input": {
"project": {
"input": {
"read": {
"baseSchema": {
"names": [
@amoeba
amoeba / init.el
Last active January 17, 2025 02:44
Emacs C++, clangd, lsp-mode config
;; Initialize package system
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
;; Install required packages if not present
(unless package-archive-contents
(package-refresh-contents))
(setq package-selected-packages
@amoeba
amoeba / _README.md
Last active December 20, 2024 01:45
Notes on GH-44950: [C++] Bump minimum CMake version to 3.25

My goal here is to come up with a set of patches that let us build aws-sdk-cpp under Rtools40. I successfully patched aws-c-common but am now stuck on aws-c-io.

My steps to get to where I am now are:

(On Windows 11 x86_64, in an Rtools4.0 UCRT shell)

  1. Check out apache/arrow#44989
  2. Install regular CMake for Windows system-wide
  3. Clone https://github.com/awslabs/aws-c-common and check out v0.8.9
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Python [96294]
Path: /opt/homebrew/*/Python.framework/Versions/3.13/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.13.0 (3.13.0)
Code Type: ARM-64 (Native)
Parent Process: Exited process [83172]
.venv ❯ ipython
Python 3.12.7 (main, Oct 16 2024, 07:12:08) [Clang 18.1.8 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.29.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import ibis
In [2]: ibis.__version__
Out[2]: '9.5.0'
tf <- tempfile()
table <- Table$create(
some_datetime = as.POSIXct("2001-01-01 12:34:56.789")
)
write_parquet(
table,
tf,
use_deprecated_int96_timestamps = TRUE
└ Testing wheel
=========================================================== test session starts ============================================================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /tmp/nanoarrow-0.6.0.UP7Lid/venv/bin/python
cachedir: .pytest_cache
rootdir: /tmp/nanoarrow-0.6.0.UP7Lid/apache-arrow-nanoarrow-0.6.0/python
configfile: pyproject.toml
collected 230 items / 2 skipped
tests/test_array.py::test_array_construct PASSED [ 0%]
tests/test_array.py::test_array_alias_constructor PASSED [ 0%]
(lldb) bt all
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x000000019213bee8 libsystem_kernel.dylib`__select + 8
frame #1: 0x00000001a9c3cc64 libcurl.4.dylib`Curl_poll + 516
frame #2: 0x00000001a9c3501c libcurl.4.dylib`multi_wait + 640
frame #3: 0x00000001a9c0eda8 libcurl.4.dylib`curl_easy_perform + 268
frame #4: 0x0000000105b7f720 libaws-cpp-sdk-core.dylib`Aws::Http::CurlHttpClient::MakeRequest(std::__1::shared_ptr<Aws::Http::HttpRequest> const&, Aws::Utils::RateLimits::RateLimiterInterface*, Aws::Utils::RateLimits::RateLimiterInterface*) const + 3524
frame #5: 0x0000000105b425a8 libaws-cpp-sdk-core.dylib`std::__1::shared_ptr<Aws::Http::HttpResponse> smithy::components::tracing::TracingUtils::MakeCallWithTiming<std::__1::shared_ptr<Aws::Http::HttpResponse>>(std::__1::function<std::__1::shared_ptr<Aws::Http::HttpResponse> ()>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, smithy::components::tracing