Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has quit [Read error: Connection reset by peer]
Gasher has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 265 seconds]
jphase has joined #ruby
jphase has quit [Changing host]
jphase has joined #ruby
LoneHerm_ has joined #ruby
jcao219 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
beauby has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 272 seconds]
jaguarmagenta has joined #ruby
marr has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
roamingdog has joined #ruby
jottr_ has joined #ruby
Not-Zee2 has joined #ruby
Not-Zee2 is now known as Not-Zee3
<Not-Zee3>
1
<Not-Zee3>
2
<Not-Zee3>
3
<Not-Zee3>
4
<Not-Zee3>
5
<Not-Zee3>
6
<Not-Zee3>
7
<Not-Zee3>
8
<Not-Zee3>
9
<Not-Zee3>
8
<Not-Zee3>
7
<Not-Zee3>
6
<Not-Zee3>
5
<Not-Zee3>
4
<Not-Zee3>
3
<Not-Zee3>
2
<mr_foobar>
again
<Not-Zee3>
1
<mr_foobar>
we have loops for that
<mr_foobar>
no need to type literaly
<mr_foobar>
*literals
<mr_foobar>
(1..9).each { |n| puts n }
Not-Zee3 has quit [Client Quit]
<mr_foobar>
but i told him the answer...
sp_ has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 244 seconds]
<baweaver>
mr_foobar: ignore it. Just a test account for something.
_sfiguser has joined #ruby
pabloh has quit [Quit: Leaving]
Satyajit has joined #ruby
roflmyeggo has quit [Ping timeout: 264 seconds]
soulisson has joined #ruby
merlin2049er has quit [Quit: Leaving.]
Ali__ has joined #ruby
<Ali__>
hi
<Ali__>
anyone there?
madgen has joined #ruby
<Ali__>
hi
merlin2049er has joined #ruby
<Ali__>
hi
<mr_foobar>
uh sorry
<mr_foobar>
multitasking
<mr_foobar>
yes
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
Yzguy has quit [Quit: Zzz...]
<Ali__>
you are the same guy from the other chat right?
madgen has quit [Ping timeout: 248 seconds]
<mr_foobar>
Ali__, i am still me
<mr_foobar>
Ali__, yes rubyonrails
<mr_foobar>
Ali__, i sent you an answer there...
harai has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
abernstein has quit [Quit: abernstein]
elvin has joined #ruby
xentity1x has quit [Ping timeout: 265 seconds]
boogeyman has quit [Quit: bb]
soulisson has quit [Ping timeout: 248 seconds]
blackgoat has joined #ruby
hahuang62 has joined #ruby
Devalo has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alaibe has joined #ruby
hahuang62 has quit [Ping timeout: 272 seconds]
rodfersou has quit [Quit: leaving]
Devalo has quit [Ping timeout: 272 seconds]
arashb has joined #ruby
merlin2049er has quit [Quit: Leaving.]
merlin2049er has joined #ruby
alaibe has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
arashb has quit [Ping timeout: 264 seconds]
johnmilton has joined #ruby
frankiee_ has quit [Ping timeout: 244 seconds]
madgen has joined #ruby
rsampaio_ has joined #ruby
CharlieLo has joined #ruby
frankiee_ has joined #ruby
beauby has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 265 seconds]
shinnya has quit [Ping timeout: 264 seconds]
Blaguvest has quit []
madgen has quit [Ping timeout: 252 seconds]
CharlieLo has quit [Ping timeout: 244 seconds]
tdy-err has joined #ruby
zacts has quit [Ping timeout: 252 seconds]
<tdy-err>
Is block_given? an instance method of method objects? When I try to call self.block_given? within a method ruby throws a nomethod private exception
<tdy-err>
I found the declaration but it is within the kernel module
RegulationD has joined #ruby
beauby has joined #ruby
<tdy-err>
There's no particular reason for asking, I just feel uneasy not knowing how it works and using it
beauby has quit [Read error: Connection reset by peer]
roflmyeggo has quit [Quit: Lost terminal]
optiz0r has joined #ruby
tcrypt has joined #ruby
beauby has joined #ruby
zacts has joined #ruby
anisha has joined #ruby
craigp_ has quit [Ping timeout: 264 seconds]
gix has quit [Ping timeout: 272 seconds]
CloCkWeRX has joined #ruby
anisha has quit [Client Quit]
<matthewd>
chessguy: ... no?
<chessguy>
why not? what would it need the private key for?
gix has joined #ruby
<matthewd>
Because you can't prove your identity without the private key
moei has joined #ruby
<chessguy>
hmm. so it's not possible to use this to make a call on behalf of someone else?
<chessguy>
i'm trying to set up a sort of reverse-proxy service where i have a rails app that takes requests with an x509 certificate and queries an ldap server on behalf of that client
A_Drone has quit [Remote host closed the connection]
Velizar has joined #ruby
<matthewd>
The whole point of certificate validation is that you use the private key to prove that you are who you say you are, so no, if you don't have the key you can't pretend to be someone else
<chessguy>
wait, so how does it work in the case of an http request from a browser, then? the private key doesn't get passed there...
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
xentity1x has joined #ruby
charliesome_ has quit [Ping timeout: 248 seconds]
beauby has quit [Read error: Connection reset by peer]
statelesscode has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
<chessguy>
@matthewd ?
cibs has joined #ruby
<matthewd>
The server uses its private key to prove it owns the certificate; the client doesn't supply a certificate, so it doesn't need a private key either
beauby has joined #ruby
A_Drone has quit [Remote host closed the connection]
<chessguy>
matthewd i'm talking about cases where the server does require the browser to provide an x509 certificate
skweek has quit [Ping timeout: 264 seconds]
<matthewd>
Oh, then yes, the client does have the private key
tax has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chessguy>
@matthewd and provides it to the server?
<matthewd>
No
A_Drone has joined #ruby
<matthewd>
The client's SSL implementation uses it
<chessguy>
right, that's my point, the client doesn't provide the private key to the server
<chessguy>
so.....how is my case different?
<matthewd>
The client uses the private key to calculate a value proving it has the key
beecushman has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<matthewd>
If your (web) server is the (ldap) client, it needs the key in order to do that
<chessguy>
yeah
<chessguy>
ok, so then requests to an ldap server can't really be proxied
madgen has joined #ruby
A_Drone has quit [Remote host closed the connection]
<matthewd>
Not without the server having the private key for the certificate it's using to talk to LDAP, no
<chessguy>
gotcha
<chessguy>
thanks
tdy has quit [Ping timeout: 248 seconds]
<matthewd>
The most likely solution to that sort of arrangement would be to give the server its own key, then have it apply its own authentication of the end clients
beauby has quit [Read error: Connection reset by peer]
<matthewd>
(so it becomes a trusted part of the access control mechanism)
<chessguy>
so how would it pass on that authentication to the ldap server?
A_Drone has joined #ruby
<matthewd>
It wouldn't; that's the point. It has to apply its own access control, and the ldap server just trusts it to do so.
<chessguy>
but then the server is duplicating the access control that the ldap server already provides
<chessguy>
i.e., the ldap server already knows what the real client is authorized to do
aryaching has quit [Read error: Connection reset by peer]
<chessguy>
seems silly for the in-between app to also know that
tcrypt has quit [Ping timeout: 264 seconds]
<matthewd>
Then you'd need to find some way to get the real identity to the ldap server, outside of the actual authentication mechanism
<matthewd>
I don't know enough about LDAP to propose a solution to that / know whether it's possible
madgen has quit [Ping timeout: 272 seconds]
<chessguy>
yeah, that sounds sleazy, too
<chessguy>
ok, well, thanks anyway
<matthewd>
There's no getting around the fact someone has to have absolute trust in the middleman... the whole point of using SSL is to guarantee there isn't an untrusted party in the middle
beauby has joined #ruby
<chessguy>
right, but if you have absolute trust in the middleman, you should allow the middleman to make a request on behalf of someone else
CloCkWeRX has quit [Quit: Leaving.]
jottr_ has joined #ruby
<matthewd>
Isn't that what I just suggested? You authenticate the middleman as being itself, then it passes the identity along in a secondary non-authentication field
<chessguy>
in my case, i actually have a cert i can use, but i don't want all _my_ clients to have the same level of access i do
<matthewd>
The challenge is just whether the protocol even has such a mechanism; most protocols aren't designed with an open-ended 'sudo' mechanism "just in case"
<chessguy>
right
<chessguy>
and i don't have access to the ldap server, either
<chessguy>
so i doubt that's a possibility
<matthewd>
I'd be looking at how effectively you (with your relatively powerful cert) can interrogate the server's access control setup
<chessguy>
what do you mean by "access control setup"?
<matthewd>
So, have the middleman *apply* the access control, but have it apply it in the form of constant conditions it adds to the queries it's passing along
<matthewd>
The server's ACLs
<matthewd>
IME LDAP servers tend to be pretty dogfoody... so there's a good chance the ACLs exist inside the LDAP database
bearche has joined #ruby
<matthewd>
You end up with duplication of the "apply rules" logic, but the actual rules come straight from the source
<chessguy>
so let me see if i understand what you're suggesting:
A_Drone has quit [Remote host closed the connection]
<chessguy>
1.) my client asks me for something
<chessguy>
2.) i ask the ldap server what my client can see
bearche has quit [Client Quit]
<chessguy>
3.) i use the ldap server's response to modify the original request
jottr_ has quit [Ping timeout: 264 seconds]
<matthewd>
Exactly
bearche has joined #ruby
<chessguy>
interesting
<chessguy>
i'll give that some thought
beauby has quit [Read error: Connection reset by peer]
aupadhye has joined #ruby
Velizar has quit [Quit: Velizar]
A_Drone has joined #ruby
aupadhye is now known as aupadhye|ooo
aupadhye|ooo is now known as aupadhye
jcao219 has quit [Ping timeout: 272 seconds]
RTFM[away] has joined #ruby
tcrypt has joined #ruby
beauby has joined #ruby
chessguy has quit []
User458764 has joined #ruby
Jakey3 has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
tdy has joined #ruby
tmtwd has joined #ruby
beauby has quit [Read error: Connection reset by peer]
User458764 has quit [Remote host closed the connection]
ledestin has joined #ruby
tonini has joined #ruby
djbkd has joined #ruby
beauby has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
A_Drone has quit [Remote host closed the connection]
astrobunny has joined #ruby
vuoto has joined #ruby
A_Drone has joined #ruby
postmodern has joined #ruby
A_Drone has quit [Remote host closed the connection]
_srose_ has joined #ruby
govg has joined #ruby
A_Drone has joined #ruby
vuoto has quit [Client Quit]
gizmore has joined #ruby
jackjackdripper has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
_srose__ has quit [Ping timeout: 252 seconds]
tragique has quit [Quit: Connection closed for inactivity]
alaibe has joined #ruby
segy has quit [Ping timeout: 244 seconds]
gizmore has quit [Remote host closed the connection]
gizmore has joined #ruby
segy has joined #ruby
tcrypt has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
Hyuk has joined #ruby
jphase has quit [Remote host closed the connection]
RTFM[away] has quit [Ping timeout: 265 seconds]
pwnd_nsfw has joined #ruby
alaibe has quit [Ping timeout: 272 seconds]
Devalo has joined #ruby
nankyokusei has joined #ruby
Bellthoven has joined #ruby
CharlieLo has joined #ruby
madgen has joined #ruby
beauby has quit [Read error: Connection reset by peer]
beauby has joined #ruby
tristanp has quit [Remote host closed the connection]
Bellthoven has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
Pupeno has joined #ruby
tristanp has joined #ruby
vitd has quit [Ping timeout: 244 seconds]
CharlieLo has quit [Ping timeout: 264 seconds]
ec0 has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 248 seconds]
Pupeno has quit [Ping timeout: 248 seconds]
tristanp has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
jottr_ has joined #ruby
c0mrad3 has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
vitd has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
tcrypt has joined #ruby
beauby has quit [Read error: Connection reset by peer]
hakunin has quit [Ping timeout: 264 seconds]
beauby has joined #ruby
ARCADIVS has joined #ruby
Edward__ has joined #ruby
hakunin has joined #ruby
Pupeno has joined #ruby
Xing has joined #ruby
pawnbox has quit [Remote host closed the connection]
meatchicken has quit [Ping timeout: 248 seconds]
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
pawnbox has joined #ruby
hakunin has quit [Ping timeout: 244 seconds]
gusrub_ has joined #ruby
gusrub_ has quit [Client Quit]
hakunin has joined #ruby
beauby has quit [Read error: Connection reset by peer]
Xing has left #ruby ["Leaving"]
beauby has joined #ruby
l4v2 has joined #ruby
Edward__ is now known as meatchicken
hakunin_ has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
hakunin has quit [Read error: Connection reset by peer]
A_Drone has quit [Remote host closed the connection]
tcrypt has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
agit0 has quit [Quit: zzzZZZ….]
Hyuk has joined #ruby
raeoks has joined #ruby
beauby has quit [Read error: Connection reset by peer]
beauby has joined #ruby
Devalo has quit [Remote host closed the connection]
jcao219 has joined #ruby
harfangk has joined #ruby
rippa has joined #ruby
Bellthoven has joined #ruby
lxsameer has joined #ruby
l4v2 has quit [Quit: l4v2]
blaxter has joined #ruby
Bellthoven has quit [Ping timeout: 248 seconds]
nando293921 has quit [Ping timeout: 264 seconds]
nando294021 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
agit0 has joined #ruby
_djbkd has quit [Quit: My people need me...]
craigp_ has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
madgen has joined #ruby
shinnya has joined #ruby
tdy-err has joined #ruby
tristanp has joined #ruby
bigkevmcd has joined #ruby
ur5us has quit [Remote host closed the connection]
alaibe has joined #ruby
ur5us has joined #ruby
A_Drone has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
tcrypt has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
beauby has quit [Read error: Connection reset by peer]
beauby has joined #ruby
Cohedrin has quit [Ping timeout: 272 seconds]
PlasmaStar has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has quit [Remote host closed the connection]
marr has joined #ruby
vitd has quit [Ping timeout: 248 seconds]
sandelius has joined #ruby
Coldblackice has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
mim1k|wo1k is now known as mim1k|work
P_R_Deltoid has quit [Read error: Connection reset by peer]
flying has joined #ruby
aries_liuxueyang has quit [Ping timeout: 248 seconds]
_srose_ has joined #ruby
hahuang62 has joined #ruby
codelogix has joined #ruby
ICantCook has quit [Ping timeout: 265 seconds]
dtscode has joined #ruby
_srose__ has quit [Ping timeout: 252 seconds]
ICantCook has joined #ruby
dtscode has quit [Client Quit]
A_Drone has joined #ruby
hahuang62 has quit [Ping timeout: 265 seconds]
Coldblackice has quit []
alaibe has quit [Ping timeout: 252 seconds]
codelogix has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
biberu has joined #ruby
jaequery has joined #ruby
<zotherstupidguy>
is there a refrence(blog or similar) for explaining the diffs between Dependency Injection pattern vs Builder pattern with ruby examples?
nankyokusei has joined #ruby
bsrd has joined #ruby
edgr has quit [Ping timeout: 276 seconds]
tjbiddle has quit [Quit: tjbiddle]
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
edgr has joined #ruby
CharlieLo has joined #ruby
A_Drone has quit [Remote host closed the connection]
qba73 has joined #ruby
tcrypt has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
CharlieLo has quit [Ping timeout: 265 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
vasilakisfil has quit [Quit: Konversation terminated!]
jackjackdripper has quit [Quit: Leaving.]
alaibe has joined #ruby
madgen has joined #ruby
ur5us has joined #ruby
pragmaticus has joined #ruby
astrobunny has quit [Remote host closed the connection]
tcrypt has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
aries_liuxueyang has joined #ruby
bnagy has joined #ruby
tcrypt has joined #ruby
zipace has joined #ruby
postmodern has quit [Quit: Leaving]
vitd has joined #ruby
madgen has quit [Quit: Lost terminal]
tcrypt has quit [Ping timeout: 264 seconds]
tcrypt has joined #ruby
tty1 has joined #ruby
Silthias1 has quit [Ping timeout: 248 seconds]
maloik72 has joined #ruby
codelogix has joined #ruby
Camusensei has left #ruby [#ruby]
<danst>
can't join rails, so will ask here. After running project for years I get NoMethodError (undefined method `to_datetime' for nil:NilClass) if I want to update an existing record with image (using paperclip)
<danst>
what is this to_datetime thing, I can't even trace it
<danst>
I didn't write that code :(
<danst>
any ideas?
maloik has quit [Ping timeout: 248 seconds]
<danst>
the line which causing that looks just @good.update_attributes(params[:good]), nothing else
tcrypt has quit [Ping timeout: 264 seconds]
<danst>
and to_datetime happens only when image is being updated, or record is trying to be removed completely
codelogix has quit [Ping timeout: 264 seconds]
<canton7>
someone tried to call to_datetime on a value which was nil
<canton7>
we can't guess why that might be, as you haven't given the code which calls to_datetime
<danst>
the app is simple like an axe
sp_ has quit [Ping timeout: 264 seconds]
<danst>
I don't have that code in my project :)
<danst>
I'm using rails 4.0.0 and paperclip 4.2 for that one
<canton7>
somewhere in that project, someone calls something.to_datetime
gingray has quit [Ping timeout: 248 seconds]
tcrypt has joined #ruby
<ljarvis>
this is what error messages are for
<danst>
nothing, maybe that comes from paperclip
govg has quit [Ping timeout: 264 seconds]
<canton7>
look at the stack trace, that will tell you where the call is, and what calls it
<ljarvis>
the error backtrace will point out where it's called
<meatchicken>
you need to paste the stacktrace
<danst>
I get only to_datetime error for update_attributes string. Can I extend trace to see how far it goes?
<ljarvis>
it'll be in your log
<danst>
I'm running app in development with default logging settings
<helpa>
Hi danst. 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!
zotherstupidguy has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
qba73 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby
symm-_ has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 252 seconds]
ferr has joined #ruby
GodFather has joined #ruby
craigp has joined #ruby
ferr has left #ruby [#ruby]
<danst>
damn it tells me that can't find nokogiri 1.6.8.1 in any of the sources when I try to deploy it with capistrano and it does ~/.rvm/bin/rvm default do bundle install
<danst>
although I was able to gem install nokogiri -v=1.6.8.1 successfully for same ruby ver it's running
<danst>
2.3.0 is the only ruby installed there
<danst>
no idea why it says like that
Silthias has quit [Ping timeout: 248 seconds]
jaruga___ has quit [Quit: jaruga___]
nettoweb has joined #ruby
<danst>
I've read your bot's ad about pastie, but its 503 (
<jayjo>
it says to run gem 'km-db', but I get "Unknown command km-db". Do I need to clone the repo, or do they live someone like PyPi in python?
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
be_______ has joined #ruby
<canton7>
no, it says to put `gem 'km-db'` in your Gemfile
<canton7>
it doesn't say to run it
<jayjo>
OK, in my working directory I just put that line in a file "Gemfile"?
<canton7>
jayjo, do you know what bundler is?
ctp has quit [Ping timeout: 244 seconds]
<jayjo>
no not at all - I work in python and java.
<jayjo>
is it a package manager like pip?
<canton7>
not really. 'gem' is like pip - so you could 'gem install km-db', and that would install it as a user-wide or system-wide gem, in the same way as pip
<apeiros>
it's a package isolator
<apeiros>
building up on the package manager "rubygems"
<canton7>
bundler is a way of specifying all of the dependencies that your application needs - like pom.xml in java
<canton7>
then you say "hey, go and install all of the dependencies that this app requires", and it goes off and does it
theRoUS has joined #ruby
<jayjo>
ok got it ... to keep projects isolated. virtual environments even
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
l4v2 has joined #ruby
Hyuk has joined #ruby
pawnbox has joined #ruby
averna has quit [Quit: terminated!]
averna has joined #ruby
Kruppe has joined #ruby
jottr_ has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
tcrypt has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
codelogix has quit [Ping timeout: 272 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
nando293921 has joined #ruby
nando294021 has joined #ruby
tyang has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
pwnd_nsfw has joined #ruby
RTFM[away] has quit [Ping timeout: 272 seconds]
codelogix has joined #ruby
s2013 has joined #ruby
vitd has joined #ruby
chouhoulis has joined #ruby
tdy has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 248 seconds]
polishdub has joined #ruby
minimalism has joined #ruby
troulouliou_div2 has joined #ruby
Silthias1 has quit [Ping timeout: 248 seconds]
futilegames has joined #ruby
jonyijoe has joined #ruby
tcrypt has quit [Read error: Connection reset by peer]
tcrypt_ has joined #ruby
d34th4ck3r has joined #ruby
edrocks has quit [Ping timeout: 272 seconds]
tyang has quit [Ping timeout: 264 seconds]
Silthias has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crameth has quit [Quit: crameth]
Zamyatin has joined #ruby
RTFM[away] has joined #ruby
futilegames has quit [Quit: futilegames]
GodFather has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Velizar has quit [Quit: Velizar]
RTFM[away] has quit [Ping timeout: 265 seconds]
tcrypt has joined #ruby
tcrypt_ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
murilo has quit [Quit: murilo]
averna has quit [Quit: terminated!]
averna has joined #ruby
mr_foobar has left #ruby ["Leaving"]
sp_ has joined #ruby
mrgrieve1 has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
havenwood has quit [Changing host]
havenwood has joined #ruby
lacour has joined #ruby
dionysus70 has joined #ruby
vitd has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus70 is now known as dionysus69
aganov has quit [Quit: Leaving]
<jayjo>
I am using bundle, and I get an error on bundle install requries ruby version>=2.0. When I run ruby --version I get ruby 1.9.3. Is there an easy way to upgrade on Ubuntu 14.04?
<elementaru>
I get syntax error, unexpected keyword_end for the 'end' on line 15
<elementaru>
why..?
<havenwood>
elementaru: there's no `x++` in Ruby
<elementaru>
oh..
<havenwood>
try: x += 1
<elementaru>
yep lol works now, thanks
<havenwood>
elementaru: there's no `none` either, use `nil`
Snickers has joined #ruby
<elementaru>
I have method called none
<havenwood>
ah, gotcha
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
sp_ has quit [Ping timeout: 264 seconds]
erlingur_ has joined #ruby
LastWhisper____ has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
tcrypt_ has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
erlingur has quit [Ping timeout: 272 seconds]
prawnzy has joined #ruby
amclain has joined #ruby
erlingur_ has quit [Ping timeout: 252 seconds]
<jayjo>
perhaps more a REDIS question... but this gem says to set a REDIS url connection string... https://github.com/HouseTrip/km-db , which is 'redis://localhost/14'. Is 14 the port or database name?
jesk has quit [Ping timeout: 244 seconds]
babblebre has joined #ruby
<lacour>
14 would be the database name
minimalism has quit [Quit: minimalism]
[Butch] has joined #ruby
vitd has joined #ruby
tcrypt_ has quit [Max SendQ exceeded]
nando293921 has joined #ruby
Puffball_ has quit [Remote host closed the connection]
marxarelli has joined #ruby
tcrypt has joined #ruby
l4v2 has joined #ruby
aegis3121 has quit [Ping timeout: 252 seconds]
ichkv has joined #ruby
Puffball has joined #ruby
Coldblackice has joined #ruby
relix has joined #ruby
jackjackdripper has joined #ruby
tomphp has quit [Ping timeout: 252 seconds]
Coldblackice has quit [Max SendQ exceeded]
Couch has quit [Ping timeout: 244 seconds]
nando294021 has joined #ruby
Coldblackice has joined #ruby
^mtkd has quit [Ping timeout: 272 seconds]
mtkd has joined #ruby
<yorickpeterse>
Does anybody know how the CRuby GC recycles memory? Since it doesn't do compacting/is non moving my best guess is that holes of memory aren't re-used until memory that follows it is released. This however would require resetting of the pointer to start allocations at once in a while
sp_ has joined #ruby
edrocks has quit [Ping timeout: 264 seconds]
averna has quit [Ping timeout: 260 seconds]
coolboy has joined #ruby
harambea has quit [Quit: Leaving]
tcrypt has quit [Ping timeout: 264 seconds]
Bounga has quit [Remote host closed the connection]
Guest38 has joined #ruby
tty has joined #ruby
be_______ has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
tcrypt has joined #ruby
flak has joined #ruby
rippa has quit [Ping timeout: 264 seconds]
wldcordeiro has quit [Client Quit]
Jmickey has joined #ruby
wldcordeiro has joined #ruby
ziprar has joined #ruby
zipace has quit [Disconnected by services]
<matthewd>
yorickpeterse: It keeps track of free slots
blaxter has quit [Quit: foo]
aupadhye has quit [Remote host closed the connection]
<jayjo>
I am running the command kmdb-import and it takes about 10 seconds and outputs nothing. is there a way to run a ruby file with verbose output?
twe4ked has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
<yorickpeterse>
matthewd: Right, does it prioritize free flots over bump allocating on the heap's tail?
<yorickpeterse>
errr free slots
<matthewd>
yorickpeterse: Yes, it'll only allocate a new [ruby] heap page if it needs one
tcrypt has quit [Ping timeout: 252 seconds]
P1ro has joined #ruby
tcrypt_ has joined #ruby
edgr has quit [Ping timeout: 265 seconds]
xentity1x has joined #ruby
arashb has quit [Ping timeout: 248 seconds]
samof76 has joined #ruby
nitric has joined #ruby
<yorickpeterse>
matthewd: OK, thanks
sp_ has quit [Ping timeout: 248 seconds]
edgr has joined #ruby
Puffball_ has joined #ruby
Puffball has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
Vingador has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
RTFM[away] has joined #ruby
rakm has joined #ruby
brendan- has joined #ruby
nofxx has joined #ruby
ChiefAlexander has joined #ruby
qba73 has joined #ruby
senayar has quit []
jottr_ has joined #ruby
postmodern has joined #ruby
flying has quit []
aryaching has joined #ruby
postmodern has quit [Client Quit]
gheegh has joined #ruby
Ferdroid has joined #ruby
<jayjo>
I tried to just run it manually... how do I use foreman to start KMDB commands with the environment set?
tcrypt_ has quit [Ping timeout: 252 seconds]
<jayjo>
So I create a file .env in my working directory, how do I have foreman launch the commands?
Ishido has joined #ruby
<yorickpeterse>
matthewd: do you know if these free slots are determined upon allocation, or during collection? That is, does it scan for the first free slot on every allocation or does the collector reset the allocation position to the first slot?
tcrypt has joined #ruby
<yorickpeterse>
(and the allocator then moves to the next free slot, if any)
troulouliou_div2 has joined #ruby
Puffball_ has quit [Ping timeout: 265 seconds]
craigp has joined #ruby
<matthewd>
I believe it keeps a list of free slots -- adding them during collection, then popping them during allocation
<matthewd>
That's pushing up on the boundary of how I know it works vs how I think it works, though :)
jottr_ has quit [Ping timeout: 252 seconds]
qba73 has quit [Ping timeout: 248 seconds]
<yorickpeterse>
Ah gotcha, thanks
<yorickpeterse>
it's kinda annoying this isn't properly documented somewhere that I can find
<yorickpeterse>
Then again this is Ruby, so one shouldn't expect too much
Puffball has joined #ruby
<yorickpeterse>
ᕕ(ᐛ)ᕗ
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Ferdroid has quit []
JoshS has quit [Ping timeout: 272 seconds]
Silthias1 has joined #ruby
gusrub_ has joined #ruby
jcao219 has quit [Ping timeout: 265 seconds]
FINbit has quit [Ping timeout: 244 seconds]
Silthias1 has quit [Client Quit]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
Devalo has quit [Remote host closed the connection]
<ljarvis>
yorickpeterse: how's aeon?
<ljarvis>
i see you went with whitespace, thus rulling out my using it :( :P
craigp has quit [Ping timeout: 244 seconds]
troulouliou_div2 has quit [Quit: Leaving]
Alayde has joined #ruby
elifoster has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
<yorickpeterse>
ljarvis: working on fleshing out the GC, should be done in a week or two
<yorickpeterse>
basically all I need to implement is evacuation
tcrypt has quit [Ping timeout: 264 seconds]
<yorickpeterse>
then write tests...lots of tests
<ljarvis>
noice
<yorickpeterse>
My goal is to get it into a working state (basic standard/core lib, etc) by the end of this year
Silthias has quit [Ping timeout: 248 seconds]
kitikonti has joined #ruby
nofxx has joined #ruby
<yorickpeterse>
Once the GC is done it's basically focusing on the Ruby based compiler, and writing tests
<yorickpeterse>
Once that all works I can start rewriting the compiler in Aeon itself
<yorickpeterse>
That however will probably take at least a year
tcrypt_ has joined #ruby
<yorickpeterse>
If not longer, depends a bit on how many things I first need to write to allow that
codelogix has quit [Ping timeout: 252 seconds]
<ljarvis>
:D
<yorickpeterse>
also regarding whitespace, I intend to support having other languages run on the VM
<yorickpeterse>
So you can just compile JS to it :P
<yorickpeterse>
one day I also want to have a web assembly backend, so you can write your kewl web apps using it
gusrub_ has quit []
<ljarvis>
sounds interesting
marens_ has quit [Read error: Connection reset by peer]
marens has joined #ruby
marens has joined #ruby
marens has quit [Changing host]
<yorickpeterse>
e.g. for running other languages there are a bunch of things taken into account
skweek has quit [Ping timeout: 252 seconds]
<yorickpeterse>
e.g. the VM doesn't use class based OO to make it easier to run non class based languages on it (also because it's easier to reason about the internals this way)
<yorickpeterse>
and the tests will be separate from the source code, basically using a literate programming style
<yorickpeterse>
(just markdown with executable code blocks)
RegulationD has joined #ruby
<yorickpeterse>
so if anybody is like "yo I want to reimplement this on the JVM" they don't need to rewrite all the tests
<yorickpeterse>
(that will also serve as the documentation)
<yorickpeterse>
what's annoying about all this is how it's so darn hard to test things like a VM
<yorickpeterse>
normally you'd say "I know! I'll use my debugger, pry, etc!"
<yorickpeterse>
but none of that exists yet :P
codelogix has joined #ruby
<yorickpeterse>
and debugging Rust using gdb isn't exactly fun
<ljarvis>
step 1. build a debugger. step 2. build the language that the debugger is written in
sp_ has joined #ruby
jaequery has joined #ruby
troulouliou_div2 has joined #ruby
<yorickpeterse>
heh
alexis has joined #ruby
alexis is now known as Guest59016
<yorickpeterse>
it's interesting to see how long it takes to build a proper thing though
symm- has quit [Ping timeout: 264 seconds]
<yorickpeterse>
This Rust repo dates back to Mar 30th, 2015
codelogix has quit [Ping timeout: 265 seconds]
<yorickpeterse>
but I've been noting stuff down since at least a year before that
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
<ljarvis>
it's a big/ambitious project, glad to see you're still pluggin' at it consistently
troulouliou_div2 has quit [Remote host closed the connection]
ichkv has quit [Remote host closed the connection]
<yorickpeterse>
well, ultimately my goal is to get it in the top...20 I think in 10 years
strax has quit [Quit: Connection closed for inactivity]
AlphaAtom has joined #ruby
<yorickpeterse>
based on whatever popular index there is (TIOBE or w/e)
tcrypt_ is now known as tcrypt[away]
<yorickpeterse>
Having said that I fully expect this to fail tremendously :P
zacstewart has quit [Ping timeout: 248 seconds]
<Guest59016>
Hello, I have an array of hashes, I want to know if a given value is in any of these hashes for a known key, how can i do this in an idiomatic way?
TheHodge has quit [Quit: Connection closed for inactivity]
al2o3-cr has joined #ruby
Snowy has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
graft has joined #ruby
<jayjo>
I think bundle is using an incorrect ruby version. But when I run ruby --version it shows 2.3.1 and bundle is installing to /S/L/F/Ruby.framework/Versions/2.0/
vitd has joined #ruby
tomphp has joined #ruby
<nofxx>
ljarvis, never found a use to &&= until today ;) ary[:key] &&= 1
tomphp has quit [Client Quit]
<nofxx>
Guest59016, ^
craigp has joined #ruby
Puffball_ has joined #ruby
<Guest59016>
nofxx: interesting
Puffball has quit [Ping timeout: 248 seconds]
<matthewd>
jayjo: `bundle env`
<jayjo>
matthewd: ok, yea, it's incorrect. How do I adjust it?
d34th4ck3r has quit [Quit: d34th4ck3r]
<ljarvis>
nofxx: what for?
jonyijoe has quit [Ping timeout: 265 seconds]
<matthewd>
jayjo: Check `gem env` next
<jayjo>
It reads Rubygems 2.0.14.1 and Ruby 2.0.0p648
<jayjo>
yea those are still 2.0.0 ruby. I want to use the newer version
<matthewd>
How'd you get the new one? Are you using a version manager?
<jayjo>
I used homebrew
bluOxigen has quit [Ping timeout: 264 seconds]
<jayjo>
I can undo that if that is not the appropriate way to go forward
bluOxigen has joined #ruby
nando294021 has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 252 seconds]
<matthewd>
I'd suggest using rbenv or chruby, and then installing the new version using their recommended mechanism
<matthewd>
RVM is also a thing that exists
alaibe has quit [Ping timeout: 265 seconds]
<nofxx>
don't.... just set your paths correctly jayjo
<nofxx>
jayjo, you need to set yr cellar paths before others
Ishido has quit [Remote host closed the connection]
sp_ has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
<Guest59016>
nofxx: where can i find documentation about &&= ? I haven't found any
Ishido has joined #ruby
Hyuk has joined #ruby
cloaked1 has quit [Quit: cloaked1]
cloaked1 has joined #ruby
<nofxx>
Guest59016, not even google knows him, ppl only know their brother who was on x-factor: ||=
tcrypt has quit [Ping timeout: 264 seconds]
<nofxx>
try 'conditional assign'
<Guest59016>
nofxx: alright
<nofxx>
Guest59016, x ||= 1 , set if x is nil.... x &&= 1 set if x is NOT nil
postmodern has joined #ruby
<nofxx>
Guest59016, its actually... x = x || 1
<nofxx>
please change your nick ;)
<Guest59016>
nofxx: yes so how does it work when testing for the presence of a value actually ?
GodFather has quit [Ping timeout: 248 seconds]
<nofxx>
Guest59016, its actually... x = x || 1 it's just 'or'
<Guest59016>
baweaver: nice, you found some doc about it
<baweaver>
subtle, but there is a difference.
<baweaver>
Just look up Ruby operators.
<Guest59016>
baweaver: thank you
<nofxx>
baweaver, oh yea...got it. thanks
<jayjo>
one more question before I just try to do this whole process locally. I have this running on a server but I want to check the ui via the browser. Can I have this host on 0.0.0.0 instead of localhost? again using this repo https://github.com/HouseTrip/km-db and the km-db-ui
JeanCarloMachado has quit [Ping timeout: 265 seconds]
<jayjo>
sorry kmdb-ui
DoubleMalt has quit [Ping timeout: 272 seconds]
tcrypt has joined #ruby
da3mon has quit [Quit: Zzzz...]
da3mon has joined #ruby
symm- has joined #ruby
arashb has quit [Ping timeout: 244 seconds]
codelogix has joined #ruby
replay has joined #ruby
<nofxx>
jayjo, 0.0.0.0 means it's avaiable on all networks a computer connects
marxarelli is now known as marxarelli|afk
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nofxx>
localhost == 127.0.0.1, or only local access... it's just that , nothing to do with langs or servers
<nofxx>
available to all*
<jayjo>
nofxx: I need it available to all, its running on an ec2 server
<jayjo>
Right now it is on localhost only, I need it to be 0.0.0.0
<nofxx>
go for it
<jayjo>
do you know where I change that?
Devalo has joined #ruby
daffy_duck_2 is now known as na_belom_kone
vitd has quit [Ping timeout: 244 seconds]
samof76 has quit [Ping timeout: 272 seconds]
craigp has quit [Ping timeout: 244 seconds]
Silthias has joined #ruby
finisherr has joined #ruby
codelogix has quit [Ping timeout: 248 seconds]
jonyijoe has joined #ruby
arashb has joined #ruby
skweek has joined #ruby
jonyijoe has quit [Remote host closed the connection]
terlar has joined #ruby
jottr_ has joined #ruby
jonyijoe has joined #ruby
polishdub has quit [Quit: Leaving]
phaza has joined #ruby
zeroDi has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
cdg has joined #ruby
arashb has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has quit [Remote host closed the connection]
tcrypt has quit [Ping timeout: 264 seconds]
Silthias has quit [Ping timeout: 248 seconds]
jonyijoe has quit [Ping timeout: 265 seconds]
tcrypt has joined #ruby
jottr_ has quit [Ping timeout: 265 seconds]
emilkarl has joined #ruby
jonyijoe has joined #ruby
alaibe has joined #ruby
elvin_ has joined #ruby
nando293921 has joined #ruby
nando294021 has joined #ruby
shinnya has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
be_______ has joined #ruby
<jayjo>
I can't find where to change the 0.0.0.0
__main__ has quit [Ping timeout: 276 seconds]
tty is now known as minimalism
Snowy has quit [Remote host closed the connection]
<LyndsySimon>
Not really expecting anyone to care, but coming from Python Ruby's yield/block syntax is fairly slick. It's the second thing I've found so far where I like Ruby's implementation better.
Snowy has joined #ruby
codelogix has joined #ruby
pwnd_nsfw` has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
be_______ has quit [Remote host closed the connection]
tomphp has joined #ruby
edrocks has quit [Ping timeout: 265 seconds]
tcrypt has quit [Ping timeout: 252 seconds]
<baweaver>
LyndsySimon: Wait until you read through Enumerable, find out what you can do with Hashes, and what Case does in Ruby.
tcrypt has joined #ruby
da3mon has quit [Quit: Zzzz...]
pwnd_nsfw has quit [Ping timeout: 248 seconds]
__main__ has joined #ruby
Snowy has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
codelogix has quit [Ping timeout: 265 seconds]
polishdub has joined #ruby
be_______ has joined #ruby
djbkd has joined #ruby
tomphp has quit [Client Quit]
<LyndsySimon>
baweaver: I've played with Enumerable some, but in the context of trying to figure out how to do infinite series in Ruby. I've thus far found it inferior to Python's generator expressions.
<LyndsySimon>
Is Ruby's case statement substantially different than other languages'? If not, it's not something I really missed in Python.
<baweaver>
Enumerator
<baweaver>
Lazy
<baweaver>
both can technically do infinites
<baweaver>
case uses === for comparisons
<LyndsySimon>
Right. Python is lazy by default if you're writing it properly.
<baweaver>
and in ruby === is overriden for certain classes.
<baweaver>
>> 1..10 === 5
<ruby[bot]>
baweaver: # => bad value for range (ArgumentError) ...check link for more (https://eval.in/654370)
<LyndsySimon>
Ah, gotchya on the case statement then. That makes sense why you wouldn't use === outside of a case statement - so you can have logic specific to case statements in your objects.
dionysus69 has quit [Remote host closed the connection]
codelogix has joined #ruby
<apeiros>
don't forget that `when` takes a comma separated list of expressions (which can also be splatted)
<LyndsySimon>
baweaver: yeah, I can see that. I could (and have) done similar things in Python, but I'm not really trying to pit one against the other - only trying to learn idiomatic Ruby and find the things it's great at.
craigp has joined #ruby
nikivi has joined #ruby
<baweaver>
Eloquent Ruby is probably the best book to page through to find out how to code Ruby like Ruby
<LyndsySimon>
Awesome, tyvm
<baweaver>
and the Ruby style guide from bbatsov is a good read as well.
bsrd has quit [Read error: Connection reset by peer]
<baweaver>
or just outright ask in here and put code in a gist.
<LyndsySimon>
Yeah, I've got that open in another tab. Reading it in its entirety as I get time.
edrocks has joined #ruby
vitd has joined #ruby
dionysus69 has joined #ruby
<baweaver>
Rubocop uses it so you can just jack that into an editor if you're so inclined.
<LyndsySimon>
Also done :)
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vdamewood has quit [Remote host closed the connection]
hahuang62 has joined #ruby
dviola has joined #ruby
Silthias has joined #ruby
codelogix has quit [Ping timeout: 248 seconds]
__main__ has quit [Ping timeout: 248 seconds]
vdamewood has joined #ruby
Shmulik has quit [K-Lined]
jonyijoe has quit [Remote host closed the connection]
charliesome has joined #ruby
jonyijoe has joined #ruby
brendan- has joined #ruby
hakunin_ is now known as hakunin
jonyijoe has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 272 seconds]
jonyijoe has joined #ruby
codelogix has joined #ruby
__main__ has joined #ruby
vitd has quit [Ping timeout: 248 seconds]
hahuang62 has quit [Ping timeout: 244 seconds]
tcrypt has quit [Ping timeout: 264 seconds]
joelwallis has joined #ruby
tcrypt has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
codelogix has quit [Ping timeout: 248 seconds]
__main__ has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
jaequery has joined #ruby
tcrypt_ has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
Snowy has joined #ruby
Dobler has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
elifoster has quit [Quit: out]
nikivi has quit [Quit: irc]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
<jayjo>
when I run ruby --version I get 2.3.1. When I put ruby '2.3.1' in my Gemfile, bundle install gives me Your Ruby version is 2.0.0, but your Gemfile specified 2.3.1. I'm missing the disconnect here
auxbuss has joined #ruby
<havenwood>
jayjo: Install Bundler for Ruby 2.3.1: gem install bundler
<havenwood>
jayjo: Then sanity check that `which bundle` and `gem which bundler` are as expected.
Pupeno has joined #ruby
riceandbeans has joined #ruby
pawnbox has quit [Quit: gotta go guys.]
catphish has left #ruby ["Leaving"]
__main__ has joined #ruby
Devalo has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
codelogix has joined #ruby
tcrypt_ has quit [Ping timeout: 264 seconds]
synthroid has quit [Remote host closed the connection]
zacstewart has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
synthroid has joined #ruby
behemot has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
tcrypt has joined #ruby
Yxhuvud has joined #ruby
tomphp has joined #ruby
agent_white has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
codelogix has quit [Ping timeout: 265 seconds]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
__main__ has quit [Ping timeout: 264 seconds]
auxbuss has quit [Quit: I'm gone.]
mtkd has joined #ruby
craigp_ has joined #ruby
stamina has quit [Quit: WeeChat 1.5]
beauby has joined #ruby
Dimik has joined #ruby
__main__ has joined #ruby
jottr_ has joined #ruby
bsrd has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
tcrypt has joined #ruby
marxarelli|afk is now known as marxarelli
Devalo has quit [Remote host closed the connection]
ta_ has joined #ruby
DoubleMalt has joined #ruby
da3mon has joined #ruby
craigp_ has quit [Ping timeout: 244 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 264 seconds]
rodferso1 has joined #ruby
AlexRussia_ has quit [Ping timeout: 272 seconds]
pragmaticus has quit [Ping timeout: 248 seconds]
boogeyman has quit [Quit: bb]
__main__ has quit [Ping timeout: 248 seconds]
qba73 has quit [Remote host closed the connection]
_main_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
tomphp has joined #ruby
erlingur_ has joined #ruby
rodfersou has quit [Ping timeout: 265 seconds]
__main__ has joined #ruby
phredus has joined #ruby
phredus has quit [Remote host closed the connection]
tcrypt has quit [Ping timeout: 264 seconds]
__main__ has quit [Read error: Connection reset by peer]
_main_ has joined #ruby
tcrypt has joined #ruby
codelogix has joined #ruby
qba73 has quit [Ping timeout: 265 seconds]
charliesome has quit [Ping timeout: 264 seconds]
edrocks has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Ping timeout: 252 seconds]
_main_ is now known as __main__
duderonomy has joined #ruby
codelogix has quit [Ping timeout: 244 seconds]
<ziprar>
using open3, how the funk do i check whether the command ran successfully at all?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
edrocks has joined #ruby
csk has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
tcrypt has joined #ruby
AlexRussia_ has joined #ruby
<hanmac>
ziprar: what did you try so far? from the example it did look as if you need something with the waiting_thread value
harai has joined #ruby
<ziprar>
hanmac: what i'm doing right now is just reading both stdout and stderr, checking error code from the thread (which would be #value), and then... processing both the data from stdout and stderr
bio_grin has joined #ruby
<bio_grin>
Hello
<ziprar>
it's just, i don't really think that's how you're supposed to do it
<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!
<helpa>
Hi riceandbeans. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<imightbestupid12>
i would like the output to contain what it expected and what it got
tdy has joined #ruby
<hanmac>
imightbestupid12: isn't it already like that if it does not match, rspec does show "x != y" or something like that where you can see the value?
relix has quit [Ping timeout: 264 seconds]
<imightbestupid12>
no it just says that your test failed
<hanmac>
sagax: the Array#grep was for you
<fuzzyhorns>
huh really? for me it shows the mismatched values when i use `expect`
<imightbestupid12>
1 deprecation warning total Finished in 0.01436 seconds (files took 0.07747 seconds to load) 8 examples, 1 failure Failed examples: rspec ./player_spec.rb:54 # Player with a health greater than 100 is strong
<fuzzyhorns>
you may need to write your own RSpec::Core::Formatter if you want the comparison output all the time
<hanmac>
apeiros: Array#grep does like Regexp too
<fuzzyhorns>
i havent seen one around
<fuzzyhorns>
what's your —format optioon?
<imightbestupid12>
well the only expect i am using right now is for the failing test case
<imightbestupid12>
everything else is using the old should syntax
<hanmac>
in ruby there are infinite + 1 ways to solve a problem ;P
<sagax>
great! trying both
l4v2 has joined #ruby
<imightbestupid12>
hanmac: that's not true
<imightbestupid12>
you're confined to a finite amount of solutions given the basic nature of computers
<Nilium>
Well, you've got infinite solutions but can only implement as many as you can store in memory / on disk.
<imightbestupid12>
no there are no infinite solutions
<Nilium>
After all, you could just have a huge tower of functions that call each other to get the result.
<fuzzyhorns>
imightbestupid12: it is kinda pedantic to point that out
<Nilium>
As long as you can keep adding functions, it's infinite.
craigp has quit [Ping timeout: 272 seconds]
<Nilium>
Add turtles get results
<imightbestupid12>
adding an extra function and considering it as a new solution is stupid
NTrash has quit [Client Quit]
* Nilium
looks at imightbestupid12's username.
tcrypt is now known as tcrypt[away]
NTrash has joined #ruby
<hanmac>
Nilium: its turtles all the way down, ne? xD
<Nilium>
One of us is enjoying life.
<imightbestupid12>
i love my life
<Nilium>
The other of us is actually arguing about whether infinite variations on solutions constitute new solutions.
<imightbestupid12>
i sell stuff and get paid a nice sum of money which i use on "adult" stuff
<Nilium>
I want to buy a trampoline.
be_______ has quit [Remote host closed the connection]
<Nilium>
And I could, but I'd just hurt myself.
<imightbestupid12>
trampolines are dangerous
<imightbestupid12>
you have to dig a hole in the ground and fill it with foam and make sure the trampoline is big enough so you land right
be_______ has joined #ruby
ldnunes has quit [Quit: Leaving]
<Nilium>
Listen, there's nothing you shouldn't dig a hole and fill it with foam for.
<Nilium>
That just goes without saying.
<imightbestupid12>
you also have to make sure you have foam around the trampoline
<imightbestupid12>
foam blocks are about $2 each and it's going to get really expensive really fast
nankyokusei has joined #ruby
xall has joined #ruby
<Nilium>
The new Doom game's soundtrack makes for surprisingly good coding music.
Vingador has quit [Remote host closed the connection]
rodferso1 is now known as rodfersou|dinner
tcrypt[away] has quit [Ping timeout: 264 seconds]
be_______ has quit [Remote host closed the connection]
be_______ has joined #ruby
Pupeno has joined #ruby
Puffball has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
tyang has quit [Ping timeout: 272 seconds]
be_______ has quit [Ping timeout: 265 seconds]
tcrypt has joined #ruby
Pupeno has quit [Remote host closed the connection]
fuzzyhorns has quit [Quit: Leaving.]
James has joined #ruby
James is now known as Guest22242
Yukon has joined #ruby
elifoster has quit [Quit: class]
Yukon has left #ruby [#ruby]
tcrypt has quit [Ping timeout: 244 seconds]
Yukon has joined #ruby
whathappens has joined #ruby
Puffball has quit [Ping timeout: 264 seconds]
Guest22242 has quit [Ping timeout: 240 seconds]
dsea has joined #ruby
Yukon has quit [Client Quit]
blackwind_123 has quit [Ping timeout: 265 seconds]
tcrypt has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elenatanasoiu has joined #ruby
RTFM[away] has quit [Ping timeout: 264 seconds]
craigp has joined #ruby
blackwind_123 has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
_sfiguser has joined #ruby
NTrash has joined #ruby
<atmosx>
Hello, if you'd like to build a storage service with content re-use using ruby, which libraries would you use? Content re-use is what dropbox, backblaze and others storage provides use to save space. Of course the simplest idea is to use fingerprinting (e.g. sha512) but I wonder if there's any library to take care of everything.
Puffball has joined #ruby
NTrash has quit [Client Quit]
Dimik has quit [Ping timeout: 244 seconds]
NTrash has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
[Butch] has quit [Quit: I'm out . . .]
_Th1nkT4nk_ has quit [Quit: Page closed]
tcrypt has joined #ruby
marxarelli|afk is now known as marxarelli
ramortegui has quit [Quit: Ex-Chat]
Dobler has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
imightbestupid12 has quit [Quit: Page closed]
Silthias has quit [Ping timeout: 252 seconds]
duncannz has joined #ruby
Dobler has quit [Max SendQ exceeded]
ChiefAlexander has quit [Quit: Leaving...]
Ahab has joined #ruby
<Ahab>
Heya
be_______ has joined #ruby
Madplatypus has joined #ruby
nettoweb1 has joined #ruby
Silthias has joined #ruby
<Ahab>
I'm stuck with a problem here
<Ahab>
I have a 2d array
<Ahab>
lets call it twodee
bjmllr has quit [Quit: WeeChat 1.0.1]
<Ahab>
i can access its values using:
<Ahab>
twodee = [x][y]
bjmllr has joined #ruby
<Ahab>
what no
<Ahab>
value = twodee[x][y]
nettoweb has quit [Ping timeout: 265 seconds]
tcrypt has quit [Ping timeout: 264 seconds]
<Ahab>
is there a way to make a variable that will store the coordinates [x][y] ?
tcrypt_ has joined #ruby
polyidus has quit [Quit: Gone]
<xybre>
coord = [4,5]
jackjackdripper1 has quit [Ping timeout: 264 seconds]
be_______ has quit [Ping timeout: 272 seconds]
<Ahab>
hmm I think I was not clear enough, sorry
Silthias1 has joined #ruby
jackjackdripper has joined #ruby
pabloh has joined #ruby
<xybre>
Or: class Coord; attr_accessor :x, :y; end
Silthias has quit [Ping timeout: 252 seconds]
<Ahab>
hmm
whathappens has quit [Ping timeout: 248 seconds]
<xybre>
I like building "cursor" or coordinate" classes that keep track of locations and let you "move around" within a data structure.
craigp has quit [Ping timeout: 265 seconds]
patarr has quit [Quit: patarr]
dviola has quit [Quit: WeeChat 1.5]
<matthewd>
Ahab: You can have twodee[x, y] by defining def [](x, y)
<Ahab>
The problem is that I want to make my script more readable
zacstewart has joined #ruby
<Ahab>
hmm
<Ahab>
matthewd this is what i was looking for
<Ahab>
thank you
kingkong- has joined #ruby
tcrypt_ has quit [Max SendQ exceeded]
djbkd has quit [Read error: Connection reset by peer]
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
tcrypt has joined #ruby
<Ahab>
where in the docummentation I can find how to do this?
<matthewd>
It's just defining a method
<Ahab>
its just this?
kingkong- has quit [Client Quit]
<Ahab>
inside the matrix class i define this method?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
jphase_ has joined #ruby
nettoweb1 has quit [Ping timeout: 264 seconds]
edrocks has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
blackwind_123 has quit [Ping timeout: 272 seconds]
blackwind_123 has joined #ruby
moneylotion has quit [Ping timeout: 260 seconds]
jphase has quit [Ping timeout: 272 seconds]
sp_ has joined #ruby
jphase_ has quit [Ping timeout: 248 seconds]
edrocks has quit [Ping timeout: 252 seconds]
Snickers has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
behemot has quit [Ping timeout: 272 seconds]
tcrypt has quit [Ping timeout: 264 seconds]
tcrypt_ has joined #ruby
moneylotion has joined #ruby
jenrzzz has joined #ruby
newbie22 has joined #ruby
claw has quit [Ping timeout: 264 seconds]
jayjo has quit [Quit: Lost terminal]
whathappens has joined #ruby
newbie22 has quit [Client Quit]
newbie22 has joined #ruby
hahuang62 has joined #ruby
elenatanasoiu has quit [Ping timeout: 248 seconds]
elastix has quit [Quit: elastix]
nando294021 has quit [Ping timeout: 264 seconds]
nando293921 has quit [Ping timeout: 264 seconds]
marxarelli is now known as marxarelli|afk
ramfjord has joined #ruby
hahuang62 has quit [Ping timeout: 272 seconds]
marxarelli|afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
magellanicloud has quit [Ping timeout: 272 seconds]
whathappens has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
polyidus has joined #ruby
polyidus has quit [Client Quit]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polyidus has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Guest43 has joined #ruby
newbie22 has quit [Quit: Leaving]
Guest43 has quit [Changing host]
Guest43 has joined #ruby
polishdub has quit [Quit: Leaving]
Guest43 is now known as Rufus
craigp has joined #ruby
marxarelli has joined #ruby
last_staff has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
last_staff has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tcrypt has quit [Read error: Connection reset by peer]
kingkong- has joined #ruby
<havenwood>
Jakey3: Asides, but you can see the spec file (if it's installed) with `gem specification unicorn` or where it was installed with `gem which unicorn` or the contents that were installed with `gem contents unicorn`or even `gem open unicorn` to open the gem source in an editor.
elenatanasoiu has quit [Ping timeout: 264 seconds]
craigp has quit [Ping timeout: 272 seconds]
bsrd has joined #ruby
kingkong- has quit [Client Quit]
bsrd has quit [Client Quit]
ResidentBiscuit has joined #ruby
finisherr has quit [Quit: finisherr]
finisherr has joined #ruby
bmurt has joined #ruby
s2013 has joined #ruby
Devalo has joined #ruby
duderonomy has joined #ruby
jenrzzz has joined #ruby
pabloh has quit [Quit: Leaving]
csk has quit [Quit: ZZZzzz…]
mim1k|work has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
Devalo has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
finisherr has quit [Quit: finisherr]
tcrypt has quit [Ping timeout: 264 seconds]
tcrypt has joined #ruby
mim1k|work has joined #ruby
dlam has joined #ruby
<dlam>
can i use ruby 1 and 2 at the same times
<dlam>
?
<kaspergrubbe>
what do you mean at the same time?
RTFM[away] has joined #ruby
RTFM[away] has joined #ruby
RTFM[away] has quit [Changing host]
<havenwood>
dlam: Ruby 2.1 is in maintenance mode and isn't receiving bugfix patches. Earlier Rubies are all past end-of-life and don't receive security patches. If you can use Ruby 2.2 or 2.3.
nankyokusei has quit [Ping timeout: 252 seconds]
ocbtec has quit [Quit: leaving]
evie_hammond has quit [Ping timeout: 240 seconds]
koooge has joined #ruby
whathappens has quit [Quit: Leaving...]
evie_hammond has joined #ruby
jphase has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
gnufied has quit [Ping timeout: 248 seconds]
Silthias1 has quit [Ping timeout: 252 seconds]
last_staff has quit [Quit: poof]
jenrzzz has quit [Ping timeout: 244 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
Silthias has joined #ruby
tcrypt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
craigp has joined #ruby
charliesome has joined #ruby
charliesome_ has quit [Ping timeout: 265 seconds]
Snickers has quit [Ping timeout: 243 seconds]
Vile` has joined #ruby
pragmaticus has quit [Ping timeout: 248 seconds]
Alayde has quit [Ping timeout: 248 seconds]
wldcordeiro has quit [Ping timeout: 248 seconds]
rbr has quit [Read error: Connection reset by peer]
unreal has joined #ruby
nando294021 has quit [Ping timeout: 264 seconds]
nando293921 has quit [Ping timeout: 264 seconds]
rbr has joined #ruby
kingkong- has joined #ruby
CloCkWeRX has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 252 seconds]
polyidus has quit [Quit: Gone]
fmcgeough has quit [Quit: fmcgeough]
kingkong- has quit [Client Quit]
amclain has quit [Quit: Leaving]
eljimmy has quit [Quit: This computer has gone to sleep]