xtapa

joined 1 year ago
[–] [email protected] 1 points 2 weeks ago

It has been slow and doing weird stuff for years now. It's first or second edition so it is quite old. I don't know if a battery change will fix getting stuck in boot screen.

[–] [email protected] 3 points 2 weeks ago

I read some tests about Kobo. Nice to know people are satisfied. Definitely will look at it again.

[–] [email protected] 2 points 2 weeks ago

I use the app too, but I don't want that as my main reading device because e-ink feels way more comfortable on the eyes.

61
E-Reader recommendations (discuss.tchncs.de)
submitted 2 weeks ago* (last edited 1 week ago) by [email protected] to c/[email protected]
 

Hi,

My Kindle won't boot anymore and keeps getting stuck in boot screen, so I thought this might be a good time to get away from Amazon, even though that device was great.

So, what non-kindle readers would you recommend?

It should have color and background light and it shouldn't be huge so I can keep it in the back pocket.

And, since I don't have any experience outside the Amazon ecosystem: how is the experience of buying and transferring books to non Kindle readers?

Update: I did research based on your recommendations. Thanks for all the input, that was way more than I expected! I settled for the Kobo Clara Color since it seemed to almost perfectly match my needs and Kobo and the model itself got heavily recommended here and on the web.

[–] [email protected] 11 points 2 weeks ago

Papers please should be playable with one hand only and is great at burning time

[–] [email protected] 4 points 2 weeks ago (2 children)

Can you use it on colored clothes? Borax acts as bleach so I'm a bit skeptical.

[–] [email protected] 4 points 2 weeks ago

Looks great, thanks!

[–] [email protected] 21 points 3 weeks ago (4 children)

I think this level of derailing in a post about trains is irresponsible.

[–] [email protected] 19 points 1 month ago (2 children)

Tut mir leid, Japan-Fanboys und -Girls.

Tabi (jap. 足袋) sind eine Art von knöchelhohen japanischen Socken mit abgeteiltem großem Zeh.

Sie werden üblicherweise zu Zōri oder Geta (beides Sandalen) getragen.

Quelle: Wikipedia

Tabi (Socken) 足袋 Traditionelle Socken bestehen meist aus weißem, festem Baumwollstoff mit abgeteiltem großen Zeh.

Zôri 草履 (Sandalen) Zôri-Sandalen gehören zum Kimono

Quelle: Deutsch-Japanische Gesellschaft München

Es SIND Socken in Sandalen.

[–] [email protected] 2 points 1 month ago

Hersteller sprechen von Temposchwelle.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

I personally try to avoid deeply nested if/else. Or else in general, because I think it makes code more readable. Especially when one of the branches is just an exit condition.

if exitCondition {
    return false
}
// long ass code execution

is way more readable than

if !exitCondition {
    // long ass code execution
} else {
   return false
}

In a loop, you can just return the value instead of passing it to a "retVal" variable.

With those in mind, you could refactor HasPermissions to

func (r *RBAC) HasPermission(assignedRoles []string, requiredPermission string, visited map[string]bool) bool {
	for _, assigned := range assignedRoles {
		if visited[assigned] {
			continue
		}
		role, ok := r.Roles[assigned]
		if !ok {
			//role does not exist, so skip it
			continue
		}
		for _, permission := range role.Permissions {
			if permission.String() == requiredPermission {
				//Permission has been found! Set permitted to true and bust out of the loop
				return true
			}
		}
		//check inherited roles
		if permitted := r.HasPermission(role.Inherits, requiredPermission, visited); permitted {
			return true
		}
	}
	return false
}

The same could be applied to LoadJSONFile and I think that really would approve the readability and maintainability of your code.

edit: This refactor is not tested

[–] [email protected] 5 points 1 month ago

Your "statistics" are fantasy numbers, not statistics. And statistics or probabilities, no matter how low or high, are not proof.

 

cross-posted from: https://discuss.tchncs.de/post/27742447

Hi folks,

I got a new Xbox Series X Controller (Model 1914). I had Xbox One controller before.

With xpadneo installed I had basically no problems running my xbox one controller. It connected via BT with no issues and workes in games really well wired and wireless.

The new controller on the other hand, works really well via cable, but does not connect via BT. I can find it, I can pair it, but I cannot connect to it.

xpadneo readme says Series X needs a BT stick with BLE so I bought one, but that did not solve the problem (I'm not sure if BLE needs to be activated or how to do it rn).

 

Hi folks,

I got a new Xbox Series X Controller (Model 1914). I had Xbox One controller before.

With xpadneo installed I had basically no problems running my xbox one controller. It connected via BT with no issues and workes in games really well wired and wireless.

The new controller on the other hand, works really well via cable, but does not connect via BT. I can find it, I can pair it, but I cannot connect to it.

xpadneo readme says Series X needs a BT stick with BLE so I bought one, but that did not solve the problem (I'm not sure if BLE needs to be activated or how to do it rn).

319
Pro Linux hacking (discuss.tchncs.de)
 

Found some very special "make it look hacky" bash in criminal minds.

 

I've been trying tmux and followed a video that showcases and offers a prebuilt config for styling and plugins. Something happended (guess I did something wrong?) the styling broke and I decided I'll go bare bones and customize to my needs when needed instead of using preconfigured stuff. I deleted all configs and caches I could find with fzf and even reinstalled tmux, but still some broken styling is present and makes it unpleasent to work with. Some of my configs seem to be present even after uninstall, as the prefix is still C-Space instead of the default. There are some oh-my-zsh subfolders that contain tmux. I don't know if those have been there before and I also don't know, if I can delete them without breaking the next thing.

I'm on a MacBook and installed tmux via brew.

 

Hi, I just started using Logseq via the Mac desktop app. My Mouse is a Logi M720 Triathlon with thumb buttons set to default settings with Forward (Forward button) and Back (Back button). Those work just fine everywhere. IDEs, text editors, Obsidian, browsers etc. But in Logseq, the buttons do nothing and it kinda breaks my flow because I have to switch to keyboard for weird shortcuts or have to klick the back button manually. Is there a way ti fix this? I could not find a working fix yet.

view more: next ›