<RickHull>
yep, grayson hoare for the most part in the early days
<RickHull>
er, graydon
<Ox0dea>
Son of NULL.
<Ox0dea>
"But I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years."
<RickHull>
i thought they were unrelated
<shevy>
this is why language designers need to be geniuses
duckpuppy has joined #ruby
jokke has quit [Quit: WeeChat 1.3]
<pushcx>
Ox0dea: clearly he just missed the &. operator and then it all would've been fine :p
<Ox0dea>
The only new object between each call is the Enumerator returned by ObjectSpace.each_object, no?
Xiti has quit [Quit: Xiti]
Brklyn has quit [Ping timeout: 272 seconds]
Ruby_Rocks_007 has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
mg^2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
Domaldel has joined #ruby
<pushcx>
and the int that goes in the array
ixti has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Domaldel has quit [Client Quit]
<Ox0dea>
pushcx: That's not a new object, though?
joonty has quit [Ping timeout: 250 seconds]
<hays>
pleiosaur: hmm.. seems to be problematic at least on os x
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<pushcx>
each_object creates an Enumerator; .count creates a Fixnum
<Ox0dea>
pushcx: The latter is untrue.
<Ox0dea>
Fixnums are just tagged pointers under the hood.
<pleiosaur>
hays: what seems? and to answer your earlier question, rust is lower-level than D and Go, though also manages to be safer than both (while being harder to write, but if you can't write rust code that compiles then you can't write correct C code anyway)
sandstrom has joined #ruby
<shevy>
boyz in da hood, fixnums in da hood
<Ox0dea>
^
maikowblue has quit [Quit: .]
<shevy>
and dinosaurs on #ruby!
<pleiosaur>
shevy: pleiosaurs aren't dinosaurs! common misconception :)
<Ox0dea>
> Pleiosaur is a misspelling of either of two types of extinct marine reptiles:
<Ox0dea>
I've never seen that kind of disambiguation page.
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
<pleiosaur>
hays: dunno why that doesn't work, you probably want to go ask on #rust. might be a problem with your installer if you used homebrew or summat
<shevy>
they were big!
djbkd has quit [Quit: My people need me...]
<pleiosaur>
shevy: they were big! but still not dinosaurs :P
<shevy>
pleiosaur I am reading wikipeda to study your weaknesses!
<shevy>
though indeed I was redirected to "Plesiosauria" :D
<pleiosaur>
shevy: asteroids :(
<Ox0dea>
Also Grass.
<shevy>
lol
<Ox0dea>
4x effective against Rock-Water.
n_blownapart has quit []
DmitryBochkarev has joined #ruby
mfb2 has joined #ruby
dlitvak has joined #ruby
william3 has joined #ruby
DLSteve has joined #ruby
preyalone has joined #ruby
peeja has joined #ruby
ElSif has joined #ruby
mfb2 has quit [Remote host closed the connection]
tatsuo has joined #ruby
CrazyEddy has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
blackmesa has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
CrazyEddy has quit [Ping timeout: 256 seconds]
ricer2 has joined #ruby
baweaver has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 252 seconds]
arashb has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
pawnbox has joined #ruby
pdoherty has joined #ruby
elifoster has joined #ruby
Sucks has quit [Quit: No Ping reply in 180 seconds.]
podman has quit [Quit: Connection closed for inactivity]
marr has quit [Ping timeout: 245 seconds]
gizmore has joined #ruby
Sucks has joined #ruby
baweaver has joined #ruby
snguyen has joined #ruby
jorrin has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
RubyRev has joined #ruby
renier has joined #ruby
<renier>
Is there a way to install a gem without installing its executables?
kirillzh has joined #ruby
bruce_lee has quit [Remote host closed the connection]
gizmore|2 has quit [Ping timeout: 245 seconds]
neanderslob has joined #ruby
RubyRev_ has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Brklyn has joined #ruby
sandstrom has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
stardiviner has joined #ruby
gizmore has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
sneakerhax has quit [Ping timeout: 252 seconds]
Limix has joined #ruby
william3 has quit [Remote host closed the connection]
jorrin has quit [Remote host closed the connection]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
govg has joined #ruby
zacstewart has joined #ruby
zacstewa_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Azure has joined #ruby
mg^2 has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has quit [Quit: danman]
einarj has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has quit [Ping timeout: 250 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
sandstrom has joined #ruby
<shevy>
not sure, probably not. but just remove the bin/ directory which leads to the same result; you can also repackage a .gem to not include a bin/ directory
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
einarj has quit [Ping timeout: 252 seconds]
<pushcx>
renier: You could do 'gem install -i /tmp' so they get installed to a throwaway dir
hxegon has joined #ruby
hxegon has quit [Client Quit]
joonty has joined #ruby
<havenwood>
-n, --bindir DIR
<renier>
cool. thanks for the ideas
<pushcx>
er, yes, I meant -n rather than -i - havenwood's correct
gizmore has joined #ruby
Ruby_Rocks_007 has joined #ruby
benlieb has quit [Quit: benlieb]
<pushcx>
renier: You could also install it and parse the yaml output of 'gem specification foo' to remove everything under 'executables'
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jonah11_ has joined #ruby
gizless has quit [Ping timeout: 240 seconds]
peeja has quit [Ping timeout: 276 seconds]
joonty has quit [Ping timeout: 240 seconds]
Ruby_Rocks_007 has left #ruby [#ruby]
mondok has quit [Ping timeout: 276 seconds]
fantazo has joined #ruby
SwiftFox has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
davedev24 has quit []
<Ox0dea>
Shame about there not being a /dev/null analog for directories.
Jardayn has quit [Quit: Leaving]
mg^2 has joined #ruby
vikas027 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
zeroDivisible has quit [Quit: WeeChat 1.3]
<eam>
easy to make one
vikas027 has left #ruby [#ruby]
B1n4r10 has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
sandstrom has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
<Ox0dea>
Do tell. `mknod` only does files.
<eam>
FUSE
Timberwo|f has quit [Quit: Sleep.]
<eam>
you could even write your filesystem in ruby
<Ox0dea>
Many silly things have been done with FUSE.
zacstewart has joined #ruby
<eam>
not all sillier than "null for directories"
<eam>
;)
<Ox0dea>
But it's just what the doctor *would've* prescribed for renier this time around.
Sucks has quit [Remote host closed the connection]
duckpuppy has joined #ruby
dlitvak has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Brklyn has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 250 seconds]
PedramT has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
govg has joined #ruby
adgtl has joined #ruby
Brklyn has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
ziyadb has joined #ruby
sandstrom has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flughafen_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
adgtl has quit [Remote host closed the connection]
joonty has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
n00bdev has quit []
joonty has quit [Ping timeout: 240 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
wethu has quit [Quit: This computer has gone to sleep]
DmitryBochkarev has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has quit [Ping timeout: 250 seconds]
Anderson69s has joined #ruby
joonty has joined #ruby
sandstrom has joined #ruby
wldcordeiro has joined #ruby
renier_ has joined #ruby
govg has quit [Ping timeout: 264 seconds]
Tempesta has joined #ruby
Channel6 has quit [Quit: Leaving]
renier has quit [Ping timeout: 252 seconds]
p0wn3d has quit [Ping timeout: 250 seconds]
Azulinho has quit [Ping timeout: 256 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
yfeldblum has quit [Ping timeout: 250 seconds]
UtkarshRay has quit [Remote host closed the connection]
dlitvak has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
fantazo has joined #ruby
celly has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
dlitvak has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
zacstewa_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
govg has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
chouhoulis has joined #ruby
UtkarshRay has joined #ruby
karapetyan has joined #ruby
Brklyn has joined #ruby
shiffles has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
theRealAlexz has quit [Ping timeout: 252 seconds]
Brklyn has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
amclain has quit [Quit: Leaving]
elifoster has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
zacstewa_ has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
arashb has joined #ruby
theRealAlexz has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
shiffles has quit [Ping timeout: 260 seconds]
arashb has quit [Ping timeout: 248 seconds]
govg has quit [Ping timeout: 264 seconds]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
baweaver has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
dlitvak has joined #ruby
karapetyan has joined #ruby
ta has quit [Remote host closed the connection]
celly has quit [Remote host closed the connection]
ropeney has joined #ruby
atmosx has quit [Quit: Lost in trance]
ur5us has joined #ruby
CloCkWeRX has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
Kryptonical has quit [Read error: Connection reset by peer]
Brklyn has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
william3 has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
djbkd has quit [Remote host closed the connection]
dexter-tzu has quit [Ping timeout: 245 seconds]
Brklyn has quit [Quit: Lost terminal]
moeabdol has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
Abrin has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
govg has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
dlitvak has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
saltsa has quit [Ping timeout: 250 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
Lucky_ABA has joined #ruby
CloCkWeRX has joined #ruby
govg has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
dlitvak has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby
jottr has joined #ruby
saltsa has joined #ruby
codecop has joined #ruby
dexter-tzu has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Anderson69s has joined #ruby
infra-red has joined #ruby
govg has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
_ht has joined #ruby
blackgoat has joined #ruby
benlieb has quit [Quit: benlieb]
mhoungbo has joined #ruby
ferr has joined #ruby
tildes has joined #ruby
mondok has joined #ruby
lubekpl has joined #ruby
duckpuppy has joined #ruby
darkf has joined #ruby
ready has quit [Ping timeout: 250 seconds]
moeabdol1 has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
benlieb has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
moeabdol has quit [Ping timeout: 245 seconds]
zacstewart has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Anderson69s has joined #ruby
<ljames>
I'm looking at some old ruby code that used "case ... when : ..." syntax, maybe 50 or more instances of it, what's a good way of dealing with code like that? change all instances to when ... then ..., or is there a way to enable some sort of compatibility mode and just have the code just work?
<ljames>
I meant "case ...: ..." syntax, rather than "case ... when ..."
mhoungbo has quit [Ping timeout: 250 seconds]
<ljames>
argh, "case ... when ...:" rather than "case ... when ... then", that is, the deprecated semicolon
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<apeiros>
ljames: no. just replace the : with a then or a ;
<apeiros>
it should be fairly trivial to grep for all the instances
<apeiros>
when.*:
Anderson69s has quit [Read error: No route to host]
Anderson69s_bug has joined #ruby
<shevy>
ljames alternatively you could give rubocop's autocorrect a try
ready has joined #ruby
<ljames>
I suppose I'll do that then. ; would work fine too? as in, I shouldn't expect fall-through issues like is common with C's "if ... else ..." when you don't delimit the block and it only treats the first expression as part of the conditional's to-be-executed body? (I'm fairly new to Ruby, so I hope I'm understanding the syntax right)
flughafen_ has quit [Ping timeout: 250 seconds]
<Ox0dea>
ljames: `when foo;` and `when foo then` are synonymous.
<ljames>
thanks, I suppose it should work, and if not, I'll just test it out
<Ox0dea>
The parser doesn't have an opinion. :P
nfk has joined #ruby
Anderson69s_bug has quit [Client Quit]
Anderson69s has joined #ruby
Anderson69s has quit [Remote host closed the connection]
<shevy>
it's very opinionated!!!
<shevy>
snobbish
<shevy>
it doesn't just accept everything
<Ox0dea>
ljames: Ruby `case` statements don't really have fall-through as in C, but `when` clauses can have multiple "patterns" separated by commas.
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
Swapping all the colons for semicolons should Just Work, but I'd be interested to know of any cases where it doesn't.
ledestin has joined #ruby
jottr has joined #ruby
dlitvak has joined #ruby
mhoungbo has joined #ruby
Coldblackice has quit [Ping timeout: 248 seconds]
<ljames>
Ox0dea, oh, 2 more unrelated questions, one a bit related to your nickname: any way to force it to print decimals as hexadecimal by default in irb or the like? and the second: I found myself doing a lot of method(args);1 or similar because I need to supress insanely large outputs when irb prints the object (manageable to a console, but if using Emacs not so manageable)
<ljames>
and by that I mean Fixnums or other numbers
<shevy>
people just like the Ox nickname
<Ox0dea>
ljames: I suppose you could redefine Fixnum#inspect if you really want that output at your REPL.
<Ox0dea>
As for suppressing massive output, `foo = bar and 1` is my trick.
ur5us has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<ljames>
I suppose I should try that, but I might need to do the same for Bignum too
mhoungbo has quit [Ping timeout: 240 seconds]
<Ox0dea>
Alas, you'd have to define both explicitly. They don't inherit #inspect from Integer.
sandstrom has quit [Quit: My computer has gone to sleep.]
aupadhye_ has quit [Ping timeout: 272 seconds]
sandstrom has joined #ruby
pandaant has joined #ruby
nerium has quit [Quit: nerium]
einarj has joined #ruby
bluOxigen has joined #ruby
devbug has joined #ruby
aupadhye has joined #ruby
Jackneill has joined #ruby
dlitvak has joined #ruby
wethu has joined #ruby
devbug has quit [Ping timeout: 252 seconds]
krzkrz has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
moeabdol2 has joined #ruby
benlieb has quit [Quit: benlieb]
infra-red has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Ishido has joined #ruby
mhoungbo has joined #ruby
sandstrom has joined #ruby
beast has joined #ruby
marr has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Rickmasta has joined #ruby
sftrabbit has joined #ruby
Rickmast_ has joined #ruby
last_staff has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
devbug has joined #ruby
jgt4 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
arashb has joined #ruby
mfb2 has joined #ruby
sandstrom has joined #ruby
dlitvak has joined #ruby
Cohedrin has joined #ruby
jbrhbr has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
FernandoBasso has joined #ruby
karapetyan has quit [Remote host closed the connection]
mfb2 has quit [Ping timeout: 276 seconds]
theRealAlexz has quit [Ping timeout: 272 seconds]
Gnut has joined #ruby
baweaver has joined #ruby
spider-mario has joined #ruby
theRealAlexz has joined #ruby
Rickmast_ has quit [Ping timeout: 248 seconds]
Domaldel has joined #ruby
Rickmasta has joined #ruby
bluOxigen_ has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Quit: Leaving.]
mauricio has joined #ruby
skade has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
sandstrom has joined #ruby
karapetyan has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
tvw has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
oetjenj has joined #ruby
moeabdol3 has joined #ruby
govg has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
RegulationD has joined #ruby
zeroDivisible has joined #ruby
Zai00 has joined #ruby
moeabdol2 has quit [Ping timeout: 256 seconds]
mondok has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Ping timeout: 248 seconds]
fantazo has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
theRealAlexz has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
govg has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theRealAlexz has joined #ruby
wethu has joined #ruby
dlitvak has joined #ruby
lubekpl has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
Rickmasta has joined #ruby
theRealAlexz has quit [Ping timeout: 272 seconds]
zacstewa_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
theRealAlexz has joined #ruby
dlitvak_ has joined #ruby
pandaant has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 245 seconds]
Rickmasta has joined #ruby
ropeney has joined #ruby
lubekpl has joined #ruby
duckpuppy has joined #ruby
Rickmasta has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
krzkrz has quit [Ping timeout: 240 seconds]
p0wn3d has joined #ruby
Rickmasta has joined #ruby
symm- has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
skade has quit [Quit: Computer has gone to sleep.]
FooMunki has joined #ruby
lurch_ has joined #ruby
JohnBat26 has joined #ruby
aupadhye has quit [Quit: Leaving]
moeabdol4 has joined #ruby
tvw has quit []
saneax is now known as saneax_AFK
antgel_ has quit [Remote host closed the connection]
<havenwood>
adgtl: There's a plan to add a pipe operator in Ruby 3.0.
<adgtl>
havenwood: I wanted to know what we call for that concept? Is that called chaining?
<havenwood>
adgtl: method chaining is a thing
<adgtl>
valeri_ufo: awesome to know that Ruby 3.0 will be getting a pipe operator
<adgtl>
havenwood: method chaining then it is right?
<adgtl>
Basically looking for word to call the concept when we do (1..100_000).map { |n| n * 3 }.reduce { |h| h * 4 }
<adgtl>
(1..100_000).map { |n| n * 3 }.reduce { |h, s| h * s }
<Ox0dea>
You might want "pipeline".
<adgtl>
(1..100_000).map { |n| n * 3 }.reduce(1) { |h, s| h * s }
<Ox0dea>
Stahp.
<adgtl>
Ox0dea: haha.. can't see wrong .. should have waited before hitting enter :)
konsolebox has quit [Ping timeout: 250 seconds]
konsolebox has joined #ruby
infernix has joined #ruby
<Ox0dea>
As best I can tell, "pipeline" is the canonical term used in Elixir, and it fits pretty snugly for Ruby too.
<Ox0dea>
It's most appropriate when applied to "streams", and I reckon Enumerators fit that shoe just fine.
mahk_ has quit [Quit: Quit.]
krzkrz has quit [Ping timeout: 264 seconds]
krzkrz has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
erGoline has joined #ruby
selfadhesivefilm has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
<erGoline>
Hello :) I need to create a http forwarding proxy in ruby, any resources/idea/suggestion?
user083 has joined #ruby
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
selfadhesivefilm has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
karapetyan has joined #ruby
pwned has joined #ruby
blackmesa has joined #ruby
<apeiros>
erGoline: err, why'd you *need* to write it in ruby? why not use one of the plenty existing http proxies?
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<erGoline>
apeiros: only to learn something new :) and I prefer to deploy it to Heroku, so I have some constrains
karapetyan has quit [Ping timeout: 240 seconds]
<erGoline>
apeiros: could be nice something at rack level too, to intetegrate it inside the Rails app I'm developing. I need to forward the traffic to a CDN (fastly) but have a failover to a second server (or the main app itself if using rack)
<pwned>
if it's less than a few hundred lines, does what you want without getting lost in configuration docs and compiling third party extensions, why not write it in ruby?
theRealAlexz has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<erGoline>
pwned: nice point ;)
william3 has joined #ruby
theRealAlexz has joined #ruby
theRealAlexz has quit [Changing host]
theRealAlexz has joined #ruby
<pwned>
and also good for prototyping/quickly get something up and running before awesomescale(c)
<apeiros>
I rather doubt you'll be able to write an http proxy in less than a few hundred lines
<pwned>
apeiros: it depends on what features you're typing about.
<apeiros>
pwned: you mean you can write a broken http proxy in less than a few hundred lines?
<apeiros>
sure.
<pwned>
apeiros: yes sure. If what you mean by broken is "hasn't got feature X"
mauricio has quit [Remote host closed the connection]
<apeiros>
no. by broken I mean does not adhere to the specs.
duckpuppy has joined #ruby
trinaldi has joined #ruby
<erGoline>
apeiros: I need to forward the http request, using a regular expression, to another server and get the response. Nothing else
<apeiros>
you'll probably need more time to just read the specs than compile an existing http proxy.
<pwned>
erGoline: oh no, you didn't adhere to some obscure specs written before millenium
william3 has quit [Ping timeout: 240 seconds]
<apeiros>
*sob*
blackmesa has quit [Ping timeout: 240 seconds]
<apeiros>
and people wonder why software breaks in the weirdest ways
selfadhesivefilm has quit [Remote host closed the connection]
<apeiros>
"specs… what are they good for…"
<erGoline>
apeiros: I need to create a proxy form my own specific setup, not a software to release worldwide
<pwned>
apeiros: Before you become the champion of reading specs, which anyone can do, let's be reasonable. You are given the task to take http(s) request, slap some headers in and redirect it.
<apeiros>
pwned: yeah. no.
Jonah11_ has joined #ruby
mhoungbo has quit [Ping timeout: 272 seconds]
<apeiros>
but hey, go ahead and write broken stuff.
<pwned>
oh ok no reasoning on IRC
<apeiros>
no point. level of ignorance is too high.
<erGoline>
for example i'm trying a proof of concept with the Mechanize gem :D >
<pwned>
I'm gonna forward get request, guy says you've gotta read specs on options
lurch_ has joined #ruby
<erGoline>
and it's working quite well, of course the traffic I'm testing is quite low (400rpm)
<pwned>
guy also asserts that our in-house software which has been working fine is broken
<apeiros>
pwned: you don't even know what you're doing wrong because you didn't read the specs.
lurch_ has quit [Client Quit]
<apeiros>
there's a couple of headers for example which you have to process as a proxy. just as an example.
<pwned>
apeiros: I don't believe you can make that judgement.
duckpuppy has quit [Ping timeout: 272 seconds]
<apeiros>
pwned: but you can?
<apeiros>
are you a prophet or something'
flughafen_ has joined #ruby
<apeiros>
but I'm all ears about you explaining me how you know what things you didn't do wrong without knowing the specs. I'm sure there's some conclusive logic coming…
<erGoline>
apeiros: ok, I know that specs are important, but as said by pwned I just need to forward requests, I don't need to identify as proxy neither. Perhaps "http tunnelling" is the correct expression?
<pwned>
perhaps I did not explain my intentions. If you don't need to handle parts of the protocol, you don't need to implement them. I didn't mean to say that you don't have to read any specs. Reading is one thing, implementing them is another.
mfb2 has joined #ruby
<apeiros>
pwned: and now tell me - how do you know which parts you didn't implement?
<apeiros>
and how do you know which parts you don't need to implement?
<apeiros>
if you write stuff without reading the specs, all you know is "it does what I want in those N tests I performed". *not a single thing more*.
<apeiros>
you don't even know whether it does those N things correctly. only that it does them as you expect it to do them.
<apeiros>
so I'm sorry. but saying that reading the specs isn't necessary (even if limited by "if you only implement a part of it") is utter bull.
govg has quit [Ping timeout: 240 seconds]
<pwned>
apeiros: well think what you will, I meant implementing specs, not readin specs.
<apeiros>
the one case where it is viable is where you explicitly accept that you write broken software.
<apeiros>
but claiming that your software isn't broken if you haven't read the spec is again bull.
<apeiros>
that's not what you said, though.
<apeiros>
I agree on not needing to implement the full spec.
<pwned>
good let's continue on then.
selfadhesivefilm has joined #ruby
mfb2 has quit [Ping timeout: 240 seconds]
<apeiros>
but then we're again at: reading the specs alone will take you more time than compiling existing software.
hakunin has quit [Ping timeout: 240 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
<pwned>
apeiros: are you saying that a person who is completely ignorant of the spec can fully configure a proxy software?
zacstewart has joined #ruby
<pwned>
(I've configured plenty but I know a large part of many interlinked rfc documents)
<apeiros>
no. but a) unlike reading the spec, reading the full config is usually not necessary with software (since often they come with sensible configs)
benlovell has joined #ruby
<apeiros>
and b) reading config docs usually is quite a bit less time consuming than reading specs.
yfeldblum has quit [Ping timeout: 250 seconds]
<pwned>
I think it would be ignorant just trying to configure a proxy without knowing any word in the specs.
benlovell has quit [Client Quit]
<apeiros>
but implementing a proxy isn't? :-p
<pwned>
put that tongue back young man
sgambino has joined #ruby
william3 has joined #ruby
selfadhesivefilm has quit [Ping timeout: 250 seconds]
<pwned>
I'll put it in terms you can understand: using software and implementing it requires knowing stuff. Sometimes making custom software is easier. Just slap in a few headers and you're done. And yes you have to know specs. Bravo for figuring that out on your own.
hakunin has joined #ruby
<apeiros>
"in terms you can understand" is ad hominem and unwelcome.
<pwned>
at least it isn't strawman.
chouhoulis has quit [Remote host closed the connection]
groundnuty has joined #ruby
<apeiros>
no. it's a sign of lack of arguments and also a sign that I won't continue. have a nice day.
<erGoline>
sob... :|
selfadhesivefilm has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol4 has quit [Ping timeout: 245 seconds]
Deck` has joined #ruby
<pwned>
apeiros: well good, arguing your strawmanning wasn't exactly very pleasurable either.
<apeiros>
there was no strawman. but as said, I won't continue.
<pwned>
nowhere have I said that you shouldn't read specs.
<erGoline>
by the way, which specs should I know if I only tunnel bytes and don't want to appear as a real proxy (so config headers, etc)?
selfadhesivefilm has quit [Ping timeout: 245 seconds]
<apeiros>
pwned: you pretty clearly implied that. yes. and claiming otherwise is rather dishonest.
<pwned>
apeiros: well go ahead and paste what I've said.
sgambino has joined #ruby
coderMe has joined #ruby
<adaedra>
is this discussion of yours going anywhere useful for erGoline question?
<apeiros>
» 14:03 pwned: I'm gonna forward get request, guy says you've gotta read specs on options
<apeiros>
(there's multiple other occasions, I see little point in c&p them all)
<apeiros>
I think we both know that you indeed meant it that way. but if you want to pretend. sure. I'm done.
TomyLobo has quit [Ping timeout: 245 seconds]
Jonah11_ has quit [Remote host closed the connection]
govg has joined #ruby
<pwned>
well if that's the position you want to take, yes there is no point in arguing with you.
dasher00 has joined #ruby
Rickmasta has quit [Ping timeout: 248 seconds]
<shevy>
I just came back from shopping - don't stop arguing :)
<adaedra>
ssssh.
<pwned>
erGoline: just tunnel them and don't act as a proxy at all just to spite apeiros
<adaedra>
sigh.
william3 has joined #ruby
<shevy>
lol
ctp__ has joined #ruby
<erGoline>
pwned: what I was tinking about (not to spite apeiros!)
Rickmasta has joined #ruby
<adaedra>
erGoline: what's your needs exactly?
<adaedra>
what are* rather.
lipoqil has joined #ruby
<shevy>
what's are your needs!
<adaedra>
exactly.
william3 has quit [Ping timeout: 272 seconds]
<erGoline>
adaedra: I have a ruby (Rails) app, I need to forward the traffic hitting the app (fiultered with a regex) to a CDN and have a failever to the app itself
Xeago has joined #ruby
<erGoline>
so I thought to have a proxy/forwarder/tunnel in front of the app, or integrated at rack level
kies^ has quit [Ping timeout: 240 seconds]
<erGoline>
I'm investigating a ruby solution for the second matter and because I would like to have it on Heroku (I can switch the app routing easily)
<adaedra>
well, isn't that already what the CDN does, failbacking to your app if they don't have the resource?
<adaedra>
also, if traffic goes to your application before going to the CDN, it kinda defeats the CDN purpose?
<erGoline>
adaedra: absolutely right observation :) I need this way because I have some problems installing SSL certs on the CDN. So I would like to test a temp, less performant of course, solution
<erGoline>
adaedra: the fallback to the main app is because a) I need to cache only some pages b) I can quickly disable the CDN part c) It works even if the CDN goes down
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<erGoline>
Let's think the CDV as a sort of page caching storage :)
<adaedra>
the c) part is supposed to be very unlikely, at least more unlikely than the event of your app going down
<erGoline>
Actually I'm doing this inside a controller with Mechanize (agent = Mechanize.new; agent.set_proxy '.....', 80; html = agent.get(".....").body; render :text => html, layout: false) and it works nice, but I would like to avoid hitting the controller so I can speed the thing up
<erGoline>
adaedra: uh, I missed this, thanks!
johnmilton has joined #ruby
Jackneill has quit [Quit: Leaving]
karapetyan has joined #ruby
kirun has joined #ruby
coderMe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vadeRcUser has joined #ruby
vadeRcUser has quit [Client Quit]
_mirko_ has joined #ruby
johnmilton has quit [Quit: Namaste]
_mirko_ has quit [Read error: Network is unreachable]
karapetyan has quit [Ping timeout: 240 seconds]
twistedpixels has joined #ruby
johnmilton has joined #ruby
_mirko_ has joined #ruby
vadeRcUser has joined #ruby
william3 has joined #ruby
aryaching has joined #ruby
<vadeRcUser>
Hello all
<erGoline>
adaedra: do you know if it can be integrated in a rails app, and how?
lurch_ has joined #ruby
<erGoline>
hi vadeRcUser
<adaedra>
It's a middleware
lubekpl has quit [Quit: WeeChat 1.3]
<vadeRcUser>
trying to dust off an old project, IRC client written in ruby =)
<adaedra>
So you add it to the rails stack like any other middleware, erGoline
braian has joined #ruby
<erGoline>
adaedra: ok so config.middleware.use ...
sgambino has joined #ruby
johnmilton has quit [Quit: Namaste]
johnmilton has joined #ruby
<shevy>
vadeRcUser isn't that how we all start it - we write an IRC bot in ruby!
Rickmasta has quit [Ping timeout: 276 seconds]
johnmilton has quit [Client Quit]
<vadeRcUser>
@shevy
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
<vadeRcUser>
I'm
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
ferr has quit [Ping timeout: 256 seconds]
Rickmasta has joined #ruby
johnmilton has joined #ruby
nerium has joined #ruby
_mirko_ has quit [Ping timeout: 245 seconds]
mirko has joined #ruby
_ht has quit [Ping timeout: 245 seconds]
Gnut has quit [Ping timeout: 245 seconds]
mirko is now known as Guest99895
s2013 has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
Guest99895 has quit [Read error: Connection reset by peer]
william3 has quit [Remote host closed the connection]
kirillzh has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
zacstewart has joined #ruby
NET||abu- is now known as NET||abuse
<vadeRcUser>
goodbye
einarj has quit [Remote host closed the connection]
vadeRcUser has quit [Quit: vadeRcUser]
wethu has joined #ruby
squarer01t has joined #ruby
decoponio has joined #ruby
tvw has joined #ruby
Yeomra has joined #ruby
william3 has joined #ruby
chouhoulis has joined #ruby
roshanavand has joined #ruby
Rickmasta has quit [Ping timeout: 264 seconds]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
squarer00t has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
Rickmasta has joined #ruby
william3 has quit [Ping timeout: 264 seconds]
moeabdol has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
Yeomra_ has joined #ruby
Yeomra has quit [Read error: Connection reset by peer]
FAMAS has joined #ruby
despai has joined #ruby
icbm has quit [Quit: Leaving]
cdg has joined #ruby
FernandoBasso has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
saneax is now known as saneax_AFK
IrishGringo has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
pdoherty has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 264 seconds]
coderMe has joined #ruby
zacstewart has joined #ruby
ych has joined #ruby
govg has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax_AFK is now known as saneax
dionysus69 has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
ilhami has joined #ruby
<ilhami>
ey
blackgoat has quit [Quit: WeeChat 1.3]
Rickmasta has joined #ruby
ponga has joined #ruby
saneax is now known as saneax_AFK
wethu has quit [Quit: This computer has gone to sleep]
tatsuo has quit [Quit: Leaving...]
adgtl_ has joined #ruby
peeja has joined #ruby
cdg has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 264 seconds]
adgtl has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
enkristoffer has joined #ruby
blackmesa has joined #ruby
Spami has joined #ruby
Yeomra_ has quit [Quit: WeeChat 1.4]
<ilhami>
I want to learn Ruby!!!
<ilhami>
is it difficult to learn?
<shevy>
ilhami lol
<ilhami>
lol
<ilhami>
I don't like PHP. :/
<ilhami>
I want to learn Ruby
<ilhami>
even the name Ruby is better than PHP. :/ ugh
Xeago has quit [Remote host closed the connection]
<shevy>
you need to train more
<ilhami>
train more? I haven't trained at all shevy
<shevy>
see :)
william3 has joined #ruby
<ilhami>
do you train a lot?
<shevy>
I trained a lot
karapetyan has joined #ruby
<ilhami>
Wow then you must be good. :P
hxegon has joined #ruby
<shevy>
yeah
<ilhami>
does Ruby has a template engine? :O
livcd_ has quit [Changing host]
livcd_ has joined #ruby
<shevy>
please don't follow the path of php
<ilhami>
why not?
<shevy>
it has brought you to this situation
IrishGringo has quit [Ping timeout: 240 seconds]
<ilhami>
what situation? :/
banister has joined #ruby
<shevy>
<ilhami> I don't like PHP. :/
<ilhami>
Oh hehe.
<shevy>
did you like forget already from one minute ago
<ilhami>
shevy, you sound like someone from Ukraine.. :P
adgtl_ has quit [Remote host closed the connection]
<shevy>
you are from the Ukraine?
karapetyan has quit [Ping timeout: 240 seconds]
<ilhami>
no no. Denmark.
<shevy>
nah
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
tk__ has quit [Quit: ばいばい]
Nanuq has joined #ruby
duckpuppy has joined #ruby
codecop has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 276 seconds]
duckpuppy has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
hxegon has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rickmasta has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
binaryplease has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
govg has quit [Quit: leaving]
TheNet has joined #ruby
tvw has quit [Remote host closed the connection]
x77686d has joined #ruby
chouhoulis has joined #ruby
Xeago has joined #ruby
TheNet has quit [Client Quit]
houhoulis has joined #ruby
TheNet has joined #ruby
lambdachops has joined #ruby
TheNet has quit [Client Quit]
mrsLiu has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
PedramT has quit [Remote host closed the connection]
TheNet has joined #ruby
peeja has quit [Ping timeout: 256 seconds]
workmad3 has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
selfadhesivefilm has joined #ruby
lambdachops has quit [Quit: Bye]
mrsLiu has quit [Ping timeout: 276 seconds]
mhoungbo has joined #ruby
moeabdol has joined #ruby
DoubleMalt has joined #ruby
rkoller has joined #ruby
arthropododo has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
solars has joined #ruby
PedramT has quit [Remote host closed the connection]
jottr has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
ctp__ has quit [Quit: Connection closed for inactivity]
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
duderono_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
The_Phoenix has joined #ruby
YankNYC has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
<YankNYC>
Ox0dea good morning :)
Rickmasta has quit [Ping timeout: 240 seconds]
<erGoline>
adaedra: I followed your suggestion and I wrote a rack/proxy middleware, ~20 loc, it works nicely :) Thank you for pointing me to the right direction!
ych has joined #ruby
Deck` has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
benhuda has joined #ruby
Al2O3 has quit [Read error: Connection reset by peer]
braian has quit [Quit: Leaving]
Al2O3 has joined #ruby
workmad3 has joined #ruby
<ilhami>
is Ruby bad for bigger projects?
BaroMeter has joined #ruby
binaryplease has quit [Ping timeout: 272 seconds]
Rickmasta has quit [Ping timeout: 250 seconds]
fourq is now known as fourq|away
fourq|away is now known as fourq
lurch_ has quit [Quit: lurch_]
fourq is now known as fourq|away
<erGoline>
ilhami: bigger than...?
Rickmasta has joined #ruby
fourq|away is now known as fourq
fourq is now known as fourq|away
duffman728 has joined #ruby
blackmes1 has joined #ruby
jottr_ has joined #ruby
<ilhami>
erGoline, dunno. Just heard it's not optimal for huge projects.
<ilhami>
is that true?
duffman728 has quit [Quit: WeeChat 1.0.1]
adgtl has joined #ruby
<havenwood>
ilhami: Nope, not true. Lies!
the_drow has joined #ruby
<erGoline>
ilhami: the question is a bit generic, but no :)
duffman728 has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
<apeiros>
in the opposite. ruby allowing to write succinct code makes it great for huge projects.
<apeiros>
if performance is an issue on all fronts, then ruby may not be what you're looking for. but even then it depends.
lurch_ has joined #ruby
<banister>
wish ruby had a proper import/module system though..
<apeiros>
banister: what things are you thinking of?
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<banister>
apeiros something like rust/haskell and i guess python (though i dont have much experience with python)
<banister>
but the ability to import specific symbols
ferr has quit [Ping timeout: 260 seconds]
<apeiros>
banister: since I know neither rust nor haskell - you mean e.g. include and specify which methods and constants you want from it?
bkxd has quit [Ping timeout: 240 seconds]
fourq|away is now known as fourq
<banister>
obvs u can achieve the same thing in ruby, but it's kind of manual and rquires more discipline
fourq is now known as fourq|away
karapetyan has joined #ruby
ferr has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lurch_ has quit [Client Quit]
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
aryaching_ has quit [Client Quit]
aryaching has joined #ruby
benhuda has quit [Ping timeout: 240 seconds]
adgtl has quit [Remote host closed the connection]
binaryplease has joined #ruby
adgtl has joined #ruby
chouhoulis has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
firstdayonthejob has joined #ruby
baweaver has joined #ruby
johnmilton has quit [Ping timeout: 248 seconds]
snguyen has joined #ruby
pdoherty has quit [Remote host closed the connection]
pdoherty has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
ferr has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
snguyen has quit [Client Quit]
selfadhesivefilm has joined #ruby
dionysus69 has joined #ruby
FernandoBasso has joined #ruby
selfadhesivefilm has quit [Ping timeout: 252 seconds]
hxegon has quit [Quit: BRB]
S01780_ is now known as S01780
dionysus69 has quit [Ping timeout: 240 seconds]
Limix has joined #ruby
edulix has joined #ruby
Limix has quit [Client Quit]
whippythellama has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
<ilhami>
so Ruby is good for huge projects? eh
<ilhami>
?
<shevy>
ilhami are you still using php
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
<ilhami>
shevy, I am making a wordpress site. After this I will use ruby lol
ftj has joined #ruby
erGoline has left #ruby [#ruby]
blackmes1 has quit [Quit: WeeChat 1.4]
<apeiros>
ilhami: certainly.
<ilhami>
but you need to provide me good material. :P
<ilhami>
Are there any good Ruby CMS'?
<apeiros>
we don't need to do anything. but if you gently ask, somebody surely will try to help you.
<Papierkorb>
pushcx: and the systemd maintainer wasn't really cooperative on that matter last time I looked at the GH issue on that
Heero has joined #ruby
<Papierkorb>
Poettering that is
<shevy>
:D
<Papierkorb>
Like "hurr we need it! Cause everyone uses 'systemctl reboot --firmware' all the time, and we can't just remount it for that because I don't feel like it!"
karapetyan has joined #ruby
<shevy>
welcome to the systemd world
DonOtreply has quit [Quit: DonOtreply]
kies^ has joined #ruby
scripore has joined #ruby
<ilhami>
what's wrong with systemd? :P
<shevy>
ilhami dunno, ask on #systemd - we here on #ruby will build a better OS one day!!!
<ilhami>
which editor are you guys using for Ruby?
<shevy>
still bluefish 1.0.7 ... but I want to move away since... 2 years or so. on my list are... probably... atom... sublime... hmm geany ... not sure yet
<ilhami>
I use atom.
<nofxx>
systemd made my life 20x easier. I just don't get the hate. It just works.
<nofxx>
it's on of those fear of new tech bullshit imho
<ilhami>
nofxx, that's what I have heard as well.
flughafen_ has quit [Ping timeout: 240 seconds]
<ilhami>
what OS are you guys working on?
araujo has joined #ruby
araujo has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<ilhami>
"we here on #ruby will build a better OS one day!!!"
flughafen_ has joined #ruby
davedev24 has joined #ruby
<Papierkorb>
Linux as kernel with GNU as userspace tooling
<ilhami>
100% pure GNU does not exist except a few dists.
sandstrom has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
northfurr has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
DmitryBochkarev has joined #ruby
zacstewart has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Deck` has joined #ruby
platzhirsch has joined #ruby
baweaver has joined #ruby
Deck` has quit [Ping timeout: 250 seconds]
dudedudeman has joined #ruby
northfurr has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
northfurr has joined #ruby
Timberwo|f has joined #ruby
s2013 has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jbrhbr has quit [Quit: Leaving.]
peeja has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
hxegon has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
hyperbolist has joined #ruby
intrigueD has joined #ruby
spider-mario has quit [Remote host closed the connection]
sandstrom has joined #ruby
DonOtreply has joined #ruby
fourq|away is now known as fourq
fourq is now known as fourq|away
intrigueD has quit []
intrigueD has joined #ruby
dlitvak has joined #ruby
intrigueD has quit [Remote host closed the connection]
william3 has joined #ruby
mondok has joined #ruby
jordanm has quit [Quit: Konversation terminated!]
<shevy>
ilhami linux!
william3 has quit [Ping timeout: 245 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
northfurr has quit [Quit: northfurr]
kies^ has quit [Ping timeout: 240 seconds]
ta has joined #ruby
fourq|away is now known as fourq
fourq is now known as fourq|away
ta has quit [Remote host closed the connection]
Azulinho has joined #ruby
curious2020 has joined #ruby
jottr_ has quit [Quit: WeeChat 1.4]
sepp2k has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Jonah11_ has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 1.4]
<luckyruby>
I'm using a text to speech api that responds with binary audio data. Is there a way to save this data into an mp3 file using the httprb gem?
binaryplease has joined #ruby
<Ox0dea>
luckyruby: Just... write the response to a file?
flughafen_ has quit [Ping timeout: 264 seconds]
<Ox0dea>
`File.write 'foo.mp3', response.body` or the like.
Rickmasta has quit [Ping timeout: 264 seconds]
dlitvak has joined #ruby
Rickmasta has joined #ruby
sgambino has joined #ruby
Heero has quit [Remote host closed the connection]
dalek- has joined #ruby
ctp__ has quit [Quit: Connection closed for inactivity]
Jonah11_ has joined #ruby
Channel6 has joined #ruby
mostlybadfly has joined #ruby
william3 has joined #ruby
duckpuppy has joined #ruby
baweaver has joined #ruby
lswart has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
<lswart>
hi all, is there a way to isolate my ruby gem environments? I am using rbenv, but when I have different projects using the same ruby version, it seems that the gem dependencies are shared across both projects. Is there a way to separate the installed gems?
<Ox0dea>
lswart: Sounds like you want gemsets.
bonhoeffer has joined #ruby
<luckyruby>
Ox0dea: Ended up using File.syswrite. Thanks.
<Ox0dea>
luckyruby: Sure thing.
ta has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
duckpuppy has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
txdv has joined #ruby
txdv has left #ruby [#ruby]
pdoherty has quit [Ping timeout: 276 seconds]
Heero has joined #ruby
Heero has joined #ruby
bonhoeffer has quit [Read error: Connection reset by peer]
Heero has quit [Client Quit]
bonhoeffer has joined #ruby
IrishGringo has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
chouhoulis has quit []
YankNYC has quit [Quit: Connection closed for inactivity]
Heero has quit [Remote host closed the connection]
Cohedrin has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
Rickmasta has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
puffo1 has joined #ruby
<puffo1>
!ciao
<puffo1>
!lista
puffo1 has left #ruby [#ruby]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jokke has quit [Quit: WeeChat 1.4]
sandstrom has quit [Quit: My computer has gone to sleep.]
Heero has quit [Remote host closed the connection]
Heero has joined #ruby
Heero has joined #ruby
sandstrom has joined #ruby
selfadhesivefilm has joined #ruby
intrigueD has joined #ruby
edulix has quit [Ping timeout: 264 seconds]
DynamicMetaFlow has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
<Papierkorb>
Ox0dea: Nah, by that 8086 byte long x86 emulator for a IOCCC some years ago
<Ox0dea>
Mikko Hypponen is a pretty cool guy.
Heero has quit [Remote host closed the connection]
<Papierkorb>
or it was 4043 Bytes - Don't remember. Was pretty impressive for that
<shevy>
Ox0dea yeah, bash would make ruby a second class citizen, I want to have ruby everywhere!
<Ox0dea>
shevy: A noble pursuit, to be sure. I imagine Papierkorb is writing his emulator in Ruby. :)
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
trajing has joined #ruby
<shevy>
well his project sounds 10000x more advanced
<Papierkorb>
Ox0dea: I would to learn how to handle binary data and everything in Ruby.
jackjackdripper has quit [Quit: Leaving.]
<Ox0dea>
Papierkorb: I briefly considered writing a Chicken compiler. http://torso.me/chicken
<Papierkorb>
shevy: Well right now I'm reading the HBCI documentation, German protocol for online home-banking.
ElFerna has joined #ruby
platzhirsch has joined #ruby
<shevy>
that reminds me... I need to look into packing and unpacking arrays again
<Ox0dea>
You don't unpack arrays.
fedexo has quit [Ping timeout: 240 seconds]
<Papierkorb>
Actually I think if I'd write the x86 stuff I'd use Crystal to learn it more. And then check how the KVM API works so I can see my host system crashing to my tinkering.
<Ox0dea>
Writing a GRUB-bootable "OS" is actually pretty straightforward; it's everything after that's hard. :P
dionysus69 has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Ping timeout: 264 seconds]
Heero has quit [Remote host closed the connection]
<Papierkorb>
Ox0dea: I did manage to get as far as implementin an ELF loader to load/run a program into Ring3 from a EXT2 FS - Does that count?
Rickmasta has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
ElFerna has quit [Ping timeout: 256 seconds]
einarj_ has joined #ruby
Rickmasta has joined #ruby
MindfulMonk has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea>
Papierkorb: I can't say why doing it from ext2 would've been prohibitively difficult, but it sounds like a good time.
ElFerna has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
codecop has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
kies^ has joined #ruby
skade has joined #ruby
ur5us has joined #ruby
selfadhesivefilm has quit [Ping timeout: 264 seconds]
skade has quit [Client Quit]
sandstrom has quit [Quit: My computer has gone to sleep.]
zacstewa_ has quit [Ping timeout: 250 seconds]
skade has joined #ruby
sandstrom has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
davedev24 has quit [Remote host closed the connection]
skade has quit [Client Quit]
moeabdol has joined #ruby
kies^ has quit [Read error: Connection reset by peer]
kies^ has joined #ruby
skade has joined #ruby
Rickmasta has joined #ruby
kies^ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
ferr has quit [Ping timeout: 240 seconds]
Spami has quit [Client Quit]
arooni_______ has joined #ruby
jackjackdripper has joined #ruby
zenlot1 has joined #ruby
northfurr has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
jbrhbr has joined #ruby
sgambino has joined #ruby
zenlot has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
sneakerhax has quit [Ping timeout: 252 seconds]
arashb has quit [Ping timeout: 245 seconds]
average has joined #ruby
<average>
is there some place somewhere that talks about the atomicity of msgsnd and msgget ?
RegulationD has joined #ruby
kies^ has joined #ruby
darkf has quit [Quit: Leaving]
<Ox0dea>
average: #linux, #workingset, and maybe even ##c, if you're feeling bold.
sandstrom has quit [Quit: My computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
kies^ has quit [Read error: Connection reset by peer]
<average>
Ox0dea: asked in #c , nobody answered
pandaant has joined #ruby
rindolf has quit [Quit: Leaving]
the_drow has quit [Quit: This computer has gone to sleep]
kirun_ has quit [Quit: Client exiting]
Jonah11_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
Deck` has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
rkoller has joined #ruby
Deck` has quit [Ping timeout: 276 seconds]
skade has joined #ruby
pawnbox has quit [Remote host closed the connection]
<shevy>
not even they know
kies^ has joined #ruby
Jonah11_ has joined #ruby
<kaleido>
its the unsolved mystery of programming :(
vikas027 has joined #ruby
Limix has joined #ruby
zacstewart has joined #ruby
skade has quit [Client Quit]
wethu has joined #ruby
wethu has quit [Changing host]
wethu has joined #ruby
<average>
actually some annoying guy commented in a weird way
duckpuppy has joined #ruby
<average>
twkm commented on it, and was completely information-free
<average>
i'm off
average has left #ruby [#ruby]
skade has joined #ruby
ixti has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
sandstrom has joined #ruby
Burgestrand has joined #ruby
pdoherty has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
Rickmasta has quit [Ping timeout: 250 seconds]
einarj_ has quit [Remote host closed the connection]
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
Rickmasta has joined #ruby
kies^ has joined #ruby
<Ox0dea>
##c is the brood of vipers in Matthew 12:34.
pdoherty has quit [Ping timeout: 276 seconds]
<Papierkorb>
and thou shall not visit ##c without RTFM'ing you nub Genesis 13:37
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
georgios has joined #ruby
DynamicMetaFlow has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
DynamicMetaFlow has joined #ruby
<georgios>
Hey, anyone familiar with Sinatra? I was wondering how the `params` hash gets introduced into the local block scope of the route handler
<georgios>
e.g. `get '/hello/:name' do puts params['name'] end`
wjimenez5271 has quit [Ping timeout: 272 seconds]
<lswart>
Hi all, I am using rbenv, and trying to use the rbenv-gemset plugin, but I don't know how to create a `.rbenv-gemset` file. Is it the same as a Gemfile? Perhaps someone can show me an example `.rbenv-gemset`? The documentation is a little confusing: https://github.com/jf/rbenv-gemset
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea>
georgios: Here's a fun experiment: debug-print the value of `method(:params).owner` in your handler.
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
And then remember this trick for the rest of your Ruby days.
DynamicMetaFlow has quit [Client Quit]
poguez_ has joined #ruby
sandstrom has joined #ruby
wjimenez5271 has joined #ruby
Renich has joined #ruby
<georgios>
Ox0dea: I'm sorry, I'm quite new to ruby, switching from python, what exactly does `method(:params)` do?
<intrigueD>
Is it Rack::Utils perchance?
<intrigueD>
just a guess
<Ox0dea>
It's Sinatra::Base.
<Ox0dea>
georgios: The #method method takes a method name and returns a Method object representing that method.
<Ox0dea>
Instances of Method can tell you whence they came by way of their #owner method.
<Ox0dea>
It's all very straightforward. :P
selfadhesivefilm has joined #ruby
bkxd has joined #ruby
<georgios>
So `params` is basically a method?
<georgios>
owned by Sinatra::Base?
tfitts_ has joined #ruby
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
baweaver has joined #ruby
<Ox0dea>
georgios: Well, it's technically an attribute; #attr_reader just wraps a getter method around one or more instance variables.
mondok has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
<georgios>
Ox0dea: Hmm, I'm still not sure how it got inside the block, since it doesn't take any arguments
quaristice has joined #ruby
william3 has quit [Remote host closed the connection]
_Tariq has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
<Ox0dea>
georgios: Try `get('/') { p self.class.ancestors }` to get a sense of what's going on.
william3 has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<Ox0dea>
Your handler is just a method call on an instance of Sinatra::Application, which includes Sinatra::Base, which has an instance variable named @params, which is made available with a getter provided by #attr_reader.
rmrrn has joined #ruby
rmrrn has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
cisco has quit [Quit: Leaving.]
kies^ has joined #ruby
davedev24 has joined #ruby
bonhoeffer has quit [Ping timeout: 252 seconds]
northfurr has quit [Quit: northfurr]
Xeago has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
Rickmasta has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
<georgios>
Whaaaahh help, I'm not used to that crazy stuff coming from Python :D I'm not sure why the `params`-attribute is accessible from my block, do blocks capture the scope in which they are executed?
dlitvak has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
toretore has joined #ruby
Rickmasta has joined #ruby
<Papierkorb>
georgios: Yes, they also usually inherit the 'self' reference
<georgios>
Is this "legit", i.e. are you encouraged to do things like this? To me, it feels more like a 'hack' to be honest...
dlitvak has joined #ruby
<Ox0dea>
Might not be the language for you. :/
Rickmasta has quit [Max SendQ exceeded]
<Ox0dea>
Sinatra is a quintessential example of the purported goodness of DSLs.
DynamicMetaFlow has joined #ruby
dlitvak has quit [Remote host closed the connection]
spider-mario has joined #ruby
Rickmasta has joined #ruby
BTRE has quit [Quit: Leaving]
DynamicMetaFlow has left #ruby [#ruby]
<Ox0dea>
Even then, it's pretty bog-standard object-orientation past the syntactically sugary surface layer.
DynamicMetaFlow has joined #ruby
<Ox0dea>
Were you perhaps not exposed to much OO in your experience with Python?
<georgios>
Not saying I strictly don't like it, but coming from languages where stuff like this is not possible or not considered good style, I was quite surprised to see something like this ^^
dlitvak has joined #ruby
BTRE has joined #ruby
rmrrn has quit [Client Quit]
<georgios>
I dealt with some OO in Python, but I had the feeling that it wasn't considered good practice to "mess with" classes/objects too much
<Ox0dea>
Weird.
<Ox0dea>
Then again, both languages let you have it either way.
<Papierkorb>
georgios: It's not only common, but more often than not even encouraged to use metaprogramming in Ruby.
Jonah11_ has quit [Remote host closed the connection]
DynamicMetaFlow has left #ruby [#ruby]
tfitts_ has quit [Quit: tfitts_]
bkxd has quit [Ping timeout: 245 seconds]
jbrhbr has quit [Quit: Leaving.]
ziyadb has quit [Quit: Connection closed for inactivity]
<georgios>
I always thought
Deck` has joined #ruby
<Papierkorb>
georgios: Even built-in gems like 'json' add a 'to_json' method to every object in the environment. Because .. it's convenient being able to write whatever.to_json
<georgios>
too much of metaprogramming made code difficult to read/reason about
jxpx777 has quit [Quit: Leaving...]
tfitts_ has joined #ruby
<georgios>
Papierkorb: Yeah, I absolutely do agree that it's really convenient, it's more like a cultural shock for me seeing metaprogramming all over the place
<Papierkorb>
georgios: it's actually really about making code readable in the sense of being plainly readable. when you see "something.to_json", even if you have never seen 'to_json' before, you know what's going to happen. Compare it to "JSON.dump something" - do you instantly know what dump does?
Rickmasta has quit [Ping timeout: 245 seconds]
<apeiros>
adding to_json to all objects isn't really meta-programming
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
<Papierkorb>
apeiros: Correct, but it adds to the 'culture shock' he's having I guess
DynamicMetaFlow has joined #ruby
<apeiros>
quite likely, yeah
<apeiros>
open classes aren't too common
<georgios>
Papierkorb: On the other hand, not being sure where all the to_json's come from is rather irritating (at least for me, I like to fully understand what's going on)
rmrrn has quit [Client Quit]
<Ox0dea>
georgios: But you can just say `foo.method(:to_json).source_location` and be on your way.
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
<Ox0dea>
In the final analysis, Ruby gives you really sharp scissors and tells you to run.
<Papierkorb>
georgios: That is until you know your tools. Pry can instantly tell you where the code comes from, the source itself, show its documentation or (iirc) open your text editor at the specific line(s) directly.
<apeiros>
I wish Method#source_location would finally work for native code too :-|
<georgios>
Ox0dea: Yeah, I think that captures the spirit really well ;P
dlitvak has quit [Remote host closed the connection]
Rickmasta has joined #ruby
<Ox0dea>
georgios: It's a language that holds your hand in a very different way. "You wanna do what?! Well, here's a method for that."
n00bdev has joined #ruby
Deck` has quit [Ping timeout: 264 seconds]
<Ox0dea>
Someone once put it this way: "Ruby is a language for consenting adults."
sandstrom has quit [Quit: My computer has gone to sleep.]