Skip to content

Instantly share code, notes, and snippets.

View exonomyapp's full-sized avatar
💭
Decentralizing Life

Exonomy App exonomyapp

💭
Decentralizing Life
View GitHub Profile
@exonomyapp
exonomyapp / Installing pgModeler on Ubuntu 24.md
Created February 13, 2025 21:53
Installing pgModeler on Ubuntu 24

Installing pgModeler on Ubuntu 24

Summary TOC of Successful Steps

  1. System Preparation
  2. Install Dependencies
  3. Clone pgModeler Repository
  4. Build libutils with Qt 6
  5. Build pgModeler
  6. Install pgModeler System-Wide
  7. Install Plugins
@exonomyapp
exonomyapp / Single Codebase for Tauri and Capacitor.md
Last active February 13, 2025 17:17
Single Codebase for Tauri and Capacitor

Here’s how you could structure a single codebase to support both Tauri (desktop) and Capacitor (mobile), leveraging shared logic while accommodating platform-specific needs:


Project Structure

your-app/
├── src/                   # Shared frontend code (Nuxt + Ionic + TypeScript)
│   ├── app.vue            # Root component
│   ├── composables/       # Shared business logic (e.g., P2P networking)
@exonomyapp
exonomyapp / Trusting Exonomy.md
Last active February 11, 2025 22:11
Trusting Exonomy

Let's elaborate on the procedural steps of item 7. CID as a Trust Anchor, explaining the role of the "Master" JSON CID and how the CID of the initial signed manifest acts as a trust anchor. How is this manifest created, what's in it, and what happens when users pin this CID locally to ensure they’re referencing the correct root manifest. How are subsequent updates validated by checking the signature of newer manifests, especially when their CIDs change. No code samples but if that level of detail is useful, just narrate what will become code.


DeepSeek reasoning:

Okay, let's try to break down how the "Master" JSON CID works as a trust anchor. So, the user wants to make sure that even though the app can be updated and distributed peer-to-peer without central servers, there's a way to ensure that everyone is using a legitimate version. They mentioned using a JSON file that lists all the versions of the app, each with their own CID. The CID of this JSON file itself would be the trust anchor. But when y

@exonomyapp
exonomyapp / The Haversine formula to calculate the distance between two points.md
Last active February 10, 2025 20:57
The Haversine formula to calculate the distance between two points

The Haversine formula is a mathematical equation used to calculate the great-circle distance between two points on the Earth's surface, given their latitude and longitude in decimal degrees. This is particularly useful for applications like yours, where you need to filter vouchers based on their proximity to a user's location.


Haversine Formula

The Haversine formula calculates the great-circle distance ( d ) between two points on the Earth's surface:

image

@exonomyapp
exonomyapp / DeepSeek Explains How China Uses Vouchers.md
Created February 1, 2025 08:14
DeepSeek Explains How China Uses Vouchers

DeepSeek Explains How China Uses Vouchers

Prompt: How is China using vouchers to offset the shortage of cash in their domestic economy?

R1 reasoning process

Okay, so I need to figure out how China is using vouchers to deal with the cash shortage in their domestic economy. Let me start by recalling what I know about economic policies. Vouchers are like coupons or tickets that people can use to get discounts or specific goods and services. If there's a cash shortage, maybe the government is issuing these vouchers to encourage spending without needing physical cash.

First, why would there be a cash shortage? Maybe due to economic slowdowns, people are holding onto their money instead of spending it. That can lead to lower demand, which isn't good for the economy. So, if the government gives out vouchers, they might be trying to stimulate consumer spending. For example, during the COVID-19 pandemic, many places had lockdowns, which probably hurt businesses. Vouchers could help get people spending

@exonomyapp
exonomyapp / Una Crítica de la Democracia desde Soluciones de IA Competidoras.md
Created January 27, 2025 11:14
Una Crítica de la Democracia desde Soluciones de IA Competidoras

Una Crítica de la Democracia desde Soluciones de IA Competidoras

Una crítica saludable de la democracia proporcionada por las versiones gratuitas de dos soluciones de IA: la china Deepseek y la estadounidense ChatGPT. ¡Dos visiones, dos mundos, pero un solo tema candente! ¿Qué tienen que decir estas inteligencias artificiales sobre uno de los sistemas políticos más discutidos? Vamos a descubrirlo. 🧠💥

Deepseek:

Introducción

@exonomyapp
exonomyapp / Chinese AI Criticism of Democracy.md
Last active January 27, 2025 10:57
Chinese AI (Deepseek) Criticism of Democracy (2 response versions)

Chinese AI (Deepseek) Criticism of Democracy

2 response versions followed by ChatGPT responses to the same prompt. Following the 2 versions, a union of the 2, rather than their intersection, is also provided.


Prompt:

I would like a healthy criticism of Democracy without branding it as a failed system. I would like this criticism to quote critics of Democracy going as far back as possible into recorded history, even to times before Democracy, as a labeled concept, was defined. Quotations need to be provided in the quality and format of academic footnotes. Critics should be from outside of Western Civilization as well as its architects. Keep the results to less than 1200 words and provide an additional 100 word introduction to explain the 1200 word treatment.


Version 1

@exonomyapp
exonomyapp / Data Modeling the Exonomy with IPFS and OrbitDB.md
Last active January 19, 2025 23:27
Data Modeling the Exonomy with IPFS and OrbitDB

Data Modeling the Exonomy with IPFS and OrbitDB

The following guide helps to align the Exonomy app with IPFS and OrbitDB for best practices modeling of both data and process, ensuring robust, decentralized handling of Exonomy’s voucher and chat functionalities while laying the groundwork for future integration with Exocracy and expanded P2P features:

Step 1: Introducing the Combined Concept of IPFS and OrbitDB

In a decentralized application, IPFS and OrbitDB complement each other by addressing different aspects of data storage and management:

Role of IPFS: Immutable Storage for Voucher Assets

IPFS is responsible for storing the actual content of the voucher system. Each file (e.g., metadata, images, videos) is chunked, hashed, and assigned a Content Identifier (CID). These CIDs represent immutable, content-addressed storage, ensuring data integrity. However, IPFS alone does not manage the logical structure or relationships between assets, making it unsuitable for complex qu

@exonomyapp
exonomyapp / Voucher-Stripe Integration.md
Created January 10, 2025 20:22
Functional Specification For Voucher - Stripe Integration

Functional Specification for Exonomy Voucher Payment and Redemption Feature

Overview

This feature enables Exonomists to use vouchers for payments, handle optional cash redemptions, and persist transaction and voucher data using IPFS/OrbitDB for replication and offline functionality. The app will integrate with Stripe for payments, webhook handling, and custom receipts, while leveraging Nuxt3, TypeScript, Ionic for UI, and Capacitor for cross-platform deployment.


Feature Details

Voucher Management

@exonomyapp
exonomyapp / Setting up Exonomy repo.md
Last active January 9, 2025 21:30
Step-by-Step instructions for setting up Exonomy repo

Exonomy App Installation Guide

This guide provides step-by-step instructions for creating and setting up the Exonomy App repository as described in the functional specification.

Step 1: Initialize a Git Repository

  1. Create a new folder for the project:
    mkdir exonomy-app
    cd exonomy-app