havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
IrishGringo has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
h99h9h88 has quit [Ping timeout: 260 seconds]
akem has quit [Remote host closed the connection]
bkxd_ has joined #ruby
diego2 has quit [Ping timeout: 260 seconds]
shanemcd has quit [Remote host closed the connection]
Cohedrin has joined #ruby
diego1 has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
NeverDie has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
dlitvak has joined #ruby
spider-mario has quit [Remote host closed the connection]
casadei has joined #ruby
InvGhosttt has quit [Ping timeout: 246 seconds]
TomPeed has quit [Ping timeout: 260 seconds]
TomPeed has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
frem has quit [Quit: Connection closed for inactivity]
howdoicomputer has quit [Ping timeout: 245 seconds]
dlitvak has quit [Remote host closed the connection]
rezzack has joined #ruby
akem has joined #ruby
cajone has joined #ruby
alindeman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 260 seconds]
KensoDev has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego1 has joined #ruby
<ltp> Hey guys, ruby newb - I'm using savon to make a request to a service which is returning the interesting part of the result in a deeply nested response.
diegoviola has quit [Ping timeout: 245 seconds]
<ltp> So my code ends up looking like: "val = response.body[:get_foo_response][:get_foo_result][:document][:document_element][:foo]"
lacuna has quit [Read error: Connection reset by peer]
<ltp> I've looked through a few style guides in regard to breaking long lines, but is there anyway of breaking the above over several lines without using "\"?
lacuna has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
dlitvak has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
DurstBurger has quit [Ping timeout: 245 seconds]
dling` has joined #ruby
ledestin has joined #ruby
snockerton has quit [Quit: Leaving.]
Olipro has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
* Radar reads up to "savon" and then suddenly has to go water his llama
<Radar> ltp: Yeah, there is a way to do that.
<Radar> ltp: I would split it up like this: https://gist.github.com/radar/42985f14e3dbe37daa9f
<Radar> I'm guessing "document" is the root document element and then from that you'll want to pick out different elements, so that's why I've assigned it to "document"
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
<ltp> Thanks, I'd dabbled with using that style, but wasn't sure if it was considered better or worse than using "\n"
juddey has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
<ltp> For this service, "foo" is always an array of complex types, and "foo" is generally a horribly long and verbose name which results in very long lines.
<Radar> Do you have an example of the "foo"?
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> If not, then I'll just use "horribly_long_example" as the example.
rezzack has quit [Quit: Leaving.]
Vitor has joined #ruby
dlitvak has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
lukeasrodgers has quit [Quit: Leaving.]
<ltp> I'm sure that horrible code, but like I said - I'm a newb.
<ltp> Just having fun with the object paradigm
<Radar> I see what you're doing there. That new line syntax isn't used that commonly. Typically you'd assign the parts to a variable, like I did in my gists.
dlitvak has joined #ruby
baweaver has joined #ruby
RegulationD has joined #ruby
howdoicomputer has joined #ruby
yfeldblum has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
Ropeney has joined #ruby
yfeldblum has joined #ruby
Pupp3tm4st3r has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
sucks_ has quit [Read error: Connection reset by peer]
akem has quit [Remote host closed the connection]
alindeman has joined #ruby
colegatron has joined #ruby
casadei has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
sucks has joined #ruby
cmoneylulz has joined #ruby
dmcp has quit [Ping timeout: 264 seconds]
blandflakes has joined #ruby
CloCkWeRX has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
benlieb has quit [Quit: benlieb]
cmoneylulz has quit [Remote host closed the connection]
DLSteve has joined #ruby
howdoicomputer has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
n_blownapart has joined #ruby
duckpuppy has joined #ruby
krasnus has joined #ruby
akem has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
duncannz has quit [Ping timeout: 245 seconds]
h99h9h88 has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
cwong_on_irc has quit [Quit: Leaving.]
acidrainfall has quit [Quit: Leaving.]
s2013 has joined #ruby
h99h9h88 has quit [Ping timeout: 246 seconds]
user1138 has joined #ruby
Vitor has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
s2013 has quit [Client Quit]
nospam has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
arescorpio has joined #ruby
IrishGringo has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
marr has quit [Ping timeout: 245 seconds]
kam270 has joined #ruby
dlitvak has quit [Remote host closed the connection]
ruid has quit [Ping timeout: 260 seconds]
ICantCook has quit [Quit: bye]
rgrmatt has joined #ruby
Gnut has quit [Ping timeout: 260 seconds]
kies has joined #ruby
dkam has quit [Quit: Be back later ...]
<dorei> hello
<dorei> is there any stable gem for memoization?
danielpclark has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
rgrmatt has quit [Ping timeout: 246 seconds]
DrShoggoth has quit [Ping timeout: 245 seconds]
DLSteve has quit [Max SendQ exceeded]
sdwrage has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shanemcd has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
InvGhosttt has joined #ruby
InvGhosttt has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 260 seconds]
h99h9h88 has joined #ruby
DrShoggoth has joined #ruby
kies has quit [Ping timeout: 246 seconds]
IrishGringo has joined #ruby
shanemcd has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
<drbrain> dorei: usually you don't need a gem
<drbrain> a method will do just fine
<dorei> well, i could use something like @ivar ||= something too
dlitvak has joined #ruby
<drbrain> yeah, or for fancier, wrap ↑ in a method that yields
TomPeed has quit [Ping timeout: 260 seconds]
alindeman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 260 seconds]
Ebok has joined #ruby
chamby has joined #ruby
heyimwill has joined #ruby
yfeldblu_ has joined #ruby
danielpclark has joined #ruby
colleenmcguckin has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 260 seconds]
colegatron has joined #ruby
EbokianKnight has quit [Ping timeout: 250 seconds]
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
babblebre has joined #ruby
Emmanuel_Chanel has joined #ruby
ur5us has quit [Remote host closed the connection]
regex101-1233 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djanatyn has quit [Ping timeout: 260 seconds]
Bellthoven has joined #ruby
djanatyn has joined #ruby
elton has joined #ruby
banister has joined #ruby
colleenmcguckin has joined #ruby
TomPeed has joined #ruby
alindeman has joined #ruby
Jet4Fire has joined #ruby
User4587_ has joined #ruby
User458764 has quit [Ping timeout: 260 seconds]
lacuna has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lacuna has joined #ruby
lacuna has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
howdoicomputer has quit [Ping timeout: 245 seconds]
sleeparrow has joined #ruby
TomPeed has quit [Ping timeout: 260 seconds]
Jet4Fire has quit [Ping timeout: 246 seconds]
Bellthoven has quit []
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
Bellthoven has joined #ruby
maloik has joined #ruby
howdoicomputer has joined #ruby
duckpuppy has joined #ruby
bronson has quit [Remote host closed the connection]
Jet4Fire has joined #ruby
ibouvousaime has quit [Ping timeout: 246 seconds]
maloik has quit [Ping timeout: 245 seconds]
howdoicomputer has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 246 seconds]
goodcodeguy has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
Jet4Fire has quit [Ping timeout: 260 seconds]
h99h9h88 has joined #ruby
elton has quit [Remote host closed the connection]
howdoicomputer has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
bb010g has joined #ruby
Arnvald has joined #ruby
dorei has quit []
Jet4Fire has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
gregf has joined #ruby
vdamewood has quit [Quit: Life beckons.]
Jet4Fire has joined #ruby
Jet4Fire has quit [Ping timeout: 245 seconds]
sulky has quit [Ping timeout: 245 seconds]
dkam has joined #ruby
peterhil_ has joined #ruby
jetpackjoe has joined #ruby
simplyianm has quit [Remote host closed the connection]
jetpackjoe has quit [Client Quit]
simplyianm has joined #ruby
dkam has quit [Ping timeout: 245 seconds]
simplyianm has quit [Remote host closed the connection]
Jet4Fire has joined #ruby
simplyianm has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
<TheCompWiz> does anyone know why YAML::dump would randomly assume a string contains binary data & dump a base64 representation instead of the string?
psy_ has quit [Remote host closed the connection]
<TheCompWiz> (even when there is nothing but ascii characeters)
sulky has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
<drbrain> TheCompWiz: why do you care?
<TheCompWiz> because I don't want base64 encoded output?
kam270 has quit [Ping timeout: 245 seconds]
cashnguns has quit [Remote host closed the connection]
Jet4Fire has quit [Ping timeout: 245 seconds]
<drbrain> presumably it does this so it can read what it wrote out
<drbrain> with some examples, we could maybe find a bug
nateberkopec has quit [Quit: Leaving...]
<TheCompWiz> I just wish I knew why it randomly flip-flops in my code.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TheCompWiz> sometimes it outputs nice ascii characters... other times... base64 encoded. in both cases... they're just URLs... with no funny characters.
alindeman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sleeparrow has left #ruby [#ruby]
Jet4Fire has joined #ruby
dkam has joined #ruby
sucks has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
sucks has joined #ruby
Jet4Fire has quit [Ping timeout: 246 seconds]
dkam has quit [Ping timeout: 260 seconds]
opencard has quit [Ping timeout: 246 seconds]
dkam has joined #ruby
kam270 has joined #ruby
dlitvak has joined #ruby
axl_ has joined #ruby
h99h9h88 has quit [Ping timeout: 260 seconds]
krabador has joined #ruby
Jet4Fire has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
dmcp has joined #ruby
<TheCompWiz> ... gah... that is annoying. had to force the encoding to utf8.
<TheCompWiz> (for each string)
colleenmcguckin has quit []
baweaver has joined #ruby
graffix222 has joined #ruby
Pupp3tm4_ has joined #ruby
Jet4Fire has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
TomPeed has joined #ruby
axl_ has quit [Quit: axl_]
yatish27 has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 260 seconds]
Jet4Fire has joined #ruby
duckpuppy has joined #ruby
bronson has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
hxegon has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
doll has joined #ruby
Jet4Fire has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 245 seconds]
<doll> i have a ruby assignment that works for me, but my professor is saying it doesn't work for him, and when i tell him it works for me he says it shouldn't. can someone take a gander and give me any thoughts? http://pastie.org/private/xmiz4bjs37i1wabzujzlg
elton has joined #ruby
Jet4Fire has joined #ruby
elton has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
djbkd has quit [Quit: My people need me...]
yatish27 has quit [Remote host closed the connection]
peterhil_ has quit [Ping timeout: 245 seconds]
kies has joined #ruby
shadoi has quit [Quit: Leaving.]
chamby has quit [Ping timeout: 245 seconds]
Jet4Fire has quit [Ping timeout: 260 seconds]
Bellthoven has quit []
chamby has joined #ruby
baroquebobcat_ has joined #ruby
kies has quit [Quit: baaaaiiiiiiiiiii~]
Trynemjoel has quit [Ping timeout: 264 seconds]
maloik has joined #ruby
baroquebobcat has quit [Ping timeout: 260 seconds]
baroquebobcat_ is now known as baroquebobcat
yfeldblu_ has quit [Remote host closed the connection]
Guest11 has joined #ruby
tjbiddle has joined #ruby
Jet4Fire has joined #ruby
chamby has quit [Remote host closed the connection]
kies has joined #ruby
Guest11 has quit [Remote host closed the connection]
Guest11 has joined #ruby
maloik has quit [Ping timeout: 245 seconds]
chamby has joined #ruby
Trynemjoel has joined #ruby
rgrmatt has joined #ruby
Jet4Fire has quit [Ping timeout: 245 seconds]
maloik has joined #ruby
Yzguy has joined #ruby
n_blownapart has quit []
Yzguy has quit [Client Quit]
juddey has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
rgrmatt has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
Yzguy has joined #ruby
jbrhbr has quit [Ping timeout: 260 seconds]
maloik has quit [Ping timeout: 246 seconds]
juddey has joined #ruby
gregf has joined #ruby
ur5us has joined #ruby
elton has joined #ruby
Yzguy has quit [Client Quit]
<diegoviola> parsing/importing 147k records to AR takes 12 seconds here, is that considered normal or slow? here is my script to do this: https://gist.github.com/diegoviola/ffa1dce640f6dffd50ec
Yzguy has joined #ruby
shanemcd has joined #ruby
ICantCook has joined #ruby
<diegoviola> it shouldn't take that much I think
<Guest11> diegovila: I think that's reasonable time.
<Guest11> AR serialization take big amount of time
<Radar> If you don't care about validations (it looks that way) you can use LOAD DATA INFILE (MySQL) or COPY (PostgreSQL)
whippythellama has quit [Quit: WeeChat 1.3]
davedev2_ has quit []
Jet4Fire has joined #ruby
elton has quit [Ping timeout: 260 seconds]
shanemcd has quit [Ping timeout: 246 seconds]
<diegoviola> yeah I was aware of COPY, thanks
<diegoviola> I suppose that's going to be faster
devoldmx has joined #ruby
<diegoviola> at the risk of sounding like an idiot, what sort of validations would you recommend I do?
<diegoviola> I know you don't have access to the data I'm working in order to say
sarkis has quit [Ping timeout: 250 seconds]
krabador has quit [Quit: Sto andando via]
howdoicomputer has quit [Ping timeout: 260 seconds]
<diegoviola> all my ts_attempt seems to be nil, because the date on them are 0000-00-00 00:00:00 in the CSV
<diegoviola> weird
Jet4Fire has quit [Ping timeout: 245 seconds]
<Guest11> I think there is a method named readlines for CSV module, CSV.read trying load all stuff into memory, which is not good thing.
threh has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
n_blownapart has joined #ruby
<Radar> diegoviola: I don't know the data so I can't recommend any validations.
braincra- has joined #ruby
Jet4Fire has joined #ruby
<diegoviola> I'd rather they just give me proper data than me having to guess or validate about possible mistakes... but that's wishful thinking
<Radar> yay for integrating with external data :)
braincrash has quit [Ping timeout: 245 seconds]
astrobun_ has joined #ruby
Eiam_ has joined #ruby
<diegoviola> for example, in the CSV I have floors with numbers, so I made that an integer in the migration, but the last row in the CSV is "ALPHAVILLE 18" so that ends up as 0 when I parse/load it
jbrhbr has joined #ruby
<Radar> Strip all letters?
<Radar> From that column, anyway.
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<diegoviola> yeah
<diegoviola> but I wish they cared more about being consistent also, maybe I should tell them that
<Guest11> Give them a web api, give errors if data not valid, let the validation phase to anyone who use api :)
doll has quit [Ping timeout: 252 seconds]
Jet4Fire has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
chamby has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
chamby has joined #ruby
simplyianm has quit [Remote host closed the connection]
Cantaberry has joined #ruby
simplyianm has joined #ruby
I has joined #ruby
brennebeck has joined #ruby
<diegoviola> can't I just tell AR to throw errors when trying to save a string into a integer field, etc?
I is now known as Guest46072
Guest46072 has left #ruby [#ruby]
Jet4Fire has joined #ruby
meatchicken has joined #ruby
favadi has joined #ruby
<diegoviola> looking at the Active Record Validations api
brennebeck has quit [Quit: brennebeck]
howdoicomputer has joined #ruby
brennebeck has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
Guest11 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<diegoviola> readlines is just an alias for read
unreal_ has joined #ruby
sucks_ has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
Eiam_ has quit [Ping timeout: 245 seconds]
Rodya_ has joined #ruby
unreal has quit [Ping timeout: 246 seconds]
Jet4Fire has joined #ruby
chamby has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 245 seconds]
sarkis has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
hanmac has quit [Ping timeout: 260 seconds]
braincra- has quit [Quit: bye bye]
Jet4Fire has quit [Ping timeout: 245 seconds]
jbrhbr has quit [Quit: Leaving.]
stannard has quit [Ping timeout: 260 seconds]
ss_much has joined #ruby
<pontiki> diegoviola: if you're loading from a CSV file, you should clean it and get the fields in the right shape before you load it. it will still be a lot faster than having AR doing it
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has quit [Ping timeout: 246 seconds]
zast has joined #ruby
dlitvak has quit [Remote host closed the connection]
Eiam_ has joined #ruby
Jet4Fire has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diego1 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Jet4Fire has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
Guest30449 has joined #ruby
cwong_on_irc has joined #ruby
Musashi007 has joined #ruby
elton has joined #ruby
Guest30449 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nbdy has joined #ruby
kp666 has joined #ruby
diego1 has quit [Quit: WeeChat 1.3]
aelevadoan has left #ruby [#ruby]
kp666 has quit [Max SendQ exceeded]
Jet4Fire has joined #ruby
kp666 has joined #ruby
hanmac has joined #ruby
kp666 has quit [Max SendQ exceeded]
n_blownapart has quit [Ping timeout: 246 seconds]
iateadonut has joined #ruby
kp666 has joined #ruby
mloy has quit [Ping timeout: 260 seconds]
Jet4Fire has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
jackcom has joined #ruby
jackcom has left #ruby [#ruby]
DurstBurger has joined #ruby
Arnvald has quit [Remote host closed the connection]
ponga has joined #ruby
maloik has joined #ruby
DurstBurger has quit [Ping timeout: 246 seconds]
Jet4Fire has joined #ruby
Oog has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
roxtrongo has joined #ruby
maloik has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 260 seconds]
mloy has joined #ruby
yfeldblum has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
Jet4Fire has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
Moosashi has joined #ruby
yatish27 has joined #ruby
gix has joined #ruby
rigsby has joined #ruby
RegulationD has joined #ruby
BTRE has joined #ruby
Arnvald has joined #ruby
<SirFunk> Anyone have any suggestions for a good Ruby book to get for someone who has been doing ruby for a few years. I've read POODR
Jet4Fire has joined #ruby
Moosashi has quit [Client Quit]
astrobun_ has joined #ruby
s1kx has joined #ruby
Oog has quit []
devbug has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
maloik has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
juddey has quit [Ping timeout: 246 seconds]
Fredrich010 has quit [Remote host closed the connection]
iateadonut1 has joined #ruby
pwned has joined #ruby
iateadonut has quit [Ping timeout: 245 seconds]
maloik has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: brb]
Fredrich010 has joined #ruby
agent_white has joined #ruby
Jet4Fire has joined #ruby
Fredrich010 has quit [Remote host closed the connection]
Fredrich010 has joined #ruby
<pontiki> Russ Olsen's are great: Eloquent Ruby and Design Patterns in Ruby
<pontiki> avdi's Confident Ruby is a great read, too
patdohere has joined #ruby
duckpuppy has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
carlosjack has joined #ruby
bronson has joined #ruby
<carlosjack> Hey I started playing with ruby earlier this week and I gotta say it might replace perl as my favorite language. I started playing with nokogiri,net:http,Rest-Client,Event Reactor, and socket.
<carlosjack> Do you guys have any recommendation for any other good network libraries because most of the code I write is for networking and systems I'm more of a sec guy than dev
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patdohere has quit [Ping timeout: 245 seconds]
Jet4Fire has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
dmcp has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
duckpuppy has quit [Ping timeout: 260 seconds]
jivemeat has quit [Ping timeout: 246 seconds]
Jet4Fire has quit [Ping timeout: 245 seconds]
jivemeat has joined #ruby
jbrhbr has joined #ruby
skade has joined #ruby
Musashi007 has joined #ruby
Jet4Fire has joined #ruby
arescorpio has quit [Quit: Leaving.]
Musashi007 has quit [Ping timeout: 246 seconds]
colegatron has quit [Ping timeout: 245 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
yes`r has quit [Ping timeout: 245 seconds]
varunwachaspati has quit [Quit: Connection closed for inactivity]
Jet4Fire has quit [Ping timeout: 260 seconds]
patdohere has joined #ruby
ponga has quit []
agent_white has quit [Quit: brb]
juddey has joined #ruby
jessemcgilallen has joined #ruby
agent_white has joined #ruby
Pupp3tm4_ has quit [Ping timeout: 260 seconds]
<pontiki> carlosjack: you might look at Mechnize, it's a web driver sort of thing
<pontiki> Mechanize
<pontiki> sorry
Jet4Fire has joined #ruby
<carlosjack> I've played with mechanize
<carlosjack> in python
cryptsting has quit [Ping timeout: 260 seconds]
<pontiki> there's one in ruby, too
patdohere has quit [Ping timeout: 246 seconds]
<carlosjack> yeah thats cool so is selenium
maloik has joined #ruby
<carlosjack> Any other libs
Musashi007 has joined #ruby
rgrmatt has joined #ruby
ur5us has quit [Remote host closed the connection]
<carlosjack> oh actually anotherthing
<carlosjack> with http::net
<carlosjack> is it possible for you to create an array then pass it to Net::HTTP.get()
<carlosjack> I tried
<carlosjack> even with the uri parse option
<carlosjack> no
<carlosjack> Yet I see in a lot of scripts that it's done
saneax_AFK is now known as saneax
<jhass> carlosjack: if you do a lot of selenium check capybara, which is a nicer to use abstraction on top of it
<jhass> and also supports phantomjs as backend
<carlosjack> I haven't played with selenium much outsideof python
hahuang61 has joined #ruby
<carlosjack> and I don't know dick about phantomjs
Jet4Fire has quit [Ping timeout: 260 seconds]
<carlosjack> I'm a sec person not a web dev
<carlosjack> I still rely on BeeF for XSS payloads lol
solocshaw has quit [Ping timeout: 264 seconds]
colegatron has joined #ruby
rgrmatt has quit [Ping timeout: 260 seconds]
maloik has quit [Ping timeout: 260 seconds]
<pontiki> none of what's been listed is exclusive to web dev
<carlosjack> I was talking about phantomjs
DurstBurger has joined #ruby
<pontiki> phantomjs can be used as a driver
<pontiki> can be very handy for pen testing someone's web site
<carlosjack> Alright
Moosashi has joined #ruby
<carlosjack> So can I pass an array into mechanize
<carlosjack> and make it do a bunch of get requests
<carlosjack> right now so far what I have done with ruby is this
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
<carlosjack> I've written a test script for sqli vulns by playing with obfuscation techniques and adding such into requests and then grabbing the responses to judge not perfect yet
Jet4Fire has joined #ruby
DurstBurger has quit [Ping timeout: 260 seconds]
lacuna has quit [Remote host closed the connection]
<carlosjack> then I wrote a rest script that uses rest-client is in a infinite loop that gets user input then uses a get request from that user input then grabs the headers so I can look for injection points
lacuna has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<carlosjack> so I wouldn't have to use an intercept proxy on my shitty laptop on the train unless I had to I only have like 4 gigs of ram and I hate leaving the terminal
jpfuentes2 has joined #ruby
devoldmx has joined #ruby
krz has joined #ruby
RWBY has joined #ruby
<carlosjack> i also wrote a quick dirbuster when I was doing a network that had a decent waf and firewalls so those big automated crawlers wouldn't work so I wrote something that would just identify major cmses info disclosure files determine what ws it uses shit like that.
Jet4Fire has quit [Ping timeout: 260 seconds]
dimik has quit []
Puppet` has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
poguez_ has quit [Quit: Connection closed for inactivity]
jpfuentes2 has quit [Ping timeout: 245 seconds]
skade has joined #ruby
TheNet has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
<carlosjack> the shitty thing about the dirbuster was I couldn't pass an array into http req I even tried an each loop I know you're probably laughing at my crappy dev skills but I bet most of you guys don't know assembly, how to patch a server, or any unix commands beyond the basic utilities. So don't judge lol
<Moosashi> Sirs, I was having a problem with Faraday running locally and it apeared as though I was having the same problem as this guy (http://toadle.me/2015/04/16/fixing-failing-ssl-verification-with-rvm.html) so I ran this command: | rvm install 2.2.1 --disable-binary. AFter that, I was getting a message that puma, pg, and something else were not built natively so I tried to rebuild them to no avail. I then ran gem pristine —all and now I am getting segmentation faults a
<Moosashi> really don’t know how to read the output from that.. Can someone suggest something to look into here?
mobson has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
`based_pdev` has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dravine has quit [Read error: Connection reset by peer]
rigsby has quit [Quit: Leaving]
mobson has joined #ruby
agent_white has joined #ruby
dravine has joined #ruby
yes`r has joined #ruby
icey has quit [Ping timeout: 260 seconds]
roxtrongo has quit [Remote host closed the connection]
Anderson69s has joined #ruby
based_pdev_ has quit [Ping timeout: 245 seconds]
colegatron has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 260 seconds]
sucks has quit [Read error: Connection reset by peer]
Yzguy has quit [Quit: Zzz...]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tildes has joined #ruby
Anderson69s has quit [Ping timeout: 245 seconds]
ohaibbq has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
naftilos76 has joined #ruby
juddey has quit [Ping timeout: 260 seconds]
TheNet has joined #ruby
Wsewolod has quit [Ping timeout: 260 seconds]
colegatron has joined #ruby
galeido has joined #ruby
Oog has joined #ruby
Pupp3tm4st3r has joined #ruby
devoldmx has joined #ruby
startupality has joined #ruby
duckpuppy has joined #ruby
wjb has joined #ruby
elton_ has joined #ruby
yatish27 has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
astrobun_ has quit [Ping timeout: 260 seconds]
startupality has quit [Read error: Connection reset by peer]
elton has quit [Ping timeout: 260 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
elton has joined #ruby
favadi has joined #ruby
Moosashi has quit [Quit: Moosashi]
startupality has joined #ruby
elton_ has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 245 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
maloik has joined #ruby
startupality has quit [Ping timeout: 246 seconds]
Moosashi has joined #ruby
maloik has quit [Ping timeout: 246 seconds]
avahey has quit [Quit: Connection closed for inactivity]
Moosashi has quit [Client Quit]
myztic has quit [Quit: leaving]
nixmaniack has joined #ruby
Musashi007 has quit [Quit: Musashi007]
based_pdev_ has joined #ruby
dravine has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby
hakunin_ has joined #ruby
sarkis has quit [Read error: Connection reset by peer]
dravine has joined #ruby
sarkis has joined #ruby
startupality has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
cinik has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
sucks_ has quit [Ping timeout: 246 seconds]
`based_pdev` has quit [Ping timeout: 245 seconds]
cinik has joined #ruby
moss has quit [Ping timeout: 245 seconds]
user1138 has quit [Remote host closed the connection]
user1138 has joined #ruby
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
rghose has joined #ruby
snrobot has joined #ruby
moss has joined #ruby
agit0 has joined #ruby
dimik has joined #ruby
darkf has joined #ruby
astrobun_ has joined #ruby
DurstBurger has joined #ruby
SOLDIERz has joined #ruby
TheNet has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
DurstBurger has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
tjad has joined #ruby
startupality has quit [Ping timeout: 260 seconds]
user1138 has quit [Remote host closed the connection]
juddey has joined #ruby
user1138 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
djbkd has quit [Quit: My people need me...]
cgfbee has joined #ruby
startupality has joined #ruby
RegulationD has joined #ruby
elton_ has joined #ruby
yatish27 has quit [Remote host closed the connection]
trautwein has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
elton has quit [Ping timeout: 246 seconds]
elton has joined #ruby
ibouvousaime has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
sigurding has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Quit: Leaving...]
h99h9h88 has quit [Quit: Leaving...]
howdoicomputer has quit [Ping timeout: 246 seconds]
elton_ has quit [Ping timeout: 245 seconds]
devoldmx has quit [Remote host closed the connection]
krz has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
elton_ has joined #ruby
claw has joined #ruby
iateadonut1 has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has joined #ruby
pwnd_nsfw has joined #ruby
elton has quit [Ping timeout: 246 seconds]
mooe has joined #ruby
elton has joined #ruby
kam270 has quit [Ping timeout: 260 seconds]
iateadonut has joined #ruby
elton_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
sigurding has quit [Quit: sigurding]
xfbs has joined #ruby
<shevy> yo people
<shevy> long live ruby!
Coldblackice has quit [Ping timeout: 260 seconds]
<blub> hi shevy
xfbs has quit [Client Quit]
duckpuppy has joined #ruby
user1138 has quit [Remote host closed the connection]
<shevy> yo blubjr
user1138 has joined #ruby
yatish27 has joined #ruby
AlexWilliams has joined #ruby
<AlexWilliams> hi
<blub> alexwilliams..my man
<AlexWilliams> hey man what can i do?
duckpuppy has quit [Ping timeout: 245 seconds]
<AlexWilliams> should i make a move or is that wrong?
maikowblue has quit [Ping timeout: 260 seconds]
troulouliou_dev has joined #ruby
<Radar> AlexWilliams: ?ot
<Radar> ?ot AlexWilliams
<ruboto> AlexWilliams, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<Radar> One day I will remember the syntax.
maikowblue has joined #ruby
<Radar> !mute AlexWilliams
<Radar> !ban AlexWilliams !T 1d
AlexWilliams was kicked from #ruby by ChanServ [User is banned from this channel]
ibouvousaime has quit [Ping timeout: 246 seconds]
sandstrom has joined #ruby
startupality has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
Guest15488 is now known as aps
pwnd_nsfw has joined #ruby
juddey has quit [Ping timeout: 245 seconds]
agent_white has quit [Ping timeout: 260 seconds]
ta has joined #ruby
ta has joined #ruby
juddey has joined #ruby
startupality has quit [Ping timeout: 246 seconds]
Oog has quit []
Jet4Fire has joined #ruby
Coldblackice has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
brennebeck has quit [Ping timeout: 260 seconds]
Oog has joined #ruby
brennebeck has joined #ruby
carlosjack has quit [Ping timeout: 260 seconds]
troulouliou_dev has quit [Quit: Leaving]
andikr has joined #ruby
solars has joined #ruby
solars has quit [Client Quit]
yatish27 has quit [Remote host closed the connection]
solars has joined #ruby
elton has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
brennebeck has quit [Ping timeout: 260 seconds]
rsc___ has quit [Quit: rsc___]
elton has joined #ruby
IrishGringo has joined #ruby
vdamewood has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
DurstBurger has joined #ruby
DoubleMalt has joined #ruby
brennebeck has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neanderslob_ has joined #ruby
DurstBurger has quit [Ping timeout: 245 seconds]
neanderslob_ has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
jpfuentes2 has joined #ruby
elton has quit [Ping timeout: 246 seconds]
poguez_ has joined #ruby
jas02 has joined #ruby
Arnvald has quit [Remote host closed the connection]
nixmaniack has quit [Remote host closed the connection]
WizJin has quit [Excess Flood]
nixmaniack has joined #ruby
maloik has joined #ruby
jpfuentes2 has quit [Ping timeout: 245 seconds]
brennebeck has quit [Ping timeout: 246 seconds]
skade has joined #ruby
<shevy> does anyone know why there is no attr* for something such as: def foo?; @foo; end ? It is no big deal, one can do: attr_reader :foo; alias foo? foo but I was wondering about why that has no attr*
maloik has quit [Ping timeout: 260 seconds]
shanemcd has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
<norc> shevy: Because storing a boolean state is not something you do very often
Cantaberry has quit []
sphex has joined #ruby
regex101-1233 is now known as masterman
masterman is now known as mastermanx
WizJin has joined #ruby
brennebeck has joined #ruby
Oog has quit []
troys has joined #ruby
shanemcd has quit [Ping timeout: 260 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quaristice has joined #ruby
Oog has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
jbrhbr has quit [Quit: Leaving.]
<jhass> shevy: crystal has it :P
codecop has joined #ruby
<shevy> jhass hmm
IrishGringo has quit [Remote host closed the connection]
brennebeck has quit [Ping timeout: 260 seconds]
mastermanx has quit [Quit: Page closed]
ruby-lang013 has joined #ruby
<ruby-lang013> hello
<ruby-lang013> how fast can you learn ruby and get a job
mobson has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
<norc> ruby-lang013: Depends on you entirely.
rodfersou has joined #ruby
<ruby-lang013> is a month realistic?
<norc> No.
<ruby-lang013> i know the basic already
<norc> Learning Ruby yet. Getting a job based on that knowledge - Id say no.
spicymagpie has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<ruby-lang013> are there exercises to learn ruby out there
<norc> ruby-lang013: It really depends on your problem solving skills and general programming experience.
<ruby-lang013> a list of them
<norc> ruby-lang013: I managed to get a job with some Ruby focus with a minimum of knowledge, but I come with an extensive C++ background.
<ruby-lang013> i am speaking of freelance work
fly5566 has joined #ruby
<ruby-lang013> i wouldnt be able to go to an office
<norc> ruby-lang013: Depends on how good you are.
<norc> If you can find someone willing to pay for what you are *able* to do, great.
<spicymagpie> it all depends on how good you are and what's your focus.
<norc> Also as a freelancer it depends on your ability to make contacts.
<norc> More than your experience as a developer.
vondruch has joined #ruby
lkba_ has joined #ruby
maloik has joined #ruby
troys has quit [Quit: Bye]
anisha has joined #ruby
<norc> ruby-lang013: You have to be good at what you are doing and able to find people willing to pay for it. As a starting freelancer the second part is the really difficult one, but requires the first nonetheless.
<norc> I would say it took me a couple years on and off gathering experience to feel comfortable enough asking money for my code.
duckpuppy has joined #ruby
<norc> Ruby specifically.
<ruby-lang013> ok
spicymagpie has quit [Quit: spicymagpie]
zeroDivisible has quit [Quit: WeeChat 1.3]
lkba has quit [Ping timeout: 260 seconds]
<ruby-lang013> how much did you work at gathering experiences?
<norc> When starting out with C++ I spent about 6 months full time understanding common patterns.
juddey has quit [Ping timeout: 245 seconds]
<norc> That should be a good reference point.
<norc> After that it took me 2 years to be at least half way competent.
tagrudev has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
maloik has joined #ruby
<ruby-lang013> and you were paid how much?
<norc> About avg. wage as an inexperienced junior developer :)
<ruby-lang013> 20$?
aufi has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
InvGhost has joined #ruby
peterhil_ has joined #ruby
naftilos76 has quit [Ping timeout: 246 seconds]
maloik has quit [Ping timeout: 260 seconds]
maloik_ has joined #ruby
brunto has joined #ruby
norc has quit [Ping timeout: 252 seconds]
ruby-lang013 has left #ruby [#ruby]
user1138 has quit [Ping timeout: 246 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
<al2o3-cr> It's Fridaaaaayyyyyyyyyyyyyy ;)
aibot has quit [Remote host closed the connection]
juddey has joined #ruby
glenny has quit [Quit: Konversation terminated!]
krz has joined #ruby
SolarSailor has joined #ruby
peterhil_ has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
astrobun_ has quit [Remote host closed the connection]
user1138 has joined #ruby
fabrice31 has joined #ruby
fabrice31 has quit [Client Quit]
wjb has quit [Read error: Connection reset by peer]
wjb has joined #ruby
elton has joined #ruby
freeze has quit [Ping timeout: 245 seconds]
user1138 has quit [Ping timeout: 250 seconds]
DurstBurger has joined #ruby
ethe has joined #ruby
freeze has joined #ruby
krz has quit [Read error: Connection reset by peer]
zast has left #ruby [#ruby]
krz has joined #ruby
kies has quit [Ping timeout: 246 seconds]
<Jet4Fire> al2o3-cr: realy?
ibouvousaime has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
ethe has quit [Client Quit]
elton has quit [Ping timeout: 246 seconds]
ethe has joined #ruby
ethe has quit [Client Quit]
aspiers has joined #ruby
DurstBurger has quit [Ping timeout: 260 seconds]
jpfuentes2 has joined #ruby
ethe has joined #ruby
yes`r has quit [Ping timeout: 260 seconds]
Arnvald has joined #ruby
Pumukel has joined #ruby
roshanavand has joined #ruby
ethe has quit [Client Quit]
yes`r has joined #ruby
ethe has joined #ruby
rsc___ has joined #ruby
user1138 has joined #ruby
jpfuentes2 has quit [Ping timeout: 260 seconds]
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> Jet4Fire: No, i was just kidding
roshanavand has quit [Remote host closed the connection]
ethe has quit [Client Quit]
roshanavand has joined #ruby
ethe has joined #ruby
RegulationD has joined #ruby
quaristice has joined #ruby
sandstrom has joined #ruby
djbkd has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
ethe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
<Jet4Fire> al2o3-cr: friday will start when i will go out from work
djbkd has quit [Client Quit]
agent_white has joined #ruby
SOLDIERz has quit [Ping timeout: 260 seconds]
ICantCook has quit [Quit: bye]
peterhil_ has joined #ruby
troulouliou_div2 has joined #ruby
DexterLB has joined #ruby
rsc___ has quit [Ping timeout: 246 seconds]
agent_white has quit [Read error: Connection reset by peer]
user1138 has quit [Remote host closed the connection]
user1138 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
<solars> is there a nicer way to catch s.imported_clicks being nil than: s.imported_clicks = (s.imported_clicks.to_i + clicks) if clicks
<solars> if I want to add? :)
user1138 has quit [Remote host closed the connection]
peterhil_ has quit [Ping timeout: 245 seconds]
Arnvald has quit [Remote host closed the connection]
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
<apeiros> solars: the nicer way is to have it default to zero instead of nil
<apeiros> and then you can just s.imported_clicks += clicks if clicks
user1138 has joined #ruby
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
user1138 has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
user1138 has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
<shevy> so much clicking
juddey has quit [Ping timeout: 246 seconds]
kmckelvin has joined #ruby
<solars> apeiros, this depends on the use case as zero is semantically different from nil
joonty has joined #ruby
<solars> in this case I need nil
<apeiros> why?
troulouliou_div2 has quit [Quit: Leaving]
<solars> why I need it?
<apeiros> yes
<solars> it's for a state like 'unset'
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<apeiros> why do you need to specify it as "unset"?
<solars> because it is unset
<solars> :)
dimik has quit [Ping timeout: 260 seconds]
<apeiros> that's a nonsensical explanation
<apeiros> it's so because it is so
duckpuppy has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
TheHodge has joined #ruby
rsc___ has joined #ruby
Snowy has joined #ruby
brennebeck has joined #ruby
<solars> if you're working with sums or calculations, there is a difference between unset and 0
ohle has joined #ruby
<apeiros> dude, I *know* that.
<apeiros> I ask you for *your specific reason*
<solars> so what's the question?
<apeiros> not for the abstract theory behind the difference of nil and zero.
<solars> I will abstract it
<apeiros> that won't help.
<solars> if you're aggregating data, for example on a per day basis
<solars> it will, let me explain
<solars> and let's say you have colums A, B - B is an estimation and A is the measured value
duckpuppy has quit [Ping timeout: 245 seconds]
<solars> you want to sum up for particular results, if the measurement is not there yet, you take the estimation
<solars> which translates to: if A is unset, use B
rdark has joined #ruby
rdark has joined #ruby
peterhil_ has joined #ruby
<apeiros> so you have an alternative approach formulated already: how can you test whether you have measurements? your current implementation is to check against nil in your sum. maybe there's another way.
gaussblurinc1 has joined #ruby
<solars> there is not, but that was not my question :)
<apeiros> but on the current level of abstraction, I'm disengaging. I see little point in doing it this way.
rsc___ has quit [Ping timeout: 246 seconds]
brennebeck has quit [Ping timeout: 260 seconds]
ohle has quit []
<solars> alright :)
<ljarvis> why would you even execute if imported_clicks is nil? you're just setting it to zero if clicks is set, that's intentional?
dlitvak has joined #ruby
<solars> ljarvis, it's a sum in the brackets
<ljarvis> setting it to the same value as clicks, rather
<solars> apeiros, imagine A and B are millions of entries in a DB and you need to sum up these rows
<ljarvis> solars: right, but your statement is ran when s.imported_clicks is nil, but you say "catch s.imported_clicks being nil"
Musashi007 has joined #ruby
<ljarvis> so you actually want the zero value of it in this scenario anyway
<solars> apeiros, in order to be fast it has to be done in sql, and sql is rather restricted, so if you want to do this in one query, you're bound to a solution like this
peterhil_ has quit [Ping timeout: 245 seconds]
<apeiros> solars: as said, I'm not interested in discussing an abstracted problem
Hounddog has joined #ruby
<ljarvis> did you come just to try and teach apeiros things he doesn't care about or already knows or do you have a question?
<solars> ljarvis, sorry? he asked me what I want to do and I explained it. I didn't get your statement above though, sorry
<apeiros> solars: a database can tell you whether there's records and the sum of one column of those records in one query
rsc___ has joined #ruby
casadei has joined #ruby
<apeiros> solars: and if you do two queries, you can test for the mere existence of records in a first query, and get the costly sum in a second query
<solars> apeiros, an abstraction helps understanding, there is no point in telling you that A is actually a very complicated chemical reaction
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
<ljarvis> solars: I'm trying to answer your original question, but Ifeel like we've come a long way away from that with some odd abstraction discussion, so I should stick out :)
dlitvak has quit [Ping timeout: 245 seconds]
<apeiros> solars: fine. that's your point. I disagree and tell you that I'm not interested under that condition.
<solars> apeiros, but then I need two queries, why should I, if I can do it in one? after all the semantic difference of zero vs null is a concept
<apeiros> solars: see above. told you you can do it in one.
Hounddog has quit [Excess Flood]
<apeiros> whether you use the one or two queries solution depends on the (whoops) concrete and specific use-case.
<solars> apeiros, you mean the first sentence? but you cannot do what I explained above
marr has joined #ruby
<apeiros> um, yes. you can.
Hounddog has joined #ruby
<solars> how?
<apeiros> by doing a query which tells you whether there's records or not. there's case/when in sql.
Musashi007 has quit [Quit: Musashi007]
<solars> this is exactly what I explained
<solars> the problem is
<solars> there ARE records
<apeiros> stop
<apeiros> I'm not interested.
<solars> as written
* apeiros afk now.
<solars> lol
Hounddog has quit [Excess Flood]
wldcordeiro has quit [Ping timeout: 246 seconds]
<solars> you're mad now because you didn't understand the problem? I'm sorry that I offended you because of that
ZeeNoodley has quit [Quit: Aiyaiyai]
<apeiros> no. I'm not mad.
<apeiros> this discussion is pointless.
<apeiros> you won't get a solution if you insist on staying abstract.
<shevy> it does have some popcorn value!
<solars> then don't make any assumptions if you didn't understand the problemm
<solars> -m
<apeiros> and you say I make assumptions? :D
Emmanuel_Chanel has joined #ruby
<solars> well, I can read the log, so yes
<apeiros> solars: ad-hominem isn't a nice way. leave it at that I'm not interested, ok?
SCHAAP137 has joined #ruby
<solars> apeiros, that's what I did before but you insisted on the fact that my solution is not valid, although you did not understand my problem
<solars> so it's justified that I explain myself, right
<solars> if you don't want to understand it, then don't ask
<apeiros> I can as much just assert that you fail to understand the solution.
<apeiros> and it'd be just as pointless as your assertion
Hounddog has joined #ruby
<apeiros> so again: stop.
<solars> haha
<solars> you tell me I don't understand the solution, but do not let me prove youre wrong?
<solars> alright
pwnd_nsfw has quit [Ping timeout: 260 seconds]
based_pdev has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
kam270 has joined #ruby
based_pdev_ has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
nettoweb has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
elton has joined #ruby
Hounddog has joined #ruby
ohaibbq_ has joined #ruby
kam270 has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
ohaibbq has quit [Ping timeout: 260 seconds]
DurstBurger has joined #ruby
lemur has joined #ruby
vdamewood has quit [Quit: Life beckons.]
fly5566 has quit [Quit: Leaving...]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
wldcordeiro has joined #ruby
ohaibbq_ has quit [Quit: Leaving...]
xfbs has joined #ruby
DurstBurger has quit [Ping timeout: 260 seconds]
jpfuentes2 has joined #ruby
dkam has quit [Remote host closed the connection]
MissionCritical has quit [Excess Flood]
lemur has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
xfbs has quit [Client Quit]
skade has joined #ruby
xfbs has joined #ruby
Oog has quit []
jpfuentes2 has quit [Ping timeout: 245 seconds]
kam270 has joined #ruby
mikecmpbll has joined #ruby
towski_ has joined #ruby
MissionCritical has joined #ruby
sonOfRa has joined #ruby
Emmanuel_Chanel has quit [Read error: No route to host]
towski_ has quit [Remote host closed the connection]
elton has quit [Read error: Connection reset by peer]
elton has joined #ruby
peterhil_ has joined #ruby
workmad3 has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
hanmac1 has joined #ruby
hanmac has quit [Ping timeout: 260 seconds]
cornerman has quit [Ping timeout: 260 seconds]
nbdy has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba_ has quit [Ping timeout: 260 seconds]
cornerman has joined #ruby
tvw has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
johnny56_ has quit [Read error: Connection reset by peer]
peterhil_ has quit [Ping timeout: 260 seconds]
borodin has quit [Read error: Connection reset by peer]
<apeiros> gawd, I tell you today is halloween bloodmoon monday. all the stuff is going wrong in weird ways.
Emmanuel_Chanel has joined #ruby
musl has quit [Ping timeout: 260 seconds]
Azure has quit [Read error: Connection reset by peer]
johnny56_ has joined #ruby
Azure has joined #ruby
vdamewood has joined #ruby
duckpuppy has joined #ruby
peterhil_ has joined #ruby
<ljarvis> it's almost the weekend though, so there's that
<apeiros> oh, I actually wanted to write this in #ruby-ot :D
brennebeck has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
ruby-lang626 has joined #ruby
<ruby-lang626> anyone here?
edwinvdgraaf has joined #ruby
karapetyan has quit [Remote host closed the connection]
<ruby-lang626> how many hours does it take to learn ruby to be able to work
colegatron has joined #ruby
brennebeck has quit [Ping timeout: 260 seconds]
chridal has quit [Ping timeout: 260 seconds]
elton has quit [Ping timeout: 245 seconds]
<apeiros> ruby-lang626: depends on how much knowledge you already have wrt programming
<apeiros> if you know a language like python - a couple of hours
Fraeon has joined #ruby
peterhil_ has quit [Ping timeout: 260 seconds]
<apeiros> if you're starting with programming - a couple of days to a couple of weeks, depending on your receptiveness for programming
karapetyan has joined #ruby
<ruby-lang626> i have basics, i have done codecademy
<ruby-lang626> i could work for $?
chridal has joined #ruby
<shevy> lol
<ruby-lang626> i have done w3schools javascript
joonty has quit [Quit: joonty]
<apeiros> you can always work for $. that's not very related to your abilities, but rather to the willingness of somebody to pay you for what you have to offer ;-)
karapetyan has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
karapetyan has joined #ruby
<ruby-lang626> im looking to get a stable income fast
joonty has joined #ruby
<ruby-lang626> i would do freelance
xfbs has quit []
peterhil_ has joined #ruby
nfk|laptop has joined #ruby
<shevy> lol
<apeiros> hm? what's funny shevy?
<shevy> that guy
<shevy> <ruby-lang013> i am speaking of freelance work
elton has joined #ruby
Chau has joined #ruby
<apeiros> you mean same person?
<Ray`> ruby-lang626: you'll need a few years of experience and the ability to demonstrate your ability
<hectortrope> hey shevy
<Ray`> it's likely you'll have to do a bunch of very low paid or even free work for a while first in order to develop a portfolio
<apeiros> Ray`: not necessarily. we hired people who had neither ruby nor rails experience.
<shevy> apeiros yeah but also the pattern before ... "<ruby-lang013> how fast can you learn ruby and get a job" and "<ruby-lang013> is a month realistic? <norc> No."
<Ray`> contributing to open source projects or developing one can be an alternative way to do that
sepp2k has joined #ruby
<Ray`> apeiros: true, but were they knew to programming in general?
<shevy> hey tectorhrope
<Ray`> and would you hire a freelance developer for a contract in rails who had no rails experience?
<apeiros> Ray`: one was, the other wasn't. expectations were different for both.
ruby-lang626 has quit [Ping timeout: 252 seconds]
<Ray`> I'd imagine the pay's pretty different for both positions too
<apeiros> Ray`: it's really as I said - being able to charge $ has more to do with your employer than your current skillset.
<shevy> apeiros did you manage to train up the non-ruby guy to ruby guru level?
<Ray`> sorta
<apeiros> Ray`: sure. also contract is different.
<apeiros> shevy: not guru-level. but he's quite productive.
<Ray`> yeah, although I do tend to use freelancing/contracting fairly interchangably I guess
<apeiros> IMO it paid off easily.
<Ray`> because I freelance, but take on contract work
Ebok has quit [Read error: Connection reset by peer]
Guest4028 has joined #ruby
<apeiros> for freelancer, the situation is a bit different again. I'm unwilling to hire a freelancer (as a freelancer) without a portfolio.
Ebok has joined #ruby
<Ray`> yeah
<Guest4028> Ray`: I like to hire a freelancer
<Ray`> get in line man
<baweaver> be nice
<Ray`> my bad
<bubbys> github projects a more importantn tnan a portfolio, imho
<Guest4028> any good beginner freelancer with trsut wortth here ?
veverak has joined #ruby
<baweaver> bubbys: both are needed, more towards portfolio
<Ray`> bubbys: I don't think those two are mutually exclusive
<apeiros> bubbys: um, github projects ⊂ portfolio
<baweaver> You can have hundreds of crap git projects
<baweaver> and no finished work
* shevy raises hand
<Ray`> yeah
<apeiros> (and in case the symbol between "projects" and "portfolio" doesn't show: it's "subset")
<baweaver> A portfolio is what you have done and shipped
<Ray`> venn diagrams needed here
<baweaver> things that are live
<baweaver> if that's absent I'm not hiring
<Ray`> ya
musl has joined #ruby
<baweaver> unless you have one heck of a good reason why not
<apeiros> I'd consider "on github" as shipped. even if it is not (yet) working. I can use it to get an estimate of the candidate's capabilities.
<Guest4028> I hire so many freelancers and I never see github or portfolios as a higher level I dont know what they are but I see the work :P
<baweaver> such as working on internal only
<Guest4028> and Results
<Ray`> well this is a good example of how different employers have completely different metrics
<Ray`> and you probably want to cover all your bases
snrobot has quit [Remote host closed the connection]
<apeiros> but tbh, github & portfolio are the quick screening attributes. it's what gets you an interview. in the interview, none of them are relevant to me.
<veverak> hi folks, I just upgraded one server to new debian version.. (and more or less everything was ugpraded) but there is one script that gave me error and I am not exactly ruby guy :D I suppose it's just about getting proper format from rubys time I suppose... https://bpaste.net/show/607731e740b6
<baweaver> I count portfolio work as done and shipped to a client
<bubbys> freelancer can have portfolio, but he can steal projects from firm or another portfolio
lacuna has quit [Remote host closed the connection]
<veverak> would somebody willing to give me a hint about how to repair this?
<baweaver> I can tell if they do
DurstBurger has joined #ruby
blaxter has joined #ruby
joonty has quit [Quit: joonty]
<Ray`> I'd guess you probably have a bunch of red flags too
<Ray`> most of the people I've spoken to in the hiring process seem to
<Guest4028> Where can I find freelancers on IRC ?? As its so stupid to talk about freelancers on IRC
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elton has quit [Ping timeout: 245 seconds]
<Ray`> it's useful to know what's going on in the hiring process in varying environments
roxtrongo has joined #ruby
<Guest4028> Ray`: but freelancers hire totally diffrent from job hiring
AlphaAtom has joined #ruby
chocho_ has joined #ruby
<Guest4028> freelancers are very unsafe
<Ray`> if you have an efficient screening and interviewing process, it doesn't have to be
<Ray`> the points mentioned in the conversation just now were good
<Guest4028> Ray`: I have a doubt freelancer == some one from freelancer.com upwork.com like that ?
<Guest4028> or just different ?
<Ray`> no not necessarily, those are outsourcing sites
nertzy has joined #ruby
<Guest4028> then ?
<Guest4028> I have a idea to set up a startup in my places usiing freelancers form those websites
DurstBurger has quit [Ping timeout: 260 seconds]
<Guest4028> pay them less get payed from client
<Ray`> this is probably getting off topic
InvGhost has quit [Ping timeout: 260 seconds]
<Guest4028> where is #startup ?/
<Ray`> I'd suggest searching for information on how to create an agency, that seems to be what you're doing
<bubbys> silly newbie
chocho has quit [Ping timeout: 260 seconds]
Peg-leg has joined #ruby
<Guest4028> bubbys: me ?/
<Guest4028> ]I am newbie but very serious guy not silly
sepp2k has quit [Quit: Leaving.]
<shevy> lol
<bubbys> money on account?
chocho_ has quit [Ping timeout: 245 seconds]
roxtrongo has quit [Ping timeout: 246 seconds]
<Guest4028> Bye
<Guest4028> Shevy bro
agent_white has quit [Quit: Lost terminal]
<Guest4028> I have respect to you'
<Ray`> good luck and godspeed
<Guest4028> what ?
<Ox0dea> Ray`: Redundant.
<Guest4028> no one talks to me I am not a troll :(
agent_white has joined #ruby
<bubbys> seems he hasnt money totally
<Guest4028> hello bubbys
chocho_ has joined #ruby
<Guest4028> wtf u guys talking am I in ruby ?
RegulationD has joined #ruby
<bubbys> i dont speak with silly opponents
prestorium has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ray`> I need to get better at recognizing trolls
<Guest4028> Ray`: ??
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Guest4028> I think I am in wrong channel
<Guest4028> bye
Guest4028 is now known as Liar_looser
cjk101010 has quit [Ping timeout: 264 seconds]
blaxter has quit [Ping timeout: 260 seconds]
atomical has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
akem has quit [Quit: Bye]
RegulationD has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
toretore has joined #ruby
xfbs has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
Liar_looser has quit [Quit: Lost terminal]
Jet4Fire has joined #ruby
ldnunes has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
wpp has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
platzhirsch has joined #ruby
xfbs has quit []
CrazyEddy has joined #ruby
krz has quit [Quit: WeeChat 1.2]
stannard has joined #ruby
Jet4Fire has joined #ruby
TeresaP has quit [Ping timeout: 252 seconds]
platzhirsch has left #ruby [#ruby]
duckpuppy has joined #ruby
DoubleMalt has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has quit [Quit: This computer has gone to sleep]
stannard has quit [Ping timeout: 246 seconds]
cjk101010 has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
digneety has joined #ruby
danielpclark has quit [Quit: Leaving]
lokulin has quit [Ping timeout: 260 seconds]
Jet4Fire has joined #ruby
allcentury has joined #ruby
lokulin has joined #ruby
Jet4Fire has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
agent_white has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
agent_white has joined #ruby
allcentury has joined #ruby
atomical has joined #ruby
baweaver has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
Jet4Fire has joined #ruby
baweaver has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
Jet4Fire has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
elton has joined #ruby
favadi has joined #ruby
snrobot has joined #ruby
favadi has quit [Client Quit]
DurstBurger has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
Jet4Fire has joined #ruby
dionysus69 has joined #ruby
snrobot has quit [Ping timeout: 260 seconds]
elton has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
DurstBurger has quit [Ping timeout: 245 seconds]
jpfuentes2 has joined #ruby
baweaver has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
Jet4Fire has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Ping timeout: 260 seconds]
moei has quit [Quit: Leaving...]
arup_r has joined #ruby
adaedra has joined #ruby
moei has joined #ruby
`derpy has joined #ruby
Jet4Fire has joined #ruby
<arup_r> I was trying to make some getter method using defined_method, but it shouts when I used bare `super`, but once I added super() all is well. Just want to verify the choice of super() is correct decision or not. Gist: https://gist.github.com/aruprakshit/f0bb665e21e9f9927faa
Musashi007 has joined #ruby
Jet4Fire has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
Musashi007 has quit [Client Quit]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jet4Fire has joined #ruby
karapetyan has quit [Remote host closed the connection]
jpinnix______ has quit []
jpinnix______ has joined #ruby
crazydiamond has quit [Remote host closed the connection]
Jet4Fire has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
ibouvousaime has quit [Ping timeout: 260 seconds]
User4587_ has quit [Ping timeout: 260 seconds]
<shevy> super is kind of weird
<shevy> when you use () there then the ruby parser knows that you won't pass any arguments to the super-ed initialize() or whatever else method it is
<shevy> your code also is weird :)
kmckelvin has quit [Quit: Leaving]
<arup_r> shevy: yes for super explanation.. dunno about wired..
<shevy> hehe
User458764 has joined #ruby
dlitvak has joined #ruby
<shevy> haven't seen this before yet: return (super == 'true')
sdothum has joined #ruby
<arup_r> shevy: otherwise, I need to add like 15 def... end
Jet4Fire has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
<arup_r> shevy: DB don't understand true and false .. it is a JSON column, so all is tring.. That is why I made the super method like that.. to process it centrally
<arup_r> so when I will call a method.. it will give me true or false
<arup_r> shevy: idea is copied from a blogpost.. I can't be that smart though.. My idea is only to use define_method ..
<arup_r> Ruby is for lazy people.. hehe
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
jds has quit [Quit: Connection closed for inactivity]
kp666 has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
cdg has joined #ruby
ibouvousaime has joined #ruby
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
zapata has quit [Ping timeout: 240 seconds]
brennebeck has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
glowcoil has quit []
glowcoil has joined #ruby
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
brennebeck has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
knowtheory has quit []
casadei has quit [Remote host closed the connection]
veverak has left #ruby ["WeeChat 1.0.1"]
quaristice has joined #ruby
knowtheory has joined #ruby
<shevy> yeah I used define_method too myself, I just never saw that return super thing there
aspiers has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
quaristice has quit [Client Quit]
quaristice has joined #ruby
bronson has joined #ruby
Robert__ has joined #ruby
tomaz_b has joined #ruby
musicmatze has quit [Ping timeout: 245 seconds]
zapata has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
workmad3 has joined #ruby
gaussblurinc1 has joined #ruby
casadei has joined #ruby
gaussblurinc1 has quit [Client Quit]
linduxed has joined #ruby
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
ibouvousaime has quit [Ping timeout: 245 seconds]
dionysus69 has joined #ruby
cdg has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 246 seconds]
tomaz_b has quit [Quit: Leaving]
pragmatism has quit [Ping timeout: 260 seconds]
ibouvousaime has joined #ruby
<shevy> semi-offtopic in regards to opening a file with an editor, and with ruby now being able to tell you the lines where a method is defined, and the specific file; at a specific position. I know that vim allows this, e. g. +50 to jump to line 50. Which other popular editors support something like this? sublime?
xfbs has joined #ruby
rgrmatt has joined #ruby
User458764 has quit [Ping timeout: 246 seconds]
pragmatism has joined #ruby
<apeiros> shevy: most. most common format I've seen for this is file:line
sandstrom has joined #ruby
<apeiros> with sublime, it's `subl file:line`, with bbedit it's `bbedit file:line`
InvGhost has joined #ruby
User458764 has joined #ruby
lacuna has joined #ruby
rgrmatt has quit [Ping timeout: 246 seconds]
DurstBurger has joined #ruby
elton has joined #ruby
nixmaniack has quit [Remote host closed the connection]
<shevy> aha ok
xfbs has quit []
Guest11 has joined #ruby
lacuna has quit [Ping timeout: 246 seconds]
rodfersou has quit [Ping timeout: 245 seconds]
DurstBurger has quit [Ping timeout: 246 seconds]
elton has quit [Ping timeout: 245 seconds]
tk__ has joined #ruby
rodfersou has joined #ruby
imperator has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
bodie_ has joined #ruby
Guest11 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest11 has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
Guest11 has quit [Max SendQ exceeded]
User458764 has joined #ruby
sdwrage has joined #ruby
Ishido has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
gaussblurinc1 has joined #ruby
DexterLB has joined #ruby
gaussblurinc1 has quit [Client Quit]
User458764 has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
tjad has quit [Ping timeout: 260 seconds]
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
<Fire-Dragon-DoL> stupid question... Is ruby Thread#status thread-safe? Like if I check if the thread terminated from another thread, will it be safe or do I have to ensure safety by myself?
rsc___ has quit [Quit: rsc___]
symbol has joined #ruby
nixmaniack has joined #ruby
casadei has quit [Remote host closed the connection]
rsc___ has joined #ruby
<yorickpeterse> Fire-Dragon-DoL: no
gaussblurinc1 has joined #ruby
cajone has quit [Quit: Leaving.]
<yorickpeterse> There's no locking involved in Thread#status, so I'm pretty sure it's not safe
gaussblurinc1 has quit [Client Quit]
CrazyEddy has quit [Remote host closed the connection]
<Fire-Dragon-DoL> mh thanks yorickpeterse
jmonreal has joined #ruby
<jmonreal> How can I check in a nested hash either a value is present or not inside the different keys which I do not know
d0lph1n98 has joined #ruby
cajone has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
BadBlock has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jmonreal> without doing nested loops
gaussblurinc1 has joined #ruby
<jmonreal> is there something like hash.has_value?(valueSeeked)
joonty has quit [Quit: joonty]
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
<apeiros> jmonreal: there's no method to deal with deep structures
xfbs has joined #ruby
<apeiros> for the simple reason that this is very use-case specific and needs intimate knowledge about the structure of the nesting.
<jmonreal> apeiros: so if I get the inner hash, i could if innerHash.has_value(valueSeeked)?
gaussblurinc1 has joined #ruby
<apeiros> jmonreal: I don't understand
gaussblurinc1 has quit [Client Quit]
Chau has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
<apeiros> jmonreal: how does that link clarify what you wanted to ask?
<jmonreal> asking about the method has_value
Mon_Ouie has quit [Ping timeout: 260 seconds]
<gregf_> jmonreal: if its a deeply nested structure then i would imagine recursion.
<apeiros> the method has_value? (note the "?", it's part of the name) checks the *current* hash. it does not descend into nested hashes.
<jmonreal> may I check the inner hash with if innerHash.has_value("foo")
<apeiros> yes
<jmonreal> just one hash inside another
<apeiros> but again, has_value?, not has_value.
mikecmpbll has joined #ruby
<jmonreal> ok
<KrzaQ> if I want to have an infinite integer enumerator, can I do it in a nicer way than (0..9999999999999999999999999999) ?
last_staff has quit [Read error: Connection reset by peer]
<jmonreal> thanks apeiros
gaussblurinc1 has joined #ruby
<apeiros> KrzaQ: 0..Float::INFINITY
gaussblurinc1 has quit [Client Quit]
<KrzaQ> Okay, still long :(
<KrzaQ> Thanks though
<apeiros> KrzaQ: are you restricted on chars for your code or something?
<apeiros> KrzaQ: you can always assign that to a constant
skade has joined #ruby
<KrzaQ> Restricted: no, but I want to make my advent of code solution short :P
brennebeck has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
duncannz has quit [Ping timeout: 245 seconds]
<KrzaQ> I guess I can live with 4 lines and <200 bytes
Robert__ has quit [Ping timeout: 245 seconds]
symbol has quit [Quit: WeeChat 1.1]
yokel has quit [Ping timeout: 260 seconds]
gaussblurinc1 has joined #ruby
d0lph1n98 has quit [Quit: Lost terminal]
peterhil_ has quit [Ping timeout: 260 seconds]
brennebeck has quit [Ping timeout: 260 seconds]
DEac- has quit [Quit: leaving]
cac has joined #ruby
yokel has joined #ruby
Outlastsheep has joined #ruby
moua has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
inoperable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
cac has quit [Remote host closed the connection]
Ropeney has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
<jmonreal> if I want to write to a file (appending texts) and if the file does not exist, is it valid open('file.out', a) do |f| f.puts string end
`derpy has quit [Ping timeout: 246 seconds]
<jmonreal> ?
adaedra has quit [Ping timeout: 246 seconds]
gusTester has joined #ruby
d0nn1e has joined #ruby
<apeiros> yes
<apeiros> ?try jmonreal
<ruboto> jmonreal, Why don't you try it and see for yourself?
peterhil_ has joined #ruby
snrobot has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
`derpy has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
jgt has joined #ruby
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
DurstBurger has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
adaedra has joined #ruby
lemur has joined #ruby
joonty has joined #ruby
nixmaniack has quit [Remote host closed the connection]
DEac- has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
snrobot has quit [Ping timeout: 260 seconds]
casadei has joined #ruby
nateberkopec has joined #ruby
gaussblurinc1 has joined #ruby
rsc___ has quit [Ping timeout: 260 seconds]
gaussblurinc1 has quit [Client Quit]
tvw has quit [Ping timeout: 245 seconds]
<jmonreal> ruboto: thanks ;)
jpfuentes2 has joined #ruby
babblebre has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
opencard has joined #ruby
DurstBurger has quit [Ping timeout: 260 seconds]
opencard has quit [Client Quit]
gaussblurinc1 has joined #ruby
SCHAAP137 has joined #ruby
gaussblurinc1 has joined #ruby
circ-user-mgcmJ has joined #ruby
opencard has joined #ruby
casadei has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Ping timeout: 246 seconds]
gaussblurinc1 has quit [Client Quit]
lavros has joined #ruby
radgeRayden has quit [Quit: Leaving]
DEac- has quit [Quit: leaving]
FooMunki has joined #ruby
sgambino has joined #ruby
opencard has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
wprice has joined #ruby
p0wn3d has joined #ruby
goodcodeguy has joined #ruby
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
DEac- has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
JDiPierro has joined #ruby
arup_r has quit [Remote host closed the connection]
tvw has joined #ruby
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
hectortrope has joined #ruby
yes`r has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
davedev24 has joined #ruby
lukeasrodgers has joined #ruby
saneax is now known as saneax_AFK
gaussblurinc1 has joined #ruby
sdwrage has joined #ruby
gaussblurinc1 has joined #ruby
Guest3296 has joined #ruby
last_staff has joined #ruby
gaussblurinc1 has quit [Client Quit]
ghost2060 has joined #ruby
<ghost2060> Question: I have an array of four boolean items (a, b, c, d). Only one should be true at any given time, so when A becomes true, how do I set B, C, and D to false? I can do this with a long switch statement, but I feel like there has to be a better way.
gaussblurinc1 has joined #ruby
davedev24 has quit [Ping timeout: 264 seconds]
gaussblurinc1 has quit [Client Quit]
InvGhostt has joined #ruby
<apeiros> ghost2060: so given B is true. And now A becomes true. How do you know which one should be set to false? Or do you actually mean you want to write a method which sets all values except the given one to false?
<ghost2060> if B is now true, A should be false
<apeiros> but all you see is [true, true, false, false]
<ghost2060> i want a method to handle this all, but didn't know if ruby had something build in
<apeiros> how do you now it's A which should be false and not B?
<apeiros> it doesn't
<ghost2060> well, [false, true, false, false] --- when B is true, I need to ensure A is false
<ghost2060> gotcha
* apeiros rolls eyes
jgt has quit [Quit: WeeChat 1.2]
TDJACR has joined #ruby
<xybre> ghost2060: why?
rgrmatt has joined #ruby
bnizzle has joined #ruby
bnizzle has left #ruby [#ruby]
InvGhost has quit [Ping timeout: 260 seconds]
<apeiros> ghost2060: you can gist your method and we can tell you how to improve it.
sdwrage has quit [Quit: This computer has gone to sleep]
cyb3rspy has joined #ruby
Pupeno has quit [Remote host closed the connection]
cyb3rspy has quit [Client Quit]
yokel has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
duckpuppy has joined #ruby
rgrmatt has quit [Ping timeout: 246 seconds]
cyb3rspy has joined #ruby
krobzaur has joined #ruby
Pupeno has joined #ruby
bcavileer_ has quit [Ping timeout: 264 seconds]
brennebeck has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
bcavileer_ has joined #ruby
opencard_348368 has joined #ruby
krobzaur has quit [Read error: Connection reset by peer]
Guest85414______ has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby
Pupeno has quit [Ping timeout: 260 seconds]
Guest85414______ has joined #ruby
brennebeck has quit [Ping timeout: 260 seconds]
opencard_348368 has quit [Read error: Connection reset by peer]
opencard has joined #ruby
lacuna has joined #ruby
Pupeno has joined #ruby
nettoweb has joined #ruby
sankaber has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
Deep_Thought has joined #ruby
sankaber has joined #ruby
lacuna has quit [Ping timeout: 245 seconds]
<Deep_Thought> Hi, I have a suse 11 box with ruby 1.8 installed, if I install the latest ruby (2.5), withh this cause issues?
<Deep_Thought> or rubygem version works with older version f ruby ?
Pupeno has quit [Ping timeout: 260 seconds]
<adaedra> There's no ruby 2.5
yes`r has joined #ruby
AlexRussia has joined #ruby
<Deep_Thought> but rubygems is 2.5
<Deep_Thought> sry i meant rubygem
<adaedra> Since 1.9, ruby bundles rubygem, so it will use its own.
<adaedra> To manage multiple rubies on the same machine, look at chruby.
<havenwood> Deep_Thought: But yeah, you can update RubyGems independently of Ruby.
<Deep_Thought> kk, thanks
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
Deep_Thought has quit [Client Quit]
SolarSailor has joined #ruby
SolarSailor has quit [Client Quit]
dionysus69 has quit [Ping timeout: 260 seconds]
_stu_ has joined #ruby
aryaching has joined #ruby
kp666 has joined #ruby
cdg has joined #ruby
Muz has quit [Changing host]
Muz has joined #ruby
blackjid has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
davedev24 has joined #ruby
blackjid has joined #ruby
elton has joined #ruby
TheHodge has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Arnvald has joined #ruby
ghost2060 has quit [Quit: leaving]
elton has quit [Ping timeout: 245 seconds]
agit0 has joined #ruby
peterhil_ has quit [Ping timeout: 245 seconds]
skade has joined #ruby
skade has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
karapetyan has joined #ruby
Pupeno has joined #ruby
codecop has quit [Quit: Išeinu]
atomical has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
atomical_ has joined #ruby
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
xfbs has quit []
last_staff has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
centrx has joined #ruby
last_staff has joined #ruby
skade has joined #ruby
quaristice has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
tk__ has quit [Quit: ばいばい]
al2o3-cr has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
al2o3-cr has joined #ruby
dhollinger has joined #ruby
weemsledeux has quit [Ping timeout: 246 seconds]
tvw has quit [Read error: Connection reset by peer]
SolarSailor has joined #ruby
peterhil_ has joined #ruby
inoperable has joined #ruby
Mon_Ouie has joined #ruby
peterhil_ has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gaussblurinc1 has quit [Quit: Leaving.]
Xeago has joined #ruby
polishdub has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
roshanavand has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Mon_Ouie has quit [Ping timeout: 260 seconds]
naftilos76 has joined #ruby
anisha has quit [Quit: Leaving]
DurstBurger has joined #ruby
axl_ has joined #ruby
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
frem has joined #ruby
wpp has quit [Quit: ZZZzzz…]
Xeago has quit [Remote host closed the connection]
naftilos76 has quit [Ping timeout: 245 seconds]
Guest3296 has quit [Remote host closed the connection]
stannard has joined #ruby
Xeago has joined #ruby
joonty has quit [Quit: joonty]
rdark has quit [Quit: leaving]
ir2ivps3 has quit [K-Lined]
krz has joined #ruby
jottr has joined #ruby
snrobot has joined #ruby
agit0 has quit [Ping timeout: 260 seconds]
<imperator> well, this is odd: cannot load such file -- ffi
CrazyEddy has joined #ruby
ElFerna has joined #ruby
Rodya_ has joined #ruby
<imperator> on osx, only happens why i try to run the tests
kobain has joined #ruby
<imperator> i can require 'ffi' in irb without issue
<adaedra> Are you sure the right version of ruby is used by your test command?
joonty has joined #ruby
brennebeck has joined #ruby
<imperator> adaedra, i don't specify one, and i also just tried "ruby -Ilib test/test_file_temp.rb" and got the same result, so it's not the Rakefile
rodfersou is now known as rodfersou|lunch
<imperator> https://github.com/djberg96/file-temp is the project
<imperator> not sure when this started, haven't looked at it in a while
krz has quit [Ping timeout: 260 seconds]
brennebeck has quit [Ping timeout: 246 seconds]
<toretore> does irb use the same ruby?
skweek has joined #ruby
whippythellama has joined #ruby
<baweaver> >> (0..1/0.0)
<ruboto> baweaver # => 0..Infinity (https://eval.in/480515)
<imperator> unless rbenv has changed out from under me, should
<baweaver> ah, drat
<baweaver> scrollback
<baweaver> ignore me
kies has joined #ruby
shanemcd has joined #ruby
solars has quit [Ping timeout: 260 seconds]
Wsewolod has joined #ruby
<imperator> toretore, ruby -e 'require "ffi"' does not raise an error
brennebeck has joined #ruby
last_staff has quit [Quit: last_staff]
* imperator shoulda stayed in bed today
Pupeno has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
lxsameer has quit [Quit: Leaving]
davedev24 has quit [Ping timeout: 264 seconds]
davedev2_ has joined #ruby
bkxd_ has quit [Ping timeout: 246 seconds]
Arnvald has quit [Remote host closed the connection]
user1138 has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
yatish27 has joined #ruby
elton has joined #ruby
jas02 has quit [Quit: jas02]
Pupeno has joined #ruby
kp666 has quit [Ping timeout: 245 seconds]
yardenbar has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Ping timeout: 245 seconds]
wjb has quit [Quit: Leaving]
jabreity__ has quit []
johnzorn has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
rsc___ has joined #ruby
elton has quit [Ping timeout: 245 seconds]
uri has joined #ruby
howdoicomputer has joined #ruby
kies has quit [Ping timeout: 246 seconds]
jabreity__ has joined #ruby
joonty has quit [Quit: joonty]
Xeago has quit [Remote host closed the connection]
kam270 has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 260 seconds]
sucks has joined #ruby
InvGhostt has quit [Ping timeout: 260 seconds]
davedev2_ has quit [Ping timeout: 264 seconds]
greenbigfrog has left #ruby [#ruby]
roshanavand has quit [Ping timeout: 260 seconds]
davedev24 has joined #ruby
BTRE has quit [Quit: Leaving]
ckrailo has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
InvGhost has joined #ruby
nertzy has joined #ruby
allcentury has quit [Quit: WeeChat 1.2]
beast has joined #ruby
Pupeno has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has joined #ruby
vondruch has quit [Remote host closed the connection]
joonty has joined #ruby
dlitvak has quit [Remote host closed the connection]
vondruch has joined #ruby
Arnvald has joined #ruby
Pupeno has quit [Remote host closed the connection]
pragmatism has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
bigkevmcd has quit [Ping timeout: 245 seconds]
blaxter has quit [Quit: foo]
Mon_Ouie has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
pragmatism has joined #ruby
casadei has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
blaxter has joined #ruby
dlitvak has joined #ruby
nateberkopec has joined #ruby
bigkevmcd has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
DexterLB has joined #ruby
xcesariox has joined #ruby
vondruch has quit [Remote host closed the connection]
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dsivia has joined #ruby
dsivia has quit [Client Quit]
lavros has quit [Quit: leaving]
moeabdol has joined #ruby
Pupeno has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
lavros has joined #ruby
dsivia has joined #ruby
Pumukel has quit [Ping timeout: 245 seconds]
dsivia has quit [Client Quit]
vondruch has joined #ruby
boxrick1 has quit []
peterhil_ has joined #ruby
lapide_viridi has joined #ruby
moeabdol has quit [Client Quit]
scepticulous has joined #ruby
cjbottaro has joined #ruby
Rumbles has joined #ruby
jessemcgilallen has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
Arnvald has quit [Remote host closed the connection]
boxrick1 has joined #ruby
passerine has joined #ruby
baweaver has quit [Remote host closed the connection]
<Rumbles> hi, is there any way to stop a user in a ruby console from running system commands?
Pupeno has quit [Ping timeout: 260 seconds]
<scepticulous> is there an obvious reason TCO is disabled in ruby by default?
<havenwood> scepticulous: It's a choice between trace instruction and tailcall optimization and the default is trace instruction.
jscheel has joined #ruby
baweaver has joined #ruby
<Ox0dea> Rumbles: It's best to sandbox the process itself.
peterhil_ has quit [Ping timeout: 246 seconds]
<Ox0dea> Ruby is just too dynamic for any other approach to work reliably.
colegatron has quit [Ping timeout: 260 seconds]
* Rumbles goes back to google
<Rumbles> thanks Ox0dea
<Ox0dea> Happy to help.
maloik_ has quit [Ping timeout: 245 seconds]
beast has quit [Quit: Leaving]
SCHAAP137 has quit [Remote host closed the connection]
<Rumbles> so that would just be rails c --sandbox ??
Xeago has joined #ruby
Pupeno has joined #ruby
CrazyEddy has quit [Ping timeout: 260 seconds]
TheCompWiz has quit [Quit: Leaving.]
patdohere has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ethe has joined #ruby
<imperator> oh, tail call optimization...i was like....total cost of ownership is disabled?
BTRE has joined #ruby
dlitvak_ has joined #ruby
joonty has quit [Quit: joonty]
<scepticulous> havenwood: ok, that why the examples always disable traces as well. make sensse.
RegulationD has joined #ruby
Pupeno has quit [Ping timeout: 245 seconds]
lacuna has joined #ruby
rakm has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
agent_white has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
mary5030 has joined #ruby
bronson has joined #ruby
Gnut has joined #ruby
Xeago has quit [Remote host closed the connection]
<Rumbles> Ox0dea, so what I'm trying to is to allow a user to ssh on to a box, and if the session comes from a certain key, it just runs this script: http://fpaste.org/297464/ This puts them in the ruby console in a particular environment. The idea is to allow a dev on to a machine to check if things are working
lacuna has quit [Ping timeout: 245 seconds]
<Rumbles> I showed my boss and he was able to run commands like `rm -rf *` or `bash` and break out in to a bash console
roshanavand has joined #ruby
<Rumbles> which I want to stop
TomyWork has quit [Ping timeout: 246 seconds]
<Rumbles> even with the --snadbox flag set it still allows me to do this...
arup_r has joined #ruby
aufi has quit [Quit: Konversation terminated!]
<Ox0dea> Rumbles: As I've said, you'll want to do this from outside of Ruby.
Pupeno has joined #ruby
<Rumbles> is what I'm attempting even possible?
<Ox0dea> Of course it is.
InvGhost has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
grill_ has joined #ruby
scepticulous has quit [Ping timeout: 260 seconds]
snapcase has quit [Quit: Lost terminal]
<Rumbles> not sure what you mean by outside of Ruby :/
<Rumbles> sorry
sorbo_ has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 245 seconds]
Jet4Fire has quit [Ping timeout: 260 seconds]
<shevy> >> system 'rm -rf /*'
<ruboto> shevy # => (https://eval.in/480543)
colegatron has joined #ruby
<shevy> Rumbles you can sandbox
joonty has joined #ruby
nfk|laptop has quit [Quit: yawn]
Pupeno has quit [Ping timeout: 260 seconds]
<Rumbles> okay, tha's great, can you tell me how? I'm trying to search for how to sandbox, but all my googleing has returned so far is to run the ruby c with --sandbox
<Rumbles> but that allowed me to run `bash` still
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rghose has quit [Quit: Leaving.]
Cohedrin has joined #ruby
ruby-lang022 has joined #ruby
baweaver has quit [Remote host closed the connection]
unreal has joined #ruby
<ruby-lang022> ehllo
kies has joined #ruby
<ruby-lang022> is it realistic to make 1500$ a month in 3 month by learning to cod
<ruby-lang022> code
klaas has quit [Remote host closed the connection]
Pupeno has joined #ruby
duckpuppy has joined #ruby
Jet4Fire has joined #ruby
dimik has joined #ruby
<centrx> huh?
unreal_ has quit [Ping timeout: 246 seconds]
ic2000 has joined #ruby
quaristice has joined #ruby
soulisson has joined #ruby
<shevy> Rumbles yeah not sure, I remember the original code by _why was kept secret, and I think ruboto is also closed source
<soulisson> In ruby, the require statement is like a copy paste, right?
<ic2000> is there a like ruby general channel or can i ask here
<Rumbles> :(
<Rumbles> damn
<havenwood> ic2000: This is the place for Ruby questions. :)
klaas has joined #ruby
Jet4Fire has quit [Ping timeout: 246 seconds]
<shevy> soulisson sorta
<havenwood> Rumbles: Familiar with chroot jails and such?
Pupeno has quit [Ping timeout: 260 seconds]
bronson has quit [Remote host closed the connection]
baweaver has joined #ruby
<soulisson> shevy, thanks
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
<ic2000> havenwood: ok thanks, basically i currently use python but yesterday i had 3 random people tell me to learn ruby instead so i decided to have a look at it. seems like a neat language but is there majar reasons to switch cos if it is better then i shall (not trying to start a flame war)
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
<ic2000> *major
<havenwood> ic2000: Try both and see which you prefer I guess.
<havenwood> ic2000: I prefer Ruby.
<ic2000> havenwood: if u don't mind may i ask why?
elton has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Ping timeout: 260 seconds]
elton has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
lapide_viridi has quit [Quit: Leaving]
<Ox0dea> ic2000: What's your favorite Python feature?
<cyb3rspy> ruby-lang022: yes, definitely. but it all depends on where you live.
Jet4Fire has joined #ruby
<havenwood> ic2000: I prefer the culture of the community, the whimsy, the aesthetics of the language, etc.
douglas has joined #ruby
<Rumbles> sorry, I'm just trying to fix something, one min
<soulisson> shevy, it's more like loading the code in memory :)
<ic2000> Ox0dea: well i can't label anything specifically because i generally like it all round for its simplicity and power
aibot has joined #ruby
<ic2000> which is why i'm open to ruby as i believe they're very similar
<Ox0dea> ic2000: Could you define "simplicity" and "power" in this case?
BZZF has joined #ruby
<Ox0dea> Ruby is not simple.
jondot has joined #ruby
jondot has quit [Client Quit]
<Ox0dea> The conflation of "simple" with "easy" is a terrible mistake made by far too many programmers.
karapetyan has quit [Remote host closed the connection]
favadi has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<ic2000> Ox0dea: in terms of simplicity it's a lot faster and simple to write programs when compared to when i use a language like C. just simple things like not having to define a var type etc
<ic2000> Ox0dea: and power it seems to run pretty fast
<Ox0dea> ic2000: That's ease, not simplicity. See havenwood's link.
<ic2000> Ox0dea and can do a lot of things
wildlander has joined #ruby
based_pdev_ has joined #ruby
baweaver has quit [Remote host closed the connection]
<Ox0dea> ic2000: Python can do everything any other Turing-complete language can do; no less and no more.
RobertBirnie has joined #ruby
cwong_on_irc has joined #ruby
moeSeth has joined #ruby
<Ox0dea> You don't seem to have any particularly compelling reason to choose (or leave) Python.
joonty has quit [Quit: joonty]
Jet4Fire has quit [Ping timeout: 260 seconds]
<ic2000> Ox0dea: i like the ease of it then. i generally want to know a lower level language (c/c++) and a higher one (python or whatever)
<ic2000> and if ruby is better why waste time on python
<Rumbles> havenwood, I am familiar with the concept of chroot jails, I have used them in the past with sftp setup, but I don't know how I would do that when running the the ruby console
based_pdev has quit [Ping timeout: 245 seconds]
[Butch] has joined #ruby
<soulisson> ic2000, I use both, python is awesome and ruby is also awesome
<gregf_> ic2000: its not about ruby or python. i dont mind working on either ;)
<Ox0dea> Rumbles: And you'd never even bumped into the term "sandbox" before today?
<soulisson> ic2000, I'm just a beginner in Ruby but I love it
<Rumbles> sure, but I'm not sure how I would sandbox the ruby console :\
<ic2000> soulisson: what do u use them for, anything spe cific or do you just feel like using one language one day and another the other
<ic2000> day
elton has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
<Rumbles> my google searches only returned the --sandbox flag and that didn't stop me from being able to run system commands
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
<ic2000> also can i use ruby for game development
<Rumbles> so clearly I'm missing your point :)
<ic2000> i've seen rubygame but looks like it's outdated and hardly used
<havenwood> ic2000: See Gosu or RubyMotion for two examples.
hobodave has joined #ruby
<soulisson> ic2000, I'm a security guy, python and ruby are very popular in this domain
<Ox0dea> Rumbles: `rails c` is just another process.
<Rumbles> okay
ethe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jardayn has joined #ruby
skweek has joined #ruby
BZZF has left #ruby ["Leaving"]
<ic2000> ok last question
<ic2000> do employers want ruby?
<soulisson> ic2000, yes
ethe has joined #ruby
<havenwood> ic2000: The recruiters who spam us sure think so. :P
Guest30178 has joined #ruby
<ic2000> havenwood: lol
jhill has quit [Ping timeout: 264 seconds]
<soulisson> ic2000, depends on your country though
<ic2000> soulisson: UK
<soulisson> ic2000, then yes
platzhirsch has joined #ruby
yes`r has quit [Ping timeout: 246 seconds]
elton has quit [Ping timeout: 245 seconds]
<platzhirsch> Any idea why /\A[A-Z0-9_\.%\+\-]+@(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2,10})\z/i this is not matching test@test.social as an email?
<platzhirsch> works here https://regex101.com/r/kS0xM1/1
atomical_ has quit [Ping timeout: 246 seconds]
<platzhirsch> but I guess it's about the flavour
<tubbo> lol
<Zarthus> what language are you using?
<Zarthus> (also, as far as emails go, just validate by @ and .
roshanavand has joined #ruby
<tubbo> ic2000: i say learn ruby just to see how different it is from python. it should either reaffirm your love for python, or give you a newfound love for ruby :)
* platzhirsch points to chanel
<havenwood> platzhirsch: http://rubular.com/r/vfWEYUcgPz
Guest30178 is now known as ZeeNoodley
<Zarthus> platzhirsch: yeah, my bad. I thought for a moment I was in the regex channel.
<platzhirsch> Zarthus: haha sorry
<centrx> Learn Ruby because it's better than Python
ZeeNoodley has quit [Changing host]
ZeeNoodley has joined #ruby
<Zarthus> platzhirsch: regardless, I do recommend just looking for a @ and a ., emails are ... needlessly complex to validate otherwise.
<platzhirsch> havenwood: oh right
<platzhirsch> Zarthus: I agree
<Zarthus> platzhirsch: your real validation will be a verification code of some sort they will use to register
<platzhirsch> but I have to fix that spec for my boss :D
<platzhirsch> otherwise I completely agree
jhill has joined #ruby
<ic2000> platzhirsch: well, might aswell it's not a lot to learn, probably a lot to master though like most languages
joonty has joined #ruby
Encapsulation has joined #ruby
snapcase has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
<ic2000> Ox0dea: the examples u sent looked good, are they popular and still being updated?
<Ox0dea> Did I send examples?
chocho_ has quit [Remote host closed the connection]
towski_ has joined #ruby
<ic2000> Ox0dea: my bad i meant havenwood
<shevy> Ox0dea you sent examples!!!
<Ox0dea> Did havenwood send examples?
snrobot has quit [Remote host closed the connection]
<Ox0dea> Oh, for game libraries.
naftilos76 has joined #ruby
idonthaveacoolna has joined #ruby
<idonthaveacoolna> !balance
<idonthaveacoolna> yo
Xeago has joined #ruby
<platzhirsch> Zarthus: yeah my bad
InvGhost has joined #ruby
blaxter has quit [Quit: foo]
brunto has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
idonthaveacoolna has left #ruby [#ruby]
towski_ has quit [Ping timeout: 245 seconds]
howdoicomputer has quit [Ping timeout: 260 seconds]
soc42 has joined #ruby
passerine has quit [Quit: Leaving]
InvGhostt has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
axl_ has quit [Ping timeout: 260 seconds]
soc42 has quit [Remote host closed the connection]
<ic2000> Ox0dea <havenwood> ic2000: See Gosu or RubyMotion for two examples.
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
<Ox0dea> ic2000: 16:53 <Ox0dea> Oh, for game libraries.
atomical has joined #ruby
<ic2000> Ox0dea: sorry didn't see
Pupeno has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
Pupeno_ has joined #ruby
InvGhost has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
<shevy> long live gosu
karapetyan has quit [Ping timeout: 246 seconds]
rideh has joined #ruby
rodfersou|lunch is now known as rodfersou
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
absolutejam has joined #ruby
howdoicomputer has joined #ruby
Coldblackice has joined #ruby
dashu has joined #ruby
Snowy has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
rdark has joined #ruby
Xeago has quit [Remote host closed the connection]
<dashu> is there a nice ruby course you can recommend. fast paced not for programming beginners ?
hxegon has joined #ruby
zotherstupidguy has joined #ruby
rdark has quit [Quit: WeeChat 1.0.1]
hxegon has quit [Client Quit]
hxegon has joined #ruby
rdark has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
dmcp has joined #ruby
lapide_viridi has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
quaristice has quit [Quit: Textual IRC Client: www.textualapp.com]
rdark has quit [Client Quit]
rdark has joined #ruby
nettoweb has joined #ruby
rdark has quit [Client Quit]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has joined #ruby
yes`r has joined #ruby
ic2000 has quit [Quit: Page closed]
<Ox0dea> dashu: learnxinyminutes.com/docs/ruby/
jscheel has quit [Quit: jscheel]
<Ox0dea> Something like that?
tlarevo has quit []
rdark has quit [Client Quit]
rdark has joined #ruby
hackeron has quit [Ping timeout: 245 seconds]
marcv has joined #ruby
marcv has left #ruby [#ruby]
marcv has joined #ruby
hackeron has joined #ruby
dimik has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
yqt has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
moeabdol has joined #ruby
ElFerna has joined #ruby
rdark has quit [Quit: WeeChat 1.0.1]
rdark has joined #ruby
jessemcgilallen has joined #ruby
sucks_ has joined #ruby
atomical has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
shoutsid has joined #ruby
shoutsid has quit [Client Quit]
knowtheory has quit [Ping timeout: 264 seconds]
Ebok has quit [Ping timeout: 260 seconds]
sucks has quit [Ping timeout: 246 seconds]
knowtheory has joined #ruby
Rumbles has quit [Ping timeout: 246 seconds]
InvGhosttt has joined #ruby
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
NeverDie has joined #ruby
RegulationD has quit [Remote host closed the connection]
lapide_viridi has quit [Quit: Leaving]
bronson has joined #ruby
InvGhostt has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 246 seconds]
lavros has quit [Quit: leaving]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
karapetyan has quit [Remote host closed the connection]
rdark has quit [Quit: WeeChat 1.0.1]
ur5us has joined #ruby
duckpuppy has joined #ruby
jscheel has joined #ruby
rdark has joined #ruby
amclain has joined #ruby
ItSANgo has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
escuzo has joined #ruby
benlieb has joined #ruby
<escuzo> hey guys. i just found this channel. i dont have any questions right now, i just wanted to say hi.
<Ox0dea> escuzo: Are you learning Ruby, then?
<escuzo> yeah, i pretty much just started. i learned HTML and CSS and some PHP when i was young but never really did much with it. i wanted to get back into it since i already have some sort of starting point.
<escuzo> using codecademy right now
NeverDie has joined #ruby
rdark has quit [Quit: WeeChat 1.0.1]
karapetyan has joined #ruby
rdark has joined #ruby
mikecmpbll has joined #ruby
elektronaut has quit [Ping timeout: 264 seconds]
shawnacscott has quit [Quit: ZNC - http://znc.in]
shanemcd has quit [Remote host closed the connection]
rsc___ has quit [Quit: rsc___]
karapetyan has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
elektronaut has joined #ruby
nixmaniack has quit [Remote host closed the connection]
mrtomme has quit [Ping timeout: 246 seconds]
nixmaniack has joined #ruby
diegoviola has joined #ruby
mrtomme has joined #ruby
Rodya_ has joined #ruby
nixmaniack has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
rsc___ has joined #ruby
nixmaniack has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
Pupeno_ has quit [Remote host closed the connection]
jottr has joined #ruby
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
threh has joined #ruby
jgpawletko has joined #ruby
baweaver has joined #ruby
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
karapetyan has joined #ruby
based_pdev_ has quit [Read error: No route to host]
rghose has joined #ruby
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
rghose has quit [Max SendQ exceeded]
based_pdev_ has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
nixmaniack has quit [Remote host closed the connection]
jbrhbr has joined #ruby
nixmaniack has joined #ruby
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
rghose has joined #ruby
gusTester has quit [Quit: Leaving.]
rghose has quit [Max SendQ exceeded]
ElFerna has joined #ruby
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
rghose has joined #ruby
rghose has quit [Max SendQ exceeded]
jottr has quit [Ping timeout: 260 seconds]
rghose has joined #ruby
<dashu> great stuff idea
<dashu> Ox0dea
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
mikecmpbll has joined #ruby
moeabdol has quit [Ping timeout: 245 seconds]
based_pdev_ has quit [Ping timeout: 245 seconds]
colleenmcguckin has joined #ruby
SolarSailor has joined #ruby
Pupeno has joined #ruby
ElFerna has quit [Max SendQ exceeded]
benlieb has quit [Quit: benlieb]
Peg-leg has quit [Quit: Leaving.]
Pupeno has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
tjad has joined #ruby
s00pcan has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
Rumbles has joined #ruby
karapetyan has joined #ruby
mikecmpbll has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
Ebok has joined #ruby
s00pcan has joined #ruby
babblebre has joined #ruby
<dashu> now i am happy :o
karapetyan has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
Ebok has quit [Ping timeout: 260 seconds]
atomical has joined #ruby
marcv has left #ruby [#ruby]
lady3bean has joined #ruby
kitallis has joined #ruby
DurstBurger has quit [Ping timeout: 245 seconds]
linduxed has quit [Quit: WeeChat 1.3]
mary5030 has quit [Remote host closed the connection]
juddey has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030_ has joined #ruby
Xeago has joined #ruby
KensoDev has joined #ruby
ruby-lang022 has quit [Ping timeout: 252 seconds]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
<dashu> cya
mikecmpbll has joined #ruby
dashu has quit []
Ebok has joined #ruby
karapetyan has joined #ruby
nixmaniack has quit [Remote host closed the connection]
codecop has joined #ruby
TheNet has joined #ruby
nixmaniack has joined #ruby
hahuang61 has joined #ruby
karapetyan has quit [Remote host closed the connection]
ascarter has joined #ruby
nixmaniack has quit [Remote host closed the connection]
Rumbles has quit [Quit: Leaving]
Ebok has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
Rumbles has joined #ruby
karapetyan has joined #ruby
<shevy> now he is gone :(
Muz has quit [Ping timeout: 260 seconds]
xfbs has joined #ruby
<Ox0dea> He got what he needed. :<
<Rumbles> hello again...
<Rumbles> so, I'm still trying to figure out how to load a ruby console without giving the user access to the bash env
nixmaniack has joined #ruby
xfbs has quit [Client Quit]
<Rumbles> I'm wondering can I run a chroot command as the first command run in the ruby console when it loads?
xfbs has joined #ruby
platzhirsch has left #ruby [#ruby]
<Ox0dea> Rumbles: You run the Ruby process itself within the jail.
<Rumbles> since, I don't know which folder I want to chroot to until the user has selected it as part of the bash script
xfbs has quit [Client Quit]
Vitor_ has joined #ruby
shanemcd has joined #ruby
xfbs has joined #ruby
RegulationD has joined #ruby
<shevy> Rumbles they don't have access to a bash env, system() will make use of sh as far as I know
xfbs has quit [Client Quit]
<Ox0dea> `sh` is `bash` or `dash` on many systems.
cinik has quit [Quit: Leaving]
bronson has joined #ruby
<shevy> and how is this relevant to ruby
xfbs has joined #ruby
xfbs has quit [Client Quit]
<Ox0dea> It was a counterpoint to the validity or relevance of your advice.
<shevy> so it is not relevant at all
rghose has quit [Quit: Leaving.]
<Ox0dea> You started it?
arup_r has quit []
<shevy> please don't waste time
<eam> what relevance is relevance
stannard_ has joined #ruby
kies has quit [Ping timeout: 246 seconds]
<eam> if you're smart with system() it may not use a shell at all
<drbrain> Rumbles: you can chroot inside ruby: https://github.com/drbrain/capp/blob/master/lib/capp.rb#L119-L127
<Rumbles> so, my technique was to have the command listed in the authorized_keys fileas explained here: http://fpaste.org/297515/
shanemcd has quit [Ping timeout: 245 seconds]
Muz has joined #ruby
<Rumbles> that allows the script to run if someone logs in with that key and nothing else
RegulationD has quit [Ping timeout: 245 seconds]
godzillaenlacasa has joined #ruby
<Rumbles> but I want to chroot the user after the console is started, is there a way to run the chroot in that script? or would I have to rethink my approach?
<eam> Rumbles: is the user logging in as root?
<eam> only root can chroot
<Rumbles> no
<eam> welp
<eam> you may need to rethink the model
<drbrain> Rumbles: I think you want this: http://allanfeid.com/content/creating-chroot-jail-ssh-access
stannard has quit [Ping timeout: 245 seconds]
<Rumbles> thanks I'll have a look drbrain
<eam> you can use a setuid helper binary to become root then drop back down, but if you don't have strong background in this area I wouldn't recommend implementing it yourself
<eam> (and it can't be done in ruby)
bronson has quit [Ping timeout: 246 seconds]
<drbrain> eam: which part?
<eam> drbrain: the setuid
<eam> shebang scripts cannot be setuid
CrazyEddy has joined #ruby
<drbrain> right, yes
<drbrain> setuid root ruby executable is
<eam> ;)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> perl had a special setuid perl that would do kinda crazy things to emulate it but -- all in all not a good idea
shanemcd has joined #ruby
shadoi has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
krz has joined #ruby
jbrhbr has quit [Quit: Leaving.]
troyready has quit [Quit: Leaving]
<Rumbles> thanks drbrain but I don't think that's workable
bronson has joined #ruby
<Rumbles> I would have to copy everyhting the user needs to run ruby console before I start in to the app_root each time the user wants to go in
<Rumbles> and I don't know where the user is going to work until they have made a selection
<drbrain> Rumbles: you could also use a union fs
<drbrain> ah, I see
yatish27 has quit [Remote host closed the connection]
<drbrain> because it could be for one of many rails apps?
troyready has joined #ruby
<Rumbles> yeah
<Rumbles> well, in dev where I am testing our server has a load of apps, in prod that wouldn't normally be an issue
elton has joined #ruby
<escuzo> wow, i wasn't expecting such rude, hypocritical attacks from the users in here. is this place not moderated?
<Rumbles> do you have to be root to run something like Dir.chroot("/var/chroot/mychroot") in ruby ?
<Ox0dea> Yep.
krz has quit [Ping timeout: 245 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Rumbles> okay, this probably isn't workable as I don't want to run this as root
<Ox0dea> You want a sandbox.
DoubleMalt has quit [Remote host closed the connection]
<soulisson> Hello, I would like to get arguments from the command line, I use OptionParser but all I get is an empty hash table: https://gist.github.com/anonymous/951ceb1d88fe9ab89fdd
<Ox0dea> Rumbles: https://github.com/thestinger/playpen might be worth looking into.
agent_white has quit [Quit: nite]
wpp has joined #ruby
ascarter has joined #ruby
<shevy> soulisson the commandline arguments are available via ARGV
elton has quit [Ping timeout: 245 seconds]
<soulisson> shevy, yes, but I would like to parse them
<Ox0dea> soulisson: Use `parse!`.
<shevy> soulisson yeah you can do .parse!(ARGV)
jbrhbr has joined #ruby
<Ox0dea> Or just `parse!`.
<soulisson> Ox0dea, I used parse!, all I get is true, not the arguments associated to this option
renderf__ has joined #ruby
<Rumbles> thanks Ox0dea I'll have a read
Aasha has joined #ruby
devbug has joined #ruby
baweaver has quit [Remote host closed the connection]
darkf has quit [Quit: Leaving]
<Ox0dea> soulisson: https://archive.is/TPnBi#selection-1795.0-1847.3
kirun has joined #ruby
juddey has quit [Ping timeout: 246 seconds]
elektronaut has quit [Ping timeout: 264 seconds]
Wsewolod has quit [Ping timeout: 264 seconds]
nixmaniack has quit [Remote host closed the connection]
elektronaut has joined #ruby
rakm has joined #ruby
RegulationD has joined #ruby
mary5030_ has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
mary5030 has joined #ruby
tjad has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
Unicorn| has joined #ruby
tjad has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
kadoppe has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<slash_me> win 23
<Unicorn|> Is it possible to clear the the information in a window when using the green_shoes gem?
nixmaniack has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ebok has joined #ruby
Xeago has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akem has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
rdark_mobile has joined #ruby
<soulisson> Ox0dea, thanks
rakm has joined #ruby
davedev2_ has joined #ruby
<Rumbles> damn, that's a shame, that looked promising Ox0dea but required linux => 3.8, and I'm going to have to do this on ubuntu 14.04 machines running kernel 3.19 :(
davedev24 has quit [Ping timeout: 260 seconds]
<soulisson> Ox0dea, quick question why parse! works and not parse?
Xeago has joined #ruby
bdnelson has joined #ruby
<Ox0dea> soulisson: Both methods are documented pretty clearly.
<Ox0dea> Rumbles: How about seccomp?
* Rumbles googles
Xeago has quit [Remote host closed the connection]
<soulisson> Ox0dea, parse! and parse are supposed to the same thing, except that parse! removes options from ARGV, at least that's what I understood
<Ox0dea> soulisson: Yes, that's right.
Xeago has joined #ruby
<Ox0dea> Debug-print `options` and `ARGV` to get a pretty clear picture of what's happening/
dlitvak_ has quit [Remote host closed the connection]
<soulisson> Ox0dea, but in my code when I use parse my options hash table is empty but with parse! it works as expected
<Ox0dea> soulisson: See above.
rdark_mobile has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
karapetyan has quit []
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
s2013 has joined #ruby
Rumbles has quit [Ping timeout: 246 seconds]
polishdub has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
centrx has quit [Remote host closed the connection]
jackjackdripper1 has quit [Client Quit]
centrx has joined #ruby
jackjackdripper1 has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
mikecmpbll has joined #ruby
karapetyan has joined #ruby
thiagofm has joined #ruby
treehug88 has joined #ruby
cmoneylulz has joined #ruby
spt0 has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
ta has quit [Remote host closed the connection]
GinoManWorks has quit [Read error: Connection reset by peer]
myztic has joined #ruby
moeabdol has joined #ruby
edj has joined #ruby
<edj> i dont understand how ruby koans is supposed to help if all im doing is putting varname= whatever
Vitor_ has quit [Ping timeout: 245 seconds]
<edj> how is koans supposed to help?
jscheel has quit [Quit: jscheel]
krz has joined #ruby
Jackneill has joined #ruby
<edj> anyone?
<hxegon> as I understand it, it's forcing you to think through the code.
<hxegon> edj: but I haven't gone through more than 3 so not sure how much that is worth.
<slash_me> edj: it also really helps you with troubleshooting errors in your code... it teaches you how to interpret the common error messages and to use the stacktrace to identify the file and line where the error occurs
<Sou|cutter> if you don't comprehend the code you won't know what to put there
NeverDie has quit [Quit: http://radiux.io/]
<Sou|cutter> slash_me: that's such a large part of programming, heh
naftilos76 has quit [Ping timeout: 246 seconds]
cmoneylulz has quit [Remote host closed the connection]
<edj> so its more for entry level?
Rumbles has joined #ruby
hakunin_ is now known as hakunin
<edj> I'm more of an advanced beginer
<slash_me> edj: that's what it taught me at least... i.e. "what does undefined method foo for nil:NilClass" mean? (a) you called foo.nil; or (b) you called nil.foo ?
<slash_me> edj: then you should be able to blaze through the koans... no one (afaik) is forcing you to do them
<edj> ah
<blub> hi edj
<edj> hi blub
<Sou|cutter> if you aren't finding them of value, try something else
<edj> ill probably go back to reading grounded rubyist
<Ox0dea> Why'd you stop?
<slash_me> btw, these are some good javascript koans: https://github.com/mrdavidlaing/javascript-koans
<edj> just to try koans for a bit. i didnt realy stop stop. you know?
<edj> cool
<Ox0dea> For what it's worth, the Koans do become something more than setting variables.
<Ox0dea> And pretty quickly too, if memory serves.
bdnelson has quit [Quit: Computer has gone to sleep.]
<edj> oh ok ill keep going
moeabdol has quit [Quit: WeeChat 1.3]
juddey has joined #ruby
<slash_me> edj: if you get bored, here's something current and new to play with: http://adventofcode.com/
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin has joined #ruby
<edj> oh my god thats so cool
rakm has joined #ruby
Xeago has quit [Remote host closed the connection]
bdnelson has joined #ruby
tjad has quit [Ping timeout: 245 seconds]
NeverDie has joined #ruby
elton has joined #ruby
AustinMatherne has joined #ruby
roshanavand has joined #ruby
cdg has quit [Remote host closed the connection]
tjad has joined #ruby
Rumbles has quit [Ping timeout: 260 seconds]
elton has quit [Ping timeout: 245 seconds]
ta has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
casadei has quit [Remote host closed the connection]
stannard_ has quit [Remote host closed the connection]
<Ox0dea> I've written a string library of sorts for LOLCODE, but there's no file inclusion mechanism, so it'd have to be pasted right into each solution, which is noisy.
iamvery has joined #ruby
circ-user-mgcmJ has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Quit: dionysus69]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
stannard has joined #ruby
rubberduck93 is now known as rubber
nateberkopec has quit [Read error: Connection reset by peer]
nateberkope has joined #ruby
rubber is now known as rubberduck93
rubberduck93 is now known as rubber
duckpuppy has quit [Ping timeout: 245 seconds]
nateberkope has quit [Read error: Connection reset by peer]
moeSeth has quit [Quit: Connection closed for inactivity]
nateberkopec has joined #ruby
bronson has joined #ruby
decoponio has quit [Quit: Leaving...]
iateadonut has quit [Ping timeout: 246 seconds]
p0wn3d has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
haxrbyte has joined #ruby
devbug has joined #ruby
synthroid has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
synthroid has joined #ruby
casadei has joined #ruby
yes`r has quit [Ping timeout: 245 seconds]
prestorium has quit [Quit: Leaving]
duckpuppy has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
Uptime has joined #ruby
rakm has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 246 seconds]
Uptime has quit [Max SendQ exceeded]
lapide_viridi has joined #ruby
dorei has joined #ruby
thiagofm has quit [Ping timeout: 246 seconds]
Suntzu has joined #ruby
djbkd has joined #ruby
haxrbyte has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
InvGhostt has joined #ruby
rgrmatt has joined #ruby
Uptime has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
rigel_ has joined #ruby
<rigel_> Is there any difference between the methods Dir.getwd and Dir.pwd ?
InvGhosttt has quit [Ping timeout: 260 seconds]
rgrmatt has quit [Ping timeout: 246 seconds]
GGMethos has quit [Ping timeout: 264 seconds]
ruid has joined #ruby
ruid has joined #ruby
snockerton has joined #ruby
SCHAAP137 has joined #ruby
<BraddPitt> They are the same rigel_
<rigel_> thanks
<BraddPitt> Ruby has a tendency to have multiple aliases for the same thing
<Ox0dea> > rb_define_singleton_method(rb_cDir,"pwd", dir_s_getwd, 0);
<Ox0dea> Not *technically* an alias, in this case.
<BraddPitt> Ah, true Ox0dea
<BraddPitt> but at the level of abstraction we're talking about, it may as well be seen as one
<Ox0dea> Sure.
casadei has quit [Remote host closed the connection]
GGMethos has joined #ruby
Uptime has quit [Max SendQ exceeded]
nateberkopec has quit [Quit: Leaving...]
hostess has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
yatish27 has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
zotherstupidguy has quit [Quit: WeeChat 1.3]
Uptime has joined #ruby
TheNet has quit [Remote host closed the connection]
n_blownapart has joined #ruby
nixmaniack has quit [Remote host closed the connection]
hostess has joined #ruby
symm- has joined #ruby
symm-_ has quit [Ping timeout: 260 seconds]
PlasmaStar has quit [Ping timeout: 264 seconds]
lukeasrodgers has quit [Quit: Leaving.]
thiagofm has joined #ruby
Xiti has joined #ruby
ixti has joined #ruby
atomical has quit [Read error: Connection reset by peer]
atomical has joined #ruby
podman has joined #ruby
lukeasrodgers has joined #ruby
supermarin has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yuung has joined #ruby
wpp has quit [Quit: ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PlasmaStar has joined #ruby
nateberkopec has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Ox0dea has joined #ruby
mikecmpbll has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
wpp has joined #ruby
NeverDie has joined #ruby
circ-user-mgcmJ has joined #ruby
jscheel has joined #ruby
wpp has quit [Client Quit]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ic2000 has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
<ic2000> out of interest is ruby faster than python when clearing the terminal or is there no difference
<eam> no difference
Musashi007 has joined #ruby
atomical_ has joined #ruby
elton has joined #ruby
RobertBirnie has quit [Ping timeout: 260 seconds]
casadei has joined #ruby
mikecmpbll has joined #ruby
<Ox0dea> ic2000: Are you clearing the terminal so frequently that it matters?
<ic2000> Ox0dea, yeah a lot
atomical has quit [Ping timeout: 260 seconds]
<ic2000> Ox0dea, for a roguelike/terminal game "engine" i was making in python, but flickers like mad
<Ox0dea> ic2000: That's because your draw logic sucks. :<
<tubbo> lies
<tubbo> :D
<Ox0dea> "Only draw what you have to" and clearing is basically a very costly draw.
RobertBirnie has joined #ruby
<ic2000> Ox0dea: draw logic is fine, but u need to clear the terminal so it gives an illusion that it's moving
<Ox0dea> ic2000: See above.
<ic2000> Ox0dea, if i take off the clear command it's lightning fast
<tubbo> ic2000: clearly not, since you're flickering.
<Ox0dea> ^
<tubbo> i was using cairo the last time i had to animate stuff in ruby. made an overlay engine that drew a ticker on the screen
<Ox0dea> ic2000: Does every single character cell need to change between draws?
<tubbo> biggest problem we had was garbage collection. thank god for ruby 2.2...it saved our ass.
<ic2000> tubbo, because of the clear, i did profiling on it and it was the clear function took up all the time
elton has quit [Ping timeout: 245 seconds]
<yuung> i'm working on a class that works with matrices, how can i call the [] operator from within a class function?
<ic2000> Ox0dea, depends on how the person uses it
<Ox0dea> ic2000: Then you're drawing too much.
sandstrom has joined #ruby
<tubbo> ic2000: yeah basically...for our problem, the clear would *sometimes* cause a major spike in memory and lag/memory. we realized quickly that it was actually doing a GC sweep when that happened. so we basically figured out a way to "trigger" GC so that it would do that when *we* wanted it to, not when Ruby deemed it necessary
<Ox0dea> Your draw logic will become significantly more complex, mind, but it's probably worth it.
<tubbo> we did this: Array.new(2040), randomly within the code in the main event loop
<tubbo> lololol
yos7ph has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Ox0dea> yuung: Could you clarify?
<havenwood> yuung: Can you Gist an example of what you're wanting?
pwnd_nsfw has joined #ruby
<yuung> 0x0dea, havenwood, sure - one sec
<ic2000> Ox0dea, https://bpaste.net/show/d06eb2feb194 <-- could ruby do it better?
<ic2000> or is it my logic that's ba
<ic2000> *bad
<yuung> 0x0dea, havenwood, wait nevermind, got it
<yuung> 0x0dea, havenwood, thanks
<Ox0dea> ic2000: As we've established, your logic is bad.
<ic2000> Ox0dea, what about it
<havenwood> yuung: :)
yos7ph has quit [Client Quit]
<Ox0dea> Clearing before every draw is the easy way, and you're getting what you're paying for.
<ic2000> Ox0dea, ignore line 2 and 22 i was testing something
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
<ic2000> Ox0dea, that's the persons fault then. they can use it how they like, but if they wanna redraw they call the function
duckpuppy has joined #ruby
<Ox0dea> To be frank, I ignored the whole thing, because the problem is that you're not taking advantage of the features available to you for doing terminal graphics.
<ic2000> Ox0dea, what features are these
<Ox0dea> You can position the cursor anywhere you like, for starters.
<ic2000> Ox0dea hmm why would cursor effect anything?
bdnelson has quit [Quit: Computer has gone to sleep.]
tjad has quit [Ping timeout: 246 seconds]
<Ox0dea> Ideally, you'd keep a simple diff between transitions, and only update the cells which have changed.
<ic2000> Ox0dea, how do u only update cells which have changed without updating the whole thing?
<Ox0dea> By moving the cursor...
<ic2000> Ox0dea, u can't just clear one character and reprint it, though i wish it was possible. wait what?
<Ox0dea> Yes, you can.
<ic2000> Ox0dea, by cursor do u mean the _ thing
ic2000 has left #ruby ["Leaving"]
ic2000 has joined #ruby
<ic2000> oops
dlitvak has quit [Ping timeout: 245 seconds]
supermarin has joined #ruby
<Ox0dea> ic2000: $ echo -e "\e[10;10Hfoo"
<Ox0dea> Run that for enlightenment.
<ic2000> Ox0dea, is this linux only
<Ox0dea> No, but it's terminal emulator-dependent.
bdnelson has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
brunto has joined #ruby
failshell has joined #ruby
<Ox0dea> I'm sure cmd.exe provides a means for moving the cursor.
<ic2000> Ox0dea, i'm guessing it wasn't meant to do this? http://prntscr.com/9ae2u0
<Ox0dea> Indeed not. :<
dlitvak has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> It moves the cursor to Row 10, Col 10 before printing.
<Ox0dea> On any respectable terminal, anyway. :P
tomchapin has joined #ruby
<ic2000> Ox0dea, but u have indeed interested me, gives me hope to continue. but i'm guessing it wont work on windows -_-
s2013 has joined #ruby
dimik has joined #ruby
<Ox0dea> ic2000: I'm pretty sure this click library isn't intended to be used to make console-based games.
Exuma has joined #ruby
rigel_ has quit [Ping timeout: 260 seconds]
<Ox0dea> It's for menus and the like.
<ic2000> Ox0dea, some python guy told me to use it instead of os.system("cls") or "clear£ or
<ic2000> *clear
<Ox0dea> You installed a module to clear the terminal?
<ic2000> Ox0dea, and print colored text
rigel_ has joined #ruby
<Ox0dea> Oh, is this a text-based game engine, then?
<ic2000> Ox0dea, yeah well i intended it to be but we have already established it's shit lol
<wnd> it is also worth nothing that without an absolute path you might end up using shell's built-in echo, which might behave differently from gnu echo(1) or something else you're expecting
<ic2000> was hoping to port it to ruby if ruby was better
<Ox0dea> wnd: It's quite clear Windows was the problem in this case.
<wnd> Ox0dea, yes, it is
<wnd> there's "curses" gem if that's an option in windows
<Ox0dea> ic2000: "Text-based" means "just menus", more or less; does that description apply to your thing?
<Ox0dea> Or is there a hero to move about with the arrow keys?
<ic2000> Ox0dea, oh no then, i meant texted based graphics
<Ox0dea> Right, then you probably want ncurses.
<Ox0dea> There is indeed a Ruby binding.
rodfersou has quit [Quit: leaving]
<ic2000> Ox0dea, for windows?
<Ox0dea> Yes.
<ic2000> Ox0dea, hmm, out of interest how does curses do it better?
<wnd> I can't say I'd recommend ncurses (at least the gem I've been using), but it does what it's supposed to do
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nixmaniack has joined #ruby
n_blownapart has quit []
<Ox0dea> ic2000: : Well, it's just a thin skin over libncurses (the cause of wnd's pain), but it provides a nice enough layer of abstraction over dealing with terminal inconsistencies.
sorbo_ has quit []
<Ox0dea> There's a pure Ruby thing with a much more idiomatic API that I can never remember the name of.
<ic2000> Ox0dea, would it make more sense to just use normal graphics
<wnd> my interpretation would be that it takes care of controlling the terminal, including writing to given coordinates, reading keyboard and even windowing, to a degree
<Ox0dea> ic2000: A GUI, do you mean?
<ic2000> Ox0dea, yeah
<Ox0dea> ic2000: That's your prerogative; are you not going for a certain aesthetic?
<ic2000> Ox0dea, i wanted to do a terminal one because i thought it'd be easier but if i have to learn a library might aswell do gui
<ic2000> Ox0dea, not really, gui would look much better
edj has quit [Ping timeout: 252 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
Uranio has joined #ruby
alexherbo2 has joined #ruby
alexherbo2 has quit [Client Quit]
Insti has joined #ruby
arup_r has quit []
<Insti> Is there a better way to do this: array.map{|e|e.empty? ? nil : e}
myztic has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
nixmaniack has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
xcesariox has joined #ruby
ur5us has joined #ruby
<jhass> Insti: why do you do this?
<Insti> note the nil might be a different value.
<centrx> This is an array of arrays?
<jhass> there might be a better solution to what you're actually doing, but for that abstracted fake example, no
jbrhbr has quit [Quit: Leaving.]
<Insti> yes it's an array of arrays.
<Insti> in this case
<Insti> I think I was wondering about the general case.
sucks has joined #ruby
jgpawletko has quit [Ping timeout: 245 seconds]
<Insti> I guess I want to replace values that match.
<jhass> it's not a pattern that feels common to me, so I'm not convinced you need it at all ;)
<hxegon> Insti: I mean you could make a function that returns e or nil for input and array.map(&:func)
lapide_viridi has quit [Quit: Leaving]
<hxegon> Insti: might make it a bit clearer to have it named seperately
<Insti> hxegon, that feels better
howdoi has quit [Quit: Connection closed for inactivity]
sucks_ has quit [Ping timeout: 246 seconds]
<Ox0dea> ic2000: You say that as if libraries are equally easy to learn/pleasant to use, which is scarcely the case.
<hxegon> Insti: glad I could help
ur5us has quit [Ping timeout: 246 seconds]
<ic2000> Ox0dea, ofc not
andikr has quit [Remote host closed the connection]
<ic2000> Ox0dea, but if i'm gonna learn something might aaswel try and learn the better one
<Ox0dea> ic2000: For some definition of
brunto has quit [Quit: Lost terminal]
<Ox0dea> "better", mind.
<hxegon> yeah. more well maintained? better docs? etc.
<ic2000> Ox0dea, what i deem as better for what i'm doing
circ-user-mgcmJ has quit [Ping timeout: 246 seconds]
<hxegon> urg... 'more well'. wtf brain
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> hxegon: A well-placed hyphen would've fixed that right up. :P
<hxegon> Ox0dea: I never took hyphens to-heart
<Ox0dea> I see that.
Uranio has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<Ox0dea> ic2000: I'm of the opinion that something is lost in sticking "graphics" onto things like NetHack and Dwarf Fortress.
<hxegon> Ox0dea: same here.
<ic2000> Ox0dea, sorry i don't get what u mean
<hxegon> has anyone here actually ascended?
<Ox0dea> I've not. :<
<Ox0dea> I ascended in KoL!
<hxegon> King Of Limbs?
<Ox0dea> Kingdom of Loathing.
rakm has joined #ruby
<Ox0dea> This would
<Ox0dea> have been almost a decade ago now.
<Ox0dea> Still actively developed, as best I can tell.
<hxegon> Ox0dea: never heard of this... how would you compare difficulty?
<eam> kol is still a thing?
<Ox0dea> It is.
wpp has joined #ruby
<Ox0dea> hxegon: Lots of grinding, only a few genuinely difficult puzzles.
<Ox0dea> ic2000: NetHack and Dwarf Fortress are the two most popular terminal-based games.
<Ox0dea> They get along just fine with what the terminal gives them, but efforts have been made to make them "prettier".
colegatron has quit [Ping timeout: 245 seconds]
<hxegon> ic2000: also insanely difficult. I would probably quit videogames if I ascended (won) in nethack because you can only go downhill from there.
symm- has quit [Ping timeout: 246 seconds]
symm-_ has joined #ruby
ascarter has joined #ruby
<Ox0dea> DF isn't "difficult", per se, it's just remarkably complex.
<hxegon> Ox0dea: 'genuinely difficult'... Sokobahn is some BS.
<Ox0dea> hxegon: Well, had you never encountered Sokoban before NH?
<hxegon> Ox0dea: I encounter it all the time, that's the problem.
dlitvak has quit [Remote host closed the connection]
<hxegon> Ox0dea: first few times its fun, but after a while, getting punished so hard (being denied AOR or bag of holding) for potentially one mistype is WAAAY to severe.
opitka has joined #ruby
wpp has quit [Ping timeout: 260 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon> I've memorized every puzzle and I still have a success rate of about 1/3 because I mistype all the time
<Ox0dea> Yeah, it's pretty harsh; I thought you were referring to Sokoban puzzles in general.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
circ-user-mgcmJ has joined #ruby
jjwright_ has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yaewa has joined #ruby
stan_man_can has joined #ruby
<hxegon> I like sokoban puzzles, but it's not really a puzzle if you've done it 60 times.
<jjwright_> What is the term for adding a method to a built in class?
<hxegon> jjwright_: monkey patch
<Ox0dea> jjwright_: Augmenting, thank you very much.
<jjwright_> hxegon: Yep, monkey patch, just couldn't think of it.
<Ox0dea> I prefer "freedom patching".
moei has quit [Ping timeout: 260 seconds]
<hxegon> 'MURICA
<adaedra> Are we making Ruby great again?
<stan_man_can> Hey all. New to ruby. I wrote a little script to auto-email me the IP address of a machine when it turns on. I run the script via a cronjob (@reboot) Here’s the script: https://gist.github.com/anonymous/4beab96259b7fcd9455f
duckpuppy has quit [Ping timeout: 246 seconds]
<stan_man_can> Without that sleep at the begining, I get https://gist.github.com/anonymous/7ba9c7accca11c142f94
<hxegon> stan_man_can: is that a semi-colon at the end of line 20?
<adaedra> stan_man_can: your script surely runs before the network layer is initialized. A better idea, rahter than cron job, would be to use your init system to run it, here you can add a dependency on network.
<stan_man_can> Is that because CRON is running the script before parts of the system are ready??
<stan_man_can> hxegon: HA, it is, oops… I come from PHP
<Ox0dea> jjwright_, hxegon, adaedra: http://i.imgur.com/Ow77qH5.png
<Ox0dea> "They hate us for our freedoms."
<Ox0dea> Alternatively, 'cause they anus.
<stan_man_can> adaedra: Ah, alright. I don’t really mind it taking an extra 30 seconds, I was just confirming that’s why it was happening
<hxegon> If you don't overwrite #to_s, the terrorists win jjwright_
<Ox0dea> jjwright_: Think of the children!
<hxegon> pysis
<adaedra> stan_man_can: what system are you under?
<stan_man_can> adaedra: This is running on my Raspbian, so, debian
<adaedra> stan_man_can: version?
<stan_man_can> er, on my rasperry pi running raspbian
colegatron has joined #ruby
gix has quit [Ping timeout: 260 seconds]
<stan_man_can> adaedra: looks like 7.8
<hxegon> stan_man_can: also, is there a reason you are using string hash keys for the Net::HTTP options?
Cantaberry has joined #ruby
<nofxx> question is, systemd or init.d stan_man_can
lxsameer has quit [Quit: Leaving]
<hxegon> stan_man_can: not rhetorical, I've never used that so I don't know
<nofxx> so add a script for that
<stan_man_can> nofxx: init.d
FooMunki has quit [Quit: FooMunki]
<stan_man_can> hxegon: I literally have no idea what I’m doing, so that would be why
<stan_man_can> Not sure if it’s the right way or not, but it works?
FooMunki has joined #ruby
mallu has joined #ruby
<stan_man_can> hxegon: post_form(url, params)
<stan_man_can> Posts HTML form data to the specified URI object. The form data must be provided as a Hash mapping from String to String. Example:
chridal has quit [Ping timeout: 260 seconds]
<stan_man_can> So looks like I did it correctly
chridal has joined #ruby
patdohere has joined #ruby
SirCmpwn has quit [Ping timeout: 260 seconds]
<Ox0dea> You did.
s2013 has joined #ruby
gix has joined #ruby
SirCmpwn has joined #ruby
elton has joined #ruby
bdnelson has quit [Quit: Computer has gone to sleep.]
user1138 has joined #ruby
devster31 has joined #ruby
synthroid has quit []
symm-_ is now known as symm-
symm- has quit [Quit: Leaving...]
<devster31> hi, I'm having trouble understanding this line: str.chars.each_slice(2).map(&:join) in particular the &:join in the last map function
symm- has joined #ruby
<devster31> as far as I can understand it for every 2 chars in a string it does the map stuff
<shevy> this is like .map {|entry| entry.join }
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
<devster31> oh, now I get it
<devster31> thanks
duckpuppy has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
patdoher_ has joined #ruby
<devster31> where can I find the reference
<Ox0dea> devster31: That's Symbol#to_proc.
<devster31> thanks
<Ox0dea> >> class Symbol; def to_proc; -> o { o.send self } end end; [1,2,3].map(&:succ)
s00pcan has quit [Remote host closed the connection]
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/480599)
patdohere has quit [Ping timeout: 245 seconds]
Pupeno has quit [Remote host closed the connection]
<Ox0dea> I suppose I should've changed the implementation to better demonstrate what's going on.
<Ox0dea> You can define #to_proc on anything, and as long as it actually returns a Proc, `&foo` will essentially use the result as if it had been passed as a block.
cmoneylulz has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<Ox0dea> >> a = []; def a.to_proc; -> _ { 42 } end; [1,2,3].map(&a)
<ruboto> Ox0dea # => [42, 42, 42] (https://eval.in/480601)
yfeldblum has quit [Ping timeout: 260 seconds]
sucks has quit [Ping timeout: 245 seconds]
frem has quit [Quit: Connection closed for inactivity]
duncannz has joined #ruby
axl__ has joined #ruby
patdoher_ has quit [Read error: Connection reset by peer]
axl_ has quit [Ping timeout: 246 seconds]
axl__ is now known as axl_
sharkman has joined #ruby
ruid has quit [Ping timeout: 245 seconds]
<sharkman> test
<sharkman> how do i do matrixes in ruby
s00pcan has joined #ruby
<sharkman> is ruby like the worst language there is for doing linear algebra
cmoneylulz has quit [Remote host closed the connection]
n_blownapart has joined #ruby
<devster31> thanks Ox0dea I think I'll spend the rest of the evening trying to understand it all, I'm trying to do the adventofcode challenges while learning ruby, I figured it would be a good opportunity
saneax_AFK is now known as saneax
<Ox0dea> devster31: Nice! Where'd you find a use case for #each_slice in AoC?
<devster31> I didn't, I was trying everything to split even characters in the day3 part2 challenge, I don't think it's the way to go though
<Ox0dea> I mean, it's one way?
sucks has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
rgrmatt has joined #ruby
<Ox0dea> devster31: Can you think of a way to do it wihtout explicitly separating Santa's path from Robo-Santa's?
Jardayn has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> sharkman: Start by pluralizing the word correctly. :P
<Ox0dea> Keep calm and require 'matrix'.
uri has quit [Ping timeout: 260 seconds]
<sharkman> sorry, i was wondering about matrixez in ruby
dhollinger has quit [Ping timeout: 246 seconds]
<sharkman> i just switched to R already. seems like ruby has so little support for the maths
<soulisson> I need some advice, lets say I have a bunch of statements, and one statement in the middle throws an exception, should I put all the statements in begin or only the unsafe one, or it doesn't matter
<Ox0dea> Just the unsafe one.
Coldblackice has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 260 seconds]
jbrhbr has joined #ruby
<devster31> mh, not yet, but I'll try now that you told me
yuung has quit [Quit: Leaving]
<Ox0dea> soulisson: For clarity of intent, if nothing else, but it'll also be slightly more performant.
SCHAAP137 has quit [Quit: Leaving]
rgrmatt has quit [Ping timeout: 246 seconds]
maloik has joined #ruby
<soulisson> Ox0dea, ok, thanks
<Ox0dea> devster31: Well, look at it this way: you've got two X coordinates, two Ys, and two travelers whom you might label 0 and 1. :)
DexterLB has quit [Ping timeout: 260 seconds]
Rumbles has joined #ruby
DexterLB has joined #ruby
failshell has quit [Remote host closed the connection]
banister has joined #ruby
<mallu> join #artifactory
<shevy> mallu show us all the secret stuff!
duckpuppy has quit [Ping timeout: 260 seconds]
th_masv has joined #ruby
<mallu> shevy: sure
<Ox0dea> secret: Show us all the twistedpixels.
dhollinger has joined #ruby
<blub> hi ox0dea
codecop has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 264 seconds]
ItSANgo has joined #ruby
yeticry_ has joined #ruby
solenoids has quit [Ping timeout: 245 seconds]
FooMunki has quit [Quit: FooMunki]
Trynemjoel has joined #ruby
Paul-Programmer has joined #ruby
<Paul-Programmer> FREE PAYPAL MONEY HERE http://tinyurl.com/zkz8gwl
imperator has quit [Quit: Leaving]
yeticry has quit [Ping timeout: 250 seconds]
dravine has quit [Ping timeout: 246 seconds]
<stan_man_can> what? free money? i’m in.
dravine has joined #ruby
<Ox0dea> blub: You lost your generational.
poguez_ has quit [Quit: Connection closed for inactivity]
<Paul-Programmer> yes free money
<adaedra> !mute Paul-Programmer
<havenwood> !kick Paul-Programmer no spam
Paul-Programmer was kicked from #ruby by ruboto [no spam]
Unicorn| has quit [Quit: Connection closed for inactivity]
bkxd has joined #ruby
<adaedra> Teamwork.
sharkman has quit [Ping timeout: 260 seconds]
shanemcd has quit [Remote host closed the connection]
sharkman has joined #ruby
shanemcd has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
artX000 has joined #ruby
patdohere has joined #ruby
grill_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
TheNet has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solenoids has joined #ruby
soulisson has quit [Read error: Connection reset by peer]
soulisson has joined #ruby
mary5030 has joined #ruby
shanemcd has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 245 seconds]
Jackneill has quit [Ping timeout: 260 seconds]
s00pcan has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
mary5030 has quit [Ping timeout: 246 seconds]
shanemcd has joined #ruby
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
atomical has joined #ruby
nixmaniack has joined #ruby
petricore has joined #ruby
last_staff has joined #ruby
petricore has quit [Client Quit]
elton has quit [Ping timeout: 245 seconds]
paradisaeidae has joined #ruby
<jbrhbr> hey folks, i'm trying to make sense of the Turbolinks docs. can i use this for single-page apps?
Trynemjoel has quit [Ping timeout: 264 seconds]
<jbrhbr> like to have a dynamically updated view of the records for some model
ta has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
nixmaniack has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has joined #ruby
<jbrhbr> i mean to ask that in rails, sorry
Trynemjoel has joined #ruby
Cohedrin has joined #ruby
escuzo has left #ruby [#ruby]
escuzo has joined #ruby
jottr has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
tercenya has joined #ruby
<devster31> nope, can't do it without splitting the strings, also my solution is awful, like painful to look at
<havenwood> devster31: Want any suggestions for how to improve your solution? Link?
supermar_ has joined #ruby
Synthead has joined #ruby
<devster31> 0dea suggested something without explicitly splitting the strings, I have this: https://gist.github.com/devster31/4553990226d3369a0e1c , I just started so it's incredibly basic, I suppose I could create a function or even a class for the case statements
<devster31> day3 I'm referring to
escuzo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hxegon has quit [Ping timeout: 260 seconds]
ta has joined #ruby
supermar_ has quit [Remote host closed the connection]
supermarin has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
chinkytime has joined #ruby
Renich has joined #ruby
stannard has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 260 seconds]
Jet4Fire has joined #ruby
<Ox0dea> devster31: There should be a lot more happening in that #each_with_index block. :)
bdnelson has joined #ruby
lapide_viridi has joined #ruby
<Ox0dea> `i % 2` will tell you who's traveling.
supermarin has joined #ruby
simplyianm has quit [Ping timeout: 260 seconds]
snath has joined #ruby
Jet4Fire has quit [Ping timeout: 246 seconds]
hamstersky has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
simplyianm has joined #ruby
supermarin has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 245 seconds]
hamstersky has quit [Client Quit]
duckpuppy has joined #ruby
snath has left #ruby [#ruby]
supermarin has joined #ruby
Jet4Fire has joined #ruby
SHyx0rmZ has joined #ruby
<chinkytime> NIGGER LOVE A WATERMELON! HA! HA! HA!
<Ox0dea> "Don't ban me, bro. It's just lyrics."
n_blownapart has quit []
<chinkytime> it is bro
<chinkytime> it's a cool song
skade has joined #ruby
bdnelson has quit [Quit: Computer has gone to sleep.]
<chinkytime> nig.gr/BEA
failshell has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chinkytime> http://nig.gr/BEA
<Ox0dea> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, zzak, Mon_Ouie, Radar, jhass, Havenn, Coraline, sevenseacat, miah, workmad3, drbrain, Aria, rubyhacker1, slyphon, ljarvis, baweaver, Adaedra, zenspider
<Ox0dea> (Sorry.)
<demophoon> Ox0dea++
skade has quit [Client Quit]
<Ox0dea> devster31: Would you like to see my solution?
Jet4Fire has quit [Ping timeout: 246 seconds]
skade has joined #ruby
<devster31> yes, thanks, but I understand what you're saying about index showing you who's travelling, I should be able to make a path inside the each_with_index block
skade has quit [Read error: Connection reset by peer]
<Ox0dea> Hm? The paths are already there, you just need to be able to say who's travelling.
<jhass> !ban chinkytime !T 1w you're not welcome here
chinkytime was kicked from #ruby by ChanServ [Banned: you're not welcome here]
skade has joined #ruby
<Ox0dea> devster31: House visitation can (and should) be tracked in the same structure; you just need to maintain two separate coordinate pairs.
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
yfeldblum has joined #ruby
<Ox0dea> Tis the season and all that, though, so here ya go: https://eval.in/480639
Xeago has quit [Remote host closed the connection]
jscheel has quit [Quit: jscheel]
paradisaeidae has quit [Ping timeout: 245 seconds]
Jet4Fire has joined #ruby
<ljarvis> I'm too late
TheNet has quit [Remote host closed the connection]
<ljarvis> I'm always too late
<ljarvis> *takes cape off*
B1n4r10 has joined #ruby
failshell has quit []
Jet4Fire has quit [Ping timeout: 245 seconds]
Ebok has quit [Quit: Internet is down or Computer is restarting. I'll be back.]
s2013 has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
sdothum has joined #ruby
Jet4Fire has joined #ruby
jpfuentes2 has joined #ruby
<devster31> Ox0dea xs[0],ys[0] and xs[1],ys[1] are the two sets of coordinates for the santas? took me a while to figure that out, the xs, ys assignment fooled me
casadei has quit [Remote host closed the connection]
<Ox0dea> devster31: That's right.
Jet4Fire has quit [Ping timeout: 260 seconds]
soulisson has quit [Ping timeout: 245 seconds]
davedev24 has joined #ruby
<Ox0dea> `a, b = 1, 2` == `a = 1; b = 2`, and you'll see it pretty often.
yatish27 has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
lapide_viridi has quit [Quit: Leaving]
kobain has quit [Ping timeout: 240 seconds]
Jet4Fire has joined #ruby
<Ox0dea> Another funny-looking aspect of my solution is the `[[` ... `]]`; Arrays aren't used as Hash keys too terribly often, but it's just the thing this time.
snockerton has quit [Quit: Leaving.]
TheNet has joined #ruby
skade has quit [Read error: No route to host]
dlitvak has joined #ruby
skade has joined #ruby
Jet4Fire has quit [Ping timeout: 245 seconds]
skweek has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
TheNet has quit [Remote host closed the connection]
blackmesa has joined #ruby
rideh has quit [Changing host]
rideh has joined #ruby
ic2000 has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 245 seconds]
Azulinho has quit [Ping timeout: 245 seconds]
skade has quit [Client Quit]
lukeasrodgers has quit [Quit: Leaving.]
<Radar> GOOD MORNING
Gnut has quit [Ping timeout: 246 seconds]
elton has joined #ruby
Jet4Fire has joined #ruby
bronson has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
paradisaeidae has joined #ruby