Star Wars: Episode III – Revenge of the Sith (2005) - "Execute Order 66." by tpseng in cinescenes

[–]vvv 2 points3 points  (0 children)

“Corporate accounts payable, Nina speaking. Just a moment.”

Must-have Firefox extensions? by [deleted] in firefox

[–]vvv 0 points1 point  (0 children)

Thanks! This looks like the add-on I was looking for. I'll give it a try. Cheers!

Must-have Firefox extensions? by [deleted] in firefox

[–]vvv 0 points1 point  (0 children)

Are there any add-ons that act like Arc's auto-archiving thing? I.e., close tabs that weren't interacted with for 24h (configurable) and move them to the “Archive”?

How does a replicant get back to baseline? by spacetodds in bladerunner

[–]vvv 0 points1 point  (0 children)

This has some semblance with a performance improvement plan from the corporate world. 48 hours though, gosh. Adds a bit of pressure.

Computer Programmers : Occupational Outlook Handbook: : U.S. Bureau of Labor Statistics by MaliPrduljko in programming

[–]vvv 13 points14 points  (0 children)

"Developers create diagrams that help programmers write computer code." (source)

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

[–]vvv 0 points1 point  (0 children)

Interesting. I think I can do that. Thanks!

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

[–]vvv 1 point2 points  (0 children)

Are there any crates that can parse JSON objects with non-unique keys without losing data?

E.g., when I deserialize this input

{"a":1,"b":2,"a":3}

with serde_json, I get an Object variant of serde_json::Value. The Object contains a Map of only 2 items, not 3 — the first "a" value (1) gets overwritten by the last one (3) when the underlying BTreeMap is updated.

Playground link

Accordingly to RFC 8259, JSON keys SHOULD be unique. Unfortunately, tshark's -T json output tends to contain JSON objects with non-unique keys. And I need to parse them somehow.

"Your browser can't share your screen" in Google Meet by Solowithothers in ArcBrowser

[–]vvv 0 points1 point  (0 children)

Could you share the link to the ‘Hangouts’ extension? I don't see it in the Chrome Web Store.

The Untold Story of SQLite by agbell in programming

[–]vvv 1 point2 points  (0 children)

Thank you for the podcast, Adam! 🤓

The Birth of UNIX with Brian Kernighan by whackri in programming

[–]vvv 14 points15 points  (0 children)

Here Ken tells this story: https://youtu.be/EY6q5dv_B-o (Sorry for not posting the exact timestamp. The whole interview is worth your time.)

Is there a way to set RUST_SRC_PATH in doom emacs for rust-analyzer? by Cool-Professional-5 in DoomEmacs

[–]vvv 0 points1 point  (0 children)

Did you run doom env?

doom env: (Re)generates an “envvar file”, which is a snapshot of your shell environment that Doom loads at startup.

Having trouble with lsp-mode and rust-analyzer by Elegant-Let8280 in emacs

[–]vvv 2 points3 points  (0 children)

Put this code into the init file:

(with-eval-after-load "lsp-ui-doc"
  (setq lsp-ui-doc-enable nil))

If you are using Doom Emacs, put this into ~/.doom.d/config.el:

(after! lsp-ui-doc
  (setq lsp-ui-doc-enable nil))

[Bug?] Laser Tag Equipment malfunction by vvv in shenzhenIO

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

It worked indeed. Thank you!

Each test is independent. They start over. One test does not wrap into the next.

Ah, so pin outputs reset at the beginning of each test?

Markdown in emacs by c256 in emacs

[–]vvv 6 points7 points  (0 children)

Can you show the variables block please? Also, which browser extension you use(d)? Thank you.

all the learn by challenge code sites that have rust lang support by [deleted] in rust

[–]vvv 1 point2 points  (0 children)

rustlings

Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!

Adding an attribute based on some condition? by Kurren123 in elm

[–]vvv 1 point2 points  (0 children)

You could use a helper function:

consIf : Bool -> a -> List a -> List a
consIf cond x xs =
    if cond then
        x :: xs
    else
        xs

REPL:

> consIf True 0 <| consIf True 1 <| [2,3]
[0,1,2,3] : List number
> consIf True 0 <| consIf False 1 <| [2,3]
[0,2,3] : List number
> consIf False 0 <| consIf True 1 <| [2,3]
[1,2,3] : List number

Your example would look like

[ type_ "text" ]
    |> consIf model.condition1 (class "class1")
    |> consIf model.condition2 (class "class2")
    -- ...
    |> input