nadir has quit [Quit: Connection closed for inactivity]
<domgetter>
Does `/Users/{user}/.rvm/gems/ruby-2.1.0/bin/sass -v` print out 3.2.16 ?
<domgetter>
Also, what does `which gem` print out?
lxsameer has joined #ruby
<checkit>
../gems/ruby-2.1.0/bin/sass -v prints out 3.2.16
<checkit>
which gem prints "/Users/{user}/.rvm/rubies/ruby-2.1.0/bin/gem"
qba73 has quit [Remote host closed the connection]
<domgetter>
And does `gem list --local` print out a different version than `sudo gem list --local` ?
qba73 has joined #ruby
<checkit>
non sudo = 3.2.16
<checkit>
sudo = 3.4.22 (wth is going on here?)
muelleme has quit [Ping timeout: 248 seconds]
<checkit>
Must've sudo installed somewhere some time ago I guess(?)
<domgetter>
It would appear that sudo is invoking a different install
<checkit>
Interesting.
<checkit>
Also when I did gem list --local (w/o sudo) there is a f' ton more gems
<domgetter>
the non-sudo gem list is loading your gemset from rvm
<checkit>
Ah.
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<domgetter>
which has all the gems installed from all the bundle installs
<checkit>
Got it.
gagrio has joined #ruby
<checkit>
What do you suppose the fix is here?
jstimm has joined #ruby
go|dfish has joined #ruby
<domgetter>
Don't use sudo
<domgetter>
If you want to find the other installed location, run `whereis sass`
yardenbar has joined #ruby
<checkit>
Oh. I did whereis prior to coming here. Didn't produce anything. Not using sudo to update though obviously turned the trick. Thank you for that.
govg has quit [Ping timeout: 244 seconds]
<checkit>
Have you come accross this yet: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (51)
jstimm has quit [Ping timeout: 258 seconds]
kraken_ has joined #ruby
kraken_ is now known as __kraken__
<__kraken__>
does ruby have a __str__ dunder method like python?
harai_ has joined #ruby
ur5us has joined #ruby
<domgetter>
__kraken__ the #to_s method will make a string output version of an object, and the #inspect method will generally make a human-readable string of output representing an object.
<__kraken__>
I'm accessing the first element of the first element of my main array which is another array
<domgetter>
all four elements of the array are the same object
<__kraken__>
oh wow
<domgetter>
and you're modifying the object, so you see the changes in all four
<__kraken__>
thanks!
raul782_ has quit [Remote host closed the connection]
jstimm has quit [Ping timeout: 260 seconds]
Salih has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
<__kraken__>
So what are you working on domgetter?
<__kraken__>
I know that ruby is primarily used as a webdev language
bayed has joined #ruby
<domgetter>
I'm waiting for the keyboardio keyboard to be shipped
ionte has joined #ruby
<__kraken__>
god speed
<domgetter>
I don't have any projects as of late. Although I have been debating with people about the definition of homoiconicity
<domgetter>
Or, not the definition so much as whether or not certain languages are homoiconic
<__kraken__>
I see
<ionte>
hi. anyone who knows httparty? i'm trying to make a post request with custom headers and form data. if i don't use form data, the headers seems to be sent, but i can't combine them....
minimalism has quit [Ping timeout: 252 seconds]
<domgetter>
ionte can you give an example of code?
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx_ has quit [Ping timeout: 250 seconds]
ReK2 has quit [Remote host closed the connection]
<ionte>
domgetter yeah, i've tried that as well, doesn't work. also i think it would send the form data as query parameters..
aidalgol has joined #ruby
<domgetter>
hmm
xall has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
ishe_ua has joined #ruby
centrx has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
centrx has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
<domgetter>
I just did HTTParty.post("http://localhost:3000/essays", {body: {thing: "asdf"*1000}, headers: {"a" => "b"}}) and it set the params hash to the correct thing in Rails
<ionte>
does it send the correct headers as well?
jaguarmagenta has joined #ruby
<domgetter>
Yes, but it couldn't verify CSRF of course since I sent bogus headers
mark_66 has joined #ruby
kn330 has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
virgil has joined #ruby
maokomioko has joined #ruby
Silthias1 has joined #ruby
ocbtec has joined #ruby
AlexRussia has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
Snickers has joined #ruby
yupvr has joined #ruby
flying has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
egg_ has joined #ruby
__kraken__ has quit [Remote host closed the connection]
ta_ has joined #ruby
raul782 has joined #ruby
CHoltk has joined #ruby
godd2 has joined #ruby
mikecmpbll has joined #ruby
brendan- has joined #ruby
j2k has joined #ruby
raul782 has quit [Ping timeout: 256 seconds]
domgetter has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
brendan- has quit [Ping timeout: 258 seconds]
brianpWins has quit [Ping timeout: 250 seconds]
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
brianpWins has joined #ruby
ferr has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
xall has joined #ruby
codfection has quit [Ping timeout: 260 seconds]
shayan__ has quit [Quit: shayan__]
tomphp has joined #ruby
lenwood has joined #ruby
minimalism has quit [Ping timeout: 245 seconds]
pandaant has joined #ruby
kineticrootkit[m has joined #ruby
astrobunny has quit [Remote host closed the connection]
shayan_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
tvw has quit [Remote host closed the connection]
raeoks has joined #ruby
Humdai has joined #ruby
Humdai has quit [Client Quit]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
frozengeek__ has joined #ruby
frozengeek__ is now known as frozengeek___
Beams has joined #ruby
Humdai has joined #ruby
xall has quit [Read error: Connection reset by peer]
codfection has joined #ruby
shayan_ has left #ruby [#ruby]
c0mrad3 has joined #ruby
JeanCarloMachado has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
edwinvdgraaf has joined #ruby
domgetter has joined #ruby
shayan has joined #ruby
godd2 has quit [Ping timeout: 252 seconds]
shayan has quit [Quit: shayan]
godd2 has joined #ruby
xrlk has quit [Ping timeout: 256 seconds]
domgetter has quit [Ping timeout: 265 seconds]
Fernando-Basso has joined #ruby
nikivi has joined #ruby
marr has joined #ruby
nankyokusei has joined #ruby
joonty1 has joined #ruby
brendan- has joined #ruby
dextertzu has joined #ruby
jblack has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
raeoks has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
jeanlinux has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 265 seconds]
jeanlinux has joined #ruby
joonty2 has joined #ruby
muelleme has joined #ruby
omphe has joined #ruby
brendan- has quit [Ping timeout: 244 seconds]
joonty1 has quit [Ping timeout: 246 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
jblack has quit [Ping timeout: 265 seconds]
muelleme has quit [Ping timeout: 250 seconds]
matp_ has quit [Ping timeout: 246 seconds]
Burgestrand has joined #ruby
kassav has joined #ruby
<kassav>
hello community
<kassav>
i got a lot of segment fault when updating to ruby 2.3.1
<kassav>
any idea about such issue
hightower2 has joined #ruby
dasher00 has quit [Ping timeout: 258 seconds]
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<SegFaultAX>
Oh boy. There are 1e6 + 1 reasons why Ruby might segfault. :)
toretore has joined #ruby
<godd2>
perhaps you grabbed the wrong platform?
<kassav>
SegFaultAX: how to debug it
<Burgestrand>
kassav also double-check that if you're using any native gems you might want to re-compile them (gem pristine --extensions)
<kassav>
Process memory map can help?
matp has joined #ruby
Snowy has joined #ruby
aidalgol has quit [Quit: zZzZZzzzz]
JeanCarloMachado has quit [Ping timeout: 250 seconds]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<SegFaultAX>
kassav: Carefully.
<SegFaultAX>
Debugging segfaults is something of a black art, I'm afraid. Particularly in Ruby.
Burgestrand has joined #ruby
xall has joined #ruby
<SegFaultAX>
You might start by simply downgrading your Ruby version.
<godd2>
Did it segfault while installing or while trying to run something in particular?
chouhoulis has joined #ruby
<kassav>
while running an RoR app
<kassav>
it was good in ruby 2.2 but it crashed in some cases with ruby2.31
<godd2>
what version of Rails?
CloCkWeRX has joined #ruby
<kassav>
4.2.5
<apeiros>
easiest first step is what Burgestrand suggested - reinstall your gems
<apeiros>
you might have native ones which crash if compiled against an older ruby
xall has quit [Ping timeout: 250 seconds]
<kassav>
i updated some gems, but not all
<godd2>
kassav are you using rvm?
<kassav>
yes and same thing with rbenv
k13nox has joined #ruby
<godd2>
then make a new gemset to install all-new gems
chouhoulis has quit [Ping timeout: 250 seconds]
xall has joined #ruby
<kassav>
yes i will check that
<kassav>
thank you
JeanCarloMachado has joined #ruby
centrx has joined #ruby
j2k has joined #ruby
centrx has quit [Ping timeout: 256 seconds]
jaguarmagenta has joined #ruby
nikivi has quit [Quit: irc]
godd2 has quit [Ping timeout: 256 seconds]
gregf_ has joined #ruby
maokomioko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 268 seconds]
kafloopascope has quit [Ping timeout: 250 seconds]
codfection has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
ddffg has quit [Ping timeout: 250 seconds]
jaxxstorm has joined #ruby
tvw has joined #ruby
qba73 has quit [Ping timeout: 245 seconds]
brendan- has quit [Ping timeout: 268 seconds]
joonty1 has joined #ruby
joonty2 has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 258 seconds]
jaiks has quit [Ping timeout: 245 seconds]
xall has quit [Ping timeout: 250 seconds]
joonty2 has joined #ruby
jaiks has joined #ruby
joonty1 has quit [Ping timeout: 250 seconds]
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codfection has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
charliesome has joined #ruby
armin has quit [Remote host closed the connection]
xall has joined #ruby
armin has joined #ruby
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c355e3b has joined #ruby
CloCkWeRX has joined #ruby
definity has joined #ruby
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 252 seconds]
kies has quit [Ping timeout: 265 seconds]
kn330 has quit [Ping timeout: 265 seconds]
k13nox has quit [Remote host closed the connection]
k13nox has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
maokomioko has joined #ruby
maokomioko has quit [Client Quit]
kies has joined #ruby
heinrich5991 has quit [Quit: quit.]
armin has quit [Remote host closed the connection]
<syndikate>
Does the ruby `map` operate in parallel compared against `each`?
tau has joined #ruby
nadir has joined #ruby
<elomatreb>
syndikate: No, in fact map uses each internally
k13nox has quit [Remote host closed the connection]
armin has joined #ruby
<syndikate>
Ah okay, thanks elomatreb. I had to optimise a method which uses each on an array, point came up in discussion to try map - I was not sure if it would cause any difference
joonty1 has joined #ruby
<elomatreb>
syndikate: The only difference is that each returns the original array, map returns a new array containing the return values of the block you passed
<syndikate>
Ah okay. Thanks.
cbetta has joined #ruby
joonty2 has quit [Ping timeout: 256 seconds]
joonty2 has joined #ruby
definity has quit [Ping timeout: 256 seconds]
p1ngarn has joined #ruby
GodFather has joined #ruby
virgil has quit [Remote host closed the connection]
joonty1 has quit [Ping timeout: 245 seconds]
definity has joined #ruby
sepp2k has joined #ruby
joonty2 has quit [Ping timeout: 265 seconds]
brendan- has joined #ruby
jblack has joined #ruby
joonty2 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
brendan- has quit [Ping timeout: 268 seconds]
joonty1 has joined #ruby
heinrich5991 has joined #ruby
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
armin has quit [Remote host closed the connection]
jblack has quit [Ping timeout: 246 seconds]
joonty2 has quit [Ping timeout: 252 seconds]
armin has joined #ruby
joonty2 has joined #ruby
nankyokusei has joined #ruby
joonty1 has quit [Ping timeout: 260 seconds]
libastral has joined #ruby
joonty1 has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
joonty2 has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: gnight]
zotherstupidguy has quit [Quit: WeeChat 1.6]
Beams has quit [Quit: .]
Beams has joined #ruby
jaxxstorm has joined #ruby
joonty2 has joined #ruby
jaxxstorm has quit [Client Quit]
joonty1 has quit [Ping timeout: 256 seconds]
joonty1 has joined #ruby
joonty2 has quit [Ping timeout: 250 seconds]
joonty2 has joined #ruby
joonty1 has quit [Ping timeout: 256 seconds]
bikram has joined #ruby
joonty1 has joined #ruby
joonty2 has quit [Ping timeout: 256 seconds]
ponzi has joined #ruby
joonty2 has joined #ruby
<ponzi>
Just upgraded via rbenv to 2.3.2 but now can't install gems due to cert error. Downloaded rubygems-update-2.6.7 but that errors with ERROR: While executing gem ... (TypeError)
<ponzi>
no implicit conversion of nil into String
Burgestrand has joined #ruby
joonty1 has quit [Ping timeout: 252 seconds]
bikram has quit [Quit: leaving]
ponzi has left #ruby [#ruby]
ponzii has joined #ruby
bikram has joined #ruby
meinside has joined #ruby
alibby has joined #ruby
Vile` has joined #ruby
ponzii has left #ruby [#ruby]
ponzii has joined #ruby
sid_fules has joined #ruby
sdothum has joined #ruby
xall has joined #ruby
ptierno has quit [Ping timeout: 250 seconds]
jaxxstorm has joined #ruby
k13nox has joined #ruby
edwinvdgraaf has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
brendan- has joined #ruby
<ponzii>
Did I miss something? I'm signed in and there are 900 users on this channel but I don't see any messages.
<apeiros>
no, you didn't miss anything. nobody had an answer.
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has quit [Ping timeout: 268 seconds]
jaguarmagenta has joined #ruby
<ponzii>
apeiros: No, I mean there were no messages at all until yours. Everyone asleep?
<flying>
I'm using .each_with_index with an array to print a hostname with a , after each of them.... how can avoid to print the , at the last hostname?
johnmilton has joined #ruby
<apeiros>
ponzii: no. just nobody with an answer to your problem.
<apeiros>
flying: use join instead of each
<flying>
join?
edwinvdgraaf has quit [Ping timeout: 260 seconds]
ponzii has quit [Quit: [BX] Hey baby, come sit on my lap. We'll talk about whatever pops up.]
<apeiros>
you can actually update a gist. you don't have to create a new one.
<apeiros>
makes it easier for us to see what you changed too, since they're git repos - i.e. they've got diffs
omphe has joined #ruby
<apeiros>
your code still doesn't wait for all threads to finish, as canton7 told you earlier.
synthroid has joined #ruby
tyang has quit [Ping timeout: 248 seconds]
gizmore has joined #ruby
gizmore|2 has quit [Ping timeout: 268 seconds]
AckZ has joined #ruby
zipper has joined #ruby
<zipper>
does `sudo gem update --system` really install the latest ruby? It only seemed to install the latest version of the gem execuatble
kobain has joined #ruby
<zipper>
However if I wanted to install the latest ruby what do I do?
<apeiros>
gem is not about the ruby executable. so no, it does not install the latest ruby.
<apeiros>
how to install your latest ruby depends on how you installed ruby in the first place.
<apeiros>
usually either your package or one of the ruby version managers
<blackbombay>
question with many possible answers ;-) what OS are you running? it might be possible to use your package manager, otherwise it might be best to use something like chruby & ruby-install.
tyang_ has quit [Read error: Connection reset by peer]
tyang_ has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
j2k has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jblack has joined #ruby
d0nn1e has joined #ruby
<zipper>
It's on osc
<zipper>
*osx
<zipper>
apeiros: I think it came with ruby
<apeiros>
system ruby?
<zipper>
Yes I just want ruby --version to give me the latest ruby
<apeiros>
don't touch system ruby
pawnbox has quit [Remote host closed the connection]
<apeiros>
install a new ruby on the side
<zipper>
I guess I could set a user ruby
<zipper>
Ok should I use rvm?
<apeiros>
that's one variant, yes
<zipper>
or homebrew?
<apeiros>
up to you
<zipper>
Homebrew seems to have ruby
xall has joined #ruby
brendan- has joined #ruby
tlaxkit has joined #ruby
jblack has quit [Ping timeout: 250 seconds]
<flying>
how can I add a string before and after a arrayvalue?
<flying>
variableX.split("before stuff ... myvariable .... after stuff")
<flying>
how can I do that?
<flying>
I'm trying with the split method
the_drow has joined #ruby
<blackbombay>
unshift and push?
<blackbombay>
i dont really understand tbh.
<apeiros>
flying: "#{before}text#{after}"
egg_ has quit []
<apeiros>
or if before/after are static and text is dynamic: "before#{dynamic}after"
xall has quit [Read error: Connection reset by peer]
<apeiros>
pagios: what do you mean by "still not sunchd"?
<apeiros>
the output is now properly synched as far as I see it.
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pagios>
apeiros, but some threads return before outhers
<apeiros>
yes
<pagios>
like 10.11.1.50 before 10.11.1.40
<apeiros>
that happens when you run stuff parallely
<pagios>
i see the same output if i dont synch i mean
cbetta has quit [Quit: Connection closed for inactivity]
<pagios>
without the semaphore
<apeiros>
if you want output to be ordered, then you have to code that up
<apeiros>
the semaphore is not about ordering
<blackbombay>
zipper: when there is a conflict between an OSX and brew software it usually tells you that. i think your options are to add a suffix, so it's "ruby23" or use a version manager like chruby(with ruby-install for installing).
<apeiros>
it's about ensuring that no two threads write at the same time.
<pagios>
if they write at the same time what happens?
<zipper>
blackbombay: hmmm I saw it. It's about linking
<apeiros>
depends on the operation you perform. with puts in mri 1.8-2.1 I know it was 2 operations, printing the string and printing the newline. without synchronization, those two could be interrupted.
<zipper>
`brew link --overwrite ruby`
<blackbombay>
yeah
<pagios>
apeiros, so there is a risk of not printing a thread output
<blackbombay>
i wouldnt do that
<blackbombay>
some osx stuff uses the system ruby
<apeiros>
pagios: no. there is a risk of having output mixed.
<rapha>
(Right now it only ever gives back the first matching character, even with the "m" flag set.
inoperable has joined #ruby
csk has joined #ruby
millerti has joined #ruby
<apeiros>
m flag only changes how . matches
<apeiros>
and [\h\p{Arabic}] is a single character. you probably want [\h\p{Arabic}]+
<apeiros>
or scan instead of match, if you want individual characters.
<apeiros>
@ rapha
Snickers_ has joined #ruby
<rapha>
apeiros: no, i want a string containing all matches ... i.e. in this case the whole text without HTML, etc.
malconis has joined #ruby
<rapha>
.scan is working but returns an array of results, .match doesn't work even with the + :(
<rapha>
(it actually returns "ec")
<apeiros>
gsub then. and match for the opposite, replacing it with an empty string.
<apeiros>
"doesn't work" is simply wrong :)
<rapha>
gsub without substituting anything?
<rapha>
ah
<apeiros>
it's just important that you understand *what they do*
<rapha>
okay
<rapha>
okay
<apeiros>
and match does "return first occurrence"
<aegis3121>
Could also probably do .scan(/stuff/).join ¯\_(ツ)_/¯ but .gsub would be faster I imagine.
<apeiros>
while scan does "return all occurrences". and you can't return all occurrences in a string.
<rapha>
hmm i hoped i could use something other than gsub because i couldnt figure out how to negate [\h\p{Arabic}]
<apeiros>
aegis3121: yeah, that's why I suggested it :)
<apeiros>
rapha: uh, just put a ^ in
<apeiros>
[^…char class]
Snickers has quit [Ping timeout: 246 seconds]
<apeiros>
right after the [, that is. that's negating a character class.
mim1k|wo1k has joined #ruby
mim1k|work has quit [Disconnected by services]
mim1k|wo1k is now known as mim1k|work
sepp2k has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
jaguarmagenta has joined #ruby
saslam has quit [Ping timeout: 250 seconds]
<rapha>
apeiros: that didn't work on regex101.com. and now trying it with gsub, it gives very weird results, removing the whitespace and /some/ of the HTML, but leaving little fragments like "a", and again "ec" in there.
<mBailey_j>
this isn't a gem right? tcltklib.so
Snickers_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rapha>
mBailey_j: nope, that's a shared object library
<mBailey_j>
ok..
Beams has joined #ruby
chouhoulis has joined #ruby
<inoperable>
offtopic: huh, guys seen that microsoft joined the linux foundation on platinium level? 0.5 mln usd/year - steve ballmer must have a bad day ;]
ptierno has joined #ruby
<inoperable>
just read it, and it's sooo wrong hehe
<apeiros>
rapha: note that parsing HTML with regex is a *bad* idea
<apeiros>
I didn't really pay attention that you were processing html until yet. else I'd have said it earlier. use e.g. Nokogiri to parse the html. it can extract the plain text too using its #text method.
cdg has joined #ruby
igniting has quit [Ping timeout: 268 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
<toretore>
rapha: are you sure you shouldn't just remove the html tags?
<toretore>
looking specifically for arabic characters seems weird
<rapha>
apeiros: parsing it would be one thing, i'm just ignoring it.
<apeiros>
and the "ec" is left because \h matches it
<apeiros>
rapha: haha. nice try.
<apeiros>
you can't ignore html without parsing it.
<rapha>
ur
nettoweb1 has joined #ruby
<rapha>
before it's html it's just characters
<rapha>
and certainly no arabic ones
<apeiros>
can be.
<rapha>
and since i also want to get rid of all punctuation or other special characters...
<Burgestrand>
What about image title or alt text?
<apeiros>
^
<Burgestrand>
What about noscript tags, or comments?
<rapha>
Burgestrand: i control the html
chouhoulis has quit [Ping timeout: 246 seconds]
<apeiros>
anyway - why's the \h in your regex?
nettoweb has quit [Ping timeout: 258 seconds]
<rapha>
horizontal whitespace
<rapha>
but now i found a solution: .gsub(/[^( \p{Arabic})]|[()]/, '')
<rapha>
apeiros: not according to the regex101.com quick reference :(((
blackwind_123 has joined #ruby
<apeiros>
different regex engines, different rules
<rapha>
*sigh*
<flying>
what is the escape character in ruby?
<apeiros>
flying: for what? usually \
<apeiros>
rapha: I think char classes work a bit differently from what you think how they work (and that's pan-regex-engines)
<rapha>
apeiros: i think they match a character if that character is part of that class, not correct?
phwelo has joined #ruby
<apeiros>
rapha: yes. and ( are just characters in there too. there's no grouping.
polishdub has joined #ruby
skweek has joined #ruby
blackwind_123 has quit [Client Quit]
<apeiros>
i.e. [^( \p{Arabic})] == [^ ()\p{Arabic}]
<apeiros>
and since you do |[()], I'd say you wanted: [^ \p{Arabic}]
benlieb has quit [Quit: benlieb]
<rapha>
actually, what i wanted was to also remove parentheses and other special chars
<rapha>
perhaps that should be a second regex
<apeiros>
since "(" etc. don't match \p{Arabic}, that shouldn't be necessary.
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
p1ngarn has quit [Quit: p1ngarn]
loincloth has joined #ruby
<toretore>
\p{Arabic} doesn't seem to match vowel marks or whatever they are, i don't know if that's important
benlieb has joined #ruby
jhack has quit [Quit: jhack]
griffindy has joined #ruby
loincloth has quit [Remote host closed the connection]
aupadhye has quit [Remote host closed the connection]
dling has quit []
aupadhye has joined #ruby
muelleme has joined #ruby
<rapha>
toretore: for my purposes right now that's exactly what i want. there's other cases though where i'll have to think on how to match the vowel marks (that's exactly what they are) as well.
SteenJobs has joined #ruby
Snickers has joined #ruby
Rodya_ has joined #ruby
GodFather has joined #ruby
<apeiros>
there's probably a \p{} class. otherwise you might be lucky and they're neatly arranged in a codepoint range.
<apeiros>
in the worst case - enumerate them
railswebdev has joined #ruby
Guest69 has joined #ruby
rippa has joined #ruby
naprimer_3 has quit [Ping timeout: 258 seconds]
muelleme has quit [Ping timeout: 268 seconds]
loincloth has joined #ruby
loincloth has quit [Remote host closed the connection]
naprimer_3 has joined #ruby
<Guest69>
anyone here familiar with Warbler?
edwinvdgraaf has quit [Read error: Connection reset by peer]
jstimm has joined #ruby
suck is now known as zeroday
<adam12>
Guest69: Might be worth asking in #jruby too.
mim1k|wo1k has joined #ruby
jhack has joined #ruby
<Guest69>
adam12 ++
csk has quit [Quit: ZZZzzz…]
lenwood has quit [Ping timeout: 252 seconds]
Flipez has joined #ruby
loincloth has joined #ruby
mim1k|work has quit [Ping timeout: 250 seconds]
loincloth has quit [Remote host closed the connection]
banisterfiend has joined #ruby
ta_ has quit [Remote host closed the connection]
<Kilo`byte>
how would i convert a string to utf-16-le representationb
SteenJobs has quit [Quit: SteenJobs]
DoubleMalt has joined #ruby
jstimm has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takumo has quit [Remote host closed the connection]
inoperable is now known as Synapsis
User458764 has joined #ruby
loincloth has joined #ruby
Synapsis is now known as inoperable
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
douglascorrea has joined #ruby
codfection has quit [Ping timeout: 256 seconds]
loincloth has quit [Read error: Connection reset by peer]
pandaant has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
chouhoul_ has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
xall has joined #ruby
byte512 has quit [Quit: WeeChat 1.6]
DoubleMalt has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby
loincloth has quit [Remote host closed the connection]
nankyokusei has joined #ruby
redpants has quit [Ping timeout: 245 seconds]
igniting has joined #ruby
the_drow has joined #ruby
nikivi has quit [Quit: zzz]
nankyokusei has quit [Ping timeout: 250 seconds]
byte512 has joined #ruby
synthroid has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chopin has joined #ruby
mhib has joined #ruby
tdy has joined #ruby
mhib has quit [Client Quit]
aganov has quit [Quit: Leaving]
kassav has quit [Quit: kassav]
suchness has left #ruby [#ruby]
suchness has joined #ruby
<flying>
how can I print only the first element of the array in this code? <%= array.each.map{|e| "\"str:#{e}:80\""}.join(", ") %>
codfection has joined #ruby
yupvr has quit [Ping timeout: 252 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
csk has joined #ruby
aryaching has joined #ruby
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
jblack has joined #ruby
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
<Silthias1>
array.each.map{|e| "\"str:#{e}:80\""}.join(", ").first not working as you need?
tdy has quit [Ping timeout: 248 seconds]
<canton7>
.each.map? O_o
DoubleMalt has joined #ruby
<suchness>
flying replace join with .first
gingray has joined #ruby
tdy has joined #ruby
Devalo has joined #ruby
SuperLag has quit [Remote host closed the connection]
loincloth has joined #ruby
Snowy has quit [Quit: ragequit]
libastral has quit [Ping timeout: 256 seconds]
<baweaver>
each.map is redundant
<baweaver>
just use map
jmignault has joined #ruby
loincloth has quit [Ping timeout: 268 seconds]
aegis312_ has joined #ruby
gagrio has quit [Quit: Leaving...]
SteenJobs has joined #ruby
aegis3121 has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
joonty1 has joined #ruby
loincloth has joined #ruby
SuperLag has joined #ruby
jmignault has quit [Ping timeout: 265 seconds]
plantfood has joined #ruby
plantfood has quit [Client Quit]
elaptics has joined #ruby
aegis312_ has quit [Ping timeout: 265 seconds]
jshjsh has joined #ruby
joonty2 has quit [Ping timeout: 256 seconds]
amclain has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingd_ has joined #ruby
roamingd_ has quit [Remote host closed the connection]
joonty2 has joined #ruby
loincloth has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
roamingdog has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
roamingdog has joined #ruby
joonty1 has quit [Ping timeout: 258 seconds]
<gener1c>
hey
roamingdog has quit [Remote host closed the connection]
<gener1c>
can someone help me out with what i do with my pull request?
maokomioko has joined #ruby
<gener1c>
the build passed
maokomioko has quit [Client Quit]
roamingdog has joined #ruby
<gener1c>
who do i talk to in ruby-dev about it?
aegis3121 has joined #ruby
roamingdog has quit [Remote host closed the connection]
<gener1c>
im not getting any comments or code reviews , anything essentially is acceptable
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
joonty1 has joined #ruby
careta has joined #ruby
nikivi has joined #ruby
zipper has joined #ruby
joonty2 has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Quit: Leaving.]
aufi has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joonty2 has joined #ruby
bmn has quit [Quit: obai]
<chrisseaton>
gener1c: what's the link?
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
joonty1 has quit [Ping timeout: 265 seconds]
bmn has joined #ruby
<definity>
How do I know what to Post to create a entry to my dataabse?
bovis has joined #ruby
Salih has quit [Quit: Leaving]
<definity>
I am using JSON and I'm not quite sure what layout I should use to post to 2 tables.
<definity>
in 1 query.
jaguarmagenta has joined #ruby
joonty1 has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
peteykun has joined #ruby
joonty2 has quit [Ping timeout: 250 seconds]
<apeiros>
2 tables usually means 2 insert queries
<suchness>
Definity: Um. I think you might have missed something in whatever guide you are using.
<definity>
Okay
<suchness>
You should be figuring out how to interperate whatever you posted in your controller, and then yes TWO inserts if there are two things to update
<definity>
I'm not using a guide.
joonty2 has joined #ruby
<definity>
okay thanks :)
edwinvdgraaf has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 256 seconds]
joonty1 has quit [Ping timeout: 256 seconds]
omphe has joined #ruby
CHoltk has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
[Butch] has joined #ruby
bmn_ has joined #ruby
saslam has joined #ruby
joonty2 has quit [Client Quit]
bmn has quit [Ping timeout: 246 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
pragmaticus has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
nikivi has quit [Quit: irc]
DoubleMalt has quit [Ping timeout: 260 seconds]
josealobato has joined #ruby
mBailey_j has joined #ruby
sdelic has joined #ruby
s2013 has joined #ruby
moei has quit [Quit: Leaving...]
kbdkode has quit [Quit: see ya ]
pawnbox has joined #ruby
moei has joined #ruby
konsolebox has joined #ruby
Derperperd has joined #ruby
railssmith has quit [Ping timeout: 268 seconds]
armin has quit [Quit: relate to the matter as i drop the bomb]
k13nox has quit [Remote host closed the connection]
sphex has quit [Ping timeout: 245 seconds]
sphex has joined #ruby
Devalo has quit [Remote host closed the connection]
saslam has quit [Read error: Connection reset by peer]
<gener1c>
its 4 simple lines
<gener1c>
i didnt make a unit test for it , maybe i should do that
saslam has joined #ruby
<chrisseaton>
gener1c: I'd say it's missing documentation and tests, so it seems like a bit of a fly-by commit. And I think you should add some proper introduction and explanation of why you are adding this feature to the comments.
<chrisseaton>
gener1c: it looks like dumped code to be honest, I wouldn't be enthusiastic about tidying it up and merging it either, sorry
saslam has quit [Read error: Connection reset by peer]
<chrisseaton>
gener1c: and changelog etc etc etc
<gener1c>
dumped code?
DoubleMalt has joined #ruby
<gener1c>
i copied it from nls
saslam has joined #ruby
<gener1c>
the style i mean
<chrisseaton>
You've just dumped some code on their doorstep and expect them to do all the boring work of tests, documentation, changeling etc
<chrisseaton>
Think of the comments section of the PR as being like a job application cover letter - introduce your feature and pitch why you think it should be included.
kafloopascope has joined #ruby
bikram has quit [Quit: Lost terminal]
<gener1c>
even if its just a more complete implementation of the standard?
raul782 has quit [Read error: Connection reset by peer]
bmn has joined #ruby
<chrisseaton>
gener1c: that's better
<chrisseaton>
gener1c: I can't make anyone in the core team actually look at it though, I'm afraid
raul782 has joined #ruby
byte512 has quit [Ping timeout: 246 seconds]
zapata has joined #ruby
matheusmoreira has quit [Remote host closed the connection]
matheusmoreira has joined #ruby
SCHAAP137 has joined #ruby
claudiuinberlin has quit []
smlocal has quit [Remote host closed the connection]
bmn has quit [Quit: obai]
saslam has quit [Read error: Connection reset by peer]
saslam has joined #ruby
xonico has joined #ruby
bmn has joined #ruby
muelleme has joined #ruby
konsolebox has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
senayar has quit []
aufi has quit [Quit: Leaving]
sdelic has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 260 seconds]
CHoltk has joined #ruby
Derperperd has quit [Quit: Derperperd]
josealobato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alibby has quit [Read error: No route to host]
alibby1 has joined #ruby
flcnmv has quit [Remote host closed the connection]
_sfiguser has joined #ruby
josealobato has joined #ruby
josealobato has quit [Client Quit]
saslam has quit [Read error: Connection reset by peer]
<gener1c>
chrisseaton does the extra comment bump it in any way?
saslam has joined #ruby
Derperperd has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josealobato has joined #ruby
josealobato has quit [Client Quit]
jmignault has joined #ruby
<chrisseaton>
gener1c: some people might get notified again
Derperperd has quit [Client Quit]
<blackbombay>
mBailey_j: was zlib installed at the time you compiled ruby?
Lucky_ABA has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
kafloopascope has quit [Quit: Leaving]
Lucky_ABA has quit [Client Quit]
jmignault has quit [Ping timeout: 248 seconds]
Martin___ has joined #ruby
andikr has quit [Remote host closed the connection]
<mBailey_j>
blackbombay, umm...i don't think so.
<mBailey_j>
starting to think i gotta redo everything in a particular order...yes?
centrx has joined #ruby
<gener1c>
thanks chrisseaton
Lucky_ABA has joined #ruby
Devalo has joined #ruby
frozengeek___ has quit [Quit: frozengeek___]
jhack has quit [Quit: jhack]
finisherr has joined #ruby
ruby has joined #ruby
yardenbar has joined #ruby
Beams has quit [Quit: .]
ruby is now known as Guest75271
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
suchness has quit [Ping timeout: 245 seconds]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
howard has joined #ruby
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
SteenJobs_ has joined #ruby
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
SteenJobs has quit [Read error: Connection reset by peer]
SteenJobs_ is now known as SteenJobs
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
yardenbar has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rfoust has joined #ruby
Humdai has quit [Quit: Leaving]
<definity>
I am still confused as the structure to the hash that i have to send in the Post to get ym data inputted into the database is there anyway i can find this out?
saslam has quit [Read error: Connection reset by peer]
frozengeek___ has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 260 seconds]
saslam has joined #ruby
sczizzo_ has joined #ruby
griffindy has joined #ruby
nankyokusei has joined #ruby
machinewar has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
sczizzo_ has quit [Remote host closed the connection]
sczizzo has quit [Ping timeout: 268 seconds]
centrx has quit []
splud has joined #ruby
zipper has quit [Ping timeout: 250 seconds]
sczizzo has joined #ruby
Livecodingtv_Ale has joined #ruby
zipper has joined #ruby
nikivi has joined #ruby
sid_fules has quit [Remote host closed the connection]
<blackbombay>
mBailey_j: yeah, try recompile ruby, zlib is part of the stdlib but it will only be included if zlib can be found at compile time.
nankyokusei has quit [Ping timeout: 246 seconds]
sid_fules has joined #ruby
<mBailey_j>
mmk
saslam has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
saslam has joined #ruby
k13nox has joined #ruby
sczizzo has quit [Ping timeout: 244 seconds]
sid_fules has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mBailey_j>
now just for clarity, when it says 'checking for [name]' does the 'yes' or 'no' mean yes it's checking for it or yes it's installed?
raul782 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<t-richards>
mBailey_J: 'yes' means that it found a usable <whatever> on your system.
<mBailey_j>
mmk
<t-richards>
Keep in mind that most 'no's aren't necessarily a bad thing.
<mBailey_j>
im already certain it won't find majority of packages as this is a live-install with no persistence.
<mBailey_j>
t-richards, okay...noted.
<t-richards>
Usually, if you're missing some critical piece that you can't do without, the configure script will error out and tell you what you need before you can continue.
<mBailey_j>
ah okay.
ta_ has quit [Remote host closed the connection]
redpants has joined #ruby
howard has quit [Read error: Connection reset by peer]
saslam has quit [Read error: Connection reset by peer]
<t-richards>
I say "usually" because not all autotools-based programs are created equal.
<mBailey_j>
awesome...that was it. good call blackbombay
saslam has quit [Read error: Connection reset by peer]
saslam has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
Dimik has joined #ruby
claudiuinberlin has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
dextertzu has joined #ruby
jaguarmagenta has joined #ruby
jaequery has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
vuoto has quit [Remote host closed the connection]
<sphex>
Hey. What's the right way to have an IO object that reads data from a passed block? i.e. the block would be called to fill the IO object's buffer whenever it is read (until the block returns nil for EOF or something).
saslam has quit [Read error: Connection reset by peer]
TomyWork has quit [Remote host closed the connection]
saslam has joined #ruby
SeepingN has joined #ruby
Devalo has quit [Remote host closed the connection]
TomyWork has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
jenrzzz has joined #ruby
dasher00 has joined #ruby
sczizzo has joined #ruby
roflmyeggo has joined #ruby
enterprisey has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
Asher has quit [Quit: Leaving.]
saslam has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
jeanlinux has joined #ruby
Salih has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
Martin___ has quit []
<apeiros>
sphex: can you given an example of the part which you know how it'll look?
josealobato has joined #ruby
josealobato has quit [Client Quit]
raul782 has joined #ruby
Rodya_ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<sphex>
apeiros: ok, something like: data = ['hello', 'world']; io = IO::Block { data.shift }; p io.gets
redpants has joined #ruby
<sphex>
apeiros: so it would return nil on eof. doesn't seem very useful in this case, but the data generated by the block would be dynamic and the IO object would stream it.
<apeiros>
sphex: so you want to implement that IO::Block?
bgray has quit [Quit: leaving]
<sphex>
apeiros: yeah. I really thought there would be a standard way to do it, but I can't find it.
<apeiros>
no. people just use StringIO and fit it in as needed
jsgrant has quit [Quit: Konversation terminated!]
<apeiros>
you could build your IO::Block using it
<apeiros>
shouldn't be much more than a dozen LoC
jsgrant has joined #ruby
<sphex>
apeiros: ok. I was trying to avoid buffering the whole thing.
Snowy has joined #ruby
SteenJobs has joined #ruby
millerti has joined #ruby
howard has quit [Quit: Leaving...]
hightower3 has joined #ruby
ramfjord has joined #ruby
benlieb has joined #ruby
daffy_duck has joined #ruby
aef has joined #ruby
naprimer_3 has quit [Ping timeout: 268 seconds]
daffy_duck is now known as naprimer
hightower2 has quit [Ping timeout: 260 seconds]
derfmt has joined #ruby
hightower2 has joined #ruby
omphe has quit [Ping timeout: 240 seconds]
bocaneri has quit [Remote host closed the connection]
nettoweb1 has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
nettoweb has joined #ruby
tyang_ has joined #ruby
raul782 has quit [Remote host closed the connection]
tyang_ has quit [Client Quit]
tyang has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
tyang__ has quit [Ping timeout: 260 seconds]
sid_fules has joined #ruby
_sfiguser has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
mago0 has quit [Quit: WeeChat 1.5]
mago0 has joined #ruby
hightower2 has quit [Ping timeout: 265 seconds]
mago0 has quit [Client Quit]
mago0 has joined #ruby
pawnbox has joined #ruby
VeryBewitching has joined #ruby
mago0 has quit [Client Quit]
bestel has joined #ruby
cbetta has quit [Quit: Connection closed for inactivity]
truenito has joined #ruby
hightower2 has joined #ruby
josealobato has joined #ruby
lu1s has joined #ruby
truenito1 has joined #ruby
cdg has quit [Remote host closed the connection]
Exuma has joined #ruby
zeroDi has joined #ruby
bestel has left #ruby [#ruby]
xonico has quit [Remote host closed the connection]
miqlas-H has joined #ruby
truenito has quit [Ping timeout: 268 seconds]
GodFather has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hightower2 has quit [Ping timeout: 256 seconds]
DoubleMalt has quit [Ping timeout: 248 seconds]
jeanlinux has quit [Ping timeout: 260 seconds]
marxarelli has joined #ruby
_sfiguser has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
josealobato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
orangey has quit [Read error: Connection reset by peer]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
frozengeek___ has joined #ruby
ramfjord has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
AntiGPL has joined #ruby
orangey has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
derfmt has quit [Remote host closed the connection]
<AntiGPL>
What is the best book for learning programming using Ruby?
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
Ishido has quit [Remote host closed the connection]
frozengeek___ has joined #ruby
frozengeek___ has quit [Remote host closed the connection]
<King_DuckZ>
they both seem to be a higher version than the one available on the official website :/
<c-c>
King_DuckZ: perhaps you want something like rasem?
meshsmith has joined #ruby
<c-c>
or, perhaps nokogiri?
nunchuck has joined #ruby
ta_ has quit [Remote host closed the connection]
machinewar has quit []
<King_DuckZ>
c-c: rasem looks promising, I'll give it a try
lenwood has joined #ruby
sid_fules has quit [Remote host closed the connection]
<King_DuckZ>
c-c: isn't nokogiri for scraping html?
sid_fules has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Client Quit]
smlocal has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
gizmore has quit [Ping timeout: 268 seconds]
gizmore has joined #ruby
hightower2 has joined #ruby
<c-c>
King_DuckZ: no, parsing, modifying xml, svg doc is xml, should work
smlocal_ has joined #ruby
roamingdog has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
smlocal has quit [Ping timeout: 250 seconds]
Guest69 has joined #ruby
tomphp has joined #ruby
railswebdev has joined #ruby
jsgrant has quit [Quit: Konversation terminated!]
jsgrant has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
<manveru>
i use nokogiri for svg, it's fine :)
ocbtec has quit [Quit: leaving]
terens has joined #ruby
tlaxkit has quit [Remote host closed the connection]
jmignault has joined #ruby
tlaxkit has joined #ruby
Snowy has quit [Remote host closed the connection]
lenwood has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
itamarst has joined #ruby
mwlang has joined #ruby
<itamarst>
hi, I've created some rack middleware that wants to initialize immediately on server startup, but sinatra at least won't initialize middleware until the first request is received
roamingdog has quit [Remote host closed the connection]
<itamarst>
is there some way or idiom for this use case?
terens has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
douglascorrea has quit [Remote host closed the connection]
douglascorrea has joined #ruby
dasher00 has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
<c-c>
itamarst: so, just requiring and starting it in a raCK config doesn't work?
toretore has quit [Ping timeout: 250 seconds]
<itamarst>
I'm doing "use MyMiddleware etc." inside the Sinatra application
<itamarst>
haven't tried it that way
<itamarst>
it might work
sid_fules has quit [Remote host closed the connection]
<itamarst>
and if it does that's a fallback, but I'd rather not have documentation saying "you can only use this in a rack config, not in a Sinatra application directly"
douglascorrea has quit [Ping timeout: 256 seconds]
blackbombay has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
smlocal_ has quit []
blackbombay has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
troys has joined #ruby
<itamarst>
c-c: rackup with config.ru DTRT
<itamarst>
but sinatra doesn't :/
TPug has joined #ruby
<c-c>
heh, no idea!
<itamarst>
I guess I'll update docs and worry about sinatra some other day
dviola has joined #ruby
jenrzzz has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pawnbox has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 1.6]
roamingdog has quit [Read error: Connection reset by peer]
johnmilton has quit [Remote host closed the connection]
k13nox has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
k13nox has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
sid_fules has quit [Remote host closed the connection]
josealobato has joined #ruby
alan_w_ has joined #ruby
XV8 has joined #ruby
eclm has quit [Read error: Connection reset by peer]
Jackneill_ has joined #ruby
<mBailey_j>
alrighty, now where can i find this? libpq-fe.h
sid_fules has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<mBailey_j>
perhaps? gem install pg -v '0.19.0
s2013 has joined #ruby
whathappens has joined #ruby
<mBailey_j>
ah, found it.
sid_fules has quit [Remote host closed the connection]
sid_fules has joined #ruby
jaguarmagenta has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
tdy has quit [Ping timeout: 260 seconds]
s2013 has quit [Ping timeout: 265 seconds]
nofxx has quit [Remote host closed the connection]
<mBailey_j>
oh nope!
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 248 seconds]
muelleme has quit [Ping timeout: 265 seconds]
muelleme has joined #ruby
last_staff has joined #ruby
lenwood has joined #ruby
marxarelli has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
jenrzzz has quit [Ping timeout: 240 seconds]
xrlk has joined #ruby
mrconfused has joined #ruby
<mrconfused>
How do I instantiate a subclass that is inside a module ?
josealobato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mrconfused>
I think the answer is to convert API from a class to module
tdy has joined #ruby
zeroDi has quit [Quit: WeeChat 1.6]
<mBailey_j>
ugh, im over it
cdg has joined #ruby
chris34928 has quit [Ping timeout: 256 seconds]
synthroid has quit []
sepp2k has quit [Quit: Leaving.]
tlaxkit has quit [Quit: tlaxkit]
vuoto has joined #ruby
hightower2 has quit [Ping timeout: 256 seconds]
chris34928 has joined #ruby
jmignault has quit [Ping timeout: 260 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
chris3492 has quit [Ping timeout: 240 seconds]
tyang has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
shmuli has joined #ruby
malcolmva has quit [Ping timeout: 260 seconds]
<c-c>
mrconfused: ok
<c-c>
Why do you have two modules with the same name?
<c-c>
mrconfused: the correct syntax should be Modu::Cl1::Cl2.new I think
malcolmva has joined #ruby
<c-c>
mrconfused: finally, what is the error?
hightower3 has joined #ruby
sczizzo_ has joined #ruby
firstdayonthejob has joined #ruby
sparch has quit [Ping timeout: 260 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
muelleme has joined #ruby
Rodya_ has quit [Remote host closed the connection]
sczizzo has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
sczizzo_ has quit [Ping timeout: 245 seconds]
<mBailey_j>
havenwood, you familiar with metasploit? im wondering if i can just run the modules without envoking the framework by just using ruby. you think?
benlieb has joined #ruby
hightower3 has quit [Ping timeout: 260 seconds]
roflmyeggo has quit [Ping timeout: 260 seconds]
<mBailey_j>
it should be possible though at least with the stand alone / stageless modules
csk has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
hahuang65 has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
csk has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
Salih has quit [Quit: Leaving]
Rodya_ has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
xall has quit [Ping timeout: 258 seconds]
sid_fules has quit [Remote host closed the connection]
kraljev11 has joined #ruby
sid_fules has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
csk has quit [Client Quit]
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
teclator has quit [Ping timeout: 268 seconds]
phwelo has quit [Ping timeout: 240 seconds]
teclator_ has joined #ruby
csk has joined #ruby
malcolmva has quit [Read error: Connection reset by peer]
malcolmva has joined #ruby
hightower3 has quit [Ping timeout: 260 seconds]
sid_fules has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
millerti has joined #ruby
ullu has quit [Remote host closed the connection]
jjturner_wrk has joined #ruby
Lucky_ABA has joined #ruby
chopin has joined #ruby
hightower2 has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.6]
<dogweather>
is Celluloid truly multi-threaded in MRI?
jjturner_wrk has quit [Remote host closed the connection]
ullu has joined #ruby
charliesome has joined #ruby
firstdayonthejob has joined #ruby
chopin_ has quit [Ping timeout: 252 seconds]
shmuli has quit [Remote host closed the connection]
muelleme has joined #ruby
ullu has quit [Client Quit]
charliesome has quit [Client Quit]
<eam>
what does "truly multi-threaded" mean?
mBailey_j has quit [Quit: Leaving]
troys is now known as troys_
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shmuli has joined #ruby
<dogweather>
AFAIK, MRI isn't truly multi-threaded because it doesn't actually permit parallel execution. Instead, it provides the API for threading, but depending on the ruby implementation, all actions may be serialized
pragmaticus has quit [Ping timeout: 258 seconds]
muelleme has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
fmcgeough has joined #ruby
jshjsh has quit [Ping timeout: 260 seconds]
konsolebox has quit [Quit: Leaving]
JoshS has joined #ruby
<eam>
there's a gvl which is held when doing things in the vm. it's not always held, some things do happen in parallel. a module can release the gvl if it's doing things unrelated to the ruby vm
shmuli_ has joined #ruby
<eam>
celluloid running on mri is still subject to this constraint
tdy has quit [Ping timeout: 245 seconds]
ptierno has quit [Ping timeout: 256 seconds]
mwlang has quit [Quit: mwlang]
kalopsian has joined #ruby
ta_ has quit [Remote host closed the connection]
kalopsian has quit [Client Quit]
hightower2 has joined #ruby
lu1s has quit [Quit: WeeChat 1.5]
<dogweather>
concurrent-ruby too, i'd assume
SeepingN has quit [Quit: The system is going down for reboot NOW!]
shmuli has quit [Ping timeout: 258 seconds]
kraljev11 has quit [Remote host closed the connection]
<dogweather>
thanks!
<eam>
np!
kraljev11 has joined #ruby
dviola has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
maddmaxx has joined #ruby
maddmaxx has quit [Client Quit]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit []
nankyokusei has joined #ruby
millerti has joined #ruby
hightower3 has joined #ruby
shmuli_ has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
shmuli has joined #ruby
muelleme has joined #ruby
hightower2 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
preyalone has joined #ruby
Bounga has joined #ruby
johnmccabe has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
shmuli_ has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
shmuli has quit [Ping timeout: 258 seconds]
malconis has quit [Read error: Connection reset by peer]
ullu has joined #ruby
bkxd has joined #ruby
shmuli has joined #ruby
raul782 has joined #ruby
muelleme has quit [Ping timeout: 256 seconds]
tdy has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
shmuli_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
raul782 has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
raul782 has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
davidt has joined #ruby
hightower2 has joined #ruby
polishdub has quit [Quit: Leaving]
dasher00 has joined #ruby
chris3492 has joined #ruby
aurelien` has joined #ruby
ptierno has joined #ruby
ptierno has joined #ruby
ptierno has quit [Changing host]
hightower3 has quit [Ping timeout: 252 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.6]
dogweather has quit []
aurelien` is now known as aurelien
aurelien is now known as aurelien`
aurelien` is now known as aurelien
aurelien has quit [Changing host]
aurelien has joined #ruby
chris34928 has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
Rodya_ has joined #ruby
hightower3 has joined #ruby
workmad3 has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
marxarelli|afk is now known as marxarelli
muelleme has joined #ruby
ptierno has quit [Ping timeout: 260 seconds]
hightower2 has quit [Ping timeout: 250 seconds]
zipper has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
truenito has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
agent_white has joined #ruby
muelleme has quit [Ping timeout: 256 seconds]
hightower2 has joined #ruby
benlieb has joined #ruby
hightower3 has quit [Ping timeout: 246 seconds]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
troys_ is now known as troys
exchgr has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
domgetter has joined #ruby
yfeldblu_ has joined #ruby
muelleme has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
jhack has quit [Quit: jhack]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 260 seconds]
<chrisseaton>
I'd argue that MRI is totally, unequivocally multi-threaded, even though it has a GIL. Threads were around long before most people had multi-processors. They were for concurrency first, and repurposed for parallelism when that became possible.
biberu has quit []
hahuang65 has quit [Ping timeout: 250 seconds]
Livecodingtv_Ale has quit [Remote host closed the connection]
tref has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
<domgetter>
concurrency is two people sharing a pencil. parallelism is two people sharing two pencils but still one piece of paper.
jhack has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
exchgr has joined #ruby
muelleme has quit [Ping timeout: 248 seconds]
jhack has quit [Client Quit]
kraljev11 has quit [Quit: kraljev11]
minimalism has joined #ruby
hightower3 has joined #ruby
jaguarmagenta has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
lenwood has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
yfeldblu_ has quit [Remote host closed the connection]
<blackbombay>
rob pike explains the diffeence with style, he uses imaginary gophers :D
<domgetter>
To be clear, in my analogy, a "person" is a thread, a "pencil" is a cpu core, and "paper" is ram
shakes has joined #ruby
<xrlk>
wow amazing explanation domgetter ....
<xrlk>
i understand more now
muelleme has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
shakes has quit [Client Quit]
Alina-malina has joined #ruby
dnicole has quit [Remote host closed the connection]
muelleme has quit [Ping timeout: 256 seconds]
SCHAAP137 has quit [Quit: Leaving]
saslam has quit [Ping timeout: 248 seconds]
<domgetter>
When you create a thread, it starts running immediately along with your other code. That is, it starts "sharing" the cpu and gets scheduled to use it
lenwood has quit [Ping timeout: 246 seconds]
chris3492 has quit [Read error: Connection reset by peer]
wopi has joined #ruby
wopi has quit [Client Quit]
noname has joined #ruby
douglascorrea has quit []
yfeldblum has quit [Remote host closed the connection]
douglascorrea has joined #ruby
ben__ has joined #ruby
staticfox has quit [Read error: Connection reset by peer]
staticfox has joined #ruby
yfeldblum has joined #ruby
matheusmoreira has quit [Ping timeout: 246 seconds]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ben_____ has quit [Ping timeout: 245 seconds]
wopi has joined #ruby
roamingdog has quit [Remote host closed the connection]
wopi has quit [Client Quit]
nankyokusei has joined #ruby
wopi has joined #ruby
muelleme has joined #ruby
troys is now known as troys_
wopi_ has joined #ruby
roamingdog has joined #ruby
marxarelli is now known as marxarelli|afk
wopi_ has quit [Remote host closed the connection]
wopi has quit [Remote host closed the connection]
wopi has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]