<?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=98.152.106.150</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=98.152.106.150"/>
	<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/wiki/Special:Contributions/98.152.106.150"/>
	<updated>2026-12-03T13:15:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1204</id>
		<title>Electrical tools</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1204"/>
		<updated>2024-12-19T17:16:03Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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;
* [https://toolup.com ToolUp]&lt;br /&gt;
* [https://maxtool.com MaxTool]&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;br /&gt;
===Gear===&lt;br /&gt;
* [https://trustedgearco.com Trusted Gear]&lt;br /&gt;
* [https://shopmtn.com MTN Shop]&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1203</id>
		<title>Electrical tools</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Electrical_tools&amp;diff=1203"/>
		<updated>2024-12-16T19:13:29Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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;br /&gt;
===Gear===&lt;br /&gt;
* [https://trustedgearco.com Trusted Gear]&lt;br /&gt;
* [https://shopmtn.com MTN Shop]&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Swap_files&amp;diff=1192</id>
		<title>Swap files</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Swap_files&amp;diff=1192"/>
		<updated>2024-08-02T16:54:02Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Creating a swap file===&lt;br /&gt;
Te create a swapfile on the fly, without partitioning etc., do the following:&lt;br /&gt;
  # mkswap -U clear --size XG --file /swapfile&lt;br /&gt;
Activate it:&lt;br /&gt;
  # swapon /swapfile&lt;br /&gt;
Last, add an entry to the filesystem table (fstab): &lt;br /&gt;
  /swapfile  none  swap defaults 0 0&lt;br /&gt;
&lt;br /&gt;
===Removing a swap file===&lt;br /&gt;
Turn it off first: &lt;br /&gt;
  # swapoff /swapfile &lt;br /&gt;
Then delete the file: &lt;br /&gt;
  rm -f /swapfile&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Input_devices&amp;diff=1191</id>
		<title>Input devices</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Input_devices&amp;diff=1191"/>
		<updated>2024-08-02T16:35:11Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Get rid of the fucking middle button paste: &lt;br /&gt;
 xmodmap -e &amp;quot;pointer = 1 25 3 4 5 6 7 8 9 10&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Apparently under Wayland this is harder than under X11: &lt;br /&gt;
 gsettings set org.gnome.desktop.peripherals.touchpad middle-click-emulation false&lt;br /&gt;
might work.&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bluetooth&amp;diff=1150</id>
		<title>Bluetooth</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bluetooth&amp;diff=1150"/>
		<updated>2024-01-04T17:55:04Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: Created page with &amp;quot;Handful of pages at ArchWiki, but [https://www.jeremymorgan.com/tutorials/linux/how-to-bluetooth-arch-linux/ this] is the most thorough.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Handful of pages at ArchWiki, but [https://www.jeremymorgan.com/tutorials/linux/how-to-bluetooth-arch-linux/ this] is the most thorough.&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Spanish&amp;diff=1113</id>
		<title>Spanish</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Spanish&amp;diff=1113"/>
		<updated>2023-12-14T19:22:28Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Markdown diacritical mark [https://en.wikibooks.org/wiki/LaTeX/Special_Characters codes]&lt;br /&gt;
&lt;br /&gt;
==Verb Tenses in English==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;vertical-align:middle;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;font-weight:bold;&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight:normal;&amp;quot; | &lt;br /&gt;
! Present&lt;br /&gt;
! Past&lt;br /&gt;
! Future&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Simple&lt;br /&gt;
| I work&lt;br /&gt;
| I worked&lt;br /&gt;
| I will work&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Perfect&lt;br /&gt;
| I have worked&lt;br /&gt;
| I had worked&lt;br /&gt;
| I will have worked&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Progressive&lt;br /&gt;
| I am working&lt;br /&gt;
| I was working&lt;br /&gt;
| I will be working&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Perfect Progressive&lt;br /&gt;
| I have been working&lt;br /&gt;
| I had been working&lt;br /&gt;
| I will have been working&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Conditional&lt;br /&gt;
| I would work&lt;br /&gt;
| I would have worked&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Conditional Progressive&lt;br /&gt;
| I would be working&lt;br /&gt;
| i would have been working&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Verb Tenses in Spanish==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;vertical-align:middle;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;font-weight:bold;&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight:normal;&amp;quot; | &lt;br /&gt;
! Present&lt;br /&gt;
! Past&lt;br /&gt;
! Future&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Simple&lt;br /&gt;
| hablo/habla&lt;br /&gt;
| habl&amp;amp;eacute;/habl&amp;amp;oacute;&lt;br /&gt;
| hablar&amp;amp;eacute;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Perfect&lt;br /&gt;
| he/ha hablado&lt;br /&gt;
| hab&amp;amp;iacute;a hablado&lt;br /&gt;
| habr&amp;amp;eacute;/habr&amp;amp;aacute; hablado&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Progressive&lt;br /&gt;
| estoy hablando&lt;br /&gt;
| estaba hablando&lt;br /&gt;
| estar&amp;amp;eacute; hablando&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Perfect Progressive&lt;br /&gt;
| he estado hablando&lt;br /&gt;
| habia estado hablando&lt;br /&gt;
| habre estado hablando&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Conditional&lt;br /&gt;
| hablar&amp;amp;iacute;a&lt;br /&gt;
| hubiera hablado&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-weight:bold;&amp;quot; | Conditional Progressive&lt;br /&gt;
| estar&amp;amp;iacute;a hablando&lt;br /&gt;
| hubiera estado hablando&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Modal Verbs===&lt;br /&gt;
He should work - El deber&amp;amp;iacute;a trabajar&lt;br /&gt;
&lt;br /&gt;
He could work - El podr&amp;amp;iacute;a trabajar&lt;br /&gt;
&lt;br /&gt;
==Comparison of Tenses==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|-&lt;br /&gt;
! Simple&lt;br /&gt;
! English&lt;br /&gt;
! Tense&lt;br /&gt;
! Spanish&lt;br /&gt;
|-&lt;br /&gt;
| Present&lt;br /&gt;
| I work&lt;br /&gt;
| Presente&lt;br /&gt;
| hablo/habla&lt;br /&gt;
|-&lt;br /&gt;
| Imperfect&lt;br /&gt;
| I was working&lt;br /&gt;
| Imperfecto&lt;br /&gt;
| hablaba&lt;br /&gt;
|-&lt;br /&gt;
| Preterite&lt;br /&gt;
| I worked&lt;br /&gt;
| Pret&amp;amp;eacute;rito&lt;br /&gt;
| habl&amp;amp;eacute;/habl&amp;amp;oacute;&lt;br /&gt;
|-&lt;br /&gt;
| Future&lt;br /&gt;
| I will work&lt;br /&gt;
| Futuro&lt;br /&gt;
| hablar&amp;amp;eacute;/hablar&amp;amp;aacute;&lt;br /&gt;
|-&lt;br /&gt;
| Conditional&lt;br /&gt;
| I would work&lt;br /&gt;
| Condicional&lt;br /&gt;
| hablar&amp;amp;iacute;a&lt;br /&gt;
|-&lt;br /&gt;
| Subjunctive&lt;br /&gt;
| I worked&lt;br /&gt;
| Subjuntivo&lt;br /&gt;
| hable&lt;br /&gt;
|-&lt;br /&gt;
| Imperfect Subjunctive&lt;br /&gt;
| I will work&lt;br /&gt;
| Imperfecto de Subjuntivo&lt;br /&gt;
| hablara(1)/hablase(2)&lt;br /&gt;
|-&lt;br /&gt;
| Future Subjunctive&lt;br /&gt;
| I will work&lt;br /&gt;
| Futuro de Subjuntivo&lt;br /&gt;
| hablare&lt;br /&gt;
|-&lt;br /&gt;
| Imperative&lt;br /&gt;
| work&lt;br /&gt;
| Imperativo&lt;br /&gt;
| habla/hable&lt;br /&gt;
|-&lt;br /&gt;
! Compound&lt;br /&gt;
! English&lt;br /&gt;
! Tense&lt;br /&gt;
! Spanish&lt;br /&gt;
|-&lt;br /&gt;
| Present Perfect&lt;br /&gt;
| I have worked&lt;br /&gt;
| Perfecto de Indicativo&lt;br /&gt;
| he/ha hablado&lt;br /&gt;
|-&lt;br /&gt;
| Past Perfect&lt;br /&gt;
| I had worked&lt;br /&gt;
| Pluscuamperfecto&lt;br /&gt;
| hab&amp;amp;iacute;a hablado&lt;br /&gt;
|-&lt;br /&gt;
| Past Anterior&lt;br /&gt;
| I had worked&lt;br /&gt;
| Pret&amp;amp;eacute;rito Anterior&lt;br /&gt;
| hube/hubo hablado&lt;br /&gt;
|-&lt;br /&gt;
| Future Perfect&lt;br /&gt;
| I will have worked&lt;br /&gt;
| Futuro Perfecto&lt;br /&gt;
| habr&amp;amp;eacute;/habr&amp;amp;aacute; hablado&lt;br /&gt;
|-&lt;br /&gt;
| Conditional Perfect&lt;br /&gt;
| I would have worked&lt;br /&gt;
| Condicional Compuesto&lt;br /&gt;
| habr&amp;amp;iacute;a hablado&lt;br /&gt;
|-&lt;br /&gt;
| Present Perfect Subjunctive&lt;br /&gt;
| I have worked&lt;br /&gt;
| Perfecto de Subjuntivo&lt;br /&gt;
| haya hablado&lt;br /&gt;
|-&lt;br /&gt;
| Pluperfect Subjunctive&lt;br /&gt;
| I would have worked&lt;br /&gt;
| Pluscuamperfecto de Subjuntivo&lt;br /&gt;
| hubiera hablado&lt;br /&gt;
|-&lt;br /&gt;
| Future Perfect Subjunctive&lt;br /&gt;
| I would have worked&lt;br /&gt;
| Futuro Perfecto de Subjuntivo&lt;br /&gt;
| hubiere hablado&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1110</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=1110"/>
		<updated>2023-12-13T17:12:42Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Python Stats */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
===LaTeX===&lt;br /&gt;
* Good page on [https://www1.cmc.edu/pages/faculty/aaksoy/latex/latexfive.html figures] and placement&lt;br /&gt;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&lt;br /&gt;
&lt;br /&gt;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&lt;br /&gt;
* [https://andrealommen.github.io/PHY309/ Electricity and Magnetism] course notes&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;
* [https://github.com/jessica-wyleung/VMLS-py/blob/master/population_data.ipynb Datasets] for VMLS book&lt;br /&gt;
&lt;br /&gt;
===Spanish===&lt;br /&gt;
* [https://www.spanish.academy/blog/1000-most-common-spanish-words-for-beginners/ 1000 common words] in Spanish&lt;br /&gt;
* [https://34.82.141.54/wiki/Spanish Tense/Aspect/Mood]&lt;br /&gt;
&lt;br /&gt;
===SQL and friends===&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;
===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;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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1109</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=1109"/>
		<updated>2023-12-13T17:11:22Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Physics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
===LaTeX===&lt;br /&gt;
* Good page on [https://www1.cmc.edu/pages/faculty/aaksoy/latex/latexfive.html figures] and placement&lt;br /&gt;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&lt;br /&gt;
&lt;br /&gt;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&lt;br /&gt;
* [https://andrealommen.github.io/PHY309/ Electricity and Magnetism] course notes&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;
===Spanish===&lt;br /&gt;
* [https://www.spanish.academy/blog/1000-most-common-spanish-words-for-beginners/ 1000 common words] in Spanish&lt;br /&gt;
* [https://34.82.141.54/wiki/Spanish Tense/Aspect/Mood]&lt;br /&gt;
&lt;br /&gt;
===SQL and friends===&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;
===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;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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1108</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=1108"/>
		<updated>2023-12-13T17:10:28Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* SQL and friends */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
===LaTeX===&lt;br /&gt;
* Good page on [https://www1.cmc.edu/pages/faculty/aaksoy/latex/latexfive.html figures] and placement&lt;br /&gt;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&lt;br /&gt;
&lt;br /&gt;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&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;
===Spanish===&lt;br /&gt;
* [https://www.spanish.academy/blog/1000-most-common-spanish-words-for-beginners/ 1000 common words] in Spanish&lt;br /&gt;
* [https://34.82.141.54/wiki/Spanish Tense/Aspect/Mood]&lt;br /&gt;
&lt;br /&gt;
===SQL and friends===&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;
===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;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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1107</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=1107"/>
		<updated>2023-12-13T17:10:19Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Python Stats */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
===LaTeX===&lt;br /&gt;
* Good page on [https://www1.cmc.edu/pages/faculty/aaksoy/latex/latexfive.html figures] and placement&lt;br /&gt;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&lt;br /&gt;
&lt;br /&gt;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&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;
===Spanish===&lt;br /&gt;
* [https://www.spanish.academy/blog/1000-most-common-spanish-words-for-beginners/ 1000 common words] in Spanish&lt;br /&gt;
* [https://34.82.141.54/wiki/Spanish Tense/Aspect/Mood]&lt;br /&gt;
&lt;br /&gt;
===SQL and friends===&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;
&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;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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1106</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=1106"/>
		<updated>2023-12-13T17:09:40Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
===LaTeX===&lt;br /&gt;
* Good page on [https://www1.cmc.edu/pages/faculty/aaksoy/latex/latexfive.html figures] and placement&lt;br /&gt;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&lt;br /&gt;
&lt;br /&gt;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&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;
&lt;br /&gt;
===Spanish===&lt;br /&gt;
* [https://www.spanish.academy/blog/1000-most-common-spanish-words-for-beginners/ 1000 common words] in Spanish&lt;br /&gt;
* [https://34.82.141.54/wiki/Spanish Tense/Aspect/Mood]&lt;br /&gt;
&lt;br /&gt;
===SQL and friends===&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;
&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;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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1105</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=1105"/>
		<updated>2023-12-13T17:06:52Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Spanish */&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;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&lt;br /&gt;
===Spanish===&lt;br /&gt;
* [https://www.spanish.academy/blog/1000-most-common-spanish-words-for-beginners/ 1000 common words] in Spanish&lt;br /&gt;
* [https://34.82.141.54/wiki/Spanish Tense/Aspect/Mood]&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1104</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=1104"/>
		<updated>2023-12-13T17:05:51Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Physics */&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;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&lt;br /&gt;
===Spanish===&lt;br /&gt;
* [https://www.spanish.academy/blog/1000-most-common-spanish-words-for-beginners/ 1000 common words] in Spanish&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1103</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=1103"/>
		<updated>2023-12-13T16:56:58Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* LaTeX */&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;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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;
* [https://www.mecmath.net/latex-tutorial.pdf Mini-tutorial] on LaTeX&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1102</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=1102"/>
		<updated>2023-12-13T16:56:12Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Music */&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;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&lt;br /&gt;
* [https://archive.org/details/GratefulDead?query=slipknot Grateful Dead archive]&lt;br /&gt;
&lt;br /&gt;
===Physics===&lt;br /&gt;
* [http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html HyperPhysics] outline of physics&lt;br /&gt;
* [https://www.whitman.edu/mathematics/multivariable/multivariable_16_Vector_Calculus.pdf Vector Calculus] notes&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1101</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=1101"/>
		<updated>2023-12-13T16:53:26Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
===Music===&lt;br /&gt;
* [https://guitarscale.org guitarscale.org]&lt;br /&gt;
* [https://pedrokroger.net/mfgan Music for Geeks and Nerds]&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Zen&amp;diff=1100</id>
		<title>Zen</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Zen&amp;diff=1100"/>
		<updated>2023-12-13T16:51:00Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;;&amp;lt;math&amp;gt; \text{Zen Things} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. Do one thing at a time.&lt;br /&gt;
&lt;br /&gt;
2. Do it slowly and deliberately.&lt;br /&gt;
&lt;br /&gt;
3. Do it completely.&lt;br /&gt;
&lt;br /&gt;
4. Do less.&lt;br /&gt;
&lt;br /&gt;
5. Put space between things. &lt;br /&gt;
&lt;br /&gt;
6. Develop rituals. &lt;br /&gt;
&lt;br /&gt;
7. Designate time for certain things.&lt;br /&gt;
&lt;br /&gt;
8. Devote time to sitting. &lt;br /&gt;
&lt;br /&gt;
9. Smile and serve others. &lt;br /&gt;
&lt;br /&gt;
10. Make cleaning and cooking become meditation. &lt;br /&gt;
&lt;br /&gt;
11. Think about what is necessary. &lt;br /&gt;
&lt;br /&gt;
12. Live simply.&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1040</id>
		<title>Reading list</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1040"/>
		<updated>2023-11-08T20:00:44Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Electricity */&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;br /&gt;
&lt;br /&gt;
===Electricity===&lt;br /&gt;
* Electricity and Magnetism, Purcell &amp;amp; Morin&lt;br /&gt;
* Practical Electronics for Inventors, Scherz &amp;amp; Monk&lt;br /&gt;
* Basic Electronics: Theory and Practice, Westcott &lt;br /&gt;
* Introduction to Electricity, Magnetism and Circuits, Janzen&lt;br /&gt;
* Delmar's Standard Textbook of Electricity, Herman&lt;br /&gt;
* Electrical and Electronic Principles and Technology, Bird&lt;br /&gt;
* Engineering Mathematics, Croft et al&lt;br /&gt;
* Mathematics for Electrical Engineering and Computing, Attenborough&lt;br /&gt;
* The Electrical Engineering Handbook, Dorf (Ed.)&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1039</id>
		<title>Reading list</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Reading_list&amp;diff=1039"/>
		<updated>2023-11-08T20:00:11Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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;br /&gt;
&lt;br /&gt;
===Electricity===&lt;br /&gt;
Electricity and Magnetism, Purcell &amp;amp; Morin&lt;br /&gt;
Practical Electronics for Inventors, Scherz &amp;amp; Monk&lt;br /&gt;
Basic Electronics: Theory and Practice, Westcott &lt;br /&gt;
Introduction to Electricity, Magnetism and Circuits, Janzen&lt;br /&gt;
Delmar's Standard Textbook of Electricity, Herman&lt;br /&gt;
Electrical and Electronic Principles and Technology, Bird&lt;br /&gt;
Engineering Mathematics, Croft et al&lt;br /&gt;
Mathematics for Electrical Engineering and Computing, Attenborough&lt;br /&gt;
The Electrical Engineering Handbook, Dorf (Ed.)&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=1020</id>
		<title>Python venv</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=1020"/>
		<updated>2023-10-23T18:35:51Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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;
* Managing [https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment virtual environments] with Conda&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=1008</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=1008"/>
		<updated>2023-09-19T17:07:24Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Jobs */&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;
* USC [https://usccareers.usc.edu/job/-/-/1209/49754846192 Adjunct Professor] of Finance and Business Economics&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Online_books&amp;diff=1003</id>
		<title>Online books</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Online_books&amp;diff=1003"/>
		<updated>2023-08-30T17:52:50Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Math */&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;
*&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Keyboard&amp;diff=992</id>
		<title>Keyboard</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Keyboard&amp;diff=992"/>
		<updated>2023-06-22T19:07:44Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To fix the problem: &lt;br /&gt;
  setxkbmap us dvorak&lt;br /&gt;
&lt;br /&gt;
Normally:&lt;br /&gt;
  loadkeys dvorak&lt;br /&gt;
from the terminal will fix it for the terminal, from which you can run `localectl`, etc.&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Keyboard&amp;diff=991</id>
		<title>Keyboard</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Keyboard&amp;diff=991"/>
		<updated>2023-06-22T19:05:45Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: Created page with &amp;quot;To fix the problem:    setxkbmap us dvorak&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To fix the problem: &lt;br /&gt;
  setxkbmap us dvorak&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=978</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=978"/>
		<updated>2023-02-07T18:49:15Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
* [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;br /&gt;
* Conversion of R statistical functions to [https://github.com/tirthajyoti/Stats-Maths-with-Python/blob/master/R_Functions.py Python]&lt;br /&gt;
* [https://towardsdatascience.com/8-commonly-used-pandas-display-options-you-should-know-a832365efa95 Pandas] display options cheatsheet&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=977</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=977"/>
		<updated>2023-02-07T18:40:36Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
* [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;br /&gt;
* Conversion of R statistical functions to [https://github.com/tirthajyoti/Stats-Maths-with-Python/blob/master/R_Functions.py Python]&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=976</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=976"/>
		<updated>2023-02-07T18:40:14Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
* [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;br /&gt;
* Conversion of &amp;lt;math&amp;gt;\texttt{R}&amp;lt;\math&amp;gt; statistical functions to [https://github.com/tirthajyoti/Stats-Maths-with-Python/blob/master/R_Functions.py Python]&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=975</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=975"/>
		<updated>2023-02-07T18:39:50Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
* [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;br /&gt;
* Conversion of $\texttt{R}$ statistical functions to [https://github.com/tirthajyoti/Stats-Maths-with-Python/blob/master/R_Functions.py Python]&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=972</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=972"/>
		<updated>2023-01-09T17:13:56Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=970</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=970"/>
		<updated>2022-12-29T18:49:24Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=969</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=969"/>
		<updated>2022-12-29T18:48:09Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
* *Bayesian Modeling and Computation in Python* by Martin, Kumar &amp;amp; Lao [https://bayesiancomputationbook.com/markdown/chp_01.html 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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=968</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=968"/>
		<updated>2022-12-29T18:44:54Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=967</id>
		<title>Bayes' Theorem</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Bayes%27_Theorem&amp;diff=967"/>
		<updated>2022-12-29T18:40:29Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=966</id>
		<title>Python venv</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=966"/>
		<updated>2022-11-29T17:12:45Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=965</id>
		<title>Python venv</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=965"/>
		<updated>2022-11-29T17:12:01Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=964</id>
		<title>Python venv</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=Python_venv&amp;diff=964"/>
		<updated>2022-11-29T17:10:40Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: Created page with &amp;quot;Establish a new virtual environment:   python -m venv venv Next, activate it:  source venv/bin/activate You should see the new prompt indicating you're inside the virtual envi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=963</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=963"/>
		<updated>2022-11-10T19:02:33Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Visualization */&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)&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;
===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>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=876</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=876"/>
		<updated>2022-04-05T16:51:20Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=875</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=875"/>
		<updated>2022-04-05T16:50:21Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=874</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=874"/>
		<updated>2022-04-05T16:49:20Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=873</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=873"/>
		<updated>2022-04-05T16:48:22Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=Where_was_i&amp;diff=872</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=872"/>
		<updated>2022-04-05T16:47:51Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &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;
&lt;br /&gt;
===Long view===&lt;br /&gt;
* [https://algorithmiq.fi/impact AKFU's algo platform]&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=871</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=871"/>
		<updated>2022-04-04T18:59:36Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Effective 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;
* 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;
*String formatting specifiers can be found [https://www.tutorialspoint.com/format-specifiers-in-c here]&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;. They have either an explicit or positional value&lt;br /&gt;
* Integer constant expressions (ICE)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt; &lt;br /&gt;
signed const o42 = 42; &lt;br /&gt;
enum {&lt;br /&gt;
  b42 = 42,    // ok, 42 is a literal&lt;br /&gt;
  c52 = o42 + 10  // Not ok: o42 is an object&lt;br /&gt;
  b52 = b42 + 10  // ok, b42 is not an object&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* A '''macro''' provides textual replacement of the program code, introduced by the &amp;lt;code&amp;gt;#define&amp;lt;/code&amp;gt; keyword &lt;br /&gt;
* [The macro example on p.55 doesn't even remotely work]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Effective C===&lt;br /&gt;
*Bitwise operators: AND (&amp;amp;), XOR (^), OR (|)&lt;br /&gt;
*Logical operators: AND (&amp;amp;&amp;amp;), OR (||) &lt;br /&gt;
*Cast operators: aka typecasting. Precede an expression with parenthesized type name: &amp;lt;code&amp;gt; int sum = (int)x + 1; &amp;lt;/code&amp;gt; &lt;br /&gt;
*Conditional operator: &amp;lt;code&amp;gt; result = condition ? valueReturnedIfTrue : valueReturnedIfFalse; &amp;lt;/code&amp;gt;. Example: &amp;lt;code&amp;gt; const int x = (a &amp;lt; b) ? b : a; &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=870</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=870"/>
		<updated>2022-04-04T18:59:07Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* Binary Representations */&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;
*String formatting specifiers can be found [https://www.tutorialspoint.com/format-specifiers-in-c here]&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;. They have either an explicit or positional value&lt;br /&gt;
* Integer constant expressions (ICE)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt; &lt;br /&gt;
signed const o42 = 42; &lt;br /&gt;
enum {&lt;br /&gt;
  b42 = 42,    // ok, 42 is a literal&lt;br /&gt;
  c52 = o42 + 10  // Not ok: o42 is an object&lt;br /&gt;
  b52 = b42 + 10  // ok, b42 is not an object&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* A '''macro''' provides textual replacement of the program code, introduced by the &amp;lt;code&amp;gt;#define&amp;lt;/code&amp;gt; keyword &lt;br /&gt;
* [The macro example on p.55 doesn't even remotely work]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Effective C===&lt;br /&gt;
Bitwise operators: AND (&amp;amp;), XOR (^), OR (|)&lt;br /&gt;
Logical operators: AND (&amp;amp;&amp;amp;), OR (||) &lt;br /&gt;
Cast operators: aka typecasting. Precede an expression with parenthesized type name: &amp;lt;code&amp;gt; int sum = (int)x + 1; &amp;lt;/code&amp;gt; &lt;br /&gt;
Conditional operator: &amp;lt;code&amp;gt; result = condition ? valueReturnedIfTrue : valueReturnedIfFalse; &amp;lt;/code&amp;gt;. Example: &amp;lt;code&amp;gt; const int x = (a &amp;lt; b) ? b : a; &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=869</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=869"/>
		<updated>2022-04-04T17:47:16Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
*String formatting specifiers can be found [https://www.tutorialspoint.com/format-specifiers-in-c here]&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;. They have either an explicit or positional value&lt;br /&gt;
* Integer constant expressions (ICE)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=C&amp;gt; &lt;br /&gt;
signed const o42 = 42; &lt;br /&gt;
enum {&lt;br /&gt;
  b42 = 42,    // ok, 42 is a literal&lt;br /&gt;
  c52 = o42 + 10  // Not ok: o42 is an object&lt;br /&gt;
  b52 = b42 + 10  // ok, b42 is not an object&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* A '''macro''' provides textual replacement of the program code, introduced by the &amp;lt;code&amp;gt;#define&amp;lt;/code&amp;gt; keyword &lt;br /&gt;
* [The macro example on p.55 doesn't even remotely work]&lt;br /&gt;
&lt;br /&gt;
====Binary Representations====&lt;br /&gt;
* Non-negative integers are represented as follows: &lt;br /&gt;
&amp;lt;math&amp;gt; \displaystyle\sum_{i=0}^{p-1}b_i2^i&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is the precision of the underlying type, &amp;lt;math&amp;gt;b_0&amp;lt;/math&amp;gt; is the least significant bit (LSB), and &amp;lt;math&amp;gt;b_{p-1}&amp;lt;/math&amp;gt; is the most significant bit (MSB). The maximum value of any integer type is of the form &amp;lt;math&amp;gt;2^{p-1}&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=849</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=849"/>
		<updated>2022-03-24T17:22:54Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
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;, aka the dot operator. &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;
; Tags &lt;br /&gt;
; Type Qualifiers (const, volatile, restrict)&lt;br /&gt;
&lt;br /&gt;
===Arithmetic Types===&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=848</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=848"/>
		<updated>2022-03-24T17:22:22Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: /* 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;
From ''Effective C'' by Robert Seacord&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;
* 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;, aka the dot operator. &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;
; Tags &lt;br /&gt;
; Type Qualifiers (const, volatile, restrict)&lt;br /&gt;
&lt;br /&gt;
===Arithmetic Types===&lt;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=817</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=817"/>
		<updated>2022-03-18T17:33:17Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Elements of C==&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;
&lt;br /&gt;
&lt;br /&gt;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=816</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=816"/>
		<updated>2022-03-18T17:29:02Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Elements of C==&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. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
	<entry>
		<id>https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=815</id>
		<title>C language</title>
		<link rel="alternate" type="text/html" href="https://btechwiki.duckdns.org/index.php?title=C_language&amp;diff=815"/>
		<updated>2022-03-18T17:26:32Z</updated>

		<summary type="html">&lt;p&gt;98.152.106.150: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Elements of C==&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
* pass-by-value is the default. In the swap example, &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;/div&gt;</summary>
		<author><name>98.152.106.150</name></author>
	</entry>
</feed>