Skip to content

Instantly share code, notes, and snippets.

@alokm
alokm / liq-mobile-build-log
Last active November 24, 2021 14:49
LIQ-mobile-app build log on a 2015 Macbook Pro running on Intel I5
TL;DR: If you skip to the end it didn't work. Complains that my C compiler didn't work. See here:
"""checking whether the C compiler works... no
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
/Users/alok/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-73c24/missing: Unknown `--is-lightweight' option
Try `/Users/alok/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-73c24/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/Users/alok/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-73c24':
[4/4] 🔨 Building fresh packages...
[6/10] ⠁ fsevents
[-/10] ⠁ waiting...
[-/10] ⠁ waiting...
[10/10] ⠁ ejs
warning Error running install script for optional dependency: "/Users/alok/sites/alokblog/node_modules/fsevents: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Users/alok/sites/alokblog/node_modules/fsevents
@alokm
alokm / file.txt
Last active September 19, 2019 02:12
Valid Solvo input
// url = 'https://solvo-api.herokuapp.com/api/v1/update'
{
"meta": {
"name": "System-1",
"path": "files/file-1.yml",
"ready": false,
"error": ""
{
"meta": {
"name": "System-1",
"ready": false,
"error": ""
},
"equations": [
{
"text": "x^2 + y^2 = z^2",
"disabled": false,
@alokm
alokm / logs.txt
Created August 10, 2019 01:59
solvo-base-api heroku logs
(solvo_base_api) bash-3.2$ heroku logs --tail
2019-08-09T03:41:59.397413+00:00 app[web.1]: reraise(type(exception), exception, tb=exc_tb, cause=cause)
2019-08-09T03:41:59.397415+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 152, in reraise
2019-08-09T03:41:59.397417+00:00 app[web.1]: raise value.with_traceback(tb)
2019-08-09T03:41:59.397426+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
2019-08-09T03:41:59.397428+00:00 app[web.1]: cursor, statement, parameters, context
2019-08-09T03:41:59.397430+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
2019-08-09T03:41:59.397431+00:00 app[web.1]: cursor.execute(statement, parameters)
2019-08-09T03:41:59.397433+00:00 app[web.1]: sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "model" does not exist
2019-08-09T03:41:59.397435+
Install dependencies for building Python 3.7.x source
$ sudo apt update -y
$ sudo apt install -y software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt install python3.7
@alokm
alokm / README.md
Created July 29, 2019 02:16
Solvo installation instructions

Introduction

This application is designed to serve as a self-contained backend service providing a non-linear multi-dimensional equation solver.

Installation

Pre-Requisites

  • a computer running Linux, WSL for Windows or Unix for MacOS
  • terminal access to a bash shell
@alokm
alokm / CSVify.py
Last active February 24, 2019 20:55
CSVify.py converts a space delimited input file into a comma delimited output file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# CSVify converts a space delimited text file to csv and saves it
# with a .csv extension.
def csvify(infilename, outfilename):
with open(outfilename, 'w') as outfile:
with open(infilename, 'r') as infile:
for line in infile.readline():
@alokm
alokm / how_to_boot_usb.org
Last active October 27, 2018 16:35
How to make a bootable usb from iso in Linux
List of logical fallacies - source:yourlogicalfallacyis.com
strawman - you misrepresent someone's argument to make it easier to attack
false cause - you presumed that a real or perceived relationship between things means that one is the cause of the other
appeal to emotion - you attempted to manipulate an emotional response in place of a valid or compelling argument
ad hominem - you attacked your opponen's character or personal traits in an attempt to undermine their argument