Google Search

Youtube Search

Andy.

SailboatData Search

zoomA
zoomB

Library


AcSched

ScMt: 936 9514 6289 .


horrible code

Horrible code, which I think I mostly wrote, and probably stole the smart parts from others, placed here because I need to use it on many machines...

IRTF

Covid19 Status

Carpe Ventus

C

?


this is sort of right-ish, maybe?

printf("value is %i\n",(x>y)?x:y);

is equivalent to

if(x>y)
   printf("value is %i\n", x);
else
   printf("value is %i\n", y);

or flipping it, qtest.c:

#include 

int main()
   {
   int a = 3, b = 2;

   printf("value is %i\n", (a < b)?a:b);

   if( a < b)
      printf("value is %i\n", a);
   else
      printf("value is %i\n", b);

   return 0;
   }


Linux find

Note: spaces are important.

Memory Lane: vi

Makefile stuff

Problem: spaces & tabs when switching from code to makefile causes weird issues.
Need to switch from spaces to tabs then back when going from coding to editing makefile,then restore when going back to coding.
:set noet
to switch from spaces to tabs
:set et
to switch from tabs to spaces

Pasting

To get rid of those stupid indents when copy/pasting between terminals, use :set paste and :set nopaste
  1. :sp will split the Vim window horizontally.
  2. :vsp will split the Vim window vertically.
  3. Ctrl-w Ctrl-w moves between Vim viewports.
  4. Ctrl-w j moves one viewport down.
  5. Ctrl-w k moves one viewport up.
  6. Ctrl-w h moves one viewport to the left.
  7. Ctrl-w l moves one viewport to the right.

.vimrc

set softtabstop=3
set tabstop=3
set shiftwidth=3
set expandtab
syntax off
set cindent

Memory Lane: git

Commands

  • git add XXX
  • git commit
  • git log
  1. git config --global core.editor "vim"
  2. git config --global user.email "scout3801@gmail.com"
  3. git config --global user.name "Charles Lockhart"

Python recollections: vi

windows 10

  • Running Pengwin
  • X410 installed
  • installed ipython3 via "sudo apt install ipython3"
  • Couldn't display, got warning "UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure."
  • installed python3-tk ("sudo apt-get install python3-tk")
  • worked

bicycling

To Do

https://www.viaclaudia.org/en/via-claudia-augusta-welcome.html

Sailing

Windy in the Bay

Weather

NATIONAL GEOSPATIAL-INTELLIGENCE AGENCY
NGA's American Practical Navigator pub page

Club

Linux

ANCLhttp://mirror.ancl.hawaii.edu/ The Advanced Network Computing Laboratory Mirror here at UH

Computing

Photopea, online, free, web-based image editor

Library

Lakeshore

LM335

Port 1234 Tails

Gardening

Invisible Splash

Exercise

japanese

Outgassing

Outgassing data search

Programming

Lanterna

Food

ChiliPepperMadness.com

Galil