jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<adaedra> what kind of network streams?
<hxegon> adaedra, I still feel like for how long they have been around + company size + revenue ddg is pretty scrappy. they have some cool built in stuff
<adaedra> High level (HTTP, ...) or low level (TCP, UDP) ?
<bradland> so, i have a UDP stream coming in on 5606
<bradland> i know how to read from a socket
<adaedra> hxegon: they do, but still way behind what google provides me.
<bradland> and i'm about to set about the task of handling the data that arrives
<bradland> some background might help
<bradland> i have a game called ProjectCARS
shanemcd has quit [Read error: Connection reset by peer]
<adaedra> bradland: have a precise question, a problem, an error?
<bradland> the game broadcasts telemetry data on port 5606 at a configurable interval
p0wn3d_ has quit [Ping timeout: 260 seconds]
<bradland> not yet
crdpink2 has quit [Excess Flood]
<bradland> i'm at the starting phase, but this seems like it might be a solved problem
<bradland> i'm just not sure where to start searching
bin8me has joined #ruby
<bradland> i think it might be called strem processing
crdpink2 has joined #ruby
<bradland> *stream processing
<mg^> what exactly do you want to do?
<bradland> but i'm not sure
<jbrhbr> you're looking at something to handle all of the udp errors and blocking type logistics or something, rather than doing all of that yourself perhaps?
<bradland> i want to listen on the port, detect, and process the data that arrives
hahuang65 has joined #ruby
<adaedra> do you have to do other things while waiting for the data?
<bradland> jbrhbr: that's a good way to put it
bitcycle has joined #ruby
<bradland> for example, the payloads that arrive easily processed by the bindata gem
snoozelose has quit [Ping timeout: 255 seconds]
<adaedra> because iirc, #read is blocking, so won't return without at least some data
<bradland> but there's the matter of listening for the data, detecting the type of payload (it's in the first few bytes), and dispatching to the correct handler
bitcycle has quit [Read error: Connection reset by peer]
Nanuq has quit [Ping timeout: 264 seconds]
<bradland> all of this seems like a "solved probleM
madcodes has joined #ruby
madcodes has quit [Max SendQ exceeded]
<bradland> so rather than setting out to my own poorly engineered solution, i was hoping to look at other code that does similar things
<adaedra> listening of the data, it's UDPSocket's role.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bin7me has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shock_one has joined #ruby
fcser has quit [Ping timeout: 256 seconds]
<bradland> yeah, i've managed to fetch some bytes from the wire
<bradland> but i think i need threads or an event loop
<bradland> because the bytes are going to keep coming
<adaedra> then, to read and dispatch, a simple case on the result of #read or #peek (depending if you need the magic afterwards) should do it. (Or a hash and #public_send, if you're feeling fancy)
<bradland> so they need to be read in to a buffer that is processed by the parser
<adaedra> Relax, the kernel buffers the data you didn't read yet.
<bradland> ah, good to know
<adaedra> It's not because you don't read the data that it disappears.
<bradland> so, for example, i could read 1024 bytes, process them, then read more?
<adaedra> Yes.
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<mg^> yeah as long as the data isn't coming in faster than you can receive and process
<adaedra> Same way, if there is no data available, you'll just block until some is here.
<adaedra> Don't make it too complicated :)
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<adaedra> I suppose you're familiar with our friend ri:UDPSocket already?
<`derpy> class `UDPSocket`: UDPSocket represents a UDP/IP socket. • http://rubydoc.info/stdlib/socket/UDPSocket
<bradland> i have captured some data using this https://gist.github.com/bradland/91046d8cb770e201daec
yfeldblum has joined #ruby
<bradland> i used that to collect the data, then have a look at what's in there (in a hex editor)
howdoicomputer has quit [Quit: WeeChat 1.3]
<adaedra> If your magic is a fixed size, i.e. 4 bytes, just read that before handling the remaining operations to a specialized method.
howdoicomputer has joined #ruby
<bradland> so from what i've observed, it's a stream of null bytes until some data shows up
<bradland> so, i'll get nul, then \x74
<adaedra> ah
kies^ has joined #ruby
<bradland> that's always the signature of the beginning of the blob
colleenmcguckin is now known as guacamole
<bradland> so, unfortunately it's not just a matter of waiting on data to arrive
<bradland> because \x00\x00\x00... is always showing up
<adaedra> mh, I get nothing
<bradland> or at least that's how it looks from my capture code
<bradland> so my listener is going to have to do some detecting work
<adaedra> well, let's see that
Idakyne has quit [Ping timeout: 272 seconds]
<bradland> at the first occurance of non-null bytes, pop 2-bytes and verify that they're equal to 1140, then read 1-byte and determine the "packet_type"
<bradland> which is really the *package* type
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
cdg has quit [Remote host closed the connection]
<adaedra> I get no \0 with your code at all
<bradland> i don't like that they used the term packet, because this is net code.
<bradland> so that means the game is transmitting \0 on the wire?
dsdeiz has joined #ruby
<adaedra> could be.
<bradland> i have the game running
<bradland> let me see what i get
Dimik has joined #ruby
<adaedra> You can use nc to debug that.
<bradland> true
<bradland> i used tcpdump too
<bradland> come to think of it
<bradland> i compared the two and both showed the \0 stream
<adaedra> But you see, I got only what I sent: http://adaedra.imgur.com/all/
<adaedra> oops.
<adaedra> Maybe your game is sending \0 to "keep the stream open"
nullFxn has joined #ruby
n_blownapart has quit []
bb010g has joined #ruby
TinkerTyper has quit [Quit: ZNC - http://znc.in]
<bradland> yeah, i'm getting the streams of \0
<bradland> so it has to be the game
<adaedra> Given the fact you've got no "connected" state in UDP, it may use it to say "I'm still here"
<bradland> yeah, "feature"
<bradland> there are quite a few clients for this
<bradland> so if you're receiving the \0 stream, you can say with some confidence that you're "connected"
<bradland> makes the stream processing a bit more challenging though
<adaedra> You can have a loop that reads a byte, if it's a 0 discard it, if it's not call the right method
<bradland> because you can't simply wait for data
<bradland> read 1 byte at a time?
<bradland> i thought about that, but was worried about performance
Nanuq has joined #ruby
<adaedra> you can read a lot of bytes and then take care of them
<adaedra> the problem is not taking too much
<bradland> was thinking of reading in a chunk of 1024, scanning for the first non \0, then appending chunks until we reach the right size for the packet type (byte 3)
<mg^> UDP packets should be delivered to you in whole, it'd be odd to have them delivered any other way
pika_pika has quit [Ping timeout: 260 seconds]
<bradland> mg^: what do you mean "in whole"?
<mg^> Because you wouldn't be able to tell where one stopped and the other started
<bradland> i get a byte stream
<mg^> recvfrom should give you the whole packet in the case of UDP
jbrhbr has quit [Quit: Leaving.]
Bellthoven has quit []
firstdayonthejob has quit [Ping timeout: 240 seconds]
<adaedra> mg^: problem is that packets are an abstraction of the layer below
nullFxn has quit [Quit: leaving]
<bradland> yeah, packet issues are handled by UDPSocket
<bradland> i'm not concerned with that
<bradland> i have to process the payload, which may be split across UDP packets
<mg^> ahh OK
<adaedra> some of them at least. I think you can be still struct by lost or misordered packets.
<bradland> true
<adaedra> but that's the joy of doing UDP.
<bradland> i used to work in VoIP, so i'm painfully familiar with the loose nature of UDP
<mg^> so you've got a higher-level protocol that is ABC ABC ABC and it might map to (ABC A) (BC AB) (C)
<bradland> this is all LAN based, so it's generally pretty reliable
<adaedra> but you still get one stream. Amazing, uh?
<bradland> there's no checksum in this netcode though
<bradland> heh
<adaedra> With packets small enough it should be ok.
Bellthoven has joined #ruby
<adaedra> Might lost some; anyway, if you're in a game context, information you get are relevant for such a small amount of time generally that a lost packet is no problem.
<bradland> those are the structs that come across the wire
<bradland> the largest is 1367 bytes
brixen has quit [Ping timeout: 265 seconds]
<bradland> no checksum
<bradland> heh
<adaedra> if half-a-struct is lost tho, you're in for a bad time.
<bradland> yep
<mg^> Presumably they are encapsulated so that you can tell which struct is where?
<bradland> bewm
<bradland> mg^: hahaha... no
<bradland> see the first two fields
howdoicomputer has quit [Ping timeout: 240 seconds]
<bradland> sBuildVersionNumber and sPacketType?
<bradland> the first is a fixed value
<mg^> yeah got it
<bradland> the second you run mod 4 against it and it gets you your packet type
<bradland> you pick a struct and run with it
<mg^> yeah in C you'd just cast the structs based on that value
<bradland> since they have defined sizes, you can read 1367 bytes and attempt to process it
jbrhbr has joined #ruby
<adaedra> Anyway, it's time for me to read on BEDSocket.
<bradland> *normally*, you'd get a checksum field early on so you could find out if you got al lthe data
<bradland> right on, thanks adaedra
<bradland> mg^ this code uses the bindata gem to pull apart a blob once i've identified it: 1367
build22_ has quit [Remote host closed the connection]
<bradland> doh
<bradland> bindata could be thought of as a DSL built around String#unpack
<mg^> Well, on a LAN it's fine because the ethernet FCS will cover you, provided all your L1 is okay
<bradland> FCS won't guarantee that UDP arives in order
<bradland> it will only ensure the frame is intact
<mg^> no, out of order is going to be problematic
<bradland> at the app layer, a checksum helps you discard data you can't use
<mg^> You might find a heuristic way to see if the data makes sense
<bradland> que sera
<bradland> yeah, i have bounds, so i could bounds check
<bradland> toss cookies if it fails
chouhoulis has joined #ruby
<mg^> So are you doing a scoreboard or something?
<bradland> "Pit Boss" app
<mg^> nifty
brixen has joined #ruby
bogn has quit [Ping timeout: 246 seconds]
bogn has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
dorei has quit []
paradisaeidae has quit [Ping timeout: 246 seconds]
djbkd_ has joined #ruby
brixen has quit [Ping timeout: 240 seconds]
_djbkd has quit [Ping timeout: 256 seconds]
icarus has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
baweaver has joined #ruby
rodferso1 has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 256 seconds]
<hxegon> I wonder if you could train a computer to detect card counters with machine vision
<hxegon> *computer :P
<jhass> I wouldn't be surprised if that's already deployed
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
djbkd_ has quit [Remote host closed the connection]
brixen has joined #ruby
Bellthoven has quit []
Arnvald has joined #ruby
akem has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
nertzy has joined #ruby
jessemcgilallen has joined #ruby
Bellthoven has joined #ruby
hays has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
<hxegon> not deployed I don't think, but exists in some form: http://phys.org/news/2009-10-combats-blackjack-card.html
Mr_Psmith has joined #ruby
rodfersou has joined #ruby
atomical has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
_djbkd has joined #ruby
idefine has quit [Remote host closed the connection]
guacamole has quit [Remote host closed the connection]
colegatron has joined #ruby
lyoshajapan has joined #ruby
slash_nick is now known as slash_kick
build22_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jbrhbr has quit [Ping timeout: 255 seconds]
_djbkd has quit [Remote host closed the connection]
kknight has joined #ruby
DLSteve has joined #ruby
eytanfb has quit [Remote host closed the connection]
klafka has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
weemsledeux has joined #ruby
shock_one has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 255 seconds]
_djbkd has joined #ruby
lacuna has quit [Remote host closed the connection]
mistermocha has quit []
akaiiro has quit [Ping timeout: 256 seconds]
cwong_on_irc has quit [Quit: Leaving.]
nettoweb has joined #ruby
_djbkd has quit [Remote host closed the connection]
lacuna has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
s00pcan has quit [Remote host closed the connection]
_djbkd has joined #ruby
rgtk has joined #ruby
cwong_on_irc has joined #ruby
slash_kick is now known as slash_nick
banister has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mchu has quit [Quit: mchu]
slash_nick is now known as slash_kick
podman has quit [Quit: Connection closed for inactivity]
kknight has quit [Ping timeout: 255 seconds]
hxegon has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 256 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
_stu_ has quit [Quit: _stu_]
lessless has joined #ruby
marr has quit [Ping timeout: 260 seconds]
toretore has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
chouhoulis has joined #ruby
DavidDudson has joined #ruby
Bellthoven has quit []
snoozelose has joined #ruby
snoozelose has quit [Changing host]
snoozelose has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
seitensei has joined #ruby
nerium has joined #ruby
_djbkd has quit [Remote host closed the connection]
Sucks has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
ElFerna has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
ornerymoose has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
TomPeed has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
baweaver has quit [Remote host closed the connection]
seitensei has quit [Ping timeout: 240 seconds]
icarus has joined #ruby
idefine has joined #ruby
_djbkd has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
kalopsian has quit [Ping timeout: 246 seconds]
krz has joined #ruby
hololeap has joined #ruby
Uptime has quit [Changing host]
Uptime has joined #ruby
<hololeap> can anybody give me a brief comparison between ruby and scala for event-driven programming? which do you like better?
CloCkWeRX has quit [Quit: Leaving.]
mistermocha has quit [Remote host closed the connection]
ramfjord has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c-c> just a queue, then
dsdeiz has quit [Ping timeout: 256 seconds]
idefine has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
Rickmasta has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
pwnd_nsfw has joined #ruby
dsdeiz has joined #ruby
cassioscabral has joined #ruby
nanoz has joined #ruby
idefine has joined #ruby
ckrailo_ has joined #ruby
amclain has quit [Quit: Leaving]
cwong_on_irc has joined #ruby
jun_ has joined #ruby
SleepySensei has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
stevenxl is now known as stevenxl-away
dsdeiz has quit [K-Lined]
neanderslob has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 256 seconds]
govg has joined #ruby
<shevy> not sure that you can find many who use scala here hololeap
guacamole has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
howdoicomputer has joined #ruby
jmonreal has quit [Ping timeout: 240 seconds]
Sucks has joined #ruby
jpank has quit []
root_ has joined #ruby
arescorpio has joined #ruby
ckrailo_ has quit []
al2o3-cr has quit [Ping timeout: 272 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
jun_ has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
govg has joined #ruby
Ebok has quit [Read error: Connection reset by peer]
bin8me has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Remote host closed the connection]
cwong_on_irc has quit [Quit: Leaving.]
idefine has joined #ruby
_stu_ has joined #ruby
UniFreak has joined #ruby
ss_much has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
fierycatnet has joined #ruby
rgtk has quit [Remote host closed the connection]
shock_one has joined #ruby
chouhoulis has joined #ruby
pika_pika has joined #ruby
shock_one has quit [Ping timeout: 255 seconds]
snoozelose has quit [Quit: Leaving]
hololeap has quit [Ping timeout: 240 seconds]
lannonbr has left #ruby ["WeeChat 1.0.1"]
chouhoulis has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
govg has quit [Ping timeout: 246 seconds]
sneakerhax has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
_djbkd has quit [Quit: My people need me...]
mistermocha has joined #ruby
snoozelose has joined #ruby
snoozelose has quit [Changing host]
snoozelose has joined #ruby
jmonreal has joined #ruby
snoozelose has quit [Client Quit]
govg has joined #ruby
snoozelose has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
blackmesa has joined #ruby
snoozelose has quit [Client Quit]
mistermocha has quit [Ping timeout: 240 seconds]
mjwhitta has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
lannonbr has joined #ruby
smactive has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
smactive has quit [Ping timeout: 240 seconds]
lacuna has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hololeap has joined #ruby
Exce1l has joined #ruby
guacamole has quit [Remote host closed the connection]
howdoicomputer has quit [Ping timeout: 256 seconds]
Arnvald has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
<Exce1l> Any good suggestions on guides on Ruby for a newbie w/o any coding experience ?
fullofcaffeine has joined #ruby
<shevy> Exce1l have a look at https://pine.fm/LearnToProgram/chap_00.html
fierycatnet has quit []
<Exce1l> Thanks!
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
hxegon has joined #ruby
<Exce1l> @shevy how long you being coding ?
cwong_on_irc has joined #ruby
eytanfb has joined #ruby
ramfjord has joined #ruby
devbug has joined #ruby
Ox0dea has joined #ruby
eytanfb has quit [Ping timeout: 240 seconds]
nocd has joined #ruby
darkf has joined #ruby
Sucks_ has joined #ruby
Sucks has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
johnzorn has quit [Ping timeout: 250 seconds]
skcin7 has joined #ruby
Exce1l has left #ruby [#ruby]
baweaver has joined #ruby
skcin7 has quit [Max SendQ exceeded]
hololeap has quit [Ping timeout: 256 seconds]
skcin7 has joined #ruby
jcdesimp has joined #ruby
shock_one has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 240 seconds]
shaileshg has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
smactive has joined #ruby
krz has quit [Ping timeout: 265 seconds]
seitensei has joined #ruby
Exce1l has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
collembolic has quit [Ping timeout: 256 seconds]
jgpawletko has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
mjwhitta has quit [Quit: mjwhitta]
SCHAAP137 has quit [Read error: Connection reset by peer]
pika_pika has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
nanoz has joined #ruby
seitensei has quit [Ping timeout: 260 seconds]
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bloomer has joined #ruby
Exce1l has quit [Remote host closed the connection]
Arnvald has joined #ruby
_stu_ has quit [Quit: _stu_]
davedev2_ has joined #ruby
dlitvak_ has joined #ruby
hxegon has quit [Ping timeout: 246 seconds]
lyoshajapan has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 255 seconds]
kknight has joined #ruby
pawnbox has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Madhur__ has quit [Ping timeout: 256 seconds]
lyoshajapan has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 255 seconds]
dstarh has joined #ruby
jcdesimp has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
andrew9183 has quit [Quit: andrew9183]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcdesimp has joined #ruby
Mr_Psmith has quit [Quit: Mr_Psmith]
baweaver has quit [Remote host closed the connection]
Ropeney has joined #ruby
icarus has quit [Ping timeout: 240 seconds]
dlitvak_ has quit [Remote host closed the connection]
jcdesimp has quit [Ping timeout: 272 seconds]
Jardayn has quit [Read error: Connection reset by peer]
Spami has joined #ruby
braincrash has quit [Quit: bye bye]
nwhirschfeld has quit [Quit: No Ping reply in 180 seconds.]
sgambino has joined #ruby
ayromo08 has joined #ruby
nwhirschfeld has joined #ruby
zast has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
Spami has quit [Quit: This computer has gone to sleep]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
scripore has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
akem has quit [Read error: No route to host]
akem has joined #ruby
yeticry has joined #ruby
danieli has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
saneax_AFK is now known as saneax
floatingpoint has joined #ruby
saneax is now known as Guest17872
gix has joined #ruby
yeshacker has joined #ruby
UniFreak has left #ruby ["Leaving"]
mloy has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem2 has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
rgtk has joined #ruby
arooni_______ has quit [Ping timeout: 240 seconds]
astrobun_ has joined #ruby
chouhoulis has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
stannard has joined #ruby
nocd has left #ruby [#ruby]
chouhoulis has quit [Ping timeout: 246 seconds]
akem2 has quit [Read error: Connection reset by peer]
akem has joined #ruby
bithon has quit [Quit: WeeChat 1.3]
jun_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
seitensei has joined #ruby
stannard has quit [Ping timeout: 246 seconds]
djbkd has quit [Client Quit]
kknight has quit [Quit: Leaving]
shock_one has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
boxofrox has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
Snaggle has joined #ruby
yeshacker has quit [Ping timeout: 265 seconds]
msankhala has joined #ruby
ayromo08 has quit [Quit: Page closed]
<Snaggle> trying to install pango-ruby (on OS X). I have cairo-1.14.3 and glib2-2.2.5 installed, which should satisfy the dependencies, but gem install says it can’t resolve them (though gem list sees them). https://gist.github.com/nieder/12cc2a9f6ef09259c13b
kknight has joined #ruby
<kknight> how to istall rdoc from repository in linux
<kknight> install
hololeap has joined #ruby
guacamole has quit [Remote host closed the connection]
Sucks_ has quit [Ping timeout: 240 seconds]
krz has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
nanoz] has joined #ruby
slackbotgz has joined #ruby
braincra- has joined #ruby
djbkd has joined #ruby
boxofrox has joined #ruby
guacamole has joined #ruby
nanoz has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 255 seconds]
guacamole has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
<agent_white> Radar: Bumped into you outside ruby-land I see :P
<Radar> I am everywhere
<Radar> You cannot escape me.
<pipework> he is the all seeing Radar.
<pipework> hence the nick.
devbug_ has joined #ruby
braincrash has quit [Ping timeout: 272 seconds]
hololeap has quit [Ping timeout: 240 seconds]
icarus has joined #ruby
nanoz] has quit [Read error: Connection reset by peer]
<kknight> i have already installed ruby in my linux, iwant to generate rdoc to see them how to do that?
devbug has quit [Ping timeout: 260 seconds]
berserk_ren has joined #ruby
poguez_ has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
guacamole has joined #ruby
shock_one has joined #ruby
Contigi has joined #ruby
baweaver has joined #ruby
dlitvak has joined #ruby
davedev2_ has quit []
lyoshajapan has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
incomprehensibly is now known as micahjohnston
micahjohnston is now known as incomprehensibly
houhoulis has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
psy_ has quit [Remote host closed the connection]
duckgoose has joined #ruby
duckgoose has left #ruby ["ByrdIRC"]
guideX has joined #ruby
mclong has joined #ruby
karapetyan has joined #ruby
guacamole has quit [Remote host closed the connection]
guacamole has joined #ruby
houhoulis has joined #ruby
roshanavand has joined #ruby
guacamole has quit [Remote host closed the connection]
guacamole has joined #ruby
Guest17872 is now known as saneax_AFK
aspire has quit [Quit: Leaving]
icarus has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
smactive has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
Sucks has joined #ruby
guacamole has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
guacamole has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
juddey has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 272 seconds]
guacamole has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
Waheedi has quit [Quit: Waheedi]
chouhoulis has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
buzz07630072 has joined #ruby
pawnbox has joined #ruby
icarus has joined #ruby
AKASkip has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
<buzz07630072> /msg NickServ VERIFY REGISTER buzz07630072 xqeapkqydluh
<pipework> Nice.
<mistermocha> hunter2
<buzz07630072> lol
devoldmx has joined #ruby
yfeldblum has joined #ruby
<camus> Hello, I'm having trouble setting up a script - need it to: 1. query a url with a zip code (populated from a file) 2. store result to file 3. curl url again w/ new zip code. 4. append to file 5. end
<camus> the url returns json about a zip code that is a parameter of the url
blackmesa has joined #ruby
<camus> i just want to store and append the json to a local file for each zip code
pawnbox has joined #ruby
<pipework> camus: Where's the code for it?
govg has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
finisherr has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<camus> pipework: I'm still trying to figure out what I am going to use to curl the URL.
<pipework> camus: 'to curl'? You mean to request the URL?
berserk_ren has quit [Ping timeout: 256 seconds]
seitensei has quit [Remote host closed the connection]
<camus> pipework: Yeah, how to grab the URL (which returns JSON)
<pipework> You have lots of choices, you have gems that make it easy, a harder to use core library called Net::HTTP, and all sorts of stuff.
blackmesa has quit [Ping timeout: 256 seconds]
<pipework> camus: Do you mind using a nice gem? I use faraday mostly myself.
<camus> pipework: No, a gem would be great if that would make my job easier.
rodfersou has quit [Quit: leaving]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> camus: Look into faraday.
<camus> ok, thank you for helping me
<pipework> camus: Let us know if you struggle and need a helping hand.
<camus> ok will do
yeshacker has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
guacamole has joined #ruby
pawnbox has joined #ruby
dlitvak has joined #ruby
jcdesimp has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
pawnbox has quit [Ping timeout: 240 seconds]
Sucks has quit [Ping timeout: 272 seconds]
dlitvak has quit [Ping timeout: 265 seconds]
jcdesimp has quit [Ping timeout: 240 seconds]
n1ftyn8_ has quit [Ping timeout: 240 seconds]
chrisseaton has quit [Ping timeout: 250 seconds]
jeregrine has quit [Ping timeout: 250 seconds]
ELCALOR has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 272 seconds]
cstrahan has quit [Ping timeout: 272 seconds]
AKASkip has quit [Ping timeout: 240 seconds]
jeregrine has joined #ruby
phial has joined #ruby
chrisseaton has joined #ruby
cstrahan has joined #ruby
shock_one has joined #ruby
rfv has joined #ruby
n1ftyn8_ has joined #ruby
guacamole has quit [Remote host closed the connection]
ELCALOR has joined #ruby
jun_ has quit [Remote host closed the connection]
phial has quit [Client Quit]
seitensei has joined #ruby
agent_white has quit [Quit: brb]
agent_white has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
seitensei has quit [Remote host closed the connection]
startupality has joined #ruby
saneax_AFK is now known as saneax
saneax is now known as Guest21308
startupality has quit [Client Quit]
startupality has joined #ruby
sdwrage has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
chipotle_ has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
seitensei has joined #ruby
ur5us has joined #ruby
rippa has joined #ruby
kknight has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
seitensei has quit [Remote host closed the connection]
ohaibbq has joined #ruby
sdwrage has quit [Remote host closed the connection]
colegatron has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
juddey has joined #ruby
slawrence00 has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
lyoshajapan has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nanoz has joined #ruby
lyoshajapan has joined #ruby
colegatron has joined #ruby
guacamole has joined #ruby
dostoyevsky has joined #ruby
<dostoyevsky> I am executing: "gem19 install oauth2" but it just hangs...
ta has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 246 seconds]
ton31337 has joined #ruby
dionysus69 has joined #ruby
<ton31337> hi, how to install ruby headers from .tar.gz ?
<ton31337> is there another official .tar.gz for debug symbols?
<ton31337> and headers
ta has joined #ruby
blackmesa has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
guacamole has quit [Remote host closed the connection]
darkxploit has quit [Ping timeout: 240 seconds]
thoraxe has joined #ruby
jun_ has joined #ruby
<thoraxe> so i am using the trello gem and messing with lists and cards and etc. and there doesn't appear to be a direct way to "get all cards with a specific label" so it sounds like I will have to do a lot of iterating
<thoraxe> i'm mainly thinking out loud right now, hah
dlitvak has joined #ruby
symm- has joined #ruby
ohaibbq has quit [Quit: Leaving...]
radgeRayden has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
claw has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
jun_ has quit []
ledestin has joined #ruby
baweaver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
darkxploit has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zast has quit [Remote host closed the connection]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
norc has joined #ruby
<norc> Good morning folks.
claw has joined #ruby
aufi has joined #ruby
ruby-lang205 has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
startupality has quit [Quit: startupality]
anisha has joined #ruby
dlitvak has joined #ruby
ruby-lang205 has quit [Ping timeout: 252 seconds]
codecop has joined #ruby
norc has quit [Ping timeout: 252 seconds]
dostoyevsky has left #ruby [#ruby]
shock_one has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 272 seconds]
smactive has joined #ruby
smactive has quit [Ping timeout: 240 seconds]
Anderson69s has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
tagrudev has joined #ruby
steffkes has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
tenzan has joined #ruby
<tenzan> test
tvw has joined #ruby
chouhoulis has joined #ruby
tenzan has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Tricon has quit [Quit: Leaving...]
mistermocha has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
Pupp3tm4st3r has quit [Quit: Leaving...]
passerine has joined #ruby
shock_one has joined #ruby
shock_one has quit [Ping timeout: 260 seconds]
n3wbie has joined #ruby
houhoulis has quit [Remote host closed the connection]
<n3wbie> Can anyone tell me how ruby generates auth_token?
Guest21308 is now known as saneax_AFK
agent_white has joined #ruby
<thoraxe> given an array with hashes inside, is there a way to check if any of the array items' hashes include a particular key:value?
<thoraxe> for example, the array :card_labels=>[{"id"=>"54d4de9c74d650d5671cb3c7", "idBoard"=>"54d4de9c73b36543ddf7d5b9", "name"=>"Project", "color"=>"green", "uses"=>49}]
blackmesa has joined #ruby
<thoraxe> normally you can do something like ['cat','dog','bird'].include? 'dog' but doing .include? {"id"=>"blah"} doesn't seem to work
dionysus69 has quit [Ping timeout: 265 seconds]
nunchuck has quit [Ping timeout: 272 seconds]
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
<thoraxe> whoops, gotta go
n3wbie has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
jcdesimp has joined #ruby
saneax_AFK is now known as saneax
saneax is now known as Guest52498
ltik has joined #ruby
dlitvak has joined #ruby
jcdesimp has quit [Ping timeout: 272 seconds]
<j416> thoraxe:
<j416> >> [{ a: 1, b: 2 }, { a: 5, b: 2 }, { a: 10, b: 1 }, { a: 2 }].select { |h| h.fetch(:b, false) == 2 }
<ruboto> j416 # => [{:a=>1, :b=>2}, {:a=>5, :b=>2}] (https://eval.in/487374)
ton31337 has left #ruby [#ruby]
agent_white has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 272 seconds]
passerine has left #ruby [#ruby]
agent_white has joined #ruby
n3wbie has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
roshanavand has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
vasilakisfil has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sonOfRa has quit [Quit: Bye!]
medvedu has joined #ruby
chipotle_ has joined #ruby
mikecmpbll has joined #ruby
neanderslob has quit [Ping timeout: 256 seconds]
neanderslob has joined #ruby
sonOfRa has joined #ruby
jbrhbr has joined #ruby
pawnbox has joined #ruby
ur5us has joined #ruby
last_staff has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
dmolina has joined #ruby
roshanavand has quit [Remote host closed the connection]
Qantourisc has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
aganov has joined #ruby
msankhala has quit [Quit: This computer has gone to sleep]
seitensei has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 256 seconds]
Hounddog has joined #ruby
rgtk has joined #ruby
vasilakisfil_ has joined #ruby
vasilakisfil has quit [Read error: Connection reset by peer]
chipotle_ is now known as chipotle
SOLDIERz has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
icarus has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
ltik has left #ruby ["Textual IRC Client: www.textualapp.com"]
msankhala has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
nbdy has joined #ruby
eytanfb has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
seitensei has quit [Remote host closed the connection]
shock_one has joined #ruby
eytanfb has quit [Ping timeout: 256 seconds]
huyderman has joined #ruby
pawnbox has quit [Remote host closed the connection]
ramfjord has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
YaknotiS has quit [Quit: Leaving]
nettoweb has joined #ruby
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
DeXterbed has joined #ruby
troulouliou_div2 has joined #ruby
senayar has joined #ruby
renemaya has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
agent_white has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
shock_one has quit [Read error: Connection reset by peer]
nunchuck has joined #ruby
shock_one has joined #ruby
c0m0 has joined #ruby
joonty has joined #ruby
pawnbox has joined #ruby
dlitvak has joined #ruby
icarus has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
SCHAAP137 has joined #ruby
tesuji has joined #ruby
nerium has quit [Quit: nerium]
dlitvak has quit [Ping timeout: 240 seconds]
drptbl has joined #ruby
blaxter has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
drptbl has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
Jackneill has joined #ruby
lyoshajapan has joined #ruby
ruu_ has joined #ruby
mclong has quit [Ping timeout: 260 seconds]
drptbl has joined #ruby
timonv has quit [Quit: WeeChat 1.3]
pawnbox has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
lyoshajapan has quit [Ping timeout: 256 seconds]
n3wbie has quit [Ping timeout: 246 seconds]
YaknotiS has joined #ruby
Neronfapper has joined #ruby
<Neronfapper> Hii
lyoshajapan has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruu_ has quit []
ruu_ has joined #ruby
PlasmaStar has quit [Ping timeout: 240 seconds]
mark3 has joined #ruby
elaptics`away is now known as elaptics
PlasmaStar has joined #ruby
lokulin has joined #ruby
devoldmx has quit [Remote host closed the connection]
DavidDudson has joined #ruby
n3wbie has joined #ruby
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
ruu_ has quit []
ruu_ has joined #ruby
ruu__ has joined #ruby
blackms has joined #ruby
Dimik has quit [Ping timeout: 265 seconds]
TheHodge has joined #ruby
jbrhbr has quit [Quit: Leaving.]
chouhoulis has joined #ruby
arooni_______ has joined #ruby
rodfersou has joined #ruby
ruu_ has quit [Ping timeout: 256 seconds]
Seich has quit [Ping timeout: 250 seconds]
z3uS has quit [Read error: No route to host]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ishido has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
bweston92 has joined #ruby
Anderson69s has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
pawnbox has joined #ruby
tomphp has joined #ruby
minimalism has quit [Quit: leaving]
karapetyan has joined #ruby
tomphp has quit [Max SendQ exceeded]
tomphp has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 265 seconds]
yos7ph has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Quit: WeeChat 1.3]
FernandoBasso has joined #ruby
sandstrom has joined #ruby
platzhirsch has joined #ruby
roshanavand has quit [Remote host closed the connection]
jcdesimp has joined #ruby
shadoi has joined #ruby
alon has joined #ruby
nbdy has quit [Ping timeout: 265 seconds]
lyoshajapan has quit [Remote host closed the connection]
ruu__ has quit [Remote host closed the connection]
ramfjord has joined #ruby
cwong_on_irc has joined #ruby
pawnbox has joined #ruby
lessless has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
jcdesimp has quit [Ping timeout: 240 seconds]
pglombardo has joined #ruby
shadoi has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
vasilakisfil_ is now known as vasilakisfil
Bellthoven has joined #ruby
slackbotgz has joined #ruby
pglombardo has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 240 seconds]
marr has joined #ruby
yos7ph has quit [Quit: Leaving]
finisherr has quit [Quit: finisherr]
gregf_ has quit [Read error: Connection reset by peer]
urban_nomad has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jds has joined #ruby
nonopposition has joined #ruby
gregf_ has joined #ruby
aramiscd has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
roshanavand has joined #ruby
urban_nomad has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
lyoshajapan has joined #ruby
PedramT has quit [Remote host closed the connection]
lyoshajapan has quit [Client Quit]
icarus has quit [Quit: Lost terminal]
xlogic has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
build22_ has quit [Remote host closed the connection]
arooni_______ has quit [Ping timeout: 240 seconds]
build22_ has joined #ruby
nfk|laptop has joined #ruby
build22_ has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
braincra- is now known as braincrash
karapetyan has joined #ruby
alon has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
<TomyWork> can ruby deconstruct hashes?
rgtk has joined #ruby
<jhass> TomyWork: not really, how would you imagine that to look like?
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arnvald has quit []
startupality has quit [Quit: startupality]
<TomyWork> foo, bar, baz = { :foo => 1, :bar => 2, :baz => 3 }
dlitvak has quit [Ping timeout: 240 seconds]
<jhass> so depending on order?
<jhass> ugh
<jhass> but
<jhass> foo, bar, baz = { ... }.values
rgtk has quit [Ping timeout: 246 seconds]
<jhass> but this is probably hash misuse
chouhoulis has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
maikowblue has joined #ruby
nfk|laptop has quit [Quit: yawn]
lurch_ has joined #ruby
Bellthoven has quit []
htmldrum has joined #ruby
troulouliou_div2 has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
krz has joined #ruby
seitensei has joined #ruby
Anderson69s has joined #ruby
xlogic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slackbotgz has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 272 seconds]
xlogic has joined #ruby
seitensei has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
dlitvak has joined #ruby
root_ has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
shock_one has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 265 seconds]
smactive has joined #ruby
<Bish> why does set_instance_variable require an @ in front of the name, i mean that its an instance variable is in the parameter name already
Meow-J has joined #ruby
<Bish> why isn't there are cool way to set an instance variable just by a symbol?
troulouliou_div2 has joined #ruby
htmldrum has joined #ruby
shock_one has joined #ruby
Guest52498 is now known as saneax_AFK
gagrio has quit [Ping timeout: 265 seconds]
<ljarvis> who knows
startupality has joined #ruby
<ljarvis> but you can use a symbol but still use @: :@foo
smactive has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
<jhass> couldn't one create instance vars without @ via the C API?
<jhass> anyway, the @ is just considered part of the name, not so much as a identifier/modifier thing
sandstrom has quit [Quit: My computer has gone to sleep.]
htmldrum has quit [Ping timeout: 256 seconds]
shadoi has joined #ruby
<jhass> kinda like the = is part of the name of foo= methods
<ljarvis> except it's definitely interpreted more as an identifier
CloCkWeRX has joined #ruby
<ljarvis> but yeah rb_iv_set requires the @ too so the logic is as you say
<Neronfapper> Im planning to create a 3d game with ruby, what could go wrong?
<ljarvis> everything
<ljarvis> or nothing
<ljarvis> what a question
blub has quit [Ping timeout: 240 seconds]
nunchuck has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
SCHAAP137 has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slackbotgz has joined #ruby
shadoi has quit [Ping timeout: 255 seconds]
startupality has quit [Quit: startupality]
FooMunki has joined #ruby
roshanav_ has joined #ruby
Bellthoven has joined #ruby
dlitvak has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
skade has joined #ruby
guacamole has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
roshanavand has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
gagrio has joined #ruby
FooMunki has quit [Read error: Connection reset by peer]
oo7cat has joined #ruby
Vitor has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanav_ has quit [Ping timeout: 260 seconds]
guacamole has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
<oo7cat> i want learn ruby. but i don’t know where i must start?
dlitvak has joined #ruby
PedramT has joined #ruby
Bellthoven has quit []
<ddv> oo7cat, google
Rickmasta has joined #ruby
<oo7cat> google?
<oo7cat> ddv: i don’t know
<ddv> yeah it's a search engine
ThomaSs has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
htmldrum has joined #ruby
Bellthoven has joined #ruby
darkf__ has joined #ruby
<oo7cat> ddv: ok
scripore has quit [Quit: This computer has gone to sleep]
<PaulePanter> Hi. I don’t understand why calculating with DateTimes give me a float and not an integer/Fixnum?
ur5us has joined #ruby
<Ox0dea> medvedu: Please don't do that.
<jhass> oo7cat: what's your background?
<PaulePanter> Because of milliseconds?
<ljarvis> is the chris pine tutorial still around? it was so good
<Ox0dea> ljarvis: Yep.
PedramT has quit [Remote host closed the connection]
darkf has quit [Ping timeout: 272 seconds]
<jhass> oo7cat: ^ if you're all new to programming
<ljarvis> nice one, without doubt my fav beginners learning resource
<oo7cat> jhass: background? i live in mountain.
<ljarvis> lul
<Ox0dea> (It's a troll.)
<jhass> oo7cat: I mean programming wise
<ddv> lol
<oo7cat> oh
colli5ion has joined #ruby
<oo7cat> i learned c and c#
<oo7cat> only
<jhass> to what degree?
marcoecc has joined #ruby
<oo7cat> oh, just i see book one more time.
htmldrum has quit [Ping timeout: 265 seconds]
<jhass> k, go with Pine
<PaulePanter> Is 0.1.floor the same as 0.1.to_i?
ur5us has quit [Ping timeout: 255 seconds]
<ljarvis> >> 0.1.floor == 0.1.to_i
<ruboto> ljarvis # => true (https://eval.in/487469)
<ljarvis> that was easy to test
<PaulePanter> If x is a float, is x.floor equivalent to x.to_i
<PaulePanter> ljarvis: Sorry, I rephrased my question.
<ljarvis> PaulePanter: you can verify things like this in irb quite easily
<ljarvis> >> [0.1, 0.8].map(&:to_i)
<ruboto> ljarvis # => [0, 0] (https://eval.in/487471)
<ljarvis> must be floor, right?
<PaulePanter> ljarvis: Thanks. I wonder why it’s implemented differently then.
<jhass> >> 100.times.map {|i| i * 0.01 }.all? {|i| i.floor == i.to_i }
<ruboto> jhass # => true (https://eval.in/487472)
aryaching has joined #ruby
<Ox0dea> >> [-3.5.to_i, -3.5.floor]
<ruboto> Ox0dea # => [-3, -4] (https://eval.in/487473)
<ljarvis> :>
Bellthoven has quit []
<canton7> was just about to say - negative numbers...
oo7cat has left #ruby [#ruby]
<PaulePanter> Ah.
<PaulePanter> Thank you all!
bMalum has joined #ruby
PedramT has joined #ruby
<PaulePanter> http://ruby-doc.org/core-2.2.0/Float.html#method-i-to_i actually uses `floor` and `ceil`.
chanx_ has joined #ruby
<ljarvis> :)
DeXterbed has quit [Ping timeout: 260 seconds]
<Ox0dea> PaulePanter: And indeed why not?
bMalum has quit [Client Quit]
bMalum has joined #ruby
gagrio has quit [Remote host closed the connection]
<PaulePanter> Ox0dea: Sorry, I did not understand your comment.
PedramT has quit [Remote host closed the connection]
<Ox0dea> PaulePanter: It makes plenty of sense that Float#to_i piggybacks on floor() and ceil(), no?
ta has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
Bellthoven has joined #ruby
gagrio has joined #ruby
inukshuk_ has joined #ruby
ta has joined #ruby
c355e3b has joined #ruby
slackbotgz has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 256 seconds]
Ishido has quit [Remote host closed the connection]
drptbl has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
n3wbie has quit [Quit: Leaving]
darkf__ is now known as darkf
drptbl has joined #ruby
DeXterbed has joined #ruby
<chanx_> f u.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chanx_> c dev here. you pussies.
chanx_ has quit [Quit: Page closed]
ruid has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 260 seconds]
<PaulePanter> Ox0dea: Yes, it does. It was just a statement to the answer of my question.
sandstrom has joined #ruby
banister has quit [Read error: Connection reset by peer]
symm- has joined #ruby
Anderson69s has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
arup_r has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
Ishido has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
jcdesimp has joined #ruby
shadoi has joined #ruby
cassioscabral has joined #ruby
<shevy> Paulchen Panther is coding!
mark3 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :weber.freenode.net"]
ElFerna has joined #ruby
jcdesimp has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
shadoi has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
morfin has joined #ruby
prestorium has joined #ruby
arup_r has joined #ruby
nfk|laptop has joined #ruby
gamename has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
basex has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has joined #ruby
nettoweb has quit [Ping timeout: 272 seconds]
xlogic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
domaldel_ has joined #ruby
domaldel_ has quit [Client Quit]
guide_X has joined #ruby
Domaldel has joined #ruby
guideX has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
nerium has quit [Quit: nerium]
ruby-lang953 has joined #ruby
<ruby-lang953> i want to run a ruby script once a day on a ubuntu server withouth having to login etc. Is crontab my best option?
skakri has quit [Ping timeout: 260 seconds]
<morfin> yes, as i know you can put it in /etc/crontab.daily or just add to crontab of some user
TheHodge has quit [Quit: Connection closed for inactivity]
brixen has quit [Ping timeout: 256 seconds]
atumzin has quit [Ping timeout: 272 seconds]
<jhass> ruby-lang953: crontab or systemd timers if it's running on systemd
Bellthoven has quit []
ruby-lang953 has quit [Quit: Page closed]
PedramT has joined #ruby
nfk|laptop has quit [Ping timeout: 272 seconds]
brixen has joined #ruby
PedramT has quit [Remote host closed the connection]
rgtk has joined #ruby
glenny has quit [Quit: Konversation terminated!]
colegatron has quit [Ping timeout: 255 seconds]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
tesuji has quit [Ping timeout: 246 seconds]
nonopposition has quit [Remote host closed the connection]
inukshuk_ has quit [Quit: leaving]
rgtk has quit [Ping timeout: 246 seconds]
siddharth has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
toretore has joined #ruby
chouhoulis has joined #ruby
senayar has quit [Remote host closed the connection]
graffix has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
siddharth has joined #ruby
senayar has joined #ruby
DeXterbed has quit [Ping timeout: 256 seconds]
ta_ has quit [Client Quit]
<TomyWork> comment.delete if comment.body == '-snip-' rescue # will this ignore exceptions raised in comment.delete?
skakri has joined #ruby
<jhass> yes
<jhass> hence it's bad style
<shevy> :)
karapetyan has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
ta has joined #ruby
nonopposition has joined #ruby
Anderson69s has joined #ruby
senayar has quit [Remote host closed the connection]
nonopposition has quit [Changing host]
nonopposition has joined #ruby
madcodes has joined #ruby
senayar has joined #ruby
seitensei has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
<TomyWork> well i'm deleting comments from jira issues. the only way to see if i am able to do it seems to be to try it
<TomyWork> and if i can't, then i dont care that much either
<ljarvis> that doesn't make it better. You should rescue the correct exception
<ljarvis> >> comment.delete rescue "wat"
<ruboto> ljarvis # => "wat" (https://eval.in/487522)
<TomyWork> is that possible in postfix rescue?
<ljarvis> no, which is why you shouldn't use it
<TomyWork> i see
<TomyWork> ah well, what could possibly go wrong?
<ljarvis> lots and lots
<TomyWork> out of memory? stack overflow?
<ljarvis> who knows? you've rescued everything, you'll never find out
<TomyWork> hardly an issue with this tiny application
<ljarvis> ok well you have our advice at least
colegatron has joined #ruby
seitensei has quit [Ping timeout: 256 seconds]
brixen has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
<shevy> TomyWork you should write your programs all in one line
skakri has quit [Ping timeout: 255 seconds]
roshanavand has quit [Remote host closed the connection]
marcoecc has quit [Remote host closed the connection]
<TomyWork> good idea
SCHAAP137 has joined #ruby
SleepySensei has joined #ruby
<TomyWork> except, i'll need a 2nd line for the shebang
decoponio has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
<jhass> #!/usr/bin/ruby -e 'p "no you don't"'
<ljarvis> sorted
<TomyWork> :D
<shevy> lol
DeXterbed has joined #ruby
<ljarvis> why even write it in a file anyway
<TomyWork> except, no that doesnt work
cassioscabral has quit [Quit: cassioscabral]
yeticry has joined #ruby
<ljarvis> just straight up `ruby -e '...'`
<TomyWork> you can pass exactly one argument before the file name with a shebang
skade has quit [Quit: Computer has gone to sleep.]
<TomyWork> #!appname argument1 still argument 1 all of this is argument 1
Meow-J has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 272 seconds]
manquer has joined #ruby
skakri has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
cassioscabral has joined #ruby
benhuda has joined #ruby
joonty has quit [Quit: joonty]
symm- has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
jcdesimp has joined #ruby
nonopposition has quit [Remote host closed the connection]
pika_pika has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
jcdesimp has quit [Client Quit]
NfNitLoop has joined #ruby
gurix has joined #ruby
<NfNitLoop> Hi! New to Ruby, but have many other langauges under my belt. I see coworkers (who are offline) using a pattern @foo = begin ... end. That seems to make foo be a closure that returns an object lazily. (from my testing) And it only does it once. Where can I find details about how that works?
karapetyan has quit [Remote host closed the connection]
<NfNitLoop> "does it" => executes the closure to create the object. That's the part I don't quite understand. If foo is a closure, and you're automatically evaluating closures, I'd expect to see it built each time?
<Snaggle> I’m trying to install pango-ruby-2.2.5 (on OS X). I have cairo-1.14.3 and glib2-2.2.5 installed, which should satisfy the dependencies, but ‘gem install’ says it can’t resolve the dependencies (though gem list sees them and I installed them the same way I’m trying to install pango). https://gist.github.com/nieder/12cc2a9f6ef09259c13b Thoughts as to why gem list disagrees with gem install?
karapetyan has joined #ruby
baweaver has joined #ruby
gagrio has quit [Ping timeout: 240 seconds]
ruid has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
nonopposition has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
roshanavand has quit [Remote host closed the connection]
ramfjord has joined #ruby
<TomyWork> I'm still struggling to grasp class variables. I have This at class scope: @@semaphore = Mutex.new; def request; @@semaphore.synchronize { ...
<TomyWork> does this do what i think it does?
<TomyWork> i think it creates one mutex per class, not per instance
PedramT has joined #ruby
mikecmpbll has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
joonty has joined #ruby
<jhass> NfNitLoop: it's not a closure no, and shouldn't execute only once unless it's actually @foo ||= begin
darkxploit has quit [Ping timeout: 246 seconds]
cajone is now known as cajone_afk
marr has quit [Ping timeout: 260 seconds]
<jhass> NfNitLoop: begin; end is simply grouping the following statements into a single expression, whose value is the value of the last statement inside it
roshanavand has joined #ruby
<jhass> it's the very same thing you use together with rescue and ensure too
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
<jhass> TomyWork: no, it creates one per this class and all its child classes
<jhass> TomyWork: generally the valid usecases for class variables are very rare
synthroid has joined #ruby
<jhass> most of the time you want a class level instance variable instead
gagrio has joined #ruby
<TomyWork> jhass how do i access that from within a method?
<jhass> class << self; def mutex; @mutex ||= Mutex.new; end; end; self.class.mutex.synchronize
atomical has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<TomyWork> not going to make a method just for that :)
roshanavand has joined #ruby
dlitvak has quit [Remote host closed the connection]
jackcom has joined #ruby
anisha has quit [Quit: Leaving]
d0nn1e has quit [Ping timeout: 260 seconds]
basex has quit [Quit: basex]
PedramT has quit [Remote host closed the connection]
Jet4Fire has joined #ruby
FernandoBasso has quit [Quit: Leaving]
<Jet4Fire> Hello!
dlitvak has joined #ruby
d0nn1e has joined #ruby
karapetyan has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
puria has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
nateberkopec has joined #ruby
xlogic has joined #ruby
joonty has joined #ruby
MissionCritical has quit [Ping timeout: 250 seconds]
charliesome_ has joined #ruby
kp666 has joined #ruby
roshanav_ has joined #ruby
kp666 has quit [Max SendQ exceeded]
roshanavand has quit [Read error: Connection reset by peer]
ramortegui has joined #ruby
OmegaA_ has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
chipotle has joined #ruby
AlexRussia has joined #ruby
<shevy> TomyWork hmm you don't understand @@vars - but you don't want to use a method to access @vars on the class level either
<NfNitLoop> jhass: aaaah, thank you. That makes much more sense. :)
<NfNitLoop> It was behaving so strangely I figured there must've been some disconnect in my brain. :)
<NfNitLoop> Funny thing is... I encountered it inside of a function that "returns" a variable, so there was no reason to bother wrapping it in a begin...end anyway! They could've just used function scipe.
<NfNitLoop> scope*
<TomyWork> shevy you're right, maybe i should figure out how they achieve their inheritance first
chipotle_ has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
<NfNitLoop> I discovered this too: http://pastie.org/10639812 It looks like functions have an implicit reference to an instance that calls them, and can muck with their instance variables? Please tell me this is frowned upon in the Ruby community so that I can go tell my devs. never to do it again.
polysics has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
<shevy> NfNitLoop an implicit reference? you mean "self"? self will be something but that something may be different
<NfNitLoop> shevy: see the sample code --^
<jhass> NfNitLoop: small terminology nit: Ruby has no functions, only methods, blocks & objects
<NfNitLoop> OK, replace function with "a method that is not on my class." :p
charliesome_ has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> well it always is
<shevy> NfNitLoop why did he give the same name
DroidBurgundy has joined #ruby
<jhass> toplevel methods are defined on Object
<jhass> your class inherits Object unless it explicitly inherits BasicObject
<NfNitLoop> shevy: Huh?
<shevy> @name
dstarh has joined #ruby
<jhass> I can't really conclude on what the real code might look like from your sample, so I can't judge if it's something ugly
<jhass> but if your reduction is accurate it probably is
MissionCritical has joined #ruby
<NfNitLoop> jhass: it looks very much like what I pasted. It ... for some reason... calls a method not opart of the current class to set an instance variable on the current class.
charliesome_ has joined #ruby
soahccc has quit [Ping timeout: 240 seconds]
<NfNitLoop> (current class instance. You know what I mean.) :p
<jhass> "not part of" == "defined at the toplevel" here?
<NfNitLoop> yep.
<jhass> meh
<jhass> that sucks
goodcodeguy has joined #ruby
<jhass> should go into a module and be explicitly included
<NfNitLoop> how do you do that?
_stu_ has joined #ruby
<jhass> module Wat; def wat; @name = "wat"; end; class Foo; include Wat; end
<jhass> + missing end
<TomyWork> ok so @@ behaves like a protected static variable in java. and this diagram tells me there's not really anything other than @@ that will actually have the lifetime, encapsulation and accessibility i need. I would have to supplement accessibility with a method, as you suggested.
<NfNitLoop> jhass: aha. cool. Yeah, that would be more explicit.
Yiota has joined #ruby
soahccc has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
<shevy> that code is really scary
<NfNitLoop> jhass: so, why does that work? Are you saying that putting something on the top level defines it on Object?
<jhass> TomyWork: the big difference is that in java you have to explicitly call the parent class in child classes, in Ruby it's implicitly done, which makes the propagation and definition point of @@vars entirely not obvious and often hard to debug
<NfNitLoop> (not your code, the crap code I'm looking at.) :p
DroidBurgundy has quit [Client Quit]
sgambino has joined #ruby
<jhass> NfNitLoop: it does
<jhass> NfNitLoop: since topevel self is an instance of Object
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
<jhass> (well that alone is not entirely sufficient for it to happen but good enough as an approximation for now)
DeXterbed has quit [Ping timeout: 260 seconds]
<jhass> fact is toplevel methods are defined on Object
<NfNitLoop> yikes.
<jhass> >> def foo; end; method(:foo).owner
<ruboto> jhass # => Object (https://eval.in/487529)
azgil has quit [Quit: Leaving]
<TomyWork> jhass nope: https://ideone.com/4CPsHa
atomical_ has joined #ruby
<jhass> TomyWork: mh, when calling them from child instances though, no?
<TomyWork> nope
<TomyWork> you only need to specify the class if it's shadowed or if the class is not a superclass
cwong_on_irc has quit [Quit: Leaving.]
<jhass> anyway, it's still much more explicit since you have a clear declaration point
<TomyWork> i'm ideone'ing an example with shadowing right now but that page is being slow
<TomyWork> yes
lxsameer has quit [Quit: Leaving]
<TomyWork> and you have shadowing in java
<jhass> and even then I wouldn't call it a good pattern in Java either
<TomyWork> yes, but what is a good java pattern anyway? :P
<shevy> tiobe says that java is best
<TomyWork> many times they're workarounds for the lack of a feature
atomical has quit [Ping timeout: 260 seconds]
Anderson69s has joined #ruby
fullofcaffeine has joined #ruby
karapetyan has joined #ruby
<TomyWork> https://ideone.com/4CPsHa <-- shadowing
<jhass> shevy: that you take popularity for quality is a very sad mindest to be in
inukshuk_ has joined #ruby
<TomyWork> this is what java has and ruby doesnt, which makes protected vars viable
inukshuk_ has quit [Client Quit]
lipoqil has joined #ruby
<shevy> I see lots of protected static ints
<TomyWork> anyway, no one is going to inherit my class :)
blackgoat has quit [Quit: WeeChat 1.3]
<adaedra> jhass: how many times did we tell him that already?
<jhass> too many
arup_r has quit [Ping timeout: 265 seconds]
agent_white has quit [Quit: night]
lightstalker has quit [Ping timeout: 240 seconds]
ESpiney has joined #ruby
scripore has joined #ruby
yeshacker has quit [Ping timeout: 246 seconds]
shadoi has joined #ruby
sdothum has joined #ruby
akaiiro has joined #ruby
TomPeed has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
centrx has joined #ruby
moeabdol has joined #ruby
shadoi has quit [Ping timeout: 256 seconds]
atomical has joined #ruby
centrx has quit [Remote host closed the connection]
moeabdol has quit [Client Quit]
lightstalker has joined #ruby
moeabdol has joined #ruby
Timba-as has joined #ruby
Timba-as has quit [Remote host closed the connection]
DeXterbed has joined #ruby
atomical_ has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
synthroid has quit []
synthroid has joined #ruby
sankaber has joined #ruby
dlitvak has joined #ruby
moeSeth has joined #ruby
gambl0re has quit [Ping timeout: 256 seconds]
MissionCritical has quit [Ping timeout: 256 seconds]
troulouliou_div2 has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
charliesome_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
msankhala has quit [Quit: This computer has gone to sleep]
arup_r has joined #ruby
msankhala has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
TomyWork has joined #ruby
D9 has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
symm- has joined #ruby
millerti has joined #ruby
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
<medvedu> is there any place when i can get a good list for rss-feed about ruby or rails&ruby?
pwnd_nsfw has quit [Remote host closed the connection]
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
scripore has joined #ruby
basex has joined #ruby
platzhirsch has left #ruby [#ruby]
babblebre has joined #ruby
Marsupermammal has joined #ruby
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
MissionCritical has joined #ruby
build22 has joined #ruby
build22 has left #ruby [#ruby]
<jhass> medvedu: rubyflow.com
wildlander has joined #ruby
nanoz] has joined #ruby
<medvedu> thanks
kies^ has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
nanoz has quit [Ping timeout: 265 seconds]
lazyatom_ has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
depesz has joined #ruby
lazyatom_ is now known as lazyatom
rgtk has joined #ruby
<depesz> hi. is there any "pretty printer" for ruby? something that would reformat given source code accoring to some set of rules?
Madhur_ has joined #ruby
<c355e3b> depesz: rubocop
<c355e3b> can do stuff like `rubocop -a src.rb` and it corrects most of the mistakes it finds
PedramT has joined #ruby
<lazyatom> anyone here using jruby? I've tried asking a question in #jruby but nobody seems awake there
charliesome has joined #ruby
<depesz> c355e3b: testing, thanks.
chouhoulis has joined #ruby
madcodes has quit [Ping timeout: 240 seconds]
krz has joined #ruby
<ljarvis> lazyatom: what's the question?
gurix has quit [Ping timeout: 265 seconds]
gurix has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
<lazyatom> I've ready that JRuby 9(.0.4.0) supports refinements, but they don't seem to work for me: https://gist.github.com/lazyatom/6606b777c062ac8e1b84
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krobzaur has joined #ruby
marcoecc has joined #ruby
polishdub has joined #ruby
rgtk has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
cdg has joined #ruby
scripore has quit [Ping timeout: 256 seconds]
seitensei has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
PedramT has quit [Remote host closed the connection]
DeXterbed has quit [Ping timeout: 256 seconds]
symm- has quit [Quit: Leaving...]
symm- has joined #ruby
depesz has left #ruby ["WeeChat 1.4-dev"]
pandaant has joined #ruby
platzhirsch has joined #ruby
tagrudev has quit [Remote host closed the connection]
atomical_ has joined #ruby
siddharth has quit [Ping timeout: 260 seconds]
symm- has quit [Quit: Leaving...]
Snowy has joined #ruby
bogn has quit [Ping timeout: 260 seconds]
AncientAmateur has joined #ruby
depesz has joined #ruby
depesz has left #ruby ["WeeChat 1.4-dev"]
moeSeth has quit [Ping timeout: 260 seconds]
atomical has quit [Ping timeout: 256 seconds]
depesz has joined #ruby
bogn has joined #ruby
symm- has joined #ruby
marr has joined #ruby
<depesz> hi. assuming I have string varialbe x, with value of "Something::SomethingElse" - how can I use it to create object of Something::SomethingElse class ?
moeSeth has joined #ruby
<ljarvis> &ri const_get
<`derpy> No results found
jcoe has joined #ruby
siddharth has joined #ruby
<depesz> ljarvis: ?
<ljarvis> &ri Module.const_get
<ljarvis> ...
<ljarvis> depesz: check out const_get
<depesz> searching
<ljarvis> adaedra: ^
<headius> lazyatom: file an issue for that please
<headius> that's a simple case and it's weird it doesn't work
atomical has joined #ruby
<depesz> oh, nice. thanks, ljarvis
<ljarvis> depesz: np!
IrishGringo has joined #ruby
shadoi has joined #ruby
jcoe has quit [Client Quit]
atumzin has quit [Read error: Connection reset by peer]
Waheedi has joined #ruby
Waheedi has quit [Client Quit]
atomical_ has quit [Ping timeout: 240 seconds]
<lazyatom> headius: I left a comment on https://github.com/jruby/jruby/issues/1062 but I can file a separate issue if you'd prefer?
karapetyan has joined #ruby
grill has joined #ruby
<headius> lazyatom: ahh yeah, open a new one...1062 is a little amorphous
shadoi has quit [Ping timeout: 272 seconds]
aganov has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
weemsledeux has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
_stu_ has quit [Quit: _stu_]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
nettoweb has joined #ruby
mistermocha has joined #ruby
atomical_ has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sucks has joined #ruby
pdoherty has joined #ruby
shanemcd has joined #ruby
arup_r has quit []
atomical has quit [Ping timeout: 260 seconds]
_stu_ has joined #ruby
camus has quit [Ping timeout: 256 seconds]
aspire has joined #ruby
goodcodeguy has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
ferr has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xlogic has quit [Ping timeout: 260 seconds]
p0wn3d_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
dorei has joined #ruby
<lazyatom> headius: done
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has quit [Quit: WeeChat 0.4.2]
ornerymoose has joined #ruby
rgtk has quit [Remote host closed the connection]
absolutejam has quit [Ping timeout: 260 seconds]
nertzy has joined #ruby
huyderman has quit [Remote host closed the connection]
hfp_work has quit [Ping timeout: 246 seconds]
nfk|laptop has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
hfp has quit [Ping timeout: 246 seconds]
Anderson69s has joined #ruby
hfp has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
hfp_work has joined #ruby
rodfersou is now known as rodfersou|lunch
ibouvousaime has joined #ruby
howdoi has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
dmcp has joined #ruby
absolutejam has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandstrom has joined #ruby
charliesome has joined #ruby
<TomyWork> i have a simple sinatra app that i want to run as a linux service. it needs to run as a specific user and the correct ruby version should be provided (via rvm or otherwise) as well as the gems in the Gemfile. What should I use?
<TomyWork> this has to run on ubuntu 12.04 and pretty much nowhere else
PedramT has joined #ruby
chipotle_ has quit [Quit: cheerio]
<TomyWork> creating a nice .deb out of it would be a plus, but not required :)
karapetyan has joined #ruby
ElFerna has quit [Ping timeout: 255 seconds]
nfk|laptop has joined #ruby
<bougyman> TomyWork: chef-solo or puppet could do that pretty easily.
karapetyan has quit [Remote host closed the connection]
<bougyman> if you want to use ruby and not have to learn the debian build system.
<TomyWork> i'd still need a service script
<bougyman> yes and no.
symm- has quit [Quit: Leaving...]
<bougyman> we run all our ruby apps under runit.
<TomyWork> or upstart
<bougyman> apt-get install runit gets you that, in 12.04
<bougyman> we run all our * services under runit, in fact.
<TomyWork> oh, interesting
dlitvak_ has joined #ruby
<TomyWork> i was considering runit
<bougyman> good consideration
<TomyWork> but i thought that would require extra effort, not less
ElFerna has joined #ruby
<bougyman> it requires a singe ./run script, which runs your sinatra app in the foreground.
shanemcd has quit [Remote host closed the connection]
<bougyman> all of the rest of the plumbing is provided by the runit package.
<TomyWork> oh that's simple :)
<bougyman> you can get fancy and have per-user services, that's a bit more effort on your part. see http://rubyists.github.io/2011/05/02/runit-for-ruby-and-everything-else.html#dependency_hierarchies_peruser_service_trees
<TomyWork> bougyman do i have to take care of changing the user?
cajone_afk is now known as cajone
karapetyan has joined #ruby
<TomyWork> not sure if i need "per-user services", but i want to run my app as a specific user
<bougyman> TomyWork: not if it's a per-user service tree. those run as the user.
<bougyman> if it's the main (root) runit supervision dir, you use chpst -u <username> <command> in the ./run script to run it as another user.
<bougyman> I usually do a per-user service tree only when that user has multiple interdependent services to run
tjohnson has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
<bougyman> for just a single one I use chpst -u in the ./run script and put it in /etc/sv/<servicename>
<TomyWork> it doesnt, really
<TomyWork> hmm actually, let me check if i can piggyback on gitlab there...
slawrence00 has joined #ruby
roshanav_ has quit [Remote host closed the connection]
<toretore> TomyWork, why not just use the init system that's already there?
gurix has quit [Quit: gurix]
ElFerna has quit [Ping timeout: 240 seconds]
madcodes has joined #ruby
<TomyWork> ok, there's /opt/gitlab/sv/unicorn/run and such. I can probably just put my service script in there and have it start and stop together with gitlab
Madhur_ has quit [Ping timeout: 240 seconds]
<TomyWork> toretore upstart or sysv?
<toretore> i'd go with upstart
<TomyWork> upstart has no future, sysv is... sysv
<toretore> if it's available
<toretore> what does it matter if you're running on 12.04
<TomyWork> not forever
<toretore> well then write a new one when you migrate
<TomyWork> i'm running this together with gitlab forever, though
karmatr0n has joined #ruby
<toretore> can you run docker?
<TomyWork> probably
<toretore> that would take care of dependency requirements
<TomyWork> but i dont fancy downloading a gigabyte just to run a 10 kb app
Bloomer has quit [Remote host closed the connection]
<toretore> you're downloading all that stuff anyway, and shoving it onto the host fs
roshanavand has joined #ruby
<TomyWork> waht am i downloading?
<TomyWork> the gems?
<toretore> ruby versions, gems, libs depended on
<TomyWork> i'm talking about all the layers for an OS
rgtk has joined #ruby
<toretore> it's as small or big as you make it
imperator has joined #ruby
AnoHito has quit [Ping timeout: 260 seconds]
<TomyWork> i know
AnoHito has joined #ruby
<toretore> if you use the ubuntu base image then it's going to be that size
cjbottaro has joined #ruby
<TomyWork> and the smaller you make it, the harder it gets
shanemcd has joined #ruby
<TomyWork> i'll take another look at upstart before deciding whether to use that or runit.
<toretore> you should provision a kubernetes cluster and use that
<toretore> j/k
sneakerhax has quit [Ping timeout: 256 seconds]
<TomyWork> /etc/init/rc.conf: description "System V runlevel compatibility" author "Scott James Remnant <scott@netsplit.com>"
<TomyWork> that guy has the right name for the task
<toretore> lol
<toretore> another option depending on the context is to just run your app in a tmux or screen session
<TomyWork> manually, each time
<toretore> what do you mean each time?
kfpratt has joined #ruby
<TomyWork> whenever the VM reboots
<toretore> how often does it do that?
<TomyWork> according to murphy's law, every time i take a vacation
<toretore> well, that's what i meant by context
PedramT has quit [Remote host closed the connection]
steffkes has quit [Ping timeout: 265 seconds]
shanemcd has quit [Ping timeout: 265 seconds]
<adaedra> ljarvis: first one is normal, second one not so much, but it may be a known issue I still haven't fixed, I look at it
hxegon has joined #ruby
nonopposition has quit [Remote host closed the connection]
stannard has joined #ruby
SOLDIERz has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
cassioscabral has joined #ruby
ornerymoose has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
stevenxl-away has quit [Ping timeout: 256 seconds]
Jardayn has joined #ruby
aufi has quit [Quit: Konversation terminated!]
senayar has quit []
<TomyWork> talking about vacation: see ya in january :)
TomyWork has quit [Quit: Leaving]
benhuda has joined #ruby
ramfjord has joined #ruby
benhuda has quit [Client Quit]
skakri has quit [Ping timeout: 240 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
atomical has joined #ruby
gambl0re has joined #ruby
kies^ has joined #ruby
nonopposition has joined #ruby
msankhala has quit [Quit: This computer has gone to sleep]
nertzy has quit [Quit: This computer has gone to sleep]
PedramT has quit [Client Quit]
skakri has joined #ruby
tomphp has quit [Ping timeout: 256 seconds]
synthroid has quit [Remote host closed the connection]
ElFerna has joined #ruby
synthroid has joined #ruby
bMalum has joined #ruby
krz has quit [Quit: WeeChat 1.2]
blandflakes has joined #ruby
cwong_on_irc has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has quit [Read error: Connection reset by peer]
centrx has joined #ruby
msankhala has joined #ruby
stannard has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 240 seconds]
bMalum has quit [Client Quit]
shock_one has quit [Read error: Connection reset by peer]
synthroid has quit [Ping timeout: 246 seconds]
shock_one has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
weemsledeux has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy> pffft
<shevy> java coders - lazy
<shevy> he could use xmas for coding!
moeabdol has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
msankhala has quit [Quit: This computer has gone to sleep]
AKASkip has joined #ruby
The_Phoenix has joined #ruby
stannard has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
bewilled has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gagrio has quit [Remote host closed the connection]
[Butch] has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
camus has joined #ruby
<bewilled> Hello, working with template files and chef where expressions are enclosed by this placeholders <%= %>. Can someone give me a name for these?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> bewilled: those are probably erb templates
<apeiros> bewilled: but better ask in the chef channel
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
karapetyan has quit [Remote host closed the connection]
<bewilled> apeiros: thank you for this
mclong has joined #ruby
<apeiros> yw
karapetyan has joined #ruby
<camus> hello, hoping someone can please help me w/ my ruby script: http://pastebin.com/rxKZDZN4
<ruboto> camus, 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
seitensei has joined #ruby
<camus> ah, apologies
stannard has joined #ruby
iateadonut has joined #ruby
iateadonut has quit [Client Quit]
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
jbrhbr has joined #ruby
ElFerna has joined #ruby
synthroid has joined #ruby
<Ox0dea> camus: You're ignoring the return value of `JSON.parse`.
nfk|laptop has quit [Ping timeout: 255 seconds]
<camus> Yes, by the way, here is a Gist, apologies for using Pastebin: https://gist.github.com/anonymous/c74d3846b023ae1f81d3
IrishGringo has joined #ruby
<apeiros> camus: thanks. JSON.parse does not (can't) change response in-place
<apeiros> you have to re-assign
<apeiros> (ruby is strongly typed, an object can't change its class)
<Ox0dea> apeiros: It could, technically. :)
<Ox0dea> Can so!
<camus> I would like to 1) loop through and interpolate the email address with a list of email addresses I have, and 2) store the response in a file, and append each subsequent response
<havenwood> camus: Try: parsed_json = JSON.parse(response); p parsed_json
<apeiros> Ox0dea: not speaking about you fiddling with fiddle or frozencore, or even a native extension.
seitensei has quit [Ping timeout: 260 seconds]
<Ox0dea> Fine. :P
rodfersou|lunch is now known as rodfersou|afk
<apeiros> and even less about you recompiling ruby, just to make a point :-p
broken_heart has joined #ruby
synthroid has quit [Ping timeout: 256 seconds]
ElFerna has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
<havenwood> I want the |> operator now, now now!
<broken_heart> Hello, any lisp programmers have experience in ruby? Having trouble with a recursive function: https://gist.github.com/anonymous/5b555b6340e89313e5e2
<camus> how do i iterate through a list of email addresses in the "url" and append each json response to a local file?
<apeiros> havenwood: what'd it do?
<havenwood> apeiros: Like the `|` pipe in Streem: https://github.com/matz/streem#readme
<apeiros> havenwood: define Proc#|?
<havenwood> apeiros: Incoming in Ruby 3.0 I think.
<camus> in other words, i would like to interpolate the email address in the "url", requery the url, and then append the result to a local file
<havenwood> "i'm immutable" |> puts
<broken_heart> If anyone has any idea even what's going wrong that would help, the ruby interpreted doesn't even seem to know how to handle the function.
stannard has quit []
<havenwood> broken_heart: Spaces not tabs! :)
dipk has joined #ruby
<havenwood> apeiros: I need to rewatch Matz keynote from RubyConf to get straight on what he said about |>.
<broken_heart> Sorry, I have my editor configured for tabs, and other languages :)
<adaedra> If your editor doesn't support setting per-language tab settings, it's not a good editor.
<havenwood> broken_heart: Getting an error or just not the expected output?
<broken_heart> getting errors,
<havenwood> broken_heart: add em to the gist?
<broken_heart> syntax error, unexpected '\n', expecting :: or '[' or '.'
<broken_heart> But it's not a syntax error.
<Ox0dea> >> class Proc; alias | itself; alias > call; end; -> x { x * 2 }. |> 21 # havenwood
<ruboto> Ox0dea # => 42 (https://eval.in/487585)
<broken_heart> I can reproduce it with any potentially infinite recursion loop
stannard has joined #ruby
polysics has quit [Remote host closed the connection]
<broken_heart> tried it on another machine also
<Ox0dea> havenwood: Making it go the other way is really unnatural in Ruby. :<
<havenwood> Ox0dea: :)
polysics has joined #ruby
ferr has quit [Quit: WeeChat 1.3]
saddad has joined #ruby
<havenwood> Ox0dea: I like!: alias | itself
stannard has quit [Client Quit]
cjbottaro has joined #ruby
shanemcd has joined #ruby
Rickmasta has joined #ruby
troulouliou_div2 has quit [Ping timeout: 260 seconds]
jackcom has quit [Quit: jackcom]
polysics has quit [Ping timeout: 265 seconds]
mistermo_ has joined #ruby
Seich has joined #ruby
roshanavand has quit [Remote host closed the connection]
dlitvak_ has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 255 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
broken_heart has quit [Ping timeout: 252 seconds]
ElFerna has quit [Ping timeout: 256 seconds]
blackms has quit [Remote host closed the connection]
stannard has joined #ruby
dlitvak has joined #ruby
shadoi has joined #ruby
mistermo_ has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
chthon has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
<gregf_> >> class Foo;def bar; puts "Bar";end; alias bar baz;end; Foo.new.baz
<ruboto> gregf_ # => undefined method `baz' for class `Foo' (NameError) ...check link for more (https://eval.in/487589)
joonty has quit [Quit: joonty]
<Ox0dea> ?experiment gregf_
<ruboto> gregf_, Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
synthroid has quit [Read error: No route to host]
synthroid has joined #ruby
sphex has quit [Ping timeout: 246 seconds]
troulouliou_div2 has joined #ruby
<Ox0dea> gregf_: It's natural enough to think of it as "alias <x> to <y>", but it's "create alias <x> using <y>".
troulouliou_div2 has quit [Remote host closed the connection]
<gregf_> oh so they need to be swapped
CorySimmons has joined #ruby
atomical has joined #ruby
<gregf_> >> class Foo;def bar; puts "Bar";end; alias baz bar;end; Foo.new.baz ## a demo
<ruboto> gregf_ # => Bar ...check link for more (https://eval.in/487590)
dlitvak has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 265 seconds]
dlitvak has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
ItSANgo_ has quit [Quit: Leaving...]
saddad has quit [Quit: WeeChat 1.4-dev]
ElFerna has joined #ruby
mistermocha has joined #ruby
ferr has joined #ruby
mprelude has joined #ruby
<jhass> gregf_: so what's the question?
djbkd has joined #ruby
<pipework> jhass: How is a raven like a writing desk?
hxegon has quit [Quit: Leaving]
<jhass> pipework: because of sewers
roshanav_ has joined #ruby
<pipework> jhass: Because Edgar Allen Poe wrote on both of them.
skade has joined #ruby
polysics has joined #ruby
<jhass> I prefer my answer
<pipework> jhass: I think they both work, to different effect.
hxegon has joined #ruby
kirun has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 240 seconds]
polysics has quit [Client Quit]
ornerymoose_ has joined #ruby
<Ox0dea> havenwood: https://eval.in/487596
hxegon has quit [Client Quit]
<Ox0dea> Shame about having to declare the parameters outside the braces in this case.
hxegon has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
ornerymoose has quit [Ping timeout: 256 seconds]
ornerymoose_ is now known as ornerymoose
scripore has joined #ruby
_stu_ has quit [Quit: _stu_]
cyberarm_ has joined #ruby
cyberarm_ has quit [Client Quit]
amclain has joined #ruby
cyberarm has joined #ruby
arup_r has joined #ruby
ElFerna has quit [Ping timeout: 272 seconds]
radgeRayden has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
lazyatom has quit [Quit: Connection closed for inactivity]
ferr has quit [Quit: WeeChat 1.3]
radgeRayden has joined #ruby
shanemcd has quit [Remote host closed the connection]
jschmid has quit [Ping timeout: 240 seconds]
Alayde has joined #ruby
<Alayde> any recommendations on which gem to use for dealing with mysql databases? Currently we have some code that uses the dbi gem, but the last commit it had was 7 years ago, so I'm kinda iffy about that
jbrhbr has quit [Quit: Leaving.]
<jhass> Alayde: mysql2 + sequel
ferr has joined #ruby
mistermocha has joined #ruby
<Alayde> ah, bitchin'
<Alayde> thanks jhass
yqt has joined #ruby
hessparker has joined #ruby
treehug88 has joined #ruby
<Ox0dea> "Bitchin'"?
<Alayde> synonymous with 'awesome'
<jhass> I think we'll prefer "awesome" in the future
<Alayde> oh right, can't risk offending people
<Alayde> thanks again for the help
Alayde has left #ruby ["WeeChat 1.1.1"]
djbkd has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
sandstrom has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<imperator> jhass, but, but....my camaro!
Mon_Ouie has joined #ruby
mistermocha has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 265 seconds]
ruu has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
lacuna has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
centrx has quit [Remote host closed the connection]
<shevy> camera?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vF3hNGxc47h8 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
nertzy has joined #ruby
sandstrom has joined #ruby
<shevy> in 6 days we have a new ruby version!
[Butch] has joined #ruby
shadoi has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hxegon> your man could have bytecode export/import, now look back to 2.4. rainbowsplosion.
<hxegon> 2.3*
IrishGringo has quit [Ping timeout: 260 seconds]
mrtomme has quit [Ping timeout: 246 seconds]
scripore has quit [Read error: Connection reset by peer]
mac__ has joined #ruby
IrishGringo has joined #ruby
sandstrom has quit [Client Quit]
mrtomme has joined #ruby
goodcodeguy has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
ElFerna has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
ferr has quit [Quit: WeeChat 1.3]
c0m0 has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
eytanfb has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
benlieb has joined #ruby
_joes___ has quit [Quit: Connection closed for inactivity]
mac__ has quit [Quit: Leaving]
vasilakisfil has quit [Quit: Konversation terminated!]
dlitvak has quit [Remote host closed the connection]
howdoicomputer has joined #ruby
karapetyan has quit [Remote host closed the connection]
Snowy has quit []
eytanfb has quit [Remote host closed the connection]
jbrhbr has joined #ruby
ngscheurich has joined #ruby
dlitvak has joined #ruby
guacamole has joined #ruby
cassioscabral has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
cdg has quit [Remote host closed the connection]
steffkes has joined #ruby
steffkes has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
skade has quit [Quit: Computer has gone to sleep.]
meatchicken has joined #ruby
skade has joined #ruby
user083 has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
elaptics is now known as elaptics`away
berserk_ren has joined #ruby
steffkes has quit [Ping timeout: 246 seconds]
shanemcd has joined #ruby
eytanfb has joined #ruby
frem has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
<ljarvis> my man has bytecode export
shanemcd has quit [Ping timeout: 260 seconds]
<hxegon> "This week on ruby weekly: WHO ON YOUR CELEB BANG LIST HAS BYTECODE EXPORT?"
<adaedra> Stop shouting, some people are trying to sleep.
<gizmore> good morning *yawn
jackjackdripper has joined #ruby
RegulationD has joined #ruby
<hxegon> morning gizmore
tvw has quit [Remote host closed the connection]
<gizmore> my code is heroic... it does rescue nil a lot
<gizmore> maybe i do class Object; def olivia_oil; nil; end; end; to allow rescue olivia_oil instead
<hxegon> I'd love to see the docs for that
shanemcd has joined #ruby
<gizmore> *docks ... as we sailsman say
ramfjord has quit [Ping timeout: 265 seconds]
Neronfapper has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
rnetocombr has joined #ruby
ta_ has joined #ruby
arup_r has quit []
shanemcd has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 255 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
RegulationD has joined #ruby
dionysus69 has joined #ruby
<atmosx> I have to write python, it's easy but sucks (I need to let the world know :-P)
jbrhbr has quit [Quit: Leaving.]
<ljarvis> I quite like Python, but it has some inconsistencies and small things that bug me
<ljarvis> plus I dislike whitespace sensitive code
<pipework> but does python like you?
The_Phoenix has quit [Quit: Leaving.]
jbrhbr has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
davedev24 has joined #ruby
<eam> if you dislike whitespace sensitive code you can't like ruby all that much either then
<pipework> eam: ruby ain't whitespace sensitive tho
ruu has quit [Remote host closed the connection]
<ljarvis> lets compare apples to oranges
platzhirsch has quit [Remote host closed the connection]
<pipework> Just the people who dogmatically follow the style guide.
davedev2_ has quit [Ping timeout: 240 seconds]
spt0 has quit [Remote host closed the connection]
<eam> ruby has whitespace significance all over
rnetocombr has quit [Quit: Leaving]
<eam> the most common significant whitespace is the end of line delimiter
<darix> eam: troll much :p
<ljarvis> yeah seriously
<adaedra> õ_o
<eam> dude, that's the definition of the term
<ljarvis> lets not keep going
<eam> is any \s+ the same as any other \s+
<eam> take for example C, where it is
<adaedra> except for the preprocessor or // comments, you know.
<eam> cpp isn't C, and // wasn't originally either
<eam> "cpp is whitespace significant" is absolutely true -- and cpp is also widely reviled
howdoicomputer has quit [Ping timeout: 260 seconds]
IrishGringo has quit [Ping timeout: 240 seconds]
seitensei has joined #ruby
seitensei has joined #ruby
eytanfb has quit [Remote host closed the connection]
spider-mario has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
colegatron has joined #ruby
PaulCapestany has quit [Quit: .]
seitensei has quit [Read error: Connection reset by peer]
bitcycle has joined #ruby
tenseiten has joined #ruby
agent_white has joined #ruby
freerobby has quit [Quit: Leaving.]
nonopposition has quit [Remote host closed the connection]
<bitcycle> Hey all. I've got a question about REXML and removing comments from xml. Is that even possible? http://stackoverflow.com/q/34362154/86263
lacuna has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
tvw has joined #ruby
yqt has joined #ruby
cdg has joined #ruby
quesker has joined #ruby
<quesker> is this syntax right? hash = JSON.parse response.body
sandstrom has joined #ruby
<quesker> puts "id is " . hash.first["id"].to_string
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
lacuna has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Sucks has quit [Ping timeout: 255 seconds]
koba has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
nonopposition has joined #ruby
ruu has joined #ruby
BraddPitt has quit [Quit: leaving]
BraddPitt has joined #ruby
hanmac has joined #ruby
ruby-lang742 has joined #ruby
Neronfapper has joined #ruby
system64 has joined #ruby
<ruby-lang742> hi!
ramfjord has joined #ruby
ascarter has joined #ruby
<havenwood> ruby-lang742: helloooo
rhg135 has quit [Read error: Connection reset by peer]
renemaya has joined #ruby
<ruby-lang742> is there any official ruby tk documentation?
<ruby-lang742> currently i'm reading from tkdocs.com, which is great, but I'm looking for a more organized way
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
Sucks has joined #ruby
ferr has joined #ruby
guacamole has quit [Read error: Connection reset by peer]
<graft> hey yall, does anyone know of a nice gem/module that lets you build indexes to search an Enumerable faster than #select or #find?
ibouvousaime has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
ibouvousaime has joined #ruby
<pipework> graft: You mean define_method?
guacamole has joined #ruby
InvGhost has joined #ruby
<adaedra> ruby-lang742: http://www.rubydoc.info/stdlib/tk
<pipework> enum.sort_by(&:some_method)
<Ox0dea> graft: Well, there's #bsearch.
<graft> pipework: uh... i don't think so, no
<pipework> Or find(&:method)
<Ox0dea> Only useful if your enumerable is sorted, of course.
<graft> yeah but bsearch assumes my data is sorted
<Ox0dea> Well, why aren't your data sorted? :P
<dorei> graft: wouldn't a Hash help?
<graft> they might be sorted on one key but not another
<Ox0dea> graft: Maybe you should just be using a proper database?
djbkd has joined #ruby
<graft> dorei: yeah, i can do this with a hash or a btree, but just wondering if there's a well-known method to do this already
<ruby-lang742> hey <adaedra> cool thanks!
eytanfb has joined #ruby
<Ox0dea> graft: I think you might be looking for #group_by.
<graft> Ox0dea: i AM using a proper database, but once i have stuff queried into ruby objects i still need to be able to search those efficiently
<Ox0dea> graft: Why?
koba has quit [Ping timeout: 252 seconds]
<imperator> TIL people still use Tk
<graft> Ox0dea: basically, i have a choice between 100 inefficient sql queries, or one big sql query and 100 faster ruby queries
<Ox0dea> graft: Are you sure?
<graft> Ox0dea: no, but that's where i'm at right now
guacamole has quit [Client Quit]
<Ox0dea> Gotcha.
<dorei> graft: i think a correct sql query is faster than anything
<graft> so i'm trying to make my 100 ruby queries faster
startupality has joined #ruby
karapetyan has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
<graft> like, if i do Sample.where(name: 'test_name') the SQL query can be very fast if it uses an index
<xybre> How big is your data set?
<graft> but samples.select{|s| s.name == 'test_name'} is linear time
<xybre> What would you use as your index?
last_staff1 has joined #ruby
<xybre> It sounds like you want a hash.
<graft> yeah, i do want a hash
<graft> or something
jottr has joined #ruby
<graft> i just wanted to know if i could plug some Index module into my Enumerable and have it hash stuff for me
pawnbox has quit [Remote host closed the connection]
<Ox0dea> graft: That would depend largely upon the shape of your data.
<xybre> So.. use a hash. If your "primary keys" are unique, use a hash. If you want multiple indexes, use multiple hashes pointing to the same objects. Lookups are *fast*.
jottr has quit [Client Quit]
djbkd has quit [Ping timeout: 256 seconds]
arooni_______ has joined #ruby
ruby-lang742 has quit [Ping timeout: 252 seconds]
<graft> my problem is not how to do the computation, it's how to write a clean interface
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
<graft> so i'm wondering if someone wrote a nice interface that does this sort of thing already
jottr has joined #ruby
<Ox0dea> graft: Are you allowed to elaborate on what sort of data you've got?
<graft> since it seems like a common use case to have to quickly search an Enumerable
last_staff has quit [Ping timeout: 265 seconds]
last_staff1 is now known as last_staff
jottr has quit [Client Quit]
<Ox0dea> graft: I couldn't say where you picked up that misconception, but it is one.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brixen has joined #ruby
<Ox0dea> Enumerables are for being enumerated, not quickly searched.
<graft> Ox0dea: #select and #find would belie that notion
<graft> Enumerables are at least for being searched
<graft> the 'quickly' is the part i am trying to bolt on
colleenmcguckin has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<xybre> graft: well, there's this: https://github.com/dkubb/axiom
<Ox0dea> graft: #select and #find may well need to enumerate the entire collection to do their thing.
* imperator is confused as to what these 100 smaller queries would be
<graft> Ox0dea: this is my point
<Ox0dea> graft: You're simply using the wrong data structure(s).
<Ox0dea> graft: I mentioned that about #select and #find to illustrate that Enumerable is "for" enumeration, not search.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
<Ox0dea> That Enumerable requires a definition of #each (and nothing more) really ought to put the matter to rest.
<graft> imperator: i have an array of populations, and i want to select from amongst them according to several properties. this would be fast if i had all of the properties indexed, say if i had a hash for each one, but right now they are just bare objects in an Array
<Ox0dea> Do it in the database.
<graft> ...
<graft> then i am left with hundreds of database queries
rodfersou|afk has quit [Ping timeout: 256 seconds]
<graft> as opposted to hundreds of searches on objects already in memory
<graft> the latter will definitely be faster
<xybre> graft: what about Enumerable::Lazt?
berserk_ren has quit [Read error: Connection reset by peer]
<xybre> Lazy^
prestorium has quit [Quit: Leaving]
<graft> xybre: not sure how that lets me search quickly...
pawnbox has joined #ruby
<graft> i think that just lets me give up quickly once i've found a match, which is the same as #find
sandstrom has quit [Quit: OS X IRC Client (www.textualapp.com)]
<imperator> graft, can you show us your main query, and what your subquery would look like?
jottr has joined #ruby
<imperator> i mean, are you looking for different properties at different times once you have the array? or is it the same for all?
<ruboto> graft, 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
indiebrain has joined #ruby
sandstrom has joined #ruby
agent_white has quit [Quit: bbl]
colleenmcguckin has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<xybre> Okay, well, I suggested Axiom earlier, which is am ore robust querying solution.
colleenmcguckin has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
rodfersou|afk has joined #ruby
edwinvdgraaf has joined #ruby
<imperator> graft, is a materialized view out of the question? so, whatever query you used for the cached_populations becomes the view, then slap an index on the view
stannard_ has joined #ruby
* imperator assumes postgres, not sure what vendor you're using
pawnbox has quit [Ping timeout: 272 seconds]
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
CorySimmons has quit [Quit: Bye!]
lacuna has quit [Read error: Connection reset by peer]
<graft> imperator: using postgres, but not familiar with a materialized view
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
stannard has quit [Ping timeout: 256 seconds]
<graft> xybre: Axiom looks cool but heavy
Dimik has joined #ruby
djbkd has quit [Ping timeout: 246 seconds]
<imperator> basically, it's a pre-canned query that's treated like a read-only table
IrishGringo has joined #ruby
jschmid has joined #ruby
<graft> hmm, and you build indices into this table as per usual?
sankaber has joined #ruby
nettoweb has joined #ruby
<imperator> looks that way
<imperator> though you may just want a "regular" view, otherwise you'll have to refresh with a materialized view
<graft> yeah, might be okay since my data is pretty static
karmatr0n has quit []
<graft> seems like what i want, but now i'm writing sql instead of ruby
jordanm has quit [Quit: Konversation terminated!]
<graft> oy vey... thanks for all the insights, folks, i think i have plenty to chew on
pdoherty has quit [Remote host closed the connection]
stevenxl has joined #ruby
stevenxl has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
renderf__ has joined #ruby
solocshaw has joined #ruby
sankaber has quit [Remote host closed the connection]
renderfu_ has quit [Ping timeout: 260 seconds]
sankaber has joined #ruby
cyberarm has quit [Ping timeout: 265 seconds]
lacuna_ has joined #ruby
amclain has quit [Read error: Connection reset by peer]
Sucks has quit [Ping timeout: 272 seconds]
howdoicomputer has joined #ruby
amclain has joined #ruby
skade has joined #ruby
nanoz] has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 255 seconds]
jschmid has quit [Ping timeout: 240 seconds]
lacuna has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
AncientAmateur has quit [Ping timeout: 272 seconds]
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 272 seconds]
solocshaw1 is now known as solocshaw
basex has quit [Ping timeout: 256 seconds]
ngscheurich has quit [Quit: WeeChat 1.2]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
douglass1 has left #ruby [#ruby]
colleenmcguckin is now known as guacamole
cyberarm has joined #ruby
nfk|laptop has joined #ruby
akem2 has joined #ruby
bronson has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
sameerynho has joined #ruby
guacamole has quit []
colleenmcguckin has joined #ruby
colleenmcguckin is now known as guacamole
lxsameer has quit [Ping timeout: 240 seconds]
p337rB_ has joined #ruby
dlitvak has joined #ruby
jottr has joined #ruby
p337rB_ has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
AncientAmateur has joined #ruby
akem2 has quit [Quit: Bye]
moeSeth has quit [Quit: Connection closed for inactivity]
SenpaiSilver has joined #ruby
roshanavand has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
fullofcaffeine has quit [Remote host closed the connection]
lacuna_ has quit [Ping timeout: 260 seconds]
rnetocombr has joined #ruby
moeSeth has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
roshanav_ has quit [Ping timeout: 256 seconds]
solocshaw1 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
rnetocombr has quit [Client Quit]
howdoicomputer has quit [Ping timeout: 240 seconds]
dmolina has quit [Quit: Leaving.]
solocshaw1 is now known as solocshaw
baweaver has joined #ruby
fullofcaffeine has joined #ruby
nocd has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
sameerynho has quit [Quit: Leaving]
atumzin has joined #ruby
rhg135 has joined #ruby
bewilled has quit [Quit: Page closed]
fullofcaffeine has quit [Remote host closed the connection]
cornerma1 has joined #ruby
lemur has joined #ruby
nettoweb has joined #ruby
startupality has quit [Quit: startupality]
PlasmaStar has quit [Ping timeout: 240 seconds]
nettoweb has quit [Max SendQ exceeded]
jottr has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
baweaver has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
PlasmaStar has joined #ruby
blackgoat has joined #ruby
DavidDudson has joined #ruby
fullofcaffeine has joined #ruby
Sucks has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 255 seconds]
solocshaw has joined #ruby
opencard has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
DavidDudson has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
jottr has joined #ruby
blackmesa has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
steffkes has joined #ruby
goodcodeguy has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
eytanfb has quit [Remote host closed the connection]
colli5ion has quit []
cyberarm has quit [Ping timeout: 265 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eytanfb has joined #ruby
roshanavand has joined #ruby
yfeldblum has joined #ruby
medvedu has quit [Quit: he will be back]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
fantazo has joined #ruby
ur5us has quit [Remote host closed the connection]
robbie246 has joined #ruby
roshanavand has quit [Ping timeout: 255 seconds]
guacamole has quit [Read error: Connection reset by peer]
Pathfinder has joined #ruby
guacamole has joined #ruby
chipotle has joined #ruby
renemaya has joined #ruby
joonty has joined #ruby
howdoicomputer has joined #ruby
eytanfb has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
maikowblue has quit [Quit: .]
cyberarm has joined #ruby
Spami has joined #ruby
eytanfb has joined #ruby
mistermocha has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
cpup has quit [Ping timeout: 256 seconds]
chouhoul_ has joined #ruby
_stu_ has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
cpup has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
darkf has quit [Quit: Leaving]
n008f4g_ has joined #ruby
mistermocha has joined #ruby
freerobby has joined #ruby
millerti has joined #ruby
TheBloke- has joined #ruby
TheBloke has quit [Ping timeout: 250 seconds]
benlieb has quit [Quit: benlieb]
djbkd has joined #ruby
juddey has joined #ruby
juddey has quit [Remote host closed the connection]
synthroid has quit []
decoponio has quit [Quit: Leaving...]
jbrhbr has quit [Quit: Leaving.]
hxegon is now known as hxegon_AFK
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 246 seconds]
lemur is now known as baweaver
djbkd has quit [Ping timeout: 256 seconds]
jessemcgilallen has joined #ruby
hxegon_AFK is now known as hxegon
lapide_viridi has joined #ruby
rakm has joined #ruby
bronson has quit [Remote host closed the connection]
dlitvak has quit [Read error: Connection reset by peer]
nunchuck has joined #ruby
renemaya has joined #ruby
blandflakes has joined #ruby
benlieb has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jackneill has quit [Ping timeout: 265 seconds]
guacamole has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
atomical has quit [Ping timeout: 246 seconds]
guacamole has joined #ruby
ferr has quit [Read error: Connection reset by peer]
atomical has joined #ruby
rodfersou|afk has quit [Quit: leaving]
idefine has joined #ruby
nonopposition has quit [Remote host closed the connection]
bronson has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Ping timeout: 246 seconds]
ta_ has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
ta has joined #ruby
polishdub has quit [Quit: Leaving]
ta_ has joined #ruby
yardenbar has quit [Ping timeout: 272 seconds]
ta_ has quit [Read error: Connection reset by peer]
guacamole has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
guacamole has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
nettoweb has quit [Read error: Connection reset by peer]
eytanfb has quit [Remote host closed the connection]
lacuna has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
chipotle has quit [Quit: cheerio]
nonopposition has joined #ruby
Snowy has joined #ruby
mistermocha has joined #ruby
atomical_ has joined #ruby
chipotle has joined #ruby
idefine has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
idefine has joined #ruby
ta has joined #ruby
indiebrain has quit [Ping timeout: 255 seconds]
AncientAmateur has quit [Ping timeout: 256 seconds]
atomical has quit [Ping timeout: 260 seconds]
roger_rabbit has joined #ruby
devbug has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 255 seconds]
tenseiten has quit [Remote host closed the connection]
nettoweb has joined #ruby
ESpiney has quit [Quit: Leaving]
ta has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
lacuna has quit [Read error: Connection reset by peer]
ta has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
Pathfinder_ has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akaiiro has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
Pathfinder has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
joonty has quit [Quit: joonty]
pika_pika has quit [Quit: Leaving]
cdg has joined #ruby
roshanavand has quit [Remote host closed the connection]
mistermocha has joined #ruby
roshanavand has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
idefine has quit [Remote host closed the connection]
jschmid has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
guacamole has quit [Read error: Connection reset by peer]
tvw has quit []
guacamole has joined #ruby
neanderslob has joined #ruby
arooni_______ has quit [Ping timeout: 240 seconds]
shock_one has quit [Remote host closed the connection]
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
lapide_viridi has quit [Quit: Leaving]
devbug has quit [Remote host closed the connection]
devbug has joined #ruby
idefine has joined #ruby
jschmid has quit [Ping timeout: 265 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
<shevy> dumdedum
icarus has joined #ruby
pdoherty has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
<Ox0dea> >> Time.now.friday?
<ruboto> Ox0dea # => true (https://eval.in/487651)
finisherr has quit [Quit: finisherr]
RegulationD has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icarus has quit [Client Quit]
andrew9183 has joined #ruby
<imperator> >> Time.now.paid?
<ruboto> imperator # => undefined method `paid?' for 2015-12-18 21:45:56 +0000:Time (NoMethodError) ...check link for more (https://eval.in/487652)
IrishGringo has quit [Ping timeout: 255 seconds]
icarus has joined #ruby
idefine has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 240 seconds]
<Papierkorb> !friday
<Kuukunen> Is it Friday? Yes!
<jhass> !help
<adaedra> !self-destruct
lacuna has quit [Remote host closed the connection]
<Papierkorb> !quit
<Ox0dea> !sudoku
dwfait has joined #ruby
<shevy> ack
<jhass> Ox0dea: no gore
<Ox0dea> Pfft.
<shevy> protect the kids of #ruby!!!
<adaedra> You mean you?
<shevy> all of them
<jhass> that'd be you and ...
<hxegon> Cham is drunk not a kid
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> "Now hear, you blissful powers underground: answer the call, send help. Bless the children. Give them triumph now."
<Ox0dea> J.K. Rowling = Satanist confirmed.
ItSANgo has joined #ruby
jschmid has joined #ruby
atomical has joined #ruby
<jhass> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
AncientAmateur has joined #ruby
<Ox0dea> Whatever happened to casual Friday in #ruby?
<baweaver> viva la revolucion Ox0dea
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
howdoicomputer has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Remote host closed the connection]
minimalism has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jschmid has quit [Ping timeout: 272 seconds]
The_Phoenix has joined #ruby
Snowy is now known as dim-manjizz
arthurix has quit [Quit: Leaving...]
gambl0re has quit [Ping timeout: 272 seconds]
Tricon has joined #ruby
goodcodeguy has joined #ruby
maletor has joined #ruby
mistermocha has quit [Remote host closed the connection]
idefine has joined #ruby
benlieb has quit [Quit: benlieb]
guacamole has quit [Read error: Connection reset by peer]
goodcodeguy has quit [Client Quit]
ur5us has joined #ruby
pawnbox has joined #ruby
goodcodeguy has joined #ruby
guacamole has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
nofxx has quit [Ping timeout: 255 seconds]
baweaver has quit [Read error: Connection reset by peer]
goodcodeguy has quit [Client Quit]
idefine has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
radgeRayden_ has joined #ruby
<gizmore> does array += array return a new array?
baweaver has joined #ruby
goodcodeguy has joined #ruby
goodcodeguy has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
<havenwood> >> array = []; array += array
<adaedra> it's (array = array + array)
<ruboto> havenwood # => [] (https://eval.in/487653)
steffkes has quit [Ping timeout: 260 seconds]
The_Phoenix has joined #ruby
AncientAmateur has quit [Ping timeout: 240 seconds]
<havenwood> array || array = array
<gizmore> i have: klass.instance_variable_set(:@foo, array); array += [:foo] ; klass.instance_variable_get(:@foo) # => yields [] ?
radgeRayden has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
<gizmore> i want it to yield [:foo] / add items to that array
<Papierkorb> gizmore: use :<< instead
<gizmore> thank you Papierkorb!
<Papierkorb> gizmore: array << :foo
<Papierkorb> gizmore: or Array#concat if you want to append a whole array
<havenwood> >> array = [:bar]; array.concat [:foo]; array
<gizmore> so array << [:foo, :bar] works fine ?
<ruboto> havenwood # => [:bar, :foo] (https://eval.in/487654)
<gizmore> thanks
radgeRayden__ has joined #ruby
radgeRayden_ has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 265 seconds]
krobzaur has quit [Ping timeout: 265 seconds]
<Ox0dea> gizmore: No.
<gizmore> the concat worked nicely, thanks h avenwood
<Ox0dea> gizmore: Note well that Array#<< is Array#push, and its behavior is quite different from #concat.
The_Phoenix has quit [Quit: Leaving.]
jbrhbr has joined #ruby
<gizmore> push does only push single items?
ramfjord has joined #ruby
<gizmore> >> a = []; a.push(:one); a
<ruboto> gizmore # => [:one] (https://eval.in/487655)
<gizmore> >> a = []; a.push(:one, :two); a
<ruboto> gizmore # => [:one, :two] (https://eval.in/487656)
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<gizmore> thank you as well, Ox0dea
<Ox0dea> gizmore: #push is for appending *elements*; #concat is for array concatenation.
<Ox0dea> foo.concat(bar) is the in-place version of foo + bar, where both are Arrays.
<gizmore> the array instance does not change for concat... in arr1 += arr2 it changes
jbrhbr1 has joined #ruby
<gizmore> well... i hope you know what i mean :P
ItSANgo has quit [Quit: Leaving...]
<Ox0dea> gizmore: Aye, that's what "in-place" signifies.
<gizmore> aaaahhh okay :)
<gizmore> thanks for clearing it up
<Ox0dea> Sure thing.
hxegon is now known as hxegon_AFK
<Ox0dea> Are you quite sure it's not #push you want?
jbrhbr has quit [Ping timeout: 256 seconds]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gizmore> i want to concat, yes
<Ox0dea> But you're concatenating a single-element Array, no?
<gizmore> so multiple pushes.... array.push(*myargs) would be the same
eytanfb has joined #ruby
ItSANgo has joined #ruby
ornerymoose has quit [Ping timeout: 265 seconds]
<Ox0dea> Ah, well, if you do have multiple items to push and they're already collected like that, #concat does make more sense.
pdoherty has quit [Ping timeout: 240 seconds]
<Ox0dea> But yes, `foo.push(*ary)` == `foo.concat(ary)`, for reference.
n008f4g_ has quit [Ping timeout: 240 seconds]
radgeRayden__ has quit [Read error: Connection reset by peer]
devbug has quit [Ping timeout: 272 seconds]
tricon_ has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
radgeRayden__ has joined #ruby
dwfait has quit [Read error: Connection reset by peer]
paradisaeidae has joined #ruby
mg^ has quit [Quit: Leaving]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
OmegaA has joined #ruby
dwfait has joined #ruby
hxegon_AFK has quit [Ping timeout: 240 seconds]
Tricon has joined #ruby
bronson has quit [Remote host closed the connection]
mistermocha has joined #ruby
n_blownapart has joined #ruby
n_blownapart has quit [Client Quit]
n_blownapart has joined #ruby
nonopposition has quit [Remote host closed the connection]
tricon_ has quit [Ping timeout: 255 seconds]
roshanavand has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
shanemcd has joined #ruby
icarus_ has joined #ruby
djbkd has joined #ruby
nonopposition has joined #ruby
shanemcd has quit [Ping timeout: 246 seconds]
guacamole has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
mostlybadfly has joined #ruby
icarus has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
paradisaeidae has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
spider-mario has quit [Remote host closed the connection]
nonopposition has quit [Remote host closed the connection]
devbug has joined #ruby
ur5us has quit [Remote host closed the connection]
pawnbox has joined #ruby
Pathfinder_ has quit [Read error: Connection reset by peer]
imperator has left #ruby ["Leaving"]
jottr has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
stannard_ has quit [Remote host closed the connection]
tvw has joined #ruby
ruby_newbie has joined #ruby
ss_much has joined #ruby
RegulationD has joined #ruby
stannard has joined #ruby
lipoqil has joined #ruby
<ruby_newbie> Hi all. New to Ruby. Reading about encryption. So the way the MD5 hash works is that I give it a string and it always returns the same hash. Ok?
zenlot3 has joined #ruby
stannard has quit [Remote host closed the connection]
zenlot2 has quit [Ping timeout: 256 seconds]
<Ox0dea> Okay.
pawnbox has quit [Ping timeout: 246 seconds]
gizless has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
<ruby_newbie> So in a HTTP sort of thing, typically when someone tries to sign in, the client JS will make a MD5 hash of the password, sent it to the server and server compares just the hash?
cassioscabral has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
<xybre> ruby_newbie: MD5 isn't a good algorithm for passwords
<Ox0dea> ruby_newbie: That's one way to do authentication without storing plaintext passwords, sure, but please choose something better than MD5.
<havenwood> ROT26!
<Ox0dea> ^
lacuna has quit [Remote host closed the connection]
<shevy> yeah baby
nonopposition has joined #ruby
<dorei> what's the problem with md5?
Yzguy has joined #ruby
gizmore|3 has joined #ruby
bubbys has joined #ruby
<xybre> dorei: it's a compromised algo
<Ox0dea> class String; alias rot26 dup; end
<dorei> i mean, if some malicious gets access to your md5 encrypted passwords, then i think it's already too late
pdoherty has joined #ruby
<dorei> even if you didnt use md5 and prefered smt better
<Ox0dea> dorei: That's simply not the case.
<xybre> dorei: not true
<Papierkorb> dorei: MD5 is cryptographically broken, even in practice
gizmore has quit [Ping timeout: 246 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
<Ox0dea> dorei: Your users should matter to you.
RegulationD has quit [Ping timeout: 265 seconds]
ruby-newbie has joined #ruby
<Papierkorb> dorei: Please don't invent your own password hashing method. Shit's science, yo. Use bcrypt() instead.
<dorei> Ox0dea: thankfully, i've got no users :)
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Pathfinder has joined #ruby
sandstrom has joined #ruby
<ruby-newbie> I wrote the ROT encryptor, which was very cool. I just wanted to understand standard practice. Just comparing hashes in clear text then?
<Papierkorb> rotation encoder*
gizless has quit [Ping timeout: 265 seconds]
davedev2_ has joined #ruby
ruby_newbie has quit [Ping timeout: 252 seconds]
<Papierkorb> ruby-newbie: "comparing hashes in clear text" ?
davedev2_ has quit [Read error: Connection reset by peer]
<xybre> Anyway, client-side hashing is probably a waste if you're using SSL, the password will be encrypted over the wire. If you want to be certain your servers never see the password at all, there's other ways to do it.
<Papierkorb> OH MY GOD
davedev2_ has joined #ruby
<Papierkorb> I will now pretend that I didn't read what xybre just wrote
gizmore|2 has quit [Ping timeout: 256 seconds]
<Papierkorb> xybre: do you maintain any webservice? if so, which ones?
<ruby-newbie> Yes sending the hash over the wire.
davedev24 has quit [Ping timeout: 260 seconds]
nonopposition has quit [Remote host closed the connection]
<Ox0dea> ruby-newbie: That's fine, but the comparison itself should happen server-side.
mistermo_ has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
<xybre> Papierkorb: SSL doesn't encrypt passwords when sent through an HTTPS request?
<ruby-newbie> Got it. Ofcourse since the DB has the userid and hash I supposed
<ruby-newbie> suppose*
<Papierkorb> xybre: "Transport encryption" and "hashing passwords" don't have *anything* in common besides both having to do with security.
system64 has quit [Quit: Connection closed for inactivity]
<xybre> Papierkorb: Right. But if the concern is sending a password in clear text over the wire, then SSL already covers that use case.
<Papierkorb> xybre: oh for that, of course.
Yzguy has joined #ruby
nfk|laptop has quit [Quit: yawn]
<Papierkorb> As long people don't start to store plaintext passwords for "easy recovery", or invent their own salted-with-rounding MD5 password hash, that's fine
<ruby-newbie> I figured I'd ask since ROT can be cracked by just trying a bunch of rotations, if someone got hold of an MD5 in transport, could they un-hash it.
<xybre> No, you should use bcrypt or scrypt for hashing.
gambl0re has joined #ruby
<xybre> Never store passwords in cleartext - or at all, really.
<Papierkorb> xybre: I'm sorry if something I said sounded rude to you. I really go on high alert when security is involved ..
<ruby-newbie> Yes.
<ruby-newbie> Thanks xybre
<havenwood> or PBKDF2
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
akem has quit [Remote host closed the connection]
idefine has joined #ruby
Yzguy has quit [Client Quit]
zeroDivisible has joined #ruby
<xybre> Papierkorb: I just assumed I mispoke, security is important to me as well. :)
<xybre> ruby-newbie: make sure you check out that security.stackexchange link I sent earlier, it explains the whys and wherefores a bit.
nonopposition has joined #ruby
linelevel has quit [Ping timeout: 272 seconds]
lictor36 has joined #ruby
<shevy> I let facebook handle my security
<Papierkorb> ruby-newbie: please note that it's fine to toy around with stuff like this for educational purposes. But if you were to write a real-world application, prefer battle-tested packages over your own code. It may sound like "hashing a password" is a simple task to get right, but in reality, it's really really hard to get right on your own. People study that stuff for years, there's lots of research money in it and so on.
Waheedi has joined #ruby
Yzguy has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 256 seconds]
paradisaeidae has joined #ruby
ornerymoose has joined #ruby
ruby-newbie has quit [Ping timeout: 252 seconds]
<havenwood> ruby-newbie: Here's a readable writeup that covers a real work case of why you'd not want to store say an MD5 along a properly hashed password :O http://arstechnica.com/security/2015/09/once-seen-as-bulletproof-11-million-ashley-madison-passwords-already-cracked/
paradisaeidae has quit [Remote host closed the connection]
<havenwood> And gone.
<havenwood> s/work/world
blandflakes has joined #ruby
Waheedi has quit [Client Quit]
ElFerna has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 265 seconds]
stevenxl has quit [Quit: leaving]
blackjid has quit [Max SendQ exceeded]
hessparker has quit [Ping timeout: 246 seconds]
dwfait has quit [Ping timeout: 240 seconds]
blackjid has joined #ruby
hessparker has joined #ruby
gizmore|3 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mclong has quit [Quit: Leaving]
IrishGringo has joined #ruby
mistermocha has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
rgtk has quit [Remote host closed the connection]
davedev24 has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
solocshaw1 is now known as solocshaw
gizmore has joined #ruby
tvw has quit []
Waheedi has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
hxegon has joined #ruby
Waheedi has quit [Client Quit]
yashinbasement has joined #ruby
eytanfb has quit [Remote host closed the connection]
pawnbox has joined #ruby
hessparker has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
ur5us has joined #ruby
dfwqdfui2342 has joined #ruby
devFrederick has joined #ruby
<dfwqdfui2342> <@dfwqdfui2342> Hey does anyone have time to help me form a flow chart or pseudocode for a project
<havenwood> dfwqdfui2342: In Ruby?
<dfwqdfui2342> Im a jr programer
skinux has joined #ruby
<havenwood> dfwqdfui2342: Hi! This is the Ruby programming language channel. Learning Ruby?
<skinux> Where in Ruby's source code would I look to find the code that actually scans ruby sources for ruby code?
<havenwood> skinux: Whatcha mean by "scans"?
rgtk has quit [Remote host closed the connection]
<havenwood> dfwqdfui2342: What kind of project?
<skinux> scans ruby source file to know what that code is doing and therefore make it happen.
seitensei has joined #ruby
<adaedra> skinux: you mean, the parser?
<skinux> Yeah, probably
<havenwood> dfwqdfui2342: It might be good to put together a Gist that explains your project and shows off what you have so far.
<shevy> most ruby gems have a version such as 1.0.5 in a constant called VERSION; do you think it may be useful to also add the release-date to a gem project?
<adaedra> skinux: parsing is done in /parse.y
ur5us has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
<adaedra> 'tis a terrible place, for what I've heard.
bronson has joined #ruby
<havenwood> skinux: From a REPL you could take a look at Ripper#tokenize, Ripper#lex, Ripper#sexp and RubyVM::InstructionSequence#compile.
<havenwood> >> require 'ripper'; Ripper.tokenize '1.upto(5)'
<ruboto> havenwood # => ["1", ".", "upto", "(", "5", ")"] (https://eval.in/487668)
<havenwood> >> require 'ripper'; Ripper.lex '1.upto(5)'
<ruboto> havenwood # => [[[1, 0], :on_int, "1"], [[1, 1], :on_period, "."], [[1, 2], :on_ident, "upto"], [[1, 6], :on_lparen ...check link for more (https://eval.in/487669)
<havenwood> skinux: ^ etc
hessparker has joined #ruby
<havenwood> s/#/::
dlitvak has quit [Remote host closed the connection]
<havenwood> >> RubyVM::InstructionSequence.compile('1.upto(5)').to_a
<ruboto> havenwood # => ["YARVInstructionSequence/SimpleDataFormat", 2, 2, 1, {:arg_size=>0, :local_size=>1, :stack_max=>2}, ...check link for more (https://eval.in/487670)
ferr has joined #ruby
dlitvak has joined #ruby
dim-manjizz is now known as Snowy
mistermocha has quit [Remote host closed the connection]
seitensei has quit [Ping timeout: 272 seconds]
<Papierkorb> There's also the 'parser' gem for that
paradisaeidae has joined #ruby
ibouvousaime has quit [Ping timeout: 260 seconds]
<Papierkorb> >> require 'parser/current'; Parser::CurrentRuby.parse('1 + 2')
<ruboto> Papierkorb # => cannot load such file -- parser/current (LoadError) ...check link for more (https://eval.in/487671)
cmrussell has joined #ruby
<Papierkorb> yeah well
<cmrussell> hey guys
[Butch] has quit [Quit: I'm out . . .]
bronson has quit [Ping timeout: 265 seconds]
hesspark` has joined #ruby
eytanfb has joined #ruby
eytanfb has quit [Remote host closed the connection]
eytanfb has joined #ruby
<cmrussell> can anyone help me with an array question?
devbug has joined #ruby
<shevy> you must ask your question
dlitvak has quit [Ping timeout: 246 seconds]
<cmrussell> I have an array that asks for 3 numbers. I then want to double those numbers.
<cmrussell> Im very new
stannard has joined #ruby
<ruboto> cmrussell, 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
<shevy> cmrussell yes you can use .map method
<cmrussell> .map method is the best way
<cmrussell> ?
<shevy> so your code is already quite good; change nums.each do |dub| to .map
<shevy> or .map! respectively
<dfwqdfui2342> i have to alert bus users on when busses arrive so i have an array of times and days when it gets to 3 certen locations
<shevy> yes, it will return a new array; in your case, you simply double the element like * 2
<cmrussell> ok let me try that
tricon_ has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
<shevy> note that line 18 is nonsensical
<shevy> num * 2
<shevy> you don't do anything with that line
hessparker has quit [Ping timeout: 246 seconds]
<cmrussell> yeah, I just couldn't figure out what went there
hesspark` has quit [Ping timeout: 240 seconds]
<shevy> hehe
bronson has joined #ruby
stannard has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> cmrussell: Be advised that Kernel#gets essentially uses $stdin by default, so `$stdin.gets` is redundant.
bronson has joined #ruby
<cmrussell> I can't get it to run without it
<Ox0dea> Is that so?
<cmrussell> I very well could be doing something wrong
<cmrussell> I'm relaly new haha
<cmrussell> really*
sandstrom has quit [Quit: My computer has gone to sleep.]
mistermocha has joined #ruby
<Ox0dea> Also, your inputs are strings and you don't convert them to integers before doing math on them; that's one way to have a bad time.
<Ox0dea> >> '123' * 2
<ruboto> Ox0dea # => "123123" (https://eval.in/487679)
mistermocha has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
SCHAAP137 has quit [Remote host closed the connection]
govg has quit [Ping timeout: 246 seconds]
underplank has joined #ruby
hxegon is now known as hxegon_AFK
colleenmcguckin has joined #ruby
guacamole has quit []
gizless has joined #ruby
<dfwqdfui2342> Was wondering if ruby had a real time function/method that could display the array of time i have deppending on the location the user chooses
AKASkip has quit [Ping timeout: 265 seconds]
idefine has joined #ruby
skinux has left #ruby ["Leaving"]
jbrhbr1 has quit [Quit: Leaving.]
SCHAAP137 has joined #ruby
<underplank> Hi all, I have the following code with the error message below https://www.refheap.com/112919
<underplank> I know that that url is returning a 502 (i’ve pry’d it and it returns the correct response) but for somereason has_http_status doesnt seem to work?
<underplank> do I need to require something else to get that functionality?
gizmore has quit [Ping timeout: 240 seconds]
colleenmcguckin has quit [Client Quit]
<Ox0dea> dfwqdfui2342: Question unclear; advice stuck in purgatory.
colleenmcguckin has joined #ruby
colleenmcguckin has quit [Changing host]
colleenmcguckin has joined #ruby
colleenmcguckin is now known as guacamole
<dfwqdfui2342> Was wondering if ruby had a real time function/method that could display the array of time i have deppending on the location the user chooses
idefine has quit [Ping timeout: 260 seconds]
jbrhbr has joined #ruby
<dfwqdfui2342> does anyone have time to help me form a flow chart or pseudocode for a project
<Ox0dea> loop { repetition = clarity }
stannard has joined #ruby
InvGhost has quit [Ping timeout: 265 seconds]
cdg has quit [Remote host closed the connection]
<shevy> dfwqdfui2342 I don't even understand the question
djbkd has quit [Quit: My people need me...]
RickHull has joined #ruby
freerobby has joined #ruby
<dfwqdfui2342> like an alarm method
<dfwqdfui2342> i have a bus that stops at 3 locations
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfwqdfui2342> and i have an array of times
dkam has joined #ruby
<dfwqdfui2342> Im using rails
<adaedra> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dfwqdfui2342> do make the app OS compdable