<toretore>
law, it's easier to help if you explain what you're trying to do in more detail
dlitvak_ has quit [Ping timeout: 272 seconds]
<law>
I have this big ol' ugly JSON object that I'm pulling from an API
dlitvak has quit [Ping timeout: 250 seconds]
<law>
I want Sensu to check certain keys/values in that json object, and graph others
<law>
I figure if I can get my ruby script to print out the data in 'perfdata' format (just "<check status> | key1=value1, key2=value2, keyN=valueN" format)
Rodya_ has joined #ruby
<law>
that would make my life much less hateful
betabet has quit [Ping timeout: 260 seconds]
<law>
so, in preparation for flattening the hash for printing certain keys/values, I want to build a new hash in a slightly different format
<toretore>
law, pretty = ugly.each_with_object{|station, result| if this && that; result[station['name']] = {this => that} end }
<toretore>
i think imperative is good enough to begin with, if you're new inject, dig and friends can be intimidating
<toretore>
better to get it working and the improve
IrishGringo has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore>
law, all you have to do is have an `if` that sanity checks and then populates the result if it passes
pawnbox has quit [Ping timeout: 245 seconds]
Brklyn has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
<toretore>
_Tariq: what are you trying to do?
<_Tariq>
toretore: I am building my own web server for a school project
<_Tariq>
and one of the assignments is that I need to find out the User Agent string
<_Tariq>
of the browser who is attending my webserver
<_Tariq>
so that I can track how many times that same browser sees my website
<_Tariq>
The thing is that I don't know how to even access the Request Headers
vishwa has joined #ruby
<_Tariq>
since I need those Request Headers do be able to know the User String
<toretore>
_Tariq: does it say to use a socket directly?
<havenwood>
_Tariq: What are the constraints? Do you have to? ^
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore>
_Tariq: parsing http is only really something you do if you're writing a parser, or as an educational excercise
<_Tariq>
It does not say to use a socket directly
whatsupdoc_ has joined #ruby
B1n4r10 has joined #ruby
<havenwood>
_Tariq: Are you familiar with Rack?
<toretore>
then you should probably be using an http library
<_Tariq>
The goal is to create a webserver though, havenwood, so I don't think Rack would work
<toretore>
that's what rack is for
<havenwood>
_Tariq: You can create a Rack webserver.
<_Tariq>
Okay, I got it, the only limitation seems to be that I should use TCPServer
kirillzh has joined #ruby
<havenwood>
_Tariq: ah
<toretore>
_Tariq: it depends on what ie expected from you
Timberwo|f has joined #ruby
<toretore>
if the point is to learn about sockets, then you should be using sockets, if the point is to learn how to make a web server then you should probably be using something like rack
nettoweb has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Remote host closed the connection]
<_Tariq>
I think the unstated implication in these instructions is that I would be using sockets to build something like Rack
<_Tariq>
I am afraid that if I use Rack, my assignment might become much more easier than it's supposed to be
<eam>
we're discussing why the line break sequence is \r\n and not just \n
moeabdol1 has quit [Quit: WeeChat 1.4]
<toretore>
i don't know.. frames seem simpler to me
<eam>
and it's because the very early internet stuff was essentially about virtualizing a tty over the packet switched networks
<VeryBewitching>
Because no one in the industry necessarily plays nicely?
<eam>
and the original tty stuff is all \r\n, a decision which is traced directly back to Emile Baudot in the 1800s
<toretore>
eam: that's a good point. it's just the way people were thinking back then
volty has quit [Quit: Konversation terminated!]
<toretore>
the tty legacy is visible everywhere
<eam>
the telegraph legacy, really
<VeryBewitching>
The print medium is hard to let go of.
aupadhye has joined #ruby
<toretore>
we shoud have moved on from that a few decades ago
<VeryBewitching>
This is OT though, so I'm going to hide from the bat.
<eam>
Baudot code became the International Telegraph Alphabet
<VeryBewitching>
Everything starts somewhere.
<eam>
assuming "\n" instead of honoring a flexible newline separator sequence is commonly called "unix brain damage" and ruby suffers from it in a few places
<Ox0dea>
"The pure and simple truth is rarely pure and never simple."
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mg^>
Depends on if ANSI.SYS is loaded or not :)
<eam>
I haven't used windows in a long time, but why wouldn't \r work?
<Ox0dea>
I guess it might.
dsilfen has joined #ruby
<eam>
that's kind of the point of the multibyte sequence -- each component can be invoked independently
<eam>
a better question is: how do you advance the line without resetting the cursor to the left margin on unix?
<Ox0dea>
\e[B :(
<eam>
ANSI!
<toretore>
lol
<Ox0dea>
Does \n just move down a row on Windows, then?
<eam>
I think it should -- I haven't used cmd.exe in decades
ja has joined #ruby
<VeryBewitching>
OT: I run Windows for games only. I have no other use for it.
<eam>
btw, re: RFC 2616, I'd suggest this is just an explicit statement of the implicit assumptions found in RFC 1 (which talked about virtualizing the tty over the internet)
<ja>
Hi peeps! I’m curoius: Has any of you ever used Float#phase? What’s the point? I find it very intriguing.
<eam>
it only took them 30 years to realize they should spell it out
jottr_ has quit [Ping timeout: 272 seconds]
<ja>
“Returns 0 if the value is positive, pi otherwise.” — Who would *ever* need something like that? It’s probably a math thing that I don’t understand.
<Ox0dea>
ja: Complex#phase is a little more interesting.
bruce_lee has quit [Read error: Connection reset by peer]
<Ox0dea>
Never mind.
moeabdol has joined #ruby
<havenwood>
ΔΘ
aryaching has joined #ruby
Guest93237 has quit [Quit: Guest93237]
kobain has quit [Ping timeout: 240 seconds]
<Ox0dea>
Someone's got their phaser set to stun.
<VeryBewitching>
Phaser.stun :Ox0dea
<ja>
Reading Complex#phase’s documentation only confused me further
<Ox0dea>
VeryBewitching: That really oughta be an instance method.
yoongkan_ has joined #ruby
<Ox0dea>
And I'm a perfectly valid numeric literal, thank you!
<VeryBewitching>
LOL
<VeryBewitching>
Maybe Phaser is a module.
<toretore>
Phaser.stun implies firing all pharers at once
<toretore>
or setting, i guess
<shevy>
I would append a ! because it excites us more
<Ox0dea>
ObjectSpace.each_object Phaser, &:stun
bronson has joined #ruby
<VeryBewitching>
Existence.all :phaser do |p|; p.stun 0x0dea; end
<VeryBewitching>
That would take a long time to run I bet.
<eam>
did you hear about the ensign and her troubles with the ship's security team?
aupadhye has joined #ruby
<eam>
no matter how hard they tried they couldn't phase her
<Darmani>
Ox0dea - I actually just started some office job today. It's not that difficult and I have my own room so I was looking for some stuff to read on my down time.
<Darmani>
If you must know.
<Ox0dea>
Er, does your room have a door...?
<Darmani>
yeah... Lol
<Ox0dea>
Does it close?
Brklyn has quit [Ping timeout: 250 seconds]
dsilfen has joined #ruby
<Darmani>
yeah.....
<Ox0dea>
Does it lock?
<Darmani>
what the fuck
<Darmani>
what color is it
<Darmani>
do you have air conditioning
<Darmani>
How many questions are you going to ask lol
jottr_ has quit [Ping timeout: 264 seconds]
User458764 has joined #ruby
<Ox0dea>
No further questions.
ICantCook has quit [Read error: Connection reset by peer]
nbdy has joined #ruby
braincrash has joined #ruby
<Darmani>
Ox0dea - I was actually pretty tired after work today. I didn't even want to read or do anything with programming. But I feel like I should at least do a little something everyday...
<Darmani>
Otherwise everything I've gained up until this point will have been a waste
Rodya_ has quit [Remote host closed the connection]
oetjenj has joined #ruby
<Darmani>
Here's the problem with that theory. It's that I have not committed myself to any other path (as far as career-wise). Nor do I have any inclination to begin to learn something again from square one. I can do this. I mean the concepts are understandable, what I lack is the connections. Yeah they might not come to me as easily as they came to you but I can learn them. I know that much...
<Darmani>
Ox0dea - Perhaps you're right. But nonetheless I won't give up, not yet anyway.
zast has quit [Ping timeout: 252 seconds]
k13nox has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
<Darmani>
But thank you for that wonderful tidbit. The encouragement and empathy that you offer me is truly astonishing.
Darmani has quit [Quit: Page closed]
moeabdol3 has joined #ruby
krobzaur_ has joined #ruby
moeabdol2 has quit [Ping timeout: 240 seconds]
nchambers is now known as ncampers
zast has joined #ruby
arthropododo has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 276 seconds]
arthropodado has joined #ruby
akaiiro has quit [Quit: Leaving]
yoongkan_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dsilfen has quit [Read error: Connection reset by peer]
dsilfen has joined #ruby
william3 has quit [Remote host closed the connection]
yoongkan_ has quit [Ping timeout: 240 seconds]
arthropodado has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
meves has quit [Remote host closed the connection]
meves has joined #ruby
meves_ has joined #ruby
danielwzd has joined #ruby
jbrhbr has joined #ruby
AnoHito has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
meves has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 276 seconds]
jbrhbr has quit [Ping timeout: 240 seconds]
davedev24 has quit [Client Quit]
jbrhbr has joined #ruby
Mia has joined #ruby
arthropodado has joined #ruby
krz has quit [Read error: Connection reset by peer]
graffix222 has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
Sucks has quit [Remote host closed the connection]
tuelz1 has joined #ruby
dtscode has quit [Changing host]
dtscode has joined #ruby
meves_ has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
tuelz1 has quit [Ping timeout: 260 seconds]
Sucks has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
poguez_ has quit [Quit: Connection closed for inactivity]
toretore has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
s00pcan has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
krz has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
dsilfen has joined #ruby
kaka__ has quit [Ping timeout: 240 seconds]
kaka__ has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
elifoster has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
ta has joined #ruby
rkazak has joined #ruby
dopie has quit [Quit: Lost terminal]
jbrhbr has quit [Quit: Leaving.]
dsilfen has quit [Read error: Connection reset by peer]
rkazak has quit [Client Quit]
barhum2013 has quit [Quit: barhum2013]
Ebok has joined #ruby
vdamewood has joined #ruby
dsilfen has joined #ruby
ta has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
arup_r has joined #ruby
Sucks has quit [Remote host closed the connection]
barhum2013 has joined #ruby
ZeeNoodleyGamer has quit [Changing host]
ZeeNoodleyGamer has joined #ruby
ZeeNoodleyGamer is now known as kspencer
yfeldblum has joined #ruby
nisstyre has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Sucks has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
yfeldblum has joined #ruby
moei has joined #ruby
dtscode is now known as 64MAAYGZ0
saneax_AFK is now known as saneax
c355e3b has quit [Quit: Connection closed for inactivity]
64MAAYGZ0 is now known as mniip
vishwa has left #ruby [#ruby]
ta has joined #ruby
elifoster has joined #ruby
mniip has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
zapata has quit [Quit: WeeChat 1.3]
phredus has quit [Remote host closed the connection]
phredus_ has joined #ruby
nchambers has joined #ruby
krz has joined #ruby
Eiam_ has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
juddey has quit [Ping timeout: 256 seconds]
hxegon has quit [Quit: BRB]
ur5us has quit [Remote host closed the connection]
dsilfen has quit [Read error: Connection reset by peer]
zapata has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
moeabdol1 has joined #ruby
k13nox has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sucks has joined #ruby
terminalrecluse has joined #ruby
dsilfen has joined #ruby
iateadonut has left #ruby [#ruby]
danielwzd has quit [Quit: Leaving]
k13nox has quit [Ping timeout: 240 seconds]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nchambers is now known as I
I is now known as Guest72381
moeabdol2 has joined #ruby
Guest72381 is now known as nchambers
jgt2 has joined #ruby
moeabdol1 has quit [Ping timeout: 250 seconds]
iateadonut has joined #ruby
PedramT has joined #ruby
tuelz1 has joined #ruby
iateadonut has left #ruby [#ruby]
stryek_ has quit [Ping timeout: 240 seconds]
jgt2 has quit [Ping timeout: 248 seconds]
jam_ has quit [Remote host closed the connection]
mdw has joined #ruby
Axy has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
tuelz1 has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
dsilfen has quit [Read error: Connection reset by peer]
Abrin has quit [Ping timeout: 245 seconds]
mdw has quit [Client Quit]
aibot_ has quit [Ping timeout: 260 seconds]
jottr_ has quit [Ping timeout: 250 seconds]
govg has joined #ruby
n00bdev has joined #ruby
dsilfen has joined #ruby
stryek has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
graffix222 has quit [Ping timeout: 250 seconds]
rkazak has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
lemur has joined #ruby
PedramT has joined #ruby
mary5030 has joined #ruby
ur5us has joined #ruby
PedramT has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 252 seconds]
govg_ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
dsilfen has quit [Read error: Connection reset by peer]
Sucks has quit [Remote host closed the connection]
yoongkan_ has joined #ruby
graffix222 has joined #ruby
ur5us has joined #ruby
PedramT has joined #ruby
Musashi007 has joined #ruby
ramfjord has joined #ruby
speakingcode has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
speakingcode has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
yoongkan_ has quit [Ping timeout: 240 seconds]
dsilfen has joined #ruby
at46 has joined #ruby
djbkd has quit [Quit: My people need me...]
psy_ has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
atmosx has joined #ruby
user083 has quit [Ping timeout: 250 seconds]
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
Musashi007 has quit [Quit: Musashi007]
lessless has quit [Ping timeout: 248 seconds]
ec is now known as ELLIOTTCABLE
hahuang65 has joined #ruby
djbkd has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
william3 has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
william3 has quit [Ping timeout: 250 seconds]
at46 has quit [Remote host closed the connection]
MrSamuel has joined #ruby
lemur is now known as baweaver
claw has quit [Ping timeout: 250 seconds]
kaka__ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
TomyLobo has joined #ruby
claw has joined #ruby
dsilfen has joined #ruby
last_staff has joined #ruby
last_staff has quit [Client Quit]
kwesidev has joined #ruby
troulouliou_div2 has joined #ruby
kwesidev has left #ruby [#ruby]
tuelz1 has joined #ruby
solars has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
Guest84191 has joined #ruby
stevemac_ has quit [Remote host closed the connection]
tuelz1 has quit [Ping timeout: 252 seconds]
PedramT has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has joined #ruby
PedramT has joined #ruby
psy_ has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
zarubin has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
mhoungbo has joined #ruby
infra-red has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bjmllr has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 250 seconds]
bjmllr has joined #ruby
dsilfen has joined #ruby
symm- has joined #ruby
sandstrom has joined #ruby
PedramT has quit [Read error: Connection reset by peer]
PedramT_ has joined #ruby
scepticulous has joined #ruby
PedramT has joined #ruby
PedramT_ has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
nodejunkie has joined #ruby
mondok has joined #ruby
elifoster has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
enkristoffer has left #ruby ["❤"]
andikr has joined #ruby
wethu has joined #ruby
infra-red has quit [Remote host closed the connection]
dsilfen has quit [Read error: Connection reset by peer]
infra-red has joined #ruby
<wethu>
Hey, how does :[] work? As in, I know the effects of defining [](property) and []=(property, value), I just would like to know how to get more info on the internals of how the work being called like object[:accessor] and object[:mutator]= "foo", is there a term that defines them special that i could google for ?
william3 has joined #ruby
aufi has joined #ruby
TomyLobo has quit [Ping timeout: 256 seconds]
<heftig>
wethu: it's just transformed into a method call at syntax level
phredus_ has quit [Quit: No Ping reply in 180 seconds.]
<apeiros>
voidDotClass: make a full chain of logouts. that is: `p restaurant: restaurant` before the if, add a `p :creating` in the if, and a `p updating: restaurant` in the else
<apeiros>
I'm pretty sure you'll figure from there what's going on
dlitvak has quit [Ping timeout: 248 seconds]
n00bdev has quit [Remote host closed the connection]
betabet has joined #ruby
fumk has quit [Remote host closed the connection]
<voidDotClass>
looks like the restaurant is not nil before the if
<voidDotClass>
but on entering the else, it becomes nil
<jhass>
voidDotClass: is restaurant a local variable or a method call (like an attr_reader/accessor)?
<voidDotClass>
looks like its due to restaurant= and not self.restaurant=
<voidDotClass>
inside the if
<voidDotClass>
but that's retarded because the if is not even called
yoongkang has quit []
william3 has quit [Remote host closed the connection]
dsilfen has quit [Read error: Connection reset by peer]
yoongkang has joined #ruby
fumk has joined #ruby
william3 has joined #ruby
<jhass>
ruby creates locals when seeing an assignment, prior running the code
<jhass>
their default value is nil
<voidDotClass>
very intuitive
futilegames has quit [Quit: futilegames]
Bloomer has quit [Remote host closed the connection]
ldnunes has joined #ruby
Mirza has joined #ruby
dsilfen has joined #ruby
x0f has joined #ruby
mhoungbo has quit [Ping timeout: 240 seconds]
Ebok has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
AlexJakeGreen has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
Brklyn has joined #ruby
PedramT has quit [Remote host closed the connection]
agit0 has joined #ruby
Azulinho has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
PlasmaStar has joined #ruby
Cohedrin has quit [Ping timeout: 240 seconds]
trinaldi has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Hounddog has quit [Remote host closed the connection]
mhoungbo has joined #ruby
Brklyn has quit [Ping timeout: 248 seconds]
Mirza has left #ruby [#ruby]
astrofog has quit [Quit: Quite]
akem has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
tvw has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
bjensen82 has joined #ruby
agit0 has quit [Quit: I'm off]
<bjensen82>
lets say I have an array a = [1,54,2,9,44,22,999] how would you guys remove for example all the odd numbers and append it afterwards to the list?
araujo has quit [Max SendQ exceeded]
agit0 has joined #ruby
yoongkang has joined #ruby
araujo has joined #ruby
aryaching has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has quit [Max SendQ exceeded]
Yeomra has joined #ruby
bjensen82 has quit [Read error: Connection reset by peer]
araujo has joined #ruby
<jhass>
with more patience than 3 minutes
william3 has quit [Remote host closed the connection]
dsilfen has quit [Read error: Connection reset by peer]
<_mirko_>
I have trouble using gems. Adding PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH" to .zshrc doesn't solve the problem. I'm running arch linux. Any idea?
skade has joined #ruby
<shevy>
ah that is for jhass :)
saneax is now known as saneax_AFK
sftrabbit has quit [Quit: sftrabbit]
ropeney has joined #ruby
brendan- has quit [Ping timeout: 248 seconds]
PedramT has joined #ruby
<_mirko_>
It's weird I installed sass and in gem list output there is no sass.
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
ropeney has quit [Client Quit]
william3 has joined #ruby
n00bdev has joined #ruby
<shevy>
do you have more than one gem or do you install into your home dir? can you put the "gem env" output on gist and say how you installed ruby
freerobby has joined #ruby
kalopsian has joined #ruby
chipotle has quit [Quit: cheerio]
freerobby has quit [Client Quit]
_mirko_ has quit [Quit: WeeChat 1.4]
ferr has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
n00bdev has quit [Ping timeout: 250 seconds]
dsilfen has quit [Read error: Connection reset by peer]
dcunit3d has quit [Ping timeout: 272 seconds]
krz has joined #ruby
brendan- has joined #ruby
<SebastianThorn>
shevy: haha, i do that mistake all the time, "what the ****, i just installed that ****, why cant i use it"
wethu has quit [Quit: This computer has gone to sleep]
adgtl has quit [Remote host closed the connection]
_mirko_ has joined #ruby
<_mirko_>
shevy: Thanks, I got it working. I needed to restart tmux process not just terminal emulator.
jottr has joined #ruby
adgtl has joined #ruby
Kero_ has joined #ruby
evidex_ has joined #ruby
ta_ has joined #ruby
dsilfen has joined #ruby
yarden_ has joined #ruby
kerunaru has quit [Ping timeout: 250 seconds]
digidog_ has joined #ruby
mostlybadfly_ has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
Kero has quit [Ping timeout: 240 seconds]
sarlalian has quit [Ping timeout: 240 seconds]
agit0 has quit [Ping timeout: 240 seconds]
vqrs has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 240 seconds]
digidog has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
Guest52305 has quit [Ping timeout: 240 seconds]
flughafen_ has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
SirCmpwn has joined #ruby
mostlybadfly_ is now known as mostlybadfly
vqrs has joined #ruby
Pisuke has quit [Quit: WeeChat 1.4-dev]
<potsmoker>
will knowing ruby and looking at the metasploit source help me to become a hacker?
flughafen_ has joined #ruby
Musashi007 has joined #ruby
william3 has joined #ruby
sarlalian has joined #ruby
adgtl has quit [Ping timeout: 272 seconds]
brendan- has quit [Ping timeout: 248 seconds]
ropeney has joined #ruby
<ddv>
potsmoker: lol
<potsmoker>
ddv: lol?
trinaldi has quit [Quit: WeeChat 1.5-dev]
<potsmoker>
ddv: not a yes or a no or even a maybe?
<ddv>
potsmoker: the answer is no
<potsmoker>
ddv: well thats constructive.
<potsmoker>
alright thanks.
huyderman has quit [Ping timeout: 250 seconds]
lyoshajapan has joined #ruby
yarden_ has quit [Quit: Leaving]
pdoherty has joined #ruby
lipoqil has joined #ruby
<SebastianThorn>
well, any language would help to become a hacker?
william3 has quit [Ping timeout: 240 seconds]
benhuda has joined #ruby
carella_ has joined #ruby
<shevy>
hmm... a nick called "potsmoker" ... asking about metasploit ...
<potsmoker>
yeah this computer shit is getting really easy
<potsmoker>
even a skiddie can do it
<potsmoker>
not that pot has anything to do with that, though
Averna has quit [Quit: Ex-Chat]
<potsmoker>
but would learning Ruby, and so many metasploit modules being written in ruby, what would that allow a hacker to do
dsilfen has quit [Read error: Connection reset by peer]
<potsmoker>
not much besides reading some modules that could be rewritten in any language probably.
zapata has quit [Ping timeout: 240 seconds]
<shevy>
smoke pot, get rich
lyoshajapan has quit [Ping timeout: 250 seconds]
<potsmoker>
right?
<potsmoker>
oh if only metasploit was written in python.
<potsmoker>
Why wasnt it?
huyderman has joined #ruby
<shevy>
metasploit would be useless in any programming language
fsapo has quit [Remote host closed the connection]
brendan- has joined #ruby
<ddv>
potsmoker: without understanding the software the exploit is exploiting you won't learn anything
<potsmoker>
shevy its not about being useless, its about the sweet spot
<Burgestrand>
It will help you become a hacker.
<potsmoker>
what advantages does it have from a venn diagram point of view
<potsmoker>
what aspects does it encompass as opposed to other combinations of technology
tuelz1 has joined #ruby
<shevy>
you are a philosopher potsmoker
<potsmoker>
no im a wannabe-1337-haxxor
<potsmoker>
lmk?
<Burgestrand>
gs
<shevy>
you don't code
Yeomra has quit [Ping timeout: 240 seconds]
<potsmoker>
i haven't been coding the past 10 years?
<potsmoker>
you mean c, c++, objective c, c#, java, php, python, ruby, Go, javascript etc aren't code?
<shevy>
you excel at chaining words together
<potsmoker>
I can understand dissing visual basic
rashmirathi has joined #ruby
<potsmoker>
but all those?
<potsmoker>
you excel at spitting jibberish.
<potsmoker>
so whos cooler?
<potsmoker>
I excel at many things, faggot.
Yeomra has joined #ruby
<shevy>
:)
<potsmoker>
you excel at faggotry.
<potsmoker>
keep it to yourself.
<potsmoker>
kthx
dsilfen has joined #ruby
<ddv>
potsmoker: lol php
<Burgestrand>
apeiros sup?
<potsmoker>
people on the internet care so much about presentation
<potsmoker>
illusions are for losers
<potsmoker>
I wonder how con artists can feel good about themselves after using persuasion, manipulation, and deception to get what they want.
<ddv>
potsmoker: are you 12 or something?
<potsmoker>
you think you can sprinkle shitty sprinkles on something great and make it shitty
<potsmoker>
your sprinkles don't control everything.
<potsmoker>
you think you can control everyones perspective by mocking people?
<potsmoker>
thats childish.
<potsmoker>
stop that.
tuelz1 has quit [Ping timeout: 250 seconds]
anisha has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
<potsmoker>
well thanks for making yourselves look stupid
<potsmoker>
...to an expert.
blackmesa has joined #ruby
* potsmoker
scratches head
ElFerna_ has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
<Burgestrand>
potsmoker sup?
* potsmoker
rips the pipe
<shevy>
potsmoker be patient and wait for the ops man
* potsmoker
codes beast mode
dlitvak has quit [Remote host closed the connection]
<potsmoker>
shevy: I like to ban evade channels that troll me I'm bored.
<potsmoker>
er
<potsmoker>
When I'm bored.
jottr has quit [Read error: Connection reset by peer]
<potsmoker>
some people act like changing their IP is impossible.
<Burgestrand>
Can't you troll in a fun way instead. :(
<potsmoker>
like theres not a million public servers out there to bounce through.
<potsmoker>
not when idiots antagonize me
jottr has joined #ruby
<potsmoker>
i'm forced to stoop down to their level of stupidity
<potsmoker>
of course.
joonty has quit [Ping timeout: 240 seconds]
<Burgestrand>
I mean, with more style.
<potsmoker>
people are so childish when they cling to the status quo.
<potsmoker>
you want me to be more like this one thing that you've seen before.
<potsmoker>
its silly
<potsmoker>
just accept that every individual is a bit different.
<Burgestrand>
I mean, anybody can spout insults or spam, where's the fun in that.
<potsmoker>
any one can also accurately express what they have to say.
<potsmoker>
but someone they don't do it that often
<potsmoker>
they just troll like faggots and expect to get a reaction out of people by being a smart ass
<potsmoker>
using sarcasm etc
<potsmoker>
how about this: "lets just be honest, lets just be real"
ElFerna_ has joined #ruby
<Burgestrand>
Hang loose.
<potsmoker>
indeed.
* potsmoker
does the hang loose hand sign
sepp2k has joined #ruby
<Burgestrand>
I would once like to have a troll completely blow the channel's mind, like those epic trolls you only read about.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Burgestrand>
Something smart that you don't see coming until it's too late and hits you in the face.
<shevy>
metasploit just is not good troll training material
yfeldblum has quit [Ping timeout: 240 seconds]
<potsmoker>
I'm not a big connoisseur of this "trolling" you speak of.
zapata has joined #ruby
<potsmoker>
I prefer friendly conversations.
<potsmoker>
but I despise idiocy just as much as the next man.
<potsmoker>
of course
<Burgestrand>
You're just arrogant.
<potsmoker>
lol
<Burgestrand>
Like me, so I kind of get it!
<potsmoker>
I choose not to let people broadcast illusions.
<potsmoker>
I break right through them.
<potsmoker>
I cut through bullshit with an exacto blade, metaphorically
<potsmoker>
or so I've been told.
zzz has joined #ruby
<potsmoker>
I like to get right to the bottom of things,
<potsmoker>
and teasing often distracts from that.
<potsmoker>
lmk?
zzz is now known as Guest11070
PedramT has quit [Remote host closed the connection]
vqrs has quit [Ping timeout: 245 seconds]
<potsmoker>
but I also am aware that there is no reason we all can't get along.
<Burgestrand>
What kind of illusions?
<potsmoker>
misleading ones
Xeago has quit [Remote host closed the connection]
<Burgestrand>
Like the one you're trying to give me?
vqrs has joined #ruby
<potsmoker>
no, that is an illusion.
<potsmoker>
:P
<potsmoker>
see why they are unhelpful?
<potsmoker>
I knew you would.
<Burgestrand>
I'm clever that way.
<potsmoker>
You're a fast learner, Burgestrand.
ElFerna_ has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
<potsmoker>
I like you.
<Burgestrand>
I don't like you.
<potsmoker>
Thats because I just started using illusions to demonstrate how foolish they are.
PedramT has joined #ruby
<potsmoker>
and as you can see, they can be fairly annoying.
blackmesa has quit [Ping timeout: 245 seconds]
<Burgestrand>
No, I think you're too much like me but slightly meaner.
<shevy>
potsmoker simply is bored
ElFerna_ has joined #ruby
<Burgestrand>
I hope not, I'm having a blast.
<potsmoker>
Which is why I don't appreciate people creating an illusion that LEARNING about metasploit, or having the name "potsmoker" has nothing to do with... Me.
<potsmoker>
namely shevy
<potsmoker>
and yes I am very bored.
<potsmoker>
and bored.'
mooru has joined #ruby
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
<potsmoker>
so there I hope we can all understand the context of this conversation now.
hobodave has joined #ruby
<Burgestrand>
You'll get there soon.
<potsmoker>
That is an illusion.
william3 has joined #ruby
radgeRayden has joined #ruby
Pupeno has joined #ruby
<potsmoker>
"Cuz everytime I try to go where I really want - to -be, its already where I am... CUZ I FUCKIN NEED TO LEAVE"
<Burgestrand>
It would've been, but I liked the future the way it looked.
arian0n has quit [Quit: WeeChat 1.1.1]
dlitvak has joined #ruby
<Burgestrand>
This was fun. Please don't be mean, you can troll and still be nice to others, it just takes more skill.
<potsmoker>
the kabucha mushroom people, sitting around all day.
<potsmoker>
who can believe you? who can believe you?
dsilfen has joined #ruby
<potsmoker>
ok.
<potsmoker>
</troll>
<potsmoker>
see, I code.
<potsmoker>
durp
pdoherty has quit [Ping timeout: 276 seconds]
<dajobat>
Afternoon all.
arian0n has joined #ruby
sepp2k has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
blackmesa has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<potsmoker>
ddv: thats a good bit of wisdom, about understand the software that the exploit is exploiting.
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
sepp2k has joined #ruby
glcx has joined #ruby
glcx has joined #ruby
Xeago has quit [Remote host closed the connection]
rashmirathi has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
theRealAlexz has quit [Ping timeout: 272 seconds]
arup_r has left #ruby [#ruby]
<ddv>
?offtopic potsmoker
<ruby[bot]>
potsmoker: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
sonOfRa has quit [Remote host closed the connection]
<potsmoker>
ok. sorry for the offtopicness.
theRealAlexz has joined #ruby
Jardayn has joined #ruby
<potsmoker>
If you could please direct me to a channel where they talk about this?
skingsbu has joined #ruby
sonOfRa has joined #ruby
mfb2 has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
<dajobat>
I believe that message does so
hxegon has joined #ruby
<shevy>
:D
sepp2k has quit [Ping timeout: 240 seconds]
ferr has quit [Ping timeout: 260 seconds]
skade has joined #ruby
Shaboum has joined #ruby
IrishGringo has joined #ruby
_mirko_ has quit [Quit: WeeChat 1.4]
<potsmoker>
no you are generalising a bit too much
<potsmoker>
I want a chat room specifically focused on that subject.
pdoherty has joined #ruby
<dajobat>
You should discuss this further in a channel for finding channels.
Xeago has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
<EdwardIII>
ljarvis: even inside a class method (you call 'em a class method in ruby, right?)
aegis3121 has joined #ruby
<ljarvis>
EdwardIII: self is always implied, you should only use it when you want to be explicit for some reason (i.e variable name conflicts, or keywords)
shredding has joined #ruby
joonty has joined #ruby
<ljarvis>
or use it and be explicit, it's not a written rule; it's a style preference
<EdwardIII>
ljarvis: but isn't def self.name the way to define a class method? as opposed to def name for instance methods?
dsilfen has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
dlitvak_ has joined #ruby
<ljarvis>
EdwardIII: yes, and inside the class method self is the class level
<EdwardIII>
ok neat
tuelz1 has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
<dajobat>
EdwardIII: You could try using the Eigenclass (horrible name) to define your class methods instead, I think that's used more often.
<dajobat>
Though I may be wrong
<EdwardIII>
Eigenclass doesn't sound very japanese heh
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
treehug88 has joined #ruby
sftrabbit has joined #ruby
pink_vampire has joined #ruby
zapata has joined #ruby
ESpiney has joined #ruby
Xeago has quit [Remote host closed the connection]
sepp2k has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
eugenekgn has joined #ruby
arup_r has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
aegis3121 has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
PedramT has quit [Remote host closed the connection]
dsilfen has joined #ruby
jam_ has joined #ruby
<ljarvis>
EdwardIII: yes, I would move the class methods above initialize though, but again that's a style preference (class methods first, instance methods to follow)
<eugenekgn>
Hi there, I am new to Ruby world as I've been .Net developer for about 6 years and after looking at my teams code base I am really questioning what is claimed to be "the best ruby practices" i.e I am not sure how a I feel about place queries in a controller given that's part of business logic which should be hidden in (service or model), why are models so FAT (This is clear violation of (S) in SOLID -- is there a noition of PLAIN OLD RUBY OBJECT? Should
<eugenekgn>
there really be logic in Rabl files -- why not just have ViewModel that sends back the data with prescribe schema?
PedramT has joined #ruby
Demetrio has joined #ruby
<Demetrio>
Morning!
hamed_r has joined #ruby
baweaver has joined #ruby
<ljarvis>
eugenekgn: the query logic should be inside of the model, but the query itself is obviously in the controller
<eugenekgn>
right so you should not have Model.find(id: id) correct?
<Demetrio>
I'm not used to working in Ruby, so bare with me, but can someone show me how to add an option to this code to use TLSv1? I'm stumped.
<ljarvis>
eugenekgn: that in a controller is fine
<eugenekgn>
but that would hit the db in a way?
Demetrio has quit [Read error: Connection reset by peer]
<ljarvis>
of course, why is it bad to do that in a controller?
platzhirsch has joined #ruby
cdg has joined #ruby
Demetrio has joined #ruby
dexter__ has quit [Read error: Connection reset by peer]
<ljarvis>
controllers are meant to execute business logic
<ljarvis>
application logic, rather
Bloomer has joined #ruby
<ljarvis>
which includes making queries to the business end (a model)
jam_ has quit [Ping timeout: 272 seconds]
duckpuppy has joined #ruby
<ljarvis>
which is exactly what Model.find does
sgambino has joined #ruby
<eugenekgn>
because I want my business logic to live inside some object given that manages business rules so if the query becomes more complex it is easy to change it in one central place
<Demetrio>
I keep getting SSL issues using this gem. I was adviced that I add an option to use TLSv12.
<Demetrio>
I have no idea how. Can someone help me?
dexter__ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<ljarvis>
eugenekgn: if it becomes more complex then it belongs in a Model. Your example is not complex and belongs in the controller
<ljarvis>
eugenekgn: I don't understand the question
<eugenekgn>
why not stick to the rule that keep queries out of controllers?
vondruch has quit [Quit: Ex-Chat]
Bloodshot has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
<ljarvis>
eugenekgn: so how would you abstract this?: Model.find(id)
<EdwardIII>
ljarvis: cool, thanks for your feedback
<eugenekgn>
meaning how do you determine which queries should live in controller and which should not
Mon_Ouie has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
Bloodshot has quit [Client Quit]
andikr has quit [Remote host closed the connection]
joonty has joined #ruby
<ljarvis>
eugenekgn: right yeah, use judgement. For me, when you start doing JOINs and add conditions then that belongs in the model and exposed as a class method
<eugenekgn>
Model.get_element_by_id(id) // so if your db blows up the fallback is in the Model, you're handling null case in the model, and you test your model for something very specific and your controller only for hTTP codes
<ljarvis>
and when it gets even more complex, then a service object
<eugenekgn>
So is there a concept for PORO?
dlitvak has quit [Ping timeout: 240 seconds]
<EdwardIII>
hmm you want something like unit-of-work instead of activerecord by the sounds of it
<dajobat>
ljarvis: plain old ruby object. I think he's trying to make it similar to the java POJO ideal
jottr has quit [Ping timeout: 245 seconds]
<ljarvis>
right i see
<ljarvis>
i mean, I don't agree with that blog post
<Demetrio>
ljarvis, while I appreciate the LMGTFY, I'm at a loss as to how and where to implement this.
<ljarvis>
so it's really your own judgement
kalopsian has joined #ruby
JDiPierro has joined #ruby
Vitor_ has joined #ruby
<ljarvis>
Demetrio: yeah it seems like it's non-trivial I'm afraid, so I was hoping that SO answer might steer in the right direction. Otherwise I have no ideas
<eugenekgn>
@ljarvis have you read the article carefully and considered the points that the has author made?
vondruch has joined #ruby
<ljarvis>
yes I've read this before
Stratus3D has joined #ruby
<Demetrio>
I appreciate the help all the same, thanks ljarvis.
rkazak has quit [Quit: Sleep.....ing....]
kerunaru has quit [Ping timeout: 272 seconds]
<ljarvis>
eugenekgn: I'm a fan of plain Ruby objects, but it's easy to add abstractions to *all the things*
<EdwardIII>
imo UoW is more 'correct' but ActiveRecord is probably more useful
<ljarvis>
the examples are just bad, imo
<EdwardIII>
i've done a lot with DIC and UoW stuff lately on symfony and it's just... so, so clunky
<EdwardIII>
ror, django & laravel are not really about that from what i've learned heh
sandstrom has quit [Quit: My computer has gone to sleep.]
dsilfen has quit [Read error: Connection reset by peer]
PedramT has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 264 seconds]
flughafen_ has quit [Quit: WeeChat 1.3]
n00bdev has joined #ruby
roshanavand has joined #ruby
<Stratus3D>
Can someone help me with an issue I am having with `to_i`? I have a string (pp outputs "\u00004\u00009\u00000\u0000" when I print it), that when I call .to_i on it to_i returns 0, which is not what I expected
<eugenekgn>
are you sure it's a string not some other object?
<Stratus3D>
can anyone explain why this is happening and what I can do to convert this UTF-8 string to the integer 490?
<Stratus3D>
eugenekgn: just re-ran my script and printed the class of the variable, it's String
dsilfen has joined #ruby
platzhirsch has left #ruby [#ruby]
<Stratus3D>
which is what I expect, since this is coming from a text file
VeryBewitching has joined #ruby
<eugenekgn>
it's a string of bytes
krobzaur_ has joined #ruby
<eugenekgn>
it should probably be a stream
<VeryBewitching>
Good morning folks.
<dajobat>
Stratus3D: What method are you using to read the file?
atomical has joined #ruby
<dajobat>
Stratus3D: If you're using the IO#read method, then that reads out bytes. If you want to read out strings, use the readlines method instead.
william3 has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
bMalum has joined #ruby
n00bdev has quit [Ping timeout: 260 seconds]
TomPeed has joined #ruby
dlitvak has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
victortyau has joined #ruby
<Stratus3D>
dajobat: file = File.open(file, "rb")
<Stratus3D>
text = file.read
mrmargolis has joined #ruby
<Stratus3D>
file.close
<Stratus3D>
I think that should return a string
centrx has joined #ruby
<EdwardIII>
sorry for the basic question but how do i make my object accessible like you'd access a hash? e.g. myprop['thingy']
PedramT has quit [Remote host closed the connection]
chipotle has joined #ruby
barhum2013 has quit [Quit: barhum2013]
PedramT has joined #ruby
<ljarvis>
Stratus3D: why are you reading in binmode?
<EdwardIII>
i see i can do def [] but that seems more for arrays?
<Demetrio>
Sorry for the pedant mode, dajobat, but using the first two code examples in his article, are those supposed to run in irb? I'm on windows and they return undefined constants.
tuelz1 has quit [Ping timeout: 256 seconds]
PedramT has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
dlitvak has joined #ruby
<dajobat>
Demetrio: The requires?
<Demetrio>
That and the OpenSSL. I keep getting back errors when I try them.
<dajobat>
Interesting. I'm running IRB on windows as well and it works fine. What ruby installation do you have?
<dajobat>
What does your RUBY_VERSION give you?
vondruch has quit [Ping timeout: 250 seconds]
kerunaru has joined #ruby
chipotle has quit [Quit: cheerio]
kerunaru has quit [Client Quit]
PedramT has quit [Remote host closed the connection]
william3 has quit [Read error: Connection reset by peer]
william3_ has joined #ruby
<Demetrio>
I can't run that. I just used ruby -v in Git Bash and I get 2.2.3
<Demetrio>
I'm used RubyInstaller if that matters.
iamvery has joined #ruby
iamvery has quit [Client Quit]
sankaber has joined #ruby
Kero_ is now known as Kero
dlitvak has quit [Ping timeout: 250 seconds]
Bloomer has quit [Remote host closed the connection]
<dajobat>
Hm. That's strange. Sounds like your irb is doing something a little weird.
sankaber has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopamean_ has quit [Ping timeout: 248 seconds]
<Demetrio>
Oh, that's great to hear then. :S
sankaber has joined #ruby
<dajobat>
Yeah. I assume it's a new session of IRB?
arup_r has left #ruby [#ruby]
moeabdol has joined #ruby
polishdub has joined #ruby
<Demetrio>
If you mean I opened a new window, yeah.
PedramT has joined #ruby
<ddv>
Demetrio: doing any ruby or rails development on Windows will be pain
<Demetrio>
Should I be running ruby within irb? Not to ask for a whole course on it, but..
<Demetrio>
ddv, I'm learning this. I'm just trying to run Jekyll so I can redevelop my github pages site. XD
meves has joined #ruby
<dajobat>
Nah, irb drops you straight into a ruby session
<ddv>
Demetrio: use linux or osx
<Demetrio>
ddv I'm coming to Windows from Mac actually.
<Demetrio>
My old machine was getting slow and I needed something with some more power behind it. Getting into C#.
PedramT has quit [Remote host closed the connection]
<Demetrio>
dajobat, what are some basic ruby commands to test.
<ddv>
Demetrio: well Windows is just a weird choice for ruby/rails development
dlitvak has joined #ruby
darkxploit has joined #ruby
mauricio has quit [Remote host closed the connection]
<dajobat>
Demetrio: str = "hello"
<dajobat>
puts str
<dajobat>
see if that outputs hello
<Demetrio>
ddv, I'm sure, but again, I'm not doing a lot of ruby dev.
<dajobat>
also, do Gem.path
dsilfen has quit [Read error: Connection reset by peer]
<Demetrio>
Alright, I'm getting outputs here.
<dajobat>
I think you might have an old version of ruby installed or something
Brklyn has joined #ruby
barhum2013 has joined #ruby
<Demetrio>
2.2.0 according to this.
<dajobat>
Demetrio: Well damn.
<Demetrio>
Might that be my problem then?
<dajobat>
No, that sounds fine.
moeabdol has quit [Ping timeout: 272 seconds]
<Demetrio>
Is this something that would run in irb? OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ssl_version]
dhollinger has joined #ruby
<Demetrio>
Would that pull up the ssl_version?
<dajobat>
only if the require 'openssl' has run, because it's using a class from that module.
akem has quit [Remote host closed the connection]
jtzero1 has joined #ruby
jtzero1 has left #ruby [#ruby]
jtzero1 has joined #ruby
<Demetrio>
Alright, there we go. I was duncing it.
dsilfen has joined #ruby
<Demetrio>
Apparently, my params are set to SSLv32.
<Demetrio>
SSLv23*
<dajobat>
Had you missed out the quotation marks around the module names?
s00pcan has joined #ruby
vondruch has joined #ruby
<dajobat>
Cool, in that case that blog post should enable you to set them to TLS
Burgestrand has joined #ruby
infra-red has quit [Remote host closed the connection]
lipoqil has quit [Quit: Connection closed for inactivity]
arup_r has joined #ruby
<Demetrio>
No dice.
<Demetrio>
The only difference is that if I use `ssl_version: :SSLv3` it gives me a handshake failure.
sanguisdex has joined #ruby
treehug88 has quit [Read error: Connection reset by peer]
<sanguisdex>
can some one point me to a rake algorithm that will allow me to add a --watch flag to a rake funtion and run that function on ever change?
sandstrom has joined #ruby
jottr has joined #ruby
mondok has joined #ruby
agentmeerkat has joined #ruby
sumark has quit [Remote host closed the connection]
<dajobat>
Demetrio: I need to pop off and do some work for a while, but I'll be back in a bit to have another look.
<Demetrio>
dajobat: Thanks for the help!
whippythellama has joined #ruby
nofacade has joined #ruby
sumark has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
dlitvak_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3_ has quit [Remote host closed the connection]
sgambino has joined #ruby
zerowaitstate has joined #ruby
william3 has joined #ruby
meves has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
The_Phoenix has joined #ruby
william3 has quit [Remote host closed the connection]
atomical has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<jhass>
sanguisdex: you probably want to use the guard gem
dopamean_ has joined #ruby
* sanguisdex
reads up on guard :)
Vitor_ has quit [Remote host closed the connection]
PedramT has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
Stratus31 has joined #ruby
n00bdev has joined #ruby
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
Xeago has joined #ruby
blackmesa has joined #ruby
momomomomo has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
jgpawletko has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
Stratus3D has quit [Ping timeout: 240 seconds]
ElFerna_ has quit [Ping timeout: 245 seconds]
<Demetrio>
So I can get this to work no problem. WIth OpenSSL::SSL::VERIFY_NONE.
<Demetrio>
So that's not going live any time soon.
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stratus31 has quit [Ping timeout: 240 seconds]
dsilfen has joined #ruby
icbm has joined #ruby
n00bdev has quit [Ping timeout: 240 seconds]
Stratus3D has joined #ruby
User458764 has joined #ruby
Musashi007 has joined #ruby
<jhass>
can't be bothered to read all that up, mind a quick recap?
kies^ has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
jpoole has left #ruby [#ruby]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<Demetrio>
jhass, basically, I'm having trouble with a gem, jekyll-gist.
mary5030 has quit [Remote host closed the connection]
meves has joined #ruby
<Demetrio>
I've been getting SSLv3 errors, in that it can't verify certificates.
ihme-TTilus is now known as TTilus
<Demetrio>
I submitted an issue, and was told that updating the ssl to TLSv1_2 should help.
mary5030 has joined #ruby
Bloomer has joined #ruby
<Demetrio>
In trying to do that, I attempted running jekyll using the Poole theme with OpenSSL::SSL::VERIFY_NONE flagged in the jekyll-gist gem.
nrsk has joined #ruby
<Demetrio>
It runs without error. So while that's great for production, I'm very much rather not let that go into live production.
<Demetrio>
Even if it's just my github page.
davedev24 has joined #ruby
potsmoker has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
platzhirsch has joined #ruby
last_staff has joined #ruby
platzhirsch has left #ruby [#ruby]
sepp2k has joined #ruby
Pothead has joined #ruby
Pothead has quit [Remote host closed the connection]
coderMe has joined #ruby
potsmoker has joined #ruby
<jhass>
what's your OS?
Stratus3D has quit [Quit: leaving]
barhum2013 has quit [Quit: barhum2013]
skade has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
karapetyan has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
Demetrio: yeah that comment is plain wrong, the SSL/TLS version shouldn't be the issue here, that would result in a protocol error otherwise
<jhass>
and hence turning of certificate validation helps
<jhass>
thus no protocol issue
william3 has quit [Remote host closed the connection]
<Demetrio>
So what you're saying is my solution is fine.
<jhass>
I don't work with windows, so I'm not clear on the specifics, but I'd try to get curl's CA bundle (https://curl.haxx.se/docs/caextract.html) and make ruby use it for validation
Bloomer has quit [Remote host closed the connection]
<jhass>
no
<jhass>
not harmful in this case but nothing that should be spread as solution to that error message
glcx has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Quit: Leaving.]
<Demetrio>
Pretty sure I've downloaded this, but I have no idea how to point ruby to it.
tuelz1 has quit [Ping timeout: 260 seconds]
nrsk has quit [Quit: Bye]
william3 has joined #ruby
nrsk has joined #ruby
<Demetrio>
Would the implementation be that different across OSs?
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
Sucks has joined #ruby
<Demetrio>
My concern about this is that it might not work when hosted on GitHub Pages.
mhoungbo has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
<Demetrio>
At this point, I'm tinking that it might just be easiest for me to not use gists in my posts. I can use <code> and link anything I might need to share.
william3 has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
PedramT has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
selfadhesivefilm has joined #ruby
toretore has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
qyjxmx has joined #ruby
agit0 has joined #ruby
trinaldi has joined #ruby
skade has joined #ruby
adgtl has joined #ruby
Bloomer has quit [Remote host closed the connection]
nofacade has joined #ruby
agit0 has quit [Client Quit]
n00bdev has joined #ruby
sneakerhax has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
chipotle has quit [Quit: cheerio]
adgtl has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Quit: WeeChat 1.4]
synthroid has quit [Remote host closed the connection]
adgtl has joined #ruby
n00bdev has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
william3 has joined #ruby
duckpuppy has joined #ruby
potsmoker has quit [Quit: Leaving]
hobodave has joined #ruby
duckpuppy has quit [Client Quit]
al2o3-cr has quit [Ping timeout: 248 seconds]
dsilfen has quit [Ping timeout: 240 seconds]
Bloomer has joined #ruby
akem has joined #ruby
Lucky has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aufi has quit [Ping timeout: 272 seconds]
meves has joined #ruby
dionysus69 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
zyzioziom has joined #ruby
platzhirsch has joined #ruby
zyzioziom has quit [Client Quit]
rakm has joined #ruby
dsilfen has joined #ruby
william3 has quit [Remote host closed the connection]
duckpuppy has joined #ruby
duckpuppy has quit [Client Quit]
<Sp4rKy>
W 9
frem has joined #ruby
<apeiros>
how to spot emacs users in irc, lesson 1…
lurch_ has quit [Quit: lurch_]
JoshL has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
rgtk has joined #ruby
diegoviola has joined #ruby
SirFunk has quit [Ping timeout: 276 seconds]
SenpaiSilver has quit [Quit: Leaving]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexJakeGreen has quit [Quit: Leaving]
shortdudey123 has joined #ruby
arup_r has joined #ruby
aep_ has quit [Ping timeout: 276 seconds]
SCHAAP137 has quit [Remote host closed the connection]
aep has joined #ruby
SirFunk has joined #ruby
diegoviola has quit [Client Quit]
ghr has quit [Ping timeout: 276 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshL has joined #ruby
ryotarai has joined #ruby
YaknotiS has quit [Ping timeout: 276 seconds]
vbatts|work has joined #ruby
moeabdol has joined #ruby
roshanavand has quit [Remote host closed the connection]
tuelz1 has joined #ruby
cfloare has joined #ruby
ghr has joined #ruby
ghr is now known as Guest41438
YaknotiS has joined #ruby
duckpuppy has joined #ruby
duracrisis has joined #ruby
duracrisis is now known as Guest73968
william3 has joined #ruby
blackmesa has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
tuelz1 has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Client Quit]
agit0 has joined #ruby
dlitvak_ has quit [Ping timeout: 245 seconds]
duckpuppy has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
infra-re_ has joined #ruby
babblebre has joined #ruby
Guest73968 has quit [Changing host]
Guest73968 has joined #ruby
Pupeno has quit [Remote host closed the connection]
Guest73968 is now known as starship
william3 has quit [Ping timeout: 248 seconds]
infra-red has quit [Ping timeout: 245 seconds]
dlitvak has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
meves has quit [Remote host closed the connection]
akem has quit [Remote host closed the connection]
rgtk has quit []
mdw has quit [Quit: Sleeping Zzzzz]
[Butch] has joined #ruby
oetjenj has joined #ruby
JDiPierro has quit [Remote host closed the connection]
karapetyan has joined #ruby
lyoshajapan has joined #ruby
dmolina has quit [Quit: Leaving.]
s00pcan has quit [Ping timeout: 260 seconds]
dmolina has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
vondruch has quit [Quit: Ex-Chat]
zast has quit [Remote host closed the connection]
Guest41438 has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 240 seconds]
infra-red has joined #ruby
B1n4r10 has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
davedev24 has joined #ruby
karapetyan has quit [Remote host closed the connection]
kalopsian has quit [Quit: leaving]
amclain has joined #ruby
infra-re_ has quit [Ping timeout: 276 seconds]
lyoshajapan has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
nrsk_ has joined #ruby
tjohnson has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
zambini has joined #ruby
dmolina has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
amb77 has joined #ruby
ramfjord has joined #ruby
jottr has joined #ruby
Guest11070 has quit [Quit: Leaving...]
amb77 has quit [Quit: amb77]
User458764 has joined #ruby
Pupeno has joined #ruby
nrsk_ has quit [Client Quit]
nrsk has quit [Ping timeout: 240 seconds]
nrsk has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
einarj has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 248 seconds]
mooru has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
sftrabbit has quit [Quit: sftrabbit]
ElFerna_ has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
adac has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 245 seconds]
amb77 has joined #ruby
Snowy has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
sftrabbit has joined #ruby
agit0 has joined #ruby
agit0 has quit [Client Quit]
nrsk_ has joined #ruby
<tubbo>
apeiros: us vim users cantbb'i be detected!^haha,
dlitvak has joined #ruby
<tubbo>
fuck emacsESCdd
ramfjord has quit [Ping timeout: 264 seconds]
nrsk has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
<yorickpeterse>
5/7
rdark has quit [Ping timeout: 250 seconds]
sneakerhax has joined #ruby
sgambino has joined #ruby
Guest38 has quit [Read error: Connection reset by peer]
aryaching has quit []
bronson has quit [Ping timeout: 256 seconds]
<zambini>
C-x M-w perfect-score
hadronzoo has joined #ruby
ElFerna_ has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
LuckyABA has joined #ruby
Snowy has quit []
sorah has quit [Ping timeout: 240 seconds]
<hadronzoo>
Does anyone have a recommendation for an HTTP client library, ideally with keepalive support?
<jhass>
typhoeus (the hydra interface)
<hadronzoo>
jhass: thanks, I was just looking at that library, and libcurl isn't a problem.
<jhass>
in case you want to pump out a lot of requests that is
chouhoulis has quit [Remote host closed the connection]
ElFerna_ has joined #ruby
<hadronzoo>
jhass: indeed that's my constraint. We're having reliability and throughput issues with Faraday.
diegoviola has joined #ruby
<jhass>
be aware that typhoeus can ramp up quite some memory usage though
<hadronzoo>
jhass: how much memory (order of magnitude)? 100 Mb or 5 GB?
n00bdev has joined #ruby
<hadronzoo>
(per process)?
<jhass>
depends on the workload really
meves has joined #ruby
<jhass>
per process yes
jbrhbr has quit [Quit: Leaving.]
glcx has quit [Quit: Quitte]
<jhass>
the default pool settings are quite big, I've seen it take up a gig and more
The_Phoenix has joined #ruby
<jhass>
but usually you should stay below 200 I think
stannard has quit [Remote host closed the connection]
<jhass>
anyway, worth a shot, might be because I was requesting to a lot of different hosts
chouhoulis has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest38 has joined #ruby
<hadronzoo>
I'm only requesting to a few internal API servers, but the number of requests is significant.
Tristan-Speccy has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<hadronzoo>
That makes sense, memory grows proportional to the number of hosts.
Sucks has quit [Ping timeout: 264 seconds]
Sucks_ has joined #ruby
Tristan-Speccy is now known as Guest82831
synthroid has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
shredding has quit [Ping timeout: 276 seconds]
n00bdev has quit [Ping timeout: 260 seconds]
pdoherty has joined #ruby
adgtl has quit [Remote host closed the connection]
nrsk_ has quit [Quit: Bye]
<hadronzoo>
jhass: thanks for your help. I'll test it and see if it's reasonable given the number unicorn processes per host.
nrsk has joined #ruby
jackjackdripper has joined #ruby
JDiPierro has joined #ruby
meves has quit [Read error: Connection reset by peer]
meves has joined #ruby
platzhirsch has left #ruby [#ruby]
roshanavand has joined #ruby
dsilfen has joined #ruby
synthroid has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
Pupeno has quit [Remote host closed the connection]
ferr has joined #ruby
ElFerna_ has quit [Ping timeout: 272 seconds]
despai has joined #ruby
<codehotter>
I recompiled ruby with jemalloc, and now I cannot make it leak memory anymore!!! ????
<codehotter>
What effects does using jemalloc have? Can just switching out libc malloc for jmalloc fix a memory leak?
ZoffixW has joined #ruby
ZoffixW has left #ruby ["Leaving"]
sneakerhax has quit [Ping timeout: 252 seconds]
maho has joined #ruby
TomyWork has quit [Ping timeout: 248 seconds]
<maho>
Can someone provide me a link to the solution of the NP-Complete Set Partition Problem?
SCHAAP137 has joined #ruby
JDiPierro has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 252 seconds]
<maho>
Also, I need links to solutions for solving the Countdown Game Show Numbers
amb77 has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
roshanavand has joined #ruby
newbie22 has joined #ruby
<newbie22>
Hello
sorah has joined #ruby
amb77 has joined #ruby
elifoster has joined #ruby
fedexo has joined #ruby
<lagweezle>
o.O
baweaver has joined #ruby
<lagweezle>
I'm not even sure what you asked, moho ... :(
<lagweezle>
newbie22: hello
<jhass>
lagweezle: sounds like homework
<dajobat>
maho: If you're looking to run a solution to an NP complete problem, i'd say you might want to consider using a language a little faster than ruby.
Bloomer has quit [Remote host closed the connection]
* lagweezle
goes to find out what the countdown numbers game is.
duckpuppy has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
tuelz1 has joined #ruby
newbie22 has joined #ruby
ghr has joined #ruby
stannard has joined #ruby
<dajobat>
lageweezle: It's where you get a set of numbers e.g. 5 10 1 2 3 and a total number to get like 436 and then you have to get as close to the total as possible, using any/all of the provided numbers once only, along with + - * /
<shevy>
ruby is not slow - it is just misunderstood :(
webopsx has joined #ruby
<dajobat>
That was an awful description by me there I think.
<shevy>
lagweezle will heroically decipher it
<dajobat>
shevy: Sorry, my mistake. Would it be better to say that there are probably languages that can solve that problem significantly faster?
joonty has quit [Ping timeout: 276 seconds]
<shevy>
haha nah I was not being serious
<shevy>
I just read that article about eval in javascript not being evil, but just misunderstood
<lagweezle>
dajobat: Good enough for me to grok. Thank you!
* lagweezle
does a heroes pose, cape waving in the breeze.
lemur has joined #ruby
<baweaver>
shevy: that's what it wants you to think
tuelz1 has quit [Ping timeout: 240 seconds]
SenpaiSilver has joined #ruby
<lagweezle>
At least ES6 has drug JavaScript further towards not horrible. :)
dlitvak has quit [Remote host closed the connection]
agentmeerkat has quit [Ping timeout: 240 seconds]
<dajobat>
lagweezle: You should probably watch some countdown though, it's flipping great. Simultaneously interesting, tedious and pointless, it's basically the epitome of britishness.
stannard has quit [Ping timeout: 250 seconds]
<lagweezle>
Disturbingly, I'd probably love it.
dlitvak has joined #ruby
<dajobat>
As you should.
nrsk_ has quit [Ping timeout: 260 seconds]
c0m0 has quit [Ping timeout: 240 seconds]
<baweaver>
Street countdown, it's like countdown but on the street
<Ox0dea>
lagweezle: Brute-forcing it is perfectly viable. ^
<Ox0dea>
For larger inputs, you need to reach for dynamic programming or the like.
skade has quit [Quit: Computer has gone to sleep.]
william3 has joined #ruby
<lagweezle>
That's ... delicious.
<lagweezle>
I was figuring permutations would be the way to go, but that's ... kind of beautiful.
Pupeno has joined #ruby
<lagweezle>
Dynamic programming ... I could not wrap my head around that very well when reading about it. :(
<lagweezle>
Recent interview I had make me think that I'd be good as a Junior / standard Dev, but finding a place that'll give me the time of day is ... challenging.
<drbrain>
yeah, spawn will make this much easier, I think
dudedudeman has joined #ruby
ironcame1 is now known as ironcamel
infra-red has joined #ruby
<depesz>
i don't see it having redirect to variable.
FernandoBasso has quit [Quit: Leaving]
<drbrain>
near the bottom it shows redirecting to a pipe
<drbrain>
then you can read from the pipe directly after the command is finished without blocking the process
bb010g has joined #ruby
stannard has quit [Remote host closed the connection]
infra-re_ has quit [Ping timeout: 250 seconds]
<depesz>
i'm not sure about it. will try to convert first the code from github. if it will fail, will look into spawn, but I'm not sure if I want to deal with pipes.
neanderslob has joined #ruby
JohnBat26 has joined #ruby
stannard has joined #ruby
<depesz>
not to mention that I don't understand the example.
dionysus69 has quit [Ping timeout: 248 seconds]
<depesz>
it seems to read from log_r, but I don't see anywhere that it's being used for anything.
<drbrain>
understandable, I don't like to maintain things I don't understand either
despai has quit [Ping timeout: 240 seconds]
<depesz>
undefined method `fileno' for [#<IO:(closed)>]:Array
yfeldblum has joined #ruby
infra-re_ has joined #ruby
<drbrain>
call it on the #<IO> inside the Array
<depesz>
i think that the select() returns something else than I expected. I thought it will be array of IO objects, but it doesn't look that way
<drbrain>
it took me a long time to understand what it does, it still feels very cumbersome to use
dyre17 has joined #ruby
Musashi007 has joined #ruby
<depesz>
thanks a lot - got to jet. will bookmark spawn() docs, and maybe will get back to it tomorrow.
<drbrain>
select returns an Array with more arrays inside which contain IOs
<drbrain>
cool, good luck
infra-red has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
dyre17 has quit [Client Quit]
joe42 has joined #ruby
<joe42>
Is ruby still one of the most used languages? Also, can one do decent development without using rails?
<drbrain>
I don't know how to quantify the first, other than to say it is still popular and powers many businesses
<drbrain>
yes, you can do decent development without using rails
jottr has quit [Ping timeout: 252 seconds]
DoubleMalt has quit [Remote host closed the connection]
<drbrain>
there are some Japanese companies that run ruby on mainframes
<drbrain>
I highly suspect they don't use Rails for that
<drbrain>
I work for Fastly and we use Sinatra instead of Rails for many services, but that's still webbish
fmcgeough has joined #ruby
Polymorphism has quit [Remote host closed the connection]
<joe42>
drbrain: Thanks. I was reading many articles/blog posts which say ruby is not scalable. I found that hard to believe considering it is just a kanguage, but wanted to ask anyway. Is it?
ht__ has quit [Quit: Konversation terminated!]
<joe42>
typo; language
Conflict has joined #ruby
Burgestrand has joined #ruby
<drbrain>
I think you can make arguments about most languages if you narrow your criteria enough
pawnbox has quit [Remote host closed the connection]
slawrence00 has joined #ruby
baweaver has joined #ruby
zeroDivisible has joined #ruby
<drbrain>
there are a bunch of problems ruby is not as well suited-to as some other language
ht__ has joined #ruby
sneakerhax has joined #ruby
baweaver has quit [Remote host closed the connection]
k13nox has joined #ruby
kfpratt has quit [Ping timeout: 252 seconds]
kenpoint has joined #ruby
hayden_ has quit [Quit: Connection closed for inactivity]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
despai has joined #ruby
cdg has quit [Remote host closed the connection]
pawnbox has joined #ruby
sdothum has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
vagnerd has quit [Read error: Connection reset by peer]
vagnerd has joined #ruby
vagnerd has quit [Changing host]
vagnerd has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has quit [Quit: WeeChat 1.2]
benhuda has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uri_ has joined #ruby
mdw has joined #ruby
dsilfen has joined #ruby
tuelz1 has joined #ruby
IrishGringo has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blaxter has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
selfadhe_ has joined #ruby
Jackneill has joined #ruby
dudedudeman has quit [Quit: dudedudeman]
User458764 has joined #ruby
dudedudeman has joined #ruby
despai has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
despai has joined #ruby
selfadhesivefilm has quit [Ping timeout: 248 seconds]
k13nox has quit [Remote host closed the connection]
sandstrom has joined #ruby
minimalism has joined #ruby
elifoster has joined #ruby
slash_join is now known as slash_wait
joonty has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
joe42 has quit [Quit: Page closed]
sneakerhax has quit [Read error: Connection reset by peer]
meves has quit [Remote host closed the connection]
spider-mario has joined #ruby
anisha has quit [Quit: Leaving]
Jackneill has quit [Quit: Leaving]
jpoole has joined #ruby
<jpoole>
how do I check if a variable is in my defined array named CONSTANT. include?
<jpoole>
better said, not defined, found in/included in the constant.
djbkd has joined #ruby
despai_ has joined #ruby
slackbotgz has joined #ruby
Burgestrand has quit [Ping timeout: 240 seconds]
<drbrain>
>> CONSTANT = [1, 'a', :c]; v = :c; CONSTANT.include? v
<_lazarevsky>
I have two arrays - A = ["a", "c", "e] and B = ["b", "d", "f"]. I need to write a function which would output A = ["a", null, "c", null, "e", null] and B = [null, "b", "null", "d", null, "f"]
<drbrain>
_lazarevsky: look at Array#zip
<_lazarevsky>
I have done it for the case where the values in the arrays are numbers
<_lazarevsky>
but am not too sure how I can check if a string is greater than another string
sanguisdex has quit [Ping timeout: 272 seconds]
infra-red has joined #ruby
<_lazarevsky>
the lists are sorted alphabetically
<bougyman>
anyone play with ldap? Looking for something higher-level than ruby-ldap but not as blot as ActiveLDAP
<_lazarevsky>
bougyman: I have
<bougyman>
seeing treequel, but doesn't seem to be very current on maintenance... maybe it's just Done?
meves has joined #ruby
<bougyman>
_lazarevsky: what do you use?
<_lazarevsky>
dunno, lemme check
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<drbrain>
_lazarevsky: why do you need to know if one string is creater than the other?
<ged>
bougyman: Yeah, we just stopped needing to change Treequel since it just works (for us), but please do let us know if you find anything that needs adding/fixing.
despai has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
karapetyan has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
geekbri has joined #ruby
pawnbox has joined #ruby
dopamean_ has joined #ruby
arup_r has joined #ruby
jottr has joined #ruby
jordanm has quit [Ping timeout: 260 seconds]
ht__ has quit [Quit: Konversation terminated!]
Burgestrand has quit [Ping timeout: 240 seconds]
ht__ has joined #ruby
n_blownapart has joined #ruby
baweaver has joined #ruby
despai has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
jam_ has joined #ruby
synthroid has quit [Remote host closed the connection]
lilvim has joined #ruby
rodfersou has quit [Quit: leaving]
pawnbox has quit [Ping timeout: 245 seconds]
ht__ has quit [Client Quit]
starship is now known as duracrisis
ht__ has joined #ruby
^CrYpto^ has quit [Ping timeout: 245 seconds]
dlitvak has joined #ruby
jam_ has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
ldnunes has quit [Quit: Leaving]
bluOxigen_ has joined #ruby
FernandoBasso has joined #ruby
dlitvak has quit [Remote host closed the connection]
slash_wait is now known as slash_part
shadoi has quit [Quit: Leaving.]
dlitvak has joined #ruby
shadoi has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
jordanm has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
celly has joined #ruby
Ruby_Rocks_007 has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
dudedudeman has quit [Ping timeout: 245 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
PedramT_ has quit [Remote host closed the connection]
^CrYpto^ has joined #ruby
Cohedrin has joined #ruby
Musashi007 has joined #ruby
betabet has joined #ruby
dcunit3d has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
k13nox has joined #ruby
dlitvak_ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
dsilfen has quit [Remote host closed the connection]
supremekay has joined #ruby
fantazo has joined #ruby
ht__ has quit [Client Quit]
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mhoungbo has joined #ruby
ht__ has joined #ruby
duckpuppy has joined #ruby
PedramT has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
kalopsian has joined #ruby
arooni has joined #ruby
<jpoole>
drbrain yes, thanks :)
dsilfen has joined #ruby
dajobat has joined #ruby
juddey has quit [Read error: Connection reset by peer]
juddey has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
PedramT has quit [Ping timeout: 276 seconds]
ht__ has joined #ruby
Yeomra has quit [Ping timeout: 245 seconds]
PedramT has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
srenatus has quit [Quit: Connection closed for inactivity]
geekbri has quit []
ht__ has joined #ruby
IrishGringo has joined #ruby
dopamean_ has quit [Ping timeout: 245 seconds]
Pupeno has joined #ruby
infra-red has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Yeomra has joined #ruby
mary5030 has quit [Remote host closed the connection]
hakunin_ has joined #ruby
PedramT has quit []
jbrhbr has quit [Quit: Leaving.]
n_blownapart has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
zambini has quit [Quit: Leaving.]
mostlybadfly has joined #ruby
dopamean_ has joined #ruby
Lochez has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meves has quit [Remote host closed the connection]
yalue has quit [Quit: return 0;]
sandstrom has joined #ruby
baweaver has quit [Remote host closed the connection]
bluOxigen has joined #ruby
ferr has joined #ruby
dfockler has joined #ruby
bluOxigen_ has quit [Ping timeout: 245 seconds]
Azure has quit [Ping timeout: 250 seconds]
unreal has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
djkeebz has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopamean_ has quit [Ping timeout: 245 seconds]
tomphp has joined #ruby
icbm has joined #ruby
speaking1ode has joined #ruby
Azure has joined #ruby
dsilfen has quit [Remote host closed the connection]
hakunin_ is now known as hakunin
ht__ has quit [Quit: Konversation terminated!]
dopamean_ has joined #ruby
ht__ has joined #ruby
nerium has joined #ruby
dsilfen has joined #ruby
infra-re_ has quit [Remote host closed the connection]
despai has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
mfb2 has quit [Remote host closed the connection]
adac has quit [Ping timeout: 248 seconds]
meves has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
djkeebz has left #ruby [#ruby]
dsilfen has quit [Remote host closed the connection]
unreal has joined #ruby
Felix444 has quit [Ping timeout: 240 seconds]
skade has joined #ruby
TomyLobo has quit [Disconnected by services]
TomyLobo has joined #ruby
moeabdol has joined #ruby
dsilfen has joined #ruby
<kbni>
So I'm using pry.. but one of my objects contains a rather large child object that makes using it kind of difficult, how can I prevent one object from showing up?
jtzero1 has quit [Remote host closed the connection]
AnxiousCarrot has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby
coyo has quit []
unreal has joined #ruby
<cschneid_>
I'm seeing a hang on a line: `STDOUT.puts data` -- in what case could that pause (indefinately). I thought that the OS allowed that buffer to get arbitrarily large, until crash?
baweaver has joined #ruby
blackmesa has joined #ruby
solars has quit [Remote host closed the connection]
dsilfen_ has quit [Remote host closed the connection]
jam_ has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
ElFerna_ has quit [Quit: WeeChat 1.3]
lubekpl has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
adac has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Ox0dea>
cschneid_: You're certain that's the line that's hanging?
evidex_ has quit [Remote host closed the connection]
lemur has joined #ruby
zyzioziom has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
silentdanni has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
lubekpl has joined #ruby
amb77_ has left #ruby [#ruby]
Cihan has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 272 seconds]
s00pcan has joined #ruby
darkf has quit [Quit: Leaving]
jottr_ has joined #ruby
lemur has quit [Ping timeout: 248 seconds]
tomphp has quit [Client Quit]
polishdub has quit [Quit: Leaving]
jottr has quit [Ping timeout: 245 seconds]
n_blownapart has joined #ruby
dlitvak has quit [Remote host closed the connection]
<adaedra>
cschneid_: pipe data is stored in a kernel buffer while going between processes. Theses buffers are not infinite.
<cschneid_>
ya, but I don't have stupidly large data
<cschneid_>
lines are on the order of 100k (json silliness)
<cschneid_>
but it looks like 64k is standard there
<cschneid_>
I'm rearchitecting instead of trying to force down this path
<adaedra>
sounds about right
TomyLobo has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
<adaedra>
pipes are not made to be storing lots of data
supremekay has quit [Ping timeout: 252 seconds]
mhoungbo has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
<cschneid_>
well, there's a go app at the other end that I thought was consuming, but timing is probably off.
Xeago has quit [Remote host closed the connection]
<cschneid_>
like, it write everything, hits a barrier, but the goapp doesn't start reading until a flush or something. Whatever, reworking things :)
<adaedra>
Be careful that Ruby tend to not flush often also
pawnbox has joined #ruby
solocshaw has joined #ruby
Musashi007 has joined #ruby
<shadoi>
cschneid_: have you tried using $stdout.sync = true
s00pcan has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
<cschneid_>
Have not. Changing business requirements a bit ends up being easier. I'm always iffy on communicating processes like this (was a hack to support old versions of data that were ruby marshal encoded).
<cschneid_>
I think there's a way to just not do this work in the first place. Was surprising that a simple line like STDOUT.puts hung though :)
<shadoi>
well sync will make it unbuffered, should just make the issue go away.
n_blownapart has quit []
<cschneid_>
thanks. I'll give it a try
s00pcan has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
Coldblackice has joined #ruby
LoneHerm_ has joined #ruby
The_Phoenix1 has quit [Read error: Connection reset by peer]
symm-_ is now known as symm-
lurch_ has quit [Quit: lurch_]
joonty has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak_ has joined #ruby
tomchap__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 264 seconds]
moeabdol has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
supremekay has joined #ruby
chipotle has quit [Quit: cheerio]
zenlot1 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
zenlot has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
aegis3121 has quit [Ping timeout: 248 seconds]
tuelz1 has quit [Ping timeout: 264 seconds]
celly_ has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
n_blownapart has joined #ruby
ElFerna has quit [Ping timeout: 245 seconds]
celly has quit [Ping timeout: 250 seconds]
serbalgi has quit [Quit: Ex-Chat]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
ready has quit [Ping timeout: 252 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
momomomomo has quit [Quit: momomomomo]
Snowy has joined #ruby
aegis3121 has joined #ruby
tvw has quit [Remote host closed the connection]
uri_ has quit [Ping timeout: 252 seconds]
peterevjan has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
ledestin has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
lemur has joined #ruby
FernandoBasso has quit [Quit: Leaving]
_lazarevsky has quit [Ping timeout: 252 seconds]
Nympth has joined #ruby
dfockler has quit [Ping timeout: 245 seconds]
<Nympth>
Heya
Nympth is now known as Nymph
Nymph is now known as nymph
jgt2 has joined #ruby
victortyau has joined #ruby
wethu has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<dajobat>
Hi
futilegames has quit [Quit: futilegames]
lemur has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
william3 has joined #ruby
celly_ has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
wethu has quit [Ping timeout: 240 seconds]
user083 has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
zyzioziom has quit [Quit: zyzioziom]
Musashi007 has quit [Quit: Musashi007]
[Butch] has quit [Quit: I'm out . . .]
<lubekpl>
dajobat hello
davedev24 has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 245 seconds]
despai has joined #ruby
cdg has quit [Remote host closed the connection]
blackmesa has joined #ruby
nymph is now known as JackRousseau
glcx has quit [Quit: Quitte]
ReK2 has joined #ruby
meves has joined #ruby
meves has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 250 seconds]
mjc__ has joined #ruby
william3 has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
s00pcan has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
s00pcan has joined #ruby
davedev24 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
stannard has quit [Remote host closed the connection]
KnownSyntax has quit [Ping timeout: 276 seconds]
<dajobat>
I say hi, but I'm actually going to head to bed. Cheerio
dajobat has quit [Quit: Leaving]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Demetrio has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
lubekpl has quit [Quit: WeeChat 1.3]
meves has joined #ruby
AlexRussia has left #ruby [#ruby]
sanguisdex has quit [Ping timeout: 272 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mg^^ has joined #ruby
peterevjan has quit [Ping timeout: 272 seconds]
kirun has quit [Quit: Client exiting]
mg^ has quit [Ping timeout: 256 seconds]
solocshaw has joined #ruby
jottr_ is now known as jottr
stevemackinnon has quit [Remote host closed the connection]
krobzaur_ has quit [Ping timeout: 250 seconds]
stevemackinnon has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
stevemackinnon has joined #ruby
decoponio has quit [Quit: Leaving...]
ropeney has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
meves has quit [Remote host closed the connection]
joonty has joined #ruby
djbkd has joined #ruby
meves has joined #ruby
Snowy has quit []
whippythellama has quit [Quit: WeeChat 1.4]
tuelz1 has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 252 seconds]
nerium has quit [Quit: nerium]
flughafen has quit [Ping timeout: 272 seconds]
tuelz1 has quit [Ping timeout: 252 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
Yeomra has quit [Quit: WeeChat 1.4]
meves has quit [Remote host closed the connection]
davedev24 has joined #ruby
davedev24 has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
davedev24 has joined #ruby
NeverTired has joined #ruby
n_blownapart has quit []
stevemackinnon has quit [Remote host closed the connection]
diegoviola has joined #ruby
peterevjan has joined #ruby
freerobby has quit [Quit: Leaving.]
iamvery has quit [Quit: Leaving...]
flughafen has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
symm- has quit [Quit: Leaving...]
zerowaitstate has quit [Quit: leaving]
northfurr has joined #ruby
pwnd_nsfw has joined #ruby
SCHAAP137 has quit [Read error: Connection reset by peer]