havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
last_staff has quit [Quit: last_staff]
guacamole has joined #ruby
toretore has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
d0nn1e has quit [Ping timeout: 245 seconds]
ruby-lang737 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<ruby-lang737> Hi All! Does anybody have a link or resource for an example of how we could set up a SQL based database structure to emulate something like Twitter?
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
SuperLag has quit [Quit: pull the plug anyone?]
d0nn1e has joined #ruby
bastelfreak has quit [Disconnected by services]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bastelfreak2 has joined #ruby
cdg has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
benlieb has joined #ruby
jaguarmagenta has joined #ruby
tmtwd has joined #ruby
guacamole has quit [Quit: leaving]
guacamole has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
bmurt has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 260 seconds]
benlieb has quit [Ping timeout: 260 seconds]
platzhirsch has joined #ruby
ruby-lang737 has quit [Ping timeout: 260 seconds]
antoniobeyah has joined #ruby
jbeeze has quit [Remote host closed the connection]
peyton_ has joined #ruby
millerti has joined #ruby
reverberations has quit [Quit: Leaving]
mifadir has quit [Quit: Leaving]
<peyton_> Does anyone know a solution to this issue I've been having, what I do is that I set a variable in a loop but then after the loop breaks the variable don't exist. How would I go about making them hold their values after leaving the loop?
<adam12> Break with the variable or use an instance variable. You might be able to define it outside of the loop and it will work too?
<adam12> Show some code if necessary.
<peyton_> Do you know if changes made to variables inside of loops carry over once the loop breaks?
<peyton_> If so I think I have my solution. I'm trying to make a lil text based RPG sort of thing to help myself get better versed in Ruby.
<millerti> peyton_: Assign a value to the variable before the loop. It will then get modified inside and persist.
<peyton_> Ah, excellent. Thank you!
nankyokusei has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
smlocal has quit [Remote host closed the connection]
jcao219 has joined #ruby
smlocal has joined #ruby
mati_urunda has quit [Remote host closed the connection]
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
Rodya_ has joined #ruby
minimalism has quit [Ping timeout: 256 seconds]
minimalism has joined #ruby
sphex has quit [Read error: Connection reset by peer]
sphex has joined #ruby
pandawhisperer has quit [Quit: Textual IRC Client: www.textualapp.com]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
smlocal has quit [Ping timeout: 260 seconds]
bastelfreak2 is now known as bastelfreak
TomyLobo has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
Ropeney has joined #ruby
tuxaddicted has joined #ruby
poikon has quit [Ping timeout: 246 seconds]
poikon has joined #ruby
j416 has quit [Ping timeout: 244 seconds]
ajaiswal has quit [Ping timeout: 252 seconds]
ajaiswal has joined #ruby
Trynemjoel has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
Trynemjoel has joined #ruby
j416 has joined #ruby
reverberations has joined #ruby
govg has quit [Ping timeout: 252 seconds]
<aarwine> I have a hash of timestamps and values and I need to write out an image of a graph - Can anyone point me towards some gems to get started?
dogweath_ has quit [Remote host closed the connection]
tulak has joined #ruby
peyton_ has quit [Read error: Connection reset by peer]
SteenJobs has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> aarwine: gruff
boombox_ has joined #ruby
<al2o3-cr> /iset
cibs has quit [Ping timeout: 268 seconds]
Derperperd has joined #ruby
cibs has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
boombox_ has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
<aarwine> al2o3-cr: thanks!
antoniobeyah has joined #ruby
jhack has joined #ruby
solocshaw has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
minimalism has quit [Ping timeout: 246 seconds]
tulak has quit [Remote host closed the connection]
enterprisey has joined #ruby
SteenJobs has quit [Quit: peaceee]
rwb has joined #ruby
shashin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gingray has quit [Ping timeout: 246 seconds]
reverberations has quit [Quit: Leaving]
roflmyeggo has quit [Ping timeout: 260 seconds]
frozengeek has quit [Quit: frozengeek]
Ferdroid has joined #ruby
ResidentBiscuit has joined #ruby
<al2o3-cr> aarwine: it's quite a good gem tbh
finisherr has quit [Quit: finisherr]
solocshaw has quit [Ping timeout: 245 seconds]
enterprisey has quit [Quit: Leaving]
ResidentBiscuit has quit [Client Quit]
ResidentBiscuit has joined #ruby
minimalism has joined #ruby
Lucky_ABA has joined #ruby
riskish has joined #ruby
Lucky_ABA has quit [Client Quit]
Lucky_ABA has joined #ruby
dogweather has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
gusrub has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
marxarelli is now known as marxarelli|afk
jackjackdripper has quit [Quit: Leaving.]
antoniobeyah has quit [Quit: antoniobeyah]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
joebobjoe has joined #ruby
Azure|dc has quit [Remote host closed the connection]
<joebobjoe> I'm new to ruby. Having something called a "class instance variable" confuses me.
<joebobjoe> Why does it exist?
<joebobjoe> The syntax @variable makes it look like I'm defining an instance variable
<joebobjoe> But it is something else... why?
reverberations has joined #ruby
nelsonsar has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
aryaching has joined #ruby
<havenwood> joebobjoe: "instance variable" is short for "class instance variable"
<havenwood> joebobjoe: the instance of a class
<havenwood> joebobjoe: they are the same thing
<joebobjoe> havenwood: I'm talking about def self.things @things end vs def things @things end
jeffaustin81 has joined #ruby
<jhack> Any ideas on how i can find a date (01/01/1990) in an array?
<jhack> ex: [‘one’, ’01/01/1990’, ‘two’, ‘three’]
<jhack> forgot what method to use
r3vDev has joined #ruby
Azure has joined #ruby
blackbombay has joined #ruby
giraffe has quit [Quit: ZNC - http://znc.in]
suck has joined #ruby
blackbombay has quit [Ping timeout: 248 seconds]
<al2o3-cr> jhack: arr.find { |date| Date.parse(date) rescue nil }
<jhack> ah okay
<jhack> cool
<jhack> ty
<al2o3-cr> if there is more dates in the array; use Enumberable#find_all
giraffe has joined #ruby
lel has joined #ruby
<al2o3-cr> *Enumerable
tpendragon has joined #ruby
jcao219 has quit [Ping timeout: 258 seconds]
d^sh has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jwinder has joined #ruby
<jhack> is there an indexOf?
<jhack> i need the index of the array
jwinder has quit [Remote host closed the connection]
<jhack> nvm
<al2o3-cr> yeah, #index
<jhack> i dont
Wsewolod has joined #ruby
Wsewolod has left #ruby [#ruby]
rfoust has joined #ruby
jaguarmagenta has joined #ruby
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
Channel6 has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
Didac has quit [Ping timeout: 258 seconds]
ddddddd has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhack has quit [Quit: jhack]
jaguarmagenta has joined #ruby
Didac has joined #ruby
solocshaw has joined #ruby
enterprisey has joined #ruby
Rodya_ has joined #ruby
whathappens has quit [Remote host closed the connection]
antoniobeyah has joined #ruby
whathappens has joined #ruby
UserOO7 has joined #ruby
jhack has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
whathappens has quit [Ping timeout: 248 seconds]
solocshaw has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Ping timeout: 245 seconds]
nowhere_man has joined #ruby
nikivi has quit [Quit: irc]
nelsonsar has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
UserOO7 has quit [Ping timeout: 250 seconds]
skalfyfan has joined #ruby
railssmi_ has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
finisherr has joined #ruby
finisherr has quit [Client Quit]
cibs has joined #ruby
ResidentBiscuit has quit []
tau has quit [Read error: Connection reset by peer]
nofxx has quit [Read error: Connection reset by peer]
armando has quit [Ping timeout: 265 seconds]
rbirch_ has joined #ruby
rbirch_ has quit [Client Quit]
nofxx has joined #ruby
libastral has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Remote host closed the connection]
libastral has joined #ruby
jaguarmagenta has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Remote host closed the connection]
joebobjoe has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
jaguarmagenta has joined #ruby
UserOO7 has joined #ruby
gusrub has joined #ruby
armando has joined #ruby
astrobunny has joined #ruby
dp has joined #ruby
<dp> is it possible to "embed" a gem in a ruby script somehow?
llua has quit [Ping timeout: 245 seconds]
UserOO7 has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vikaton has joined #ruby
enterprisey has quit [Remote host closed the connection]
dogweather has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 265 seconds]
<dp> ls
swills has quit [Read error: Connection reset by peer]
<havenwood> dp: Why do you want to do that? Is it about how the gem is installed? Say more?
JankyDoodle is now known as Janky[PHI]
swills has joined #ruby
enterprisey has joined #ruby
tdy has joined #ruby
ReK2 has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.6]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
ReK2 has joined #ruby
kbdkode has joined #ruby
skalfyfan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ezio> i have a request
<ezio> a feature request
<ezio> very important
<ezio> rename the ruby interpreter rubot
<ezio> that is my big contribution
<ezio> consider yourselves saved
<ezio> i'm not saying this will win me the nobel prize or anything
<ezio> that's really for the comittee to decide
<ezio> but it will probably cure world hunger
montanonic has quit [Ping timeout: 268 seconds]
conta has joined #ruby
domgetter has joined #ruby
gnufied has quit [Ping timeout: 258 seconds]
ropeney_ has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
GodFather has quit [Remote host closed the connection]
<baweaver> ezio: what are you on about?
whathappens has joined #ruby
ropeney_ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
<ezio> just saying that it should be obvious to call the ruby interpreter, rubot
railssmith has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
nofxxx has joined #ruby
Jayson_Virissimo has joined #ruby
<jhack> hmm
<jhack> anyone know why delete_at(index) not being persistent?
<Jayson_Virissimo> jhack: yeah delete_at doesn't mutate.
<jhack> what does?
<Jayson_Virissimo> Try slice!
nofxx has quit [Ping timeout: 260 seconds]
<jhack> not working
<jhack> nvm
<jhack> works on a string
<jhack> what about an array?
igniting has quit [Ping timeout: 240 seconds]
<nofxxx> jhack, x = x.delete_at
<nofxxx> but yeah, why not one delete_at! ?
<jhack> nofxxx: that doesn’t work, because delete_at returns the deleted value
<havenwood> jhack: What doesn't work? Have an example?
ramfjord has quit [Ping timeout: 268 seconds]
<jhack> ex: a = [‘1’, ‘2’, ‘3’, ‘4’]
<nofxxx> jhack, ops yeah... x = x - x.delete_at eheh ugly
<jhack> trying to remove at index 2
<havenwood> >> a = %w[1 2 3 4]; a.delete_at 2; a
<ruby[bot]> havenwood: # => ["1", "2", "4"] (https://eval.in/687328)
<jhack> weird..
<jhack> not working in irb
hanmac has quit [Ping timeout: 260 seconds]
<jhack> nvm
<jhack> got it
<Jayson_Virissimo> Do you need to preserve duplicates?
<Jayson_Virissimo> If not, it'd be much cleaner/simpler.
kbdkode has quit [Quit: * ~ see ya ~ *]
kbdkode has joined #ruby
Immune has joined #ruby
jhack has quit [Quit: jhack]
blackbombay has joined #ruby
Jayson_Virissimo has quit []
blackbombay has quit [Ping timeout: 256 seconds]
kbdkode has quit [Quit: * ~ see ya ~ *]
kbdkode has joined #ruby
kbdkode has quit [Client Quit]
ICantCook has joined #ruby
kbdkode has joined #ruby
xall has joined #ruby
hanmac has joined #ruby
ICantCook has quit [Client Quit]
r3vDev has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 258 seconds]
dogweather has joined #ruby
gix has joined #ruby
_whitelogger has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dogweather has quit [Ping timeout: 260 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
r3vDev has joined #ruby
nelsonsar has quit [Ping timeout: 248 seconds]
Puffball has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
howdoi has joined #ruby
tuxaddicted has quit [Ping timeout: 268 seconds]
nankyokusei has joined #ruby
UserOO7 has joined #ruby
cbx_cubic has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
joebobjoe has joined #ruby
UserOO7 has quit [Ping timeout: 246 seconds]
domgetter has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
iMadper has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
gusrub has joined #ruby
whathappens has joined #ruby
Trynemjoel has quit [Ping timeout: 246 seconds]
whathappens has quit [Ping timeout: 258 seconds]
llua has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Yzguy has joined #ruby
<baweaver> 40 minutes off, but you do realize that you don't _have_ to mutate the original right?
adavia has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 244 seconds]
Tonus_ has joined #ruby
ropeney__ has joined #ruby
ropeney_ has quit [Ping timeout: 245 seconds]
alan_w has joined #ruby
Antiarc has quit [Ping timeout: 265 seconds]
Guest43_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Yzguy has quit [Quit: Zzz...]
Trynemjoel has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r3vDev has quit [Quit: Leaving.]
r3vDev1 has joined #ruby
obx has joined #ruby
Asher has joined #ruby
<obx> i'm really banging my head against the wall with this whole SSL thing still and i've tried just about every solution
<obx> at this point i might as well just reinstall ruby and go from there
ur5us has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 245 seconds]
dogweather has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
blackbombay has joined #ruby
benlieb has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
_sfiguser has quit [Ping timeout: 258 seconds]
blackbombay has quit [Ping timeout: 240 seconds]
Channel6 has quit [Quit: Leaving]
Yzguy has joined #ruby
<Yzguy> anyone have experience with ActiveLDAP
igniting has joined #ruby
herbmillerjr has joined #ruby
buglessdr has joined #ruby
_whitelogger has joined #ruby
iMadper has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
Immune has quit [Ping timeout: 260 seconds]
_sfiguser has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
dnicole has joined #ruby
<adgtl> Wondering why array is printing [] instead of values in it https://gist.github.com/anildigital/4da9ae2fd32453a009641870cf9b8281
whathappens has joined #ruby
<herwin> adgtl: use [t1,t2].map(&:join)
<adgtl> herwin thanks.. that was so obvious mistake
herbmillerjr has joined #ruby
<adgtl> surprisingly ruby is printing results correctly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
<adgtl> it might be because of GIL
eggshke has joined #ruby
tmtwd has quit [Ping timeout: 256 seconds]
<Tonus_> Good morning, from Sweden :D
<adgtl> Tonus_ good morning!
<adgtl> from India
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
tmtwd has joined #ruby
whathapp_ has joined #ruby
bocaneri has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<obx> well this puts me off from using ruby this ssl thing, i mean i can't even use open-uri to pull a simple webpage down with https
<obx> kind of odd since i can install gems from https just fine but i can't https google
armyriad has joined #ruby
eljimmy has joined #ruby
lxsameer has joined #ruby
<adgtl> with JRuby
<adgtl> but it prints result just fine
CloCkWeRX has joined #ruby
<adgtl> not sure why
<havenwood> obx: You should be able to. What's the problem?
vikaton has quit [Quit: Connection closed for inactivity]
<havenwood> obx: Error?
<havenwood> adgtl: If the first 10 happen to finish before then next 10 start they'd be in order.
<obx> OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> obx: Version of Ruby?
<obx> that's when i try to use open-uri on a an http website
<obx> er https
<adgtl> havenwood jruby 9.1.6.0
cbx_cubic has quit [Ping timeout: 244 seconds]
<havenwood> adgtl: Try with much larger number of iterations or add a sleep in there.
<obx> ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
<obx> this is just angering me because i wanted to do something simple and here i am
tuxaddicted has joined #ruby
<havenwood> obx: The 2.3.2 release has updated ssl certs. Openssl is a moving target. Upgrade to the latest Ruby 2.3.3 and you should be good to go.
<havenwood> obx: How'd you install Ruby?
<obx> rubyinstaller on windows
nelsonsar has joined #ruby
Macaveli has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
nelsonsar has quit [Ping timeout: 268 seconds]
<havenwood> obx: You could download the CA bundle yourself and point to it as they describe here: https://gist.github.com/fnichol/867550#the-manual-way-boring
<havenwood> obx: Do use something that has HTTPS working to download the bundle though rather than HTTP as suggested in that writeup. :-)
<obx> haha i think i tried that but i'll give it another go
_sfiguser has quit [Quit: Leaving]
<havenwood> obx: It looks like there's a PR to bump RubyInstaller to 2.3.3 so maybe it won't be too long before there are new Windows versions.
<obx> it gave me an error trying the ruby "fun fix" lol
<obx> well as long as i can dl gems i guess that's ok
<elomatreb> I recently tried using ruby-install on the Windows 10 Linux subsystem, worked surprisingly well
maattdd has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
function has joined #ruby
cibs has joined #ruby
<havenwood> obx: If you're in the mood for Windows Subsystem for Linux (beta) we can help you get it going with ruby-install and chruby.
<obx> i do have the subsystem installed, i thought about installing proper linux but with this
maattdd has quit [Ping timeout: 250 seconds]
ropeney__ has quit [Ping timeout: 256 seconds]
astrobun_ has quit [Remote host closed the connection]
Immune has joined #ruby
b0nn has joined #ruby
whathapp_ has quit [Remote host closed the connection]
whathappens has joined #ruby
<b0nn> hi all, I'm trying to get my head around the difference between the dot operator eg. Class.method and the double colon operator, eg. Class::method. What's the difference and (for style reasons) when's the right time to use one or the other
dionysus69 has joined #ruby
astrobunny has joined #ruby
ropeney__ has joined #ruby
blackbombay has joined #ruby
whathappens has quit [Ping timeout: 258 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
<elomatreb> b0nn: The semi-official Ruby style guide is pretty clear on that: https://github.com/bbatsov/ruby-style-guide#double-colons
Tonus_ has quit [Ping timeout: 260 seconds]
tmtwd has joined #ruby
ur5us has joined #ruby
djellemah has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<b0nn> elomatreb: excellent, thank you
millerti has quit [Read error: Connection reset by peer]
montanonic has joined #ruby
<Disavowed> b0nn: o/ Welcome to the dark side!
dogweather has joined #ruby
gusrub has quit [Remote host closed the connection]
<b0nn> Disavowed: I've been looking for you!
<b0nn> o/
blackbombay has quit [Ping timeout: 256 seconds]
Antiarc has joined #ruby
gingray has joined #ruby
djellemah has joined #ruby
<Disavowed> b0nn: I'll PM you
dogweather has quit [Ping timeout: 260 seconds]
finisherr has joined #ruby
gusrub has joined #ruby
nankyokusei has joined #ruby
r3vDev1 has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 252 seconds]
Devalo has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
_ZerGabriel_ has joined #ruby
pawnbox has joined #ruby
xall has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
nowhereman has joined #ruby
nowhere_man has quit [Remote host closed the connection]
saneax-_-|AFK is now known as saneax
pawnbox_ has joined #ruby
gingray has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 252 seconds]
_ZerGabriel_ has quit []
Macaveli has joined #ruby
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toretore has joined #ruby
<obx> yikes yard is making my installed gem docs look really odd
CloCkWeRX has quit [Quit: Leaving.]
dogweather has joined #ruby
kn330 has joined #ruby
nelsonsar has joined #ruby
fenre has joined #ruby
nelsonsar has quit [Ping timeout: 258 seconds]
gusrub has quit []
yardenbar has joined #ruby
jcao219 has joined #ruby
Devalo has quit [Remote host closed the connection]
jgnagy has quit [Remote host closed the connection]
chazu has quit [Ping timeout: 250 seconds]
muelleme has joined #ruby
somiaj has joined #ruby
Guest43_ has joined #ruby
<somiaj> Hello, I'm trying to build rouge with rake, bundler seems to error out. I have gem 'minitest', '~> 4.0' in the Gemfile, and bundler show minitest fails with Could not find gem 'minitest (~> 4.0)', yet according to gem list I have minitest (5.9.0) installed.
chazu has joined #ruby
conta has joined #ruby
harai has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
last_staff has joined #ruby
alan_w has quit [Ping timeout: 260 seconds]
Satyajit has quit [Remote host closed the connection]
Guest5555 has quit [Remote host closed the connection]
alxgsv has quit [Remote host closed the connection]
blaxter has joined #ruby
matp has joined #ruby
UserOO7 has joined #ruby
Guest43_ has quit [Quit: Textual IRC Client: www.textualapp.com]
xall has joined #ruby
matp_ has quit [Ping timeout: 246 seconds]
UserOO7 has quit [Ping timeout: 256 seconds]
jaguarmagenta has joined #ruby
UserOO7 has joined #ruby
enterprisey has quit [Quit: Leaving]
gingray has joined #ruby
Silox| has joined #ruby
Ropeney has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 244 seconds]
UserOO7 has quit [Ping timeout: 265 seconds]
aganov has joined #ruby
riotjone1 has quit [Ping timeout: 240 seconds]
jenenliu` has joined #ruby
conta has quit [Ping timeout: 260 seconds]
gingray has quit [Ping timeout: 248 seconds]
pawnbox_ has quit [Remote host closed the connection]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
pawnbox has joined #ruby
conta has joined #ruby
conta has quit [Ping timeout: 245 seconds]
muelleme has quit [Ping timeout: 268 seconds]
enterprisey has joined #ruby
dogweather has quit [Remote host closed the connection]
conta has joined #ruby
minimalism has quit [Quit: minimalism]
vqrs has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 268 seconds]
vqrs has joined #ruby
JeroenDL has joined #ruby
alan_w has joined #ruby
gingray has joined #ruby
JeroenDL_ has joined #ruby
frozengeek has joined #ruby
JeroenDL has quit [Ping timeout: 258 seconds]
JeroenDL_ is now known as JeroenDL
tmtwd has joined #ruby
krsh has joined #ruby
A124 has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 246 seconds]
camilasan has quit [Remote host closed the connection]
conta has joined #ruby
maattdd has joined #ruby
camilasan has joined #ruby
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
CloCkWeRX has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
pawnbox has joined #ruby
yeticry has joined #ruby
codfection has quit [Quit: Leaving]
wugy has joined #ruby
troulouliou_div2 has joined #ruby
biberu has joined #ruby
frozengeek has quit [Quit: frozengeek]
scottalan has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 265 seconds]
SesMan has joined #ruby
codfection has joined #ruby
SesMan has quit [Read error: Connection reset by peer]
SesMan has joined #ruby
function is now known as variable
RedFromage has joined #ruby
dnicole has quit [Remote host closed the connection]
nelsonsar has joined #ruby
flughafen has joined #ruby
SesMan has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
Guest88455 has joined #ruby
tulak has joined #ruby
nelsonsar has quit [Ping timeout: 258 seconds]
aufi has joined #ruby
variable has quit [Quit: /dev/null is full]
tulak has quit [Ping timeout: 250 seconds]
conta has quit [Read error: Connection reset by peer]
conta has joined #ruby
nankyokusei has joined #ruby
Coldblackice has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
Madplatypus has joined #ruby
hutch34 has joined #ruby
the_drow has joined #ruby
lenwood has joined #ruby
johnzorn has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Humdai has joined #ruby
firstdayonthejob has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
ur5us has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
benlieb has quit [Quit: benlieb]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
aries_liuxueyang has joined #ruby
dogweather has joined #ruby
antoniobeyah has joined #ruby
riotjones has joined #ruby
Couch has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: Zzz...]
conta has joined #ruby
dnicole has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
krsh has quit [Quit: krsh]
dnicole has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
rory has quit [Read error: Connection reset by peer]
RedFromage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
william3 has joined #ruby
tulak has joined #ruby
Hyuk has joined #ruby
Devalo has joined #ruby
SesMan has joined #ruby
jgnagy has joined #ruby
kassav has joined #ruby
frozengeek has joined #ruby
tulak has quit [Remote host closed the connection]
rory has joined #ruby
Devalo has quit [Ping timeout: 265 seconds]
tulak has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
harai has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
conta has quit [Ping timeout: 260 seconds]
jsrn_ has joined #ruby
conta has joined #ruby
tulak has quit [Ping timeout: 260 seconds]
Antiarc has quit [Ping timeout: 268 seconds]
Antiarc has joined #ruby
suck has quit [Quit: Connection closed for inactivity]
SCHAAP137 has joined #ruby
ferr1 has joined #ruby
iMadper has quit [Read error: Connection reset by peer]
jaiks has quit [Ping timeout: 245 seconds]
ishe_ua has joined #ruby
aries_liuxueyang has quit [Ping timeout: 260 seconds]
Puffball has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
jenenliu` has quit [Ping timeout: 268 seconds]
riotjones has quit [Ping timeout: 250 seconds]
Puffball has joined #ruby
kn330 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dnicole has joined #ruby
tulak has joined #ruby
aryaching has quit [Remote host closed the connection]
nofxx has joined #ruby
dnicole_ has joined #ruby
riotjones has joined #ruby
jaguarmagenta has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
jaiks has joined #ruby
tulak has quit [Ping timeout: 256 seconds]
jaguarmagenta has quit [Ping timeout: 252 seconds]
gingray has quit [Read error: Connection reset by peer]
joebobjoe has quit [Ping timeout: 250 seconds]
finisherr has quit [Ping timeout: 250 seconds]
aries_liuxueyang has joined #ruby
flying has joined #ruby
A124 has quit [Quit: '']
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
rodfersou has joined #ruby
Puffball has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
Silox| has quit [Quit: Connection closed for inactivity]
A124 has joined #ruby
nofxx has quit [Ping timeout: 265 seconds]
Puffball has joined #ruby
nofxx has joined #ruby
kbdkode has quit [Ping timeout: 268 seconds]
suck has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
nofxxx has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
codfection has quit [Remote host closed the connection]
platzhirsch has joined #ruby
Macaveli has joined #ruby
suck is now known as savage
codfection has joined #ruby
enterprisey has quit [Remote host closed the connection]
bodgix has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
kareelee has joined #ruby
koooge has quit [Quit: Leaving...]
agit0 has joined #ruby
Axy has joined #ruby
Fernando-Basso has quit [Read error: Connection reset by peer]
kareelee_ has joined #ruby
Mia has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
ropeney__ has quit [Ping timeout: 258 seconds]
kareelee has quit [Ping timeout: 246 seconds]
ropeney__ has joined #ruby
pandaant has joined #ruby
Fernando-Basso has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
nofxxx has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
ldnunes has joined #ruby
tuxaddicted has quit [Ping timeout: 246 seconds]
Snowy has joined #ruby
marr has joined #ruby
tulak has joined #ruby
pandaant has quit [Remote host closed the connection]
pandaant has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
jcao219 has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
johnmccabe has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
ropeney__ has quit [Quit: Leaving]
tmtwd has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
xall has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
aryaching has joined #ruby
xall has joined #ruby
dogweather has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
iMadper has joined #ruby
conta has quit [Ping timeout: 268 seconds]
conta has joined #ruby
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robouk has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lenwood has quit [Ping timeout: 240 seconds]
tulak has quit [Remote host closed the connection]
sdothum has joined #ruby
stamina has joined #ruby
Guest88455 has quit [Remote host closed the connection]
tulak has joined #ruby
tmtwd has quit [Ping timeout: 268 seconds]
conta has quit [Ping timeout: 268 seconds]
byte512 has joined #ruby
conta has joined #ruby
shakes has joined #ruby
Silox| has joined #ruby
jgnagy has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
Cohedrin has joined #ruby
gnufied has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgnagy has quit [Ping timeout: 246 seconds]
rory has quit [Read error: Connection reset by peer]
shakes has quit [Quit: Leaving]
nahra has quit [Ping timeout: 250 seconds]
atom3_ has joined #ruby
jcao219 has joined #ruby
tulak has quit [Ping timeout: 245 seconds]
atom3 has quit [Ping timeout: 240 seconds]
blackbombay has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
rory has joined #ruby
GodFather has joined #ruby
blackbombay has joined #ruby
tulak has joined #ruby
xall has quit [Ping timeout: 268 seconds]
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
XV8 has joined #ruby
roshanavand has joined #ruby
drptbl has joined #ruby
tulak has quit [Remote host closed the connection]
drptbl has quit [Client Quit]
drptbl has joined #ruby
tulak has joined #ruby
lenwood has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
william3 has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 1.6]
stamina has joined #ruby
william3 has joined #ruby
tulak has quit [Ping timeout: 252 seconds]
kareelee_ has quit []
rodfersou is now known as rodfersou|afk
dog has joined #ruby
dog is now known as Guest33095
<Guest33095> Hi as anyone here used the streamable API or POST requests?
Skydogg has joined #ruby
nemesit|znc has joined #ruby
<Guest33095> I keep getting the response "response Must upload a file"
<Guest33095> don't know where I'm going wrong
jaguarmagenta has joined #ruby
Skydogg has left #ruby [#ruby]
jcao219 has quit [Ping timeout: 268 seconds]
tomphp has quit [Ping timeout: 245 seconds]
tomphp has joined #ruby
nemesit|znc has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
nemesit|znc has joined #ruby
robouk has quit [Ping timeout: 246 seconds]
marxarelli|afk is now known as marxarelli
jaguarmagenta has quit [Ping timeout: 260 seconds]
<ytti> gonna vent, apologies
<ytti> every time i write python, i keep on thinking how inelegant it is
<ytti> it feels like compiled language in elegancy with interpreted langauge performance
<ytti> just now discovered def method(self, var=selft.default_value): does not work
<ytti> you can't use self in method definition
<ytti> you gotta do var=None):
<ytti> if var == None:
<ytti> var = self.default_value
<ytti> small thing, but these kind of things keep on adding to my distaste
<ytti> rust seems more elegant and higher level
<tobiasvl> I've done python every day for years, and I quite like it, but yes I agree
<tobiasvl> python always "felt" fairly low-level to me, probably mostly syntactically though
<tobiasvl> can't quite put my finger on it
<ytti> that would befine, if it would perform C like
<ytti> like i don't thnk python is bad language
<ytti> i mean we have PHP for that
tomphp has quit [Ping timeout: 248 seconds]
<tobiasvl> yes, of course, it's not actually low-level, it just feels like I'm coding in a low-level language often
<ytti> it's just, it really should perform really really well with how restrictive/inelegant it is
<ytti> and the methods have hella poor standard library compared to ruby or even rust
<ytti> i need to solve really generic and common problems in my own code
marxarelli is now known as marxarelli|afk
<ytti> s/methods/classes/
<ytti> sigh
<Papierkorb> That surprises me ytti, I always heard Python was "batteries included"
xall has joined #ruby
aryaching has joined #ruby
<dminuoso> Python isn't so bad. The reason is that Rust is really fun to play with.
<ytti> len(obj) and sorted(list) also annoy me way more than they should
<ytti> that fells straight up php esque
<ytti> feels
<Papierkorb> Currently playing with `crystal`, I really like it so far
pragmaticus has quit [Ping timeout: 260 seconds]
<Papierkorb> It is correct that rust does not have a GC?
<dminuoso> ytti: Python is highly inconsistent wrt to the receiver. Sometimes its receiver.message(arg), sometimes its arg.message(receiver), or in some special cases its even arg1.message(arg2, receiver)
<ytti> Papierkorb, correct, it used to have GC pointer, but no longer
<Papierkorb> Neat
<dminuoso> Papierkorb: A GC is just an excuse for programmers not knowing how to write programs honestly.
<ytti> dminuoso, ".".join(list) ....
<ytti> Papierkorb, it's also essentially runtimeless
<ytti> so rust is right there with C to do lowest level of stuff
<dminuoso> Papierkorb: C++ demonstrates that automatic memory managament works flawlessly, a GC is a crazy overhead nobody really needs.
<Papierkorb> dminuoso: I know, I did C++11/Qt for some years
matp has quit [Read error: Connection reset by peer]
<Papierkorb> Though C++/Qt alone did it for almost two decades at this point
matp has joined #ruby
mradmacher has quit [Quit: WeeChat 1.4]
<Papierkorb> dminuoso: Although I think the compiler knows best when you don't need something anymore, the dev should only have to "tag" variables if the compiler can't figure it out for whatever reason
tomphp has joined #ruby
<Papierkorb> And the latter is always a work-around and not "good", the compiler failed in that moment
jaruga___ has joined #ruby
mradmacher has joined #ruby
govg has joined #ruby
<dminuoso> Papierkorb: No the programmer knows best.
jaruga___ is now known as jaruga
jcao219 has joined #ruby
zukin has joined #ruby
<dminuoso> Papierkorb: Compilers are not very good at understanding high level concepts.
<dminuoso> Papierkorb: This is why it requires a complicated instrumentation suite such as valgrind to analyze memory leaks.
<Papierkorb> Konrad invented modern computers cause he was too lazy to calculate his homework. We should learn from that if somethings annoying, we invent something for it so we can be lazy again.
CloCkWeRX has quit [Quit: Leaving.]
<Guest33095> Can you guys help me please
Macaveli has joined #ruby
<Guest33095> my code doesn't work. I just get the response "Must upload a file"
<Papierkorb> Compilers got really good at understanding all kinds of concepts dminuoso, rust is a good step forward, and I guess there's still "more to come"
Macaveli has quit [Client Quit]
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> Papierkorb: Hardly.
fenre has quit [Remote host closed the connection]
<Papierkorb> dminuoso: Then please give facts, else this discussion will never end
<Guest33095> omg please help
vadviktor has joined #ruby
fmcgeough has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
<blackbombay> Guest33095: your code looks good to me, are you sure you're not suppose to upload the file as a blob?
jaruga has quit [Quit: jaruga]
Snowy has joined #ruby
tuxaddicted has joined #ruby
rodfersou|afk is now known as rodfersou
<Guest33095> blackbombay: I don't think so. This is all the documentation says https://streamable.com/documentation
<blackbombay> Guest33095: it doesn't appear that it accepts a JSON payload but rather expects the same kinda post from a HTML form.
dionysus69 has quit [Ping timeout: 256 seconds]
<Guest33095> blackbombay: Under "responses" it says "all successful API responses have the aplication/json content type" does this not mean that it accepts json?
<Papierkorb> Guest33095: It does not
nunchuck has quit [Ping timeout: 265 seconds]
<Papierkorb> blackbombay: it may respond with JSON, but it may only accept form data
<Guest33095> Papierkorb: ah my bad ty
<blackbombay> Papierkorb: wrong person :P but yeah what you said is incorrect.
<Papierkorb> tbh, I'd expect the same, if it replies with JSON, it's reasonable to assume at first that it accepts it, but such is life ;)
<Papierkorb> blackbombay: Wrong person² :P
<apeiros> the world is built on x-www-form-urlencoded
<Papierkorb> I thought it was badly encoded URL query "arguments"
<apeiros> yupp. in the body of a post.
<apeiros> (or put or patch or whatever else you use with a request body)
byte512 has quit [Ping timeout: 246 seconds]
conta has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 265 seconds]
nikivi has joined #ruby
Tempesta has quit [Quit: See ya!]
omphe has joined #ruby
conta has joined #ruby
<blackbombay> Papierkorb: oops, and incorrect should have been correct*
zukin has quit [Ping timeout: 268 seconds]
fenre has joined #ruby
JeroenDL has quit [Quit: JeroenDL]
cdg has joined #ruby
syf-revk has joined #ruby
byte512 has joined #ruby
<Guest33095> Now I'm getting undefined method -_-
tulak has joined #ruby
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
<blackbombay> backtrace?
<blackbombay> and the new code, too.
cdg has quit [Ping timeout: 258 seconds]
kobain has joined #ruby
nelsonsar has joined #ruby
<Papierkorb> Guest33095: Please use gist.github.com btw
<Guest33095> Papierkorb: anyway to make the gists anonymous?
<Papierkorb> Guest33095: You can if you're not logged in. If you don't want to log out, use a private browsing window
<Guest33095> Papierkorb: ty
dionysus69 has joined #ruby
Vingador has joined #ruby
Vingador has quit [Remote host closed the connection]
<Guest33095> I'm back to getting "Must upload a file"
<Guest33095> Don't know what I've done wrong
william3 has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tempesta has joined #ruby
william3 has joined #ruby
pawnbox has quit [Remote host closed the connection]
kassav has quit [Read error: Connection reset by peer]
lenwood has quit [Ping timeout: 246 seconds]
reverberations has quit [Ping timeout: 244 seconds]
kassav has joined #ruby
codfection has quit [Ping timeout: 260 seconds]
conta has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
SesMan has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
conta has joined #ruby
tulak has quit [Remote host closed the connection]
<Guest33095> Papierkorb: could you take a look at my code and see if you notice what's wrong with it? I'm stuck
tulak has joined #ruby
<apeiros> Guest33095: pro-tip, write `p response: res.body` instead of `p("response #{res.body}")`
nankyokusei has joined #ruby
<blackbombay> Guest33095: maybe you want to use the API for 'Import a video from a URL'
GodFather has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
Snowy has quit [Quit: ragequit]
<dminuoso> >> p p {}
<ruby[bot]> dminuoso: # => nil ...check link for more (https://eval.in/687626)
xall has quit [Ping timeout: 246 seconds]
ldnunes has quit [Ping timeout: 240 seconds]
<Guest33095> apeiros: how come? Sorry I'm kinda new to ruby
reverberations has joined #ruby
<apeiros> Guest33095: less annoying to type, and you don't get res.body converted to a string, which helps with reading what's actually in it
<Guest33095> apeiros: oh thanks didn't know that!
mostlybadfly has joined #ruby
<xrlk> haha welcome back to work guys
<xrlk> dont forget, you're here forever
fenre has quit [Remote host closed the connection]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fenre has joined #ruby
conta has quit [Ping timeout: 245 seconds]
synthroid has joined #ruby
prestorium has joined #ruby
TvL2386 has joined #ruby
JeroenDL has joined #ruby
dogweather has joined #ruby
SesMan has joined #ruby
GodFather has joined #ruby
conta has joined #ruby
tulak has quit [Remote host closed the connection]
biberu has quit [Ping timeout: 246 seconds]
aryaching has quit [Quit: Bye]
johnmilton has joined #ruby
charliesome has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
blackbombay has quit [Quit: WeeChat 1.5]
tulak has joined #ruby
nelsonsar has quit [Remote host closed the connection]
dviola has joined #ruby
nelsonsar has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
hightower2 has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta has joined #ruby
hightower3 has quit [Ping timeout: 256 seconds]
nelsonsar has quit [Ping timeout: 260 seconds]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
blackbombay has joined #ruby
claudiuinberlin has quit [Ping timeout: 252 seconds]
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
EdwardIII has joined #ruby
<EdwardIII> hey, sometimes in a test i want to override a constructor, but i kinda can't because "removing `initialize' may cause serious problems". i kinda understand that hacking around with initialize in other people's classes is a bad move, but does it really matter if i do it in a few of mine just when they're under test?
<EdwardIII> should i work on removing that error? or is it really, really always a terrible idea?
<EdwardIII> override/stub
aryaching has joined #ruby
nelsonsar has joined #ruby
<toretore> EdwardIII: do you have a concrete example you can gist?
bouzer has joined #ruby
bouzer has left #ruby ["WeeChat 1.6"]
Guest33095 has quit [Ping timeout: 260 seconds]
guacjack has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
<EdwardIII> toretore: well i added my own test to this project to play with: https://github.com/EdwardIII/minitest-stub_any_instance/blob/master/test/stub_any_instance_test.rb#L79-L81
<EdwardIII> toretore: but a real world example might be an object that calls out to a 3rd party API in it's constructor
<guacjack> Hello anyone know how to get hold of the PORT that a thin server is running on via code?
<guacjack> It is being run via bundle exec thin -p 5569 start
Salih has joined #ruby
c355e3b has joined #ruby
yasu______ is now known as yasu
<antoniobeyah> guacjack: what do you mean? when executed that way the port is in ARGV
conta has quit [Ping timeout: 244 seconds]
tulak has quit [Remote host closed the connection]
kimegede has joined #ruby
biberu has joined #ruby
tulak has joined #ruby
<guacjack> Basically, the app is a Sinatra app, in one of its route i am returning JSON, and in that json i need to build up the full url of a file but when this server is running locally ie localhost:3003, i need to be able to get the port so i can build the url
Derperperd has quit [Quit: Derperperd]
conta has joined #ruby
bob_f has quit [Changing host]
bob_f has joined #ruby
<antoniobeyah> request.port should have that info, be careful with that though because behind a web server (reverse proxy) that port will likely be represented improperly
aegis3121 has joined #ruby
GodFather has joined #ruby
<guacjack> Exactly, which is not an ideal solution, normally i have used ENV['PORT'] before
blaxter has quit [Quit: foo]
<antoniobeyah> you don’t want to use that at all. you would want to take in a variable that explicitly sets the self url
fenre_ has joined #ruby
krsh has joined #ruby
<antoniobeyah> for example, your app servers normally listen on 8080 but you web servers on 443. so when you hit https://server it will forward to http://backend:8080 and the request.port would be 8080, instead your app should be rewriting the url as https://server
<antoniobeyah> so the only real way is for your app servers to know their address. otherwise you will have to use the Host and protocol to attempt to guess the url
agit0 has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
fenre has quit [Ping timeout: 268 seconds]
<guacjack> cool, thanks for the help mate
<guacjack> Its just cause we have one code base for multiple environments
<guacjack> but in our local environment sometimes we listen on different ports
<antoniobeyah> one code base multiple environments is the way to do it. the only thing that should vary across environments is config
_sfiguser has joined #ruby
<guacjack> Exactly, which is what we have, however, when running locally we sometimes run on different ports so i need to know the current PORT when the app is running
JeroenDL has quit [Ping timeout: 260 seconds]
<toretore> EdwardIII: if you have no choice, then just do it and ignore the warning. a possible choice is to not use said class at all and implement your own that mocks the entire interface
jaguarmagenta has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conta has quit [Read error: Connection reset by peer]
<EdwardIII> toretore: right-o
<EdwardIII> i mean i guess maybe refinments are a better choice than using minitest's stub method these days anyway
<antoniobeyah> guacjack: understood, would request.port serve your needs? http://www.sinatrarb.com/intro.html#Accessing%20the%20Request%20Object
<toretore> EdwardIII: i don't really know, i'm not too into testing tbh
gnufied__ has joined #ruby
gnufied__ has quit [Remote host closed the connection]
<guacjack> I guess it would but would involve a lot of brittle checking of environments also
JeroenDL has joined #ruby
<guacjack> Thank you so much for your help i think I have what i need
<guacjack> Thanks :D
<antoniobeyah> yeah, I don’t recommend using that as I said before, but it should get you past your hurdle. prefer an config item with the url in it. good luck
kimegede has quit [Quit: Linkinus - http://linkinus.com]
conta has joined #ruby
rodfersou is now known as rodfersou|lunch
robouk has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<guacjack> Yeah we have config items for all the other environments so i can add the url in there as they never change but for locally it doesnt really work :)
warrshrike has joined #ruby
robouk_ has joined #ruby
<warrshrike> I'm using str.index /Node Id/ to get index at first instance of the regex match
robouk_ has quit [Max SendQ exceeded]
sepp2k has joined #ruby
<warrshrike> I want the index for the first two matches
<warrshrike> how can I do that?
robouk_ has joined #ruby
robouk_ has quit [Max SendQ exceeded]
robouk_ has joined #ruby
<matthewd> request.port will respect X-Forwarded-Port, so that should always reflect how the client connected to you
robouk has quit [Ping timeout: 252 seconds]
<herwin> warrshrike: index1 = str.index(/foo/); index2 = str.index(/foo/, index1+1)
eggshke has quit []
aegis3121 has quit [Ping timeout: 260 seconds]
<warrshrike> cool beans ma man
dogweather has joined #ruby
tulak_ has joined #ruby
last_staff1 has joined #ruby
agit0 has joined #ruby
<matthewd> warrshrike: Note that may or may not do what you expect if your search term can match itself
aegis3121 has joined #ruby
jaruga___ has joined #ruby
<matthewd> >> str = 'foo foo'; index1 = str.index(/o+/); index2 = str.index(/o+/, index1+1); [index1, index2]
<ruby[bot]> matthewd: # => [1, 2] (https://eval.in/687698)
jaruga___ is now known as jaruga
tulak has quit [Ping timeout: 245 seconds]
cdg has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
dogweather has quit [Ping timeout: 260 seconds]
last_staff1 has quit [Client Quit]
last_staff has quit [Ping timeout: 258 seconds]
mim1k|work has joined #ruby
mdvi has joined #ruby
<mdvi> Trying to make quicksort in ruby. http://pastebin.com/vnkzsEgz . How to write the two last line in ruby?
<ruby[bot]> mdvi: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
drptbl has joined #ruby
Ropeney has joined #ruby
drptbl has quit [Client Quit]
Ropeney has quit [Client Quit]
* apeiros waits for the gist
igniting has quit [Ping timeout: 268 seconds]
<mdvi> Trying to make quicksort in ruby. https://gist.github.com/anonymous/669bab98d7678ffbb50c5ada9ffff736 . How to write the two last line in ruby?
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has quit [Ping timeout: 260 seconds]
<apeiros> ary[1..-1] # all except first value in ary
guacjack has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> or well, ary[offset..-1] all to the right of offset, including offset
jcao219 has quit [Ping timeout: 258 seconds]
adavia has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.6]
tulak has joined #ruby
SesMan has joined #ruby
<mdvi> Can you type e.g. of the two last lines include quicksort? apeiros
<apeiros> (got interrupted)
<apeiros> the 2nd one: ary[0,offset] all to the left of offset, not including offset (it's ary[offset, length] and/or ary[offset..offset] with -offset meaning "length-offset")
<apeiros> I can, but I think you should try yourself first.
bturker has joined #ruby
tulak_ has quit [Ping timeout: 268 seconds]
jhack has joined #ruby
xall has joined #ruby
tulak has quit [Ping timeout: 258 seconds]
<al2o3-cr> mdvi: why you asking the same question in #lua?
ramortegui has joined #ruby
claudiuinberlin has joined #ruby
firstdayonthejob has joined #ruby
robouk_ has quit [Ping timeout: 260 seconds]
tulak has joined #ruby
fbt has quit [Ping timeout: 258 seconds]
<warrshrike> herwin: It works okay in IRB
<warrshrike> but in my code I get the same value twice
fbt has joined #ruby
<warrshrike> i1 = cleaned.index(/Node Id/)-1 i2 = cleaned.index(/Node Id/, i1+1)-2
skalfyfan has joined #ruby
fenre_ has quit [Remote host closed the connection]
<warrshrike> this gives 38 37
<warrshrike> matthewd:
tau has joined #ruby
nelsonsar has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
<herwin> warrshrike: because the -1 and +1 cancel each other
<herwin> you should use i1+2 here
tulak has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
<warrshrike> oh
<warrshrike> yeah my bad
jhack has quit [Quit: jhack]
<warrshrike> If you don't mind me asking, how many ~years out of college are you?
bmurt has joined #ruby
[gmi] has joined #ruby
brendan- has quit [Ping timeout: 252 seconds]
<warrshrike> I was just wondering how much experience it takes to become experienced....
toretore has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
frozengeek has quit [Ping timeout: 258 seconds]
frozengeek has joined #ruby
toretore has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiui_ has joined #ruby
<blackbombay> 3 years and a lot of dedciation
<blackbombay> but it seems like it would vary from person to person
blackwind_123 has joined #ruby
chouhoulis has joined #ruby
enterprisey has joined #ruby
flori has quit [Quit: leaving]
enterprisey has quit [Client Quit]
aegis3121 has quit [Read error: Connection reset by peer]
aegis312_ has joined #ruby
fenre has joined #ruby
tvw has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
nowhereman has quit [Ping timeout: 250 seconds]
xberg has joined #ruby
sdwrage has joined #ruby
DLSteve has joined #ruby
domgetter has joined #ruby
[gmi] has quit [Quit: Leaving]
saslam has joined #ruby
tenderlo_ has quit [Ping timeout: 265 seconds]
joebobjoe has joined #ruby
nankyokusei has joined #ruby
rfoust has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
<warrshrike> Cool. Thanks for sharing!
<warrshrike> I'm just graduating
flyingX has joined #ruby
flyingX has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 265 seconds]
joebobjoe has quit [Ping timeout: 268 seconds]
<warrshrike> im trying to parse this string
flying has quit [Ping timeout: 260 seconds]
<warrshrike> basically return the parts following [Node Id:] till the next [Node Id:] as strings stored in an arrat
nelsonsar has joined #ruby
<warrshrike> however the while loop only seems to run once and only the first [Node Id:]... string is returned
<warrshrike> any idea why?
blackbom1 has joined #ruby
buglessdr has quit [Ping timeout: 260 seconds]
<warrshrike> the string and code are both in the gist above ^
<apeiros> warrshrike: you'd almost certainly be better off with either String#scan or StringScanner
shinnya has joined #ruby
<matthewd> Or just working with .lines
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
<warrshrike> compared to regexes?
mdvi has left #ruby [#ruby]
<apeiros> compared to String#index + manual bookkeeping
<warrshrike> I thought they were A powerful and versatile tool for manipulating text
blackbombay has quit [Ping timeout: 245 seconds]
<matthewd> You're going to want a regex, whatever you use
<warrshrike> how would i go about this with string.scan
<apeiros> they are. both String#scan and StringScanner still use a regex.
<warrshrike> Enlighten me good sirs
<matthewd> Integers, however, are not a powerful and versatile tool for manipulating text
bayed has joined #ruby
<warrshrike> okay got it. so scan extracts entire string parts which match regex?
tulak has joined #ruby
<apeiros> string[start_index..-1].scan(/^[Node Id: (\d+)].*\n.*id: (\d+)\n …/].map { |node_id, vertex_id, calls, fields, info| Struct.new(…) }
<apeiros> something like the above would be my approach
<apeiros> yes. either full match, or an array of all capturing groups (if one or more is present)
<warrshrike> okay but what benefit is there in specifying everything like you did? couldnt str.scan(/Node Id.+Node Id/) work
<matthewd> cfl.lines.drop_while {|s| s !~ /Found a good path to sink/ }.slice_before(/^\[Node Id|^BFS is DONE/).tap(&:pop)
<warrshrike> or something of the sort
d0nn1e has quit [Ping timeout: 252 seconds]
<warrshrike> awesome matthewd
DaveTaboola has joined #ruby
<apeiros> warrshrike: I assume you'll probably want the info, not the boilerplate text
<warrshrike> just to be clear /^\[Node Id|^BFS is DONE/ what does this do
<apeiros> if you really just want the text between [Node …] parts, then the regex can be simpler ofc
<warrshrike> yes that would be better but il have to store it in a class or something so for now i think the whole string will do
saslam has quit [Ping timeout: 248 seconds]
rfoust has joined #ruby
<matthewd> warrshrike: It matches lines that start with '[Node Id' or 'BFS ..'
<matthewd> tbh, it probably makes more sense to trim the BFS line before the slicing
<warrshrike> okay but they arent lines as in they dont always end with \n.
<warrshrike> yeah true.
d0nn1e has joined #ruby
blackbom1 has quit [Quit: WeeChat 1.5]
<matthewd> Oh, is your shown data not representative?
<warrshrike> its the same exact data
<warrshrike> so what you've written above
<warrshrike> would it extract this?
Swolbi has joined #ruby
<Swolbi> Hello everyone! Completely new to this.
<warrshrike> i want all of these^ in their own strings stored in an array
dionysus69 has quit [Ping timeout: 258 seconds]
<Swolbi> Is there a specific area I can visit if I have a very simple question pertaining to a code of Ruby? I just started trying to learn it today and need some guidance on where I'm going wrong with a short program.
<Swolbi> I don't want to post on here if this isn't the spot for it
rippa has joined #ruby
joebobjoe has joined #ruby
<matthewd> warrshrike: I put the "Found.." line in its own slice.. if it belongs attached like that, it'll need some post-processing
ponga has joined #ruby
<matthewd> cfl.lines.drop_while {|s| s !~ /Found a good path to sink/ }.tap(&:pop).slice_before(/^\[Node Id/).map(&:join)
kassav has quit [Remote host closed the connection]
DaveTaboola has quit [Quit: Textual IRC Client: www.textualapp.com]
fenre has quit [Remote host closed the connection]
Sammichmaker has quit [Read error: Connection reset by peer]
<matthewd> cfl.lines.drop_while {|s| s !~ /Found a good path to sink/ }.tap(&:pop).slice_when {|a,b| a =~ /^-/ && b !~ /^-/ }.map(&:join)
<warrshrike> Okay that works perfect
<warrshrike> what did you do different in this last version?
kassav has joined #ruby
<warrshrike> and irb says no method named pop. whats with that?
<warrshrike> okay it works.
<matthewd> A slightly different take on inferring the syntactic structure of what we're parsing: instead of looking for 'Node Id', it's separating them each time a line starting with '-' is followed by one that does not
<matthewd> Swolbi: You're in the right place. Ask away.
<warrshrike> Ah. I'll be studying these to understand them better. So which one is better to use?
<warrshrike> If you had to choose one
joebobjoe has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: jhack]
<matthewd> It really depends on how the input data is defined, and thus what as-yet-unseen lines might look like
axisys has quit [Ping timeout: 260 seconds]
<warrshrike> itl always be exactly the same
<matthewd> To me, it looks like the '----' lines are intended to imply "here's more info about the previous thing". But maybe they're not always going to be there.
ledestin has quit [Ping timeout: 250 seconds]
<matthewd> The second one would clump two Node Ids together if they didn't have a --- between them, for example
<warrshrike> Ah so I guess il use the first
<warrshrike> This is production code so yeah
<matthewd> The only difference in how they handle your sample input is whether "Found" is part of the first "normal" block, or on its own
joebobjoe has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<warrshrike> Gotcha
jhack has joined #ruby
chouhoulis has joined #ruby
DaveTaboola has joined #ruby
<Swolbi> I'm so new to this that I really don't even know how to ask lol. I think I'll just keep brainstorming for now.
Madplatypus has quit [Quit: Connection closed for inactivity]
<warrshrike> Okay so this will strip anything before Found a good path...
<warrshrike> What if I also want to get rid of everything after BFS is Done!
enterprisey has joined #ruby
<warrshrike> also theres a sutble bug
harai has joined #ruby
<warrshrike> it also takes in Found a good source path... whereas it should start with [Node Id:]
tenderlove has joined #ruby
enterprisey has quit [Max SendQ exceeded]
jhack has quit [Client Quit]
<matthewd> You could use take_while {|s| s !~ /^BFS is done/ } instead of the tap+pop
blackbombay has joined #ruby
Swolbi has quit [Quit: Page closed]
enterprisey has joined #ruby
joebobjoe has quit [Ping timeout: 268 seconds]
statelesscode has quit [Ping timeout: 260 seconds]
statelesscode has joined #ruby
ldnunes has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<warrshrike> yeah it works now
<warrshrike> except the first element to be extracted is bugged
<warrshrike> it lumps two nodes togethet
enterprisey has quit [Max SendQ exceeded]
enterprisey has joined #ruby
<warrshrike> okay that works for the first one too
rwb has quit [Ping timeout: 268 seconds]
bturker_ has joined #ruby
krsh has quit [Quit: krsh]
polishdub has joined #ruby
centrx has joined #ruby
<warrshrike> Now whats thw elegant way to remove Found a good path... from the first result?
<matthewd> You can just .sub it out, if you like
<matthewd> The first entry is already going to be different from the others because it doesn't have the --- extras, so I'd expect to just handle that variation later when parsing further
bturker has quit [Ping timeout: 256 seconds]
<warrshrike> but thatl require another line and not be fun. I did it currently with first_line.sub
ferr1 has quit [Quit: WeeChat 1.5]
polishdub has quit [Client Quit]
<warrshrike> ah okay so i guess itl do
rodfersou|lunch is now known as rodfersou
DaveTaboola has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack has joined #ruby
saneax is now known as saneax-_-|AFK
DaveTaboola has joined #ruby
<warrshrike> Okay one more thing that has plagued me for eons
xberg has quit []
<warrshrike> so when I do Array.each do |x| ...end
<warrshrike> is this a kind of loop convenince like for (auto x: arr) in c++
<warrshrike> or is actually like javscripts foreach
<domgetter> warrshrike yes, it's implemented as a while loop that is grabbing each element for you
<warrshrike> where we give the code as lambda and its a higher order function
<canton7> ... and for those who don't know both C++ and javascript? :P
<warrshrike> Basically, I asked if its an explicit loop or a higher order function with a hidden loop
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
zukin has joined #ruby
xberg has joined #ruby
<matthewd> warrshrike: I'd say it rather depends exactly where you draw the line on the distinction
<warrshrike> According to domgetter its an explicit loop in a convenience syntax. That is, each element is actually fetched for you
ResidentBiscuit has joined #ruby
<domgetter> warrshrike how far down does the implementation have to be for it to be "hidden"?
xberg has quit [Client Quit]
enterprisey has quit [Remote host closed the connection]
xberg has joined #ruby
xberg has quit [Remote host closed the connection]
obx has quit [Quit: Page closed]
<warrshrike> if the code that is actually doing the working on each element of the loop is an anon function
<warrshrike> and 'each' is a higher order function
<domgetter> the code is actually doing the working on each element in order, yes
<warrshrike> that would mean 'hidden' as I'm saying it
<domgetter> warrshrike Yes, each is a higher order function in the sense that it "takes a function as input"
<warrshrike> Ah that clears it
<canton7> the 'do ... end' is an anonymous function in ruby
<matthewd> The block is closer to a function than not
<warrshrike> so it is like javascript array.foreach(anon function)
<warrshrike> yeah functionally its the same thing
aegis312_ has quit [Ping timeout: 256 seconds]
<warrshrike> so makes sense
<domgetter> warrshrike of course, what's interesting is that any method in Ruby can take a "do ... end" as input ;)
<matthewd> But it doesn't seem impossible to argue that the body of a for loop in C++ is an anonymous function either
<domgetter> matthewd one tiny difference is that you can return from inside a for loop in C++, but Ruby forbids returning from a block
<matthewd> No it doesn't
<canton7> you can definitely return from a block in ruby :P
ldnunes has quit [Ping timeout: 252 seconds]
<warrshrike> Th difference IMO is that in c++ is that youre telling it how to loop
<domgetter> >> [1,2,3].each {|i| return i}
<ruby[bot]> domgetter: # => unexpected return (LocalJumpError) ...check link for more (https://eval.in/687790)
<canton7> give it somewhere to return to
<warrshrike> also in that case its really a hybrid thing between function and loop
<matthewd> >> def x; [1,2,3].each {|i| return i }; end; x
<ruby[bot]> matthewd: # => 1 (https://eval.in/687792)
<warrshrike> for a true higher order foreach you wouldbe be able to return from it
<warrshrike> wouldnt*
zukin has quit [Ping timeout: 265 seconds]
<domgetter> >> [1,2,3].each(&-> i{ return i})
mikecmpbll has quit [Quit: inabit. zz.]
<ruby[bot]> domgetter: # => [1, 2, 3] (https://eval.in/687793)
<canton7> ruby makes a distinction between block/procs, and lambdas: one of the differences is where 'next', 'break' and 'return' jump to
<warrshrike> Ah canton7 that clears it up then
<canton7> so ruby has 2 (3?) different types of anonymous functions
mikecmpbll has joined #ruby
<warrshrike> cool will read this up
<warrshrike> and also I just realized if you map an array onto its self its effectively a foreach :O
codfection has joined #ruby
colegatron has quit [Ping timeout: 245 seconds]
<warrshrike> good to make impressive loopign code ^_^
zukin has joined #ruby
jhack has quit [Quit: jhack]
jaguarmagenta has joined #ruby
polishdub has joined #ruby
govg has quit [Ping timeout: 260 seconds]
colegatron has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
riotjones has quit [Ping timeout: 268 seconds]
igniting has joined #ruby
iMadper has quit [Remote host closed the connection]
shadowak47 has joined #ruby
iMadper has joined #ruby
zukin has quit [Quit: leaving]
colegatron_origi has joined #ruby
colegatron has quit [Ping timeout: 250 seconds]
antoniobeyah has joined #ruby
Snowy has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
ldnunes has joined #ruby
JeroenDL has quit [Quit: JeroenDL]
wnd has quit [Ping timeout: 265 seconds]
jhack has joined #ruby
wnd has joined #ruby
dogweather has joined #ruby
andikr has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
cloaked1 has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
nelsonsar has quit [Remote host closed the connection]
Devalo has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
dogweather has quit [Ping timeout: 258 seconds]
nelsonsar has joined #ruby
minimalism has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
nelsonsar has quit [Ping timeout: 260 seconds]
TvL2386 has quit [Quit: Ex-Chat]
ldnunes has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
Xentil has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
aurelien has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mikecmpbll has joined #ruby
Rodya_ has quit [Remote host closed the connection]
davidt has joined #ruby
futilegames has quit [Client Quit]
Rodya_ has joined #ruby
conta has quit [Ping timeout: 252 seconds]
Derperperd has joined #ruby
nelsonsar has joined #ruby
BreakThings has joined #ruby
Joufflu has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
nikivi has quit [Quit: irc]
pragmaticus has joined #ruby
NeverTired has joined #ruby
ldnunes has joined #ruby
nfk has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
nahra has joined #ruby
LoneHerm_ has joined #ruby
futilegames has joined #ruby
<Joufflu> halp plz
<Joufflu> I'm learning Ruby and I kinda "stuck" for solving a problem
frozengeek has quit [Remote host closed the connection]
<Joufflu> it's converting putting numbers with ordinals. I think i got most except for number 11, 12, and 13
frozengeek has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kassav has quit [Quit: kassav]
<canton7> you need to add extra cases for them
<canton7> 'if number == 11' ...
antoniobeyah has quit [Quit: antoniobeyah]
LoneHerm_ has quit [Ping timeout: 260 seconds]
<Joufflu> i was thinking if number != 11 to exclude them
antoniobeyah has joined #ruby
<canton7> sure, both will work
flying has joined #ruby
<baweaver> Case statement would be cleaner
<baweaver> also return isn't necessary in ruby
<baweaver> Joufflu ^
gnufied has quit [Remote host closed the connection]
<baweaver> though you'll need to add edge cases for the others
<domgetter> This is the 11st item.?
<domgetter> :P
<baweaver> Might be easier if you strip out the sentences
<baweaver> and just return the straight ordinal
<baweaver> ex: 1 -> '1st'
<baweaver> then interpolate that in the sentence at the end
<Joufflu> baweaver, thanks! yeah I m here precisely because the "11st" problem
<Joufflu> domgetter, i know ;P
<Joufflu> baweaver, ok will try ty :D
augcesar has joined #ruby
[Butch] has joined #ruby
aufi has quit [Quit: Leaving]
flying has quit []
nankyokusei has joined #ruby
<ponga> will i ever get used to python, no :(
<baweaver> http://pastie.org/10972662 - though I'm being a tinge dense with lambda in there Joufflu
<baweaver> case statement uses === for each branch
<baweaver> So you can:
Lucky_ABA has joined #ruby
<baweaver> >> case 3; when Integer then 0; else 1 end
<ruby[bot]> baweaver: # => 0 (https://eval.in/687821)
<baweaver> >> case '3'; when Integer then 0; else 1 end
<ruby[bot]> baweaver: # => 1 (https://eval.in/687822)
tvw has quit [Read error: Connection reset by peer]
<baweaver> >> case 3; when -> x { x > 2 } then 0; else 1 end
<ruby[bot]> baweaver: # => 0 (https://eval.in/687823)
<baweaver> >> multipier = -> x { -> y { x * y } }; m_by_5 = multiplier[5]; (1..5).map(&m_by_5)
<ruby[bot]> baweaver: # => undefined local variable or method `multiplier' for main:Object ...check link for more (https://eval.in/687825)
<baweaver> >> multiplier = -> x { -> y { x * y } }; m_by_5 = multiplier[5]; (1..5).map(&m_by_5)
zacts has joined #ruby
<ruby[bot]> baweaver: # => [5, 10, 15, 20, 25] (https://eval.in/687826)
<baweaver> (helps if I spell right)
nankyokusei has quit [Ping timeout: 268 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
govg has joined #ruby
BreakThings has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
gnufied has joined #ruby
<warrshrike> IMO return should be necessary. The gains in brevity don't seem enough to justify the loss of clarity
finisherr has joined #ruby
<baweaver> If you're writing methods long enough that that's an issue you have another problem
<blackbombay> return is nice for swift control flow, like return false if some_condition
<baweaver> Typically style in ruby dictates that methods shouldn't exceed 10-15 lines.
<baweaver> 5 if we're going by Metz but that's a bit extreme in some cases.
saslam has joined #ruby
<warrshrike> Respectfully disagree. I used to be into this implicit return and was actually miffed that it didn't but I now increasingly feel they made the right call in terms of it hurting clarity
amclain has joined #ruby
<warrshrike> yeah obviously long funks are bad
jhack_ has joined #ruby
<warrshrike> I feel it causes a cognitive dissonance when
antoniobeyah has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<baweaver> Work in a more heavily functional language. You're not going to see return much of anywhere there either.
<blackbombay> put it in the hat of subjective style
russt has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<warrshrike> you explicity return in an IF block but then do so implicitly in the main body. Also its good to see control flow at a glance...
<warrshrike> yeah totally subjective ofc
<baweaver> It's my opinion that if one cannot grok ruby code without explicit returns they're not very deep into Ruby.
<domgetter> baweaver you'll see return in Haskell a lot
finisherr has quit [Ping timeout: 256 seconds]
<warrshrike> and as for functional languages well haskell and ml have expressions rather statements
jhack has quit [Ping timeout: 244 seconds]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
jhack_ is now known as jhack
<warrshrike> so in that case the result is assigned and that makes sense in a mathematical way
sdwrage has quit [Quit: Leaving]
<baweaver> domgetter: not very often in my case.
<warrshrike> baweaver: well one CAN write ruby code without return. I was just wondering about the tradeoffs of doing so :)
<domgetter> baweaver it was more of a joke about how monads are defined based on bind and return
aries_liuxueyang has joined #ruby
<baweaver> Maybe
<toretore> Just
<baweaver> Some
<domgetter> Burrito
finisherr has joined #ruby
finisherr has quit [Client Quit]
<baweaver> After all though, Monads are just Monoids in the category of Endofunctors.
<toretore> in an expression oriented language, a return should be the last expression, which also makes them useless
Salih has quit [Quit: Leaving]
Ishido has joined #ruby
railssmith has quit [Ping timeout: 248 seconds]
<baweaver> In Ruby the most common use would be guard statements
shadowak47 has quit [Quit: ChatZilla 0.9.93 [Firefox 50.0.1/20161123182536]]
<baweaver> def meth(x) return false unless x > 5; ... end
<toretore> i use them sometimes too out of laziness, but if they were removed i'd be fine
<toretore> i don't see any advantages
<warrshrike> I really like ruby but occasionally its too slow. Any suggestion for a faster yet similar lang?
<baweaver> define slow
<domgetter> warrshrike how "similar"?
patarr has joined #ruby
<warrshrike> baweaver: sometimes in competitive programming my solutions overrun the run time limit
<warrshrike> the same algo in C runs through
<baweaver> JRuby, Crystal
<elomatreb> warrshrike: Crystal (crystal-lang.org) has similar syntax but is compiled, faster
jsrn_ has quit [Quit: Leaving]
<baweaver> as far as similar: Scala
<baweaver> as far as looking similar: Elixir
<warrshrike> dogmetter: basically it should have clear and consice syntax. also, ruby has convenience methods for most things like str.scan etc. i dont want to be importing libraries or reimplementing basic stuff
<baweaver> Scala
<patarr> Hello. I've read this on some docs: "Or you may provide a custom delivery method object e.g. MyOwnDeliveryMethodClass. See the Mail gem documentation on the interface you need to implement for a custom delivery agent" Afaik Ruby doesn't have interfaces? Do they mean I have to implement every Class method in http://www.rubydoc.info/github/mikel/mail/Mail ?
<matthewd> I think Rust fits somewhere in there too
rodferso1 has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<warrshrike> I'll look into jruby but is it really faster? and ive never heard of crystal or elixir do they have the basic funktionality?
<warrshrike> and scala seems really verbose :/
<baweaver> functionality*
Salih has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
<baweaver> Scala isn't really all that verbose for what it does
<warrshrike> hmm what about swift or go?
<baweaver> patarr: It doesn't. Likely they mean something to the note of it needs to implement these methods
<matthewd> patarr: Yes, "interface" = "set of provided methods"... but you presumably only need to match whichever class they're talking about you replacing
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<patarr> Why do people act like verbosity is a negative thing. That just screams "I work at a startup and only create new microservice and never had to maintain a large legacy codebase before"
<baweaver> They may have some module to extend that adds the base methods.
<matthewd> patarr: What are the "some docs" you're reading?
<toretore> looks like the interface consists simply of `deliver!(aMail)`
Yzguy has joined #ruby
<patarr> matthewd: ActiveMailer docs. Specifically the "delivery type". I don't want to use SMTP or file, but a third party API instead.
<patarr> toretore: hah. Sweet.
<elomatreb> patarr: Verbosity usually implies duplication, and duplication opens the door for inconsistencies increases room for mistakes
pragmaticus has quit [Ping timeout: 268 seconds]
<baweaver> patarr: rather presumptuous there. Java is horrible about being verbose for no good reason.
rodfersou has quit [Ping timeout: 246 seconds]
<patarr> elomatreb: it does not imply duplication in any way shape or form. Duplication implies bad programming and not knowing how to abstract.
rodferso1 is now known as rodfersou
Yzguy has quit [Client Quit]
<toretore> it is useful to be specific about interfaces, and a lot of other things
<patarr> Thank you matthewd and toretore. This was very helpful!
yardenbar has quit [Ping timeout: 265 seconds]
<domgetter> patarr I don't think I've ever seen anything described simultaneously as verbose and concise
<baweaver> After a point though you can reasonably infer things about aforementioned interface without explicitly saying it 10 times.
<toretore> s/specific/explicit/
<baweaver> being rigidly explicit about every last detail is tedious
<domgetter> and hiding information can be confusing
axisys has joined #ruby
Salih has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
<baweaver> It becomes a lot cleaner though when you use a Contract like system for static typing though.
<patarr> Sure it's tedious, but then you don't end up with syntax errors in production. lmfao
* Joufflu duplicates mistakes cause of derpiness
<toretore> baweaver: an interface specification would only have to be given once; the implementer then has a canonical source of truth and doesn't have to consult out of band information, or guess
<domgetter> patarr if you're business process is allowing for syntactically malformed code to reach production, I'd say there are deeper issues there
benlieb has joined #ruby
<elomatreb> patarr: If you have syntax errors in production I'd take a good look at your toolset
Salih has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
<baweaver> Yes, the external API, but not every little detail of the internal workings.
troulouliou_div2 has quit [Remote host closed the connection]
<toretore> baweaver: of course, but that's not part of an interface spec
<baweaver> fair enough
<baweaver> The IO needs to be explicit
Yzguy has joined #ruby
<toretore> in fact, that's what makes it an interface, it's the "outside"
railssmith has joined #ruby
<baweaver> What do I put in and what do I get out. The details in the middle? Not so much.
syf-revk has quit [Quit: Leaving]
<patarr> I have an example right here of why I would love an interface: the Mail library. It takes delivery methods of sendmail, SMTP, file, etc. But core_extensions only has smtp.rb. Where is file and sendmail? It also doesn't appear to extend any classes or include mixins.
<patarr> toretore has let me known there is a deliver method of some kind, but I have yet to find it :(
Couch has quit [Ping timeout: 252 seconds]
<toretore> you're right patarr, an interface would have forced the author to implicitly document it
<baweaver> If the method was to multiply all numbers by two, it'd be kinda silly to explicitly make a new list and run them through a for loop when map would do the same.
<toretore> patarr: that's the one you implement
<patarr> toretore: why doesn't smtp.rb implement it?
<baweaver> you'd likely have to ask the authors about that one patarr
<patarr> toretore: is that method part of activemailer? or the mail gem?
<toretore> i'm talking about the mail gem
<toretore> i don't know anything about AM
hahuang65 has quit [Ping timeout: 268 seconds]
<patarr> toretore: aaah I'm looking at the wrong module/directory!
tuxaddicted has quit [Ping timeout: 256 seconds]
<patarr> toretore: now with /network/delivery_methods under my belt, this should be pretty easy. I can work off of those as examples. Many thanks
fenre has joined #ruby
syf-revk has joined #ruby
flying has joined #ruby
riotjones has joined #ruby
nowhereman has joined #ruby
dviola has quit [Ping timeout: 244 seconds]
BTRE has quit [Remote host closed the connection]
ishe_ua has quit [Ping timeout: 265 seconds]
railssmith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synbit has joined #ruby
<warrshrike> okay so cfl.lines.drop_while {|s| s !~ /Found a good path to sink/ }.take_while {|s| s !~ /^BFS is done/ }.slice_before(/^\[Node Id/).map(&:join)
BTRE has joined #ruby
<warrshrike> im using this
joebobjoe has joined #ruby
<warrshrike> but it wont remove the trailing BFS is Done! bti
<warrshrike> bit*
patarr has quit [Ping timeout: 260 seconds]
riotjones has quit [Ping timeout: 260 seconds]
<baweaver> you could compact the drop_while with the take_while
patarr has joined #ruby
claudiui_ has quit []
fenre has quit [Remote host closed the connection]
<warrshrike> can you show me an example? by modifying that line^
<matthewd> I just realised I missed a perfectly good opportunity to use a flip-flop in the above!
<baweaver> cfl.lines.drop_while { | s| s !~ /Found a good path to sink/ || s =~ /^BFS is done/ }...
<baweaver> actually
jhack has quit [Quit: jhack]
joebobjoe has quit [Ping timeout: 246 seconds]
<warrshrike> whats a flip flop? that thing from digital circuits class?
<baweaver> matthewd what evil have you unleashed?
<baweaver> XD
<matthewd> trollolol :)
<domgetter> warrshrike it's a Ruby trick that the creator of Ruby regrets creating
<havenwood> But now it exists so it is our solemn duty to use it whenever the chance arises.
jackjackdripper has joined #ruby
<patarr> If a Ruby class is written in a "Mail" module in a library, and there is also a mail module in your application, will these clash? Or is there an implicit prefix to those modules I'm not aware of?
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
<warrshrike> oh thats an SR latch. I used to love those in college
<baweaver> cfl.lines.drop_while { |line| line !~ /^[Node/ }[0..-3]
frozengeek____ has joined #ruby
<domgetter> patarr if the modules have the same name, they are talking about the same module, and there can be clashes, yes.
<baweaver> Drop lines until you find the first node, then chop off the last 2 lines
mikecmpbll has quit [Quit: inabit. zz.]
LoneHerm_ has joined #ruby
<warrshrike> baweaver: will this also store in array ever [Node Id:]...till next Node Id
<baweaver> Nope, still need the slice bit
frozengeek____ has quit [Read error: Connection reset by peer]
agit0 has quit [Quit: zzzZZZ….]
<warrshrike> ah yeah was wondering that
<baweaver> also need to escape that [ up there on my example
frozengeek____ has joined #ruby
frozengeek has quit [Ping timeout: 260 seconds]
<warrshrike> how do you escape it?
<baweaver> slice_after { |line| line =~ /^\[Node/ }
frozengeek____ has quit [Remote host closed the connection]
<baweaver> backslash
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
tomphp has joined #ruby
<warrshrike> cfl.lines.drop_while { |line| line !~ /^\[Node/ }[0..-3].slice_after { |line| line =~ /^\[Node/ }
<warrshrike> this is the final version as Envisioned by you?
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
<baweaver> something like that
<baweaver> I'd have to run it to make sure.
<warrshrike> okay il do that ^_^ and report back
xall has quit [Ping timeout: 252 seconds]
jhack has joined #ruby
ldnunes has quit [Ping timeout: 265 seconds]
<warrshrike> nah this is messed up
<warrshrike> half the thing got KO'd
careta has quit [Ping timeout: 248 seconds]
finisherr has joined #ruby
<warrshrike> it starts from ---- Vertex id: 25057 \n", "---- The cal....
Rodya_ has quit [Remote host closed the connection]
careta has joined #ruby
jaguarmagenta has joined #ruby
Rodya_ has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
<warrshrike> okay i guess il fix this port op
<warrshrike> whats elegant way to remove first few words from string
<warrshrike> as well as last several chars
jaguarmagenta has quit [Ping timeout: 268 seconds]
wugy has quit []
dviola has joined #ruby
vuoto has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
benlieb has quit [Quit: benlieb]
djbkd has joined #ruby
whathappens has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
Humdai has quit [Quit: Leaving]
bazzy has quit [Ping timeout: 250 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has quit [Quit: ragequit]
JeroenDL has joined #ruby
riotjones has joined #ruby
bazzy has joined #ruby
synbit has quit [Quit: Ex-Chat]
LoneHerm_ has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
synbit has joined #ruby
sparch has quit [Ping timeout: 258 seconds]
conta has joined #ruby
nelsonsar has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
ramfjord has joined #ruby
frem_ has joined #ruby
xall has joined #ruby
seanhagen has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
warrshrike has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 260 seconds]
dogweather has joined #ruby
joebobjoe has joined #ruby
Livecodingtv_Ale has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
nelsonsar has joined #ruby
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
flying has quit []
frozengeek____ has quit [Remote host closed the connection]
Macaveli has joined #ruby
frozengeek____ has joined #ruby
SeepingN has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
joebobjoe has quit [Ping timeout: 258 seconds]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
tdy has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
joebobjoe has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
salut has quit [Quit: salut]
warrshrike has joined #ruby
synthroid has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
joebobjoe has quit [Ping timeout: 260 seconds]
JeroenDL has quit [Ping timeout: 246 seconds]
muelleme has joined #ruby
warrshrike_ has joined #ruby
<warrshrike_> hey guys got dc'd
<warrshrike_> in case i missed a messagee in the past 20 or so minutes
<warrshrike_> please tell me
eljimmy has joined #ruby
warrshrike has quit [Ping timeout: 260 seconds]
JeroenDL has joined #ruby
<Zarthus> doesn't look like it
synbit has quit [Quit: Ex-Chat]
<warrshrike_> lol yeah i guess. I thought maybe someone managed a super elegant solution for my parsing troubles
Rodya_ has joined #ruby
pawnbox has joined #ruby
TomyWork has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
dionysus69 has joined #ruby
cdg has quit [Remote host closed the connection]
maattdd has quit [Ping timeout: 252 seconds]
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
benlieb has joined #ruby
bodgix has quit [Quit: Leaving.]
antoniobeyah has joined #ruby
claudiuinberlin has joined #ruby
<antoniobeyah> >> “a few words”.split[1..-1]
<ruby[bot]> antoniobeyah: # => undefined local variable or method `words”' for main:Object (NameError) ...check link for more (https://eval.in/687880)
<antoniobeyah> smart quotes (smh)
aswen has joined #ruby
<antoniobeyah> warrshrike_: thats how though
Salih has quit [Quit: Leaving]
<antoniobeyah> >> "a few words".split[1..-1].join
<ruby[bot]> antoniobeyah: # => "fewwords" (https://eval.in/687881)
<antoniobeyah> >> "a few words".split[1..-1].join(' ')
<ruby[bot]> antoniobeyah: # => "few words" (https://eval.in/687882)
railssmith has joined #ruby
<antoniobeyah> same with a string
<antoniobeyah> >> 'abcdefg'[2..-1]
<ruby[bot]> antoniobeyah: # => "cdefg" (https://eval.in/687883)
enterprisey has joined #ruby
careta has quit [Ping timeout: 260 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
conta has quit [Ping timeout: 250 seconds]
SCHAAP137 is now known as GerritHiemstra
GerritHiemstra is now known as SCHAAP137
nankyokusei has joined #ruby
<antoniobeyah> >> 'abcdef'[0..-3]
<ruby[bot]> antoniobeyah: # => "abcd" (https://eval.in/687884)
vuoto has quit [Remote host closed the connection]
renatoat has joined #ruby
splud has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
UserOO7 has joined #ruby
UserOO7 has quit [Remote host closed the connection]
UserOO7 has joined #ruby
Lord_of_Life has quit [Excess Flood]
adavia has quit [Ping timeout: 258 seconds]
Lord_of_Life has joined #ruby
renatoat has quit [Quit: Page closed]
pilne has joined #ruby
fiddlerwoaroof has quit [Read error: Connection reset by peer]
platzhirsch has quit [Ping timeout: 240 seconds]
sparch has joined #ruby
symm- has joined #ruby
segy_ has joined #ruby
aurelien has joined #ruby
segy has quit [Ping timeout: 268 seconds]
segy_ is now known as segy
aegis3121 has joined #ruby
dogweather has quit [Remote host closed the connection]
UserOO7 has quit [Remote host closed the connection]
sparch has quit [Ping timeout: 246 seconds]
BreakThings has joined #ruby
blackbom1 has joined #ruby
dogweat__ has joined #ruby
blackbombay has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
dogweather has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
GodFather has quit [Ping timeout: 246 seconds]
Fuzai has joined #ruby
dogweat__ has quit [Ping timeout: 258 seconds]
UserOO7 has joined #ruby
dogweather has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
dogweather has joined #ruby
ur5us has joined #ruby
djbkd has quit [Remote host closed the connection]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
djbkd has joined #ruby
Dimik has joined #ruby
bovis has joined #ruby
UserOO7 has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
smlocal has joined #ruby
djbkd has joined #ruby
last_staff has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
UserOO7 has joined #ruby
frozengeek____ has quit [Quit: frozengeek____]
mostlybadfly has joined #ruby
frozengeek____ has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
TomyLobo has joined #ruby
UserOO7 has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
elifoster has joined #ruby
bturker_ has quit [Ping timeout: 256 seconds]
frozengeek____ has quit [Quit: frozengeek____]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
shashin has joined #ruby
zeroDi has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ur5us has quit [Remote host closed the connection]
fiddlerwoaroof has joined #ruby
ur5us has joined #ruby
mm_ has joined #ruby
shadowak47 has joined #ruby
mm_ has quit [Client Quit]
sarbs has quit [Disconnected by services]
agit0 has joined #ruby
sarbs_ has joined #ruby
shadowak47 has left #ruby [#ruby]
cibs has quit [Ping timeout: 268 seconds]
jaguarmagenta has joined #ruby
cibs has joined #ruby
ur5us has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ur5us has joined #ruby
joebobjoe has joined #ruby
jaruga has quit [Quit: jaruga]
jaguarmagenta has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
dogweather has quit [Remote host closed the connection]
ldnunes has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
brendan- has joined #ruby
Cohedrin has joined #ruby
OTORelic has joined #ruby
minimalism has quit [Quit: minimalism]
Rodya_ has quit [Remote host closed the connection]
bturker has joined #ruby
l33n has joined #ruby
<zacts> hi rubyists
johnmilton has quit [Remote host closed the connection]
savage has quit [Quit: Connection closed for inactivity]
uxp_ has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
nofxx has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
<adgtl> hi zacts
Rodya_ has joined #ruby
dogweather has joined #ruby
OTORelic has quit [Quit: WeeChat 1.4]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
william3 has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
dogweather has quit [Client Quit]
Yzguy has quit [Quit: Zzz...]
<l33n> so I have a minimal http server, I sent it a json via ajax request, how can i access the data?, i sent the data with ajax like https://gist.github.com/anonymous/27e6ae9557cdd26668969bd0f4b7194f
<jhack> you have to put a .then()
<jhack> in there
adavia has joined #ruby
<jhack> .done() is what you’re looking for
william3 has quit [Ping timeout: 250 seconds]
<l33n> ok, but then serverside, I want to access that data
tercenya has quit [Remote host closed the connection]
<l33n> i want to take it and use it in a method generate a json and send it back
tercenya has joined #ruby
nelsonsar has quit [Ping timeout: 268 seconds]
rodfersou has quit [Quit: leaving]
ldnunes has quit [Quit: Leaving]
roshanavand has quit [Read error: Connection reset by peer]
bartek has joined #ruby
xall has quit [Ping timeout: 250 seconds]
nelsonsar has joined #ruby
Spiff_ has joined #ruby
l33n has quit [Quit: Leaving]
muelleme has quit [Ping timeout: 252 seconds]
Spiff_ has quit [Client Quit]
blackbombay has joined #ruby
conta has joined #ruby
JeroenDL has quit [Ping timeout: 260 seconds]
SpiffTR has joined #ruby
blackbom1 has quit [Ping timeout: 252 seconds]
SCHAAP137 has quit [Quit: Leaving]
mwlang has quit [Quit: mwlang]
<Joufflu> baweaver, ok I see your answer and how you specified for 11th 12th and 13th and I tried doing something similar but it's not working http://pastie.org/10972801
kirun has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SpiffTR has quit [Client Quit]
Yzguy has joined #ruby
<Joufflu> mind pointing out what I'm doing wrong ?
<domgetter> Joufflu instead of checking for 11, 12, and 13 directly, you'll want to first check if the number is 11, 12, or 13 % 100, and then check normally against %10
<domgetter> That way, 113 will be 113th
shadowak47 has joined #ruby
TvL2386 has joined #ruby
<domgetter> What are the possible numbers that might come into this method?
mdw has joined #ruby
biberu has quit [Ping timeout: 260 seconds]
<Joufflu> domgetter, thanks for response; any integer
bartek has quit [Quit: Leaving]
elifoster has quit [Quit: class]
shadowak47 has quit [Client Quit]
banisterfiend has joined #ruby
conta has quit [Ping timeout: 256 seconds]
marxarelli is now known as marxarelli|afk
shadowak47 has joined #ruby
bovis has quit [Quit: leaving]
spiff1 has joined #ruby
dionysus69 has joined #ruby
ur5us has joined #ruby
dnicole_ has quit [Remote host closed the connection]
zeroDi has quit [Quit: WeeChat 1.6]
nankyokusei has joined #ruby
jhooker has joined #ruby
blackwind_123 has quit [Quit: For Sale: Intergalactic Proton Powered Electrical Tentacled Advertising Droids]
tdy has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
Joufflu has quit [Quit: Leaving]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 245 seconds]
Yzguy has quit [Quit: Bye]
axl_ has joined #ruby
axl_ has left #ruby [#ruby]
Rodya_ has quit [Remote host closed the connection]
spiff1 has left #ruby [#ruby]
axl_ has joined #ruby
Jackneill has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
jgnagy has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
shadowak47 has left #ruby [#ruby]
Jackneill has quit [Max SendQ exceeded]
<patarr> is there any way to use Net::HTTP without constantly prepending everything with Net::?
<Nilium> There are a few but they're all very bad ideas. Just type Net:: a lot.
dionysus69 has quit [Ping timeout: 250 seconds]
Jackneill has joined #ruby
quakephil has joined #ruby
<patarr> Why?
ponga has quit [Quit: Connection closed for inactivity]
<Nilium> Because five extra characters is a lot better than the alternatives of moving things around or including net in something
<quakephil> Hi all, trying to run ad-hoc SQL with parameter binding via activerecord. So far I'm pretty close with ActiveRecord::Base.connection.raw_connection.prepare and .execute but execute doesn't seem to be binding the parameters that I'm passing to it, and on top of that it returns the results as an array (whereas I need it as a hash, keyed by column names)
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
l33n has joined #ruby
<blackbombay> patarr: how come you're typing that a lot anyway? Net::HTTP.new/start should be as much as you have to reference that constant.
pawnbox has quit [Remote host closed the connection]
Cohedrin has joined #ruby
Rodya_ has joined #ruby
SpiffTR has joined #ruby
sandbags has joined #ruby
sandbags has joined #ruby
sandbags has quit [Changing host]
Guest86948 has joined #ruby
smlocal has quit [Ping timeout: 260 seconds]
riotjones has joined #ruby
dnicole has joined #ruby
Guest86948 has quit [Client Quit]
Cohedrin has quit [Ping timeout: 260 seconds]
pachinsv has joined #ruby
<patarr> blackbombay: I'm reading the docs. It would be required every time I create a different request type: https://ruby-doc.org/stdlib-2.3.3/libdoc/net/http/rdoc/Net/HTTP.html
smlocal has joined #ruby
<l33n> I have a minimal ruby server: https://gist.github.com/anonymous/925a0a0afd431fbeffa44dfb745da7f5 , I have an ajax get request: https://gist.github.com/anonymous/23abe0c02c471eaf67ba25262ef1af5b , i have a file system like this: https://gist.github.com/anonymous/c62c5536da749d8c7d6c1b9c68a9e520 , my server receives the json: https://gist.github.com/anonymous/bd460326f7499e5058820022e02369b0 , how can I access this json server side so that when
<l33n> I visit http://localhost:2345/ I can see the json rendered as text?
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<blackbombay> you don't have to use the http.request() api, you can write Net::HTTP.start(host, port) { |http| http.post(), http.get(), etc }
<l33n> ok, but still, I just want to figure out the answer to my question
<l33n> ty blackbombay
<blackbombay> l33n: i was responding to patarr
<l33n> oh
bodgix has joined #ruby
futilegames has joined #ruby
<blackbombay> im not sure about your problem. you want to render JSON from where? the network? filesystem?
tercenya has quit [Remote host closed the connection]
marxarelli|afk is now known as marxarelli
<l33n> I want to simply take the json and render it in the browser
tercenya has joined #ruby
<l33n> so that when I visit localhost:2345/index.html I can see the json i sent via the ajax request
davidt has quit []
Derperperd has quit [Quit: Derperperd]
<l33n> i mean, i want to do a lot more than that, but right now I cant even do that or I dont know how
<blackbombay> is there a reason you have wrote everything at such a low level?
last_staff has quit [Quit: last_staff]
synthroid has quit []
<l33n> im learning
<blackbombay> okay cool
<blackbombay> what you have looks fine. what doesn't work?
marsjaninzmarsa has quit [Ping timeout: 248 seconds]
<l33n> well it gets it
<l33n> but now I want to take the json and see it when I visit localhost:2345/index.html
byte512 has quit [Ping timeout: 258 seconds]
jaruga___ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
jaruga___ is now known as jaruga
cdg has joined #ruby
SpiffTR has quit [Quit: Leaving.]
marsjaninzmarsa has joined #ruby
domgetter has quit [Ping timeout: 244 seconds]
<blackbombay> you want to store it somewhere and see it on the index.html page?
<l33n> yeah
marsjaninzmarsa has quit [Excess Flood]
jackjackdripper has joined #ruby
pandawhisperer has joined #ruby
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
miqlas-H has joined #ruby
djbkd has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 244 seconds]
<blackbombay> hm okay, i would add a path where you accept the JSON payload, then store that to disk, and make index.html an ERB template that can call File.read(path_to_json_file)
bturker has joined #ruby
marsjaninzmarsa has joined #ruby
BreakThings has quit [Ping timeout: 260 seconds]
<l33n> blackbombay, so in the ajax request, the url would be to a specific path and create a directory serverside that matches that path? how to store to disk?
benlieb has quit [Quit: benlieb]
muelleme has joined #ruby
prestorium has quit [Quit: Leaving]
<blackbombay> modify the server script to handle a path like "/receive_json", and in that condition use File.write() to store the json on disk, otherwise fall through to the logic you currently have for reading from public/.
<l33n> ok
<l33n> i shall try
bturker has quit [Ping timeout: 256 seconds]
SpiffTR has joined #ruby
User458764 has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
TvL2386 has quit [Quit: Ex-Chat]
tomphp has joined #ruby
ta_ has quit [Remote host closed the connection]
SpiffTR has quit [Quit: WeeChat 1.5]
dnicole has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
dnicole has joined #ruby
claudiuinberlin has quit []
OTORelic has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
SeepingN has quit [Disconnected by services]
tercenya has quit [Remote host closed the connection]
SeepingN_ has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tercenya has joined #ruby
LoneHermit has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
_sfiguser has quit [Ping timeout: 246 seconds]
bovis has joined #ruby
mooe has joined #ruby
Snowy has joined #ruby
bturker has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
montanonic has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
careta has joined #ruby
jaguarmagenta has joined #ruby
LoneHermit has quit [Remote host closed the connection]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
cschneid_ has joined #ruby
jgnagy has quit [Remote host closed the connection]
Nicmavr has quit [Quit: ZNC 1.6.3+cygwin3 - http://znc.in]
centrx has quit []
Nicmavr has joined #ruby
syf-revk has quit [Quit: Leaving]
Nicmavr has quit [Changing host]
Nicmavr has joined #ruby
<l33n> blackbombay, when writing this I made a .rb file that the server script logic will look for, but then how do i reference the json i passed with ajax?
codfection has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 268 seconds]
yardenbar has joined #ruby
<blackbombay> it's sent as a query string according to the gist you pasted
nelsonsar has quit [Ping timeout: 246 seconds]
<l33n> ill do something like this in the logic File.open("public/temp.json","w")
djbkd has joined #ruby
<l33n> or File.open("public/temp.json","w") do |f|
<l33n> f.write(
<l33n> but f.write( *what goes here?*
toretore has quit [Ping timeout: 250 seconds]
<blackbombay> URI(request_uri).query
<l33n> oh
_sfiguser has joined #ruby
<blackbombay> it will need to be decoded.
<blackbombay> and sending JSON as a query string is quite unusual, most web apps would accept JSON in a POST request.
null__ has left #ruby ["Textual IRC Client: www.textualapp.com"]
tomphp has joined #ruby
<l33n> ok
<l33n> ill look at that next
<l33n> im not sure this server script can handle POST
<l33n> as is
<l33n> should the file I make in the public folder have a .rb extension?
rwb has joined #ruby
pachinsv has quit [Ping timeout: 250 seconds]
tsou has joined #ruby
tsou has quit [Changing host]
tsou has joined #ruby
pandawhisperer has quit [Quit: Textual IRC Client: www.textualapp.com]
mic_e has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
nikivi has joined #ruby
zacts has quit [Quit: WeeChat 1.6]
jackjackdripper has joined #ruby
ta_ has joined #ruby
SpiffTR has joined #ruby
SpiffTR has quit [Client Quit]
jenrzzz_ has joined #ruby
jcao219 has joined #ruby
nelsonsar has joined #ruby
zacts has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
maattdd has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
ramfjord_ has joined #ruby
teclator has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
maattdd has quit [Client Quit]
ramfjord has quit [Ping timeout: 244 seconds]
tulak_ has joined #ruby
workmad3 has joined #ruby
pachinsv has joined #ruby
tulak has quit [Ping timeout: 244 seconds]
futilegames has quit [Quit: futilegames]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
xall has joined #ruby
skalfyfan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
skalfyfan has joined #ruby
skalfyfan has quit [Client Quit]
djbkd has joined #ruby
riotjones has joined #ruby
sepp2k has quit [Quit: Leaving.]
xall has quit [Ping timeout: 265 seconds]
matp_ has joined #ruby
maattdd has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
bodgix has quit [Quit: Leaving.]
matp has quit [Ping timeout: 246 seconds]
teclator_ has joined #ruby
teclator has quit [Ping timeout: 256 seconds]
mdw has joined #ruby
<blackbombay> yes because "path" is "/".
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord_ has quit [Ping timeout: 265 seconds]
<l33n> so line 81 should be File.open("temp.txt","w")
whathappens has quit [Remote host closed the connection]
<careta> how do I start a process in the foreground?
<careta> to let the user interact with it
pachinsv has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
augcesar has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
maattdd has quit [Ping timeout: 258 seconds]
yardenbar has quit [Ping timeout: 245 seconds]
yardenbar has joined #ruby
miqlas-H has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: I'm out . . .]
ezio has left #ruby ["Leaving"]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
miqlas-H has joined #ruby
whathappens has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
TheSpectre has quit [Quit: leaving]
TheSpectre has joined #ruby
TheSpectre has quit [Client Quit]
TheSpectre has joined #ruby
ramfjord has joined #ruby
sepp2k has joined #ruby
<l33n> sorry blackbombay, still nothing with https://gist.github.com/anonymous/421ef3102e3a228585076cd222afb909
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
bodgix has joined #ruby
dnicole_ has joined #ruby
icey has quit [Quit: icey]
kobain has joined #ruby
kobain has quit [Excess Flood]
whathappens has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
Devalo has joined #ruby
kobain has joined #ruby
jeffaustin81 has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
nankyokusei has quit [Ping timeout: 260 seconds]
muelleme has quit [Ping timeout: 246 seconds]
dnicole has quit [Ping timeout: 240 seconds]
shashin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw_ has joined #ruby
davidt has joined #ruby
Madplatypus has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 250 seconds]
montanonic has quit [Ping timeout: 245 seconds]
mdw has quit [Ping timeout: 258 seconds]
tris has quit [Ping timeout: 245 seconds]
mdw_ has quit [Client Quit]
Jackneill has quit [Remote host closed the connection]
jenrzzz has joined #ruby
epochwolf has quit [Quit: Uh no...]
nowhereman has quit [Ping timeout: 248 seconds]
OTORelic has quit [Quit: WeeChat 1.4]
jhack has quit [Quit: jhack]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
epochwolf has joined #ruby
charliesome has joined #ruby
rwb has quit [Ping timeout: 256 seconds]
epochwolf has quit [Client Quit]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
tris has joined #ruby
kirun has quit [Quit: Konversation terminated!]
aswen has quit [Quit: WeeChat 1.5]
SeepingN_ is now known as CPngN
yardenbar has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
dviola has quit [Quit: WeeChat 1.6]
jeffaustin81 has quit [Ping timeout: 258 seconds]
epochwolf has joined #ruby
djbkd has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
adavia has quit [Ping timeout: 258 seconds]
bodgix has quit [Quit: Leaving.]
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dviola has joined #ruby
platzhirsch has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
last_staff has joined #ruby
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
govg has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
jenrzzz has joined #ruby
djbkd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c355e3b has quit [Quit: Connection closed for inactivity]
axl_ has quit [Quit: axl_]
marxarelli is now known as marxarelli|afk
firstdayonthejob has quit [Ping timeout: 256 seconds]
saslam has quit [Ping timeout: 260 seconds]
marxarelli|afk is now known as marxarelli
Ropeney has joined #ruby
ruid has joined #ruby
charliesome has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
axl_ has joined #ruby
axl_ has quit [Client Quit]
omphe has quit [Ping timeout: 244 seconds]
patarr has quit [Ping timeout: 258 seconds]
SCHAAP137 has quit [Quit: Leaving]
nowhereman has joined #ruby
bturker has joined #ruby
chouhoul_ has joined #ruby
SCHAAP137 has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
symm- has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 268 seconds]
jgnagy has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
saslam has joined #ruby
l33n has quit [Quit: This computer has gone to sleep]
c355e3b has joined #ruby
ramfjord has joined #ruby
koooge has joined #ruby
symm- has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
l33n has joined #ruby
djbkd has quit [Remote host closed the connection]
saslam has quit [Ping timeout: 268 seconds]
djbkd has joined #ruby
yardenbar has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby