<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://btechwiki.duckdns.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=70.227.90.184</id>
	<title>Bitnami MediaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://btechwiki.duckdns.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=70.227.90.184"/>
	<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/wiki/Special:Contributions/70.227.90.184"/>
	<updated>2026-12-03T13:39:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1215</id>
		<title>Circuit software</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1215"/>
		<updated>2025-04-30T15:56:42Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Circuit Drawing Software==&lt;br /&gt;
* [https://circuitlab.com CircuitLab] (online) and [https://ultimateelectronicsbook.com/ Ultimate Electronics] book&lt;br /&gt;
* Xcircuit and some [https://zinka.wordpress.com/2015/04/04/xcircuit-a-simple-but-powerful-schematic-drawing-tool/ guidance]&lt;br /&gt;
* SPICE&lt;br /&gt;
* Inkscape &lt;br /&gt;
** [https://github.com/fsmMLK/inkscapeCircuitSymbols/tree/master/latest inkscapeCircuitSymbols]&lt;br /&gt;
** [https://fsmmlk.github.io/inkscapeMadeEasy/installation.html inkscapeMadeEasy]&lt;br /&gt;
** [https://textext.github.io/textext/ texText] plug-in for Inkscape&lt;br /&gt;
** [https://github.com/upb-lea/Inkscape_electric_Symbols/tree/master/Sources Inkscape_Electrical_Symbols] located in &amp;lt;code&amp;gt;/home/user/.config/inkscape/symbols&amp;lt;/code&amp;gt;&lt;br /&gt;
* circuitikz&lt;br /&gt;
* [https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ Circuit_macros] based on M4 macro language and &amp;lt;code&amp;gt;pic&amp;lt;/code&amp;gt;&lt;br /&gt;
* Notes on [https://castel.dev/post/lecture-notes-2/ integrating Inkscape with &amp;lt;math&amp;gt;\LaTeX&amp;lt;/math&amp;gt; ]&lt;br /&gt;
&lt;br /&gt;
==General Drawing/Diagram Resources==&lt;br /&gt;
* [https://ladderlogicworld.com/ladder-logic-basics/ LadderLogic World]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Schematics&amp;diff=1213</id>
		<title>Schematics</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Schematics&amp;diff=1213"/>
		<updated>2025-03-26T15:37:21Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Transformers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Electrical Schematics===&lt;br /&gt;
Software&lt;br /&gt;
* [https://gallery.proficad.com/pages/Item.aspx?id=1856 ProfiCAD symbol library]&lt;br /&gt;
* eDrawMax [https://edrawmax.com homepage]&lt;br /&gt;
&lt;br /&gt;
===Other Resources===&lt;br /&gt;
* [https://zalophusdokdo.github.io/ConversionCalculators/en/conversion-calculator-resistor-color-code-5-band.html Resistor Color Codes]&lt;br /&gt;
&lt;br /&gt;
===Transformers===&lt;br /&gt;
* Hammond transformer [https://configurator.inforcloudsuite.com/interactiveweb/session/HAMMONDPOWER_PRD~HAMMONDPOWER_PRD~904c849a-5429-4fc6-9412-1e92298eeac3/pages/2297e6d2-dbfc-40b5-a305-2742de8843b4?informationpane=3 configurator]&lt;br /&gt;
* 3-&amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; delta and wye wiring [https://electrical-engineering-portal.com/3-phase-transformer-connections configurations]&lt;br /&gt;
* Transformer [https://eepower.com/technical-articles/pros-and-cons-three-phase-transformer-connections/# connections] from EEPower&lt;br /&gt;
* ElectricalEasy's [https://www.electricaleasy.com/search/label/Transformer transformer page]&lt;br /&gt;
* EE-Portal's [https://electrical-engineering-portal.com/transformer-connections main transformer connections]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Schematics&amp;diff=1208</id>
		<title>Schematics</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Schematics&amp;diff=1208"/>
		<updated>2025-02-21T22:25:44Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Electrical Schematics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Electrical Schematics===&lt;br /&gt;
Software&lt;br /&gt;
* [https://gallery.proficad.com/pages/Item.aspx?id=1856 ProfiCAD symbol library]&lt;br /&gt;
* eDrawMax [https://edrawmax.com homepage]&lt;br /&gt;
&lt;br /&gt;
===Other Resources===&lt;br /&gt;
* [https://zalophusdokdo.github.io/ConversionCalculators/en/conversion-calculator-resistor-color-code-5-band.html Resistor Color Codes]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1202</id>
		<title>Electrical tools</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1202"/>
		<updated>2024-11-10T19:25:27Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Wire */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Suppliers===&lt;br /&gt;
* [https://mscdirect.com MSC Direct]&lt;br /&gt;
* [https://fastenal.com Fastenal]&lt;br /&gt;
* [https://acmetools.com Acme Tools]&lt;br /&gt;
* [https://ferguson.com Ferguson]&lt;br /&gt;
* [https://summitracing.com Summit Racing Equipment]&lt;br /&gt;
* [https://toolnut.com ToolNut]&lt;br /&gt;
* [https://zoro.com Zoro]&lt;br /&gt;
* [https://supplyhouse.com Supply House]&lt;br /&gt;
===Wire===&lt;br /&gt;
* [https://nassaunationalcable.com Nassau Nat'l Cable]&lt;br /&gt;
* [https://wireandcableyourway.com Wire &amp;amp; Cable]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1201</id>
		<title>Electrical tools</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1201"/>
		<updated>2024-11-10T19:23:50Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Suppliers===&lt;br /&gt;
* [https://mscdirect.com MSC Direct]&lt;br /&gt;
* [https://fastenal.com Fastenal]&lt;br /&gt;
* [https://acmetools.com Acme Tools]&lt;br /&gt;
* [https://ferguson.com Ferguson]&lt;br /&gt;
* [https://summitracing.com Summit Racing Equipment]&lt;br /&gt;
* [https://toolnut.com ToolNut]&lt;br /&gt;
* [https://zoro.com Zoro]&lt;br /&gt;
* [https://supplyhouse.com Supply House]&lt;br /&gt;
===Wire===&lt;br /&gt;
* [https://nassaunationalcable.com Nassau Nat'l Cable]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1200</id>
		<title>Electrical tools</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1200"/>
		<updated>2024-10-21T18:57:50Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Suppliers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Suppliers===&lt;br /&gt;
* [https://mscdirect.com MSC Direct]&lt;br /&gt;
* [https://fastenal.com Fastenal]&lt;br /&gt;
* [https://acmetools.com Acme Tools]&lt;br /&gt;
* [https://ferguson.com Ferguson]&lt;br /&gt;
* [https://summitracing.com Summit Racing Equipment]&lt;br /&gt;
* [https://toolnut.com ToolNut]&lt;br /&gt;
* [https://zoro.com Zoro]&lt;br /&gt;
* [https://supplyhouse.com Supply House]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1199</id>
		<title>Electrical tools</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1199"/>
		<updated>2024-10-17T23:55:04Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Suppliers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Suppliers===&lt;br /&gt;
* [https://mscdirect.com MSC Direct]&lt;br /&gt;
* [https://fastenal.com Fastenal]&lt;br /&gt;
* [https://acmetools.com Acme Tools]&lt;br /&gt;
* [https://ferguson.com Ferguson]&lt;br /&gt;
* [https://summitracing.com Summit Racing Equipment]&lt;br /&gt;
* [https://toolnut.com ToolNut]&lt;br /&gt;
* [https://zoro.com Zoro]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Linux_Installation&amp;diff=1190</id>
		<title>Linux Installation</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Linux_Installation&amp;diff=1190"/>
		<updated>2024-08-02T04:16:47Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Misc Shit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Misc Shit===&lt;br /&gt;
* Don't forget to install &amp;lt;code&amp;gt;intel-mkl&amp;lt;/code&amp;gt; if using Intel CPU&lt;br /&gt;
* Install either &amp;lt;code&amp;gt;intel-ucode&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;amd-ucode&amp;lt;/code&amp;gt; for microcode update. &lt;br /&gt;
* Post-install, getting prompted to put media in cdrom drive:&lt;br /&gt;
 sudo sed -i '/cdrom/d' /etc/apt/sources.list&lt;br /&gt;
 grep -v '#' /etc/apt/sources.list  #see which sources remain&lt;br /&gt;
&lt;br /&gt;
* Need to install &amp;lt;code&amp;gt;nodejs&amp;lt;/code&amp;gt; before using jupyter&lt;br /&gt;
* Id for external wifi: enx00051bd025e7&lt;br /&gt;
* To access root account: &amp;lt;code&amp;gt;sudo passwd root&amp;lt;/code&amp;gt;&lt;br /&gt;
* printer: lpd://BRW8CC84B1D7416/BINARY_P1&lt;br /&gt;
&lt;br /&gt;
===Installed Programs===&lt;br /&gt;
* Firefox&lt;br /&gt;
* Chrome&lt;br /&gt;
* Mailspring&lt;br /&gt;
* Slack&lt;br /&gt;
* Jupyter qtconsole&lt;br /&gt;
* Screenshot&lt;br /&gt;
* Folders&lt;br /&gt;
* R-studio&lt;br /&gt;
* WPS Sheets&lt;br /&gt;
* Tor&lt;br /&gt;
* Whats Desk&lt;br /&gt;
* LXTerminal&lt;br /&gt;
* Calibre&lt;br /&gt;
* Spyder&lt;br /&gt;
* Clementine&lt;br /&gt;
* Virtual Box&lt;br /&gt;
* TexStudio&lt;br /&gt;
* MySQL Workbench&lt;br /&gt;
* Opera&lt;br /&gt;
* Octave&lt;br /&gt;
&lt;br /&gt;
===Bare metal OS install===&lt;br /&gt;
from: &lt;br /&gt;
* https://www.linuxbabe.com/virtualbox/install-arch-linux-uefi-hardware-virtualbox&lt;br /&gt;
* https://www.tecmint.com/arch-linux-installation-and-configuration-guide/&lt;br /&gt;
* https://wiki.archlinux.org/index.php/Installation_guide&lt;br /&gt;
&lt;br /&gt;
# loadkeys=dvorak&lt;br /&gt;
# ls /sys/firmware/efi/efivars&lt;br /&gt;
# timedatectl set-ntp true&lt;br /&gt;
# parted -l&lt;br /&gt;
# parted /dev/sda mklabel gpt&lt;br /&gt;
# parted /dev/sda&lt;br /&gt;
# mkpart primary fat32 2048s 1050624s&lt;br /&gt;
# unit MiB&lt;br /&gt;
# set 1 boot on&lt;br /&gt;
# print&lt;br /&gt;
# mkpart primary ext4 1052672s 88% (24GB swap)&lt;br /&gt;
# mkpart swap 171NNN MiBs 100%&lt;br /&gt;
# lsblk&lt;br /&gt;
# mkfs -t fat /dev/sda1; mkfs -t ext4 /dev/sda2; mkswap /dev/sda3&lt;br /&gt;
# mount /dev/sda2 /mnt&lt;br /&gt;
# mkdir /mnt/boot; mount /dev/sda1 /mnt/boot; swapon /dev/sda3 &lt;br /&gt;
# nano /etc/pacman.d/mirrorlist&lt;br /&gt;
 	&lt;br /&gt;
;INSTALL&lt;br /&gt;
[should locale.gen, etc. be run up here?]&lt;br /&gt;
# pacstrap /mnt base base-devel linux linux-firmware nano intel-ucode zsh dhcpcd&lt;br /&gt;
# genfstab -U -p /mnt &amp;gt;&amp;gt; /mnt/etc/fstab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;CHROOT&lt;br /&gt;
# arch-chroot /mnt&lt;br /&gt;
;LOCAL SETTINGS&lt;br /&gt;
# ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime&lt;br /&gt;
# hwclock --systohc --utc&lt;br /&gt;
# echo LANG=en_US.UTF-8 &amp;gt; /etc/locale.conf; export LANG=en_US.UTF-8&lt;br /&gt;
# echo KEYMAP=dvorak &amp;gt; /etc/vconsole.conf &lt;br /&gt;
# locale-gen&lt;br /&gt;
# echo msiarch &amp;gt; /etc/hostname&lt;br /&gt;
# /etc/hosts&lt;br /&gt;
: 127.0.0.1	localhost&lt;br /&gt;
: ::1		localhost&lt;br /&gt;
: 127.0.1.1	msiarch.localdomain msiarch&lt;br /&gt;
&lt;br /&gt;
;USER ADMIN&lt;br /&gt;
# passwd&lt;br /&gt;
# pacman -S zsh&lt;br /&gt;
# useradd -mg users -G wheel,storage,power -s /bin/bash&lt;br /&gt;
# systemctl enable dhcpcd&lt;br /&gt;
# pacman -S networkmanager networkmanager-vpnc network-manager-applet&lt;br /&gt;
# pacman -S sudo; uncomment %wheel ... &lt;br /&gt;
&lt;br /&gt;
;BOOT MGR&lt;br /&gt;
# pacman -S grub efibootmgr&lt;br /&gt;
# grub-install /dev/sda --target=x86_64-efi --efi-directory=/boot&lt;br /&gt;
# grub-mkconfig -o /boot/grub/grub.cfg&lt;br /&gt;
&lt;br /&gt;
;EXTRAS&lt;br /&gt;
# pacman -S xorg-server xorg-xinit&lt;br /&gt;
# pacman -S ttf-dejavu ttf-ubuntu-font-&lt;br /&gt;
# xf86-input-synaptics (trackpad)&lt;br /&gt;
# virtualbox-guest-utils, xf86-video-intel&lt;br /&gt;
# xorg-twm xorg-clock xterm&lt;br /&gt;
&lt;br /&gt;
add the following ~/.xinitrc file:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Xinitrc&lt;br /&gt;
if [ -d /etc/X11/xinitrc.d ] ; then&lt;br /&gt;
    for f in /etc/X11/xinit/xinitrc.d/?.sh ; do&lt;br /&gt;
	[ -x &amp;quot;$f&amp;quot; ] &amp;amp;&amp;amp; . &amp;quot;$f&amp;quot;&lt;br /&gt;
    done&lt;br /&gt;
    unset f&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
setxkbmap dvorak &lt;br /&gt;
lxterminal &amp;amp; &lt;br /&gt;
cbatticon &amp;amp; &lt;br /&gt;
exec startlxde&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Other Programs to Remember===&lt;br /&gt;
yay/paru: &lt;br /&gt;
* opera, opera-ffmpeg-codecs-bin&lt;br /&gt;
* rstudio-desktop-bin&lt;br /&gt;
* geogebra-6-bn&lt;br /&gt;
* zoom&lt;br /&gt;
* wps-office-bwrap&lt;br /&gt;
* djvu2pdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
regular pacman:&lt;br /&gt;
* texstudio (automatically installs texlive)&lt;br /&gt;
* zim&lt;br /&gt;
* ttf-ubuntu-font-family&lt;br /&gt;
* nmap, bind&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1182</id>
		<title>Circuit software</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1182"/>
		<updated>2024-06-18T15:51:45Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Circuit Drawing Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Circuit Drawing Software==&lt;br /&gt;
* [https://circuitlab.com CircuitLab] (online) and [https://ultimateelectronicsbook.com/ Ultimate Electronics] book&lt;br /&gt;
* Xcircuit and some [https://zinka.wordpress.com/2015/04/04/xcircuit-a-simple-but-powerful-schematic-drawing-tool/ guidance]&lt;br /&gt;
* SPICE&lt;br /&gt;
* Inkscape &lt;br /&gt;
** [https://github.com/fsmMLK/inkscapeCircuitSymbols/tree/master/latest inkscapeCircuitSymbols]&lt;br /&gt;
** [https://fsmmlk.github.io/inkscapeMadeEasy/installation.html inkscapeMadeEasy]&lt;br /&gt;
** [https://textext.github.io/textext/ texText] plug-in for Inkscape&lt;br /&gt;
** [https://github.com/upb-lea/Inkscape_electric_Symbols/tree/master/Sources Inkscape_Electrical_Symbols] located in &amp;lt;code&amp;gt;/home/user/.config/inkscape/symbols&amp;lt;/code&amp;gt;&lt;br /&gt;
* circuitikz&lt;br /&gt;
* [https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ Circuit_macros] based on M4 macro language and &amp;lt;code&amp;gt;pic&amp;lt;/code&amp;gt;&lt;br /&gt;
* Notes on [https://castel.dev/post/lecture-notes-2/ integrating Inkscape with &amp;lt;math&amp;gt;\LaTeX&amp;lt;/math&amp;gt; ]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1181</id>
		<title>Circuit software</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1181"/>
		<updated>2024-06-18T15:51:20Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Circuit Drawing Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Circuit Drawing Software==&lt;br /&gt;
* [https://circuitlab.com CircuitLab] (online) and [https://ultimateelectronicsbook.com/ Ultimate Electronics] book&lt;br /&gt;
* Xcircuit and some [https://zinka.wordpress.com/2015/04/04/xcircuit-a-simple-but-powerful-schematic-drawing-tool/ guidance]&lt;br /&gt;
* SPICE&lt;br /&gt;
* Inkscape &lt;br /&gt;
** [https://github.com/fsmMLK/inkscapeCircuitSymbols/tree/master/latest inkscapeCircuitSymbols]&lt;br /&gt;
** [https://fsmmlk.github.io/inkscapeMadeEasy/installation.html inkscapeMadeEasy]&lt;br /&gt;
** [https://textext.github.io/textext/ texText] plug-in for Inkscape&lt;br /&gt;
** [https://github.com/upb-lea/Inkscape_electric_Symbols/tree/master/Sources Inkscape_Electrical_Symbols] located in &amp;lt;code&amp;gt;/home/user/.config/inkscape/symbols&amp;lt;/code&amp;gt;&lt;br /&gt;
* circuitikz&lt;br /&gt;
* [https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ Circuit_macros] based on M4 macro language and &amp;lt;code&amp;gt;pic&amp;lt;/code&amp;gt;&lt;br /&gt;
* Notes on [https://castel.dev/post/lecture-notes-2/ integrating Inkscape with &amp;lt;math&amp;gt;\LaTeX&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1180</id>
		<title>Circuit software</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1180"/>
		<updated>2024-06-18T15:51:01Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Circuit Drawing Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Circuit Drawing Software==&lt;br /&gt;
* [https://circuitlab.com CircuitLab] (online) and [https://ultimateelectronicsbook.com/ Ultimate Electronics] book&lt;br /&gt;
* Xcircuit and some [https://zinka.wordpress.com/2015/04/04/xcircuit-a-simple-but-powerful-schematic-drawing-tool/ guidance]&lt;br /&gt;
* SPICE&lt;br /&gt;
* Inkscape &lt;br /&gt;
** [https://github.com/fsmMLK/inkscapeCircuitSymbols/tree/master/latest inkscapeCircuitSymbols]&lt;br /&gt;
** [https://fsmmlk.github.io/inkscapeMadeEasy/installation.html inkscapeMadeEasy]&lt;br /&gt;
** [https://textext.github.io/textext/ texText] plug-in for Inkscape&lt;br /&gt;
** [https://github.com/upb-lea/Inkscape_electric_Symbols/tree/master/Sources Inkscape_Electrical_Symbols] located in &amp;lt;code&amp;gt;/home/user/.config/inkscape/symbols&amp;lt;/code&amp;gt;&lt;br /&gt;
* circuitikz&lt;br /&gt;
* [https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ Circuit_macros] based on M4 macro language and &amp;lt;code&amp;gt;pic&amp;lt;/code&amp;gt;&lt;br /&gt;
* Notes on [https://castel.dev/post/lecture-notes-2/ integrating Inkscape with &amp;lt;math&amp;gt;LaTeX&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1179</id>
		<title>Circuit software</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1179"/>
		<updated>2024-06-18T14:14:01Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Circuit Drawing Software==&lt;br /&gt;
* [https://circuitlab.com CircuitLab] (online) and [https://ultimateelectronicsbook.com/ Ultimate Electronics] book&lt;br /&gt;
* Xcircuit and some [https://zinka.wordpress.com/2015/04/04/xcircuit-a-simple-but-powerful-schematic-drawing-tool/ guidance]&lt;br /&gt;
* SPICE&lt;br /&gt;
* Inkscape &lt;br /&gt;
** [https://github.com/fsmMLK/inkscapeCircuitSymbols/tree/master/latest inkscapeCircuitSymbols]&lt;br /&gt;
** [https://fsmmlk.github.io/inkscapeMadeEasy/installation.html inkscapeMadeEasy]&lt;br /&gt;
** [https://textext.github.io/textext/ texText] plug-in for Inkscape&lt;br /&gt;
** [https://github.com/upb-lea/Inkscape_electric_Symbols/tree/master/Sources Inkscape_Electrical_Symbols] located in &amp;lt;code&amp;gt;/home/user/.config/inkscape/symbols&amp;lt;/code&amp;gt;&lt;br /&gt;
* circuitikz&lt;br /&gt;
* [https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ Circuit_macros] based on M4 macro language and &amp;lt;code&amp;gt;pic&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1178</id>
		<title>Circuit software</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Circuit_software&amp;diff=1178"/>
		<updated>2024-06-18T14:13:12Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Circuit Drawing Software==&lt;br /&gt;
* [https://circuitlab.com CircuitLab] (online) and [https://ultimateelectronicsbook.com/ Ultimate Electronics] book&lt;br /&gt;
* Xcircuit and some [https://zinka.wordpress.com/2015/04/04/xcircuit-a-simple-but-powerful-schematic-drawing-tool/ guidance]&lt;br /&gt;
* SPICE&lt;br /&gt;
* Inkscape &lt;br /&gt;
** [https://github.com/fsmMLK/inkscapeCircuitSymbols/tree/master/latest inkscapeCircuitSymbols]&lt;br /&gt;
** [https://fsmmlk.github.io/inkscapeMadeEasy/installation.html inkscapeMadeEasy]&lt;br /&gt;
** [https://textext.github.io/textext/ texText] plug-in for Inkscape&lt;br /&gt;
* circuitikz&lt;br /&gt;
* [https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ Circuit_macros] based on M4 macro language and &amp;lt;code&amp;gt;pic&amp;lt;/code&amp;gt;&lt;br /&gt;
* [https://github.com/upb-lea/Inkscape_electric_Symbols/tree/master/Sources Inkscape_Electrical_Symbols] located in &amp;lt;code&amp;gt;/home/user/.config/inkscape/symbols&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=US_Court_System&amp;diff=1176</id>
		<title>US Court System</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=US_Court_System&amp;diff=1176"/>
		<updated>2024-06-16T16:54:14Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Supreme Court of the United States==&lt;br /&gt;
* John Roberts (1/27/55)&lt;br /&gt;
* Clarence Thomas (6/23/48)&lt;br /&gt;
* Samuel Alito (4/1/50)&lt;br /&gt;
* Sonia Sotomayor (6/25/54)&lt;br /&gt;
* Elena Kagan (4/28/60)&lt;br /&gt;
* Neil Gorsuch (8/29/67)&lt;br /&gt;
* Brett Kavanaugh (2/12/65)&lt;br /&gt;
* Amy Coney Barrett (1/28/72)&lt;br /&gt;
* Ketanji Brown Jackson (9/14/70)&lt;br /&gt;
&lt;br /&gt;
==Federal Circuits==&lt;br /&gt;
1 - ME, MA, RI, NH&lt;br /&gt;
&lt;br /&gt;
2 - NY, VT, CT&lt;br /&gt;
&lt;br /&gt;
3 - PA, NJ, DE&lt;br /&gt;
&lt;br /&gt;
4 - WV, VA, NC, SC&lt;br /&gt;
&lt;br /&gt;
5 - TX, LA, MS&lt;br /&gt;
&lt;br /&gt;
6 - MI, OH, KY, TN&lt;br /&gt;
&lt;br /&gt;
7 - WI, IL, IN&lt;br /&gt;
&lt;br /&gt;
8 - ND, SD, NE, MN, IA, MO, AR&lt;br /&gt;
&lt;br /&gt;
9 - CA, AZ, NV, OR, ID, WA, MT&lt;br /&gt;
&lt;br /&gt;
10 - UT, WY, CO, NM, KS, OK, AK, HI&lt;br /&gt;
&lt;br /&gt;
11 - AL, GA, FL&lt;br /&gt;
&lt;br /&gt;
==Bible on Judging==&lt;br /&gt;
* [https://biblehub.com/matthew/7-1.htm Judge not, lest one be judged ]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Lifting&amp;diff=1175</id>
		<title>Lifting</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Lifting&amp;diff=1175"/>
		<updated>2024-06-06T01:40:38Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: Created page with &amp;quot;===Conjugate Method=== * [https://www.elitefts.com/education/16-week-conjugate-periodization-program-for-novice-powerlifters/ 16-week program] * [https://www.elitefts.com/educ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Conjugate Method===&lt;br /&gt;
* [https://www.elitefts.com/education/16-week-conjugate-periodization-program-for-novice-powerlifters/ 16-week program]&lt;br /&gt;
* [https://www.elitefts.com/education/12-week-conjugate-program-for-raw-powerlifting/ 12-week program]&lt;br /&gt;
* [https://www.andybaker.com/a-simple-complete-guide-to-conjugate-westside-training/ Andy Baker/Westside]&lt;br /&gt;
* [https://www.syattfitness.com/westside-barbell/the-westside-barbell-conjugate-method-a-users-guide/ Syatt Fitness/Westside]&lt;br /&gt;
* [https://liftvault.com/programs/12-week-programs/ LiftVault (various programs)]&lt;br /&gt;
* [https://mathiasmethod.com/powerlifting-power-dynamic-training-program/ Mathias Strength]&lt;br /&gt;
* [https://exrx.net/WeightTraining/Powerlifting/Westside Compilation of Westside Programs]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Shopping&amp;diff=1174</id>
		<title>Shopping</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Shopping&amp;diff=1174"/>
		<updated>2024-06-04T03:10:36Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: Created page with &amp;quot;===General Items=== * [https://www.backcountry.com Back Country] * [https://www.sierra.com Sierra] * [https://www.kleinboot.com Kleinschmidt's General Store]  Glasses * [https...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===General Items===&lt;br /&gt;
* [https://www.backcountry.com Back Country]&lt;br /&gt;
* [https://www.sierra.com Sierra]&lt;br /&gt;
* [https://www.kleinboot.com Kleinschmidt's General Store]&lt;br /&gt;
&lt;br /&gt;
Glasses&lt;br /&gt;
* [https://www.zerouv.com ZeroUV]&lt;br /&gt;
* [https://www.peepers.com Peepers]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Conduit&amp;diff=1169</id>
		<title>Conduit</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Conduit&amp;diff=1169"/>
		<updated>2024-03-09T20:10:45Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Top Ten Conduit Producers==&lt;br /&gt;
* [https://www.atkore.com Atkore International]&lt;br /&gt;
* [https://www.cantex.com Cantex]&lt;br /&gt;
* [https://www.wheatland.com Wheatland Tube]&lt;br /&gt;
* [https://www.calpiping.com/ Calpipe Industries]&lt;br /&gt;
* [https://www.nucortubular.com/product/electrical-conduit/ Republic Conduit (Nucor)]&lt;br /&gt;
* [https://championfiberglass.com/8-types-of-electrical-conduit-and-their-uses/ Champion Fiberglass]&lt;br /&gt;
* [https://www.atkore.com/About-Us/Brands/Columbia-MBF Columbia MBF (Atkore)]&lt;br /&gt;
* [https://robroy.com/ Robroy Industries]&lt;br /&gt;
* [https://www.americanconduit.com/ American Conduit]&lt;br /&gt;
* [https://www.atkore.com/About-Us/Brands/Heritage-Plastics Heritage Plastics (Atkore)]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Suppliers===&lt;br /&gt;
* [https://www.smcelectric.com/calpipe-industries/ SMC Electric]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1149</id>
		<title>Spelling</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1149"/>
		<updated>2024-01-04T16:14:46Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To get spell-checking to work in TexStudio, do the following: &lt;br /&gt;
 pacman -S hunspell hunspell-en_us&lt;br /&gt;
&lt;br /&gt;
If not automatically picked up, go to Options&amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; Configure TexStudio...&amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; Language Checking. The &amp;quot;Default Language&amp;quot; should be &amp;quot;en_US-large&amp;quot;. If not, use the Import Dictionary... dialog box below it. (You may have to install Libre or Open Office.)&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1148</id>
		<title>Spelling</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1148"/>
		<updated>2024-01-04T16:14:01Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To get spell-checking to work in TexStudio, do the following: &lt;br /&gt;
 pacman -S hunspell hunspell-en_us&lt;br /&gt;
&lt;br /&gt;
If not automatically picked up, go to Options&amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; Configure TexStudio...&amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; Language Checking. The &amp;quot;Default Language&amp;quot; should be &amp;quot;en_US-large&amp;quot;. If not, use the Import Dictionary... option.&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1147</id>
		<title>Spelling</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1147"/>
		<updated>2024-01-04T16:13:44Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To get spell-checking to work in TexStudio, do the following: &lt;br /&gt;
 pacman -S hunspell hunspell-en_us&lt;br /&gt;
&lt;br /&gt;
If not automatically picked up, go to Options&amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; Configure TexStudio...&amp;lt;math&amp;gt;\to&amp;lt;math&amp;gt; Language Checking. The &amp;quot;Default Language&amp;quot; should be &amp;quot;en_US-large&amp;quot;. If not, use the Import Dictionary... option.&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1146</id>
		<title>Spelling</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Spelling&amp;diff=1146"/>
		<updated>2024-01-04T16:11:38Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: Created page with &amp;quot;To get spell-checking to work in TexStudio, do the following:   pacman -S hunspell hunspell-en_us  If not automatically picked up, go to Options$\to$&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To get spell-checking to work in TexStudio, do the following: &lt;br /&gt;
 pacman -S hunspell hunspell-en_us&lt;br /&gt;
&lt;br /&gt;
If not automatically picked up, go to Options$\to$&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Usb&amp;diff=1145</id>
		<title>Usb</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Usb&amp;diff=1145"/>
		<updated>2024-01-04T16:10:14Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* USB drives in ArchLinux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==USB drives in ArchLinux==&lt;br /&gt;
1. Install &amp;lt;code&amp;gt;udisks2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Manual mount:&lt;br /&gt;
  $ udisksctl mount -b /dev/sda1 &lt;br /&gt;
3. To unmount:&lt;br /&gt;
  $ udisksctl unmount -b /dev/sda1&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=1019</id>
		<title>Python venv</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=1019"/>
		<updated>2023-10-19T00:12:48Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installing Anaconda===&lt;br /&gt;
It appears ArchLinux no longer supports non-virtual Python environments. So I'm making the plunge.&lt;br /&gt;
&lt;br /&gt;
 Do you wish to update your shell profile to automatically initialize conda?&lt;br /&gt;
 This will activate conda on startup and change the command prompt when activated.&lt;br /&gt;
 If you'd prefer that conda's base environment not be activated on startup,&lt;br /&gt;
   run the following command when conda is activated:&lt;br /&gt;
&lt;br /&gt;
 conda config --set auto_activate_base false&lt;br /&gt;
&lt;br /&gt;
 You can undo this by running `conda init --reverse $SHELL`? [yes|no]&lt;br /&gt;
&lt;br /&gt;
To add a kernel to the default Jupyter lab/notebook: &lt;br /&gt;
 python -m ipykernel install --user --name=myenv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Establish a new virtual environment===&lt;br /&gt;
 python -m venv venv&lt;br /&gt;
Next, activate it:&lt;br /&gt;
 source venv/bin/activate&lt;br /&gt;
You should see the new prompt indicating you're inside the virtual environment:&lt;br /&gt;
 (venv) $&lt;br /&gt;
Next install the versions you need of various packages, specifying their version numbers:&lt;br /&gt;
 pip install numpy==1.22.0&lt;br /&gt;
To exit, type: &lt;br /&gt;
 (venv) $ deactivate&lt;br /&gt;
&lt;br /&gt;
Reference: [https://realpython.com/python-virtual-environments-a-primer/ Python virtual environments: A primer]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=1018</id>
		<title>Python venv</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=1018"/>
		<updated>2023-10-12T20:15:11Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installing Anaconda===&lt;br /&gt;
It appears ArchLinux no longer supports non-virtual Python environments. So I'm making the plunge.&lt;br /&gt;
&lt;br /&gt;
 Do you wish to update your shell profile to automatically initialize conda?&lt;br /&gt;
 This will activate conda on startup and change the command prompt when activated.&lt;br /&gt;
 If you'd prefer that conda's base environment not be activated on startup,&lt;br /&gt;
   run the following command when conda is activated:&lt;br /&gt;
&lt;br /&gt;
 conda config --set auto_activate_base false&lt;br /&gt;
&lt;br /&gt;
 You can undo this by running `conda init --reverse $SHELL`? [yes|no]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Establish a new virtual environment===&lt;br /&gt;
 python -m venv venv&lt;br /&gt;
Next, activate it:&lt;br /&gt;
 source venv/bin/activate&lt;br /&gt;
You should see the new prompt indicating you're inside the virtual environment:&lt;br /&gt;
 (venv) $&lt;br /&gt;
Next install the versions you need of various packages, specifying their version numbers:&lt;br /&gt;
 pip install numpy==1.22.0&lt;br /&gt;
To exit, type: &lt;br /&gt;
 (venv) $ deactivate&lt;br /&gt;
&lt;br /&gt;
Reference: [https://realpython.com/python-virtual-environments-a-primer/ Python virtual environments: A primer]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1017</id>
		<title>Reading list</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1017"/>
		<updated>2023-10-05T20:07:25Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* R resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Current Reading List==&lt;br /&gt;
&lt;br /&gt;
Books reading:&lt;br /&gt;
* The Stats &amp;amp; Calculus with Python Workshop (Farrell, Fuentes, et al.; Packt)&lt;br /&gt;
* Regression Models for Data Science in R (Yassine Mousaif)&lt;br /&gt;
* Handbook of Regression Modeling in People Analytics (K.McNulty; CRC)&lt;br /&gt;
* Machine Learning for Earth Sciences (Python) (Petrelli; Springer)&lt;br /&gt;
* Learning Data Science with Python (Sam Lau et al.; O'Reilly)&lt;br /&gt;
* Essential Statistics for non-STEM Data Analysts (Rongpeng Li; Packt)&lt;br /&gt;
* Foundations of Statistics For Data Scientists w/ R &amp;amp; Python (Agresti/Kateri; CRC)&lt;br /&gt;
* Football Analytics with Python &amp;amp; R (Eric A. Eager, Richard A. Erickson)&lt;br /&gt;
&lt;br /&gt;
===R resources===&lt;br /&gt;
* Datasets for popular [https://github.com/shifteight/R-lang R books]&lt;br /&gt;
* Github page for [https://github.com/rmcelreath/rethinking/tree/master Statistical Rethinking] by Robert McElreath&lt;br /&gt;
* ggplot2 [http://www.sthda.com/english/wiki/ggplot2-scatter-plots-quick-start-guide-r-software-and-data-visualization tutorial] and another [http://r-statistics.co/Complete-Ggplot2-Tutorial-Part1-With-R-Code.html tutorial]&lt;br /&gt;
* Markdown [https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables cheatsheet]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1016</id>
		<title>Reading list</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1016"/>
		<updated>2023-10-05T19:20:54Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* R resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Current Reading List==&lt;br /&gt;
&lt;br /&gt;
Books reading:&lt;br /&gt;
* The Stats &amp;amp; Calculus with Python Workshop (Farrell, Fuentes, et al.; Packt)&lt;br /&gt;
* Regression Models for Data Science in R (Yassine Mousaif)&lt;br /&gt;
* Handbook of Regression Modeling in People Analytics (K.McNulty; CRC)&lt;br /&gt;
* Machine Learning for Earth Sciences (Python) (Petrelli; Springer)&lt;br /&gt;
* Learning Data Science with Python (Sam Lau et al.; O'Reilly)&lt;br /&gt;
* Essential Statistics for non-STEM Data Analysts (Rongpeng Li; Packt)&lt;br /&gt;
* Foundations of Statistics For Data Scientists w/ R &amp;amp; Python (Agresti/Kateri; CRC)&lt;br /&gt;
* Football Analytics with Python &amp;amp; R (Eric A. Eager, Richard A. Erickson)&lt;br /&gt;
&lt;br /&gt;
===R resources===&lt;br /&gt;
* Datasets for popular [https://github.com/shifteight/R-lang R books]&lt;br /&gt;
* Github page for [https://github.com/rmcelreath/rethinking/tree/master Statistical Rethinking] by Robert McElreath&lt;br /&gt;
* ggplot2 [http://www.sthda.com/english/wiki/ggplot2-scatter-plots-quick-start-guide-r-software-and-data-visualization tutorial]&lt;br /&gt;
* Markdown [https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables cheatsheet]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1015</id>
		<title>Reading list</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1015"/>
		<updated>2023-10-05T19:19:23Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* R resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Current Reading List==&lt;br /&gt;
&lt;br /&gt;
Books reading:&lt;br /&gt;
* The Stats &amp;amp; Calculus with Python Workshop (Farrell, Fuentes, et al.; Packt)&lt;br /&gt;
* Regression Models for Data Science in R (Yassine Mousaif)&lt;br /&gt;
* Handbook of Regression Modeling in People Analytics (K.McNulty; CRC)&lt;br /&gt;
* Machine Learning for Earth Sciences (Python) (Petrelli; Springer)&lt;br /&gt;
* Learning Data Science with Python (Sam Lau et al.; O'Reilly)&lt;br /&gt;
* Essential Statistics for non-STEM Data Analysts (Rongpeng Li; Packt)&lt;br /&gt;
* Foundations of Statistics For Data Scientists w/ R &amp;amp; Python (Agresti/Kateri; CRC)&lt;br /&gt;
* Football Analytics with Python &amp;amp; R (Eric A. Eager, Richard A. Erickson)&lt;br /&gt;
&lt;br /&gt;
===R resources===&lt;br /&gt;
* Datasets for popular [https://github.com/shifteight/R-lang R books]&lt;br /&gt;
* Github page for [https://github.com/rmcelreath/rethinking/tree/master Statistical Rethinking] by Robert McElreath&lt;br /&gt;
* ggplot2 [http://www.sthda.com/english/wiki/ggplot2-scatter-plots-quick-start-guide-r-software-and-data-visualization tutorial]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1014</id>
		<title>Reading list</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1014"/>
		<updated>2023-10-05T19:12:11Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* R resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Current Reading List==&lt;br /&gt;
&lt;br /&gt;
Books reading:&lt;br /&gt;
* The Stats &amp;amp; Calculus with Python Workshop (Farrell, Fuentes, et al.; Packt)&lt;br /&gt;
* Regression Models for Data Science in R (Yassine Mousaif)&lt;br /&gt;
* Handbook of Regression Modeling in People Analytics (K.McNulty; CRC)&lt;br /&gt;
* Machine Learning for Earth Sciences (Python) (Petrelli; Springer)&lt;br /&gt;
* Learning Data Science with Python (Sam Lau et al.; O'Reilly)&lt;br /&gt;
* Essential Statistics for non-STEM Data Analysts (Rongpeng Li; Packt)&lt;br /&gt;
* Foundations of Statistics For Data Scientists w/ R &amp;amp; Python (Agresti/Kateri; CRC)&lt;br /&gt;
* Football Analytics with Python &amp;amp; R (Eric A. Eager, Richard A. Erickson)&lt;br /&gt;
&lt;br /&gt;
===R resources===&lt;br /&gt;
* Datasets for popular [https://github.com/shifteight/R-lang R books]&lt;br /&gt;
* Github page for [https://github.com/rmcelreath/rethinking/tree/master Statistical Rethinking] by Robert McElreath&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1013</id>
		<title>Reading list</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1013"/>
		<updated>2023-10-05T18:49:35Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Current Reading List==&lt;br /&gt;
&lt;br /&gt;
Books reading:&lt;br /&gt;
* The Stats &amp;amp; Calculus with Python Workshop (Farrell, Fuentes, et al.; Packt)&lt;br /&gt;
* Regression Models for Data Science in R (Yassine Mousaif)&lt;br /&gt;
* Handbook of Regression Modeling in People Analytics (K.McNulty; CRC)&lt;br /&gt;
* Machine Learning for Earth Sciences (Python) (Petrelli; Springer)&lt;br /&gt;
* Learning Data Science with Python (Sam Lau et al.; O'Reilly)&lt;br /&gt;
* Essential Statistics for non-STEM Data Analysts (Rongpeng Li; Packt)&lt;br /&gt;
* Foundations of Statistics For Data Scientists w/ R &amp;amp; Python (Agresti/Kateri; CRC)&lt;br /&gt;
* Football Analytics with Python &amp;amp; R (Eric A. Eager, Richard A. Erickson)&lt;br /&gt;
&lt;br /&gt;
===R resources===&lt;br /&gt;
* Datasets for popular [https://github.com/shifteight/R-lang R books]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=LAUSD&amp;diff=1011</id>
		<title>LAUSD</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=LAUSD&amp;diff=1011"/>
		<updated>2023-09-27T23:41:06Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Substitute Teaching Application */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Substitute Teaching Application===&lt;br /&gt;
* Credentialing [https://www.ctc.ca.gov/credentials/leaflets/basic-skills-requirement-(cl-667) website]&lt;br /&gt;
* Intern program [https://www.lausd.org/Page/7324 application]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=LAUSD&amp;diff=1010</id>
		<title>LAUSD</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=LAUSD&amp;diff=1010"/>
		<updated>2023-09-27T23:39:41Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: Created page with &amp;quot;===Substitute Teaching Application=== * Credentialing [https://www.ctc.ca.gov/credentials/leaflets/basic-skills-requirement-(cl-667) website]&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Substitute Teaching Application===&lt;br /&gt;
* Credentialing [https://www.ctc.ca.gov/credentials/leaflets/basic-skills-requirement-(cl-667) website]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Online_books&amp;diff=1007</id>
		<title>Online books</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Online_books&amp;diff=1007"/>
		<updated>2023-09-03T00:41:24Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Applied Math &amp;amp; Stats */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Computer Science===&lt;br /&gt;
* [http://tata.gforge.inria.fr/ Tree Automata Techniques and Applications]&lt;br /&gt;
&lt;br /&gt;
===Math===&lt;br /&gt;
* Linear Algebra books from [http://www.freebookcentre.net/Mathematics/Linear-Algebra-Books.html freebookcentre.net]&lt;br /&gt;
* Differential equations in Python from [https://pundit.pratt.duke.edu/wiki/Python:Ordinary_Differential_Equations Duke's Pratt Center]&lt;br /&gt;
* [https://activecalculus.org/vector/book-1.html Multivariable + Vector Calculus] by Schliker, Keller &amp;amp; Long ([https://activecalculus.org activecalculus.org])&lt;br /&gt;
* [https://mathinsight.org/thread/list Math Insight] blog from U Minnesota&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
===Applied Math &amp;amp; Stats===&lt;br /&gt;
* NIST [https://www.itl.nist.gov/div898/handbook/index.htm Engineering Statistics Handbook]&lt;br /&gt;
* NIST [https://dlmf.nist.gov/ Digital Library of Mathematical Functions]&lt;br /&gt;
* [https://otexts.com/fpp2/ Forecasting: Principles &amp;amp; Practice] by Hyndman and Athanasopoulos (R-based)&lt;br /&gt;
* [https://web.stanford.edu/~hastie/CASI_files/PDF/casi.pdf Computer Age Statistical Inference] by Efron &amp;amp; Hastie&lt;br /&gt;
* [https://mixtape.scunning.com/ Causal Inference: The Mixtape] by Scott Cunningham&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Online_books&amp;diff=1006</id>
		<title>Online books</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Online_books&amp;diff=1006"/>
		<updated>2023-09-03T00:40:55Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Applied Math &amp;amp; Stats */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Computer Science===&lt;br /&gt;
* [http://tata.gforge.inria.fr/ Tree Automata Techniques and Applications]&lt;br /&gt;
&lt;br /&gt;
===Math===&lt;br /&gt;
* Linear Algebra books from [http://www.freebookcentre.net/Mathematics/Linear-Algebra-Books.html freebookcentre.net]&lt;br /&gt;
* Differential equations in Python from [https://pundit.pratt.duke.edu/wiki/Python:Ordinary_Differential_Equations Duke's Pratt Center]&lt;br /&gt;
* [https://activecalculus.org/vector/book-1.html Multivariable + Vector Calculus] by Schliker, Keller &amp;amp; Long ([https://activecalculus.org activecalculus.org])&lt;br /&gt;
* [https://mathinsight.org/thread/list Math Insight] blog from U Minnesota&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
===Applied Math &amp;amp; Stats===&lt;br /&gt;
* NIST [https://www.itl.nist.gov/div898/handbook/index.htm Engineering Statistics Handbook]&lt;br /&gt;
* NIST [https://dlmf.nist.gov/ Digital Library of Mathematical Functions]&lt;br /&gt;
* [https://otexts.com/fpp2/ Forecasting: Principles &amp;amp; Practice] by Hyndman and Athanasopoulos (R-based)&lt;br /&gt;
* [https://web.stanford.edu/~hastie/CASI_files/PDF/casi.pdf Computer Age Statistical Inference] by Efron &amp;amp; Hastie&lt;br /&gt;
* [https://mixtape.scunning.com/ Causal Inference: The Mixtape] by Sam Cunning&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=1002</id>
		<title>Latex drawing</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=1002"/>
		<updated>2023-08-16T00:31:31Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Drawing in &amp;lt;math&amp;gt;\LaTeX&amp;lt;/math&amp;gt;=&lt;br /&gt;
* Graphics from [https://steeven9.github.io/USI-LaTeX/html/graphics_index.html LaTeX USI]&lt;br /&gt;
* Tutorials from [https://latexdraw.com/blog/ TikZBlog] &lt;br /&gt;
* My [https://www.desmos.com/calculator/orghner3wt Desmos] account and the [https://desmos.s3.amazonaws.com/Desmos_User_Guide.pdf User Guide]&lt;br /&gt;
* Some examples from [https://texample.net/tikz/examples/andler-optimal-lot-size/ Texexample.net]&lt;br /&gt;
* [https://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf Manual] for the Tikz-Euclide package&lt;br /&gt;
* IPE [https://otfried.github.io/ipe/ Manual] for drawing graphics&lt;br /&gt;
* [https://staff.science.uva.nl/a.j.p.heck/Courses/mptut.pdf Learning METAPOST by Doing]&lt;br /&gt;
* Tables documentation from [https://www.learnlatex.org/en/more-08 learnlatex.org]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=1001</id>
		<title>Latex drawing</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=1001"/>
		<updated>2023-08-15T03:16:15Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Drawing in \LaTeX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Drawing in &amp;lt;math&amp;gt;\LaTeX&amp;lt;/math&amp;gt;=&lt;br /&gt;
* Graphics from [https://steeven9.github.io/USI-LaTeX/html/graphics_index.html LaTeX USI]&lt;br /&gt;
* Tutorials from [https://latexdraw.com/blog/ TikZBlog] &lt;br /&gt;
* My [https://www.desmos.com/calculator/orghner3wt Desmos] account and the [https://desmos.s3.amazonaws.com/Desmos_User_Guide.pdf User Guide]&lt;br /&gt;
* Some examples from [https://texample.net/tikz/examples/andler-optimal-lot-size/ Texexample.net]&lt;br /&gt;
* [https://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf Manual] for the Tikz-Euclide package&lt;br /&gt;
* IPE [https://otfried.github.io/ipe/ Manual] for drawing graphics&lt;br /&gt;
* [https://staff.science.uva.nl/a.j.p.heck/Courses/mptut.pdf Learning METAPOST by Doing]&lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=1000</id>
		<title>Latex drawing</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=1000"/>
		<updated>2023-08-15T03:15:04Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Drawing in &amp;lt;math&amp;gt;\LaTeX&amp;lt;/math&amp;gt;=&lt;br /&gt;
* Graphics from [https://steeven9.github.io/USI-LaTeX/html/graphics_index.html LaTeX USI]&lt;br /&gt;
* Tutorials from [https://latexdraw.com/blog/ TikZBlog] &lt;br /&gt;
* My [https://www.desmos.com/calculator/orghner3wt Desmos] account and the [https://desmos.s3.amazonaws.com/Desmos_User_Guide.pdf User Guide]&lt;br /&gt;
* Some examples from [https://texample.net/tikz/examples/andler-optimal-lot-size/ Texexample.net]&lt;br /&gt;
* [https://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf Manual] for the Tikz-Euclide package&lt;br /&gt;
* IPE [https://otfried.github.io/ipe/ Manual] for drawing graphics&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=999</id>
		<title>Latex drawing</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Latex_drawing&amp;diff=999"/>
		<updated>2023-08-15T03:14:47Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Drawing in \LaTeX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Drawing in &amp;lt;math&amp;gt;\LaTeX&amp;lt;/math&amp;gt;=&lt;br /&gt;
* Graphics from [https://steeven9.github.io/USI-LaTeX/html/graphics_index.html LaTeX USI]&lt;br /&gt;
* Tutorials from [https://latexdraw.com/blog/ TikZBlog] &lt;br /&gt;
* My [https://www.desmos.com/calculator/orghner3wt Desmos] account and the [https://desmos.s3.amazonaws.com/Desmos_User_Guide.pdf User Guide]&lt;br /&gt;
* Some examples from [https://texample.net/tikz/examples/andler-optimal-lot-size/ Texexample.net]&lt;br /&gt;
* [https://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf Manual] for the Tikz-Euclide package&lt;br /&gt;
* IPE [https://otfried.github.io/ipe/] Manual for drawing graphics&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Confusion_Matrix&amp;diff=985</id>
		<title>Confusion Matrix</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Confusion_Matrix&amp;diff=985"/>
		<updated>2023-03-09T19:48:32Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Decode the sklearn confusion matrix:&lt;br /&gt;
&lt;br /&gt;
(This page is just a test of syntax highlighting.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
def deconfuse(tn, fp, fn, tp):&lt;br /&gt;
    print('Precision:', tp/(tp+fp))&lt;br /&gt;
    print('Recall (TPR):', tp/(tp+fn))&lt;br /&gt;
    print('Specificity (TNR):', tn/(tn+fp))&lt;br /&gt;
    print('Accuracy:', (tp+tn)/(tp+tn+fp+fn))&lt;br /&gt;
    print('F1-score:', tp/(tp+(fn+fp)/2))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Confusion Matrix (and other stuff) Resources===&lt;br /&gt;
* [https://lucdemortier.github.io/articles/16/PerformanceMetrics Performance metrics] by some physicist&lt;br /&gt;
* [https://nikolh92.medium.com/confidence-intervals-in-hypothesis-testing-3dd573287d0e Confidence intevals] in Python (medium.com)&lt;br /&gt;
* [https://www.reneshbedre.com/blog/ttest.html 3 types of t-test] in Python (scipy)&lt;br /&gt;
* [https://towardsdatascience.com/confidence-intervals-with-python-bfa28ebb81c CIs in Python] (and a bunch of other stuff; scipy-based)&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=982</id>
		<title>Where was i</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=982"/>
		<updated>2023-02-27T11:07:07Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Python Stats */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* [https://www.freeformatter.com/sql-formatter.html#ad-output SQL text formatter]&lt;br /&gt;
* [https://www.dpriver.com/pp/sqlformat.htm SQL html formatter]&lt;br /&gt;
* [https://learnsql.com/blog/5-tips-managing-long-sql-queries/ Managing long queries]&lt;br /&gt;
* [https://hackr.io/tutorials/learn-mysql?ref=blog MySQL resources]&lt;br /&gt;
* [https://mariadb.org/documentation/#getting-started MariaDB resources]&lt;br /&gt;
* [https://www.mariadbtutorial.com/mariadb-basics/mariadb-update/ MariaDB tutorial]&lt;br /&gt;
* [http://www.norvig.com/21-days.html Peter Norvig's] home page&lt;br /&gt;
* [https://sqlflow.gudusoft.com/#/ SQLFlow visualization tool]&lt;br /&gt;
* [https://pentesttools.net/maskphish-give-a-mask-to-phishing-url/ PenTesting phishing]&lt;br /&gt;
* [https://www.regextester.com/ Regex tetser]&lt;br /&gt;
* [https://developer.toradex.com/knowledge-base/wi-fi-access-point-mode hostapd] wifi hotspot set-up; Arch wiki [https://wiki.archlinux.org/title/Software_access_point#Wi-Fi_link_layer here]&lt;br /&gt;
&lt;br /&gt;
===Long view===&lt;br /&gt;
* [https://algorithmiq.fi/impact AKFU's algo platform]&lt;br /&gt;
* [https://www.seaborg.com/the-reactor energy platform]&lt;br /&gt;
* [https://quantumai.google/cirq/tutorials/basics Google's quantumai/cirq] for Q-computing&lt;br /&gt;
&lt;br /&gt;
===Wifi===&lt;br /&gt;
* [https://www.aircrack-ng.org/doku.php?id=cracking_wpa Cracking WPA]&lt;br /&gt;
* [https://www.aircrack-ng.org/~~V/doku.php?id=injection_test Injection testing]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
* Keep your computer from [https://medium.com/@iman-kassim/small-python-script-thatll-keep-you-online-all-day-cfc1984725fe sleeping]&lt;br /&gt;
&lt;br /&gt;
===Jobs===&lt;br /&gt;
* Advisory/Corporate [https://www.advisoryboard.com board] recruitment&lt;br /&gt;
* Arootah - [https://arootah.com/careers/job-description/?gh_jid=4982901003 family office job]&lt;br /&gt;
&lt;br /&gt;
===LaTeX===&lt;br /&gt;
* Good page on [https://www1.cmc.edu/pages/faculty/aaksoy/latex/latexfive.html figures] and placement&lt;br /&gt;
&lt;br /&gt;
===Python Stats===&lt;br /&gt;
* [https://pythonnumericalmethods.berkeley.edu/notebooks/Index.html Python Programming and Numerical Methods] (Cal Berkeley)&lt;br /&gt;
* [https://www.geeksforgeeks.org/how-to-calculate-and-plot-a-cumulative-distribution-function-with-matplotlib-in-python/ CDFs] in Python&lt;br /&gt;
* [https://towardsdatascience.com/how-to-compare-two-or-more-distributions-9b06ee4d30bf Comparing distributions]&lt;br /&gt;
* [https://www.probabilitycourse.com/ Intro to Proability] course using Python (UMass Amherst), H. Pishro-Nik.&lt;br /&gt;
* Computer Age Statistical Inference by Efron &amp;amp; Hastie. [https://github.com/jrfiedler/CASI_Python/blob/master/ Python code], [https://hastie.su.domains/CASI/data.html book homepage]&lt;br /&gt;
* NIST's probability [https://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm distributions]&lt;br /&gt;
* Python's query and eval [https://medium.com/@dreamferus/level-up-your-pandas-skills-with-query-and-eval-f065951162df functionality]&lt;br /&gt;
&lt;br /&gt;
===Visualization===&lt;br /&gt;
* [https://www.geeksforgeeks.org/data-visualization-with-python/ Geek-for-Geeks] on mpl, plotly, seaborn, bokeh&lt;br /&gt;
* Label data points, from the matplotlib [https://matplotlib.org/stable/gallery/lines_bars_and_markers/barchart.html documentation]&lt;br /&gt;
* [https://cmdlinetips.com/2019/11/how-to-highlight-data-points-with-colors-and-text-in-python/ Python and R tips]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Pandas_options&amp;diff=981</id>
		<title>Pandas options</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Pandas_options&amp;diff=981"/>
		<updated>2023-02-21T22:42:27Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Pandas Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Pandas Options===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
pd.get_option('display.max_rows')&lt;br /&gt;
  60&lt;br /&gt;
pd.set_option('display.max_rows', 200)&lt;br /&gt;
# reset to 60&lt;br /&gt;
pd.reset_option('display.max_rows')&lt;br /&gt;
&lt;br /&gt;
# show more columns&lt;br /&gt;
pd.set_option('display.max_columns', 30)&lt;br /&gt;
&lt;br /&gt;
# change column width (param=characters)&lt;br /&gt;
pd.set_option('display.max_colwidth', 500)  &lt;br /&gt;
&lt;br /&gt;
# precision for floats&lt;br /&gt;
pd.set_option('display.precision', 4)&lt;br /&gt;
&lt;br /&gt;
# display for numbers &lt;br /&gt;
pd.set_option('display.float_format', '{:,}'.format)&lt;br /&gt;
pd.set_option('display.float_format', '{:.4f}'.format) # test this&lt;br /&gt;
# decimal format (100,000.12)&lt;br /&gt;
pd.set_option('display.float_format', '{:,.2f}'.format) &lt;br /&gt;
# percentages&lt;br /&gt;
pd.set_option('display.float_format', '{:.2f}%'.format)&lt;br /&gt;
# dollar sign &lt;br /&gt;
pd.set_option('display.float_format', '${:.2f}'.format)&lt;br /&gt;
&lt;br /&gt;
# use plotly or altair&lt;br /&gt;
pd.set_option('plotting.backend', 'altair')&lt;br /&gt;
&lt;br /&gt;
# output of info()&lt;br /&gt;
pd.set_option('display.max_info_columns', 200)&lt;br /&gt;
pd.set_option('display.max_info_rows', 5)&lt;br /&gt;
&lt;br /&gt;
# Print current option settings&lt;br /&gt;
pd.describe_option()&lt;br /&gt;
# Search options by keyword&lt;br /&gt;
pd.describe_option('rows')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Pandas_options&amp;diff=980</id>
		<title>Pandas options</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Pandas_options&amp;diff=980"/>
		<updated>2023-02-21T22:31:51Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Pandas Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Pandas Options===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
pd.get_option('display.max_rows')&lt;br /&gt;
  60&lt;br /&gt;
pd.set_option('display.max_rows', 200)&lt;br /&gt;
&lt;br /&gt;
pd.reset_option('display.max_rows')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Pandas_options&amp;diff=979</id>
		<title>Pandas options</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Pandas_options&amp;diff=979"/>
		<updated>2023-02-21T22:28:48Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: Created page with &amp;quot;===Pandas Options===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Pandas Options===&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=974</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=974"/>
		<updated>2023-01-27T00:56:37Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In case you forgot:&lt;br /&gt;
::&amp;lt;math&amp;gt;P(A|B) = \dfrac{P(B|A)\,P(A)}{P(B)}&amp;lt;/math&amp;gt;&lt;br /&gt;
where, &lt;br /&gt;
* &amp;lt;math&amp;gt;P(A|B)&amp;lt;/math&amp;gt; is the conditional probability that A is true given B&lt;br /&gt;
* &amp;lt;math&amp;gt;P(A), P(B)&amp;lt;/math&amp;gt; are the marginal probabilities that A or B is true&lt;br /&gt;
It's true by the definition of '''conditional probability''':&lt;br /&gt;
::&amp;lt;math&amp;gt;P(A|B) = \dfrac{P(A\cap B)}{P(B)}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;P(A\cap B)&amp;lt;/math&amp;gt; is the '''joint probability''' that both A and B are true&lt;br /&gt;
::&amp;lt;math&amp;gt;P(A\cap B) = P(A|B)\,P(B) = P(B|A)\,P(A)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other terminology (VanderPlas):&lt;br /&gt;
* &amp;lt;math&amp;gt;P(A|B)&amp;lt;/math&amp;gt; is the '''posterior''', the probability of the model parameters given the data&lt;br /&gt;
* &amp;lt;math&amp;gt; P(B|A)&amp;lt;/math&amp;gt; is the '''likelihood''' &lt;br /&gt;
* &amp;lt;math&amp;gt; P(A) &amp;lt;/math&amp;gt; is the '''model prior''', which encodes knowledge about the model ''before'' considering the data &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; P(B) &amp;lt;/math&amp;gt; is the '''model evidence''' (which in practice is a normalization term).&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* The [https://towardsdatascience.com/bayesian-inference-and-markov-chain-monte-carlo-sampling-in-python-bada1beabca7 coin factory] problem&lt;br /&gt;
* Jake VanderPlas's [http://jakevdp.github.io/blog/2014/03/11/frequentism-and-bayesianism-a-practical-intro/ 5 part series] on github&lt;br /&gt;
* [https://nbviewer.org/github/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Chapter1_Introduction/Ch1_Introduction_PyMC2.ipynb Bayesian Methods for Hackers] ported to PyMC3 and Python 3&lt;br /&gt;
* ArviZ documentation on working with [https://python.arviz.org/en/0.14.0/getting_started/WorkingWithInferenceData.html inference data]&lt;br /&gt;
* [https://github.com/pymc-devs/pymc-resources/tree/main/BDA3 Bayesian Data Analysis with Python and PyMC] by Gelman et al. (Code ported to Python)&lt;br /&gt;
* [https://bayesiancomputationbook.com/markdown/chp_01.htmlBayesian Modeling and Computation in Python] by Martin, Kumar &amp;amp; Lao  (ported to Python]&lt;br /&gt;
* [https://github.com/JWarmenhoven/DBDA-python Doing Bayesian Data Analysis] by John Kruschke, ported to Python&lt;br /&gt;
* [https://github.com/pymc-devs/pymc-resources/tree/main/BDA3 Bayesian Data Analysis, 3ed] by Gelman et al, ported to Python&lt;br /&gt;
* [https://ethanweed.github.io/pythonbook/landingpage.html Learn Statistics with Python] by Ethan Weed (refitting of &amp;quot;Learn Stats with R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===Misc===&lt;br /&gt;
* Python virtual environment [https://realpython.com/python-virtual-environments-a-primer/#what-is-a-python-virtual-environment primer]&lt;br /&gt;
* NBShare notebook on [https://www.nbshare.io/notebook/512285365/PyTorch-Tutorial-A-Complete-Use-Case-Example/ PyTorch] (MNIST example)&lt;br /&gt;
* Highlight data points and text in [https://cmdlinetips.com/2019/11/how-to-highlight-data-points-with-colors-and-text-in-python/ Python charts]&lt;br /&gt;
* RevBayes (a package for phylogenetic analysis, with some good MCMC [https://revbayes.github.io/tutorials/ tutorial] pages&lt;br /&gt;
* [https://www.pymc-labs.io/blog-posts/the-quickest-migration-guide-ever-from-pymc3-to-pymc-v40/ Migration] guide for PyMC 3 to 4&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=973</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=973"/>
		<updated>2023-01-16T20:02:27Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Misc */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In case you forgot:&lt;br /&gt;
::&amp;lt;math&amp;gt;P(A|B) = \dfrac{P(B|A)\,P(A)}{P(B)}&amp;lt;/math&amp;gt;&lt;br /&gt;
where, &lt;br /&gt;
* &amp;lt;math&amp;gt;P(A|B)&amp;lt;/math&amp;gt; is the conditional probability that A is true given B&lt;br /&gt;
* &amp;lt;math&amp;gt;P(A), P(B)&amp;lt;/math&amp;gt; are the marginal probabilities that A or B is true&lt;br /&gt;
It's true by the definition of '''conditional probability''':&lt;br /&gt;
::&amp;lt;math&amp;gt;P(A|B) = \dfrac{P(A\cap B)}{P(B)}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;P(A\cap B)&amp;lt;/math&amp;gt; is the '''joint probability''' that both A and B are true&lt;br /&gt;
::&amp;lt;math&amp;gt;P(A\cap B) = P(A|B)\,P(B) = P(B|A)\,P(A)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other terminology (VanderPlas):&lt;br /&gt;
* &amp;lt;math&amp;gt;P(A|B)&amp;lt;/math&amp;gt; is the '''posterior''', the probability of the model parameters given the data&lt;br /&gt;
* &amp;lt;math&amp;gt; P(B|A)&amp;lt;/math&amp;gt; is the '''likelihood''' &lt;br /&gt;
* &amp;lt;math&amp;gt; P(A) &amp;lt;/math&amp;gt; is the '''model prior''', which encodes knowledge about the model ''before'' considering the data &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; P(B) &amp;lt;/math&amp;gt; is the '''model evidence''' (which in practice is a normalization term).&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* The [https://towardsdatascience.com/bayesian-inference-and-markov-chain-monte-carlo-sampling-in-python-bada1beabca7 coin factory] problem&lt;br /&gt;
* Jake VanderPlas's [http://jakevdp.github.io/blog/2014/03/11/frequentism-and-bayesianism-a-practical-intro/ 5 part series] on github&lt;br /&gt;
* [https://nbviewer.org/github/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Chapter1_Introduction/Ch1_Introduction_PyMC2.ipynb Bayesian Methods for Hackers] ported to PyMC3 and Python 3&lt;br /&gt;
* ArviZ documentation on working with [https://python.arviz.org/en/0.14.0/getting_started/WorkingWithInferenceData.html inference data]&lt;br /&gt;
* [https://github.com/pymc-devs/pymc-resources/tree/main/BDA3 Bayesian Data Analysis with Python and PyMC] by Gelman et al. (Code ported to Python)&lt;br /&gt;
* [https://bayesiancomputationbook.com/markdown/chp_01.htmlBayesian Modeling and Computation in Python] by Martin, Kumar &amp;amp; Lao  (ported to Python]&lt;br /&gt;
* [https://github.com/JWarmenhoven/DBDA-python Doing Bayesian Data Analysis] by John Kruschke, ported to Python&lt;br /&gt;
* [https://github.com/pymc-devs/pymc-resources/tree/main/BDA3 Bayesian Data Analysis, 3ed] by Gelman et al, ported to Python&lt;br /&gt;
&lt;br /&gt;
===Misc===&lt;br /&gt;
* Python virtual environment [https://realpython.com/python-virtual-environments-a-primer/#what-is-a-python-virtual-environment primer]&lt;br /&gt;
* NBShare notebook on [https://www.nbshare.io/notebook/512285365/PyTorch-Tutorial-A-Complete-Use-Case-Example/ PyTorch] (MNIST example)&lt;br /&gt;
* Highlight data points and text in [https://cmdlinetips.com/2019/11/how-to-highlight-data-points-with-colors-and-text-in-python/ Python charts]&lt;br /&gt;
* RevBayes (a package for phylogenetic analysis, with some good MCMC [https://revbayes.github.io/tutorials/ tutorial] pages&lt;br /&gt;
* [https://www.pymc-labs.io/blog-posts/the-quickest-migration-guide-ever-from-pymc3-to-pymc-v40/ Migration] guide for PyMC 3 to 4&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=955</id>
		<title>Where was i</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=955"/>
		<updated>2022-09-22T01:47:23Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* [https://www.freeformatter.com/sql-formatter.html#ad-output SQL text formatter]&lt;br /&gt;
* [https://www.dpriver.com/pp/sqlformat.htm SQL html formatter]&lt;br /&gt;
* [https://learnsql.com/blog/5-tips-managing-long-sql-queries/ Managing long queries]&lt;br /&gt;
* [https://hackr.io/tutorials/learn-mysql?ref=blog MySQL resources]&lt;br /&gt;
* [https://mariadb.org/documentation/#getting-started MariaDB resources]&lt;br /&gt;
* [https://www.mariadbtutorial.com/mariadb-basics/mariadb-update/ MariaDB tutorial]&lt;br /&gt;
* [http://www.norvig.com/21-days.html Peter Norvig's] home page&lt;br /&gt;
* [https://sqlflow.gudusoft.com/#/ SQLFlow visualization tool]&lt;br /&gt;
* [https://pentesttools.net/maskphish-give-a-mask-to-phishing-url/ PenTesting phishing]&lt;br /&gt;
* [https://www.regextester.com/ Regex tetser]&lt;br /&gt;
* [https://developer.toradex.com/knowledge-base/wi-fi-access-point-mode hostapd] wifi hotspot set-up; Arch wiki [https://wiki.archlinux.org/title/Software_access_point#Wi-Fi_link_layer here]&lt;br /&gt;
&lt;br /&gt;
===Long view===&lt;br /&gt;
* [https://algorithmiq.fi/impact AKFU's algo platform]&lt;br /&gt;
* [https://www.seaborg.com/the-reactor energy platform]&lt;br /&gt;
* [https://quantumai.google/cirq/tutorials/basics Google's quantumai/cirq] for Q-computing&lt;br /&gt;
&lt;br /&gt;
===Wifi===&lt;br /&gt;
* [https://www.aircrack-ng.org/doku.php?id=cracking_wpa Cracking WPA]&lt;br /&gt;
* [https://www.aircrack-ng.org/~~V/doku.php?id=injection_test Injection testing]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
* Keep your computer from [https://medium.com/@iman-kassim/small-python-script-thatll-keep-you-online-all-day-cfc1984725fe sleeping]&lt;br /&gt;
&lt;br /&gt;
===Jobs===&lt;br /&gt;
* Advisory/Corporate [https://www.advisoryboard.com board] recruitment&lt;br /&gt;
&lt;br /&gt;
===LaTeX===&lt;br /&gt;
* Good page on [https://www1.cmc.edu/pages/faculty/aaksoy/latex/latexfive.html figures] and placement&lt;br /&gt;
&lt;br /&gt;
===Python Stats===&lt;br /&gt;
* [https://pythonnumericalmethods.berkeley.edu/notebooks/Index.html Python Programming and Numerical Methods] (Cal Berkeley)&lt;br /&gt;
* [https://www.geeksforgeeks.org/how-to-calculate-and-plot-a-cumulative-distribution-function-with-matplotlib-in-python/ CDFs] in Python&lt;br /&gt;
* [https://towardsdatascience.com/how-to-compare-two-or-more-distributions-9b06ee4d30bf Comparing distributions]&lt;br /&gt;
* [https://www.probabilitycourse.com/ Intro to Proability] course using Python (UMass Amherst)&lt;br /&gt;
* Computer Age Statistical Inference by Efron &amp;amp; Hastie. [https://github.com/jrfiedler/CASI_Python/blob/master/ Python code], [https://hastie.su.domains/CASI/data.html book homepage]&lt;br /&gt;
* NIST's probability [https://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm distributions]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=938</id>
		<title>Where was i</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=938"/>
		<updated>2022-08-12T00:09:47Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Long view */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* [https://www.freeformatter.com/sql-formatter.html#ad-output SQL text formatter]&lt;br /&gt;
* [https://www.dpriver.com/pp/sqlformat.htm SQL html formatter]&lt;br /&gt;
* [https://learnsql.com/blog/5-tips-managing-long-sql-queries/ Managing long queries]&lt;br /&gt;
* [https://hackr.io/tutorials/learn-mysql?ref=blog MySQL resources]&lt;br /&gt;
* [https://mariadb.org/documentation/#getting-started MariaDB resources]&lt;br /&gt;
* [https://www.mariadbtutorial.com/mariadb-basics/mariadb-update/ MariaDB tutorial]&lt;br /&gt;
* [http://www.norvig.com/21-days.html Peter Norvig's] home page&lt;br /&gt;
* [https://sqlflow.gudusoft.com/#/ SQLFlow visualization tool]&lt;br /&gt;
* [https://pentesttools.net/maskphish-give-a-mask-to-phishing-url/ PenTesting phishing]&lt;br /&gt;
* [https://www.regextester.com/ Regex tetser]&lt;br /&gt;
* [https://developer.toradex.com/knowledge-base/wi-fi-access-point-mode hostapd] wifi hotspot set-up; Arch wiki [https://wiki.archlinux.org/title/Software_access_point#Wi-Fi_link_layer here]&lt;br /&gt;
&lt;br /&gt;
===Long view===&lt;br /&gt;
* [https://algorithmiq.fi/impact AKFU's algo platform]&lt;br /&gt;
* [https://www.seaborg.com/the-reactor energy platform]&lt;br /&gt;
* [https://quantumai.google/cirq/tutorials/basics Google's quantumai/cirq] for Q-computing&lt;br /&gt;
&lt;br /&gt;
===Wifi===&lt;br /&gt;
* [https://www.aircrack-ng.org/doku.php?id=cracking_wpa Cracking WPA]&lt;br /&gt;
* [https://www.aircrack-ng.org/~~V/doku.php?id=injection_test Injection testing]&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=864</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=864"/>
		<updated>2022-04-04T01:52:38Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Specifying Values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Elements of C==&lt;br /&gt;
Sources&lt;br /&gt;
* [http://robertseacord.com/wp/errata/ Effective C ]by Robert Seacord&lt;br /&gt;
* [https://www.oreilly.com/library/view/21st-century-c/9781449344382/ 21st Century C] by Ben Clemens&lt;br /&gt;
* [https://shop.learncodethehardway.org/products/contents/3/ Learn C the Hard Way] by Zed Shaw&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6128-6 Practical Numerical C Programming] and [https://learning.oreilly.com/library/view/numerical-c-applied/9781484250648/ Numerical C] by Philip Joyce&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6927-5 Pointers in C Programming] by Thomas Mailund&lt;br /&gt;
* [https://www.packtpub.com/product/learn-c-programming-second-edition/9781801078450 Learn C Programming] by Jeff Szuhay&lt;br /&gt;
* [https://www.packtpub.com/product/practical-c-programming/9781838641108 Practical C Programming] by B.M. Harwani&lt;br /&gt;
* [https://github.com/Apress/practical-c Practical C] by Giulio Zambon (2016) &lt;br /&gt;
* Modern C by Jens Gustedt&lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
From ''Effective C'' by Robert Seacord&lt;br /&gt;
;Objects, Functions, Types and Pointers&lt;br /&gt;
* '''object''': storage used to represent values. (Per ISO/IEC 9989:2018: &amp;quot;a region of data storage in the execution environment, the contents of which can represent values.  A '''variable''' is an example of an object. An object with '''type''' &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; contains and integer value. E.g. why types are important: the ''text'' number 1 in IEEE 754 (ASCII, roughly) is specified by 0x3f80000, which a little over a billion as a decimal. &lt;br /&gt;
* '''functions''': are not objects, but do have types. A function is defined by both its return type and the number and types of its parameters. &lt;br /&gt;
* '''types''': &amp;lt;code&amp;gt;int, char, bool, float, long int...&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''pointers''': an address or location in memory where an object or function is stored. Pointer types derive from the ''referenced'' function. or object type. E.g., &amp;lt;code&amp;gt;*char&amp;lt;/code&amp;gt; is called a ''pointer to char''. &lt;br /&gt;
* Because objects and functions are different things, object pointers differ from function pointers&lt;br /&gt;
* In the swap program below the &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function declares two variables of type &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;, using the combination of a type (int), an identifier (a,b) and a value (21,17). Assigning the values is also called ''initialization&lt;br /&gt;
&lt;br /&gt;
* '''parameters''': objects declared as part of a function declaration that acquire value on entry to the function&lt;br /&gt;
* '''argruments''': comma-separated expressions included in the function call expression (whether values or pointers)&lt;br /&gt;
* '''pass-by-value''': C's default behavior. When you provide an argument to a function, its value is copied into a distinct variable for use within that function. When the values of the parameters are changed, the values in the caller are unaffected because they are distinct objects.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void swap(int *pa, int *pb) {&lt;br /&gt;
  int t = *pa;&lt;br /&gt;
  *pa = *pb;&lt;br /&gt;
  *pb = t;&lt;br /&gt;
  //  int t = a;&lt;br /&gt;
  //a = b;&lt;br /&gt;
  //b = t;&lt;br /&gt;
  printf(&amp;quot;swap: a = %d, b = %d\n&amp;quot;, *pa,*pb);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void){&lt;br /&gt;
  int a = 21;&lt;br /&gt;
  int b = 17; &lt;br /&gt;
  swap(&amp;amp;a, &amp;amp;b);&lt;br /&gt;
  printf(&amp;quot;main: a = %d, b = %d\n&amp;quot;, a, b);&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* The commented lines in the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; function show the original program, which failed to swap &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;'s values, because they were being passed by value rather than reference. The corrected version (above) declares and dereferences pointers with the '''indirection''' operator (*)&lt;br /&gt;
* In the new version, the line &amp;lt;code&amp;gt;*pa=*pb&amp;lt;/code&amp;gt; serves to: &lt;br /&gt;
# deference the pointer &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt;&lt;br /&gt;
# reads the referenced value&lt;br /&gt;
# dereference the pointer &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; &lt;br /&gt;
# overwrite the value at the location referenced by &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; with the value referenced by &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt; &lt;br /&gt;
* in the main function, &amp;lt;code&amp;gt;&amp;amp;a&amp;lt;/code&amp;gt; , the unary &amp;amp; operator (''address-of'' operator) generates a pointer to its operand. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void increment(void) {&lt;br /&gt;
  static unsigned int counter = 0;&lt;br /&gt;
  counter++; &lt;br /&gt;
  printf(&amp;quot;%d&amp;quot;, counter);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void) {&lt;br /&gt;
  for (int i = 0; i &amp;lt; 5; i++) {&lt;br /&gt;
    increment();&lt;br /&gt;
  }&lt;br /&gt;
  return 0; &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Scope/Lifetime''': scope applies to identifiers, lifetime applies to objects&lt;br /&gt;
* '''Storage duration''': automatic, static, thread, allocated&lt;br /&gt;
* '''Alignment''': object types have restrictions on the addresses at which they may be stored. an ''alignment'' is the number of bytes between successive addresses at which a given object can be allocated. Traditionally done with linker commands or overallocating memory with &amp;lt;code&amp;gt;malloc&amp;lt;/code&amp;gt;, followed by rounding the address up to nearest power of 2. &lt;br /&gt;
* C11 sorted most of this out. Alignments are values of type &amp;lt;code&amp;gt;size_t&amp;lt;/code&amp;gt;. Valid assignments are non-negative powers of 2. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct S {&lt;br /&gt;
  int i; double d; char c;&lt;br /&gt;
};&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned char bad_buff[sizeof(struct S)];&lt;br /&gt;
  _Alignas(struct S) unsigned char good_buff[sizeof(struct S)];&lt;br /&gt;
  struct S *bad_s_ptr = (struct S *)bad_buff;   // wrong pointer alignment&lt;br /&gt;
  struct S *good_s_ptr = (struct S *)good_buff; // correct pointer alignment&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above code &lt;br /&gt;
&lt;br /&gt;
;Object Types&lt;br /&gt;
* Boolean: declare as &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt;; contains either 0 or 1. (Also denoted &amp;lt;code&amp;gt;_Bool&amp;lt;/code&amp;gt;&lt;br /&gt;
* Character: &amp;lt;code&amp;gt; char, signed char, unsigned char&amp;lt;/code&amp;gt;&lt;br /&gt;
* Numeric: &amp;lt;code&amp;gt;signed char, short int, int, long, long long int&amp;lt;/code&amp;gt;. For each there is a corresponding unsigned type that uses the same amount of storage (but obviously only 1/2 the range on the positive side). &lt;br /&gt;
* Enumerations: allows type definition by assigning names (&amp;quot;enumerators&amp;quot;) to integer values. E.g., {S,M,T,W,Th,F,Sa}&lt;br /&gt;
* Floating-point: &amp;lt;code&amp;gt;float, double, long double&amp;lt;/code&amp;gt;. &lt;br /&gt;
* void: the keyword &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt; means &amp;quot;cannot hold any value&amp;quot;. However, &amp;lt;code&amp;gt;void *&amp;lt;/code&amp;gt; means the pointer can reference ''any'' object. &lt;br /&gt;
;Function Types&lt;br /&gt;
* types are all derived. Name and return type are specified by the ''function declarator''. Parameter types must be specified unless of type &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
int max(int a, int b)&lt;br /&gt;
{ return a &amp;gt; b ? a : b; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Here is a function that returns an &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;. The declarator is &amp;lt;code&amp;gt;max(int a, int b)&amp;lt;/code&amp;gt; and the function body is the 2nd line&lt;br /&gt;
* The function specification (line 2) may not include any type qualifiers (e.g., int, char, etc.)&lt;br /&gt;
&lt;br /&gt;
;Derived Types &lt;br /&gt;
pointers, arrays, type definitions, structures and unions&lt;br /&gt;
*'''Pointers''': derived from the function or object it points to, which is the ''referenced'' type. E.g., &amp;lt;code&amp;gt;int i= 17; int *ip = &amp;amp;i;&amp;lt;/code&amp;gt;, &lt;br /&gt;
declares the variable &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; as a pointer to int and assigns it the address of i. '''The unary * operator converts a pointer to a type into a value of that type.''' Consider &amp;lt;code&amp;gt;ip = &amp;amp;*ip;&amp;lt;/code&amp;gt;. Here * is ''dereferencing'' &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt;. It takes the address using &amp;amp; and retrieves the pointer. &lt;br /&gt;
* '''Arrays''': contiguously allocated sequence of objects of the same type. E.g. &amp;lt;code&amp;gt;int ia[11], float *afp[17];&amp;lt;/code&amp;gt;. To declare a matrix, use something like &amp;lt;code&amp;gt;int arr[3][5];&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void func(int arr[5]);&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned int i = 0;&lt;br /&gt;
  unsigned int j = 0;&lt;br /&gt;
  int arr[3][5];&lt;br /&gt;
  u func(arr[i]);&lt;br /&gt;
  v int x = arr[i][j];&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
What's happening? &lt;br /&gt;
When the function calls &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;, a bunch of shit happens:&lt;br /&gt;
# &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; is converted to a pointer to the initial 5-element int array, starting at &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; is scaled to the type of &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; by multiplying it by the size of one array of 5 int objects&lt;br /&gt;
# The results from the above are added&lt;br /&gt;
# Indirection is applied to the result to produce an array of 5 int elements&lt;br /&gt;
&lt;br /&gt;
====Structures====&lt;br /&gt;
* contain sequentially allocated memory objects&lt;br /&gt;
* objects have their own names and may or may not share the same type (unlike arrays, which are monotyyped); similar to records&lt;br /&gt;
* below, the structure contains 3 objects, &amp;lt;code&amp;gt;signum, signame, sigdesc&amp;lt;/code&amp;gt;&lt;br /&gt;
* the last line identifies the whole object as &amp;lt;code&amp;gt;sigline&amp;lt;/code&amp;gt; and having a pointer of &amp;lt;code&amp;gt;*sigline_p&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct sigrecord {&lt;br /&gt;
  int signum;&lt;br /&gt;
  char signame[20];&lt;br /&gt;
  char sigdesc[100];&lt;br /&gt;
} sigline, *sigline_p;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now that the struct has been created we'd like to reference its members, using the &amp;quot;structure member operator (&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;quot;; like the dot operator in Python and other langs). &lt;br /&gt;
*  a pointer to a struct can reference its members with the (-&amp;gt;) structure pointer operator&lt;br /&gt;
* the first 3 lines directly access members of the &amp;lt;code&amp;gt;sigline&amp;lt;/code&amp;gt; object. The middle line assigns its address to the &amp;lt;code&amp;gt;sigline_p&amp;lt;/code&amp;gt; pointer. &lt;br /&gt;
* the last 3 lines indirectly access members of the struct. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
sigline.signum = 5;&lt;br /&gt;
strcpy(sigline.signame, &amp;quot;SIGINT&amp;quot;);&lt;br /&gt;
strcpy(sigline.sigdesc, &amp;quot;Interrupt from keyboard&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
sigline_p = &amp;amp;sigline;&lt;br /&gt;
&lt;br /&gt;
sigline_p-&amp;gt;signum = 5;&lt;br /&gt;
strcpy(sigline_p-&amp;gt;signame, &amp;quot;SIGINT&amp;quot;);&lt;br /&gt;
strcpy(sigline_p-&amp;gt;sigdesc, &amp;quot;Interrupt from keyboard&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Unions&lt;br /&gt;
* Similar to structs, but memory for member objects overlaps&lt;br /&gt;
* Primarily used to conserve memory and used to contain mixed types (e.g., ints and floats)&lt;br /&gt;
* access elements with dot operator; reference members with the -&amp;gt; operator&lt;br /&gt;
&lt;br /&gt;
; Tags &amp;amp; typedefs&lt;br /&gt;
* naming mechanism for structs, unions and enumerations&lt;br /&gt;
* declare a tag for a struct s: &amp;lt;code&amp;gt;struct s &amp;lt;mytag&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* use a &amp;lt;code&amp;gt;typedef&amp;lt;/code&amp;gt; to declare an alias for an existing type, without creating a new type&lt;br /&gt;
* here's an example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
typedef signed char schar_type, *schar_p, (*fp)(void); &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* declare schar_type as an alias for signed char. schar_p as an alias for signed char*, and fp as an alias for signed char(*)(void).&lt;br /&gt;
&lt;br /&gt;
===Basic Values and Data (Gustedt Ch5)===&lt;br /&gt;
* values are ''observable'' only if they are stored in ''addressable'' memory or written to output. C compilers produce an executable that reproduces only the ''observable states''. The whole mechanism is an '''abstract state machine'''. &lt;br /&gt;
* All values are numbers or translate into numbers. The ''data'' of a program execution consists of all the assembled values of all objects at a given moment.&lt;br /&gt;
* The '''state''' of the program execution is determined by:&lt;br /&gt;
** The executable&lt;br /&gt;
** The current point of execution&lt;br /&gt;
** The data&lt;br /&gt;
** Outside intervention, such as I/O from the user&lt;br /&gt;
&lt;br /&gt;
====Types====&lt;br /&gt;
* A '''type''' is a property that C associates with values. All values have a type that is statically determined&lt;br /&gt;
* Possible operations on a value are determined by its type; a value's type determines the results of all operations on it. &lt;br /&gt;
* C enforces that the results of operations can be deduced from 1) the operand values, and 2) some platform-specific characteristics. A type's '''binary representation''' determines the results of all operations, and this representation is observable. &lt;br /&gt;
* The binary representation is a model and therefore an ''abstract'' representation (insofar as it doesn't determine where or how values are stored). The bare metal aspects are called the ''object representation''. &lt;br /&gt;
* All computation is fixed through the values, types and their binary representations specified in the program. The program code describes an '''abstract state machine''', which governs its state transitions. &lt;br /&gt;
* Types broadly determine compiler optimizations. The main types are:&lt;br /&gt;
# unsigned integers (_Bool, unsigned char, short, int, long, long long)&lt;br /&gt;
# signed integers (char, signed char, short, int, long, long long)&lt;br /&gt;
# real floats (float, double, long double)&lt;br /&gt;
# complex floats (float _Complex, double _Complex, long double _Complex)&lt;br /&gt;
* The six &amp;quot;narrow types&amp;quot;---bool, unsigned char, unsigned short, char, signed char, signed short--must be &amp;quot;promoted&amp;quot; in order to perform arithmetic. Before arithmetic, narrow types are promoted to &amp;lt;code&amp;gt;signed int&amp;lt;/code&amp;gt; type. &lt;br /&gt;
* For any type (or &amp;quot;rank&amp;quot;), the non-negative (i.e., positive) values of the signed type fit into the unsigned types. E.g., unsigned ints range from 0 to 4,294,967,295, so any positive number in the ''signed'' range-- -2,147,483,648 to 2,147,483,647--automatically fits into the unsigned version of the same type. &lt;br /&gt;
;Which type for which occasion?&lt;br /&gt;
* &amp;lt;code&amp;gt;size_t&amp;lt;/code&amp;gt; for sizes, cardinalities and ordinals&lt;br /&gt;
* &amp;lt;code&amp;gt;unsigned&amp;lt;/code&amp;gt; for small, non-negative quantities&lt;br /&gt;
* &amp;lt;code&amp;gt;ptrdiff_t&amp;lt;/code&amp;gt; for large, signed differences&lt;br /&gt;
* &amp;lt;code&amp;gt; double&amp;lt;/code&amp;gt; for floating-point calculations; &amp;lt;code&amp;gt;double complex&amp;lt;/code&amp;gt; for complex calculations&lt;br /&gt;
;Various Constant Specifications&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|-&lt;br /&gt;
! Type&lt;br /&gt;
! E.g.&lt;br /&gt;
! For&lt;br /&gt;
|-&lt;br /&gt;
| Decimal int&lt;br /&gt;
| 123&lt;br /&gt;
| general use&lt;br /&gt;
|-&lt;br /&gt;
| Octal int&lt;br /&gt;
| 077&lt;br /&gt;
| rarely used&lt;br /&gt;
|-&lt;br /&gt;
| Hex int&lt;br /&gt;
| 0xffff&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Decimal float&lt;br /&gt;
| 1.7E-13&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Hex float&lt;br /&gt;
| 0x1.7aP-13&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Integer char&lt;br /&gt;
| &amp;quot;a&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| String literals&lt;br /&gt;
| &amp;quot;hello&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Specifying Values====&lt;br /&gt;
* Numeric constants (literals) can be specified as one of the following: decimal integer, octal integer, hexadecimal integer, decimal float, hexadecimal float, integer character ('a'), string literal ('hello')&lt;br /&gt;
* Numerical literals are never negative; instead they are operated on by unary minus (-). &lt;br /&gt;
* A ''decimal integer constant'' has the first of the 3 signed types that fits it. E.g., 32768 (&amp;lt;math&amp;gt;2^{15}+1&amp;lt;/math&amp;gt;) doesn't fit into &amp;lt;code&amp;gt;signed int&amp;lt;/code&amp;gt;, and is thus a &amp;lt;code&amp;gt;signed long&amp;lt;/code&amp;gt;&lt;br /&gt;
* Objects of &amp;lt;code&amp;gt;const&amp;lt;/code&amp;gt;-qualified type are read-only, as are string literals&lt;br /&gt;
* enumeration constants are of type &amp;lt;code&amp;gt;signed int&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=842</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=842"/>
		<updated>2022-03-18T23:52:24Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Elements of C */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Elements of C==&lt;br /&gt;
Sources&lt;br /&gt;
* [http://robertseacord.com/wp/errata/ Effective C ]by Robert Seacord&lt;br /&gt;
* [https://www.oreilly.com/library/view/21st-century-c/9781449344382/ 21st Century C] by Ben Clemens&lt;br /&gt;
* [https://shop.learncodethehardway.org/products/contents/3/ Learn C the Hard Way] by Zed Shaw&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6128-6 Practical Numerical C Programming] and [https://learning.oreilly.com/library/view/numerical-c-applied/9781484250648/ Numerical C] by Philip Joyce&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6927-5 Pointers in C Programming] by Thomas Mailund&lt;br /&gt;
* [https://www.packtpub.com/product/learn-c-programming-second-edition/9781801078450 Learn C Programming] by Jeff Szuhay&lt;br /&gt;
* [https://www.packtpub.com/product/practical-c-programming/9781838641108 Practical C Programming] by B.M. Harwani&lt;br /&gt;
* [https://github.com/Apress/practical-c Practical C] by Giulio Zambon (2016) &lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
;Objects, Functions, Types and Pointers&lt;br /&gt;
* '''object''': storage used to represent values. (Per ISO/IEC 9989:2018: &amp;quot;a region of data storage in the execution environment, the contents of which can represent values.  A '''variable''' is an example of an object. An object with '''type''' &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; contains and integer value. E.g. why types are important: the ''text'' number 1 in IEEE 754 (ASCII, roughly) is specified by 0x3f80000, which a little over a billion as a decimal. &lt;br /&gt;
* '''functions''': are not objects, but do have types. A function is defined by both its return type and the number and types of its parameters. &lt;br /&gt;
* '''types''': &amp;lt;code&amp;gt;int, char, bool, float, long int...&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''pointers''': an address or location in memory where an object or function is stored. Pointer types derive from the ''referenced'' function. or object type. E.g., &amp;lt;code&amp;gt;*char&amp;lt;/code&amp;gt; is called a ''pointer to char''. &lt;br /&gt;
* Because objects and functions are different things, object pointers differ from function pointers&lt;br /&gt;
* In the swap program below the &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function declares two variables of type &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;, using the combination of a type (int), an identifier (a,b) and a value (21,17). Assigning the values is also called ''initialization&lt;br /&gt;
&lt;br /&gt;
* '''parameters''': objects declared as part of a function declaration that acquire value on entry to the function&lt;br /&gt;
* '''argruments''': comma-separated expressions included in the function call expression (whether values or pointers)&lt;br /&gt;
* '''pass-by-value''': C's default behavior. When you provide an argument to a function, its value is copied into a distinct variable for use within that function. When the values of the parameters are changed, the values in the caller are unaffected because they are distinct objects.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void swap(int *pa, int *pb) {&lt;br /&gt;
  int t = *pa;&lt;br /&gt;
  *pa = *pb;&lt;br /&gt;
  *pb = t;&lt;br /&gt;
  //  int t = a;&lt;br /&gt;
  //a = b;&lt;br /&gt;
  //b = t;&lt;br /&gt;
  printf(&amp;quot;swap: a = %d, b = %d\n&amp;quot;, *pa,*pb);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void){&lt;br /&gt;
  int a = 21;&lt;br /&gt;
  int b = 17; &lt;br /&gt;
  swap(&amp;amp;a, &amp;amp;b);&lt;br /&gt;
  printf(&amp;quot;main: a = %d, b = %d\n&amp;quot;, a, b);&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* The commented lines in the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; function show the original program, which failed to swap &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;'s values, because they were being passed by value rather than reference. The corrected version (above) declares and dereferences pointers with the '''indirection''' operator (*)&lt;br /&gt;
* In the new version, the line &amp;lt;code&amp;gt;*pa=*pb&amp;lt;/code&amp;gt; serves to: &lt;br /&gt;
# deference the pointer &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt;&lt;br /&gt;
# reads the referenced value&lt;br /&gt;
# dereference the pointer &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; &lt;br /&gt;
# overwrite the value at the location referenced by &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; with the value referenced by &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt; &lt;br /&gt;
* in the main function, &amp;lt;code&amp;gt;&amp;amp;a&amp;lt;/code&amp;gt; , the unary &amp;amp; operator (''address-of'' operator) generates a pointer to its operand. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void increment(void) {&lt;br /&gt;
  static unsigned int counter = 0;&lt;br /&gt;
  counter++; &lt;br /&gt;
  printf(&amp;quot;%d&amp;quot;, counter);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void) {&lt;br /&gt;
  for (int i = 0; i &amp;lt; 5; i++) {&lt;br /&gt;
    increment();&lt;br /&gt;
  }&lt;br /&gt;
  return 0; &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Scope/Lifetime''': scope applies to identifiers, lifetime applies to objects&lt;br /&gt;
* '''Storage duration''': automatic, static, thread, allocated&lt;br /&gt;
* '''Alignment''': object types have restrictions on the addresses at which they may be stored. an ''alignment'' is the number of bytes between successive addresses at which a given object can be allocated. Traditionally done with linker commands or overallocating memory with &amp;lt;code&amp;gt;malloc&amp;lt;/code&amp;gt;, followed by rounding the address up to nearest power of 2. &lt;br /&gt;
* C11 sorted most of this out. Alignments are values of type &amp;lt;code&amp;gt;size_t&amp;lt;/code&amp;gt;. Valid assignments are non-negative powers of 2. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct S {&lt;br /&gt;
  int i; double d; char c;&lt;br /&gt;
};&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned char bad_buff[sizeof(struct S)];&lt;br /&gt;
  _Alignas(struct S) unsigned char good_buff[sizeof(struct S)];&lt;br /&gt;
  struct S *bad_s_ptr = (struct S *)bad_buff;   // wrong pointer alignment&lt;br /&gt;
  struct S *good_s_ptr = (struct S *)good_buff; // correct pointer alignment&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above code &lt;br /&gt;
&lt;br /&gt;
;Object Types&lt;br /&gt;
* Boolean: declare as &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt;; contains either 0 or 1. (Also denoted &amp;lt;code&amp;gt;_Bool&amp;lt;/code&amp;gt;&lt;br /&gt;
* Character: &amp;lt;code&amp;gt; char, signed char, unsigned char&amp;lt;/code&amp;gt;&lt;br /&gt;
* Numeric: &amp;lt;code&amp;gt;signed char, short int, int, long, long long int&amp;lt;/code&amp;gt;. For each there is a corresponding unsigned type that uses the same amount of storage (but obviously only 1/2 the range on the positive side). &lt;br /&gt;
* Enumerations: allows type definition by assigning names (&amp;quot;enumerators&amp;quot;) to integer values. E.g., {S,M,T,W,Th,F,Sa}&lt;br /&gt;
* Floating-point: &amp;lt;code&amp;gt;float, double, long double&amp;lt;/code&amp;gt;. &lt;br /&gt;
* void: the keyword &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt; means &amp;quot;cannot hold any value&amp;quot;. However, &amp;lt;code&amp;gt;void *&amp;lt;/code&amp;gt; means the pointer can reference ''any'' object. &lt;br /&gt;
;Function Types&lt;br /&gt;
* types are all derived. Name and return type are specified by the ''function declarator''. Parameter types must be specified unless of type &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
int max(int a, int b)&lt;br /&gt;
{ return a &amp;gt; b ? a : b; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Here is a function that returns an &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;. The declarator is &amp;lt;code&amp;gt;max(int a, int b)&amp;lt;/code&amp;gt; and the function body is the 2nd line&lt;br /&gt;
* The function specification (line 2) may not include any type qualifiers (e.g., int, char, etc.)&lt;br /&gt;
&lt;br /&gt;
;Derived Types &lt;br /&gt;
pointers, arrays, type definitions, structures and unions&lt;br /&gt;
*'''Pointers''': derived from the function or object it points to, which is the ''referenced'' type. E.g., &amp;lt;code&amp;gt;int i= 17; int *ip = &amp;amp;i;&amp;lt;/code&amp;gt;, &lt;br /&gt;
declares the variable &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; as a pointer to int and assigns it the address of i. '''The unary * operator converts a pointer to a type into a value of that type.''' Consider &amp;lt;code&amp;gt;ip = &amp;amp;*ip;&amp;lt;/code&amp;gt;. Here * is ''dereferencing'' &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt;. It takes the address using &amp;amp; and retrieves the pointer. &lt;br /&gt;
* '''Arrays''': contiguously allocated sequence of objects of the same type. E.g. &amp;lt;code&amp;gt;int ia[11], float *afp[17];&amp;lt;/code&amp;gt;. To declare a matrix, use something like &amp;lt;code&amp;gt;int arr[3][5];&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void func(int arr[5]);&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned int i = 0;&lt;br /&gt;
  unsigned int j = 0;&lt;br /&gt;
  int arr[3][5];&lt;br /&gt;
  u func(arr[i]);&lt;br /&gt;
  v int x = arr[i][j];&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
What's happening? &lt;br /&gt;
When the function calls &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;, a bunch of shit happens:&lt;br /&gt;
# &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; is converted to a pointer to the initial 5-element int array, starting at &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; is scaled to the type of &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; by multiplying it by the size of one array of 5 int objects&lt;br /&gt;
# The results from the above are added&lt;br /&gt;
# Indirection is applied to the result to produce an array of 5 int elements&lt;br /&gt;
&lt;br /&gt;
; Structures&lt;br /&gt;
* contain sequentially allocated memory objects&lt;br /&gt;
* objects have their own names and may or may not share the same type (unlike arrays, which are monotyyped); similar to records&lt;br /&gt;
* below, the structure contains 3 objects, &amp;lt;code&amp;gt;signum, signame, sigdesc&amp;lt;/code&amp;gt;&lt;br /&gt;
* the last line identifies the whole object as &amp;lt;code&amp;gt;sigline&amp;lt;/code&amp;gt; and having a pointer of &amp;lt;code&amp;gt;*sigline_p&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct sigrecord {&lt;br /&gt;
  int signum;&lt;br /&gt;
  char signame[20];&lt;br /&gt;
  char sigdesc[100];&lt;br /&gt;
} sigline, *sigline_p;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Arithmetic Types===&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=841</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=841"/>
		<updated>2022-03-18T23:47:28Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Arithmetic Types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Elements of C==&lt;br /&gt;
Sources&lt;br /&gt;
* [http://robertseacord.com/wp/errata/ Effective C ]by Robert Seacord&lt;br /&gt;
* [https://www.oreilly.com/library/view/21st-century-c/9781449344382/ 21st Century C] by Ben Clemens&lt;br /&gt;
* [https://shop.learncodethehardway.org/products/contents/3/ Learn C the Hard Way] by Zed Shaw&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6128-6 Practical Numerical C Programming] and [https://learning.oreilly.com/library/view/numerical-c-applied/9781484250648/ Numerical C] by Philip Joyce&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6927-5 Pointers in C Programming] by Thomas Mailund&lt;br /&gt;
* [https://www.packtpub.com/product/learn-c-programming-second-edition/9781801078450 Learn C Programming] by Jeff Szuhay&lt;br /&gt;
* [https://www.packtpub.com/product/practical-c-programming/9781838641108 Practical C Programming] by B.M. Harwani&lt;br /&gt;
* [https://github.com/Apress/practical-c Practical C] by Giulio Zambon (2016) &lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
;Objects, Functions, Types and Pointers&lt;br /&gt;
* '''object''': storage used to represent values. (Per ISO/IEC 9989:2018: &amp;quot;a region of data storage in the execution environment, the contents of which can represent values.  A '''variable''' is an example of an object. An object with '''type''' &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; contains and integer value. E.g. why types are important: the ''text'' number 1 in IEEE 754 (ASCII, roughly) is specified by 0x3f80000, which a little over a billion as a decimal. &lt;br /&gt;
* '''functions''': are not objects, but do have types. A function is defined by both its return type and the number and types of its parameters. &lt;br /&gt;
* '''types''': &amp;lt;code&amp;gt;int, char, bool, float, long int...&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''pointers''': an address or location in memory where an object or function is stored. Pointer types derive from the ''referenced'' function. or object type. E.g., &amp;lt;code&amp;gt;*char&amp;lt;/code&amp;gt; is called a ''pointer to char''. &lt;br /&gt;
* Because objects and functions are different things, object pointers differ from function pointers&lt;br /&gt;
* In the swap program below the &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function declares two variables of type &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;, using the combination of a type (int), an identifier (a,b) and a value (21,17). Assigning the values is also called ''initialization&lt;br /&gt;
&lt;br /&gt;
* '''parameters''': objects declared as part of a function declaration that acquire value on entry to the function&lt;br /&gt;
* '''argruments''': comma-separated expressions included in the function call expression (whether values or pointers)&lt;br /&gt;
* '''pass-by-value''': C's default behavior. When you provide an argument to a function, its value is copied into a distinct variable for use within that function. When the values of the parameters are changed, the values in the caller are unaffected because they are distinct objects.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void swap(int *pa, int *pb) {&lt;br /&gt;
  int t = *pa;&lt;br /&gt;
  *pa = *pb;&lt;br /&gt;
  *pb = t;&lt;br /&gt;
  //  int t = a;&lt;br /&gt;
  //a = b;&lt;br /&gt;
  //b = t;&lt;br /&gt;
  printf(&amp;quot;swap: a = %d, b = %d\n&amp;quot;, *pa,*pb);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void){&lt;br /&gt;
  int a = 21;&lt;br /&gt;
  int b = 17; &lt;br /&gt;
  swap(&amp;amp;a, &amp;amp;b);&lt;br /&gt;
  printf(&amp;quot;main: a = %d, b = %d\n&amp;quot;, a, b);&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* The commented lines in the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; function show the original program, which failed to swap &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;'s values, because they were being passed by value rather than reference. The corrected version (above) declares and dereferences pointers with the '''indirection''' operator (*)&lt;br /&gt;
* In the new version, the line &amp;lt;code&amp;gt;*pa=*pb&amp;lt;/code&amp;gt; serves to: &lt;br /&gt;
# deference the pointer &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt;&lt;br /&gt;
# reads the referenced value&lt;br /&gt;
# dereference the pointer &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; &lt;br /&gt;
# overwrite the value at the location referenced by &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; with the value referenced by &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt; &lt;br /&gt;
* in the main function, &amp;lt;code&amp;gt;&amp;amp;a&amp;lt;/code&amp;gt; , the unary &amp;amp; operator (''address-of'' operator) generates a pointer to its operand. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void increment(void) {&lt;br /&gt;
  static unsigned int counter = 0;&lt;br /&gt;
  counter++; &lt;br /&gt;
  printf(&amp;quot;%d&amp;quot;, counter);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void) {&lt;br /&gt;
  for (int i = 0; i &amp;lt; 5; i++) {&lt;br /&gt;
    increment();&lt;br /&gt;
  }&lt;br /&gt;
  return 0; &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Scope/Lifetime''': scope applies to identifiers, lifetime applies to objects&lt;br /&gt;
* '''Storage duration''': automatic, static, thread, allocated&lt;br /&gt;
* '''Alignment''': object types have restrictions on the addresses at which they may be stored. an ''alignment'' is the number of bytes between successive addresses at which a given object can be allocated. Traditionally done with linker commands or overallocating memory with &amp;lt;code&amp;gt;malloc&amp;lt;/code&amp;gt;, followed by rounding the address up to nearest power of 2. &lt;br /&gt;
* C11 sorted most of this out. Alignments are values of type &amp;lt;code&amp;gt;size_t&amp;lt;/code&amp;gt;. Valid assignments are non-negative powers of 2. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct S {&lt;br /&gt;
  int i; double d; char c;&lt;br /&gt;
};&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned char bad_buff[sizeof(struct S)];&lt;br /&gt;
  _Alignas(struct S) unsigned char good_buff[sizeof(struct S)];&lt;br /&gt;
  struct S *bad_s_ptr = (struct S *)bad_buff;   // wrong pointer alignment&lt;br /&gt;
  struct S *good_s_ptr = (struct S *)good_buff; // correct pointer alignment&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above code &lt;br /&gt;
&lt;br /&gt;
;Object Types&lt;br /&gt;
* Boolean: declare as &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt;; contains either 0 or 1. (Also denoted &amp;lt;code&amp;gt;_Bool&amp;lt;/code&amp;gt;&lt;br /&gt;
* Character: &amp;lt;code&amp;gt; char, signed char, unsigned char&amp;lt;/code&amp;gt;&lt;br /&gt;
* Numeric: &amp;lt;code&amp;gt;signed char, short int, int, long, long long int&amp;lt;/code&amp;gt;. For each there is a corresponding unsigned type that uses the same amount of storage (but obviously only 1/2 the range on the positive side). &lt;br /&gt;
* Enumerations: allows type definition by assigning names (&amp;quot;enumerators&amp;quot;) to integer values. E.g., {S,M,T,W,Th,F,Sa}&lt;br /&gt;
* Floating-point: &amp;lt;code&amp;gt;float, double, long double&amp;lt;/code&amp;gt;. &lt;br /&gt;
* void: the keyword &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt; means &amp;quot;cannot hold any value&amp;quot;. However, &amp;lt;code&amp;gt;void *&amp;lt;/code&amp;gt; means the pointer can reference ''any'' object. &lt;br /&gt;
;Function Types&lt;br /&gt;
* types are all derived. Name and return type are specified by the ''function declarator''. Parameter types must be specified unless of type &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
int max(int a, int b)&lt;br /&gt;
{ return a &amp;gt; b ? a : b; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Here is a function that returns an &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;. The declarator is &amp;lt;code&amp;gt;max(int a, int b)&amp;lt;/code&amp;gt; and the function body is the 2nd line&lt;br /&gt;
* The function specification (line 2) may not include any type qualifiers (e.g., int, char, etc.)&lt;br /&gt;
&lt;br /&gt;
;Derived Types &lt;br /&gt;
pointers, arrays, type definitions, structures and unions&lt;br /&gt;
*'''Pointers''': derived from the function or object it points to, which is the ''referenced'' type. E.g., &amp;lt;code&amp;gt;int i= 17; int *ip = &amp;amp;i;&amp;lt;/code&amp;gt;, &lt;br /&gt;
declares the variable &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; as a pointer to int and assigns it the address of i. '''The unary * operator converts a pointer to a type into a value of that type.''' Consider &amp;lt;code&amp;gt;ip = &amp;amp;*ip;&amp;lt;/code&amp;gt;. Here * is ''dereferencing'' &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt;. It takes the address using &amp;amp; and retrieves the pointer. &lt;br /&gt;
* '''Arrays''': contiguously allocated sequence of objects of the same type. E.g. &amp;lt;code&amp;gt;int ia[11], float *afp[17];&amp;lt;/code&amp;gt;. To declare a matrix, use something like &amp;lt;code&amp;gt;int arr[3][5];&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void func(int arr[5]);&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned int i = 0;&lt;br /&gt;
  unsigned int j = 0;&lt;br /&gt;
  int arr[3][5];&lt;br /&gt;
  u func(arr[i]);&lt;br /&gt;
  v int x = arr[i][j];&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
What's happening? &lt;br /&gt;
When the function calls &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;, a bunch of shit happens:&lt;br /&gt;
# &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; is converted to a pointer to the initial 5-element int array, starting at &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; is scaled to the type of &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; by multiplying it by the size of one array of 5 int objects&lt;br /&gt;
# The results from the above are added&lt;br /&gt;
# Indirection is applied to the result to produce an array of 5 int elements&lt;br /&gt;
&lt;br /&gt;
; Structures&lt;br /&gt;
* contain sequentially allocated memory objects&lt;br /&gt;
* objects have their own names and may or may not share the same type (unlike arrays, which are monotyyped); similar to records&lt;br /&gt;
* &lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct sigrecord {&lt;br /&gt;
  int signum;&lt;br /&gt;
  char signame[20];&lt;br /&gt;
  char sigdesc[100];&lt;br /&gt;
} sigline, *sigline_p;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Arithmetic Types===&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=840</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=840"/>
		<updated>2022-03-18T23:41:31Z</updated>

		<summary type="html">&lt;p&gt;70.227.90.184: /* Basics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Elements of C==&lt;br /&gt;
Sources&lt;br /&gt;
* [http://robertseacord.com/wp/errata/ Effective C ]by Robert Seacord&lt;br /&gt;
* [https://www.oreilly.com/library/view/21st-century-c/9781449344382/ 21st Century C] by Ben Clemens&lt;br /&gt;
* [https://shop.learncodethehardway.org/products/contents/3/ Learn C the Hard Way] by Zed Shaw&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6128-6 Practical Numerical C Programming] and [https://learning.oreilly.com/library/view/numerical-c-applied/9781484250648/ Numerical C] by Philip Joyce&lt;br /&gt;
* [https://link.springer.com/book/10.1007/978-1-4842-6927-5 Pointers in C Programming] by Thomas Mailund&lt;br /&gt;
* [https://www.packtpub.com/product/learn-c-programming-second-edition/9781801078450 Learn C Programming] by Jeff Szuhay&lt;br /&gt;
* [https://www.packtpub.com/product/practical-c-programming/9781838641108 Practical C Programming] by B.M. Harwani&lt;br /&gt;
* [https://github.com/Apress/practical-c Practical C] by Giulio Zambon (2016) &lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
;Objects, Functions, Types and Pointers&lt;br /&gt;
* '''object''': storage used to represent values. (Per ISO/IEC 9989:2018: &amp;quot;a region of data storage in the execution environment, the contents of which can represent values.  A '''variable''' is an example of an object. An object with '''type''' &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; contains and integer value. E.g. why types are important: the ''text'' number 1 in IEEE 754 (ASCII, roughly) is specified by 0x3f80000, which a little over a billion as a decimal. &lt;br /&gt;
* '''functions''': are not objects, but do have types. A function is defined by both its return type and the number and types of its parameters. &lt;br /&gt;
* '''types''': &amp;lt;code&amp;gt;int, char, bool, float, long int...&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''pointers''': an address or location in memory where an object or function is stored. Pointer types derive from the ''referenced'' function. or object type. E.g., &amp;lt;code&amp;gt;*char&amp;lt;/code&amp;gt; is called a ''pointer to char''. &lt;br /&gt;
* Because objects and functions are different things, object pointers differ from function pointers&lt;br /&gt;
* In the swap program below the &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function declares two variables of type &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;, using the combination of a type (int), an identifier (a,b) and a value (21,17). Assigning the values is also called ''initialization&lt;br /&gt;
&lt;br /&gt;
* '''parameters''': objects declared as part of a function declaration that acquire value on entry to the function&lt;br /&gt;
* '''argruments''': comma-separated expressions included in the function call expression (whether values or pointers)&lt;br /&gt;
* '''pass-by-value''': C's default behavior. When you provide an argument to a function, its value is copied into a distinct variable for use within that function. When the values of the parameters are changed, the values in the caller are unaffected because they are distinct objects.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void swap(int *pa, int *pb) {&lt;br /&gt;
  int t = *pa;&lt;br /&gt;
  *pa = *pb;&lt;br /&gt;
  *pb = t;&lt;br /&gt;
  //  int t = a;&lt;br /&gt;
  //a = b;&lt;br /&gt;
  //b = t;&lt;br /&gt;
  printf(&amp;quot;swap: a = %d, b = %d\n&amp;quot;, *pa,*pb);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void){&lt;br /&gt;
  int a = 21;&lt;br /&gt;
  int b = 17; &lt;br /&gt;
  swap(&amp;amp;a, &amp;amp;b);&lt;br /&gt;
  printf(&amp;quot;main: a = %d, b = %d\n&amp;quot;, a, b);&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* The commented lines in the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; function show the original program, which failed to swap &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;'s values, because they were being passed by value rather than reference. The corrected version (above) declares and dereferences pointers with the '''indirection''' operator (*)&lt;br /&gt;
* In the new version, the line &amp;lt;code&amp;gt;*pa=*pb&amp;lt;/code&amp;gt; serves to: &lt;br /&gt;
# deference the pointer &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt;&lt;br /&gt;
# reads the referenced value&lt;br /&gt;
# dereference the pointer &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; &lt;br /&gt;
# overwrite the value at the location referenced by &amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt; with the value referenced by &amp;lt;code&amp;gt;pb&amp;lt;/code&amp;gt; &lt;br /&gt;
* in the main function, &amp;lt;code&amp;gt;&amp;amp;a&amp;lt;/code&amp;gt; , the unary &amp;amp; operator (''address-of'' operator) generates a pointer to its operand. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void increment(void) {&lt;br /&gt;
  static unsigned int counter = 0;&lt;br /&gt;
  counter++; &lt;br /&gt;
  printf(&amp;quot;%d&amp;quot;, counter);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(void) {&lt;br /&gt;
  for (int i = 0; i &amp;lt; 5; i++) {&lt;br /&gt;
    increment();&lt;br /&gt;
  }&lt;br /&gt;
  return 0; &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Scope/Lifetime''': scope applies to identifiers, lifetime applies to objects&lt;br /&gt;
* '''Storage duration''': automatic, static, thread, allocated&lt;br /&gt;
* '''Alignment''': object types have restrictions on the addresses at which they may be stored. an ''alignment'' is the number of bytes between successive addresses at which a given object can be allocated. Traditionally done with linker commands or overallocating memory with &amp;lt;code&amp;gt;malloc&amp;lt;/code&amp;gt;, followed by rounding the address up to nearest power of 2. &lt;br /&gt;
* C11 sorted most of this out. Alignments are values of type &amp;lt;code&amp;gt;size_t&amp;lt;/code&amp;gt;. Valid assignments are non-negative powers of 2. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct S {&lt;br /&gt;
  int i; double d; char c;&lt;br /&gt;
};&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned char bad_buff[sizeof(struct S)];&lt;br /&gt;
  _Alignas(struct S) unsigned char good_buff[sizeof(struct S)];&lt;br /&gt;
  struct S *bad_s_ptr = (struct S *)bad_buff;   // wrong pointer alignment&lt;br /&gt;
  struct S *good_s_ptr = (struct S *)good_buff; // correct pointer alignment&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above code &lt;br /&gt;
&lt;br /&gt;
;Object Types&lt;br /&gt;
* Boolean: declare as &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt;; contains either 0 or 1. (Also denoted &amp;lt;code&amp;gt;_Bool&amp;lt;/code&amp;gt;&lt;br /&gt;
* Character: &amp;lt;code&amp;gt; char, signed char, unsigned char&amp;lt;/code&amp;gt;&lt;br /&gt;
* Numeric: &amp;lt;code&amp;gt;signed char, short int, int, long, long long int&amp;lt;/code&amp;gt;. For each there is a corresponding unsigned type that uses the same amount of storage (but obviously only 1/2 the range on the positive side). &lt;br /&gt;
* Enumerations: allows type definition by assigning names (&amp;quot;enumerators&amp;quot;) to integer values. E.g., {S,M,T,W,Th,F,Sa}&lt;br /&gt;
* Floating-point: &amp;lt;code&amp;gt;float, double, long double&amp;lt;/code&amp;gt;. &lt;br /&gt;
* void: the keyword &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt; means &amp;quot;cannot hold any value&amp;quot;. However, &amp;lt;code&amp;gt;void *&amp;lt;/code&amp;gt; means the pointer can reference ''any'' object. &lt;br /&gt;
;Function Types&lt;br /&gt;
* types are all derived. Name and return type are specified by the ''function declarator''. Parameter types must be specified unless of type &amp;lt;code&amp;gt;void&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
int max(int a, int b)&lt;br /&gt;
{ return a &amp;gt; b ? a : b; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Here is a function that returns an &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt;. The declarator is &amp;lt;code&amp;gt;max(int a, int b)&amp;lt;/code&amp;gt; and the function body is the 2nd line&lt;br /&gt;
* The function specification (line 2) may not include any type qualifiers (e.g., int, char, etc.)&lt;br /&gt;
&lt;br /&gt;
;Derived Types &lt;br /&gt;
pointers, arrays, type definitions, structures and unions&lt;br /&gt;
*'''Pointers''': derived from the function or object it points to, which is the ''referenced'' type. E.g., &amp;lt;code&amp;gt;int i= 17; int *ip = &amp;amp;i;&amp;lt;/code&amp;gt;, &lt;br /&gt;
declares the variable &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; as a pointer to int and assigns it the address of i. '''The unary * operator converts a pointer to a type into a value of that type.''' Consider &amp;lt;code&amp;gt;ip = &amp;amp;*ip;&amp;lt;/code&amp;gt;. Here * is ''dereferencing'' &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt;. It takes the address using &amp;amp; and retrieves the pointer. &lt;br /&gt;
* '''Arrays''': contiguously allocated sequence of objects of the same type. E.g. &amp;lt;code&amp;gt;int ia[11], float *afp[17];&amp;lt;/code&amp;gt;. To declare a matrix, use something like &amp;lt;code&amp;gt;int arr[3][5];&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
void func(int arr[5]);&lt;br /&gt;
int main(void) {&lt;br /&gt;
  unsigned int i = 0;&lt;br /&gt;
  unsigned int j = 0;&lt;br /&gt;
  int arr[3][5];&lt;br /&gt;
  u func(arr[i]);&lt;br /&gt;
  v int x = arr[i][j];&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
What's happening? &lt;br /&gt;
When the function calls &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;, a bunch of shit happens:&lt;br /&gt;
# &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; is converted to a pointer to the initial 5-element int array, starting at &amp;lt;code&amp;gt;arr[i]&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; is scaled to the type of &amp;lt;code&amp;gt;arr&amp;lt;/code&amp;gt; by multiplying it by the size of one array of 5 int objects&lt;br /&gt;
# The results from the above are added&lt;br /&gt;
# Indirection is applied to the result to produce an array of 5 int elements&lt;br /&gt;
&lt;br /&gt;
; Structures&lt;br /&gt;
* contain sequentially allocated memory objects&lt;br /&gt;
* objects have their own names and may or may not share the same type (unlike arrays, which are monotyyped); similar to records&lt;br /&gt;
* &lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt;&lt;br /&gt;
struct sigrecord {&lt;br /&gt;
  int signum;&lt;br /&gt;
  char signame[20];&lt;br /&gt;
  char sigdesc[100];&lt;br /&gt;
} sigline, *sigline_p;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Arithmetic Types===&lt;/div&gt;</summary>
		<author><name>70.227.90.184</name></author>
	</entry>
</feed>