havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
nicesignal has joined #ruby
karapetyan has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
nicesignal has quit [Client Quit]
jcarl43 has quit [Quit: WeeChat 2.1]
phaul has quit [Ping timeout: 240 seconds]
nicesignal has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
bmurt has quit [Client Quit]
erlend has quit [Ping timeout: 264 seconds]
stairmast0r has joined #ruby
erlend has joined #ruby
stairmast0r has quit [Ping timeout: 264 seconds]
Zedax has quit [Quit: Page closed]
nowhere_man has joined #ruby
conceivably has quit [Remote host closed the connection]
stairmast0r has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman_ has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 260 seconds]
<al2o3-cr> havenwood: 1.yield_self.cycle :p
<al2o3-cr> but that's just dumb.
SteenJobs has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
duckpuppy has joined #ruby
<al2o3-cr> go to sleep lee.
duckpuppy has quit [Ping timeout: 264 seconds]
litetip has joined #ruby
marxarelli is now known as marxarelli|afk
mikecmpbll has quit [Quit: inabit. zz.]
litetip has quit []
litetip has joined #ruby
<litetip> hi
marr has quit [Ping timeout: 256 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
litetip has quit []
jshjsh has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
bmurt has joined #ruby
workmad3 has joined #ruby
sspreitz has quit [Remote host closed the connection]
sspreitz has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
netherwolfe has joined #ruby
netherwolfe has quit [Ping timeout: 240 seconds]
adam12 has joined #ruby
roca has quit [Remote host closed the connection]
alfiemax has joined #ruby
pwntrik has joined #ruby
bow__ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bow__ has quit [Quit: Leaving]
james541 has joined #ruby
jcarl43 has joined #ruby
karapetyan has joined #ruby
LiamW has joined #ruby
<LiamW> I have a strange problem
<LiamW> are there errors that begin; ...; rescue; end cannot catch?
karapetyan has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
bmurt has joined #ruby
<LiamW> RUBY_VERSION = "2.5.0" etc
Mia has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
<LiamW> never mind I'm dumb
<LiamW> it's an Exception not an Error
LiamW has left #ruby ["WeeChat 2.0.1"]
luoliyan has joined #ruby
luoliyan has quit [Max SendQ exceeded]
<havenwood> al2o3-cr: ?y.yield_self.cycle &Kernel.method(:puts)
<havenwood> al2o3-cr: What a fine implementation of the classic "yes" command. ;-P
<havenwood> I guess it's quite a bit longer than: loop { puts 'y' }
<al2o3-cr> havenwood: hehe, yeah, i jumped the gun ;)
<havenwood> pwntrik: Inside `class Tumble` do an `extend Tinder`.
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
SteenJobs has quit [Quit: SteenJobs]
cyberg has quit [Remote host closed the connection]
SteenJobs has joined #ruby
<al2o3-cr> havenwood: you told me you don't need Kernel at top-level
<havenwood> al2o3-cr: that's true
<havenwood> just being silly with the code
<al2o3-cr> ah ;)
<havenwood> i do prefer private_method, which does need the explicitness
<al2o3-cr> true
<havenwood> &Kernel.public_metho9
<havenwood> i mean
<havenwood> over &method(:puits
<havenwood> grr, can't type
<al2o3-cr> no worries
JoshS has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> >> require 'json/add/time'; JSON.load({all_the_time_in_the_world: Time.now}.to_json) # or json/add/core why didn't i know about this :/
<ruby[bot]> al2o3-cr: # => {"all_the_time_in_the_world"=>2018-03-20 02:11:52 +0000} (https://eval.in/974881)
<al2o3-cr> when? please tell me when?
<al2o3-cr> obviously it's very ruby specific, but still.
erlend has quit [Ping timeout: 256 seconds]
erlend has joined #ruby
jordanm has quit [Remote host closed the connection]
jordanm has joined #ruby
<al2o3-cr> >> require 'json/add/struct'; JSON.load({foo: Struct.new("Foo", :x, :y).new}.to_json)
<ruby[bot]> al2o3-cr: # => {"foo"=>#<struct Struct::Foo x=nil, y=nil>} (https://eval.in/974885)
<al2o3-cr> TIL
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
darkhanb has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
<al2o3-cr> JSON.parse ignores the json_class key therefore you have to use JSON.load. therefore meaning trusted input.
<al2o3-cr> which makes sense as it's specific serialization
ramfjord has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
voker57 has quit [Remote host closed the connection]
voker57 has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
DTZUZO has joined #ruby
gizmore|2 has joined #ruby
qyrlr has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
qyrlr has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
xuyuheng has joined #ruby
houhoulis has quit [Remote host closed the connection]
jamesaxl has joined #ruby
SteenJobs has quit [Quit: peaceee]
lunarkitty7 has quit [Ping timeout: 276 seconds]
kn-928 has quit [Ping timeout: 260 seconds]
dinfuehr_ has joined #ruby
Vingador has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
Toggi3 has joined #ruby
xall has joined #ruby
sspreitz has quit [Ping timeout: 256 seconds]
sspreitz has joined #ruby
xall has quit [Ping timeout: 256 seconds]
AJA4350 has quit [Quit: AJA4350]
workmad3 has joined #ruby
orbyt_ has joined #ruby
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
p4tch3s has quit [Ping timeout: 240 seconds]
suhdood has joined #ruby
lytol has joined #ruby
white_lilies has quit [Ping timeout: 240 seconds]
pwntrik has quit []
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has joined #ruby
cschneid has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
Toggi3 has quit [Ping timeout: 260 seconds]
suhdood has quit [Ping timeout: 248 seconds]
Ropeney has joined #ruby
Remuz has joined #ruby
Remuz has left #ruby [#ruby]
milardovich has joined #ruby
Vingador has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
imneuncu has joined #ruby
imneuncu has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 264 seconds]
Asa_ has joined #ruby
Asa_ is now known as Guest16453
Guest16453 has quit [Remote host closed the connection]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luoliyan has joined #ruby
luoliyan has quit [Max SendQ exceeded]
luoliyan has joined #ruby
luoliyan has quit [Max SendQ exceeded]
alfiemax has joined #ruby
luoliyan has joined #ruby
luoliyan has quit [Max SendQ exceeded]
dstrunk has joined #ruby
luoliyan has joined #ruby
luoliyan has quit [Max SendQ exceeded]
luoliyan has joined #ruby
luoliyan has quit [Client Quit]
erlend has quit [Ping timeout: 264 seconds]
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
trautwein has joined #ruby
erlend has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
_main_ has joined #ruby
ghormoon has quit [Ping timeout: 252 seconds]
cypher057PBL has joined #ruby
cypher057PBL has quit [K-Lined]
xuyuheng has quit [Ping timeout: 260 seconds]
james_ has joined #ruby
_main_ is now known as __main__
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
james541 has quit [Ping timeout: 240 seconds]
ghormoon has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
xuyuheng has joined #ruby
za1b1tsu has joined #ruby
duderonomy has joined #ruby
xuyuheng has quit [Ping timeout: 260 seconds]
za1b1tsu has quit [Quit: Leaving]
karapetyan has joined #ruby
Toggi3 has joined #ruby
xuyuheng has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
harrycs has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harrycs has quit [Ping timeout: 240 seconds]
Guest33581 is now known as arekushi
postmodern has quit [Quit: Leaving]
Ropeney has joined #ruby
konsolebox has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
Yzguy has joined #ruby
karapetyan has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CrazyEddy has quit [Ping timeout: 248 seconds]
shuforov has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
dionysus69 has joined #ruby
cschneid has quit [Remote host closed the connection]
c0ncealed has quit [Remote host closed the connection]
milardovich has joined #ruby
c0ncealed has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
jimmylu2333-rpi3 has quit [Ping timeout: 248 seconds]
Ropeney has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 264 seconds]
CrazyEddy has joined #ruby
oleo has quit [Quit: Leaving]
jimmylu2333-rpi3 has joined #ruby
bijan_ has joined #ruby
Burgestrand has joined #ruby
sidx64 has joined #ruby
za1b1tsu has joined #ruby
ramfjord has joined #ruby
stoffus has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuyuheng has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
zipace has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
graft has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
karapetyan has quit [Remote host closed the connection]
sidx64 has quit [Client Quit]
reber has joined #ruby
shuforov has quit [Ping timeout: 256 seconds]
za1b1tsu has quit [Remote host closed the connection]
venmx has joined #ruby
cschneid has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
za1b1tsu has joined #ruby
c_nick has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
Yzguy has quit [Quit: Zzz...]
c_nick has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
duderonomy has joined #ruby
sidx64 has quit [Ping timeout: 240 seconds]
arekushi has quit [Ping timeout: 245 seconds]
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kriskropd has quit [Ping timeout: 248 seconds]
bijan_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
sidx64 has joined #ruby
karapetyan has joined #ruby
sidx64 has quit [Client Quit]
darkhanb has quit [Quit: Textual IRC Client: www.textualapp.com]
darkhanb has joined #ruby
shuforov has joined #ruby
james__ has joined #ruby
james_ has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
imode has quit [Ping timeout: 256 seconds]
suukim has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
workmad3 has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapety_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 268 seconds]
karapety_ has quit [Remote host closed the connection]
tomphp has quit [Read error: Connection reset by peer]
conta has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
tomphp has quit [Client Quit]
minimalism has quit [Quit: minimalism]
karapetyan has joined #ruby
guanine has quit [Quit: byebye]
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
andikr has joined #ruby
arekushi has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
conta1 has joined #ruby
ta_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
apeiros has quit [Remote host closed the connection]
karapetyan has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 264 seconds]
conta1 is now known as conta
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
venmx has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
ryan_ford has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
duderonomy has joined #ruby
momomo has joined #ruby
<momomo> hellow
<momomo> how do you out in an erb file without <%= ?
<momomo> is tehre an out ("ssss")
alfiemax has quit [Remote host closed the connection]
sidx64 has joined #ruby
mtkd has joined #ruby
alfiemax has joined #ruby
tvw has joined #ruby
ramfjord has joined #ruby
n008f4g_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 260 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]
milardovich has joined #ruby
sidx64 has joined #ruby
<Burgestrand> momomo why?
<dminuoso> Note to self.
<dminuoso> Ruby has strict evaluation.
clemens3 has joined #ruby
<dminuoso> idg = 1.step.map { |n| "co-radio-#{id}-#{n}" }
<dminuoso> ;_;
<momomo> Burgestrand: because I am outing in a loop basically .. to see the value of a variable basically
<momomo> puts ?
<momomo> Is tehre a way to sort a hashmap into an array ?
<momomo> by keys or a comparator ?
<Burgestrand> momomo you can loop in erb, that's not a problem
* dminuoso smells a Java warrior
sidx64 has quit [Client Quit]
milardovich has quit [Ping timeout: 264 seconds]
konsolebox has quit [Ping timeout: 268 seconds]
<momomo> Burgestrand: I have a hash first ... right now i have this:
<Burgestrand> momomo a Hash is Enumerable
sidx64 has joined #ruby
<momomo> but there seems to be an error
<momomo> also, what is the key of each ?
<momomo> i am getting a, b, are the objects .. but I need the key as well
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
schneider has joined #ruby
<momomo> maybe I can iterate them and add them to a SortedArray or BinaryArray ?
<momomo> then I can push to that instead and they will be sorted
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<momomo> However, can I new that with a comparator ?
<Burgestrand> momomo What does your data look like?
<Burgestrand> momomo And what do you want it to look like?
<Burgestrand> momomo It would help your case greatly if you could post a small self-contained example that can be executed to see what the problem is
<momomo> my data is { key1 : {}, key2: {} } ... i want them sorted by key
<momomo> basically
karapetyan has quit [Remote host closed the connection]
<momomo> but I would like to sort when the digits starts
<momomo> on key
<Burgestrand> >> { g: "A", r: "B", e: "C", a: "D", t: "E", f: "F", o: "G", x: "H" }.sort_by { |key, value| key }
<ruby[bot]> Burgestrand: # => [[:a, "D"], [:e, "C"], [:f, "F"], [:g, "A"], [:o, "G"], [:r, "B"], [:t, "E"], [:x, "H"]] (https://eval.in/974982)
schneider has quit [Ping timeout: 264 seconds]
<Burgestrand> It was surprisingly hard to write out the raw data for that example hash, two sequences one follows a word and the other one follows the alphabet… funny.
<Burgestrand> momomo ^ that's how sort_by works
konsolebox has joined #ruby
<dminuoso> >> [('a'..'f').to_a.map(&:to_sym).shuffle, ('A'..'F').to_a.shuffle].transpose.to_h # Burgestrand
<ruby[bot]> dminuoso: # => {:f=>"E", :c=>"C", :a=>"D", :d=>"B", :b=>"F", :e=>"A"} (https://eval.in/974986)
<dminuoso> or maybe
<dminuoso> >> ('a'..'f').to_a.map(&:to_sym).shuffle.zip(('A'..'F').to_a.shuffle]).to_h # Burgestrand
<ruby[bot]> dminuoso: # => /tmp/execpad-3a428f63df4b/source-3a428f63df4b:2: syntax error, unexpected ']', expecting ')' ...check link for more (https://eval.in/974987)
yohji has joined #ruby
<Burgestrand> dminuoso I think this is a good example where brevity ≠ clarity :D
<dminuoso> >> ('a'..'f').to_a.map(&:to_sym).shuffle.zip(('A'..'F').to_a.shuffle).to_h # Burgestrand
<ruby[bot]> dminuoso: # => {:d=>"E", :f=>"A", :a=>"D", :c=>"B", :e=>"F", :b=>"C"} (https://eval.in/974988)
schneider has joined #ruby
<momomo> dminuoso: is that for me ?
<dminuoso> Burgestrand: We just need an eval bot where you can define bindings
<Burgestrand> >> bindings = "haha"
<dminuoso> so you can define things bit by bit, instead of forcing everything into one line
<ruby[bot]> Burgestrand: # => "haha" (https://eval.in/974989)
<Burgestrand> momomo I think you'll find that if you attempt to use `sort_by` you'll get exactly what you're looking for
karapetyan has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
<momomo> Burgestrand: thanks!
duderonomy has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
<al2o3-cr> data.map { |k, v| {"#{k}": v} } if structure is the same
<al2o3-cr> don't listen to that at all.
<Burgestrand> :)
venmx has joined #ruby
<al2o3-cr> this old rosie is good stuff.
guille-moe has joined #ruby
HalcyonicStorm has quit [Ping timeout: 256 seconds]
mostlybadfly has quit [Ping timeout: 256 seconds]
maciuszek has quit [Ping timeout: 256 seconds]
kspencer has quit [Ping timeout: 256 seconds]
rann has quit [Ping timeout: 256 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 256 seconds]
jnix has quit [Read error: Connection reset by peer]
pfg has quit [Ping timeout: 256 seconds]
jnix has joined #ruby
<al2o3-cr> >> [1,2,3].map &:-@
<ruby[bot]> al2o3-cr: # => [-1, -2, -3] (https://eval.in/974991)
<Burgestrand> Ah, a barf-map!
<Burgestrand> Or, well, a barf-map-with-a-hat!
pfg has joined #ruby
<al2o3-cr> hehe
HalcyonicStorm has joined #ruby
mostlybadfly has joined #ruby
rann has joined #ruby
maciuszek has joined #ruby
kspencer has joined #ruby
aupadhye has joined #ruby
Fire-Dragon-DoL has joined #ruby
<al2o3-cr> >> class Array def ~@() sort_by &:object_id end end; ~[*1..100].shuffle
<ruby[bot]> al2o3-cr: # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, ...check link for more (https://eval.in/974993)
aufi has joined #ruby
<al2o3-cr> i should stop abusing the bot now
<al2o3-cr> :(
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
za1b1tsu has quit [Max SendQ exceeded]
za1b1tsu has joined #ruby
Danielss89 has joined #ruby
<al2o3-cr> i want a x270
za1b1tsu has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
bijan_ has joined #ruby
karapetyan has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Antiarc_ has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
erlend has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
erlend has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
Antiarc has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Client Quit]
_Joes_ has quit [Remote host closed the connection]
sidx64 has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 268 seconds]
jimmylu2333-fedo has joined #ruby
jimmylu2333-fedo has quit [Client Quit]
pynfwem has joined #ruby
jimmylu2333-fedo has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
konsolebox has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimmylu2333-fedo has quit [Quit: WeeChat 2.0.1]
jimmylu2333-fedo has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arekushi has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
za1b1tsu has joined #ruby
pynfwem has quit [Remote host closed the connection]
nahra has joined #ruby
schneider has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit []
riotjones has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
Toggi3 has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
kriskropd has joined #ruby
Papierkorb has joined #ruby
venmx has quit [Remote host closed the connection]
sidx64 has joined #ruby
konsolebox has joined #ruby
kliq has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
kliq has quit [Remote host closed the connection]
kliq has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
nikivi has joined #ruby
milardovich has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
ChaosBringer has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
sdfsdf has joined #ruby
konsolebox has joined #ruby
Serpent7776 has joined #ruby
guacamole has joined #ruby
xuyuheng has quit [Ping timeout: 260 seconds]
guacamole has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
sdfsdf has quit [Ping timeout: 260 seconds]
karapetyan has quit [Read error: Connection reset by peer]
venmx has joined #ruby
alfiemax has quit []
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
Nobun has joined #ruby
<Nobun> Hi I have two questions about ruby and embedding
karapetyan has joined #ruby
<Nobun> 1) question is more about ruby in general, (remembering that the final objective is to embed ruby into an application) and it is "how to properly add directories to LOAD_PATH)?
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<Nobun> the examples I saw googling are not clear. I mean... how should I add a specific path?
<dminuoso> Nobun: 1) `$:.unshift foo`
karapetyan has quit [Read error: Connection reset by peer]
<dminuoso> or `$LOAD_PATH.unshift` if you prefer
karapetyan has joined #ruby
momomo has quit [Remote host closed the connection]
<Nobun> yeah I saw but: A) what unshift exactly does?
<dminuoso> Nobun: .push but from the other side.
karapetyan has quit [Read error: Connection reset by peer]
<Nobun> so it is like prepending instead of appending?
<dminuoso> &ri Array#unshift
<dminuoso> Nobun: Right.
karapetyan has joined #ruby
ramfjord has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
<Nobun> dminuoso: could this be done also in an application wich will embed ruby?
<Nobun> I mean in the C code?
mtkd has quit [Ping timeout: 245 seconds]
<dminuoso> Nobun: Yeah. Do you intend to embed full ruby, or just mruby?
<Nobun> I don't know the difference, to be honest. I need ruby for some specific task in my applications. Let me see my CMakeFile...
<dminuoso> Nobun: mruby is a cut down ruby tailored for embedding into other applications
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
mtkd has joined #ruby
<Nobun> At the current state I am embedding ruby (since I use 'find_package(Ruby 1.9)' on CMakeLists.txt)
ramfjord has quit [Ping timeout: 248 seconds]
<dminuoso> Nobun: You really should probably try to use mruby.
<Nobun> but I will consider also mruby. At the moment I focus my question to full ruby
<dminuoso> Nobun: What do you intend to use ruby for?
<dminuoso> Nobun: Well, you'd have to seriously screw around ruby itself to make this work.
<Nobun> my application will (optionally) embed ruby to try to extract informations from some ruby mashalized binary files
<Nobun> the task of ruby will be limited to this task (as my application will embed python as primary scripting language)
<dminuoso> Nobun: how are they marshalled?
<dminuoso> Using ::Marshal ?
<dminuoso> Yeah uh..
<dminuoso> Nobun: use mruby.
<Nobun> Yeah... I assume. But not sure, since it is not completely a ruby file. I am developing an application for translating RpgMaker VX Ace projects (and also MV, but MV uses json files so not problem there)
alfiemax has joined #ruby
<Nobun> at the current state (without embed) the "extract text phase into .po files" can be done within Rpgmaker itself with two ruby script. But the process could be a little problematic for the end-user
konsolebox has quit [Ping timeout: 240 seconds]
<Nobun> the idea is to allow the application to perform directly this task.
<Nobun> dminuoso: however those files should be marshalled with Marshal
alfiemax has quit [Remote host closed the connection]
<Nobun> (however writing an additional line in ruby_file instead of embedding in the application could be not a problem, after all)
xuyuheng has joined #ruby
<Nobun> the question 2 is about embedding itself. More in detail about managing error (more or less like the interpreter).
WhereIsMySpoon has joined #ruby
konsolebox has joined #ruby
<Nobun> The problem is that I did a first embedding test, adding an Embedded C Ruby Class and it works
<Nobun> but if I will have errors, they will be not displayed like I could do in the interpreter. So I would like to ask if there is an API function I should use to "capture" all error messages cought in the script (like the interpreter does)
alfiemax has joined #ruby
conta has quit [Ping timeout: 240 seconds]
nahra has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 240 seconds]
arne has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
<arne> someone here having experience with "shrine"?
alfiemax has joined #ruby
<arne> i upload files to a s3 bucket, which reference gets stored with shrine
marr has joined #ruby
<arne> now i work on that file.. but shrine downloads the file over and over and over
<arne> (that resulted in a amazon bill of 800 bucks once, which they nicely reverted)
<arne> it's really odd that this gem has no cache
psychicist__ has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
momomo_ has joined #ruby
<momomo_> ola seniors
<momomo_> is it possible to set a partial in a partial ? without extrating to a separate file ?
<momomo_> create a local partial kind of ... from a string or variable
ryan_ford has quit [Ping timeout: 240 seconds]
<arne> what is a local partial
konsolebox has joined #ruby
<arne> i feel like there is some explaining missing
arne is now known as Bish
<Bish> momomo_: are you trying to partition a file?
alex`` has joined #ruby
<momomo_> i want to set a partial locally ... rather than extract content to a separate file .. the content in the separate partial .erb ... is desired to remain in the same file as the caller basically
<Bish> oh, you want to split a class or module?
<momomo_> Bish: it's an erb file
<momomo_> template
milardovich has joined #ruby
<Bish> well you should work with whatever the framework you're using is giving you, but erb itself does not have such a feature, i guess
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
<momomo_> and I can extrat html and what not into a partial.erb right? ... rather than putting it in a separate file .. i would like to declare the body of that partial into a variable than can then be invoked in the same manner as when you load it from a file
tomphp has joined #ruby
<momomo_> Bish: example <%= partial 'partials/checkout/_generic-module-box-row', :locals => {:row => row.merge({key:key})} %>
<momomo_> is partial call here a framework specifik function ?
<Bish> im guessing, yes, but i am not sure
milardovich has quit [Ping timeout: 240 seconds]
<Nobun> dminuoso: thank for your replies. However I taked a look at mruby, but I think that mruby introduces some additional problems so I will be stick in the full Ruby.
Guest33581 has joined #ruby
<Bish> dminuoso: still not sleeping?
<Bish> if you look at that, you can see that erb does not actually do anything except for
<Bish> <% > <%= >
<Bish> so yes, i'd say this is more of a #{framework} question than an erb one
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> and i could only help you, if you were using roda
xuyuheng has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
zapata has quit [Read error: Connection reset by peer]
<momomo_> Bish: where can I find a reference to the partial method ?
<momomo_> so that it can ignore opening a file and use it's content which is a string eventually
schneider has quit [Ping timeout: 256 seconds]
conta has joined #ruby
<Bish> momomo_: what is your framework?
<Bish> rails?
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
im0nde has joined #ruby
momomo_ has quit [Remote host closed the connection]
KeyJoo has joined #ruby
conta has quit [Ping timeout: 248 seconds]
<Bish> (and there is #rails)
workmad3 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erlend has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
xuyuheng has joined #ruby
tomphp has quit [Client Quit]
erlend has joined #ruby
sidx64 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amatas has joined #ruby
schneider has joined #ruby
amatas has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 240 seconds]
amatas has joined #ruby
megamosaren has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amatas has quit [Client Quit]
KeyJoo has quit [Ping timeout: 264 seconds]
ryan_ford has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
kapil___ has joined #ruby
schneider has joined #ruby
banisterfiend has joined #ruby
jimmylu2333-fedo has quit [Ping timeout: 276 seconds]
schneider has quit [Ping timeout: 246 seconds]
drale2k_ has joined #ruby
milardovich has joined #ruby
schneider has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
conta has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
KeyJoo has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
Toggi3 has joined #ruby
conta has quit [Ping timeout: 268 seconds]
drale2k_ has quit [Ping timeout: 264 seconds]
conta has joined #ruby
Toggi3 has quit [Ping timeout: 240 seconds]
Toggi3 has joined #ruby
amatas has joined #ruby
apparition has joined #ruby
dstrunk has joined #ruby
dstrunk has quit [Client Quit]
Toggi3 has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
ferr has left #ruby [#ruby]
dstrunk has joined #ruby
dstrunk has quit [Client Quit]
jimmylu2333-fedo has joined #ruby
ldnunes has joined #ruby
shinnya has joined #ruby
james__ has quit [Quit: This computer has gone to sleep]
sidx64 has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
fribmendes_away is now known as fribmendes
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
AJA4350 has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
ramfjord has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
<Nobun> I try to bump my second question, with a code snippet: http://dpaste.com/3VJSP8V
<Nobun> this piece of c++ code should keep some paramaters (not important for the question) and then run the "edb.rb" script
sidx64 has quit [Client Quit]
<Nobun> I follow a code snippet I found around the net. However the "if status" seems not working, since the function rubycall::errormsg (a function wich should print into a window the error catched by line 13-14) seems not called at all.
sidx64 has joined #ruby
<Nobun> So... how to "capture" error messages and show them in my application wich embeds (full) ruby?
ramfjord has quit [Ping timeout: 240 seconds]
sidx64 has quit [Client Quit]
mtkd has quit [Ping timeout: 264 seconds]
Psybur has joined #ruby
xuyuheng has quit [Ping timeout: 264 seconds]
Psybur_ has joined #ruby
mtkd has joined #ruby
dionysus69 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
cschneid has joined #ruby
apeiros has joined #ruby
synthroi_ has joined #ruby
milardovich has joined #ruby
Psybur has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
jimmylu2333-fedo has quit [Ping timeout: 265 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit [Ping timeout: 260 seconds]
xuyuheng has joined #ruby
sidx64 has quit [Client Quit]
alex`` has joined #ruby
momomo_ has joined #ruby
<momomo_> I got logged out
<momomo_> Did I miss anything?
<momomo_> Nobody responded to my last
<momomo_> ?
<Nobun> momomo_: Bish | momomo_: what is your framework? │ agrecascino
<Nobun> │11:40:58 Bish | rails?
<momomo_> middleman
<momomo_> but i believe that was before my last message
<Nobun> those are the last replies
sidx64 has joined #ruby
<momomo_> Nobun: thanks!
Psybur__ has joined #ruby
kliq has quit [Ping timeout: 264 seconds]
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
yohji has quit [Ping timeout: 256 seconds]
sidx64 has quit [Client Quit]
vondruch has quit [Quit: vondruch]
Psybur_ has quit [Ping timeout: 256 seconds]
Mike11 has joined #ruby
megamosaren has quit [Ping timeout: 264 seconds]
<momomo_> So I have this now:
<momomo_> It is working somewhat .. but I can't refer to the variables
<momomo_> of the model
<momomo_> Can someone help with that?
vondruch has joined #ruby
Zaab1t has joined #ruby
perzival has joined #ruby
sidx64 has joined #ruby
John_Ivan has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
yohji has joined #ruby
fribmendes is now known as fribmendes_away
sidx64 has quit [Ping timeout: 240 seconds]
stairmast0r has quit [Quit: bye]
fribmendes_away is now known as fribmendes
mooe has quit [Quit: Connection closed for inactivity]
<kke> what's prettier than self.class.method_name?
stairmast0r has joined #ruby
c_nick has joined #ruby
c_nick has quit [Remote host closed the connection]
sidx64 has joined #ruby
<dminuoso> kke: F.method_name
suukim has quit [Quit: Konversation terminated!]
coderphive has joined #ruby
milardovich has quit [Remote host closed the connection]
coderphive has quit [Client Quit]
schneider has quit [Ping timeout: 264 seconds]
Toggi3 has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shuforov has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
tomphp has joined #ruby
bijan_ has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
shuforov has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
Toggi3 has quit [Ping timeout: 246 seconds]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
erlend has joined #ruby
KeyJoo has quit [Ping timeout: 268 seconds]
WhereIsMySpoon has joined #ruby
milardovich has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
sidx64 has joined #ruby
rsh has joined #ruby
milardovich has quit [Remote host closed the connection]
schneider has joined #ruby
jcalla has joined #ruby
alfiemax has joined #ruby
cdg has joined #ruby
hinbody has quit [Quit: leaving]
shinnya has quit [Quit: ZNC - http://znc.in]
John_Ivan has quit [Read error: Connection reset by peer]
leitz has joined #ruby
hinbody has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
alfiemax has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inoperable has joined #ruby
Inoperable has quit [Client Quit]
amatas has quit [Quit: amatas]
ldnunes has quit [Ping timeout: 256 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
Inoperable has joined #ruby
alfiemax has quit [Remote host closed the connection]
amatas has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
sidx64 has joined #ruby
im0nde has quit [Quit: im0nde]
nicesignal has quit [Remote host closed the connection]
c0ncealed has quit [Read error: Connection reset by peer]
nicesignal has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
c0ncealed has joined #ruby
nowhere_man has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
bw_ has quit [Ping timeout: 240 seconds]
jecht has joined #ruby
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
ldnunes has joined #ruby
Rapture has joined #ruby
ciscam has quit [Ping timeout: 246 seconds]
wsmoak has joined #ruby
pd has joined #ruby
pd is now known as Guest80639
<momomo_> Hello again! I haven' given up
<momomo_> It says: filename = 'example.rhtml' # @arg1 and @arg2 are used in example.rhtml
<momomo_> How would they be used ?
<momomo_> I tried
ciscam has joined #ruby
<momomo_> But I can't get it to read any passed stuff
<momomo_> But it can see the surronding variables
<momomo_> (non passed)
<momomo_> in that template
ciscam has quit [Read error: Connection reset by peer]
ciscam has joined #ruby
bw_ has joined #ruby
ramfjord has joined #ruby
Toggi3 has joined #ruby
jrafanie has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
Toggi3 has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
harrycs has joined #ruby
rabajaj has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 240 seconds]
perzival has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
perzival has joined #ruby
harrycs has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
Toggi3 has joined #ruby
<momomo_> I think i've figured it out
<momomo_> Is there a way now to declare a string without having to escape anything ???
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has joined #ruby
coderphive has joined #ruby
fribmendes is now known as fribmendes_away
DTZUZO has joined #ruby
netherwolfe has joined #ruby
aufi_ has joined #ruby
ramfjord has joined #ruby
aufi has quit [Ping timeout: 265 seconds]
sldetracking has quit [Quit: Leaving]
ta__ has joined #ruby
kn-928 has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
rabajaj has joined #ruby
Guest80639 has quit [Remote host closed the connection]
cschneid has joined #ruby
Guest80639 has joined #ruby
cschneid has quit [Remote host closed the connection]
Guest80639 has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 268 seconds]
nacho__ has quit [Quit: leaving]
cschneid has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has joined #ruby
tomphp has joined #ruby
rippa has joined #ruby
synthroi_ has quit [Remote host closed the connection]
maufart__ has joined #ruby
catbusters has joined #ruby
creat has quit [Ping timeout: 252 seconds]
shadeslayer_ is now known as shadeslayer
mtkd has quit [Ping timeout: 260 seconds]
aufi_ has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
momomo_ has quit [Remote host closed the connection]
synthroid has joined #ruby
synthroi_ has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
vutral|kali has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
cschneid has quit [Remote host closed the connection]
ta__ has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
pastorinni has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
coderphive has quit [Quit: coderphive]
coderphive has joined #ruby
jcarl43 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
cagomez has joined #ruby
bmurt has joined #ruby
jeecht has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
ccooke_ is now known as ccooke
alfiemax has joined #ruby
cyberg has joined #ruby
jecht has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
stoffus has quit [Ping timeout: 260 seconds]
[Butch] has joined #ruby
imode has joined #ruby
cschneid has joined #ruby
za1b1tsu has joined #ruby
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vutral|kali has quit [Ping timeout: 240 seconds]
jimmylu2333-fedo has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
FrostCandy has joined #ruby
desperek has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
duderonomy has joined #ruby
kn-928 has quit [Quit: WeeChat 2.1]
jamesaxl has quit [Read error: Connection reset by peer]
yohji has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
conta has quit [Ping timeout: 240 seconds]
c_nick has joined #ruby
yeticry has quit [Ping timeout: 263 seconds]
milardovich has quit [Remote host closed the connection]
shuforov has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
<c_nick> how can i capture the data from the following string {name|color:red}age{address|color:green} and split it into three components {name|color:red} {address|color:green} age
perzival has quit [Ping timeout: 256 seconds]
za1b1tsu has quit [Remote host closed the connection]
schneider has joined #ruby
pd has joined #ruby
pd is now known as Guest12828
nadir has quit [Quit: Connection closed for inactivity]
yohji has joined #ruby
jeecht is now known as jecht
tvw has quit [Remote host closed the connection]
harrycs has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> >> "{name|color:red}age{address|color:green}".scan(/\{(\w+)\|color:(\w+)\}/) # @ c_nick
<ruby[bot]> apeiros: # => [["name", "red"], ["address", "green"]] (https://eval.in/975203)
<apeiros> oh
<apeiros> you want age as a component too…
<apeiros> >> "{name|color:red}age{address|color:green}".scan(/\{(\w+)\|color:(\w+)\}|[^\{]+/) # might serve as a start
<ruby[bot]> apeiros: # => [["name", "red"], [nil, nil], ["address", "green"]] (https://eval.in/975204)
<apeiros> d'oh
<apeiros> right, if I have captures, everything needs one…
<apeiros> >> "{name|color:red}age{address|color:green}".scan(/\{(\w+)\|color:(\w+)\}|([^\{]+)/)
<ruby[bot]> apeiros: # => [["name", "red", nil], [nil, nil, "age"], ["address", "green", nil]] (https://eval.in/975205)
<c_nick> {name|color:red} should become name color:red
tomphp has joined #ruby
<WhereIsMySpoon> thats not what you specified before
<havenwood> >> '{name|color:red}age{address|color:green}'.scan(/[^}]*}/).flat_map { |s| if s.start_with? '{'; s; else; outside, _, inside = s.partition('{'); [outside, "{#{inside}"]; end }
<ruby[bot]> havenwood: # => ["{name|color:red}", "age", "{address|color:green}"] (https://eval.in/975206)
<WhereIsMySpoon> who made up this data format? o.O
<apeiros> c_nick: well, you have something to work with now
<apeiros> I'm sure you can give it a try :)
<apeiros> WhereIsMySpoon: looks a bit like some php template engine I used like a decade ago
<apeiros> where `name` is the expression which provides the value, and everything after | applies some kinds of processors to that value
<c_nick> >> {name|color:red}age{address|color:green}".scan(/\{(\w+)\}|([^\{]+)/)
<ruby[bot]> c_nick: # => /tmp/execpad-96f26d3c2423/source-96f26d3c2423:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975207)
<havenwood> c_nick: => [[nil, "name|color:red}age"], [nil, "address|color:green}"]]
darkhanb has joined #ruby
<WhereIsMySpoon> havenwood: what on earth is that code?
<WhereIsMySpoon> outside, _, inside ?
<WhereIsMySpoon> im curious
<havenwood> WhereIsMySpoon: In my defense, i haven't had coffee!
<c_nick> >> {name|color:red}age{address|color:green}".scan(/\{(\w+)\}
<ruby[bot]> c_nick: # => /tmp/execpad-914e7f830ab6/source-914e7f830ab6:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975209)
<c_nick> >> {name|color:red}age{address|color:green}".scan(/\{(\w+)\}}
<ruby[bot]> c_nick: # => /tmp/execpad-7648855a8bff/source-7648855a8bff:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975211)
<c_nick> >> {name|color:red}age{address|color:green}".scan(/\{(\w+)\})
<ruby[bot]> c_nick: # => /tmp/execpad-33a93b41432a/source-33a93b41432a:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975212)
<c_nick> damn
<havenwood> c_nick: #=> []
<c_nick> >> {name|color:red}age{address|color:green}".scan(/\{(\w+)\}/)
<havenwood> c_nick: #=> []
<WhereIsMySpoon> you broke the bot
<c_nick> no i missed the /
<c_nick> WhereIsMyBot
<c_nick> :)
<WhereIsMySpoon> havenwood: it wasnt accusatory, i was just curious
<havenwood> WhereIsMySpoon: 'example'.partition 'x' #=> ["e", "x", "ample"]
za1b1tsu has joined #ruby
<WhereIsMySpoon> sure
<WhereIsMySpoon> oh!
<havenwood> before_x, x, after_x = 'example'.partition 'x'
<WhereIsMySpoon> right, ruby has multiple variable assignments in one expression
<c_nick> i agree with WhereIsMySpoon the solution has a lot of layers will be nice to have a simple one
<havenwood> c_nick: You could use StringScanner, or maybe a bit fancier regexp.
<havenwood> c_nick: will the thing between the brackets ("age" in your example) ever begin or end the string?
<havenwood> or is it always?: }age{
<WhereIsMySpoon> havenwood’s solution looks nicest so far i think
<c_nick> nope it can start or end
<havenwood> mine above just doesn't account for an ending one
<c_nick> i am pretty sure this is possible via regex
<c_nick> i simply cannot get my head around it
<havenwood> the regexp for a single pass is pretty complex
<havenwood> two passes is easier
<havenwood> yeah, i'd probably do two passes with regexp or stringscanner
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
<havenwood> c_nick: I'll give you a multiple regexp example to consider, sec.
tomphp has quit [Client Quit]
einarj has quit [Remote host closed the connection]
jimmylu2333-fedo has quit [Remote host closed the connection]
tobiasvl has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
<havenwood> >> s = '{name|color:red}age{address|color:green}'; [s[/\A\w*/], *s.scan(/(?<=})[^{}]*/), *s.scan(/{[^}]*}/)].reject(&:empty?)
<havenwood> c_nick: ^
<ruby[bot]> havenwood: # => ["age", "{name|color:red}", "{address|color:green}"] (https://eval.in/975223)
<havenwood> c_nick: I didn't bother to preserve order, but it does beginning, middle or end.
<c_nick> (y)
<havenwood> >> s = 'before{name|color:red}age{address|color:green}after'; [s[/\A\w*/], *s.scan(/(?<=})[^{}]*/), *s.scan(/{[^}]*}/)].reject(&:empty?)
<ruby[bot]> havenwood: # => ["before", "age", "after", "{name|color:red}", "{address|color:green}"] (https://eval.in/975224)
<c_nick> wow
<havenwood> the first bit with the \w is probably a little brittle, but that's easily replaced
tvl has joined #ruby
tomphp has joined #ruby
<c_nick> i forgot what A stood for
tvl is now known as tobiasvl
<havenwood> beginning of string: \A
<c_nick> wasnt that ^
<havenwood> c_nick: this is better: [s[/\A[^{]*/], *s.scan(/(?<=})[^{}]*/), *s.scan(/{[^}]*}/)].reject(&:empty?)
<c_nick> i need to study this but you have been a big help to me
<c_nick> many thanks havenwood
andikr has quit [Remote host closed the connection]
<havenwood> c_nick: ^ that version is solely based on { and } so it should handle more edgecases. you're welcome
c_nick has quit [Quit: ciaos]
<havenwood> Happy coding!
schneider has quit [Ping timeout: 256 seconds]
eckhardt_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 252 seconds]
kliq has joined #ruby
suukim has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
maufart__ has quit [Quit: Leaving]
raynold has quit [Quit: Connection closed for inactivity]
erlend has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
Guest12828 has quit [Quit: Leaving]
za1b1tsu has quit [Quit: Leaving]
erlend has joined #ruby
pd has joined #ruby
pd has quit [Max SendQ exceeded]
Serpent7776 has quit [Quit: Leaving]
mtkd has quit []
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* havenwood peers into the mysterious future...
<havenwood> module Kernel; alias then yield_self end
perzival has joined #ruby
<WhereIsMySpoon> wait, alias?
<WhereIsMySpoon> is this going to be some form of #define
<havenwood> WhereIsMySpoon: It looks like Matz has accepted an alias for #yield_self. I can't tell if the alias will be "then" or "promise" or what.
mtkd has joined #ruby
lytol has quit [Remote host closed the connection]
creat has joined #ruby
<havenwood> investigating ;-)
tomphp has joined #ruby
<WhereIsMySpoon> i have no idea what yield_self is :D
<WhereIsMySpoon> *investigates*
<guacamole> #yield_self is one of my fav new things in 2.5 :)
<guacamole> although it took like 3 explanations for me to understand it lol
* havenwood high fives guacamole
<WhereIsMySpoon> ah i see
<WhereIsMySpoon> i understand
<WhereIsMySpoon> its similar to what dminuoso was talking to me about yesterday
jottr has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
* guacamole thanks havenwood for explaining 3 times
<havenwood> haha, np
<WhereIsMySpoon> allows you to chain method calls that you would normally nest
SeepingN has joined #ruby
<WhereIsMySpoon> then seems like a reasonable alias
<WhereIsMySpoon> its kinda like the promise chaining stuff in js
ramfjord has joined #ruby
lunarkitty7 has joined #ruby
jeecht has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<guacamole> its like tap but returns the receiver
<guacamole> i think
<havenwood> guacamole: Yup, and instead of raising when no block is provided, it returns a sized enumerator, always size one with just the receiver as the thing.
<havenwood> raising when no block is provided, like tap*
<havenwood> >> 42.tap
<apeiros> oh, dminuoso will be a fan of that
<ruby[bot]> havenwood: # => no block given (LocalJumpError) ...check link for more (https://eval.in/975233)
<havenwood> apeiros: I got to teach Ruby objects they are size one when implementing #yield_self. That was fun, even though I admittedly don't know what I'm doing.
jecht has quit [Ping timeout: 263 seconds]
<WhereIsMySpoon> >> 42.yield_self
<ruby[bot]> WhereIsMySpoon: # => undefined method `yield_self' for 42:Fixnum (NoMethodError) ...check link for more (https://eval.in/975236)
<WhereIsMySpoon> humn
<havenwood> apeiros: I changed it from an unsized enumerable to a sized one.
<havenwood> WhereIsMySpoon: The bot version is too old.
<WhereIsMySpoon> ah
<WhereIsMySpoon> damnit, bot maintainer!
<guacamole> can we update rubybot to use 2.5?
jeecht is now known as jecht
<havenwood> I expected it to get denied, but merged! :-D
<guacamole> \o/
yohji has quit [Remote host closed the connection]
<havenwood> I'm excited about the `then` alias. That does seem nice. Will use!
ldnunes has quit [Ping timeout: 265 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie_ has joined #ruby
<havenwood> I'm already excited for 2.6 with `then` and `filter` and a JIT.
<havenwood> It's nice the preview release is out so early.
<havenwood> And more to come early.
jrafanie has quit [Ping timeout: 246 seconds]
harrycs has quit [Ping timeout: 256 seconds]
raynold has joined #ruby
minimalism has joined #ruby
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
guille-moe has quit [Ping timeout: 260 seconds]
ldepandis has joined #ruby
<havenwood> guacamole: I think ruby[bot] should use the nightly build. Live in the now!
howdoi has quit [Quit: Connection closed for inactivity]
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
harrycs has joined #ruby
karapetyan has joined #ruby
shuforov has joined #ruby
alex`` has joined #ruby
rabajaj has joined #ruby
ldnunes has joined #ruby
<apeiros> havenwood: 👍🏻
dionysus69 has joined #ruby
rabajaj has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
clampy has quit [Quit: WeeChat 1.4]
rileyy has quit [Quit: ZNC 1.6.3 - http://znc.in]
Evesy has quit [Quit: ZNC 1.6.3 - http://znc.in]
conta has joined #ruby
pd has joined #ruby
pd is now known as Guest88511
Guest88511 has quit [Max SendQ exceeded]
jottr has joined #ruby
Evesy has joined #ruby
jimmylu2333-fedo has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
marxarelli|afk is now known as marxarelli
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harrycs has quit [Ping timeout: 260 seconds]
<dminuoso> apeiros: A fan of what?
harrycs has joined #ruby
jimmylu2333-fedo has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
jimmylu2333-fedo has joined #ruby
zapata has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
jottr has joined #ruby
mikecmpbll has joined #ruby
P1ro has joined #ruby
\void has joined #ruby
<dminuoso> havenwood: I dont like #then
<havenwood> dminuoso: neither did some of core, but it seems Matz approved it
<havenwood> It's better than yield_self!
<dminuoso> havenwood: The whole construct is fishy.
zapata has quit [Read error: Connection reset by peer]
eckhardt_ has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
<dminuoso> havenwood: Btw, did you notice that
<dminuoso> 42:Fixnum
<dminuoso> colon in there?
karapetyan has quit [Remote host closed the connection]
<dminuoso> Never thought about it, but that's the type theory symbol for "has type" that dates back to at least Chuch's typed λ calculus
* dminuoso wonders whether that choice was intentional
jecht has quit [Remote host closed the connection]
jecht has joined #ruby
harry__ has joined #ruby
howdoi has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
meinside has quit [Quit: Connection closed for inactivity]
jamesaxl has joined #ruby
harrycs has quit [Ping timeout: 240 seconds]
jimmylu2333-fedo has quit [Quit: WeeChat 2.0.1]
Cavallari has joined #ruby
tomphp has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
venmx has quit [Ping timeout: 248 seconds]
Code4Dopamine has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rabajaj has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
tolerablyjake has joined #ruby
synthroi_ has quit []
chouhoul_ has quit [Ping timeout: 264 seconds]
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
n0m4d1c has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
rabajaj has quit [Remote host closed the connection]
leitz has quit [Remote host closed the connection]
Cavallari has quit [Quit: Cavallari]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rsh has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
krawchyk has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
bmurt has quit [Client Quit]
clemens3 has quit [Ping timeout: 240 seconds]
Mike11 has quit [Quit: Leaving.]
hanmac has quit [Ping timeout: 252 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has joined #ruby
ryzokuken has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
erlend has joined #ruby
ryan_ford has quit [Quit: WeeChat 1.4]
mtkd has quit [Ping timeout: 240 seconds]
conta1 has joined #ruby
TheBloke has joined #ruby
jecht has quit [Remote host closed the connection]
conta1 has quit [Client Quit]
jecht has joined #ruby
mtkd has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
karapetyan has joined #ruby
cagomez has quit [Remote host closed the connection]
harry__ has quit [Ping timeout: 240 seconds]
eam has quit [Changing host]
eam has joined #ruby
cagomez has joined #ruby
za1b1tsu has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
cagomez has quit [Ping timeout: 264 seconds]
Zaab1t has quit [Quit: Zaab1t]
zapata has joined #ruby
duderonomy has joined #ruby
harry__ has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
conta has quit [Remote host closed the connection]
bmurt has joined #ruby
netherwolfe has quit [Ping timeout: 240 seconds]
netherwolfe has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
harry__ is now known as harrycs
<harrycs> anyone have suggestions on getting a first time junior role? i'm thinking of focusing on open source projects to get some experience, plus going to meetups to network a bit, but i'm not sure exactly how best to land that first role without a resume... NYC if that matters
shuforov has quit [Ping timeout: 256 seconds]
n008f4g_ has joined #ruby
rsh has joined #ruby
suukim has quit [Quit: Konversation terminated!]
claudiuinberlin has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
cyberg has quit [Ping timeout: 240 seconds]
megamosaren has joined #ruby
pastorinni has quit [Remote host closed the connection]
goatish has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
sammi`_ has joined #ruby
<eam> harrycs: internships are a great way to get some junk on your resume and get an "in" without companies worrying about the relatively high cost of hiring/firing
<eam> absent that approach, definitely networking both at meetups (find hiring managers and befriend them) and via OSS work should help
jecht has quit [Remote host closed the connection]
Creatornator has joined #ruby
jecht has joined #ruby
clemens3 has joined #ruby
harrycs has quit [Ping timeout: 240 seconds]
sammi` has quit [Quit: Lost terminal]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
amatas has quit [Quit: amatas]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun> I try to bump my second question, with a code snippet: │ __main__
<Nobun> http://dpaste.com/3VJSP8V (pasted from question I asked some hours ago)
<Nobun> the question is. How to properly have the error log from ruby when I embed it into application.
<Nobun> In the code snippet I did, the pycall:rubyerr seems is never executed, so it seems that "status" thing didn't work. Any idea?
eckhardt_ has joined #ruby
cyberg has joined #ruby
FrostCandy has quit []
rabajaj has quit [Remote host closed the connection]
sameerynho has joined #ruby
venmx has quit [Remote host closed the connection]
tolerablyjake has joined #ruby
Creatornator has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyberg has quit [Ping timeout: 240 seconds]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
n0m4d1c has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeecht has joined #ruby
tomphp has joined #ruby
netherwolfe has quit [Ping timeout: 245 seconds]
jecht has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
netherwolfe has joined #ruby
jeecht has quit [Ping timeout: 264 seconds]
tomphp has quit [Client Quit]
tomphp has joined #ruby
duderonomy has joined #ruby
nowhereman_ has quit [Ping timeout: 248 seconds]
_joes__ has joined #ruby
_joes__ has quit [Client Quit]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
_joes__ has joined #ruby
_joes__ has quit [Client Quit]
p4tch3s has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Remote host closed the connection]
p4tch3s has quit [Changing host]
p4tch3s has joined #ruby
Toggi3 has quit [Ping timeout: 240 seconds]
sanscoeu_ has joined #ruby
psychicist__ has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
im0nde has joined #ruby
sanscoeur has quit [Ping timeout: 264 seconds]
im0nde has quit [Client Quit]
im0nde has joined #ruby
Creatornator has joined #ruby
sanscoeu_ has quit [Ping timeout: 256 seconds]
jcalla has quit [Quit: Leaving]
pastorinni has quit []
edwardly has quit [Quit: ??????????]
Toggi3 has joined #ruby
im0nde has quit [Quit: im0nde]
im0nde has joined #ruby
workmad3 has joined #ruby
im0nde has quit [Client Quit]
Nobun has quit [Ping timeout: 264 seconds]
im0nde has joined #ruby
karapetyan has joined #ruby
Nobun has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
ldnunes has quit [Quit: Leaving]
megamosaren has quit [Quit: Leaving]
n0m4d1c has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
graft has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 256 seconds]
<havenwood> think a nightly Ruby build script for macOS is worth doing anything with?: https://gist.github.com/havenwood/823382815cbdcfddadd798d4042023a8
sameerynho has quit [Ping timeout: 264 seconds]
<havenwood> I guess RVM folk have no such need. ;-)
perzival has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
<canton7> L59... should be nightly-announce?
<havenwood> canton7: eek, thanks!
<havenwood> fix't
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
<havenwood> I should ditch the cd'ing
ta_ has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlehrer has quit [Quit: ZNC 1.6.2 - http://znc.in]
tolerablyjake has joined #ruby
cyberg has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
<Radar> havenwood: thanks for the script! I've wanted something like this in the past.
mtkd has quit [Ping timeout: 265 seconds]
erlend has quit [Ping timeout: 264 seconds]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
erlend has joined #ruby
mlehrer has joined #ruby
mtkd has joined #ruby
_joes__ has joined #ruby
im0nde has quit [Quit: im0nde]
_joes__ has quit [Client Quit]
im0nde has joined #ruby
im0nde has quit [Client Quit]
rsh has quit [Ping timeout: 248 seconds]
_joes__ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
_joes___ has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
_joes____ has joined #ruby
n0m4d1c has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
_joes___1 has joined #ruby
ta_ has joined #ruby
_joes___2 has joined #ruby
_joes___3 has joined #ruby
_joes__ has quit [Quit: leaving]
_joes___ has quit [Quit: leaving]
_joes____ has quit [Quit: leaving]
_joes___1 has quit [Client Quit]
_joes___2 has quit [Client Quit]
_joes___3 has quit [Client Quit]
schneider has joined #ruby
cyberg has quit [Ping timeout: 240 seconds]
reber has quit [Remote host closed the connection]
RedNifre has joined #ruby
<RedNifre> Heeeeeeeeyo!
SanguineAnomaly has joined #ruby
Psybur__ has quit [Ping timeout: 240 seconds]
<RedNifre> Remember when you always wanted to put UTF-8 text in a deck of poker cards? I wrote a ruby script that allows you to do that: https://steemit.com/software/@michaelzinn/store-text-in-a-deck-of-cards
zipace has quit [Ping timeout: 240 seconds]
Inside has joined #ruby
<Radar> Neat way to encrypt messages. Thanks for sharing RedNifre.
<Radar> Or encode, I guess.
<apeiros> steganograph?
<Inside> Guys. I just took a glance at using electron/react to create desktop applications. What. what. what?! It's easy! Just include all of these dependencies and type npm install. Just spool up a bunch of processes that talk to each other and etcetcetc. Oh - your hello world app is already 120MB? No biggie c_c
* apeiros wonders what the verb of steganography is
<Radar> Inside: See also: Atom, VS Code, Slack, etc.
<Radar> RAM vendors _love_ electron.
<Inside> I use VS code. I used to use Slack at my old job, but it didn't want to work very well with my mobile nvidia graphics card.
<Radar> My battery lasts about 20% longer without Slack.
<Inside> Hah wow.
<Radar> Give me IRC or give me death.
cyberg has joined #ruby
jenrzzz_ has joined #ruby
<RedNifre> Radar yes, I wrote it myself. Unfortunately I don't really have a use for it.
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
krawchyk has quit [Quit: krawchyk]
<RedNifre> apeiros Kinda, I guess. Except that the information is not hidden inside of other information since card order in decks of cards is usually assumed to be meaningless.
<Inside> I might as well try ruby + gtk at this rate :|
<apeiros> RedNifre: the deck is how it is hidden.
<Radar> RedNifre: But if you knew the order of the cards was meaningful then you could use that to decode the message.
<apeiros> you can pass somebody a deck of cards and they can translate the message back out of it
<Inside> Ooh cryptography stuff?
jenrzzz has quit [Ping timeout: 240 seconds]
<apeiros> more steganography
<RedNifre> Yes, it's steganography. I think you could add symmetric encryption with modulo to make the deck look shuffled.
<RedNifre> I mean, instead of encrypting the bytes you encrypt the deck permutation number.
duckpuppy has joined #ruby
<RedNifre> 5h Qd Qs 3d 3c 9c 4d 9h Qh 8h 4s 5c Th 7d Kc Jh 2h 9d Jd Kd 7h Ah 5d Ac 2d 6c 7c 2s Td Ts 8s Tc 8d Ad 6d 3h 4h 6h Kh As 3s 5s 6s 7s 9s Js Ks 2c 4c 8c Jc Qc
Toggi3 has quit [Ping timeout: 256 seconds]
jenrzzz_ has quit [Ping timeout: 263 seconds]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
moei has quit [Read error: Connection reset by peer]
<Inside> password
<Inside> whoops
<Inside> c.c
moei has joined #ruby
<mkroman> cracked ur passwrod m8
<Inside> haha
<Inside> I'm running this centos instance within virtual box and the password is password. :|
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<Inside> I'm about to go learn C# since I can't find a non-convoluted way to write a simple windows desktop application that shows a single form :/
nadir has joined #ruby
kobain has joined #ruby
AJA4350 has quit [Remote host closed the connection]
RedNifre has quit [Quit: zzz]
im0nde has joined #ruby
im0nde has left #ruby [#ruby]
AJA4350 has joined #ruby
jenrzzz has joined #ruby
netherwolfe has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
zacts has quit [Quit: WeeChat 1.9.1]
zacts has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
mtkd has quit []
<ineb> Inside: Qt?
workmad3 has joined #ruby
kliq has quit [Ping timeout: 240 seconds]
<Inside> Ngh..
ledestin has joined #ruby
<Inside> I'm trying to think of why i'm not using it
<Inside> Because I have done rubyqt stuff in the past
schneider has quit [Ping timeout: 256 seconds]
graft has joined #ruby
<havenwood> I just saw a writeup on the state of GUI bindings in Ruby, but I can't remember where.
duckpuppy has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
schneider has joined #ruby
<weaksauce> anecdote on that. i tried the more popular ones in that list and they didn't compile on macos
<weaksauce> perhaps someone with more time to give it a go might get it going
<havenwood> I've only used Shoes 4 and TK recently on macOS.
jamesaxl has quit [Quit: WeeChat 2.0.1]
<Inside> havenwood: cool beans
<havenwood> They both worked. I'd be curious to try FXRuby and Ruby-GNOME2.
<weaksauce> i tried shoes a while ago and i think fx was the one that i couldn't get going
<weaksauce> figured i would just write whatever gui in something other than ruby
<Inside> I can't get gtk3 to work - something about cairo.so
<Inside> I guess C#.. but I popped over there and it's all about C# + trendy library!
<weaksauce> c# is pretty nice to develop for but it's a bit wordy
chouhoulis has quit [Ping timeout: 264 seconds]
<weaksauce> the tag line for c# should be: hey, at least we aren't java!
<havenwood> Inside: Is JRuby a viable option. If so you might want to seriously consider Shoes 4, even though it's young.
duckpuppy has quit [Ping timeout: 256 seconds]
jrabe is now known as Janik
<Inside> I can basically use any language - it's for a manufacturing test fixture to display some pretty charts.
<havenwood> weaksauce: I love how I follow up that comment by suggesting the JVM. :-O
<havenwood> haha
Janik is now known as jrabe
<weaksauce> :D
<Inside> which is a nice kind of freedom, but also .. so much freedom
<havenwood> Inside: Shoes is so easy. Shoes 4 seems relatively stable and nice.
<weaksauce> the JVM is actually pretty solid... the language not so much :)
marxarelli is now known as marxarelli|afk
<havenwood> weaksauce: Kotlin ftw?
<weaksauce> seems pretty solid havenwood
<weaksauce> i haven't used it though
Inside has quit [Remote host closed the connection]
sanscoeur has joined #ruby
duckpuppy has joined #ruby
kn-928 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 256 seconds]
nymous has joined #ruby
<nymous> hey folks
<nymous> little help needed
<nymous> i'm trying to make an omnibus package
<nymous> but it fails right on the omnibus new
<nymous> with the following error: Could not find ".kitchen.local.yml.erb" in any of your source paths. Your current source paths are:
<nymous> var/lib/gems/2.3.0/gems/omnibus-5.6.8/lib/omnibus/generator_files
workmad3 has quit [Ping timeout: 264 seconds]
Nobun has quit [Quit: ronf]
sanscoeur has quit [Remote host closed the connection]
<weaksauce> havenwood seems like shoes 4 is a lot easier to get going
<weaksauce> but why is git all of the sudden messing up my line endings on files that i pull down
kn-928 has quit [Ping timeout: 246 seconds]
n0m4d1c has joined #ruby
cagomez has quit [Remote host closed the connection]
Creatornator has joined #ruby
cschneid has quit [Remote host closed the connection]
xall has joined #ruby
rgb-one has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
<nymous> is omnibus broken at all?
<havenwood> weaksauce: did your .gitconfig somehow get core.autocrlf set?
<havenwood> suspicious!
<weaksauce> havenwood maybe
<havenwood> nymous: the chef gem?
cagomez has joined #ruby
<nymous> i've managed to proceed with the omnibus new command, but trying to build an empty project cause error
<nymous> havenwood: yes
<weaksauce> i do use magit and sometimes i start typing thinking that i am in a different buffer and that could certainly cause some flags to be set
xall has quit [Ping timeout: 256 seconds]
<havenwood> nymous: I'd suggest trying in the #chef channel, if you haven't already.
sanscoeur has joined #ruby
<nymous> I will
<nymous> just thought it should be popular
<havenwood> nymous: it has tests and seems maintained, so it seems it's meant to work
ryzokuken has quit [Quit: Connection closed for inactivity]
<nymous> their skeleton app have dead dependencies
<nymous> so i'm unable to build it
<nymous> i don't think that this should be a desired behavior for a newbie
<havenwood> nymous: aha. it sounds like the #chef channel is the right place to bring that up!
robscomputer has joined #ruby
nowhereman_ has joined #ruby
robscomputer has quit [Client Quit]
robscomputer has joined #ruby
iszak has quit [Ping timeout: 246 seconds]
<rgb-one> Hey
<havenwood> rgb-one: hi
<havenwood> rgb-one: The method is meant to be called with a block. That's where the block is yielded.
ta__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<havenwood> rgb-one: If you called that method without a block, you'd get a `LocalJumpError: no block given (yield)` if you got to that part of the method.
* Radar is conviced havenwood knew that error message off by heart
iszak has joined #ruby
iszak has joined #ruby
iszak has quit [Changing host]
<rgb-one> I see
* havenwood plays the part of a REPL on many days
<havenwood> I am alas now a REPL and sock salesperson.
<ineb> havenwood: after some system()-call. i think the method sould check for block_given?
duckpuppy has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
<havenwood> ineb: `yield if block_given?` is common, but doesn't it seem the author intended these to only be callable with a block?
<havenwood> I don't know. I'm not familiar with this code.
schneider has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Remote host closed the connection]
cschneid has joined #ruby
<rgb-one> The result of this would be a string or a list havenwood: https://github.com/KDE/docker-neon/blob/Neon/stable/neondocker/neondocker.rb#L201?
duckpuppy has quit [Ping timeout: 246 seconds]
<havenwood> rgb-one: An Array.
<havenwood> rgb-one: You can ask it what it is. Try: Dir['*'].class
<havenwood> rgb-one: You can do p-based debugging: p devices
<havenwood> rgb-one: puts devices.class
<rgb-one> > Dir['*'].class
<havenwood> #=> Array
schneider has quit [Ping timeout: 264 seconds]
<havenwood> rgb-one: (Try in IRB or Pry.)
<havenwood> ?irb
<ruby[bot]> irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<elomatreb> And + does concatenation on arrays
jottr has quit [Ping timeout: 240 seconds]
<rgb-one> Ok
<rgb-one> Does this bot still execute code?
<Radar> ?try
<ruby[bot]> Why don't you try it and see for yourself?
<Radar> >> puts "Do you still execute code?"
<ruby[bot]> Radar: # => Do you still execute code? ...check link for more (https://eval.in/975364)
cschneid has quit [Ping timeout: 256 seconds]
kn-928 has joined #ruby
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 268 seconds]
<rgb-one> Alright, thanks guys
rgb-one has quit [Quit: Konversation terminated!]
kn-928 has quit [Ping timeout: 264 seconds]
kapil___ has joined #ruby
woodruffw has quit [Ping timeout: 264 seconds]
ule has quit [Ping timeout: 252 seconds]
erlend has quit [Ping timeout: 260 seconds]
ule has joined #ruby
erlend has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
kn-928 has joined #ruby
kn-928 has quit [Ping timeout: 256 seconds]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
konsolebox has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
nymous has quit [Read error: Connection reset by peer]
POKE53280 has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has joined #ruby