User Tools

Site Tools


start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start [2020/08/17 20:37] – [Date.js] adminstart [2023/08/12 13:07] (current) – [Date.js] admin
Line 1: Line 1:
   * [[Links]] - links to other sites.   * [[Links]] - links to other sites.
   * [[Windangel]] - Our sailing adventures   * [[Windangel]] - Our sailing adventures
 +====== Introduction ======
 +My name is Jim Lynch.  I used to have a consulting company in GA and had developed this site to support it.  In the 2008 panic I lost all my customers and have never succeeded in getting any new ones so I've turned this site into a place that I keep a number of programming hints.  I am an engineer by education but spent the most part of my career working in the computer industry providing primarily programming support and project management. I retired in 2005 and spend a lot of time working on programming projects related to Linux, small computers (Pi's and the like), micro controllers (Arduino's and clones) and micro computers (ESP8266, ESP32, etc).  
 +
 +I have a 3D printer which I use to build various bits like containers for some of my small computer projects.  I design my prints using the open source CAD program, Openscad.  It appeals to my engineering background better than the more artistic cad programs like Blender and Fusion3D.
 +
 +I'm also an amateur radio operator.  I don't operate as much as I used to but still keep a finger on the key so to speak.
 ====== Touchpad ====== ====== Touchpad ======
 Use  Use 
-<code>+<Code>
 synclient TouchpadOff=1 synclient TouchpadOff=1
-</code>+</Code>
 To turn the bloody touchpad off on laptop. To turn the bloody touchpad off on laptop.
 +
 +If that doesn't work, here's a script that works on my Dell Inspirion 11 3000 Series running Linux Mint Mate 20.
 +
 +<Code>
 +#!/bin/bash
 +x=`xinput list | grep Synaptics|awk '{ $1=""; $2=""; $3="";$4="";$6="";$7="";$8=""; print}' | awk -F'=' '{$1="";print}' | xargs`
 +
 +xinput set-prop ${x} 164 0 # '"Device Enabled"' 
 +</Code>
 +
 +xinput list will give you a list of devices you can control.  In my case the Synaptics device is the one I wanted to disable.  The command that I originally used was "xinput set-prop 12 "Device Enabled" 0" but I couldn't figure out how to script that so I used the xinput "list-props 12" to discover the equivalent numeric value.
 +
 +
 ====== Bind ====== ====== Bind ======
 Before using chroot from a live CD to fix a system, use: Before using chroot from a live CD to fix a system, use:
 <code> <code>
- mount -o bind /proc /mnt//proc/+ mount -o bind /proc /mnt/proc/
  mount -o bind /dev /mnt/dev/  mount -o bind /dev /mnt/dev/
  mount -o bind /sys /mnt/sys  mount -o bind /sys /mnt/sys
Line 88: Line 107:
     <script src="js/date.js"></script>     <script src="js/date.js"></script>
 </code> </code>
 +Date.js can be found at: https://github.com/datejs/Datejs
 +====== Sample ======
 +I used this prompt in bard:
 +generate the mysql 8 table using the following schema: id int 11 autoindex;name varchar 64;dat datetime current_time_stamp;
 +
 +And it generated the following:
 +<code>
 +CREATE TABLE `my_table` (
 +  `id` INT(11) NOT NULL AUTO_INCREMENT,
 +  `name` VARCHAR(64) NOT NULL,
 +  `dat` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
 +  PRIMARY KEY (`id`)
 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 +Use code with caution. Learn more
 +This table has three columns:
 +</code>
 +  * id: An integer column that is the primary key of the table. This column is automatically incremented by MySQL.
 +  * name: A string column that stores the name of the record. This column has a maximum length of 64 characters.
 +  * dat: A datetime column that stores the date and time when the record was created. This column is automatically set to the current timestamp when a new record is inserted.
 +
 +I hope this helps! Let me know if you have any other questions.
 +
 +
  
start.1597689453.txt.gz · Last modified: 2020/08/17 20:37 by admin