<The_Camel>
just look how pretty the graphics are!
<The_Camel>
top notch. 11/10
<The_Camel>
if only
<The_Camel>
the game was fun.
<fantazo>
how did I end up after 13 years of ruby experience and starting to run as a freelancer in the middle of a recession, an "AI-take-over" and the downfall of all(?) local ruby projects. I look at my account balance how it falls since months.
<The_Camel>
fantazo, I'm sorry mate.
<fantazo>
and when I send out normal job applications to "normal coding" jobs, then I'm not considered, because apparently you have to have 10 years plus as a java developer to be even considered to write one line in that "quality" programming language.
<fantazo>
or C++, the same deal again.
<The_Camel>
fantazo, yeah, I know. it's a retarded time period.
<The_Camel>
completely fucked
<fantazo>
I wish I would have the reputation, that would beat project providers into submission and give me projects and money.
<The_Camel>
I'm unemployed too so don't feel so bad.
<fantazo>
The_Camel: absolutely. not my timeline, who has brought that shit!? who selected the "dystopian timeline" at the coffee machine!? and now the floor is covered in fascist coffee.
<fantazo>
The_Camel: being unemployed AND looking how the money runs out. I would need to close up my "company" and crawl back to the job office. that's like putting a dream you have into a shredder.
<The_Camel>
well
<fantazo>
but maybe I'll do that in june, july or august. I can't decide how long I still try.
<The_Camel>
I'm sorry ;/
<fantazo>
The_Camel: you don't have to. I'm just venting. I mean partially it's "my fault", because I haven't overcome my fear of marketing.
<The_Camel>
fantazo, worse than my employment situation is the lack of a partner.
<The_Camel>
that shit hurts bad
<fantazo>
The_Camel: well, sounds like my life for 20 years.
<fantazo>
no partner, almost no support group, always struggling somewhat, thought on a more "comfortable" level I guess.
<The_Camel>
fantazo, a song that makes me happy when things are down.
<The_Camel>
fantazo, it starts at 2:08. Ignore the beginning.
<The_Camel>
fantazo, it's an advocator of karma.
<The_Camel>
the wheel shall turn eventually. either in this life or another.
<fantazo>
The_Camel: is that mandarin? sadly no translation of the subtitles. so when you say the song is about karma, that may be a relieve if you believe that re-incarnation is true, I guess.
<The_Camel>
fantazo, it's in cantonese. and no I don't believe in reincarnation.
<The_Camel>
fantazo, but I do believe there is some force out there, that makes the machinations of this world. be it panentheism, monotheism or perhaps... even if atheism.
<fantazo>
The_Camel: I would like to see at least that the basic principle of say "you wronged me, that means someone will wrong you too" or that it will somehow come back to the person.
<fantazo>
would actually work.
<The_Camel>
fantazo, metaphysically, I have seen the world turn upside down in situations of power and the like
<The_Camel>
fantazo, in every single domain and manner possible
<fantazo>
I certainly see the value in not trying to cling to issues too much. as it makes things harder, I thing that's called dukha.
<The_Camel>
fantazo, so whether you don't empirically believe karma is a thing, then at least let history show you that it has happened.
<fantazo>
The_Camel: certainly, it has happened a couple of times. but it's sadly not a general rule.
<The_Camel>
fantazo, I have a belief that is inspired by Kurt Godel. if there is no justice or God in this world, maybe there will be on in another.
<The_Camel>
one*
<fantazo>
which could force people to be kind. or make a person who was wronged in some way, get the luxury of an equlillibrium again.
<fantazo>
The_Camel: maybe, but it's more theoretical. because I won't live in that world. I have only this life.
<The_Camel>
fantazo, if there is reason, logic and order in this world, there will be one in the other. an afterlife is highly plausible.
<fantazo>
and sometimes it means finding answers to un-answerable questions, like "what I'm here for?", "what's my purpose?", "why was I mistreated?", "why is this a pattern in my life?", etc.
<The_Camel>
fantazo, sure. the "Unanswerable Questions" to which a lot of stuff doesn't make sense.
<The_Camel>
fantazo, all I can say is - I have no idea. But I do hope things will be answered one day.
<The_Camel>
if not, then we are all doomed.
<The_Camel>
fantazo, in the world existence possible.
<The_Camel>
worst*
<The_Camel>
fantazo, I'm an agnostic deist by the way.
<The_Camel>
I discard existing religions but I don't discard the possibility of a deus otiosus (hidden god)
<fantazo>
The_Camel: I'm an agnostic or an agnostic atheist, depends on my day.
<fantazo>
and someone with a philsophy thread, because I studied that a little bit. but then I needed to get a job and so I did not finish.
<The_Camel>
fantazo, the modern form of "religion" is "Process Theology", introduced by Albert North Whitehead posits that a God is needed for the universe to exist otherwise "order" was not possible.
<The_Camel>
fantazo, what is unpleasant with Process Theology is that it depicts God as, almost a cosmic entity that doesn't really offer salvation.
<fantazo>
The_Camel: process theology, ok I need to look at that. but I generally believe not in a thinking or acting god like what 99,99% of religions think.
<fantazo>
from what I see is that we are almost talking with ourselves.
<fantazo>
god, is what we make up.
<The_Camel>
fantazo, then you will find process theology closer to what you consider God to be. an entity that is very hard to explain.
<The_Camel>
fantazo, ultimately, what you can take from Process Theology is - there are questions and mystery.
<The_Camel>
fantazo, aside from the "Intellectual" aspect of it, as I said, the main thing that bothers me with it, is that the God described doesn't offer salvation.
<The_Camel>
to some degree, you might even say that God doesn't even give a fuck (despite process theology saying otherwise)
<fantazo>
The_Camel: as I wrote, I'm more of an atheist. but I "believe" in a principle. I could accept a "god", which is simply how this world is calibrated, a set of rules which define how things work out, which does not think. which just is. a very boring god and certainly what 99,99999% of religions in this world get wrong and would freak them out.
<fantazo>
anyway I go to bed now. which ends this "offtopic" conversation.
<fantazo>
everybody use the ruby programming language, a hackers best friend. and also elixir, which is another best friend.
<The_Camel>
fantazo, good night. we may never talk again since we're always randomly here but
<The_Camel>
fantazo, I hope one day there will be hope in the end.
<havenwood>
Oops, I changed my mind mid way and didn't account for the trailing newline. But that ^ idea.
<havenwood>
(The #delete_suffix is wrong since the #lines leaves the newline on the end. I was going to `split("\n")` and `join("\n")` which would have worked.
<havenwood>
Just had a momentary consideration for windows and odd newline separators and broke my example.
<havenwood>
I'd: gsub(/^"|"$/, '')
<kjetilho>
the code was insuccifient, anyhow, I copied a different "implementation" from elsewhere in the script: https://bpa.st/3IKA
Vonter has quit [Read error: Connection reset by peer]
sarna has quit [Ping timeout: 276 seconds]
<havenwood>
kjetilho: Just curious, but should the gsubbed one be dupped too?
<havenwood>
Oh, using the new string, got it.
inline has quit [Quit: Leaving]
<havenwood>
Can get tempting to limit use of Regexp.
<havenwood>
value.delete_prefix('"').delete_suffix('"').gsub(/\\(\\|'|")/, '\1') if value.start_with?('"') && value.end_with?('"')
<havenwood>
Then do the escaping on a separate line to make it cleaner.
<kjetilho>
I love using #include? in many cases where I would use a regexp in Perl. and strip variants. but I am not afraid of regexps :)
<havenwood>
value.delete_prefix('"').delete_suffix('"') if value.start_with?('"') && value.end_with?('"')
<kjetilho>
I think it is fair to require literacy of regexps, and then I don't think writing it out like that improves readability, really
sarna has joined #ruby
<havenwood>
kjetilho: Somewhat tempting to #match rather than #match? since you actually are using the capture.
<havenwood>
Yeah, I don't mind non-convoluted Regexp. I do think it's nice to consider the non-Regexp way to reject it, since sometimes it really does read nicer without performance drop.
<kjetilho>
oh. that is a bit subtle for me, a typical sysadmin-touching-ruby-when-I-have-to-coder :)
<havenwood>
A #match? is actually newish Ruby, I like it. We used to use =~ a fair amount.
oznek has joined #ruby
<havenwood>
I'm glad we have match? since it's faster avoiding setting those globals and less cognitive overhead.
oznek has quit [Client Quit]
<kjetilho>
havenwood: wow, I didn't notice the bug I introduced in my simplification. thanks!
<kjetilho>
I didn't simplify it in the project. I would use an explicit match object rather than $1 I think
pastelowl has joined #ruby
inline has joined #ruby
<The_Camel>
string parsing. joy.
fantazo has joined #ruby
o0ox1eef has quit [Remote host closed the connection]
o0x1eef has joined #ruby
joako has quit [Quit: quit]
inline has quit [Quit: Leaving]
joako has joined #ruby
inline has joined #ruby
pastelowl has quit [Quit: WeeChat 4.6.3]
o0x1eef has quit [Remote host closed the connection]
o0x1eef has joined #ruby
<mikko>
i would write value[/^"(.*)"$/,1] but maybe i've just done too much code golf
aindilis has joined #ruby
<kmad>
I'd absolutely go for the short and simple regex, but if you're super not into regexes, you can also use .chomp() and .reverse(): `.chomp('"').reverse().chomp('"').reverse()`
<kmad>
But yeah, `.gsub(/^"|"$/, '')` is a lot more elegant and readable, IMO
The_Camel has quit [Remote host closed the connection]
The_Camel has joined #ruby
<kjetilho>
the real solution is to use some shell command line quoting gem :)
<The_Camel>
actually, the real solution is communism but that's another story.
<GreenResponse>
but not of Asian origin (ruffian, chinese)
<The_Camel>
GreenResponse, oh, especially of asian origin. especially chinese.
<The_Camel>
GreenResponse, will put things in place as they should have been since the pax sinica
<The_Camel>
Capitalism shall be kicked out to kingdom
<The_Camel>
come
<The_Camel>
never there will be enterprise set foot again on this earth
<mikko>
i guess Shellwords#shellsplit would do the job without adding a gem dependency, and it would throw exceptions for stupid cases like "abc"def"
<The_Camel>
GreenResponse, you shall all sit every day waiting for your rations until you repent the monstrous effects and deeds you have done as a western piece of shit world.
<The_Camel>
imperialistic fucks
<kjetilho>
mikko: oh my!!!
<kjetilho>
yes, that is exactly what this code should be using
The_Camel has quit [Remote host closed the connection]
user71 has quit [Quit: Leaving]
The_Camel has joined #ruby
<The_Camel>
oh boy. my main SSD is at 47% health.
<The_Camel>
3 years usage. 130TB write/read. past the expected 100TB warranty.
<The_Camel>
expected lifetime left, around 3.5 yeras.
inline has quit [Quit: Leaving]
cappy has joined #ruby
<adam12>
The_Camel: I'm wondering when my MBA SSD is going to give out.
<adam12>
Data Units Written: 1,399,982,954 [716 TB]
<adam12>
This is how my last MBA died.
<The_Camel>
adam12, the mean time to failure is past 200TB
<The_Camel>
700TB is already... overuse.
<The_Camel>
depending on brand of course.
<cappy>
What is the cost of replacement vs. the value of the data?
<cappy>
No need to answer; it's your consideration.
Linux_Kerio has quit [Ping timeout: 244 seconds]
<The_Camel>
I don't keep anything important on the SSD. My data is agnostic of machine and OS.
<The_Camel>
it's __always__ on an external device.
<The_Camel>
so if this machine goes bang. or the os dies. or the ssd dies, my data isn't affected.
<cappy>
Then call Guinness to see if you're close to breaking some LBAs written record as burning your SSD to its terminus might breach a new maximum ;)
<cappy>
^ adam12 if this is your case.
infinityfye has quit [Read error: Connection reset by peer]
inline has joined #ruby
inline has quit [Max SendQ exceeded]
inline has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
GreenResponse has quit [Quit: Leaving]
<The_Camel>
My external data is 6TB. The next purchase I'll make will be 15TB
<The_Camel>
because I'm already technically "almost full"
<havenwood>
adam12: Huh, only 19.8 TB written and 46.2 TB read on my laptop but still at 100% health.
<The_Camel>
havenwood, sounds like you don't game. or make virtual machines. or do much on said laptop ;/
<havenwood>
The_Camel: Looks like writing about 3 TB/mo at this rate.
<The_Camel>
havenwood, it's 70GB/day for me.
<The_Camel>
so... 7TB every 3 months.
<mikko>
how do you even check that
<havenwood>
The_Camel: So 2 TB per month?
<The_Camel>
havenwood, about.
<havenwood>
The_Camel: Less than me?
<havenwood>
Do you game or make virtual machines or do much?
<havenwood>
I'm not quite sure I follow!
<The_Camel>
havenwood, well it sounds like you did that continuously for a time and then just stopped.
<havenwood>
The_Camel: Nope, just about 3 TB per/month written.
<havenwood>
The_Camel: To the DNS server. DNS-over-TLS shares with your IP the same way HTTPS does. Not.
<havenwood>
I guess DNS + server is redundant.
<havenwood>
Still, use DoH, DoT or better.
<weaksauce>
which one is the best?
<havenwood>
I find DoT a very nice fallback for devices that cannot negotiate a more secure connection.
<havenwood>
weaksauce: DoT.
<havenwood>
I'd only use DoH if my ISP was blocking DoT, and it doesn't.
<havenwood>
Or if my router only supported DoH.
<weaksauce>
ah
<havenwood>
But either is fine!
<The_Camel>
havenwood, I think my ISP already has had a ginormous list of 8+ years worth of my DNS logs so, I don't know if adding one now is gonna help xD
<havenwood>
The_Camel: They generally purge logs at some interval.
<The_Camel>
so something to keep in mind for the next provider; DoT then
<The_Camel>
havenwood, oh neat. after how many years? :D
<havenwood>
The_Camel: 3 in some jurisdictions IIR?
<The_Camel>
not bad
<havenwood>
Start DoT now, regardless.
<The_Camel>
*(thumbs)*
<havenwood>
I don't like to share ANYTHING with my ISP and have nothing to hide.
<havenwood>
DNS just *should* be encrypted. So I encrypt.
<The_Camel>
it should be, I agree.
<weaksauce>
yeah same
inline has joined #ruby
<The_Camel>
I wish I had an army of developers to make something like QT for ruby.
<havenwood>
tk shipped with Ruby forever but wasn't widely used
<havenwood>
got gemmified and removed
<mikko>
doesn't qt have pretty decent ruby bindings?
<The_Camel>
I don't want bindings. I want full support.
<The_Camel>
natural support.
<The_Camel>
a framework FOR ruby
<havenwood>
mikko: I vaguely recall they stopped supporting latest QT version but someone may have updated or forked.
pastelowl has joined #ruby
<The_Camel>
a lot of ruby projects are dying because a lot of them are done by
<The_Camel>
ahem. people.
<The_Camel>
tinkerers. people in the basement. people with time.
<The_Camel>
whereas a fully developed QT framework that has massive support for a lot of the granulated, distributed gems people use...
<The_Camel>
that is maintained by my army
<havenwood>
The_Camel: It's kinda hard to justify writing a desktop GUI in Ruby.
<o0x1eef>
This conversation was great. I configured my router's unbound to use DoT.
<havenwood>
o0x1eef: <3
<The_Camel>
o0x1eef, good job
<The_Camel>
havenwood, yes but now, imagine, ruby, for electron.
<The_Camel>
or
<The_Camel>
havenwood, ruby for UWP/MAUI
<The_Camel>
I just want ruby to not be dissed like the way it is
<The_Camel>
that's all.
<The_Camel>
I like ruby.
<The_Camel>
If I was a rich fuck, I WOULD hire that army of devs to make something akin to QT for ruby.
<The_Camel>
no but everytime i see a project on github, i wanna kill myself
<weaksauce>
the glimmer guy is crazy apparently
<havenwood>
The_Camel: It's what most Rubyists recommend these days.
<weaksauce>
crazy or just crazy racist or something like that. idr off the top of my head
<havenwood>
weaksauce: And yeah, Andy is a bit unhinged. I dunno about racist.
<The_Camel>
havenwood, and that's why I don't like what's happening to ruby.
<The_Camel>
"Hire Me
<The_Camel>
If your company would like to invest fulltime in further development of the Glimmer open-source project, hire me."
<The_Camel>
well, if he wants to, I hope he does.
<The_Camel>
damn. started in 2007.
<havenwood>
The_Camel: He believes Ruby should be the default Rails language on the frontend, it should use Glimmer, etc, etc.
<The_Camel>
I believe ruby should be used everywhere.
<The_Camel>
you can call me crazy too :P
<havenwood>
weaksauce: I don't think you're wrong at all. I've seen some odd ranting and hostility.
<The_Camel>
difference is, I ain't racist.
<The_Camel>
but I can be hostile towards idiocracy.
<mikko>
i don't know the guy but the project seems interesting
<havenwood>
mikko: agree
<havenwood>
pretty nicely done project
<The_Camel>
it's nice but simply because it's not maintained by an army of people or a corporation that's large
<The_Camel>
I can't bring myself to rely on it
<The_Camel>
it's that "oh, it's on github. *kills self*"
<havenwood>
The_Camel: Then Ruby might should be out. Lots of one-person shows.
<The_Camel>
feeling.
<The_Camel>
havenwood, yeah, I don't like the status quo.
<The_Camel>
havenwood, you know what I started doing?
<mikko>
i feel like most good projects are done by mostly one person or a small tightly knit group
<The_Camel>
I started renaming a huge portion of python functions and classes to be exactly like ruby's
<havenwood>
mikko: yeah, quite often
<havenwood>
even very significant projects with long lives
<The_Camel>
so that when I will write python next time, I can just import my little lib
<The_Camel>
and get that ruby goodness.
<The_Camel>
too bad some syntax just can't be done
<The_Camel>
like .each() | ... |
<o0x1eef>
That's why it is good to be familiar with the libraries you use. Ideally you could fork the project and be able to get up to speed quickly. So the quality should be decent.
<weaksauce>
why are you using python in the first place?
<The_Camel>
because for certain things (like talking to hardware and enumerating drivers and volumes) python that better library support
<The_Camel>
I had a project where I needed to do that in ruby and it fucked too hard, so I ended up calling python on a separate script and spit me the data through a pipe before I continued with ruby.
<The_Camel>
has*
<havenwood>
The_Camel: Python certainly has more modern graphics bindings, but I find I use Rust for anything I would have used Python for these days.
<The_Camel>
problem is, everyone is hoarding on making python better so
<o0x1eef>
Nearly everything I find on huggingface.co has a Python interface. I think if you're doing serious in-house AI it's gonna be the go-to language, no?
<The_Camel>
there are times where I just can't avoid having to use python for specific cases.
<The_Camel>
yeah, one just can't avoid python. and I hate that.
<The_Camel>
that's why I'm renaming functions and classes for myself lol
<The_Camel>
so that I can write ruby-like python :P
<The_Camel>
because *FUCK* python.
<o0x1eef>
To me it just means it is good to be a polyglot, and HTTP is a good interface that all languages can speak, so you could place your Python dependencies behind one or more web services that Ruby could consume.
teardown has joined #ruby
<havenwood>
o0x1eef: Yeah, I'd consider Python mainstream in the extreme on that front. Elixir and Rust have some solid inroads but not the lingua franca.
<weaksauce>
wtf i switched over to tls one and dns still works but the cloud9 page says that i am not using cloud9
<The_Camel>
Python? Shiteon!
<havenwood>
o0x1eef: Yeah, most folk use an HTTP/WebSocket/GRPC kinda interface.
<The_Camel>
> Free forever, plus one month of Pro included
<havenwood>
weaksauce: Was a pain for me to configure, fwiw, but eventually got it working.
<The_Camel>
wish they said that for Rubymine :(
<The_Camel>
Rubymine is like "try our trial"
<o0x1eef>
Amazingly it was a piece of cake to configure at the router level
<o0x1eef>
I didn't expect it to just work
<havenwood>
o0x1eef: So nice when things _just work_
<o0x1eef>
Indeed :D
<weaksauce>
i'll have to setup the new more advanced router sooner rather than later i guess
<The_Camel>
let's see what jive has to say about glimmer
<The_Camel>
Glimmerz use of tha Interpreta Design Pattern up in processin DSLs be also known as tha Virtual Machine Architectural Style fo' realz. Afta all, DSL expressions is virtual machine opcodes dat process nested keywordz stored up in a stack. I built Glimmerz original gangsta DSL back up in 2007 without knowin tha Virtual Machine Architectural Style (except like as a esoteric technologizzle powerin Java) yo, but stumbled upon it anyways all up in
<The_Camel>
followin tha Gang of Four Design Patterns mentioned above, chizzlely tha Interpreta Design Pattern n' tha Chain of Responsibilitizzle Design Pattern.
<The_Camel>
no fun.
<The_Camel>
it's too much jargon
<weaksauce>
havenwood any clue why it would not work? installed the profile from cloud9 and it's enabled but the 1.1.1.1 page says nada
<o0x1eef>
If you install a router running Linux or BSD you have much more control over things like that
<weaksauce>
yeah i have a ubiquity edge router that has all the control that i need to install
<weaksauce>
haven't gotten around to it yet
<The_Camel>
I be thinkin mah routa just displays javascript based pages n' config. I mostly connect ta it via mah browser.
<The_Camel>
Don't be thinkin I have access ta tha operatin system or anythang else.
<The_Camel>
It aint nuthin but probably linux but itz all a funky-ass black box.
<The_Camel>
----
<The_Camel>
I hate how I can't make what's on my desktop directly go elsewhere than in /user/Desktop on Windows.
<o0x1eef>
Windows is designed to make you hate it
<The_Camel>
o0x1eef, can linux do it? I presume there's some config you can edit.
<The_Camel>
likely desktop environment dependent too... but it shouldn't be.
<o0x1eef>
Usually that would be something the desktop environment would take care of, I prefer more minimal setups like i3 and those kind of magic features don't exist.
<The_Camel>
ah yeah. solving the problem of "making things on the desktop appear elsewhere" by not having a desktop space to begin with.
<The_Camel>
:D
<o0x1eef>
Lol
<The_Camel>
i can do that on windows too :P
<The_Camel>
that aside, this thing I want is likely in the same problem domain of making windows have separate partitions for things like Program Files, Windows and whatnot.
<The_Camel>
"can't be done"
<The_Camel>
or there's some risky, godforsaken registry entry that needs to be edited
<The_Camel>
gotta love computing...
<o0x1eef>
Windows implements an approach to computing that is almost totally alien to me. So it is hard to use it when you're always expect it to work differently.
<The_Camel>
i feel the same about linux. and I KNOW how linux works. and I'm serious.
<The_Camel>
the concept of treating every software's "innards" in separate /usr, /etc, /whatever directory areas is something I do not really like, and there's a side effect coming out of it.
<The_Camel>
fuck up the main runtime and all programs stop working
<The_Camel>
nothing is isolated.
<cappy>
o0x1eef: Windows is designed to make you hate it <-- Wasn't always this way. XP was more than usable; things went awry since 10 and 11 became worse. All Linux now.
<The_Camel>
If I destroy a framework installed on linux "globally", I destroy all programs that use said framework
<The_Camel>
that *bothers me* on linux.
<o0x1eef>
True, XP was pretty decent especially during its prime
<mikko>
you might like nixos
<The_Camel>
that's why I love snap or flatpak
<The_Camel>
mikko, I really do actually.
<The_Camel>
I tried it but
<The_Camel>
it's incomplete stuff.
<The_Camel>
hardware needs to become immutable and functional for nixos to be a true, pure os :P
<The_Camel>
which isn't happening any time soon.
<The_Camel>
and the docs are
<The_Camel>
mikko, I mean, did YOU READ? nixos docs?
<The_Camel>
feels like a spaz wrote them.
<mikko>
nope, and i haven't actually made the jump yet, i use nix on top of opensuse tumbleweed
<The_Camel>
you mean you use nix the package manager?
<mikko>
been meaning to but it's always such a hassle to reconfigure everything