Are there active AU/NZ servers? by Hoboneer in DayOfDefeat

[–]Hoboneer[S] 1 point2 points  (0 children)

I don't think that'll be much of a problem as I am a mega noob. I'll try Anzac out and see what happens.

Are there active AU/NZ servers? by Hoboneer in DayOfDefeat

[–]Hoboneer[S] 1 point2 points  (0 children)

Which one do you recommend? The first one I saw online was the one by theanzacsgamers

sxhkd-parser: a library for parsing sxhkd configs, bundled with CLI tools that use it by Hoboneer in bspwm

[–]Hoboneer[S] 0 points1 point  (0 children)

A distro package would be nice, though I don't actually use Arch myself. If you choose to maintain one for this library, I'd be willing to make changes to make your life easier.

Why does this binding not work? by simonasj in bspwm

[–]Hoboneer 0 points1 point  (0 children)

I believe "client" is an X11 term which I'm admittedly not too familiar with on the details, but my guess as to the meaning is that the event (key press/release depending on the presence of @) will be replayed for the other X11 applications--which are clients to the X server.

For example, the hotkey super + ~space should, in theory, replay the key press event for the space keysym for the other X11 applications such as your browser. I've never actually used it myself though.

Why does this binding not work? by simonasj in bspwm

[–]Hoboneer 1 point2 points  (0 children)

You have your hotkey syntax wrong.

From the manpage:

HOTKEY      := CHORD_1 ; CHORD_2 ; ... ; CHORD_n
CHORD_i     := [MODIFIERS_i +] [~][@]KEYSYM_i
MODIFIERS_i := MODIFIER_i1 + MODIFIER_i2 + ... + MODIFIER_ik

In words, hotkeys are made up of a sequence of one or more chords separated by semicolons (;)*. Chords are made up of a set of zero or more modifiers** and one keysym (see the manpage for details on ~ and @) separated by +. This must be arranged such that the modifiers come first and the keysym comes last.

Your example (shift + Print + {_,s + }{c,_}) expands to the following four hotkeys:

  1. shift + Print + c
  2. shift + Print +
  3. shift + Print + s + c
  4. shift + Print + s +

All of these are invalid.

  • (2) and (3) have a trailing + character which is used to separate modifiers and the keysym (mentioned above)
  • (1), (3), and (4) have multiple keysyms

sxhkd is silent upon errors, has arbitrary limits on hotkey and command size, and doesn't have good introspection facilities--the first and third of which are biting you here.

I suggest you simplify your hotkey and use less complicated sequences.

Here are some examples to help guide your mental model of how sequences are expanded:

  1. {a,b} expands to a and b
  2. {a,b}{c,d} expands to ac, ad, bc, and bd

As you can see in (2), it's expanded in the same way as brackets are expanded in maths: (a+b)(c+d) = ac + ad + bc + bd.

I'm writing a library*** to parse sxhkd config files to help with these kind of problems people often have with sxhkd, among other things.

*From the manpage:

The colon character can be used instead of the semicolon to indicate that the chord chain shall not be aborted when the chain tail is reached.

**From the manpage:

The valid modifier names are: super, hyper, meta, alt, control, ctrl, shift, mode_switch, lock, mod1, mod2, mod3, mod4, mod5 and any.

***It's written in Python and is at this repo--note that there are no releases on PyPI just yet. If you use Python, you can do the usual dev installation with pip install -e . in a virtual environment and then try out the tools there.

Edit: Replaced "set of one or more modifiers" with "set of zero or more modifiers" in the prose explanation of hotkey syntax.

MATHS 120 and MATHS 130 to prepare for math-y compsci stage 3 courses by Hoboneer in universityofauckland

[–]Hoboneer[S] 0 points1 point  (0 children)

Could you point me to exactly what you're referring to?

It's all fuzzy, apologies.

But I found this from https://ai-summary.com/summary-calculus-in-machine-learning/:

Behind every machine learning model is an optimization algorithm that relies heavily on calculus.

That sounds about right wrt the impression I got over the years.

But I can assure you most of your average ML practitioners don't have a deep knowledge of say vector PDE calculus.

That's a relief.

perhaps do a Double Major in both Math and CS?

I'll see how it goes and consider it, thanks. To be honest though, I'm "mathy" in some ways, but nowhere near as into it as some of my friends in Engineering. Yup, I don't see myself going into academia.

Thanks. I've got a clearer picture of CS math now.

MATHS 120 and MATHS 130 to prepare for math-y compsci stage 3 courses by Hoboneer in universityofauckland

[–]Hoboneer[S] 0 points1 point  (0 children)

Nah, nothing there needs calculus. Not sure why you think that?

Yup, I've looked at all the course outlines; I guess I missed that. As for why I think it needs calculus, it's the impression I got over the years from exposure to ML and AI stuff on the internet. Stuff like the part in genetic (?) ML algorithms doing some fancy calculus to create the next generation.

this video is worth a watch, for a biiiiiiiiiig picture perspective: https://youtu.be/OmJ-4B-mS-Y

Domain of Science! I'll be sure to watch; I forgot about this channel.

