jonr2219 has quit [Remote host closed the connection]
jwinder has joined #ruby
juanpablo__ has quit [Ping timeout: 272 seconds]
davispuh has quit [Read error: Connection reset by peer]
pietr0 has quit [Quit: pietr0]
reinaldob has joined #ruby
senayar has quit [Remote host closed the connection]
icebourg has joined #ruby
valkyrka has quit [Ping timeout: 264 seconds]
snockerton has quit [Quit: Leaving.]
juanca_ has joined #ruby
sevvie has joined #ruby
loop3r has joined #ruby
Stalkr has quit [Quit: Leaving...]
x77686d has joined #ruby
Asher has quit [Quit: Leaving.]
momomomomo_ has joined #ruby
Asher has joined #ruby
<loop3r>
hello, is this "ready worker" and `reaped #<Process::Status: pid 2344 SIGKILL (signal 9)> worker=1` fixable? I try use unicorn and gitlab, but always 502
ghostmoth has quit [Quit: ghostmoth]
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
airdisa_ has quit []
bayed has quit [Quit: Connection closed for inactivity]
arrubin has joined #ruby
tlarevo has joined #ruby
nfk|laptop has quit [Quit: yawn]
bim has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
hpoydar has quit [Remote host closed the connection]
icebourg has quit []
robertt_dex has joined #ruby
LJT has quit [Quit: Sleeping...]
LJT has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
marr has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
LJT has quit [Ping timeout: 252 seconds]
_pakchoi_ops has joined #ruby
pwattste has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
plashchynski has quit [Quit: plashchynski]
bim has joined #ruby
Flcn has joined #ruby
krisquigley has joined #ruby
bim has quit [Remote host closed the connection]
luksaur has quit [Quit: Leaving]
trollses has joined #ruby
<trollses>
hi all
bronson has joined #ruby
<trollses>
all niggers if you could please part the channel and go to #ruby-niggers I would be greatful. this is a white channel.
trollses has quit [Killed (idoru (Spam is off topic on freenode.))]
<bricker>
apeiros: plz
Flcn has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
bim has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
juanca_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
deliani__ has quit [Remote host closed the connection]
avahey has joined #ruby
Pupeno_ has quit [Ping timeout: 265 seconds]
Papierkorb has joined #ruby
nii2361 has joined #ruby
jerius has quit [Quit: /quit]
paulcsmith has joined #ruby
oo_ has joined #ruby
<Papierkorb>
Hi, currently having a look at ruby and scripting stuff. So, the sqlite3 gem docs say something like this: #execute(*bind_vars) {|@results| ... } ⇒ Object | Now, what does tha * before bind_vars tell me? Does that indicate an optional argument?
weendox has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
tris has quit [Quit: Leaving]
<jokester>
it indicates there can be multiple arguments, and they will be captured in an array
senayar has joined #ruby
<Radar>
bricker: I have admin rights here too btw.
paulcsmith has quit [Ping timeout: 256 seconds]
<Radar>
bricker: !r
<helpa>
bricker: Radar: you have been summoned by Radar
<jamgood96>
I'm installing ruby on a ubuntu box (14.04) using rbenv. all goes well until i try to do gem install bundler - i'm receiving "Connection reset by peer - SSL_connect". I googled around a bit but found no solution other than possible firewall issues, which this is not
<Papierkorb>
jokester: thanks
checkit has quit [Ping timeout: 255 seconds]
<Radar>
jamgood96: willing to give something other than rbenv a try? No guarantees it will fix it.
<Radar>
jamgood96: If not, do you have a stacktrace for that issue?
<jamgood96>
no, unfortunately i'm rather commited to rbenv for this project and it's infrastructure... although what would you recommend as an alternative?
<jamgood96>
forgive my noobness, but I know little to nothing about doing a stacktrace
<Radar>
I have a guide that uses chruby+ruby-install that hundreds, maybe even thousands of people have followed successfully
<Radar>
jamgood96: No worries. Is there anything else that's output from that "Connection reset by peer" error? Can you put all the output in a Gist? https://gist.github.com
<jamgood96>
Radar: I'll look into your guide for our next project. I like rbenv, but it's a pita at times, especially when using something like Ansible for provisioning machines
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
pontiki has joined #ruby
<bricker>
Radar: TIL
bim has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
<bricker>
(that you have admin rights here)
blackmesa has joined #ruby
<Radar>
Recent development
<Radar>
we got freenode to grant "founder" permission to apeiros and I
<Radar>
jamgood96: Did you install libopenssl-dev before installing Ruby?
kblake has joined #ruby
<jamgood96>
hmm.. i see that my script is installing libssl-dev, not libopenssl-dev
blackmes1 has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
neruda has quit [Ping timeout: 246 seconds]
dorei has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
sargas has quit [Quit: This computer has gone to sleep]
baroquebobcat has quit [Client Quit]
reinaldob has quit [Remote host closed the connection]
<jamgood96>
Radar: I believe libssl-dev is the correct package
<Radar>
jamgood96: ah that's the one
<Radar>
jamgood96: I am not sure what could be wrong, sorry :(
iteratorP has joined #ruby
nii2361 has joined #ruby
iteratorP has quit [Remote host closed the connection]
<Papierkorb>
So, I have an array with instances of my Person class. each person has a unique id. Now, I want a method which returns if a person is in that array by id. How do I do that in ruby?
yfeldblum has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 245 seconds]
Pharaoh2_ has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
Pharaoh2_ has quit [Max SendQ exceeded]
x77686d has quit [Quit: x77686d]
Pharaoh2_ has joined #ruby
juanpablo__ has joined #ruby
Pharaoh2 has quit [Ping timeout: 250 seconds]
towski_ has quit [Remote host closed the connection]
<jokester>
um.. I was just feeling metaprogramming may bring some marginal case. will tell you if I can forge one
jonr22 has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hoelzro>
you're probably right; I don't have a lot of experience with Ruby
jwinder has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
Vile` has quit [Remote host closed the connection]
iterator_ has joined #ruby
Takle has quit [Remote host closed the connection]
fenzil has joined #ruby
Vile` has joined #ruby
sankaber has joined #ruby
Ohga has joined #ruby
thinkswan has joined #ruby
iteratorP has quit [Ping timeout: 265 seconds]
<centrx>
Good work team
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker>
:|
<bricker>
:}
<bricker>
:]
<bricker>
:>
jespada has joined #ruby
<Ohga>
Don't know if this is the right channel for this, but gem have a problem where it tries to get the wrong binaries on windows (there's an issue on the tracker).. would anyone know how long until there's a new version of rubygem?
caveat- has quit [Ping timeout: 248 seconds]
genpaku has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 272 seconds]
genpaku has joined #ruby
caveat- has joined #ruby
yokel has joined #ruby
thinkswan has quit [Ping timeout: 250 seconds]
<centrx>
Ohga, I don't know. There's also a #rubygems channel
arrubin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ohga>
centrx: ah, alright. heading over
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
jespada has quit [Ping timeout: 256 seconds]
thomas is now known as evilthomas
havenwood has joined #ruby
veduardo has joined #ruby
Authenticator has joined #ruby
Authenticator is now known as DiscoStuart
vim_shimm has quit [Ping timeout: 248 seconds]
rokob has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
slackbotgz has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
juanca_ has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
vim_shimm has joined #ruby
x77686d has joined #ruby
arrubin has joined #ruby
a346 has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
juanca_ has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 252 seconds]
juanca_ has joined #ruby
juanca_ has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
martinbmadsen has joined #ruby
krisquigley has joined #ruby
nii2361 has joined #ruby
RegulationD has joined #ruby
iwaffles has quit [Quit: iwaffles]
OtterCoder has joined #ruby
tus has quit []
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
krisquigley has quit [Ping timeout: 272 seconds]
juanca_ has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
bricker has quit [Quit: leaving]
phutchins has quit [Ping timeout: 252 seconds]
thinkswan has joined #ruby
ghostpl_ has joined #ruby
kblake has quit [Remote host closed the connection]
dfinninger has joined #ruby
Crazy_Atheist has joined #ruby
nfk has quit [Quit: yawn]
christiandsg has joined #ruby
iterator_ has quit [Remote host closed the connection]
iteratorP has joined #ruby
swgillespie has joined #ruby
balazs has joined #ruby
bronson has joined #ruby
Chris27 has joined #ruby
lessless has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
swgillespie has quit [Client Quit]
ghostpl_ has quit [Ping timeout: 248 seconds]
nii2361 has quit [Ping timeout: 252 seconds]
christiandsg has quit [Ping timeout: 252 seconds]
DavidDudson has joined #ruby
dfinninger has quit [Remote host closed the connection]
rokob has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 246 seconds]
rokob has joined #ruby
DavidDudson has quit [Client Quit]
Aswebb_ has joined #ruby
rokob has quit [Ping timeout: 256 seconds]
arrubin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nii2361 has joined #ruby
Limix has joined #ruby
arrubin has joined #ruby
krz has joined #ruby
Limix has quit [Client Quit]
arrubin has quit [Client Quit]
Limix has joined #ruby
patrick99e99 has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Ping timeout: 265 seconds]
juanpablo__ has joined #ruby
Aswebb_ has quit [Ping timeout: 272 seconds]
avahey has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
dc_ has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
arrubin has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
rbennacer has joined #ruby
Papierkorb has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
dfinninger has joined #ruby
snath has joined #ruby
NivenHuH has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 272 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<helpa>
Hi flughafen. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<wasamasa>
repasting wouldn't be cool if it were spam
<wasamasa>
I really like this feature of it, makes a more convincing case compared to the !pastebin factoids on #archlinux*
<apeiros>
I think that'd actually be negligible
bronson has joined #ruby
<apeiros>
at least I don't remember even a single instance of paste spam
<certainty>
we have some over in #chicken
jenrzzz has joined #ruby
<wasamasa>
mhh
<certainty>
flughafen: curious eh?
oo_ has quit [Remote host closed the connection]
<flughafen>
certainty: yes!
Takle has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 272 seconds]
ghostpl_ has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
<apeiros>
open question to all - what do you all expect from this channel and from the people in this channel?
ta has joined #ruby
<certainty>
tough question
bronson has quit [Ping timeout: 256 seconds]
vdamewood has joined #ruby
<certainty>
i expect not so much, but i'm happy when i can learn something new about ruby. Which is what i regulary do by following the conversations
hs366 has joined #ruby
<apeiros>
indeed. I wanted to phrase the rules as a 2 section piece - "what you can expect from us" + "what we expect from you"
<apeiros>
so far I've only got 2 points in "what you can expect from us"
krisquigley has joined #ruby
<certainty>
you certainyl can expect to get some well informed answers if you happen to have your question answered by the right people
<certainty>
and that's not only about ruby itself but can be about general computer science topics
<certainty>
also you can see me producing loads of different mistakes in only a few sentences
ghostpl_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
<certainty>
what you can't expect from us is: doing your homework
<certainty>
but that's probably too negative
Chris27 has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 255 seconds]
nii2361 has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
lemur has quit [Remote host closed the connection]
Xiti has joined #ruby
<flughafen>
+1 certainty
RegulationD has joined #ruby
Crazy_Atheist has quit [Ping timeout: 265 seconds]
blueOxigen has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
ta has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
jerematic has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
Takle has joined #ruby
jerematic has quit [Ping timeout: 250 seconds]
pwnz0r has quit [Remote host closed the connection]
Macaveli has joined #ruby
shanlar has joined #ruby
anarang has quit [Quit: Leaving]
wookiehangover has quit [Ping timeout: 256 seconds]
MasterNayru has quit [Remote host closed the connection]
yfeldblum has joined #ruby
oo_ has joined #ruby
agrinb has joined #ruby
jph98 has joined #ruby
roolo has joined #ruby
juanpablo__ has quit [Ping timeout: 244 seconds]
nii2361 has joined #ruby
einarj has joined #ruby
vim_shimm has joined #ruby
suffice has quit [Quit: leaving]
__main__ has joined #ruby
_1_shaz has joined #ruby
<_1_shaz>
helli
<_1_shaz>
hello
_1_shaz has quit [Remote host closed the connection]
senayar has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
<atmosx>
Good Morning
<mosez>
07:26 Warning: Port sent with DCC request is a lowport (0, unknown) - this isn't normal. It is possible the address/port is faked (or maybe someone is just trying to bypass firewall)
<mosez>
07:26 DCC SEND from _688as [0.0.0.0 port 0]: startkeylogger [0B bytes] requested in channel #ruby
<mosez>
lol
<apeiros>
certainty: sorry. got talked to and didn't expect it to take this long.
blueOxigen has quit [Ping timeout: 248 seconds]
relix has joined #ruby
riceandbeans has joined #ruby
riceandbeans has joined #ruby
<certainty>
apeiros: no problem
bluOxigen has joined #ruby
<certainty>
apeiros: did you see what i wrote?
<apeiros>
certainty: I actually intend to put something wrt "we're not writing your code for you" into it
shredding has joined #ruby
vim_shimm has quit [Ping timeout: 248 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ByronJohnson has joined #ruby
wookiehangover has joined #ruby
jenrzzz has joined #ruby
rdark has joined #ruby
NightMonkey has joined #ruby
Takle has quit [Remote host closed the connection]
<certainty>
apeiros: yeah that makes sense although that should be clear. Also how to ask smart questions is a good source for general guides on how to participate
A205B064 has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
martinbmadsen has quit [Ping timeout: 244 seconds]
lessless has quit [Max SendQ exceeded]
yfeldblu_ has joined #ruby
jespada has joined #ruby
hanmac1 has joined #ruby
ki0 has joined #ruby
jph98 has quit [Quit: jph98]
yfeldblum has quit [Ping timeout: 246 seconds]
msgodf has joined #ruby
krz has joined #ruby
dc has joined #ruby
thinkswan has joined #ruby
<apeiros>
certainty: yeah, everything in the rules *should* be clear. experience shows that it isn't clear.
<apeiros>
and yes, I'll try to fit in a stripped down version of "asking good questions" in the rules too.
jespada has quit [Ping timeout: 246 seconds]
DEA7TH has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
jottr has joined #ruby
cats has quit [Read error: Connection reset by peer]
govg has quit [Quit: leaving]
<certainty>
apeiros: sounds good
oo_ has quit [Remote host closed the connection]
Morkel has joined #ruby
dc has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
livathinos has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
ponga has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
ta has joined #ruby
bronson has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
RDash has quit [Ping timeout: 272 seconds]
Pharaoh2 has joined #ruby
iamninja has joined #ruby
ghostpl_ has joined #ruby
monzie has joined #ruby
<flughafen>
eval-in_: a = "foo" ; a << "bar"
Morkel has quit [Quit: Morkel]
<flughafen>
i get it!@
yfeldblu_ has quit [Read error: Connection reset by peer]
Kilo`byte has quit [Read error: Connection reset by peer]
<apeiros>
weaksauce: ah, I see. yeah, right. I have the mantra "I will help you, that does not mean I will solve it for you". have to put that in words.
jenrzzz has quit [Ping timeout: 256 seconds]
dumdedum has joined #ruby
stef204 has joined #ruby
<apeiros>
weaksauce: re "not read the rules". I want the rules to be individually linkable through a bot command
psy_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
_64k has joined #ruby
<nii2362>
6/close
oo_ has joined #ruby
nii2362 has left #ruby ["WeeChat 1.1.1"]
lkba has quit [Ping timeout: 248 seconds]
gfawcettpq has quit [Ping timeout: 252 seconds]
zzing has joined #ruby
zzing has quit [Client Quit]
Morkel has joined #ruby
AlexRussia has joined #ruby
tvw has quit []
tvw has joined #ruby
krz has quit [Ping timeout: 264 seconds]
astrobunny has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
bruno- has joined #ruby
Zai00 has joined #ruby
oo_ has quit [Remote host closed the connection]
kstuart has quit [Quit: WeeChat 1.1.1]
_pakchoi_ops has joined #ruby
virtualbsd has joined #ruby
krz has joined #ruby
leafybasil has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
livathin_ has joined #ruby
huddy has joined #ruby
pwattste has quit [Remote host closed the connection]
livathin_ has quit [Remote host closed the connection]
<apeiros>
hi niko. thanks for helping resolve the ownership issue!
virtualbsd has quit [Ping timeout: 246 seconds]
_pakchoi_ops has quit [Quit: No Ping reply in 240 seconds.]
krisquigley has quit [Ping timeout: 248 seconds]
<niko>
you're welcome
jespada has joined #ruby
astrobunny has quit [Remote host closed the connection]
<apeiros>
thanks for the tip re +C
_pakchoi_ops has joined #ruby
jimms has quit [Remote host closed the connection]
RegulationD has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
livathinos has joined #ruby
livathinos has quit [Remote host closed the connection]
livathinos has joined #ruby
bronson has joined #ruby
<Burgestrand>
Nice to see you’re still a regular here apeiros :)
<apeiros>
oh hi Burgestrand, long time no see
<apeiros>
not just a regular anymore. co-owner now :D
krisquigley has joined #ruby
<adaedra>
Congrats
<Burgestrand>
Even better! No merge of the channels still though I see ;)
<apeiros>
that's not out of question
<Burgestrand>
Even though #ruby is kind of winning the race nowadays, I suppose most of the #ruby-lang are overlappers too
djellemah has joined #ruby
<apeiros>
I have not really made up my mind upon what I consider best. I somehow started to like having 2 channels.
<Burgestrand>
I don’t get the chance to IRC as much any more, ever since I started working with ruby I started programming less and less (towards 0) at my own leisure time, and at work we do pair programming most of the time so not much chance of being in here
<apeiros>
sad
chthon has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
livathin_ has quit [Ping timeout: 264 seconds]
<Burgestrand>
There’s upsides and downsides to everything I guess :)
<apeiros>
but yeah, my presence on irc has suffered too. 100% job + private projects…
<apeiros>
but I guess I'm still easily in the top 10 most active users in #ruby/#ruby-lang
Pharaoh2_ has joined #ruby
<Burgestrand>
Hah, that’s nice to hear!
bronson has quit [Ping timeout: 244 seconds]
<apeiros>
I do hope that with the new ops, my title as most active op will drop, though :D
<Burgestrand>
:)
ghostpl_ has joined #ruby
<Burgestrand>
Hah, shevy still in here too
workmad3 has joined #ruby
Wolland has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 245 seconds]
<certainty>
shevy has no time!
<Burgestrand>
It’s nice to see some recognizable names
oo_ has quit [Remote host closed the connection]
jerematic has joined #ruby
<Burgestrand>
Don’t get me wrong it’s nice to see everyone else too
<Burgestrand>
but it’s a bit nostalgic to see some old names here still
<certainty>
for shevy it's not only the name that's old xD
davispuh has joined #ruby
<Burgestrand>
;)
<workmad3>
Burgestrand: heh :) soon I'm going to be counted as one of those names :P
sevvie has joined #ruby
<certainty>
workmad3: will you /nick to workmad30 then?
<Burgestrand>
workmad3: in my book you already do ;)
<workmad3>
certainty: if I was going to do that, I should have done it a month ago :(
<certainty>
damn you missed that opportunity
<workmad3>
certainty: give it a few years and I'll try to remember to /nick workmad33 :)
<certainty>
but i somehow expected that you're older than me
<certainty>
you have that oldisch aura :p
<workmad3>
certainty: I plan on spending a decent amount of time as 'old' so I figured I should learn how to enjoy it while I'm still young ;)
<certainty>
workmad3: smart move
* Burgestrand
steals quote
<workmad3>
Burgestrand: feel free... it's BS I just made up (afaik) that's just a bit of a reversal of "Youth is wasted on the young" :P
gidea has quit [Remote host closed the connection]
fgo has joined #ruby
Stoge88 has joined #ruby
quimrstorres has joined #ruby
<atmosx>
loop3r: what your 'ruby --version' say and the command I gave you above? How many unicorn versions you currently have in your system?
<loop3r>
atmosx: ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux] i will check unicorn version sec
xcombelle has joined #ruby
gfawcettpq has joined #ruby
Beliq has joined #ruby
<loop3r>
atmosx: unicorn seems to be (4.8.3)
gidea has joined #ruby
<atmosx>
loop3r: okay, can you please go to the directory where gitlab (rails) is installed and run unicorn from there? You'll just have to issue the 'unicorn' command.
oo_ has quit [Remote host closed the connection]
<jokke>
hey
<atmosx>
or unicorn_rails if 'unicorn' doesn't work.
<jokke>
anyone here familiar with the json-schema gem?
<jokke>
i'd like to "filter" a hash through a json schema
<jokke>
so that if additionalAttributes is false they are stripped from the hash
<jokke>
is this possible?
trampi has joined #ruby
<jhass>
there are several gems to parse schemas, I'd look through them
haxrbyte_ has joined #ruby
<jhass>
at least one of them will probably give you AST like access to it so that implementing such a filter becomes easier
<jokke>
hm ok
<jokke>
thanks
<jokke>
json-schema is awesome for testing an api
hgl has quit [Max SendQ exceeded]
<jhass>
gosh, can we please stop DDoSing Github? stupid idiots :/
bruno- has joined #ruby
<certainty>
hmm?
bronson has joined #ruby
<certainty>
i'm not DDoSing anyone
hgl has joined #ruby
<loop3r>
atmosx: I've stopped gitlab, run just unicorn and there is `/usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- unicorn/worker_killer (LoadError)`
haxrbyte has quit [Ping timeout: 250 seconds]
<atmosx>
certainty: I know you do. Please stop DOSSing US government websites and github.
<certainty>
atmosx: ok you got me.
* certainty
shuts down his botnet
<loop3r>
atmosx: so.. ruby versions are messed up
oo_ has joined #ruby
* atmosx
waits until black men with SUV take certainty away
<atmosx>
lol
<certainty>
xD
blueOxigen has joined #ruby
nfk has joined #ruby
<atmosx>
loop3r: awesome, now. You are the system administrator of this server?
gidea has quit []
<atmosx>
loop3r: oh, before we try anything complicated, try running "bundle exec unicorn" and if that fails "bundle exec unicorn_rails" in the same directory.
<atmosx>
I mean in project's directory.
RDash has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
vtunka has joined #ruby
<loop3r>
atmosx: Yes, I am. So unicorn missing the gem to worker managment ?
monzie has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 255 seconds]
blueOxigen has quit [Ping timeout: 246 seconds]
<atmosx>
loop3r: this must be a sort of missconfiguration between your unicorn version and ruby. let me check out something.
maximski has joined #ruby
juanca_ has joined #ruby
maximski has quit [Max SendQ exceeded]
n008f4g_ has joined #ruby
maximski has joined #ruby
techsethi has quit [Quit: techsethi]
<atmosx>
loop3r: if you run 'rails s' in the rails directory, tries to load unicorn?
juanca_ has quit [Client Quit]
* flughafen
shudders... i think i'm going to be sick.
techsethi has joined #ruby
<flughafen>
for the love of god make it stop!
<jhass>
ok
CorpusCallosum has joined #ruby
* jhass
fetches the gun
* flughafen
just wrote a line of perl
<flughafen>
please put me out of my misery
Takle has quit [Remote host closed the connection]
* jhass
puts flughafen into the truck and drives into the woods
<loop3r>
atmosx: unicorn has new error `/usr/local/lib/ruby/gems/2.1.0/gems/bundler-1.9.1/lib/bundler/runtime.rb:76:in `require': cannot load such file -- rb-inotify (LoadError) `
<atmosx>
loop3r: I'm reading now at unicorn github account that this error, is resolved with ruby-2.2.1 ... So you might wanan consider making a ruby manual system-wide installation and removing debian's ruby.
<atmosx>
loop3r: out of experience, instead of going RVM better install ruby manually. (./configure && make && make install). Grab the latest from the website. (ruby-lang.org)
<atmosx>
loop3r: it will save you hours of hacking around to mae rvm work with sudo and what not.
<loop3r>
atmosx: ok I will, yea I just wanted fast gitlab, not tweaking something with ruby, but I used to use rbenv some time ago, isnt it better than rvm ?
<loop3r>
atmosx: thanks for help! thanks for your time
jonr22 has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
jimms has quit [Remote host closed the connection]
sivsushruth has quit [Read error: Connection reset by peer]
Kilo`byte has joined #ruby
Takle has joined #ruby
_pakchoi_ops has quit [Remote host closed the connection]
sdothum has joined #ruby
jimms has joined #ruby
agrinb has joined #ruby
sivsushruth has joined #ruby
blizzy has quit [Ping timeout: 252 seconds]
Aswebb_ has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 255 seconds]
<jhass>
mikecmpbll: mmh, precedence rules? gotta check if ternary binds higher than &&
<jhass>
mmh, no it doesn't. Weird indeed
<mikecmpbll>
it does but even so, still shouldn't be nil
<jhass>
it's the only nil I see in that expression, that's why
<mikecmpbll>
:D
<mikecmpbll>
i thought that returned false.
agrinb has quit [Ping timeout: 246 seconds]
n008f4g_ has quit [Ping timeout: 252 seconds]
<mikecmpbll>
ok actually, the github was a more recent version, the actual gem code that I'm using has @wkhtmltopdf ||= (defined?(Bundler::GemfileError) ? `bundle exec which wkhtmltopdf` : `which wkhtmltopdf`).chomp
* mikecmpbll
shrugs
<jhass>
so one of the Kernel#` calls must return nil for some reason
<mikecmpbll>
i've played around with it a bit can't make it return anything but string.
<jhass>
but you can repro the issue?
<atmosx>
loop3r: both rvm and rbenv are good for development. But for server deployments you're better of with vanilla ruby.
<mikecmpbll>
i can't either. happening in prod.
<jhass>
meh
<atmosx>
loop3r: you'll install gems using 'sudo' and you'll live a happy life :-)
Aswebb_ has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
ItSANgo has joined #ruby
martinbmadsen has joined #ruby
<jhass>
^ or even better: bundle install --deployment on prod
<jhass>
works as long as you can load bundler and execute ruby, regardless of environment
ItSAN____ has joined #ruby
tubuliferous has joined #ruby
r3Dk1nG has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
martinbmadsen has quit [Ping timeout: 246 seconds]
ItSANgo has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
oo_ has quit [Remote host closed the connection]
gregf_ has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 248 seconds]
d10n-work has joined #ruby
arup_r has joined #ruby
reinaldob has joined #ruby
<arup_r>
Hi All.. I'm back.
Akagi201_ has quit [Remote host closed the connection]
gr33n7007h has quit [Remote host closed the connection]
jefus_ has joined #ruby
RegulationD has joined #ruby
<atmosx>
arup_r: good, I'm configuring my eshop :-P
<arup_r>
wow.. using Spree ?
<atmosx>
arup_r: haha no. I tried but then took a look at OpenCart and decided to go with OpenCart. Bought a template and will buy any additional addons I might gonna need.
Musashi007 has quit [Quit: Musashi007]
<arup_r>
ok
Lewix has joined #ruby
<atmosx>
arup_r: It's mostly setup things (on FreeBSD, php, etc.). Fixing the template. no coding required
<atmosx>
arup_r: would take me a lifetime to build something similar using Spree.
<arup_r>
yes.. Spree is good.. but not se well documented IMO
<atmosx>
arup_r: there are no templates, no addons, etc. You need to code/modify many things by yourself. I'm sure it's good as a fully custom solution.
<atmosx>
I'm not able to pay someone, nor I have the time (and will) to do it myself :-P
RegulationD has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 244 seconds]
livathin_ has quit [Remote host closed the connection]
jerematic has joined #ruby
livathinos has joined #ruby
oo_ has joined #ruby
dumdedum has quit [Quit: foo]
ghostpl_ has joined #ruby
elfuego has quit [Quit: elfuego]
anaeem1_ has joined #ruby
mc0e has joined #ruby
ldnunes has joined #ruby
Hirzu has joined #ruby
jerematic has quit [Ping timeout: 244 seconds]
Aswebb_ has quit [Remote host closed the connection]
Hirzu_ has joined #ruby
bronson has joined #ruby
quimrstorres has quit [Remote host closed the connection]
wald0 has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
anaeem1_ has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
ghostpl_ has quit [Ping timeout: 255 seconds]
Hirzu has quit [Ping timeout: 252 seconds]
robertt_dex has quit [Ping timeout: 255 seconds]
mc0e has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 256 seconds]
siwica has joined #ruby
<siwica>
I am looking for a ruby gem that is capable of doing a triangle-triangle intersection test in 3D-space. Is anybody aware of any?
<apeiros>
siwica: check ruby-toolbox.com
juanpablo__ has joined #ruby
agrinb has joined #ruby
Guest92473 has joined #ruby
<Guest92473>
hello
<Guest92473>
where am I ?
oo_ has quit [Remote host closed the connection]
Guest92473 has quit [Quit: Lost terminal]
sjohnsen has quit [Quit: Gone]
sjohnsen has joined #ruby
<workmad3>
Guest92473: you're standing on a planet that's revolving at 900 miles an hour
dc has joined #ruby
RDash has quit [Ping timeout: 250 seconds]
juanpablo__ has quit [Ping timeout: 255 seconds]
<apeiros>
workmad3: they're gone
AlphaAtom has joined #ruby
<workmad3>
apeiros: drats, they left while I was looking up the monty python lyrics :P
<apeiros>
btw. workmad3 - have I already asked you whether you want to help out with http://ruby-community.com, the upcomming channel website?
<workmad3>
I can't recall you asking, but I could have missed it... I've been a bit all over the place over the last week or so
agrinb has quit [Ping timeout: 256 seconds]
<workmad3>
(and this is when you say "That's OK, because I was about to tell you we don't need your kind of help" :P)
yowell has joined #ruby
<apeiros>
That's OK, because I was about to tell you we don't need your kind of help
<workmad3>
:)
<apeiros>
;-)
brb3 has joined #ruby
<apeiros>
we're over in #ruby-community to plan and work on it. feel free to join!
quimrstorres has joined #ruby
<workmad3>
cool :) I'll add it to my autojoin channels
|Zz_fan| has joined #ruby
oo_ has joined #ruby
aclearman037 has joined #ruby
robertt_dex has joined #ruby
gr33n7007h has joined #ruby
startupality has joined #ruby
livathinos has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
mc0e has joined #ruby
<arup_r>
Well.. I have something to ask you guys..
kp666 has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
monzie has quit [Ping timeout: 256 seconds]
adriancb has joined #ruby
<jhass>
there's a technical downside to it too though: the file can no longer be loaded on its own/without preparations
<arup_r>
so can I put it on **People Preference list** having no technical reasons ..
<apeiros>
there's an additional difference
jimms has joined #ruby
<apeiros>
constant search path within the class differs
<Guest6521>
I'm wondering if I can use de 'openssl' library to perform a request with the 'EXPORT' cipher only. much like you would do in bash using: $(openssl s_client -connect host:port -cipher EXPORT). I tried setting "ssl_context = OpenSSL::SSL::SSLContext.new(); ssl_context.cipers = ['EXPORT']" but that does not seem to work.
<apeiros>
a `Foo` on line 11 of that gist is only valid as ::Foo and ::A::B::C::Foo
<apeiros>
between line 3 & 4, it additionally looks for ::A::Foo and ::A::B::Foo
baash05 has quit [Read error: Connection reset by peer]
baash05 has joined #ruby
<jhass>
Guest6521: how are you using the context?
<Burgestrand>
Anybody ever played around with IO#dup? I’ve dup’ed a bidirectional IO, let’s call them A and my dup B, when I write to B I do not get IOErrors on write when my remote end closes. My current solution is to write on A instead of B when B reports ready for writing, but it is a bit annoying.
phutchins has joined #ruby
varunwachaspati has joined #ruby
pwnz0r has quit [Ping timeout: 265 seconds]
Squarepy has joined #ruby
oo_ has joined #ruby
<loop3r>
atmosx: the newest ruby and still ``require': cannot load such file -- unicorn/worker_killer (LoadError)`
|Zz_fan| has quit [Quit: WeeChat 0.4.2]
<arup_r>
apeiros: well.. Only just for the constant look up matters..
<arup_r>
Otherwise there is no other reason.. Right ?>
hectortrope has joined #ruby
<apeiros>
arup_r: the one jhass mentioned
<apeiros>
class A::B::C requires A::B to be defined
<apeiros>
so your load order starts to matter
shredding has quit [Ping timeout: 252 seconds]
<apeiros>
oh, and with regards to rails, `module A; module B; class C` can interfere with autoloading.
spyderman4g63 has joined #ruby
<arup_r>
means ?
_64k has quit [Ping timeout: 250 seconds]
<apeiros>
well, `module A; end` defines A. so referencing A will no longer trigger autoload.
<arup_r>
ok
yowell has quit [Quit: -a- Android IRC 2.1.16]
Darryl___ has joined #ruby
lkba has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
ponga has quit [Quit: Leaving...]
vim_shimm has joined #ruby
nettoweb has joined #ruby
Musashi007 has quit [Quit: Musashi007]
hectortrope has joined #ruby
maximski has quit []
ndrei has quit [Ping timeout: 250 seconds]
vim_shimm has quit [Ping timeout: 250 seconds]
baash05 has quit [Ping timeout: 245 seconds]
jcromartie has joined #ruby
pwattste has joined #ruby
spyderma_ has joined #ruby
terlar has joined #ruby
spyderman4g63 has quit [Ping timeout: 272 seconds]
plashchynski has joined #ruby
anaeem1_ has joined #ruby
[BNC]pagios has joined #ruby
jerematic has joined #ruby
jespada has quit [Ping timeout: 265 seconds]
livingstn has joined #ruby
[BNC]pagios is now known as pagios
mbeasley_ has joined #ruby
jconnolly has joined #ruby
Hobogrammer has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
jerematic has quit [Ping timeout: 256 seconds]
jerematic has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
bronson has joined #ruby
Takle has quit [Remote host closed the connection]
jayeshsolanki has joined #ruby
silkfox has joined #ruby
jonr22 has joined #ruby
Asmurf has joined #ruby
<certainty>
anothertime benchmark-ips saved my day. thanks evan
sivsushruth has joined #ruby
Asmurf has quit [Quit: leaving]
<certainty>
so i now have a cache which is great and fast. Now i have another problem... cache invalidation xD
<apeiros>
haha
<apeiros>
LUFO
Takle has joined #ruby
<certainty>
apeiros: LUFO?
<apeiros>
last used first out
<apeiros>
not sure it's really a term :o)
<jhass>
isn't that called LRU?
<certainty>
lru
<certainty>
yeah
<c-c>
cant you just set it to short period, so it becomes meaningless
<apeiros>
LRU sounds familiar, ya
bronson has quit [Ping timeout: 264 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
<hectortrope>
jhass hi
<jhass>
hi
<certainty>
it's actually not that bad. the data is not in flux it rarely changes. The thing is that it is currently only present in a mysql view which is slow as hell. I introduced a cache table which is way faster. I'll invalidate by time and if one of the dependent records is updated
robertt_dex has quit [Remote host closed the connection]
<avril14th>
good weekend everyone
spiderbyte has quit [Ping timeout: 265 seconds]
avril14th has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
jerius has joined #ruby
bruno- has joined #ruby
<certainty>
and no, switching to a better RDBMS is not an option :(
jerius has quit [Client Quit]
delianides has joined #ruby
Akagi201_ has joined #ruby
jerius has joined #ruby
Limix has quit [Quit: Limix]
krz has quit [Quit: WeeChat 1.0.1]
phutchins has quit [Quit: leaving]
dc has quit [Remote host closed the connection]
Akagi201 has quit [Ping timeout: 250 seconds]
dx7 has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seal has joined #ruby
delianides has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
sgambino has joined #ruby
Aswebb_ has joined #ruby
basiclaser has joined #ruby
sigurding has joined #ruby
plashchynski has quit [Quit: plashchynski]
tubuliferous has joined #ruby
jconnolly has quit [Ping timeout: 248 seconds]
zorak8 has joined #ruby
pandaant has joined #ruby
vim_shimm has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
plashchynski has joined #ruby
dblessing has joined #ruby
bruno- has joined #ruby
psy_ has quit [Ping timeout: 245 seconds]
JDiPierro has joined #ruby
enebo has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Beliq has quit [Quit: My computer has gone to sleep. ZZZzzz…]
tubuliferous has quit [Ping timeout: 272 seconds]
plashchynski has quit [Client Quit]
JDiPierro has joined #ruby
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
joonty has quit [Quit: joonty]
arietis has quit [Quit: Leaving.]
plashchynski has joined #ruby
SouL has quit [Ping timeout: 250 seconds]
aclearma_ has joined #ruby
arietis has joined #ruby
Aswebb_ has quit []
krisquigley has quit [Remote host closed the connection]
Hirzu_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
krz has joined #ruby
trampi has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 244 seconds]
sandelius has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
Hirzu has joined #ruby
phutchins has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
otisZart has joined #ruby
anaeem1_ has joined #ruby
RegulationD has joined #ruby
Hirzu_ has joined #ruby
phutchins has quit [Client Quit]
Feyn has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 250 seconds]
sankaber has joined #ruby
Hirzu has quit [Ping timeout: 248 seconds]
livathinos has joined #ruby
anaeem1_ has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
anaeem1 has joined #ruby
<Tuxero>
hello
<apeiros>
hi Tuxero
eshiffob has joined #ruby
ndrei has joined #ruby
triple_b has joined #ruby
rodfersou has joined #ruby
_64k has joined #ruby
ghostpl_ has joined #ruby
joonty has joined #ruby
snath has quit [Ping timeout: 246 seconds]
Ohga has joined #ruby
triple_b_ has joined #ruby
<Ohga>
I'm trying to compile a fork of the wdn gem on windows when I get this: "d:/Ruby22/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
<Ohga>
You have to install development tools first.", But... I have the devkit installed....
livathinos has quit [Remote host closed the connection]
jamto11 has joined #ruby
triple_b has quit [Ping timeout: 248 seconds]
jconnolly has joined #ruby
jespada has joined #ruby
<nOgAnOo>
peepee
<nOgAnOo>
shut up nigger also
robbyoconnor has quit [Ping timeout: 256 seconds]
* nOgAnOo
snugs up close to kzss
juanpablo__ has joined #ruby
ghostpl_ has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
<nOgAnOo>
juan pablo gegt
<nOgAnOo>
get the fuck ok
Takle has quit [Read error: Connection reset by peer]
Papierkorb has joined #ruby
Parker0 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 256 seconds]
govg has joined #ruby
bluOxigen has joined #ruby
juanpablo__ has quit [Ping timeout: 265 seconds]
shazaum has joined #ruby
mitchellhenke has joined #ruby
anaeem1 has quit [Quit: Leaving...]
<shevy>
lol
<shevy>
that must be a bot
aswen has quit [Ping timeout: 248 seconds]
<wasamasa>
"get the fuck ok"
<wasamasa>
awesome
snath has joined #ruby
seal has quit [Quit: Ex-Chat]
bronson has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
jokester has quit [Quit: 飞升]
<bradland>
i've got the fuck. what now?
sankaber has quit [Ping timeout: 244 seconds]
nOgAnOo was kicked from #ruby by apeiros [you're not welcome]
hs366 has quit [Quit: Leaving]
sankaber has joined #ruby
<bradland>
great. now what am I supposed to do with this fuck?
airdisa has joined #ruby
<apeiros>
sorry bradland, but they won't answer as they've been removed from this channel
<bradland>
Ohga: what devkit do you have installed? also, do you mean wdm gem?
ismaelga has joined #ruby
<bradland>
apeiros: no problem. i'll just hang on to this thing. i'm sure i'll need it to give later.
<bradland>
i was running low anyway.
<apeiros>
I'm sure that fuck will give you lots of pleasure. have fun.
agarie has joined #ruby
<apeiros>
but you really shouldn't give it.
aswen has joined #ruby
<certainty>
lelele
<bradland>
oh, don't worry. i only give them when something is reeeeeally important.
<bradland>
like when someone is wrong on IRC.
<bradland>
obvs
<apeiros>
you must have lots of fucks to give then :D
quimrstorres has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 250 seconds]
<bradland>
lol
agrinb has joined #ruby
<Ohga>
bradland: yes, sorry, the wdm gem. I used the devkit contained in the archive DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
shazaum has joined #ruby
shazaum has quit [Changing host]
elaptics is now known as elaptics_away
<bradland>
Ohga: ok, the error and trace you gave is only one line of the stack trace.
elaptics_away is now known as elaptics
JDiPierro has joined #ruby
<bradland>
mkmf.rb is part of ruby internals
<bradland>
it's part of ruby's 'make' lib
<bradland>
so, it's not super helpful in identifying the root cause
<bradland>
you'll need to get a full trace
<bradland>
try running your compile command with the --trace flag
robertt_dex has joined #ruby
<bradland>
(also, I'm just guessing here. i don't use windows or the wdm gem, sorry.)
<bradland>
we may be able to get you to a point where you can identify the root cause though
<Ohga>
bradland: ok, let me run with --trace and provide a pastebin of the result
<bradland>
super
<bradland>
plz use pastie.org or gist.
<bradland>
helpa: !pastebin
jamto11 has quit [Remote host closed the connection]
<bradland>
(crosses fingers)
<bradland>
derp
<bradland>
helpa: !paste
<bradland>
NOPE
manzo has joined #ruby
gokulnath has quit [Quit: Leaving]
ismaelga has quit [Remote host closed the connection]
<helpa>
Hi Ohga. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<jokke>
ok i'm having a blackout here. i have two arrays and want to merge them so that the first element comes from the first array, the second from the second array and then the second value from the first array again etc. I always thought #zip would do this but it doesnt/
nszceta has joined #ruby
<bradland>
jokke: zip, then flatten
<jokke>
ahh
<jokke>
sure
<jokke>
thanks
<bradland>
you bet
<DefV>
zip.flatten
<DefV>
idd
<bradland>
Ohga: if you unroll the contents of the first line in mkmf.log, you can see the checks being performed
<Ohga>
bradland: where is my gcc in the first place...
* Ohga
hunts for the gcc
mc0e has quit [Ping timeout: 256 seconds]
<bradland>
does windows have which?
<bradland>
which gcc
crueber has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
<bradland>
man, i don't know how you cope (ruby dev on windows)
cpruitt has joined #ruby
<bradland>
i'd run a VM
<Ohga>
git bash ftw
<bradland>
oy
<bradland>
sounds like even more hurt
<bradland>
lol
<Ohga>
na, it's fine
blackmes1 has joined #ruby
<Ohga>
I mean it's not *nix.. but it's ok
<bradland>
verify the existence of all the -I switch paths
<Ohga>
hm, that I can do without gcc
_64k has joined #ruby
<bradland>
i don't really have any ill feelings towards windows, but ruby tools just aren't all that well tested on windows
<bradland>
so you end up with additional yaks to shave
agarie has quit [Remote host closed the connection]
<bradland>
try executing gcc from a command line and see what it says
<Ohga>
yeah
<Ohga>
it's not in the path, but now I've found where it lives in the devkit
<bradland>
the items with -l switches need to be verified as well
<bradland>
if any of those are missing, it'll fail
martinbmadsen has quit [Ping timeout: 248 seconds]
nszceta_ has joined #ruby
krisquigley has joined #ruby
<bradland>
"checking for main() in -lkernel32"
<bradland>
kernel32 lib?
<bradland>
seems rather generic for a point of failure
mistermo_ has quit [Remote host closed the connection]
makrusak has joined #ruby
RegulationD has joined #ruby
mistermocha has joined #ruby
<bradland>
Ohga: ah ha!
<bradland>
So the first thing you need to know is that on Windows -lkernel32 won't be trying to pull in kernel32.dll but rather an import library. With MSVC this is called kernel32.lib, but Mingw calls it libkernel32.a. This should have been installed along with the C compiler.
<bradland>
this smells like an environment issue. libs not on the lib path.
nszceta has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
<Ohga>
bradland: well, before even that I looked in d:/Ruby22/include/ and found nothing but a lone FlexLexer.h .. no ruby-2.2.0 directory
agarie has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<bradland>
dun dun daaaaaa
<bradland>
the plot thickens
<Ohga>
panic, screems and horror
dfinninger has quit [Remote host closed the connection]
elfuego has joined #ruby
jokester has joined #ruby
<Ohga>
oh.... now I remember... the latest devkit is for ruby 2.0/2.1 .. I downloaded it and hoped I'd be fine..
<Ohga>
well, here's the answer.. I'm not fine
<bradland>
ugh
<bradland>
that sucks
blackmes1 has quit [Ping timeout: 250 seconds]
milesmatthias has joined #ruby
milesmatthias has quit [Remote host closed the connection]
livingstn has quit []
livingstn has joined #ruby
milesmatthias has joined #ruby
<Ohga>
so..... rip out R2.2, throw in 2.1, be happy?
xymbol has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
Spami has quit [Quit: Leaving]
quimrstorres has joined #ruby
bronson has joined #ruby
jokester has quit [Client Quit]
Pharaoh2 has quit [Client Quit]
ndrei has joined #ruby
Pharaoh2 has joined #ruby
vim_shimm has quit [Ping timeout: 252 seconds]
msgodf has quit [Ping timeout: 264 seconds]
Pharaoh2 has quit [Max SendQ exceeded]
<jhass>
note that include is for header files, -l links stuff, those are rather unrelated
Pharaoh2 has joined #ruby
vtunka has joined #ruby
n80 has quit [Quit: n80]
milesmatthias has quit [Ping timeout: 252 seconds]
milesmat_ has joined #ruby
Spami has joined #ruby
<kaleido>
in my mind ruby is a lot like golf. a lot of fun and i try to do it as much as i can, but in the end i usually end up pissed off and drunk.
banister has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
jokester has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
<jhass>
what does "try do it as much as i can" mean? maybe that's the issue, trying to use all of Rubys liberty all the time ;P
juanpablo__ has quit [Ping timeout: 265 seconds]
ghostpl_ has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
<certainty>
maybe he meant he tries to use ruby as much/often as he can
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
GPH|work has joined #ruby
<Ohga>
jhass: sure, I know.. I did c++ once upon a time (or so it feels these days)
brb3 has quit [Quit: ZZZzzz…]
brb3 has joined #ruby
brb3 has quit [Client Quit]
Akagi201 has joined #ruby
<sandelius>
is it possible to use rspec-rails in a sinatra/activerecord application?
<jhass>
just saying because you were looking through some include/ while having it failing on -lkernel32, I remain silent about your issue now, no idea about windows setups :P
<jhass>
sandelius: what feature of rspec-rails do you need?
mistermocha has quit [Ping timeout: 245 seconds]
<Ohga>
jhass: ok, sure.. but I only have like three gems globaly installed, it'll be easy to just test if it works with ruby 2.1
juanpablo__ has joined #ruby
hamilcart has joined #ruby
<sandelius>
jhass Transactional fixtures. I'm using database_cleaner now and it's soo slow. I ported a small rails app to sinatra and the testing time is way better with the rails app. (no spring used)
airdisa has quit [Remote host closed the connection]
<arietis>
and i want to remove key for each hash in array
cassianoleal has quit [Quit: (null)]
<meatherly>
So i've been listening to the changelog "10 years of rails with DHH" he said he made first release during 2004. I was wondering, was Rack around during this time?
cassianoleal has joined #ruby
<meatherly>
basically. how old is rack? lol
<arietis>
looks like .except() is the thing i need
<apeiros>
meatherly: couple of years. check on rubygems.org
snath has quit [Ping timeout: 272 seconds]
<meatherly>
yeah I see Rack 0.2 was released 2007
<meatherly>
Rails team didn't make Rack did they? this history is really neat.
<apeiros>
no
<apeiros>
rails was done by chris2
<apeiros>
and because it served its purpose very well, it got adopted by all major webframeworks
Hirzu_ has quit [Read error: Connection reset by peer]
Hirzu has joined #ruby
<certainty>
oh nice, he used darcs before
balazs has joined #ruby
Hirzu has quit [Client Quit]
<apeiros>
yes, only one I know who used darcs. actually, maybe manveru did too. no longer sure whether he used darcs or hg
ojargon has joined #ruby
<certainty>
interesting
joemeade_ has joined #ruby
<ojargon>
hello i am new to ruby and would like to understnad this: in = DB::hello.new host: "domain.com" here host: is an attribute to the initialized contrstructor?
<shevy>
ojargon no
<shevy>
that is a shortcut for a hash
<certainty>
or a kw-arg
<shevy>
DB::hello.new({ :host => "domain.com" })
<Ohga>
bradland: sadly, ruby2.1 + devkit for 2.1 is also a failure..
<certainty>
indistinguishable with that example
<shevy>
ojargon that should be the expanded syntax ^^^
dfinninger has quit [Remote host closed the connection]
momomomomo has joined #ruby
<certainty>
shevy: we should probably not show hash-rockets to newbies, should we?
<certainty>
(unless needed)
momomomomo has quit [Client Quit]
<ojargon>
shevy: and then i can do a in.host to refer to it?
<Ohga>
ojargon: ruby (from some version) have this syntax shortcut where hash keys that are symbols can be expressed without the arrow and colon on the other side
momomomomo has joined #ruby
<Ohga>
(does it have to be all keys? you can mix, can't you?)
<shevy>
>> class Foo; def initialize(*args); p args; end; end; Foo.new( host: 'yo there')
<Ohga>
agarie: but if you do, you need the curlies?
<ojargon>
so in[host]
willharrison has joined #ruby
tlarevo has joined #ruby
snockerton has left #ruby [#ruby]
<shevy>
ojargon the reason people use foo: 'bar' is because it is much shorter to type than the long version. If you write this 1000 times, you understand :)
ghostpl_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
<shevy>
ojargon, not host but :host
dotix has quit [Quit: Leaving]
<shevy>
your eyes must be sharp for ruby
bluOxigen has joined #ruby
<shevy>
though at first it's indeed confusing to have the : move to the right
<shevy>
keep in mind the history of that change - symbols in ruby have the : at the left side
<ojargon>
shevy so database = 'site_development' is also considered a kind of hash?
<shevy>
that is an assignment
gsd has joined #ruby
<shevy>
database is a variable, 'bla' is a string object
<ojargon>
:database => 'site_development'
<agarie>
:database => 'site_development' would be a hash
rbennacer has quit [Remote host closed the connection]
<shevy>
ah so his example was incomplete :D
momomomomo has quit [Ping timeout: 250 seconds]
<shevy>
you can use the long form too
<shevy>
but
bruno-_ has joined #ruby
<shevy>
database: 'site_development'
lordkryss has joined #ruby
<shevy>
is so much shorter and simpler!
<shevy>
it's one of the few changes I like between 1.8 and 2.x
<shevy>
the stabby operator on the other hand is my enemy
<ojargon>
shevy: so in = DB::Client.new database, :username => username, :password => password <-- this accepts first argument as a string and the other 2 as a hash right
Vivex has quit [Ping timeout: 272 seconds]
<certainty>
shevy: haha, why is that?
siwica` has quit [Remote host closed the connection]
<shevy>
ojargon I don't know what is the variable database there, but if it is a string then sure, I guess so. Always look at the API documentation to be 100$ sure, the other 2 are not two different args though, but instead only one argument, a hash
<bradland>
the {foo: 'bar'} syntax was introduced in 1.9
siwica` has joined #ruby
<ojargon>
shevy: in this database = "blah"
<shevy>
erm not 100$ but 100%
<bradland>
ojargon: when passing arguments to methods, ruby has uses a modified version of the hash literal syntax
<shevy>
yeah ojargon
fgo has quit [Ping timeout: 250 seconds]
<shevy>
ojargon if it helps you, it is best to try to understand how the ruby parser looks at code like this
<bradland>
is the same as in = DB::Client.new(database, {:username => username, :password => password})
<shevy>
in = DB::Client.new(database, {:username => username, :password => password})
<shevy>
damn
tagrudev has quit [Remote host closed the connection]
<shevy>
bradland was faster
<shevy>
let's ban him
<bradland>
booya!
bruno- has quit [Ping timeout: 250 seconds]
jwingfi has joined #ruby
nettoweb has joined #ruby
<shevy>
ojargon I think the reason again is that you can write less code. ruby kind of loves to be flexible, you can use more than one way. in python you must conform more strictly to one way
agrinb has quit [Read error: Connection reset by peer]
<bradland>
optional curlies in hash arguments annoy me
<shevy>
hehe
The-Compiler has joined #ruby
agrinb has joined #ruby
OtterCoder has joined #ruby
blueOxigen has joined #ruby
<The-Compiler>
I'm coming from Python - does Ruby have something akin to virtualenv, where I can install something via gem easily to try it, and then easily get rid of it afterwards?
<ojargon>
the { } here are for making these 2 hash look part of 1 {object} ?
<ojargon>
bradland: :username => username, is one hash and :password => password is another hash?
sandelius has quit [Client Quit]
<agarie>
nope, it's the same hash
<bradland>
nope, it's one hash
Squarepy has quit [Quit: Leaving]
<bradland>
that stackoverflow answer is a good one
<gregf_>
jhass: just that i want to automate it. as in get a list of all the requests being made, create a nice hash and make the requests to my dev box
<shevy>
ojargon look at the syntax example above by bradland
<shevy>
ojargon watch for the {} tokens
sevvie has joined #ruby
<ojargon>
where can i read about all these
<shevy>
<bradland> is the same as in = DB::Client.new(database, {:username => username, :password => password})
<ojargon>
ok
<bradland>
this is one of the many "special cases" in ruby
<shevy>
you see that it starts before :username, and ends after password
<bradland>
even though the key/value pairs are separated by commas, they're treated as one argument (a hash)
<jhass>
gregf_: mitmproxy.org might have something
GaryOak_ has joined #ruby
<shevy>
if it would be two separate hashes... though I am not sure the following syntax is valid, it would look like so:
<shevy>
in = DB::Client.new(database, {:username => username}, {:password => password})
<ojargon>
so if i do {:username = .. } {:password = "..."} these are two different hashes
<shevy>
you forgot the ,
<shevy>
but otherwise yeah
<shevy>
in ruby you need good eyesight!
<ojargon>
i come from angularjs world
<ojargon>
a totally different beast
<shevy>
well at least you understand objects already then
airdisa has joined #ruby
<shevy>
foo[] or Foo[] in ruby is also a method call
<gregf_>
jhass: thanks! reading
<shevy>
>> class Foo; def self.[](i); p i; end; end; Foo['yo']
<agarie>
the biggest problem with that, GaryOak_, is that Symbols are not garbage collected
iwaffles has quit [Quit: iwaffles]
<bradland>
GaryOak_: there's an ActiveSupport extension for that, but it must be used with caution
<workmad3>
GaryOak_: there are many, many implementations of hashes that have that indifferent access
<GaryOak_>
yeah I understand why it is
<agarie>
there were some talks about GCing symbols, but I didn't follow them lately... not sure if it was implemented
<workmad3>
agarie: it was, symbol GC is in 2.2
<agarie>
ActiveSupport implements it, I think Hashie does it as well
<GaryOak_>
is there a standard for generating hashes?
<agarie>
workmad3: didn't know about that, thanks!
<bradland>
what do you mean by that?
sevvie has quit [Ping timeout: 252 seconds]
<bradland>
many methos implement .to_h which returns a hash
<GaryOak_>
like "best-practice" says use symbols vs strings for hashes
<bradland>
"generating hashes" is rather generic though
benlieb_ has quit [Client Quit]
<bradland>
GaryOak_: symbols save memory because of the way they implemented
sevvie has joined #ruby
<bradland>
i think they are faster in lookups too
hornairs has joined #ruby
vtunka has quit [Ping timeout: 264 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderkevin_ has joined #ruby
snath has joined #ruby
<GaryOak_>
that makes sense because they are immutable
<shevy>
GaryOak_ I think a problem is that this would be doing something automatically
<ojargon>
anybody read that book?
<agarie>
they do, but in various situations the speed gain is negligible (at least in my experience)
<shevy>
and ruby has been sort of reluctant to do automatic conversions
<shevy>
I think in perl, you could do string+number
<shevy>
in ruby you kind of have to do .to_s or use "#{}"
<bradland>
the thing you want to avoid is a scenario where user input can create an arbitrary number of symbols
fibbel has quit [Quit: fibbel]
teddyp1cker has joined #ruby
<bradland>
just like agarie mentioned, the performance benefit is small, so you should really only focus on it where it matters
<shevy>
ojargon I read the pickaxe years ago, it was fine to read it once. I bought the new one for ruby 1.9 and did not benefit as much as I did from the 1.8 pickaxe
teddyp1cker has quit [Remote host closed the connection]
<ojargon>
pickaxe?
<shevy>
yeah
<GaryOak_>
I guess you can just use to_sym if you want dynamic key searching
<bradland>
for example, i do a fair amount of ETL work where I convert data to arrays of hashes
jrichocean has joined #ruby
<shevy>
I think you need only one book, otherwise you already know too much :D
coderkevin_ is now known as coderkevin
<bradland>
depending on the number of rows, the difference between string keys or symbol keys can make a difference
<bradland>
pry has some incredible features that are great for people learning ruby
livathinos has quit [Remote host closed the connection]
<bradland>
for example, you can type ls at a pry prompt, and it will list out all the local variables and methods available for the current scope
riotjones has joined #ruby
<bradland>
you can "cd" in to objects and use ls to inspect them
<bradland>
very, very handy
<dstarh>
Given todays date and knowing previous or next anyone have thoughts on how to get the "next" tuesday or "last" tuesday?
xymbol has quit [Ping timeout: 265 seconds]
Violentr has quit [Ping timeout: 265 seconds]
<bradland>
it also has a feature that you can use to interrupt execution of a script and get a pry prompt, from which you can inspect the value of variables and such
xcombelle has quit [Ping timeout: 246 seconds]
<bradland>
dstarh: if you have ActiveSupport, this is already implemented
<bradland>
Time#next_week takes an argument that can specify the day of the week you want
<bradland>
you could always dig in to their implementation in order to extract it to your own method, but ActiveSupport has a tendency to rely on other ActiveSupport methods
bricker has joined #ruby
<bradland>
if you decide to use ActiveSupport, be sure to look at the options for requiring it
<bradland>
it's a huge lib that will massively increase your startup times if you just require the whole thing
<dstarh>
It's a rails project so thats ok
<bradland>
ok, cool. you've got it all then! :)
bronson has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
Lewix has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 248 seconds]
Rapier- has joined #ruby
spider-mario has joined #ruby
j_mcnally has joined #ruby
xymbol has joined #ruby
Lewix has joined #ruby
banister has joined #ruby
<The-Compiler>
apeiros: thanks, bundle did the job :)
quimrstorres has quit [Remote host closed the connection]
mbeasley_ has quit [Quit: WeeChat 1.0.1]
Lewix has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
arietis1 has joined #ruby
icebourg has joined #ruby
mbeasley_ has joined #ruby
arietis has quit [Ping timeout: 264 seconds]
cjim__ has joined #ruby
quimrstorres has joined #ruby
Macaveli has quit [Ping timeout: 256 seconds]
red_horned_rihno has quit [Quit: Leaving]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
blackmes1 has joined #ruby
dfinninger has quit []
dfinninger has joined #ruby
<theRoUS>
with the introduction of the "foo: value" hash syntax, is there also a plan to ever deprecate the ":foo => value" syntax ?
<apeiros>
theRoUS: no
<apeiros>
`foo: val` only works with symbol keys
<theRoUS>
apeiros: 's what i thought/hoped. thanks!
sivsushruth has quit [Ping timeout: 255 seconds]
<apeiros>
it wouldn't make sense to retire the only syntax which works for any kind of object as key
sargas has joined #ruby
sivsushruth has joined #ruby
arietis1 has quit [Quit: Leaving.]
fgo has joined #ruby
tlarevo has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
<aewffwea>
who controls/designs the ruby language?
<wasamasa>
nobody these days
<wasamasa>
its design is finished!
<apeiros>
aewffwea: the ruby core group
ponga has joined #ruby
The-Compiler has left #ruby ["WeeChat 1.2-dev"]
psy_ has joined #ruby
sigurding has quit [Quit: sigurding]
<workmad3>
wasamasa: indeed, ruby is now perfect*
psy_ has quit [Max SendQ exceeded]
JDiPierro has quit [Remote host closed the connection]
<workmad3>
* perfect in this case means 'better than PHP' which does, unfortunately, lead to a lot of 'perfect' languages... but ah well
<theRoUS>
if you put enough pressure on a ruby, does it become a diamond?
marr has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
fgo has quit [Ping timeout: 248 seconds]
Pupeno has quit [Quit: Leaving...]
jimms has joined #ruby
<GaryOak_>
it becomes a crystal ;)
<Ohga>
bradland: upon resuming the efforts to fix the compile, the very first of the -l's, the msvcrt-ruby220 one, is nowhere to be found
<pagios>
i am trying to use the ruby binding gettng this error `block in post': 404 page not found (InfluxDB::Error) here is the code http://pastebin.com/Z9PkqfRP
<helpa>
Hi pagios. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
sepp2k has joined #ruby
pietr0 has joined #ruby
milesmat_ has quit [Remote host closed the connection]
nicolastarzia has quit [Remote host closed the connection]
<Ohga>
bradland: oh.. there is however a libmsvcrt-ruby220.dll.a in Ruby22/lib
sevvie has quit [Ping timeout: 272 seconds]
milesmatthias has joined #ruby
<Ohga>
so.. does the name get converted or is this a win/nix culpit?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
sevvie has joined #ruby
sepp2k has quit [Client Quit]
deol has joined #ruby
govg has joined #ruby
manzo has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
<bradland>
Ohga: hrm, i think the argument passed to -l is the lib's symbol name
vim_shimm has joined #ruby
<bradland>
i don't know how that matches up to filenames though
<bradland>
i'm not sure if the linker loads everything on the lib path, then searches by symbol, or if it has to match filename
thinkswan has quit [Remote host closed the connection]
milesmatthias has quit [Ping timeout: 252 seconds]
naftilos76 has joined #ruby
<bradland>
pagios: ditched RRD?
thinkswan has joined #ruby
<pagios>
yes bradland big time
<bradland>
influxdb looks like a good fit
joonty has quit [Quit: joonty]
<bradland>
what happened? couldn't get the rrd-ffi gem working?
<bradland>
or didn't like the RRD data model?
<pagios>
stone age
adriancb has quit [Remote host closed the connection]
joonty has joined #ruby
<pagios>
community is dead
sargas has quit [Quit: Leaving]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agarie has joined #ruby
arietis has joined #ruby
<bradland>
pagios: can you post the full error and stack trace?
<pagios>
sure
<bradland>
also, please use pastie
RegulationD has quit []
<bradland>
the moving ads on pastebin drive me nuts
<cando>
What is the current stat of threads? I Can't find anything current discussing if threads in MRI Ruby 2.2 now take advantage of multiple cores like jruby does.
<a5i>
How can I run 2 ruby programs at the same time?
triple_b has joined #ruby
<greedo>
open 2 terminals
<greedo>
?
<havenwood>
pagios: That's ^ returning the 404? I was suspecting you were requesting the wrong content-type when JSON was expected, so nvm.
<Senjai>
But I'm not about to teach someone systemd who doesnt know you can run things twice yet xD
hpoydar has quit [Remote host closed the connection]
<a5i>
Really, I want to see if I can run 10 bots on the same irc server and channel, in the same script
siwica` has quit [Ping timeout: 272 seconds]
<jhass>
with systemd you can even use the same unit file!
<Senjai>
a5i: Are you a spammer or something?
<jhass>
same script is no issue
<cando>
Senjai: Partly I need simple threading where a thread sends a html request and waits for the response, allowing other threads to run while it waits. But also need to take advantage of other cores for cpu usage.
krisquigley has quit [Remote host closed the connection]
<jhass>
same process might, depending on your code
<Senjai>
cando: You can use the actor model for that
<a5i>
I was hoping you wouldnt say that, but no im not :(
<Senjai>
cando: With celluloid. Or you can use a per process approach, like how unicorn works
<havenwood>
pagios: But no, I don't see anything wrong with your Hash. It's just a Hash.
krisquigley has joined #ruby
<pagios>
any idea bout my error? i am reading the spec page now
arietis has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<cando>
Senjai: what do you mean per process like unicorn? Is that using forking?
<havenwood>
pagios: With a Gist you can "Add file" so the code and error are on the same page. If the file is code name it with the right extension. You'll have a lot easier time getting people to review your code that way.
Xeago has quit [Remote host closed the connection]
<cando>
The actors model seems to be fine for the wait for response part, its the cpu utilization that I'm not sure of.
<Senjai>
cando: Yeah, for unicorn, there is a master process, and 4 - 8 sub processes, per server, usually.
<havenwood>
pagios: You didn't name it with .rb extension or add the error.
krisquigley has quit [Ping timeout: 246 seconds]
<Senjai>
cando: If you need it to be extremely performant, rubys not the best choice
<havenwood>
pagios: Indentation is important for reading code. Use two-space soft tabs consistently.
momomomomo has joined #ruby
Crisix has joined #ruby
<Senjai>
cando: You can use all cores with 8 processes, assuming you have 4 logical, and 4 virtual cores
cjim__ has joined #ruby
<Senjai>
cando: But you may want to consier Erlang, or another implimentation if you're worried about performance
<workmad3>
cando: additionally, while ruby uses native threads and multiple cores for the threads nowadays, MRI still has a GIL, which means only one thread will be active at a time... you'd need to use jruby or rubinius if you wanted a threaded ruby that didn't have that restriction
<havenwood>
pagios: Do the Usage examples verbatim give you the same error I wonder?
<spider-mario>
Erlang is not really “fast”
<spider-mario>
it’s reliable even under load,
<havenwood>
pagios: Yay, syntax highlighting! Now just click "Add file" and add the error. Also that's not two-space indent, that's one space. :P
<spider-mario>
but it doesn’t have really good “raw speed”
j_mcnally has joined #ruby
<spider-mario>
of course, whether it matters is another question
RegulationD has joined #ruby
<shevy>
super-mario!
<a5i>
jhass, like cmd="..some command..."; for i in $(seq 5); do $cmd; sleep 1; done ?
graft has joined #ruby
<cando>
Senjai: Erlang is a pain to program in compared to ruby. :P Been working with it quite a bit in another project.
<Senjai>
cando: Write a c extension then
<havenwood>
pagios: I've not used this gem. Taking a look.
<Senjai>
cando: Ruby is just not the best language for every problem, we have to deal with that
<spider-mario>
cando: what about Elixir ?
<jhass>
a5i: whatever suites your needs
zzing has joined #ruby
mistermocha has joined #ruby
<a5i>
nothing does atm
zzing has quit [Client Quit]
<spider-mario>
it’s slightly more Rubyesque than Erlang while targetting the same VM
<a5i>
My script is like a sinatra web server
<Ohga>
bradland: Have I understood this correct, in ex
codecop has quit [Remote host closed the connection]
<Ohga>
ops..
<cando>
Senjai: So basically to spread an app to use other cores simultaneous using MIR, I need to use fork or just run my app multiple times. What is unicorn?
<workmad3>
Ohga: no idea, I've never tried to use ruby on windows... at a guess though, it'll be because it's checking in alternative places where kernel32 is sometimes found... again, that's how the configure toolchain figures out where libraries are
<hectortrope>
best ruby book
Takle has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<Ohga>
hm.. would be good to see a list of *all* directories searched... can I get that info from gcc somehow?
<a5i>
Sanjo, how do I set-up a process model ?
<havenwood>
pagios: Yeah, `["localhost"]` and `"8086"` are the defaults.
<workmad3>
Ohga: you should be able to get that from the configure log that extconf has left around somewhere (sorry, I don't know exactly where it'll be)
Ilyas has quit [Quit: Leaving]
<pagios>
seems like a bug havenwood ?
<pagios>
:(
rhllor has quit [Quit: rhllor]
wallerdev has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
<havenwood>
pagios: See if this has already been reported. If it hasn't been, report it!
heftig has quit [Remote host closed the connection]
tus has joined #ruby
sigurding has joined #ruby
paulcsmith_ has quit [Quit: Be back later ...]
mikecmpbll has quit [Ping timeout: 244 seconds]
DerisiveLogic has joined #ruby
heftig has joined #ruby
einarj has quit [Remote host closed the connection]
paulcsmith_ has joined #ruby
paulcsmith_ has quit [Client Quit]
paulcsmith has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
aimada has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SouL has joined #ruby
<jhass>
workmad3: oh, we should totally add that to the site
sevvie has joined #ruby
allenn has quit [Remote host closed the connection]
<workmad3>
jhass: :D
quimrstorres has quit [Remote host closed the connection]
graft has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
JDiPierro has joined #ruby
lemur has joined #ruby
Takle has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
roolo has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
_64k has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
<jokke>
hey
timonv has quit [Ping timeout: 264 seconds]
<jokke>
i'm getting a load error for capistrano/rbenv
cjim__ has quit [Quit: (null)]
aimada has joined #ruby
edwinvdg_ has joined #ruby
Morkel has quit [Quit: Morkel]
<jhass>
great!
<cando>
Senjai: So does forking allow it to use cores in parallel or is it necessary to start completely separate ruby app.
<jhass>
cando: you can use it for both
delianides has joined #ruby
<jhass>
it creates a new process that inherits the memory of the current one, so to say, you can keep that and continue working with it or use exec to replace it with a new one
<jhass>
later approach is neatly packaged up in Kernel#spawn
<Ohga>
bradland, workmad3: ok, so there is a libkernel32.a in one of the standard library paths...
<Senjai>
cando: Play around with it. It does allow it to work in parallel, you may want to do your own research on it to determine how appropriate it is
a5i has quit []
<jhass>
jokke: try putting require "bundler/setup" above that line
dfinninger has quit [Remote host closed the connection]
<jokke>
k
delianides has quit [Ping timeout: 255 seconds]
<jokke>
nope
<jokke>
no use
vim_shimm has joined #ruby
<jhass>
bundle show capistrano-rbenv shows what?
juanca_ has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
put p $LOAD_PATH above it and show output
teddyp1cker has quit [Ping timeout: 246 seconds]
<jokke>
ok
<jhass>
between bundler/setup and capistrano/rbenv I mean
<jokke>
will do
psy_ has joined #ruby
milesmatthias has joined #ruby
<cando>
Senjai: I have been researching, just haven't found stuff that is less than three years old. And nothing that really talks about the use cases of using fork vs thread or a combination.
aimada has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Papierkorb>
Ask apache why it's so slow.
nicolastarzia has joined #ruby
<jhass>
jokke: 1.0.3 - April 8, 2013 (12.5 KB) 2.0.3 - January 27, 2015 (7 KB)
<jhass>
might be worth a shot
<cando>
So I use threading and watch cpu usage. When a cpu starts to get high, fork. (over simplified)
sivsushruth has quit [Ping timeout: 265 seconds]
sivsushruth has joined #ruby
Akuma has joined #ruby
DaniG2k has quit [Ping timeout: 244 seconds]
<jokke>
oh
rokob has quit [Remote host closed the connection]
<jokke>
wrong version
rokob has joined #ruby
<jhass>
jokke: yap, looking into 1.0.3 it doesn't have that file
milesmat_ has joined #ruby
rkgudboy has joined #ruby
<jokke>
thanks jhass
<Senjai>
cando: Too complex, just use one or the other
hpoydar has joined #ruby
rkgudboy has quit [Max SendQ exceeded]
juanca_ has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
<workmad3>
cando: if it's for a ruby rack-based webapp, you could take a look at puma for that too
juanpablo__ has quit [Ping timeout: 256 seconds]
<Papierkorb>
cando: Think about processes/threads. Both are the same in the end, thus, forking or threading does not reduce cpu usage in any way and in run-time terms has no one has benefits over the other
rkgudboy has joined #ruby
<jhass>
cando: threading vs forking didn't really change in the last 10 years, the only thing to take care of with older resources is that they're less focused on multi-core architectures
<jhass>
heck, I'd go as far and say in the last 15-20 years even
rkgudboy has quit [Max SendQ exceeded]
<Papierkorb>
cando: Or, a stupid analogy, you can't download more ram, thus, you can't invent additional cores at runtime either ;)
<shadeslayer>
ok I'm having some weird issues here
milesmatthias has quit [Ping timeout: 272 seconds]
<shadeslayer>
fail 'Mounting failed!' unless `sudo mount #{rootfs_mnt} #{bootstrap_dir}` is my command
<shadeslayer>
however, I get : mount: can't find /dev/loop1 in /etc/fstab
<shadeslayer>
otoh if I mount it manually, it works
rkgudboy has joined #ruby
<shadeslayer>
just doesn't work from a ruby script for some reason
<jhass>
shadeslayer: try bypassing the shell
<shadeslayer>
jhass: how?
adriancb has joined #ruby
<jhass>
system '/usr/bin/sudo', '/bin/mount', rootfs_mnt, bootstrap_dir
<jhass>
I think
<shadeslayer>
hm
<shadeslayer>
specify full paths?
<jhass>
might need to be an array, check docs
milesmat_ has quit [Ping timeout: 248 seconds]
DaniG2k has joined #ruby
<jhass>
that on its own won't guarantee you to bypass the shell
naftilos76 has quit [Remote host closed the connection]
<cando>
I've moved as much as possible out of the web front end using rabbitmq for anything that does not need to be sent back for a request. I'm currently using passenger for the front end.
airdisa has quit [Remote host closed the connection]
<jhass>
do you get that repeatedly?
airdisa has joined #ruby
<pagios>
it crashed and exited
<agarie>
try again
<pagios>
rvm install 2.0.0
<pagios>
will do
icebourg has joined #ruby
<sandelius>
PHP7 looks really promising, even for a Rubyist like me :) Looks like it finally grow up :)
jonr22 has quit [Ping timeout: 246 seconds]
edwinvdgraaf has joined #ruby
<ytti>
only thing worth salvaging is the community
airdisa_ has joined #ruby
<bradland>
PHP screwed the pooch when they chose "." as their string concatenation operator, thus condemning the language to some ridiculous syntax for object method calls.
sigurding has quit [Quit: sigurding]
splud has joined #ruby
<bradland>
please do not misconstrue that as some kind of serious argument against PHP :P
<splud>
greetings.
dfinninger has joined #ruby
<bradland>
salutations
airdisa__ has joined #ruby
<Papierkorb>
I don't get this PHP-is-now-good train. It's like, they had how many years to fix their shit? almost 20? And a ton of other languages have the features already
borodin has joined #ruby
sigurding has joined #ruby
<sandelius>
bradland yeah sure PHP has its flaws, just like Ruby but a bit more :), but I'm saying alot has happened over there
<Papierkorb>
Greetings from the lexer()[1]
juanpablo__ has joined #ruby
<splud>
In refactoring some code, I want to have an array with parameters and functions to invoke when an evaluation is true.
airdisa has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
<splud>
However, I’d like to pass runtime parms to the functions, such as a directory name (from a variable)
<arietis>
hey guys, i'm using HTTParty and when there is %20 in url param i get invalid URI error
<arietis>
any ideas why it uses ' ' instead of %20?
Crazy_Atheist has quit [Ping timeout: 252 seconds]
<GaryOak_>
transmiler
<shevy>
when he was younger
<shevy>
he has all sorts of crazy ideas nowadays
ta has joined #ruby
<eam>
look all I'm saying is let's have a rubocop rule that mandates semicolons after every line
<shevy>
no please
Parker0 has quit [Ping timeout: 265 seconds]
<shevy>
I hate rubocop already as-is
<shevy>
it has the most ridiculous error messages that I have ever seen like
<shevy>
"Your code sucks."
<eam>
shevy: not using rubocop violates the rubocop rules
<shevy>
"Stop writing ruby."
rdark has quit [Quit: leaving]
<GaryOak_>
>> :
<shevy>
this bot is unicode free
<GaryOak_>
NOOOO
<Ohga>
hehe
<havenn>
GaryOak_: #=> Canine
<GaryOak_>
DOG FACE
<shevy>
is there a method that eliminates leading or trailing characters?
<eam>
("⚀".."⚅").to_a.sample(3)
<shevy>
like: string = 'hello world'; string.drop(2) if string.end_with? 'ld'
<havenn>
shevy: when you get rid of all leading and trailing characters you end up with an empty string :P
<shevy>
right now I use string[0,2] = ''
<havenn>
shevy: #clear
<havenn>
shevy: ah
freerobby has quit [Quit: Leaving.]
<shevy>
well I find it sort of strange
<shevy>
because, in the rest of my code, I tend to use .methods()
ta has quit [Ping timeout: 256 seconds]
Akagi201 has joined #ruby
<shevy>
but here, I kind of use [] and also =
ramfjord has joined #ruby
n008f4g_ has joined #ruby
juanpablo__ has joined #ruby
juanca_ has joined #ruby
juanca_ has quit [Read error: Connection reset by peer]
<shevy>
in the old days, I did: foo[-1,1] = '' if foo[-1,1] == ';'
<shevy>
a while ago, I switched to .start_with? and .end_with?
juanca_ has joined #ruby
<shevy>
now I'd love to abandon [] = too here
ghr has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
<Ohga>
so.. the extconf.rb wants to check if kernel32 is around.. that check defaults to looking for a main function.. a document I found over kernel32's functions does not list a main function...
blackmes1 has quit [Ping timeout: 246 seconds]
<shevy>
welcome to reallife
<jhass>
uh, wasn't that something like every library should have? I don't remember
xploshioon has joined #ruby
<jhass>
I mean if it checks for that it must have been working sometime for someone (tm)
<jhass>
splud: come back next time you feel the urge of using eval ;)
<jhass>
we'll find a better way then too
<splud>
to be fair, the eval wasn’t evaluating _user_input_. I’m well aware that’s totally evil,
milesmatthias has quit [Remote host closed the connection]
<jhass>
btw you might want to switch send with public_send, the later respects visibility rules
hornairs_ has joined #ruby
valkyrka has quit [Ping timeout: 252 seconds]
<splud>
tkx
j_mcnally has quit [Ping timeout: 264 seconds]
hornairs_ has quit [Client Quit]
iliketurtles has quit [Ping timeout: 272 seconds]
nfk|laptop has joined #ruby
j_mcnally has joined #ruby
evilthomas has quit [Quit: oops]
thomas has joined #ruby
<arietis>
jhass: looks like the problem is in response
<jhass>
arietis: oh right, it's going through that, I didn't notice :/
hornairs_ has joined #ruby
<jhass>
well, crappy response from some embbeded device/router thingy, who would've expected that :P
Rayford has joined #ruby
<arietis>
jhass: it replaces proper URI with one which has spaces instead of %20
<arietis>
yep
hornairs_ has quit [Client Quit]
<jhass>
and violating HTTP RFC doing so ;)
hornairs has quit [Ping timeout: 272 seconds]
Soda has quit [Remote host closed the connection]
<jhass>
so I'd just use net/http directly for this instance, else you would need to monkeypatch httparty or URI
juanca_ has quit [Remote host closed the connection]
chrishough has joined #ruby
Takle has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
dseitz has joined #ruby
<arietis>
yeah, need to try generic http lib
badfish129 has joined #ruby
badfish129 has left #ruby [#ruby]
Zai00 has joined #ruby
jenrzzz has joined #ruby
<pipework>
I just invent new verbs for http whenever I get bored.
jespada_ has joined #ruby
<pagios>
again gcc crashed
plashchynski has joined #ruby
<jhass>
try a different gcc version or clang
Cust0sL1men has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
thomas has quit [Changing host]
thomas has joined #ruby
jespada has quit [Ping timeout: 250 seconds]
bronson has quit [Remote host closed the connection]
baweaver has joined #ruby
kwd has quit [Remote host closed the connection]
Cache_Money has joined #ruby
<shevy>
if only more of you guys would use ruby-gnome
<jhass>
shevy: tried ruby-gir yet?
<shevy>
never heard of that
<shevy>
what is that?
dorei has joined #ruby
<jhass>
gobject introspection
banister is now known as banisterfiend
phutchins has quit [Ping timeout: 245 seconds]
<shevy>
hmm
<shevy>
I am not sure what I can do with gobject introspection
<shevy>
I sort of use ruby-gnome in a simple manner, just using the available widgets to build really simple GUIs
<jhass>
gtk3, cairo, libnotify, tons of stuff
TheNet has quit [Remote host closed the connection]
Megtastique has quit []
<shevy>
cairo I could use, there were some examples where you could draw lines + arcs and such; gtk3 too, it feels very similar to gtk2 from what I have used so far
<shevy>
libnotify I do not know about
baweaver has quit [Remote host closed the connection]
<shevy>
but why does it feel as if I am the only one here to use ruby-gnome, this makes me a sad panda
ghr has joined #ruby
TheNet has joined #ruby
Asher has joined #ruby
<TheNet>
just figured out how to write a dsl, this is amazing
<jhass>
libnotify allows for the fancy kind of notifications, with buttons and such
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Rayford has quit [Quit: Rayford]
wottam has joined #ruby
_64k has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Quit: Lost terminal]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
blackmes1 has joined #ruby
<keyofnight>
Hey folks... do you know if I can use rubyzip to check if a file is contained within a zip file?
senayar has joined #ruby
govg has joined #ruby
<keyofnight>
like... is there an `exist?()` method?
jenrzzz has joined #ruby
vim_shimm has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
milesmatthias has joined #ruby
AlexRussia has joined #ruby
aimada has joined #ruby
lanemeyer has quit [Ping timeout: 272 seconds]
<GaryOak_>
TheNet: what's your DSL for?
<TheNet>
generating a hash
Joufflu has joined #ruby
<GaryOak_>
haha
<TheNet>
it was just to teach myself :P
airdisa has joined #ruby
<GaryOak_>
that's cool
<GaryOak_>
what's the syntax like?
jimms has joined #ruby
checkit has joined #ruby
<shevy>
TheNet now you must show
morenoh149 has quit [Ping timeout: 255 seconds]
<shevy>
I'd wish we could make DSLs that are really not valid ruby
<jhass>
you can
c355E3B has joined #ruby
tier has joined #ruby
<shevy>
DSL.new { create directory bla }
<jhass>
you just need to parse it
cheater has left #ruby [#ruby]
flcn has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
<jhass>
and write an interpreter or compiler for it
<ytti>
shevy, that is entirely possible
<ytti>
it'll be hella ugly
<ytti>
but you just roll method_missing
riotjones has joined #ruby
<ytti>
then run it via case
<shevy>
method_missing kind of scares me
<ytti>
for bla you'd return 'bla'
<shevy>
I once built up several classes that kept on delegating towards other classes based on method_missing
<ytti>
for directory, you'd return somethinkg like :mkdir_p
<shevy>
half a year later when I looked at what I did, I no longer had any idea what I was doing
<ytti>
then create would call send(:mkdir_p, 'bla')
flcn has joined #ruby
<Ohga>
bradland, jhass: in one of the issues they just did a gem build and install from the wdm repo. I tried that and... that works..
Megtastique has joined #ruby
<Ohga>
but doing a build also compiles c extensions, right?
checkit has quit [Quit: (null)]
baweaver has joined #ruby
<jhass>
Ohga: no, but installing the built .gem does
<Ohga>
jhass: well, yes, sorry.. but none the less it is being compiled and it works.... so....
cjim___ has joined #ruby
<jhass>
probably just an unreleased fix then
<Ohga>
jhass: unreleased? how do you mean?
<arietis>
jhass: looks like the problem is in Net::HTTPResponse which translates %20 into actual space cymbol
iMe has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
<arietis>
symbol*
<jhass>
arietis: huh, I'd expect httparty to have run into that
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 264 seconds]
<jhass>
Ohga: well, if you build it from the repo it likely has changes that are not in a version that's pushed to rubygems.org
rokob has quit [Remote host closed the connection]
<Ohga>
jhass: the "bundle exec rake compile" I tried before were from the exact same local copy of the repo
<jhass>
oh, mh
<jhass>
then that task is just broken I guess?
cjim__ has quit [Ping timeout: 245 seconds]
jespada__ has joined #ruby
kadoppe has quit [Ping timeout: 256 seconds]
<Ove___>
Can I specify that one of the dependencies need to use a specific version of a dependency?
jespada_ has quit [Ping timeout: 252 seconds]
<jhass>
yes
<Ove___>
How will that look like?
<jhass>
how does specifying the dependency look like?
bronson has quit [Remote host closed the connection]
<Ohga>
jhass: well, as far as we can tell, I guess that's the problem
iliketur_ has quit [Quit: zzzzz…..]
kadoppe has joined #ruby
<Ohga>
I'll hold my breath until I've tried out the gem though
ki0 has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
<Ove___>
For instance if dependencya "0.0.1" needs deependencyb "0.0.3" ?
<shevy>
Ove___ in your .gemspec file
<Ove___>
None of these gems are my own.
<shevy>
s.add_dependency 'dep_a', '>= 1.0.9'
<jhass>
Ove___: yes you can do that, how it looks exactly depends on what we're actually talking about
snath has quit [Ping timeout: 265 seconds]
<shevy>
you can not overrule a dependency that was hardcoded like that in another gem; you can try to ignore dependencies though, I think via --force-install or so
r3Dk1nG has quit [Remote host closed the connection]
<shevy>
or you could always open up the .gemspec and change it, then gem build and install that gem. and you can upload it somewhere too, and even register a new project name for it :)
<Ohga>
I intend to put this gem file in the dir structure of an app. is there a standard sub dir name that is used?
ki0_ has joined #ruby
ki0 has quit [Read error: Connection reset by peer]
hmsimha has joined #ruby
<jhass>
vendor/
<Ohga>
the bin dir is for the command line wrapper, right?
<shevy>
yea
leafybasil has joined #ruby
PaulCapestany has quit [Quit: .]
<Ohga>
ok, is there other things that qualify for being in the vendor dir?
<jhass>
it became really uncommon to do that these days though
<jhass>
anything 3rdparty really
<Ohga>
ok
<Ohga>
well, special case for me since this wdm thing isn't maintained but I want to be sure to have a local copy of the fixed gem
jayeshsolanki has quit [Quit: bye!]
PaulCapestany has joined #ruby
<bradland>
fork it, add the main repo as upstream, and maintain your own version
<bradland>
you can specify your github repo in your Gemfile
<jhass>
^
krisquigley has joined #ruby
frem has joined #ruby
<keyofnight>
ugh... my client is acting wonky
<bradland>
anything less will be a cobbled together mess that you'll regret later. i speak from experience lol
<bradland>
keyofnight: do you have a contract?
PaulCapestany has quit [Max SendQ exceeded]
<bradland>
sorry, that sounded passive aggressive
<bradland>
i just mean to say that if they're acting wonky, you should look out for yourself
centrx has quit [Quit: Shutting down, Please wait...]
PaulCapestany has joined #ruby
iliketurtles has joined #ruby
_waltertv has joined #ruby
<keyofnight>
So, do any of you know if I can use rubyzip to check if a file is contained within a zip file?
<Ohga>
bradland: I can specify local paths as well.. but I guess you mean in case something else is broken?
delianides has joined #ruby
<keyofnight>
like... is there an `exist?()` method? well.. there isn't... because my script failed there...
delianides has quit [Read error: Connection reset by peer]
<bradland>
Ohga: sure, local works fine if the files will always be local (like if you check them in as part of your main repo)
<Ohga>
bradland: .. in which case I can escalate to a fork at that point
<bradland>
but i try to avoid that
<jhass>
bradland: I think they meant IRC client :P
leafybasil has quit [Ping timeout: 256 seconds]
<keyofnight>
I want my script to continue without failing even if a certain file is missing, huh... what about contains?()?
rokob has joined #ruby
rokob has quit [Remote host closed the connection]
rokob has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
<Ohga>
bradland: it will be in the repo, thus the question about directory naming
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arietis>
generic net/http works fine
jwinder has quit [Ping timeout: 264 seconds]
<jhass>
well, I'm still pretty sure it's your devices issue
<jhass>
net/http is just more tolerant
<arietis>
sure
toertore has joined #ruby
Musashi007 has joined #ruby
<arietis>
i just mean that httparty has no excuses :)
sandelius has joined #ruby
hpoydar has quit [Remote host closed the connection]
iml has quit []
plashchynski has quit [Quit: plashchynski]
sandelius has quit [Max SendQ exceeded]
bronson has quit [Remote host closed the connection]
a346 has quit [Remote host closed the connection]
a346 has joined #ruby
Parker0 has joined #ruby
nfk|laptop has quit [Quit: yawn]
dx7 has quit [Ping timeout: 244 seconds]
mitchellhenke has quit [Read error: Connection reset by peer]
<jhass>
IMO it has
mitchell_ has joined #ruby
<jhass>
RFC clearly says it needs to be an URI and URI RFC clearly disallows spaces afaik
havenn has quit [Remote host closed the connection]
<splud>
because a space would delimit the end of the request and the start of the ‘http/1.1” or whatever portion of the request clause.
morenoh149 has joined #ruby
havenwood has joined #ruby
qhartman has quit [Quit: Ex-Chat]
last_staff has joined #ruby
airdisa has quit [Remote host closed the connection]
airdisa has joined #ruby
plashchynski has joined #ruby
jimms has joined #ruby
baweaver has joined #ruby
AlphaTech has joined #ruby
_64k has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
wallerdev has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
bim has quit [Remote host closed the connection]
<rubie>
hi all: im having a hard time following the recursive calls in this quicksort implementation. I would expect a return on line 24 but it doesn't come until much later anyone willing to help explain? https://gist.github.com/anonymous/811943e376b3379fafff
airdisa has quit [Ping timeout: 265 seconds]
digitalextremist has joined #ruby
martinbmadsen has joined #ruby
<havenwood>
rubie: There were two elements in `arr` so it didn't return. You then #pop'ed one off leaving `[3]`.
<rubie>
but then it should all go into quicksort(before) + [middle] + quicksort(after)
<havenwood>
rubie: Take a look at `p arr` right before your `return` check.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Remote host closed the connection]
juanca_ has quit [Ping timeout: 265 seconds]
rodfersou has quit [Quit: leaving]
iliketurtles has joined #ruby
DerisiveLogic has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
juanca_ has joined #ruby
juanca_ has quit [Read error: Connection reset by peer]
fryguy9 has quit [Quit: Leaving.]
<gchristensen>
Hi, I'm running ruby 2.2.1, and running @metrics.slice_before(len: 0) do |element, state| ... end, but get the error: warning: initial_state given for slice_before. (Use local variables.). it isn't clear to me what the resolution is. any suggestion?
baweaver has joined #ruby
juanca_ has joined #ruby
speakingcode has joined #ruby
JoshGlzB_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
weird message indeed
robertt_dex has quit [Remote host closed the connection]
blackmes1 has quit [Read error: Connection reset by peer]
davedev2_ has quit []
Parker0 has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
paulcsmith has joined #ruby
morihei has joined #ruby
rhllor has quit [Quit: rhllor]
ki0 has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 264 seconds]
stef204 has joined #ruby
ldnunes has quit [Quit: Leaving]
Sirupsen has quit [Ping timeout: 272 seconds]
mburns has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
<havenwood>
gchristensen: It does happen from #ruby-lang or #rubyonrails from time to time.
<shevy>
hmmm
<shevy>
if i.is_a?(String) and i.include?('%')
<shevy>
can be simplified to
<shevy>
if i.is_a? String and i.include? '%'
<shevy>
right?
<apeiros>
I think that'll actually have the right precedence to mean the same, yes.
rokob has joined #ruby
aarkerio has joined #ruby
mburns has joined #ruby
<bricker>
shevy: doesn't seem like much of a simplification to me
<shevy>
yeah, it's strange. I think I remember that I once had problems with precedences but probably because I was also using something like "and !" or perhaps "or !"
<bricker>
complexified
kblake has quit [Read error: Connection reset by peer]
bim has joined #ruby
kblake has joined #ruby
<bricker>
just always use parens, why wouldn't you
<bricker>
anyways, we're not here to dicuss style preference
<bricker>
or ARE we
<bricker>
no, we are not
* bricker
gets back to work
wicope has quit [Remote host closed the connection]
sankaber has joined #ruby
<shevy>
bricker yeah
vim_shimm has joined #ruby
aimada has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
but usually when I do single checks like so:
<shevy>
if variable.include? 'foo'
<shevy>
I don't use parens
<GaryOak_>
parens help the reader
arietis has joined #ruby
<shevy>
so it feels a bit strange if I have two queries in a line and use:
<GaryOak_>
of understanding your intent
<shevy>
if variable.include? 'foo' and !variable > 5
<shevy>
if variable.include?('foo') and !(variable > 5)
<shevy>
in python I would not have to think
<shevy>
:)
<GaryOak_>
I can understand the ? methods it looks weird
<shevy>
some people also write method definitions like so:
<shevy>
def foo? bar, bla, ble
<GaryOak_>
but it could be `and variable <= 5` instead
ta has quit [Remote host closed the connection]
bim has quit [Ping timeout: 256 seconds]
<GaryOak_>
def huh? puts "shrugs" end
wottam has joined #ruby
relix has joined #ruby
vim_shimm has quit [Ping timeout: 246 seconds]
<GaryOak_>
In ruby it's like you have to know the rules before you can break them
renanoronfle has quit [Remote host closed the connection]
<GaryOak_>
In python the teacher hits you with a stick until you put : at the end of your if and def
ta has joined #ruby
enebo has quit [Quit: enebo]
<bricker>
shevy: !variable>5 is an argument error... parens win again.
Guest52850 is now known as alphaatom
swgillespie has joined #ruby
pwattste has joined #ruby
JoshGlzBrk has joined #ruby
Megtastique has quit []
triple_b has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nicolastarzia has quit [Remote host closed the connection]
<bricker>
shevy: also, using "and" in a compound conditional like that isn't good. What you're saying it, "if ( !(variable > 5) if variable.include?('foo') )". Maybe that happens to evaluate correctly but you can see how it can quickly become problematic.
davedev24_ has joined #ruby
Nahra has joined #ruby
JoshGlzB_ has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics_away
<bricker>
"and" means "and then", && means "also". You should be using "also" in a conditional, "and then" doesn't make sense in that context.
bronson has joined #ruby
doodlehaus has quit [Remote host closed the connection]
tohsig has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Papierkorb_ has joined #ruby
TheNet has quit [Remote host closed the connection]
juanca_ has quit [Remote host closed the connection]
platosha has quit [Quit: This computer has gone to sleep]
juanca_ has joined #ruby
<shevy>
bricker I remember that when I used parens, it always worked fine
<shevy>
that's how I became conservative - for such statements, I use parens and things are fine. but it feels strange when one is to use parens when they are not needed
<shevy>
perhaps I should change to a paren free life
<shevy>
and pick lisp
<shevy>
'&&' is sort of ugly to read, I like 'and' a lot
Papierkorb has quit [Ping timeout: 246 seconds]
rbennacer has quit [Ping timeout: 252 seconds]
<GaryOak_>
is there a way to get rid of arr = [] where I'm just building an array in a for each loop
krisquigley has joined #ruby
xcombelle has quit [Quit: Quitte]
<rokob>
use map
<GaryOak_>
thanks, just saw that in irb
bronson has quit [Ping timeout: 252 seconds]
juanca_ has quit [Ping timeout: 245 seconds]
airdisa has joined #ruby
Ohga has left #ruby [#ruby]
lanemeyer has joined #ruby
thumpba has joined #ruby
jcromartie has joined #ruby
<shevy>
guys
<shevy>
we should fly to the mars
krisquigley has quit [Ping timeout: 264 seconds]
colorados has quit [Ping timeout: 244 seconds]
Notte has quit [Remote host closed the connection]
atal421 has quit []
tier has quit [Remote host closed the connection]
jerematic has quit [Remote host closed the connection]
jerematic has joined #ruby
jerematic has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
juanca_ has joined #ruby
lele is now known as Guest24
davedev2_ has joined #ruby
duncannz has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
amystephen has joined #ruby
airdisa has quit [Ping timeout: 248 seconds]
techsethi has quit [Quit: techsethi]
baweaver has quit [Ping timeout: 256 seconds]
arietis has quit [Quit: Leaving.]
mitchell_ has quit [Quit: Computer has gone to sleep.]
cinch_ has joined #ruby
<jhass>
didn't we already?
cinch_ has quit [Remote host closed the connection]
<apeiros>
to mars? that robot planet?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
yeah not sure, for me gem install rails + rubocop worked fine, unsure why your connection is weird
max96at is now known as max96at|off
pengin has joined #ruby
<shevy>
what is 'gem --version' giving you? I have version 2.4.5
<shevy>
my ruby version is: ruby 2.2.1p85 (2015-02-26 revision 49769) [i686-linux]
<shevy>
debian based distributions tend to be strange when it comes to ruby + gems
<mjh_ca>
Totally new to Ruby. Ridiculously simple question. I have a project with a /vendor path (/vendor/bundle/ruby/2.1.0/...) which contains some gems. I need to make a change to one of those gems and rebuild so that change goes live... What is the command to do that?
<chopperkun>
I get the same error over wifi
lkba has quit [Ping timeout: 264 seconds]
<shevy>
but you should try with any manual download of any gem
GnuYawk has joined #ruby
<shevy>
if the manual installation works then it is most likely a connection problem
<jhass>
mjh_ca: that's not the correct way to do that. The correct way would be to fork the gem and point your Gemfile to the fork
<chopperkun>
gem 2.4.5 and ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
towski_ has joined #ruby
<shevy>
cool, that is quite recent
<jhass>
chopperkun: can you gist the full error output?
mitchellhenke has quit [Quit: Computer has gone to sleep.]
dfinninger has quit [Remote host closed the connection]
<havenwood>
shevy: ruby-build ships with its own openssl and ignore the package manager's
<shevy>
ah you mean the rbenv one?
jcromartie has quit [Ping timeout: 250 seconds]
<havenwood>
shevy: yup
<shevy>
I see
<havenwood>
shevy: ruby-install would use apt's openssl
Sirupsen has joined #ruby
<havenwood>
shevy: nobody seems to realize they're doing it, which has the unfortunately consequence of folk not building against the openssl they expect
Akagi201 has quit [Ping timeout: 246 seconds]
Blaster has joined #ruby
<havenwood>
shevy: especially if you install it through the package manager, you expect it to use package manager deps
Sirupsen has quit [Client Quit]
chopperkun has quit [Ping timeout: 265 seconds]
<jhass>
yeah, managing multiple libssl's on the same system sounds horrible
jcromartie has joined #ruby
<shevy>
yeah
<shevy>
so good, we can rule out an openssl related problem for chopperkun too
<shevy>
though he is gone now
<bradland>
psh. shared libs are for posers.
<shevy>
perhaps his connection is not that good anyway :)
<bradland>
he'll be back in a few asking why his IRC client said "connection reset by peer"
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
xD
sondr3 has joined #ruby
kubunto has joined #ruby
chopperkun has joined #ruby
kobain has joined #ruby
<chopperkun>
I just rebooted my internet
<jhass>
the entire one?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
NO WONDER!
<jhass>
that's why github is down all day!
<bradland>
lol
<havenwood>
chopperkun: please reboot the internet when we're sleeping. i just got dropped from my game.
jerematic has joined #ruby
<bradland>
remember the time sstephenson posted that upity rant about rvm clobbering cd, then went and bundled libssl
<bradland>
(I will probably regret posting that)
<bradland>
...
<bradland>
yep, i regret it
<chopperkun>
so now when i ping api.rubygems.org I get a respons
<havenwood>
bradland: ;)
<jhass>
chopperkun: I'm interested in the IP you get really :)
<chopperkun>
54.186.104.15
<kubunto>
for some reason i have access ot github
<bradland>
54.186.104.15
<bradland>
kubunto: read what you just posted. not sure it came out right.
<kubunto>
bradland: i can still get at my Github stuff
<havenwood>
chopperkun: you're welcome. just point rbenv to 2.2.1 after you've installed.
<shevy>
hmmmm
<shevy>
"We provide Ruby 2.2 packages for Ubuntu Utopic, Trusty and Precise. Our Ruby 2.2 packages are currently built from unmodified versions of Ruby."
<bradland>
i've never tried them under debian
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland>
what do you run?
Papierkorb_ has quit [Ping timeout: 244 seconds]
<jhass>
ShevyOS
<bradland>
man, that sounds awesome
<jhass>
if you think so...
<bradland>
...if i didn't already know shevy
<bradland>
:P
<shevy>
they just compile from source!!!
<shevy>
bradland I usually compile from source when that is possible
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
glibc still scares me, I once shot my system
Papierkorb_ has joined #ruby
<bradland>
i don't have enough hair left for all that
<jhass>
just btrfs subvolume snapshot
<bradland>
anyone actually run btrfs?
<jhass>
<-
<bradland>
damn, respect
<bradland>
i'm a mainstreamer
<bradland>
stay faaaar from the edges
<jhass>
I think it's pretty stable since about 3.16
mitchellhenke has joined #ruby
<jhass>
and awesome
<bradland>
you know, it's funny
<jhass>
might even drop the layer of lvm for my next system
wallerdev_ has joined #ruby
<bradland>
windows had something very similar to btrfs for a long time: shadow copy
<bradland>
not sure if it's exactly the same
jwingfi has quit [Remote host closed the connection]
GaryOak_ has quit []
armyriad has quit [Ping timeout: 244 seconds]
badhatter has quit [Read error: Connection reset by peer]
<bradland>
i know that it had some kind of CoW functionality, because you could make snapshots nearly instantly
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
<jhass>
with btrfs they're literally instant
<jhass>
milliseconds
kblake has quit [Remote host closed the connection]
<bradland>
noice
Lewix has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mikecmpbll has joined #ruby
<jhass>
for example before I enabled testing to update to gnome 3.16, I just did a snapshot
ki0 has quit [Remote host closed the connection]
SouL has joined #ruby
<jhass>
and now I can boot into the old system just by switching the default subvolume
wallerdev has quit [Ping timeout: 244 seconds]
wallerdev_ is now known as wallerdev
<jhass>
btrfs subvolume set-default / 123
ghr has joined #ruby
<bradland>
that shit is bananas
SouL has quit [Read error: Connection reset by peer]
<bradland>
like VM snapshots for my system
<jhass>
reboot and you're booting into the old system, yeah
juanca_ has quit [Remote host closed the connection]
<pipework>
jhass: Couldn't you just chroot into the new system?
juanca_ has joined #ruby
<jhass>
probably, but I got systemd 219 with the same update
<jhass>
and manually chrooting on each reboot, meh
<bradland>
is the CoW block level or file level
<bradland>
?
<pipework>
on, instead of, whichever.
<jhass>
I never checked tbh
dmr8 has quit [Quit: Leaving]
<jhass>
so with systemd 219 systemd-nspawn learnt --template
mistermocha has quit [Ping timeout: 252 seconds]
<jhass>
your point it at some chroot and -D at something not existing and it'll automatically btrfs snapshot if the chroot is a subvolume
armyriad has joined #ruby
martinbmadsen has joined #ruby
<jhass>
I've been using systemd-nspawn over VMs quite a lot recently
mistermo_ has quit [Ping timeout: 264 seconds]
<chopperkun>
thank you for your help everyone!
<bradland>
so it worked chopperkun?
<chopperkun>
yeah perfectly now!
<havenwood>
chopperkun: nice
<bradland>
sweeeeeet. maybe consider a switch to chruby, which is the companion ruby environment manager to ruby-install
cacocola has joined #ruby
<chopperkun>
is it better than rbenv??
<chopperkun>
Thats the closest that I got to virtualenvwrapper
<postmodern>
chopperkun, of course the best solution is to just upgrade the system ruby
<postmodern>
chopperkun, or install a newer version into /usr/local
krisquigley has quit [Ping timeout: 250 seconds]
<chopperkun>
so if I type chruby at the command line i get nothing
<shevy>
I think my eyes are getting tired
<shevy>
rather than "Atmospheric pressure decreases with height." I was reading "Atmospheric pressure decreases with weight." and confusingly wondered why being fat changes atmospheric pressure
<postmodern>
chopperkun, you'll need to install rubies using ruby-install and restart the terminal
<chopperkun>
wait no
<chopperkun>
my fault
cpruitt has quit [Quit: cpruitt]
hpoydar has quit [Ping timeout: 252 seconds]
jefus_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
dx7 has quit [Remote host closed the connection]
zorak8 has joined #ruby
djbkd has joined #ruby
jefus has quit [Ping timeout: 250 seconds]
waxjar has joined #ruby
kubunto has quit [Ping timeout: 246 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
ParSalian has joined #ruby
<bradland>
i know this is totally off topic, but is there a listing of all the godforsaken terminology that homebrew uses
<bradland>
kegs, casks, blargh!
aarkerio has quit [Quit: Verlassend]
sondr3 has left #ruby ["Whelp."]
<bradland>
hot damn, there's an IRC channel. sry
jwingfi has joined #ruby
ki0 has quit [Remote host closed the connection]
<havenwood>
bradland: pouring a bottle if you're lucky enough for a binary
<apeiros>
aahaha, yeah, was ranting about that myself
mistermocha has quit [Remote host closed the connection]
jonr22 has joined #ruby
triple_b has joined #ruby
silkfox has joined #ruby
<havenwood>
we need a pull request to make the Homebrew theme more robust by adding pirate vernacular on top of the brewery motif. liven up the docs, yarr!
<havenwood>
april is soon
adaedra has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
<bradland>
it makes searching for homebrew related terms really fucking impossible too
<bradland>
the problem with these naming schemes is that it is next to impossible for the project maintainers to relate to someone that is new to the tools
<bradland>
and i'm not even that new to the tool
baweaver has joined #ruby
OtterCoder has joined #ruby
<bradland>
i just don't use it that often, so i can never remember what the hell all this stuff is
adaedra has joined #ruby
kirun has quit [Quit: Client exiting]
thomas has quit [Quit: reconnecting]
thomas has joined #ruby
jerematic has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
silkfox has quit [Ping timeout: 246 seconds]
Alex_____ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
deol has joined #ruby
zorak8 has joined #ruby
rubie has quit [Ping timeout: 246 seconds]
iliketurtles has quit [Quit: zzzzz…..]
baweaver has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Remote host closed the connection]