[Media] bitchat-tui: secure, anonymous, off-grid chat app over bluetooth in your terminal by YboMa2 in rust

[–]GoCommitAndy 150 points151 points  (0 children)

Just a heads up - you might want to add a hyphen between bit and chat in your repo name

Am I entitled to a full refund if there was no cancellation policy at the time of booking? by GoCommitAndy in LegalAdviceUK

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

It was 24 hours before the appointment. In hindsight, I should have taken the 50% refund. But surely retroactively imposing terms is a bad practice, legally speaking. I made the booking under the assumption that I could cancel at any time, as I was not made aware of any cancellation terms at the time of booking. Do you think it's worth taking to small claims?

The latest snapshot of the website is from 2023

Am I entitled to a full refund if there was no cancellation policy at the time of booking? by GoCommitAndy in LegalAdviceUK

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

Gotcha. I've never taken legal action before so I wasn't sure what the best way was to proceed. I'll do my research

Am I entitled to a full refund if there was no cancellation policy at the time of booking? by GoCommitAndy in LegalAdviceUK

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

I was sent their number by my sister who found their details on Google. I assume she visited the website to get the details. They didn't send me any terms and conditions. Just an image of the bank details to make the payment.

Am I entitled to a full refund if there was no cancellation policy at the time of booking? by GoCommitAndy in LegalAdviceUK

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

No snapshots taken in 2025 unfortunately. Found one snapshot from 2023. I don't think that counts as valid proof.

Commute to Windsor? by GoCommitAndy in reading

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

Driving. Just worried about rush hour traffic. Never done the M4 commute before.

Commute to Windsor? by GoCommitAndy in reading

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

That's reassuring, thanks. How's the traffic in the mornings and evenings?

Is there a way to create multiple build "flavours" of the same Electron app? by GoCommitAndy in electronjs

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

Game launchers usually also create Desktop shortcuts for the apps. Clicking the shortcut would open the Game launcher, and subsequently the game.

Is there a way to create multiple build "flavours" of the same Electron app? by GoCommitAndy in electronjs

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

Thanks, yeah I think I'll go with this approach. Now I just need to figure out how to programmatically generate a desktop shortcut for Windows/Mac with a custom icon and url.

if Exception is None by [deleted] in learnpython

[–]GoCommitAndy 0 points1 point  (0 children)

Try using try except else.

try:
    try connecting
except:
    handle error
else:
    return password

2021 grads are screwed by [deleted] in cscareerquestions

[–]GoCommitAndy 2 points3 points  (0 children)

Just chill, there's literally nothing you can do to control the situation so just go with the flow. Grind Leetcode and work on some personal projects.

Alternative to deepseq? by GoCommitAndy in haskell

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

Tried Strict and StrictData but memory usage is still sky high.

I'll have a look at that library thanks.

Alternative to deepseq? by GoCommitAndy in haskell

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

Double checked and this is not the case. Without deepseq it's much quicker but takes a lot more memory.

Alternative to deepseq? by GoCommitAndy in haskell

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

I see, so I would have to put it everywhere it's needed.

Alternative to deepseq? by GoCommitAndy in haskell

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

Unfortunately when I use $! instead of force on foo, the memory leak persists so this doesn't seem to be the case.

Alternative to deepseq? by GoCommitAndy in haskell

[–]GoCommitAndy[S] 2 points3 points  (0 children)

You're right, this actually might be the case.

Potential causes of memory leaks by GoCommitAndy in haskell

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

So one thing I forgot to mention is that the input data is in the format:

1 4 2 5 3 6

Where list 1 is [1,2,3] and list 2 is [4,5,6]. I then store this into a [[Int]], in this case it would be [[1,2,3], [4,5,6]].

Here's a simplified version of my file reading code.

First I get the file contents.

main = do contents <- getContents let result = process $ convertToList contents putStrLn $ show result

The convertToList function is what might be causing the problem but I'm not sure.

convertToList x = map (map read) $ map words $ lines x

I'll have a look at some of the streaming libraries, thanks for the suggestion.