Skip to content

Commit

Permalink
fix webdev menu
Browse files Browse the repository at this point in the history
  • Loading branch information
VegaDeftwing committed Oct 10, 2022
1 parent d019981 commit 038b8b8
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 26 deletions.
72 changes: 71 additions & 1 deletion content/Engineering/Linux/archnew.md
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,79 @@ Finally, restart the machine by typing `reboot`: any partitions still mounted wi

<p style="font-size: 30px;text-align: center;">⬢⬡⬡⬡⬡⬡⬡⬡⬡⬡</p>

Yep, as it is right now you'll have a terminal that pretty much does nothing. Great! Time to go grab all the things you want.

#### Dual boot? Getting access to the other disk

Before we do that though, if you're dual booting, you'll want to set up your system so that it automatically mounts your other OS's disk. The easiest way to do this is to.

1. If it's not already, make sure you have ntfs-3g installed. Just do a `pacman -S ntfs-3g`.

2. Run `lsblk -o name,mountpoint,label,size,fstype,uuid`

3. Figure out which Partition has Windows on it. If you have multiple disks, this may be a bit awkward. Here, for example is mine:

```
nvme1n1 953.9G
├─nvme1n1p1 /boot 2G vfat EAEC-8D86
├─nvme1n1p2 16M
├─nvme1n1p3 951.2G ntfs D00CEBCB0CEBAB24
└─nvme1n1p4 715M ntfs DA1E14C51E149C97
nvme0n1 953.9G
├─nvme0n1p1 1G vfat 96EE-30CD
└─nvme0n1p2 / 952.8G ext4 629cedc3-e5bf-4496-a75b-78d6d1c30d88
```

What you should see is one partition that has a mount point of `/boot` (`nvme1n1p1`, in my case) and one that has a mountpoint of just `/` (`nvme0n1p2` in my case). Assuming nothing else weird about your setup, (no extra drives, etc.) you're looking for a large (probably 250G+) ntfs partition that has no mount point. The only thing matching that above is `nvme1n1p3`. Note, your disks may start with "sd_" instead of "nvme_"

Let's see if that's the right partition

4. Run `mount /dev/[partition name] /mnt/win` (for me, this would be `mount /dev/nvme1n1p3 /mnt/win`)

5. Run `cd /mnt/win` then `ls -a` . You should see all the folders you'd expect to see at the base of a C drive, "Users", "Windows", "Program Files", etc.

If you don't - don't panic. Do you see anything other than `. ..`? Do you recognize the folders? It's possible you have multiple big partitions - maybe when your in Windows you also have another disk (probably D:/) - this might be that. This is good! It means we now know the partition with some of your data on it. Note this down somewhere - like `sda3 has data` and start from 1. again, pick another big NTFS partition, but when you go to mount change the path to `/mnt/win[number you increment]`, and go from there.

If you don't see anything other than `. ..` it's likely nothing got mounted at all. Re-run the big `lsblk` command and see if the partition shows up as mounted - see how this has the `/mnt/win` next to it now?

```
├─nvme1n1p3 /mnt/win 951.2G ntfs D00CEBCB0CEBAB24
```

If `/mnt/win` is next to none of them, then the mount didn't even work. Start from 1. If you still can't get anywhere, ask around for some help.

