apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<baweaver> google is great
<baweaver> you should use it
w0rldmaker has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
crueber has quit [Quit: Leaving.]
dru has quit [Ping timeout: 272 seconds]
IrishGringo has quit [Ping timeout: 256 seconds]
AlecTaylor has quit [Quit: Leaving]
juanpablo_ has quit [Ping timeout: 255 seconds]
DadoCe has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
sinkensabe has joined #ruby
baweaver has quit [Remote host closed the connection]
Rapier- has joined #ruby
ferr has joined #ruby
fgo has joined #ruby
einarj has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
bigmac has joined #ruby
hiyosi has joined #ruby
StoneCypherAW has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 255 seconds]
tmtwd has joined #ruby
enebo has joined #ruby
<shevy> do all gems become slower and slower the more gems are installed?
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
karmatr0n has quit [Ping timeout: 264 seconds]
blizzy is now known as _blizzy_
tunaCanBruh has joined #ruby
sinkensabe has joined #ruby
sinkensa_ has quit [Read error: Connection reset by peer]
<jhass> no
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IrishGringo has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
govg has quit [Quit: leaving]
sinkensabe has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
multi_io_ has joined #ruby
zzing has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
dru has joined #ruby
x1337807x has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
psy_ has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
jlast has joined #ruby
scripore has quit [Client Quit]
fryguy9 has quit [Quit: Leaving.]
djbkd_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
Lucky___ has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
multi_io has quit [Ping timeout: 245 seconds]
djbkd_ has joined #ruby
sinkensa_ has joined #ruby
PierreRambaud has quit [Ping timeout: 264 seconds]
<GaryOak_> how does it work?
triple_b has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
Lucky___ has joined #ruby
_djbkd has quit [Ping timeout: 255 seconds]
Spooner has quit [Remote host closed the connection]
<zenspider> jhass: sorry. I missed that.
<jhass> zenspider: no worries, we "solved" it after all
scripore has joined #ruby
<jhass> (still not sure how he ended up with that issue)
riotjones has quit [Ping timeout: 255 seconds]
zachrab has joined #ruby
<zenspider> what was it? still catching p
<zenspider> up
DadoCe has quit []
baweaver has joined #ruby
<jhass> well, first part neither of us knew how to run minitest in the bundler gem template :P
jlast has quit [Ping timeout: 265 seconds]
<jhass> second part was that his rake test produced no output
spider-mario has quit [Remote host closed the connection]
w0rldmaker has joined #ruby
<zenspider> plain rake should have worked. barring that, ruby -Ilib:test:. test/some_file.rb
<banisterfiend> zenspider what's up, how's seattle.rb treating u
<jhass> then I said it works for me with blabla and then he said it works that way and now I'm confused how he ended up with a bundler generated gem stub with minitest without doing -t minitest
PierreRambaud has joined #ruby
<zenspider> banisterfiend: pretty good. how're you?
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> jhass: *shrug*
<jhass> yeah, figured as much
<baweaver> How many people are around the Bay Area anyways?
<banisterfiend> bored...
<zenspider> if I had to guess, I'd say his test + the $stdin thing were fighting
<banisterfiend> bbs popeyes chicken
<GaryOak_> I wish I lived in Seattle, I tried to start a rb in Spokane, what a bummer :(
<zachrab> how come i cant DateTime.parse the following string '2012­12­02T00:30:08.276Z'?
<zenspider> because those aren't plain hyphens
<zenspider> Time.parse '2012\U+FFC2\U+FFAD12\U+FFC2\U+FFAD02T00:30:08.276Z'
<zachrab> zenspider: huh?
<zachrab> 2012-­12-­02T00:30:08.276Z
<baweaver> improper format
<zachrab> thats the actual string
<zenspider> yes. in unicode
<zenspider> I just copy & pasted right back at you. see above
jtdowney has joined #ruby
<zachrab> zenspider: i dont folow
w0rldmaker has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<zachrab> zenspider: whats the proper format?
DadoCe has joined #ruby
<zenspider> zachrab: ascii
<zenspider> for starters
<baweaver> >> Time.now.to_s
<eval-in> baweaver => "2015-02-28 00:40:39 +0000" (https://eval.in/294255)
w0rldmaker has joined #ruby
<zenspider> >> Time.parse '2012­12­02T00:30:08.276Z'
<zenspider> did I kill it?
<zenspider> >> Time.parse "2012-12-02T00:30:08.276Z"
<eval-in> zenspider => undefined method `parse' for Time:Class (NoMethodError) ... (https://eval.in/294257)
<baweaver> >> p 'I live'
<eval-in> baweaver => "I live" ... (https://eval.in/294258)
<zenspider> >> require "time"; Time.parse "2012-12-02T00:30:08.276Z"
<eval-in> zenspider => 2012-12-02 00:30:08 UTC (https://eval.in/294259)
blackmes1 has quit [Quit: WeeChat 1.1.1]
<baweaver> well that's derpy.
<zenspider> >> require "time"; Time.parse '2012­12­02T00:30:08.276Z'
<zenspider> huh. it's not even trying when I do the unicode one
Waheedi has quit [Quit: Waheedi]
<apeiros_> IMO Time.parse should not be used. favor strptime.
<zenspider> I'd at least expect ar error message
<zenspider> meh.
<zenspider> Time.parse is perfect in this case
danman has quit [Quit: danman]
sambao21 has quit [Quit: Computer has gone to sleep.]
<zenspider> zachrab: make sense?
cjim_ has joined #ruby
<zachrab> zenspider: ya
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> zenspider: eval-in still doesn't like unicode input I guess :/
sinkensa_ has quit [Ping timeout: 246 seconds]
<apeiros_> zenspider: I strongly disagree. and with this input, you can even use the proper method for it: Time.iso8601
<apeiros_> >> require 'time'; Time.iso8601 "2012-12-02T00:30:08.276Z"
<eval-in> apeiros_ => 2012-12-02 00:30:08 UTC (https://eval.in/294263)
jonr22 has joined #ruby
<apeiros_> when you happen to have invalid data, Time.parse might still try and return a Time to you. strptime/iso8601 won't
cjim has quit [Ping timeout: 245 seconds]
<apeiros_> fail early, fail loudly
rkmylo has joined #ruby
rkmylo has quit [Client Quit]
RegulationD has joined #ruby
ghr has joined #ruby
casadei has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<zachrab> zenspider: follow up question if i have a bunch of json objects with time how can i check with are in a certain timeframe?
<zenspider> I think that's between you and the json spec. dunno
jonr22 has quit [Ping timeout: 250 seconds]
<zachrab> zenspider:
Spami has joined #ruby
<zenspider> >> require "json"; 10.times.map { |n| Time.now + n }.to_json
<eval-in> zenspider => "[\"2015-02-28 00:54:52 +0000\",\"2015-02-28 00:54:53 +0000\",\"2015-02-28 00:54:54 +0000\",\"2015-02-28 00:54:55 +0000\",\"2015-02-28 00:54:56 +0000\",\"2015-02-28 00:54:57 +0000\",\"2015-02-28 00:54: ... (https://eval.in/294264)
<zachrab> zenspider: simpler question if i have a bunch of time objects how can i tell if within timeframe?
<zenspider> >> require "json"; JSON.parse 10.times.map { |n| Time.now + n }.to_json
<eval-in> zenspider => ["2015-02-28 00:54:58 +0000", "2015-02-28 00:54:59 +0000", "2015-02-28 00:55:00 +0000", "2015-02-28 00:55:01 +0000", "2015-02-28 00:55:02 +0000", "2015-02-28 00:55:03 +0000", "2015-02-28 00:55:04 +0000 ... (https://eval.in/294265)
<zenspider> hah.
RegulationD has quit [Ping timeout: 244 seconds]
<zenspider> >> Time.ancestors
<eval-in> zenspider => [Time, Comparable, Object, Kernel, BasicObject] (https://eval.in/294266)
ghr has quit [Ping timeout: 250 seconds]
<zenspider> >> Comparable.public_instance_methods(false).sort
<eval-in> zenspider => [:<, :<=, :==, :>, :>=, :between?] (https://eval.in/294267)
w0rldmaker has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
turtil has joined #ruby
cjim_ has quit [Quit: (null)]
<zenspider> interesting that the dumped time objects don't come back in properly... not surprising tho.
cjim has joined #ruby
<zenspider> >> require "yaml"; YAML.load 10.times.map { |n| Time.now + n }.to_yaml
<eval-in> zenspider => [2015-02-28 00:58:09 +0000, 2015-02-28 00:58:10 +0000, 2015-02-28 00:58:11 +0000, 2015-02-28 00:58:12 +0000, 2015-02-28 00:58:13 +0000, 2015-02-28 00:58:14 +0000, 2015-02-28 00:58:15 +0000, 2015-02-28 ... (https://eval.in/294268)
thumpba has joined #ruby
mistermocha has quit [Remote host closed the connection]
thumpba_ has quit [Ping timeout: 252 seconds]
zzing has joined #ruby
baweaver has quit [Remote host closed the connection]
cjim has quit [Client Quit]
thumpba has quit [Remote host closed the connection]
aphprentice has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
scripore has joined #ruby
<apeiros_> zachrab: time.between?(from, to)
<mikecmpbll> zachrab: see .cover?
Akuma has quit [Quit: So long sukkas!]
Asher has quit [Quit: Leaving.]
<mikecmpbll> heh
coinrookie has joined #ruby
neonalpine has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
GaryOak_ has quit [Remote host closed the connection]
_honning_ has joined #ruby
turtil has quit [Ping timeout: 244 seconds]
it0a has joined #ruby
pietr0 has quit [Quit: pietr0]
nii236 has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
jottr has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivier_bK has quit [Ping timeout: 272 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
zachrab has quit []
<shevy> now if we could have that for linux too!
chinmay_dd_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
it0a has quit [Ping timeout: 250 seconds]
zachrab has joined #ruby
baweaver has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
<jhass> what do you mean?
slawrence00 has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
<mikecmpbll> :)
coinrookie has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgo has joined #ruby
spacemud has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
maximski_ has joined #ruby
maximski has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 246 seconds]
maximski_ has quit [Max SendQ exceeded]
shellfu is now known as shellfu_afk
DadoCe has quit [Remote host closed the connection]
triple_b has joined #ruby
amclain has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
jtdowney has joined #ruby
maximski has joined #ruby
bradleyprice has joined #ruby
<shevy> jhass look at how many people update that!
<shevy> and it is written in ruby!!!
bricker has quit [Quit: leaving]
mikecmpbll has quit [Quit: ciao.]
<pipework> shevy: There is a project for lunix.
<pipework> I just think people tend not to use it because they already have passable package managers.
<jhass> well, for the people part I'm sure most distris are on par or actually excel that by far
towski_ has joined #ruby
jlast_ has joined #ruby
<shevy> but not in ruby!
Zai00 has quit [Quit: Zai00]
<pipework> jhass: I think most distros already have package management down.
<pipework> It's a matter of package availability in those distros. We don't need another package manager, we need fpm to be easier and nicer for everyone.
oki has joined #ruby
<jhass> s/fpm/pacman/, yeah, I agree
Lewix has joined #ruby
<jhass> (package managers, the little brothers of editors)
omosoj has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
chipotle has quit [Quit: cheerio]
<shevy> in ruby!
justin_pdx has joined #ruby
<omosoj> what are good ruby lib equivalents of curl? is curb the best?
mjuszczak has quit []
tcrypt has quit [Remote host closed the connection]
<shevy> not sure there is a full equivalent
<shevy> you may have to patchify through open-uri or stuff
<shevy> what else do you want to use?
<omosoj> huh? basically i want to work with the mediawiki api
<shevy> no I mean what else other than open-uri
<omosoj> the gem curb
<omosoj> there are a few others mentioned: Curl::Multi, Curb-fu, Typhoeus, ...
oki has quit [Ping timeout: 264 seconds]
<jhass> I like faraday as an abstraction layer upon all of these
<omosoj> doh, i forgot to use the ruby-toolbox: https://www.ruby-toolbox.com/categories/http_clients
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> then you can just swap them out when you have difficulties with one
crdpink2 has joined #ruby
enebo has quit [Quit: enebo]
maximski has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
<omosoj> hm, not even sure about how to make this decision.
zachrab has quit [Remote host closed the connection]
crdpink has quit [Ping timeout: 250 seconds]
<omosoj> will probably be a simple sinatra app
<jhass> unless you need to send a metric ton of requests, pick whatever you find has the nicest API
<omosoj> k
<jhass> if you do have to send a ton of requests (and that means at least several hundred/s), use typhoeus
<baweaver> I just default to Typhoeus
<baweaver> faster in most all cases.
dru has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
freerobby has joined #ruby
<omosoj> nah, probably 10 or 20 a day at most (at least to start); but i guess i'd like this tool to be accessible and effective for others if they want to use it
IrishGringo has quit [Ping timeout: 252 seconds]
roshanavand has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
tkuchiki has joined #ruby
NekiNoviNIck has joined #ruby
teddyp1cker has joined #ruby
chipotle has joined #ruby
<weaksauce> interesting. just a yield is not much of a performance penalty but explicitly passing in a block reference with &block_name is 4.41x slower
baweaver has quit [Remote host closed the connection]
<weaksauce> yield is 1.14x slower than the baseline of no block defined and no block used
juanpablo_ has quit [Ping timeout: 246 seconds]
robustus has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
deuterium has joined #ruby
jenrzzz has joined #ruby
evangeline__ has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
<shevy> hah
<shevy> ruby is so slow
<omosoj> think i'm gonna go with typhoeus. seems user friendly. thanks baweaver
<jhass> yeah, crystal has zero overhead for uncaptured blocks :P
<banisterfiend> jhass do u write crystal
<jhass> yap
sankaber has joined #ruby
<shevy> is crystal speedier than ruby?
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> sort of, it generates native code
<jhass> so it's naturally faster for many operations
mambo_ has joined #ruby
<jhass> also it gets all the LLVM optimizations
sinkensabe has quit [Ping timeout: 256 seconds]
sankaber has quit [Client Quit]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lordkryss has quit [Quit: Connection closed for inactivity]
_honning_ has quit [Ping timeout: 246 seconds]
mloveless has quit [Ping timeout: 240 seconds]
NekiNoviNIck has quit [Quit: Lost terminal]
jtdowney has joined #ruby
root4 has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
chipotle has quit [Quit: cheerio]
tunaCanBruh has joined #ruby
Megtastique has quit []
root4 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 246 seconds]
tus has quit []
it0a has joined #ruby
_djbkd has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
mjuszczak has quit [Client Quit]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
omosoj has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
chipotle has joined #ruby
tunaCanBruh has quit [Ping timeout: 272 seconds]
riotjones has joined #ruby
dru has joined #ruby
pontiki has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
swgillespie has joined #ruby
_djbkd has quit [Quit: My people need me...]
w0rldmaker has joined #ruby
ValicekB has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 250 seconds]
_honning_ has joined #ruby
jtdowney has joined #ruby
jbeeze has joined #ruby
JDiPierro has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
Tinfoilhat__ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
davejacobs has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
<sparr> Is there a way to tell rbenv to use a particular version without making changes to the local filesystem?
nii236 has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
nii236 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b has joined #ruby
AlecTaylor has joined #ruby
<AlecTaylor> hi
ferr has quit [Quit: WeeChat 1.1.1]
jonr22 has joined #ruby
towski_ has quit [Quit: Leaving...]
mjuszczak has joined #ruby
<AlecTaylor> How do I create a static variable? - Want to avoid my whole: `set_before = false; a = 5 unless set_before; set_before = true;`
bruno- has quit [Ping timeout: 250 seconds]
<jhass> a ||= 5
<jhass> shortcut to a || a = 5
chinmay_dd_ has quit [Ping timeout: 240 seconds]
Vitor has quit [Ping timeout: 265 seconds]
JDiPierro has quit [Remote host closed the connection]
arclitgold has quit [Ping timeout: 264 seconds]
jonr22 has quit [Ping timeout: 246 seconds]
agrinb has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
agrinb has joined #ruby
arclitgold has joined #ruby
tkuchiki has joined #ruby
<weaksauce> a ||= false is a typical way yeah. if a become nil though along the way it will be set to 5 again.
<AlecTaylor> jhass: Yes, however `a` will always be non nil in my logic. Just need it set to something else on first run
<jhass> still sounds like you want a ||= 5
<weaksauce> AlecTaylor you can set it in an initializer somewhere that gets run once during object creation
<weaksauce> can you provide some context with a gist AlecTaylor
ferr has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spacemud has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
veduardo has joined #ruby
tkuchiki has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
j0n3 has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
RegulationD has joined #ruby
ghr has joined #ruby
tcrypt has joined #ruby
mjuszczak has quit []
tkuchiki has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
<AlecTaylor> weaksauce: Emulating before_each in minitest
jtdowney has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has quit [Ping timeout: 240 seconds]
arclitgold has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
chipotle has quit [Quit: cheerio]
tcrypt has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
duncannz has joined #ruby
claptor has joined #ruby
mloveless has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
davedev24_ has joined #ruby
nii236 has quit [Ping timeout: 264 seconds]
gluten_hell has joined #ruby
veduardo has quit [Quit: WeeChat 0.4.2]
chinmay_dd_ has joined #ruby
sgambino has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 245 seconds]
jaequery has quit [Ping timeout: 252 seconds]
nii236 has joined #ruby
gluten_hell has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Remote host closed the connection]
maximski has quit []
apeiros_ has joined #ruby
jefus has quit [Ping timeout: 250 seconds]
n008f4g_ has quit [Ping timeout: 246 seconds]
vdamewood has joined #ruby
oo_ has quit [Remote host closed the connection]
deuterium has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
root4 has quit [Quit: WeeChat 0.3.8]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gr33n7007h has joined #ruby
arclitgold has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
it0a has quit [Ping timeout: 250 seconds]
crdpink has joined #ruby
Guest65 has quit [Ping timeout: 252 seconds]
crdpink2 has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
oki has joined #ruby
davejacobs has joined #ruby
zzing has joined #ruby
sevenseacat has joined #ruby
tkuchiki has joined #ruby
oki has quit [Ping timeout: 255 seconds]
davejacobs has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
chipotle has joined #ruby
phutchins has joined #ruby
Lewix has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
bruno- has joined #ruby
TheNet has joined #ruby
hiyosi has joined #ruby
<TheNet> how can I .sub ignoring case?
<gr33n7007h> TheNet: /i
<TheNet> ty
w0rldmaker has quit [Ping timeout: 256 seconds]
juanpablo_ has quit [Ping timeout: 252 seconds]
<gr33n7007h> >> "ruby".sub(/R/i, "*")
<eval-in> gr33n7007h => "*uby" (https://eval.in/294276)
bruno- has quit [Ping timeout: 240 seconds]
skj3gg has joined #ruby
jefus has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
tkuchiki has quit [Remote host closed the connection]
bulldawgden has joined #ruby
bulldawgden has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
bulldawgden has joined #ruby
bulldawgden has quit [Read error: Connection reset by peer]
mloveless has quit [Remote host closed the connection]
Guest123 has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
FooMunki has quit [Quit: FooMunki]
senera has joined #ruby
RegulationD has joined #ruby
Spami has joined #ruby
teddyp1cker has joined #ruby
arescorpio has quit [Excess Flood]
Spami has quit [Client Quit]
senera has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
gr33n7007h has quit [Quit: WeeChat 0.3.8]
RegulationD has quit [Ping timeout: 250 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
jaequery has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
mjuszczak has quit []
tkuchiki has joined #ruby
justin_pdx has joined #ruby
tunaCanBruh has joined #ruby
mistermo_ has joined #ruby
Tinfoilhat_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
omosoj has quit [Quit: leaving]
neanderslob has joined #ruby
it0a has joined #ruby
jaequery has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 246 seconds]
mistermo_ has quit [Ping timeout: 265 seconds]
w0rldmaker has joined #ruby
mjuszczak has joined #ruby
mistermocha has quit [Remote host closed the connection]
chinmay_dd_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
braincrash has quit [Quit: bye bye]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has quit [Client Quit]
adriancb has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
triple_b has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
FooMunki_ has joined #ruby
braincrash has joined #ruby
DadoCe has joined #ruby
rhg135 is now known as rhg135|limbo
martianixor has joined #ruby
jack_rabbit has joined #ruby
gr33n7007h has quit [Quit: WeeChat 0.3.8]
kalusn has joined #ruby
Megtastique has joined #ruby
kalusn has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
kalusn has joined #ruby
kalusn has quit [Client Quit]
zzing has quit [Ping timeout: 272 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
DadoCe has quit [Ping timeout: 272 seconds]
ghostpl_ has joined #ruby
lys has joined #ruby
TheNet has quit [Remote host closed the connection]
AlecTaylor has quit [Ping timeout: 252 seconds]
TheNet has joined #ruby
Hijiri has joined #ruby
psy_ has joined #ruby
jonr22 has joined #ruby
ghostpl_ has quit [Ping timeout: 256 seconds]
it0a has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 265 seconds]
nii236 has quit [Quit: leaving]
juanpablo_ has joined #ruby
Feyn has joined #ruby
fgo has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
w4pm has joined #ruby
Megtastique has quit []
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
allcentury has joined #ruby
EasyCo has joined #ruby
indianboy42 has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
oleo is now known as Guest43296
oleo__ has joined #ruby
ghr has joined #ruby
Guest43296 has quit [Ping timeout: 245 seconds]
crdpink2 has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f03lipe_ has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
jshultz has quit [Quit: Connection closed for inactivity]
lys has quit [Quit: lys]
Parker0 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
_honning_ has quit [Ping timeout: 246 seconds]
f03lipe has quit [Ping timeout: 244 seconds]
JoshGlzBrk has joined #ruby
jlast_ has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 245 seconds]
lampd1 has quit []
w0rldmaker has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
RegulationD has joined #ruby
amclain has quit [Quit: Leaving]
mistermocha has joined #ruby
millerti has joined #ruby
crdpink has joined #ruby
casadei has joined #ruby
<millerti> Is there an array literal notation for numbers?
sinkensabe has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
crdpink2 has quit [Ping timeout: 250 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
tiago has quit [Ping timeout: 244 seconds]
jaequery has joined #ruby
tmtwd has quit [Remote host closed the connection]
<arup_r> %d millerti
<millerti> arup_r: THanks!
babykosh has joined #ruby
ARCADIVS has joined #ruby
mistermocha has quit [Remote host closed the connection]
RegulationD has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
<millerti> arup_r: Is this new? I don't see it documented anywhere. %q, %w, and even %i in Ruby 2.0, but no %d.
<arup_r> Ok
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> Nah.. I misunderstood then
<arup_r> there is nothing
<arup_r> :p
<arup_r> What I said is format string
tiago has joined #ruby
<arup_r> >> "I want %d pens" % 5
<eval-in> arup_r => "I want 5 pens" (https://eval.in/294283)
yeticry has joined #ruby
jaequery has quit [Ping timeout: 246 seconds]
FooMunki_ is now known as FooMunki
RegulationD has quit [Ping timeout: 250 seconds]
<arup_r> why you want it ? millerti
<gr33n7007h> millerti: thats what i was gonna ask
oki has joined #ruby
<millerti> arup_r: So I can copy some numbers that were output from one program in a terminal into another program as an array. Yes, I could make the first program output in the Ruby array format, which is what I ultimately did.
The_Phoenix has joined #ruby
lemur has joined #ruby
davejacobs has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Limix has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
oki has quit [Ping timeout: 256 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davejacobs has quit [Ping timeout: 256 seconds]
rhg135|limbo is now known as rhg135|omniprese
rhg135|omniprese is now known as rhg135|limbo
sevvie has quit [Remote host closed the connection]
w4pm has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
bruno- has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
Rapier- has quit [Quit: (null)]
psy_ has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 250 seconds]
aamador has quit [Ping timeout: 252 seconds]
sevvie has joined #ruby
toothe has quit [Quit: leaving]
lxsameer has joined #ruby
lxsameer has joined #ruby
codeurge has joined #ruby
TheNet has quit [Quit: Leaving...]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
babykosh has quit [Quit: babykosh]
vdamewood has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
vdamewood has joined #ruby
QualityAddict has joined #ruby
c_nick has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
Lewix has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
<c_nick> I have a Web Server developed in Sinatra, When i try to query the localhost from my web browser the request times out this is not observed for all requests just a certain few
iwaffles has quit [Quit: iwaffles]
dh64 has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
thomas1 has joined #ruby
teddyp1cker has joined #ruby
<c_nick> i get Erro 502: Proxy Error
thomas1 has quit [Client Quit]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
teddyp1cker has quit [Ping timeout: 252 seconds]
c_nick has quit [Quit: Ex-Chat]
Lewix has joined #ruby
Lewix has joined #ruby
sankaber has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
yeticry has quit [Quit: leaving]
yeticry has joined #ruby
AlecTaylor has joined #ruby
DEA7TH has quit [Ping timeout: 245 seconds]
claptor has quit [Quit: this channel is bakas]
godd2 has joined #ruby
<godd2> 6
<godd2> evening all
yfeldblum has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
justin_pdx has joined #ruby
Axy has quit [Ping timeout: 272 seconds]
iamninja has quit [Read error: Connection reset by peer]
tokik has joined #ruby
iamninja has joined #ruby
teddyp1cker has joined #ruby
last_staff has joined #ruby
rorra has quit [Quit: rorra]
jonr22 has joined #ruby
oki has joined #ruby
w0rldmaker has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
oki has quit [Ping timeout: 244 seconds]
w0rldmaker has quit [Ping timeout: 255 seconds]
mostlybadfly has joined #ruby
jenrzzz has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
juanpablo_ has joined #ruby
jbeeze has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 250 seconds]
Tinfoilhat_ has quit [Read error: Connection reset by peer]
tokik has quit [Ping timeout: 245 seconds]
duncannz has quit [Ping timeout: 255 seconds]
Joufflu has joined #ruby
Arnie25 has quit [Ping timeout: 244 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
zorak8 has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
roadt has joined #ruby
hvxgr has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
Guest65 has joined #ruby
chinmay_dd has joined #ruby
iamayam has quit [Ping timeout: 264 seconds]
aerth_ has quit [Ping timeout: 250 seconds]
iamayam has joined #ruby
aerth_ has joined #ruby
skj3gg has joined #ruby
_1_jeus has joined #ruby
rixius has quit [Read error: Connection reset by peer]
rixius has joined #ruby
zorak8 has joined #ruby
razieliyo has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
olivierrr is now known as zz_olivierrr
davejacobs has joined #ruby
Lewix has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
yfeldblu_ has joined #ruby
Hirzu has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
quazimodo has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
lolmaus has joined #ruby
RegulationD has joined #ruby
godd2 has quit [Ping timeout: 244 seconds]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
hvxgr has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
_1_jeus has quit [Remote host closed the connection]
rixius has quit [Ping timeout: 255 seconds]
sivsushruth has quit [Ping timeout: 256 seconds]
iamayam has quit [Ping timeout: 264 seconds]
aphprentice has joined #ruby
sivsushruth has joined #ruby
aerth_ has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
rixius has joined #ruby
iamayam has joined #ruby
aerth_ has joined #ruby
QualityAddict has quit [Remote host closed the connection]
chinmay_dd has quit [Ping timeout: 245 seconds]
ndrei_ has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
triple_b has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
f03lipe_ has quit [Quit: Leaving]
scripore has joined #ruby
lemur has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
Morkel has joined #ruby
tunaCanBruh has joined #ruby
Zesty has joined #ruby
swgillespie has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
wicope has joined #ruby
swgillespie has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
nii236 has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Computer has gone to sleep.]
coderhs has joined #ruby
turtil has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
kiely is now known as kielybunny
chinmay_dd has joined #ruby
sameerynho has joined #ruby
IrishGringo has joined #ruby
hollywood has joined #ruby
r4j453v4n has joined #ruby
nii236 has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r4j453v4n has quit [Client Quit]
User458764 has joined #ruby
ndrei has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davejacobs has quit [Remote host closed the connection]
w0rldmaker has joined #ruby
agrinb has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
w0rldmaker has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
lampd1 has joined #ruby
chinmay_dd has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 265 seconds]
juanpablo_ has joined #ruby
gluten_hell has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
segmond has quit [Ping timeout: 246 seconds]
juanpablo_ has quit [Ping timeout: 245 seconds]
michael_mbp has quit [Excess Flood]
lxsameer_ has joined #ruby
michael_mbp has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
sameerynho has quit [Ping timeout: 252 seconds]
Waheedi has joined #ruby
Waheedi has quit [Client Quit]
sameerynho has joined #ruby
AlecTaylor has quit [Quit: Leaving]
Beoran__ has joined #ruby
segmond has joined #ruby
lxsameer_ has quit [Ping timeout: 246 seconds]
segv has quit [Ping timeout: 252 seconds]
Beoran_ has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
segv has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhg135|limbo is now known as rhg135|zzz
ponga has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Read error: No route to host]
sinkensabe has joined #ruby
riotjones has joined #ruby
Spami has joined #ruby
oki has joined #ruby
max96at|off is now known as max96at
maximski has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Remote host closed the connection]
skj3gg has joined #ruby
agrinb has joined #ruby
ptrrr has joined #ruby
ghr has joined #ruby
_ixti_ has joined #ruby
sandelius has joined #ruby
f03lipe has joined #ruby
chinmay_dd has joined #ruby
tvw has joined #ruby
RegulationD has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
davejacobs has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
thumpba has joined #ruby
Motoservo has quit [Quit: Motoservo]
peterhu has quit [Ping timeout: 246 seconds]
sivsushruth has quit [Remote host closed the connection]
plashchynski has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 272 seconds]
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
davejacobs has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
segv has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
thumpba has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
segv has joined #ruby
bruno- has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
quazimodo has joined #ruby
RegulationD has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
maximski has quit []
RegulationD has quit [Ping timeout: 244 seconds]
Hirzu has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
timonv has joined #ruby
Motoservo has joined #ruby
OrbitalKitten has joined #ruby
phutchins has joined #ruby
dru has quit [Ping timeout: 250 seconds]
lxsameer_ has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
lolmaus has quit [Remote host closed the connection]
fightback has joined #ruby
tunaCanBruh has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
lolmaus has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
segmond has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 265 seconds]
sameerynho has joined #ruby
mkaesz has quit [Remote host closed the connection]
The_Phoenix has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
agrinb has joined #ruby
lxsameer_ has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lampd1 has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 250 seconds]
goshdarnyou has quit [Quit: Connection closed for inactivity]
Joufflu has quit [Ping timeout: 256 seconds]
buub has joined #ruby
scripore has quit [Client Quit]
segmond has joined #ruby
<buub> Hello All! Can someone help me identifying what I might be doing wrong? gem install rails
<buub> Successfully installed rails-4.2.0
<buub> 1 gem installed
<buub> rails -v
<buub> -bash: rails: command not found
lampd1 has joined #ruby
User458764 has joined #ruby
<shmoon_> where are the class methods documented?
<shmoon_> for example I wan to know for MyClass.methods or even Object.methods return exactly
davedev24_ has quit [Remote host closed the connection]
<arup_r> shmoon_: there?
<shmoon_> yes
<arup_r> well..
<arup_r> >> "".method(:==).owner
<eval-in> arup_r => String (https://eval.in/294336)
<arup_r> this way
<arup_r> you find it
jonr22 has joined #ruby
jack_rabbit has joined #ruby
<shmoon_> arup_r: this way we get which class the method is actually defined in
<ponga> oops
<gr33n7007h> buub: are you using rvm?
jonr22 has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 240 seconds]
ponga has quit [Quit: Leaving...]
<buub> gr33n7007h: I am trying to set it up without rvm or bundler...Just trying it as a 'plain' installation
mkaesz has quit [Remote host closed the connection]
<buub> I am using RHEL 6 as an OS btw
mkaesz has joined #ruby
juanpablo_ has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
juanpablo_ has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
<gr33n7007h> buub: nvm, read the question wrong, keep asking in here till someone knows :(
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
segmond has quit [Ping timeout: 265 seconds]
<buub> gr33n7007h: thanks!
quazimodo has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
arup_r has quit [Ping timeout: 245 seconds]
User458764 has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 265 seconds]
kyb3r_ has quit [Quit: Leaving]
User458764 has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
segmond has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jack_rabbit has quit [Ping timeout: 246 seconds]
wicope has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
spider-mario has joined #ruby
agrinb has joined #ruby
bradleyprice has quit [Remote host closed the connection]
arup_r has joined #ruby
<arup_r> shmoon_: yes
roshanavand has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
tvw has quit [Remote host closed the connection]
ytti has joined #ruby
<ytti> hello, i need some minitest clue
evangeline__ has joined #ruby
AlecTaylor has joined #ruby
<ytti> i'm testing parser, and i have array of various parsed results
<ytti> i want to run same test on each element, but i also want reporting on which file did it exactly fail
lampd1 has quit [Remote host closed the connection]
<ytti> so consider this:
<ytti> it 'produces correct headers' do
<ytti> @parsed.each do |name, packets|
<ytti> packets.each_with_index do |packet, index|
<ytti> packet.header.join.must_equal @header[name][index]
<ytti> end
<ytti> end
<ytti> end
lampd1 has joined #ruby
<ytti> it works, but whne there is error, I don't really know which item failed
apeiros_ has quit [Remote host closed the connection]
<ytti> what is canonical way to run test for multiple inputs?
apeiros_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
allcentury has joined #ruby
lampd1 has quit [Remote host closed the connection]
lampd1 has joined #ruby
User458764 has joined #ruby
* lampd1 wonders if you can set pry breakpoints within minitest to see where it's failing
monod has joined #ruby
davejacobs has joined #ruby
thumpba has joined #ruby
nfk has joined #ruby
<ytti> i also wouldn't want to test to stop, just because of failure
<ytti> i'd just want to know where the failure is
davejacobs has quit [Ping timeout: 244 seconds]
fightback has quit [Ping timeout: 250 seconds]
thumpba has quit [Ping timeout: 264 seconds]
ponga has joined #ruby
evangeline_ has joined #ruby
evangeline__ has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
<ytti> packet.header.join.must_equal @header[name][index], "#{name} at line #{index+1}"
<ytti> ok this solves my first problem
<ytti> it passes the second argument to reporter output on failure
<ytti> but second problem, how to continue running tests, after failures
ghr has joined #ruby
chishiki has quit [Quit: WeeChat 1.1.1]
OrbitalKitten has joined #ruby
RegulationD has joined #ruby
chishiki has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
maasha has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
davedev24_ has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
<maasha> Hi, I have a huge stack of strings, where I want to remove duplicates. Using a hash slows down over time because of GC. I have used the google_hash, where GC is decoupled, gem successfully, but google_hash tends to break during install on different systems. Alternatives?
Regulati_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 245 seconds]
The_Phoenix has joined #ruby
AlecTaylor has quit [Ping timeout: 240 seconds]
Regulati_ has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
Juanchito has joined #ruby
lampd1 has quit [Remote host closed the connection]
lampd1 has joined #ruby
lampd1 has quit [Remote host closed the connection]
fgo has joined #ruby
lampd1 has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 255 seconds]
tunaCanBruh has joined #ruby
Waheedi has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Hirzu has joined #ruby
Takle has joined #ruby
havenwood has joined #ruby
blueOxigen has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hirzu has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
indianboy42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
indianboy42 has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
<hanmac> maasha you might use md5 or similar to check first before doing == ... have you tried to call "group_by" or something like that for using hash?
agrinb has quit [Ping timeout: 250 seconds]
hiyosi has joined #ruby
<maasha> hanmac: so this is several GB of data and it will not fit in memory - a hash of uniques will though. Google hash was pretty good (includes a fast hashing method).
User458764 has joined #ruby
parduse is now known as Guest10756
chipotle has quit [Quit: cheerio]
Guest10756 has quit [Ping timeout: 245 seconds]
pardusf has joined #ruby
j416 has joined #ruby
allcentury has quit [Read error: No route to host]
allcentury has joined #ruby
j416 has quit [Client Quit]
arup_r has quit [Ping timeout: 265 seconds]
j416 has joined #ruby
sandelius has joined #ruby
<maasha> Or I should find out why Google Hash fails to compile: sparse_ruby_to_double.cpp:251:45: error: ‘rb_dbl2big’ was not declared in this scope make: *** [sparse_ruby_to_double.o] Error 1
jonr22 has joined #ruby
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
<hanmac> maasha: what ruby do you use? maybe the gem is just broken or outdated?
<maasha> hanmac: it works for MRI on mac and linux. But I was in fact trying to get it installed with Rubinius :o)
tkuchiki has joined #ruby
<hanmac> hm yeah that might be the problem ... which means they need to be fixed to work together
f03lipe has quit [Ping timeout: 252 seconds]
jonr22 has quit [Ping timeout: 255 seconds]
<gr33n7007h> can tk only display gif's ?
lordkryss has joined #ruby
<maasha> hanmac: I asked at #Rubinius, but noone is at home. Also, I filed an issue with ruby Google Hash gem
teddyp1cker has quit [Remote host closed the connection]
f03lipe has joined #ruby
<maasha> hanmac: and using Google Hash instead of Ruby's Hash reduces run time from 12 min to 1 min - I like that.
tkuchiki has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
Morkel has joined #ruby
tkuchiki has joined #ruby
juanpablo_ has joined #ruby
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
hgl has quit [Ping timeout: 255 seconds]
OrbitalKitten has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
hgl has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
otisZart has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
dcarmich has joined #ruby
neanderslob has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
Pupeno has quit [Quit: Leaving...]
AlecTaylor has joined #ruby
AlecTaylor has quit [Client Quit]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 245 seconds]
indianboy42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
indianboy42 has joined #ruby
agrinb has joined #ruby
Morkel has quit [Quit: Morkel]
Hirzu has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
RDash has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
bruno- has joined #ruby
Feyn has quit [Quit: Leaving]
fgo has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
monod has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 265 seconds]
spider-mario has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
maximski has joined #ruby
RDash has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
kaiZen has joined #ruby
Hirzu has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
kirun has joined #ruby
DadoCe has joined #ruby
<shevy> ruby is slow
<shevy> we must accept it
aswen has joined #ruby
shum has joined #ruby
davejacobs has joined #ruby
thumpba has joined #ruby
aryaching has joined #ruby
<jhass> I already did :P
<jhass> ruby is also fast though
<jhass> it's really both
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
DadoCe has quit [Ping timeout: 264 seconds]
Deele has joined #ruby
Morkel has quit [Quit: Morkel]
millerti has joined #ruby
claptor has joined #ruby
davejacobs has quit [Ping timeout: 250 seconds]
mostlybadfly has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
<maasha> I have spend the last couple of weeks with a programming proting a ruby prototype to C++
<maasha> The prototype was witten in a couple of days ...
Jetchisel has quit [Read error: Connection reset by peer]
<maasha> The C++ version is 50 times faster.
<maasha> I guess that is symptomatic.
<maasha> err* with a programmer
<jhass> now you know why I have high hopes for Crystal :P
Morkel has quit [Client Quit]
<ponga> maasha: symptomatic of what
<shevy> crystal is also slow
<shevy> we must accept that as well
segmond has quit [Ping timeout: 246 seconds]
<jhass> shevy: uhm, no it isn't
<maasha> ponga: the state of things -> run time vs development type
<maasha> *time
* maasha amputates extra thumbs
Jetchisel has joined #ruby
<gr33n7007h> What I'm trying to do is something like "programname arg &" in shell, what should I use for ruby Thread.new, Thread.fork, Process.fork, Process.spawn then kill all pids https://gist.github.com/anonymous/67fc583315e4e75e144f # line 28?
martianixor has quit [Quit: Leaving]
<ponga> how fast if crystal?
rorra has joined #ruby
<havenwood> gr33n7007h: Sounds like you might want Kernel#exec: http://ruby-doc.org/core-2.2.0/Kernel.html#method-i-exec
<gr33n7007h> havenwood: thanks let me have a look, cheers
<ponga> shevy: i was thinking, if you wanted both highlevel lang's development time and run time too, wouldn't you be using JS V8
<shevy> ack
Soda has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
crazydiamond has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
teddyp1cker has joined #ruby
segmond has joined #ruby
fightback has joined #ruby
RegulationD has joined #ruby
fightback has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 272 seconds]
Regulati_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
pardusf has quit []
tunaCanBruh has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
<gr33n7007h> havenwood: Kernel.spawn works Kernel.exec I have to close
bloudermilk has joined #ruby
Regulati_ has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Remote host closed the connection]
enebo has quit [Client Quit]
Parker0 has joined #ruby
rodfersou has joined #ruby
enebo has joined #ruby
tunaCanBruh has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
agrinb has joined #ruby
monod has joined #ruby
<havenwood> gr33n7007h: ahh, i see. nice.
RegulationD has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
jenrzzz has quit [Ping timeout: 272 seconds]
agrinb has quit [Ping timeout: 256 seconds]
segmond has joined #ruby
<gr33n7007h> :)
psy_ has quit [Ping timeout: 272 seconds]
codeurge has joined #ruby
OrbitalKitten has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
lys has joined #ruby
spider-mario has joined #ruby
kyb3r_ has joined #ruby
bloudermilk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
Waheedi has quit [Quit: Waheedi]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
aryaching_ has joined #ruby
mkaesz has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
zorak8 has joined #ruby
segmond has quit [Ping timeout: 244 seconds]
jonr22 has joined #ruby
Spooner has joined #ruby
freerobby has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
agrinb has joined #ruby
maximski has quit []
juanpablo_ has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
agrinb has quit [Ping timeout: 265 seconds]
juanpablo_ has quit [Ping timeout: 250 seconds]
segmond has joined #ruby
rhllor has joined #ruby
Zai00 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> long live ruby!
fgo has joined #ruby
dblessing has joined #ruby
nettoweb has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
<shmoon_> care you sure?
<shmoon_> are*
aamador has joined #ruby
f03lipe has quit [Quit: Leaving]
fgo has quit [Ping timeout: 256 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
phutchins has joined #ruby
kojijeovo has joined #ruby
<shevy> I care sure!
sandelius has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
Kilo`byte has quit [Ping timeout: 255 seconds]
plashchynski has joined #ruby
millerti has joined #ruby
kojijeovo has quit [Quit: Lost terminal]
lampd1 has quit [Remote host closed the connection]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
Crisix has joined #ruby
Kilo`byte has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Waheedi has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tier has joined #ruby
scripore has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
Hirzu has joined #ruby
Zesty has joined #ruby
lampd1 has joined #ruby
<Zesty> If i have a parent class Device with a method like: `def self.all; ALL_DEVICES; end;` and I do class Bluetooth < Device, and inside bluetooth I define ALL_DEVICES = [1, 2, 3].. is that possible? I have lots of devices and its always the same for Bluetooth.all or X.all or Y.all
v0n has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 250 seconds]
plashchynski has quit [Quit: plashchynski]
bruno-_ has joined #ruby
sinkensabe has joined #ruby
<shmoon_> is there some nice article on binding?
<shmoon_> unable to understand its usage//application
bruno- has quit [Ping timeout: 245 seconds]
rhllor has quit [Read error: Connection reset by peer]
DaniG2k has joined #ruby
davejacobs has joined #ruby
rhllor has joined #ruby
thumpba has joined #ruby
Hirzu has quit [Ping timeout: 246 seconds]
<jhass> shmoon_: its basically the object representation of a scope, you can pass to eval for example
sinkensabe has quit [Ping timeout: 265 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
<jhass> useful for templating languages and also makes things like pry-stack_explorer possible
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
davejacobs has quit [Ping timeout: 256 seconds]
<jhass> Zesty: easy enough to try out. However if all the method does is returning the constant, I'd either access the constant directly (self.class::ALL_DEVICES to get the one defined in the child at the parent) or define def self.all; [1,2,3; end; in all childs, skipping the indirection over the constant
User458764 has joined #ruby
thumpba has quit [Ping timeout: 252 seconds]
plashchynski has joined #ruby
enebo has joined #ruby
sameerynho has quit [Quit: Leaving]
<Zesty> Ah! self.class::ALL_DEVICES
<Zesty> That makes sense, duh....
Crisix has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<Zesty> thanks :)
agrinb has joined #ruby
enebo has quit [Client Quit]
fightback has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
plashchynski has quit [Quit: plashchynski]
<shevy> shmoon_ I am unable to understand many usage examples of some constructs in ruby too :)
Arnie25 has joined #ruby
plashchynski has joined #ruby
michael_mbp has quit [Excess Flood]
lys has quit [Quit: lys]
michael_mbp has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
allcentury has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
flip_digits has joined #ruby
michael_mbp has quit [Excess Flood]
RegulationD has quit [Ping timeout: 245 seconds]
michael_mbp has joined #ruby
<shmoon_> jhass: ya got it
<shmoon_> shevy: really?
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
v0n has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
mjuszczak has joined #ruby
fgo has joined #ruby
jottr has joined #ruby
skj3gg has joined #ruby
mjuszcza_ has joined #ruby
rhllor has quit [Quit: rhllor]
<shevy> yeah
<shevy> like @@foo
<shevy> and Proc.new vs. lambda
OrbitalKitten has joined #ruby
<shevy> I also dislike instance_eval vs. class_eval - I think there is too much micro-managing
fightback has quit [Ping timeout: 252 seconds]
kallisti5 has joined #ruby
<kallisti5> how do I convert a string into a :string ?
vmatiyko has joined #ruby
<kallisti5> aka. i want erb :bob to be erb param[:page] where page is bob -> :bob
mjuszczak has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
<kallisti5> (i'm going to filter the pages, keeping the example simple, working in sinatra)
ghr has joined #ruby
<shevy> .to_sym
<kallisti5> shevy: thanks!
oleo__ has quit [Quit: Verlassend]
<jhass> kallisti5: don't do that though
livingstn has joined #ruby
User458764 has joined #ruby
<jhass> kallisti5: make sure erb isn't fine with taking a string first
razieliyo has joined #ruby
oleo has joined #ruby
<jhass> param[:page] is user data and only Ruby 2.2 garbage collects symbols, so this is an easy DoS vector
RegulationD has joined #ruby
quazimodo has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
livingstn has quit [Ping timeout: 272 seconds]
dcarmich has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
skj3gg has quit [Quit: ZZZzzz…]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has quit []
RegulationD has joined #ruby
odigity has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
bluOxigen has joined #ruby
oki has quit [Ping timeout: 250 seconds]
chinmay_dd has quit [Ping timeout: 252 seconds]
blueOxigen has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
skj3gg has joined #ruby
enebo has joined #ruby
riotjones has joined #ruby
enebo has quit [Quit: enebo]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
odigity has joined #ruby
jonr22 has joined #ruby
kaiZen has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
oki has joined #ruby
slawrence00 has joined #ruby
sevenseacat has quit [Remote host closed the connection]
gluten_hell has quit [Quit: Computer has gone to sleep.]
thumpba has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
pontiki has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
oki has quit [Ping timeout: 245 seconds]
juanpablo_ has joined #ruby
bigmac has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
The_Phoenix has joined #ruby
agrinb has quit [Remote host closed the connection]
Czupa has joined #ruby
Asher has joined #ruby
agrinb has joined #ruby
doodlehaus has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
vmatiyko has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 250 seconds]
realDAB has joined #ruby
Megtastique has joined #ruby
nemaonenis has joined #ruby
mjuszcza_ has quit []
centrx has joined #ruby
charliesome has quit [Quit: zzz]
chinmay_dd has joined #ruby
Limix has joined #ruby
davedev24_ has quit [Remote host closed the connection]
livingstn has joined #ruby
tunaCanBruh has joined #ruby
nettoweb has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
tus has joined #ruby
tmtwd has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
_Andres has joined #ruby
davedev24_ has joined #ruby
w0rldmaker has joined #ruby
Megtastique has quit []
allcentury has joined #ruby
buub has quit [Ping timeout: 250 seconds]
Megtastique has joined #ruby
Hrendalf has joined #ruby
Lewix has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
crazydiamond has joined #ruby
w0rldmaker has quit [Ping timeout: 250 seconds]
Hrendalf has quit [Quit: Leaving]
Nahra has quit [Remote host closed the connection]
Hrendalf has joined #ruby
nemaonenis has quit [Quit: leaving]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gsd has joined #ruby
ducklobster has quit [Read error: Connection reset by peer]
stokadovo has joined #ruby
fantazo has joined #ruby
realDAB has quit [Quit: realDAB]
CustosLimen has joined #ruby
gheegh has joined #ruby
godd2 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Quit: WeeChat 1.2-dev]
jottr has joined #ruby
Lewix has joined #ruby
oki has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazydiamond_ has joined #ruby
crazydiamond has quit [Ping timeout: 252 seconds]
oki has quit [Ping timeout: 250 seconds]
Sirupsen has joined #ruby
DrShoggoth has joined #ruby
Takle has quit [Remote host closed the connection]
rhllor has joined #ruby
<shadeslayer> hi there
<shadeslayer> anyone have an idea how I can match unicode characters with String.scan ?
<shadeslayer> I was trying to do something like : .scan(/(\w{2})(\d{4})(\d{2})(\d{6})([[:word:]]{50})([[:word:]]{150})/)
<shadeslayer> but it doesn't seem to work
_honning_ has joined #ruby
<jhass> shadeslayer: can you put an example up on rubular.com?
<godd2> shadeslayer \w is only good for 0-9a-zA-Z
<shadeslayer> doing that
<shadeslayer> godd2: yep
<shadeslayer> jhass: http://rubular.com/r/YzLXktOKG9
<jhass> godd2: and _ ;)
<godd2> jhass how could I forget :P
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has quit [Remote host closed the connection]
<jhass> shadeslayer: your regex does not allow for any whitespace
<shadeslayer> jhass: that's fine
mloveless has joined #ruby
<godd2> shadeslayer yea you're looking for exactly 50 unicode word characters followed by 150 unicode characters
<shadeslayer> godd2: exactly
greenbagels has joined #ruby
<godd2> " " is not a [[:word:]] character
<shadeslayer> the thing is, the data could have less than 50 chars
<jhass> shadeslayer: {50} is exactly 50 times, not up to
<shadeslayer> or less than 150 chars
<shadeslayer> jhass: ah ok
<godd2> {,50} for 0 to 50
User458764 has joined #ruby
Takle has joined #ruby
mjuszczak has joined #ruby
ptrrr has quit [Quit: ptrrr]
<shadeslayer> I don't get the last match now, hm
<godd2> and of course {,150} for 0 to 150. though if there's a minimum, then {5,50} for 5 to 50 or whatever the minimum is
<jhass> that's because of the whitespace
davedev24_ has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Leaving...]
davedev24_ has joined #ruby
ponga has joined #ruby
<shadeslayer> hm
<shadeslayer> I could just match the next 150 chars
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
starless has joined #ruby
<jhass> depends on what you want ;)
<jhass> \s+ to consume any whitespace in between
<shadeslayer> jhass: the thing is, the last 200 characters are of variable length
<godd2> rule 1 of regex: know your data. if you KNOW you're only gonna have important non-whitespace info after those numbers, then just look for \S
<rhllor> perl ruby and javascript all use the / / syntax for regexps. What others do that?
<jhass> shadeslayer: .*{150} makes no sense though
<shadeslayer> godd2: right, but I need to split the data into 2 separate strings of length 50 and 150
stokadovo has quit [Quit: leaving]
<jhass> * is just a shortcut for {0,}, + is just a shortcut for {1,}
Czupa has quit [Quit: Wychodzi]
<godd2> shadeslayer try http://rubular.com/r/bmqRKfQIKO
chinmay_dd has quit [Ping timeout: 264 seconds]
<jhass> .+ to make it required
sankaber has joined #ruby
mjuszczak has quit []
<shadeslayer> godd2: fails on unicode data
<jhass> Ó is not unicode? ;)
_honning_ has quit [Ping timeout: 240 seconds]
<jhass> new to me that it's in ASCII
<godd2> shadeslayer are you using the same version of Ruby that you set on Rubular?
<shadeslayer> ah, I have 2.1.2
<shadeslayer> 2.1.2p95
<jhass> you should upgrade, but that should make no difference
<shadeslayer> hmm
<shadeslayer> http://cl.ly/ZzXr in case you want all of the data
<centrx> it's pronounced data
<godd2> One is my name. The other is not.
<centrx> !
joonty has joined #ruby
joonty has quit [Client Quit]
iamninja has quit [Read error: Connection reset by peer]
<shadeslayer> jhass: godd2 https://paste.kde.org/pr6gvsaq8 < my parser
iamninja has joined #ruby
<jhass> shadeslayer: {150} exactly? are you sure that works?
oleo is now known as Guest52603
<shadeslayer> oh it doesn't work :)
oleo__ has joined #ruby
<shadeslayer> ah yeah
<shadeslayer> just a second
<shadeslayer> jhass: well, print will match empty strings too
<shadeslayer> still goes "`scan': invalid byte sequence in UTF-8 (ArgumentError)"
oki has joined #ruby
<jhass> the example you posted is 91 chars with the whitespace, 46 without
<jhass> 110 in total
<jhass> that can never extract exactly 150 chars
<shadeslayer> right, so I changed it to allow less than a 150 chars
Guest52603 has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
it0a has joined #ruby
havenn has joined #ruby
RegulationD has joined #ruby
<jhass> the ArgumentError indicates that your source file is not (valid) UTF-8
havenwood has quit [Ping timeout: 245 seconds]
DEA7TH has joined #ruby
<jhass> file on the download you gave returns DATCAND_PA_1203.DAT: ISO-8859 text
<shadeslayer> same here
<godd2> shadeslayer I have a different solution to your problem. My suggestion is to not use a single regex for the whole tring
<godd2> string*
<shadeslayer> split by space?
<godd2> since the data is character aligned by field
<godd2> just deal with it in chunks
scripore has quit [Quit: This computer has gone to sleep]
Megtastique has quit []
_honning_ has joined #ruby
<arup_r> shevy: I stepped over a cat's tail.... sorry
<godd2> so like s[0..13] is the first two letters and those nubmers, s[14..64].rstrip (gets rid of trailing whitespace) is the next field
<godd2> and s[65..-1].rstrip is the last one
RegulationD has quit [Ping timeout: 256 seconds]
Regulati_ has joined #ruby
<godd2> I may be off by one on the 64/65 bit
<shadeslayer> this works
<shadeslayer> but doesn't on my machine
<shadeslayer> so looks like a format issue?
crazydiamond_ has quit [Read error: Connection reset by peer]
Deele has quit [Ping timeout: 256 seconds]
<jhass> you simply read the file as UTF-8 while it's ISO 8859-something
<jhass> read it in the correct encoding
<shadeslayer> oh ok
oleo__ has quit [Quit: Verlassend]
<shadeslayer> jhass: isn't there a way to auto detect file encoding?
<shadeslayer> and then use that to read it
<jhass> no really reliable one
<jhass> the file tool I used above is already quite sophisticated in these matters
<jhass> yet it couldn't tell the exact subtype of ISO 8859 used
Regulati_ has quit [Ping timeout: 245 seconds]
oleo__ has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Megtastique has joined #ruby
RegulationD has joined #ruby
w0rldmaker has joined #ruby
Deele has joined #ruby
Channel6 has joined #ruby
Lewix has quit [Remote host closed the connection]
casadei has joined #ruby
jonr22 has joined #ruby
<shadeslayer> jhass: iconv to the rescue then!
<jhass> shadeslayer: I'd just try reading the file in each of the ISO 8859 subtypes
<jhass> if your source really doesn't tell you its encoding
thumpba has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
realDAB has joined #ruby
khairul has joined #ruby
w0rldmaker has quit [Ping timeout: 256 seconds]
khairul is now known as Khairul
codeurge has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
thumpba has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
developez has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
phutchins has joined #ruby
vozcelik has joined #ruby
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lkba has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
timonv has joined #ruby
frobs has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
prasselpikachu has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
frobs has quit [Client Quit]
prasselpikachu has joined #ruby
tvon has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
<shevy> how does crystal handle encoding stuff?
<jhass> for now everything is UTF-8
<shevy> arup_r I saw a video of monkeys the other day; there were HORDES of them, really scary. if they organize then they might take over india, just as in the ancient movie planet of the apes
<centrx> your data is shipped to some meth addicts who like to work work work
<shevy> centrx your forecasts are always so gloomy :(
<shevy> centrx how do you see PHP in the future?
<centrx> PHP will be re-popularized by its use on the Dark Web
<arup_r> shevy: Well.. I didn't throw the cat ....... I kept it beneath a tree..
<wasamasa> lol
<shevy> arup_r don't you eat cats anyway or is that china
dj_zubehoer has joined #ruby
<shevy> I keep on trying how to make cats become vegetarians but they don't want to :(
lemur has joined #ruby
realDAB has quit [Quit: realDAB]
vdamewood has joined #ruby
<wasamasa> just make them hungry enough and they'll eat pasta and fried potatoes
tvon has joined #ruby
<developez> lol
tunaCanBruh has joined #ruby
<developez> or maybe cat also
<developez> that would a little weird though
IrishGringo has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
<arup_r> lol
Yzguy has joined #ruby
<shevy> hmm
<shevy> it's true, they kinda eat more stuff than meat
tunaCanBruh has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
* wasamasa once let some non-meaty food fall down accidentally
<wasamasa> I was surprised they ate it up despite all the spices
sivsushruth has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
sivsushruth has joined #ruby
nettoweb has quit [Client Quit]
IrishGringo has joined #ruby
it0a has quit [Ping timeout: 272 seconds]
panga has joined #ruby
skj3gg has quit [Quit: welp, see you later.]
ponga has quit []
panga is now known as ponga
doodlehaus has quit [Remote host closed the connection]
tvon has quit [Quit: leaving]
tvon has joined #ruby
w0rldmaker has joined #ruby
<shevy> ponga hey you almost had as nick panda
<ponga> what's up
<ponga> um yeah
it0a has joined #ruby
<shevy> not much here, I am continuing on another rewrite
AlexRussia has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Joufflu has joined #ruby
<shevy> when I am done here... I think I have only 3 rewrites left!
<ponga> rewrite?
<ponga> shevy: ruby => C ?
<shevy> just ruby projects still
<ponga> oh shevy tell you what
<shevy> I don't want to learn C as long as I have old ruby stuff unfinished
Joufflu_ has joined #ruby
<shevy> I want the ruby-related parts be in the best possible shape
<ponga> my dad learnt programming when he was in military academy, and he was like "there was this lang called fortran i learned..."
tcrypt has joined #ruby
<ponga> and im like "dad some people still use that"
<shevy> besides this rewrite is the most important one, I use it to compile stuff; for instance, issuing "gnome_update" will update all gnome projects automatically
<shevy> hehe
<ponga> and he's like "so they are lying about recent IT development and innovation"
<shevy> fortran
Yzguy has quit [Quit: I'm sleeping, go away.]
<shevy> why didn't he learn C in the academy!
<ponga> and "oh there was Basic i used to learn too" and im like "yes people still use that for MS"
<ponga> and he's like WTF
<shevy> haha
<ponga> shevy: dunno
<ponga> basic and fortran, and cobol
nateberkopec has joined #ruby
<shevy> cobol!
michael_mbp has quit [Excess Flood]
<shevy> a programming language that sounds like an atom
<ponga> how about ruby then
michael_mbp has joined #ruby
<shevy> in german, the name Cobalt is Kobalt, which is very similar to Kobold; it was said that they haunted the old mines http://en.wikipedia.org/wiki/Kobold
<shevy> hmm this is aluminium something
Joufflu has quit [Ping timeout: 265 seconds]
<arup_r> ponga: o/
<shevy> http://en.wikipedia.org/wiki/Ruby "aluminium oxide with chromium" Al2O3:Cr
justin_pdx has quit [Quit: justin_pdx]
davejacobs has joined #ruby
<shevy> a natural ruby -> http://goo.gl/qGsIh5
<ponga> shevy: now my dad thinks IT industry hasn't progressed a bit lol
<ponga> hey arup_r
<shevy> ponga he is right!
wallerdev has joined #ruby
<shevy> computers just got more powerful and smaller
<ponga> shevy: when could we have 'code like ruby,python and perform like C/Fortran '
<ponga> then i can finally tell my dad IT folks did their job
mjuszczak has joined #ruby
<ponga> ;p
evangeline_ has quit [Ping timeout: 255 seconds]
<jhass> it's called "lisp", no?
Waheedi has quit [Quit: Waheedi]
<wasamasa> well, not quite
<wasamasa> I've yet to see a lisp dialect with syntax as complex as ruby
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
davejacobs has quit [Ping timeout: 272 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<ponga> my java friend wouldn't agree to that
<wasamasa> the other problem is that lisp dialects are usually subject to garbage collection
<wasamasa> so, yes, you can come sufficiently close to C-like performance, but you're not quite there
<wasamasa> especially not when it comes to RAM usage
<ponga> im not really sure but when it comes down to performance matter, isn't it more about mathematics
<wasamasa> not necessarily
<jhass> depends on the application, but usually what slows you down is memory access/allocations
<wasamasa> ignoring how your CPU works can do wonders
<jhass> so IO is more often the bottleneck than processing power is
<wasamasa> like, when you ignore the fact that CPUs these days have caches and branch prediction to make use of these caches
sivsushruth has quit [Ping timeout: 245 seconds]
<wasamasa> and write code that trashes these systems
<wasamasa> it can get substantially slower
kaiZen has joined #ruby
<wasamasa> all that's necessary for that is using a linked list over an array
chinmay_dd has quit [Ping timeout: 246 seconds]
Takle has quit [Remote host closed the connection]
mjuszczak has quit []
sivsushruth has joined #ruby
<jhass> that said, mathematics can help in finding a faster algorithm, not only because it consumes less cpu cylces but also there might be a way to do the calculation with less memory
<wasamasa> oh sure
<jhass> it's just not what people think about when they say "make it faster through better mathematics" ;)
<wasamasa> these are pretty much the only aspect I've got to think of when writing ruby
<jhass> usually
rhllor has quit [Quit: rhllor]
<wasamasa> like, simplifying a loop and replace it with a few ones that collect results into a hash
<wasamasa> which makes my code finish in time and easier to reason about
tmtwd_ has joined #ruby
<ponga> oh it was vague and rather dumb question
<ponga> thanks for answers
allcentury has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
Khairul has quit [Remote host closed the connection]
michael_mbp has joined #ruby
nijevazznoo has joined #ruby
hollywood has quit [Ping timeout: 250 seconds]
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
doodlehaus has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
Tinfoilhat_ has joined #ruby
OrbitalKitten has joined #ruby
Limix has quit [Quit: Limix]
Zai00 has quit [Quit: Zai00]
cajone is now known as cajone_afk
thumpba has joined #ruby
xcyclist has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
amundj has joined #ruby
havenwood has joined #ruby
scripore has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhllor has joined #ruby
w0rldmaker has quit [Ping timeout: 264 seconds]
<atmosx> aloha
thumpba has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
it0a has quit [Ping timeout: 264 seconds]
hollywood has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
rhllor has quit [Client Quit]
nicolastarzia has joined #ruby
DadoCe has joined #ruby
wallerdev has quit [Quit: wallerdev]
michael_mbp has quit [Excess Flood]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
michael_mbp has joined #ruby
mikmik77 has joined #ruby
chinmay_dd has joined #ruby
Limix has joined #ruby
DadoCe has quit [Ping timeout: 244 seconds]
sivsushruth has quit [Ping timeout: 245 seconds]
michael_mbp has quit [Excess Flood]
mjuszczak has joined #ruby
jenrzzz has joined #ruby
codeurge has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
naftilos76 has joined #ruby
red_horned_rihno has joined #ruby
sivsushruth has joined #ruby
nijevazznoo has quit [Quit: Lost terminal]
pandaant has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
oki has quit [Ping timeout: 245 seconds]
mgorbach has quit [Ping timeout: 246 seconds]
<ponga> i looked at Javascript V8's hello world, and it doesn't look like Javascript at all to me
<ponga> ;(
mjuszczak has quit []
<ponga> it looks even more verbose than java
davedev24_ has quit [Ping timeout: 256 seconds]
<centrx> ponga, I think that's how someone might implement a JavaScript compiler for V8
Lewix has joined #ruby
Lewix has joined #ruby
<ponga> centrx: so its mostly back-end?
<ponga> that i'd need not worry about those
davedev24_ has joined #ruby
mjuszczak has joined #ruby
<centrx> ponga, to write in JavaScript it's alert("Hello, world!") but it looks like in V8 on the command-line it's print("Hello, world!")
mgorbach has joined #ruby
<ponga> ok
<ponga> clearly you wouldn't want 'alert' in every case
otisZart has joined #ruby
mloveless has quit [Remote host closed the connection]
<centrx> right, that's classic browser JS
jr_ has joined #ruby
<jr_> ggg
<jr_> Black cocks are like a ruby.
<jhass> how so?
<jr_> they are very precious.
duncannz has joined #ruby
<jr_> everyone wants them.
<centrx> This is a troll from #debian
segmond has quit [Ping timeout: 264 seconds]
tcrypt has quit [Remote host closed the connection]
<jhass> jr_: mmh, got any reference? a study?
<jr_> well just my friends have told me.
<jr_> but we should do a study.
<jhass> yeah
<jhass> if everyone == your firends is equal, that would be a rather lonely world
<maasha> dup method is extremely resource heavy - why?
<jr_> they are 12" of precious metals.
<havenwood> centrx: Wasn't Debian's Ruby package enough of a troll?
<jhass> maasha: what do you mean?
<jr_> 13"x9"x20lbs of ruby
mary5030 has joined #ruby
oleo has joined #ruby
<jhass> jr_: found a ruby tutorial you like already?
<godd2> Just make Bitruby and start up a blockchain for precious gems
FooMunki has quit [Quit: FooMunki]
riotjones has joined #ruby
<maasha> jhass: I just saw that Hash#initialize_copy (coming from dup) takes up 60% self time in my profile.
enebo has joined #ruby
<jr_> black cocks are the most precious gems of Africa.
crazydiamond_ has joined #ruby
marr has quit [Ping timeout: 265 seconds]
chinmay_dd has quit [Ping timeout: 256 seconds]
<jhass> maasha: maybe you call it a bit too often
<godd2> That doesn't seem right. Wouldn't the be in high supply there?
oleo__ has quit [Ping timeout: 245 seconds]
crazydiamond_ has quit [Read error: Connection reset by peer]
<jhass> allocations are expensive in general
jottr has joined #ruby
<jr_> one questoin
centrx has quit [Ping timeout: 245 seconds]
<jr_> why some channels say "Cannot send message to channel"?
<jhass> various reasons
tunaCanBruh has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
RegulationD has joined #ruby
<jhass> 1) you're banned and 2) you try to send a message to it while not having joined it and the channel has the flag set to prevent it
<jr_> like what?
<jhass> should be the most common ones
<jr_> but i have never been to that channel before
crazydiamond has joined #ruby
<jhass> that doesn't rule out either
<jr_> I can see the channels list of users on the side.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> anyway, if you're bored you should learn some ruby ;)
<jr_> i wanna know how i cannot send messages to some channels i have never been to.
jenrzzz has quit [Ping timeout: 250 seconds]
red_horned_rihno has quit [Quit: Leaving]
<lampd1> deny all allow from _
jonr22 has joined #ruby
<lampd1> policies
<jhass> time to read up on how IRC works then, flags, access lists, channel flags, stuff like that ;)
cajone_afk is now known as cajone
red_horned_rihno has joined #ruby
<lampd1> ^
riotjones has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 246 seconds]
RegulationD has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
<godd2> I can't send letters to some countries I've never been to, like North Korea.
tunaCanBruh has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
<godd2> chanops are literally Kim Jong Un
<jhass> heh
<jr_> so what hapened
<jr_> they banned me before I ever joined?
<jhass> hard to tell from here really
<godd2> After the Korean war, half the country was taken over by a dictatorship
<godd2> oh you meant for your thing
<jhass> if you want to know you need to learn how to find out
jack_rabbit has joined #ruby
<jr_> ok how do i find out?
<jhass> by learning how user modes, channel modes and channel access lists work
<jr_> man thats too complex
<jhass> and how you query and control them on Freenode
<jhass> yeah
<jr_> everything on linux is too complex.
<jhass> so learn some Ruby instead!
<jhass> dunno, I always find windows more complex
<ponga> whoa that was hard , me first time using terminal vim to edit ~/.zshrc
jonr22 has quit [Ping timeout: 250 seconds]
<jr_> not enough jobs for ruby.
<ponga> i feel like im grown older now
<godd2> jr_ everything is complex if you don't take time to understand it
<jhass> jr_: who cares, it's fun
<jr_> on windows, one click and youre done
<jr_> on linux, you have to use commands
<jhass> but I need to find out where to even click
segmond has joined #ruby
<jr_> i install a package and it complains about a broken packages
<jr_> who cares
xcyclist has quit [Quit: Page closed]
<jr_> it compplains about dependencies
<godd2> jr_ you may want to use a different word from "complex" then. try "unfamiliar"
<jr_> on android and windows i just click and install
<jr_> done
<ponga> jr_: i'm banned from ##esperanto , because my nick name clashes with already banned nick list
<ponga> it just HAPPENS
<godd2> lol that your example is andriod
<jhass> jr_: well, android is linux ;)
<jr_> android is easy to use
RegulationD has quit [Ping timeout: 252 seconds]
<jr_> even easier than windows
<godd2> therefore, linux is easy to use
<jr_> thats why linux never made it mainstream until android came.
<jhass> jr_: but check out tryruby.org
<drizz> troll detected
zacstewart has joined #ruby
<jhass> drizz: you don't say!
<ponga> osx is easy to use, i.e. my grandma managed sending email in my mac, but couldnt do anything in windows
<ponga> *confirmed
juanpablo_ has joined #ruby
<jr_> it tells me i cannot install because i have broken packages for exmaple, so if they are broken, why notify me? why not just fix them and install what i want.
<godd2> oh cmon, jr_ is just frustrated that he/she doesn't know a thing and that it will take longer than 10 minutes to learn it
<jhass> jr_: why don't you do it?
sivsushruth has quit [Ping timeout: 245 seconds]
<jr_> why dont i do what?
<jr_> i use linux mint
jack_rabbit has quit [Ping timeout: 246 seconds]
<jr_> but i hate the command line
<jhass> and you pay nobdody for being able to use it
<jhass> so you have no demands to anyone to fix anything
jack_rabbit has joined #ruby
RegulationD has joined #ruby
<jhass> so why not take up the fun and actually find out why people do that stuff without getting paeid?
last_staff has joined #ruby
<jhass> *paid
<jr_> what stuff?
<jhass> "linux mint"
<jhass> software in general
<jr_> linux mint gets donations.
<ponga> does anyone run linux on their macbook here
chinmay_dd has joined #ruby
<ponga> wouldn't battery time be terrible if you did that
<lampd1> i just use vagrant
<ponga> *battery life
<jr_> how can i run android on my x64 labtop?
<jhass> jr_: that usually only barely covers server costs
<eam> ponga: my mom is completely computer illiterate and she uses ubuntu just fine
<godd2> ponga I like "battery time" better
<godd2> sounds like a dance
dj_zubehoer has joined #ruby
<eam> anyone can click on an email icon or browser icon
<jhass> jr_: google would know
x1337807x has joined #ruby
<eam> the less technical someone is the less important the choice of platform becomes
<jr_> well all i say if they want linux to be more mainstream, they gotta make it easier to use like android.
sivsushruth has joined #ruby
<jhass> jr_: who's they?
<ponga> godd2: i don't get the word 'battery time' anyway, by 'life' does it mean "the battery's overall lifecycle and health' or 'charge remaining to make use of'
<ponga> it could mean both
<ponga> English is stupid
<jr_> well the people who creates the linux distros.
<eam> jhass: maybe "they" means apple and he's talking about unix at large
<eam> in which case, it's history
<jhass> jr_: why is their motive to make it mainstream?
<jr_> well more money
aryaching has joined #ruby
<jhass> so that's red hat and cannonical, two out of a few hundred
juanpablo_ has quit [Ping timeout: 264 seconds]
<eam> how can we make ruby more mainstream
<jhass> can't be the main motive, don't you think? ;)
<shevy> better docu!
<shevy> and a simpler design
<ponga> eam: make a killer content
<toretore> how can we make ruby less mainstream
<eam> shevy: no one reads the docs
<jr_> well it is
<toretore> :(((
<shevy> eam well, the docs are awful
<ponga> some kind of API or framework that is so good to make people learn ruby and use it
<shevy> I say we use the perl docs
<jhass> eam: I thought you wanted perl to go mainstream?
<jr_> otherwise what is the point in only serving 2%
<ponga> the only way
<jr_> of all the computers
<eam> jhass: it already did
aryaching_ has quit [Ping timeout: 252 seconds]
<shevy> eam but another problem are the bindings. I dunno why but there are much more python bindings than ruby bindings
<jhass> jr_: having fun
<jr_> only 2% or maybe 4% use linux
RegulationD has quit [Ping timeout: 240 seconds]
<ponga> shevy: you really dont know?
<eam> jhass: every language that goes mainstream is a wasteland within 10 years because all the non-programmers create programs for it and become the face of the community
<ponga> ;p
wallerdev has joined #ruby
<ponga> eam: is that how ##haskell still has 1000+ users in it
<ponga> oh!
<eam> shevy: bindings to what?
<shevy> ponga yep I don't know. I never really wrote bindings; I did the pickaxe part about the jukebox but without really understanding C it is useless
<shevy> eam to everything!
<eam> there kinda are
x77686d has joined #ruby
oleo has quit [Ping timeout: 240 seconds]
<ponga> shevy: cos google loves python and so does everyone
<shevy> everywhere there are bindings that perl and python have but not ruby
<ponga> more people working on it
<eam> shevy: like what?
<shevy> eam qt!
<eam> but ruby does have qt bindings?
<jhass> shevy: it's because Ruby makes bindings so hard, look at how easy they are with Crystal :P
<ponga> but i believe its about popularity than usability
mistermocha has joined #ruby
<shevy> eam well let's ask this channel
<shevy> Who of you guys here has written an app in ruby-qt?
<ponga> shevy: i don't see weakness of ruby significant to make itself inferior to python anyway
mgorbach has quit [Ping timeout: 245 seconds]
<drizz> jhass: you can do runtime ffi bindings in Ruby aswell
<ponga> its just popularity, isnt it
<eam> shevy: well, you might as well ask who's written an app in TK
<shevy> oh there are a few who wrote stuff in ruby-tk actually
<shevy> manveru for instance
<shevy> though he is on #ruby-lang
<eam> sick
oleo has joined #ruby
<jhass> shevy: have you seen ruby-gir already?
<shevy> I have never heard of ruby-gir
<shevy> do you mean
<shevy> ruby-girl
arup_r has joined #ruby
diego1 has joined #ruby
jack_rabbit has quit [Ping timeout: 256 seconds]
<jhass> nope :P
diego1 has quit [Changing host]
diego1 has joined #ruby
<ponga> ruby girl sounds complicated
<arup_r> why is this false ? https://gist.github.com/aruprakshit/f17fce171b800d15eb9a#file-erb-rb-L12 Are not the last 2 lines same ?
<ponga> i'd definetely want python girl instead
<x77686d> Academic question: Is there way to prevent all use of instances of Array in a program? I'm aware of Object.send(:remove_const, :Array) but it doesn't stop 'x = []'
diegoviola has quit [Ping timeout: 246 seconds]
<jhass> mh, I don't think so
<arup_r> any idea ?
<arup_r> jhass: why ?
jr_ has quit [Ping timeout: 250 seconds]
<jhass> arup_r: that was for x77686d
<arup_r> Ohh!
<arup_r> my plate is still empty .. I see
mistermocha has quit [Remote host closed the connection]
<jhass> arup_r: to your question, binding is a method call, it returns the current scope and that doesn't have an implicit block param set
IrishGringo has quit [Remote host closed the connection]
<arup_r> x77686d: is this Intel machine code ?
<jhass> that you pass a block to the binding method is irrelevant, it doesn't take one and thus just ignores it
<arup_r> other method also returning the binding object.. why then it passed the block ?
<x77686d> arup_r: Is what machine code?
swgillespie has joined #ruby
<arup_r> x77686d: -> x77686d
<jhass> arup_r: because it returns the scope of that method, which does have a block set
<ponga> x77686d: your nick
<x77686d> Hex for "whm"
diego1 is now known as diegoviola
<arup_r> jhass: I didn't set the block.. I don't have the block var also to the method call #get_binding
<arup_r> then how it got set /
<arup_r> ?
<jhass> arup_r: you can think of the block_given? being run in the context of where you called binding
<arup_r> humm
<arup_r> internally ?
<jhass> ?
<jhass> do you know what a scope is?
<jhass> or a stackframe?
<arup_r> being a method `#binding` why couldn't set the block ?
* arup_r feels <shy>
<arup_r> I know scope.. jhass : but what is stackframe ?
oleo has quit [Ping timeout: 245 seconds]
amundj has joined #ruby
_honning_ has quit [Ping timeout: 246 seconds]
<jhass> the place where all the locals for a function calll live
Takle has joined #ruby
<arup_r> ok
<jhass> and other data necessary for the function to be run inside the right scope
plashchynski has quit [Quit: plashchynski]
<arup_r> Well.. for binding method why the stackframe is not got set for the block
<arup_r> ?
<jhass> and stuff like the return address, that is the place where execution should return to after the function exits
plashchynski has joined #ruby
<jhass> the binding method returns the current one
<arup_r> I got one stuff http://en.wikibooks.org/wiki/Ruby_Hacking_Guide/Garbage_Collection to read stack frame
<eam> my public library is blocking github
<jhass> it doesn't create a new one
<jhass> eam: lol
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> really didn't get it yet..
codeurge has quit [Ping timeout: 255 seconds]
codeurge has joined #ruby
<jhass> calling binding, you don't define a new scope, you get a representation of the one you call binding in
slawrence00 has joined #ruby
<jhass> so on line 8 it's the scope of get_binding when it's called with the block in line 11, on line 12 it's the top level scope
jr_ has joined #ruby
Parker0 has joined #ruby
oleo has joined #ruby
Parker0 has quit [Client Quit]
<arup_r> ok
Joufflu_ has quit [Quit: Peace]
<jhass> arup_r: try setting a few locals to different values and accessing them instead, that might be easier to understand than with the implicit block param
shellfu_afk has quit [Quit: Leaving]
doodlehaus has quit [Remote host closed the connection]
mloveless has joined #ruby
coinrookie has joined #ruby
hrendalf_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<arup_r> ok
<arup_r> I got the point
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 256 seconds]
developez has quit [Quit: Saliendo]
bim has joined #ruby
User458764 has joined #ruby
hrendalf_ has quit [Client Quit]
hrendalf_ has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has joined #ruby
oki has joined #ruby
allcentury has joined #ruby
adriancb has joined #ruby
thumpba has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
casadei has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
iwaffles has joined #ruby
atmosx has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
hrendalf_ has quit [Quit: Leaving]
doodlehaus has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
thumpba has quit [Ping timeout: 255 seconds]
greenbagels has joined #ruby
prasselpikachu has quit [Ping timeout: 252 seconds]
prasselpikachu has joined #ruby
x77686d has quit [Ping timeout: 264 seconds]
zz_olivierrr is now known as olivierrr
maasha has quit [Quit: Page closed]
sankaber has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
diego1 has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
MasterPiece has joined #ruby
Tinfoilhat_ has quit [Read error: Connection reset by peer]
starless has quit [Quit: Leaving]
diegoviola has quit [Ping timeout: 256 seconds]
aswen has joined #ruby
Channel6 has quit [Quit: Leaving]
MasterPiece has quit [Remote host closed the connection]
<ponga> shevy: are you there
<ponga> im tired of constantly bumping into corners trying build javascript V8
<ponga> should i just install node.js and use it instead
<ponga> ;(...
<wasamasa> yes
justin_pdx has joined #ruby
<ponga> wasamasa: apparently node.js runs on V8, so if i just wrote what i wanted (ignoring the fact nodejs is for network programming) and ran it thru node, im using v8 right?
<ponga> can't handle buildling v8 on ma machine ;(
<wasamasa> ponga: pretty much
hornairs has joined #ruby
<ponga> gud
<shevy> ponga I am there. Did you try to look at the beyond linux from scratch pages there?
jlast has left #ruby ["Leaving..."]
DadoCe has joined #ruby
<ponga> shevy: no, i just follwed build instruction
<ponga> and it spits out error
<wasamasa> ponga: what do you need it for, rails?
jr_ has quit [Remote host closed the connection]
<ponga> wasamasa: no.. its a long story, but to put it simple, if i ever wanted more performance than my ruby2.2.0, i thought i'd switch to Javascript than C/Java/C++/etc
<wasamasa> ponga: sounds actually sensible
<ponga> i code to enjoy
<wasamasa> ponga: minus the ugly parts of javascript of course, but pretty much anything has those
<ponga> i wouldn't enjoy coding in C/Java
<miah> ive been enjoying go
<ponga> wasamasa: yeaeh i first thought of python a long time ago, but it seems ruby is as good as python now, so python's like nah.. and i heard recently that V8 is damn fast
<ponga> and javascript is comfortable enough to me
dj_zubehoer has quit [Remote host closed the connection]
<wasamasa> ponga: well, js isn't to me
<miah> i dont mind js, i just hate its ecosystem
<havenwood> ponga: What's the Ruby that is too slow and is it actually at all faster in JavaScript?
<ponga> but then, i still have Jruby/Graal
<ponga> havenwood: not yet, i haven't encounterd speed problem yet
<ponga> i run my code on Jruby9000/graal and its pretty gud
<ponga> havenwood: and i dunno, but the statistics say javascript V8 is really really fast
<miah> statistics say that really? where?
dj_zubehoer has joined #ruby
<ponga> even in Jruby benchmark graphs
RegulationD has joined #ruby
<ponga> miah: i saw that in Jruby/Graal guy's blog
<miah> has been getting some <3
<havenwood> ponga: So it's very possible that what you have is a good bit faster than the same on Node.js.
wolves_cs has joined #ruby
<havenwood> ponga: Forget about speed until you actually have something that is too slow. Then benchmark.
<ponga> havenwood: maybe, i haven tried node yet
<miah> has been cool for doing some static anaylsis of our code; https://github.com/DamirSvrtan/fasterer
<havenwood> ponga: Then don't. :P
<ponga> havenwood: i am on that track
<miah> gives us some things to think about at least
<ponga> but i just curious , so i went over to install V8 (for fun too)
<ponga> and it was all hassle
The_Phoenix has quit [Read error: Connection reset by peer]
<miah> ^- yup
<ponga> so im like 'hey let's just install node.js, it runs on v8 too'
<miah> every time i've waded into node territory. which is a few times because i do systems admin. its always a pita to manage and get setup consistently
<miah> and we've run some poissbly poorly written node apps that have left a distaste
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<miah> eg sensu/uchiwa used to be sinatra, then they went to node and it was _awful_ and then they moved to go/angular
godemperor has quit [Ping timeout: 256 seconds]
<miah> the newest incarnation is <3
<miah> very fast, easy to deploy, small distribution size
prasselpikachu has quit [Ping timeout: 265 seconds]
Hrendalf has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
doodlehaus has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
<miah> im sure node is awesome. i just havent experienced it yet. maybe if i worked with a hardcore node person who could show me the ways
aerth_ is now known as aerth
vozcelik has quit [Ping timeout: 250 seconds]
aerth has quit [Changing host]
aerth has joined #ruby
<havenwood> ponga: Take a look: https://github.com/kostya/benchmarks#readme
godemper1r has quit [Ping timeout: 252 seconds]
<miah> oh this is cool havenwood
sivoais has quit [Ping timeout: 255 seconds]
waxjar has quit [Ping timeout: 264 seconds]
prasselpikachu has joined #ruby
<ponga> hm i see
<ponga> havenwood: so i should stick with ruby until i encounter significant slow down with specific feature/library(method?) im using
<miah> +1
<havenwood> ponga: yup! :)
<ponga> ok havenwood thanks
<miah> and also use bencharks to improve your slow methods
nicolastarzia has quit [Remote host closed the connection]
<bradland> if sysadmin has taught me anything, it is that you can only afford to worry about what you have to
<miah> ya
<miah> only so much time in the day
<miah> and every piece of software is shit and failing
<havenwood> ponga: And at that time if there isn't a Ruby implementation that's amongst the fastest options, you might be able to pick a lang like Crystal that's based on Ruby so very familiar.
<miah> doesnt matter the language. always the same problems.
JoshGlzBrk has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
doodlehaus has joined #ruby
<shevy> we could all use COBOL!
<havenwood> ponga: Or Mirah or Elixir. The Rubyesque.
<bradland> psh, COBOL.
<bradland> JCL brah
<godd2> shevy I'll just use Python to get my required-indentation fix
Edes has quit [Ping timeout: 244 seconds]
<shevy> hehe
fantazo has quit [Quit: Verlassend]
<ponga> hey havenwood can i ask something about jruby/graal/truffle
<havenwood> ask anyone
<ponga> i installed it as instruction, if i wanted to use this interpreter, do i just go 'jruby mycode.rb' in terminal as usual
eire has joined #ruby
<shevy> ack ponga
<ponga> or do i need to pass options or so
<shevy> didn't you learn
<shevy> you are back to java things again!
Edes has joined #ruby
<havenwood> shevy: GraalVM ftw!
<ponga> shevy: but..but.. Jruby is so damn fast... *sob
waxjar has joined #ruby
<ponga> it performed 4 times faster even on my crappy code
<shevy> no worries; if crystal will be much faster than ruby, then matz will have to respond
dru has joined #ruby
godemper1r has joined #ruby
iwaffles has quit [Ping timeout: 246 seconds]
<ponga> havenwood: am i good typing in 'jruby mycode.rb' in terminal if everything is installed fine
<ponga> or should i go jruby mycode.rb blah blah blah with many options passing thru
<ponga> this i couldn't find in https://github.com/jruby/jruby/wiki/Truffle
<jhass> shevy: it already is. But Matz is busy replacing Lua with mruby anyway
godemper2r has joined #ruby
<arup_r> shevy: what is crystal ?
phutchins has joined #ruby
<ponga> shevy: im looking at http://crystal-lang.org
<havenwood> ponga: As far as I know you need to pass the -X+T option. You should be able to export an env var in a dotfile to make that choice permanent: https://github.com/jruby/jruby/wiki/Truffle#running-with-graal
<ponga> and their motto sounds fascinating
marr has joined #ruby
<havenwood> ponga: #jruby would be a good place to ask for specifics
<ponga> havenwood: k im good, i was doing it fine
<ponga> thanks
<havenwood> ponga: np
<ponga> wow crystal looks interesting for sure
iwaffles has joined #ruby
<ponga> how fast is this lang?
<havenwood> shevy: The MRI team has already announced the LLVM JIT coming in Ruby 3.0.
<bradland> orly!?
<bradland> that's pretty amaze
<jhass> ponga: it generates native code using LLVM, so with optimizations turned on you reach C but have to substract the time for the GC runs
waxjar has quit [Ping timeout: 245 seconds]
<ponga> havenwood: i studied what LLVM and JIT are(i did) but what real changes would they make in ruby?
<ponga> can you dumb it down
Edes has quit [Ping timeout: 264 seconds]
godemper2r has quit [Ping timeout: 256 seconds]
<jhass> ponga: not that it's not super stable yet and stdlib still has holes to fill. Otoh if you ever wanted to contribute to a languages stdlib, best time ;)
<jhass> *note
ta has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
<ponga> wow jhass that's amazing
<arup_r> who designed this? https://github.com/manastech/crystal/wiki
phutchins has quit [Ping timeout: 255 seconds]
<jhass> mmh, don't even know asterites and wajs real names :P
<chrisseaton> ping me if you have questions about Truffle
<bradland> ponga: ruby, in its current implementation, is strictly interpreted, which means that your script is sent to the ruby interpreter on invocation
<eire> Hi, I am new to ruby and I am currently working on a project. I am stuck at one part and was wondering would any of you guys be willing to give me a helping hand? I apologise in advance if this chat is not meant for queries like this one.
<bradland> with JIT languages, your code is compiled to bytecode, which is inbetween text and a true compiled application
<ponga> bradland: and with LLVM JIT it is compiled in real time?
phoo1234567 has quit [Max SendQ exceeded]
<bradland> to bytecode
<shevy> havenwood not sure what LLVM JIT means... is that like JVM?
<ponga> i believe it is sorta like JVM
<jhass> eire: it absolutely is, but don't ask for a person to help you, just state your problem and have some patience ;)
<shevy> ponga BUT WITHOUT JAVA!!!
<bradland> JVM means java virtual machine, which is an implementation
<bradland> that uses JIT
<ponga> shevy: absofuckinglutely
phoo1234567 has joined #ruby
<bradland> java popularzed JIT, but it's not the only implementation to use it (not that I have a list of examples)
<bradland> just that i'm sure it's not the only one
<bradland> ponga: JIT actually goes one step further than bytecode, i think
<ponga> ok
sivsushruth has quit [Ping timeout: 272 seconds]
<bradland> as in, it takes bytecode, and takes it all the way to native code upon execution
<ponga> oh
<ponga> shevy: crystal is a static language?
<bradland> but it only does this for what it needs, or something like that
<bradland> which is why they call it just-in-time
mgorbach has joined #ruby
waxjar has joined #ruby
<ponga> u sorry shevy forget it i was dumb asking that
aphprentice has quit [Remote host closed the connection]
schaerli has joined #ruby
ferr has joined #ruby
sivsushruth has joined #ruby
mikecmpbll has joined #ruby
<ponga> havenwood: altho i undertand mere concept of what LLVM JIT does, i can't grasp by how much it will improve performance
<ponga> like.. a lot?!
<ponga> hehe
Edes has joined #ruby
godemper2r has joined #ruby
<bradland> ponga: performance improvement is always relative to the task being done, so it's hard to make generalizations
<chrisseaton> The problem with using LLVM for a language like Ruby is that it needs static types, so you have to build something on top of it in order to find static types
<bradland> there are also trade-offs
vt102 has quit [Ping timeout: 240 seconds]
<chrisseaton> Like tracing, or partial evaluation, and those are big tricky projects that aren't easy, and LLVM doesn't help you with it at all
jottr has quit [Ping timeout: 256 seconds]
<ponga> chrisseaton: would it have to 'guess' the type in process
<chrisseaton> ponga: we'd say it makes an optimistic assumption rather than guess
<eire> I am creating a scheduling system. I want to allow users to input user_ids and a date. I then want to take that information and run my algorithm which I have created in my meetings controller. The algorithm will return an array of datetimes representing the times when all users input are free to meet. I then wish to display a page with a list of these times to the user, and a button beside each allowing the user to choose that slot and crea
<eire> Any pointers in the right direction would be greatly appreciated. :)
<jhass> eire: got cut off at "and crea", IRC has a message limit and your client doesn't handle it for you ;)
<ponga> you could pastie it
aryaching has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
<ponga> so shevy you are looking into crystal?
hornairs_ has joined #ruby
hornairs_ has quit [Client Quit]
<eire> Sorry. ....and create a meeting in that slot.
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elaptics_away is now known as elaptics
jottr has joined #ruby
<ponga> havenwood: im reading the link you gave me, https://github.com/kostya/benchmarks#readme and im very surprised(shocked too) to see crystal's performance
<ponga> is it that fast
amclain has joined #ruby
<jhass> it pretty much is, yes
bluOxigen has quit [Ping timeout: 264 seconds]
<jhass> thanks to LLVMs optimizer, mostly
hornairs has quit [Ping timeout: 252 seconds]
<ponga> im really shocked
<ponga> oh and slightly happy looking at python doing poorly
nateberkopec has quit [Quit: Leaving...]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ponga> dunno why, it just makes me
<jhass> don't expect to just write Ruby though, Crystal has strongly Ruby inspired syntax, but is its very own language
<ponga> yop
riotjones has joined #ruby
<ponga> jhass: at least i don't have to write verbosely like java, im ok with learning new syntax
<ponga> hehe
tunaCanBruh has joined #ruby
<jhass> yeah, foo = [] of String|Symbol is about as verbose as it gets
prasselpikachu has quit [Ping timeout: 240 seconds]
<jhass> def foo(&block : String -> Int) is the worst part maybe
starless has joined #ruby
prasselpikachu has joined #ruby
<jhass> I put a eval bot into #crystal-lang, if you want to fool around a bit ;)
schaerli has quit [Ping timeout: 264 seconds]
SolarNRG has joined #ruby
<SolarNRG> hi
sivoais has joined #ruby
sivoais has quit [Changing host]
sivoais has joined #ruby
jonr22 has joined #ruby
<SolarNRG> does anybody no powershell?
justin_pdx has quit [Quit: justin_pdx]
<jhass> yeah, no use powershell, all zsh here
tunaCanBruh has quit [Ping timeout: 255 seconds]
riotjones has quit [Ping timeout: 245 seconds]
M-Technic has quit [Quit: leaving]
DadoCe has quit [Remote host closed the connection]
davejacobs has joined #ruby
aewffwea has joined #ruby
<havenwood> shevy: the difference is J vs LL it seems :P
<aewffwea> Is it possible with Dynamoid to add/update a new multi-value field to an existing row? with a single dynamo query?
<havenwood> ponga: what they said ^
<havenwood> SolarNRG: zsh here too
<shevy> ponga I don't have time to look into anything else right now :( I try to polish up my ruby, and all old projects; not start anything new; and once things are in a good shape, I'll transition into C most likely full time (as otherwise I'd just abandon it for ruby all the time); also crystal looks way too fresh, I am sure there are caveholes
<shevy> I'll still retain ruby!
jonr22 has quit [Ping timeout: 264 seconds]
w0rldmaker has joined #ruby
Iniquity has joined #ruby
<jhass> shevy: that's why it's fun! it's entirely written in itself, so you can just fill all the open holes and contribute them for use for everybody!
<havenwood> SolarNRG: Try: #Powershell or slack.poshcode.org
<SolarNRG> cheers
<aewffwea> And what are the rules of mixins? suppose I have class A and superclassA and I add a mixin to superclassA can I use it from both class A and superclassA?
SolarNRG has quit [Read error: Connection reset by peer]
<gr33n7007h> reckon ruby 3.0 will get the GIL removed?
<havenwood> gr33n7007h: yes
juanpablo_ has joined #ruby
<gr33n7007h> awesome!
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
jack_rabbit has joined #ruby
davejacobs has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
mary5030 has joined #ruby
<gr33n7007h> ruby 3.0 is going to be wicked
<shevy> jhass hehe but I already have a lack of time!
<shevy> jhass I wonder how you can manage
<shevy> aewffwea mixins are like an additional superclass mostly; you can look at .ancestors
dj_zubehoer has quit []
<havenwood> gr33n7007h: JRuby and Rubinius paved the way! So a lot of the gem work needed for thread safety has already been done, which is lovely.
<ponga> i wish i was good enough to contribute to these awesome projects
<ponga> i really think i should study more
doodlehaus has quit [Remote host closed the connection]
<jhass> ponga: you probably are, backfilling crystal stdlib is really easy
<ponga> really?
<aewffwea> shevy: let me rephrase this... yesterday I was using classA and superclassA... I added a mixin that adds an instance variable and some methods to superclassA, but when I tried using them the variable was nil...
<ponga> im scared
<shevy> >> module C; end; class Bar; end; class A < Bar; end; class Z < A; include C; end; Z.ancestors
<eval-in> shevy => [Z, C, A, Bar, Object, Kernel, BasicObject] (https://eval.in/294432)
<aewffwea> shevy: Now if I only include the mixin in classA instead of superclassA now superclassA works and can find the instance variable with the proper value....
thumpba has joined #ruby
<aewffwea> what's happening there?
<ponga> oh what
xploshioon has joined #ruby
<shevy> aewffwea I assume the variable was nil because you did not initialize it yet
<ponga> jhass: is crystal's library written in itself?
<jhass> ponga: yup
<jhass> ponga: the compiler too, everything really
<aewffwea> shevy: The mixin initialized it on "included"
<ponga> how's that even possible?!
xploshioon has quit [Client Quit]
<ponga> that's like giving birth by oneself
<ponga> crazy
<shevy> aewffwea, look at this example:
<shevy> >> module Foo; def initialize; @foo = 5; end; end; class Bar; include Foo; end; p Bar.new.instance_variables
<eval-in> shevy => [:@foo] ... (https://eval.in/294433)
<jhass> ponga: well, in what language is GCC written? ;)
juanpablo_ has quit [Ping timeout: 244 seconds]
<shevy> now you see, the @ivar was defined in a module, and the Bar has it just through the include Foo statement
tuelz has joined #ruby
<ponga> jhass: C? am i wrong?
<jhass> nope, it's C
<shevy> jhass GCC has assembler parts too I think!
<jhass> ponga: they bootstrapped the initial compiler in Ruby though, up to the point where it could compile itself basically
<ponga> oh i get it
<ponga> like 40%
<bradland> the story of how BCC is bootstraped is really interesting
<shevy> BBC?
<bradland> you guys should definitely google it
<tuelz> what chain of methods would I use to look though a hashs k,v's compare the v to something and replace that v with a value if the comparison was true?
mary5030 has quit [Ping timeout: 256 seconds]
<bradland> GCC
<bradland> derp
nettoweb has joined #ruby
<shevy> ah hehehe
<havenwood> not C%, not C?, not C#, just C
RegulationD has joined #ruby
<shevy> they probably sacrificed some chickens to get it running
<tuelz> that is, I want to look through a hash to find values 'TRUE' and replace that with true
<aewffwea> let me figure out my example
<aewffwea> >> module Foo; def initialize; @foo = 5; end; end; class SuperBar; def print; @foo; end; class Bar; include Foo; end; p Bar.new.print
<eval-in> aewffwea => /tmp/execpad-52f970403338/source-52f970403338:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/294434)
<gr33n7007h> shevy: lol
sivsushruth has quit [Ping timeout: 255 seconds]
<ponga> jhass: is it like how pypy did it
<ponga> i heard pypy is python in python
<jhass> maybe, I didn't look into pypy
x77686d has joined #ruby
<shevy> aewffwea you forgot at least one "end" :)
<havenwood> ponga: Python in RPython
nettoweb has quit [Client Quit]
<havenwood> ponga: like Topaz is Ruby in RPython
w0rldmaker has quit [Ping timeout: 246 seconds]
GnuYawk has joined #ruby
<jhass> didn't Rubinius have the goal to do as much as possible in Ruby too?
<tuelz> actually there are two ends missing I think
<shevy> aewffwea for the most part, a module is like a class but with somewhat reduced functionality; except that you can also include it
timonv has joined #ruby
<ponga> ok this story is a bit too difficult to me for now
<ponga> ;p
Synthbread has joined #ruby
iamjarvo has joined #ruby
sivsushruth has joined #ruby
thumpba has quit [Ping timeout: 246 seconds]
<shevy> jhass well there is a different project maintainer now and projects often change with new folks in charge, e. g. how shoes4 now requires jruby when the old shoes by _why did not
<shevy> _why should be hired to do more comics
Rapier- has joined #ruby
<jhass> ponga: there's nothing magical about compilers, they are programs that take data (text representing programs) and transform them into other data (native code, some bytecode etc.)
<bradland> it's turtles all the way down
mgorbach has quit [Ping timeout: 272 seconds]
<ponga> jhass: but if compiler itself was in crystal, wouldn't it need another lang like C to run it in operating system
<ponga> now i think i sound dumb
tmtwd_ has quit [Remote host closed the connection]
* ponga is sad being dumb
mgorbach has joined #ruby
<zoskia> :(
mjuszczak has quit []
<ponga> but hey the link you gave me is comprehensible to me
<zoskia> You could … read a book!
<ponga> zoskia: what book
<ponga> please recommend
iamjarvo has quit [Client Quit]
RegulationD has quit [Ping timeout: 264 seconds]
<ponga> i can read, i can put effort, but there are just too many(far too many to handle)
<zoskia> Read them all as they come!
<jhass> ponga: no, what you think of is a runtime, a program that interprets the code as it is run. A compiler translates code into other code (suitable for consumption by another compiler or a interpreter/runtime) or native code (machine instructions for the CPU) directly
<havenwood> ponga: Before the Crystal compiler was written in Crystal it was written in Ruby. Like before the Go compiler was written in Go it was written in C.
w0rldmaker has joined #ruby
<weaksauce> tuelz x = {test: "TRUE", this: 25}; x.each do |k,v| x[k] = true if v.respond_to?(:downcase) && v.downcase == "true"; end
<ponga> and if i were to read this book, it assumes i already have prerequisite knowledge of this, and on and on so i fall into this loop of books
<ponga> ;(
bier has quit [Ping timeout: 246 seconds]
<ponga> ah
<ponga> that makes sense now
<ponga> like 80%
<ponga> thanks!
<jhass> ponga: you can think of the CPU as a interpreter in hardware, it takes commands too, we call them instructions there
<aewffwea> shevy: why is this not printing 5: https://eval.in/294452
RegulationD has joined #ruby
<tuelz> weaksauce: thanks, I was doing v = true instead of hash[k] = true
<jhass> ponga: those instructions are just very low level, like take byte at memory address a, put it into memory address b, add 5 to it
<jhass> go to instruction at memory address c
mjuszczak has joined #ruby
<ponga> ah..
<shevy> aewffwea why did you use self.
<shevy> did my example have that ;)
Hobogrammer has joined #ruby
DadoCe has joined #ruby
<shevy> aewffwea you need to keep in mind where you add an @ivar to
<aewffwea> shevy: Copy paste
<shevy> module Foo; @foo = 5 is not the same as module foo; def some_method; @foo = 5
<shevy> damn
<weaksauce> tuelz yw
<shevy> module Foo, not module foo
f03lipe has joined #ruby
<zoskia> ponga, /6
<zoskia> oops
<ponga> ?
Hrendalf has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<aewffwea> shevy: https://eval.in/294466
<aewffwea> so how do I make it work?
<shevy> aewffwea you do not call the method
<gr33n7007h> >> #include <stdio.h>; int main(void) { int i = 20; int *iptr = &i; printf("%p\n", &i); printf("%p", iprt); return 0; } >> compile
<eval-in> gr33n7007h => nil (https://eval.in/294467)
<aewffwea> which method?
<gr33n7007h> meh
RegulationD has quit [Ping timeout: 264 seconds]
<shevy> This example works as initialize is called when you invoke .new on a class: module Foo; def initialize; @foo = 5; end; end; class Bar; include Foo; end; Bar.new
zacstewart has quit [Remote host closed the connection]
monod has quit [Ping timeout: 250 seconds]
<aewffwea> isn't included called when you include a mixin?
<shevy> aewffwea come on man, you know that def initialize is the starting point!
<shevy> I have no idea
<aewffwea> When a class includes a module the module’s self.included method will be invoked.
<shevy> k so you use an @ivar on the module instance itself
mjuszczak has quit []
<shevy> how do you wish to make this @ivar known to an instance of your class?
<aewffwea> if I reference it from a method inside the module
<aewffwea> does it reference the instance on the class, or on the module?
<shevy> they aren't on the same level
<aewffwea> what?
<shevy> if you include the module in your class, the module still has all its class-level instance variables
<shevy> the solution already was given, simply use a def initialize in your module
<aewffwea> shevy: you gave a solution, but it wasn't a solution to my problem
<shevy> <aewffwea> And what are the rules of mixins? suppose I have class A and superclassA and I add a mixin to superclassA can I use it from both class A and superclassA?
kaiZen has joined #ruby
<aewffwea> shevy: That's what I'm asking you
<aewffwea> shevy: What are the rules of mixins?
<shevy> I explained it - you mix it in, it is available in your class
<aewffwea> I meant the details
<aewffwea> That's a high level overview
<aewffwea> I want to understand how the corner cases work
<shevy> what corner cases exactly?
w0rldmaker has quit [Ping timeout: 245 seconds]
<aewffwea> method in mixin refers variable
<aewffwea> where is that variable located?
<shevy> that depends on the scope of self there
<shevy> which is the same rule for both classes and modules by the way
<aewffwea> what are the rules then?
<shevy> and
Limix has quit [Quit: Limix]
<shevy> start with the one from banisterfiend, he explained it very well
aryaching has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
monod has joined #ruby
Musashi007 has joined #ruby
<ponga> yay
<ponga> jhass: installed crystal and sublime highlight
<ponga> on my way to dive in!
Hrendalf has quit [Ping timeout: 250 seconds]
<aewffwea> when you include a mixin are instance variables included as well?
ptrrr has joined #ruby
ptrrr has quit [Client Quit]
sivsushruth has quit [Ping timeout: 244 seconds]
bier has joined #ruby
sivsushruth has joined #ruby
chinmay_dd has quit [Ping timeout: 252 seconds]
aamador has quit [Ping timeout: 264 seconds]
sevvie has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
oki has quit [Ping timeout: 246 seconds]
plutonic has joined #ruby
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
Lildirt has joined #ruby
tlarevo has joined #ruby
tlarevo has quit [Client Quit]
tuelz1 has joined #ruby
tuelz has quit [Ping timeout: 252 seconds]
<shevy> aewffwea http://pastie.org/9990354 yes they are but only if you call the respective method at hand
<shevy> and it must be on the same scope - see include vs. extend
sivsushruth has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
swgillespie has joined #ruby
atmosx has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
swgillespie has quit [Client Quit]
Takle has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 255 seconds]
Dolphi has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
Takle has joined #ruby
swgillespie has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
mgorbach has quit [Ping timeout: 256 seconds]
w0rldmaker has joined #ruby
last_staff has quit [Quit: zzzzz....]
mgorbach has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
Iniquity has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
Channel6 has joined #ruby
<Dolphi> I know that this is a ruby channel so I apologize in advance for this question. In python 3, how would I perform a line break? I want to make my code output break lines in order to appear more visually appearing when run in PowerShell.
<Dolphi> Appealing*
otisZart has joined #ruby
f03lipe has quit [Ping timeout: 245 seconds]
<weaksauce> print out a \n
<Dolphi> Thank you weaksauce.
w0rldmaker has quit [Ping timeout: 246 seconds]
<jhass> Dolphi: I'm curios, why didn't you ask the python channel?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<weaksauce> ^
lolmaus has joined #ruby
<Dolphi> I cannot join that channel until I register my nickname on freenode, but I do not know how to do that. I am new to IRC.
<jhass> Dolphi: say /msg NickServ help
<tobiasvl> #python-unregistered
shum has quit [Client Quit]
shum has joined #ruby
<Dolphi> REGISTER
<Dolphi> Whoops...
jenrzzz has joined #ruby
Musashi007 has joined #ruby
w0rldmaker has joined #ruby
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
<shevy> :D
Megtastique has quit []
oleo has quit [Ping timeout: 245 seconds]
<shevy> Dolphi come to #ruby anyway man, we don't mandate registration!
<shevy> sadly #ruby-lang does and #rubyonrails does as well :(
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
FooMunki_ has joined #ruby
<shevy> ponga I just fixed the class UpdateEntry; now I can again from the commandline update programs... e. g. "ue http://ftp.gnome.org/pub/GNOME/sources/glib/2.43/glib-2.43.90.tar.xz", afterwards i can compile it via "compile glib" (or rather an alias, "ry glib" or "ecompile LAST")
<shevy> what the fudge...
<shevy> Connecting to ftp.gnome.org (ftp.gnome.org)|2001:6b0:e:2018::163|:80... failed: Protocol error.
RegulationD has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
rbennacer has quit [Remote host closed the connection]
<ponga> shevy: sorry im having fun with crystal at the moment
<shevy> hehe
<shevy> it looks very similar to ruby
<shevy> can you re-use ruby code in crystal btw?
<shevy> that would be cool
<ponga> shevy: i think you can
<havenwood> shevy: #ruby-lang no longer requires nick reg
<ponga> as almost
<shevy> havenwood ah cool! let me try
scripore has quit [Client Quit]
<shevy> yay
<shevy> now I have another channel to idle in
nolic has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
JoshGlzBrk has joined #ruby
<shevy> ponga that would actually be awesome; like coffeescript and javascript. I could retain all my ruby code, and if things need to be faster I could then use crystal
robbyoconnor has quit [Ping timeout: 250 seconds]
<ponga> shevy: it even read my 10.times do puts "hello world" end
<ponga> and as far as i read doc, it looks almost same to ruby
<jhass> well, you will run into incompatibilities soon enough ;)
<jhass> a = [] breaks
<jhass> include? is includes?
<jhass> attr_reader/write/accessor is getter/setter/property
<jhass> stuff like that
rbennacer has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<Dolphi> shevy, You don't remember me?
tunaCanBruh has quit [Ping timeout: 244 seconds]
w0rldmaker has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
<Dolphi> shevy, We met a while back. I believe that you are the first person that I ever talked to on IRC. I also believe that I told you I wanted to learn ruby because I wanted to put a ruby icon sticker on my new laptop (because it looks cool and represents that I know ruby)
hollywood has quit [Quit: Leaving]
<Dolphi> I also remember ponga and bradland. :)
shum has quit [Quit: WeeChat 1.1.1]
<shevy> Dolphi hmm
<shevy> Dolphi I kinda have a 2-days-memory on IRC :\
bradleyprice has joined #ruby
shum has joined #ruby
<ponga> hi Dolphi
<shevy> it's one neverending scroll for me without any timestamps
<Dolphi> Yeah, it was over a month ago.
<shevy> ah
<Dolphi> I haven't logged on for a long time.
<shevy> you mean you were completely new to IRC altogether?
Asher has quit [Quit: Leaving.]
<Dolphi> Yes
<shevy> now that is awesome :) I remember like ... 17 years ago or more actually, I was new to IRC; back then on windows, with mIRC, on Galaxynet
robustus is now known as robustus|Off
<Dolphi> I think that you may have even recommended me HexChat
zoskia is now known as vhlfd
<Dolphi> Either you or bradland did...
phutchins has joined #ruby
<shevy> hmm that might be me, because I still use xchat right now, and contemplate switching to hexchat one day (I failed to compile it a few months ago and did not try again, cuz I am lazy and xchat still works for me)
shum has quit [Client Quit]
mikmik77 has quit [Ping timeout: 252 seconds]
shum has joined #ruby
mengu__ has joined #ruby
<Dolphi> I know jlnr also :)
<Dolphi> Anyway, is it alright if I ask one more question about python 3? I don't really want to verify my email address at the moment because I'm too lazy.
<Dolphi> :P
oki has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
keen__________75 has joined #ruby
<jhass> try #python-unregistered then ;)
neanderslob_ has joined #ruby
keen__________74 has quit [Ping timeout: 244 seconds]
<Dolphi> I did but it wouldn't let me post there for some reason.
Vile` has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
<jhass> are you sure? maybe just nobody replied?
<Dolphi> I suppose I will just stop being lazy and verify my email address.
doodlehaus has joined #ruby
<Dolphi> ":Cannot send to channel"
ghr has joined #ruby
<jhass> mh
Vile` has joined #ruby
oki has quit [Ping timeout: 264 seconds]
Soda has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
freerobby has joined #ruby
jonr22 has joined #ruby
Rollabunna has joined #ruby
x1337807x has joined #ruby
starless has quit [Quit: Leaving]
ghr has quit [Ping timeout: 255 seconds]
jack_rabbit has quit [Ping timeout: 265 seconds]
QualityAddict has joined #ruby
kalusn has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
tuelz1 has quit [Ping timeout: 246 seconds]
ghostpl_ has joined #ruby
kirun has quit [Quit: Client exiting]
thumpba has joined #ruby
zacstewart has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
<gr33n7007h> weechat-curses ftw!
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
eire has quit [Quit: Page closed]
sivsushruth has quit [Ping timeout: 244 seconds]
aerth is now known as aerth_
blackmesa has joined #ruby
<shevy> Dolphi go ask stuff about python 3
<shevy> at the least we can try and convince you to use ruby!
az7ar_away has quit [Read error: Connection reset by peer]
<shevy> except for jhass
<shevy> he will try to convince you to use crystal instead
<jhass> shevy: sssh, don't reveal my secret plan to world domination!
aerth_ is now known as aerth_afk
aerth_afk is now known as aerth_afaik
zacstewart has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
w0rldmaker has joined #ruby
cajone has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
byprdct has joined #ruby
cajone has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
fgo has joined #ruby
oleo has joined #ruby
<Dolphi> I'm just trying to figure out how to draw an image to the screen.
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dolphi> I'm making a small conditional branch type program. If you push 1, I want it to display an image.
<jhass> I usually just shell out to xdg-open
_honning_ has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
w0rldmaker has quit [Ping timeout: 264 seconds]
mkaesz has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby
w0rldmaker has joined #ruby
rbennacer has quit [Remote host closed the connection]
otisZart has quit [Remote host closed the connection]
x1337807x has joined #ruby
<shevy> Saving to: '3.2.4.tar.bz2'
miqui has joined #ruby
max96at is now known as max96at|off
<shevy> what a great name, isn't it?
JBreit has joined #ruby
sinkensabe has joined #ruby
oleo has quit [Remote host closed the connection]
<jhass> yeah
<jhass> package mangers ftw
Guest123 has joined #ruby
Coding_Deva has joined #ruby
Motoservo has quit [Quit: Over & out.]
<Dolphi> No help? :(
<Dolphi> And don't worry shevy, I plan on learning ruby as well.
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mkaesz has quit [Ping timeout: 272 seconds]
<jhass> Dolphi: as said, I usually just shell out to xdg-open
<Dolphi> I'm just starting with Python because it seems easier for an absolute beginner, though I may be wrong.
<Dolphi> jsaak: Ah, thank you. I'm not quite sure how to do/what that means thoough haha.
<shevy> Dolphi I don't know how I could help; drawing an image to the screen usually happens through a widget set
<shevy> there is ruby-gnome which you can use for drawing stuff too
<jhass> shevy: I think they just want to open an image viewer
<shevy> it is not super-simple though, you may have to do quite a bit of micro-calls due to the gnome/glib/pixbuf API
<shevy> open?
duncannz has quit [Ping timeout: 272 seconds]
<jhass> start, launch, execute
<shevy> well he wrote draw an image though
OrbitalKitten has joined #ruby
<jhass> yeah
<Dolphi> I may be using the wrong terminology. This is what I want:
<jhass> and that python seemed simpler to start with
<shevy> Dolphi do you know the game civilization? or actually, the settlers
<shevy> a guy wrote a map editor for settlers in ruby-gnome
rbennacer has joined #ruby
<Dolphi> If they press 1, they see an image that I downloaded from the internet.
<Dolphi> Else, a string is printed.
<shevy> yes, all widgets have that - button-press events; they respond to an event
<shevy> yes, that is simple, your button calls a method, that method decides what to do
<Dolphi> shevy, Yes I do.
<shevy> well, you want to use some kind of GUI right?
C0deMaver1ck has quit [Ping timeout: 246 seconds]
<shevy> I don't know if you can do it in the windows API directly... or on linux with the xorg system...
<shevy> ah, there are also framebuffers... SDL ... gosu... directfb...
kalusn has quit [Remote host closed the connection]
GnuYawk has quit [Quit: WeeChat 0.4.2]
plashchynski has quit [Quit: plashchynski]
<jhass> shevy: I think you're overdoing it
<jhass> launching an image viewer should be fine
C0deMaver1ck has joined #ruby
freerobby has quit [Quit: Leaving.]
<shevy> how primitive!
C0deMaver1ck is now known as Guest75058
jm0 has left #ruby [#ruby]
w0rldmaker has quit [Ping timeout: 246 seconds]
danzilio has joined #ruby
<jhass> Dolphi: http://stackoverflow.com/a/434612/2199687 I googled "python windows open file with default application"
qiffp has joined #ruby
danzilio has quit [Max SendQ exceeded]
danzilio has joined #ruby
w0rldmaker has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
<shevy> hey ponga look at the owl teacher on top left http://eigen.tuxfamily.org/index.php?title=Main_Page
Coding_Deva has quit [Remote host closed the connection]
Coding_Deva has joined #ruby
kaiZen has joined #ruby
nfk has quit [Ping timeout: 250 seconds]
QualityAddict has quit []
bufferloss has joined #ruby
oki has joined #ruby
ghr has joined #ruby
w0rldmaker has quit [Ping timeout: 264 seconds]
aamador has joined #ruby
miqui has quit []
havenwood has quit [Remote host closed the connection]
JBreit has joined #ruby
oki has quit [Ping timeout: 272 seconds]
starless has joined #ruby
QualityAddict has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
qiffp__ has joined #ruby
qiffp__ has quit [Client Quit]
JBreit has left #ruby [#ruby]
aswen has quit [Ping timeout: 245 seconds]
dorei has joined #ruby
turtil has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I just realized...
<shevy> the default way to compile into /usr prefix
<shevy> that is kinda messy. the old versions in /usr/lib will stay there
<jhass> aren't package managers a great invention? ;)
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
w0rldmaker has joined #ruby
<Dolphi> Okay guys, I have a question but I don't want to start any arguements.
aamador has quit [Ping timeout: 246 seconds]
<Dolphi> From an absolute beginner's standpoint (also unbiased of course), would you recommend Ruby or Python?
<shevy> jhass the problem is - what do you do when you wish to update?
freerobby has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
<jhass> shevy: and it's not in the repos yet you mean?
<shevy> yeah
<shevy> take debian
<shevy> :)
<jhass> Dolphi: #ruby will tell you Ruby, #python will you Python and #nodejs will tell you JavaScript, there's no other answer
aamador has joined #ruby
<shevy> Dolphi well
<Dolphi> Are there any reasons why one should use a specific language?
<Dolphi> Like if they were developing certain types of things?
<shevy> Dolphi the biggest difference between ruby and python is the philosophy
<jhass> shevy: since you asked me, not hypothetical debian using me, I would do yaourt -G package; cd package; vim PKGBUILD; edit the version; updpkgsums; makepkg -si
<shevy> otherwise they are very similar, they have a very very similar niche
banister has joined #ruby
<godd2> Dolphi not really. What are your goals with programming? Do you want to make a career out of it?
<shevy> their syntax is somewhat comparable
banister has quit [Max SendQ exceeded]
<Dolphi> I want to make apps for android and windows phone.
<Dolphi> Possibly games as well.
<godd2> Dolphi then Javascript wouldn't be a bad idea to start with. All these Ionic apps are sounding pretty cool
<jhass> Dolphi: you're far to early to worry about things like that. You need to learn programming, any high level language will make you do that. After that it's just picking up the right tool for the right job and the answers to such questions will become quite obvious
spider-mario has quit [Read error: Connection reset by peer]
<Dolphi> I want to learn Ruby first then because I like the logo and it seems cool since I've heard a lot of people in Silicon Valley use it. :P
<shevy> lol
<Dolphi> Thank you.
<shevy> that was the best reason I ever heard
<shevy> the logo reason :)
<shevy> you might like the logo for the Go language too
<Dolphi> I mean come on, Python? lol
<Dolphi> The logo is horrible.
<shevy> Dolphi you could use javascript too btw, it's kinda becoming more and more important because everyone is browsing the web
<Dolphi> Go? Never heard of that one.
<shevy> for ruby vs. python though, I will predict you'll pick only one of these two
<shevy> I picked ruby years ago because of this http://www.artima.com/intv/ruby.html
<Dolphi> I already have a bunch of ruby books, so I guess I should go that route
<jhass> I could probably easily list another dozen languages you never heard of before, don't worry, choose one to start with and stick
<Dolphi> I even have the pickaxe book :)
mloveless has quit [Read error: Connection reset by peer]
<shevy> ah
<shevy> the pickaxe book was very good
<godd2> All the more reason to learn Ruby
<shevy> even if you don't pick ruby, the OOP concepts are quite simple
mloveless has joined #ruby
<shevy> do you still have to make a jukebox?
<Dolphi> Ruby it is then.
turtil has quit [Quit: WeeChat 1.1]
sinkensabe has quit [Ping timeout: 245 seconds]
olivier_bK has joined #ruby
davejacobs has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
mloveless has quit []
iamninja has joined #ruby