« first day (2505 days earlier)      last day (998 days later) » 

12:12 AM
@kmdreko well this is embarassing :) For some still unknown reason to me, when reading .cargo/config.toml I presumed that was the ~/.cargo/config.toml file we were really talking about! How enchanted am I to realize that this is an actual folder in the project, thanks!
#thingsIShouldHaveReadInTheDocumentation
 
12:40 AM
@FélixAdriyelGagnon-Grenier hah! glad I could push you in the right direction
 
 
14 hours later…
2:28 PM
oldoldoldoldoldoldoldoldstable
 
3:01 PM
panic time SO is down
 
It's fine.
 
3:56 PM
/me creeps in discreetly
 
4:22 PM
@DenysSéguret What an oxymoron! Either way, how was your holiday?
 
4:41 PM
Fine. Mountain trekking. I'm happy my kids, even the 5 yo, can climb mountains so easily.
And I did a thing during the nights, when the wife and kids were sleeping: github.com/Canop/safecloset
(ok, it's not totally finished)
 
That sounds like a great vacation!
 
Anything new around here ?
 
Nothing new under the sun.
 
@DenysSéguret What can this offer that pass cannot? (I've been using pass for 6-7 years now, to keep passwords, notes, OTPs, etc. in there, it even has an Android application, and I use syncthing to avoid cloud services whilst synchronising the secrets between all my devices.)
 
4:58 PM
It looks very different. SafeCloset isn't just for passwords but for every kind of secrets (multi line values should come soon), it never exports the secrets, will have search (I frequently have to search my current crypted secrets file as there's not always a simple key. SafeCloset is also the editor to remove some weaknesses. It provides plausible deniability.
 
But that's what I'm saying, pass could do that as well. In it, everything is a file, thus you can have multiline secrets as well as anything really.
pass also have a search feature.
IIRC there are already NC TUIs for it, bit I could be wrong about that. I'm using the CLI.
Also, pass used your EDITOR to access the text files once those are unencrypted, so, you know, they decided not to reinvent the wheel :)
(I'm not saying you did though)
 
That was the main problem of my current solution: I was using vi to edit my secrets which was terrible for security
 
How come?
 
(no autoclose, backup file if bad configuration, plugins, etc.)
The idea is I can open my closet anywhere, whatever the OS or the computer owner
And I don't want a vi backup file, or an undo stack, etc. retaining my secrets
I'm not saying pass is bad at this point, just answering regarding EDITOR
 
Well, then don't use such "aggressive" editors for it!
Jokes aside, I get your point and it has some valid observations..
 
5:05 PM
(and you did teach me the existence of pass)
 
But then I'm wondering if for example TMUX won't store those values in memory anyway
 
@PeterVaro one of the features which will come in very soon is the ability to have only the selected value displayed in clear
(should be tonight)
I have also memory protection against scanning in my TODO list but I'm not sure it's worth the pain as it's unlikely memory can be scanned without other problems like screen recording or keylogging
BTW why isn't BitXorAssign declaring a toggle method ?
I mean, this could be better:
            des.drawer.settings.hide_values ^= true;
as
            des.drawer.settings.hide_values.toggle();
 
5:25 PM
use bitflag crates ?
@DenysSéguret it's a bool ?
@DenysSéguret is not xor :
A 	B 	R = A ⊕ B
0 	0 	0
0 	1 	1
1 	0 	1
1 	1 	0
what do you mean by toggle ?
> If any directory in the path specified by path does not already exist and it could not be created otherwise. The specific error conditions for when a directory is being created (after it is determined to not exist) are outlined by fs::create_dir. doc.rust-lang.org/std/fs/fn.create_dir_all.html#errors
wtf this is supposed to mean ?
 
5:41 PM
@Stargateur Which part do you not understand? The function will report back with an error if it cannot create the directory you specified as part of path. And the errors are listed in fs::create_dir
 
well first ` in the path specified by path` is a repetition unclear
"it could not be created otherwise" is unclear
otherwise here look a very high english construct
 
@Stargateur One 'path' refers to the argument, while the other path refers to the parameter.
 
I would introduce component in place
I think the doc could be way more clear
use more simple sentence
 
I disagree with that notion, I prefer to train myself (in whatever form, e.g. reading a documentation) to speak and write better english. That's why I don't understand why a "simple english" wikipedia exists to begin with.. But I do appreciate that's where the world is heading: simplify all languages to a level where it has no rules at all. Sarcasm aside, it might worth bringing it up to create a "simple english" version of the documentation.
 
the doc is mean to be read by the most, a language "beauty" is meaningless, a language is and will always go to more simplification, until a balance between simplification and expressiveness is found. korean get simplified recently, english get a big reform some time ago, jap too, greek, turki, etc...
in the sentence "and it could not be created otherwise" I really wonder what othewise is for
otherwise what ?
it's missing something
a doc is mean to be clear, not to be a puzzle
 
5:53 PM
@Stargateur I fail to see how that contradicts what I said. I acknowledged the sad fact, that people almost deliberately errode the language. I also suggested a very good solution: be the advocate for a "simple english" version.
@Stargateur This is an idiom. The word 'otherwise' could be used in different way, this idiom is perfectly valid as it is.
You can say it differently: "and it could not be created in any other ways".
In the above sentence 'otherwise' mean the same thing, but its shorter and arguably more idiomatic.
 
in any other way ?
what way
we never talk about any way
 
@Stargateur ^= true changes true to false and false to true. It's a toggle.
 
to talk about other way one need to first talk about one way
@DenysSéguret why not use Not ?
 
@Stargateur It says 'path does not already exist and [...]' but there could be other problems: you don't have permission for example
 
@PeterVaro no I disagree there is "and"
the thing doesn't exist AND
 
5:58 PM
@Stargateur That's not needed, if you otherwise reference to the list of errors that could happen.
 
@PeterVaro thrust me you are too good in english to notice it's not easy to read
I trust you when you said it's valid english, trust me if I say it's hard to read :p
 
@Stargateur formal language != natural language. In natural language when I say 'Tom and Jerry' I don't mean 'Tom && Jerry' I only mean to connect two entities sequenctially one after another, like a coma.
 
@PeterVaro context we are in a documentation of rust standard library...
 
@Stargateur I didn't say it is not hard to understand, I haven't the foggiest how it feels to you to read and write English to begin with.
 
@Stargateur can you assign with it ? How so ?
 
6:01 PM
@Stargateur Sure, sure, but when I say: "errors such as X, Y, and Z" I don't imply all three at the same time, all I say is, it could be any of the three, yet I use the word "and".
 
@DenysSéguret anyway that doesn't toggle true ^ true == false
 
well, that's the point
 
@PeterVaro anyway, that only another point that is unclear
oh yeah
I'm bad with xor & co
 
Look there. The point of the ^= true is to change the value
@Stargateur Me too. That's why I'd like a toggle function, so that I don't have to remember such tricks
 
well you could do foo.bitxor_assign(true) you could also add your own trait that add toggle :p
 
6:06 PM
I do remember it. My idea was more, in truth, to help new generations not having to remember it ^ ^
 
@Stargateur You can always argue, that a natural language is illogial, once you established the fact that the only logical language is indeed formal. But you cannot deny the fact, that the larger portion of this blue planet speaks it, for better or worse, and they do tend to understand each other, by which I mean, they don't understand each other just as much as in any other language. Natural languages are broken by nature (pun intended).
 
@Stargateur Thanks.
The name of this method... doesn't really roll naturally...
 
indeed one would need rust have a != operator
see the problem ? ^^
 
it needs also trait importing
 
6:43 PM
well I see two solution:

- create a trait yourself and so you can have the name you please
- create a `toggle_hide_values` on `des.drawer.settings` so you can write `self.hide_values = !self.hide_values`
 

« first day (2505 days earlier)      last day (998 days later) »