<ThePortWhisperer>
i was trying to remove rvm - rvm uninstall and rvm remove both return: Really? uninstall, all? See "rvm list" and limit the selection to something more sane please :)
<ThePortWhisperer>
rvm list says : rvm rubies /n /n #no rvn rubies installed yet. try rvm help install.
<PorcoRex>
Is rvm installed for your local user or globally?
<PorcoRex>
when i do gem env home it says its looking at ..../rvm/gems/ruby-2.4.0 <- what's this full path?
<ThePortWhisperer>
okay after i ran that rvm remove and rvm uninstall i guess it jiggled something around
<ThePortWhisperer>
even though it seemed to throw an error
<ThePortWhisperer>
so i guess the issue has been fixed
<ThePortWhisperer>
its now pointing to gems/2.3.0
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PorcoRex>
But in root's home dir. Are you purposefully doing that?
<ThePortWhisperer>
yeah im just on some vm for a pentesting course
<PorcoRex>
Alright.
__Yiota has joined #ruby
Jayson_Virissimo has quit []
t-recx has quit [Quit: t-recx]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cschneid_ has joined #ruby
<Aeyris>
Heh, you must be using Kali.
<Aeyris>
The only somewhat mainstream distribution that completely throws the Unix user access model out the window is the one geared towards "security people".
<ThePortWhisperer>
Aeyris, :)
cschneid_ has quit [Ping timeout: 255 seconds]
raspado has quit [Quit: Leaving...]
<ThePortWhisperer>
Aeyris, we just use these VM's to wreck some boxes on a vpn and then dump them
<Aeyris>
ThePortWhisperer: OSCP course?
<ThePortWhisperer>
yes
<Aeyris>
Did it a while ago. Good fun.
<Aeyris>
OS-101-05669
__Yiota has quit [Ping timeout: 240 seconds]
<ThePortWhisperer>
Aeyris, twisted definition of fun :)
<ThePortWhisperer>
wow, they dont use that format anymore
<Aeyris>
Heh.
<Aeyris>
What's the new format?
<ThePortWhisperer>
im guessing you would be considered OS-5669 now. im OS-24826.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acalycine has quit [Quit: bye]
jenrzzz has quit [Ping timeout: 240 seconds]
<ThePortWhisperer>
AHHH, I see, i didn't realize that was the grad format as I haven't got mine yet.
<Aeyris>
You'll get there. ;)
<ThePortWhisperer>
alright back to pwning, #offsec has some good banter, lots of grads as well if you want to add to autojoin
gix has quit [Ping timeout: 252 seconds]
<ThePortWhisperer>
otherwise catch you in here next time i muck up my msfconsole gems
<Aeyris>
Just joined. Hit me up if you have any questions about the lab. :)
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 240 seconds]
gix has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wilbert has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
wilbert has joined #ruby
Suslo has joined #ruby
Suslo has quit [Client Quit]
wilbert has quit [Client Quit]
Suslo has joined #ruby
rakm has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
xall has joined #ruby
Suslov has quit [Ping timeout: 255 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
mjuszczak has joined #ruby
Robtop__ is now known as pwnd_nsfw
mjuszczak has quit [Client Quit]
xrcode has joined #ruby
mim1k has joined #ruby
hutch34 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
raul782 has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
herbmillerjr has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
PorcoRex has quit [Quit: Leaving]
patarr has joined #ruby
raul782 has joined #ruby
spyder55 has joined #ruby
spyder55 has quit [Client Quit]
patarr has quit [Ping timeout: 255 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
cam27 has joined #ruby
darwish_ has quit [Remote host closed the connection]
ThePortWhisperer has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
nankyokusei has joined #ruby
AndBobsYourUncle has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
JoshS has joined #ruby
wilbert has joined #ruby
renchan has joined #ruby
mim1k has joined #ruby
nanoz has joined #ruby
joeop596 has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
joeop596 has left #ruby [#ruby]
cschneid_ has joined #ruby
Bock has joined #ruby
cschneid_ has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
cam27 has quit [Quit: cam27]
Suslo has quit [Quit: Leaving...]
jusa has joined #ruby
jeyraof^mbpr has joined #ruby
nanoz has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
armando has quit [Ping timeout: 252 seconds]
nanoz has joined #ruby
SteenJobs has joined #ruby
armando has joined #ruby
esObe_ has joined #ruby
SteenJobs has quit [Client Quit]
grh has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
jud has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
minimalism is now known as gr
domgetter has joined #ruby
jgt2 has joined #ruby
xall has quit [Ping timeout: 255 seconds]
AustinMatherne has quit [Remote host closed the connection]
mazeinmaze_ has joined #ruby
xall has joined #ruby
AustinMatherne has joined #ruby
armando has quit [Ping timeout: 255 seconds]
armando has joined #ruby
Xiti has quit [Quit: Xiti]
enterprisey_ has joined #ruby
hutch34 has joined #ruby
enterprisey has quit [Ping timeout: 255 seconds]
_tk421_ has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
User458764 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
Guest96 has quit [Remote host closed the connection]
govg has quit [Ping timeout: 260 seconds]
Guest96 has joined #ruby
raul782 has quit []
eb0t has joined #ruby
eblip has joined #ruby
patarr has joined #ruby
jeffaustin81 has joined #ruby
eb0t_ has quit [Ping timeout: 255 seconds]
def_jam has quit [Ping timeout: 255 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
muelleme_ has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
skweek has joined #ruby
bigtawm has joined #ruby
mazeinmaze_ has quit [Ping timeout: 240 seconds]
<bigtawm>
Hey everyone. I want to make a bot for slack that reads from a google doc and alerts a channel when a row of data has been added along with a formatted output of the data in the chat. Is anyone familiar with slack and google drive apis? Also, how would I host this code so that it is always running?
wilbert has quit [Ping timeout: 255 seconds]
chouhoul_ has joined #ruby
<dminuoso>
bigtawm: The drive api has push notifications you can subscribe to.
enterprisey_ has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
<bigtawm>
This looks like exactly what I need cause the google sheet gets automatically populated through the submission of a form
<bigtawm>
Would I have to create a sinatra app to take the post request?
<dminuoso>
bigtawm: That is how webhooks work, yes.
<j416>
Isn't there an ifttt thing for that
<dminuoso>
If sinatra is too much work for you, pick a different hobby. Like professional excel spreadsheeting.
<bigtawm>
Okay cool. What would you recommend for hosting this app? Im a CS student so I havent put anything out on production like this.
pwnd_nsfw` has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jeffaustin81 has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
bigtawm: No idea honestly. I know heroku has some free plans but they are limited. You might try #rubyonrails - much more likely to get an adequate answer there.
esObe_ has joined #ruby
<bigtawm>
Okay, thanks I appreciate the help
pwnd_nsfw has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
govg has joined #ruby
nanoz has quit [Ping timeout: 245 seconds]
esObe_ has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
arooni has quit [K-Lined]
DarkBushido has quit [K-Lined]
epochwolf has quit [K-Lined]
GGMethos has quit [K-Lined]
nankyokusei has quit [Ping timeout: 255 seconds]
epochwolf has joined #ruby
DarkBushido has joined #ruby
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
arooni has joined #ruby
muelleme_ has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 260 seconds]
solocshaw has quit [Quit: solocshaw]
solocshaw has joined #ruby
GGMethos has joined #ruby
alfiemax has joined #ruby
dionysus69 has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
conta has joined #ruby
User458764 has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
Nilium has quit [Ping timeout: 246 seconds]
jpterry has quit [Ping timeout: 268 seconds]
Mortomes|Work has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xrcode has quit [Remote host closed the connection]
xenops has quit [Client Quit]
xrcode has joined #ruby
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xenops has quit [Client Quit]
Burgestrand has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jgnagy has quit [Remote host closed the connection]
solocshaw has joined #ruby
Arpanet69 has joined #ruby
jgnagy has joined #ruby
User458764 has joined #ruby
pulkit4tech has joined #ruby
pulkit4tech has left #ruby [#ruby]
lenwood has joined #ruby
_djbkd has quit [Quit: My people need me...]
jameser_ has joined #ruby
cfec0b8d1 has joined #ruby
pulkit4tech has joined #ruby
cfec0b8d has quit [Ping timeout: 255 seconds]
jameser has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<asperon>
i have tried fonts.detect {|e| e == text_field['font'].capitalize} to no avail
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has quit [Ping timeout: 245 seconds]
jameser has joined #ruby
<tobiasvl>
asperon: not sure I follow. what is text_field?
Arpanet69 has quit [Ping timeout: 252 seconds]
<asperon>
tobiasvl: its just a text string with the font name
<asperon>
ie, Tangerine for example
<asperon>
so i want to match it agains the hash "key" or whatever it is called
Silthias has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DARPA has quit [Ping timeout: 252 seconds]
<elomatreb>
asperon: Hash#key? may be useful
<asperon>
elomatreb: right, thats probably it, via select?
<herwin>
is there any reason this data is an array of hashes that all have 1 key, and not just a hash?
<asperon>
herwin: its used like this in RMagic, and i would prefer to reuse it
<tobiasvl>
asperon: since the hashes are nested you'd have to do something like this: fonts.detect {|e| e.detect {|f,_| f == text_field['font'].capitalize }}
<tobiasvl>
but Hash#key? is better
<elomatreb>
select returns an array with the elements that satisfy the condition, find/detect will return the first element that matches, even if there are more
LTommy has joined #ruby
<tobiasvl>
also a good point
Arpanet69 has joined #ruby
<asperon>
elomatreb: ok, so i should use detect then but with | key, hash |?
<asperon>
that seemed to workj
<asperon>
thanks
<elomatreb>
Your top-level structure is an array, it doesn't have any keys, only values
mim1k has joined #ruby
<asperon>
yes, but the values are hashes, and detect wouldn't match the string vs the hash key
<herwin>
fonts.flat_map(&:to_a).to_h makes the structure much easier to work with
<tobiasvl>
perhaps asperon meant the nested detect that I suggested
<tobiasvl>
which works
<asperon>
tobiasvl: exactly
agit0 has joined #ruby
<mikecmpbll>
why does `bundle gem ..` create a /bin dir and then set `spec.bindir = 'exe'` in the gemspec?
Arpanet69 has quit [Ping timeout: 252 seconds]
kassav_ has joined #ruby
LTommy has quit [Quit: leaving]
Guest96 has quit [Remote host closed the connection]
aufi has joined #ruby
<elomatreb>
bin is for utility scripts used during dev, exe for actual exposed executables iirc
Guest96 has joined #ruby
jsrn_ has joined #ruby
<mikecmpbll>
ah okidokes, makes sense.
Qchmqs has joined #ruby
Beams has joined #ruby
valkyrka has joined #ruby
charliesome has joined #ruby
marr has joined #ruby
nankyokusei has joined #ruby
agit0 has quit [Ping timeout: 240 seconds]
cfec0b8d1 has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 245 seconds]
asperon has quit [Remote host closed the connection]
LTommy has joined #ruby
LTommy has quit [Client Quit]
LTommy has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
<Qchmqs>
what's the channel for hanami the framework ?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
ski7777 has joined #ruby
<chichou>
yuppie: did you try with installing libxml2 with homebrew?
<chichou>
I assume you are on mac os x?
<yuppie>
yeah osx
<yuppie>
and i already have that lib installed
govg has quit [Quit: leaving]
biberu has joined #ruby
govg has joined #ruby
<chichou>
so the first attempt try to use its own libxml2 and the second one cannot find it on your system, I assume that you didn't brew link it then?
cschneid_ has quit [Remote host closed the connection]
jespada has joined #ruby
<yuppie>
rvm list
cschneid_ has joined #ruby
<chichou>
using another version of ruby but still
<chichou>
I'm using rbenv
<yuppie>
what version are you on
<chichou>
it's in the gist but 2.4
<chichou>
2.4.1 to be precise
jespada has quit [Client Quit]
<yuppie>
alright i'll try to use that
jespada has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
bob_f has quit [Ping timeout: 256 seconds]
LTommy has quit [Ping timeout: 245 seconds]
<dminuoso>
srandon111: Not necessarily.
<yuppie>
im not sure what the issue really is
<dminuoso>
srandon111: You just have to understand the limitations of the GVL. As long as you use multithreading to obtain parallelism *or* concurrent blocking IO then its fine.
LTommy has joined #ruby
<dminuoso>
And woops. I mixed these two up right there.
<dminuoso>
Concurrent actions are just fine with Ruby, threads will give you that. But if you want to obtain true parallelism, you can only get this with I/O for the most part.
jdbrowne has joined #ruby
<chichou>
or you can use JRuby but that's another topic I guess
<chichou>
yuppie: still no luck?
xrcode has quit [Read error: Connection reset by peer]
anisha has joined #ruby
cfec0b8d has joined #ruby
<dminuoso>
11:21 < chichou> or you can use JRuby but that's another topic I guess
kristofferR has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
kristofferR has quit [Client Quit]
kristofferR has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
xall has quit [Ping timeout: 260 seconds]
cisco has joined #ruby
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
denniszelada has joined #ruby
<denniszelada>
Hello I am getting an issue in production, we are using kafka 0.9 and ruby 2.3, we have two brokers and one partition for the topic, and we have just one consumer with a group_id, but today we got an error which says no messages in the partition, seems like the subscribed_partitions of the group is empty, do you guys have any idea of what could be wrong?
Ishido has joined #ruby
toretore has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has quit [Ping timeout: 255 seconds]
pandaant has quit [Remote host closed the connection]
ledestin has joined #ruby
<Qchmqs>
denniszelada: one thing you obviously have wrong is that your dev env isn't exactly like your production one
<Qchmqs>
and if you added a staging proccess this should've been caught early
Ishido has quit [Ping timeout: 252 seconds]
impermanence has joined #ruby
shinnya has joined #ruby
impermanence has quit [Client Quit]
ledestin has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<denniszelada>
@Qchmqs disclaimer I didn’t did this I am just trying to fix what people do
tvw has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
pandaant has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
valkyrka has quit [Quit: valkyrka]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
Guest96 has quit [Remote host closed the connection]
chichou has quit [Read error: Connection reset by peer]
uogkco has quit [Remote host closed the connection]
Guest96 has joined #ruby
denniszelada has quit [Quit: denniszelada]
gusrub has quit [Ping timeout: 240 seconds]
chichou has joined #ruby
ahrs has quit [Ping timeout: 240 seconds]
cisco has quit [Quit: Leaving.]
Siyfion has joined #ruby
ahrs has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cfec0b8d has quit [Quit: Leaving.]
cisco has joined #ruby
cisco has quit [Client Quit]
millerti has joined #ruby
cisco has joined #ruby
cisco has quit [Remote host closed the connection]
cschneid_ has joined #ruby
tvw has joined #ruby
cisco has joined #ruby
Guest96 has quit [Remote host closed the connection]
cisco has quit [Client Quit]
Guest96 has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
cisco has joined #ruby
am55 has quit [Remote host closed the connection]
ixti has joined #ruby
claudevandort has joined #ruby
jusa has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: Leaving]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
am55 has joined #ruby
<arne_>
Burgestrand: thanks alot, can i also give it multiple seperators?
ldnunes has quit [Client Quit]
esObe_ has joined #ruby
ctompkinson has quit [Ping timeout: 255 seconds]
<arne_>
well, doesn't look like it
ctompkinson has joined #ruby
toretore has quit [Ping timeout: 255 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
denniszelada has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
synthroid has joined #ruby
kassav_ has quit [Ping timeout: 240 seconds]
chichou has quit [Ping timeout: 260 seconds]
synthroi_ has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 240 seconds]
am55 has joined #ruby
erlend has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
ctompkinson has quit [Ping timeout: 240 seconds]
andikr has quit [Ping timeout: 245 seconds]
ctompkinson has joined #ruby
ldnunes has joined #ruby
__Yiota has joined #ruby
andikr has joined #ruby
denniszelada has quit [Quit: denniszelada]
Burgestrand has quit [Ping timeout: 240 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 240 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kassav_ has joined #ruby
Arpanet69 has joined #ruby
chichou has joined #ruby
chichou has quit [Client Quit]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
jusa has joined #ruby
Lord_of_Life has quit [Excess Flood]
conta has joined #ruby
gnufied has quit [Ping timeout: 255 seconds]
Lord_of_Life has joined #ruby
charliesome has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yuppie>
what the fuck is the problem with ruby these days
Burgestrand has joined #ruby
<Burgestrand>
arne_ No, unfortunately if you need to do something fancy I believe you might have to read/buffer/split for yourself. If it's not a problem to load the entire file in memory, I'd simply do `File.read(path).split(/regex/)` and be done with it.
<dminuoso>
impermanence: This is what you probably meant to call.
roshanavand has joined #ruby
<dminuoso>
impermanence: Probably on the instance STDIN ;-)
mzo has joined #ruby
patarr has joined #ruby
<dminuoso>
Sorry about that remark, I can see how this might have been misleading.
souljah has joined #ruby
Snickers has quit [Ping timeout: 240 seconds]
chichou has quit [Ping timeout: 240 seconds]
<souljah>
Hello, I'm having some issues after a recent firmware update, My reverse-ssh functionallity is no longer responding to 'sudo service reverse-ssh start'
<souljah>
It is throwin an error of /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- daemons (LoadError)
<souljah>
Someone help pls, Ruby is not my area
<havenwood>
souljah: gem install daemons # it's looking for the daemons gem
Burgestrand has quit [Quit: Closing time!]
<souljah>
havenwood: The daemons gem is installed, that's the issue
<havenwood>
souljah: Is it in your Gemfile (are you using a Gemfile.lock?)
_whitelogger has joined #ruby
<souljah>
havenwood: The entries for Daemons within Gemfile.lock is: daemons (1.1.9)
<souljah>
daemons
<souljah>
daemons (>= 1.0.9)
<havenwood>
souljah: If it isn't, try a `gem 'daemons'` in your Gemfile then run: bundle
<havenwood>
souljah: Try prefixing the command you're getting the error with with `bundle exec`. If that doesn't work confirm there aren't multiple versions of Ruby in play.
dionysus69 has joined #ruby
<souljah>
havenwood: How do I check current installation versions of ruby?
<havenwood>
souljah: Yeah, multiple versions of Ruby. You were showing 1.9.1 above.
<souljah>
Ah :)
<souljah>
So daemons needs to be 2.0.0
<havenwood>
Maybe you used `sudo` and dropped env?
<havenwood>
souljah: No, you need to make it available to 1.9.1 (or better yet, stop using that old system Ruby and use 2.3 or 2.4.
<souljah>
havenwood: How do I make it available to 1.9.1, unfortunetly changing 2.0.0 isn't an option :(
StoneCypher has joined #ruby
cagomez has joined #ruby
<havenwood>
souljah: Pick which Ruby you're doing this with and make sure it's just that Ruby. Do you really need multiple Rubies installed? That seems confusing if unnecessary.
<havenwood>
souljah: You can use one of the many Ruby version switchers if you really need multiple Rubies.
<souljah>
havenwood: The whole system is backwards, but changing it isn't an option for me,
[Butch] has joined #ruby
<dminuoso>
So seeing as this is #ruby, we can surely discuss why my enzyme+jest seems to automock for no obvious reasons, right havenwood?
lxsameer has quit [Quit: WeeChat 1.5]
* dminuoso
prepares
nobitanobi has quit [Remote host closed the connection]
* herwin
leaves preparing to postgresql
<dminuoso>
JavaScript is like a special kind of Ruby. I promise.
<souljah>
I ran a 'sudo apt-get install --reinstall linux-firmware' on one of our machines and now the reverse-ssh program is throwing ruby errors for the gem of Daemons
esObe_ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
<havenwood>
dminuoso: Nerp!
<baweaver>
dminuoso: *promise* I see what you did there
<havenwood>
souljah: Mind showing us `which -a ruby` so we can get a better picture of where the Rubies are?
<havenwood>
souljah: My guess is only 1.9 is an apt Ruby? Or...
<souljah>
/usr/local/bin/ruby
<souljah>
/usr/bin/ruby
Qchmqs has quit [Ping timeout: 240 seconds]
<havenwood>
souljah: Okay, so a 2.0 in /usr/local/bin and a 1.9 in /usr/bin
mark_66 has quit [Remote host closed the connection]
workmad3 has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
<havenwood>
souljah: Is there a?: command -v ruby19
<havenwood>
command -v gem19
mooser has quit [Remote host closed the connection]
<havenwood>
souljah: If you have the gem19 command available, try: sudo gem19 install daemons
<souljah>
no luck there
<havenwood>
souljah: So it looks like you have one system Ruby, then one Ruby manually compiled to /usr/local/bin...
<havenwood>
souljah: With no way to switch Rubies. :-P
<souljah>
:/
<impermanence>
dminuoso: I was just trying to call gets.chomp. And save that to a variable. I don't see what the problem is? I'm new so I was just following a (well-written) tutorial.
dhollinger has joined #ruby
<souljah>
I don't understand what would have caused this error to occur in the first place,
<havenwood>
souljah: You could change the path order momentarily to put /usr/bin first, or use the full path to the 1.9 gem binary.
<souljah>
this was working just before my last reboot, and no interaction was made with the ruby files,
<souljah>
how do i specify full path?
<havenwood>
souljah: /full/path/to/gem
cdg_ has joined #ruby
rakm has joined #ruby
<havenwood>
souljah: which -a gem
<allisio>
impermanence: How do you, as a newbie, know what would constitute "well-written" in this context?
<havenwood>
souljah: it's probably the second one on that list of two ^
besquared has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
<havenwood>
impermanence: Use: STDOUT.gets
<matthewd>
allisio: "well-written" and "accurate" mean different things
<souljah>
havenwood: 'which -a gem' returns /usr/bin/gem
<allisio>
I disagree.
<havenwood>
impermanence: (That's the takeaway from what dminuoso was saying above.)
<dminuoso>
havenwood: STDOUT.gets ?
<havenwood>
dminuoso: lol
<dminuoso>
Say what?
<havenwood>
STDIN!!
<impermanence>
havenwood: k.
<allisio>
Or, well, I don't think an inaccurate piece of writing should ever be considered "well-written".
<dminuoso>
>D
Snickers has joined #ruby
<havenwood>
dminuoso: I haven't had my coffee.... ;-P
<havenwood>
hahaha
<dminuoso>
havenwood: Heh.
<havenwood>
impermanence: STDIN.gets
cdg has quit [Ping timeout: 240 seconds]
<allisio>
havenwood: I hadn't looked at the Gist yet and you got me excited to see what sort of shenanigans would've caused you to suggest `STDOUT.gets`. :P
<impermanence>
fair.
<havenwood>
allisio: rofl
<impermanence>
yep.
<havenwood>
allisio: STDOUT = STDIN; STDOUT.gets
<impermanence>
allisio: look at the gist, please. I'm confused because my experience with other scripting languages leads me to think: Well...based on my previous ruby practice...it seems like this should work.
Karunamon has quit [Remote host closed the connection]
<matthewd>
havenwood: Given the assignments to ARGV, that's not so far off :/
cagomez has quit []
<allisio>
havenwood: `STDIN.puts` is (very) occasionally useful, so I thought there might be some corollary I'd not yet chanced upon.
<havenwood>
"or from standard input if no files are present on the command line"
juggler has joined #ruby
<impermanence>
havenwood: I will.
<allisio>
impermanence: Why on earth are you assigning to ARGV?
<allisio>
In which scripting language are you used to doing that?
<apeiros>
havenwood: $stdin/$stdout should be preferred over STDIN/STDOUT
<allisio>
But only if you don't know how to silently reassign constants.
<apeiros>
(didn't read the full backlog)
<dminuoso>
apeiros: And 1 should be preferred over $$/$$
<dminuoso>
While we are at best practices.
Puffball has quit [Quit: No Ping reply in 210 seconds.]
<allisio>
Nonsense.
<impermanence>
allisio: I was just testing out different "stuff" is all.
<baweaver>
dminuoso: you were never here for Ox0dea were you?
<matthewd>
impermanence: Then you should know what you did that made it stop working
andikr has quit [Remote host closed the connection]
<dminuoso>
baweaver: I absolutely was.
StoneCypher has quit [Ping timeout: 260 seconds]
<baweaver>
ah, so you know the horrors he unleashed on the world XD
cdg_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
<impermanence>
matthewd: fair enough.
jsrn_ has quit [Read error: Connection reset by peer]
Pumukel has quit [Read error: Connection reset by peer]
<matthewd>
impermanence: To be clear, that doesn't mean "don't ask for help in understanding", but that your question would ideally be more like "I did X, and Y happened; I expected Z, can you help me understand why?"
StoneCyp1er has quit [Ping timeout: 240 seconds]
<adam12>
allisio: Any reasoning on preferring $stdin over STDIN?
<allisio>
apeiros: ^
<havenwood>
adam12: reassignment
<adam12>
allisio: Woops :)
StoneCypher has joined #ruby
<apeiros>
adam12: Kernel uses the $ vars
<matthewd>
(and less "this script isn't doing what it should. It would work in other languages. Why is ruby being wrong?")
<apeiros>
also reassigning constants gives warnings (can be done without, though)
<adam12>
Is reassigning one of the std fd's common?
<adam12>
I'm not sure I've ever done it.
kassav_ has quit [Quit: kassav_]
<apeiros>
it's reasonably common
<impermanence>
matthewd: No, I understood what you meant. I've been using gets.chomp to get input for a couple of different exercises now. So...I'm baffled as to why the code in the gist doesn't work. havenwood, as did dminuoso sent me the doc on gets so I'm going to read that and I think that will answer my question. I'd read it now, but I'm "working".
<havenwood>
adam12: the pattern is `$stdin = Whatever` then later `$stdin = STDIN` to set it back
<apeiros>
consider daemons which want to log all which accidentally goes to stdout/stderr
Puffball has joined #ruby
<herwin>
adam12: other languages often require reopen or dup2 to change it
<apeiros>
there's a point to be made that this should happen externally, though
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<herwin>
it's common, just more work
<allisio>
impermanence: Kernel#gets will try to read from a file provided on the command line before looking for input on the standard input stream.
<allisio>
Your first call is working because there are no command-line arguments, so it jumps right to reading stdin.
<allisio>
Then you go and fuck with its head by modifying ARGV.
<apeiros>
yupp, Kernel#gets is ARGF.gets
<apeiros>
that has caused quite some confusion
<matthewd>
For the record, TIL ^
<matthewd>
I guess just because I'd always write the more explicit one automatically
<apeiros>
it can be convenient, but I still think Kernel#gets should be $stdin.gets instead of ARGF.gets
StoneCypher has quit [Ping timeout: 240 seconds]
Guest96 has quit [Remote host closed the connection]
<matthewd>
Yeah, ARGF is awesome when it's what you need, but seems rather open to surprise to have it sneak in unbidden
__Yiota has joined #ruby
Guest96 has joined #ruby
mooser has joined #ruby
solocshaw has joined #ruby
rkfmqf has joined #ruby
DarthGandalf has quit [Ping timeout: 240 seconds]
StoneCypher has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 245 seconds]
<havenwood>
apeiros: agreed, the fancy is more than offset by the confusion
hogetaro has quit [Quit: Leaving...]
mooser has quit [Remote host closed the connection]
amclain has joined #ruby
outreachdan has joined #ruby
hogetaro has joined #ruby
__Yiota has joined #ruby
nitric has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 252 seconds]
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
nobitanobi has joined #ruby
safetypin has joined #ruby
blackwind_123 has joined #ruby
nankyokusei has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkfmqf has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
manjaro-kde5 has joined #ruby
__Yiota has joined #ruby
<allisio>
"Mr. Matsumoto, tear down this Wall."
nankyokusei has quit [Ping timeout: 245 seconds]
hutch34 has joined #ruby
<allisio>
"The Perls are lovely, dark and deep, but I have promises to keep, and miles to go before Ruby 3."
dionysus69 has joined #ruby
pavwgi has joined #ruby
esObe_ has joined #ruby
mim1k has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
lagweezle_away is now known as lagweezle
Suslov has quit [Quit: Leaving...]
bkxd has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
elsevero has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
outreachdan has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
_djbkd has joined #ruby
jonjitsu has quit [Remote host closed the connection]
_djbkd has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 240 seconds]
jonjitsu has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
BTRE has quit [Read error: Connection reset by peer]
outreachdan has quit [Read error: Connection reset by peer]
outreachdan has joined #ruby
eclecticjohny has joined #ruby
hahuang61 has quit [Quit: WeeChat 1.7]
hahuang65 has joined #ruby
jaruga has quit [Quit: jaruga]
bonhoeffer_ has joined #ruby
govg has quit [Quit: leaving]
workmad3 has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
ketan has quit [Remote host closed the connection]
BTRE has joined #ruby
ketan has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
Xiti has joined #ruby
jdbrowne has quit [Ping timeout: 252 seconds]
elsevero has quit [Quit: elsevero]
rgtk has joined #ruby
ketan has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
govg has joined #ruby
bigtawm has quit [Quit: Page closed]
lagweezle is now known as lagweezle_away
TomyLobo has joined #ruby
SeepingN has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Ishido has joined #ruby
antgel has joined #ruby
Ishido has quit [Client Quit]
Ishido has joined #ruby
ben___ has joined #ruby
zquad has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zquad>
Can someone help me with this ruby bash script? https://pastebin.com/BwsHTr2g I'm trying to get the variable `org` in that ruby string at the end of line 4
<tentacle>
How does one control the lookup for inheritance? If I have a module with a "Base" class, then within that module, another module with a Base class, anything inheriting from that nested Base class (class Foo < Base) is trying to inherit from the top level Base class. Is there a way to do this without specifying the full nested Base class path?
<tentacle>
It only seemed to become a problem once I switched to 2.3.3
hutch34 has joined #ruby
joelwallis has joined #ruby
<matthewd>
tentacle: Are you using Rails autoloading, perchance?
<tentacle>
matthewd: this is being primarily used within Rails, yes
<tentacle>
matthewd: thanks, just odd that it started doing this once I switched to 2.3.3
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
war_pigs has joined #ruby
mattp_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
<tentacle>
quite possibly a fluke, thanks
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
<matthewd>
Yeah, it comes down to whether Base is first referenced inside A::B (in which case it'll work), or inside A (in which case it won't) -- so it could be that you're accessing things in a different-than-usual order while doing post-ruby-update testing, or.. etc.
tolerablyjake has joined #ruby
Bock has quit [Remote host closed the connection]
jamesaxl has joined #ruby
<tentacle>
matthewd: that looks to be the case :)
<tentacle>
matthewd: thanks!
antgel has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 255 seconds]
aryaching has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
Suslov has quit [Quit: Leaving...]
jamesaxl has joined #ruby
cagomez has quit [Ping timeout: 252 seconds]
psychicist__ has joined #ruby
<atmosx>
it's the "create" method... "Call virDomainCreate to start an already defined domain." ...
war_pigs has quit [Quit: later... computer is sleeping]
username1 has quit [Ping timeout: 252 seconds]
<baweaver>
dminuoso *grumbles about en passant rules*
jamesaxl has quit [Read error: Connection reset by peer]
aspiers has quit [Quit: WeeChat 1.3]
<baweaver>
Unless the job is for a board game company though, making a chess app is reaching
<baweaver>
make something domain specific
* baweaver
dislikes interview questions that aren't immediately relevant to the position
aspiers has joined #ruby
Arpanet69 has joined #ruby
DARPA has quit [Ping timeout: 252 seconds]
souljah has quit [Quit: Lost terminal]
war_pigs has joined #ruby
DARPA has joined #ruby
skweek has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mooser has quit [Remote host closed the connection]
<atmosx>
baweaver: Apparently interviewing is a never ending hot topic
<dminuoso>
baweaver: Oh man. I remember a chess tournament once, I actually managed to turn it around with an (to me) unexpected en-passant possibility. When I took that pawn, he stared at me and started smiling because he thought I did something dumb and was forced to touch move..
<dminuoso>
It was the first time he had even heard about en passant, suffice it to say he was pretty mad after that round..
Arpanet69 has quit [Ping timeout: 240 seconds]
pupsicle has joined #ruby
sheperson has quit [Ping timeout: 255 seconds]
grh has quit [Ping timeout: 260 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ben_____ has joined #ruby
outreachdan has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Arpanet69 has joined #ruby
mooser has joined #ruby
cagomez has joined #ruby
nobitanobi has joined #ruby
ben___ has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
DARPA has quit [Ping timeout: 240 seconds]
DARPA has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
<allisio>
I like to get a pawn across and exclaim "King me!".
nobitanobi has quit [Ping timeout: 245 seconds]
cagomez has quit [Ping timeout: 255 seconds]
<lagweezle>
Well, possibly. What if you hate chess and never learned anything of depth about the game?
Arpanet69 has joined #ruby
<StoneCypher>
baweaver: it's not terribly uncommon to ask something too large to see how someone attacks planning and initial implementation
<cseder>
I love chess
<cseder>
i play on chess24 with the same nick as here. Challenge me?
DARPA has quit [Ping timeout: 252 seconds]
<lagweezle>
I know how the pieces move, and that's about it. I don't know how castling works, but I know it's a thing...
cschneid_ has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Quit: WeeChat 1.7]
Alina-malina has joined #ruby
cdg has joined #ruby
bz has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<cseder>
it's a thing, for sure. So is En Passant!
<matthewd>
lagweezle: Right, hence "* given documentation of the rules/mechanics of chess"
war_pigs has joined #ruby
username1 has joined #ruby
jamesaxl has joined #ruby
bkxd has joined #ruby
ozcanesen has joined #ruby
<lagweezle>
Ahh!
<lagweezle>
cseder: So uh, what is En Passant?
<nofxxx>
lagweezle, if there's no pieces between king and tower, and you never moved each... you can swap em
<lagweezle>
Or is the exclamation mark part of the name?
<nofxxx>
chess was 'europerized' for audience, I want to print an chinese one... bishop -> archery, queen -> master of war
<nofxxx>
makes more sense also
<StoneCypher>
chess is from india, not china
<nofxxx>
StoneCypher, along with the grain of rice per square thing? always taught it was chinese...thanks
<StoneCypher>
the grain of rice per square thing is just an apocryphal story
<baweaver>
It's fine to ask architectural questions
<baweaver>
but if you're an AWS shop hosting game servers you should probably ask about that
cagomez has joined #ruby
* lagweezle
misses playing mah jjong. *Not* the solitaire BS.
DARPA has joined #ruby
gusrub has quit [Remote host closed the connection]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooser has quit [Remote host closed the connection]
<cseder>
I have a beautiful Majjong game on my MacBook
outreachdan has joined #ruby
<lagweezle>
Do tell? Although the feel of the tiles and building the walls is ... oddly enjoyable.
Arpanet69 has quit [Ping timeout: 260 seconds]
Puffball has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<cseder>
Its called Mahjong Elements HD and is quite enjoyable
timredd has joined #ruby
<lagweezle>
Oooh. That's the 'solitaire' game that has the same name of the actual game. :/
joelwallis has quit []
nankyokusei has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
timredd has quit [Client Quit]
jamesaxl has joined #ruby
yurikoles has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
enterprisey has quit [Quit: see 'ya]
b3l914n_ has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<cseder>
oh...
<cseder>
:/
<cseder>
What's the real Mahjong game like?
<lagweezle>
I've never played Rummy, but I've had folks compare it to that...
_djbkd has quit [Remote host closed the connection]
<lagweezle>
Four players, proceeds from one player to the next. Draw tile, try to make 3 of a kind, 4 of a kind, or a run of three (or some more 'interesting' hands), discard a tile. Next person's turn.
<lagweezle>
Although the rules are ... a bit more complex than that.
war_pigs has quit [Quit: later... computer is sleeping]
bkxd has quit [Ping timeout: 260 seconds]
<lagweezle>
Oh ... and to make it "more fun" there are actually ... I'll say three different mah jjong rules. Chinese, Japanese, and the horrible thing that is American style Mah Jjong.
synthroid has quit []
<lagweezle>
Trying to find a video but ... so far they are all pretty awful.
gdonald has quit [Read error: Connection reset by peer]
<lagweezle>
Actually, seems like a good explanation of the basics. The video goes a bit slow for my preferences, but I'm familiar with the game so ... it's probably about right for an introduction...
gdonald has joined #ruby
mjuszczak has quit []
Puffball has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
jamesaxl has joined #ruby
<StoneCypher>
cseder: it's a bidding and betting game based around making sets, kind of rummy-ish
AlexRussia has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
<cseder>
Aha, ok. Looks enjoyable!
<StoneCypher>
it's one of those games where the quality of the opponents matters a lot (in the way that it does for bridge)
<cseder>
looks like Rummy!
<cseder>
Rummy on acid! ;)
tercenya has quit [Read error: Connection reset by peer]
tercenya has joined #ruby
<cseder>
Never seen the real Mahjong as a board game anywhere where I come from, but probably available via Amazon or something
<StoneCypher>
warns are the traditional way to prevent this
Verity has joined #ruby
<Verity>
what is ruby a poor choice for
<matthewd>
Verity: Talking to serial ports ;)
<lagweezle>
Oh, so, anyways. If you end up actually wanting to get a mah jongg set, https://www.ymimports.com/pages/mahjong-buying-tips will likely prove helpful, if minimal. Alternatively, http://a.co/3k2Lmsp provides a huge amount of information, quite in depth. I *can* recommend that book to learn about the game.
<ytti>
from my POV, complex projects
<ytti>
long lived processes
DarthGandalf has joined #ruby
<lagweezle>
That's what I ought to have posted instead of just a link for the message. Anyways, back to Ruby things.
<ytti>
(like other interpreted, dynamically typed languages)
<havenwood>
Verity: It's not a good esoteric language. Way too straightforward.
cam27 has joined #ruby
marcdel has joined #ruby
<cseder>
Verity what kind of question is that? You're kidding / trolling right?
<Verity>
no, I'm just comparing and contrasting
<baweaver>
They've been around before.
<StoneCypher>
Verity: high performance software
cagomez has joined #ruby
<cseder>
Ruby is one of the best languages to combine with C
<StoneCypher>
Verity: you wouldn't want to write an operating system, database, cutting edge FPS, etc in ruby
<StoneCypher>
cseder: ...
<cseder>
what? it is!
<ytti>
basically interpreted, dynamically typed languages are great for tackling smaller projects faster
<Radar>
ytti: who are you even talking to?
<ytti>
but dividents quickly become taxes
<ytti>
Radar, replying to verity's question
<Radar>
ytti: perhaps include Verity's name in your replies?
<Verity>
I knew he meant me due to the context :)
<Verity>
I appreciate the replies
marcdel has quit [Ping timeout: 240 seconds]
<cseder>
Verity You can use the RubyInline or FFI gems to include C code directly into your Ruby code.
cagomez has quit [Ping timeout: 245 seconds]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
b3l914n_ has quit [Ping timeout: 255 seconds]
cisco has joined #ruby
<ytti>
cseder, how is it better than say rust or nim for using C libraries?
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
<Verity>
it certainly reads better to me at first glance
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
<cseder>
ytti Verity I've been programming since 1993 in various programming languages and when it comes to Ruby I'm just a beginner, but the more I learn the more I enjoy it. It's the most pleasant programming language I've ever used and now I'm porting as much code as possible over to Ruby
<volty>
what's best is getting the things done, and possibly with pleasure (of the beloved language)
cgibsonmm has joined #ruby
<Verity>
cseder, I'm having a similar experience except I'm much newer to coding
<cseder>
It sounds cliche but Ruby really is a FUN programming experience once you get to understand and use blocks in a correct way
<volty>
as for the "what's poor for" - like questions, they should be sent back, and kindly asked to ask an advice in the style "I would like to do this, this, and this. Is Ruby nice for that? "
<cseder>
blocks is sent from heaven
war_pigs has joined #ruby
<cseder>
blocks are sent from heaven?
GodFather has joined #ruby
<lagweezle>
Are.
<elomatreb>
Were?
enterprisey has quit [Read error: Connection reset by peer]
<cseder>
It was the course I used to really understand how to use blocks in a creative way
boto has left #ruby [#ruby]
<Verity>
this is my feeling
<Verity>
ruby is just enjoyable to code in
<volty>
but if you are creative yourself you can do it alone
<cseder>
Highly recommended videos even if you "think" you understand blocks and iterators
<ytti>
memory debugging isn't fun in ruby :/
<ytti>
at least not in mri, jvm maybe much better
cschneid_ has quit [Remote host closed the connection]
<cseder>
ytti not often you need it though...
<ytti>
but compared to how easy it is in say golang
gusrub has quit [Remote host closed the connection]
<ytti>
(i don't like golang otherwise, just great ecosystem/tooling)
<volty>
memory debugging what for ?
<cseder>
Doesn't RubyMine from Jetbrains come with a good debugging interface?
<ytti>
volty, when the software uses more memory than you expect it to use
<Verity>
I purchased "the ruby programming language" I'm hoping that will help me go from beginner to intermediate now
<Verity>
rubymine I can get free but I don't want to lock myself into software that wont be free when I graduate so I've been using vscode
gusrub has joined #ruby
<Verity>
it does look nice, though
<Verity>
very feature rich, if you need it
<Verity>
my serial program uses 99-100% cpu when sending, is that normal
DARPA has joined #ruby
<cseder>
I've never heard of memory debugging in Ruby to be honest. Do you mean like just debugging to see what goes where in memory?
<StoneCypher>
no
<volty>
ytti: then you should better work on your expectations ?
<ytti>
cseder, i mean trying to figure out why the software uses more memory than you expect it to use
<matthewd>
Verity: It shouldn't be.. but as it's a fairly obscure thing to do, it's possible it's the library's fault rather than your code
cagomez has joined #ruby
<ytti>
volty, it's easy to write bad code which leaks memory
<cseder>
ytti maybe it's the IDE your using and not the Ruby code you're running
<matthewd>
Verity: Gist your current state?
<ytti>
cseder, this isn't novel situation
<volty>
ytti: for the high level langs the introspection should be enough
pwnd_nsfw has joined #ruby
<ytti>
cseder, it's not odd for ruby or python developer to need to figure out why program uses more memory than it should
<StoneCypher>
cseder: dude he means like memory leaks and etc.
pwnd_nsfw` has quit [Ping timeout: 255 seconds]
<StoneCypher>
cseder: high level languages don't magically get out of programmer errors relating to memory use
<Verity>
matthewd, I don't have laptop with me at the moment but I'll post it when I get home later, I noticed the fan spinning up when sending a large file and I checked with htop and noticed 99% usage
<Verity>
this was on a c2d laptop
<Verity>
sending and receiving using two usb to serial adapters
<Verity>
I connected rx to tx with some jumpers
<ytti>
in some senses it's easier to leak in high level OO languages
<ytti>
if you're not careful where your state lives
<ytti>
you may keep putting object references here and there
<ytti>
and ultimately have no clear idea what is your state
Arpanet69 has quit [Ping timeout: 240 seconds]
<Verity>
so I shouldnt just assume the gc takes care of everything?
<matthewd>
Is it really leaking if the application still knows how it's being used & can access it?
<ytti>
gc will only collect if object isn't referenced
<matthewd>
That sounds more like memory "use" than memory "leaks"
<cseder>
ytti StoneCypher well aware of that, but I call that just debugging or memory optimisation, not memory debugging
<ytti>
but it's easy to have complicated tangle of instances refering to each other
<volty>
no way if your design is modular . dispose as soon as you don't need
<ytti>
yeah, i would opt out of doing long-lived python/ruby processes
<cseder>
best way to avoid it is to learn how to use blocks correctly! :) The videos I posted links to is a great start
<ytti>
then you mostly don't have to care about the problem
<ytti>
and this is how some large ruby shops have fixed their problems
<ytti>
just kill workers when they get too large
cagomez has quit [Ping timeout: 240 seconds]
<Verity>
that doesnt sound like the best fix
<ytti>
and not care about the programming mistakes causing them
<Verity>
but what do I know
<ytti>
best may be enemy of done
<Verity>
cseder, I just purchased "the ruby programming language, covers 1.8 and 1.9
<Verity>
will this teach me blocks well? or will I still need the video
<Verity>
is this an advanced topic to study later or try to master it early
<volty>
Verity: go with the book, more than enough
sumobob has quit [Quit: WeeChat 1.7]
<allisio>
Blocks are essentially what make Ruby Ruby.
<cseder>
Verity is it the PickAxe book?
<volty>
(for now, and forever - - that all the rest will depend on yourself)
<cseder>
allisio true
<Verity>
its a book by the ruby author, I think
<Verity>
ykihiro matsumoto
<allisio>
No, not quite.
<volty>
I had it from pragmatic programmers
chouhoulis has quit [Ping timeout: 240 seconds]
<allisio>
He "divinely inspired" it, in a sense.
<cseder>
Verity, ok, not the Pragmatic Programmer PickAxe book?
cgibsonmm has quit [Remote host closed the connection]
<volty>
and they are already beaten by the calculus made by the compiler
<allisio>
Usually.
bkxd has joined #ruby
<volty>
yes, valid for the best compilers
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sumobob has joined #ruby
hutch34 has joined #ruby
cgibsonmm has quit [Quit: Leaving]
<volty>
I am giving a look at scala. Anybody here with some experience with scala?
<cseder>
I've programmed in both C and C++ as a living for many years and sometimes I miss the relatively low level way of programming, but now I'm going all-in for Ruby and Rails
<allisio>
volty: baweaver seems to be the resident Scalar here.
solocshaw has joined #ruby
<volty>
Their channel is full but mute. They must be lost in functional
<allisio>
I assume that's not the appropriate demonym, though.
DARPA has quit [Ping timeout: 260 seconds]
cam27 has quit [Quit: cam27]
enterprisey has joined #ruby
<volty>
Scaled ?
<allisio>
To mean "a user of Scala"? Surely not.
zquad has quit [Remote host closed the connection]
<volty>
Me, as a beginner, just scared
DTZUZU has joined #ruby
<allisio>
Just dive in.
<cseder>
The last developer job I had was using C# and .Net, which is also getting pretty good, but as said, its Ruby all the way now, I hope! I quit my job so I could work as a freelancer and the market for Rails is pretty good
<allisio>
Alternatively, take the time to realize that Ruby is surprisingly functional.
<cseder>
allisio true! It is.
<lupine>
heh, just as everyone's bailing
<volty>
I know enough of Ruby
hutch34 has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 252 seconds]
<cseder>
I learned Lisp many years ago :)
<cseder>
I think I used it once for understanding how a AutoCAD plugin was working
<volty>
I gave it a look and escaped. I hate Python because of formatting (among others). I used to like Haskel (as a beginner), but then realized that it's utterly useless
<volty>
scala seems amusing and promising
<cseder>
Haskell isn't useless, but it has a limited scope compared to Ruby
AndBobsYourUncle has joined #ruby
<volty>
imho haskell is totally useless. there's a video on yt where his creator states the same
<Radar>
?popcorn
<ruby[bot]>
It's popcorn time! 🍿🍿🍿
<cseder>
volty that is meant as humor
<Verity>
lol
<volty>
not at all! Watch the video
<cseder>
but not everyone understands haskell humor
allisio has quit [Quit: WeeChat 1.7]
<Radar>
link or ban
<volty>
google yourself
<Verity>
I did, couldnt find it
<Verity>
where is link
<Radar>
volty: You think I'm not serious?
cam27 has joined #ruby
allisio has joined #ruby
<volty>
Radar: what do you mean by "not serious"?
<cseder>
volty you think you're serious, but you are wrong
<StoneCypher>
Radar: i don't understand why that just happened
<Radar>
Take this to #ruby-offtopic
<Radar>
[09:23:50] <Radar>link or ban
<StoneCypher>
Radar: not criticizing, just don't want to make the same mistake myself
<Radar>
StoneCypher: I asked for a link, I didn't get one.
tvw has quit []
<StoneCypher>
oh.
<cseder>
I think he is referring to a joke made by Haskell's creator in a talk once
<Radar>
If you're going to be making grandiose statements like that then I would expect you to back it up with evidence.
volty has joined #ruby
<sumobob>
have you all checked out a cool micro framework called hanami? I spent the weekend playing with it, i was wondering the ruby communits thoughts, compared to something like roda
<Radar>
Link to the damn video and EVEN BETTER link to the timestamp of where he said it.
<volty>
slowly, just for the pleasure
<cseder>
Do you think it's a good idea to learn Sinatra before jumping aboard Rails? Seems to be a debate
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
<StoneCypher>
cseder: doesn't make a big difference either way. might as well, just so that you can speak to preferences from experience.
<cseder>
It's both based on Rack, but is it a good path?
<allisio>
SPJ was, of course, being humorously self-deprecating.
<havenwood>
sumobob: I think Roda is to Sinatra as Hanami is to Rails.
JeanCarloMachado has joined #ruby
<matthewd>
sumobob: Isn't Hanami's claim that it's *not* a microframework, but "Rails done right"?
<Radar>
allisio: I was very not bent out of shape. I was having fun and it was misconstrued.
<allisio>
Misconstrual is a door you have to open.
<cseder>
Hanami?
<Radar>
cseder: Sinatra is a much more light-weight framework compared to Rails. It's a pretty good starting place.
<cseder>
That's a restaurant where I come from
<volty>
yes, that is the video. As for the rest, go and try doing something in Haskell (I mean beyond folding and mapping) . A gui app, among other examples
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
<ytti>
allisio, quite often when i try to do something very functional in ruby, like recursing instead of looping, i run out of stack depth
<cseder>
Radar ok. I'll check that out first. I have no web development background, mostly systems programming and desktop applications, so web development is new to me
<allisio>
ytti: Does a demonstrative example immediately spring to mind?
cagomez has quit [Remote host closed the connection]
<allisio>
We'll ignore that Ruby can be made to do TCO for the sake of your present argument.
cagomez has joined #ruby
<ytti>
allisio, def foo; foo; end; foo?
_djbkd has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
lagweezle is now known as lagweezle_away
<allisio>
ytti: You do things like that for... what?
<allisio>
At least, that doesn't look like it answers to the description of "very functional" to me.
<ytti>
allisio, it can be low as 2k in my experience, which is easy to hit in practical sitautions
<cseder>
Hanami looks interesting
jusa has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
<ytti>
havenwood, right, that seems like it would make ruby more functional
chichou has joined #ruby
<allisio>
ytti: Is it?
<Radar>
cseder: It is very interesting :) It's an entirely new take on how to do web applications in Ruby.
<cseder>
And the webpage is a beauty
<Radar>
cseder: I think it's also more lightweight than Rails as well.
<ytti>
but OO and functinal are not good marriage anyhow, in functional you keep variables immutable, functions don't have side-effects. In OO it's idiomatic to quite freely modify objects
mim1k has joined #ruby
<cseder>
Radar is it also built on Rack?
<allisio>
Mutation is not inherently part of object-orientation.
<Radar>
cseder: yup
<Verity>
maybe I should check out hanami instead of sinatra
<Verity>
for my first web framework w/ ruby
<Radar>
cseder: Rack is the common API that all Ruby frameworks use.
war_pigs has quit [Quit: later... computer is sleeping]
<Radar>
Just skimming through Hanami's Getting Started guide and it looks great :D
<cseder>
Aha... I'm such a noob
<havenwood>
Verity: More like check out Roda instead of Sinatra. Check out Hanami instead of Rails. ;-P
<Radar>
cseder: it's ok. We were all noobs once.
<havenwood>
cseder: Try writing a simple Rack app and running it with: rackup
<cseder>
So the new Sinatra -> Rails could become Roda -> Hanami
war_pigs has joined #ruby
<volty>
no, that is only a matter of polarization oo vs functional. what oo needs isn't the REAL object of a REAL class, but just the syntactic behaviour of the oo
impermanence has joined #ruby
<havenwood>
cseder: It's a worthy exercise. You'll quickly see with pure Rack apps why people go on and use a Rack adapter like Roda, Sinatra, Hanami or Rails.
<Radar>
I thought Roda was only a router.
<volty>
what oo programmer needs i meant
jusa has quit [Ping timeout: 245 seconds]
<cseder>
havenwood haha, ok, I'll give it a go
<havenwood>
Radar: Yeah, core Roda is about a thousand lines and is primarily just the addition of a routing tree on top of Rack. Then you compose a framework from Roda's plugins.
<cseder>
I quit my job to learn and specialise in Ruby, RubyMotion and a Web Framework so I can do freelance jobs. I got tired of programming in C# and Visual Studio and hacking on old Borland C++ code
mim1k has quit [Ping timeout: 260 seconds]
<havenwood>
But the plugins do combine to form a real framework. It's quite nice.
<allisio>
You're quite nice.
<havenwood>
Why thank you. ;-)
war_pigs has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<ytti>
allisio, yeah i'd say it's pretty common to deal say with lists with over 2k items
<cseder>
So, wish me luck in my new career
<ytti>
allisio, which you'd deal with recursive function in purely functinal langauge, but in ruby you probably shouldn't, unless you know the size is bounded to low number
<StoneCypher>
ytti: are you presuming tail recursion?
<ytti>
allisio, in purely functional language there wouldn't be call stack, so there isn't similar technical bound at all
charliesome has joined #ruby
<ytti>
StoneCypher, yes
cschneid_ has joined #ruby
<StoneCypher>
ytti: tail recursion isn't all that common in functional languages. my gut says 50/50
<matthewd>
Verity: I'd personally recommend starting with Rails -- it's more complicated than other simpler options, but it's also widely documented etc
<StoneCypher>
mostly just in things that descend from lisp, ml, oz, or prolog
<matthewd>
(but I'm not exactly impartial)
<ytti>
StoneCypher, but even without tail recursion, as there isn't call stack, the number is something silly
<ytti>
StoneCypher, something where you'd be more worried about the size of your list probably
<StoneCypher>
things without tail recursion (and with) generally still need a call stack.
<StoneCypher>
even though they're fp.
<StoneCypher>
very, very few languages are stackless.
<StoneCypher>
and they tend to be radically different things, like sql and css
<StoneCypher>
you can still blow the call stack on a language with tail recursion; it's just a lot more difficult
cschneid_ has quit [Ping timeout: 255 seconds]
<ytti>
StoneCypher, i would guess it's magnitude where you worry about the size of what you're iterating
<ytti>
StoneCypher, where as in ruby, you run into the limit in quite trivial numbers
<StoneCypher>
iteration won't do it in any language. iteration is an alternative to recursion
<ytti>
as i'm sure anyone has noticed who tries to write recursive functions instead of loops in ruby
<ytti>
and then just give up and use loops, as intended
aryaching has quit [Ping timeout: 252 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
<volty>
iteration is recursion in bottom-up fashion
<StoneCypher>
... no, it isn't
<StoneCypher>
they can be used to solve the same jobs, but they aren't cases of one another
<ytti>
you keep stack size same
<ytti>
regardles of eleent count in what you're itereating
<ytti>
so it's fundametnally quite different
<ytti>
1. call, 2. return, 3. call, 4. return ...
<ytti>
versus
cam27 has quit [Quit: cam27]
<volty>
you solve the same problem, often keeping :"manual stack:
<volty>
"
<ytti>
1. call 2. call 3. return 4. return
<StoneCypher>
volty: by that logic, css and xslt, or sql and mongo, are forms of one another
<StoneCypher>
volty: or vhs and dvd
swills has joined #ruby
<volty>
ah ah, not at all, it's presentation vs trasformation vs organization vs algorithm
<allisio>
I guess the "smart" there counts as maintaining a "manual stack", but it's not cumbersome.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lord_of_Life has joined #ruby
domgetter has joined #ruby
pwnd_nsfw` has joined #ruby
genpaku has joined #ruby
cagomez has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
<volty>
look, I am a bit fuzy now but I try it in few words --- all those (almost all) functional purists attribute absolute value, without proving the same value. the truth is that we humans often get tired and fuzzy, and need breaks, and need to trace slowly etc etc. With recursions you can get lost. With manual tracing (stack) you can do it in the end.
pwnd_nsfw has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
<volty>
of course you can grasp recursions on single lists and trees, but when it comes to more complex interactions between objects, you easily get lost and frustrated. Otherwise the very intelligent functionals would already have produced something with no-matched values.
<volty>
My motto is "do it as you please, and do not bite me with purism"