havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
sandstrom has quit [Quit: My computer has gone to sleep.]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
snguyen has joined #ruby
Vertroa has quit [Ping timeout: 265 seconds]
solocshaw has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snowy has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
Snowy has joined #ruby
choke_ has quit [Ping timeout: 265 seconds]
tomchapin has joined #ruby
choke has joined #ruby
charliesome has joined #ruby
snockerton has joined #ruby
kies^ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snowy has quit [Remote host closed the connection]
ympeg has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
rkazak has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
dorakyura has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
rodfersou has quit [Quit: leaving]
lacuna has quit [Remote host closed the connection]
Snowy has joined #ruby
lacuna has joined #ruby
choke has quit [Ping timeout: 265 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agentmeerkat has joined #ruby
Bloomer has joined #ruby
choke has joined #ruby
chipotle has quit [Quit: cheerio]
djbkd has quit [Quit: My people need me...]
dorakyura has quit [Ping timeout: 256 seconds]
nerium has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohaibbq has joined #ruby
Bloomer has quit [Ping timeout: 265 seconds]
theunraveler has quit [Quit: (null)]
underplank has quit [Read error: Connection reset by peer]
artX000 has quit [Remote host closed the connection]
artX000 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snockerton has quit [Quit: Leaving.]
casadei has joined #ruby
choke has quit [Ping timeout: 265 seconds]
Makorak has joined #ruby
choke has joined #ruby
Symbiosisz has quit [Quit: Leaving]
<shevy> atmosx coding anything fancy in ruby related to your work?
roshanavand has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
Makorak has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
dorakyura has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
<atmosx> yeah
kirun has quit [Quit: Client exiting]
<atmosx> not fancy
<atmosx> just a little bit of ruby
<atmosx> via logstash filter plugins
Snowy has joined #ruby
choke_ has joined #ruby
Snowy has quit [Client Quit]
dlitvak has quit [Ping timeout: 240 seconds]
lacuna has quit [Read error: Connection reset by peer]
dorakyura has quit [Ping timeout: 256 seconds]
lacuna has joined #ruby
choke has quit [Ping timeout: 265 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 260 seconds]
Limix has quit [Quit: Limix]
choke has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
gruz0 has joined #ruby
duckson has quit [Quit: ZNC - http://znc.in]
einarj has quit [Remote host closed the connection]
choke_ has quit [Ping timeout: 265 seconds]
choke__ has joined #ruby
duckson has joined #ruby
Gnut has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
speaking1ode has joined #ruby
choke_ has joined #ruby
choke has quit [Ping timeout: 265 seconds]
hannelita has joined #ruby
<shevy> hmm
<shevy> that does not quite sound epic enough as of yet!
<Papierkorb> AwzmFilterMan!
shinnya has quit [Ping timeout: 264 seconds]
<atmosx> shevy: well it's not epic, but I like it
<atmosx> shevy: the entire code base is in python, so my most interesting tasks in the future will be in python
<atmosx> it's a pitty, I wrk for 2 startups and both use python.
choke__ has quit [Ping timeout: 265 seconds]
<atmosx> blah
<atmosx> I'm off to bed later
<havenwood> atmosx: g'night
BTRE has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
underplank has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
rkazak has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
j0n3 has quit [Quit: j0n3]
symm- has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
pawnbox_ has quit [Remote host closed the connection]
nettoweb has joined #ruby
DonOtreply has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shellie_ has quit [Quit: .]
bb010g has quit [Quit: Connection closed for inactivity]
dlitvak has joined #ruby
nettoweb has quit [Client Quit]
blackmes1 has quit [Quit: WeeChat 1.3]
guacamole has joined #ruby
al2o3-cr has joined #ruby
speaking1ode has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
sankaber has joined #ruby
chipotle has joined #ruby
guacamol_ has quit [Ping timeout: 265 seconds]
charliesome has quit [Client Quit]
choke_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
dorakyura has joined #ruby
babblebre has joined #ruby
guacamole has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
TDJACR has quit [Ping timeout: 250 seconds]
pietr0 has quit [Quit: pietr0]
bithon has quit [Ping timeout: 256 seconds]
choke has joined #ruby
tubuliferous_ has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gambl0re has joined #ruby
marr has quit [Ping timeout: 256 seconds]
davedev24 has quit []
cpup has quit [Ping timeout: 260 seconds]
hannelita has quit [Remote host closed the connection]
gruz0 has quit [Quit: This computer has gone to sleep]
Bloomer has joined #ruby
mistermocha has joined #ruby
duckpupp1 has joined #ruby
underplank has quit [Quit: underplank]
cpup has joined #ruby
harai has joined #ruby
mistermo_ has joined #ruby
juddey has quit [Ping timeout: 276 seconds]
TDJACR has joined #ruby
Bloomer has quit [Ping timeout: 265 seconds]
kalostro has joined #ruby
haraigoshi has quit [Ping timeout: 264 seconds]
choke_ has joined #ruby
freerobby has quit [Quit: Leaving.]
choke has quit [Ping timeout: 276 seconds]
harai54 has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 240 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermo_ has quit [Remote host closed the connection]
harai has quit [Ping timeout: 255 seconds]
choke_ has quit [Ping timeout: 272 seconds]
<diegoviola> how do I convert a string like this 20160107085332 to this %Y-%m-%d %H:%M:%S
<diegoviola> or 2016-01-07 08:53:32
<diegoviola> do I use regex or something else?
choke has joined #ruby
<apeiros> diegoviola: what have you tried?
<pabs> s.gubs(/{
<pabs> err, hi
Coldblackice has joined #ruby
<diegoviola> apeiros: nothing yet because I don't know what to use
<apeiros> what would you try?
<diegoviola> DateTime.parse?
<apeiros> .parse is a last resort, no.
<apeiros> you only use parse when you don't know the format or nothing else can work.
<apeiros> but close
<diegoviola> strftime?
<apeiros> does strftime parse times?
<diegoviola> no
<diegoviola> only formats them afaik
<Ox0dea> diegoviola: Is that what the "f" stands for?
<pabs> >> s = '201601082030'; s.gsub(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/, '\1-\2-\3 \4:\5')
<ruboto> pabs # => "2016-01-08 20:30" (https://eval.in/499641)
<pabs> afk
<Ox0dea> pabs: You're crazy.
<apeiros> crazy seconded
<diegoviola> strftime <- string format time?
<apeiros> so what could "string parse time" be named?
zenlot1 is now known as zenlot
<diegoviola> strptime
jackjackdripper has quit [Quit: Leaving.]
<pabs> not afk, apaprently
<apeiros> good. now look that up, try whether you can get it to work.
<pabs> what is crazy about that?
<diegoviola> apeiros: I actually tried strptime
<apeiros> diegoviola: then you're old enough to know how to do a proper problem description, right?
<diegoviola> I think so
kalopsian has quit [Ping timeout: 255 seconds]
<apeiros> well then, waiting for one.
<Ox0dea> pabs: It's not at all intention-revealing where a perfectly intention-revealing approach exists.
<Ox0dea> Still, kudos.
<apeiros> pabs: additionally to Ox0dea, I'd say diegoviola already had 90%+ of a working solution in place
<pabs> it is literally the solution to the question he asked
<apeiros> and a better one in case they need the time, not the string
<apeiros> yeah, crazy was hyperbole
<pabs> fair enough
cstrahan has quit [Quit: Connection closed for inactivity]
gambl0re has quit []
<pabs> ok, now i'm afk :D
mfb2_ has quit [Remote host closed the connection]
<apeiros> bye pabs :)
devbug has quit [Ping timeout: 245 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> pabs: Are you coming back?
dlitvak_ has joined #ruby
Cohedrin has joined #ruby
<diegoviola> I can't use strptime with that string
<Ox0dea> You sure can.
<diegoviola> [12] pry(main)> DateTime.strptime('20160107085332', "%Y-%m-%d %H:%M:%S")
<diegoviola> ArgumentError: invalid date
<Ox0dea> That's not how it works.
einarj has joined #ruby
<Ox0dea> You tell it the format *of* the input, not what you wish to convert it to.
kalostro has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ox0dea> (Duh.)
mistermocha has joined #ruby
<diegoviola> oh, sorry
<diegoviola> :(
cstrahan has joined #ruby
<diegoviola> [13] pry(main)> DateTime.strptime('20160107085332', "%Y%m%d %H%M%S")
<diegoviola> => #<DateTime: 2016-01-07T08:53:32+00:00 ((2457395j,32012s,0n),+0s,2299161j)>
<apeiros> that's not the format
choke has quit [Read error: Connection reset by peer]
<apeiros> or where do you see a space?
<diegoviola> yep just removed it
choke has joined #ruby
<apeiros> so: bravo
<shevy> :D
<diegoviola> >> DateTime.strptime('20160107085332', "%Y%m%d%H%M%S")
<ruboto> diegoviola # => uninitialized constant DateTime (NameError) ...check link for more (https://eval.in/499643)
dlitvak has quit [Ping timeout: 265 seconds]
<apeiros> now next time when "I can't use methodX" happens, GO READ ITS DOCS.
<diegoviola> apeiros: ok
<apeiros> require 'date'
baweaver has joined #ruby
mfb2 has joined #ruby
<dorei> [1,2,3].join(':') gives "1:2:3", if I wanted to get ":1:2:3" is there a better way than this? ([':']*3).zip([1, 2, 3]).join
<diegoviola> >> require 'date'; DateTime.strptime('20160107085332', "%Y%m%d%H%M%S")
<ruboto> diegoviola # => #<DateTime: 2016-01-07T08:53:32+00:00 ((2457395j,32012s,0n),+0s,2299161j)> (https://eval.in/499644)
<diegoviola> \o/
<diegoviola> thanks guys
<Ox0dea> >> s = '20160107085332'; (4..16).step(3).zip('-- ::'.chars).each { |i, c| s[i, 0] = c }; s
<ruboto> Ox0dea # => "2016-01-07 08:53:32" (https://eval.in/499645)
<apeiros> dorei: define better? shorter?
<apeiros> >> ":"+[1,2,3]*":"
<ruboto> apeiros # => ":1:2:3" (https://eval.in/499646)
<dorei> w0w
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> ?guys diegoviola
<ruboto> diegoviola, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
einarj has quit [Ping timeout: 260 seconds]
gambl0re has joined #ruby
terminalrecluse has joined #ruby
mfb2_ has joined #ruby
<diegoviola> ok
<dorei> thanx apeiros :)
<apeiros> yw
duncannz has joined #ruby
<apeiros> so I guess it qualified as "better" :)
mistermocha has quit [Ping timeout: 276 seconds]
mfb2 has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
finisherr has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
underplank has joined #ruby
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
hannelita has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
Limix has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
<shevy> ohhh interesting
choke has quit [Ping timeout: 240 seconds]
underplank has quit [Ping timeout: 272 seconds]
<shevy> I did not read '[1,2,3]*":"' as [1,2,3] * ":" but instead for some weird reason, I thought it was like *array
<Zarthus> huh, so multiply calls #join
aibot has quit [Remote host closed the connection]
<Zarthus> I don't know what I expected, mostly for the array to duplicate by... some amount of times.
ekinmur has joined #ruby
aibot has joined #ruby
baweaver has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
Jardayn has quit [Read error: Connection reset by peer]
<Ox0dea> >> [1,2,3] * 3 # Zarthus
<ruboto> Ox0dea # => [1, 2, 3, 1, 2, 3, 1, 2, 3] (https://eval.in/499649)
<Ox0dea> It does do replication with a numeric argument.
<Zarthus> yeah
<Ox0dea> But it's not *quite* equivalent to #join if you give it a string.
<Zarthus> but maybe it is my twisted inner PHP-knowledge trying to think ":" might be converted to a char
jonnyro has joined #ruby
<jonnyro> What is the easiest coverage suite to use with minitest?
<jonnyro> (not rails app, just plain ruby)
baweaver has quit [Ping timeout: 240 seconds]
Limix has quit [Quit: Limix]
The_Phoenix has joined #ruby
choke has joined #ruby
dorakyura has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
dfockler has quit [Ping timeout: 260 seconds]
ohaibbq_ has joined #ruby
choke has quit [Read error: Connection reset by peer]
casadei has quit [Remote host closed the connection]
krz has joined #ruby
The_Phoenix has quit [Ping timeout: 264 seconds]
choke has joined #ruby
tubuliferous_ has joined #ruby
<apeiros> Ox0dea: what's the diff? from the source it seems to call the same rb_ary_join if it's a string arg?
pawnbox has quit [Ping timeout: 264 seconds]
ohaibbq has quit [Ping timeout: 255 seconds]
griffindy has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
<Ox0dea> >> [1,2,3].*() rescue $! # apeiros
<ruboto> Ox0dea # => #<ArgumentError: wrong number of arguments (0 for 1)> (https://eval.in/499655)
<Ox0dea> Whereas #join will use `$,`.
<apeiros> but that's not a string arg ;-)
<Ox0dea> Fair enough.
dlitvak_ has quit [Remote host closed the connection]
hannelita has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
hannelita has joined #ruby
mfb2_ has quit [Remote host closed the connection]
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
kalopsian has joined #ruby
nettoweb has joined #ruby
hannelita has quit [Ping timeout: 255 seconds]
colegatron has joined #ruby
kalopsian has quit [Ping timeout: 245 seconds]
yeticry_ has joined #ruby
Ox0dea has quit [Ping timeout: 246 seconds]
daivyk has quit [Quit: Part & Quit]
yeticry has quit [Ping timeout: 272 seconds]
stevenxl has quit [Ping timeout: 260 seconds]
_whitelogger_ has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
fwx has joined #ruby
Darmani has quit [Ping timeout: 252 seconds]
canton7 has joined #ruby
choke has joined #ruby
krz has quit [Ping timeout: 240 seconds]
jonnyro has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
nilbus has joined #ruby
rkazak has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stevenxl has joined #ruby
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
tvw has quit [Ping timeout: 255 seconds]
|hit has joined #ruby
vikas027 has joined #ruby
|hit has quit [Client Quit]
jbrhbr has quit [Ping timeout: 255 seconds]
tuelz has joined #ruby
miba has joined #ruby
<miba> Hi
miba has quit [Client Quit]
miba has joined #ruby
einarj has joined #ruby
choke has quit [Ping timeout: 260 seconds]
agentmeerkat has quit [Ping timeout: 276 seconds]
<havenwood> miah: hi
<havenwood> miba: hi
stevenxl has quit [Quit: leaving]
<havenwood> miah: sorry for the ping! autocomplete fail on my part, but hi anyways. :)
ruboto_ has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.4/20160105164030]]
einarj has quit [Ping timeout: 256 seconds]
<shevy> lol
peterhu_ has joined #ruby
Skelz0r_ has joined #ruby
claw_ has joined #ruby
Plazma_ has joined #ruby
_fumk has joined #ruby
bakedb_ has joined #ruby
choke has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
shadeslayer has joined #ruby
lacuna has quit [Remote host closed the connection]
gbailey- has joined #ruby
techietrash_ has joined #ruby
viperman_ has joined #ruby
[derpy] has joined #ruby
TakumoKatekari has joined #ruby
TakumoKatekari has joined #ruby
redlegion_ has joined #ruby
vikas027 has quit [*.net *.split]
artX000 has quit [*.net *.split]
RTG` has quit [*.net *.split]
tockitj has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
scottschecter has quit [*.net *.split]
ledestin has quit [*.net *.split]
`derpy has quit [*.net *.split]
seaworthy has quit [*.net *.split]
mrtomme has quit [*.net *.split]
viperman has quit [*.net *.split]
rns has quit [*.net *.split]
Takumo has quit [*.net *.split]
ddubs_ has quit [*.net *.split]
shadeslayer_ has quit [*.net *.split]
ruboto has quit [*.net *.split]
atumzin has quit [*.net *.split]
techietrash has quit [*.net *.split]
claw has quit [*.net *.split]
nug has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
hakunin has quit [*.net *.split]
Puffball has quit [*.net *.split]
mkosaki has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
Couch has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
gbailey has quit [*.net *.split]
duracrisis has quit [*.net *.split]
Insti has quit [*.net *.split]
fumk has quit [*.net *.split]
reaVer_ has quit [*.net *.split]
redlegion has quit [*.net *.split]
Plazma has quit [*.net *.split]
haasn has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
peterhu has quit [*.net *.split]
bakedb has quit [*.net *.split]
Raboo has quit [*.net *.split]
AnoHito has quit [*.net *.split]
sunya7a__ has quit [*.net *.split]
tomdp has quit [*.net *.split]
rmrrn has quit [*.net *.split]
spacemud has quit [*.net *.split]
RaceCondition has quit [*.net *.split]
chridal has quit [*.net *.split]
Platini has quit [*.net *.split]
mc_fail_ has quit [*.net *.split]
tekk has quit [*.net *.split]
RazorX- has quit [*.net *.split]
tw1sted has quit [*.net *.split]
Veejay has quit [*.net *.split]
awk has quit [*.net *.split]
pragmatism has quit [*.net *.split]
cfloare has quit [*.net *.split]
janno has quit [*.net *.split]
forgot has quit [*.net *.split]
hypnosb has quit [*.net *.split]
_mh_ has quit [*.net *.split]
mame2 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
hxegon has joined #ruby
Rodya_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
jnj has joined #ruby
choke has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
crdpink2 has joined #ruby
sonOfRa has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
crdpink has quit [Ping timeout: 260 seconds]
<jnj> Hey, so I'm playing around with some api's for a cli app. One of my methods checks to see if credentials are valid on the website and if they are it returns an xml file. I'm just calling system(curl -u username:password etc...) and if the credentials are valid it returns an xml file, which causes my code to print it out. Is there a method or somethign that I can do where I can just check to see if it returns an xml file and just output true?
shaman42 has quit [Ping timeout: 260 seconds]
Petazz has quit [Ping timeout: 245 seconds]
haasn` has joined #ruby
choke has joined #ruby
Petazz has joined #ruby
<nilbus> jnj: It sounds like you want to instead use: output = `curl -u ...`
<nilbus> With backticks, you can capture the output and write the method you want to test for XML.
<jnj> Ah, I see, then I just check to see if the output is nil or not, correct? As in, unless nil return false else true?
Bloomer has joined #ruby
Insti has joined #ruby
scottschecter has joined #ruby
<nilbus> I believe it should always return a string, perhaps an empty one.
hxegon has quit [Quit: BRB]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
duckpupp1 has joined #ruby
avelldiroll has joined #ruby
shaman42 has joined #ruby
lkba has joined #ruby
vikas027 has joined #ruby
tomdp has joined #ruby
ddubs_ has joined #ruby
pragmatism has joined #ruby
hakunin has joined #ruby
mame2 has joined #ruby
tw1sted has joined #ruby
awk has joined #ruby
mc_fail_ has joined #ruby
Raboo has joined #ruby
Veejay has joined #ruby
Platini has joined #ruby
_mh_ has joined #ruby
sunya7a__ has joined #ruby
RTG` has joined #ruby
Couch has joined #ruby
RazorX- has joined #ruby
forgot has joined #ruby
KillerFox has joined #ruby
hypnosb has joined #ruby
ledestin has joined #ruby
AnoHito has joined #ruby
mkosaki has joined #ruby
Puffball has joined #ruby
reaVer_ has joined #ruby
rmrrn has joined #ruby
spacemud has joined #ruby
tekk has joined #ruby
ItSANgo has joined #ruby
chridal has joined #ruby
tockitj has joined #ruby
RaceCondition has joined #ruby
rns has joined #ruby
seaworthy has joined #ruby
janno has joined #ruby
nug has joined #ruby
cfloare has joined #ruby
duracrisis has joined #ruby
artX000 has joined #ruby
mrtomme has joined #ruby
TheBrayn has joined #ruby
stannard has joined #ruby
Bloomer has quit [Ping timeout: 265 seconds]
juddey has joined #ruby
fwx has quit [Quit: Leaving]
stannard has quit [Remote host closed the connection]
<apeiros> jnj: ``, popen, spawn
stannard has joined #ruby
<apeiros> ah, I see I'm late
d0nn1e has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 260 seconds]
joaomdmoura__ has quit [Ping timeout: 260 seconds]
skmp has quit [Ping timeout: 260 seconds]
raz has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
choke has quit [Read error: Connection reset by peer]
zemmihates has quit [Ping timeout: 260 seconds]
gmci has quit [Ping timeout: 260 seconds]
ELCALOR has quit [Ping timeout: 260 seconds]
mfb2 has joined #ruby
d0nn1e has joined #ruby
hxegon has joined #ruby
zemmihates has joined #ruby
gmci has joined #ruby
skmp has joined #ruby
ckrailo has quit [Ping timeout: 260 seconds]
joaomdmoura__ has joined #ruby
ELCALOR has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
raz has joined #ruby
kalopsian has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
jnj has quit [Quit: Leaving]
ckrailo has joined #ruby
Dimik has quit [Ping timeout: 245 seconds]
miba has quit [Quit: miba]
miba has joined #ruby
mfb2 has quit [Ping timeout: 276 seconds]
choke has joined #ruby
kalopsian has quit [Ping timeout: 276 seconds]
finisherr has joined #ruby
finisherr has quit [Client Quit]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fuzzyfuzz has joined #ruby
choke has quit [Read error: Connection reset by peer]
Bloomer has joined #ruby
gambl0re has quit [Ping timeout: 240 seconds]
snguyen has joined #ruby
shadoi1 has quit [Quit: Leaving.]
snguyen has quit [Client Quit]
snguyen has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
hxegon is now known as hxegon_AFK
cpup has joined #ruby
anisha has quit [Ping timeout: 250 seconds]
makenoise has joined #ruby
cantaberry has quit [Ping timeout: 260 seconds]
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon_AFK is now known as hxegon
choke has joined #ruby
nilbus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
nettoweb has joined #ruby
rrichardsr3 has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
rrichardsr3 has quit [Max SendQ exceeded]
stannard has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
yeticry_ has quit [Ping timeout: 240 seconds]
rrichardsr3 has quit [Max SendQ exceeded]
rrichardsr3 has joined #ruby
nettoweb has quit [Client Quit]
yeticry has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
dorei has quit []
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
hxegon is now known as hxegon_AFK
choke has quit [Read error: Connection reset by peer]
rrichardsr3 has joined #ruby
miba has quit [Quit: miba]
rrichardsr3 has quit [Max SendQ exceeded]
miba has joined #ruby
miba has quit [Client Quit]
cantaberry has joined #ruby
kalopsian has joined #ruby
usershell has joined #ruby
hxegon_AFK is now known as hxegon
choke has joined #ruby
kalopsian has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
usershell has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
gix has quit [Ping timeout: 250 seconds]
hxegon has quit [Quit: BRB]
usershell has joined #ruby
choke has quit [Read error: Connection reset by peer]
Rodya_ has quit [Ping timeout: 255 seconds]
hxegon has joined #ruby
Melpaws has quit [Quit: Leaving.]
zast has joined #ruby
gix has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
usershell has quit [Ping timeout: 260 seconds]
Melpaws has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
choke has joined #ruby
atomical has quit [Ping timeout: 264 seconds]
DonOtreply has joined #ruby
uri_ has joined #ruby
solocshaw has joined #ruby
DLSteve has joined #ruby
linc01n has quit [Ping timeout: 250 seconds]
colegatron has quit [Ping timeout: 265 seconds]
hxegon is now known as hxegon_AFK
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
choke has quit [Read error: Connection reset by peer]
linc01n has joined #ruby
baweaver has joined #ruby
rrichardsr3 has joined #ruby
arup_r has joined #ruby
hannelita has joined #ruby
choke has joined #ruby
kalopsian has joined #ruby
ohaibbq_ has quit [Quit: Leaving...]
uri_ has quit [Quit: --]
Rodya_ has joined #ruby
mfb2 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
radgeRayden has quit [Ping timeout: 265 seconds]
hxegon_AFK has quit [Quit: BRB]
hxegon has joined #ruby
rrichardsr3 has quit [Ping timeout: 264 seconds]
zast has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
hannelita has quit [Ping timeout: 255 seconds]
rrichardsr3 has quit [Max SendQ exceeded]
casadei has joined #ruby
colegatron has joined #ruby
rrichardsr3 has joined #ruby
casadei has quit [Remote host closed the connection]
rrichardsr3 has quit [Max SendQ exceeded]
mfb2 has quit [Ping timeout: 246 seconds]
UtkarshRay has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
arescorpio has quit [Quit: Leaving.]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorakyura has joined #ruby
pawnbox has joined #ruby
makenoise has quit [Remote host closed the connection]
maximumgeek has joined #ruby
Sucks has joined #ruby
makenoise has joined #ruby
choke has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
uri_ has joined #ruby
choke has joined #ruby
dnewkerk has joined #ruby
uri_ has quit [Client Quit]
cantaberry has quit []
kalopsian has quit [Ping timeout: 240 seconds]
arup_r has quit []
choke has quit [Read error: Connection reset by peer]
krz has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
UtkarshRay has joined #ruby
tmtwd has joined #ruby
kalopsian has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has quit [Client Quit]
govg has quit [Quit: leaving]
govg has joined #ruby
choke has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
zemmihates has quit []
CorySimmons has quit [Quit: Bye!]
duckpupp1 has joined #ruby
usershell has joined #ruby
Axy has quit [Ping timeout: 276 seconds]
krz has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Rodya_ has joined #ruby
gix has quit [Ping timeout: 260 seconds]
juddey has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
gix has joined #ruby
_whitelogger has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
choke has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
choke has joined #ruby
uri_ has joined #ruby
colegatron has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
uri_ has quit [Client Quit]
GriffinHeart has quit [Remote host closed the connection]
harai54 has quit [Ping timeout: 264 seconds]
Melpaws has quit [Quit: Leaving.]
usershell has quit [Remote host closed the connection]
hxegon has quit [Quit: BRB]
usershell has joined #ruby
choke_ has joined #ruby
choke has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
choke has joined #ruby
choke_ has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
speaking1ode has joined #ruby
darkf has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
jschmid has joined #ruby
mistermocha has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
hannelita has joined #ruby
colegatron has joined #ruby
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
slash_nick is now known as slash_whowas
mistermocha has quit [Ping timeout: 245 seconds]
hannelita has quit [Ping timeout: 264 seconds]
jschmid has quit [Ping timeout: 240 seconds]
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
lemur has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
nerium has quit [Quit: nerium]
dorakyura has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
nerium has joined #ruby
HANJIN has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
pawnbox has joined #ruby
cmolenda has joined #ruby
cmolenda has quit [Remote host closed the connection]
cmolenda has joined #ruby
amclain has quit [Quit: Leaving]
diegoviola has quit [Quit: WeeChat 1.3]
ytti has quit [Ping timeout: 240 seconds]
psy_ has quit [Read error: No route to host]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
jgpawletko has joined #ruby
choke has quit [Read error: Connection reset by peer]
akkad has quit [Excess Flood]
jgpawletko has quit [Client Quit]
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
<shevy> hmmmm http://sotagtrends.com/?tags=[ruby]
<shevy> the average is a slight decline
KineticX has joined #ruby
<cscheib> I suspect if you looked at the bigger picture, it's probably statistically insignificant
akkad has joined #ruby
<cscheib> oh, I thought that was over the course of days not years
<shevy> well you actually got a point
<shevy> I just clicked on the "relative" check button
nixmaniack has quit [Read error: Connection reset by peer]
<shevy> and there are, in absolute numbers, more ruby questions in the later years
<cscheib> heh, yea, I just did the same
choke has joined #ruby
nixmaniack has joined #ruby
<cscheib> more questions, but also more languages
DLSteve has quit [Remote host closed the connection]
<cscheib> when I read the bottom, I saw Jan 09 and thought that was January 9th through Jan 15th
<cscheib> not realizing the units were years, heh
Rodya_ has joined #ruby
hfp has quit [Ping timeout: 240 seconds]
nixmaniack has quit [Remote host closed the connection]
hfp_work has quit [Ping timeout: 272 seconds]
Kyle has joined #ruby
nixmaniack has joined #ruby
Kyle is now known as Guest26594
nunchuck has quit [Ping timeout: 276 seconds]
choke_ has joined #ruby
Guest26594 has left #ruby [#ruby]
nixmaniack has quit [Remote host closed the connection]
choke has quit [Ping timeout: 255 seconds]
hfp_work has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
hfp has joined #ruby
howdoi has joined #ruby
KineticX has quit [Remote host closed the connection]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
chipotle has quit [Quit: cheerio]
Sucks has quit [Ping timeout: 250 seconds]
DonOtreply has quit [Quit: DonOtreply]
rkazak has joined #ruby
duckpupp1 has joined #ruby
Rinalds has joined #ruby
Mia has quit [Ping timeout: 276 seconds]
makenoise has quit [Remote host closed the connection]
choke_ has quit [Read error: Connection reset by peer]
UtkarshRay has quit [Ping timeout: 260 seconds]
n00bdev has joined #ruby
Axy has quit [Read error: Connection reset by peer]
choke has joined #ruby
makenoise has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
choke has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
makenoise has quit [Client Quit]
hannelita has joined #ruby
choke has joined #ruby
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
hannelita has quit [Ping timeout: 264 seconds]
cmolenda has quit [Remote host closed the connection]
usershel_ has joined #ruby
usershell has quit [Ping timeout: 255 seconds]
usershell has joined #ruby
chipotle has joined #ruby
iateadonut has joined #ruby
iateadonut has quit [Client Quit]
usershel_ has quit [Read error: No route to host]
rippa has joined #ruby
harai54 has joined #ruby
choke has quit [Read error: Connection reset by peer]
ricer2_g4H4 has quit [Ping timeout: 265 seconds]
seaworthy has quit [Quit: seaworthy]
whippythellama has quit [Quit: WeeChat 1.3]
ricer2_g4H4 has joined #ruby
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
nerium has quit [Quit: nerium]
haraigo has joined #ruby
harai54 has quit [Ping timeout: 240 seconds]
ohaibbq has joined #ruby
n00bdev has quit []
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
choke has joined #ruby
lacuna has joined #ruby
nixmaniack has joined #ruby
bluOxigen has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
choke has quit [Read error: Connection reset by peer]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
choke has joined #ruby
einarj has joined #ruby
Rodya_ has quit [Quit: Leaving...]
roshanavand has quit [Ping timeout: 260 seconds]
choke has quit [Read error: Connection reset by peer]
choke_ has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Read error: No route to host]
choke_ has quit [Read error: Connection reset by peer]
usershell has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
maximumgeek has quit [Remote host closed the connection]
choke has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
scripore has quit [Quit: This computer has gone to sleep]
The_Phoenix has joined #ruby
BTRE has joined #ruby
haraigoshi has joined #ruby
haraigo has quit [Ping timeout: 255 seconds]
rkazak has quit [Quit: Sleep.....ing....]
duckpupp1 has quit [Ping timeout: 265 seconds]
rkazak has joined #ruby
choke has quit [Read error: Connection reset by peer]
Bloomer_ has joined #ruby
Bloomer has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cheerio]
choke has joined #ruby
Bloomer_ has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
hannelita has joined #ruby
usershell has joined #ruby
blt has joined #ruby
hannelita has quit [Ping timeout: 240 seconds]
choke has quit [Read error: Connection reset by peer]
Bloomer has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
cmolenda has joined #ruby
choke has joined #ruby
choke has quit [Read error: Connection reset by peer]
gambl0re has quit [Ping timeout: 255 seconds]
duckpupp1 has joined #ruby
harai has joined #ruby
cmolenda has quit [Ping timeout: 260 seconds]
choke has joined #ruby
n1x has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chipotle has joined #ruby
haraigoshi has quit [Ping timeout: 240 seconds]
nixmaniack has quit [Read error: Connection reset by peer]
aadam21 has joined #ruby
djbkd has joined #ruby
duckpupp1 has quit [Ping timeout: 246 seconds]
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
choke has quit [Client Quit]
Jackneill has joined #ruby
n1x has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
aadam21 has quit [Ping timeout: 276 seconds]
nixmaniack has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
n1x has joined #ruby
Bloomer_ has joined #ruby
Bloomer has quit [Ping timeout: 265 seconds]
usershell has quit [Remote host closed the connection]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
usershell has joined #ruby
n1x has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sandstrom has joined #ruby
djbkd has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
nixmaniack has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
chipotle has quit [Quit: cheerio]
symm- has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
jackcom has joined #ruby
<jackcom> can i ask question related with programming?
chipotle has joined #ruby
<jackcom> :)
<havenwood> jackcom: Is the programming question about Ruby?
<jackcom> it is very little related because ruby is progrmming
<jackcom> havenwood:
<jackcom> havenwood: anyway you are good at programming. i think so. can i ask question to you?
<shevy> jackcom you wanna get banned again
<jackcom> no
<shevy> yes
sigurding has joined #ruby
ledestin has joined #ruby
usershell has quit [Remote host closed the connection]
hanmac has joined #ruby
usershell has joined #ruby
karapetyan has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
einarj has joined #ruby
chipotle has quit [Quit: cheerio]
ponga has joined #ruby
The_Phoenix has joined #ruby
juddey has joined #ruby
<atmosx> hm
<atmosx> I have a logstash filter, which runs for every message. I want to count how many exceptions occour in X processed messages and at which point (to create a nice graph).
einarj has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
<atmosx> but this is a class that is loaded and then new objects are created similar to this: http://logstash.net/docs/1.3.2//extending/example-add-a-new-filter ... I should use a class variable right?
lxsameer has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
Macaveli has joined #ruby
hannelita has joined #ruby
BTRE has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 276 seconds]
ohaibbq has quit [Quit: Leaving...]
Macaveli has quit [Ping timeout: 264 seconds]
hannelita has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
cmolenda has joined #ruby
chipotle has joined #ruby
lxsameer has joined #ruby
duckpupp1 has joined #ruby
karapetyan has quit [Remote host closed the connection]
cmolenda has quit [Ping timeout: 265 seconds]
peeja has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
juddey has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
duckpupp1 has quit [Ping timeout: 265 seconds]
rkazak has quit [Ping timeout: 265 seconds]
bluOxigen_ has joined #ruby
peeja has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
Yatagarasu has joined #ruby
BTRE has joined #ruby
mdw has joined #ruby
Yatagarasu has quit [Quit: WeeChat 1.4-dev]
pawnbox has joined #ruby
yardenbar has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
asofgs has joined #ruby
<asofgs> why do mostly niggers program in this language?
robbyoconnor has joined #ruby
<demophoon> !ops
<ruboto_> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Havenn, Radar, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, rubyhacker1, slyphon, ljarvis, Aria, baweaver, Adaedra
<apeiros> !ban asofgs racism not welcome
<adaedra> !ban asofgs !P goodbye
asofgs was kicked from #ruby by ChanServ [Banned: goodbye]
<apeiros> d'uh
<apeiros> can't wait for ruboto update where that'd have worked
nerium has joined #ruby
<adaedra> Thanks, demophoon
rkazak has joined #ruby
sandstrom has joined #ruby
<demophoon> anytime, thanks for the kick :)
karapetyan has joined #ruby
mesamoo has joined #ruby
jbrhbr has joined #ruby
hannelita has joined #ruby
lacuna has quit [Remote host closed the connection]
citizenX has joined #ruby
bluOxigen has joined #ruby
mooe has joined #ruby
hannelita has quit [Ping timeout: 240 seconds]
<mooe> Good morning
<blub> good morning
bluOxigen_ has quit [Ping timeout: 240 seconds]
pskosinski has quit [Read error: Connection reset by peer]
blt has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
kp666 has joined #ruby
JohnT has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
nixawk has joined #ruby
hannelita has joined #ruby
<mooe> Can anyone help me figure out how to convert a list of paths into a nested tree like http://pastebin.com/weS6cYrh
<ruboto_> mooe, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
bkxd has joined #ruby
karapetyan has quit [Remote host closed the connection]
mahk has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ympeg has joined #ruby
hannelita has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
<mooe> I know I need to use reduce but I'm lost
CloCkWeRX has left #ruby [#ruby]
kp666 has quit [Read error: Connection reset by peer]
mahk has joined #ruby
rippa has joined #ruby
mistermocha has joined #ruby
ympeg has quit [Quit: leaving]
cmolenda has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
mistermocha has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
chipotle has quit [Ping timeout: 260 seconds]
ympeg has joined #ruby
cmolenda has quit [Ping timeout: 260 seconds]
pskosinski has joined #ruby
nerium has quit [Quit: nerium]
chipotle has joined #ruby
axsuul has quit [Ping timeout: 245 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
nixawk has quit [Quit: Leaving.]
Nightmare has quit [Ping timeout: 264 seconds]
Nightmare has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
c64zottel has joined #ruby
c64zottel has left #ruby [#ruby]
bkxd has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
bkxd has joined #ruby
Gnut has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
usershell has quit [Remote host closed the connection]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snguyen has joined #ruby
toretore has joined #ruby
duncannz has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
cmolenda has joined #ruby
tomphp has joined #ruby
Dimik has quit [Ping timeout: 272 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
zipace has joined #ruby
cornerma1 has joined #ruby
arup_r has joined #ruby
einarj has joined #ruby
Ishido has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
citizenX has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cheerio]
einarj has quit [Ping timeout: 255 seconds]
hannelita has joined #ruby
cmolenda_ has joined #ruby
cmolenda has quit [Ping timeout: 260 seconds]
zapata has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
hannelita has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
duckpupp1 has joined #ruby
Sirithcam has joined #ruby
dpg_ has quit [Ping timeout: 255 seconds]
Coldblackice_ has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
duckpupp1 has quit [Ping timeout: 240 seconds]
phatypus has joined #ruby
programmerq has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
<azggil> 50$ and i write code converting to tree
citizenX has joined #ruby
spider-mario has joined #ruby
sigurding has joined #ruby
sigurding has quit [Client Quit]
SOLDIERz has joined #ruby
Mon_Ouie has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
citizenX has quit [Ping timeout: 265 seconds]
edwinvdgraaf has joined #ruby
Sirithcam has quit [Quit: Leaving]
phatypus has quit [Quit: .>]
FatDiggerNick has joined #ruby
FatDiggerNick was kicked from #ruby by ChanServ [Banned: goodbye]
karapetyan has joined #ruby
jbrhbr has quit [Quit: Leaving.]
karapetyan has quit [Ping timeout: 260 seconds]
aadam21 has joined #ruby
colegatron has quit [Ping timeout: 250 seconds]
pandaant has joined #ruby
aadam21 has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
craysiii has quit [Quit: Leaving.]
rodfersou has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
hannelita has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
FooMunki has joined #ruby
hannelita has quit [Ping timeout: 255 seconds]
dlitvak has joined #ruby
axsuul has joined #ruby
harai54 has joined #ruby
harai has quit [Ping timeout: 255 seconds]
arup_r has quit []
FooMunki has quit [Ping timeout: 255 seconds]
axsuul has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
colegatron has joined #ruby
JohnT has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
jackcom has left #ruby [#ruby]
harai54 has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Quit: WeeChat 1.4-dev]
stamina has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 240 seconds]
devbug has joined #ruby
symm- has quit [Ping timeout: 272 seconds]
last_staff has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
sdothum has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
AlexRussia has joined #ruby
tomphp has joined #ruby
edwinvdgraaf has joined #ruby
nettoweb has joined #ruby
Phage has joined #ruby
<Phage> If I want to check if my script gets two arguments suppled, how'd I do that? (like: ruby test.rb argument1 and argument2)
<Phage> Currently using ARGV[] to grab the arguments.
sigurding has joined #ruby
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
<toretore> Phage, and that's not good enough?
Xeago has joined #ruby
<Phage> toretore: Might be. I just can't figure out how to make the script check if two arguments has been supplied.
TomyLobo has joined #ruby
edwinvdg_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
mdw has joined #ruby
<ympeg> check the length of argv
<Phage> Just saw that I can do ARGV.length
<Phage> Why didn't I think if this -.-
<ympeg> as in every array
<Phage> Exactly why I feel stupid right now
<ponga> hi
Shapeshifter has joined #ruby
roshanavand has joined #ruby
z3uS has quit [Quit: /dev/null]
nilbus has joined #ruby
gruz0 has joined #ruby
sigurding has quit [Quit: sigurding]
z3uS has joined #ruby
bensarz has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nilbus has quit [Ping timeout: 246 seconds]
z3uS has quit [Client Quit]
_fumk is now known as fumk
nettoweb has joined #ruby
underplank has joined #ruby
z3uS has joined #ruby
nettoweb has quit [Client Quit]
FooMunki has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c355e3b has joined #ruby
hannelita has joined #ruby
sigurding has joined #ruby
karapetyan has joined #ruby
underplank has quit [Ping timeout: 240 seconds]
dwfait has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
hannelita has quit [Ping timeout: 255 seconds]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
krz has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
z3uS has quit [Quit: /dev/null]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
jxs_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
framling has quit [Remote host closed the connection]
tk__ has joined #ruby
karapetyan has quit [Remote host closed the connection]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
m8 has joined #ruby
glen_ has joined #ruby
<glen_> hi, how to make the second block return similar structure? http://sprunge.us/AdYA
chipotle has joined #ruby
sameerynho has joined #ruby
<glen_> seemss i want to iterate over array and return hasmap key pairs from it
karapetyan has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
duckpupp1 has joined #ruby
ta has joined #ruby
roshanavand has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
last_staff has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
einarj has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 264 seconds]
krz has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
trautwein has joined #ruby
usershell has joined #ruby
bensarz has quit [Ping timeout: 276 seconds]
mooe has quit [Quit: Connection closed for inactivity]
<glen_> i was able to came up with this: http://sprunge.us/JSTP can it be done better?
usershell has quit [Ping timeout: 245 seconds]
nanoz has joined #ruby
ta has quit [Remote host closed the connection]
dwfait has quit [Remote host closed the connection]
skade has joined #ruby
scripore has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanav_ has joined #ruby
dorei has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zaers has joined #ruby
bensarz has joined #ruby
dling has quit []
praveen has joined #ruby
Zaers has left #ruby ["NedaMise"]
arup_r has joined #ruby
chipotle has quit [Quit: cheerio]
aibot has quit [Remote host closed the connection]
hannelita has joined #ruby
aibot has joined #ruby
MahaDev has quit [Remote host closed the connection]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
ferd has joined #ruby
hannelita has quit [Ping timeout: 240 seconds]
krz has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
aadam21 has joined #ruby
z3uS has joined #ruby
praveen has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
bensarz_ has joined #ruby
praveen has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
bensarz has quit [Ping timeout: 240 seconds]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
mistermocha has joined #ruby
<Phage> Is it possible to only join from array[1] and forward?
<Papierkorb> Phage: array[1..-1].join(...)
<Phage> Oh, that works
<Phage> can you explain it to me?
<Phage> Don't understand it 100%
Gnut has quit [Ping timeout: 255 seconds]
<Papierkorb> That's using Array#[], aka "that element access operator" :P – Anyway, when you pass in a Range (x..y), it returns you all elements in that range.
<arup_r> str[range] → new_str or nil <~~
<arup_r> >> puts "hi"
<ruboto_> arup_r # => hi ...check link for more (https://eval.in/499926)
mistermocha has quit [Ping timeout: 276 seconds]
<arup_r> cool
<Papierkorb> arup_r: he has an array, not a string
<arup_r> sorry wrong doc link
<arup_r> there you go.. ^^
<Phage> Papierkorb already sent that :)
<Phage> I still don't quite get it though
<arup_r> ok, I joined late then..
<arup_r> I am seeing half convo
<arup_r> :)
<Papierkorb> Phage: what part don't you 'get' ?
<Phage> It's the range part
<Phage> 1..-1
<Phage> goes from 1 to -1 ?
<Papierkorb> Phage: OK, hang on
<arup_r> Phage: why don't read the doc.. It is mentioned everything with examples..
<Papierkorb> >> a = [4,5,6]; puts a[1..-1].join(',')
<ruboto_> Papierkorb # => 5,6 ...check link for more (https://eval.in/499929)
<arup_r> that doc is worth to read
<Papierkorb> >> a = [4,5,6]; puts a[-1], a[1..-1].join(',')
<ruboto_> Papierkorb # => 6 ...check link for more (https://eval.in/499932)
skade has joined #ruby
dlitvak has quit [Remote host closed the connection]
<arup_r> Phage: use p [ a[-1], a[1..-1].join(',') ] to show all output :)
<arup_r> sorry Papierkorb ^^ not Phage the above
dlitvak has joined #ruby
duckpupp1 has joined #ruby
glen_ has left #ruby [#ruby]
<Phage> Okay, let me see if I got this right.
<Phage> So, if you go 'in minus' it goes the other way around?
<Phage> i.e. counts backwards?
<Phage> in the array
rodfersou has quit [Quit: leaving]
<Papierkorb> Phage: minus accesses the elements from the right side (as opposed to the left), so yeah, it basically counts 'backwards'
<Phage> Ah
<Phage> now it's clear t
<Phage> to me
<Phage> thank you very much!
<Phage> :)
bithon has joined #ruby
charliesome has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
ferd has left #ruby ["NedaMise"]
duckpupp1 has quit [Ping timeout: 255 seconds]
stannard has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
jackcom has joined #ruby
<jackcom> shevy: :)
<jackcom> can i see your coding? shevy ?
xet7 has quit [Ping timeout: 276 seconds]
KineticX has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<arup_r> haha
radgeRayden has joined #ruby
<jackcom> arup_r: ? what’s wrong?
<jackcom> :)
<arup_r> nothing.. all is perfect..
<jackcom> yeah, can i see your coding? arup_r
<jackcom> because i want learn real coding.
KineticX has quit [Remote host closed the connection]
<arup_r> jackcom: look then at codeschool first
<jackcom> oh
<jackcom> where is codeschool?
roshanav_ has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
<jackcom> arup_r:
<arup_r> on internet
<jackcom> arup_r: give me link plz
nertzy has joined #ruby
Makorak has joined #ruby
chimche has joined #ruby
konr has joined #ruby
symm- has joined #ruby
sameerynho has quit [Quit: Leaving]
nanoz has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
SirCmpwn has quit [Remote host closed the connection]
roshanavand has joined #ruby
SirCmpwn has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
xet7 has joined #ruby
Phage has left #ruby [#ruby]
karapetyan has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
Anderson69s has joined #ruby
northfurr has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
ta0 has joined #ruby
northfurr has quit [Client Quit]
BTRE has quit [Read error: Connection reset by peer]
chimche has quit [Quit: Leaving.]
northfurr has joined #ruby
BTRE has joined #ruby
chimche has joined #ruby
usershell has joined #ruby
Dragooon has joined #ruby
hannelita has joined #ruby
<Dragooon> I don't know Ruby but I'm stuck with a program I need to translate, can anyone explain what this does? https://gist.github.com/Dragooon/6de3f2d796e84a1bdd12 I want to know what would return t[a] .. b achieve
kalopsian has quit [Ping timeout: 245 seconds]
<Dragooon> I get that a is the first group match and b is second group
<Papierkorb> Dragooon: That is Lua Code, not Ruby
<Dragooon> Papierkorb Oh, damn
<Papierkorb> and 'translate'?
<Dragooon> I searched gsub and got ruby, so I presumed it's that
<Dragooon> Papierkorb: I needed to implement the logic in PHP
dlitvak has quit [Remote host closed the connection]
usershell has quit [Ping timeout: 240 seconds]
<Dragooon> Okay got it, double dot is concatenation in Lua
<Dragooon> Thanks!
<Papierkorb> That program replaces all character pairs from the regex by capturing those two, then uses the 't' table (associative array or a Hash in this context)
<Dragooon> Papierkorb: Yup, got it. Thanks!
<Papierkorb> Dragooon: it translates a to t[a] and appends the value of b to it (".." = string concat operator iirc)
dlitvak has joined #ruby
hannelita has quit [Ping timeout: 255 seconds]
HANJIN has left #ruby [#ruby]
edwinvdgraaf has joined #ruby
gregf has quit [Disconnected by services]
gregf1 is now known as gregf
dlitvak has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
edwinvdgraaf has quit [Ping timeout: 245 seconds]
Phage has joined #ruby
azggil has quit [Ping timeout: 255 seconds]
usershell has joined #ruby
lkba has joined #ruby
skade has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
chussenot has quit [Quit: chussenot]
sdwrage has quit [Client Quit]
beevalee has joined #ruby
chimche has quit [Quit: Leaving.]
d0nn1e has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
aryaching has joined #ruby
d0nn1e has joined #ruby
praveen has quit [Remote host closed the connection]
chouhoulis has joined #ruby
usershell has quit [Remote host closed the connection]
iateadonut has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mfb2 has joined #ruby
stannard has quit [Remote host closed the connection]
beevalee has left #ruby ["WeeChat 1.1.1"]
nerium has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
usershell has joined #ruby
mfb2 has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
praveen has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
praveen has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
gambl0re has joined #ruby
lucasb has joined #ruby
chussenot has joined #ruby
Xeago has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
einarj has quit [Ping timeout: 272 seconds]
pwnd_nsfw has joined #ruby
edwinvdgraaf has joined #ruby
varunwachaspati has joined #ruby
nerium has quit [Quit: nerium]
Xeago has joined #ruby
nullwarp has quit [Ping timeout: 260 seconds]
yardenbar has quit [Quit: Leaving]
cassioscabral has joined #ruby
sgambino has joined #ruby
roshanavand has joined #ruby
yardenbar has joined #ruby
roshanav_ has quit [Read error: Connection reset by peer]
Makorak has quit [Remote host closed the connection]
karapetyan has joined #ruby
<Zarthus> Could anyone assist me on trying to implement multiple TCPServers efficiently? I'm trying to write a server that can listen on multiple ports. However, whenever I iterate over my TCPServers to server.accept, it pretty much freezes there. When a client connects to one port, it works. But then the loop starts listening on the TCPServer with a different port. When another client comes in trying to
<Zarthus> connect from the same port it will not work because no server is accepting from there (yet).
<Zarthus> I can think of some solutions, but more than anything I would expect it to be possible for a TCPServer to listen on multiple ports. Can I do this? Or do I need to start a new thread for every TCPServer I add? My examples are pretty close to http://ruby-doc.org/stdlib-2.2.0/libdoc/socket/rdoc/TCPServer.html and http://ruby-doc.org/stdlib-2.2.0/libdoc/socket/rdoc/TCPSocket.html - except I open more
<Zarthus> than one server and loop through them in `loop do`.
howdoi has joined #ruby
zotherstupidguy has joined #ruby
ta0 has quit [Ping timeout: 256 seconds]
kenbi has joined #ruby
mrtomme has quit [Ping timeout: 246 seconds]
mrtomme has joined #ruby
<adaedra> The thread solution is good
otuken has joined #ruby
<adaedra> The other solution would be to use something like select(), I wonder if that exists in Ruby
<otuken> Finaly ruby developers!
<otuken> hey all
<adaedra> &ri IO.select Zarthus
<adaedra> what happened to you, silly bot?
karapetyan has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
[derpy] is now known as `derpy
<otuken> puts "Hello World!"
rkazak has joined #ruby
<otuken> Any mentors here for giving tips to a beginner?
<adaedra> ?ask
<ruboto_> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<Zarthus> hmm. I don't think I fully understand the IO#select example. The given code is also pretty messy. I think I'll take the cleaner way of writing it by wrapping it in a thread.
cassioscabral has quit [Quit: cassioscabral]
phantummm has joined #ruby
<adaedra> Zarthus: IO.select would not be that complicated, as it keeps everything in one thread.
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Zarthus: "select socket" are some keywords you can try to find more things on the Internet, if the doc is not enough.
mistermocha has joined #ruby
agentmeerkat has joined #ruby
otuken has quit [Quit: Leaving]
lxsameer has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
<toretore> Zarthus, https://gist.github.com/toretore/1a7596b63b24aa3af199 this isn't a complete solution obviously, but it's a demonstration of how it would work
<Zarthus> Am I right in reading the documentation for IO#select in that it does not support OpenSSL sockets?
<adaedra> Seems so
<Zarthus> Hmm.
<adaedra> But I don't think it's a problem if it's just to select on TCPServer
<toretore> i think they're supported, but they do some internal caching so sometimes a read or write can block even if it says it's read/writable
<Zarthus> I'll have to do a bit of testing with both methods to see which works better. - thanks for the example toretore
mistermocha has quit [Ping timeout: 240 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanav_ has joined #ruby
<toretore> Zarthus, keep in mind that using select is pretty much an implementation of an event loop, of which there exists many mature solutions already
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Zarthus> The select method does seem to work pretty nicely.
arup_r has quit []
El3ktra has quit [Ping timeout: 272 seconds]
nullwarp has joined #ruby
duckpupp1 has joined #ruby
roshanav_ has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 276 seconds]
kenbi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
praveen has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
duckpupp1 has quit [Ping timeout: 276 seconds]
tk__ has quit [Quit: ばいばい]
programmerq has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
VladGh has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
usershell has quit [Read error: Connection reset by peer]
usershell has joined #ruby
domgetter has joined #ruby
praveen has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 256 seconds]
praveen has joined #ruby
praveen has quit [Remote host closed the connection]
<Zarthus> toretore: This method seems to work excellently, which is neat.
praveen has joined #ruby
VladGh has joined #ruby
sankaber has joined #ruby
praveen has quit [Remote host closed the connection]
praveen has joined #ruby
agentmeerkat has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
davedev24 has joined #ruby
tomphp has joined #ruby
jackcom has left #ruby [#ruby]
tomphp has quit [Client Quit]
ponga has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
Xiti has quit [Quit: Xiti]
gregf has quit [Quit: WeeChat 1.3]
f00dMonsta_ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
f00dMonsta__ has joined #ruby
postmodern has quit [Remote host closed the connection]
<lucasb> I see some strange (*args) arguments in the documentation, for example: to_a(*args) and to_h(*args) in http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-to_a
<lucasb> I don't think those methods accept any arguments, right? so, the doc is wrong?
f00dMonsta has quit [Ping timeout: 265 seconds]
Melpaws has joined #ruby
f00dMonsta_ has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
hxegon has joined #ruby
Xiti has joined #ruby
Pupeno has joined #ruby
scripore has joined #ruby
chouhoulis has joined #ruby
f00dMonsta_ has joined #ruby
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
nerium has joined #ruby
hannelita has joined #ruby
DEA7TH has joined #ruby
arup_r has joined #ruby
praveen has quit [Remote host closed the connection]
<adaedra> It does not because the underlying object's each does not takes any argument, as these arguments are passed down
<DEA7TH> [f1(), f2_might_raise_an_exception(), f3()].lazy ---- how can I write this code without getting an exception from the second value?
<adaedra> >> module A; def self.each(z); 3.times { yield z }; end; end; A.extend Enumerable; A.to_a(3) # lucasb
<ruboto_> adaedra # => [3, 3, 3] (https://eval.in/499986)
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f00dMonsta has joined #ruby
brunto has joined #ruby
<adaedra> DEA7TH: you can use an inline rescue but that's not really good.
<adaedra> Explain the whole problem?
f00dMonsta__ has quit [Ping timeout: 265 seconds]
<lucasb> adaedra: so, in other words, the doc is right?
<domgetter> DEA7TH: ruby doesn't lazily evaluate the functions, it just lazily yields results
stannard has joined #ruby
<adaedra> lucasb: yes. Don't forget than Enumerable is just a set of methods based on call on #each.
tomphp has joined #ruby
<domgetter> >>[->{puts "3"}.call].lazy
<ruboto_> domgetter # => 3 ...check link for more (https://eval.in/499987)
<adaedra> that*
<lucasb> adaedra: ah, ok. thanks!
<domgetter> the #<Enumerator::Lazy: [nil]> returned shows that
hannelita has quit [Ping timeout: 240 seconds]
cmolenda_ has quit [Remote host closed the connection]
f00dMonsta_ has quit [Ping timeout: 250 seconds]
f00dMonsta_ has joined #ruby
<adaedra> lucasb: the real prototype of your to_a/to_h methods is the same as the real class's #each method.
<domgetter> DEA7TH: so you'll have to wrap the whole thing in a begin... rescue... end block
freerobby has joined #ruby
<domgetter> an alternative (among many) is to not construct the array with the calls to those functions, and call them as they are yielded, and then rescue *that*
tomphp has quit [Client Quit]
<adaedra> Could write that `[:f1, :f2, :f3].lazy.map { |n| method(n).call }` to lazily call though.
f00dMonsta has quit [Ping timeout: 240 seconds]
<toretore> DEA7TH, perhaps it's better to describe what the purpose and goal is
<toretore> not perhaps, it is. always.
edwinvdgraaf has quit [Remote host closed the connection]
<adaedra> Do we have a xy?
f00dMonsta__ has joined #ruby
dlitvak has joined #ruby
cmolenda_ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
<domgetter> DEA7TH: may I ask what it is you're trying to accomplish?
Melpaws1 has joined #ruby
praveen has joined #ruby
krz has quit [Quit: WeeChat 1.2]
<DEA7TH> the only problem with now.rb is the exception which might be raised
<toretore> your before.rb is better
<toretore> now.rb is clever just for the sake of it
eros_zhao has joined #ruby
<adaedra> yep
f00dMonsta_ has quit [Ping timeout: 276 seconds]
Melpaws has quit [Ping timeout: 260 seconds]
<adaedra> readability > compact code
hornairs has joined #ruby
<DEA7TH> I couldn't find a more readable way to do it
<DEA7TH> but before.rb is missing an elegant pattern - each boolean is a state transition
<toretore> you had a readable way already
tomphp has joined #ruby
govg has quit [Remote host closed the connection]
f00dMonsta_ has joined #ruby
<adaedra> well, the idiom is case and a state property, i'd say
<DEA7TH> adaedra: case? like how?
cassioscabral has joined #ruby
kenbi has joined #ruby
<adaedra> case state; when :collected; do_shit; when :ironed; do_shit; ...; end
<DEA7TH> didn't know when can match on a boolean
praveen has quit [Ping timeout: 256 seconds]
<domgetter> DEA7TH: when can match on magical things :)
<DEA7TH> still misses the state transition pattern :( argh
<domgetter> it can match on a proc, which when called, will pass whatever was passed to case
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<domgetter> is this to enumerate the states of a dry cleaning order?
<DEA7TH> oh well I suppose that pattern is not common enough to be respected.
f00dMonsta__ has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
<DEA7TH> domgetter: ironing actually. Includes collection and delivery.
<domgetter> DEA7TH: don't be too hasty. I don't entirely know what you're trying to do yet
bb010g has joined #ruby
C0deMaver1ck has quit [Ping timeout: 250 seconds]
<DEA7TH> domgetter: there are 4 states and 3 booleans between each. You start at state 1. Each boolean gets you one state forward. The first false boolean causes you to return the current state.
rippa has joined #ruby
zast has joined #ruby
<domgetter> DEA7TH: if something is ironed, is it booked?
govg has joined #ruby
<domgetter> sorry, if something is ironed, is it collected?
<DEA7TH> domgetter: First a customer makes a booking. Then their clothing is collected, afterwards it is ironed and finally it is delivered back to them.
nerium has quit [Quit: nerium]
<domgetter> do you want it to be the case that when 'ironed?' is true, that 'collected?' is also true?
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
C0deMaver1ck has joined #ruby
<DEA7TH> Yes - one must first collect a customer's clothes before they can possibly iron them.
lacuna has quit [Ping timeout: 256 seconds]
dlitvak_ has joined #ruby
C0deMaver1ck is now known as Guest54756
<domgetter> okay. usually in a finite state machine, you aren't in two states at once. so if 'ironed?' is true, 'collected?' should be false, since we're past that state.
dlitvak__ has joined #ruby
<domgetter> (even though logically you can't iron something that isn't collected)
<DEA7TH> You could say that. But the function collected? still returns true because the collection has alraedy been done.
duckpupp1 has joined #ruby
jschmid has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
nerium has joined #ruby
konr has quit [Quit: Connection closed for inactivity]
dlitvak_ has quit [Ping timeout: 264 seconds]
brendan- has joined #ruby
gambl0re has quit [Ping timeout: 240 seconds]
brendan- has quit [Client Quit]
psy_ has joined #ruby
iateadonut has left #ruby [#ruby]
cassioscabral has quit [Quit: cassioscabral]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<domgetter> DEA7TH: okay I think I understand now.
duckpupp1 has quit [Ping timeout: 276 seconds]
stannard has quit [Remote host closed the connection]
benjohn has joined #ruby
cassioscabral has joined #ruby
agentmeerkat has joined #ruby
tomphp has joined #ruby
<domgetter> DEA7TH: since you're calling methods, the only way to rescue/catch the exception is to wrap the whole thing in a begin end. One sec and I'll make a change to now.rb
brendan- has joined #ruby
brendan- has quit [Remote host closed the connection]
Guest54756 has quit [Ping timeout: 264 seconds]
C0deMaver1ck_ has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
<domgetter> There are a couple ways to fix the problem. I would personally recommend making the "collected?", "ironed?", and "delivered?" into lambdas, and then mapping over them with individual begin...end blocks
<domgetter> however, what I would recommend more is figure out how to prevent the possibility that you're trying to iron something you haven't collected.
<domgetter> so that this all isn't a problem to begin with
<domgetter> (and likewise, prevent the possibility that you're trying to deliver something that isn't ironed)
brendan- has joined #ruby
<DEA7TH> toretore: advance isn't how I use the API - changes to other DB tables determine the state.
<DEA7TH> but I suppose I can just do a take_while and for each increase state_idx by 1, rather than do the .size hack
harai54 has joined #ruby
<DEA7TH> or just use whens
<DEA7TH> domgetter: that probably won't be a problem.
<domgetter> I mean at the core of it, you're trying to figure out what state you're in, correct?
<DEA7TH> yes
<toretore> DEA7TH, but why do your query methods raise?
<domgetter> toretore: because he might try to deliver something that isn't ironed
<DEA7TH> toretore: actually I realized that's fixable... and already fixed, even.
<toretore> it's not a mutating call
<toretore> if you have to use three separate booleans, at least make this internal and then only expose the logical one-state as the only way to interact with it from the outside
aryaching has quit [Ping timeout: 260 seconds]
<DEA7TH> But sometimes, my code wants to ensure that it is "at least collected" - this corresponds to the code {state == 'collected' or state == 'ironed' or state == 'delivered'}
<DEA7TH> I might instead have a method for state_idx and then it will do state_idx >= COLLECTED_IDX
pandaant has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Makorak has joined #ruby
praveen has joined #ruby
dlitvak__ has quit [Remote host closed the connection]
terminalrecluse has joined #ruby
einarj has joined #ruby
<DEA7TH> even better, use ints 0-4 for state and forget the strings
tomphp has joined #ruby
C0deMaver1ck_ has quit [Ping timeout: 272 seconds]
cassioscabral has quit [Quit: cassioscabral]
C0deMaver1ck_ has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
pskosinski_ has joined #ruby
El3ktra has joined #ruby
El3ktra has quit [Changing host]
El3ktra has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
colegatron has quit [Ping timeout: 276 seconds]
tomphp has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
freerobby has quit [Quit: Leaving.]
aryaching has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
bensarz_ has quit [Quit: Textual IRC Client: www.textualapp.com]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
El3ktra has quit [Ping timeout: 265 seconds]
crankharder has quit [Ping timeout: 265 seconds]
smactive has joined #ruby
kalopsian has joined #ruby
yosafbridge` has quit [Ping timeout: 250 seconds]
axsuul has quit [Ping timeout: 260 seconds]
mdw has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
El3ktra has joined #ruby
El3ktra has quit [Changing host]
El3ktra has joined #ruby
smactive has quit [Ping timeout: 255 seconds]
nerium has quit [Quit: nerium]
kalopsian has quit [Ping timeout: 265 seconds]
hannelita has joined #ruby
nerium has joined #ruby
colegatron has joined #ruby
yosafbridge has joined #ruby
C0deMaver1ck_ is now known as C0deMaver1ck
hannelita has quit [Ping timeout: 240 seconds]
KineticX has joined #ruby
jschmid has quit [Ping timeout: 272 seconds]
citizenX has joined #ruby
atomical has joined #ruby
citizenX has quit [Client Quit]
cassioscabral has joined #ruby
dlitvak has joined #ruby
kenbi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
Makorak has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
stannard has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
Bloomer_ has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
slash_whowas is now known as slash_nick
scripore has quit [Quit: This computer has gone to sleep]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
PedramT has joined #ruby
duckpupp1 has joined #ruby
scripore has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lacuna has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 276 seconds]
cpup has joined #ruby
duckpupp1 has quit [Ping timeout: 256 seconds]
KineticX has quit [Remote host closed the connection]
gregf has joined #ruby
scottschecter has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
cassioscabral has joined #ruby
atomical has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
Melpaws1 has quit [Quit: Leaving.]
sigurding has quit [Quit: sigurding]
SCHAAP137 has joined #ruby
cpup has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
KineticX has joined #ruby
hxegon has quit [Quit: BRB]
cpup has joined #ruby
lacuna has quit [Remote host closed the connection]
brunto has quit [Ping timeout: 272 seconds]
m8 has quit [Quit: Sto andando via]
karapetyan has joined #ruby
brunto has joined #ruby
ur5us has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
hxegon has joined #ruby
maneco has joined #ruby
lacuna has joined #ruby
karapetyan has quit [Remote host closed the connection]
shadoi has joined #ruby
karapetyan has joined #ruby
nickjj has joined #ruby
FernandoBasso has joined #ruby
hornairs has quit [Quit: hornairs]
atomical has joined #ruby
Xeago has joined #ruby
asthasr has joined #ruby
kadoppe has quit [Ping timeout: 245 seconds]
lxsameer has quit [Quit: Leaving]
mdw has joined #ruby
kadoppe has joined #ruby
Limix has joined #ruby
<atmosx> Anyone using the gruff gem to generate charts?
<atmosx> I'm getting this error https://gist.github.com/atmosx/b43e190e33b2bb2cfc7f it's related to imagemagick, any ideas?
Vertroa has joined #ruby
yos7ph has joined #ruby
<shevy> I used to use gruff
<shevy> it had some nice graphics but the code base was really weird
<atmosx> well, google charts generates graph without data using ruby's gem (no numbers, xy axis etc.) and gruff doesn't work at all
* atmosx toasted
<atmosx> I can export tabular data and use excel
Vertroa has quit [Client Quit]
usershell has quit [Remote host closed the connection]
hannelita has joined #ruby
<shevy> we should rewrite it from scratch!
<shevy> I mean gruff
<atmosx> haha
BTRE has quit [Ping timeout: 240 seconds]
<atmosx> I don't think I'm up to the task
<shevy> :D
Kiwi_sherbet has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<shevy> that is the faulty part: module Magick; class Draw; def annotate_scaled self.annotate(img, scaled_width, scaled_height, x * scale, y * scale, text.gsub('%', '%%'))
hannelita has quit [Ping timeout: 264 seconds]
programmerq has quit [Ping timeout: 272 seconds]
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
shadoi has quit [Quit: Leaving.]
Makorak has joined #ruby
diegoviola has joined #ruby
gambl0re has joined #ruby
BTRE has joined #ruby
karapetyan has quit [Remote host closed the connection]
roshanavand has joined #ruby
Makorak has quit [Ping timeout: 272 seconds]
<kspencer> NoMethodError - undefined method `uptimeReport' for #<MyApp:0x00000000d20fc8>:
<kspencer> I've passed it through as a local yet that's what shows up in the errors
<kspencer> slim :uptime, :locals => {"uptimeReport" => uptimeReport}
karapetyan has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
northfurr has joined #ruby
shadoi has joined #ruby
<atmosx> kspencer: use .class to debug
<kspencer> eh?
djbkd has joined #ruby
northfurr has quit [Client Quit]
programmerq has joined #ruby
roshanavand has quit [Remote host closed the connection]
dionysus69 has joined #ruby
hxegon has quit [Quit: BRB]
karapetyan has quit [Ping timeout: 260 seconds]
<kspencer> atmosx: honestly I've never heard of '.class' other than if someone were to put h2.class in slim etc, where am I putting this .class
roshanavand has joined #ruby
haraigo has joined #ruby
sneakerhax has joined #ruby
edwinvdgraaf has joined #ruby
harai54 has quit [Ping timeout: 256 seconds]
<shevy> kspencer so the object you are working with has no such method
mfb2 has joined #ruby
underplank has joined #ruby
<kspencer> shevy: its a variable passed through a :locals
Xeago has joined #ruby
<shevy> you need to fix that
edwinvdgraaf has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
sneakerhax has quit [Ping timeout: 245 seconds]
ta has joined #ruby
baweaver has quit [Remote host closed the connection]
mfb2 has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
shadoi has quit [Quit: Leaving.]
sheybo has joined #ruby
sheybo has quit [Remote host closed the connection]
Cohedrin has joined #ruby
karapetyan has quit [Remote host closed the connection]
spstarr has left #ruby ["Leaving"]
phantummm has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
<kspencer> I found the problem, I have one checking for a User-Agent of the bot, and then the non-agent one was inheriting the content-type
<kspencer> plus other stuff
DonOtreply has joined #ruby
<kspencer> but I figured it out
aryaching has quit []
<kspencer> will gist when done
dorakyura has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
karapetyan has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
phantummm has joined #ruby
baweaver has joined #ruby
stannard has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
ta has quit [Remote host closed the connection]
chimche has joined #ruby
chimche has quit [Client Quit]
chimche has joined #ruby
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has quit [Remote host closed the connection]
brunto has quit [Ping timeout: 260 seconds]
n0xff has left #ruby [#ruby]
Faisal_ has joined #ruby
chimche has quit [Ping timeout: 272 seconds]
PedramT has quit [Remote host closed the connection]
lkba has quit [Remote host closed the connection]
PedramT has joined #ruby
ur5us has joined #ruby
northfurr has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
sdwrage has quit [Quit: This computer has gone to sleep]
Faisal_ has quit [Remote host closed the connection]
usershell has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
hannelita has joined #ruby
anski has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
anski has quit [Client Quit]
barajasfab has joined #ruby
barajasfab is now known as anski
usershell has quit [Ping timeout: 265 seconds]
dtordable has joined #ruby
hannelita has quit [Ping timeout: 255 seconds]
chimche has joined #ruby
duckpupp1 has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
FastJack has quit [Ping timeout: 250 seconds]
aef has quit [Remote host closed the connection]
<dtordable> hello all
yos7ph has quit [Quit: Leaving]
darkf has quit [Quit: Leaving]
chimche has quit [Ping timeout: 255 seconds]
duckpupp1 has quit [Ping timeout: 260 seconds]
underplank has quit [Quit: underplank]
aef has joined #ruby
axsuul has joined #ruby
sdwrage has joined #ruby
underplank has joined #ruby
Darmani has joined #ruby
<Darmani> Hey kids ^^
thevaliantx has joined #ruby
<dtordable> hello Darmani
axsuul has quit [Ping timeout: 256 seconds]
ongimack has joined #ruby
* Darmani waves
cpup has quit [Ping timeout: 264 seconds]
<thevaliantx> i am thinking of buying a Ruby book on Amazon. Currently my 9 year old son and I are working our way through the Python Programming for the Absolute Beginner book. SUPERB book, by the way, we enjoy Python! But .... I am wondering if we would like Ruby, since I would like to expose him to more than just one language. Your thoughts?
cpup has joined #ruby
<thevaliantx> The book we are thinking of getting is The Well-Grounded Rubyist. The reviews on it seem really good, and commenters say that the author's style is engaging.
FastJack has joined #ruby
<Darmani> thevaliantx: While I've never read it myself Ruby is a fantastic language that is pretty easy to pick up. Especially if you're already coming from another background.
<toretore> one thing to think about, as you say you want to expose him to more than one language, is that ruby is probably the closest language there is to python
<toretore> though they are of course quite different
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<thevaliantx> i didn't want to say it because i don't have any knowledge to support my thoughts, but something about Ruby reminds me of Python.
chimche has joined #ruby
djbkd has quit [Remote host closed the connection]
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
<thevaliantx> and hey .... those Ruby books are BEAUTIFUL on the front cover :)
chimche has quit [Client Quit]
dlitvak has joined #ruby
<thevaliantx> i did not mention that he is being exposed to C when we play around with the Arduino.
northfurr has quit [Client Quit]
TheHodge has joined #ruby
karapetyan has quit [Remote host closed the connection]
northfurr has joined #ruby
arup_r has quit []
dlitvak has quit [Remote host closed the connection]
TomPeed has joined #ruby
mdw has joined #ruby
dlitvak has joined #ruby
thevaliantx has quit [Quit: Leaving]
eros_zhao has quit [Ping timeout: 252 seconds]
<Darmani> Hey guys, quick question.
<Darmani> I'm building a tic tac toe game and I wanted to make sure my logic was solid.
<Darmani> Could someone take a look at my code and tell me if it's okay?
karapetyan has joined #ruby
<Darmani> It's not finished yet, but hopefully what I have so far is okay.
JohnBat26 has joined #ruby
<Darmani> someoneee plss.
<Darmani> I'm so alone
<Darmani> T.T
dlitvak has quit [Remote host closed the connection]
Xeago has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
* Darmani sighs
djbkd has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jschmid has joined #ruby
Anderson69s has joined #ruby
Anderson69s has quit [Client Quit]
blt has joined #ruby
ongimack has quit [Read error: Connection reset by peer]
PedramT has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
choke has joined #ruby
djbkd has quit [Ping timeout: 246 seconds]
<shevy> tic tac toe is simple
<shevy> you usually have something like a 3x3 board right? which often is an array
<shevy> so each field has a "o" or a "x" or a " " being empty, so 3 states; the " " should be the initial one
<shevy> hmm
<shevy> have you stored some invisible UTF character there
<shevy> I can save your paste in my local editor but when I run it via ruby I get: invalid multibyte char (UTF-8)
znz_jp has quit [Ping timeout: 260 seconds]
<eam> Array.new(9) is a little weird, I think I'd do Array.new(3) { Array.new(3) { " " } }
<shevy> also I get a: in `choose_spot': undefined method `+' for nil:NilClass (NoMethodError)
<baweaver> also use to_s as your board output method
tuelz has quit [Ping timeout: 250 seconds]
xlegoman has joined #ruby
<lucasb> isn't he mixing the model with the presentation? there's "__" in the array
<baweaver> yep
<eam> this reminds me of a chess program I wrote in high school, when I had no idea what I was doing. I used an 8x8 character array, capital letters for white and lowercase for black
znz_jp has joined #ruby
<Darmani> shevy: I left my computer. I thought no one was here lol
<Darmani> lucasb: Umm yeah kind of. I figured the two underscores would be "empty" so if someone was trying to place a marker there I could do it the way I set it up xP
<shevy> you don't ever leave on IRC, you idle to more and more power
<Darmani> watt
<Darmani> Lol
<Darmani> So what's wrong with the code?
<Darmani> Why can't you just be happy for me?
<Darmani> xP
<shevy> because your code is sloppy
<shevy> you don't want to be known as "Darmani the sloppy hacker"
<Darmani> So what would you change?
<Darmani> LOL
<Darmani> I want to be known as "Darmani the sexy hacker".
Kiwi_sherbet has quit [Remote host closed the connection]
<lucasb> and using the convention of 2 spaces indentation would make the readers happy :)
<shevy> Darmani ^^^ just implement all the things!
<Darmani> lucasb: You mean instead of the underscores?
<lucasb> Darmani: no, I mean code indentation
Meow-J has quit [Quit: Connection closed for inactivity]
<Darmani> I'm confused...........
<Darmani> The board??
kalopsian has joined #ruby
<dtordable> lucasb: and the .vimrc format is? set ts 2 or what?
<shevy> Darmani you indent with tabs right?
<Darmani> No the code editor does that shit for me shevy
<lucasb> dtordable: what? I personally use ft=ruby sw=2 ts=2 et; but, ok, it's just convention. anybody can use whatever they want :)
<shevy> Darmani ok you must tell your editor to stop doing that
<Darmani> shevy: What about the logic itself???
<Darmani> the method check_valid_spot
<dtordable> aha, so I'll put that on my vimrc thanks lucasb
<shevy> the logic can wait
<Darmani> shevy: i hate you
<shevy> people will be so distracted by everything else that they can not focus on the logic
<shevy> take xmas presents - if you don't wrap them up, you won't be so excited to look at what's inside
<Darmani> shevy: So what's wrong with the indentation?
<Darmani> It looks fine to me.
<shevy> tabs are the sign of the devil
<Darmani> Things will be more confusing if everything can only be indented twice -__-
hannelita has joined #ruby
<Darmani> Oh they should be closer together?
<Darmani> Is that really a big deal?
<Darmani> Seriously?
<shevy> yes
<shevy> I had to replace your evil tabs with spaces in my editor
<Darmani> xD
<Darmani> Okay well it's fixed. I think.
scripore has quit [Quit: This computer has gone to sleep]
choke has quit [Quit: Gone]
choke has joined #ruby
<lucasb> nope, still tabs :)
<Darmani> Well I don't fucking get it then.
hannelita has quit [Ping timeout: 240 seconds]
<shevy> I now have the spaces
<shevy> but it's not consistent :)
<shevy> Darmani, look at the first line:
<shevy> " class TicTacToe"
<shevy> it should be
<shevy> "class TicTacToe"
DonOtreply has joined #ruby
<Darmani> the fuck?? hang on.
<shevy> oh
<shevy> I see
<shevy> so he replaced one tab with 4 spaces
<Darmani> I have no idea why you see that. But that's not how it's written on my screen -__-
kalopsian has quit [Ping timeout: 255 seconds]
<shevy> well, the first layer of indent is not necessary, regardless of tab or spaces
<shevy> well look at http://ideone.com/JpRyvk
<shevy> you notice that it does not start right away
<Darmani> maybe this website will work better.
<shevy> yeah on repl.it you can see that there is nothing between the most-left and the start of the first character
<Darmani> It isn't indented shevy.
<shevy> yes but on ideone there it is!!!
<shevy> I will screenshot!!!!!
<Darmani> BUT I DIDNT DO IT
<Darmani> IT WASNT ME
<adaedra> This discussion is going nowhere
<Darmani> adaedra: THANK YOU
<Darmani> All I wanted was for someone to look at the fucking logic.
mistermocha has joined #ruby
Makorak has joined #ruby
karapetyan has quit [Remote host closed the connection]
<adaedra> I just dropped in, can you ask your question again?
<adaedra> Or is it just for review?
karapetyan has joined #ruby
benjohn has quit [Read error: Connection reset by peer]
<shevy> hmm... so the discussion is going nowhere... but you did not know what it is all about :D
Makorak has quit [Ping timeout: 272 seconds]
<shevy> Darmani I get an error: 33:in `block in check_valid_spot': undefined local variable or method `board' for #<TicTacToe:0xb7d1c790> (NameError)
<shevy> Did you mean? @board
<adaedra> I read enough
<Darmani> adaedra: I was building a tic tac toe game as part of my curriculum. I wanted to make sure my logic was solid for choosing a spot on the board.
<shevy> line 33 holds the devil
<Darmani> shevy: just noticed. Thanks for that.
<shevy> have you used attr before?
<shevy> in this case you could use:
<shevy> attr_reader :board
<shevy> then line 33 would work
<Darmani> that was just an error. It should be @board.
<adaedra> the way you've split the methods is weird.
<Darmani> adaedra: I was kind of worried about that. I just tried to follow the order of operations.
<adaedra> Yeah, I see that
<adaedra> But now, all the game is contained in #initialize, indirectly
<adaedra> Don't be afraid to have a bit more code in the global scope
craysiii has joined #ruby
spinagon has joined #ruby
<Darmani> adaedra: Noted.
spinagon has quit [Client Quit]
DonOtreply has quit [Quit: DonOtreply]
spinagon has joined #ruby
xargs has left #ruby [#ruby]
<adaedra> Also, you show the board only once, at the beginning?
<Darmani> oh shitt. That's right...
<Darmani> I suppose it should be included in the loop right? So after every turn?
<adaedra> You should work better at the separation in methods, Darmani
<Darmani> adedra: It's my first time.
<Darmani> adaedra*
DonOtreply has joined #ruby
rippa has quit [Ping timeout: 255 seconds]
northfurr has joined #ruby
<adaedra> Ok
<adaedra> You should split down each step in independent steps, and rather have a main method (i.e. #run) call successively the different steps rather than making them call each other like that
<Darmani> Really?
<Darmani> What would that look like? Could you show me an example?
ympeg has quit [Remote host closed the connection]
<adaedra> Will try to do that without blackboard
<Darmani> blackboard...? o.o
<adaedra> Yeah, I usually draw something to show that, not easy on IRC :p
<adaedra> (I'm typing)
<Darmani> I would imagine. Lol
northfurr has quit [Client Quit]
<adaedra> You have to see how you can split the game in small steps. You start by the big idea, and identify smaller steps. Then, you take every step and try to break them down again in smaller steps, until you have small enough blocks.
dpg_ has joined #ruby
<Darmani> But then you would have like 30 methods....
DonOtreply has quit [Client Quit]
<adaedra> Yes
<Darmani> That doesn't sound practical.
<Darmani> jesus you'd have a field day trying to sort through all that...
skcin7 has joined #ruby
<Papierkorb> Darmani: That or wade through the mud of huuuge methods.
<adaedra> There's a limit on how far you should get; but splitting things in small isolated steps is good as it can make things clearer on how it works at each level, and makes replacement of some logic easy.
<Darmani> Papierkorb: Not you too.... Q.Q
<adaedra> Darmani: bear with us.
* Darmani sighs
<adaedra> Let's split your game together, Darmani?
<Darmani> I guess.
kies^ has quit [Ping timeout: 260 seconds]
<adaedra> How, can you try to decompose a Tic-Tac-Toe game in some great steps? The first level, so things big enough right now and not a lot
<adaedra> s/great/big/
<Darmani> Are you asking me?
dtordable has quit [Quit: leaving]
<adaedra> Yes
<Darmani> You want me to break the game down?
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<adaedra> Yes
<lucasb> step #1: say welcome and display an empty board?
mooe has joined #ruby
<adaedra> To see how you do it
<Darmani> adaedra: ^
<Darmani> yeah that sounds about right.
<adaedra> give all the steps, they should assemble into a full game
<Darmani> 1. be attractive 2. don't be unattractive.
centrx has joined #ruby
aadam21 has quit [Remote host closed the connection]
<adaedra> that's an exercise that is supposed to help you and show you a way of having things better split; if you don't want to, tell me, and I'll go back to my projects.
brunto has joined #ruby
dtordable has joined #ruby
<Darmani> adaedra: Relax I'm writing out all the steps.
<adaedra> :)
<Darmani> adaedra: https://repl.it/Bchk/2
<Darmani> off the top of my head...
<Darmani> That's the basic's I suppose.
asthasr has quit [Quit: Leaving]
<adaedra> Papierkorb: you're still looking? I'm not opposed to a second pair of eyes.
<lucasb> can I play together? I'm practicing some ruby myself and think a tictactoe would be a good exercise :)
<Darmani> lucasb: The more the merrier I guess
<adaedra> lucasb: ok then, try to do the exercise too. See if you have something different from Darmani.
<Papierkorb> adaedra: joined the replit board
DonOtreply has joined #ruby
northfurr has joined #ruby
<lucasb> I think one can model the board in two ways: 1) with a 3x3 array 2) with a 9-element simple array
<adaedra> you're getting too much into details.
<adaedra> you're doing the what, not the how.
<adaedra> this could be tic-tac-toe on a sudoku grid or a rubicks cube; at this moment this does not matter.
<Papierkorb> lucasb: That is a implementation detail. Focus on what the user actually sees first. How you do it internally does not matter to the user (nor does s/he see it), so leave that for later
<lucasb> ok, I'll slow down
<adaedra> Darmani: valid for you too
<pontiki> adaedra: teaching top-down design over irc?
<Papierkorb> adaedra, lucasb: Think about the game logic itself. As in the game rules, not how you'll do it
<Darmani> adaedra: I'm still wondering what you want me to do lol
<adaedra> Darmani: split your program correctly
djbkd has joined #ruby
marr has joined #ruby
<pontiki> adaedra: :D
<adaedra> Darmani, lucasb: ok, let's do it differently.
<adaedra> Let's say I don't know tic-tac-toe, and you're teaching me to play.
jnj has joined #ruby
<Darmani> Alright...
<jnj> I'm creating a cli application that sends requests to a websites api via curl. I'm trying to make a method to figure out whether or not a user's credentials are valid. Is there a way to figure out if the output of curl is nil or not?
<Darmani> https://repl.it/Bchk/3 adaedra
<Darmani> Is this enough splitting?
<adaedra> jnj: why not use a curl library why curb?
<eam> use one string 9 characters long
<adaedra> Darmani: just tell me how to play
<adaedra> With words, not code
<Darmani> You want me to tell you how to play tic tac toe?
<adaedra> yes!
<jnj> adaedra: I'm not sure what you mean, I'm using curl -u username:password url. What is curb?
<lucasb> step #2: ask the player #1 for a number 1..9
djbkd has quit [Ping timeout: 260 seconds]
tuelz has joined #ruby
<Darmani> Well... We take turns putting our markers on the board, and the first one to get three in a row wins the game. - adaedra
dpg_ has quit [Ping timeout: 245 seconds]
<adaedra> Okay, we have something here
<havenwood> jnj: Curl has a lovely library libcurl you can use without it's binary. Curl is one nice Ruby wrapper for that lib.
<havenwood> Curb*
<jnj> adaedra: Did you mean to say, why not use a curl library like curb? But sweet, I'll check out curb
weemsledeux has joined #ruby
<jnj> Word, thanks!
<adaedra> jnj: ... my keyboard is playful tonight.
spinagon has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jnj> adaedra: haha, but seriously thanks curb seems very helpful for my project
aadam21 has joined #ruby
<adaedra> Darmani: so you have already something at top-level here: turns. Tic-Tac-Toe is just a succession of turns (which you started to describe me). This will be our first level.
<Darmani> We need a method just for that...?
<adaedra> Why not?
<jnj> I assume curb will work with ruby 2.2?
<havenwood> jnj: Yup
<Darmani> adaedra: But.... how..... why....what.....
<havenwood> jnj: A quick way to check what a project is tested against if it uses Travis for continuous integration is to check the .travis.yml: https://github.com/taf2/curb/blob/master/.travis.yml#L3
<adaedra> Darmani: You'll get it. lucasb, can you now break down what a turn is, again by breaking it down in a small number of steps in words?
tuelz has quit [Ping timeout: 256 seconds]
<adaedra> mh, they may have quit since
<lucasb> assuming only 2 players (in the general case, N players could play a TTT game, where N >= 2 :)
<lucasb> first player #1 plays, then player #2, then player #1 again, etc... this is a flip flop, changing the state :)
<adaedra> that's a bit much detail, even if you're raising an interesting detail (but go on, i'll go back to that)
devbug has joined #ruby
<adaedra> let's say a one player turn
<lucasb> asks player an integer 1..9 (because this way the input will be easier)
<lucasb> checks that the input is valid
<adaedra> no, human ttt currently
<Darmani> adaedra - https://repl.it/Bchk/4
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darmani> is that broken down enough
phatypus has joined #ruby
maneco has left #ruby ["WeeChat 1.3"]
<adaedra> not sure. Can you help lucasb on my question?
northfurr has quit [Quit: northfurr]
maneco has joined #ruby
ekinmur has joined #ruby
<Darmani> adaedra: what's wrong with what he wrote...? Lol
<adaedra> how to describe human tic-tac-toe one player turn in a small number of steps (i'm thinking of two, but I may be wrong)
<adaedra> he's got implementation details we do not care about yet
<Darmani> i go, you go. your turn, my turn, hakuna matata.
<adaedra> ok, and in each turn?
<adaedra> what do I do when it's my turn?
<Darmani> you place your marker on the board.
<adaedra> and then, check if you won :)
ekinmur has quit [Client Quit]
<Darmani> umm yeah.
<adaedra> (we will take the brag about win out, if you please)
northfurr has joined #ruby
<adaedra> so now we have this, right? https://gist.github.com/adaedra/8fae579b507b4b5d55a6
<Darmani> Is that what we have? Lol
<adaedra> well, first level was: <Darmani> Well... We take turns
<adaedra> then, at second: <Darmani> you place your marker on the board. | <adaedra> and then, check if you won :)
<Darmani> I mean... yeah.
<adaedra> this is just human tic-tac-toe, computer one is slightly more complicated but it's just one or two missing lines, I'd say.
<adaedra> Can you find the missing steps, and tell me where to place them?
<Darmani> Does the game also count as the board?
<adaedra> you mean, creating the board?
<Darmani> yeah.
<adaedra> I will edit my file a little to be clearer
hannelita has joined #ruby
<adaedra> here, each step is an action, with a verb
<adaedra> so, you have "create the board". I can work with that, where do you place it?
<Darmani> 1st step.
<adaedra> before play the game? ok.
skade has joined #ruby
<adaedra> lucasb: you can still play too!
<Darmani> I think he gave up ;p
<adaedra> do you see something else?
<lucasb> adaedra: I'm listening a little :)
<Darmani> yeah. There needs to be check marker.
<adaedra> check marker?
TomPeed has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<Darmani> well you can't just go placing markers willy nilly wherever you want now can you?
<adaedra> This is below place marker, I'd say.
<Darmani> I would agree.
<adaedra> The one I'm trying to place could be under it too, I reckon.
<adaedra> But let's still find it. How do I know how the board looks?
northfurr has quit [Quit: northfurr]
<Darmani> We still have to create it.
<adaedra> I added, create it. But how do the player know what is the current state of the board if they can't see it?
lele has quit [Ping timeout: 240 seconds]
<Darmani> oh.
hannelita has quit [Ping timeout: 255 seconds]
<Darmani> So show board?
<Darmani> We need that too I guess.
<adaedra> (This is the first time you're doing this, this is totally normal you can't do it well or see what I'm getting too; it's still difficult for me with more experience :o) )
<adaedra> Ok, where do I add it?
<lucasb> before the 'place marker' step, I think should be 'show board/table' and 'get input' ?
<Darmani> right after we create it?
duckpupp1 has joined #ruby
<adaedra> lucasb: I'd place "get input" inside "place marker", actually.
<adaedra> Darmani: I prefer lucasb's proposition, do you see why?
TomPeed has quit [Client Quit]
<Darmani> I mean, yeah that works too.
TomPeed has joined #ruby
<adaedra> Well, yours show the board only when it's new, so we can't really see the game progress (but this could be advanced mode ;) )
<Darmani> lmao
<Darmani> lets do it his way.
Makorak has joined #ruby
<adaedra> I'm adding what we said about place marker too, since we have them.
lele has joined #ruby
<adaedra> I've updated the gist. Does it looks right to you?
framling has joined #ruby
<lucasb> yes
<Darmani> y.....yeah
<adaedra> you've already wrote some part of the code here.
duckpupp1 has quit [Ping timeout: 240 seconds]
KineticX has quit [Remote host closed the connection]
<Darmani> Now what?
underplank has quit [Ping timeout: 245 seconds]
<adaedra> I've added sample methods names; but you're free of what you do
<adaedra> Now, you have the structure of your code, you can try to write it. Some methods are almost completely written here, as they are just calls to the down methods.
Makorak has quit [Ping timeout: 272 seconds]
<Darmani> So they shouldn't link to each other?
<Darmani> Right?
<adaedra> They can link down.
dling has joined #ruby
<Darmani> Ah
<Darmani> Okay.
<adaedra> So #turn, in my sample, will call #show_board, #get_play and #check_win.
underplank has joined #ruby
ur5us has joined #ruby
CorySimmons has joined #ruby
<Darmani> right.
mdw has quit [Quit: Sleeping Zzzzz]
Ox0dea has joined #ruby
<adaedra> Does not look like too many methods?
<Darmani> adaedra: No it looks very clean and concise.
* Darmani claps
<Darmani> Ox0dea: hey boo<33
<Ox0dea> Darmani: You should hide JOINs, babe.
<Darmani> I don't know how to do that -_-
<adaedra> break down the process and you'll know. (Sorry.)
<adaedra> :p
KineticX has joined #ruby
<Darmani> adaedra: Lol remind me what the "play game" method does?
<Darmani> it seems redundant now
<adaedra> Darmani: plays the turns one after each others?
<Darmani> isn't that what #play is for?
<Darmani> I mean #turn8
<Darmani> turn*
<adaedra> derp
* Darmani shrugs
<adaedra> that's the part of the turn where you interact with the user, look the schema
ur5us has quit [Ping timeout: 245 seconds]
<adaedra> i did not have good name ideas, so you can change them to something more meaningful.
underplank has quit [Ping timeout: 260 seconds]
<Darmani> The part of the turn where you interact with the user??
ur5us has joined #ruby
<Ox0dea> Darmani: Gotta get dat input!
<Darmani> You mean like a simple message that says "it is your turn?"
<adaedra> Yes, get his input, check it and write it?
<adaedra> You have the methods below?
<adaedra> Er wait, i'm mixing things again
<adaedra> #turn, we said
<Darmani> .........
<Ox0dea> adaedra plz
* Darmani is confused
<adaedra> rewind
<Ox0dea> Er, a #rewind method?
<adaedra> Ox0dea: blame apeiros, he made me wake early!
<adaedra> Darmani: #turn is when 1 player (and only one) plays.
griffindy has joined #ruby
<adaedra> So #play is succession of calls to #turn (with a possible twist to have players succeed.)
<adaedra> Someone tells me something about a call to `loop` or something similar.
scripore has joined #ruby
<Ox0dea> `play while @board.playable?`
<Darmani> I see what you're saying.
<Darmani> And I still can't picture it.
<Darmani> So what exactly is involved in #play? Just getting the input from the user??
djbkd has joined #ruby
<Ox0dea> Darmani: #play should be a loop wrapped around #turn.
<Ox0dea> I think calling them #run and #play respectively is a little clearer.
<Darmani> ohhh
<Darmani> Ox0dea: Don't you start lol
<adaedra> I'll allow Ox0dea to fix my horrendous method names.
<adaedra> He is way better at English than I am.
<Darmani> adaedra: It doesn't matter. I'm learning :P
jnj has quit [Ping timeout: 276 seconds]
<Darmani> Ox0dea: No one likes you.
<Ox0dea> The voices like me.
<Darmani> lmao
CorySimmons has quit [Quit: Bye!]
einarj has joined #ruby
<shevy> Darmani I think you are slowly becoming the most active here on #ruby
<adaedra> Darmani: don't be so aggressive.
<Ox0dea> >> 4073930972120442021941899024580558813626659657148635604951730592.to_s(16).tr '0-9a-e', 'pwn givestomach'
<ruboto_> Ox0dea # => "the voices want me to stop wanting the voices to stop" (https://eval.in/500033)
<Darmani> shevy: Because I'm the most inexperienced and need the most help lmao
<adaedra> shevy: afraid to loose your rank?
<Darmani> adaedra: Sorry, he knows I'm kidding ^.^
<Ox0dea> Knock! Draw! Loose!
<adaedra> I see.
<shevy> adaedra you always think that I am off topic :(
<Ox0dea> adaedra: Darmani and I play rough. Ignore us unless something catches fire.
phatypus has quit [Quit: .>]
<adaedra> ?offtopic shevy
<ruboto_> shevy, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Darmani> Ox0dea: Lmaooo
<adaedra> Ox0dea: yeah, inside jokes do not really works with people outside the joke.
<Ox0dea> "Inside joke" isn't quite applicable; it's just "chemistry" or the like.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Darmani> Ox0dea: ^ That sounds about right.
Uranio has joined #ruby
solars has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
mdw has joined #ruby
TomPeed has quit [Quit: Textual IRC Client: www.textualapp.com]
<Darmani> adaedra: Wait, so we're going to have three methods nested within a "loop" inside the "run" method??
<Darmani> Isn't that a bit excessive??
TomPeed has joined #ruby
<adaedra> Do you know about recursion?
einarj has quit [Ping timeout: 250 seconds]
<Ox0dea> adaedra: Inappropriate?
<Darmani> adaedra: I believe it's the process of breaking up with your girlfriend and getting another girl right away.
<adaedra> Darmani: if this level of "deep" calls is frightening him, I wonder how he will react to recursion. :p
<adaedra> Anyway, no, it's not excessive.
SenpaiSilver has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
SenpaiSilver has quit [Remote host closed the connection]
<Darmani> I don't know then lol
lkba has joined #ruby
Uranio has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
pskosinski has joined #ruby
loren has joined #ruby
<adaedra> nvm, I was being a bit facetious. Thank your friend Ox0dea who protects you from me so well.
<solars> question: I've got a device that logs temperatures to a sql db, I now need to create a daemon that monitors these values every 30 secs. can anyone suggest gems to do this? something to create a linux daemon, start, stop, etc and something maybe for the frequent polling loop?
<Ox0dea> solars: Why Ruby?
<solars> why not?
<Darmani> Ox0dea: thank... you?
<Ox0dea> Darmani: I don't know what's going on.
pskosinski_ has quit [Read error: Connection reset by peer]
<Darmani> Me neither.
<Darmani> adaedra: Anyway, back to the stupid tic tac toe game that is slowly chipping away at my mental health.
<adaedra> Darmani: well, did you wrote your new implementation?
<solars> pontiki, thank you, I know that :) I thought someone maybe can suggest something based on similar experience
<Darmani> I'm still trying to wrap my head around what the methods do and how they go together...
<Darmani> You told me how to build a car. And that's great now I know.
<Darmani> But I've never built a fucking car.
<Darmani> Lol
freerobby has joined #ruby
<Darmani> adaedra: You handed me a wrench and said good luck D:
<adaedra> Well, think of the splitting we've done above, with the textual descriptions
<pontiki> Darmani: that's the nature of most software development
<Darmani> wrffff
<Darmani> pontiki: that's reassuring.
<pontiki> what adaedra has just shown is how to break down a problem into smaller, solvable pieces.
<shevy> huh... who handed you a bench Darmani
<pontiki> that's the essense of programming
<shevy> pontik is chiming in now as well :)
<adaedra> Darmani: you can start by any method you want now, they should be small enough to easily be solvable.
<shevy> damn I can't even get the nick right
<adaedra> lucasb: you too, you can write a sudoku too
<Darmani> pontiki: yeah I get that. But this is still my first time. And no one is being gentle :(
dpg_ has joined #ruby
<adaedra> shevy: with a real IRC client, you'd have Tab completion.
<pontiki> i though you liked it rough
<Darmani> adaedra: I'll work on it.
<shevy> adaedra there used to be ponbiki!
<adaedra> errr.
<Darmani> pontiki: LOL
<adaedra> errrrrr.
<adaedra> lucasb: you too, you can write a tic-tac-toe too
<Darmani> pontiki: Not exactly. Not like this lmao
<adaedra> why did I say "sudoku"
<adaedra> too many grids
mdw has quit [Ping timeout: 245 seconds]
<adaedra> Darmani: you already have #show_board, for starters.
stamina has quit [Quit: WeeChat 1.3]
pdoherty has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
<Darmani> adaedra: I know. I've just been staring at the computer screen trying to think.
<Darmani> I'll write some shit and get back to you
* Darmani sighs
solars has quit [Quit: WeeChat 0.4.2]
lkba has quit [Remote host closed the connection]
<adaedra> Darmani: when working on a problem like that, give you some limit on the time you work on it. Being stuck on something without progression for a long time does not help.
<pontiki> Darmani: you shouldn't have an understanding of what all has happened yet. you've merely been through a demonstration of it. you have practice, apply, and teach someone to understand it
<pontiki> so don't feel bad; confustion is okay
<Darmani> adaedra: Okay, will do.
<Darmani> pontiki: Thanks I'll keep that in mind.
<adaedra> It's your first time, it's ok to not see through yet.
<Darmani> Righttt.
<Darmani> I will be back.
<adaedra> Rough since the first time ( ͡° ͜ʖ ͡°)
<pontiki> \o/
<Darmani> lmao
freerobby has quit [Quit: Leaving.]
<Darmani> I can be summoned if you clap your hands three times, do a somersault and you call my name.
<lucasb> lol, you people are funny. I'm trying to code here something. If I finish, I'll put it in a gist :)
<Darmani> So don't hesitate to do that =p
<adaedra> A somersault?
<adaedra> What do you think I am, human?
skade has quit [Quit: Computer has gone to sleep.]
<adaedra> Too bad, I don't have anymore my tic-tac-too for Casio
djbkd_ has quit [Ping timeout: 250 seconds]
steffkes has quit [Ping timeout: 260 seconds]
Sucks has joined #ruby
jairojunior has joined #ruby
yfeldblum has joined #ruby
pdoherty has joined #ruby
karapetyan has quit [Remote host closed the connection]
mdw has joined #ruby
choke_ has joined #ruby
Dragooon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Ping timeout: 256 seconds]
praveen has quit [Remote host closed the connection]
aadam21 has quit [Remote host closed the connection]
penne12 has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2 has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
KineticX has quit [Remote host closed the connection]
<shevy> a Casio is for doing calculations adaedra, not for wasting your time playing games
<adaedra> writing*
ur5us has quit [Remote host closed the connection]
<shevy> :D
edwinvdgraaf has joined #ruby
mfb2_ has joined #ruby
mfb2 has quit [Ping timeout: 255 seconds]
ikwhjdw has joined #ruby
ikwhjdw has left #ruby ["NedaMise"]
ikwhjdw has joined #ruby
ikwhjdw has left #ruby ["NedaMise"]
TomPeed has joined #ruby
praveen has joined #ruby
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<Darmani> shevy, adaedra, Ox0dea, pontiki.
<Darmani> that oughta get everyone's attention xP
<adaedra> Oui ?
<adaedra> I have still one method to write
<Darmani> You do???
<Darmani> goddamn it
<shevy> you are back to tabs again I see
<Darmani> We've talked about this
<Darmani> That's not me.
<shevy> lol
<Darmani> That's not what it actually looks like lol
tuelz has joined #ruby
underplank has joined #ruby
<adaedra> You show the board twice in a turn?
<adaedra> Wait
<Darmani> Once when the game first starts
<Darmani> and once after every turn.
anski has quit [Quit: Leaving]
jschmid has quit [Ping timeout: 240 seconds]
<Darmani> I still need to write the logic to check for the winning numbers though.
dorakyura has quit [Ping timeout: 256 seconds]
gruz0 has quit [Quit: Leaving]
<adaedra> I said you can only call down; you start by making initialize call play when they are on the same level.
praveen has quit [Ping timeout: 245 seconds]
<adaedra> Down was meaning more indented, may have misunderstood that.
mfb2_ has quit [Remote host closed the connection]
<Darmani> oh I thought you meant down like.. next lol
<shevy> or down like ... up
<adaedra> yeah no
<Darmani> shevy: lol xD
<adaedra> Well, technically, down is right here
barajasfab has joined #ruby
<Darmani> Alright............
<Darmani> Well
<Darmani> I need a break
<adaedra> But yeah, we split in sub step; a step do not call the next one, it only calls the sub-steps (and sometimes the dubstep)
Jackneill has quit [Ping timeout: 272 seconds]
<Darmani> Or I might destroy something
<adaedra> Take it
<adaedra> You also need that
<Darmani> I will be back in a few hours.
<Darmani> don't miss me too much.
<adaedra> I will be asleep then.
<Darmani> Q.Q
<Darmani> then I love you. And I will see you tomorrow<33
<adaedra> You can pm me things if you want me to read them tho.
<Darmani> Mmmmkkkk
<Darmani> buhbye<3
zenlot has quit [Ping timeout: 255 seconds]
hxegon has joined #ruby
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
dorakyura has joined #ruby
<shevy> HAHAHA
<shevy> these slides are actually hilarious:
<shevy> this is almost like a meme... "nobody knows nobu!"
<shevy> oh... he is using OSX
aadam21 has joined #ruby
ur5us has joined #ruby
smactive has joined #ruby
finisherr has joined #ruby
zenlot has joined #ruby
hxegon has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has quit [Quit: Sleeping Zzzzz]
cdg has joined #ruby
brunto has quit [Quit: Lost terminal]
aadam21 has quit [Ping timeout: 265 seconds]
smactive has quit [Ping timeout: 240 seconds]
choke_ has quit [Ping timeout: 256 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
weemsledeux has joined #ruby
atomical has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NaviFullroot has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
choke has joined #ruby
<NaviFullroot> Hi ppl
<NaviFullroot> I have an issue with syscall
<NaviFullroot> Who know how to fix "in `syscall': string contains null byte (ArgumentError)"
<NaviFullroot> string is packed structure(with 0 ofc)
<Radar> NaviFullroot: show us your code
pawnbox has quit [Remote host closed the connection]
DonOtreply has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
<NaviFullroot> buf = [@name].pack("a16@40")
<NaviFullroot> syscall SYS_IOCTL, @sys_fd, SETKERN, buf
dorakyura has quit [Ping timeout: 256 seconds]
<NaviFullroot> ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
DEA7TH has joined #ruby
choke has quit [Read error: Connection reset by peer]
framling has quit [Remote host closed the connection]
last_staff has joined #ruby
rocfig has joined #ruby
<rocfig> is why's ruby guide a good read?
pawnbox has joined #ruby
<Ox0dea> It's a good read, but it won't teach you Ruby.
choke has joined #ruby
<Ox0dea> NaviFullroot: Well, you're padding that result with null bytes, and #syscall don't like that, even though it'd probably be fine down in the kernel. :/
djbkd_ has joined #ruby
<Ox0dea> Not sure how to circumvent that check.
framling has joined #ruby
<NaviFullroot> Why syscall should care?
The_Phoenix has joined #ruby
<Ox0dea> Well, because it's C underneath, and C strings can't contain null bytes.
atomical has quit [Quit: Textual IRC Client: www.textualapp.com]
<rocfig> ox0, is codeacademy better?
pawnbox has quit [Ping timeout: 250 seconds]
colegatron has quit [Ping timeout: 245 seconds]
<NaviFullroot> pointer can points to any s*t(char *p = (char*)&mystruct)
djbkd_ has quit [Ping timeout: 264 seconds]
scottschecter has joined #ruby
<NaviFullroot> I remember, back in a days, i've using syscall with no problems :(
<Ox0dea> NaviFullroot: From Ruby?
<NaviFullroot> 0x0dea: Ruby has some object with "raw" data and it size, it probably creates buffer(with zeros and other) and puts it into C syscall()
The_Phoenix has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
DonOtreply has quit [Quit: DonOtreply]
karapetyan has joined #ruby
last_staff has quit [Quit: last_staff]
<Ox0dea> NaviFullroot: #syscall tries to convert your Ruby string to a C string and bails when it, by definition, can't.
agent_white has joined #ruby
<shevy> hey is something happening on #syscall
Darmani has quit [Ping timeout: 252 seconds]
<shevy> I am there now
<NaviFullroot> 0x0dea: Yea, but why its uses C strings with \0 checks, why not void* with raw buffer
karapetyan has quit [Ping timeout: 260 seconds]
chussenot has quit [Quit: chussenot]
<NaviFullroot> shevy: I have issue with "in `syscall': string contains null byte (ArgumentError)"
choke has quit [Read error: Connection reset by peer]
DonOtreply has joined #ruby
<Ox0dea> NaviFullroot: I suppose it's either an oversight or else an "intentional pain point" to get you to use a more appropriate interface. :P
DonOtreply has quit [Client Quit]
<Ox0dea> As best I can tell, there's no way to convince #syscall to treat your Ruby string as a void *. :/
colegatron has joined #ruby
konr has joined #ruby
Asher has quit [Read error: Connection reset by peer]
howdoicomputer has joined #ruby
usershell has joined #ruby
Kallis has joined #ruby
choke has joined #ruby
al2o3-cr has joined #ruby
usershell has quit [Ping timeout: 255 seconds]
<NaviFullroot> here arg[i] = (VALUE)StringValueCStr(v); - mb change it to StringValuePtr(v):
duckpupp1 has joined #ruby
<NaviFullroot> ill check
<Ox0dea> NaviFullroot: Yeah, that'd avoid the null check.
terminalrecluse has joined #ruby
<Ox0dea> Instead of re-compiling your Ruby, why not just get a Fiddle::Function on ioctl()?
<Ox0dea> Fiddle doesn't support varargs, but maybe that won't matter for your purpose.
Makorak has joined #ruby
pawnbox has joined #ruby
Asher has joined #ruby
toretore has quit [Ping timeout: 245 seconds]
duckpupp1 has quit [Ping timeout: 256 seconds]
mhb has joined #ruby
Limix has quit [Quit: Limix]
Whooop has joined #ruby
aspire_ has joined #ruby
aspire_ has quit [Client Quit]
pawnbox has quit [Ping timeout: 246 seconds]
Makorak has quit [Ping timeout: 272 seconds]
yqt has joined #ruby
yardenbar has quit [Ping timeout: 255 seconds]
choke has quit [Read error: Connection reset by peer]
psyq has joined #ruby
aadam21 has joined #ruby
<NaviFullroot> 0x0dea: - yea thx, ill loook at fiddle - and StringValuePtr - works. But I dont rly understand why there is StringValueCStr?
rkazak has joined #ruby
<Ox0dea> NaviFullroot: For passing to functions expecting C strings, of course.
<NaviFullroot> 0x0dea: syscall doesn't expect C string at all
<Ox0dea> I suppose it does boil down to being a clarity of intent kind of thing.
rkazak has quit [Client Quit]
<Ox0dea> NaviFullroot: No, I'm talking about within the Ruby interpreter itself.
kies^ has joined #ruby
choke has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
<drbrain> NaviFullroot: IO#ioctl doesn't work? http://docs.ruby-lang.org/en/2.3.0/IO.html#method-i-ioctl
barajasfab has quit [Quit: Leaving]
loren has quit [Quit: Leaving]
rkazak has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lacuna_ has joined #ruby
rkazak has quit [Client Quit]
solocshaw has joined #ruby
cdg has quit [Remote host closed the connection]
einarj has joined #ruby
lacuna_ has quit [Remote host closed the connection]
<NaviFullroot> drbrain: well, need to check