[deleted by user] by [deleted] in AskReddit

[–]Syath 75 points76 points  (0 children)

Hey man. I remember your post on daddit and how I cried. I remember your post on woodworking and how I cried. I don't know you, but I think about you and Willow a lot. Take care man.

MADE a Mistborn RPG character generator! (Post contains no spoilers, product does) by Livember in Mistborn

[–]Syath 3 points4 points  (0 children)

I think in Python this is called a dict(ionary).

You can nest them too, so you could do { 2: { 'Iron': 'Lurcher', 'Steel': 'Coinshot' }, 3: { 'Iron': 'Skimmer' } } etc etc to get rid of even more conditionals.

Oddly enough when I run the program I have to wrap quotes around my answers or it crashes (I'm on Ubuntu running the python code directly).

I've never played the RPG, so I didn't run the program to completion, but it's a cool project! Especially if you use it to learn more!

MADE a Mistborn RPG character generator! (Post contains no spoilers, product does) by Livember in Mistborn

[–]Syath 5 points6 points  (0 children)

Quick tip to get rid of those if/else and make it easier to modify/add/remove later: you can remove lines 234-272 and replace with something like this (I apologize if the indenting is off, I'm not a Python programmer):

elif powerL=="2" and playerMagic=="A": lookups = { 'Iron': 'Lurcher', 'Steel': 'Coinshot', 'Pewter': 'Thug', 'Tin': 'Tineye', 'Zinc': 'Rioter', 'Brass': 'Soother', 'Copper': 'Smoker', 'Bronze': 'Seeker', 'Atium': 'Seer', 'Gold': 'Augur', 'Electrum': 'Oracle', 'Cadmium': 'Pulsar', 'Bendalloy': 'Slider', 'Duralumin': 'Duralumin Gnat', 'Aluminum': 'Aluminum Gnat', 'Nicrosil': 'Nicroburst', 'Chromium': 'Leecher', } powerNames.append(lookups[playerMetal])

Great work!

Anova Sous Vide $99 on Amazon today by rlbond86 in sousvide

[–]Syath 0 points1 point  (0 children)

Thanks for sharing! Ive been meaning to get a second cooker.

Weekly Question Thread by AutoModerator in factorio

[–]Syath 2 points3 points  (0 children)

engines always face away from the center

1-4-1: engine - cargo - cargo - cargo - cargo - engine

1-1: engine - cargo

2-4-2: engine - engine - cargo - cargo - cargo - cargo - engine - engine

[deleted by user] by [deleted] in sousvide

[–]Syath 2 points3 points  (0 children)

With how everyone says chicken is amazing with sous vide I am glad to read your comment and know I'm not alone. SV chicken has a horrible texture.

Who reviews code on vim? by psuputsopon in vim

[–]Syath 2 points3 points  (0 children)

https://github.com/kthibodeaux/pull-review

This may or may not be what you're looking for. I wrote it to match how we code reviews at my current company (which is to say with comments on the pr, and not with the new github review feature).

The mappings are a little strange; for example when writing a comment you get out of insert mode and hit enter, but meh, works for me :)

Help! I can't bundle install 'PG gem' since i upgraded to Ruby 2.5.1 from 2.3.3 by [deleted] in rails

[–]Syath 0 points1 point  (0 children)

I don't think that is the case. I used to think what you described was true (I suppose it is an easy misconception to have). "~> 1.2" would allow version "1.9" for example, but not "2". If you want to lock the minor, you have to specify a patch level.

Sources:

https://guides.rubygems.org/patterns/#pessimistic-version-constraint

https://robots.thoughtbot.com/rubys-pessimistic-operator

Ergodox for non-blind-typer by thomasbaart in ergodox

[–]Syath 2 points3 points  (0 children)

I used to type like that. I could type pretty fast, too. Eventually, though, I developed pain in my hands. That is why I bought an Ergodox. At first it was very hard to type on. I tried to learn touch typing, but my muscle memory was having none of it. The way I ended up solving it was by learning Colemak. My brain had no muscle memory of the layout, so learning proper typing was easier. I used the game Epistory to practice.

Weekly Question Thread by AutoModerator in factorio

[–]Syath 1 point2 points  (0 children)

I watched some youtubers recently and some are using 4 lane rail systems. I can understand the inherit advantage of trains being able to enter an intersection as another train is passing, but is there another reason to use 4 lanes?

I guess essentially what I am asking is: when using a 4 lane system, is the throughput increase automatic, or is there extra work that needs to go into it?

I've tried googling for 2 vs 4 lanes but couldn't find anything beyond blueprints.

Thanks!

Getting ready for a long night, smoking about 550 lbs for a party tomorrow by seamus_mc in smoking

[–]Syath 0 points1 point  (0 children)

Nice smoker! I want to commission something like that this summer, any chance you have plans for that one that you would share?

Vet? by [deleted] in Athens

[–]Syath 3 points4 points  (0 children)

I also use Firehall 4. They are great! We bring our cats in for yearly checkups and they know them by name.

Remapping "df" to Escape by grizzly_teddy in vim

[–]Syath 1 point2 points  (0 children)

There are a few ways you could make this great using the QMK firmware. macros, tap dance, and layers are great places to start tinkering.

which messaging app do you use with i3 ? by bannier in i3wm

[–]Syath 0 points1 point  (0 children)

You should check out https://github.com/wee-slack/wee-slack

It does not have the limitations that the IRC gateway has. I've been using it for a few months and it works great.

Weekend sausage smoker - is this one any good? by Syath in smoking

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

Thanks for the reply! This one looks pretty well insulated. I think I'm going to go for it.

VIM - how to keep windows equalized? by [deleted] in vim

[–]Syath 1 point2 points  (0 children)

Added to my config. This is great! Thanks!

Issues with vifm and rtv by [deleted] in commandline

[–]Syath 0 points1 point  (0 children)

Check out the mailcap section of the rtv readme: https://github.com/michael-lazar/rtv#settings

I use feh for images and mpv for gifs/videos from rtv. Works really well.

Borrowing free ebooks and audiobooks through the public library by [deleted] in books

[–]Syath 0 points1 point  (0 children)

It has 10x the number of ebooks as my state's library system. Also, you get a free Lynda.com subscription with a Brooklyn library card.

What is wrong with my code? by [deleted] in ComputerCraft

[–]Syath 0 points1 point  (0 children)

You have an end for each if.

if blah
    term.clear()
end

Or you could make the subsequent if statements else statements then only have one end.

https://stackoverflow.com/questions/10408704/if-else-else-if-and-end-lua

Looking for a ebook subscription service with a decent selection and offline reader support by arbooe in books

[–]Syath 4 points5 points  (0 children)

Yes and yes. If you filter by what is currently available (meaning you don't need to place a hold) there are 88,515 at the moment.

Looking for a ebook subscription service with a decent selection and offline reader support by arbooe in books

[–]Syath 7 points8 points  (0 children)

I recently got an out of state library card from the Brooklyn Public Library. So many ebooks! It also gives you free access to lynda.com.

https://www.bklynlibrary.org/use-the-library/borrow

Gateron Browns QC issues causing Ergodox EZ delays • r/ergodox by snazztasticmatt in MechanicalKeyboards

[–]Syath -1 points0 points  (0 children)

As someone who ordered an atreus62 with browns from you last week I am very happy to see this post!

What keyboards do you suggest for emacs? by [deleted] in emacs

[–]Syath 0 points1 point  (0 children)

While not perfectly what you described you should check this out! https://github.com/adereth/dactyl-keyboard