<havenwood>
Alec: You could easily make a cinch bot for yourself with a repl.
<havenwood>
Alec: Locally, it's easiest to run ruby directly: ruby -e "puts 'Hello world'"
jrabe has joined #ruby
<havenwood>
Alec: Or the REPL is the most popular way to get feedback.
<havenwood>
?irb
<ruby[bot]>
irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<havenwood>
?pry
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
duderonomy has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
mikecmpbll has quit [Client Quit]
bak1an has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
<Alec>
havenwood: in C++ there's this sexy bot called geordi - each message is totally independent and its own thing - it's REALLY handy
<havenwood>
Alec: I prefer a local REPL.
<havenwood>
Alec: But if you want something like that, it's easy to do yourself in Ruby.
<Alec>
When I come to power I will force you to use it in PM :P
<Alec>
Heh
<havenwood>
I volunteer parttime as a REPL actually.
<Alec>
Not sure what that means
<Alec>
You want me to PM you and send you Ruby expressions?
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Alec>
FWIW I'll even sponsor it if you like....
<Alec>
Or run it myself
<havenwood>
Alec: #!> NameError: undefined local variable or method `myself' for main:Object
<havenwood>
Alec: There's a private API for eval.in. I know folk have requested access but I'm not sure what the outcome is. If you'd like access, please ask the maintainer and if they grant it we can share the bot code.
<havenwood>
Alec: You can make a Ruby sandbox with JRuby like tryruby.org.
<Alec>
Why is it private?
<havenwood>
Alec: Ask charliesome.
<Alec>
I'm gonna
ElFerna has quit [Ping timeout: 244 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
<havenwood>
Alec: If you'd like to make a cinch bot with a personal repl you could do that fairly simply.
<Alec>
It literally just needs to call ruby -e '(your crap here)' and escape it properly, and set up SIGALRM first on the parent or something (I'm new to Ruby specifically so I can't be like "here's the full syntax")
<Alec>
Yeah
banisterfiend has joined #ruby
<Alec>
But I'd much rather either combine forces, or put it on some one of the AWS EC2 instances that I have access (and would be allowed to do this on) and leave it for everyone
<Alec>
Because they've got a bot that's been tested and "battle-hardened" and shows stuff like ?pry and ?irb - of which I don't actually know what they are ;)
<havenwood>
Alec: irb ships with ruby - it's an executable
<havenwood>
Alec: In your terminal, type: irb
<Alec>
You're kind of missing the point...
<havenwood>
Alec: pry is a gem that's not preinstalled, so you'll need to: gem install pry
<Alec>
But I will later ofc.
<havenwood>
Alec: Those are things we wrote.
fot has quit [Quit: WeeChat 2.1]
<Alec>
Oh you're also staff.
<havenwood>
Alec: apeiros wrote, to be more specific (or maybe jhass?)
<Alec>
havenwood: another strong case for bot-msging is most clients when you don't have a window open will show in your active window when they /msg bac
<havenwood>
Alec: I like the idea of a bot that can eval folks' code.
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Alec>
This way I can use Geordi say to test an example I'm about to share.
<havenwood>
That sounds handy.
<Alec>
Then just press up, home and del 4 times to get rid of the /msg
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
heftig has quit [Quit: heftig]
cagomez has joined #ruby
fffco has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
salasrod_ has quit []
<Alec>
headius: I'm going to bed now but a PMable (and that other one) able bot is very good, if it responds to a query in the same way it received it it's ideal (ie channel->channel, msg->msg, OTHER->OTHER where OTHER is /say or something)
<Alec>
I'll even sponsor it
mynameisdebian has quit [Remote host closed the connection]
voice_ftp has quit [Quit: Leaving]
mynameisdebian has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mynameisdebian has quit [Remote host closed the connection]
jhack has joined #ruby
ElFerna has joined #ruby
jhack has quit [Quit: jhack]
jhack has joined #ruby
jhack has quit [Client Quit]
white_lilies has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
eb0t has quit [Ping timeout: 265 seconds]
eblip has quit [Ping timeout: 264 seconds]
sylario has quit [Quit: Connection closed for inactivity]
eb0t has joined #ruby
eblip has joined #ruby
raynold has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
dviola has quit [Quit: WeeChat 2.1]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
salasrod has joined #ruby
MagePsycho has quit [Ping timeout: 240 seconds]
duckpupp- has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
akkiguru_ has joined #ruby
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
JJonah: Otherwise your assumptions would align.
<havenwood>
Alec: An instance.
<Alec>
Is that syntax in Ruby or just HTMl links?
<Alec>
Link me docs please?
<havenwood>
Alec: Oh, it means a method call.
<Alec>
Alternative for dot?
<havenwood>
Alec: It means different things in different context. In the sense I use it above, it's a convention to mean an instance method.
<JJonah>
havenwood: gotcha, makes sense. but now i'm curious why Array needs a special implementation of map?
<havenwood>
Alec: Foo::bar is a class method and Foo#bar is an instance method.
<havenwood>
Alec: You call them like Foo.bar and Foo.new.bar.
<havenwood>
JJonah: It's a memory and performance optimization.
<JJonah>
havenwood: ok tyvm
akkiguru_ has quit [Ping timeout: 260 seconds]
<havenwood>
Alec: It's just a meta convention for talking about code.
<havenwood>
I'd guess it comes from Smalltalk, but unsure.
* Alec
writes down "above my paygrade" for now - thanks.
herbmillerjr has quit [Quit: Konversation terminated!]
<havenwood>
Alec: The # and :: convention for talking about methods is fairly unique. We don't have a bunch of this.
<Alec>
havenwood: what you need is a good reference!
AJA4350 has quit [Quit: AJA4350]
r29v has joined #ruby
<havenwood>
Alec: I'm playing the reference.
ElFerna has quit [Quit: WeeChat 1.9]
akkiguru_ has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
<Alec>
I don't know enough to play you like with the perfect touch you deserve yet. I'm currently at "10 year old given a drumkit" level, which means I should keep quiet else get death glares.
eblip has quit [Ping timeout: 240 seconds]
unreal has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
eblip has joined #ruby
lystra has joined #ruby
salasrod has quit [Remote host closed the connection]
karapetyan has joined #ruby
<lystra>
Hi. I am building tk-0.2.0 for Ruby-2.4.4. I have a version of Tcl/Tk built myself. How can I build tk-0.2.0 against it so the RPATH for the tcltklib.so includes my custom Tcl/Tk?
karapetyan has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
willthechill has joined #ruby
dviola has joined #ruby
Joufflu_Fail has joined #ruby
jnollette has quit [Remote host closed the connection]
iMadper has joined #ruby
jnollette has joined #ruby
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex``` has joined #ruby
jasmith has joined #ruby
pharma_joe has joined #ruby
Puffball has quit [Quit: Puffball]
za1b1tsu has quit [Ping timeout: 240 seconds]
gix has joined #ruby
TinkerT has joined #ruby
darkhanb has joined #ruby
gix- has quit [Ping timeout: 244 seconds]
akaiiro has quit [Ping timeout: 265 seconds]
akaiiro has joined #ruby
gnufied has quit [Ping timeout: 256 seconds]
alex``` has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
kryptoz has quit [Remote host closed the connection]
akaiiro has quit [Ping timeout: 240 seconds]
akaiiro has joined #ruby
donofrio has quit [Remote host closed the connection]
akkiguru_ has quit [Ping timeout: 260 seconds]
akaiiro has quit [Ping timeout: 244 seconds]
akaiiro has joined #ruby
kryptoz has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
Inline has quit [Quit: Leaving]
amelliaa has joined #ruby
akaiiro has quit [Ping timeout: 240 seconds]
akaiiro has joined #ruby
apeiros has joined #ruby
akkiguru_ has joined #ruby
graphene has quit [Remote host closed the connection]
solocshaw has joined #ruby
graphene has joined #ruby
akkiguru_ has quit [Ping timeout: 260 seconds]
solocshaw has quit [Quit: solocshaw]
donofrio has joined #ruby
<Alec>
havenwood: don't suppose you're around?
<havenwood>
Alec: Bots don't sleep.
<Alec>
Well for me it's the coffee enemas
<Alec>
Can't feel burning on the inside!
<Alec>
havenwood: I had two quick questions, can you make ruby[bot] join channels? Most bots have a command
<Alec>
eg #filingcabinets
<Alec>
and havenwood what are the rules for "implicit method" and scopes RWT blocks, def b(): ... ; def f() ... ; f { a; b; } if f uses that instance thing (to give the block a self) the suppose the self.a method makes sense
<Alec>
Is there a way to get it so b is resolved to the def b prior?
<Alec>
It would be really nice to experiment in private
<Alec>
So please
<havenwood>
Alec: I'd have to look at ruby[bot]'s code - i don't recall offhand
<Alec>
havenwood: .... let's be honest, #ruby-community is dead - can I use that?
dellavg has quit [Ping timeout: 264 seconds]
<havenwood>
Alec: I'd say use #ruby-community until someone complains. ;-)
<Alec>
Thanks havenwood
<apeiros>
#ruby-community exists for the expressed purpose of working on the ruby-community.com page and rubybot. if no work is done on those, of course nobody will be talking
amelliaa has quit [Quit: -]
<Alec>
Speaking of which (I found nothing in the community repo, just webpages which gee I could already get!!!!!) where is the bot's source
<apeiros>
Alec: and while rubybot does indeed have a command to join channels, it's not a public command.
<Alec>
That's good, it'd be pretty shit if it had to be restarted and read a config file
<Alec>
It has a section about operator commands (which are also not public commands)
<apeiros>
the bots source is still private and parts of it will remain private. parts I wanted to publish but didn't get around (and doesn't have a high priority either)
<Alec>
Nope the first section is public commands
* Alec
RTFM - he has right on his side ;)
<Alec>
This sounds like bad documentation
<havenwood>
Alec: No, it's just that things that aren't meant to be documented aren't.
<Alec>
I digress, apeiros as you seemed to have worked on it. I'd much rather combine forced than write my own from scratch there are only a few things missing anyway
cadillac_ has joined #ruby
ur5us has quit [Remote host closed the connection]
<Alec>
Oh so they're not actually documented at all?
ur5us has joined #ruby
<apeiros>
Alec: I'm currently preparing to leave for work (0700 here), so I'll not be able to write for a while. feel free to contact me later.
<havenwood>
Alec: The public commands are documented publicly. The private commands are documented privately.
<Alec>
!ban havenwood #ruby 1m "Test" | "I am a member of the public"
<baweaver>
That one ya have to have a shiny ruby/staff tag for
<baweaver>
like this
<Alec>
public commands my ass.
kapil___ has quit [Quit: Connection closed for inactivity]
<Alec>
"the public need to know that operators can ban" - or in this case kick - but in a total pussy way of hiding behind a bot they messaged :P
<apeiros>
Alec: watch your language.
<Alec>
Anyway I'll contact apeiros when I get a chance, if you could stick it in ##filingcabinets though that'd be great.
ur5us has quit [Ping timeout: 240 seconds]
<Alec>
If anyone remembers the command - if not - tomorrow's problem.
<Alec>
Thanks for letting me get away with this far off topic BTW - I assure you there are merits to short snippets and a bot via /say and /msg - I'm going to get some breakfast now and stop reading about Ruby
<Alec>
havenwood: great meeting you. Thanks for your help earlier.
DTZUZU2 is now known as DTZUZU
ogres has quit [Quit: Connection closed for inactivity]
<Alec>
I am sure Ruby has one so I wont as "does it have" - does it have a "first party" - like either officially endorsed or official: profiler, unit test system and debugger?
<Alec>
code coverage
<Alec>
I'm sure it does BTW - as I said but I mean first party or a dominant leader
<havenwood>
Alec: Minitest ships with Ruby on the unit test front.
<havenwood>
relocating
akkiguru_ has joined #ruby
anisha has joined #ruby
faces has quit [Read error: Connection reset by peer]
Joufflu_WTF has joined #ruby
faces has joined #ruby
Joufflu_Fail has quit [Ping timeout: 240 seconds]
<Alec>
havenwood: relocating?
<havenwood>
Alec: You caught me, I'm corporeal!
<Alec>
WTF
<Alec>
So anyway
<Alec>
<Alec> Is there a way to get it so b is resolved to the def b prior?
<Alec>
<Alec> and havenwood what are the rules for "implicit method" and scopes RWT blocks, def b(): ... ; def f() ... ; f { a; b; } if f uses that instance thing (to give the block a self) the suppose the self.a method makes sense
<havenwood>
Alec: I don't understand the question.
<havenwood>
#b and #f, okay. f calls a and b in a block. what's "that instance thing"?
<havenwood>
Alec: Rephrase the question?
<Alec>
havenwood: "that instance thing" is a thing which can call a block and gives it a self.
<Alec>
thing.instance_thing(block) means that "thing" = "the self" of block
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r29v has quit [Quit: r29v]
<Alec>
That # has come up again
<Alec>
havenwood: see the b; in the block will implicitly become self.b - not "main.b" or whatever (the def b just before it)
Alina-malina has joined #ruby
kapil___ has joined #ruby
faraco has joined #ruby
faraco has quit [Client Quit]
naftilos76 has joined #ruby
<naftilos76>
Hi, i want to redirect warning and error messages from a shell command in my ruby script into a variable. For example, i am compiling some cpp files with 'g++ main.cpp -c' and i want the warning messages to be saved in a variable.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
manakanapa has quit [Ping timeout: 256 seconds]
amar has quit [Remote host closed the connection]
bonhoeffer__ has joined #ruby
bonhoeffer__ is now known as bonhoeffer
mozzarella has joined #ruby
alem0lars has joined #ruby
user3 has joined #ruby
<user3>
Is it a good idea to put rescue StandardError => e; puts e; end in every method? My goal is to stop the program from crashing when hitting an exception, but continue on while complaining loudly about the error (but silently to the user).
<user3>
I am also not certain what errors may arise but would just like to ensure continuous running, even if errors cause the program to behave slightly unexpectedly.
conta has quit [Quit: conta]
manakanapa has joined #ruby
user___ has joined #ruby
megamos has joined #ruby
<bonhoeffer>
what happened to the rails room — it has 1/4 the old members and the 200 folks that are there aren’t active?
user3 has quit [Ping timeout: 240 seconds]
user3 has joined #ruby
megamos has quit [Quit: Leaving]
user___ has quit [Ping timeout: 260 seconds]
user____ has joined #ruby
alfiemax has quit [Remote host closed the connection]
akaiiro has quit [Ping timeout: 240 seconds]
akaiiro has joined #ruby
user3 has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
Burgestrand has joined #ruby
naftilos76 has quit [Quit: Leaving]
user3 has joined #ruby
cabotto has joined #ruby
Furai has quit [Quit: WeeChat 2.1]
akaiiro has quit [Ping timeout: 260 seconds]
user____ has quit [Ping timeout: 268 seconds]
akaiiro has joined #ruby
jottr has joined #ruby
Mqll has joined #ruby
cabotto has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
bonhoeffer has joined #ruby
cabotto has joined #ruby
suukim has joined #ruby
nowhereman_ has quit [Ping timeout: 265 seconds]
anisha has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Ping timeout: 244 seconds]
Furai has joined #ruby
dalpo has quit [Quit: leaving]
user___ has joined #ruby
dalpo has joined #ruby
karapetyan has joined #ruby
ciscam has quit [Ping timeout: 256 seconds]
psychicist__ has joined #ruby
ciscam has joined #ruby
user3 has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
user3 has joined #ruby
user___ has quit [Ping timeout: 240 seconds]
Raboo has joined #ruby
user___ has joined #ruby
bonhoeffer has joined #ruby
kliq has joined #ruby
user3 has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
user3 has joined #ruby
user___ has quit [Ping timeout: 260 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
<ntt>
Hi, it is possible to encapsulate an ssh terminal through cable in a rails application? Basically I have a scenario where the server can connects via ssh to an (shh) client, and I need to see the ssh console in the browser. Is this possible?
AJA4350 has joined #ruby
user3 has joined #ruby
gnufied has joined #ruby
SunnyLumens has joined #ruby
user_ has quit [Ping timeout: 244 seconds]
user_ has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
TvL2386_ has joined #ruby
braincrash has joined #ruby
TvL2386 has quit [Ping timeout: 240 seconds]
user___ has joined #ruby
user3 has quit [Ping timeout: 240 seconds]
user_ has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
user3 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
zapata has quit [Quit: WeeChat 2.1]
user___ has quit [Ping timeout: 256 seconds]
shinnya has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
<Alec>
ntt: screen maybe or put tee on to /dev/(bash PID)/stdout
<Alec>
NL3limin4t0r: right the bot is like autistic or something and that's why it refused :P
cliq has joined #ruby
kliq has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
ur5us has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 256 seconds]
za1b1tsu_ has joined #ruby
ur5us has joined #ruby
megamosaren has joined #ruby
diego_k has joined #ruby
guille-moe1 has joined #ruby
guille-moe has quit [Ping timeout: 276 seconds]
z3uS has quit [Ping timeout: 276 seconds]
diegok has quit [Ping timeout: 276 seconds]
guille-moe1 is now known as guille-moe
z3uS has joined #ruby
ltd has quit [Ping timeout: 276 seconds]
ltd has joined #ruby
user3 has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 276 seconds]
megamos has quit [Ping timeout: 276 seconds]
Mike11 has quit [Quit: Leaving.]
<dionysus69>
env var is not present when I run irb/ruby with sudo
<dionysus69>
setting up god gem, that's why I need sudo
user3 has joined #ruby
kliq has joined #ruby
cliq has quit [Ping timeout: 256 seconds]
<Alec>
dionysus69: RTFM
<Alec>
sudo(8)
<dionysus69>
ok figured it out, rvmsudo :s
<Alec>
....
zapata has joined #ruby
<Alec>
dionysus69: you must be new
<Alec>
Whenever someone says RTFM it's because they're looking at the manual and see the exact relevant bit
<dionysus69>
nope, just havent dealt with rvm in several months
cliq has joined #ruby
kliq has quit [Ping timeout: 244 seconds]
Skarlso has joined #ruby
<apeiros>
Alec: a plain rtfm is pointless and you can save yourself typing it. if you rtfm somebody, give them at the very least a pointer where and what to look at.
<apeiros>
Alec: otherwise we can answer all questions here by "please read a ruby book"
ur5us has quit [Remote host closed the connection]
<konsolebox>
to be fair, it's rtfd
sagax has quit [Ping timeout: 240 seconds]
<Alec>
apeiros: I'd agree if you were talking about GCC's monster manual page or something
<Alec>
but try it!
<Alec>
Maybe learn how to use /
<Alec>
followed by "env"
<Alec>
*cough*
<apeiros>
you don't need to agree. I tell you channel rules.
<apeiros>
and `sudo(8)` doesn't help quite a lot of people. they won't understand that you want them to use man.
<Alec>
Channel rules say I must quote the manual rather than say RTFM giving noobs useful lifeskills?
<Alec>
Well if anyone doesn't understand the format they could ask
<apeiros>
channel rules say you shouldn't behave like a dick. and you do.
<Alec>
I could explain man's sections
<Alec>
Careful m8 - I got pulled up by an opp when I used that word earlier.
<apeiros>
and no, "rtfm" doesn't teach life skills. that's quite a twisted view of reality you have there if you think that.
<Alec>
Oh that was you
<apeiros>
<-- does that @ help?
<apeiros>
no it wasn't me. I was afk the last few hours.
<Alec>
I'm going to check now
<Alec>
'cos it was for sure "a" for the first letter
<Alec>
<apeiros> Alec: watch your language.
<apeiros>
I told you to watch your language. I … yep, wasn't specific about which words.
<Alec>
Oh right sure, it was the lack of capital T at the tart of the sentence that was about
<Alec>
Totally not the only word that could conceivably be bad
conta has joined #ruby
<Alec>
Anyway IDC really I'd just fallen back into sibling mode
<Alec>
So what can I do when I check the manual, find it within 3 seconds including manual time
<Alec>
Like say nothing?
<apeiros>
tell them how to get there
<apeiros>
tell them what you did to get to the point where you actually saw the thing they were looking for documented.
zx has joined #ruby
<Alec>
Right I'm sure that wont be taken as really condescending or patronising or as assuming they're such noobs they can't type "man sudo"
<Alec>
I'm not liking this, I'm just gonna sponge until I get used to it
<apeiros>
no idea what "gonna sponge" is supposed to mean in this context.
<Alec>
Oh right the first word is "going to" contracted into a slang form
<Alec>
"sponge" is a synonym for "leach" or "free-rider" - someone who takes but gives nothing back.
<Alec>
To "sponge off" someone.
<apeiros>
I see.
<Alec>
I really don't want to risk being banned for trying to help
<Alec>
Maybe when I don't need you guys, then I can cut you loose like dead-weight :P
<apeiros>
yeah, again, "rtfm" is in no way "trying to help"
<Alec>
...agree to disagree
<apeiros>
and if that's your idea of helping, then indeed, I prefer you to remain silent.
<Alec>
Yahvul!
zx has left #ruby [#ruby]
ldnunes has joined #ruby
adm_ has joined #ruby
fot has joined #ruby
<adm_>
hi
<Alec>
Hello friend.
<adm_>
im getting this error "ruby: No such file or directory -- dk.rb (LoadError)" when running ruby dk.rb init
<adm_>
if u search for dk.rb on that link u will get my point pls
<konsolebox>
it says "ruby <devKitRoot>\dk.rb init"
<adm_>
yes
<konsolebox>
did you replace <devKitRoot> with the actual directory of devkit?
<adm_>
yes
<konsolebox>
what is the complete command?
<adm_>
but i get error that dk.rb doesn't exist
<konsolebox>
have you manually checked devkit (not the ruby) the directory if dk.rb exists?
<James123>
Hello! I have a text file with some emails of the form: Re: subject\n body text with several new lines\n Re: subject 2\n new email text. I want to read each email including the subject line to an array element. I have tried emails.scan(/Re:.*?/m) but it doesn't work. Any ideas?
<konsolebox>
adm_: C:\Ruby25-x64 is not the devkit directory
<adm_>
i searched all c partition but i didn't find it
<konsolebox>
you should have seen it when you install devkit
<adm_>
i installed this rubyinstaller-devkit-2.5.1-2-x64 package
<adm_>
it will install ruby with devkit right?
<konsolebox>
yes
nowhere_man has joined #ruby
<adm_>
and i didn't get any error during the installation
<adm_>
i installed it on windows server 2016
fot has quit [Ping timeout: 260 seconds]
<adm_>
pls how to uninstall the current package?
<adm_>
i will install ver 2.4 so i need to uninstall 2.5 pls
alfiemax_ has joined #ruby
jcalla has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
SunnyLumenz has joined #ruby
cloudive has joined #ruby
SunnyLumens has quit [Ping timeout: 260 seconds]
user3 has quit [Ping timeout: 244 seconds]
<konsolebox>
adm_: read the installer's instructions in the "Select Components" page
BaroMeter has joined #ruby
<konsolebox>
adm_: that "ruby <devKitRoot>\dk.rb init" instruction seems to refer to the old installer "RubyInstaller". RubyInstaller2 seems to do it automatically for the user in the last installer page.
<adm_>
hmm
<adm_>
so no need to run this command after the installation right?
<nima_m>
hey i read chirs pine’s book, im new in ruby :/ what are your seggestions about next step to learn more things?
fot has joined #ruby
Asher has quit [Quit: Leaving.]
<apeiros>
nima_m: find something you'd like to build, start building it.
gnufied has joined #ruby
fuxx has joined #ruby
adm_ has quit [Quit: Page closed]
soniya29 has joined #ruby
za1b1tsu_ has joined #ruby
reber has joined #ruby
reber__ has joined #ruby
Mrgoose has quit [Quit: ZNC 1.7.x-nightly-20170908-e86efb08 - https://znc.in]
SunnyLumenz has joined #ruby
bmurt has joined #ruby
SunnyLumens has quit [Ping timeout: 256 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
banisterfiend has joined #ruby
alex``` has quit [Ping timeout: 240 seconds]
memo1 has joined #ruby
gnufied has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 264 seconds]
hanmac has quit [Ping timeout: 240 seconds]
alex``` has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
SunnyLumens has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
SunnyLumenz has quit [Ping timeout: 248 seconds]
quobo has joined #ruby
Rapture has joined #ruby
rippa has joined #ruby
gnufied has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
ogres has joined #ruby
hanmac has joined #ruby
rikkipitt has joined #ruby
soniya29 has quit [Ping timeout: 265 seconds]
Biappi has joined #ruby
<Biappi>
hello. i'm looking for the easiest way of installing an application that supports "gem install $app" in a non-global, and possibly "portable" way
<Biappi>
many times people advised me "bundler", but i find its docs a really confusing mishmash of ruby jargon i'm not familiar with... i'd be happy if somebody could just point me to a doc to follow
apparition has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Inline has quit [Remote host closed the connection]
troys has joined #ruby
agent_white has joined #ruby
aupadhye has quit [Remote host closed the connection]
synthroid has joined #ruby
<havenwood>
Biappi: You can install gems wherever you'd like: gem i -i /path/to/gems
<havenwood>
Biappi: RubyGems itself also supports dependency resolution. Create a Gemfile, but your deps in it, and run: gem i -g
<havenwood>
Biappi: It'll install "globally", but you can use just those versions by setting: export RUBYGEMS_GEMDEPS=-
<havenwood>
Biappi: It's typical these days to simply install to $GEM_HOME, specify your deps in a Gemfile, create a Gemfile.lock, then use just those specified versions when running the app.
synthroi_ has quit [Ping timeout: 248 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
<havenwood>
Biappi: Here's a few lines of shell that'll facilitate moving $GEM_HOME, $GEM_PATH and $PATH around - if that's the way you want to go: https://github.com/postmodern/gem_home#gem_home
<havenwood>
Biappi: The more popular option is the dependency resolver route, where you resolve to a Gemfile.lock with specific gems and versions - then use just those when running the app.
rikkipitt has quit [Quit: Leaving...]
Inline has joined #ruby
conta has quit [Quit: conta]
RougeR has quit [Ping timeout: 256 seconds]
Mrgoose2 has joined #ruby
reber__ has quit [Remote host closed the connection]
reber__ has joined #ruby
memo1 has quit [Quit: WeeChat 1.4]
memo1 has joined #ruby
gizmore has joined #ruby
<gizmore>
havenwood: This is your daily appreciation message :) thx for your expertises and help
megamosaren has quit [Ping timeout: 260 seconds]
andikr has quit [Remote host closed the connection]
Puffball has joined #ruby
beefjoe has joined #ruby
soniya29 has joined #ruby
nowhere_man has quit [Ping timeout: 264 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
SunnyLumenz has joined #ruby
amar has quit [Remote host closed the connection]
fot has quit [Ping timeout: 240 seconds]
SunnyLumens has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
amar_ has joined #ruby
cadillac_ has joined #ruby
tcopeland has joined #ruby
amar_ has quit [Read error: No route to host]
tcopeland has quit [Client Quit]
amar_ has joined #ruby
cliq has quit [Ping timeout: 244 seconds]
ivanskie has quit [Client Quit]
amar_ has quit [Ping timeout: 264 seconds]
theRoUS has left #ruby ["Off to another part of the maze of twisty little passages"]
Snowy has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
fot has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
BaroMeter has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
fot has quit [Ping timeout: 260 seconds]
Dbugger has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Dbugger has joined #ruby
graphene has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore>
another example
<gizmore>
table.delete_where("user_name=#{activation.quoted(:user_name)} OR user_email=#{activation.quoted(:user_email)}")
lxsameer has quit [Ping timeout: 265 seconds]
<gizmore>
this actually loads every entitiy to delete and calls the events
<gizmore>
unlike ActiveRecord
<gizmore>
GDO support combined primary keys, unlike ActiveRecord
<gizmore>
GDO features a single identity cache (unique feature)
<gizmore>
single identiy cache means every object retrieved from db is filtered through cache, and will return the same instance when the same row is queried multiple times
<gizmore>
currently this is disabled in GDO(Ruby) but i got great results in PHP
<gizmore>
GDO is not designed to be scalable atm
<gizmore>
:(
lxsameer has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
reber has quit [Remote host closed the connection]
reber has joined #ruby
tvw has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
rootd00d has joined #ruby
<rootd00d>
hey folks! i'm having a little trouble with concurrent-ruby. i'm using a FixedThreadPool to make threaded HTTP requests, but i need to preserve the responses to all of these requests in a "shared" array.
dr3w_ has joined #ruby
<rootd00d>
i was thinking i'd just declare an array, and then in pool.post ... i'd be able to access the array and just push the responses on, but at the end the array is just empty.
<gizmore>
rootd00d: you need to lock access on writes and reads maybe
<rootd00d>
i'm guessing because each thread is getting it's own copy of that array variable.
<gizmore>
threading is not too hard
lxsameer has joined #ruby
venmx has joined #ruby
<gizmore>
you just need to choreograph your code that accesses shared data
<gizmore>
semaphoes, locks, whatever
<gizmore>
lockspins!
<gizmore>
semaphores, locks, whatever *
raynold has joined #ruby
<rootd00d>
gizmore: well, i thought maybe i should use safe_array_var = Concurrent::MVar.new(array_var), and then inside the thread, do safe_array_var.value.push(<foo>) but it's the same effect.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore>
i am not into that Concurrent lib
<rootd00d>
it doesn't seem to complain at all, but the array is still empty.