6. Okay, so your disk is mounted and you have access to your files, but you really don't want to do that every time you boot. Let's add the partition(s) (multiple, if you have a data disk) to our FSTAB. Run `nano /etc/fstab` (with `sudo`, if you've jumped ahead and made a user) and add the line:

````
UUID=[Your disks UUID] /mnt/win ntfs-3g defaults,nofail,noatime,uid=1000,umask=0011 0 0
````

For example, for mine, this would be:

```
UUID=D00CEBCB0CEBAB24 /mnt/win ntfs-3g defaults,nofail,noatime,uid=1000,umask=0011 0 0
```

Now, if you reboot, your disk should automatically be mounted to /mnt/win.

As a brief explanation. `ntfs-3g` sets what NTFS driver to use. `ntfs3` instead should in theory be *much* faster, but it's not super stable at the time of writing. As for the other flags:

* `defaults` just sets sane mounting options for most things based on filesystem (NTFS, in this case) type
* `nofail` sets it so that if it can't mount the Windows partition, Linux doesn't say "Nope!" and drop you into a "recovery shell".
* `noatime` sets it not to store access times. There's a not-insignificant performance impact in doing so, so may as well turn it off.
* `uid=1000,umask=0011` - set's it so that files are the users (well, when you make one) which should be of id 1000 and that all files are set to be able to be read, written, or executed. This is bad for security, but as your computer is *probably* single user, it's fine.
* The `0 0` at the end The first one should always be 0 as it's for marking if the disk should be backed up using an old back up system nobody should use, and the second if a system should be checked for file system checking, and in what order. If it's an NTFS disk and you dual boot, set it to 0. Your root `/` partition should be set to 1, if you care, you can set the others (if you have any) to 2, but, like, FS checking (fsck) is usually one of those things you'll know if you need to do, so as long as the system boots, fuck it.







{{< quote "[Install Guide](https://wiki.archlinux.org/title/installation_guide) - [GNU Free Documentation License](https://www.gnu.org/licenses/fdl-1.3.html)" >}}

#### Post-installation
### Post-installation

See [General recommendations](https://wiki.archlinux.org/title/General_recommendations) for system management directions and post-installation tutorials (like creating unprivileged user accounts, setting up a graphical user interface, sound or a touchpad).

Expand Down
14 changes: 12 additions & 2 deletions content/Engineering/Networking/cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ These people are nuts.

The cloud is just someone eles's computer. Unless your business is going through a period of extreme growth, it makes no sense to use a cloud provider like AWS or Azure. It does make plenty of sense to buy a VPS (Virtual Private Server) for hosting a website or game server or a personal website like this one, but at scale? No.

Unfortunately, "The Cloud" isn't going anywhere. AWS, Azure, and Google Cloud probably host the vast majority of websites you visit and the backends for apps you use. So we may as well understand it... if for no other reason than to be able to hold educated arguments against it.

<--->

<img src="/nonfree/character/yellsatcloud2.webp" alt="Old Vega Yells at Cloud">
Expand All @@ -18,6 +16,18 @@ Unfortunately, "The Cloud" isn't going anywhere. AWS, Azure, and Google Cloud pr

{{< /columns >}}

I have read dozens of article like [How we reduced our annual server costs by 80% — from $1M to $200k — by moving away from AWS](https://levelup.gitconnected.com/how-we-reduced-our-annual-server-costs-by-80-from-1m-to-200k-by-moving-away-from-aws-2b98cbd21b46) or [As AWS Use Soars, Companies Surprised by Cloud Bills](https://www.theinformation.com/articles/as-aws-use-soars-companies-surprised-by-cloud-bills).

For personal stuff, well, posts like [My forgotten account has a $20,000 bill, how screwed am I?](https://www.reddit.com/r/aws/comments/lbqcos/my_forgotten_account_has_a_20000_bill_how_screwed/) or [I lost $55k from hackers [getting into my AWS account]](https://www.reddit.com/r/aws/comments/rv3lm5/i_lost_55k_from_hackers/), or, this:

<blockquote class="twitter-tweet" data-dnt="true" data-theme="dark"><p lang="en" dir="ltr">Hey friends,<br><br>I have a panicked student in my DMs who’s accidentally racked up an $8k AWS bill. <br><br>My suggestion of “talk to Support” is no good—apparently they won’t issue a billing adjustment. Anybody got better ideas, or know someone at AWS who can help them out?<br><br>RT for reach?</p>&mdash; Alex Chan (@alexwlchan) <a href="https://twitter.com/alexwlchan/status/1399095011178958851?ref_src=twsrc%5Etfw">May 30, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

None of this is to say AWS is bad. Their security is great, the API easy to use, etc. etc., it's just that *economically* it's not as if "The Cloud" is a magic solution to all your problems. If anything, it's making things worse.

All of that said, "The Cloud" isn't going anywhere. AWS, Azure, and Google Cloud probably host the vast majority of websites you visit and the backends for apps you use. So we may as well understand it... if for no other reason than to be able to hold educated arguments against it.



So, my opinion out of the way, let's look at what the cloud is. Generally, there are a few kinds of cloud services, here they're listed in increasing level of abstraction:

* **IaaS** - Infrastructure as a Service
Expand Down
2 changes: 2 additions & 0 deletions content/Engineering/Programming/Intro/prog6types.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Will print out 65536.00000000000000000000 - our .000000000001 was lost!

{{< smalltext >}} I have had bugs from this bite me, see [this code](https://github.com/VegaDeftwing/PinkTromboneVCV/commit/41a93446888babff5235344b06957ec00e6c1232#r73908588) for example, where I fixed a bug because once a value reached 512 I was adding so little to it that it no longer incremented.{{< /smalltext >}}

{{< smalltext >}}</br></br>If for some reason this is your shit, you might want to look into [Unum/Posits](https://en.wikipedia.org/wiki/Unum_(number_format)), as they stand to become more common in the coming years and will probably become more frequently used as an alternative to the good ol' IEEE floating point. For now they're more an interesting look into the far future than useful to know about.{{< /smalltext >}}

### Doubles

Doubles are just more precise floating point numbers. Literally they're double-precision (hence the name) and so work with 64 bits instead of 32. If you need very, very precise math, here you go.
Expand Down
1 change: 1 addition & 0 deletions content/Engineering/Programming/languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Other sources to lean rust:
- [Learning Rust the Dangerous Way (Cliff L. Biffle)](http://cliffle.com/p/dangerust/)
- [Rust Performance Book](https://nnethercote.github.io/perf-book/)
- [Rust Cheat Sheet](https://cheats.rs)
- [Python -> Rust guide - learning Rust when you know Python (Github)](https://www.mylomusic.net/octane)

You may also want to check out [CXX](https://github.com/dtolnay/cxx) for C++<-> Rust interop

Expand Down
13 changes: 12 additions & 1 deletion content/Music/Software/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ While VST3 does have a linux SDK, most plugins aren't released for Linux. You ma

You may also see VSTi or VSTfx, these aren't anything new, 'i' or 'fx' just denote if the plugin is an instrument or effects plugin.

<!-- I want to change this to a "pick one of" list to incentive people to get fewer tools and know them well. This might mean doing better categorization of effects and then using drop-downs a-la the generative tools page.-->

### Effects

<table id="sort2" style="position:relative; width:130%; left: 0%;">
Expand Down Expand Up @@ -377,7 +379,7 @@ You may also see VSTi or VSTfx, these aren't anything new, 'i' or 'fx' just deno
<td>~40</br></td>
<td><p hidden>3</p><img src="/gold.svg" alt=" " height="40em"></td>
</tr>
<!--- D16 Tekturon --->
<!--- D16 Tekturon, or NE delay, Or Chow Matrix, or Other Desert Cities. --->
<td><a href="https://www.waves.com/plugins/x-noise#tab-in-depth">Tekturon</a></br>(D16 Group)</td>
<td>Noise Removal</td>
<td>[TODO]</td>
Expand All @@ -393,6 +395,14 @@ You may also see VSTi or VSTfx, these aren't anything new, 'i' or 'fx' just deno
<td>~40</br></td>
<td><p hidden>3</p><img src="/gold.svg" alt=" " height="40em"></td>
</tr>
<!--- GuitarML SmartAmp --->
<td><a href="https://www.waves.com/plugins/x-noise#tab-in-depth">X-Noise</a></br>(Waves)</td>
<td>Noise Removal</td>
<td>[TODO]</td>
<td>Repair</br>🎛</td>
<td>~40</br></td>
<td><p hidden>3</p><img src="/gold.svg" alt=" " height="40em"></td>
</tr>
<!--- MJUC --->
<td><a href="https://www.waves.com/plugins/x-noise#tab-in-depth">MJUC</a></br>(Waves)</td>
<td>Noise Removal</td>
Expand All @@ -405,6 +415,7 @@ You may also see VSTi or VSTfx, these aren't anything new, 'i' or 'fx' just deno
</table>



<!-- Fabfilter stuff, Valhalla stuff, Melodyne, Soundtoys, Polyverse, Izotope, Ignite Emissary, Guitar Rig (player), Auburn Grallion, MJUC, U-HE Colur Copy -->

### Audio Sources
Expand Down
2 changes: 2 additions & 0 deletions content/Other/funlinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@

* [Letters About Soap](https://people.cs.ksu.edu/~schmidt/soap.txt)

* [I don't know, Timmy, being God is a big responsibility](https://qntm.org/responsibility)



<p hidden>uwu, are you looking at my source https://www.youtube.com/watch?v=o9l4EiYFZjg</p>
23 changes: 2 additions & 21 deletions content/menu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ headless: true
<dt>0 </dt><dd> <a href="/engineering/engineering/">What is this?</a></dd>
<dt>Ⅰ </dt><dd> <a href="/engineering/intro/community/">Community</a></dd>
<dt>Ⅱ </dt><dd> <a href="/engineering/intro/howtolearn/">Learn How to Learn</a></dd>
<dt>EXT</dt><dd> <a href="https://soatok.blog/2020/06/08/furward-momentum-introduction/">Furward Momentum</a></dd>
</dil>
</div>
<p class="navhead" style="color:#009CDF;margin-bottom:0px;" >    Linux & Your Computer</p>
Expand Down Expand Up @@ -307,29 +308,9 @@ headless: true
<dt>A3 </dt><dd> <a href="/design/photo/">Photo</a></dd>
</dil>
</div>
<p class="navhead, webhead" style="background: linear-gradient(90deg, #F78200 0%, #FFF 50%, #009CDF 75%) ;-webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom:0px;" >    Web Development</p>


<div class="progress-ww">
<dl>
<dt>1 </dt><dd> <a href="/design/web/jack/">Jack of all trades</a></dd>
<dt>2 </dt><dd> <a href="/design/web/garden/">Your own garden</a></dd>
</details> </dd>
<dt>3 </dt><dd> <details id="webMenu"> <summary><a href="/design/web/langs">HTML, CSS, JS, WUT?</a></summary>
<dt class="sub">.1</dt><dd class="sub"> <a href="/design/web/langs/html/"> HTML</a></dd>
<dt class="sub">.2</dt><dd class="sub"> <a href="/design/web/langs/css/"> CSS</a></dd>
<dt class="sub">.3</dt><dd class="sub"> <a href="/design/web/langs/js/"> JS</a></dd>
</details> </dd>
<dt>4 </dt><dd> <a href="/design/web/static/">Static & Dynamic</a></dd>
<dt>5 </dt><dd> <a href="/design/web/cost/">Cost?</a></dd>
<dt>6 </dt><dd> <a href="/design/web/setup/">Getting Setup</a></dd>
<dt>7 </dt><dd> <a href="/design/web/content/">Content is King</a></dd>
<dt>8 </dt><dd> <a href="/design/web/thinkingweb/">Thinking Web</a></dd>
<dt>8½</dt><dd> <a href="/design/web/access/">Accessability</a></dd>
<dt>A1 </dt><dd> <a href="/design/web/tools/">Web development tools</a></dd>
<dt>A2 </dt><dd> <a href="/design/web/resources/">Other Resources</a></dd>
</dil>
</div>

</div>
<div class="progress-ww">
<dl>
Expand Down
2 changes: 1 addition & 1 deletion public
Submodule public updated 266 files

0 comments on commit 038b8b8

Please sign in to comment.