havenwood has quit [Remote host closed the connection]
slawrence00 has joined #ruby-lang
duderonomy has joined #ruby-lang
iamninja has joined #ruby-lang
emmesswhy has joined #ruby-lang
_fritchie has joined #ruby-lang
sudoubuntu has joined #ruby-lang
postmodern has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Sadin has quit []
Sadin has joined #ruby-lang
chouhoulis has joined #ruby-lang
hramrach has joined #ruby-lang
konr has quit [Quit: Connection closed for inactivity]
Nixsos has joined #ruby-lang
undead has quit [Ping timeout: 246 seconds]
tmi1 has joined #ruby-lang
<Senjai>
Why would you ever want to do that
<Senjai>
That's a terrible terrible idea
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
suavemint has joined #ruby-lang
godd2 has quit [Ping timeout: 244 seconds]
BubonicPestilenc has quit [Quit: BubonicPestilenc]
nertzy has joined #ruby-lang
godd2 has joined #ruby-lang
_fritchie has quit [Read error: Connection reset by peer]
_fritchie has joined #ruby-lang
Bwild has quit [Quit: leaving]
araujo has quit [Read error: Connection reset by peer]
SilentNuke has joined #ruby-lang
araujo has joined #ruby-lang
<wallerdev>
faster
<wallerdev>
lol
Sadin has quit [Read error: Connection reset by peer]
Sadin_ has joined #ruby-lang
tenderlove has quit [Quit: Leaving...]
Sadin_ has quit [Client Quit]
workmad3 has quit [Ping timeout: 255 seconds]
tmi1 has quit [Quit: Leaving.]
ta_ has joined #ruby-lang
suavemint has quit [Remote host closed the connection]
suavemint has joined #ruby-lang
Nixsos has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 265 seconds]
suavemint has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby-lang
saramic has quit [Remote host closed the connection]
SilentNuke has quit []
suavemint has joined #ruby-lang
suavemint has quit [Client Quit]
ta_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
hendranata_ has joined #ruby-lang
t00b has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
ddd has quit [Quit: leaving]
nertzy has quit [Quit: This computer has gone to sleep]
malconis has joined #ruby-lang
yusuf has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
saramic has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
godd2 is now known as godd2-away
RobertBirnie has quit [Ping timeout: 244 seconds]
pyrex has joined #ruby-lang
tkuchiki has joined #ruby-lang
shinnya_ has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
_fritchie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 265 seconds]
goodcodeguy has joined #ruby-lang
pyrexwyrex has joined #ruby-lang
pyrex has quit [Ping timeout: 265 seconds]
rbowlby has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
wprice has quit [Quit: wprice]
jdecuirm has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 264 seconds]
saramic has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 244 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradland_ has joined #ruby-lang
oleo is now known as Guest95822
oleo__ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 244 seconds]
nathanstitt has joined #ruby-lang
guillaume-rb has joined #ruby-lang
Guest95822 has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ta_ has quit [Ping timeout: 244 seconds]
saramic has joined #ruby-lang
djbkd has joined #ruby-lang
wallerdev has joined #ruby-lang
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Creeves has quit [Remote host closed the connection]
gwendall has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby-lang
amclain has joined #ruby-lang
saramic has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
Atomic2 has joined #ruby-lang
workmad3 has joined #ruby-lang
gnufied has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
Caius has quit [Ping timeout: 276 seconds]
kenezen has joined #ruby-lang
jxie has joined #ruby-lang
kenezen has quit [Remote host closed the connection]
gix has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
gwendall has joined #ruby-lang
gix has joined #ruby-lang
Caius has joined #ruby-lang
chouhoul_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
saramic has joined #ruby-lang
chouhoulis has quit [Ping timeout: 256 seconds]
Senjai has quit [Quit: WeeChat 1.0.1]
ta_ has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
_fritchie has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
jxie has quit [Ping timeout: 264 seconds]
slawrence00 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 265 seconds]
guillaume-rb has quit [Quit: guillaume-rb]
pwnz0r has joined #ruby-lang
guillaume-rb has joined #ruby-lang
guillaume-rb has quit [Client Quit]
sudoubuntu has joined #ruby-lang
ta_ has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
malconis has joined #ruby-lang
saramic has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 244 seconds]
saramic has joined #ruby-lang
saramic has quit [Remote host closed the connection]
Nixsos has joined #ruby-lang
dik_dak has joined #ruby-lang
jdecuirm has quit [Ping timeout: 255 seconds]
Nixsos has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
ta_ has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdecuirm has joined #ruby-lang
havenwood has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 244 seconds]
mannyt has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby-lang
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saramic has joined #ruby-lang
djbkd has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
chouhoulis has quit [Ping timeout: 256 seconds]
gwendall has quit [Ping timeout: 265 seconds]
brandonjjon has joined #ruby-lang
goodcodeguy has joined #ruby-lang
banister has joined #ruby-lang
<brandonjjon>
Anyone know why I would get "uninitialized constant PagesController::RCONNoAuthException" with steam-condenser? Code: http://hastebin.com/yeqefozupo.rb
<apeiros_>
oh, sad. now it's not fashionable code anymore.
hendranata_ has quit [Ping timeout: 256 seconds]
<apeiros_>
though, mapping it to single element arrays is…
<apeiros_>
ah, not single element arrays. so it's indeed not fashionable code.
vincet has joined #ruby-lang
<apeiros_>
apart from that I'd use flat_map instead of flatten and probably would use TYPES.values.map instead of TYPES.collect, I don't see anything wrong with that code on its own
Nixsos has joined #ruby-lang
<yorickpeterse>
or just use an array with +=
<yorickpeterse>
or Array#concat
<apeiros_>
with an each_value loop?
ur5us has quit [Remote host closed the connection]
<wprice>
[spoiler]: only one more step you can take, direct IV injection
tobiassvn has quit [Remote host closed the connection]
<wprice>
[spoiler]: I recommend anything but Starbucks, it tends to burn going in :-)
<[spoiler]>
LOL
ta_ has quit [Ping timeout: 244 seconds]
Atomic2 has joined #ruby-lang
<[spoiler]>
wprice, I'll just cut back, I guess... After my next cup...
<wprice>
[spoiler]: ah yes, the proverbial…’I’ll cut back’, I say that every day about cigarette
<wprice>
cigarettes
tmi1 has joined #ruby-lang
<wprice>
[spoiler]: and Java
meschi_ has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
<[spoiler]>
Java as in coffee or Java as in programming language?
meschi_ has quit [Remote host closed the connection]
jxie has joined #ruby-lang
<wprice>
[spoiler]: the latter
<wprice>
[spoiler]: I don’t even bother saying I’m cutting back on coffee anymore
<[spoiler]>
Hahaha :-)
charliesome has quit [Quit: zzz]
Nixsos has quit [Ping timeout: 256 seconds]
<wprice>
[spoiler]: though, I have been looking into Ruby and I have to say I think it’s very elegant
<[spoiler]>
It's elegant as motherfucking princess :D
ruby-lang953 has joined #ruby-lang
ruby-lang953 has quit [Client Quit]
<wprice>
[spoiler]: well said
<wprice>
[spoiler]: I guess
<[spoiler]>
wprice, nah, but seriously: Ruby is awesome
<wprice>
[spoiler]: yeah, lots about it I like
<wprice>
[spoiler]: reminds me a lot of my Smalltalk days
<wprice>
[spoiler]: which I still miss…just wating for this Java, Internet fad thing to die down and Smalltalk will make a come back
dabradley has joined #ruby-lang
petertretyakov has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
<[spoiler]>
Never tried smalltalk. :o I got into programming when I was ~14 and back then (which was fairly recently, to be fair) PHP was the hip thing
pyrex has joined #ruby-lang
<workmad3>
my boss is an old smalltalk hacker
rahul_j has joined #ruby-lang
rbowlby has joined #ruby-lang
pyrexwyrex has quit [Ping timeout: 256 seconds]
shubhamgoyal has joined #ruby-lang
<wprice>
smalltalk is nice, it was more of an ‘environment’ than just a language
charliesome has joined #ruby-lang
<wprice>
NEXTStep, Cocoa et al pretty much took a lot from Smalltalk, Alan Kay, one of the creators of Smalltalk was an Apple Fellow for years
<wprice>
He may still be I’m not sure
<wprice>
Consider him sort of the godfather of OOP
<wprice>
And, at least a cursory comparison, the inheritance syntax in Smalltalk is none other than the colon
sarkyniin has joined #ruby-lang
<wprice>
out of curiosity, how do ‘most’ people install? I know it’s a probably a stupid question to look for generalities, but I was curious about how you guys do it
<wprice>
install Ruby that is
<darix>
wprice: my recommendation is stick to the OS/distro package
<wprice>
darix: I’m using RVM
<wprice>
darix: pretty convenient
<wprice>
darix: nice to be able to switch versions quickly and have different gemsets for different ruby releases
<darix>
wprice: and you will monitor ruby security releases to know when you have to upgrade?
<wprice>
darix: yep, I usually keep an eye out for that type of stuff
miqui has quit [Ping timeout: 240 seconds]
<wprice>
darix: I also installed vai HoweBrew as well and the ports system on my FreeBSD machines
<darix>
wprice: also I just wanted to answer your question. not start a discussion.
<wprice>
darix: cool, thanks
<darix>
wprice: and it is actually pretty easy to support multiple ruby versions in parallel without rvm. that's what we do at openSUSE e.g.
Nixsos has joined #ruby-lang
<wprice>
darix: ah, I work at RedHat..:-)
<tobiasvl>
nice, Fedora user and RHEL sysadmin here
gwendall has quit [Remote host closed the connection]
<wprice>
tobiasvl: I work in the middleware part of RH, but always nice to talk to people using the products :-)
<tobiasvl>
just updated to F21 today actually, and working on upgrading our ancient RHEL5 servers to RHEL7!
<wprice>
tobiasvl: I’m a pure Mac user for my work, but I do run F21 in a few VM’s
<[spoiler]>
:o we mostly have centos servers lol
shazaum has joined #ruby-lang
<wprice>
tobiasvl: pretty good, and I was a long time SuSe user when i did run Linux
ta_ has quit [Ping timeout: 265 seconds]
<darix>
wprice: i can send you a dvd or 2 if you want :p
<wprice>
tobiasvl: big, big philosophical discussions on systemd
<wprice>
tobiasvl: and I use the term ‘discussion’ loosely
<tobiasvl>
yep
<tobiasvl>
so I have gathered
charliesome has quit [Quit: zzz]
<darix>
i like systemd even for servers.
<wprice>
the guy that implemented it of course works for us, so, we get all sorts of opinions
<wprice>
and death threats
ledestin has quit [Quit: ledestin]
<darix>
wprice: kay and lennart can be pretty "good" at handling the community at times. and not just since systemd.
hardtailWTFmang has joined #ruby-lang
<darix>
and that follows them
<wprice>
darix: yeah, from what I have seen I tend to agree
charliesome has joined #ruby-lang
<wprice>
darix: does openSuSe have any affilitation with Attachmate, beyond the upstream code?
rbowlby has quit [Remote host closed the connection]
<darix>
well we are a BU in the attachmate group
<hardtailWTFmang>
Hi there. New user to git and ruby here. I am trying to get Ruby and then eventually Ruby on Rails installed on Ubuntu. I am following a tutorial that has me installing it when I use this program called 'rbenv'. When I type 'rbenv install 2.2.0' it tells me Ruby is downloading but the build fails. Can anyone help me, please?
<darix>
hardtailWTFmang: use your normal distro package.
<darix>
hardtailWTFmang: if you understand the whole env better you can switch to rbenv/rvm
<wprice>
darix: cool
<darix>
wprice: but attachmate is just getting bought again.
<darix>
so
<wprice>
ah, interesting
<hardtailWTFmang>
darix my normal package is 1.9,
<darix>
hardtailWTFmang: which ubuntu release do you run?
<wprice>
darix: hopefully for the better. I don’t know much about the company
<darix>
wprice: but if you were referring to suse|sles <-> opensuse
<hardtailWTFmang>
darix the latest 10.4 64bit
<darix>
hardtailWTFmang: that is EOL
<darix>
if i recall correctly
<hardtailWTFmang>
eol?
petertretyakov has quit [Quit: Be back later ...]
<darix>
you want to upgrade that first
<[spoiler]>
10 isn't latest
<darix>
end of life
<darix>
[spoiler]: soon
<[spoiler]>
soon? :o
<wprice>
darix: I taught a weeklong class at Novell when they still owned SuSe. Nice guys. Very bright, attentive
<darix>
[spoiler]: april
<hardtailWTFmang>
my mistake, ubuntu 14.10
<[spoiler]>
What about april?
<darix>
[spoiler]: in april 2015 ubuntu 10.4 LTS server is EOL
<darix>
and i am not sure you want to wait until last day
<darix>
wprice: sles and opensuse have a pretty close relationship. probably as close as fedora and rhel
Iskarlar has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby-lang
<hardtailWTFmang>
darix thanks, how do I install that, just sudo apt-get Ruby2.1 ?
<wprice>
darix: yeah, for us Fedora is an actual BU, but we have close association obviously
<darix>
hardtailWTFmang: apt-get install ruby2.1
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
<wprice>
darix: s/is/isn’t
<darix>
wprice: didnt know that.
<[spoiler]>
2.1 isn't available on 14.04 LTS for me
<[spoiler]>
oh well, I use rvm anyway
<darix>
wprice: suse is the BU. not opensuse :)
ta_ has joined #ruby-lang
<darix>
[spoiler]: right 14.04 has only 2.0
<darix>
if i recall correctly
<hardtailWTFmang>
unable to locate packag, couldnt find any package by regex
<[spoiler]>
darix, indeed
<darix>
hardtailWTFmang: you are really sure that is 14.10?
<[spoiler]>
hardtailWTFmang, do you have 14.04 or 14.10?
<darix>
you are sure your apt config is proper?
futilegames has joined #ruby-lang
<wprice>
darix: sounds like our models are the same though…Fedora is our ‘skunkworks’, proviing ground type place, features that might end up in RHEL but not for quite awhile
<hardtailWTFmang>
darix and spoiler my mistake guys it is 14.04 lts
tkuchiki has joined #ruby-lang
<darix>
then you get ruby2.0
<[spoiler]>
then: apt-get install ruby2.0
<wprice>
darix: closer to me is the same model with JBoss (sigh…now Wildfly) and EAP. So Wildfly is our community open source app server and EAP is the productized corporate one with subscriptions etc
<hardtailWTFmang>
ok it is installing, is that possible to use with this rbenv program?
<hardtailWTFmang>
thank you guys
<darix>
wprice: i try to avoid java :p
jxie has joined #ruby-lang
<wprice>
darix: same here :-)
<[spoiler]>
hardtailWTFmang, rbenv and rvm are probably not your cup of tea just yet. They add a bit of complexity you might not want if you're new to ruby, or linux in general
<wprice>
unfortunatley the guys that pay me usually have something to say about it
<[spoiler]>
That's why darix suggested you use the distro-provided ruby
ta_ has quit [Ping timeout: 265 seconds]
<hardtailWTFmang>
spoiler ok. i just did not know if it would effect the tutorial i am following at not significantly. so i should be able to follow along still then
<darix>
hardtailWTFmang: the rails specific bits should work just fine
nofxx has quit [Ping timeout: 244 seconds]
<hardtailWTFmang>
ok thank you, i will try the next step
GaelanAintAround has quit [Ping timeout: 244 seconds]
malconis has joined #ruby-lang
<hardtailWTFmang>
oh actually, when i type ruby -v it tells me 1.9.3 still do i need to do something else?
<[spoiler]>
darix, I thought at first someone here was called "Theo Ther" lmao
<ljarvis>
don't understand why any tutorial would recommend using the system package manager when this kind of stuff is so much better done using a proper version manager or doing the entire thing manually
<ljarvis>
it would have been working ages ago if that was the case
<[spoiler]>
"one way or... Who? What's he on about?"
<darix>
ljarvis: he came here because super duper rbenv failed too
<darix>
booyah
<darix>
rvm and friends are not the solution to everything
<[spoiler]>
rvm > build from source > rbenv
<[spoiler]>
in my experience
<ljarvis>
figuring that out would probably have been easier. Also, rbenv and rvm have both caused me trouble. Chruby has been a dream
tcopeland has joined #ruby-lang
<hardtailWTFmang>
the funny thing is. i know i do not have a clue what i am doing but i tried this on windows 8.1 tutorial first. then i ended up with some errors on sqlite3 that i could not solve so on treehouse they told me to do this on ubuntu. so now i am here lol
<darix>
ljarvis: and we expect newbies who actually just want to learn ruby or rails to do the dance "which ruby manager is the best atm" first
<ljarvis>
rather than what? having all these installation problems
<hardtailWTFmang>
all i want to do is to learn how to code
<wprice>
wow, that’s a pretty drastic ‘solution'
<ljarvis>
^
<darix>
hardtailWTFmang: we will get you there
<wprice>
Changing from Windows to Ubuntu just because of an install thing
<darix>
hardtailWTFmang: did the sudo gem install run through?
<ljarvis>
from Windows to Ubuntu? what does that have to do with this?
<wprice>
‘I can’t close this windows…’
<wprice>
‘That’s ok, just uninstall Windows and install Ubuntu'
<ljarvis>
who said that?
<wprice>
read his statement
* ljarvis
is missing something
<hardtailWTFmang>
no i can't get it to work darix
<ljarvis>
oh
<ljarvis>
wow im blind
<hardtailWTFmang>
it gave me build error
<wprice>
‘i tried this on windows 8.1 tutorial first. then i ended up with some errors on sqlite3 that i could not solve so on treehouse they told me to do this on ubuntu.’
<jhass>
apeiros_: I'm not sure if I'll do one yet, I more needed some argument against rubocop :P
<jhass>
if it turns out we'll introduce one, sure
<hardtailWTFmang>
darix rails successfully installed!!! ty, now for bundler
<darix>
hardtailWTFmang: while you are at it
<darix>
sudo gem2.0 install pq mysql2 sqlite
<darix>
so you get the DB bindings too
<hardtailWTFmang>
ok ty
ta_ has joined #ruby-lang
elabs-developer has joined #ruby-lang
elabs-developer has left #ruby-lang [#ruby-lang]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hardtailWTFmang>
ok everything worked but the last 1
<hardtailWTFmang>
must i call it sqlite3?
<darix>
try that instead
djbkd has joined #ruby-lang
<apeiros_>
jhass: against rubocop in general or against its default config?
<apeiros_>
jhass: I'm very much in favor of a strong style guide which is also enforced. I'm not yet sure rubocop is the right tool (and I am sure I disagree with its defaults - but that's evident from my config)
ta_ has quit [Ping timeout: 244 seconds]
<hardtailWTFmang>
darix it said 2 gems installed but this error was given ERROR: Could not find a valid gem 'pq' (>= 0) in any repository
rahul_j has quit [Quit: rahul_j]
<ljarvis>
pg
<ljarvis>
not q
<darix>
hardtailWTFmang: argh pg :p
<darix>
the library is libpq :p
<jhass>
apeiros_: more the later I guess
<jhass>
I basically agree with you there
djbkd has quit [Ping timeout: 252 seconds]
<apeiros_>
I hope the comments are helpful too :)
<hardtailWTFmang>
damnit
Nixsos has quit [Ping timeout: 245 seconds]
<hardtailWTFmang>
well that fixed it
<darix>
hardtailWTFmang: now you should be all set for some basic rails development
<darix>
hopefully
<darix>
hardtailWTFmang: you can try: rails new someapp
<darix>
and see if that errors out
<jhass>
apeiros_: sure they are! :)
sankaber has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
AKASkip has quit [Ping timeout: 265 seconds]
petertretyakov has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
mikecmpbll has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby-lang
iamninja has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby-lang
<hardtailWTFmang>
back now, i will try that darix
|jemc| has joined #ruby-lang
<hardtailWTFmang>
it worked
<wprice>
Windows to Ubuntu…still a step in the right direction IMO :-)
<hardtailWTFmang>
oh man i hate windows
<wprice>
eh, there are some things to like, 7 wasnt half bad
mostlybadfly has quit [Quit: Connection closed for inactivity]
<hardtailWTFmang>
primarily i used OS X, but my laptop died and my friend convinced me to build a pc
mattyohe has joined #ruby-lang
<wprice>
that’s always fun
<wprice>
Well, sometimes
<wprice>
Depends on how things go
<hardtailWTFmang>
it's great for games and that jazz, i just don't like the os
<wprice>
I can remember many a day where ‘fun’ wouldn’t be the word I used
<wprice>
hardtailWTFmang: cool, sounds like you have a jam up right that you can experiment with. Nice thing about interpreted languages like Ruby, Java etc, platform is really irrelevant
<hardtailWTFmang>
well i am glad this is working now. i was gonna consider trying python if i couldnt but now looks like i can start the tutorials
<wprice>
lol
<wprice>
Switch the OS, switch the language
<hardtailWTFmang>
whole new person right
<hardtailWTFmang>
lol
<wprice>
hardtailWTFmang: cool that your just starting out, come to forums like this one, read docs online
<darix>
hardtailWTFmang: for python you would have needed to switch to fedora :p
<wprice>
hardtailWTFmang: and like I said, take it slow, it will come man
<wprice>
hardtailWTFmang: don’t get too overwhelmed
ta_ has quit [Ping timeout: 265 seconds]
<wprice>
hardtailWTFmang: all in good time
<darix>
hardtailWTFmang: opensuse might have been a bit easier ... we have working rails packages. :p
<wprice>
darix: lol
<hardtailWTFmang>
i have to build a registry program for a car site
rcvalle has joined #ruby-lang
<wprice>
hardtailWTFmang: for your tutorial, training thing?
<hardtailWTFmang>
no as a real project
<wprice>
hardtailWTFmang: ah
<hardtailWTFmang>
but i need to go through the tutorials first on treehouse
<wprice>
hardtailWTFmang: yeah, I would say so :-)
<wprice>
hardtailWTFmang: at least to start
<wprice>
hardtailWTFmang: do you have experience in any other language?
<darix>
hardtailWTFmang: dont write everything from scratch. for many of your problems (authentication/authorization e.g.) there are addons for rails which you can use
<wprice>
darix: +1..very good advice
<darix>
device or omniauth come to mind
<darix>
cancancan for authorization.
<darix>
but there are more
chouhoulis has joined #ruby-lang
<wprice>
hardtailWTFmang: again, do you have programming experience in any other language, environment?
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
<hardtailWTFmang>
sorry had to let me dogs out. well. 3-4 years ago i was a front end developer. mostly just javascript and some python (non web based) but i studied computer science theory for a bit
Oejet has left #ruby-lang [#ruby-lang]
<hardtailWTFmang>
so now i am just starting over once again. but i find it difficult just to setup things. git is.....challenging to say the least
wm3|away has quit [Ping timeout: 245 seconds]
<darix>
hardtailWTFmang: the basics for git are learned quickly
<darix>
and i bet there are tons of tutorials out there :)
<hardtailWTFmang>
yes i did the unix and git training on treehouse
<hardtailWTFmang>
the unix was fun, but the git...mind blown lol
<darix>
hardtailWTFmang: use it daily and it will become easier.
<darix>
the most important bits you need right now are git add|commit|mv
<darix>
at some point git push
<tobiasvl>
git is very fun too, when you learn it! but the learning curve is a bit steep, yes. hardtailWTFmang check out a !book
<tobiasvl>
thought this was #git, lol.
jgpawletko has joined #ruby-lang
<tobiasvl>
There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book
<hardtailWTFmang>
hi guys. so following along in the tutorial i did create a new test app with no issues. then i entered bin/rails server and it through this error so i cannot go to local host. i thought i cannot upgrade to higher version of ruby on my distro? http://pastebin.com/9anNB0n5
<hardtailWTFmang>
hmm. apologies i think i am way over my head here... so i need to install the execjs gem or a runtime specifically like node.js?
<darix>
hardtailWTFmang: apt-get install nodejs
<tbuehlmann>
right
chadwtaylor has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
enebo has joined #ruby-lang
loincloth has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
wm3|away has joined #ruby-lang
gjaldon has joined #ruby-lang
shinnya_ has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
<hardtailWTFmang>
damn it works with sudo. should i just always assume that i need to put sudo in front of everything
<darix>
no
<darix>
just for apt-get and gem install
<hardtailWTFmang>
ok because i installed node like you said it worked, but then when i ran bin/rails server without sudo it told me permission denied
wm3|away is now known as workmad3
<bradland>
hardtailWTFmang: sudo is for executing commands that your normal user account doesn’t have permission to complete
<bradland>
for example, if you’re using a system ruby install, the ‘gem install’ command modifies system-wide gems, so you need system-wide permissions
<bradland>
that’s why you need to use sudo
<hardtailWTFmang>
ah, understood. thank you bradland
hanjin has joined #ruby-lang
donove has quit [Quit: Leaving]
<bradland>
if you use a ruby manager (chruby, RVM, rbenv), you’ll use sudo less
<bradland>
same applies with bundler
<workmad3>
hardtailWTFmang: also, if you don't need the system-wide gem installation, I'd recommend using 'gem install --user-install <whatever>'
<bradland>
ruby manager - a tool for installing and switching between ruby interpreters
<bradland>
bundler - a tool for managing gem dependencies within your application
<workmad3>
bradland: 2 of your examples don't fit your description btw ;)
<workmad3>
(for ruby manager)
<darix>
bradland: we had that topic before already.
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
<workmad3>
bradland: :)
tkuchiki has joined #ruby-lang
hanjin is now known as enriko
<bradland>
darix: i see. looks like he had trouble with rbenv
<hardtailWTFmang>
yes lots of trouble
<darix>
bradland: btw: by default bundler will also try to install gems system wide.
<darix>
so
<darix>
anyway
<darix>
hardtailWTFmang: is your rails are working now?
<hardtailWTFmang>
i believe so darix i was able to go to localhost:3000 and it says it is up and running
<bradland>
yeah, i guess it’s six one way, half-dozen the other. you can either do —user-install with `gem install`, or specify a project bundle path with bundler
<hardtailWTFmang>
i am going to start the tutorials
tkuchiki has quit [Ping timeout: 252 seconds]
<darix>
goodie
tkuchiki has joined #ruby-lang
ta_ has joined #ruby-lang
ruby-lang686 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
donove has joined #ruby-lang
donove has quit [Changing host]
donove has joined #ruby-lang
tkuchiki has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
<hardtailWTFmang>
any ide's you guys recommend?
<ljarvis>
vim
jo__ has joined #ruby-lang
chadwtaylor has quit [Ping timeout: 255 seconds]
<darix>
vim
<workmad3>
vim 4evar!
<surrounder>
vim
<workmad3>
(or at least until I can code via a direct neural interface)
<hardtailWTFmang>
it asks me if i want to date hot Philippine women and there is a picture of a kid with a power drill...i see why you recommend it lol
<yorickpeterse>
not sure if it actually works though
<yorickpeterse>
shiiiiii it actually does
<yorickpeterse>
ljarvis: if you don't care much just stick with Bison, Lemon is a bit of a PITA to setup
BubonicPestilenc has joined #ruby-lang
futilegames has quit [Read error: Connection reset by peer]
<yorickpeterse>
ljarvis: you probably need to run `make clean` first since I accidently also tar'd the binary output
<yorickpeterse>
which probably doesn't work for you
<yorickpeterse>
errr s/binary output/executable
futilegames has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
<yorickpeterse>
ljarvis: Lemon is C only, but Ragel can output C, C++, Ruby, Go, Obj-C, Java and a few more
<yorickpeterse>
also you can bug whitequark for every Ragel question, he loves that
<yorickpeterse>
:D
rbowlby_ has joined #ruby-lang
leonshalimov has joined #ruby-lang
rbowlby has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby-lang
ta_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #ruby-lang
<ljarvis>
yeah only gonna use C anyway
rbowlby_ has quit [Ping timeout: 265 seconds]
[H]unt3r has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
ta_ has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
hardtailWTFmang is now known as hardtail
yfeldblum has joined #ruby-lang
ur5us has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
Maxino has joined #ruby-lang
skade has joined #ruby-lang
SuMo_D has joined #ruby-lang
arBmind has joined #ruby-lang
apt-get_ has joined #ruby-lang
elia has joined #ruby-lang
GBrawl has joined #ruby-lang
sarkyniin has quit [Ping timeout: 256 seconds]
<leonshalimov>
hi
skade has quit [Quit: Computer has gone to sleep.]
<wprice>
question for the devs if there are any around. I have never heard of LUA before, was there any particular reason that was used as the native scripting environment for redis?
<wprice>
sigh
<wprice>
wrong window
<wprice>
My apologies
elia has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
<darix>
wprice: people even build software based switches with lua(jit)
<darix>
wprice: see powerdns, lighttpd, nginx as other examples.
<bradland>
wprice: lua is easy to embed
<darix>
that too
<Senjai>
wprice: It is easy to use in every way, and is fast as fuck </end>
<bradland>
“easy to embed” is listed as a design goal
<bradland>
i like what little lua i’ve written
<Senjai>
Its practically javascript
<Senjai>
lol
<bradland>
there’s a cool minecraft mod called ComputerCraft that uses it to program ‘turtles’
<darix>
Senjai: ahu from the pdns team was wondering the other day if lua might have been the better javascript
<Senjai>
A number of layment know it from modding games. Wow's interface is extended using lua
<Senjai>
darix: I wouldn't say no
<wprice>
all good answers, thanks guys
<darix>
wprice: snabbswitch for the lua based software switch
shazaum has quit [Quit: This computer has gone to sleep]
<wprice>
ugh…damn…
<nofxx>
lua is brazilian, from an university in rio de janeira
<wprice>
I cannot get things together today
<nofxx>
means moon btw
mistym has quit [Remote host closed the connection]
<nofxx>
janeiro*
elia has joined #ruby-lang
<nofxx>
funny thing is that portuguese, albeit the language of the poetry, looks really really bad in code, hard to explain
<nofxx>
even if it's ruby heh
Val_ has joined #ruby-lang
<nofxx>
guess it's accents, code looks better in plain ascii
wallerdev has quit [Quit: wallerdev]
rand0mbits has quit [Ping timeout: 272 seconds]
<nofxx>
any language with diacritics*
<yorickpeterse>
>> def que¿; "¿¿¿¿¿"; end
<yorickpeterse>
eval-in__: get it together
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
konr has joined #ruby-lang
<nofxx>
yorickpeterse, the heads down question is nice, but it's spanish only
<yorickpeterse>
>> def que¿; "¿¿¿¿¿"; end; que¿
<nofxx>
in portuguese; def quê?
<yorickpeterse>
spanish == portuguese
* yorickpeterse
runs
t_ has quit [Ping timeout: 265 seconds]
tcopeland has quit [Ping timeout: 256 seconds]
<nofxx>
yorickpeterse, even portugal's pt is way different than ours... I asked that for a dutch friend about netherlands/germany, we agreed is almost like portugues/spanish
<nofxx>
you may understand and talking very slow be understood... heh
<nofxx>
but that's spain/mexico south america spanish, catalão (east spanish) is totally another language for us, like french or italian
<nofxx>
east spain*
<anitchrist>
if I use a get request, whats the best way to redact certain words in it? in the initialize method?
jgpawletko has quit [Quit: jgpawletko]
<anitchrist>
would a if object.include?("poop"); print " " or a if object =~ "poop"; print " " or how about if object == "*poop*"; print " " would any of that work?
leonshalimov has quit [Ping timeout: 264 seconds]
skade has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GBrawl has quit [Ping timeout: 244 seconds]
<anitchrist>
apologies if I killed the mexican stand off... >.<
leonshalimov has joined #ruby-lang
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
t_ has joined #ruby-lang
apt-get_ has quit [Ping timeout: 244 seconds]
skade has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby-lang
<bradland>
anitchrist: what condition are you trying to check for?
<bradland>
and what class is object?
yalue has quit [Quit: return 0;]
<anitchrist>
bradland: are you asking if its a super or public class?
mistym has joined #ruby-lang
<bradland>
no, i’m asking what class it is
<bradland>
like, is it a Hash, String, Array, etc
<anitchrist>
I think its probably a Hash
<bradland>
the method “include?” is defined for many different Ruby core classes, so the behavior depends upon what type of data is stored in the variable object
ta_ has quit [Ping timeout: 244 seconds]
<bradland>
in your code, insert a line that says: puts “object.class: #{object.class}”
<bradland>
and run it again
<bradland>
just before the location where you need to do the include
<bradland>
you have to know what object is before you can test your condition
<anitchrist>
I'm looking for a returned value that has multiple values in the key, but there is always a constant portion of the value
<anitchrist>
like it always starts with bacon... or poop... or whatever
<bradland>
k, sec
fusillicode has quit [Ping timeout: 256 seconds]
Maxino has quit [Quit: Leaving]
<bradland>
it really does matter what object looks like
<bradland>
and what it actually is
<bradland>
because Hash#include?(key) tells you whether a key exists
<bradland>
not a value
<bradland>
Hash#has_value?(value) will tell you if a value exists
<bradland>
but it’s exact
<bradland>
not starts with
<bradland>
in the general case, you can use Hash#select, which uses a block form
<bradland>
it returns all items where the block returns true
<anitchrist>
there isn't a way to adjust the argument so it looks for a value that it contains
<bradland>
too many pronouns
<bradland>
i’m not sure what all the “it” pronouns represent in your sentence
<bradland>
in general, no
<bradland>
programming is explicit
<bradland>
it all depends on the data type
SuMo_D has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
<bradland>
ruby has tons of utility methods for searching different types of data and in different ways, but you have to explicityly tell it what you’re looking for
<anitchrist>
like a key :deli that contains "Bacon Maple
<anitchrist>
like a key :deli that contains "bacon maple", ",bacon plain", "canadian bacon", etc
<bradland>
try to use code examples
<bradland>
{ :deli => “Bacon Maple }
leonshalimov has quit [Ping timeout: 255 seconds]
<bradland>
in your second example, is the list an array?
<anitchrist>
plus there are other values in the key that don't have bacon
<bradland>
it can be one long string
<bradland>
in where?
<bradland>
use code
<bradland>
english is imprecise
pyrexwyrex has joined #ruby-lang
<bradland>
for example, the method used to find values containing bacon within this structure: { :deli => [”bacon maple", ",bacon plain", "canadian bacon”] }
<bradland>
would be entirely different from something like this: { :deli => ”bacon maple, bacon plain, canadian bacon” }
<nofxx>
bradland, guess your irc program is adding literal " quotations
<bradland>
nofxx: i’m just typing too fast and this keyboard is getting really worn out
<bradland>
lots of keys that don’t register when pressed
<bradland>
requiring double presses, etc
<bradland>
pain in the ass
<nofxx>
go mechanical new one ;)
<bradland>
oh, i see, the stupid smart quotes thing
leonshalimov has joined #ruby-lang
<bradland>
“string”
<bradland>
bleh
<nofxx>
yeah.. let's see what happens
<nofxx>
>> “string”
<nofxx>
no eval today?
<bradland>
anitchrist: you need to know exactly what’s in object
pyrex has quit [Ping timeout: 244 seconds]
<bradland>
nofxx: heh, it's a "feature" of Yosemite
<bradland>
should be straight quotes now
pwnz0r has quit [Remote host closed the connection]
<nofxx>
was trying def “(txt); p txt; end , obviously w/o luck... guess the only way is gsub&eval
<anitchrist>
bradland: the get request brings back a hash, the specific portion I'm looking for is in the , "deli" : ["bacon maple", "steak", "bacon plain", "canadian bacon"], portion of the request/object/hash
<bradland>
anitchrist: there you go. that's what we need :)
<bradland>
well… partly lol
<bradland>
that's the portion, but what is that contained within?
<bradland>
an array of hashes?
<bradland>
if you could gist/pastie it, that'd be great
<anitchrist>
I just don't want to see values with a certain word in them, like bacon, if I want to see what "deli" : has but don't want to sift through all the bacon... etc
arBmind1 has joined #ruby-lang
momomomomo has joined #ruby-lang
<anitchrist>
I have already said its an get(http://blah.com) request, that looks as if it brings back a hash
<bradland>
ok, but before anyone can answer that question, we have to know what we're searching through
<ljarvis>
yorickpeterse: eh lemon looks just as messy tbh
<anitchrist>
problem with .select! is that there are 3,000,000 values and I don't know them all
<anitchrist>
and I can't use reject
<anitchrist>
because the has is read-only
<cored>
I'm trying to do an 'and' with String#scan to get all the possible combinations from an string something like "ab".scan(/([a-zA-Z]{1,1})/) == [["a"], ["b"]]
<cored>
but thething is that if I add the second group that I want to match it's just match the first one
havenwood has quit []
<ljarvis>
cored: can you give example input and desired input
SuMo_D has joined #ruby-lang
<bradland>
anitchrist: sorry, but without code i feel like i'm just fumbling around in the dark and confusing you, so all i can really say is that you'll have to look at the docs for select and reject. there's not much more i can do without better orientation.
<anitchrist>
you're not confusing me and I have attempted to play around with both, but thanks for the help
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cored>
ljarvis: ok, I have two test cases first "abc" -> [ '' , 'a', 'b', 'c', 'ab', 'ac', 'bc', 'abc' ] "jump" -> ["", "j", "ju", "jm", "jp", "jmu", "jmp", "jpu", "jmpu", "u", "m", "p", "mu", "mp", "pu", "mpu"]
<yorickpeterse>
ljarvis: what problems are you having?
rikkipitt has joined #ruby-lang
ta_ has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
j2p2 has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
shubhamgoyal has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
ta_ has quit [Ping timeout: 256 seconds]
kshah has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
konr has quit [Quit: Connection closed for inactivity]
<kshah>
I’m working on a gem, and I’d like to allow users to set a config option or two against the main module, what is the correct pattern for doing this? For instance MyModule.log_directory = ‘SOME_DIR’.
<kshah>
I’ve seen “mattr_accessor” but iirc that’s a Rails-ism?
<zenspider>
def self.log_directory= nv; ... end
<yorickpeterse>
kshah: Yeah, mattr_accessor is Rails
<yorickpeterse>
I believe it's basically just this: module Foo; class << self; attr_accessor :something; end; end
<kshah>
yorickpeterse: what a coincidence… I just installed ruby-lint
<yorickpeterse>
heh
symm- has quit [Ping timeout: 252 seconds]
<yorickpeterse>
A pretty common pattern is something like this: