<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?
<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>
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.
<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]
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]
<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
<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?
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.
<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
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]
<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>
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]
<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`.
<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]
<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
<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
<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
<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]
<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
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]
<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…]
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.
<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
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
<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