jhass changed the topic of #ruby to: Please register to talk, see /msg NickServ help || Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
symm- has quit [Quit: Leaving...]
ChasedSpade has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
arescorpio has joined #ruby
seitensei has quit [Read error: Connection reset by peer]
uri_ has quit [Ping timeout: 240 seconds]
PlasmaStar has quit [Ping timeout: 246 seconds]
tmtwd has quit [Ping timeout: 250 seconds]
clarkenciel has quit [Ping timeout: 264 seconds]
seitensei has joined #ruby
Yzguy has joined #ruby
christiandsg has quit [Remote host closed the connection]
christiandsg has joined #ruby
Swappticon has joined #ruby
christiandsg has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
PlasmaStar has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Pupeno has joined #ruby
Pupeno has joined #ruby
astrobun_ has quit [Remote host closed the connection]
ghr has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rehat has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
theery has joined #ruby
theery has quit [Remote host closed the connection]
theery has joined #ruby
<shevy> sleepy folks today here
theery has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> shevy: i'm waking up
cmckee has quit [Quit: cmckee]
saddad has joined #ruby
AlexAltea has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
<Ox0dea> >> Thread.current.wakeup
<ruboto> Ox0dea # => #<Thread:0x41a71a5c run> (https://eval.in/424709)
Musashi007 has quit [Client Quit]
<havenwood> >> ThreadGroup::Default.list.each &:wakeup
<ruboto> havenwood # => [#<Thread:0x40529a50 run>] (https://eval.in/424710)
postmodern has joined #ruby
<toretore> ≥≥ Thread.main.kill
Yzguy has quit [Quit: Zzz...]
<Ox0dea> >> Thread.kill 0 rescue $!
<ruboto> Ox0dea # => #<TypeError: wrong argument type Fixnum (expected VM/thread)> (https://eval.in/424711)
<Ox0dea> How do I make a VM?
<toretore> it expects aThread
<toretore> not a number
<Ox0dea> A thread *or* a VM, apparently, but what does that mean?
[k- has joined #ruby
marr has quit [Ping timeout: 250 seconds]
d2dchat has joined #ruby
ecnalyr has joined #ruby
Pupeno has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 256 seconds]
Azure has joined #ruby
jaequery has joined #ruby
icedp has quit [Ping timeout: 250 seconds]
wasamasa has quit [Ping timeout: 246 seconds]
ngscheurich has quit [Ping timeout: 252 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wasamasa has joined #ruby
wasamasa has quit [Changing host]
wasamasa has joined #ruby
icedp has joined #ruby
Yzguy has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
davedev24 has quit []
Darkwater has joined #ruby
Viata has joined #ruby
Viata has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
dzv has joined #ruby
<sp_> 0x0dea: does the vm bit confuse you?
<sp_> Or the distinction between a thread and a vm?
xxneolithicxx has joined #ruby
bazbing80 has quit [Ping timeout: 272 seconds]
<Ox0dea> sp_: I mistakenly interpreted "VM/thread" to mean that an instance of VM or Thread could be passed to Thread.kill.
alexthegreat has joined #ruby
mary5030 has joined #ruby
<Ox0dea> "VM/thread" just means Thread in this case, but it's easy to see the source of my confusion.
lipoqil has quit [Quit: Connection closed for inactivity]
<Ox0dea> >> [RubyVM.class, RubyVM.respond_to?(:new)]
<ruboto> Ox0dea # => [Class, false] (https://eval.in/424713)
alexthegreat has quit []
\x1p2 has left #ruby ["WeeChat 1.3"]
jpfuentes2 has joined #ruby
sankaber has joined #ruby
millerti has joined #ruby
j3r0 has joined #ruby
jamesaxl|2 has quit [Remote host closed the connection]
hj8ds has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
juanpablo_ has joined #ruby
mary5030 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorei has quit []
juanpablo_ has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
mistermocha has joined #ruby
ghr has joined #ruby
drbrain has quit [Ping timeout: 246 seconds]
christiandsg has joined #ruby
uri_ has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
miswism is now known as mistake
drbrain has joined #ruby
JBrickley has joined #ruby
hotpancakes has quit []
ghr has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
<shevy> why are languages like ruby or python implemented in C and not C++?
atomical has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
j3r0 has quit [Quit: Leaving]
christiandsg has quit [Ping timeout: 265 seconds]
enebo has joined #ruby
mary5030 has quit [Remote host closed the connection]
<al2o3-cr> shevy: C is the root of all evil/good
mary5030 has joined #ruby
<shevy> tiobe approves
<eam> shevy: well, all the system interfaces are C anyway, so
<al2o3-cr> approves what shevy
<shevy> hmm
<shevy> al2o3-cr oh... (1) java (2) C (3) C++ :)
<shevy> correct me if I am wrong... the scripting language seem to be largely written in C... perl ruby python lua php ...
<shevy> lemme see about swift
<al2o3-cr> yeah correct
<shevy> oh
<shevy> it is compiled
<shevy> huh... and depends on llvm?
agent_white has quit [Quit: bbl]
<al2o3-cr> shevy: you drunk?
<shevy> nope
<al2o3-cr> just asking that is all :)
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Quit: Leaving]
voltalio has joined #ruby
d2dchat has quit [Remote host closed the connection]
blake is now known as TheMoonMaster
JBrickley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JBrickley has joined #ruby
freerobby has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
startupality has quit [Quit: startupality]
<al2o3-cr> shevy: You still learning C?
clarkenciel has joined #ruby
<shevy> al2o3-cr well I don't know
<shevy> I seem to still be stuck maintaining code, rewriting my old ruby 1.8.x ruby-gtk stuff...
<shevy> al2o3-cr ruby is too much fun
poli has joined #ruby
unreal_ has joined #ruby
CloCkWeRX has joined #ruby
darwingr has joined #ruby
<al2o3-cr> shevy: So your still not grasping things?
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
<shevy> al2o3-cr yeah that too, but I am also not investing a lot of time into it... I am fly-by learning, it has to happen fast or it does not happen at all, like a ferret on a sugar rush :)
<sp_> shevy: Why do you think they should be implemented in C++ instead of C?
<al2o3-cr> :)
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unreal has quit [Ping timeout: 260 seconds]
kdman has quit [Ping timeout: 256 seconds]
<shevy> sp_ do I think so?
<sp_> shevy: C++ was designed as an extension language to C. And spiralled out of control. It would be a lot harder to maintain a language fork based upon C++ where C maintains a relatively small footprint, the language itself is rather small.
<sp_> shevy: I don't know.
tmtwd has joined #ruby
<sp_> C isn't "a compiled" language.
<Ox0dea> Wat.
<sp_> There only exists compilers designed for C. The language specification makes no distinction for this.
<Ox0dea> It's not *the* compiled language either, in case that was the intended implication.
<sp_> Was that as-per re: Swift?
<Ox0dea> There are hundreds.
ramfjord has quit [Ping timeout: 250 seconds]
<Ox0dea> In any case, it's true that there are a few "C interpreters", but it's not as if they see much use.
sdfgsdfg has joined #ruby
<sp_> That's hardly the point.
<sp_> It's like saying green is tasty.
joneshf-laptop has quit [Ping timeout: 256 seconds]
<Ox0dea> You're offending the synesthetic.
<shevy> That is why Ox0dea is commonly called the Oracle
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
rakm has joined #ruby
<al2o3-cr> shevy: I thought that was hanmac?
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
<shevy> hanmac sorta went inactive
<shevy> at about the same time Ox0dea emerged
<shevy> :(
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> hmm, hanmac was the bomb
ramfjord has joined #ruby
rbennacer has joined #ruby
<Ox0dea> $ emerge -atv 0x0dea
saddad has quit [Ping timeout: 265 seconds]
<Ox0dea> The rumors of hanmac's demise have been slightly exaggerated.
kdman has joined #ruby
<al2o3-cr> 180?
freerobby has quit [Quit: Leaving.]
hj8ds has quit [Quit: WeeChat 1.3]
<shevy> he used to be hyperactive in the past, even wrote the latest ruby wxwidget bindings
<shevy> and now he is gone :(
David27 has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
<al2o3-cr> :(
Eiam_ has joined #ruby
d2dchat has joined #ruby
Eiam_ has quit [Client Quit]
rbennacer has quit [Ping timeout: 264 seconds]
Mendenhall has joined #ruby
ddrmanxbxfr_pc has quit [Ping timeout: 256 seconds]
d2dchat has quit [Remote host closed the connection]
havenwood has joined #ruby
<shevy> I am stalking him now
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> Does he still visit?
enebo has quit [Quit: enebo]
juanpablo_ has joined #ruby
<shevy> well he is active on github
<al2o3-cr> here?
solocshaw1 has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
voltalio has joined #ruby
<shevy> well very rarely so
<shevy> like 1 word in 4 weeks
<shevy> I think Ox0dea must have someone taken over hanmac
charliesome has joined #ruby
<al2o3-cr> hanmac: PLEASE COME BACK!
freerobby has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> this guy (truely) articulate
<Ox0dea> I learned of hanmac when I was compared to him for doing the non-alphanumeric thing.
juanpablo_ has quit [Ping timeout: 272 seconds]
bast has quit [Quit: leaving]
ghr has joined #ruby
theery has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Swappticon has joined #ruby
Starf0x has joined #ruby
<Starf0x> Hello everone! I was wondering if anyone had any experience using Railsbricks?
<sp_> Someone might.
theery_ has joined #ruby
theery_ has quit [Read error: Connection reset by peer]
<Starf0x> I noticed that the installation instructions were sparse, and there was a lot of extra work required to use the gem, so I wrote a tutorial.
theery has quit [Read error: Connection reset by peer]
<Starf0x> I wanted to post it so others wouldn't have to search for so long for all the answers, where could I go about sharing useful Ruby information like that?
mistermocha has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
<Starf0x> Ah, there is a rails room. Nice. Thank you all!
Starf0x has left #ruby [#ruby]
davedev24 has joined #ruby
MrXelious has joined #ruby
MrXelious has left #ruby [#ruby]
Swappticon has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
Swappticon has joined #ruby
jenrzzz has joined #ruby
Swappticon has quit [Max SendQ exceeded]
Yzguy has quit [Quit: Zzz...]
cmckee has joined #ruby
christiandsg has joined #ruby
cmckee has quit [Client Quit]
maletor has joined #ruby
towski_ has joined #ruby
freerobby has quit [Quit: Leaving.]
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
lucyinthesky has joined #ruby
znz_jp has quit [Ping timeout: 244 seconds]
<shevy> hmmm
<shevy> a rails room
Kallis has quit [Read error: Connection reset by peer]
<Ox0dea> Elseways known as a train track.
christiandsg has joined #ruby
_blizzy_ has joined #ruby
bruno- has joined #ruby
<baweaver> choo choo
<Ox0dea> Beep beep.
* havenwood beep bop boop
<shevy> hipsters!
Swappticon has joined #ruby
<shevy> oh
lavros has joined #ruby
<shevy> those aren't the Hansons
* sp_ sees that everyone's taking a break from their regularly scheduled programming.
<sp_> or maybe it's just Saturday evening.
lucyinthesky has left #ruby ["Leaving"]
<havenwood> >> NKF.guess '
<ruboto> havenwood # => uninitialized constant NKF (NameError) ...check link for more (https://eval.in/424748)
bruno- has quit [Ping timeout: 250 seconds]
<havenwood> >> require 'nkf'; NKF.guess '
<ruboto> havenwood # => #<Encoding:ASCII-8BIT> (https://eval.in/424749)
<pontiki> still the best opener
zenguy_pc has quit [Read error: Connection reset by peer]
bazbing80 has joined #ruby
zenguy_pc has joined #ruby
quazimodo has joined #ruby
freerobby has joined #ruby
<pontiki> is that a die?
<havenwood> >> require 'rinda/tuplespace'; space = Rinda::TupleSpace.new; space.write [:aim, true, Time.now]; space.read [Symbol, nil, Time]
<ruboto> havenwood # => (https://eval.in/424750)
<havenwood> oops, I guess that's going to take until 2038
<havenwood> space.read [Symbol, nil, Time], true
robertjpayne has joined #ruby
<havenwood> pontiki: yup
<havenwood> pontiki: 6-sided, 8-bit die
<pontiki> what spots showing?
yeticry has quit [Ping timeout: 244 seconds]
<havenwood> pontiki: ., .., ...
* pontiki nods
bronson_ has joined #ruby
Rinzlit has joined #ruby
<pontiki> these eyes...
yeticry has joined #ruby
laurentide_ has joined #ruby
sevenseacat has joined #ruby
mary5030 has joined #ruby
<Ox0dea> >> def roll d; Array.new(d.to_i) { rand d[/\d+$/].to_i }.reduce :+ end; roll '2d20'
<ruboto> Ox0dea # => 29 (https://eval.in/424753)
<Ox0dea> Acceptable.
laurentide has quit [Ping timeout: 244 seconds]
gener1c_ has joined #ruby
agent_white has joined #ruby
bronson_ has quit [Ping timeout: 272 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
gener1c has quit [Ping timeout: 260 seconds]
rushed has joined #ruby
braincra- has quit [Quit: bye bye]
ramfjord has quit [Ping timeout: 250 seconds]
laurentide_ has quit [Quit: Leaving]
Ludiko has joined #ruby
laurentide has joined #ruby
braincrash has joined #ruby
braincrash is now known as braincras
dgutierrez1287 has joined #ruby
michaeldeol has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
michaeldeol has quit [Client Quit]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
UtkarshRay has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
jiada-chrome has joined #ruby
Pupeno has joined #ruby
face has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Swappticon has joined #ruby
Pupeno has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 260 seconds]
jpfuentes2 has joined #ruby
nebula_ has joined #ruby
znz_jp has joined #ruby
christiandsg has quit [Remote host closed the connection]
mary5030 has joined #ruby
howdoi has joined #ruby
Ropeney has quit [Remote host closed the connection]
icarus has joined #ruby
<nebula_> hi guys, what are yours talking about?
<shevy> yours talking about lots of stuff
jpfuentes2 has quit [Ping timeout: 265 seconds]
jpfuentes2 has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
<nebula_> So I think PHP is the best language in the world LoL
<nebula_> just joke
ramfjord has joined #ruby
mary5030 has quit [Remote host closed the connection]
Rinzlit has quit [Ping timeout: 264 seconds]
cabreraM516 has joined #ruby
<toretore> LoL
mary5030 has joined #ruby
darwingr has quit [Read error: Connection reset by peer]
nebula_ has quit []
<shevy> oh man
<shevy> php 7 will be kickass
mary5030 has quit [Ping timeout: 246 seconds]
Fezzler has joined #ruby
darwingr has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> ruby is up to 2, python is up to 3, perl is up to 5, php is up to 6
UtkarshRay has quit [Remote host closed the connection]
<[k-> ghc is up to 7
<sp_> Point is up to 0.
havenwood has joined #ruby
<shevy> won't be long until ruby enters the 3.x era
[k- has quit [Quit: -a- IRC for Android 2.1.23]
charliesome has joined #ruby
poli has quit [Ping timeout: 265 seconds]
Fezzler has quit [Quit: Leaving]
poli has joined #ruby
JBrickley has quit [Quit: Textual IRC Client: www.textualapp.com]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
sdothum has quit [Ping timeout: 250 seconds]
psy_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
UtkarshRay has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
psy_ has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
bigmac_ has quit [Ping timeout: 265 seconds]
s00pcan has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby
darkf has joined #ruby
cashnguns has quit [Ping timeout: 246 seconds]
davedev2_ has joined #ruby
<nofxx> shevy, php 7 will be kick ass -> only if version starts with a rm -rf
<nofxx> ruby 3.. what we might expect?
solocshaw has quit [Read error: Connection reset by peer]
davedev24 has quit [Ping timeout: 244 seconds]
pranny has joined #ruby
ghr has joined #ruby
<shevy> I dunno
<shevy> strings will be frozen by default after a transition phase
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
krz has joined #ruby
bigmac_ has joined #ruby
freerobby has quit [Quit: Leaving.]
icarus has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 255 seconds]
<nofxx> shevy, hard to improve perfection anyways... all that's left for improvement in ruby is performance
towski_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
cabreraM516 has quit [Quit: Textual IRC Client: www.textualapp.com]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
pranny has quit [Remote host closed the connection]
pranny has joined #ruby
face has quit []
lkba_ has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
<shevy> yeah
<baweaver> lisp, lisp is perfection in its paren-y goodness
mary5030 has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
<shevy> is lisp among the scripting languages family?
<Ludiko> any idea how to reset the id after CLass.destroy in datamapper?
tjohnson has quit [Quit: Connection closed for inactivity]
laurentide has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
<ght> Evening guys.
<shevy> ght is ready for mischief
<ght> haha
<ght> I'm bored, late night coding this Ruby project.
<ght> No one to talk to, wife is out at her birthday party, kids are asleep, all my friends are asleep.
<ght> So, figured I'd give old #ruby a shot.
<sevenseacat> ght: ?guys
<sevenseacat> ugh whats the command
<sevenseacat> ?guys ?
<ruboto> ?, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<ght> Haha, wow.
davedev2_ has quit [Ping timeout: 244 seconds]
<ght> Didn't realize we were rolling SJW in #ruby.
<ght> That's fine, I'll keep it to Ruby questions.
davedev24 has quit [Ping timeout: 244 seconds]
<sevenseacat> we're not
<Aria> Just a reminder that the rest of us are here too.
marjory_baxter has joined #ruby
icarus has joined #ruby
<shevy> I predicted the mischief :)
pranny has quit [Remote host closed the connection]
bruno- has joined #ruby
pranny has joined #ruby
lessless has joined #ruby
lessless has left #ruby [#ruby]
Rinzlit has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theery has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
jeadre has quit [Remote host closed the connection]
<nofxx> Ludiko, it's the DB giving you the ID , not DM
<nofxx> just drop de database
tlolczyk has joined #ruby
marjory_baxter has quit [Ping timeout: 246 seconds]
leonmaia has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<Ludiko> i need to that for an specific.. table? is called table? :P
jeadre has joined #ruby
<nofxx> oh, yeah,.. sorry, drop the table
<Ludiko> hmm
<nofxx> you'll need to recreate it too.. but check the DB, maybe there's a reset counter
<nofxx> usually it's a system index or something
<Ludiko> i'll check it
<nofxx> Ludiko, incremental id i think is the term
<Ludiko> yes
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
<Ludiko> i guess there's nothing in DM to check if a table exist and drop it if it does?
grenierm has joined #ruby
<tlolczyk> I'm reading websites and there is something I cannot figure out. I've basically got if value =~ /this-([0-9][0-9][0-9])/; process(value). I would before process like top access the subgroup and check if it is valid number in a tavble. How do I access the subgroup and convert to int?
<nofxx> Ludiko, DM is old and unmaintained, and anywys sequel or even AR are way better... can't you change your proj?
<nofxx> (both have check table) but guess DM should have too
<Ludiko> oh sure, i just went with what seemed easier :P
<Ludiko> i'm kind of a newb
<nofxx> Ludiko, pretty sure you'll find em easier ;) also, way more tutorials
<Ludiko> em?
<nofxx> sequel or ActiveRecord
<Ludiko> oh
<nofxx> tlolczyk, not sure it's possible, you'll need to check it later
The_Phoenix has joined #ruby
<Ludiko> i'll check them out
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rideh has quit [Changing host]
rideh has joined #ruby
jeadre has quit [Remote host closed the connection]
rideh has quit [Quit: quit]
bigmac_ has quit [Ping timeout: 265 seconds]
rideh has joined #ruby
jeadre has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
xet7bot is now known as xet7_
pranny has quit [Remote host closed the connection]
pranny has joined #ruby
marjory_baxter has joined #ruby
riotjones has joined #ruby
PaulVern has joined #ruby
leonmaia has joined #ruby
pranny has quit [Remote host closed the connection]
<PaulVern> Hi All. I've written this script which resolves an IP address of one of my domains. Sometimes it works, but other times I get the following exception: http://paste.ofcode.org/pyUbxHMWzk9A78f4mnxDM2
<PaulVern> The code, and the error are in that paste
<PaulVern> any idea why this might happen?
rideh has quit [Changing host]
rideh has joined #ruby
<PaulVern> is dns lookup just generally unreliable?
<shevy> tlolczyk you need to capture it via () then process it before sending it to process()
<shevy> tlolczyk the captured groups are available in either $1 $2 $3, or in a MatchData object via [1] [2] etc..
rideh has quit [Quit: quit]
pranny has joined #ruby
rideh has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
pranny has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
rushed has quit [Quit: rushed]
pranny has joined #ruby
<shevy> PaulVern does not seem to work for me at all
<shevy> Resolv::ResolvError: no address for 0.onetwo.com
<shevy> btw you are missing the last " in that paste
<PaulVern> shevy: Should have mentioned, I removed my real domain due to paranoid :)
<PaulVern> oh
dionysus69 has joined #ruby
houhoulis has quit [Remote host closed the connection]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
laurentide has joined #ruby
pranny has quit [Client Quit]
<shevy> so you are using some other argument
laurentide has quit [Read error: Connection reset by peer]
<shevy> perhaps some netconnection goes down or something
<shevy> you can still rescue that exception and try again at a later time
<PaulVern> shevy: That sounds like a good idea
theery has quit [Remote host closed the connection]
<PaulVern> Note: I'm quite new to Ruby, is there a good resoruce for me to learn how to raise and handle exceptions?
<shevy> it always follows the same pattern
<shevy> you start with begin, the part that may fail, and use the rescue statement
<shevy> you can rescue a specific error
<shevy> and ignore the others
<shevy> or you do the generic rescue Exception thing
joast has joined #ruby
michael_mbp has joined #ruby
<shevy> in your case: rescue Resolv::ResolvError
mistermocha has joined #ruby
<PaulVern> shevy: Thanks. Same as Java then. I'll have a read of that
<shevy> http://stackoverflow.com/questions/2191632/begin-rescue-and-ensure-in-ruby <-- first answer shows you how to do it, you could copy paste and adapt it
nahtnam has joined #ruby
<shevy> you can retry with a delay, e. g. sleep(), perhaps in a Thread.new block
<shevy> and!
<shevy> you could try on some other domain first :)
toretore has quit [Quit: This computer has gone to sleep]
fedexo has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 260 seconds]
laurentide has joined #ruby
<PaulVern> shevy: Good idea, that would rule out any dns misconfiguration on my part
<PaulVern> I'm not really across threads. http://ruby-doc.org/core-2.2.0/Thread.html ?
mistermocha has quit [Ping timeout: 255 seconds]
nanoz has joined #ruby
<shevy> yeah
<shevy> those are the two most important commands
<shevy> Thread.new
<shevy> and .join
<shevy> this example is better: http://www.sitepoint.com/threads-ruby/
<shevy> a bit more long winded, but you get a good example
<shevy> threads = (1..3).map do |i|; Thread.new(i) do |i|
<shevy> the pickaxe had an example of parallel downloading of remote files, via open-uri open() method
<shevy> and threads
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
PaulVern has quit [Ping timeout: 246 seconds]
PaulVern has joined #ruby
dgutierrez1287 has joined #ruby
<PaulVern> shevy: Thanks for the info. My Cinnamon died but I have all the info you gave me thanks to the weblog :)
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<shevy> hmm
<shevy> a dying network... a dying cinnamon... hope your cat ain't dying anytime soon!
leat1 has quit [Remote host closed the connection]
poli has quit [Ping timeout: 264 seconds]
<PaulVern> I should buy a lottery ticket
dgutierrez1287 has quit [Ping timeout: 252 seconds]
<baweaver> tlolczyk: match takes a block too
<baweaver> >> /foo(?<suffix>bar)/.match('foobar') { |m| m[:suffix] }
<ruboto> baweaver # => "bar" (https://eval.in/424765)
<baweaver> >> /foo(?<suffix>bar)/.match('lol nope') { |m| m[:suffix] }
<ruboto> baweaver # => nil (https://eval.in/424766)
<baweaver> what happens if you put that dependent method in aforementioned block?
<baweaver> gsub also takes a block, which can be handy for other things
leat1 has joined #ruby
Jackneill has joined #ruby
juanpablo_ has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
<baweaver> PaulVern: might not be the cleanest but you can also inline a rescue
<baweaver> >> val = nil.nope rescue 1; val
<ruboto> baweaver # => 1 (https://eval.in/424767)
<baweaver> which would make it: current_ip = Resolv.getaddress "my.domain.com" rescue '0.0.0.0'
<baweaver> assuming you want a default value
<baweaver> otherwise use `abort` with a good clean error message for it.
juanpablo_ has quit [Ping timeout: 252 seconds]
face has joined #ruby
<PaulVern> Well what my script does is it gets my current IP from http://wtfismyip.com/json , compares it with what the DNS record says, and if it doesn't match, updates the dns record with the current IP
<PaulVern> So I'll probably go with the retry option
<PaulVern> I just looked up bing.com a few times on an endless loop, with no errors. So looks like this has exposed an issue with my DNS configuration as well
<baweaver> mm, fair
<baweaver> depends on context as far as how to handle much of anything
<baweaver> and if you're a ruby beginner, Enumerable is a must read.
<baweaver> looking for a good intro (or writing one later)
<baweaver> hmm, I'll have to do a writeup later on it, including how some of the functional aspects are derived.
marjory_baxter has quit [Ping timeout: 244 seconds]
<baweaver> https://gist.github.com/baweaver/c4ee517fe325d54447c5 - ah, there it is. Map, Filter, and Reduce implemented as lambdas
<baweaver> (do note you likely won't need lambdas yourself for a while)
face has quit []
PaulVern has quit [Ping timeout: 246 seconds]
tmtwd has quit [Ping timeout: 255 seconds]
ecnalyr has joined #ruby
terlar has joined #ruby
tlolczyk_ has joined #ruby
ecnalyr has quit [Ping timeout: 246 seconds]
erethor has joined #ruby
poli has joined #ruby
erethor has quit [Client Quit]
icarus has quit [Ping timeout: 240 seconds]
tlolczyk has quit [Ping timeout: 265 seconds]
face has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
agent_white has quit [Quit: night]
laurentide has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
[k- has joined #ruby
rushed has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
bruno- has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rushed has quit [Client Quit]
jeadre has quit [Remote host closed the connection]
<shevy> that dam lambdas
jeadre has joined #ruby
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> we need some slogan for ruby
jmdade has joined #ruby
mistermocha has joined #ruby
cabreraM516 has joined #ruby
<[k-> MINASWAN
<[k-> When i typed minaswan, monads came out as a suggestion
<[k-> could it be?
<shevy> lol
<shevy> did you make this up
mistermocha has quit [Ping timeout: 246 seconds]
<[k-> no
<baweaver> >>== <3
<ruboto> baweaver # => /tmp/execpad-4d509b7ab5a0/source-4d509b7ab5a0:2: syntax error, unexpected == ...check link for more (https://eval.in/424769)
<baweaver> ahaha
<baweaver> walked into that one
tloolczyk__ has joined #ruby
tlolczyk_ has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 246 seconds]
<shevy> perhaps matz is a monad
nanoz has joined #ruby
<[k-> i have no idea what is a monad
<shevy> you used haskell!
<[k-> i haven't touched monads, only learnt about them
<[k-> so it hasnt clicked yet
<[k-> i cant define a monad for you here and now
<[k-> s/a //
<shevy> MINASWAN
<shevy> MONADSWAN
tloolczyk__ has quit [Ping timeout: 240 seconds]
<[k-> Mubarak
<[k-> ^ that came out when i tried to swipe minaswan
<[k-> gesture type, if you will
<[k-> (actually, i did use IO, and >>= to generate random integers)
<shevy> this scares me away from using osx [k-
<[k-> I'm on Android...
aedfgr has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
AccordLTN has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 252 seconds]
<shevy> can you ruby on Android?
<[k-> depends
mhib has joined #ruby
jgt1 has joined #ruby
Rollabunna has joined #ruby
<baweaver> Ruboto
<baweaver> not just our bots name
<[k-> I'm not installing that
tvw has joined #ruby
<shevy> you are not using ruby on Android? :(
Rollabunna has quit [Client Quit]
<[k-> why would i need to
eightfold has joined #ruby
tmtwd has joined #ruby
<shevy> because you could run a lot of ruby stuff
cabreraM516 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<baweaver> I tend to keep a bluetooth keyboard about and I will totally break out a ruby repl for random things when I'm not at my computer
nebula_ has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
terlar has joined #ruby
nebula_ has quit [Remote host closed the connection]
jeadre has quit [Remote host closed the connection]
jeadre has joined #ruby
AccordLTN has joined #ruby
mburns has quit [Quit: ZNC - http://znc.in]
poli has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
TheHodge has joined #ruby
mburns has joined #ruby
thebastl has joined #ruby
_blizzy_ has joined #ruby
<zenspider> baweaver: head, *tail = list
<baweaver> I know that one now at least
<baweaver> probably should update later
<zenspider> "tricky" but reads self-explanatorily (imo)
<baweaver> yeah, same
<baweaver> kinda wish we'd just get a list.tail already.
<baweaver> fixed either way, nice catch zenspider
leat1 has quit [Remote host closed the connection]
marsjaninzmarsa has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
marsjaninzmarsa has joined #ruby
sross_work|2 has joined #ruby
NaN has joined #ruby
chinmay_dd has joined #ruby
NaN is now known as Guest23995
nomadic_ has joined #ruby
_blizzy_ has joined #ruby
Guest23995 has quit [Client Quit]
sross07 has quit [Read error: Connection reset by peer]
bluish has joined #ruby
yfeldblum has joined #ruby
bluish has quit [Client Quit]
fella6s has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
Log1x has quit [Ping timeout: 244 seconds]
nomadic has quit [Ping timeout: 244 seconds]
atzorvas has joined #ruby
shawnacscott has quit [Ping timeout: 244 seconds]
ElSif has quit [Ping timeout: 244 seconds]
akhkharu has quit [Ping timeout: 244 seconds]
hyperdrive has quit [Ping timeout: 244 seconds]
heinrich5991 has quit [Ping timeout: 244 seconds]
brainslug has joined #ruby
shawnatyger has joined #ruby
riking_ has quit [Ping timeout: 244 seconds]
ElSif has joined #ruby
PaulePanter has quit [Ping timeout: 244 seconds]
faces has joined #ruby
Log1x has joined #ruby
Log1x has quit [Changing host]
Log1x has joined #ruby
Riking has joined #ruby
Sthebig has quit [Ping timeout: 244 seconds]
wedgwood has quit [Ping timeout: 244 seconds]
jatb has joined #ruby
PaulePanter has joined #ruby
Sthebig has joined #ruby
Sthebig has quit [Changing host]
Sthebig has joined #ruby
pen has quit [Read error: Connection reset by peer]
face has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 244 seconds]
Heero has quit [Ping timeout: 244 seconds]
sshuff|gone has quit [Ping timeout: 244 seconds]
tris has quit [Ping timeout: 244 seconds]
tris has joined #ruby
pen has joined #ruby
nofxx has joined #ruby
bodie_ has quit [Ping timeout: 244 seconds]
heinrich5991 has joined #ruby
hyperdrive has joined #ruby
mistermocha has joined #ruby
Heero has joined #ruby
fella5s has quit [Ping timeout: 244 seconds]
sshuff|gone has joined #ruby
wedgwood has joined #ruby
bodie_ has joined #ruby
<craysiii> oops wrong room.
juanpablo_ has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
<atzorvas> how would you group in deeper levels here? https://eval.in/424771
juanpablo_ has quit [Ping timeout: 260 seconds]
<jhass> example output?
<atzorvas> {"1"=>["1", "1.1", "1.2", "1.1.1", "1.2.1", "1.1.2", "1.2.2"], "10"=>["10"], "11"=>["11", "11.1", "11.2"], "12"=>["12"]}
tmtwd has quit [Ping timeout: 250 seconds]
<jhass> that's a bit heterogeneous IMO, how about {"1" => {"1" => [..], "11" => [..], "12" => [..]}} ?
dlando has joined #ruby
<atzorvas> jhass: that's my current output. desired would be something like {
<atzorvas> {"1" => {"1", "1.1" => ..}, ..}
<jhass> eh, yeah, got me confused
<jhass> can you try to make a valid Ruby literal for the desired output?
dlando has quit [Client Quit]
<zenspider> that's not a valid data structure...
<zenspider> is it an array or a hash?
<zenspider> right now it is both...
rushed has joined #ruby
aedfgr has quit [Quit: WeeChat 1.3]
* jhass suspects a PHP dev :P
<shevy> haha
charliesome has joined #ruby
<jhass> it does that kind of damage to your brain
Ludiko has quit [Quit: Ludiko]
<zenspider> never really coded in it
<zenspider> you know... other than embedding it in ruby :)
<atzorvas> {"1" => ["1", "1.1" => ["1.1.1", "1.1.2"], .. ], "10" => "10"}
<shevy> ok! xmas present for you - a php book!
<jhass> atzorvas: alternatively describe your real goal
<jhass> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<zenspider> atzorvas: again... bad data
<zenspider> either you don't know what you want, or...
<zenspider> just no
<jhass> atzorvas: {"1" => ["1", {"1.1" => ["1.1.1", "1.1.2"], .. ], "10" => "10"}]} ? sure that's what you want?
laurentide has joined #ruby
<jhass> arg, didn't even make it valid
<jhass> yeah, please see ?xy
<zenspider> hah
<shevy> he can paste it another time, I have confidence
<jhass> I guess these are chapters?
robertjpayne has quit [Remote host closed the connection]
<zenspider> versions?
<baweaver> going to wait until they reply instead of finding my psychic powers
<zenspider> gotta say I "love" it when ppl come in here and ask questions with absolutely NO care in the world as to the answer
<baweaver> #ruby drinking game?
<jhass> atzorvas: how about something like http://paste.mrzyx.de/pwfdxbr6d ?
<baweaver> Aeyrix already has that bingo card somewhere.
<atzorvas> jhass: more or less. we can think them as chapters. maybe this is a better explanation http://pastie.org/10385047
<TTilus> atzorvas: that's ... uh ... you really need to explain what you are up to
<TTilus> atzorvas: what do you need that output structure for?
<jhass> atzorvas: then you can get a list of sub nodes with .keys
<TTilus> atzorvas: to help you, we need to know what do you need to do with that list of "chapters"
<zenspider> nope. this task is nonsense.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atzorvas> jhass: seems greate for a better-start
<TTilus> uh, oh...
<TTilus> zenspider: seems increasingly more and more so
<zenspider> we're being trolled or something
<TTilus> atzorvas: you really don't want us to help?
ruurd has joined #ruby
davedev24 has joined #ruby
leat1 has joined #ruby
<atzorvas> TTilus: http://pastie.org/10385059 something like that would be the use-case
<atzorvas> sorry I'm confused and everything I say is more confusing
charliesome has joined #ruby
<shevy> well there is always one way to have things in the most simple data structure possible
<shevy> but you already have it in your hash
<jhass> seems like my "tree" hash would be good
clarkenciel has quit [Quit: Leaving]
dgutierrez1287 has joined #ruby
AlexAltea has joined #ruby
<atzorvas> yeah thanks jhass, also wasn't aware of str partition which looks like a nice fit
<TTilus> atzorvas: so tree traversal?
<TTilus> atzorvas: that looks awfully lot like home assignment
jgt2 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
<TTilus> atzorvas: for that usecase in your pastie, you don't really need any intermediate structure
demonlove has joined #ruby
<TTilus> atzorvas: just iterate your list of entries and print all prefix matches (strings that start with what user entered)
demonlove is now known as server2client
<TTilus> atzorvas: rigt?
<zenspider> this looks like homework or an interview question. but more poorly described.
<TTilus> s/gt/ght/
pawnbox has quit [Remote host closed the connection]
<TTilus> zenspider: exactly
jgt1 has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
<atzorvas> yes, that's doable. but I want to later store all nodes in AR with parent & childs
mblagden has quit [Read error: Connection reset by peer]
<TTilus> atzorvas: so who's interviewing you? or where are you studying? ;)
<TTilus> atzorvas: why would you want to do that?
<atzorvas> its not a h/w, I had this stuff and wanted to create assocs
<atzorvas> I have an xls with one column like that "1" "1.1" "1.1.1" "2" etc, so I wanted to give structure before storing. I'm playing with rails & xls-files
<TTilus> atzorvas: what structure (if any) you want is completely dependent on what you wanna do with it
_blizzy_ has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
<TTilus> atzorvas: so one last time: tell us what you are up to and we'll be able to help you with datastructure stuff
<atzorvas> TTilus: I want to have a <select> where you choose 1,2 or 10 etc. then a sub-select for the childs if needed, etc
<TTilus> uh, oh
<TTilus> what for?
bronson has quit [Ping timeout: 272 seconds]
<zenspider> I'm available on a contractual basis. Otherwise, I'm not interested in this.
pawnbox has joined #ruby
<TTilus> zenspider: :D
<TTilus> atzorvas: do you possibly mean: given "chapter number", you want to find out all the immediate child chapters?
<atzorvas> TTilus: yup. but I want to retrieve data from DB, where I was thinking of parent-child relations.
<TTilus> atzorvas: if so, then my answer is the same as previous, just have an unique index on your chapter number and your prefix matches will be fast too
fluffykat has joined #ruby
<atzorvas> TTilus: so adding relations just makes it more complicate? :P
<TTilus> atzorvas: if you just wanna play around with different ways to model tree structures in sql db, just google for it, or start here http://stackoverflow.com/questions/3212886/how-to-store-a-tree-in-sql-database
<TTilus> atzorvas: with the usecase you described, yes, just more complicated
<atzorvas> great link thanks
<TTilus> atzorvas: for next time: it would have helped a lot, if you had presented yourself e.g. like this: i have this fancy table representing a tree structure (say book chapters) and i wanna play around with different ways to store that data in sql db and access via AR
<atzorvas> it would cause less headaches for sure, thanks :)
psy_ has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
server2client has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 256 seconds]
marr has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
ndrei has joined #ruby
charliesome has quit [Ping timeout: 244 seconds]
tvw has quit []
charliesome has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Mendenhall has quit [Ping timeout: 255 seconds]
sp_ has quit [Quit: leaving]
[k- has joined #ruby
arup_r has joined #ruby
davedev24 has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
lipoqil has joined #ruby
<zenspider> Or: don't bother. Your structure isn't complex. You don't have that much data. You can do everything on the fly.
codenapper has joined #ruby
lkba_ has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
jiada-chrome has quit [Quit: Connection closed for inactivity]
timonv has joined #ruby
mprelude has joined #ruby
m8 has joined #ruby
startupality has joined #ruby
<shevy> so I was searching for cgi on rubygems
<shevy> hmm... cgit ... oh no wait, that's for git :D
sp_ has joined #ruby
pandaant has joined #ruby
juanpablo_ has joined #ruby
TomItsTime has joined #ruby
<TomItsTime> ||||| >>>>> WHAT IS YOUR DOMAIN NAME WORTH? Vist >>> www.VALBOT.com <<< FREE DOMAIN VALUATION! or GOOGLE >>> VALBOT.com <<< |||||
Pupeno has joined #ruby
<jhass> !mute TomItsTime
Pupeno has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
TomItsTime has left #ruby [#ruby]
juanpablo_ has quit [Ping timeout: 260 seconds]
<zenspider> how much is valbot.com worth?
<sevenseacat> is that... 30 seconds?
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<krainboltgreene> That's the number for the below graph.
<krainboltgreene> There's a time meter above the image, cut out, sevenseacat.
<sevenseacat> ah hah.
<krainboltgreene> I would be really worried if either Chrome had 30s+ paint times or Jamie couldn't figure out the difference. :)
<sevenseacat> well I have no idea what Clearwater or who Jamie is, so
pontiki has joined #ruby
<krainboltgreene> It's a Ruby frontend framework Jamie and I are working on.
framling has joined #ruby
<pontiki> hi
yfeldblum has joined #ruby
<krainboltgreene> Hello pontiki.
ecnalyr has joined #ruby
jimms has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
mistermocha has joined #ruby
ecnalyr has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
stamina has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k3asd` has joined #ruby
Salehi has joined #ruby
<shevy> hey tikponti
SCHAAP137 has joined #ruby
mistake is now known as prosodyVeContext
ruurd has joined #ruby
<sp_> zenspider: funny.
<stamina> 1
stamina has quit [Quit: WeeChat 1.3]
thejoecarroll has quit [Ping timeout: 246 seconds]
atzorvas has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 260 seconds]
leafybasil has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
thejoecarroll has joined #ruby
jmdade has quit [Ping timeout: 244 seconds]
thebastl has quit [Remote host closed the connection]
Voker57 has joined #ruby
krz has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
leat1 has quit [Quit: leat1]
leat has joined #ruby
XF has joined #ruby
<XF> hello how to add a line colored in my ruby bot?
<XF> like for bold it is network = Format(:bold, "[#{@bot.irc.network.name}]")
<jhass> XF: with ANSI escape codes
<XF> jhass can u please edit it and give me a example?
<jhass> maybe your framework has an API to add them, check its docs
<XF> docs of what?
<XF> i really dont know much
<jhass> the framework/library you're using that gives you that :bold thing
<XF> where is it located
<jhass> your framework/library's website should have a link
<XF> framework?
<jhass> that you're using
<XF> idk what framework i use :p
* [k- grabs popcorn
<jhass> well, better figure that out
ledestin has quit [Excess Flood]
<XF> how?
<jhass> look at your code/Gemfile
<XF> cinch
ruurd has quit [Quit: ZZZzzz…]
<XF> it uses cinch
ledestin has joined #ruby
Spider has joined #ruby
Pupeno has quit [Remote host closed the connection]
* [k- blows up
leafybasil has joined #ruby
<sevenseacat> lol
davedev24 has quit [Remote host closed the connection]
<krainboltgreene> Sometimes you're new to something.
davedev24 has joined #ruby
<sevenseacat> sometimes you are. it helps in that case to take people's advice.
<krainboltgreene> New people don't always have the tools to comprehend the advice.
<krainboltgreene> And not all advice is inherently helpful.
<sevenseacat> oh believe me, we've given them to XF.
<krainboltgreene> They might not be the only ones watching.
<sevenseacat> err
leafybasil has quit [Ping timeout: 264 seconds]
davedev24 has quit [Ping timeout: 244 seconds]
<sevenseacat> people who are watching but not talking, you need to ask your questions so we can give you advice, k
radgeRayden has quit [Ping timeout: 260 seconds]
<apeiros> krainboltgreene: how about you help those new people instead of bickering?
<apeiros> you know, lead by example
* [k- grabs more popcorn
<krainboltgreene> Yes, very inviting.
<sevenseacat> passive-aggressiveness isnt very inviting either.
<krainboltgreene> Good.
<sevenseacat> so you should probably stop doing it.
XF has left #ruby [#ruby]
mistermocha has joined #ruby
charliesome has joined #ruby
benlovell has joined #ruby
benlovell has quit [Client Quit]
jimms has quit [Remote host closed the connection]
jenrzzz has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
einarj has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
<apeiros> ok, help me. teach me your ways krainboltgreene. how should I have invited you to help this person instead of bickering?
Pupeno has joined #ruby
fluffykat has left #ruby ["Leaving"]
<sp_> apeiros: This is how you intend to spend your Sunday morning?
<gavit> jhass: I think I see my problem :P I used ruby regex for rename which is perl :(
<jhass> gavit: you realize that was in #RubyOnRails earlier? :P
thebastl has joined #ruby
<apeiros> banister: ping - you around? any hint on how to get a pry session working on a socket?
thebastl has quit [Remote host closed the connection]
<banister> apeiros have you looked at pry-remote and prey-remote-em
Pupeno has quit [Ping timeout: 246 seconds]
<apeiros> only seen pry-remote-em, and discarded it because of em, which would interfere
<apeiros> maybe I can even use pry-remote directly
<apeiros> hm, though it seems to work the other way round.
* apeiros goes reading code
timonv has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
<banister> apeiros i've used pry-remote successfully when using pow locally
<apeiros> ok, it's too much to adapt easily. so either I can get pry-remote to do what I need or I'll have to drop this feature for now :)
<apeiros> thanks banister :)
alienaut has joined #ruby
ruurd has joined #ruby
UtkarshRay has joined #ruby
<apeiros> krainboltgreene: oh, nice "Fuck http://irc.freenode.net #ruby. Bunch of assholes." (https://twitter.com/krainboltgreene/status/637937740714274817)
<sevenseacat> at least not so passive now.
* sevenseacat thumbs up
einarj has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BaroMeter has joined #ruby
riotjones has joined #ruby
Salehi has quit [Quit: Leaving]
charliesome has joined #ruby
<apeiros> krainboltgreene: so we summarize: you love to bicker, either here or behind everbody's back. you don't want to help people. you're not interested in telling us how to get you to constructive
<apeiros> +be
<apeiros> makes you IMO a toxic element
<[k-> apeiros did you stalk him :O
cats has quit [Quit: Meow.]
cats has joined #ruby
<apeiros> oh, the last time he pulled such shit off I got informed about his twitter activity. and given his character I assumed he'd do it again.
<apeiros> quite telling, isn't it?
riotjones has quit [Ping timeout: 244 seconds]
juanpablo_ has joined #ruby
<jhass> no response either
<krainboltgreene> Lovely
<jhass> one wonders why you're still here though if everything is so terrible
<[k-> is this in response to me?
<jhass> as if you need something to yell about
<jhass> to whoever cares
<apeiros> [k-: my two lines were, yes
bronson has joined #ruby
<krainboltgreene> apeiros: I have you muted here, you know that, that doesn't mean you go to my twitter to goad me.
juanpablo_ has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
<sevenseacat> I forgot that whole conversation happened.
arup_r has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
<apeiros> ah yes, on twitter, he's not passive aggressive but just openly aggressive. (https://twitter.com/krainboltgreene/status/637946939745636352)
<sevenseacat> but I remember it now - 'this community so bad, nodejs so much better'
davedev24 has joined #ruby
<sevenseacat> !mute krainboltgreene
aspiers has quit [Ping timeout: 246 seconds]
<sevenseacat> operator abuse is not on, whether it's here or anywhere.
decoponio has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<sevenseacat> krainboltgreene: if you have an issue with me muting you, I'd prefer to do it in a civilized manner. you're welcome to PM me, instead of complaining on twitter.
tsujp has joined #ruby
<sevenseacat> *to handle it
<sevenseacat> ops are always available for private discussion on channel-related issues. it's in the channel rules.
<jhass> or feel free to join #ruby-banned if you want to discuss it with other ops
Musashi007 has joined #ruby
tsujp has quit [Client Quit]
leafybasil has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
bruno- has quit [Read error: Connection reset by peer]
helpa has joined #ruby
bruno- has joined #ruby
shtirlic has quit [Ping timeout: 240 seconds]
wedgwood has quit [Ping timeout: 260 seconds]
jalcine has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
shtirlic has joined #ruby
eightfold has quit [Ping timeout: 246 seconds]
jalcine has joined #ruby
leafybasil has quit [Ping timeout: 244 seconds]
wedgwood has joined #ruby
ruurd has joined #ruby
_blizzy_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
mistermocha has joined #ruby
RTG` has quit []
_blizzy_ has quit [Read error: Connection reset by peer]
iateadonut has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
_blizzy_ has joined #ruby
jgt2 has quit [Ping timeout: 256 seconds]
Ropeney has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
pandaant has quit [Remote host closed the connection]
rushed has joined #ruby
leafybasil has joined #ruby
cornerma1 has joined #ruby
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
migimunz has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
CHVNX has quit [Ping timeout: 244 seconds]
jds has joined #ruby
migimunz has joined #ruby
CHVNX has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
leat has quit [Ping timeout: 272 seconds]
leat has joined #ruby
leafybasil has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
jeadre has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
jgt2 has joined #ruby
jeadre has joined #ruby
<apeiros> oh, never noticed that Queue is now Thread::Queue
<apeiros> great to see ruby making amends to not overflow global namespace
rushed has quit [Quit: rushed]
pyon has quit [Quit: Dammit, f...ix yourself, Emacs.]
pyon has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
nanoz has quit [Ping timeout: 256 seconds]
iateadonut has quit [Quit: Leaving.]
tkuchiki has joined #ruby
<claw> hey guys
<claw> i can set process name using $0 or $PROGRAM_NAME
<claw> why cant i kill using killall ?
<claw> killall 'foobar' => foobar: no process found
iateadonut has joined #ruby
<claw> top show the process with that name by the way
<jhass> killall matches on the executable name, not the proctitle
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<claw> jhass: my executable name and proctitle also match
psy_ has quit [Ping timeout: 240 seconds]
<claw> the funny thing is that bash copletion for killall actually works and completes the foobar
<aibo> pkill -f foobar
<jhass> ^
msankhala has joined #ruby
<jhass> the hashbang replaces the process name iirc (!= process title)
Ropeney has joined #ruby
<claw> aibo: why does that work and killall does not ?
jenrzzz has quit [Ping timeout: 244 seconds]
dionysus70 has joined #ruby
<jhass> because of what I said earlier
<aibo> with pkill -f you don't need to give the exact executable name, but a pattern that matches
<aibo> so each process that has "foobar" in its commandlineis killed by the above command
jenrzzz has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
dionysus70 is now known as dionysus69
<jhass> pkill -x basically goes back to killall behavior, so you could just forget about killall
psy_ has joined #ruby
jeadre has quit [Remote host closed the connection]
jeadre has joined #ruby
<claw> y its name is actually 'ruby' and it is killed by killall ruby
<claw> anybody know how i could change that ?
mistermocha has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
<jhass> copy your ruby interpreter to another name
<jhass> or just use pkill
Kallis has joined #ruby
Meow-J has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
ruurd has quit [Quit: ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
<claw> meeeh
<claw> replace shebang
<claw> #!/usr/bin/env ruby => #!/usr/bin/ruby
Inoperable has joined #ruby
Pupeno has joined #ruby
pawnbox has quit [Excess Flood]
pawnbox has joined #ruby
<claw> now i understand what you meant jhass
<claw> thatway the process name becomes the executable name but i used env why make the process name always ruby
enebo has joined #ruby
juanpablo_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
ruurd has joined #ruby
roxtrongo has joined #ruby
leonmaia has joined #ruby
SenpaiSilver has joined #ruby
enebo has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
NeverDie has joined #ruby
Inoperable has quit [Quit: ZNC 1.7.x-git-306-ceb1c5e - http://znc.in]
Inoperable has joined #ruby
havenwood has joined #ruby
Inoperable has quit [Remote host closed the connection]
Inoperable has joined #ruby
solocshaw has joined #ruby
<havenwood> good mornin'
<Inoperable> afternoon
<apeiros> moin
<adaedra> claw #!/usr/bin/env ruby => #!/usr/bin/ruby
<adaedra> eeeer no
<adaedra> not everyone has ruby here
ecnalyr has joined #ruby
<claw> adaedra: what else to do ?
timonv has joined #ruby
<claw> env replaces the proc name with just ruby
Yzguy has joined #ruby
<claw> i want it to be the name of the executeable
tkuchiki_ has quit [Ping timeout: 265 seconds]
Yzguy has quit [Client Quit]
bruno- has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
bazbing80 has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
scripore has joined #ruby
<jhass> why can't you use pkill again?
rbennacer has joined #ruby
<jhass> or even yet better a supervisor?
Yzguy has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yzguy has quit [Client Quit]
ecnalyr has quit [Ping timeout: 252 seconds]
sdfgsdfg has quit [Remote host closed the connection]
<havenwood> claw: Tried?: Process.setproctitle 'xoxo'
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<claw> havenwood: yes its the same aus $0= or $PROGRAM_NAME=
<havenwood> claw: Depends on OS.
<claw> jhass: i could. but other applications behave just the same so why shouldn't that be possible ?
<jhass> claw: find me one that uses an /usr/bin/env hashbang too
euoia has joined #ruby
<euoia> I'm having some trouble getting https://github.com/tyage/slack-patron working - getting 404s when making requests via an apache reverse proxy, but works fine when making requests directly to localhost:9292
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
atomical has joined #ruby
<claw> jhass: probably there is no one that why i use /usr/bin/ruby now where adaedra says: dont do it
<jhass> euoia: sounds more like an #apache issue
<euoia> I see 404 in the application logs
<euoia> 185.10.203.112 - - [30/Aug/2015:13:32:41 +0000] "GET / HTTP/1.1" 404 - 0.0005
<euoia> 127.0.0.1 - - [30/Aug/2015:13:33:08 +0000] "GET / HTTP/1.1" 302 - 0.0089
freerobby has quit [Quit: Leaving.]
<euoia> seems to be the X-Forwarded-Host header that kills it
Azure has quit [Ping timeout: 246 seconds]
<euoia> if I add that header to the localhost request, I also get a 404
<jhass> weird, there don't seem to be any special middlewares https://github.com/tyage/slack-patron/blob/master/config.ru
<euoia> seems to be something like this https://github.com/gollum/gollum/issues/1001
<jhass> anyway, it's application specific most likely https://github.com/tyage/slack-patron/issues/new
Pupeno has quit [Remote host closed the connection]
stardiviner has joined #ruby
gizmore has joined #ruby
arup_r has joined #ruby
tkuchiki has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<euoia> I was able to work around it by setting ProxyPreserveHost On in the apache config
dgutierrez1287 has joined #ruby
lkba has joined #ruby
roxtrongo has quit [Remote host closed the connection]
tkuchiki has joined #ruby
nanoz has joined #ruby
dzejrou has joined #ruby
dzejrou has quit [Client Quit]
dzejrou has joined #ruby
banister has joined #ruby
poli has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
juanpablo_ has joined #ruby
iateadonut has quit [Quit: Leaving.]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
[k-_ has joined #ruby
juanpablo_ has quit [Ping timeout: 260 seconds]
araujo has quit [Ping timeout: 246 seconds]
[k- has quit [Read error: Connection reset by peer]
araujo_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
wedgwood has quit [Ping timeout: 252 seconds]
araujo_ has quit [Max SendQ exceeded]
rushed has joined #ruby
[k-_ is now known as [k-
araujo_ has joined #ruby
freerobby has joined #ruby
wedgwood has joined #ruby
araujo_ has quit [Max SendQ exceeded]
anandubajith has joined #ruby
valetudo has joined #ruby
bb010g has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Flipez has joined #ruby
majjoha has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
majjoha has quit [Quit: WeeChat 1.2]
majjoha has joined #ruby
stardiviner has quit [Ping timeout: 272 seconds]
araujo has joined #ruby
araujo has joined #ruby
banister has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
Rollabunna has joined #ruby
araujo has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
Swappticon has joined #ruby
ruurd has joined #ruby
L8 has joined #ruby
L8 has quit [Changing host]
L8 has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd_ has joined #ruby
konsolebox has joined #ruby
banister has joined #ruby
siaw has quit [Quit: siaw]
tkuchiki has quit [Remote host closed the connection]
majjoha has quit [Quit: WeeChat 1.2]
bruno- has quit [Ping timeout: 255 seconds]
majjoha has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
Soda has joined #ruby
majjoha has left #ruby [#ruby]
majjoha has joined #ruby
rushed has quit [Quit: rushed]
majjoha has left #ruby [#ruby]
majjoha has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theery has joined #ruby
kirun has joined #ruby
majjoha has quit [Client Quit]
majjoha has joined #ruby
theery has quit [Remote host closed the connection]
mon_ has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doopdapper has joined #ruby
mblagden has joined #ruby
millerti has joined #ruby
northfurr has joined #ruby
profelm has joined #ruby
<profelm> Hey guys. What are some good tools for IoT with Ruby?
banister has quit [Read error: Connection reset by peer]
<profelm> I'd like to use a Spark Core or an Arduino.
deansc has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
pocketprotector has quit [Changing host]
pocketprotector has joined #ruby
mistermocha has joined #ruby
BTRE has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
bigmac has joined #ruby
minimuffins has joined #ruby
bruno- has joined #ruby
leafybasil has joined #ruby
<[k-> mruby?
dravine has joined #ruby
<[k-> embeded things?
mistermocha has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
rbennacer has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
leat has quit [Ping timeout: 250 seconds]
sevenseacat has quit [Quit: .]
pontiki has joined #ruby
northfurr has quit [Quit: northfurr]
<pontiki> hi
gabord has joined #ruby
<gabord> Is there a way to use the rubygems.org api to get information about one particular version of a package, not just the latest?
eladmeidar has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
<nofxx> profelm, you are confusing the arm based ones with arduino
<nofxx> profelm, eg bbb, rpi
doopdapper has quit [Ping timeout: 250 seconds]
<profelm> I'm not sure I follow nofxx.
<nofxx> gabord, you can download the old ... -v
<nofxx> profelm, arduino can't run ruby , python or anything like that... only binary from avr-gcc
<nofxx> arduino = 4kb ram, 16mhz avr
<gabord> nofxx: How? Whats -v?
<havenwood> profelm: I've been enjoying playing with a couple Intel Edisons. They have WiFi and Bluetooth built in which is lovely.
<nofxx> gabord, gem install foo -v 1.0.0
<nofxx> gabord, or it's --version and I'm confusing? let me know ;)
<gabord> nofxx: I dont want to install a gem, i would like to use the API to get information about the gem. http://guides.rubygems.org/rubygems-org-api/
<nofxx> havenwood, got one but didn't even booted it yet. Using linux on it?
<havenwood> nofxx: yup Yecto
<profelm> Oh sweet, thanks havenwood .
<jhass> gabord: does curl https://rubygems.org/api/v1/versions/name.json have the info you need?
<nofxx> profelm, cheaper and also nice: bananapi
<havenwood> nofxx: jyocto*
<havenwood> yocto**
<havenwood> nofxx: Been meaning to flash them to Ubilinux.
<nofxx> havenwood, archarm !
<nofxx> wait... it is x86 ?
<havenwood> ayup
<havenwood> Low power, x86 chip with WiFi and Bluetooth.
<gabord> jhass: Im currently looking through that data, but probably yes.
<nofxx> havenwood, it's very nice, but I'm dunno, smell a rat with that connector
<jhass> gabord: got it from the page you linked btw :P
<nofxx> havenwood, I/O apart, great for just ble/wifi
<gabord> jhass: No, it doesnt have the info i need.
<jhass> which info do you need then?
<havenwood> nofxx: Was impressed how well it serves up a Phoenix app with a little solar panel for power. ;)
<gabord> jhass: I know, ive looked at that too, but it only gives me the versions. I would like to get the dependencies for a gem, but for particular version.
<havenwood> nofxx: I did have some issues compiling popular gems with Ruby. But didn't take much more than static linking to get Ruby 2.2 to compile.
freerobby has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
<nofxx> havenwood, hahah that's nice! I did something like that with the rpi, solar to a bike battery, to 24hrs off the grid server... worked, but vehicle batteries sucks
<[spoiler]> Oh, the Edison is lovely yes
<gabord> jhass: info, homepage_uri, dependencies (both runtime and buildtime). I need them for some 30-40 gems, to list these infos.
<gabord> But if you know any other source of info i could use, and interpret, i'd use that too.
<nofxx> gabord, download the gem and get the info, scrap ruby-gems.com
<gabord> nofxx: I dont want to use gem install and bundler, because they make lots of garbage on gentoo. Gentoo has a clean way of managing gems.
<gabord> Its the same as gem install, but there is a wrapper for them.
<[spoiler]> gabord: he probably meant that you download the .gem file
psy_ has joined #ruby
<gabord> [spoiler]: Oh, then its a good idea, thanks.
dorei has joined #ruby
<gabord> nofxx: Thanks, thats a good idea.
dionysus69 has joined #ruby
modern has joined #ruby
modern has joined #ruby
mistermocha has joined #ruby
* nofxx wonders if crystal uses gcc ... sorry the naiveness
<nofxx> that would mean one could test avr-gcc and write ruby on arduino hehe
minimuffins has quit [Ping timeout: 255 seconds]
<jhass> nofxx: LLVM to generate the object files, linker can be whatever
<jhass> and crystal isn't Ruby
<nofxx> jhass, ok ok, closest one can get to ruby on arduino*
<jhass> not really, it's still a GC'ed language
cabreraM516 has joined #ruby
<jhass> also hf getting a libc, coroutines, libevent2 and libunwind running there
ruurd_ has quit [Quit: ZZZzzz…]
doopdapper has joined #ruby
<gabord> nofxx: Is there a simple way to get the data in the .gem in a json or other readable way? Because i could use tar, and then other things, but i suppose there is a way.
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cabreraM516 has quit [Remote host closed the connection]
<jhass> gabord: get pry, Rubygems (the Gem module) should have something
<gabord> jhass: Thanks.
terlar has quit [Read error: Connection reset by peer]
<jhass> mmh, I wonder if all_specs has the data
siaw has joined #ruby
<jhass> or is it gone? only see latest_specs :/
maletor has joined #ruby
vali has quit [Ping timeout: 250 seconds]
maletor has quit [Client Quit]
maletor has joined #ruby
<gabord> jhass: I installed pry, i dont know what to do. pry --help doesnt give me any useful info. I dont think i need pry
<jhass> gabord: run pry
<jhass> then ls Gem
<jhass> ? Gem.foo
<jhass> $ Gem.foo
<nofxx> jhass, think I got it, thank you. A transpiler would be better for the avr scneario.
<nofxx> gabord, I was thinking parse/read the gemspec
<nofxx> that's what pry is doing I believe
icarus has joined #ruby
<jhass> no, I told them to use pry because it makes it easier to play with the rubgems API (not the web API)
<jhass> gabord: inside pry run help for more commands
<nofxx> I see. But he doesn't want to install the gems
<jhass> who said that's necessary
<nofxx> oh, cool
freerobby has quit [Quit: Leaving.]
mistermocha has quit [Ping timeout: 272 seconds]
<nofxx> new font on the block: It's like monaco with less line height https://github.com/chrissimpkins/Hack
<gabord> jhass: wtf command :D
<nofxx> mixed feelings, line looks clear, block looks denser
mistermocha has joined #ruby
ruurd has joined #ruby
vali has joined #ruby
<gabord> jhass: In pry i havent found a command that lists the dependecies for example for a gemfile.
<jhass> gabord: so what I'd do: download the specific versions .gem, extract it, read the specification (may need to deflate it first, Gem::Specification should have API for that)
<nofxx> Always go back to inconsolata anyways... which font ruby looks nicer for you? ;) ONTOPIC!!
<jhass> er, that = reading the specification, not deflating it
<gabord> jhass: Alright. I taught there was a simpler way, since there are so many programs, and even api-s for getting gem informations.
chinmay_dd has quit [Read error: Connection reset by peer]
<jhass> bundler uses a special API that given a set of gems just returns a dependency graph for it
<nofxx> gabord, thing is, unless you're building a https://gemnasium.com , there's really no use for that
<nofxx> or a ruby-toolbox
<jhass> gem seems to only show metadata about latest versions without installation
<jhass> rubygems.org version detail page doesn't have a corresponding API if you look at the code
<nofxx> yeah, you'll need a scraper robot
<nofxx> I'm sure sites like that do a gem mirror local, then you can query it like a DB
<gabord> I would like to port some gems to gentoo package system, and i wanted to automate the process as much as i could.
<nofxx> with some ruby help
Cust0sLim3n has quit [Read error: Connection timed out]
swills has quit [Quit: leaving]
kirun has quit [Quit: Client exiting]
<nofxx> gabord, from arch user pov: all gems on AUR are very or never used. Ppl gem prefer a gem install
<jhass> gabord: existing things like gem2arch (well I think there are 2 or 3 of that) could be interesting
<nofxx> you can see by the votes
<jhass> there should be gem2deb and gem2rpm like stuff too, can probably learn something from the code of one of those
<jhass> though I wouldn't be surprised if they all work only on the latest version too
<nofxx> gabord, what would be nice is hook only the gem install as script... pre-install, nope? bundler
<gabord> gentoo doesnt use rpm nor deb.
<nofxx> you can't provide binaries in gentoo anyways, right?
khebbie has joined #ruby
<jhass> sometimes I'm not sure if you're fully reading the sentences
leat has joined #ruby
leat has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
<gabord> jhass: I know, you said i could read those packages, and learn. But its not the issue, i know whats in a gem package in gentoo, and what to include, its on the rubygems website too.
siaw has left #ruby [#ruby]
leat has joined #ruby
Guest73597 has joined #ruby
Guest73597 has quit [Client Quit]
icarus has quit [Ping timeout: 250 seconds]
<gabord> jhass: I dont know ruby.
khebbie has quit [Remote host closed the connection]
<jhass> https://github.com/dcu/gem2deb/blob/master/lib/commands/deb.rb#L51-L73 this one works on the installed ones, not too interesting
<jhass> I think you're not even trying to understand the code
<jhass> that's where/how you can automate
<jhass> let's call it a day, I've done more than enough compared to your willingness to learn
krz has quit [Ping timeout: 264 seconds]
Cust0sLim3n has joined #ruby
L8 has quit [Ping timeout: 246 seconds]
leonmaia has joined #ruby
NeverDie has joined #ruby
khebbie has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
<gabord> jhass: I will not learn ruby just for that, and will not read through all the codes, because its not worth it. I could just simply write things with my hands then by that time. So there is no simple solution for this, or you just dont know it, fine, that say that then.
<jhass> I linked you three solutions that each take less than 20loc so far
<jhass> you're not trying
chinmay_dd has joined #ruby
Rollabun_ has joined #ruby
ramfjord has joined #ruby
<gabord> jhass: I dont think you understand what i want.
Rollabunna has quit [Ping timeout: 265 seconds]
majjoha has quit [Quit: WeeChat 1.2]
leat has quit [Remote host closed the connection]
deansc has quit [Remote host closed the connection]
majjoha has joined #ruby
leat has joined #ruby
<gabord> jhass: If you give me a python code, i wont have a problem with that.
juanpablo_ has quit [Ping timeout: 244 seconds]
<jhass> you want a generator that given a gem name and version lists you the gems dependencies, author, license, homepage etc.
khebbie has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
<jhass> now that's bullshit
<jhass> I came from python and learned Ruby by reading existing Ruby code
mistermocha has joined #ruby
mon_ has left #ruby [#ruby]
blue_deref has joined #ruby
theery has joined #ruby
konsolebox has quit [Quit: Leaving]
theery has quit [Remote host closed the connection]
<gabord> jhass: Im trying. I wrote that part in a .rb file, tried to call it with "rails", "3.2.1", but still the program script doesnt do anything.
<gabord> jhass: I will do it, but its not worth it really.
<jhass> paste it into pry, call the method
<jhass> then stop wasting both of our time and call it a day too, I'm done with you
<gabord> jhass: You said you have a solution, you dont. You can also paste the gem programs source code too, that can also help...
Yzguy has joined #ruby
<[k-> we aren't here to spoonfeed you
rehat has quit [Remote host closed the connection]
Rollabun_ has quit [Ping timeout: 240 seconds]
<jhass> yup, channel rule 1.3 in fact
r0x0rZ has joined #ruby
Rollabunna has joined #ruby
<gabord> [k-: My question was is there a way to get dependencies, and homepage infos in an available way for a specific version of a gem.
<gabord> So there is none you know.
mistermocha has quit [Remote host closed the connection]
r0x0rZ has quit [Client Quit]
leat has quit [Remote host closed the connection]
<[k-> yes, there is none i know, which was why i didnt say anything
<gabord> I dont have a problem with you.
leat has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
saddad has joined #ruby
majjoha has quit [Quit: WeeChat 1.2]
majjoha has joined #ruby
araujo_ has joined #ruby
rushed has joined #ruby
rushed has quit [Client Quit]
araujo_ has quit [Read error: Connection reset by peer]
araujo_ has joined #ruby
minimuffins has joined #ruby
araujo_ has quit [Client Quit]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> gem dependency --reverse-dependencies sinatra
scottschecter has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> ruby -e "p Gem.detect_gemdeps('./Gemfile').map &:name"
<shevy> how comes you always know the arcane APIs
<havenwood> ruby -e "p Gem.detect_gemdeps('./Gemfile').map { |gem| [gem.name, gem.homepage] }.to_h
<havenwood> shevy: For it was scrolled on the walls of the tower.
<havenwood> jhass: Pry \o/
<shevy> now that's an awful pastie site :)
<adaedra> it is?
<jhass> yes
<jhass> note the [n] pry
<jhass> oh, wait I'm in the wrong context, aren't I
<havenwood> shevy: I think a quick read through the new RubyGems dep resolution code is worthwhile!
<havenwood> "new"
<havenwood> As in years old. ;)
<havenwood> newish
<havenwood> I enjoy using it.
<jhass> like the new testament?
araujo has joined #ruby
araujo has joined #ruby
<adaedra> jhass: is there a newer one?
<havenwood> you have to take 1.8 in historical context. we of course wouldn't do things like that these days.
<jhass> some say so, some say otherwise
<havenwood> mm, the orthodox
<gabord> jhass: Im trying. I need this in a file really, thats why i try to do the same thing. At the end of the function, i write: puts("rails", "3.2.1"), and try it with "ruby thefile.rb", but it hangs. I dont know anything about ruby, and you tell me to use it, its not fair.
<gabord> pry is a command line, i need to use it for files, and for other interpreters.
<jhass> yep, not interested to learn
<havenwood> gabord: What would you like?
<jhass> kthxbye
<gabord> jhass: Im trying, dont u see?
<jhass> gabord: that you code something for them
<jhass> er, havenwood ^
ponga has joined #ruby
<gabord> havenwood: Some way to get the homepage, info, runtime dependecies, build dependencies for a gem, in a json or other readable format for specific gem versions.
<havenwood> jhass: You already showed gem specs, shevy showed gem executable and I showed gem names and websites from a Gemfile. I guess missing golden platter.
hanmac has joined #ruby
grenierm has quit [Quit: grenierm]
eightfold has joined #ruby
<havenwood> gabord: From the command line or from Ruby? There's a nice API as well.
<havenwood> gabord: See the code jhass pasted above. Learn the basics of Pry so you can do it yourself.
<havenwood> gabord: After getting that info from a single gem, if you have questions about how to get it from a Gemfile or Gemfile.lock with RubyGems or Bundler, ask away.
<havenwood> gabord: But put in the effort first to read and comprehend what's already been shown.
<gabord> havenwood: From the commandline. But im trying to use jhass's code: http://paste.mrzyx.de/pmnqvvkt3#line-12
<gabord> Im trying.
<havenwood> gabord: If you haven't already, try the examples I've shown above as well.
<shevy> <havenwood> ruby -e "p Gem.detect_gemdeps('./Gemfile').map { |gem| [gem.name, gem.homepage] }.to_h <-- you can apply .to_json to this for a jsoned-string
<shevy> hmm that was meant to go to gabord :)
<havenwood> JSON!?
<shevy> yeah!
<shevy> <gabord> havenwood: Some way to get the homepage, info, runtime dependecies, build dependencies for a gem, in a json or other readable format for specific gem versions. <---
<shevy> it probably is deeply covered in some mystical API already
<shevy> I have no idea how you find these things havenwood
<havenwood> shevy: Sure, you could get it from the RubyGems API. :D
<gabord> shevy: I havent tried it, because i was busy with that other code. Isnt that only for the Gemfile? I need other infos too, like, from the .gem file. But i have to uncompress it, and write a script to intepret it. There must be a simpler way from already things.
<gabord> havenwood: RubyGems API gives me only the latest versions infos, ive already tried it.
<gabord> It would be perfect, but i need specific versions.
leat has quit [Remote host closed the connection]
<havenwood> gabord: Read more docs. ;)
<shevy> gabord I don't think it is only for a .Gemfile; Gemfile came from bundler, "Gem." namespace from rubygems command itself
<shevy> but oh boy am I scared to try to find documentation ... a goole for Gem.detect_gemdeps showed up nuts
<shevy> google wants to autocorrect it to "Did you mean: Gem.detect gemspec "
<shevy> now I understand why havenwood is looking at the source
<shevy> it has no documentation!!!!
<shevy> seems to be just wrapping over Gem::RequestSet.new
<gabord> ruby -e "p Gem.detect_gemdeps('./Gemfile').map { |gem| [gem.name, gem.homepage] }.to_h" sais: Unable to resolve dependency: user requested 'simplecov (= 0.8.0.pre)'
<gabord> You may need to `gem install -g` to install missing gems
<shevy> gabord you are possibly exploring where no man has walked before :)
minimuffins has quit [Ping timeout: 255 seconds]
<havenwood> gabord: gem i -g
leat has joined #ruby
<gabord> havenwood: gentoo doesnt like to install gems that way, im trying to avoid that from far away.
<shevy> there is docu!
Torrieri has quit [Ping timeout: 246 seconds]
<havenwood> gabord: You can alternatively query through Bundler.
<havenwood> gabord: Get deps from either a Gemfile or Gemfile.lock.
<gabord> havenwood: Probably i should, will read through the manual.
arup_r has quit [Ping timeout: 252 seconds]
<gabord> But its really difficult for me, since i dont know anything about ruby nor bundler, never used them.
chry has quit [Quit: WeeChat 1.2]
bronson_ has joined #ruby
tjohnson has joined #ruby
<havenwood> gabord: Bundler::LockfileParser.new(Bundler.read_file('./Gemfile.lock')).dependencies.map { |gem| [gem.name, gem.homepage] }.to_h
minimuffins has joined #ruby
mon_ has joined #ruby
roxtrongo has joined #ruby
<shevy> that's almost identical to the prior variant :D
<mon_> hi. i am trying to load ruby irc bot i have this error: https://gist.github.com/unsangkarable/a6d72615a5e3f8c277b5
<havenwood> I guess Bundler::Dependency doesn't actually have a homepage. But yeah, close to that.
<mon_> would like to have guidance on this.
<gabord> havenwood: Didnt someone say here you shouldnt spoonfed me?
<mon_> fyi: i am using ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux-gnu]
<shevy> mon_ you must install cinch; gem install cinch, if you are lucky it will work
<havenwood> gabord: That was my silver platter. (Since it's actually not in the docs and I feel bad.)
<mon_> shevy: ok will try it
<havenwood> gabord: Anyways, learn Pry. Study what jhass showed!
<havenwood> gabord: Also I didn't run the code. It's close though. ;)
Cust0sLim3n has quit [Max SendQ exceeded]
<jhass> gabord: is this all a huge fucking xy-problem? You can install an applications dependencies to a local site dir with bundle install --deployment or bundle install --path vendor/bundle
<havenwood> Yeah, I don't know why we're doing all this. :O
<gabord> havenwood: The only problem i have with pry is that its command line as i understand that.
mleung has joined #ruby
<gabord> Im trying to create wrapper files for gems, but i need the deps.
bronson_ has quit [Ping timeout: 265 seconds]
<havenwood> gem install -g --path vendor/bundle
<havenwood> wheeee!
<gabord> :D
bruno- has quit [Ping timeout: 264 seconds]
<havenwood> I don't know about Gentoo.
<havenwood> I am a bot.
Cust0sLim3n has joined #ruby
<gabord> Alright. You asked why i need those.
michael_mbp has quit [Excess Flood]
<mon_> nowadays a lot of irc bots is using ruby?
_aeris_ has quit [Ping timeout: 240 seconds]
<havenwood> s/--path/-i
minimuffins has quit [Ping timeout: 255 seconds]
<shevy> mon_ for ruby stuff. dunno about non-ruby stuff, probably not so many bots are using ruby
<shevy> ruboto here is one bot
<havenwood> I use RubyGems and like that route.
<shevy> havenwood another one
<[k-> more like python
therealfibonacci has joined #ruby
<shevy> you can play with ruboto and make jhass happy
<pontiki> eggdrop still claims the largest number of bots, but you know.. claims...
<shevy> >> 1+2
therealfibonacci has left #ruby [#ruby]
<ruboto> shevy # => 3 (https://eval.in/424922)
<havenwood> shevy: #=> 3
<shevy> lol
darkf_ has joined #ruby
laurentide_ has joined #ruby
_aeris_ has joined #ruby
<shevy> mon_ the havenwood bot excels at finding obscure and underdocumented APIs
<mon_> ah i am used to eggdrop
<shevy> I too! so 1990 ...
<mon_> but i found a nice ruby irc bot with meme + integration with imgur
<[k-> shevy: #=> 3.000000000000002
<shevy> [k- you go to bot-repair
<mon_> i am not a coder/scripter guy, but i love to bring fun / utilities to irc to my network
<jhass> oh, [k- is a JS eval bot
arup_r has joined #ruby
<[k-> eww no
<[k-> #=> 3*
rfmind_ has quit [Remote host closed the connection]
<mon_> btw, python irc bot kinda cool too.
<shevy> the ultimate showdown - ruby versus python
<havenwood> shevy: Ruby wins. Next!
<[k-> vs elixir
michael_mbp has joined #ruby
rbennacer has quit [Remote host closed the connection]
<[k-> aha! i put havenwood in an infinite decision loop!
<[k-> havenwood: break;
laurentide has quit [Ping timeout: 244 seconds]
<craysiii> the bot is out of control, all
darkf has quit [Ping timeout: 244 seconds]
<pontiki> feh, you people make me want to go read facebook
<jhass> that's harsh
<shevy> we excite pontiki
<bougyman> facespace, mybook, twitland. we're constantly making up new ways to waste time.
<gabord> I found the solution: "gem specification rubytree --version "0.8.3" --remote" and "gem dependency rubytree ..."
<craysiii> you forgot twitfacespace
<gabord> I dont know why i needed to run a custom script for that.
<bougyman> instatwit
<shevy> bougyman I educate myself via cat videos
<[k-> s/i/a/
<[k-> ooooo burn
mleung has quit [Quit: mleung]
<bougyman> gabord: you just showed us your custom script for that.
laurentide__ has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
<bougyman> you see what you did, there?
<shevy> yaml \o/
<gabord> bougyman: That was jhass's idea, i showed that script after he said i need scripting...
<bougyman> which you did.
dgutierrez1287 has joined #ruby
<bougyman> you just scripted it in bash.
<bougyman> you're in #ruby, y'know. You'll find help in ruby scripting here.
<shevy> bash scripting \o/
<gabord> bougyman: :D What? So every answer will be a ruby script? :D Even if i wanted to know a thing that the gem program is perfectly good for?
<bougyman> i bash script, too. but I look for bash scripting help in #bash or sometimes a linux channel.
<bougyman> not in #ruby.
<[k-> meeeeeeeeercat
laurentide_ has quit [Ping timeout: 244 seconds]
* craysiii refills the popcorn
<[k-> E: out of stock
<gabord> Anyway thanks havenwood and shevy. I will not thank jhass, because he is not nice.
<adaedra> you're right, that will show him.
<craysiii> nice used to mean stupid or wanton in the 13th century :)
<gabord> adaedra: I hope!
rakm has joined #ruby
dgutierrez1287 has quit [Ping timeout: 260 seconds]
<shevy> IRC makes people snarky!
The_Phoenix has quit [Read error: Connection reset by peer]
<shevy> and lazy
<shevy> in fact - we all should not IRC
<gabord> shevy: I wasnt lazy. I tried, and tried, and then found the solution.
<mon_> shevy : already solved the cinch issue. now i got this error: https://gist.github.com/unsangkarable/07605b8ae353ffa6f73c
<shevy> gabord no, not you - everyone!
<mon_> my friend told me, he already installed the RMagick
<shevy> mon_ huh
<gabord> shevy: Taught you meant me.
<[k-> so only gabord should be on irc?
<[k-> thought*
al2o3-cr has joined #ruby
<shevy> mon_ well "gem install rmagick" but I am not sure why you need it, also you may need imagemagick, which is non-ruby, before you can use rmagick
<shevy> does this memebot draw something?
<mon_> shevy : its the dependencies of irc bot
<mon_> shevy : yes
<jhass> mon_: does gem list show rmagic?
<shevy> I see; in that case you must install rmagick
<jhass> mon_: or do you see a Gemfile ?
tmtwd has joined #ruby
<mon_> <mon> !meme shrek shevy;help me!
<mon_> <@memebot> mon: http://i.imgur.com/gtcwRoL.jpg
<shevy> [k- we should all log-off from IRC :)
<shevy> damn
<mon_> oops
<shevy> that guy has stolen my nick
<[k-> if you can find me afterwards
<mon_> jhack : how to see the Gemfile?
<shevy> mon_ try "gem install rmagick", I think it will fail due to some missing imagemagick component, so then you must install imagemagick first
<mon_> shevy : ah i am in the middle man
<shevy> or rather the headers/-dev/devel part, distributions always give you extra work to do
<jhass> mon_: it's a file, it should be next to bot.rb or in a directory above it
<mon_> i need to write something to ask the owner of the shell to install etc etc to my account
<shevy> aha
<mon_> jhack: yes, there's Gemfile
<shevy> if you have a home account, you could even try to compile imagemagick into the home dir :D
<mon_> uhm home account.
<mon_> do u mean my account?
<jhack> mon_: youmean jhass
<craysiii> ~
<mon_> mon@robdrake:~$ pwd
<mon_> sorry jhack. typo
<jhass> mon_: do you have a bundle command?
<jhack> haha np
<mon_> i am not sure. but i could try to check it
<mon_> how to check it?
<jhass> which bundle
<mon_> ah maybe this irc bot a bit hard for amateur user like me who love irc bots
<mon_> xD
<mon_> i am used to eggdrop.
<jhass> don't give up yet
<mon_> mon@robdrake:~$ bundle install
<mon_> -bash: bundle: command not found
<jhass> okay, try gem install bundler
<adaedra> what's an irc bot, we know nothing about irc bots here
<jhass> mon_: not it's bundler for gem install, not bundle
<jhass> *note
Rinzlit has quit [Ping timeout: 246 seconds]
<mon_> jhass
<jhass> sudo gem install ?
<jhass> *bundler
<mon_> i am not the owner of the server. i am just the user
<jhass> well, gem install --user-install bundler should work too
<jhass> but then you have to add a directory to your $PATH most likely
<jhass> it should inform you which during gem install if so
<mon_> wow. ok it's complicated.
<mon_> xD
<mon_> uhmm..
<mon_> <jhass> well, gem install --user-install bundler should work too <-- should type this?
<jhass> yes
scripore has joined #ruby
juanpablo_ has joined #ruby
<shevy> --user-install will install into your home directory
<mon_> gem install --user-install bundler --user-install <-- like this?
<shevy> more than once is overkill :D
<jhass> no, a single --user-install is enough ;)
<mon_> ERROR: While executing gem ... (Gem::CommandLineError)
<mon_> Please specify at least one gem name (e.g. gem build GEMNAME)
<jhass> you stripped the bundler
<jhass> gem install --user-install bundler
<shevy> I like stripping
<jhass> shevy: feel free to do one in #ruby-offtopic
<miah> `gem install --user-install bundler`
<miah> without the `
<mon_> here u go.
mhenrixon_ has quit [Quit: ZNC - http://znc.in]
<miah> looks like it worked
<mon_> yeah it looks like it worked.
<miah> so, note "WARNING: You don't have /home/mon/.gem/ruby/2.2.0/bin in your PATH,"
<mon_> O.o
<mon_> what does that mean?
<miah> do this
<shevy> it will be there
<jhass> mon_: what's your echo $SHELL ?
<shevy> /home/mon/.gem/ruby/2.2.0/bin/bundler
<shevy> erm, bundle
<miah> PATH=$PATH:/home/mon/.gem/ruby/2.2.0/bin
<mon_> it's /bin/bash
<miah> now bundle will be in your path
<jhass> shevy: both these days actually
<miah> but only in this active shell
<jhass> mon_: add PATH=$PATH:/home/mon/.gem/ruby/2.2.0/bin to your ~/.bashrc
<miah> ^
<miah> do that
anandubajith has quit [Quit: Connection closed for inactivity]
<mon_> ok hold on. i think i still remembered how to do that
<havenwood> echo "PATH=\$PATH:/home/mon/.gem/ruby/2.2.0/bin" >> "$HOME/.bashrc"
juanpablo_ has quit [Ping timeout: 255 seconds]
<havenwood> mon_: ^
<mon_> oh ok. btw this channel have many friendly and helpful user even thou i am new
<mon_> xD
<mon_> ^ ok done add those path
<jhass> mon_: now source ~/.bashrc
<jhass> and then bundle -v should print 1.10.6
<mon_> Bundler version 1.10.6
<mon_> ah yes
<miah> awesome
<jhass> okay, are you still in the directory with the Gemfile ?
<mon_> yes. i am still in the directory with the Gemfile
<jhass> now run bundle install --deployment
<mon_> ok got error
<shevy> yeah that will be a harder problem since something has to be compiled
christiandsg has joined #ruby
<havenwood> mon_: Tell your sysadmin to install ruby-dev.
<jhass> you'll need to ask your admin to install the development tools for Ruby, on Debian/ubuntu it's ruby-dev
<shevy> mkmf.rb is missing
sideshowcoder has joined #ruby
<mon_> ok telling him now.
Yzguy has quit [Quit: Zzz...]
christiandsg has quit [Read error: Connection reset by peer]
<mon_> ok it's done installed
<mon_> he told me it's done.
<mon_> ruby2.2-dev installed
<shevy> \o/
lavros has quit [Quit: leaving]
<shevy> $defs = []
<shevy> ewww
<jhass> mon_: alright, retry bundle install --deployment
<mon_> ok installing ...
eladmeidar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
<jhass> looks like the development headers for imagemagick are missing
<jhass> imagemagick-dev? idk
<jhass> it's another package your admin would need to install
<jhass> imagemagick libmagickcore-dev libmagickwand-dev
<jhass> according to rmagick wiki
bigmac has quit [Ping timeout: 244 seconds]
<mon_> i see.
<mon_> hmph.
kdman has quit [Ping timeout: 265 seconds]
<mon_> sigh. quite hard to set up this bot
<jhass> rmagick is a pain, agreed
<mon_> i might need to ask another shell provider to set up this environment
<mon_> ok. if i still want to run this bot: https://github.com/paradox460/memebot
<mon_> can u guys advice me what i need to tell the admin (i want to ask another shell provider) to install the dependencies and what other things need to be reminded of
leonmaia has joined #ruby
<shevy> mon_ see the good side - once you have imagemagick working, it'll be trivial from this point
jenrzzz has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
<jhass> not upfront no, I figure these kind of stuff out as I go reading error messages
<mon_> <+robdrake> the libmagickcore-dev and libmagickwand-dev are installed
<mon_> <+robdrake> thank jhass from your sysadmin for me for telling you what packages you need
jenrzzz has joined #ruby
<mon_> run again the bundle install?
dfinninger has joined #ruby
<jhass> alright nice, yes
casadei has joined #ruby
kubunto has joined #ruby
nisstyre has quit [Ping timeout: 250 seconds]
jordanm has joined #ruby
<mon_> looks that it is completed
<jhass> looking good, yes!
<jhass> now try bundle exec ruby bot.rb
<mon_> not ruby bot.rb ?
<mon_> but bundle?
enebo has quit [Quit: enebo]
<jhass> yes, bundle exec ruby
nofxx has quit [Ping timeout: 255 seconds]
leonmaia has quit [Client Quit]
<mon_> ok now it's the code script error in bot.rb
<mon_> HAHA
<mon_> lulz
dfinninger has quit [Remote host closed the connection]
fullmetalkunt has joined #ruby
<fullmetalkunt> is ruby the programming language or the gem?
rbennacer has joined #ruby
<mon_> ruby is the programming language
<mon_> as i can think of
<fullmetalkunt> but why is it called a gem?
<mon_> hmm
<mon_> not sure.
<shevy> mon_ a script error is good, you can fix that without having to ask a sysadmin :)
<apeiros> fullmetalkunt: please change your nick
<fullmetalkunt> apeiros: that's the name of my band
<shevy> it's our old friend again
<apeiros> fullmetalkunt: I'm not discussing this.
<kubunto> fullmetalkunt: gems are ruby's librarys
<shevy> kubunto it's the old nick-dude; he isn't interested in answers really
<kubunto> shevy: gotcha
<apeiros> !ban fullmetalkunt !T 1w unacceptable nick
fullmetalkunt was banned on #ruby by ChanServ [fullmetalkunt!*@*]
fullmetalkunt was kicked from #ruby by ChanServ [Banned: unacceptable nick]
<miah> "A ruby is a pink to blood-red colored gemstone, a variety of the mineral corundum (aluminium oxide)."
<miah> i wonder.
ramfjord has quit [Ping timeout: 255 seconds]
<mon_> err now i i need to wait the scripter of the irc bot to reply msg
<shevy> you wonder that aluminium can be so pretty :)
Yzguy has joined #ruby
Pumukel has joined #ruby
<mon_> jhass, shevy, miah, havenwood, : thanks a lot
Pupeno has joined #ruby
<jhass> yw
bigmac has joined #ruby
<mon_> appreciate ur time. a very friendly channel indeed.
<shevy> mon_ can you do memes now?
<mon_> shevy: i wish i can. but i got error in the config file.
<mon_> maybe need to get the dev/scripter told what's wrong with the config file
<[k-> that's easy to fix
bruno- has joined #ruby
<kubunto> how recent is the string interpolation in ruby?
<[k-> add a new line
<[k-> - #ruby
<mon_> btw is there any differences by doing bundle exec ruby bot.rb / ruby bot.rb ?
<mon_> [k- hold on
<havenwood> mon_: Prefixing `bundle exec` runs the command "in the context of your Bundle."
<apeiros> mon_: if you have rvm, `ruby bot.rb` might actually be run using `bundle exec ruby bot.rb`
<havenwood> mon_: So with the gem versions from the Gemfile.lock.
<jhass> apeiros: I thought they stopped installing rubygems-bundler by default?
<havenwood> jhass: nope
<jhass> :(
<havenwood> jhass: stopped installing bundler by default
<jhass> clever... not
<havenwood> jhass: but still rubygems-bundler
<mon_> <[k-> add a new line <-- in the config file or in the code itself?
<[k-> the config where you specify the channels
<jhass> mon_: or in more general terms: it makes sure the and only the gems you installed with bundle install can be loaded
Yzguy has quit [Ping timeout: 250 seconds]
<jhass> (so both, makes sure it works in the first place and disables all others)
kdman has joined #ruby
<[k-> or alternatively, use [#ruby] instead
<mon_> it seems the same error
<[k-> channels: ["#ruby"]
Pupeno has quit [Remote host closed the connection]
NotConnorM has joined #ruby
<mon_> ok bot is running
<[k-> or channels: <new line> - "#ruby"
<mon_> but it didn't try to join #ruby
<jhass> with the - indented by two spaces towards channels:
Pupeno has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
<NotConnorM> what is the best way to use your ruby and rails skills to redesign a bunch of white supremacist sites? i'd like to make them look pretty because right now they're awful and could this be a good thing to show on my portfolio?
rbennacer has quit [Remote host closed the connection]
ssd7 has joined #ruby
Pupeno has quit [Remote host closed the connection]
kubunto has quit [Quit: nothing is true, everything is permitted]
howdoi has quit [Quit: Connection closed for inactivity]
<mon_> ah the bot is connected but it didn't join the channel
<jhass> !mute NotConnorM racism is not welcome here, go home
SenpaiSilver has quit [Quit: Leaving]
<jhass> mon_: try
<jhass> channels:
<jhass> - "#ruby"
<[k-> maybe remove the #
<jhass> the spaces are important
NotConnorM has left #ruby [#ruby]
<jhass> [k-: not inside quotes, no
bb010g has quit [Quit: Connection closed for inactivity]
ConnorM has joined #ruby
<[k-> unless the bot will auto insert the #
<havenwood> !mute ConnorM
ConnorM has left #ruby [#ruby]
<apeiros> lol
<mon_> eggMeme
<mon_> yeah still not joining
leonmaia has joined #ruby
<mon_> maybe got hidden tips or tricks that the dev forgot to state in his readme
candicecolored has joined #ruby
<mon_> haha
<havenwood> !mute candicecolored
<jhass> does it have any output?
candicecolored was banned on #ruby by jhass [jhass]
candicecolored has left #ruby [#ruby]
<mon_> yeah. it is in verbose mode
<mon_> which i can see the bot connecting to the server
ehth77 has joined #ruby
jeadre has quit [Remote host closed the connection]
<mon_> ahh is it because this channel require registered nickname?
<mon_> no?
<jhass> actually that's not active atm
<jhass> gist the output?
havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<towler> 0 p
<towler> quit
jeadre has joined #ruby
<jhass> towler: /quit
<arup_r> when Ruby 3 is coming any idea ?
<jhass> in the future
BaroMeter has quit [Remote host closed the connection]
<havenwood> arup_r: Look forward to Ruby 2.3.0 for Christmas.
<arup_r> I mean this Dec ? :)
<arup_r> ok
freerobby has joined #ruby
rehat has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rehat> is there a URI like module for directory paths?
<jhass> rehat: Pathname perhaps
<rehat> thanks jhass havenwood
Rinzlit has joined #ruby
<mon_> <jhass> - "#ruby" <-- what do u mean by this?
AlexRussia has joined #ruby
<mon_> jhass: same thing. bot connected but it didn't join #ruby
nisstyre has joined #ruby
<jhass> mon_: so, gist the log?
<mon_> hold on. it's quite long
Meow-J has joined #ruby
<jhass> mon_: it doesn't look like your config file is correct :/
araujo has quit [Quit: Leaving]
<mon_> hmm
<jhass> did you add some indentation or so?
<jhass> or did you edit the example instead of config.yml?
browndawg has joined #ruby
rehat has quit [Read error: Connection reset by peer]
<mon_> i renamed the example to be config.yml
<jhass> mon_: look at my example again
<jhass> you have to add two spaces before -
<browndawg> Hi, trying to write a rakefile to compile haml/*.haml -> html/*.html and failing hard. Can someone take a look at this? https://pastee.org/gekep
DoubleAC has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<mon_> ok
<browndawg> it says it doesn't know how to build html/a1.html, so my .html => .haml rule is probably bad
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
rbennacer has joined #ruby
kubunto has joined #ruby
<mon_> jhass : same thing.
<jhass> mon_: still /home/mon/memebot/vendor/bundle/ruby/2.2.0/gems/cinch-2.1.0/lib/cinch/bot.rb:390:in `-': no implicit conversion of nil into Array (TypeError ?
sarkyniin has joined #ruby
freerobby has quit [Quit: Leaving.]
<mon_> jhass : yes. still have it
<jhass> mon_: and ruby -ryaml -e "p YAML.load_file('config.yml')['channels']" prints "nil"?
<mon_> do i need to stop first the bot?
<mon_> and type that?
rbennacer has quit [Remote host closed the connection]
<jhass> you can do it on a separate shell in the same directory, it doesn't matter either way
<mon_> mon@robdrake:~/memebot$ ruby -ryaml -e "p YAML.load_file('config.yml')['channels']" prints "nil"
<mon_> ["#ruby"]
<jhass> wait, what?
<mon_> ?
<jhass> you copy pasted the prints "nil" or ?
rbennacer has joined #ruby
<mon_> yes
<jhass> so it actually works
<mon_> ruby -ryaml -e "p YAML.load_file('config.yml')['channels']" prints "nil" <-- i typed this
<jhass> hrm
<jhass> ah, it's erroring on modes, not channels now, sigh
browndawg has quit [Ping timeout: 272 seconds]
jhack has quit [Quit: jhack]
<jhass> idk what it's for, just removing it from config.yml should work though
<jhass> mon_: so try removing the modes: line
Azure has joined #ruby
eggMeme has joined #ruby
<mon_> hi eggMeme
<mon_> !memes
<eggMeme> mon_: 10guy, aaduck, aliens, allthethings, ariel, bad, bcat, blb, bpuffin, brace, bravebear, bsm, bush, butthurt, bwolf, cash, catte, comrade, costanza, cpthind, dank, doge, everywhere, fedora, feels, fem, fry, fwp, gator, gears, ggg, goat, god, grandma, grumpycat, hartmann, hitler, hogscalder, impossibru, interesting, iwolf, jducreux, jimmies, jobs, johnny, keanu, limes, maymay, mayonnaise, menswarehouse, money, mordor, morpheus, neckbear, oag, obama, ...
<eggMeme> ... ogre, onlyone, philo, picard, picard2, rent, rosen, s3kid, santa, sap, seal, sexyfry, sfr, shotweb, shrek, skid, skid2, smg, smugbob, spoderman, steve, ugly, unclesam, wonka, yee, and yuno
<eggMeme> mon_: Usage: !meme [m:<memename>] <top>;<bottom>
<mon_> let me try
<mon_> !Meme m:shrek hello;ruby
<mon_> wow it is working now!
<mon_> YEAYYYYY!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<apeiros> oh, almost kicked :D
<jhass> me too xD
Vile` has joined #ruby
<mon_> TOO COOL
Pupeno has joined #ruby
<mon_> i mean. from fixing the ruby thingy. magic, blabla then the code
<jhass> well, config :P
<mon_> thanks jhass and ruby's chatters
darkf_ is now known as darkf
<mon_> now i need to scroll back our conversation and take note what have i done.
<jhass> ?logs
<ruboto> You can find a log of this channel at http://irclog.whitequark.org/ruby/
<mon_> @@
lkba has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
j_mcnally has joined #ruby
eggMeme has quit [Remote host closed the connection]
ohaibbq has joined #ruby
<kubunto> how can i get the location ruby is looking at for files?
chinmay_dd has quit [Read error: Connection reset by peer]
<apeiros> kubunto: $LOAD_PATH and `gem env`
Blaguvest has quit []
Pupeno has quit [Remote host closed the connection]
<apeiros> $LOAD_PATH within ruby, and `gem env` in your shell
rbennacer has joined #ruby
kies has quit [Ping timeout: 260 seconds]
leonmaia has joined #ruby
<kubunto> whats ruby''s equivalent to pydoc?
craysiii has quit [Remote host closed the connection]
<havenwood> kubunto: rdoc i suppose
<havenwood> kubunto: It's in the stdlib: http://ruby-doc.org/stdlib/libdoc/rdoc/rdoc/index.html
weemsledeux has joined #ruby
voltalio has joined #ruby
browndawg has joined #ruby
bnizzle has left #ruby [#ruby]
msankhala has quit [Read error: Connection reset by peer]
ehth77 has quit [Quit: Leaving]
chouhoulis has joined #ruby
<kubunto> how would i run it from commandline
<kubunto> (i am trying rdoc matrix as a sample with no success)
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
slani has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
codecop_ has joined #ruby
jeadre has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
majjoha has quit [Ping timeout: 240 seconds]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> kubunto: do you want to read docs or generate docs?
jeadre has joined #ruby
petricore has joined #ruby
<kubunto> read
<apeiros> `ri Matrix`
<apeiros> requires the docs of your core & stdlib to be generated
<apeiros> if your ruby is installed via rvm: `rvm generate docs`
michael_mbp has joined #ruby
<apeiros> with some package managers, it's a separate package to install
bruno- has joined #ruby
juanpablo_ has joined #ruby
michael_mbp has quit [Excess Flood]
slani has joined #ruby
ecnalyr has joined #ruby
michael_mbp has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<Papierkorb> if you're using pry, you can also use the show-doc command kubunto
juanpablo_ has quit [Ping timeout: 260 seconds]
Mendenhall has joined #ruby
ecnalyr has quit [Ping timeout: 255 seconds]
jeadre has quit [Remote host closed the connection]
jeadre has joined #ruby
rbennacer has quit [Remote host closed the connection]
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
<Inoperable> evening
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop_ has quit [Quit: Išeinu]
maletor has joined #ruby
leat has quit [Ping timeout: 246 seconds]
ohaibbq has quit [Quit: Leaving...]
<Inoperable> how do I limit the Find.find method to not traverse subdirs? quick tip?
<jhass> Use Dir.entries.select or Dir.glob? :P
<Inoperable> newb here, so no funny faces making! :>
<Inoperable> thx for the answer though ;)
rbennacer has joined #ruby
khebbie has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
laurentide__ has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
decoponio has quit [Quit: Leaving...]
<mon_> jhass: so after reading a log
leat has joined #ruby
pipework has left #ruby ["Textual IRC Client: www.textualapp.com"]
laurentide has joined #ruby
theery has joined #ruby
theery has quit [Remote host closed the connection]
Rinzlit has quit [Ping timeout: 250 seconds]
<mon_> so the conclusion is: i need to install ruby-dev and imagemagick libmagickcore-dev libmagickwand-dev ?
<jhass> uh, the paste is probably already expired
<jhass> it depends on what's already available on the system
<mon_> ic
<mon_> gem install --user-install bundler & run bundle install --deployment is the important thing right?
voltalio has joined #ruby
<jhass> pretty much
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<mon_> ok thanks.
s00pcan has joined #ruby
<mon_> gonna ask the admin to install it.
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
s00pcan has quit [Read error: Connection reset by peer]
hinbody has joined #ruby
Pupeno has joined #ruby
<shevy> arup_r I'd assume it will come in late 2016
aspiers has joined #ruby
<kubunto> i assume there is a way to install mysql gem on a raspberry pi yes?
s00pcan has joined #ruby
khebbie has quit [Remote host closed the connection]
s00pcan has quit [Read error: Connection reset by peer]
UtkarshRay has quit [Quit: Leaving]
grenierm has joined #ruby
kirun has joined #ruby
kadoppe has quit [Ping timeout: 272 seconds]
kadoppe has joined #ruby
bazbing80 has joined #ruby
darkf has quit [Quit: Leaving]
Mendenhall has quit [Ping timeout: 240 seconds]
<shevy> all gems can be installed via gem install <name>
rbennacer has quit [Remote host closed the connection]
<shevy> the majority of .gem files will be plain .rb files so it is essentially a copy-operation; a few may have to compile something like bindings to mysql in this case
<shevy> so you may first have to ensure that mysql is working, and that the dev/.h files also exist
<mon_> hmm..
<mon_> need to find how to change the bot's identd
<bazbing80> does anyone know how where rspec's "rspec" command comes from? I would have thought "rspec" would be a file in the rspec gem's bin directory? https://github.com/dchelimsky/rspec/tree/23e01f2e8cb886034b9b6ab0d87a9398284ed7e4/bin I also know this gem has been deprecated, but I can't find an rspec file in the bin directories of the current rspec gems
<bazbing80> so where does the command "rspec <directory>" come from?
<shevy> rspec-core-3.3.2/exe/rspec
dzejrou has quit [Quit: dzejrou]
* shevy wins!
<arup_r> ok shevy
<jhass> ?cookie shevy
<ruboto> shevy, here's your cookie:
meatherly has joined #ruby
<shevy> weird directory name
<shevy> isn't it normally bin/ ?
<jhass> I guess somebody got pedantic and pointed out that it's not a binary but an executable
<shevy> hmm good point
<jhass> but yeah, it's bin
<bazbing80> jhass I see. thanks for the hint
meatherly has quit [Client Quit]
<bazbing80> :)
rbennacer has joined #ruby
meatherly has joined #ruby
alienaut has quit [Remote host closed the connection]
ninedragon has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
christiandsg has quit [Read error: Connection reset by peer]
<kubunto> looks like it wont cooperate with me
christia_ has joined #ruby
atzorvas has joined #ruby
<kubunto> pi seems to either hang or flat out deny new gems pulled from online
browndawg has quit [Quit: Leaving.]
Rinzlit has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
pranny has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
<shevy> kubunto you can also download standalone; for instance there is a download link on the right side https://rubygems.org/gems/mysql2
chipotle has joined #ruby
Torrieri has joined #ruby
<shevy> this way you can ensure that the .gem at least will be available locally
tubuliferous_ has joined #ruby
ddrmanxbxfr_pc has joined #ruby
<shevy> I have never tried to compile on pi so I don't actually know if that can work... can you compile stuff like bindings on pi?
dionysus69 has joined #ruby
<kubunto> i dont know
<kubunto> all i know is not fun
ddrmanxbxfr_pc has quit [Read error: No route to host]
<kubunto> and not successful
<cscheib> sure you can compile on raspberry pi
<cscheib> just won't be quick.
Swappticon has joined #ruby
<cscheib> but... from that error message... appears as though you're missing mkmf
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kubunto> which means?
<cscheib> install the mkmf gem
Cust0sLim3n has quit [Max SendQ exceeded]
<cscheib> most likely.
<kubunto> how long should the install take?
startupality has quit [Ping timeout: 244 seconds]
Cust0sLim3n has joined #ruby
<kubunto> o cant find it
startupality has joined #ruby
<shevy> kubunto I assume you use some debian based distribution
<kubunto> yes
<cscheib> looks like it should be in stdlib, weird
<shevy> they make users unhappy by eliminating mkmf from the default install; you can install it back... let's see...
mjuszczak has joined #ruby
<cscheib> apt-cache search mkmf
<kubunto> ill look at it on my laptop later
eightfold has quit [Ping timeout: 246 seconds]
<cscheib> then apt-get install the package
DCameronMauch has joined #ruby
DCameronMauch has left #ruby [#ruby]
<shevy> aha
<shevy> I have an old and possibly outdated variant... don't use that one, but I remember it worked for me years ago: aptitude install ruby1.9.1-dev
grenierm has quit [Quit: grenierm]
<kubunto> was just hoping to get a good gem onto my machine
<cscheib> ruby-all-dev
<cscheib> apt-get install ruby-all-dev
<shevy> the joy of finding out obscure names :)
<shevy> \o/
<kubunto> nope
<kubunto> like i said, i give up
<kubunto> my laptop should do much better anyway
<cscheib> you haven't tried particularly hard. you're almost there.
<cscheib> there're just differences between debian distros and versions
<cscheib> which distro are you running
<kubunto> ran down too many holes (not all of which i have mentioned)
<kubunto> rasbian
autrilla has joined #ruby
<cscheib> ah, yea, so (kinda) pure debian. I can only help so much there
profelm has quit [Read error: Connection reset by peer]
<cscheib> I don't have any debian boxes to run stuff against
<shevy> he sounds demotivated
<kubunto> whole point was to get information because ruby is an ace at string interpolation
<kubunto> this is correct
profelm has joined #ruby
mjuszczak has quit [Ping timeout: 264 seconds]
<cscheib> ruby can be a PITA, I'm starting to find it's easier to just get RVM or similar and not use the system packaged rubies
<cscheib> distros do too much crazy crap to the packages
<kubunto> any different than python?
minimuffins has joined #ruby
christia_ has quit [Read error: Connection reset by peer]
<Papierkorb> cscheib: depends on the distro
<Papierkorb> ArchLinux doesn
christiandsg has joined #ruby
<Papierkorb> 't patch it
<kubunto> today i realized that i dont even have pip on my pi
poli has quit [Ping timeout: 260 seconds]
<shevy> kubunto I remember many years ago, a python developer complained
<shevy> I don't know which part it was, but he said that distributions modify the default (in ruby, removing mkmf.rb by default is a good example), and in doing so, they destroy the possibility for a developer to have a reliably working python installation (by default)
<shevy> I don't remember what part it was in python though, and it was like 10 years ago by now
<kubunto> fair enough
dionysus69 has quit [Quit: dionysus69]
minimuffins has quit [Ping timeout: 255 seconds]
<kubunto> i do like tho how ruby does mysql from the gem i found
<kubunto> compared to python
mhib has quit [Remote host closed the connection]
lucyinthesky has joined #ruby
<shevy> I haven't played much with mysql, I usually "do it right", then I go with postgreSQL or I be lazy and just use sqlite (for small databases only though)
eightfold has joined #ruby
<shevy> I lately read that github is using mysql predominantly internally
<adaedra> lot of people do.
chouhoulis has quit [Remote host closed the connection]
<kubunto> is string interpolation going anywhere any time soon?
<atmosx> shevy: since I'm using orms, truth to be told it's all dbs to me :-P
chouhoulis has joined #ruby
Contigi has joined #ruby
<atmosx> cscheib: generally speaking, I avoid distribution-based rubies like the plague.
Swappticon has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
<atmosx> cscheib: rvm or rbenv or if I need to run a server, I install ruby manually.
<cscheib> atmosx: I'm a relative newbie, so this is a recent revelation for me
jenrzzz has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
einarj has joined #ruby
<cscheib> atmosx: why wouldn't you use rvm on your server?
<atmosx> cscheib: because it creates problems with init scripts and requires rvmsudo to run some gems.
<cscheib> makes sense
<atmosx> cscheib: I could find my way through all of this, but there's no reaosn to make my life complicated. Ruby (from source code) works awesomely well, init scripts work fine (at least with debian-derivatives) so...
BLuEGoD has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
<atmosx> the only I use system's ruby is my FreeBSD server
<cscheib> not a real fan of deploying server stuff directly from source... although with FPM, it'd be simple enough to package it
nanoz has quit [Quit: <3]
<atmosx> cscheib: me either, but it's just one package and as I said it makes life way easier.
<adaedra> atmosx: pkg or ports?
<cscheib> yea - look into FPM, it'll package it right up for you, very simple
<adaedra> it's ruby, not php
<adaedra> :º
<atmosx> adaedra: ports, I rarely use pkg.
Mia has quit [Read error: Connection reset by peer]
<cscheib> fpm has nothing to do with PHP in this context
<adaedra> so much build time.
<adaedra> cscheib: :)
<cscheib> one of those "super useful to have in your ops toolbox" tools
kubunto has left #ruby [#ruby]
Mia has joined #ruby
Mia has quit [Read error: Connection reset by peer]
fantazo has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
blue_deref has quit [Quit: Taking myself out of hear.]
bruno- has joined #ruby
jeadre has quit [Remote host closed the connection]
jeadre has joined #ruby
eightfold has quit [Ping timeout: 246 seconds]
Jackneill has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
last_staff has joined #ruby
mon_ is now known as huhdtiijcf
huhdtiijcf is now known as mon_
iceden has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
BLuEGoD has joined #ruby
NeverDie has joined #ruby
hifriends has joined #ruby
<hifriends> Im having some trouble with this. In my gemfile how do I say id like a version 3 or rails and it can be any version of 3 but not 4.x ? gem 'rails', '~> 3' ?
leonmaia has joined #ruby
mrtg9970 has joined #ruby
mrtg9970 has quit [Max SendQ exceeded]
juanpablo_ has joined #ruby
laurentide has quit [Ping timeout: 244 seconds]
laurentide has joined #ruby
pandaant has joined #ruby
<shevy> cscheib cool, I just checked that out... did not know it exists
<shevy> I had many years ago wanted to write a package-agnostic package manager in ruby; sorta gave it up
cellmaker has joined #ruby
pawnbox has quit [Remote host closed the connection]
<jhass> hifriends: ~> 3.0
juanpablo_ has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
<cellmaker> Greetings. I would like to Benchmark an entire script but am not grokking how one does that. Can anyone elucidate? Thx in advance
<jhass> hifriends: ~> a.b.c is >= a.b.c, < a.b+1.0, thus ~> a.b is >= a.b, < a+1.0
<hifriends> jhass: thanks, trying that. becuase what im doing is saying only 3 with out the .X
ddrmanxbxfr_pc has joined #ruby
<jhass> cellmaker: if it's long running enough, time should get you into a rough category and startup time or warmup shouldn't be significant
northfurr has joined #ruby
<jhass> you'll have a fairly high variance but it should show the ballpark
yfeldblum has joined #ruby
<cellmaker> So I should just initiatize some variable with a time stamp, do the same at the end, and then subtract? (not using benchmark, I take it)
Swappticon has joined #ruby
<cellmaker> initialize, not ‘tize
<jhass> I'd just time ruby foo.rb really
<jhass> that said without knowing anything about your script and what you want to compare it to
<jhass> and in which runtime category it is in the first place
mjuszczak has joined #ruby
chichou has joined #ruby
<jhass> (if you want better advice provide all that)
<cellmaker> I’m just trying to compare different simple algorithms on determining prime numbers — just for learning Ruby.
jessefurmanek has joined #ruby
<jhass> so just put them each into a method and use benchmark-ips then?
<cellmaker> So I guess I’m not following when you say “time” (e.g.) primes.rb
<jhass> when you said "entire said" I imagined some 500+ loc stuff running 10s-1h
<jhass> er, "entire script"
mjuszczak has quit [Client Quit]
<cellmaker> Sorry. These are very short scripts. Part of this is curiosity and part is just trying to figure out how to do new things/add functionality. Anyway, I kept looking at benchmark docs but haven’t quite understood how to turn an .rb script into a measurable thing.
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
jessefurmanek is now known as messysaurus
leonmaia has joined #ruby
<jhass> don't
<jhass> not in that runtime category
<jhass> the differences in startup can wreck your benchmark already
<jhass> as said, put each of your algos into a method
<jhass> then check benchmark-ips' readme
pen has quit [Remote host closed the connection]
pen has joined #ruby
<cellmaker> I’ll give that a shot and see what happens. Many thanks for the guidance, jhass
mjuszczak has joined #ruby
hifriends has quit [Quit: Page closed]
yqt has joined #ruby
mjuszcza_ has joined #ruby
gambl0re has quit [Ping timeout: 250 seconds]
arup_r has quit [Quit: Leaving]
messysaurus has quit []
messysaurus has joined #ruby
gambl0re has joined #ruby
pen has quit [Ping timeout: 244 seconds]
mjuszczak has quit [Ping timeout: 240 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
ohaibbq has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
mjuszcza_ has quit [Client Quit]
tubuliferous_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
northfurr has quit [Quit: northfurr]
lucyinthesky has joined #ruby
houhoulis has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
grenierm has joined #ruby
northfurr has joined #ruby
symm- has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Read error: Connection reset by peer]
mrtg9970 has joined #ruby
bruno- has joined #ruby
mrtg9970 has quit [Client Quit]
tubulife| has quit [Quit: ZNC - http://znc.in]
tubuliferous_ has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
tubuliferous_ has joined #ruby
yeticry has joined #ruby
lucyinthesky has quit [Quit: Leaving]
tubuliferous_ has quit [Remote host closed the connection]
tno has joined #ruby
tubuliferous_ has joined #ruby
hinbody has quit [Quit: leaving]
Soda has quit [Remote host closed the connection]
chichou has joined #ruby
tubuliferous_ has quit [Remote host closed the connection]
tubulife- has joined #ruby
opensource_ninja has joined #ruby
tubulife- has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 268 seconds]
tubulife- has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
tubulife- has quit [Client Quit]
tubuliferous_ has joined #ruby
Zarthus has quit [Quit: ZNC 1.7.x-git-196-5faaf67 - http://znc.in]
Zarthus has joined #ruby
tubuliferous_ has quit [Remote host closed the connection]
tubuliferous has joined #ruby
pandaant has quit [Remote host closed the connection]
ddrmanxbxfr_pc has quit [Quit: Leaving]
shazaum_ has joined #ruby
startupality has quit [Quit: startupality]
sonOfRa has quit [Quit: Bye!]
juanpablo_ has joined #ruby
sonOfRa has joined #ruby
christiandsg has quit [Remote host closed the connection]
startupality has joined #ruby
moeabdol has joined #ruby
<moeabdol> hello
<moeabdol> there
moeabdol has quit [Client Quit]
moeabdol has joined #ruby
<jhass> hi
moeabdol has quit [Client Quit]
<jhass> then not
m8 has quit [Quit: Sto andando via]
moeabdol has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
<jhass> one more try?
zenguy_pc has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
bigmac has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
moeabdol has quit [Client Quit]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
zenguy_pc has joined #ruby
cellmaker has quit [Ping timeout: 265 seconds]
startupality has quit [Quit: startupality]
moeabdol has joined #ruby
exemplar has joined #ruby
craysiii has joined #ruby
majjoha has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
moeabdol has quit [Client Quit]
grenierm has quit [Quit: grenierm]
gabord has quit [Quit: WeeChat 1.1.1]
Lycanii has joined #ruby
sdothum has joined #ruby
chichou has quit [Remote host closed the connection]
moeabdol has joined #ruby
majjoha has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
chichou has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
centrx has joined #ruby
bigmac has joined #ruby
enebo has quit [Client Quit]
pencilcheck has joined #ruby
<shevy> what is happening
<centrx> the IRC is collapsing
ledestin has joined #ruby
pranny has quit [Remote host closed the connection]
Ox0dea has joined #ruby
banister has joined #ruby
k3asd` has joined #ruby
<pontiki> soon it will become a black hole
<centrx> and a new universe is born
christiandsg has joined #ruby
codecop has quit [Quit: Išeinu]
<shevy> is there something like .map_with_index? I need to output an array, as string, but also display the index+1 number
<Ox0dea> shevy: map.with_index
<Aeyrix> lmfao
<shevy> ah
mbff has joined #ruby
<shevy> cool, thanks
<mbff> Hello! I having troubles getting variables to show up in my strings/parameters
<Ox0dea> mbff: Tell us more.
<Aeyrix> mbff: Interesting. Code?
<mbff> The following is a line I am having issues with. https://gist.github.com/marshallford/9b2c7d8db6d2601fb17d
<mbff> The first line is the code, the next is the error
<Ox0dea> mbff: Double quotes to invoke interpolation.
<mbff> It is a postgres database string.
pranny has joined #ruby
<Ox0dea> >> foo = 'bar'; ['#{foo}', "#{foo}"] # mbff
<ruboto> Ox0dea # => ["\#{foo}", "bar"] (https://eval.in/424961)
<Aeyrix> LINE 1: ...SERT INTO rappers (name,studio_albums) VALUES ('','') RETURN...
<Ox0dea> Oh, never mind. I derped.
<Aeyrix> You're inserting empty strings.
DeweyD has joined #ruby
<Aeyrix> In PG, you can't insert an empty string in place of 'null' for an integer.
DeweyD has quit [Client Quit]
<mbff> Aeyrix, both of the those vars should have values
<Aeyrix> They don't, which means your name and studio_albums variables are empty.
<centrx> EMPTY!
<mbff> So the issue isn't quotes or lack there of and more so that the vars are empty?
<Ox0dea> Ja.
<mbff> hmmmm
<mbff> ok
<mbff> let me look around
<Aeyrix> mbff: Show us a bit more of the code.
<mbff> Aeyrix, It is multiple files. i will if I can't solve it with that new info
<Aeyrix> ok
<Ox0dea> mbff: Are you doing sentiment analysis of modern rap lyrics?
exemplar has quit [Quit: Page closed]
pranny has quit [Remote host closed the connection]
segmond has joined #ruby
<mbff> Ox0dea, haha, no. Just a fan of rap and I need a test db/table
<mbff> I am taking a class on DB's for college
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
petricore has joined #ruby
<mbff> found the issue.
<mbff> Thanks everyone
tubuliferous has quit [Ping timeout: 252 seconds]
Eddieh_ has joined #ruby
<mbff> for the curious. I was sending headers to the API and not form data
<mbff> I am not smart.
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
christiandsg has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 255 seconds]
ex0ns has quit [Remote host closed the connection]
petricore has quit [Client Quit]
<Ox0dea> mbff: At least you didn't end up in the twelfth plain of torment.
<Ox0dea> *plane
pocketprotector has quit [Remote host closed the connection]
<mbff> Ox0dea, which is? I have been working on this bug for an hour or two now.
siaw has joined #ruby
toretore has joined #ruby
<Ox0dea> It's the source of the "I am not a clever man" meme that I assumed you were referencing.
jesterfraud has joined #ruby
northfurr has quit [Quit: northfurr]
jenrzzz has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has joined #ruby
pranny has joined #ruby
pranny has quit [Remote host closed the connection]
pranny has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
iamninja has quit [Read error: Connection reset by peer]
northfurr has joined #ruby
zeroDivisible has joined #ruby
Motoservo has joined #ruby
iamninja has joined #ruby
ecnalyr has joined #ruby
aspiers has quit [Ping timeout: 256 seconds]
k3asd` has quit [Ping timeout: 244 seconds]
pranny has quit [Remote host closed the connection]
j5s7 has joined #ruby
ecnalyr has quit [Ping timeout: 255 seconds]
northfurr has quit [Quit: northfurr]
einarj has joined #ruby
einarj has quit [Read error: Connection reset by peer]
j5s7 has quit [Client Quit]
einarj has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
doublemalt__ has joined #ruby
einarj has quit [Remote host closed the connection]
pencilcheck has quit [Remote host closed the connection]
sdothum has joined #ruby
northfurr has joined #ruby
<shevy> hmmm can someone explain this to me ...
gogotanaka has joined #ruby
<shevy> I had this dependency in one of my gems: s.add_dependency 'ruby'
<shevy> what was I thinking
jesterfraud_ has joined #ruby
doublemalt_ has quit [Ping timeout: 255 seconds]
kinduff has joined #ruby
<banister> lol
<banister> i own the ruby gem
jesterfraud has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
[k- has quit [Ping timeout: 265 seconds]
mjuszczak has joined #ruby
zenguy_pc has quit [Ping timeout: 268 seconds]
jeadre has quit [Remote host closed the connection]
leonmaia has joined #ruby
<baweaver> meta banister
northfurr has quit [Quit: northfurr]
<banister> baweaver nice pic on github btw, i was wearing a light brown jacket just like yours tonight ;)
<banister> you look like a young kurt godel ;)
<baweaver> ah, danke danke, 10th Doctor.
jeadre has joined #ruby
krz has joined #ruby
pencilcheck has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
christiandsg has joined #ruby
dling has quit [Read error: Connection reset by peer]
dling has joined #ruby
einarj has joined #ruby
gogotanaka has quit [Ping timeout: 268 seconds]
northfurr has joined #ruby
ssd7 has quit [Ping timeout: 240 seconds]
j_mcnally has joined #ruby
gogotanaka has joined #ruby
<Aeyrix> Best Doctor tbh
<Ox0dea> Gödel?
tubuliferous has joined #ruby
<Aeyrix> Tennant
chichou has quit []
christiandsg has quit [Ping timeout: 265 seconds]
doopdapper has quit [Ping timeout: 246 seconds]
<craysiii> Escher, Bach
Lycanii has quit [Ping timeout: 264 seconds]
Lycanii has joined #ruby
einarj has quit [Remote host closed the connection]
mary5030 has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
pencilcheck has quit [Remote host closed the connection]
Mendenhall has joined #ruby
postmodern has joined #ruby
pen has joined #ruby
Mendenhall has quit [Client Quit]
messysaurus has quit [Remote host closed the connection]
kinduff has quit []
Mendenhall has joined #ruby
christiandsg has joined #ruby
messysaurus has joined #ruby
allcentury has joined #ruby
<jhass> "Encoding::CompatibilityError: inspected result must be ASCII only or use the default external encoding" now how did I do that one...
jenrzzz has quit [Ping timeout: 240 seconds]
joufflu has joined #ruby
jenrzzz has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
kirun has quit [Quit: Client exiting]
einarj has joined #ruby
bustrarm has joined #ruby
doopdapper has joined #ruby
pocketprotector has joined #ruby
busterarm has quit [Ping timeout: 246 seconds]
DoubleAC has quit [Ping timeout: 265 seconds]
jordanloky has joined #ruby
<jordanloky> hi all
<baweaver> alo
<jhass> ^ is Struct#inspect btw and #inspecting the fields is okay
<shevy> jhass UTF all the things!
<jhass> I'm trying!
yqt has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Quit: Leaving]
DoubleAC has joined #ruby
juanpablo_ has joined #ruby
rakm has joined #ruby
ninedragon is now known as Guest1000000
<jordanloky> i'm using ruby 1.9.3 for my production application, and i'm considering using ruby 2.1.7
michael_mbp has quit [Excess Flood]
<jordanloky> what are main differences? do you advice me to do that? thanks
<jhass> yes, please!
jeff_laplante has joined #ruby
SCHAAP137 has joined #ruby
<jhass> the main difference is that you still get security updates
Guest1000000 has left #ruby [#ruby]
<jhass> but it's also a bit faster
<jhass> 2.2.3 improved again though
blue_deref has joined #ruby
messysaurus has quit [Remote host closed the connection]
michael_mbp has joined #ruby
messysaurus has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
juanpablo_ has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
<Ox0dea> jordanloky: Would you mow the lawn with a dead horse?
bruno- has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
<jordanloky> lol
christiandsg has joined #ruby
<jordanloky> Ox0dea: was that a yes? :)
sldkjfsldkjf has joined #ruby
sldkjfsldkjf has quit [Read error: Connection reset by peer]
afs has joined #ruby
<Ox0dea> jordanloky: Well, there's virtually no good reason to stay on 1.9.
<jordanloky> all right then! thank you!
tubuliferous has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
christiandsg has quit [Ping timeout: 265 seconds]
Voker57 has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 244 seconds]
<shevy> hmm
<shevy> mowing the lawn with a horse...
<jordanloky> :)
Swappticon has joined #ruby
saddad has joined #ruby
<dzv> i grew my lawn with a dead horse
pipework has joined #ruby
Synthbean has quit [Remote host closed the connection]
<Ox0dea> I think it'd work just fine without the mowers, though.
sepp2k has quit [Read error: Connection reset by peer]
majjoha has joined #ruby
tubuliferous has joined #ruby
nertzy has joined #ruby
Lycanii has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
Rinzlit has quit [Ping timeout: 268 seconds]
Llama4146 has joined #ruby
minimuffins has joined #ruby
majjoha has quit [Ping timeout: 250 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Synthead has joined #ruby
krz has quit [Quit: WeeChat 1.2]
iamninja has quit [Ping timeout: 255 seconds]
sdothum has joined #ruby
roxtrongo has quit [Remote host closed the connection]
bffff_ has quit [Quit: Connection closed for inactivity]
casadei has quit [Remote host closed the connection]
blue_deref has quit [Quit: Taking myself out of hear.]
shazaum_ has quit [Quit: Leaving]
avahey has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
felltir has joined #ruby
moeabdol has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
icarus has joined #ruby
freerobby has joined #ruby
jesterfraud_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mendenhall has quit [Ping timeout: 244 seconds]
jesterfraud has joined #ruby
moeabdol has quit [Client Quit]
septor has left #ruby [#ruby]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
profelm has quit [Ping timeout: 246 seconds]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
moeabdol has joined #ruby
siaw has quit [Quit: siaw]
mary5030 has quit [Ping timeout: 268 seconds]
messysaurus has quit [Remote host closed the connection]