Skip to content

Instantly share code, notes, and snippets.

FREE HEAP SIZE: 93352 (18 processes)
FREE HEAP SIZE: 93208 (18 processes)
WS PRASE PACKET <<"��A��%1ΚB">>
FREE HEAP SIZE: 93504 (18 processes)
FREE HEAP SIZE: 91780 (18 processes)
FREE HEAP SIZE: 93196 (18 processes)
FREE HEAP SIZE: 93220 (18 processes)
FREE HEAP SIZE: 93808 (18 processes)
FREE HEAP SIZE: 93212 (18 processes)
FREE HEAP SIZE: 93244 (18 processes)
CRASH
======
pid: <0.26.0>
Stacktrace:
[{gen_server,do_terminate,3,[{file,"/home/robin/work/atomvm/atomvm/AtomVM/libs/estdlib/src/gen_server.erl"},{line,592}]}]
cp: #CP<module: 6, label: 128, offset: 23>
x[0]: exit
FREE HEAP SIZE: 51484 (20 processes)
FREE HEAP SIZE: 38704 (22 processes)
CRASH
======
pid: <0.12530.0>
Stacktrace:
undefined
cp: #CP<module: 2, label: 5, offset: 27>
-module(gas_sensor_atomvm).
-export([
start/0,
init_handler/2,
handle_http_req/2,
handle_ws_init/3,
handle_ws_message/2,
poll_server1/3
]).
~/work/cadlink/gas_sensor_atomvm$ rm -r _build/default/lib/gas_sensor_atomvm*;./monitor.sh
+ set -e
+ '[' -f minify_linux_amd64.tar.gz ']'
+ mkdir minify
mkdir: cannot create directory ‘minify’: File exists
+ true
+ tar xf minify_linux_amd64.tar.gz -C minify
+ mkdir priv
mkdir: cannot create directory ‘priv’: File exists
+ true

Setting up PC-EFTPOS to work with Virtual PinPad is a P-ITA, so do the following dance, and things might work.

  1. During setup, remember to select "PINPad will be attached..." PINPad will be attached....
  2. In EFT Client UI, change COM Port to TCPIP
  3. Press Stop and relaunch EFT Client UI again
  4. Setup Virtual PinPad https://pceftpos.com/media/KnowledgeBase/How%20To%20Set%20Up%20A%20Virtual%20PINPad%20to%20work%20with%20PC-EFTPOS.pdf
  5. Try changing to 2011 but 2012 should be the correct value. 2011 should be used for sending payment to EFT Client, and 2012 should be used for connecting Virtual PinPad to EFT Client.
    • Using port 2011 can seem to work and you may still be able to see PC_EFTPOS DEMO READY but don't be fooled because sending a transaction amount will be unsuccessful.
  6. You might have to close the virtual pinpad and open it again, until you see PC_EFTPOS DEMO READY.
import re
import sys
from decimal import Decimal
def in_seconds(time_str):
hour, minute = map(int, time_str.split(':'))
return hour * 60 * 60 + minute * 60
def seconds_to_hours(seconds):
return seconds / 60 / 60
node_modules/browserify/bin/cmd.js --standalone bundle --debug main.js -t [ babelify --presets [ env ] --plugins [ mopt ] ] -o $BUNDLE_FILE_NAME
! Caps_Lock behaves as Control_L
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L
! Disable Control_L
keycode 37 = NoSymbol
! Left-handed mouse
pointer = 3 2 1
(defn quote-form [{:keys [floor-plan-update-url floor-plan-create-url] :as urls} data-atom history-atom quote-id db-index search-index variant-search-index after-save]
(let [a (deref data-atom)
q (a :quote)
floor-plan-create-update-url (if quote-id floor-plan-update-url floor-plan-create-url)
field-errors (a :field-errors)
quoted-product-errors ((a :field-errors) "quoted_products")
quote-id ((a :quote) "id")
pdf-list ((a :quote) "pdfs")
client-list (a :clients)
staff-list (a :staffs)