alfiemax_ has quit [Remote host closed the connection]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
Gnut has quit [Ping timeout: 256 seconds]
s3nd1v0g1us has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
nadir has quit [Quit: Connection closed for inactivity]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
QpQ4__ has joined #ruby
workmad3 has joined #ruby
Azure|dc is now known as Azure
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
_phaul has quit [Ping timeout: 268 seconds]
druonysuse has quit [Quit: Konversation terminated!]
karapetyan has quit [Ping timeout: 240 seconds]
jeffreylevesque has joined #ruby
vutral|kali has quit [Ping timeout: 264 seconds]
DTZUZU has quit [Ping timeout: 240 seconds]
stairmast0r has quit [Quit: bye]
bigblind has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
bigblind has joined #ruby
anisha has joined #ruby
s3nd1v0g1us has quit [Quit: tempusfugit]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
shinnya has joined #ruby
goatish has quit [Quit: Hibernating]
stairmast0r has joined #ruby
goepsilongo has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
mrBen2k2k2k has joined #ruby
vutral|kali has quit [Ping timeout: 240 seconds]
govg has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
cliluw has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
kies has quit [Ping timeout: 264 seconds]
vutral|kali has quit [Ping timeout: 264 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
alfiemax has joined #ruby
guardianx has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
vutral|kali has quit [Ping timeout: 240 seconds]
Puffball_ has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
darkhanb has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has quit [Excess Flood]
milardovich has quit [Remote host closed the connection]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
cthulchu| has joined #ruby
yosafbridge` has quit [Ping timeout: 240 seconds]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
c0dec has quit [Ping timeout: 240 seconds]
trautwein has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
vutral|kali has quit [Ping timeout: 240 seconds]
yosafbridge has joined #ruby
c0dec has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
locsmif has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lightstalker has joined #ruby
vutral|kali has quit [Ping timeout: 268 seconds]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
arescorpio has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Remote host closed the connection]
darkhanb has joined #ruby
darkhanb has quit [Client Quit]
kies has joined #ruby
willmichael has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
vutral|kali has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 252 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has quit [Ping timeout: 256 seconds]
shortCircuit__ has joined #ruby
karapetyan has joined #ruby
<shortCircuit__>
hello
kbsa has joined #ruby
<shortCircuit__>
I wanted to know how to implement bignum ? (not specific with any language). Bignum is treated as if it were an infinite-length bitstring with 2’s complement representation. is what the ruby docs said. but there is nothing more. :(
karapetyan has quit [Ping timeout: 245 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
QpQ4__ has left #ruby [#ruby]
vutral|kali has quit [Excess Flood]
darkhanb has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
jjaii9 has joined #ruby
vutral|kali has quit [Ping timeout: 245 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has joined #ruby
starseed0000 has joined #ruby
locsmif has quit [Ping timeout: 260 seconds]
goepsilongo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
jjaii9 has quit [Read error: Connection reset by peer]
starseed0000 has quit [Ping timeout: 240 seconds]
jjaii9 has joined #ruby
bokafly has joined #ruby
bokafly has left #ruby [#ruby]
shortCircuit__ has quit [Ping timeout: 240 seconds]
vutral|kali has quit [Ping timeout: 240 seconds]
sammi` has joined #ruby
snsei has joined #ruby
jjaii9 has quit []
arescorpio has quit [Quit: Leaving.]
sammi`_ has quit [Quit: Lost terminal]
lytol has quit [Remote host closed the connection]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
asqrd_ has joined #ruby
marxarelli is now known as marxarelli|afk
snsei has quit [Remote host closed the connection]
milardovich has quit []
troys has quit [Quit: Bye]
totalsecond is now known as Ethan
vutral|kali has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
guardianx has quit []
paraxial has quit [Read error: Connection reset by peer]
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
paraxial has joined #ruby
shortCircuit__ has joined #ruby
dionysus69 has joined #ruby
booboy_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
vutral|kali has quit [Ping timeout: 245 seconds]
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
dionysus69 has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
vutral|kali has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
LocaMocha has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
<shortCircuit__>
little helpz :(
kbsa has quit [Quit: Page closed]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<remilapeyre>
Escaping command breaks some tests as like you said, some use this behavior to give arguments
al2o3-cr has quit [Quit: WeeChat 2.0.1]
<apeiros>
you misunderstand
<apeiros>
I think cgihandler expects the user to properly escape the command
<remilapeyre>
I think escaping spaces is a good solution but in that case, we should add this information in the documentation
<apeiros>
otherwise you can't pass flags/options to the handler
ltt has joined #ruby
<apeiros>
that'd certainly make sense, yes
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
<remilapeyre>
@apeiros actually, the besst way to handle this would be to use an array rather than a string right ?
<apeiros>
It would probably make sense to use Process.spawn
<apeiros>
and then allow to use spawn's semantics
karapetyan has joined #ruby
<remilapeyre>
I don't know ruby, looking at the documentation of Procces.spawn it seems like this would allow to use both a string for the current behavior or an array right ?
<apeiros>
from the top of my head: yes
<remilapeyre>
Ok, this looks like a change I might be able to do, my PR on github has not receive much love, does the ruby team works somewhere else or is the Webrick library a low priority project ?
KeyJoo has joined #ruby
<dminuoso>
apeiros: What should the testcase be?
nadir has joined #ruby
<apeiros>
remilapeyre: no idea
<dminuoso>
apeiros: just `fallocate` some file and just File.read("test") ?
<apeiros>
dminuoso: write a file with >2**32 bytes, File.read(path)
karapetyan has quit [Ping timeout: 240 seconds]
<apeiros>
I get an Errno::EINVAL
<dminuoso>
apeiros: Instantly?
<apeiros>
yes
jeffreylevesque has quit [Ping timeout: 264 seconds]
<dminuoso>
apeiros: Working on: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
<apeiros>
ok, so probably an issue with lower level calls on osx
hahuang61 has joined #ruby
<apeiros>
I think the relevant syscall doesn't accept values > (1<<31)-1
<apeiros>
(or maybe (1<<32)-1 if they used unsigned)
<dminuoso>
Oh and good thing I tested this. Seems as if I should probably upgrade Ruby on that.
<apeiros>
yeees
<apeiros>
at least 2.3.6 :D
<dminuoso>
Yup. Cant go straight 2.4 because that would mean upgrading dependencies
<dminuoso>
I mean there's a good handful of native extensions on this, so..
karapetyan has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
hahuang61 has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
<remilapeyre>
apeiros: would #ruby-lang a better chan to discuss this kind of changes in webrick ?
karapetyan has quit [Remote host closed the connection]
<dminuoso>
Weren't #ruby-lang and #ruby merged?
John_Ivan has joined #ruby
John_Ivan has joined #ruby
<remilapeyre>
Oh ok, trying to join #ruby-lang tell me I need an invite but maybe that's expected
karapetyan has joined #ruby
alfiemax has quit [Remote host closed the connection]
fribmendes has quit [Quit: Zzzz...]
<apeiros>
remilapeyre: #ruby-lang redirects to #ruby
<apeiros>
and since you're already here, that doesn't properly work. shortcoming of freenode's ircd
ts__ has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fribmendes has joined #ruby
ltt has joined #ruby
c0dec has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
\void has joined #ruby
BLuEGoD has joined #ruby
karapetyan has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
AJA4350 has joined #ruby
momomo has joined #ruby
<momomo>
I am in an erb file. I would like to render a partial .. but I would like to pass a body to it. Is that possible?
<momomo>
A text, html content. Without saving it to a separate partial and then pass the path to the rendered partial
<dminuoso>
momomo: Use cells, stop worrying about how to "use partials'
troulouliou_div2 has quit [Ping timeout: 240 seconds]
<KrzaQ>
hmm, because I didn't think it through, apeiros ;)
<KrzaQ>
awesome, thanks dminuoso :)
<tbuehlmann>
there's also #ascend
<KrzaQ>
I actually want the inner directory name, but I'll likely want to use the rest of the path in the future
<apeiros>
dminuoso: Pathname does not like \ as separator
<KrzaQ>
I'm getting the paths from Dir[foo]
<dminuoso>
apeiros: *shrugs*
jeffreylevesque has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
postmodern_ has quit [Quit: Leaving]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
remi2 has joined #ruby
Ltem has joined #ruby
fribmendes has quit [Quit: Zzzz...]
psychicist__ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
remilapeyre has quit [Ping timeout: 240 seconds]
\void has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 264 seconds]
ksmmm has quit [Quit: Page closed]
goepsilongo has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jeffreylevesque has quit [Ping timeout: 252 seconds]
bigblind has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mtkd has quit [Ping timeout: 264 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
alex`` has joined #ruby
jeffreylevesque has joined #ruby
n0m4d1c has joined #ruby
mtkd has joined #ruby
ryzokuken has joined #ruby
tcopeland has joined #ruby
cdg has joined #ruby
k0mpa has joined #ruby
xkraty has joined #ruby
ryzokuken has quit [Ping timeout: 256 seconds]
<Burgestrand>
apeiros It does on windows :)
bigblind has quit [Ping timeout: 260 seconds]
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
edolix has joined #ruby
jcalla has joined #ruby
ohcibi has quit [Remote host closed the connection]
ohcibi has joined #ruby
fribmendes has joined #ruby
[Butch] has joined #ruby
hahuang61 has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
ShekharReddy has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
willywos has joined #ruby
willywos has quit [Client Quit]
ryzokuken13 has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
shinnya has joined #ruby
nowhere_man has joined #ruby
ryzokuken13 has quit [Ping timeout: 264 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darix>
luckily you can use / on windows as well
remi2 has quit [Quit: WeeChat 2.0.1]
fribmendes has quit [Ping timeout: 240 seconds]
Guest82373 has quit [Ping timeout: 268 seconds]
paraxial has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
paraxial has joined #ruby
<apeiros>
Burgestrand: oh hurray
<apeiros>
(yes, that's a sarcastic "hurray")
shinnya has quit [Ping timeout: 256 seconds]
roshanavand has quit [Client Quit]
DLSteve has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
nahra has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
yohji has quit [Remote host closed the connection]
momomo has quit [Remote host closed the connection]
sylario has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<darix>
apeiros: it was the path delimiter there for decades. what did you think would happen?:P
Ltem has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
facest has joined #ruby
Ltem has joined #ruby
xkraty has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
faces has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
keithy has quit [Read error: Connection reset by peer]
<apeiros>
darix: the problem is that this is ridiculously stupid. it assumes that you'll process windows pathnames only on windows.
keithy has joined #ruby
sirecote has quit [Quit: "Hang Up"]
<darix>
oh
<darix>
hm
<darix>
well
<darix>
yeah
logoscoder has joined #ruby
KeyJoo has quit [Remote host closed the connection]
Ltem has quit [Quit: bye]
yohji has joined #ruby
bigblind has joined #ruby
<dminuoso>
Why haven't we bashed case insensitive filesystems (*all hail apple*) yet?
Burgestrand has quit [Quit: Closing time!]
tomphp has joined #ruby
<apeiros>
a) apple's is case preserving
hahuang61 has joined #ruby
Rapture has joined #ruby
asqrd_ has quit [Quit: Leaving]
<apeiros>
b) to a non-programmer user it's not necessarily reasonable that "Hello.txt" and "hello.txt" are two different files
kn-928 has joined #ruby
<apeiros>
but trick question 1: are foo@example.com and FOO@example.com the same email address? trick question 2: are foo@example.com and foo@EXAMPLE.COM the same email address?
oleo has joined #ruby
ta_ has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 240 seconds]
Cavallari has quit [Quit: Cavallari]
pastorinni has joined #ruby
<darix>
apeiros: domains are case insensitive so 2. yes
<apeiros>
💯
<darix>
how your mail system handles the user part depends
<apeiros>
well, actually only 50, since that's 1 out of 2 :)
<darix>
but I think most treat them as case sensitive
<apeiros>
well, 1 is: no, they're not the same. but the MTA can decide to handle them as synonyms
<clemens3>
and you can have the case sensitive feature on mac if you want to risk it
<darix>
but admins who allow such mixups should be shot ;)
<apeiros>
and then the riddling starts how far the casemapping of the MTA will go
<apeiros>
and IME it's more like "most MTAs casemap". but I wouldn't bet on anything beyond ascii casemapping
goatish has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darix>
there is now SMTPUTF8
<darix>
;)
<darix>
btw
ledestin has joined #ruby
<apeiros>
and now I wonder whether that's something I actually learnt and already forgot again…
<darix>
it is new-ish
<darix>
;)
AxelAlex has joined #ruby
<apeiros>
ah, yes.
<darix>
postfix got it in 3.x
<apeiros>
had to hand-write our JS validation since the toolbox we use (devextreme) doesn't know how to properly validate emails
tomphp has joined #ruby
<darix>
that is a hard problem tbh ;)
<apeiros>
one part was that it was unable to validate addresses with non-ascii codepoints
<darix>
but
<apeiros>
meh, not really IMO
<darix>
you could use the library used in hakara (or what ever the name of that abomination was)
<darix>
apeiros: the last regexp for email validation that i saw ... was complicated;)
aufi_ has joined #ruby
mikecmpbll has joined #ruby
<apeiros>
yes
<apeiros>
it's long-ish
<apeiros>
but it's not that difficult to translate a BNF to a regex
<darix>
apeiros: there is no JS support in ragel yet?
<apeiros>
though I intentionally disallow certain valid email addresses
<apeiros>
things like comments
<darix>
ragel was good at doing BNF style to parser
<apeiros>
(yes, it is valid to have *comments* in your email address)
<dminuoso>
mmm.
aufi_ has quit [Remote host closed the connection]
<dminuoso>
apeiros: Im currently rolling a monadic parser combinator library, but diagnostics are unbelievably tricky to rig in without making everything utterly unreadable.
<apeiros>
also no whitespace, no email address without a domain, and only the foo@domain part (i.e. no "apeiros <contact@apeiros.me>", only "contact@apeiros.me")
<apeiros>
dminuoso: I can imagine. I remember my attempts at a custom parser for my toy language. where I wanted to add nice diagnostics too.
<dminuoso>
apeiros: The problem is not that its that hard, I know fairly well how to do it.... in haskell.
<darix>
he said the h word
<dminuoso>
It's just that its totally quirky to make it even half way readable in Ruby terms (the backend implementation)
dmitriy_ has quit [Read error: Connection reset by peer]
RougeR has quit [Ping timeout: 240 seconds]
<cagomez>
is there a nicer way of writing `!some_predicate?` ?
za1b1tsu has joined #ruby
<cagomez>
* (!some_predicate? && foo && bar)
<dminuoso>
cagomez: What part of that is offending you?
RougeR has joined #ruby
bmurt has joined #ruby
<cagomez>
dminuoso: having both ! and ? seems weird
willmichael has joined #ruby
sanscoeur has joined #ruby
clemens3 has joined #ruby
n0m4d1c has joined #ruby
kies has quit [Ping timeout: 264 seconds]
biberu has joined #ruby
johnny56 has quit [Quit: johnny56]
ironcamel has joined #ruby
nekomune has joined #ruby
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman is now known as Guest27300
anjen has joined #ruby
hahuang61 has joined #ruby
drewmcmillan has joined #ruby
ShekharReddy has quit []
konsolebox has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
n008f4g_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<elomatreb>
For the case where you just have the one condition unless is your friend, but if there is a more complex logical operation IMO what you said is fine
<elomatreb>
An entirely alternative solution would be to move that conditional into an appropriately named method though
hahuang61 has quit [Ping timeout: 264 seconds]
n0m4d1c has quit [Remote host closed the connection]
marxarelli|afk is now known as marxarelli
konsolebox has joined #ruby
<dminuoso>
cagomez: I simply dont use ? to denote predicates.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<dminuoso>
(It creates unnecessary noise)
<dminuoso>
For precisely such reasons.
johnny56 has joined #ruby
Dimik has joined #ruby
suhdood has joined #ruby
Beams has quit [Quit: .]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
n0m4d1c has joined #ruby
ldepandis has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
ta_ has joined #ruby
ramfjord has joined #ruby
<raynold>
Ahh it's a wonderful day
dionysus69 has quit [Client Quit]
lytol has joined #ruby
dionysus69 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has quit [Read error: Connection reset by peer]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
phage has joined #ruby
phage has joined #ruby
phage has quit [Changing host]
hgost has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
conta has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
_phaul has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
nowhere_man has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
Guest27300 has quit [Ping timeout: 268 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
claudiuinberlin has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sameerynho has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
nahra has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
anjen has quit [Quit: anjen]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ltt has joined #ruby
sammi`_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
edolix has quit [Remote host closed the connection]
xcyclist has quit [Ping timeout: 260 seconds]
kiltzman has quit [Ping timeout: 245 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
kiltzman has joined #ruby
willmichael has quit [Ping timeout: 255 seconds]
kiltzman has quit [Max SendQ exceeded]
anisha has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sammi` has quit [Quit: Lost terminal]
desperek has joined #ruby
_hramrach has joined #ruby
<_hramrach>
hello
mtkd has quit [Ping timeout: 248 seconds]
<_hramrach>
how do I unpack end of string?
<_hramrach>
str.unpack "a*c" gives nil as second result
mtkd has joined #ruby
<_hramrach>
alternatively I could use something like pack_length(my_format) to determine the required number of bytes from the end of the string and chop them off
<_hramrach>
but I do not see a solution for that either
fribmendes has quit [Quit: Zzzz...]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Papierkorb has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
<eam>
_hramrach: a* gobbles the entire string, it's basically a no-op. any unpack instructions after it will have nothing to do
<eam>
str.unpack "a#{str.length - 1}c" seems to be what you want?
cliluw has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
pastorinni has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
<_hramrach>
eam: no. c is an example. I mean for arbitrary format
anjen has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<_hramrach>
and I cannot pack an Enumerable so cannot determine the length by packing endless garbage
<apeiros>
_hramrach: not possible with unpack alone. it doesn't do any lookahead.
schneider has quit [Ping timeout: 240 seconds]
<apeiros>
I would like it to have run-length unpack formats, though. that'd be nice.
<_hramrach>
it's kind of stupid. I would have to reverse the string and format
<apeiros>
_hramrach: did you define the pack format?
schneider has joined #ruby
<_hramrach>
yes, I defined it. but if I find it does not unpack properly I will want to update it, of course
<apeiros>
you should. arbitrarily long data should be in the end. otherwise you need to preprocess.
<_hramrach>
as in preprocess = reverse. No other sensible preprocessing possible
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
<apeiros>
or you need to null terminate
<_hramrach>
it is not null terminated
<apeiros>
there's plenty of sensible preprocessing. but what makes most sense depends on your format/data.
<_hramrach>
it is binary blob which has a C structure appended at the end
<apeiros>
you just said you defined it. you can make it null terminated.
<apeiros>
ok. if it's binary data, you can't :D
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<apeiros>
(I mean you could still, but escaping nulls from binary data sucks)
<_hramrach>
I defined the unpack format not the data
<apeiros>
then you misunderstood my question
<apeiros>
I asked whether you defined the *pack* format
hgost has quit [Quit: leaving]
<_hramrach>
it comes packed
dionysus69 has quit [Ping timeout: 240 seconds]
<apeiros>
ok, so the packing of the data is not under your control.
<_hramrach>
in C you have sizeof (your_fancy struct) but you do not have that for pack format in ruby
<apeiros>
o0
<apeiros>
a struct has a fixed size
<apeiros>
so yes, you can totally unpack a struct
<_hramrach>
unelss you add memebers
<apeiros>
no
dionysus69 has joined #ruby
<apeiros>
a struct's size in memory is fixed.
<_hramrach>
I do not want to count the bytes in the struct and put that as a magic constant in the code which is in no way related to the actual unpack string
<apeiros>
"which is in no way related" … uh, yes, it is.
dmitriy_ has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
ogres has joined #ruby
tcopeland has quit [Quit: tcopeland]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
Coldbla5 has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
arkymad has quit [Ping timeout: 248 seconds]
SynSynack has joined #ruby
bmurt has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
arkymad has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 268 seconds]
marr has joined #ruby
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: WeeChat 2.0.1]
chouhoul_ has quit [Remote host closed the connection]
bigblind has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
hahuang61 has quit [Ping timeout: 268 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
desperek has quit [Quit: xoxo]
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
Diogo has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
_musl_ has quit [Quit: WeeChat 2.0.1]
pastorin_ has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
musl has joined #ruby
pastorinni has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
<cjohnson>
In rspec, when describing a method, does the instance vs self convention follow that of JS? namely, if a method is an instance method, it would be describe '#foo', if it's a class method, it would be describe '.foo' ?
<cjohnson>
Not sure how exactly to google for this convention
netherwolfe_ has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
apeiros has quit []
musl has quit [Client Quit]
musl has joined #ruby
musl has quit [Client Quit]
musl has joined #ruby
jenrzzz has joined #ruby
c0dec has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryzokuken has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
arkymad has quit [Remote host closed the connection]
surminus has joined #ruby
apeiros_ has joined #ruby
Gnut has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
donkey_boy has joined #ruby
<donkey_boy>
hi i am a neo nazi
scrptktty__ has joined #ruby
<donkey_boy>
burn all jews in oven
<donkey_boy>
pillage urine
<donkey_boy>
death to infidels
<donkey_boy>
rape for children because of muslims
<donkey_boy>
burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ###
<donkey_boy>
burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ###
<donkey_boy>
allahu akhbar burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all
<donkey_boy>
jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ###
<donkey_boy>
death to infidels
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<donkey_boy>
homosexual gay man licks burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### v
mikecmpbll has quit [Quit: inabit. zz.]
<donkey_boy>
urinal, so filthy and lickable burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven ### burn all jews in oven
<donkey_boy>
### burn all jews in oven ###
donkey_boy has quit [K-Lined]
n0m4d1c has joined #ruby
<SeepingN>
Welcome to #ruby. Learn to code, and hate, all in one convenient channel
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
arescorpio has joined #ruby
<mozzarella>
they're everywhere, not just in #ruby
cschneid has quit [Remote host closed the connection]