Skip to content

Instantly share code, notes, and snippets.

File "/home/jwhite/w/gnucash/install/share/gnucash/python/init.py", line 2, in <module>
from gnucash import *
File "/usr/lib/python3/dist-packages/gnucash/__init__.py", line 6, in <module>
from gnucash.gnucash_core import *
File "/usr/lib/python3/dist-packages/gnucash/gnucash_core.py", line 36, in <module>
from gnucash import gnucash_core_c
File "/usr/lib/python3/dist-packages/gnucash/gnucash_core_c.py", line 10, in <module>
from . import _gnucash_core_c
ImportError: /usr/lib/python3/dist-packages/gnucash/_gnucash_core_c.cpython-311-x86_64-linux-gnu.so: undefined symbol: string_to_gnc_numeric
@jwhite66
jwhite66 / plugin example
Last active February 1, 2022 16:00
Plugin intialization code
dn: cn=Example Plug-in,cn=plugins,cn=config
objectclass: top
objectclass: nsSlapdPlugin
objectclass: extensibleObject
cn: Example Plug-in
nsslapd-pluginpath: libexample-plugin
nsslapd-plugininitfunc: init_plugin
nsslapd-plugintype: preoperation
nsslapd-pluginenabled: off
nsslapd-pluginid: none
@jwhite66
jwhite66 / bad.txt
Created December 6, 2020 22:12
Media description which fails to validate
m=audio 16080 RTP/AVP 0 8 18 98 4 3 111 112 5 10 122 118 123 124 125 126 127 96 7 110 117 119 97 9 102 115 113 116 107 114 120 99 100 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:5 DVI4/8000
PJSIP Logging Enabled for host: 216.14.190.248
<--- Transmitting SIP request (662 bytes) to UDP:216.14.190.248:5060 --->
INVITE sip:8552545100@216.14.190.248:5060 SIP/2.0
Via: SIP/2.0/UDP 50.203.203.246:5060;rport;branch=z9hG4bKPjbab355fa-0c3f-4472-ab11-4ae84fb60223
From: <sip:6515239300@10.0.130.100>;tag=c790c3a6-5ebc-49d5-9948-df876a6f8092
To: <sip:8552545100@216.14.190.248>
Contact: <sip:6515239300@50.203.203.246:5060>
Call-ID: 546ddf0e-a92c-4b28-95ac-8a9bef196b06
CSeq: 19389 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
package frc.robot;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.Timer;
public class Robot extends TimedRobot {
private double freememory = 0.0;
private double m_a = 1.0;
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot;
import edu.wpi.first.wpilibj.TimedRobot;
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot;
import edu.wpi.first.wpilibj.TimedRobot;
DS: 19.0
RIO: FRC_roboRIO_2019_v13
Lib: Java 2019.3.1
PCM: 1.65
PDP: 1.30
Talon SRX: 4.11
Victor SPX: 4.11
Free RAM (MB): 88
Free Disk (MB): 86
---
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot;
import com.ctre.phoenix.motorcontrol.ControlMode;
Warning 0 [phoenix] Shutdown cleanly
********** Robot program starting **********
NT: server: client CONNECTED: 169.254.202.167 port 63398
Warning 44003 FRC: No robot code is currently running. Driver Station
Watchdog not fed within 0.020000s
Default disabledInit() method... Override me!
Default disabledPeriodic() method... Override me!
Warning 1 Loop time of 0.02s overrun
edu.wpi.first.wpilibj.IterativeRobotBase.printLoopOverrunMessage(IterativeRobotBase.java:273)
Warning at edu.wpi.first.wpilibj.IterativeRobotBase.printLoopOverrunMessage(IterativeRobotBase.java:273): Loop time of 0.02s overrun