From 863641afa60f46d271bf89dea256b2d42fe18de1 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Tue, 23 Jul 2024 01:04:29 -0400 Subject: Fix css tags --- .md/tutorials/www/quick-intro-html-css.md | 22 ++-- tutorials/splunk/how-to-debug-a-splunk-app.html | 30 +++++ tutorials/www/how-to-use-the-internet.html | 155 ++++++++++++++++++++++++ tutorials/www/quick-intro-html-css.html | 88 +++++++------- 4 files changed, 240 insertions(+), 55 deletions(-) create mode 100644 tutorials/splunk/how-to-debug-a-splunk-app.html create mode 100644 tutorials/www/how-to-use-the-internet.html diff --git a/.md/tutorials/www/quick-intro-html-css.md b/.md/tutorials/www/quick-intro-html-css.md index 9c6733f..33a17a2 100644 --- a/.md/tutorials/www/quick-intro-html-css.md +++ b/.md/tutorials/www/quick-intro-html-css.md @@ -379,7 +379,7 @@ For any HTML tag, you can set an attribute that applies everytime it appears in an HTML document that links to the CSS file. A common formatting I use for paragraphs is: -```htmlcss +```css p { margin-top: 1.5%; margin-bottom: 1.5%; @@ -388,7 +388,7 @@ p { And to highlight code, like you've been seeing, I use: -```htmlcss +```css code { display: inline-block; font-size: 125%; @@ -416,7 +416,7 @@ Images get more styles in CSS than I can document in detail, but one important bit you'll want to probably add to all images is the following. -```htmlcss +```css img { max-width: 100%; height: auto; @@ -437,7 +437,7 @@ distorted. In addition to this basic stuff, you can style your images heavily using the filter option like so: -```htmlcss +```css img.gray { filter: grayscale(100%) } @@ -461,7 +461,7 @@ others. An example on this site, I dim the icons a bit so they can appear nice on dark theme browsers just as well. But I don't want to dim *all* images like in the following example: -```htmlcss +```css img { filter: invert(50%); } @@ -477,7 +477,7 @@ src="/static/media/jazzcat.jpg" Instead, I'd like it to just apply to select elements; I can do so by extending the tag with a class. On the CSS side: -```htmlcss +```css img.icon { filter: invert(50%); } @@ -485,7 +485,7 @@ img.icon { And to implement it in HTML: -```htmlcss +```css ``` @@ -499,7 +499,7 @@ wanted to center a heading, a paragraph, and a picture, and constrain them to only part of the page, so that there's some margins on the left and right. We can put them all in one content section like this: -```htmlcss +```css .content { text-align: center; max-width: 85%; @@ -511,7 +511,7 @@ usually we use a placeholder tag called "div." You can think of "div" like a divider for content of similar style. In the present example, we can use the class we made with a div tag: -```htmlcss +```html

My cat

He's a cool cat

@@ -532,7 +532,7 @@ I won't go into as gory details as [here](https://3body-net.medium.com/building-mobile-optimized-layouts-with-css-html-1a736d779b1b), but for your basic smartphone, you can copy and paste this block: -```htmlcss +```css @media screen and (max-device-width: 480px) { // override your tags here body { @@ -551,7 +551,7 @@ your CSS attributes, so that size is always defined relative to all the other elements. This makes functions like zoom work a lot better. You can for example put a pixel value like this: -```htmlcss +```css body { font-size: 14px; } diff --git a/tutorials/splunk/how-to-debug-a-splunk-app.html b/tutorials/splunk/how-to-debug-a-splunk-app.html new file mode 100644 index 0000000..4ef1fea --- /dev/null +++ b/tutorials/splunk/how-to-debug-a-splunk-app.html @@ -0,0 +1,30 @@ + + + + + + +how-to-debug-a-splunk-app + + + + + + + diff --git a/tutorials/www/how-to-use-the-internet.html b/tutorials/www/how-to-use-the-internet.html new file mode 100644 index 0000000..daabfe7 --- /dev/null +++ b/tutorials/www/how-to-use-the-internet.html @@ -0,0 +1,155 @@ + + + + + + +how-to-use-the-internet + + + + + +

Why?

+

Why would anyone want to use the Internet, really?

+

There is actually purpose to connecting all the computers in the +world with near-instant speed beyond just streaming television, phishing +scams, pornography, punditry, and Fortnight competitions.

+

Unfortunately, almost none of us use the Internet for it's intended +purpose: finding infomation.

+

Writing an angry tweet to a celebrity or posting a picture of your +cat seems to be second nature for most people, but converting a picture +from a PDF or looking up a study (or even a word!) you saw in an article +is something else entirely.

+

While that's in part the fault of our laziness, it's equally the +fault of what the Internet has become.

+

For one: there's just so much more stuff now; it's hard to +know exactly where to start and who to trust. And so much of that stuff +is now garbage, either in the way it's presented, with +disruptive ads that don't close correctly, or in the way it's written: +vague, misleading, or straight incorrect.

+

For two: no one really teaches you how to use this thing do they? +There are no courses on "How to use a search engine" or "How to find +good posts on a forum," and definitely not on "How to write +good posts on a forum." But these are exactly the kinds of skills you +really need if you want to navigate the modern world without getting +constantly distracted, misled, or totally lost.

+

There are of course, countless guides on "netiquette" geared towards +every possible internet subculture you can find. While many of them have +influenced this document and give many helpful tips on writing good +informative posts, none of them really go over what I think is most +important: what to do with the information you're reading.

+

This will probably be an evolving document as new services and +websites become available (or go down), but much of this material in the +beginning should be pretty generally applicable no matter what services +are available.

+

How to use a web browser

+

This is your main vehicle to the information super highway (remember +when they used to call it that?)

+

Almost everyone knows how to use a web browser to click links and get +to where they need to go, but use only a fraction of the software's +power. Web browsers at this point are as complicated as operating +systems. Aside from basic HTML and javascript rendering, most web +browsers are expected to provide:

+ +

And that's only what I can think of...

+

How to use a search engine

+

As for which search engine to use: you should use all of them, until +you get the results you need.

+

In my experience, none of the major search engines are particularly +good and I get inconsistent searches on all of them depending on what +I'm searching. There is a lot of preaching these days about privacy +concerns, but I don't really believe any service is more "private" than +another. These are all privacy nightmares, arguably by design. Your best +bet is just to search often and as many platforms as you can.

+

Basic search syntax

+

Searching for specific pieces of information is rather simple.

+

"Who is the prime minister of England?"

+

"When did World War 2 start?"

+

"How many roads must a man walk down?"

+

"Funky Kong talks you through your divorce"

+

All of these queries entered as is will get you the result you're +looking for. But how about something we can't boil down to a single +question? Like how to do calculus? Or how to learn Python?

+

You could try those phrases as a start. But you're not likely to get +a specific answer out of this.

+

...

+

What if we wanted to bring up a funny cat meme we saw on a forum +three weeks ago? Searching for "funny cat meme" is not going to get you +very far.

+

How to read and find +scholarly articles

+

How to use Wikipedia

+

A common complaint lodged at me whenever I recommend Wikipedia is +that it's not a source of truth since they found X mistake somewhere, or +made Y edit when they were a teenager that's still there. No one has +ever (or should ever) claim Wikipedia is a source of truth on it's own. +But you can use it to find more sources and maybe get a little +closer.

+

How to find articles +with Google Scholar

+

Advanced Topics

+

How to use tor to browse +anonymously

+

Many in the advertising world will boast about using a VPN for +anonymity, or using a VPN in conjuction with Tor to "increase privacy." +This is simply a misunderstanding of terms. A VPN provides +privacy of the user's connection since it provides +encryption--only the VPN provider can "see" what is searched. The goal +of Tor is anonymity not privacy. Anonymity means "no one knows +who you are" not "no one knows what you're doing." Technically, traffic +is encrypted between nodes of the Tor service, so some level of privacy +is provided as well, but this is most effective when using hidden +services, not using Tor in general.

+ + + diff --git a/tutorials/www/quick-intro-html-css.html b/tutorials/www/quick-intro-html-css.html index 05302d8..1ea2fbf 100644 --- a/tutorials/www/quick-intro-html-css.html +++ b/tutorials/www/quick-intro-html-css.html @@ -465,18 +465,18 @@ using a CSS file.

For any HTML tag, you can set an attribute that applies everytime it appears in an HTML document that links to the CSS file. A common formatting I use for paragraphs is:

-
p {
-    margin-top: 1.5%;
-    margin-bottom: 1.5%;
-}
+
p {
+    margin-top: 1.5%;
+    margin-bottom: 1.5%;
+}

And to highlight code, like you've been seeing, I use:

-
code {
-    display: inline-block;
-    font-size: 125%;
-    background-color: #d8d8d8;
-    white-space: pre-wrap;
-    word-wrap: break-all;
-}
+
code {
+    display: inline-block;
+    font-size: 125%;
+    background-color: #d8d8d8;
+    white-space: pre-wrap;
+    word-wrap: break-all;
+}

I get pretty much all the attribute names just by looking them up here. But in order these lines: