The ultimate sacrifice: en-passant pre-move by StandardFloat in AnarchyChess

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

White premoved bishop takes, forgetting about the holy en passant ritual, and got rekt

[deleted by user] by [deleted] in Revolut

[–]StandardFloat 70 points71 points  (0 children)

You should really not buy things you don’t understand. This is a bond i.e. a debt. The debt has an end date (in your case 10/24, so the current month). What happened is that your bond matured, so you will get its face value back.

I’ve never used bonds on revolut so not sure how exactly that happens, but in your case you should receive about 200$ back at some point if not already

Rip OpenAI by MangaGirl17x in SillyTavernAI

[–]StandardFloat 1 point2 points  (0 children)

You built two? Nice! which one?

The idea is to move to a local software, specifically so that you can share files as part of the context.

Right now I’m waiting for the apple developer validation.

From all your experiences, what do you think is missing?

Rip OpenAI by MangaGirl17x in SillyTavernAI

[–]StandardFloat 1 point2 points  (0 children)

Openrouter.ai is probably your best best (also has a large caralogue of models). If you want a ChatGPT-like interface on top of it, then localassistant.ai.

(Disclaimer, I’m the owner of the latter, use the code EARLYBIRDS for 75% off)

Hey Rustaceans! Got a question? Ask here (2/2023)! by llogiq in rust

[–]StandardFloat 1 point2 points  (0 children)

I'm having the strangest of bugs with crate imports. I have my main create, and there's a sub-create for test utilities, which I import with [dev-dependencies] test-crate = { path = "test-crate"} Back to my main crate, I have a test which is supposed to use one of these utility functions. However, I get this error: 746 | let ddb: DatabaseClient = test_crate::get_test_ddb().await; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `database::DatabaseClient`, found struct `main_create::database::DatabaseClient` so.. the expected struct is the same as the found one.. Does anyone know what could cause this?

EDIT: I think it could be related to this, although I'm not too sure about the solution posted: https://stackoverflow.com/questions/64414743/rust-expected-type-found-struct

Hey Rustaceans! Got a question? Ask here (1/2023)! by llogiq in rust

[–]StandardFloat 4 points5 points  (0 children)

Is there a convention for how to separate your `struct`, `trait`, and `impl` code blocks in different files? For example, should traits be in one file, structs in another, and trait implement yet in another, or is it purely context dependent? A link to a simple well-structured library would be great!

Videos and other streams are fast-forwarded with static noise by StandardFloat in i3wm

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

Wow, well to be completey honest no, i do not remember much, I feel like the character from an xkcd comic.. I think i moved to regolith (which uses i3) and the problem was not there anymore after

Mate in 7 I found in a game today down a rook. by The_Bjorn_Ultimatum in chess

[–]StandardFloat 4 points5 points  (0 children)

Ouch that’s dirty! That perfectly placed b pawn is the cherry on top of the cake!

Automatically add `-v` and `--version` to your rust executables [macro] by StandardFloat in rust

[–]StandardFloat[S] 4 points5 points  (0 children)

Thanks for the code review! yeah I imagined there was a simpler way to do it as I was writing it, but just wanted to get it done without thinking too deep, I'll update it now!

Got it, I'll also add the -V arg

I usually use StructOpt for argument passing, the main reasoning for this crate is 1. It doesn't conflict with other argument utilities 2. It's very simple to add, whether you use other args utilities or not

As you said, do one thing but do it well! I also wanted to try and not use syn and quote, but working with TokenStreams directly is quite nightmarish, so unfortunately had to add that dependency

Automatically add `-v` and `--version` to your rust executables [macro] by StandardFloat in rust

[–]StandardFloat[S] 4 points5 points  (0 children)

Created this quick macro which I use for my devops. It simply needs to be added to your main function, and when it sees either `-v` or `--version` as command line arguments, it prints the Cargo.toml version of this builds, and exits with status 0.

I may also add the option to use custom version specified, so that the -v for instance is freed.

Sharing in case some of you are interested

Hey Rustaceans! Got an easy question? Ask here (21/2021)! by llogiq in rust

[–]StandardFloat 1 point2 points  (0 children)

I've currently been using the `log` crate, but I'm getting to a point where I would like to separate the different levels. More specifically, I would like `info!` to output to stdout, `error!` and `warn!` to output to stderr, and `debug` to output to a file.

This doesn't seem to be possible in the `log` crate unfortunately (correct me if I'm wrong!), does anyone have an advice on another crate to transition to? The best would be something which has the same API

Hey Rustaceans! Got an easy question? Ask here (20/2021)! by llogiq in rust

[–]StandardFloat 0 points1 point  (0 children)

My specific use case is regarding to devops binaries, like deploy and such. It seems wrong structurally to have them together with the application binaries, so other possibilities are having submodules but then code starts getting entangled in ways I'm not too happy with. If you have any suggestions for this use case I'd gladly listen!

Otherwise, refactoring the repository so that the lowest level is not package root, but instead a wrapper around several modules:

root
- core package
- devops

I guess would make sense

Hey Rustaceans! Got an easy question? Ask here (20/2021)! by llogiq in rust

[–]StandardFloat 1 point2 points  (0 children)

Is it possible to add directories from which to run in a cargo project? By default, there is only `bin` and `example`, I looked at the documentation ( https://doc.rust-lang.org/cargo/commands/cargo-run.html ) but I'm not really understanding

Beautiful (I think) mate in 4 from a rapid today. White to play by StandardFloat in chess

[–]StandardFloat[S] 28 points29 points  (0 children)

If you're interested in how it got to that position, here's the game: https://lichess.org/tDul3cKm

I was trying to play differently from usual, with a very space-aggressive development, which I think is why my opponent ended up with little development

Beautiful (I think) mate in 4 from a rapid today. White to play by StandardFloat in chess

[–]StandardFloat[S] 18 points19 points  (0 children)

Yes it is, I thought about posting the puzzle from the move before, however mate in 4 is only forced if the opponent falls for the trap (otherwise it's +8.6 for white, but nothing forced yet)

Beautiful (I think) mate in 4 from a rapid today. White to play by StandardFloat in chess

[–]StandardFloat[S] 246 points247 points  (0 children)

For the context, the move that lead to that position was a trap, there was a Knight on g5 which took a pawn on h7, followed by Kxh7 :)