<ruby[bot]>
woutervh: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<dminuoso>
apeiros: Im so tempted to try and rig Ruby with squirly lambdas that autocurry. ~> x, y { ... }
fullstack_ has joined #ruby
<dminuoso>
With push/enter calling semantics.
mlehrer has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<ahly>
how come the interpreter can't recognize `[1,2,3].map &3.+`? Doesn't `3.+` still just refer to the method `:+` of `3`?
<dminuoso>
ahly: &(3.+)
<dminuoso>
ahly: &(3.send(:+))
<dminuoso>
ahly: ~ 3.send(:+).to_proc
<dminuoso>
roughly.
<jhass>
so it's a call to + and a call to to_proc on the result of that call
hs365 has joined #ruby
<dminuoso>
o/ jhass
<jhass>
o/
<ahly>
but I tried 3.+.to_proc and it doesn't run
<dminuoso>
woutervh: can you include your ext/readline/mkmf.log
_cabotto has quit []
marr has joined #ruby
x77686d has joined #ruby
<jhass>
ahly: that's because + is binary +, so it expects an argument. unary + is actually called +@, so 3.+@.to_proc (which thenn fails because numbers don't actuallly have a to_proc)
alfiemax has quit [Read error: Connection reset by peer]
hs366 has quit [Ping timeout: 260 seconds]
<woutervh>
dminuoso, added
<dminuoso>
woutervh: Hah. Further files into separate gists please, this loads so terribly slow :D
jyaworski has quit [Ping timeout: 256 seconds]
<apeiros>
ahly: no, 3.+ does not "refer to the method"
<apeiros>
it is directly invoking the method
<apeiros>
it's not like python where x.foo returns the method and x.foo() calls it
<dminuoso>
woutervh: Are you building from some packaged source bundle or straight from a checked out git repository?
<apeiros>
in ruby, there's no syntax to get to the Method instance of a method, you have to use Object#method
<ahly>
oh
<ahly>
well okie dokie
jenrzzz has joined #ruby
<dminuoso>
woutervh: Alright I think I have figured out the issues.
troulouliou_div2 has joined #ruby
<dminuoso>
woutervh: Can you tell me what readline library (source/version) you are using?
schneider- has joined #ruby
<dminuoso>
In effect the library silently defaults to trying to use editline if it cant find readline things.
guille-moe has joined #ruby
x77686d has quit [Quit: x77686d]
<dminuoso>
Or maybe it's a check for super weird versions of it
<dminuoso>
The code that introduced this has an informative commit message
<dminuoso>
" forgot some checkins."
<dminuoso>
:|
<woutervh>
dminuoso, It's just the packaged version from the ruby website
_antares_ has joined #ruby
<dminuoso>
Ah actually the latter.
<dminuoso>
woutervh: Alright. And your readline library?
<dminuoso>
woutervh: Particularly the gcc invokations of `extconf.rb` should do this. With this information I could see what the linker is doing exactly
twe4ked has quit [Ping timeout: 276 seconds]
<mikhael_k33hl>
What's the equivalent of kill -0 in ruby? Process.kill(0) doesn't seem to work the same
hs365 has quit [Read error: Connection reset by peer]
twe4ked has joined #ruby
hs367 has joined #ruby
<woutervh>
dminuoso, I just added it to the makefile in ext/readline
<jhass>
mikhael_k33hl: you want to check whether a process exists?
<dminuoso>
woutervh: Though this could work. Include also -Wl,--trace
<woutervh>
dminuoso, wait, now it won't work anymore, I'm removing everything readline-related, and now it complains about the headerfiles not being found
<dminuoso>
woutervh: also I dont see the output of gcc there.
<dminuoso>
woutervh: If you prefer you can make a simple testcase. No ruby is needed
<mikhael_k33hl>
jhass: whether its running
amar has joined #ruby
<mikhael_k33hl>
jhass: just like how kill -0 works in linux
<jhass>
mikhael_k33hl: is it a child process of your process?
karapetyan has joined #ruby
mroutis has quit [Remote host closed the connection]
<mikhael_k33hl>
jhass: no, just to check if it is running or it is owned by another process
<dminuoso>
woutervh: create the first file inside ext/readline/ and compile it from that directory using the command I listed
Sembei has quit [Ping timeout: 256 seconds]
MyMind has joined #ruby
<mikhael_k33hl>
jhass: so when it returns 1, what does it mean?
<jhass>
it's running
<dminuoso>
woutervh: Wo wait!
<jhass>
try a not existing pid or one you have no permissions to, you'll get respective exceptions
jyaworski has joined #ruby
<dminuoso>
woutervh: Updated gist.
<dminuoso>
;)
<dminuoso>
woutervh: Brainfart! This is silly.
* dminuoso
needs a linux
<woutervh>
dminuoso, sorry? I just commented in your gist
jenrzzz has joined #ruby
<mikhael_k33hl>
jhass: Oh, I see, only 'false' and 'nil' is considered false in ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<woutervh>
as I don't have the dev-libraries anylonger for now, it just gives me a .h not found error, however, ruby compilation now passes...
<dminuoso>
woutervh: Yes that is to be expected..
<woutervh>
which is odd...
<dminuoso>
woutervh: I wished you hadn't deleted readline.
amelliaa has joined #ruby
<dminuoso>
woutervh: The point was to pinpoint the problem, not make it disappear. Now you have added to many years of users spuriously reporting the same issue.
conta has joined #ruby
<woutervh>
I read your comment to loo late, and was already cleaning out my system
<woutervh>
wait, I'll put them back :)
<woutervh>
(if possible)
<dminuoso>
woutervh: The point of the excercise was to execute the exact test that Ruby uses to figure out whether you have `rl_username_completion_function` available. For some reason the test fails, and I want to know what kind of library its trying to link against to cause this.
<woutervh>
dminuoso, I have it back
<dminuoso>
Because whatever you have, you have neither `rl_username_completion_function` nor `username_completion_function` (or the test uses a different library than the final compilation)
<woutervh>
so, with the difference that now it's working
jyaworski has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<dminuoso>
woutervh: Yeah.. like I said. It's a shame
<woutervh>
was it a many-reported issue?
<dminuoso>
woutervh: Over the years there have been random reports..
jottr has quit [Ping timeout: 264 seconds]
<woutervh>
so people need to clean their system :)
<dminuoso>
woutervh: we basically just needed that one last step..
* dminuoso
cries
cabotto has joined #ruby
<woutervh>
sorry about that, I was missing the point that we were upto something important, I just thought I had a messed-up system
* woutervh
feels stupid
<woutervh>
maybe you should have started with: "Stop! Don't do anything! Don't even think to touch something! Have some coffee and wait for instructions!" :-)
drale2k_ has joined #ruby
<dminuoso>
woutervh: well randomly doing things in debugging has a great chance of ensuring that you dont have any debug information.
<dminuoso>
Fixing without debugging has some consequences. You lose confidence in your system (because problems and solutions appear "random")
<dminuoso>
Also it doesn't improve your ability to figure out problems because there comes a point when you might just reinstall the whole system.
<dminuoso>
But anyway back to work
cabotto has quit [Remote host closed the connection]
<dminuoso>
Glad your problem is fixed
_cabotto has joined #ruby
<woutervh>
dminuoso, thanks for the help
<mikhael_k33hl>
Where can I see what errors a method or module would raise?
<woutervh>
I just re-installed the i386 version of the libreadline-dev, to see if problem re-appears. Now my dpkg-l is again as it was with the error
<dminuoso>
mikhael_k33hl: use the source luke.
<dminuoso>
mikhael_k33hl: Of course that means for a single function you have to transitively check the entire call graph of the method. =)
<dminuoso>
Enjoy.
<woutervh>
dminuoso, still works, so problem was somewhere else
<dminuoso>
woutervh: Not necessarily.
<woutervh>
anyway, thanks for the help
<dminuoso>
woutervh: The most confusing thing is this]
<dminuoso>
Those are the things you do need to build ruby. Nothing else.
ldnunes has joined #ruby
<leitz>
Not quite true. The autoconf with RHEL/CentOS 6 is too old to build Ruby, you have to install 2.67 or later, I believe.
za1b1tsu has quit [Ping timeout: 240 seconds]
<dminuoso>
That's possible
jottr has quit [Ping timeout: 240 seconds]
<dminuoso>
leitz: Keep in mind that those might not be officially supported by ruby-install.. so :P
jenrzzz has quit [Ping timeout: 240 seconds]
jsrn has quit [Ping timeout: 255 seconds]
<leitz>
I'm compiling from source.
<dminuoso>
leitz: My point is that the link I gave you is the dependency list from ruby-install
<leitz>
Ah, sorry.
<dminuoso>
leitz: So if that doesn't reflect the necessary dependencies on quirky and old "enterprisey" linux flavours so be it.
jottr has joined #ruby
<leitz>
So, it doesn't cover the majority of large scale linux deployments in the US?
<dminuoso>
leitz: I have no idea what autoconf version RHEL ships with.
<leitz>
2.63, I think. I'll check that in a sec.
jsrn has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus69 has joined #ruby
<leitz>
Yup, Building from wource requires 2.67+
<leitz>
Latest autoconf from source is 2.69, I think.
<dminuoso>
leitz: Question is just what RHEL ships with.
<dminuoso>
I cant see because without an account you cant even browse their repository.
Cavallari has quit [Quit: Cavallari]
tomphp has joined #ruby
<leitz>
dminuoso, if you browse the CentOS repo for the same version you're going to be pretty much the same. Sometimes CentOS lags by a day or so.
<dminuoso>
leitz: But yes. If those "enterprisey" (which is just a fancy word for "big, old IT infrastructure and old-style administration style") servers cant use ruby-install so be it.
<dminuoso>
It's annoying to support commercial operating systems.
<dminuoso>
You can still install it flawlessly from source if you want.
<dminuoso>
ruby-install just automates it so you dont even have to install those dependencies by hand
tomphp has quit [Client Quit]
<leitz>
flawlessly requires jumping through hoops.
<dminuoso>
Not really.
<dminuoso>
If your shitty linux doesn't have software that was released 8 years ago, then that's your problem really.
<dminuoso>
It's reasonable to expect that you have GNU autotools available that's newer than 8 years.
Cavallari has joined #ruby
<leitz>
tsk tsk...
<leitz>
Ruby install failed at "./configure", even with the newest version of autoconf.
<dminuoso>
Care to share the error message?
<dminuoso>
Maybe the entire output even.
<leitz>
configure: error: cannot run /bin/sh tool/config.sub
alex`` has quit [Quit: WeeChat 2.1]
nzst has joined #ruby
alex`` has joined #ruby
<leitz>
Yup, I wanted to cut and paste since I might miss something key. I'm a slow typist.
za1b1tsu has joined #ruby
alex`` is now known as alexherbo2
<Cork>
i have a string output with a bunch of "<U+200B><U+200B><U+200B>" in them; can i convert that back to a "normal" string again?
schneider- has joined #ruby
<leitz>
I just downloaded Ruby from github and installed autoconf 2.69. Ran "/usr/local/bin/autoconf" and then "./configure" per the README.md
alexherbo2 is now known as alex``
<dminuoso>
leitz: maybe there already is a configure script?
<dminuoso>
leitz: try to autoreconf
<dminuoso>
leitz: also include the full output in a gist
<leitz>
Okay, gimme a minute. I'll get a clean source tree.
<dminuoso>
leitz: try running `sh tool/config.sub` by hand
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
<leitz>
dminuoso, you in the US or??
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has quit [Ping timeout: 265 seconds]
<dminuoso>
Cork: what do you mean "normal"
<Cork>
the raw unicode string
<dminuoso>
Cork: I suggest you take a pause and spend the afternoon learning how encoding works.
zautomata3 has quit [Ping timeout: 265 seconds]
schneider- has quit [Ping timeout: 260 seconds]
<Cork>
O_o wa?
<dminuoso>
13:54 Cork | i have a string output with a bunch of "<U+200B><U+200B><U+200B>" in them; can i convert that back to a "normal" string again?
<dminuoso>
What do you mean really
<dminuoso>
are you printing the string or inspecting it
<dminuoso>
As in.. do you actually have a string "<U+200B><U+200B><U+200B>" ?
<dminuoso>
that is
<dminuoso>
>> a = "<U+200B><U+200B><U+200B>"; puts a
<ruby[bot]>
dminuoso: # => <U+200B><U+200B><U+200B> ...check link for more (https://eval.in/998728)
<dminuoso>
Or do you have something that is - for some reason - displayed in that format?
<dminuoso>
What's the actual encoding of your string
<Cork>
.gsub(/\<U\+200B>/, ["0x200B".to_i(16)].pack("U")) does the job so i'm going to go with that
ferr has joined #ruby
<dminuoso>
Cork: Uh.. why not fix the cause of this?
za1b1tsu has joined #ruby
<dminuoso>
Cork: That is why not simply prevent the escaping in the first place?
DoubleMalt has joined #ruby
amatas has joined #ruby
zautomata3 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
nowhere_man has joined #ruby
rwb has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
RougeT430 has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
drale2k_ has joined #ruby
tomphp has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
jyaworski has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
za1b1tsu has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
wolfshappen has joined #ruby
jyaworski has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ix has joined #ruby
<ix>
hello. I'm considering starting to learning ruby on a stats-project. the 1st problem is that I don't have internet access on the machine I'll be using and it doesn't have ruby installed.
amatas has quit [Ping timeout: 276 seconds]
bmurt has joined #ruby
<ix>
I downloaded the source and I'll probably install that this weekend, is there any database included? sqlite or similar?
alfiemax has joined #ruby
karapety_ has quit [Ping timeout: 240 seconds]
jyaworski has joined #ruby
Psybur has joined #ruby
ramfjord has joined #ruby
Burgestrand has joined #ruby
IceDragon has joined #ruby
k0mpa has joined #ruby
cabotto has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<leitz>
ix, look at the Sequel gem, it's supposed to make database access more common.
<darix>
leitz: what version are you trying to compile there?
RougeT430 has quit [Ping timeout: 265 seconds]
RougeT430 has joined #ruby
za1b1tsu has quit [Ping timeout: 264 seconds]
schneider- has quit [Ping timeout: 264 seconds]
rouget430__ has quit [Ping timeout: 248 seconds]
<leitz>
darix, source from today.
<leitz>
darix, while I don't really know enough to understand the dry-rb stuff it seems a good way to go.
jyaworski has joined #ruby
Mike11 has quit [Quit: Leaving.]
<darix>
leitz: you are compiling from git then?
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
jyaworski has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
za1b1tsu has joined #ruby
tesdarsd has quit [Quit: Page closed]
_aeris_ has quit [Remote host closed the connection]
<leitz>
darix, yup. dminuoso asked about my claim that you needed Ruby to install Ruby. I'm testing my assertion. :)
_aeris_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<darix>
leitz: for git without a configure you need it yes
<darix>
for release tarballs no
<ix>
leitz: thanks, i'll get that too.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz>
ix, enjoy Ruby! It's pretty fun stuff.
<ix>
:) thanks
<leitz>
darix, that's what I thought. I do get tired of folks saying "we don't support old Operating systems" and then wondering why Ruby has about 0% market share outside of Rails.
<darix>
leitz: it has 100% market share in all my scripts :P
roshanavand has joined #ruby
<darix>
leitz: you can always bootstrap from a release tarball and then build git afterwards.
tomphp has joined #ruby
tomphp has quit [Client Quit]
<leitz>
darix, I'm working on building system tools but my skills are pretty low. I wrote an Ansible playbook to install OS ruby if not installed, then to install Ruby 2.0.0, then to compile from trunk.
tomphp has joined #ruby
<leitz>
OS ruby (1.8,7) can't build Ruby from trunk.
<darix>
leitz: what kind of OS?
<leitz>
Then I hit the issue I started out with today; the make install pauses and requires interaction to overwrite rake.
ferr has left #ruby ["WeeChat 2.1"]
<darix>
also why ruby 2.0.0 which is EOL already
<darix>
leitz: dont do that :P
amatas has joined #ruby
<darix>
leitz: install into a different path
tomphp has quit [Client Quit]
karapetyan has joined #ruby
amatas has quit [Client Quit]
<leitz>
darix, CentOS 6 comes with Ruby 1.8.7. So I can install the OS ruby, build 2.0.0, then use 2.0.0 to build 2.6.x. Can't get straight from 1.8,7 to 2.6.
<darix>
uhm
<darix>
which begs the question ...
<darix>
why dont you start on centos 7?
roshanavand has quit [Ping timeout: 248 seconds]
<leitz>
Can't install on a differnent path; if I refresh the git source and rebuild new, it still gets the overwrite error.
<mikhael_k33hl>
Is there an instance method that I can override that will be run no matter how the application exits(crash)?
amatas has joined #ruby
<leitz>
Because I get paid to support RHEL 6. :)
roshanavand has joined #ruby
<leitz>
mikhael_k33hl, have you looked at Exceptions?
<leitz>
The "after", I think, runs no matter what.
<mikhael_k33hl>
leitz: exceptions?
<darix>
leitz: "why?"
<mikhael_k33hl>
leitz: can you direct me to an article or documentation please?
<darix>
leitz: centos6 will also be EOL soon
<mikhael_k33hl>
leitz: I need my program to cleanup even if the server crashes
<mikhael_k33hl>
leitz: I mean if the app crashes
<darix>
mikhael_k33hl: if it is a segfault or anything
<leitz>
Yup. I often hit "operator error", just not seeing it this time. :)
<leitz>
This one time...
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
s2013 has quit [Read error: No route to host]
<dminuoso>
leitz: Well dont compile from trunk.
<dminuoso>
leitz: Use a prepackaged tarball.
<leitz>
So, don't use Ruby?
<dminuoso>
No just dont build from trunk.
dionysus69 has quit [Quit: dionysus69]
saTchymoto has quit []
<leitz>
So, you're saying that we can't acutally use computer code on a computer? Especially after slamming me for using an older OS, you're saying to use an older Ruby.
<dminuoso>
No.
dionysus69 has joined #ruby
<leitz>
Sorry for being cross, I just get tired of having to use Ruby is a very finite way. Can't use it on the OS or gets dozen's of "you should upgrage". Then I upgrade and hear "you should downgrade".
<dminuoso>
leitz: support@ihvs0080:~/ruby/ruby-2.5.1$ ./configure; checking for ruby... false [...]
dionysus69 has joined #ruby
ggherdov has joined #ruby
<konsolebox>
leitz: trunk is bleeding-edge. there are stable releases. you can also use rvm.
<dminuoso>
leitz: and now compiling just fine. without any ruby.
ggherdov has quit [Excess Flood]
<dminuoso>
leitz: I think you are under the mistaken impression that the tarball I was talking about was precompiled.
<dminuoso>
It's not.
<leitz>
dminuoso, when I've tried to build Ruby without Ruby installed, it has failed in the past. That may have changed, and if so my life is much easier.
<dminuoso>
leitz: Becaue you built from trunk.
<leitz>
That was what I was testing earlier.
ggherdov has joined #ruby
<dminuoso>
leitz: trunk is not the same as the prepackaged tarballs.
ggherdov has quit [Excess Flood]
<dminuoso>
leitz: the tarballs are ever so slightly modified to build without ruby.
<leitz>
Ah, gotcha.
<leitz>
mnemon, thanks for the RHSCL note!
<dminuoso>
leitz: The tarballs are meant for users. trunk is not.
<leitz>
I thought it was an older Ruby.
<dminuoso>
trunk is for developers
<dminuoso>
even the stable tags are not for users, they are for develoeprs.
* leitz
is trying to be a developer. Long way to go, it seems.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
dionysus69 has quit [Client Quit]
<dminuoso>
leitz: so again this is why ruby-install doesn't list ruby as a dependency. it builds from those prepackaged tarballs. ;)
rwb has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<leitz>
dminuoso, understood. I think I've used them before and didn't have to have Ruby installed already.
<zeroward>
tmp_modtime" '/var/log/wtmp'") as an error.
aupadhye has quit [Ping timeout: 248 seconds]
<jordanm>
zeroward: looks like you are closing the quotes after `touch -d `
stoffus has quit [Ping timeout: 256 seconds]
camonz has joined #ruby
rouget430__ has joined #ruby
schneider- has quit [Ping timeout: 256 seconds]
apparition has joined #ruby
<zeroward>
.....
<zeroward>
I promise I'm not as dumb as this question made me seem. lol
RougeT430 has quit [Read error: Connection reset by peer]
RougeT430 has joined #ruby
nzst has quit [Ping timeout: 260 seconds]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
apparition has quit [Client Quit]
jottr has joined #ruby
rouget430__ has quit [Ping timeout: 260 seconds]
cabotto has quit [Remote host closed the connection]
cschneid_ has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
cabotto has joined #ruby
alfiemax has quit [Remote host closed the connection]
grilix has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jyaworski has joined #ruby
alfiemax has joined #ruby
nzst has joined #ruby
cabotto has quit [Ping timeout: 264 seconds]
n008f4g_ has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 240 seconds]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
schneider- has joined #ruby
marr has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
cabotto has joined #ruby
<al2o3-cr>
zeroward: FileUtils.touch for this if it helps.
schneider- has quit [Ping timeout: 264 seconds]
<zeroward>
Fantastic. Thanks!
<al2o3-cr>
np :)
<zeroward>
Does anyone on here happen to have experience writing post modules for metasploit...? If so, I may bother you when I inevitably fuck things up. lol
jyaworski has quit [Ping timeout: 260 seconds]
<leitz>
darix, my working theory is "transferable skills". While I'm not likely to get hired directly off my coding skills, I'm using Ruby to learn things like TDD, etc.
venmx has joined #ruby
<leitz>
The theory being that having a breadth of skills will be attracitve to a hiring manager, even if I'm not an expert in the language of the team.
<zeroward>
Find your thing, and be good at it.
<leitz>
Untested theory, at this point.
<zeroward>
Don't try to be a jack of all trades.
<zeroward>
It's cool and all to want to learn a variety of skills, but you're better off just focusing on being fantastic at one thing.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
cyberg has joined #ruby
hanmac has joined #ruby
<leitz>
zeroward, understood. I'm pretty good at Linux but wanting to get to something more creative.
<zeroward>
Pretty good at Linux?
<zeroward>
Define pretty good. lol
<leitz>
I get paid for it. :))
<zeroward>
Well there you go.
<zeroward>
If you want to get creative, get into pen testing.
amar has quit [Remote host closed the connection]
Cavallari has quit [Quit: Cavallari]
<leitz>
After a couple decades though, the OS is becoming even more of a commodity and Linux is not a heck of a distance from Windows.
amar has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<zeroward>
Eh.
<zeroward>
I'll beg to differ on that one.
<leitz>
I write fiction and code in Ruby to retain the modicum of sanity that remains to me.
<zeroward>
But I've only been breaking stuff for a few years now.
<leitz>
zeroward, you lose at "systemd". :)
<zeroward>
Valid point.
ta_ has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 265 seconds]
<leitz>
Which is why my home desktop is CentOS 6, not 7. :)
<darix>
leitz: ouch
rawste has joined #ruby
<darix>
leitz: my desktop is opensuse tumbleweed (similar to fedora rawhide)
aufi has quit [Ping timeout: 264 seconds]
<leitz>
darix, I used to support a pretty good sized SLES environment. Not bad stuff, though I had to mentally shift gears sometimes.
amar has quit [Read error: No route to host]
<darix>
leitz: I wouldnt limit myself to the oldest distro possible on the desktop
<darix>
was the point
amar has joined #ruby
<leitz>
Ah. Since I support RHEL 6 it keeps me in tune with work. If I didn't have to do RHEL 6, I have no idea what I'd do.
<leitz>
Though Fedora Rawhide and OpenSuSE are pretty good. Haven't done Fedora in a while.
<gizmore>
why would you need to recode bindings in crystal?
jenrzzz has joined #ruby
<havenwood>
gizmore: The Helix project has a good example of things you might want to implement if you're doing Ruby bindings to a new lang: https://usehelix.com/roadmap
<gizmore>
nah i am currently in php hell
<havenwood>
gizmore: They have checklists of things they've completed and some rationale for why they're implementing the various parts of Helix.
<gizmore>
i have a concept of a general framework that is not that bad... my current php is quite ok.... but php sucks
<gizmore>
in ruby i would just inject some decorators here and there
<gizmore>
and you can do magic in ruby....
<gizmore>
anyway... the problem with ruby is that it has no type hinting like in php :P
<apeiros>
basic: ok. that's a point. IMO let a single thread have control over the ssh connection and use a queue to write on it. reading depends on how you plan to map channels to threads.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hays_>
I think the output of the RSpec is a bit more useful because of the metadata that ends up getting added to the report
<hays_>
Looks like I can make a basic Rakefile that runs a bunch of tests. Seems like a reasonable starting point
alfiemax has joined #ruby
karapetyan has quit [Remote host closed the connection]
<hays_>
alright, thanks for the clarification. Sometimes I find it hard to get context from some of the docs/examples projects publish. Particularly rpsec's series of videos was strange and unhelpful
hays_ has quit [Remote host closed the connection]
jyaworski has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
isaacNM has joined #ruby
Mike11 has joined #ruby
jyaworski has quit [Ping timeout: 268 seconds]
jyaworski has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
Nussi has quit [Ping timeout: 248 seconds]
Nussi has joined #ruby
n0m4d1c has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
isaacNM has quit []
jyaworski has quit [Ping timeout: 240 seconds]
jeen has joined #ruby
schooner has joined #ruby
ta_ has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
jeen has quit [Client Quit]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
chocoelho has quit [Quit: Konversation terminated!]
chocoelho has joined #ruby
marxarelli|afk is now known as marxarelli
jyaworski has joined #ruby
marxarelli is now known as marxarelli|afk
jyaworski has quit [Ping timeout: 240 seconds]
lytol has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
<quuxman>
Is there a way to get all the attributes of an object that aren't inherited, or at least remove everything inherited from ActiveRecord?
<Radar>
quuxman: huh?
<apeiros>
quuxman: instance_methods accepts an argument, to ignore inherited methods
<Radar>
apeiros: but quuxman is talking about attributes, not methods.
<apeiros>
quuxman: also you can use ordinary array manipulation: YourClass.instance_methods - SomeSuperclass.instance_methods
<apeiros>
Radar: lets see then what they really mean
<quuxman>
Radar, apeiros: actually methods are mainly what I'm interested. I didn't know they're different
<Radar>
quuxman: do you have an example of what you mean?
<quuxman>
I'm used to using tab completion to quickly explore an API, but in Ruby it's useless because there's usually 500+ methods / properties of an object
karapetyan has joined #ruby
agent_white has quit [Quit: bbl]
<apeiros>
quuxman: use pry, there you get the `ls` command which structures it in a more helpful way
<apeiros>
though iirc AR models are still overwhelming
dviola has joined #ruby
ipeee has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 248 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
<quuxman>
apeiros: thanks, ls is actually really helpful for separating out all the rails junk
<quuxman>
it even organizes the rails stuff into categories
Mike11 has quit [Quit: Leaving.]
<quuxman>
I mean active record
<apeiros>
I think it just groups them by class/module, and AR separates its parts into "category" modules (or concerns, or responsibilities)
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
eckhardt_ has joined #ruby
Asher has joined #ruby
eckhardt_ has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jyaworski has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
ryzokuken has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
Deesl has joined #ruby
marr has quit [Ping timeout: 264 seconds]
n0m4d1c has joined #ruby
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
nitric_ has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]