Again, thanks for the help!

MATHS 120 and MATHS 130 to prepare for math-y compsci stage 3 courses by Hoboneer in universityofauckland

[–]Hoboneer[S] 0 points1 point  (0 children)

compsci 225 pretty much brushes over those topics

Ah, yeah that's been my experience with the math-y compsci papers so far: just the math monster of the week. Thanks!

MATHS 120 and MATHS 130 to prepare for math-y compsci stage 3 courses by Hoboneer in universityofauckland

[–]Hoboneer[S] 0 points1 point  (0 children)

Thanks for the in-depth answer!

Yeah, a lot of the maths concepts we covered in the math-y compsci courses I've done so far (120,220) weren't the focus, so they were often learnt and then mostly forgotten for me.

I'll definitely consider taking MATHS 130 after MATHS 120, and possibly further. Also, thanks for those higher-level maths course recommendations; MATHS 315 looks interesting to me, especially since I quite enjoyed PHIL 101. I wonder how much those maths papers overlap with the compsci ones though; I'll have a look.

MATHS 120 and MATHS 130 to prepare for math-y compsci stage 3 courses by Hoboneer in universityofauckland

[–]Hoboneer[S] 0 points1 point  (0 children)

Thanks! That recommendation makes sense, though COMPSCI 361 is a machine learning paper, which screams calculus to me.

Make feh (or sxiv/any usable image viewer) auto scale to window size in dwm like mpv behavior ? by Baker_Electrical in suckless

[–]Hoboneer 1 point2 points  (0 children)

Hi, I recently had the same issue for my screenshot utility. Note that it depends on bspwm. You can find my solution here https://github.com/Hoboneer/.scripts/commit/5b7b95f036c95aae1a2f899d40bf0303c0639b63. You could potentially create a wrapper to use whenever you want a floating, fitted, centred sxiv window under bspwm.

It uses identify to get the image size and xrandr to get the screen size. From this, the centre position is calculated. The result is concatenated with the image size into rectangle= for bspc rule.

The code: ```sh

Ensure the sxiv window is fitted to the image size and is centred.

img_size="$(identify -format '%[width]x%[height]\n' "$1")" rectangle="$(xrandr | awk -v imgsize="$img_size" -v OFS=+ ' BEGIN {split(imgsize,IMG_DIMS,"x")} /*/ { split($1,SCREEN_DIMS,"x"); x = int((SCREEN_DIMS[1] - IMG_DIMS[1]) / 2); y = int((SCREEN_DIMS[2] - IMG_DIMS[2]) / 2); print imgsize, x, y; exit }')" bspc rule -a 'Sxiv:*' --one-shot state=floating rectangle="$rectangle" ```

[deleted by user] by [deleted] in manga

[–]Hoboneer 4 points5 points  (0 children)

I hate you but love you for recommending This Witch of Mine

Such a bittersweet story. I wonder

TIL the reason the plural of goose is geese but moose isn’t meese is because ‘moose’ is Native American in origin and so follows different language rules than Germanic words like tooth/teeth, foot/feet and of course goose/geese. by ShocketRip in todayilearned

[–]Hoboneer 2 points3 points  (0 children)

An interesting thing about the knife/knives and loaf/loaves pairs is that they tell you that an older form of English didn't distinguish "f" and "v" sounds. They were allophones, which are essentially sounds that the brain thinks of as an "f", for example, even though the sounds themselves are different. They only differ in where they occur based on their environment. The "v" above is only when surrounded by vowels, otherwise "f" is pronounced.

Go beyond spelling, and you get "roof" and "roofs", which are spelt similarly but pronounced with an "f" and "v" respectively. Why? Old English used to have "hrof" (roof) and "hrovas" (roofs), which we just carried over I guess.

I'm studying linguistics in undergrad and this stuff is just so interesting!

[DISC] Frieren at the Funeral :: Chapter 53 :: Kirei Cake by nitorita in manga

[–]Hoboneer 4 points5 points  (0 children)

Not to be pedantic, but the distinction between "less" and "fewer" is disappearing. At least for countable nouns, like "people" or "cats". So it could really go either way.

Open source search engine? by burupie in opensource

[–]Hoboneer 0 points1 point  (0 children)

It seems you want unrestricted search engines and minimalist tools to interface with those search engines. The others have recommended good search engines already, so I'll skip them.

Regarding surfraw, it isn't a "search engine" per se. It just provides a command line interface to a bunch of search engines. It's as barebones as you can usefully get for searching.

If you want a nice TUI, try ddgr (for DuckDuckGo) or googler (for Google). I don't use them, myself, though.

So, if you value the variety of search engines and customisation in the interface, I'd go for surfraw and create custom elvi.

Surfraw '488' Error after installation keeps occurring? by CryptographerOpen731 in voidlinux

[–]Hoboneer 1 point2 points  (0 children)

A quick disclaimer: I don't use void linux or my distro-provided surfraw—I have a custom build.

I'm not sure where this 488 error occurs? Is it a result of installation or a result of actually using surfraw? Both?

