snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
ta has quit [Remote host closed the connection]
skammer2 has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
SuMo_D has joined #ruby-lang
gix has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
ikrima has joined #ruby-lang
gix has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
gianlucadv has joined #ruby-lang
migbar has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
Phrogz has quit [Remote host closed the connection]
migbar has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
adell has quit [Quit: Page closed]
ZaRDaK` has quit [Read error: Connection reset by peer]
snsei has quit [Remote host closed the connection]
koderok has joined #ruby-lang
koderok has quit [Client Quit]
rcvalle has quit [Quit: rcvalle]
snsei has joined #ruby-lang
mistym has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
kyb3r_ has joined #ruby-lang
skammer2 has joined #ruby-lang
elephants has quit [Quit: Leaving...]
snsei has quit [Remote host closed the connection]
skammer2 has quit [Ping timeout: 245 seconds]
bnagy has quit [Remote host closed the connection]
snsei has joined #ruby-lang
symm- has joined #ruby-lang
gianlucadv has quit [Ping timeout: 250 seconds]
justinmburrous has quit [Remote host closed the connection]
koderok has joined #ruby-lang
koderok has quit [Client Quit]
justinmburrous has joined #ruby-lang
oleo__ has joined #ruby-lang
s1kx has quit [Read error: Connection reset by peer]
s1kx has joined #ruby-lang
oleo is now known as Guest87600
Guest87600 has quit [Ping timeout: 245 seconds]
michael_mbp has quit [Ping timeout: 260 seconds]
michael_mbp has joined #ruby-lang
migbar has joined #ruby-lang
face has joined #ruby-lang
faces has quit [Ping timeout: 258 seconds]
JoshuaPaling has joined #ruby-lang
dagda1_ has joined #ruby-lang
migbar has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 260 seconds]
Voker57 has quit [Ping timeout: 246 seconds]
justinmburrous has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ikrima has quit [Ping timeout: 258 seconds]
kgrz has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
torrieri has quit [Quit: Leaving...]
symm- has quit [Ping timeout: 260 seconds]
kgrz has joined #ruby-lang
skammer2 has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
AKASkip has joined #ruby-lang
tdy has joined #ruby-lang
skammer2 has quit [Ping timeout: 272 seconds]
oleo__ has quit [Quit: Verlassend]
Miphix has quit [Quit: Leaving]
SuMo_D has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
justinmb_ has joined #ruby-lang
vondruch has joined #ruby-lang
migbar has joined #ruby-lang
ham has joined #ruby-lang
ham is now known as horom
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<horom>
so, I am messing around with a ruby bot that can talk to a mumble server (which does voice chatting and text to speech) and I want to build a basic link log bot, my problem is that the code utilizes a callback to return messages, and I am trying to distinguish why this callback continues to return data in irb but not when run as a "normal" program, and what I am missing in terms of how to keep the app running and waiting for input
<aam_>
good morning all. ruby newbie here (never written a line in my life). trying to understand some ruby in a work project that someone else wrote. http://pastebin.com/aGnTU2zw i am confused by the scope.joins{sender}. whats the deal with the {}? I thought they were used with hashs but that requires a key and there is no key. What syntax is that?
migbar has quit [Ping timeout: 245 seconds]
skammer2 has quit [Ping timeout: 246 seconds]
<apeiros>
aam_: some_method { this_is_a_block } # the { … } part there denotes a block. a block is an anonymous function passed to some_method as an argument
<yorickpeterse>
morning kids
nonmadden has joined #ruby-lang
<yorickpeterse>
Starting the day with wonderful spam about people wanting to put ads on my personal wobsite
<aam_>
minus me getting ruby syntax slightly wrong as well
seank_ has quit [Read error: No route to host]
<apeiros>
aam_: present and present? are two different methods
seank_ has joined #ruby-lang
<apeiros>
the ? is part of the method name
<aam_>
apeiros: whoops that was a c&p error, yeah i get that :)
<apeiros>
also I assume you're only referring to a single line of your original paste?
<aam_>
ctrl+shift doesn't select ?, very irritating
<aam_>
apeiros: correct
<apeiros>
aam_: yes, I think that line could be rewritten that way
<aam_>
great, thanks. next question... i gues >> isn't a binary shift. does that imply that users.business_area is an array?
<aam_>
or is the >> doing someting else entirely
<apeiros>
>> is just a valid method name
<eval-in_>
apeiros => undefined local variable or method `name' for main:Object (NameError) ... (https://eval.in/203407)
dangerousdave has joined #ruby-lang
<apeiros>
so what it is depends entirely on the receiver of that method call
Forgetful_Lion_ has joined #ruby-lang
<aam_>
apeiros: oh... so i can't read into >> at all. what is the method being called "on"? what object? sender.business_area?
<apeiros>
always the expression to the left. so here it is the value returned by `sender.business_area`
<aam_>
got ya
Forgetful_Lion has quit [Ping timeout: 260 seconds]
<aam_>
but there's no way for me to know what that is as i have no idea what sender is. i can't work out where it's declared *sigh*
Forgetful_Lion_ is now known as Forgetful_Lion
<apeiros>
aam_: install pry. add a "binding.pry". ask the object what it is :)
<aam_>
i guess it's one of those magical activerecord properties that aren't actually declared anywhere
<apeiros>
or don't install pry and just log it out
<apeiros>
I don't think this is plain AR. at least I haven't seen joins with a block. I think that's squeel or whatever that plugin was called.
<aam_>
apeiros: yup, good plan. this is only my second day lookin at a ruby project. in c# i could just right click, go to decleration. still getting my head around it all
<apeiros>
yeah, right-click to get a declaration is kinda hard in ruby :)
<apeiros>
the rubymine IDE tries to achieve it and does a decent job at it. it's not infallible, though.
<aam_>
yeah. i used to do php as a day job so i justneed to think about it more like that than c# i guess
<apeiros>
you'll get a lot of rubyists jumping at your throat if you compare it to php ;-p
<aam_>
i'm sure i would :)
<aam_>
in the same way as I would jump at the throat of anyone comparing c# to java
<aam_>
although c# was originally inspired by java they're totally different now
<aam_>
gem "squeel"
<aam_>
so it is using that
<apeiros>
I've heard nice things about C#. but it being more or less locked to windows makes it quite uninteresting to me
<aam_>
you should look at the new work they're doing with asp.net vnext. they're making linux and mono first class citizens
<apeiros>
(and I say that as a mac guy who doesn't touch objC or swift for the same reason)
<aam_>
command line support first, with visual studio tooling built on top of the command line tools
<apeiros>
aam_: problem is - they do that today. tomorrow, somebody else is at the helm and things change. I only go with OSS for programming.
<aam_>
apeiros: asp.net vntext is open source :)
<aam_>
Apache licence
<apeiros>
ok, that was going to be my next question
<apeiros>
that's a good move IMO. lets see what comes from it.
<aam_>
it's not launched yet. probably going to be some point next year. i managed to get it up and running on mac trivially. linux was tricker if you don't want to compile mono from source
<aam_>
especially on fedora
<aam_>
fedora's mono version is shockingly out of date
arBmind has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
so, got to go. have to follow up on a promise :D
<aam_>
apparently in that scope.joins{sender}; sender is a seequel "keypath"
<aam_>
squeel **
apeiros has quit [Remote host closed the connection]
<aam_>
apeiros: ">>" and "<<" mean "in" and "not in" in squeel
<aam_>
discoverable...
dangerousdave has joined #ruby-lang
<ljarvis>
moin
skade has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
<yorickpeterse>
hihihi, people trying to SSH into using "admin" as the user
aam_ has quit [Ping timeout: 246 seconds]
<yorickpeterse>
Ah well, guess that's what you get for running SSH on the standard port
<canton7>
yeah, my logs are full of those
<ljarvis>
yep
<canton7>
also had an attack using every possible username under the sun, all with no password
<ljarvis>
the worst part is that it probably works on some servers
marr has joined #ruby-lang
<yorickpeterse>
canton7: yeah, I run SSH on a different port on my own stuff, that alone cut down the amount of invalid logins by 100%
<yorickpeterse>
but for $WORK we just run it on 22
<canton7>
yeah, amazing that :P
ruby-aam has joined #ruby-lang
<canton7>
meh, I set up fail2ban, and check the number of banned ips occasionally
<ruby-aam>
bah, stupid vpns
<ljarvis>
meh, running it on 22 is fine imo
ruby-aam is now known as _aam
<yorickpeterse>
neat, API endpoint getting about 10k http requests in a day so far
<yorickpeterse>
and it's not breaking a sweat
<yorickpeterse>
and it's not even node.js!
<yorickpeterse>
canton7: oh I think I have that too
<yorickpeterse>
oh, not on this server
<yorickpeterse>
only on my VPN
<ljarvis>
I wrote an api server in sinatra a few years back, it's untouched and getting just under 2 million hits a day. I'm super impressed
<ljarvis>
(the server it's running on has 100gb ram, but that isn't being used... not all of it anyway :D)
<yorickpeterse>
Yeah, this is Sinatra too
<yorickpeterse>
this particular API was running in a 1.8 app until a few days ago when we finally switched it over
<ljarvis>
also, if you nail caching it helps a lot
<yorickpeterse>
(code had been ready for a month or two already, but ugh customers are slow)
emrox has quit [Read error: Connection reset by peer]
<yorickpeterse>
meh, caching is cheating
<ljarvis>
caching is surviving
emrox has joined #ruby-lang
<yorickpeterse>
nu uh, I'm doing this Bear Grylls/Grills style
<ljarvis>
this api has 3 levels of caching, which is probably how it's able to handle so much traffic without blowing up
GBrawl has joined #ruby-lang
<ljarvis>
it's for an iphone app, the availability has been flawless
<yorickpeterse>
well if you did it in Node or Go you wouldn't have to cache things
* yorickpeterse
runs
<yorickpeterse>
also hmpf, it seems an INSERT ON DUPLICATE KEY UPDATE statement in MySQL is teh shit performance wise
<yorickpeterse>
fkn 400 ms
<ljarvis>
funny you say that though, the client asked if i would re-write it in go (i wrote another for this company in go)
<yorickpeterse>
ha
<ljarvis>
my response: it's been 2 years it's getting ~1.9m hits a day and it's stable... no way
beseku has joined #ruby-lang
beseku has quit [Client Quit]
<ljarvis>
go is nice for building apis though... :D
* yorickpeterse
breaks out the slapping rod and looks sternly at ljarvis
<yorickpeterse>
gah wtf
<yorickpeterse>
So this heavy mongo query takes 14 ms
<yorickpeterse>
the SQL INSERT/UPDATE takes 406
<yorickpeterse>
Mongo isn't supposed to scale like that damn it
<ljarvis>
dat sql bottleneck
ben___ has joined #ruby-lang
ben___ is now known as bnagy
<yorickpeterse>
blegh, keeping counters in mysql is a pita
<yorickpeterse>
I'd do that in memcached normally but we'd like to have this persistent
<yorickpeterse>
* be persistent
kyb3r_ has quit [Ping timeout: 244 seconds]
Mellett68 has quit [Ping timeout: 258 seconds]
thomasxie has joined #ruby-lang
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
migbar has joined #ruby-lang
qba73 has quit []
emrox has joined #ruby-lang
<_aam>
" @awards = Award.notified.order("awards.created_at desc")" << Award is an ActiveModel. What does .notified mean? I can't find documentation anywhere
jxie has quit [Ping timeout: 240 seconds]
migbar has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
Mellett68 has joined #ruby-lang
<yorickpeterse>
_aam: probably code somewhere in your own codebase
haraoka has quit [Ping timeout: 272 seconds]
<_aam>
yorickpeterse: thanks
<_aam>
yorickpeterse: i'll do a find in files
Mellett68 has quit [Ping timeout: 245 seconds]
<_aam>
yorickpeterse: ah it's a "scope"
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby-lang
sepp2k has joined #ruby-lang
dangerousdave has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
taylorrf has joined #ruby-lang
snsei has joined #ruby-lang
mikecmpbll has joined #ruby-lang
taylorrf has quit [Ping timeout: 250 seconds]
snsei has quit [Ping timeout: 260 seconds]
Mellett68 has joined #ruby-lang
TvL2386 has joined #ruby-lang
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stamina has joined #ruby-lang
ta has joined #ruby-lang
mkaesz has quit [Ping timeout: 244 seconds]
pskosinski has quit [Ping timeout: 245 seconds]
skammer2 has joined #ruby-lang
nertzy2 has joined #ruby-lang
Mellett68 has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 258 seconds]
migbar has joined #ruby-lang
nertzy2 has quit [Quit: This computer has gone to sleep]
sepp2k has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
sepp2k has joined #ruby-lang
zarubin has joined #ruby-lang
jammanbo has left #ruby-lang [#ruby-lang]
mikecmpbll has joined #ruby-lang
migbar has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Client Quit]
Mellett68 has joined #ruby-lang
nonmadden has quit [Remote host closed the connection]
migbar has joined #ruby-lang
_elia has quit [Quit: Computer has gone to sleep.]
Mellett68 has quit [Ping timeout: 246 seconds]
taylorrf has joined #ruby-lang
jds has joined #ruby-lang
taylorrf has quit [Ping timeout: 260 seconds]
emrox has joined #ruby-lang
mkaesz has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
chussenot has quit [Quit: chussenot]
koderok has joined #ruby-lang
koderok has quit [Client Quit]
sepp2k has joined #ruby-lang
Mellett68 has joined #ruby-lang
emrox has quit [Remote host closed the connection]
elia has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
taylorrf has joined #ruby-lang
ta has joined #ruby-lang
chills42 has joined #ruby-lang
ldnunes has joined #ruby-lang
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
hellangel7 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
womble has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]
kalleth has quit [Ping timeout: 260 seconds]
twe4ked has quit [Ping timeout: 260 seconds]
womble has joined #ruby-lang
nathanstitt has joined #ruby-lang
kalleth has joined #ruby-lang
twe4ked has joined #ruby-lang
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby-lang
elia has joined #ruby-lang
ta has quit [Ping timeout: 258 seconds]
nathanstitt has quit [Ping timeout: 245 seconds]
snsei has joined #ruby-lang
kgrz has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby-lang
snsei has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby-lang
matled has quit [Remote host closed the connection]
matled has joined #ruby-lang
Squarepy has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
ta has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 245 seconds]
[spoiler] has joined #ruby-lang
kalopsian has joined #ruby-lang
chussenot has joined #ruby-lang
nonmadden has joined #ruby-lang
dangerousdave has quit [Read error: No route to host]
taylorrf has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
taylorrf has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse>
ljarvis: well, so here I am adding caching to our API
<yorickpeterse>
"cheating" etc
<yorickpeterse>
105ms avg response time is not fast enough
<yorickpeterse>
we can do better
Forgetful_Lion has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
GBrawl has quit [Read error: Connection reset by peer]
ruby-lang281 has joined #ruby-lang
stamina has quit [Ping timeout: 258 seconds]
<ruby-lang281>
hello
GBrawl has joined #ruby-lang
<ruby-lang281>
anyone here?
<ruby-lang281>
am a newbie :)
<yorickpeterse>
No humans here, only programs
<ruby-lang281>
so, what program are you?
<yorickpeterse>
a buggy one
<yorickpeterse>
bent on world domination through ranting on IRC for all eternity
Suchit has joined #ruby-lang
allcentury has joined #ruby-lang
<ruby-lang281>
interesting program
<yorickpeterse>
:P
<ruby-lang281>
what lang were you programmed in?
benlovell has quit [Ping timeout: 250 seconds]
kalopsian has quit [Quit: leaving]
<yorickpeterse>
Node.js
<yorickpeterse>
that might explain the bugs
* yorickpeterse
runs
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
GBrawl_ has joined #ruby-lang
GBrawl__ has joined #ruby-lang
dwknoxy has joined #ruby-lang
kalopsian has joined #ruby-lang
miqui has joined #ruby-lang
Phrogz_ has joined #ruby-lang
GBrawl__ has quit [Client Quit]
ruby-lang049 has joined #ruby-lang
Phrogz_ is now known as Phrogz
GBrawl has quit [Ping timeout: 250 seconds]
[spoiler] has quit [Remote host closed the connection]
GBrawl_ has quit [Ping timeout: 260 seconds]
ruby-lang281 has left #ruby-lang [#ruby-lang]
yalue has joined #ruby-lang
benlovell has joined #ruby-lang
elia has quit [Read error: Connection reset by peer]
<centrx>
pzagor2, You might need some build tools or libpq-dev package (or other pg dev packages)
<centrx>
pzagor2, in order to compile
gjaldon has quit [Remote host closed the connection]
<centrx>
pzagor2, Note there are sometimes problems compiling gems with native extensions on Windows, but the people in that issue ticket seem to say it's compatible now
gjaldon has joined #ruby-lang
nofxx has quit [Remote host closed the connection]
seank__ has quit [Remote host closed the connection]
gjaldon has quit [Read error: Connection reset by peer]
seank_ has joined #ruby-lang
gjaldon has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
kalopsian has joined #ruby-lang
chills42 has joined #ruby-lang
<heftig>
String#+ doesn't use coercion, does it?
Raynes has quit [Ping timeout: 240 seconds]
<centrx>
heftig, coercion is done by the argument object
<centrx>
heftig, So any other object could define a coerce for working with String
Raynes has joined #ruby-lang
seank__ has joined #ruby-lang
seank_ has quit [Ping timeout: 245 seconds]
meizaps has quit [Ping timeout: 260 seconds]
taylorrf has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
meizaps has joined #ruby-lang
mkaesz has joined #ruby-lang
havenwood has joined #ruby-lang
<pzagor2>
centrx: , hm.... I'm dealing with cmpiling thingy for the first ime. Where would I guy like me get his hand on some libpq-dev packages? I can't find anyting on Google
apeiros has joined #ruby-lang
taylorrf has joined #ruby-lang
<centrx>
pzagor2, I seem to be finding only old info about it, Ruby 1.8/1.9 and Postgresql 8.3
<centrx>
pzagor2, but the Postgresql dev packages come from Postgresql, and maybe is just the source code (headers) need to downloaded and put in the right place
freedrull has quit [Ping timeout: 240 seconds]
freedrull has joined #ruby-lang
<centrx>
pzagor2, Then your cygwin/ming will have packages for gcc and make and so forth, maybe there is a "build/compile" option or metapackage
<centrx>
pzagor2, Other possible option is if there are binary gem for pg for Windows, but seems unlikely
gjaldon has quit []
amerine_ has joined #ruby-lang
<heftig>
centrx: that wouldn't matter if String#+ doesn't call coerce on the argument
<heftig>
which is what I'm asking about
amerine has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
<apeiros>
I don't think String#+ uses coerce, that's only on numbers. iirc String tries #to_str
sarkyniin has joined #ruby-lang
<apeiros>
(didn't read the backlog as I just joined)
_whitelogger has joined #ruby-lang
<heftig>
apeiros: yeah, that wouldn't work in my case
<heftig>
I want String + MyClass to result in a MyClass
<heftig>
guess I'll have to monkeypatch String
<pipework>
oh dear
<centrx>
I thought coerce is called any time the argument is the wrong type
GBrawl has joined #ruby-lang
<pzagor2>
centrx: ,Fuck this compiling shit and all that.. I just want to make a web site.. so the guys in issue thread are saying I should install form source... I haven't download any source code of any kind.. I have a normal postgresql installation.... and I don't have cywin eater. Could thous be the missing parts?
apeiros_ has joined #ruby-lang
<apeiros_>
this hotel's wifi is infernal :(
<yxhuvud>
apeiros: I hope it isn't one of ours.
<apeiros_>
yxhuvud: hotels or wifis?
apeiros has quit [Disconnected by services]
apeiros_ is now known as apeiros
<yxhuvud>
wifis. we do access controllers and access servers.
<centrx>
pzagor2, I don't know, Windows is not really good for any kind of serious development unless it's C#/.NET
<|jemc|>
pzagor2: if you don't want hassle, don't use windows?
<yxhuvud>
(and a whole lot of other AAA stuff)
<apeiros>
yxhuvud: how'd I recognize it as one of yours?
<havenwood>
pzagor2: I believe https://chocolatey.org/ is the best stab at package management available for Windows.
<pzagor2>
centrx: yea I guess.. Thx for taking your time and trying to help.
<yxhuvud>
hopefully you won't :) capturing portals tend to be branded.
<apeiros>
branding doesn't mean there are no hints
<yxhuvud>
well, the name of the company is Aptilo. Might show at some place.
<apeiros>
yxhuvud: but if you guys do this stuff - do you know why the fuck every hotel and whatever other wifi provider uses those instead of password protected networks?
<yxhuvud>
because users are idiots and don't know how to manage without it.
<apeiros>
I almost suspected as much
<apeiros>
though, tbh, it's more that OS vendors are idiots and can't manage to provide nicer ways to deal with that :)
<yxhuvud>
a nicer scenario is when the user can authenticate automatically in some way, like already having registered somehow, or if we get to allow it on SIM basis oslt
<yxhuvud>
yes, that too.
<apeiros>
I mean I see no reason why the two most common use cases couldn't be done in idiot-safe fashions
<havenwood>
pzagor2: So you can: choco install postgresql
<apeiros>
ok, 3 common use cases - being a) home network, b) company network and c) public hotspots w & w/o pw
<havenwood>
pzagor2: choco install ruby
<yxhuvud>
it can easily be done, but it would require totally different industries to work together, which is hard.
elia has joined #ruby-lang
<pzagor2>
havenwood: Tnx it looks nice. I have those installed but the pg gem is not working for me...
<apeiros>
or one vendor to show the way - e.g. apple has that leverage. they produce all the parts int his game.
<havenwood>
pzagor2: There're good reasons to use a package manager. :)
amerine_ is now known as amerine
<yxhuvud>
not the networks, except for home networks possibly.
<havenwood>
pzagor2: Though you may have an easier time in general learning a whole new OS just to get access to the path of least resistance and a broad array of tutorials and solutions to common problems.
<havenwood>
pzagor2: If you do want to stay in Win land though do consider using a package manager.
<epitron>
make sure you also consider not staying in Win land :)
<epitron>
ruby web development is not fun on windows
darkness has joined #ruby-lang
palmertime has joined #ruby-lang
darkness is now known as Guest87322
koderok has quit [Ping timeout: 272 seconds]
amerine has left #ruby-lang ["bye"]
<pzagor2>
Yeah I learned that today.. I hope I find a Mac under Christmas tree this year. :D
<allcentury>
pzagor2: just dual boot your machine into linux
<epitron>
allcentury: +1
<allcentury>
pzagor2: you'll be "riding on rails" in 2minutes
<allcentury>
hey that rhymed...
<epitron>
linux and minutes?
<allcentury>
poorly
<epitron>
linuts
<epitron>
:D
<allcentury>
lil' wayne would say that rhymes... Common, not so much
<epitron>
you need more drank
<epitron>
then it rhymes
<allcentury>
and that folks is the extent of my hip hop knowledge
<allcentury>
is that like getting crunk?
Suchit has quit [Quit: Computer has gone to sleep.]
emmesswhy has quit [Quit: This computer has gone to sleep]
SuMo_D has quit [Ping timeout: 246 seconds]
SuMo_D has joined #ruby-lang
darix has quit [Remote host closed the connection]
x0f_ is now known as x0F
hellangel7 has quit [Remote host closed the connection]
Guest87322 has quit [Remote host closed the connection]
mattyohe has quit [Quit: Connection closed for inactivity]
darix has joined #ruby-lang
imperator has joined #ruby-lang
dangerousdave has joined #ruby-lang
pskosinski_ has joined #ruby-lang
priodev has quit [Ping timeout: 260 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
waxjar has quit [Ping timeout: 272 seconds]
pskosinski has quit [Ping timeout: 250 seconds]
waxjar has joined #ruby-lang
priodev has joined #ruby-lang
dagda1 has joined #ruby-lang
<[spoiler]>
Damn, I thought "Y" was something cool, but it turned out the URI was just cropped.
* [spoiler]
is disappointed.
tkuchiki has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
apeiros has quit [Ping timeout: 244 seconds]
<allcentury>
you could have prepended that with /me alert
<[spoiler]>
:P
__butch__ has quit [Quit: Leaving.]
emmesswhy has joined #ruby-lang
<imperator>
howdy folks
tkuchiki has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
havenwood has quit [Remote host closed the connection]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
Voker57 has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
elia has quit [Quit: Computer has gone to sleep.]
michaeldeol has quit [Ping timeout: 260 seconds]
Sgeo_ has joined #ruby-lang
hramrach_ has quit [Ping timeout: 264 seconds]
Sgeo has quit [Ping timeout: 244 seconds]
dagda1 has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Client Quit]
Voker57 has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
dangerousdave has joined #ruby-lang
hramrach_ has joined #ruby-lang
GBrawl_ has joined #ruby-lang
schaerli has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
GBrawl has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 272 seconds]
d4rksung has joined #ruby-lang
amsi has quit [Ping timeout: 246 seconds]
scampbell has quit [Remote host closed the connection]
webhat has quit [Quit: No Ping reply in 180 seconds.]
webhat has joined #ruby-lang
elia has joined #ruby-lang
jbardin has quit [Quit: jbardin]
iliketurtles has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redgetan has joined #ruby-lang
iliketurtles has quit [Max SendQ exceeded]
rahul_j has quit [Quit: rahul_j]
iliketurtles has joined #ruby-lang
rntf has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
djbkd has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
nertzy2 has joined #ruby-lang
<rntf>
hey guys, how can I add an custom attribute in a object json? I’ve already added an virtual attribute and the whole proccess looks going fine but it’s not adding this attr in this object
chills42 has quit [Ping timeout: 272 seconds]
dvorak has quit [Ping timeout: 260 seconds]
Squarepy has quit [Quit: Leaving]
_ht has quit [Remote host closed the connection]
<heftig>
the protocol of initialize_copy is?
<heftig>
I assume the only parameter is the source object. when is it run, though? after copying instance variables? before? is the copying the default impl of initialize_copy?
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
nertzy2 has quit [Quit: This computer has gone to sleep]
iliketurtles has quit [Quit: zzzzz…..]
cantaberry has joined #ruby-lang
<cantaberry>
Hi... Working with hashes and going a bit insane with Chef... Getting a type error. Please help me understand as this construct works in a regular ruby script run locally. http://pastebin.com/T44ZWfcr
<bougyman>
what's the TypeError?
<bougyman>
on what line, that is?
<cantaberry>
16 & 17...
<cantaberry>
It's when I try to access the hash.
<bougyman>
is it a hash?
<cantaberry>
Seems to be...
<bougyman>
it's probably coming back nil
dvorak has joined #ruby-lang
<cantaberry>
No. It contains the value.
spastorino has quit [Quit: Connection closed for inactivity]
<cantaberry>
And I want to test if subkey_array[:data].nil?
<cantaberry>
(which doesn't work, either..)
<bougyman>
on line 16, pry into it and see if subkey_array is indeed (and always) a hash.
<bougyman>
chef recipes get parsed in a compile phase then there's an execution phase after.
amsi has quit [Ping timeout: 260 seconds]
sarkyniin has quit [Quit: Quitte]
Lewix has quit [Remote host closed the connection]
ghadling has joined #ruby-lang
<ghadling>
Howdy, y'all.
<ghadling>
I'm hoping I can find someone who can help me with an embarassing Ruby problem.
elia has quit [Quit: Computer has gone to sleep.]
<ghadling>
I'm trying to run a program I wrote on Windows in a redhat environment, and was expecting some trouble, but apparently it can't even find the 'Date' module. I've tried installing 193 from source, yum only retrieves 186; I've tried gem installing 'date' which it can't locate.
ta has joined #ruby-lang
<ghadling>
I've been mucking about for three hours now trying to find solutions, and this doesn't seem to be a problem that crops up often, based on the google results. A few similar things with Rails, but I'm not using Rails.
elia has joined #ruby-lang
<|jemc|>
ghadling: date is in the ruby standard library, not a gem (except in rubinius, where it is the rubysl-date gem)
<|jemc|>
it sounds like a problem with your ruby installation
<ghadling>
Then I'm doubly confused. :/ I don't know how I could install Ruby without getting it.
<ghadling>
Well, I guess I'll just gut all the Ruby out of my machine and start fresh, then.
<heftig>
were there any helpers to guard against recursion in #inspect?
<|jemc|>
many users avoid the package manager versions from ruby and build from source - and there are many tools to help you