diff --git a/img/cheatsheet-big.png b/img/cheatsheet-big.png new file mode 100644 index 0000000..57a0c44 Binary files /dev/null and b/img/cheatsheet-big.png differ diff --git a/img/werks.png b/img/werks.png new file mode 100644 index 0000000..45a251f Binary files /dev/null and b/img/werks.png differ diff --git a/index.html b/index.html index 8b72fc8..33ac270 100644 --- a/index.html +++ b/index.html @@ -11,13 +11,25 @@
-
+July 22, 2018+
+My terminal experience is gettin really weird...
+More deets coming after this post about that
+ +
+July 2, 2018
+Operating at peak comfy levels captain!
+ +
June 25, 2018
diff --git a/index.md b/index.md index eac74eb..1b7033d 100644 --- a/index.md +++ b/index.md @@ -2,13 +2,20 @@ # Welcome to my Comfy Town -## Cool stuff about me - -> **[Links to find me](./page/links.html)** \ +### **[Links to find me](./page/links.html)** > **[About Me](./page/about.html)** \ > **[Site Source Code](https://gitlab.com/shockrahwow/shockrah-city)** ------- +------- + +### **[Bash is weird sometimes](./post/bash-1.html)** +> _July 22, 2018_ \ +> My terminal experience is gettin really weird... \ +> More deets coming after this post about that \ + +### **[QuteBrowser is /comfy/](./post/qute.html)** +> _July 2, 2018_ \ +> Operating at peak comfy levels captain! \ ### **[First Foray into big Projects](./post/qca1.html)** > _June 25, 2018_ \ diff --git a/markdown/post/bash-1.md b/markdown/post/bash-1.md new file mode 100644 index 0000000..4ae64b8 --- /dev/null +++ b/markdown/post/bash-1.md @@ -0,0 +1,37 @@ +[![Homepage](../img/banner.png)](../index.html) + + +# Bash is weird sometimes + +Bash is actually pretty nice but is... weird sometimes. \ +Take this for instance: `alias v='vim'` +This is an actual bind I use daily however if you don't have tab-completion setup for vim you know that tab-completion usually results in: + +> vim myFi\\ +> cd: too many arguments\ +> bash: cd: too many arguments + +As fun as that is to deal with(_it's not_) apparantly that bind I mentioned earlier fixes this issue completely. \ +I'm not really sure why that works, but I'm just glad it does. +If you've ever needed a way of allowing for tab-completion with vim now you have one. \ +Just use that alias in your bashrc and you're good to go. + + +## Rambled guess time + +My guess on how the alias is that bash doesn't try to figure out that you want to use `vim` since you've only typed a single `v` in this case; therefore tab-completion would go unnoticed?\ +Say you had a directory with files: + +> first \ +> second \ +> third + +That would mean if your shell contained `asdf`. You could go to the first character start typing any one of those file names and have bash guess the filename to autocomplete, since it only look backwards for completion. + +### Where be the posts + +Lately I've been working on a translator for html. Similar to how pandoc turns markdown into valid html which lead me onto another issue that I've also taken on since I've not much to do. \ +Specifically it's looking into _GCC_'s seemingly random behavior with switch cases. +Essentially _GCC_ will sometimes create a decision tree for a slightly faster search time through the cases, sometimes create the equivalent of linearly executable code(_like a bunch of if/else's_), and if given the opportunity "_guess_" the correct case on the first check... +For that reason I've started diving into it to try and determine what the fug is going with this compiler and what flags, if any can be used to create some more predictable output. +Hopefully the research crops up something interesting to think but who knows 🤷. diff --git a/markdown/post/qute.md b/markdown/post/qute.md new file mode 100644 index 0000000..c0995af --- /dev/null +++ b/markdown/post/qute.md @@ -0,0 +1,79 @@ +[![Homepage](../img/banner.png)](../index.html) + +# A Taste of QuteBrowser + +I finally sat down and started fully using [Qutebrowser](https://www.qutebrowser.org/) and to be honest, it's great. +I had tried using it before but I never bothered to learn how to to use it nor did I try to rice it to be liking. +However there are two things which came be a pleasant surprise about the browser: + +1. No ricing past basic setup involved for comfortable use +2. There were way more /comfy/ reasons to like this over other browsers + +I'm was Chromium user for a while since the adblocking and extension support was ultra convinient for me to take advantage of, and it let's me sync things together across devices, _somthing about being a good goy here_. +Say what you want about syncing across devices and """_the cloud_""" but its pretty comfy since everything is setup essentially where-ever you go. +In other words Chrome and the like get the good ole' stamp of _werks for me_. + +![](../img/werks.png) + +## Out of the box experience + +Personally the only thing I did was change the default starting page for new windows and new tabs. +Which of course is my own personal /comfy/ [start-page](https://gitlab.com/AlejandroS/start-page-tab). +After that, there was basically no more setup since most/all of the keybindings are sensible enough to warrant not changing them, _imo_. +The only functionality I couldn't figure out at first was escaping out of drop-down menus and/or text-boxes. +I did however come up with this: + +``` +"e":"fake-key " +``` +Just enter the command `:set` to get to your config page, make the changes you want, like adding the above in your aliases section, then run the command `config-write-py`. +If you have to save over an old config file just use `config-write-py --force`. +However, even without this the browser is still massively usable and convenient, it's just that you're able to rice the _fug_ out of this but I personally didn't that route. + +Mouse control is just like any other browser I've ever used so there's that too. +Text boxes are usually auto-detected by the browser so that you are put into `insert mode` just like in vim. + +Some nice things that I use constantly are the commands below, which don't require command mode: +* yy - copies page url to clipboard +* wp - opens new window with clipboard contents as url-argument +* r - sick refresh +* D - deletes tab + +## Main Gripes + +Keep in mind that all of these complaints, _except the last one_ can be mitigated by changing a setting once in your config and forgetting about it forever. +Also if you use qutebrowser on multiple machines consider copying that config file over to usb and using that to set yourself up wherever you are. +> 'J' move right and 'K' move right along the tab list + +If you look at it as a horizontal list then yes it doesn't make sense. Instead think of the tabs as vertically aligned and the rest should follow suit. + +``` +--------- +first +--------- +second +--------- +third +--------- +``` +Rebinding or just getting used to it are the "_fixes_" for this since it is such a minor coplaint about the out-of-the-box experience. + +> ***Adveritements Everywhere*** + +The built-in adblocker is just a host list which means it won't exactly do ~~much~~ anything on most websites. +Plugin support is coming soon but for now adblocking is basically non-existant if you browser _any_ modern websites. +Hopefully we get a proper ad-blocker in the future that can keep things a bit cleaner like _Adblocker+_ or better yet _Ublock Origin_. + +## Bindings and Defualts mostly + +There are plenty of binds but if you just read the docs then you should be fine. + +[Link to official binding cheat sheet](https://raw.githubusercontent.com/qutebrowser/qutebrowser/master/doc/img/cheatsheet-big.png) + +Just like any program with tons of keyboard shortcuts, it's better to learn whatever you need and progressively learn more commands as you need them. + +## Is it worth it tho? + +Ya. It's a good browser, it's solid and besides a few minor hiccups it's very close to BTFO every other browser out there. +If you don't like using keyboard shortcuts, and prefer to use the mouse however, stick to using what you are most comfortable with. +In general if you are comfortable with shortcuts and want to support a free privacy-respecting(_as far as I know_) browser; also you can rice it :^). diff --git a/post/bash-1.html b/post/bash-1.html new file mode 100644 index 0000000..c9fd2f5 --- /dev/null +++ b/post/bash-1.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + Bash is weird sometimes
+Bash is actually pretty nice but is... weird sometimes.
+
+Take this for instance:alias v='vim'
This is an actual bind I use daily however if you don't have tab-completion setup for vim you know that tab-completion usually results in:++vim myFi<tab>
+
+cd: too many arguments
+bash: cd: too many argumentsAs fun as that is to deal with(it's not) apparantly that bind I mentioned earlier fixes this issue completely.
+
+I'm not really sure why that works, but I'm just glad it does. If you've ever needed a way of allowing for tab-completion with vim now you have one.
+Just use that alias in your bashrc and you're good to go.Rambled guess time
+My guess on how the alias is that bash doesn't try to figure out that you want to use
+vim
since you've only typed a singlev
in this case; therefore tab-completion would go unnoticed?
+Say you had a directory with files:++first
+
+second
+thirdThat would mean if your shell contained
+asdf
. You could go to the first character start typing any one of those file names and have bash guess the filename to autocomplete, since it only look backwards for completion.Where be the posts
+Lately I've been working on a translator for html. Similar to how pandoc turns markdown into valid html which lead me onto another issue that I've also taken on since I've not much to do.
+ + diff --git a/post/qute.html b/post/qute.html new file mode 100644 index 0000000..9c1f50c --- /dev/null +++ b/post/qute.html @@ -0,0 +1,52 @@ + + + + + + +
+Specifically it's looking into GCC's seemingly random behavior with switch cases. Essentially GCC will sometimes create a decision tree for a slightly faster search time through the cases, sometimes create the equivalent of linearly executable code(like a bunch of if/else's), and if given the opportunity "guess" the correct case on the first check... For that reason I've started diving into it to try and determine what the fug is going with this compiler and what flags, if any can be used to create some more predictable output. Hopefully the research crops up something interesting to think but who knows 🤷.+ + + + + + A Taste of QuteBrowser
+I finally sat down and started fully using Qutebrowser and to be honest, it's great. I had tried using it before but I never bothered to learn how to to use it nor did I try to rice it to be liking. However there are two things which came be a pleasant surprise about the browser:
++
+- No ricing past basic setup involved for comfortable use
+- There were way more /comfy/ reasons to like this over other browsers
+I'm was Chromium user for a while since the adblocking and extension support was ultra convinient for me to take advantage of, and it let's me sync things together across devices, somthing about being a good goy here. Say what you want about syncing across devices and """the cloud""" but its pretty comfy since everything is setup essentially where-ever you go. In other words Chrome and the like get the good ole' stamp of werks for me.
++ + ++Out of the box experience
+Personally the only thing I did was change the default starting page for new windows and new tabs. Which of course is my own personal /comfy/ start-page. After that, there was basically no more setup since most/all of the keybindings are sensible enough to warrant not changing them, imo. The only functionality I couldn't figure out at first was escaping out of drop-down menus and/or text-boxes. I did however come up with this:
++"e":"fake-key <escape>"
Just enter the command
+:set
to get to your config page, make the changes you want, like adding the above in your aliases section, then run the commandconfig-write-py
. If you have to save over an old config file just useconfig-write-py --force
. However, even without this the browser is still massively usable and convenient, it's just that you're able to rice the fug out of this but I personally didn't that route.Mouse control is just like any other browser I've ever used so there's that too. Text boxes are usually auto-detected by the browser so that you are put into
+insert mode
just like in vim.Some nice things that I use constantly are the commands below, which don't require command mode: * yy - copies page url to clipboard * wp - opens new window with clipboard contents as url-argument * r - sick refresh * D - deletes tab
+Main Gripes
+Keep in mind that all of these complaints, except the last one can be mitigated by changing a setting once in your config and forgetting about it forever. Also if you use qutebrowser on multiple machines consider copying that config file over to usb and using that to set yourself up wherever you are. > 'J' move right and 'K' move right along the tab list
+If you look at it as a horizontal list then yes it doesn't make sense. Instead think of the tabs as vertically aligned and the rest should follow suit.
++--------- +first +--------- +second +--------- +third +---------
Rebinding or just getting used to it are the "fixes" for this since it is such a minor coplaint about the out-of-the-box experience.
+++Adveritements Everywhere
+The built-in adblocker is just a host list which means it won't exactly do
+muchanything on most websites. Plugin support is coming soon but for now adblocking is basically non-existant if you browser any modern websites. Hopefully we get a proper ad-blocker in the future that can keep things a bit cleaner like Adblocker+ or better yet Ublock Origin.Bindings and Defualts mostly
+There are plenty of binds but if you just read the docs then you should be fine.
+Link to official binding cheat sheet
+Just like any program with tons of keyboard shortcuts, it's better to learn whatever you need and progressively learn more commands as you need them.
+Is it worth it tho?
+Ya. It's a good browser, it's solid and besides a few minor hiccups it's very close to BTFO every other browser out there. If you don't like using keyboard shortcuts, and prefer to use the mouse however, stick to using what you are most comfortable with. In general if you are comfortable with shortcuts and want to support a free privacy-respecting(as far as I know) browser; also you can rice it :^).
+ +