apeiros changed the topic of #ruby-lang to: RIP Jim || Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
t4nk103 has quit [Quit: Page closed]
<drbrain> def complete?() (success || failure) && !retry? end
sepp2k1 has quit [Read error: Connection reset by peer]
knu has joined #ruby-lang
Letopanyu has joined #ruby-lang
vjacob_ has quit [Ping timeout: 252 seconds]
dsaint-p_ has joined #ruby-lang
Letopanyu has quit [Read error: Connection reset by peer]
vjacob has joined #ruby-lang
Letopanyu has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 265 seconds]
simono has joined #ruby-lang
<jaimef> is there a way to drop a method asyncly?
<jaimef> run
<drbrain> Thread.new do the_method end ?
shinnya has quit [Ping timeout: 240 seconds]
mykoweb has quit [Remote host closed the connection]
<jaimef> will the thread die if the parent exits?
<jaimef> want like %x{nohup cmd}
Asher has quit [Quit: Leaving.]
jsullivandigs has quit [Remote host closed the connection]
Asher has joined #ruby-lang
<drbrain> when the main thread dies so do all its children
Letopanyu has quit [Ping timeout: 276 seconds]
<jaimef> so fork exec it is
<drbrain> jaimef: Process.spawn > fork exec
Hytosys has joined #ruby-lang
kitak has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
yubrew has joined #ruby-lang
kitak has joined #ruby-lang
<zenspider> ooh. new idea skip skips: raise Minitest::Skip, msg, bt unless ENV["SKIP"] == "0"
hahuang65 has quit [Ping timeout: 252 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
mykoweb has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 252 seconds]
dorei has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
Hytosys has quit [Quit: Hytosys]
marr has quit []
tkuchiki has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
jsullivandigs has joined #ruby-lang
kitak_ has joined #ruby-lang
saarinen has joined #ruby-lang
nathanstitt has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
D9 has joined #ruby-lang
saarinen has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Ping timeout: 255 seconds]
amsi has quit [Quit: Leaving]
perry has quit [Ping timeout: 252 seconds]
Prandium has quit [Ping timeout: 252 seconds]
nathanstitt has quit [Quit: Laters]
Prandium has joined #ruby-lang
nathanstitt has joined #ruby-lang
mistym has quit [Quit: Leaving]
perry has joined #ruby-lang
jmeeuwen has quit [Read error: Connection reset by peer]
jmeeuwen_ has joined #ruby-lang
jmeeuwen_ is now known as jmeeuwen
msch has quit [Ping timeout: 252 seconds]
karamazov has joined #ruby-lang
msch has joined #ruby-lang
msch is now known as Guest84839
jason__ has joined #ruby-lang
jmeeuwen has quit [Client Quit]
arBmind1 has joined #ruby-lang
jmeeuwen has joined #ruby-lang
tkuchiki has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
amclain has joined #ruby-lang
saarinen has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby-lang
ssb123_ has joined #ruby-lang
saarinen has quit [Ping timeout: 252 seconds]
jsullivandigs has quit [Remote host closed the connection]
ssb123 has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby-lang
digs has joined #ruby-lang
ssb123_ has quit [Ping timeout: 252 seconds]
digs is now known as Guest14504
pixelhandler has quit [Quit: pixelhandler]
imperator2 has joined #ruby-lang
yubrew has quit [Ping timeout: 276 seconds]
nisstyre has joined #ruby-lang
saarinen has joined #ruby-lang
charliesome has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 245 seconds]
dik_dak has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
willmarshall has joined #ruby-lang
ddv has joined #ruby-lang
ssb123 has joined #ruby-lang
simono has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby-lang
mistym has joined #ruby-lang
Guest14504 has quit [Remote host closed the connection]
ssb123 has quit [Remote host closed the connection]
vjacob has quit [Ping timeout: 276 seconds]
skade has quit [Ping timeout: 255 seconds]
CaptainJet has joined #ruby-lang
cored has quit [Ping timeout: 252 seconds]
johnissocool has joined #ruby-lang
<johnissocool> Is there an easy way to make my simple ruby project use a webpage? I would like to be able to use web text boxes for input and buttons etc.
CaptainJet has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby-lang
robbyoconnor has joined #ruby-lang
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jason__ has quit [Remote host closed the connection]
willmarshall has joined #ruby-lang
jsullivandigs has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 264 seconds]
faces has quit [Ping timeout: 240 seconds]
kalehv has quit [Read error: Connection reset by peer]
face has joined #ruby-lang
kalehv has joined #ruby-lang
yubrew has joined #ruby-lang
dorei has quit []
johnissocool has quit []
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
robbyoconnor has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
twright has quit [Ping timeout: 264 seconds]
rwk1 has joined #ruby-lang
ssb123 has joined #ruby-lang
Rubynewbie has joined #ruby-lang
karamazov has quit []
<Rubynewbie> So, I've got a fairly short little program that isn't running the way i'd like. It runs and jumps to the method I want, but then user input should direct the program to another method. Instead, it is just exiting the program. Anyone willing to look at this? https://gist.github.com/anonymous/11239604
philoserf has joined #ruby-lang
ikrima has joined #ruby-lang
skade has joined #ruby-lang
mykoweb has joined #ruby-lang
sdouglas has joined #ruby-lang
Rubynewbie has quit [Quit: Page closed]
symm- has quit [Ping timeout: 265 seconds]
CaptainJet has quit []
skade has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
kalehv has joined #ruby-lang
michaeldeol has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
mr-foobar has quit [Read error: Connection reset by peer]
philoserf has quit [Ping timeout: 264 seconds]
imperator2 has quit [Quit: Valete!]
ikrima has quit [Ping timeout: 276 seconds]
mykoweb has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
philoserf has joined #ruby-lang
diegoviola has quit [Ping timeout: 255 seconds]
sdouglas has quit [Remote host closed the connection]
centrx has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
dik_dak has quit [Quit: Leaving]
diegoviola has joined #ruby-lang
knu has joined #ruby-lang
Letopanyu has joined #ruby-lang
twright has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
Fretta has quit [Quit: Fretta]
Letopanyu has quit [Ping timeout: 240 seconds]
twright has quit [Ping timeout: 264 seconds]
shalicke has joined #ruby-lang
<shalicke> Any reason why this net/ftp & open-uri transfer hangs? https://gist.github.com/shalicke/0d9af0a5f1edaf85fb2a
<shalicke> the gist of it is ftp.putbinaryfile(open(an_s3_url), some_remote_filename)) and it hangs while retrieving(?) the file. Actually it seems post-retrieval since it writes the whole file to disk in a tmp-like format (open-uri-XXYY) and then ... nothin.
<shalicke> it's easy enough to work around, but i'm looking for an answer on why this doesn't work, since it certainly seems like it should (using open-uri.)
havenwood has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
amerine has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
Letopanyu has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guns has quit [Quit: guns]
skade has joined #ruby-lang
robbyoconnor has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
skade has quit [Ping timeout: 276 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
jsullivandigs has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
hahuang65 has joined #ruby-lang
miwood has quit [Ping timeout: 240 seconds]
rahul_j has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby-lang
yubrew has joined #ruby-lang
Lewix has joined #ruby-lang
skade has joined #ruby-lang
omosoj has quit [Ping timeout: 240 seconds]
LMity has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
skade has quit [Ping timeout: 252 seconds]
LMity has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
philoserf has quit [Quit: Yep. Gotta run. Later.]
phansch has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
sdouglas has joined #ruby-lang
rahul_j has joined #ruby-lang
omosoj has joined #ruby-lang
rahul_j has quit [Client Quit]
skade has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
emaxi has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
Letopanyu has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
rwk1 has joined #ruby-lang
_ht has joined #ruby-lang
amerine has quit [Read error: Connection reset by peer]
rwk1 has quit [Ping timeout: 252 seconds]
amerine_ has joined #ruby-lang
alexju has joined #ruby-lang
nisstyre has quit [Ping timeout: 240 seconds]
metamaterial has joined #ruby-lang
jasiek has quit [Ping timeout: 240 seconds]
skade has quit [Ping timeout: 252 seconds]
valeri_ufo has quit [Ping timeout: 264 seconds]
miwood has joined #ruby-lang
havenwood has quit [Ping timeout: 276 seconds]
philoserf has joined #ruby-lang
metamaterial has quit [Remote host closed the connection]
<shalicke> turned out to be a "problem" with net/ftp: ftp.passive needed to be set to true.
miwood has quit [Client Quit]
valeri_ufo has joined #ruby-lang
jasiek has joined #ruby-lang
yubrew has joined #ruby-lang
iliketurtles has joined #ruby-lang
michaeldeol has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
yfeldblum has quit [Remote host closed the connection]
Barrin6 has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
jsullivandigs has joined #ruby-lang
omosoj has quit [Quit: Leaving]
amerine_ is now known as amerine
rwk1 has joined #ruby-lang
nisstyre has joined #ruby-lang
philoserf has quit [Quit: Yep. Gotta run. Later.]
ledestin has quit [Ping timeout: 265 seconds]
kyb3r__ has joined #ruby-lang
ledestin has joined #ruby-lang
kyb3r_ has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
twright has joined #ruby-lang
knu has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
rwk1 has quit [Ping timeout: 255 seconds]
ItSANg___ has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
ItSANgo has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digs has joined #ruby-lang
digs is now known as Guest75515
rwk1 has joined #ruby-lang
mistym has joined #ruby-lang
twright has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 252 seconds]
jsullivandigs has quit [Ping timeout: 276 seconds]
amclain has quit [Quit: Leaving]
philoserf has joined #ruby-lang
Guest75515 has quit [Remote host closed the connection]
toastynerd has quit []
emaxi has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
philoserf has quit [Client Quit]
rahul_j has joined #ruby-lang
emaxi has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 265 seconds]
sdouglas_ has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
sdouglas_ has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
yubrew has joined #ruby-lang
hakunin has quit []
rahul_j has quit [Quit: rahul_j]
hakunin has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
Barrin6 has quit [Quit: Leaving]
Lewix has joined #ruby-lang
sdouglas has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
D9 has quit [Quit: Leaving]
woollyams has joined #ruby-lang
apeiros has quit [Ping timeout: 265 seconds]
jsullivandigs has joined #ruby-lang
nisstyre has quit [Quit: WeeChat 0.4.3]
twright has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
twright has quit [Ping timeout: 264 seconds]
mannyt has quit [Quit: Connection closed for inactivity]
jsullivandigs has quit [Ping timeout: 240 seconds]
[spoiler] has joined #ruby-lang
twright has joined #ruby-lang
sdouglas has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
arBmind has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
arBmind1 has quit [Ping timeout: 240 seconds]
bzalasky has joined #ruby-lang
twright has quit [Ping timeout: 264 seconds]
zlogan has joined #ruby-lang
emaxi has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.1]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
[spoiler] has quit [Remote host closed the connection]
emaxi has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
emaxi has joined #ruby-lang
Lumio has joined #ruby-lang
[spoiler] has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
kyb3r__ has quit [Quit: Leaving]
kyb3r_ has joined #ruby-lang
emaxi has quit [Ping timeout: 252 seconds]
ddv has quit [Changing host]
ddv has joined #ruby-lang
yfeldblum has joined #ruby-lang
yubrew has joined #ruby-lang
arBmind has quit [Ping timeout: 276 seconds]
sdouglas has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 265 seconds]
mr-foobar has joined #ruby-lang
Lumio has quit [Quit: ...]
yubrew has quit [Ping timeout: 240 seconds]
brushbox has joined #ruby-lang
brushbox has quit [Client Quit]
brushbox has joined #ruby-lang
sdouglas has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
rofel has joined #ruby-lang
bzalasky has joined #ruby-lang
dsaint-p_ has quit [Remote host closed the connection]
imperator has quit [Ping timeout: 240 seconds]
DEac- has quit [Ping timeout: 264 seconds]
DEac- has joined #ruby-lang
drbrain has quit [Ping timeout: 264 seconds]
dsaint-pierre has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
arBmind has joined #ruby-lang
jsullivandigs has joined #ruby-lang
bzalasky has quit [Ping timeout: 264 seconds]
dsaint-pierre has quit [Ping timeout: 276 seconds]
arBmind1 has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 255 seconds]
metamaterial has joined #ruby-lang
rofel has quit [Quit: Leaving...]
twright has joined #ruby-lang
arBmind has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
emaxi has joined #ruby-lang
qba73 has joined #ruby-lang
frobrob_ has joined #ruby-lang
emaxi has quit [Ping timeout: 276 seconds]
arBmind1 has quit [Ping timeout: 252 seconds]
twright has quit [Ping timeout: 264 seconds]
arBmind has joined #ruby-lang
frobrob has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
solars has joined #ruby-lang
fragamus_ has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
Letopanyu has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
dsaint-pierre has joined #ruby-lang
relix has joined #ruby-lang
rwk1 has joined #ruby-lang
bzalasky has quit []
ta has quit [Quit: Leaving...]
tbuehlmann has joined #ruby-lang
Letopanyu has quit [Ping timeout: 276 seconds]
dsaint-pierre has quit [Ping timeout: 240 seconds]
ta has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
benlovell has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
rwk1 has quit [Ping timeout: 264 seconds]
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
solars has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
rolfb has joined #ruby-lang
rwk1 has joined #ruby-lang
davidae has joined #ruby-lang
metamaterial has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
Pupeno has joined #ruby-lang
metamaterial has joined #ruby-lang
Guest84839 is now known as msch
jsrn has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby-lang
jsullivandigs has joined #ruby-lang
marr123 has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
<yorickpeterse> morning
hahuang61 has joined #ruby-lang
emaxi has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 252 seconds]
elia has joined #ruby-lang
face has quit [Remote host closed the connection]
face has joined #ruby-lang
qba73 has joined #ruby-lang
emaxi has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwk1 has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby-lang
heftig has joined #ruby-lang
marr123 is now known as marr
robbyoconnor has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
solars has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
heftig has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby-lang
whitecrow1 has joined #ruby-lang
whitecrow1 has joined #ruby-lang
[spoiler] has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
nofxx has quit [Ping timeout: 264 seconds]
elia has joined #ruby-lang
cnivolle has joined #ruby-lang
solars has quit [Quit: WeeChat 0.4.1]
woollyams has quit [Ping timeout: 252 seconds]
heftig has joined #ruby-lang
elia has quit [Client Quit]
skade has joined #ruby-lang
elia has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
dsaint-pierre has quit [Ping timeout: 252 seconds]
drbrain has joined #ruby-lang
sdouglas has joined #ruby-lang
btiefert has quit [Read error: Connection reset by peer]
btiefert has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
sarkyniin has joined #ruby-lang
banister has joined #ruby-lang
mikecmpbll has joined #ruby-lang
rahul_j has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
yfeldblu_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby-lang
rwk1 has joined #ruby-lang
emaxi has joined #ruby-lang
phansch has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 252 seconds]
jsullivandigs has joined #ruby-lang
yfeldblum has joined #ruby-lang
emaxi has quit [Ping timeout: 252 seconds]
jsullivandigs has quit [Ping timeout: 276 seconds]
stamina has joined #ruby-lang
Speed has joined #ruby-lang
rwk1 has quit [Ping timeout: 240 seconds]
willmarshall has joined #ruby-lang
knu has joined #ruby-lang
willmarshall has quit [Client Quit]
yubrew has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sarkyniin> hey
<sarkyniin> is an empty string equal to nil
<apeiros> sarkyniin: no
<apeiros> >> "" == nil
<eval-in__> apeiros => false (https://eval.in/141061)
<sarkyniin> dam
<apeiros> sarkyniin: also for the future - you can easily answer such questions yourself by using pry (or irb)
<sarkyniin> okay, thanks
yubrew has quit [Ping timeout: 276 seconds]
<sarkyniin> apeiros: what's pry?
<sarkyniin> I only use irb
<apeiros> pry is a better irb
<metamaterial> how do i pry
<apeiros> gem install pry pry-doc
dsaint-pierre has joined #ruby-lang
<apeiros> then just type `pry` instead of `irb`
yfeldblum has quit [Ping timeout: 240 seconds]
robmiller has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby-lang
mr-foobar has quit []
ikrima has quit [Ping timeout: 255 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
kitak_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby-lang
mr-foobar has joined #ruby-lang
workmad3 has joined #ruby-lang
ob264 has joined #ruby-lang
JohnBat26 has joined #ruby-lang
sdouglas has joined #ruby-lang
skade has quit [Ping timeout: 240 seconds]
ob264 has quit [Quit: Ex-Chat]
ob264 has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
ob264 has quit [Client Quit]
ob264 has joined #ruby-lang
banister has joined #ruby-lang
skade has joined #ruby-lang
emaxi has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
<yorickpeterse> Created a repository called "Shepherd"
<yorickpeterse> Very tempted to put Mass Effect references in it
benlovell has joined #ruby-lang
retro|cz has quit [Ping timeout: 240 seconds]
emaxi has quit [Ping timeout: 265 seconds]
LMity has joined #ruby-lang
ob264 has quit [Quit: Ex-Chat]
jsullivandigs has joined #ruby-lang
fragamus_ has quit [Quit: Computer has gone to sleep.]
ngw has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
mr-foobar has quit []
LMity has quit [Ping timeout: 276 seconds]
jonathanmarvens has joined #ruby-lang
d4rkr4i has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
mr-foobar has joined #ruby-lang
twright has joined #ruby-lang
yubrew has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
twright has quit [Ping timeout: 264 seconds]
d4rkr4i has quit [Quit: Leaving.]
d4rkr4i has joined #ruby-lang
yubrew has quit [Ping timeout: 265 seconds]
ikrima has joined #ruby-lang
rwk1 has joined #ruby-lang
postmodern has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
<gnufied> yorickpeterse: i sorta love/hate ruby-lint man
dsaint-pierre has joined #ruby-lang
<gnufied> i am running git master and it almost never detects methods/constants defined in other files in project
<gnufied> i have been wondering if ruby-lint has a notion of "project"
<yorickpeterse> Have you considered reporting this as an actual issue so I can look at it?
<yorickpeterse> and no, it has no notion of a project
<yorickpeterse> only a working directory
kyb3r_ has quit [Read error: Connection reset by peer]
<yorickpeterse> It's also rather pedantic about how it expects files to be named
<yorickpeterse> e.g. if it sees a class called "User" it expects the file "user.rb" (somewhere) to define it
yfeldblum has quit [Ping timeout: 252 seconds]
<yorickpeterse> It can not handle meta magic very well at the moment
<gnufied> yeah, I found it to be much more useful than rubocop
<gnufied> and it integrates nicely via flycheck in emacs
<yorickpeterse> In all cases if it can't find shit that's a bug
florianb_ has joined #ruby-lang
<yorickpeterse> with the rare exception of where it's just not possible to find a definition
<gnufied> it need not handle meta magic, but it seems to be - it should be aware of Project and use all files there
dsaint-pierre has quit [Ping timeout: 252 seconds]
<gnufied> would you consider it, making it .git aware?
<yorickpeterse> No
<yorickpeterse> It already scans ./app and ./lib
<yorickpeterse> and you can customize those directories
<gnufied> ah yes.
<yorickpeterse> That's as close as you can get to a definition of a "project"
<gnufied> but if I am in, app/models/user/foobar.rb
<yorickpeterse> which reminds me that I'll need to update Flaycheck and Syntastic this month for the new CLI
<yorickpeterse> errr flycheck
<gnufied> then it would look for rubylint.yml in user directory
<yorickpeterse> gnufied: is your PWD ./app/models/user or ./ ?
<gnufied> not in root directory of project?
<yorickpeterse> Yes, it uses PWD/ruby-lint.yml
<gnufied> depends on how flycheck invokes it, but I suspect it will have inner directory as PWD
<yorickpeterse> It doesn't work its way up the directory tree because that's slow as a snail
enkristoffer has joined #ruby-lang
florianb_ has quit [Client Quit]
<yorickpeterse> gah wtf RVM, you don't need to update libaml to 0.1.6
<yorickpeterse> I ALREADY HAVE IT INSTALLED
<gnufied> isn't that a design flaw then?
<gnufied> not in rubylint itself
<yorickpeterse> it has little to do with ruby-lint or anything in particular
<yorickpeterse> e.g.
<yorickpeterse> if you're in foo/bar/bar/asjhdad/asd/asdasd/ads/asd/asd/asd/asd/as/dasd/asd/ and your config file is in foo/ruby-lint.yml, it will take a while to work its way up
<yorickpeterse> as such it either looks in PWD/ruby-lint.yml or ~/.ruby-lint.yml
<gnufied> i don't agree it will take awhile to work its way up.
ngw has quit [Quit: Linkinus - http://linkinus.com]
<gnufied> emacs already has a concept of dominating directory for example
<gnufied> which is always available to major/minor modes
<gnufied> flycheck and use that as root
<gnufied> can*
phansch has quit [Ping timeout: 240 seconds]
<gnufied> the directory traversal itself should be quick
<gnufied> unless you mean scanning all files from root will be slow as snail
<gnufied> I will open a GH ticket later
<gnufied> :-)
phansch has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby-lang
ta has quit [Read error: Connection reset by peer]
ta_ has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby-lang
ta has joined #ruby-lang
emaxi has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
khaase_ has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
mr-foobar has quit []
ta_ has joined #ruby-lang
khaase has quit [Ping timeout: 265 seconds]
emaxi has quit [Ping timeout: 255 seconds]
rwk1 has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 240 seconds]
khaase_ has quit [Ping timeout: 265 seconds]
elia has quit [Quit: Computer has gone to sleep.]
jsullivandigs has joined #ruby-lang
yubrew has joined #ruby-lang
<yorickpeterse> No, what I mean is
<yorickpeterse> if your PWD is /a/b/c/d/e/f/g
<yorickpeterse> and the config file is in /a/ruby-lint.yml
jsullivandigs has quit [Ping timeout: 265 seconds]
<yorickpeterse> Then going up that tree and checking for ruby-lint.yml in every directory can potentially be slow
<yorickpeterse> I'm not against it, I'm just not that eager to put it in without some thinking
banister has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
mr-foobar has joined #ruby-lang
retro|cz has joined #ruby-lang
d4rkr4i has quit [Quit: Leaving.]
metamaterial has quit [Ping timeout: 272 seconds]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 265 seconds]
elia has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
rwk1 has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
dsaint-pierre has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
mr-foobar has quit []
exly has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
Jolly1 has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 255 seconds]
mr-foobar has joined #ruby-lang
saarinen has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
Voker57 has joined #ruby-lang
<yorickpeterse> Anybody ever used https://github.com/seamusabshere/upsert?
yalue has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 252 seconds]
developerjustin has joined #ruby-lang
emaxi has joined #ruby-lang
ta has joined #ruby-lang
ta_ has quit [Read error: Connection reset by peer]
whitecrow1 has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby-lang
sdouglas has joined #ruby-lang
emaxi has quit [Ping timeout: 240 seconds]
whitecrow1 has joined #ruby-lang
whitecrow1 has joined #ruby-lang
whitecrow1 has quit [Changing host]
<yorickpeterse> Hm, seems it does a bunch of quoting and what not that I'm not too happy about
<yorickpeterse> hmpf
<yorickpeterse> mysql, y u no upsert
workmad3 is now known as wm3|lunch
sdouglas has quit [Ping timeout: 240 seconds]
elia has quit [Quit: Computer has gone to sleep.]
whitecrow1 has quit [Ping timeout: 265 seconds]
mr-foobar has quit []
mr-foobar has joined #ruby-lang
whitecrow1 has joined #ruby-lang
whitecrow1 has quit [Changing host]
whitecrow1 has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
emaxi has joined #ruby-lang
elia has joined #ruby-lang
yubrew has joined #ruby-lang
skade has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
simono has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
alex-quiterio has joined #ruby-lang
mehlah has joined #ruby-lang
khaase has joined #ruby-lang
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
whitecrow1 has quit [Quit: Leaving]
ta_ has joined #ruby-lang
ta has quit [Ping timeout: 240 seconds]
exly has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Voker57|2 has joined #ruby-lang
developerjustin has quit [Quit: Leaving...]
Voker57 has quit [Ping timeout: 264 seconds]
automationaddict has joined #ruby-lang
Squarepy has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
vpretzel|email is now known as vpretzel
robmiller has joined #ruby-lang
skade has joined #ruby-lang
malconis has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
Jolly1 has quit [Read error: Connection reset by peer]
Jolly1 has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
scampbell has joined #ruby-lang
tkuchiki has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 255 seconds]
fijimunkii has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
itsmynick has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
robmiller has joined #ruby-lang
sdouglas has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
sferik has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
vondruch has quit [Read error: Connection reset by peer]
sandbags has quit [Remote host closed the connection]
bin7me has joined #ruby-lang
Evanescence has joined #ruby-lang
yubrew has joined #ruby-lang
nagato has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
yubrew has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby-lang
jsullivandigs has joined #ruby-lang
symm- has joined #ruby-lang
yfeldblum has joined #ruby-lang
solars has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
sferik has quit [Quit: Textual IRC Client: www.textualapp.com]
twright has joined #ruby-lang
bin7me has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
beef-wellington has joined #ruby-lang
twright has quit [Ping timeout: 264 seconds]
jgpawletko has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby-lang
Lewix has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
beef-wellington has quit [Ping timeout: 252 seconds]
Thanatermesis has joined #ruby-lang
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby-lang
AncientAmateur has joined #ruby-lang
<sarkyniin> is there a way, using the gist module, to read the content of a gist?
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
<sarkyniin> I'm talking about this one https://github.com/defunkt/gist
bin7me has joined #ruby-lang
twright has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 252 seconds]
beef-wellington has joined #ruby-lang
sandbags has quit [Ping timeout: 264 seconds]
developerjustin has joined #ruby-lang
<oddmunds> that's not exactly what you asked for, but it might solve your problem
<sarkyniin> ah, yeah, that works
<sarkyniin> thanks, oddmunds
<sarkyniin> (I'm working on a bot, and I want to add memos to send to users, but I have to use gists since heroku doesn't support writing to files on disk)
itsmynick has quit [Ping timeout: 255 seconds]
<yorickpeterse> Doesn't Heroku offer things like PostgreSQL?
<oddmunds> yeah, maybe you should look into something more suited than gists
<oddmunds> you can get a free small mongo thing at mongohq for your heroku
alexju has quit [Remote host closed the connection]
<oddmunds> or, really anything you prefer
<sarkyniin> yorickpeterse: it's just easier to use gists for a small file
<sarkyniin> PostgreSQL seems like waaaay too much overkill
havenwood has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
<yorickpeterse> Using Gist for persistent data storage is like using a car tire for writing on paper
havenwood has joined #ruby-lang
elia has joined #ruby-lang
d4rkr4i has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
beef-wellington has quit [Ping timeout: 252 seconds]
<oddmunds> hehe
wm3|lunch is now known as workmad3
ssb123 has joined #ruby-lang
<oddmunds> sarkyniin: a nosql thing sounds like it would be a perfect fit for your needs
ikrima has joined #ruby-lang
<yorickpeterse> actually a nosql storage is a terrible thing for this
<yorickpeterse> Given they have the "eventual consistency" crap
<oddmunds> because of their laxness?
sandbags has quit [Ping timeout: 252 seconds]
<yorickpeterse> Because when you insert a memo you probably want it to be stored right away
<yorickpeterse> Not a potential 6 hours later
<cout> hmm.
<oddmunds> i didn't know that was a feature of nosqls
<yorickpeterse> Not always, but it's a pretty popular concept amongst them
d4rkr4i has quit [Quit: Leaving.]
<yorickpeterse> e.g. Mongo, Amazon DynamoDB, etc
alekst has joined #ruby-lang
<sarkyniin> Is there any small file hosting service that has an easy-to-use api and support to edit files?
<yorickpeterse> Redis and Memcached don't have it I believe, not sure about Redis though
havenwood has quit [Remote host closed the connection]
<sarkyniin> I really don't want much, just to host a couple small files
<yorickpeterse> sarkyniin: Postgres comes for free with Heroku
<oddmunds> surely, you'd be able to force your persistance thing to store right away?
<sarkyniin> yorickpeterse: does it update immediatly?
<yorickpeterse> update?
<yorickpeterse> you mean the database version?
<oddmunds> i think he/she refers to the 6 hours thing you mentioned
rwk1 has joined #ruby-lang
<yorickpeterse> oh right
<yorickpeterse> Yes, Postgres is consistent in that regard
<sarkyniin> oh, okay
<yorickpeterse> Most RDMS systems are
<yorickpeterse> if not all
<yorickpeterse> heh, "RDMS systems"
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
dik_dak has joined #ruby-lang
<oddmunds> Built with NT technology
sdouglas has joined #ruby-lang
yubrew has joined #ruby-lang
philoserf has joined #ruby-lang
fijimunk1i has joined #ruby-lang
<sarkyniin> yorickpeterse: do you have a simple, easy tutorial as to how postgresql databases work
fijimunkii has quit [Read error: Connection reset by peer]
<sarkyniin> I'm still beginning, and I don't know how to use db's
alekst has quit [Ping timeout: 276 seconds]
sdouglas has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
fijimunk1i has quit [Ping timeout: 240 seconds]
ikrima has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby-lang
yubrew has joined #ruby-lang
philoserf has quit [Quit: Yep. Gotta run. Later.]
vpretzel is now known as vpretzel|1343
ascarter has joined #ruby-lang
rwk1 has quit [Ping timeout: 252 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
nathanstitt has joined #ruby-lang
jsullivandigs has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
khaase_ has joined #ruby-lang
solars has quit [Ping timeout: 255 seconds]
khaase has quit [Ping timeout: 255 seconds]
jsullivandigs has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
developerjustin has quit [Quit: Leaving...]
allomov has joined #ruby-lang
alexju has joined #ruby-lang
mannyt has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
<yorickpeterse> https://devcenter.heroku.com/articles/heroku-postgresql is a start for using it on Heroku
agarie has joined #ruby-lang
shinnya has joined #ruby-lang
jsullivandigs has joined #ruby-lang
solars has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
heftig has quit [Quit: Quitting]
rolfb has quit [Quit: Leaving...]
apeiros has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
apeiros has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
rwk1 has joined #ruby-lang
ssb123 has joined #ruby-lang
beef-wellington has joined #ruby-lang
apeiros has quit [Ping timeout: 265 seconds]
<gnufied> eventually consistency only refers to how storage behaves in distributed environment
<gnufied> I don't like mongo as much as you, but I think you are way off its definition
<gnufied> yorickpeterse: ^
havenwood has joined #ruby-lang
sandbags has quit [Ping timeout: 252 seconds]
<yorickpeterse> No, I said it's often a part of NoSQL (but not a core definition)
<yorickpeterse> One of the things is that there's no guarantee made about when something happens when modifying data
solars has quit [Ping timeout: 252 seconds]
<gnufied> you are conflating DURABILITY with eventual consistency
<gnufied> :-)
<yorickpeterse> eh, no
ssb123 has quit [Ping timeout: 240 seconds]
<yorickpeterse> It might not occur when you run a single master
<bougyman> doesn't mongo have an ACID mode yet?
<gnufied> yorickpeterse: and that is called durability, when you save something db should guarantee that it is saved to disk
emaxi has quit [Remote host closed the connection]
<yorickpeterse> bougyman: you have a bunch of options that can give you pseudo consistency
<bougyman> I can never understand why someone would use a non-acid datastore for authorative data.
<bougyman> yorickpeterse: pseudo is not good enough.
<yorickpeterse> I'm more than aware of that
<yorickpeterse> Hence you should not run a Bitcoin service on Mongo
emaxi has joined #ruby-lang
<gnufied> eventual conssitency means, when you save something the changes will be propagated to all particapating nodes eventually
mindriot101 has joined #ruby-lang
<yorickpeterse> gnufied: that's my point, I never said anything about saving to disk or w/e
<gnufied> even mysql replication is eventually consistent
<yorickpeterse> I stated that if you save shit it *might* not be there directly
<bougyman> gnufied: mysql replication is possible consistent, eventually.
<bougyman> *possibly
<yorickpeterse> At least MySQL is generally concistently fast in it
<yorickpeterse> (at least for us)
<gnufied> whats what I said, isn't it?
<bougyman> you left out the 'possibly'
<yorickpeterse> heh
mindriot101 has quit [Client Quit]
<bougyman> unless one can afford oracle or foundation db, postgres seems the only sane choice, if given the choice.
<bougyman> even given that choice, in most cases I would take pg over oracle & foundation.
<yorickpeterse> Perhaps a better case against NoSQL: you very much know the schema when storing memos
<bougyman> postgres is great at nosql, as well.
<jtperreault> I need to iterate over an array and create n new arrays containing the values. How to do this without first creating the arrays to push the values into?
<bougyman> i saw a case study where it did graphing as efficiently as neo4j. document as efficiently (and with durability) as mongo.
<yorickpeterse> bougyman: I'd like to see people benchmark it with more than 10 rows of identical data
emaxi has quit [Ping timeout: 276 seconds]
<bougyman> with its ability to index on json now, it really obviates a bunch of noSQL
<yorickpeterse> Often you'll see folks run "benchmarks" of 10 000 identical documents
<bougyman> yorickpeterse: check out keith4 or davidfetter's blog.
<yorickpeterse> But yes, the json storage feature is actually quite interesting
<yorickpeterse> bougyman: link?
<yorickpeterse> I have no idea who those people are
<yorickpeterse> e.g. I'm pretty sure Mongo can handle 10k docs fine
<yorickpeterse> However heavens forbid getting the first 1000 out of a collection of 45 million
rwk1 has quit [Ping timeout: 252 seconds]
<bougyman> the thing is, even if you have a really defined purpose for some other data store... you can still access it through pg.
mindriot101 has joined #ruby-lang
mindriot101 has quit [Client Quit]
<bougyman> it's a federated database. you just define the foreign data wrapper and query it directly from pg.
<bougyman> you can query redis, ldap, mongo, flat files, imap, there are foreign data wrappers for tons of stores.
havenwood has quit [Remote host closed the connection]
<bougyman> and it's got an evented pub-sub message bus for republishing.
<yorickpeterse> bougyman: do you happen to know the specific article of that study?
<bougyman> apparently i'm a pg adbot today
<bougyman> /rantover
<yorickpeterse> haha meanwhile Mongo is actually having issues again
<yorickpeterse> Though it looks like generic AWS network is borken
mistym has joined #ruby-lang
<bougyman> yorickpeterse: there are a few.
whitecrow1 has joined #ruby-lang
whitecrow1 has quit [Changing host]
whitecrow1 has joined #ruby-lang
havenwood has joined #ruby-lang
<yorickpeterse> ta
ayonkhan has joined #ruby-lang
ayonkhan has quit [Remote host closed the connection]
jonathanmarvens has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby-lang
solars has joined #ruby-lang
twright has quit [Ping timeout: 264 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
centrx has joined #ruby-lang
vpretzel|1343 has quit [Remote host closed the connection]
vpretzel|1343 has joined #ruby-lang
emaxi has joined #ruby-lang
mykoweb has joined #ruby-lang
d4rkr4i has joined #ruby-lang
emaxi has quit [Client Quit]
mindriot101 has joined #ruby-lang
mindriot101 has quit [Client Quit]
beef-wellington has quit [Ping timeout: 252 seconds]
mindriot101 has joined #ruby-lang
elia has joined #ruby-lang
<yorickpeterse> bougyman: but I feels ya, Pg is pretty sweet
<yorickpeterse> even though I rarely use it
<yorickpeterse> (though that might change soon (tm))
yann_ck has joined #ruby-lang
|jemc| has joined #ruby-lang
araujo has joined #ruby-lang
araujo has quit [Changing host]
araujo has joined #ruby-lang
beef-wellington has joined #ruby-lang
yfeldblum has joined #ruby-lang
TimmyB has joined #ruby-lang
zlogan has quit [Ping timeout: 240 seconds]
yann_ck has quit [Client Quit]
sandbags has joined #ruby-lang
yann_ck has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
mistym has joined #ruby-lang
<TimmyB> Ruby newbie here. Why isn't this code printing anything to the console? https://gist.github.com/anonymous/11258459
<DefV> print requires a newline
<DefV> you want "puts"
<DefV> uh
<DefV> and you want to encapsulate your strings with ""
yann_ck has quit [Client Quit]
<yorickpeterse> ^
<TimmyB> Thank you DefV
<gnufied> TimmyB: because ruby interpretes anything you have written after print # as comment
yfeldblum has quit [Ping timeout: 264 seconds]
sandbags has quit [Ping timeout: 240 seconds]
<TimmyB> what's the correct format to include a variable in a print (or puts) statement?
ikrima has joined #ruby-lang
ttilley has joined #ruby-lang
ttilley has quit [Changing host]
ttilley has joined #ruby-lang
<centrx> TimmyB, You still need to use quotation marks for the string
developerjustin has joined #ruby-lang
<centrx> >> [:timmy].map { |x| "hi #{x}" }
<eval-in__> centrx => ["hi timmy"] (https://eval.in/141261)
rippa has joined #ruby-lang
Fretta has joined #ruby-lang
mindriot101 has left #ruby-lang ["WeeChat 0.4.3"]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
emaxi has joined #ruby-lang
<TimmyB> Duh. Thanks centrx. Sometimes I can't find the ketchup in the fridge even though I'm staring right at it.
T141 has joined #ruby-lang
ttilley has quit [Quit: Linkinus - http://linkinus.com]
developerjustin has quit [Quit: Leaving...]
<TimmyB> Got my little Ruby snippet working. But why does it always print 'nil' after running?
<momomomomo> because you return nil
<TimmyB> meaning what?
<momomomomo> >> def hello_world; end; puts hello_world;
<eval-in__> momomomomo => ... (https://eval.in/141284)
<momomomomo> >> def hello_world; end; hello_world;
<eval-in__> momomomomo => nil (https://eval.in/141285)
<TimmyB> Sorry I don't follow the snippet example.
T141 has quit [Ping timeout: 240 seconds]
<momomomomo> TimmyB: You're returning nil, what's there to miss?
rwk1 has joined #ruby-lang
ttilley has joined #ruby-lang
<TimmyB> I see patience has run out among some here already ...
AncientAmateur has quit [Remote host closed the connection]
<canton7> TimmyB, pastie your snippet?
achal has joined #ruby-lang
<TimmyB> Thanks canton7. Just turned to Google, which I should have done before posting here ...
<centrx> TimmyB, The return value of the last line of a method is the return value for the method.
<centrx> TimmyB, irb calls #inspect on the object returned
rwk1 has quit [Ping timeout: 240 seconds]
<TimmyB> Got it now. Thanks centrx
allomov has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
wallerdev has joined #ruby-lang
enebo has joined #ruby-lang
mindriot101 has joined #ruby-lang
mindriot101 has quit [Client Quit]
rolfb has joined #ruby-lang
cbreeze has joined #ruby-lang
cbreeze has quit [Client Quit]
rolfb_ has joined #ruby-lang
rolfb has quit [Read error: Connection reset by peer]
ikrima has quit [Ping timeout: 252 seconds]
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
rolfb_ has quit [Quit: Leaving...]
skade has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 255 seconds]
rwk1 has joined #ruby-lang
khaase_ has quit [Ping timeout: 255 seconds]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
ssb123_ has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
rahul_j has joined #ruby-lang
rahul_j has quit [Client Quit]
rwk1 has quit [Ping timeout: 276 seconds]
pixelhandler_ has joined #ruby-lang
pixelhandler_ is now known as pixelhandler
ssb123 has quit [Ping timeout: 276 seconds]
beef-wellington has joined #ruby-lang
iliketurtles has joined #ruby-lang
ssb123_ has quit [Ping timeout: 252 seconds]
jsrn has quit [Ping timeout: 240 seconds]
d4rkr4i has quit [Quit: Leaving.]
sandbags has quit [Ping timeout: 252 seconds]
rwk1 has joined #ruby-lang
x0f has joined #ruby-lang
AncientAmateur has joined #ruby-lang
omosoj has joined #ruby-lang
x0f_ has quit [Read error: Operation timed out]
<sarkyniin> hey
<sarkyniin> the following line gives me an error:
<sarkyniin> info[:what] =~ /^!memo (.+?) (.+)$/ do |nick, message|
<sarkyniin> (eval):11: syntax error, unexpected '|', expecting '='
<apeiros> that line makes no sense
<apeiros> what do you expect it to do?
<sarkyniin> info[:what] is the message the user sent
<sarkyniin> I extract the nick (first parenthesis in regex) and message (second parenthesis in regex)
<sarkyniin> and use them in a block
<apeiros> sarkyniin: a block must be passed to a method
<apeiros> sarkyniin: to which method do you pass this block?
LMity has joined #ruby-lang
<ledestin> if =~ does support block, argument would have to be parenthesized
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<apeiros> ledestin: a) symbolic methods can't take blocks, b) no, params don't need parens with do/end
<sarkyniin> apeiros: I think =~ supports blocks
<sarkyniin> no?
<apeiros> sarkyniin: no
<apeiros> sarkyniin: no symbolic method (+, -, *, =~, <=>, []) can accept a block
<ledestin> apeiros: symbolic? it might be String
<apeiros> (technically they can, but it'd only work by using send)
<apeiros> ledestin: ^ for what a symbolic method is
<apeiros> or what I mean by it
<ledestin> ok
jonathanmarvens has joined #ruby-lang
<apeiros> ledestin: and for b), proof here:
mistym has quit [Remote host closed the connection]
<apeiros> >> def foo(arg); yield(arg+1); end; foo 10 do |x| x+5 end
<eval-in__> apeiros => 16 (https://eval.in/141321)
<apeiros> with {}, you need parens, due to different precedence of {} vs. do/end
shinnya has quit [Ping timeout: 264 seconds]
ttilley has quit [Changing host]
ttilley has joined #ruby-lang
khaase has quit [Remote host closed the connection]
bousquet has joined #ruby-lang
<sarkyniin> apeiros: how would I go about doing what I want?
LMity has quit [Ping timeout: 276 seconds]
<sarkyniin> I don't have any idea besides the code posted before.
<sarkyniin> :s
<apeiros> sarkyniin: String#match, MatchData#captures
<sarkyniin> ooooh
<sarkyniin> thanks
tbuehlmann has quit [Quit: Leaving]
<sarkyniin> apeiros: nick,message = /^!memo (.+?) (.+)/.captures
<sarkyniin> is this correct?
<apeiros> sarkyniin: no
<apeiros> /^!memo (.+?) (.+)/ is a Regexp instance. There is no Regexp#captures
<sarkyniin> ohok
<apeiros> you do match_data = string.match(regexp)
<sarkyniin> nick,message = /^!memo (.+?) (.+)/.match(info[:what]).captures
<apeiros> and then if match_data then cap1, cap2, … = match_data.captures
<apeiros> you can do it that way round too. but this will raise an exception if there's no match.
<sarkyniin> I already do an initial check to see if it matches anyway
iliketurtles has quit [Quit: zzzzz…..]
<sarkyniin> wait.
<sarkyniin> this is correct code, right?
<workmad3> sarkyniin: no
<sarkyniin> ;~;
<sarkyniin> I get an unexpected end keyword error
<workmad3> sarkyniin: look very closely at this - 'Class Memo'
<sarkyniin> is it "class Memo"?
imperator has joined #ruby-lang
<sarkyniin> oh man, it was that.
<sarkyniin> thanks workmad3
<sarkyniin> also thanks apeiros
benlovell has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
philoserf_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
philoserf has joined #ruby-lang
philoserf_ has left #ruby-lang [#ruby-lang]
symm- has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
d4rkr4i has joined #ruby-lang
symm- has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
arBmind1 has quit [Ping timeout: 276 seconds]
tris has quit [Read error: Connection reset by peer]
qba73 has quit []
mikecmpbll has joined #ruby-lang
ascarter has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
ikrima has joined #ruby-lang
robbyoconnor has joined #ruby-lang
tris has joined #ruby-lang
skade has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
retro|cz has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hauleth has joined #ruby-lang
ascarter has joined #ruby-lang
philoserf is now known as _random_citizen_
djbkd has joined #ruby-lang
hauleth has left #ruby-lang [#ruby-lang]
Jolly1 has quit [Ping timeout: 264 seconds]
hauleth has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
elia has joined #ruby-lang
elia has quit [Client Quit]
futilegames has quit [Quit: futilegames]
amsi has joined #ruby-lang
symm- has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
mikecmpbll has joined #ruby-lang
rofel has joined #ruby-lang
elia has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
djbkd has joined #ruby-lang
RobertBirnie has joined #ruby-lang
dorei has joined #ruby-lang
jsrn has joined #ruby-lang
t4nk331 has joined #ruby-lang
<t4nk331> hi everyone
_elia has joined #ruby-lang
<t4nk331> i had a question is their any good ruby admin resoucres for remote host and stuff
skade has quit [Quit: WeeChat 0.4.3]
mikecmpb_ has joined #ruby-lang
ikrima has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby-lang
elia has quit [Ping timeout: 252 seconds]
jsrn has quit [Quit: Leaving]
rwk1 has quit [Remote host closed the connection]
DJScias has joined #ruby-lang
<DJScias> Hello there!
<DJScias> How are you all today?
itsmynick has joined #ruby-lang
<centrx> .
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
<DJScias> I have a small question and the time to wait to see if anyone feels like answering: I'm working on an ircbot in ruby which posts the commits through IRC.. The bot uses a 'system("mkfifo #{$fifo}")' in the '/tmp/' folder.. But for some reason there is no fifo being created. I'm running on windows, any ideas?
<centrx> Does Windows have mkfifo?
robbyoconnor has quit [Ping timeout: 252 seconds]
Pupeno has quit []
<DJScias> I've been looking around for that and nothing really gives me an answer on that.
<DJScias> It was a simple bot created for running under the Windows environment though.
<DJScias> If you want, I can create a gist. /shrugs
<centrx> mkfifo is a Unix command and /tmp/ is a Unix directory
<centrx> It might by using a Unix environment under Windows, like cygwin or ming
retro|cz has joined #ruby-lang
<DJScias> What do you suggest I do?
<imperator> use Ruby's pipes?
<imperator> there's also win32-pipe
vpretzel_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<DJScias> Well.
<DJScias> At the bottom it calls system("mkfifo
<DJScias> At the top it defines $fifo
<ledestin> DJScias: you could go all the way and use cygwin
<DJScias> I'll be honest when I say I have no idea how to change it to that.
djbkd has quit [Remote host closed the connection]
<DJScias> I'm working with a script that was provided for the bot, I did minor changes to it.. But that's how far my knowledge goes
<ledestin> install cygwin, run it from cygwin shell
vpretzel|1343 has quit [Ping timeout: 265 seconds]
<DJScias> Alright.
Asher has quit [Quit: Leaving.]
<imperator> globals, hard coded paths and system calls
<imperator> OOF
dwknoxy has joined #ruby-lang
vpretzel_ is now known as vpretzel
robbyoconnor has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby-lang
enebo has quit [Quit: enebo]
hahuang61 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
emaxi has quit [Remote host closed the connection]
rofel has quit [Remote host closed the connection]
emaxi has joined #ruby-lang
metamaterial has joined #ruby-lang
developerjustin has joined #ruby-lang
itsmynick has quit [Ping timeout: 252 seconds]
emaxi has quit [Ping timeout: 252 seconds]
_elia has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby-lang
<TimmyB> Newbie question: why does "Hello".downcase! return "hello" while "hello".downcase! returns nil ?
<ledestin> TimmyB: changed string vs unchanged
<ledestin> it should be reflected in docs
<ledestin> it’s a common pattern in Ruby core
<apeiros> TimmyB: use the non-bang method if you want the return value
qba73 has joined #ruby-lang
<TimmyB> seems confusing. okay thanks ledestin and apeiros
<ledestin> TimmyB: it’s bad enough, especially for map!
<apeiros> TimmyB: bang methods mutate the object in-place. you're not supposed to need the return value. so the patter is to make the return value meaningful by returning nil w/o change and self with change
havenwood has quit [Ping timeout: 252 seconds]
dsaint-pierre has quit [Remote host closed the connection]
<apeiros> >> x = "hello"; x.downcase!; x
<eval-in__> apeiros => "hello" (https://eval.in/141329)
<apeiros> don't chain bang methods. don't use return values of bang methods (unless you actually want to use the "changed/not changed" information)
<TimmyB> apeiros: i shall write that down. thank you.
robbyoconnor has quit [Ping timeout: 252 seconds]
<apeiros> sadly, still a common mistake, even among longer time users :(
<centrx> >> "Why".downcase!.send("<<", " not!?")
<eval-in__> centrx => "why not!?" (https://eval.in/141330)
<ledestin> I often want to chain map!, but never encountered need to check whether it was mutated
allomov has joined #ruby-lang
cnivolle_ has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby-lang
djbkd has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hauleth has left #ruby-lang [#ruby-lang]
cnivolle has quit [Ping timeout: 246 seconds]
<apeiros> ledestin: just continue in a new statement instead of chaining
<apeiros> after all, you don't need an assignment
cnivolle_ has quit [Ping timeout: 246 seconds]
alex-quiterio has quit [Quit: Leaving.]
rwk1 has joined #ruby-lang
stamina has quit [Read error: Operation timed out]
robbyoconnor has quit [Ping timeout: 252 seconds]
bgant has joined #ruby-lang
bgant has left #ruby-lang [#ruby-lang]
omosoj has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
omosoj has joined #ruby-lang
Kristine_ has joined #ruby-lang
rwk1 has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<Kristine_> Is there no gcdata for ruby 2.0? Is it possible to memory profile in ruby 2.0 with ruby-prof? Having some trouble
phansch has joined #ruby-lang
djbkd has joined #ruby-lang
RubyDubyDoo has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<centrx> ?
whitecrow1 has quit [Quit: Leaving]
sepp2k has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Kristine_> rvm install 2.0.0 --patch gcdata --name perf failed with Patch 'gcdata' not found.
yann_ck has joined #ruby-lang
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
kith has quit [Quit: kith]
kith has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
<centrx> Kristine_, RVM source directory only has that patch for 1.9.3 and 1.9.2
<centrx> Kristine_, There have been significant garbage-collection changes since then
emaxi has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
emaxi has quit [Client Quit]
DJScias has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
iliketurtles has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 276 seconds]
<Kristine_> Thx for the info. I ran ruby-prof against a rake task in ruby 2.0.0 with --mode=memory and --printer=graph_html and the results are not useful (no memory usage information). https://github.com/ruby-prof/ruby-prof mentions that a 'patched Ruby interpreter' is required. My running theory is that ruby-prof doesn't play well with ruby 2.0 yet, so I'll try a patched 1.9.3 instead temporarily just to profile.
loincloth has joined #ruby-lang
jonathanmarvens has quit [Ping timeout: 264 seconds]
Squarepy has joined #ruby-lang
ttilley has quit [Quit: Leaving...]
* imperator sees what appears to be a few forks of ruby-prof, wonders if one of them works with 2.0
<imperator> hm, changelog says it supports ruby 2.0 as of 0.14.0
<imperator> 2.1
amsi has quit [Ping timeout: 264 seconds]
amsi has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
Fretta has quit [Ping timeout: 252 seconds]
allomov has quit [Ping timeout: 252 seconds]
ikrima has joined #ruby-lang
rwk1 has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
allomov has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 265 seconds]
ikrima has quit [Ping timeout: 276 seconds]
rwk1 has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby-lang
itsmynick has joined #ruby-lang
itsmynick has quit [Client Quit]
jonathanmarvens has joined #ruby-lang
omosoj has quit [Ping timeout: 252 seconds]
CodeBunny has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<imperator> how do I avoid this warning? syswrite for buffered IO
<imperator> ah, sync = true
justinweiss has quit [Ping timeout: 246 seconds]
lele has quit [Ping timeout: 246 seconds]
phrozen77 has quit [Ping timeout: 246 seconds]
kvs has quit [Ping timeout: 246 seconds]
kalleth has quit [Ping timeout: 246 seconds]
zenojis has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 247 seconds]
lele|w has quit [Ping timeout: 247 seconds]
RubyDubyDoo has quit [Quit: Leaving.]
stamina has joined #ruby-lang
justinweiss has joined #ruby-lang
ikrima has joined #ruby-lang
amsi has joined #ruby-lang
amsi has quit [Ping timeout: 264 seconds]
antonishen has quit [Ping timeout: 246 seconds]
gnufied has quit [Ping timeout: 245 seconds]
kalleth has joined #ruby-lang
kvs_ has joined #ruby-lang
strmpnk has quit [Ping timeout: 246 seconds]
swills has quit [Ping timeout: 246 seconds]
joelmheim has quit [Ping timeout: 246 seconds]
avdi has quit [Ping timeout: 245 seconds]
gchristensen has joined #ruby-lang
stamina has quit [Client Quit]
ratmav has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
<gchristensen> is there a difference between #ruby and #ruby-lang?
<apeiros> take your pick :)
<apeiros> "-lang", ~600 people, this one being the official
<ratmav> i'm looking to return either true or false from a method. which is preferred? creating a variable, assigning true/false to the variable, then implictly return the variable?
lele has joined #ruby-lang
gnufied has left #ruby-lang [#ruby-lang]
<CodeBunny> ratmav: The later is more straghtforward, the former is sometimes easier to use
<ratmav> apeiros, explicit return?
<ratmav> let me get that gist up
postmodern has joined #ruby-lang
<gchristensen> *phew* -lang sounds way better, I'm not sure I've ever gotten good help from #ruby itself
joelmheim has joined #ruby-lang
axv has joined #ruby-lang
<ratmav> apeiros, i'll mock up a gist real quick
zenojis has joined #ruby-lang
antonishen has joined #ruby-lang
gnufied has joined #ruby-lang
elia has joined #ruby-lang
<apeiros> oh, different owners
<ratmav> apeiros, CodeBunny : trying to get my style "proper" i guess. been using the ruby style guide lately
<CodeBunny> I use both, depending on what I'm trying to do.
<CodeBunny> and 'proper' be fucked
<apeiros> ratmav: latter if you can
<ratmav> or explicitly returning true or false?
<apeiros> ratmav: yes. but feel free to gist the method in question.
<CodeBunny> #ruby is chattier
jgpawletko has quit [Quit: jgpawletko]
lacrosse has quit [Ping timeout: 249 seconds]
allomov has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
yann_ck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arBmind has quit [Quit: Leaving.]
zlogan has joined #ruby-lang
<CodeBunny> But I'm a stinky girl and I use tabs
<apeiros> CodeBunny: IMO the former case will be obvious, as in the method is multiline and the result can come from several places or similar
phrozen77 has joined #ruby-lang
avdi has joined #ruby-lang
<apeiros> CodeBunny: i.e., use latter if you can, if you can't it'll be self-evident anyway
lacrosse has joined #ruby-lang
<CodeBunny> exactly
<ratmav> apeiros, CodeBunny: gist - https://gist.github.com/ratmav/11266075
ikrima has quit [Ping timeout: 252 seconds]
<apeiros> but something like: def foo?; res = @x =~ /blah/; res ? true : false; end # <-- silly, drop that `res =` and do the ternary straight
strmpnk has joined #ruby-lang
<apeiros> ratmav: reduce that to just array_list.include? parameter
<apeiros> single line method really
yfeldblum has joined #ruby-lang
<apeiros> there's zero point in "translating" the already boolean return value of include?
<gchristensen> I'm using open-uri on an HTTPS resource, and I'm getting an OpenSSL::SSL::SSLError SSL_connect exception about certificate verify failed, meanwhile chrome and curl do fine, running 2.0.0p353 -- here's a gist (with a sample URL, and output) https://gist.github.com/grahamc/a05e6e1d80524e694807 -- any tips on resolving this? I tried updating the ca bundle, that didn't seem to make an effect. I don't want to
<gchristensen> disable SSL peer verification.
swills has joined #ruby-lang
<apeiros> if array_list is sufficiently short, you can drop that too and just inline it
cschneid has joined #ruby-lang
swills has quit [Changing host]
swills has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
<ratmav> apeiros, that's what i just commented in my gist. i like your suggestion a lot
<CodeBunny> yeh, you dont have to do all that if/else stuff
zlogan has quit [Ping timeout: 252 seconds]
<ratmav> apeiros, CodeBunny: thanks so much.
<CodeBunny> you just say is this?
<ratmav> that streamlines everything even further
<CodeBunny> are you coming from java?
<ratmav> mostly. python as well
<ratmav> but the verbosity from java sticks.
<cored> how would be the best way to know if an string has numbers in it
<apeiros> cored: =~ /\d/
<cored> '13' =~ /\D/
<cored> hm
<ratmav> CodeBunny, also, i'm cleaning up a lot of ruby code written by someone with a heavy java background
<apeiros> or: define "has numbers"
<cored> apeiros: '13+13'
<CodeBunny> ruby gets right to the point in a single sentance for the most part
<cored> it have two numbers and one addition character
<ratmav> CodeBunny, i've noticed. trying to break old bad habits and create good new ones.
Evanescence has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<ratmav> at least for ruby
<CodeBunny> They arn't 'BAD'. they are just not 'Ruby'
<ratmav> CodeBunny, I understand and appreciate that
kitak has quit [Remote host closed the connection]
<ratmav> I really don't see a lot of if/else in Ruby. lots of blocks and procs. lots of one-liners
<ratmav> Nice language.
<ratmav> CodeBunny, apeiros: Thanks again!
ratmav has quit [Quit: Leaving]
<CodeBunny> ratmav have you done the code academy tutorials?
kitak has joined #ruby-lang
<CodeBunny> THAT will break your habits
<CodeBunny> also KOANS
<yorickpeterse> hail Ruby
solars has joined #ruby-lang
<apeiros> cored: I'd understand as "13+13" to "have numbers in it"
<CodeBunny> even if you know the language...
<apeiros> i.e. return true for your question
<apeiros> I'd also consider "hello 13" to "have numbers in it", i.e., return true for your question
_ht has quit [Remote host closed the connection]
<apeiros> so is that what you mean, or if not, what do you really mean?
<cored> apeiros: sure in those two context I would like to know
jonathanmarvens has quit [Remote host closed the connection]
<apeiros> know *what*?
<cored> sorry
<cored> somebody yell at me :-)
<cored> "13 with any character" contains numbers
* apeiros yells at cored
jonathanmarvens has joined #ruby-lang
<apeiros> helped?
<cored> apeiros: yes
<cored> :-P
* yorickpeterse breaks out the slapping rod and looks sternly at cored
<cored> but both context that you provide are true for my problem
<yorickpeterse> does that help?
Coincidental has joined #ruby-lang
<cored> yorickpeterse: of course; that always helps
qba73 has quit []
<apeiros> cored: then just =~ /\d/
jgpawletko has joined #ruby-lang
<CodeBunny> cored: are you trying to regex?
<apeiros> cored: or do you also want non-latin numbers?
<yorickpeterse> I recommend using String#to_i's return value
<cored> apeiros: no
<yorickpeterse> >> '10 a'.to_i
<eval-in__> yorickpeterse => 10 (https://eval.in/141362)
<yorickpeterse> See, rock solid
<cored> yorickpeterse: the thing is taht *.to_i
<cored> returns 0
amsi has quit [Ping timeout: 264 seconds]
<yorickpeterse> ... I was joking
* yorickpeterse breaks out the slapping rod and looks sternly at cored
<yorickpeterse> GOD DAMN IT
<cored> :-(
<cored> please don't
<yorickpeterse> haha
<yorickpeterse> But yeah, regexps are about your best bet
<yorickpeterse> there's probably some unicode regexp for numbers too, similar to \p{Word} or w/e it was
amsi has joined #ruby-lang
jonathanmarvens has quit [Ping timeout: 240 seconds]
<yorickpeterse> though I doubt it would match, e.g., Japanese numbers
<yorickpeterse> >> "十四日" =~ /\d/
<eval-in__> yorickpeterse => nil (https://eval.in/141363)
saarinen has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
RubyDubyDoo has joined #ruby-lang
d4rkr4i has quit [Quit: Leaving.]
dsaint-pierre has quit [Ping timeout: 252 seconds]
jonathanmarvens has joined #ruby-lang
rwk1 has joined #ruby-lang
arBmind has joined #ruby-lang
havenwood has joined #ruby-lang
<whitequark> yorickpeterse: that's for \decimal numbers
<whitequark> >> "十四日" =~ /\p{Digit}/
<eval-in__> whitequark => nil (https://eval.in/141365)
<whitequark> grmbl
<centrx> ASCII
<whitequark> centrx: hm?
gchristensen has left #ruby-lang ["WeeChat 0.4.1"]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
CodeBunny has quit [Ping timeout: 252 seconds]
Asher has joined #ruby-lang
amsi has quit [Ping timeout: 264 seconds]
<apeiros> >> "十四日" =~ /\p{Number}/
<eval-in__> apeiros => nil (https://eval.in/141371)
<apeiros> hm
<apeiros> I think \p{Digit} worked for arabic digits
<apeiros> but can't find the source of those anymore :)
yfeldblum has quit [Remote host closed the connection]
<apeiros> centrx: \p expressions use unicode ranges, so not just ascii
pixelhandler has quit [Quit: pixelhandler]
|jemc| has quit [Quit: WeeChat 0.4.1]
<apeiros> >> "hägar"[/p{Word}+/]
<eval-in__> apeiros => nil (https://eval.in/141372)
bgant has joined #ruby-lang
<apeiros> wtf?
<apeiros> >> "hägar"[/p{Word}+/u]
<eval-in__> apeiros => nil (https://eval.in/141373)
<apeiros> ah, lol
<apeiros> >> "hägar"[/\p{Word}+/u]
<eval-in__> apeiros => "hägar" (https://eval.in/141374)
bgant has quit [Client Quit]
axv has quit []
d4rkr4i has joined #ruby-lang
<apeiros> but actually… that's worth a try
<apeiros> >> "hägar"[/\p{Word}+/]
<eval-in__> apeiros => "hägar" (https://eval.in/141375)
<centrx> apeiros, Is this your favorite word or something?
<apeiros> hm, ok, not an issue with eval-in's default encoding
<apeiros> centrx: no. it just stuck as a test word :)
|jemc| has joined #ruby-lang
<yxhuvud> apeiros: That may have changed - iirc, ruby 1.9.3 and 2.0 use ascii as default regex encoding, while 2.1 change all defaults to utf8.
<yxhuvud> so it may depend on bot ruby version
<yxhuvud> >> RUBY_VERSION
<eval-in__> yxhuvud => "2.1.0" (https://eval.in/141378)
<apeiros> 20>> RUBY_VERSION
<eval-in__> apeiros => "2.0.0" (https://eval.in/141379)
<apeiros> 19>> RUBY_VERSION
<eval-in__> apeiros => "1.9.3" (https://eval.in/141380)
<apeiros> 18>> RUBY_VERSION
<eval-in__> apeiros => "1.8.7" (https://eval.in/141381)
<apeiros> you can have what you want :)
<yxhuvud> oh. nice :D
<apeiros> and yes, e.g. \w changed from 1.8 to 1.9
<apeiros> in 1.8 it depended on whether it was //u or //n
<apeiros> in 1.9 it's always equivalent to [A-Za-z0-9_]
<apeiros> 18>> ["aäöü"[/\w+/u], "aäöü"[/\w+/n]]
<eval-in__> apeiros => ["a\303\244\303\266\303\274", "a"] (https://eval.in/141382)
<apeiros> 19>> ["aäöü"[/\w+/u], "aäöü"[/\w+/n]]
<eval-in__> apeiros => /tmp/execpad-46abccc5ed2d/source-46abccc5ed2d:2: invalid multibyte char (US-ASCII) ... (https://eval.in/141383)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> gah, fuck
rwk1 has quit [Ping timeout: 265 seconds]
<yorickpeterse> lrn2multibyte
<apeiros> >> ["aäöü".b[/\w+/u], "aäöü".b[/\w+/n]]
<eval-in__> apeiros => incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError) ... (https://eval.in/141384)
MichD is now known as michd
<apeiros> >> ["aäöü"[/\w+/u], "aäöü".b[/\w+/n]]
<eval-in__> apeiros => ["a", "a"] (https://eval.in/141385)
mehlah has quit [Quit: Leaving...]
amsi has joined #ruby-lang
heftig has joined #ruby-lang
djbkd has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
d4rkr4i has quit [Ping timeout: 252 seconds]
<cored> :-/
<cored> the problem wasn't that hard
<cored> what the heck just happend?
t4nk331 has quit [Quit: Page closed]
<imperator> non-english numbers, hee
<imperator> what about roman numerals? huh? what then?
djbkd has quit [Remote host closed the connection]
<drbrain> >> "aäöü"[/\p{Word}+/u]
<eval-in__> drbrain => "aäöü" (https://eval.in/141386)
nofxx has quit [Ping timeout: 276 seconds]
relix has joined #ruby-lang
retro|cz has quit [Ping timeout: 276 seconds]
relix has quit [Client Quit]
imperator has left #ruby-lang ["Leaving"]
yfeldblum has joined #ruby-lang
<sarkyniin> hey
<sarkyniin> I'm against a dilemma
<sarkyniin> I have a hash where each key is a user's nick and the value is a message
<drbrain> sarkyniin: ok
<sarkyniin> I'm making it so, if the user already has a message waiting and you send him another message, it concatenates the two messages
guns has joined #ruby-lang
<sarkyniin> I'm trying to limit each user to only one memo until the current memo is sent
<sarkyniin> and I don't know how to do that :s
<sarkyniin> specifically, how to link each message with a specific user that sent it
d4rkr4i has joined #ruby-lang
heftig has quit [Quit: Quitting]
<zenspider> sarkyniin: I don't understand your specifically line
<zenspider> but messages[user] << memo should handle your general description just fine
<sarkyniin> yeah
<sarkyniin> I already have the single memo working
<sarkyniin> but I want to limit each user to only one memo
<sarkyniin> for example, if they already sent a memo and they want to send another
Asher has quit [Quit: Leaving.]
<sarkyniin> they have to wait until the current memo is read
<sarkyniin> / received
relix has joined #ruby-lang
pixelhandler has joined #ruby-lang
<zenspider> you just said you wanted to concatenate
vpretzel is now known as vpretzel|gone
<sarkyniin> wait
<sarkyniin> I think I found a way to do it
heftig has joined #ruby-lang
toastynerd has joined #ruby-lang
ikrima has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
Voker57|2 is now known as Voker57
iliketurtles has joined #ruby-lang
ascarter has joined #ruby-lang
djbkd has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
ascarter has quit [Client Quit]
CodeBunny has joined #ruby-lang
yalue has quit [Quit: Leaving]
dsaint-pierre has joined #ruby-lang
ascarter has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
futilegames has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby-lang
futilegames has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 276 seconds]
nofxxx has joined #ruby-lang
omosoj has joined #ruby-lang
rwk1 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
futilegames_ has joined #ruby-lang
futilegames has quit [Read error: Connection reset by peer]
futilegames_ is now known as futilegames
yfeldblum has joined #ruby-lang
d4rkr4i has quit [Quit: Leaving.]
mehlah has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
nofxxx has quit [Remote host closed the connection]
allomov has joined #ruby-lang
robmiller has joined #ruby-lang
rwk1 has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby-lang
alexju has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
momomomomo has joined #ruby-lang
saarinen has quit [Quit: saarinen]
achal has quit [Quit: Connection closed for inactivity]
hahuang61 has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
nathanstitt has quit [Quit: I growing sleepy]
RubyDubyDoo has quit [Quit: Leaving.]
ikrima_ has joined #ruby-lang
ikrima has quit [Read error: Connection reset by peer]
lele|w has joined #ruby-lang
hahuang65 has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
hahuang61 has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
iliketurtles has joined #ruby-lang
fragamus_ has joined #ruby-lang
mykoweb has quit [Ping timeout: 255 seconds]
solars has quit [Ping timeout: 240 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robmiller has quit [Quit: Leaving.]
jgpawletko has quit [Quit: jgpawletko]
dsaint-pierre has joined #ruby-lang
robmiller has joined #ruby-lang
jcs222 has joined #ruby-lang
fragamus_ has quit [Quit: Computer has gone to sleep.]
dsaint-pierre has quit [Ping timeout: 265 seconds]
rwk1 has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 276 seconds]
kyb3r_ has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
sandbags has quit []
rwk1 has quit [Ping timeout: 240 seconds]
dsaint-pierre has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Squarepy has quit [Quit: Leaving]
bjh13 has joined #ruby-lang
agarie has quit [Remote host closed the connection]
elia has quit [Read error: Connection reset by peer]
developerjustin has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.1]
|jemc| has joined #ruby-lang
elia has joined #ruby-lang
beef-wellington has quit [Ping timeout: 252 seconds]
imperator has joined #ruby-lang
<imperator> drbrain, ping
<drbrain> imperator: pong
<imperator> figured this would be easier that tweets ;)
<drbrain> yep
simono has joined #ruby-lang
<imperator> so, you can release the gvl in a c extension, but can't get the same behavior in pure ruby? is that right?
<drbrain> correct
<drbrain> the GVL locks the VM to a thread running ruby code
<imperator> hm, this is for ffi, just thought of something
jsaak has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
loincloth has quit []
<apeiros> GVL? new name for GIL?
<drbrain> GIL is the new name for GVL
<imperator> it has a blocking option for functions, wonder if that does the trick
<apeiros> ah
yfeldblum has joined #ruby-lang
<drbrain> imperator: I thought FFI had code somewhere to release GVL
<imperator> yeah, that's what I'm digging for
<drbrain> I haven't checked, but I recall others claiming that
<imperator> i think callbacks do it automatically
futilegames has quit [Quit: futilegames]
<imperator> but don't quote me on it
<drbrain> yeah, me neither
yfeldblum has quit [Ping timeout: 240 seconds]
cnivolle has joined #ruby-lang
fezziwig has joined #ruby-lang
yfeldblum has joined #ruby-lang
ikrima_ has quit [Ping timeout: 252 seconds]
<imperator> ah, i think if you set :blocking => true it releases the GIL
<imperator> if i'm reading the docs and source code correctly
michaeldeol has joined #ruby-lang
ikrima has joined #ruby-lang
cnivolle has quit []
mykoweb has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
mykoweb has joined #ruby-lang
jsaak has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
khaase has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby-lang
bin7me has quit [Remote host closed the connection]
_dabradley has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rwk1 has joined #ruby-lang
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby-lang
_dabradley has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
imperator has quit [Quit: Valete!]
ascarter has joined #ruby-lang
vpretzel_ has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
vpretzel|gone has quit [Ping timeout: 265 seconds]
Asher has joined #ruby-lang
djbkd has joined #ruby-lang
Coincidental has quit [Read error: Connection reset by peer]
Coincidental has joined #ruby-lang
rwk1 has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby-lang
ssb123 has joined #ruby-lang
jsaak has quit [Ping timeout: 252 seconds]
banister is now known as banister`sleep
jonathanmarvens has joined #ruby-lang
robbyoconnor has quit [Read error: Operation timed out]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rofel has joined #ruby-lang
khaase has joined #ruby-lang
shaman42 has quit [Read error: Operation timed out]
shaman42 has joined #ruby-lang
tommylommykins has quit [Read error: Operation timed out]
tommylommykins has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
automationaddict has quit [Ping timeout: 252 seconds]
jonathanmarvens has quit []
Kristine_ has quit [Ping timeout: 252 seconds]
Rylee has quit [Ping timeout: 252 seconds]
khaase has quit [Ping timeout: 265 seconds]
Kristine_ has joined #ruby-lang
Rylee has joined #ruby-lang
funnel has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
toastyne_ has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
ascarter has joined #ruby-lang
fezziwig has quit [Remote host closed the connection]
agarie has joined #ruby-lang
<zenspider> man... Struct shouldn't define to_a. That's horrible
toastyne_ is now known as toastynerd
nathanstitt has quit [Quit: I growing sleepy]
havenwood has quit [Remote host closed the connection]
jcs222 has quit [Read error: Connection reset by peer]
<|jemc|> premature splat problems?
jcs222 has joined #ruby-lang
<zenspider> yeah. Trying to replace BS datastructure of nested arrays with collections of nested structs and it shouldn't pass tests yet
michaeldeol has joined #ruby-lang
retro|cz has joined #ruby-lang
havenwood has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.1]
iliketurtles has quit [Quit: zzzzz…..]
funnel has joined #ruby-lang
frobrob_ has quit [Quit: HUP]
Caius has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
rwk1 has joined #ruby-lang
Caius has joined #ruby-lang
mikecmpb_ is now known as mikecmpbll
rwk1 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 265 seconds]
nertzy2 has joined #ruby-lang
rofel has quit [Quit: Leaving...]
frobrob has joined #ruby-lang
brianpWins has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mykoweb has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
bantic has quit [Quit: bantic]
fijimunkii has quit [Ping timeout: 265 seconds]
developerjustin has joined #ruby-lang
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
developerjustin has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby-lang
jsaak has joined #ruby-lang
mykoweb has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
onewheelskyward has quit [Quit: ZNC - http://znc.in]
mykoweb has quit [Remote host closed the connection]
onewheelskyward has joined #ruby-lang