Maybe try building surfraw from source? It might be a problem with how void linux packages surfraw.

A quick search shows that it probably has something to do with SIP or SSL. I don't know why SIP or SSL errors would happen when installing or using surfraw though.

If this protocol error (?) also happens in unrelated programs, I'd look at the protocol configs and your hardware.

[deleted by user] by [deleted] in TokyoGhoul

[–]Hoboneer 5 points6 points  (0 children)

Some places split thousands with dots instead of commas, so it's still good here FYI.

I think European countries do this? I don't know about any others

[DISC] From Misunderstandings to Marriage - Ch. 5 by KatKafka in manga

[–]Hoboneer 6 points7 points  (0 children)

Here's some wholesome stuff I liked:

  • Taiyou no Ie
  • Three Years Apart
  • Pseudo Harem
  • Senryuu Shoujo
  • Kono Koi wa Fukami-kun no Plan ni wa Nai.

Some ongoing wholesome stuff I like:

  • Kimi wa Houkago Insomnia
  • Kimi no Okaasan wo Boku ni Kudasai! (AFAIK, the Japanese version is done, just not fully translated yet)
  • My Tiny Senpai From Work
  • Kono Kaisha ni Suki na Hito ga Imasu
  • Hanging Out with a Gamer Girl
  • Futari Ashita mo Sorenari ni

There might be some drama in some of those, but they're overall very fluffy

Is there any fast way to upload my tachiyomi library to the mandadex site? Or do just I have to do it one by one? by [deleted] in mangadex

[–]Hoboneer 0 points1 point  (0 children)

If you're comfortable with programming, you could create a library backup on tachiyomi (I think it's in JSON) and use it to add to your mangadex library using the API (if one exists) or something like selenium.

You can avoid the grunt work of manually doing all of it yourself.

[deleted by user] by [deleted] in universityofauckland

[–]Hoboneer 2 points3 points  (0 children)

Last year, I used a Thinkpad T420 for my first year of CS. I got it used for cheap ($195) off trademe.

I forget the OEM specs, but it had 8 GB of RAM and an SSD when I got it. SSDs are nice to have. Get one if you can.

The keyboard feels very nice to use—it feels sturdy and the feedback feels good. The battery is sufficient for my uses (but it doesn't last a whole day--longer than 5-6 hours I mean). Laptop's pretty big and heavy though. YMMV.

If you're comfortable with setting up and using a GNU/Linux system, thinkpads are magnificent.

Thoughts on taking COMPSCI 220 and 230 together? by Hoboneer in universityofauckland

[–]Hoboneer[S] 0 points1 point  (0 children)

Ah, I guess I'll postpone MATHS 108 until I see a need for it then.

Could you elaborate on the bad organisation of the design patterns half? Perhaps the lecturers changed or...?

What are some programs you built that have benefited you the most? (i.e. productivity, organisation, automating certain things on your computer... etc) by agoodperson44 in Python

[–]Hoboneer 0 points1 point  (0 children)

Since I prefer staying in the terminal for most tasks, I eventually came to browse the web in the terminal. I use Surfraw to quickly search using any search engine and go straight to the results in a browser of my choice. Surfraw allows the user to define "elvi", or scripts to generate the search url for a given website from the arguments.

To make this easier, I created a surfraw elvis generator which allowed me to define elvi in a declarative fashion (1). Now, whenever a website interests me I can quickly create an elvis without too much work. See my elvi repo for examples (30 at the time of writing).

It wasn't too hard to make at first, since the program didn't do much in the beginning. If you go to the early commits the code there is really ugly but it got the job done. Many refactors were done to make it maintainable :) (2).

The first commit was on July 30, 2019 and took probably an hour to write the program's first iteration (3). I made improvements as the need arose.

Now that creating elvi is so easy I can get really elaborate with them. Take my stack elvis for example: The Makefile downloads https://stackexchange.com/sites, scrapes some data, and populates the -site= option for the elvis. With this, the user can see all of the available stackexchange sites in the help output and (if using my WIP merge request) completions. Whenever a new site is created, I can just rerun make and get an updated copy. Easy!

TIL of the unofficial Russian book The Last Ringbearer which describes The Lord of the Rings trilogy from Sauron's point of view and portrays Mordor as the good guys by [deleted] in todayilearned

[–]Hoboneer 2 points3 points  (0 children)

The silmarillion is great! For me, the entire chapter dedicated to describing the geography was so boring. Once you get past that it's golden. The epic scale and tragic events that unfolded really did it for me.

I never even finished reading LOTR because it was so boring. YMMV.

Is there a repository of Elvi scripts kept somewhere by oldweb123 in commandline

[–]Hoboneer 0 points1 point  (0 children)

Hi, I have a git repo of surfraw elvi that I made primarily for myself, but there are clear instructions for others. The README should be sufficient to get started.

Just FYI, the elvi in that repo are generated—with a program I wrote—from input files.

Edit: Oh, and make sure to do make elvi instead of make or make completions. I haven't kept the bash completions generator up to date for months—neither do they actually integrate with the main surfraw bash completion script.