<smoitra>
darix: Actually I made linked_list as gem in mind and till hash_table just for practice since I have not implemented good has_function and since arrays in ruby are dynamic I dont think there is much use of hash table
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
amsi has quit [Quit: Leaving]
roamingdog has quit [Ping timeout: 250 seconds]
Fooster has joined #ruby-lang
smoitra has quit [Quit: Leaving]
havenwood has quit []
michael_imac is now known as michael_mbp
mkaesz has joined #ruby-lang
chadwtaylor has joined #ruby-lang
Fooster has quit [Ping timeout: 264 seconds]
b_hoffman has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby-lang
mkaesz has quit [Ping timeout: 256 seconds]
ruby-lang160 has quit [Quit: Page closed]
chadwtaylor has quit [Ping timeout: 265 seconds]
mmoretti has quit []
duderonomy has joined #ruby-lang
djbkd has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
b_hoffman has joined #ruby-lang
bodgix_wrk has quit [Quit: Connection closed for inactivity]
ledestin has joined #ruby-lang
jdecuirm has quit [Remote host closed the connection]
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Ping timeout: 265 seconds]
lytol has quit [Remote host closed the connection]
jdecuirm has joined #ruby-lang
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
amclain has joined #ruby-lang
auzty has quit [Quit: Leaving]
vipaca has joined #ruby-lang
blokc has joined #ruby-lang
hahuang62 has joined #ruby-lang
jo__ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
blokc has quit [Quit: blokc]
taylorrf has joined #ruby-lang
taylorrf has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
auzty has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
Miphix has joined #ruby-lang
redmage has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
fujimura has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby-lang
gr33n7007h has quit [Ping timeout: 250 seconds]
ghostpl_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
gr33n7007h has joined #ruby-lang
mkaesz has joined #ruby-lang
j4cknewt has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
gr1zzlybe4r has joined #ruby-lang
smoitra has joined #ruby-lang
<gr1zzlybe4r>
what is the 'ruby' way of iterating through a 2D array? Like how would I do what's in the comment of this pastebin? http://pastebin.com/YsmMfjtX
iamninja has quit [Ping timeout: 240 seconds]
<jhass>
gr1zzlybe4r: if applicable check matrix stdlib, otherwise Array#assoc and Array#rassoc might be handy. To fully iterate just two nested .each/.each_with_index/array.size.times
mattyohe has quit [Quit: Connection closed for inactivity]
roamingdog has quit [Remote host closed the connection]
TvL2386 has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Ping timeout: 252 seconds]
j4cknewt has joined #ruby-lang
AlxAlt has quit [Quit: Leaving]
j4cknewt_ has quit [Ping timeout: 252 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
diegoviola has quit [Remote host closed the connection]
kohgpat has joined #ruby-lang
wallerdev has joined #ruby-lang
LMity has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
yellowgh0st has joined #ruby-lang
arquebus has quit [Quit: konversation]
j4cknewt has joined #ruby-lang
gianlucadv has joined #ruby-lang
yellowgh0st has quit [Ping timeout: 246 seconds]
yellowgh0st has joined #ruby-lang
jdecuirm has quit [Ping timeout: 240 seconds]
jdecuirm has joined #ruby-lang
yellowgh0st has quit [Client Quit]
djbkd has quit [Quit: Leaving...]
yellowgh0st has joined #ruby-lang
LMity has quit [Ping timeout: 264 seconds]
Averna has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 265 seconds]
mkaesz has joined #ruby-lang
mkaesz has quit [Ping timeout: 240 seconds]
solars has joined #ruby-lang
matp has joined #ruby-lang
ur5us has joined #ruby-lang
havenwood has joined #ruby-lang
yellowgh0st_ has joined #ruby-lang
yellowgh0st has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
mrod has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
symm- has joined #ruby-lang
lytol has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 265 seconds]
yellowgh0st_ has quit [Quit: yellowgh0st_]
Musashi007 has joined #ruby-lang
allomov has joined #ruby-lang
ghostpl_ has joined #ruby-lang
mkaesz has joined #ruby-lang
mathie has joined #ruby-lang
arBmind has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 252 seconds]
strixd has joined #ruby-lang
mrod has quit [Quit: Page closed]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
Bwild has quit [Ping timeout: 265 seconds]
mkaesz has joined #ruby-lang
taylorrf has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
pwnz0r has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 256 seconds]
taylorrf has quit [Ping timeout: 250 seconds]
kr3ssh has joined #ruby-lang
piotrj has quit [Read error: Connection reset by peer]
pwnz0r has quit [Ping timeout: 240 seconds]
kohgpat has quit [Ping timeout: 245 seconds]
qba73 has joined #ruby-lang
marr has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
terpo has joined #ruby-lang
j4cknewt has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
piotrj has joined #ruby-lang
kohgpat has joined #ruby-lang
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghostpl_ has joined #ruby-lang
iffyuva has joined #ruby-lang
mathie has joined #ruby-lang
elia has joined #ruby-lang
Torrieri has quit [Ping timeout: 250 seconds]
Thylacinelol has joined #ruby-lang
AKASkip has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby-lang
havenwood has quit []
j4cknewt has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
maso has quit [Remote host closed the connection]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
iffyuva has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
mkaesz has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
Fooster has joined #ruby-lang
j4cknewt has quit [Ping timeout: 250 seconds]
arBmind has quit [Quit: Leaving.]
j4cknewt has joined #ruby-lang
Fooster has quit [Ping timeout: 264 seconds]
adammcarth has joined #ruby-lang
j4cknewt_ has quit [Ping timeout: 256 seconds]
<adammcarth>
Hey. I'm trying to run `bundle install` from a shell script I made (.sh file) for my ruby Sinatra application. When I run the script without sudo (sh deploy.sh), it works fine, but when I run it with sudo (sudo sh deploy.sh) I get an error saying the bundle command is not found... The script MUST be run with sudo (due to other commands in it). How can I get bundler to work!?! :) PS: I've tried `sudo -u ec2-user bundle install
<adammcarth>
Obviously you can't run sudo bundle install
<adammcarth>
so I'm not sure how to go about fixing this
<Eising>
adammcarth: yeah, sudo doesn't remember your environment, which is why it can't find the bundle command
jo__ has quit [Quit: Connection closed for inactivity]
<Eising>
adammcarth: bundle should call sudo by itself, so no need to call your script with sudo, or call sudo individually when you need it in your script?
mikecmpbll has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
fusillicode has quit [Read error: Connection reset by peer]
<adammcarth>
mhmmmm
<adammcarth>
Eising: It's just that most of the commands inside the script require sudo to run
<adammcarth>
Eising: And I heard using sudo inside of a script is really shitty practice
kr3ssh has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
piotrj_ has joined #ruby-lang
kr3ssh has joined #ruby-lang
<wnd>
if you really absolutely must use sudo, you can configure sudo keep environment (for particular commands)
piotrj has quit [Ping timeout: 264 seconds]
<Eising>
adammcarth: okay, well, since the problem is PATH, just set the PATH in the beginning of the script (along with other RVM envs maybe if needed)
mkaesz has quit [Read error: Connection reset by peer]
<Eising>
adammcarth: set PATH, GEM_HOME, GEM_PATH, MY_RUBY_HOME and RUBY_VERSION in the top of the script
charliesome has joined #ruby-lang
<Eising>
adammcarth: maybe rvm_prefix, rvm_path and rvm_bin_path also, but not sure
piotrj_ has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
j4cknewt has joined #ruby-lang
piotrj has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby-lang
j4cknewt has quit [Ping timeout: 246 seconds]
j4cknewt has joined #ruby-lang
j4cknewt_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
Integral1st has joined #ruby-lang
Integralist has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
b_hoffman has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
AKASkip has joined #ruby-lang
fusillicode has joined #ruby-lang
mkaesz has joined #ruby-lang
tkuchiki has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby-lang
arBmind has quit [Ping timeout: 256 seconds]
arBmind has joined #ruby-lang
j4cknewt has quit [Ping timeout: 255 seconds]
pepperbreath has quit [Ping timeout: 264 seconds]
mathie has joined #ruby-lang
j4cknewt has joined #ruby-lang
fujimura has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
tunaCanBruh has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
taylorrf has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 264 seconds]
benlovell has quit [Ping timeout: 264 seconds]
taylorrf has quit [Ping timeout: 250 seconds]
stamina has joined #ruby-lang
Guest76 has joined #ruby-lang
Guest76 has quit [Client Quit]
ur5us has joined #ruby-lang
loveablelobster has joined #ruby-lang
loveablelobster has quit [Client Quit]
loveablelobster has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby-lang
qba73 has quit []
terpo has quit []
mkaesz has quit [Read error: Connection reset by peer]
malev has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
skyrocker has quit [Quit: Leaving.]
skyrocker has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
pepperbreath has joined #ruby-lang
Vivex has joined #ruby-lang
bruno- has joined #ruby-lang
benlovell has joined #ruby-lang
bruno- has quit [Ping timeout: 265 seconds]
taylorrf has joined #ruby-lang
bruno- has joined #ruby-lang
taylorrf has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 255 seconds]
fusillicode has quit [Ping timeout: 245 seconds]
fujimura has joined #ruby-lang
yellowgh0st has joined #ruby-lang
mnilsson has quit [Remote host closed the connection]
riffraff has joined #ruby-lang
shinnya has joined #ruby-lang
yellowgh0st has quit [Client Quit]
kapil___ has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby-lang
mnilsson has joined #ruby-lang
postmodern has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 255 seconds]
yellowgh0st has joined #ruby-lang
piotrj has joined #ruby-lang
sankaber has joined #ruby-lang
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby-lang
mathie has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Fooster has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
bruno- has quit [Ping timeout: 246 seconds]
yellowgh0st has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
Fooster has quit [Ping timeout: 264 seconds]
auzty has quit [Quit: Leaving]
<dagda1>
how can I set up routing to work in a multitenant appliation where each client has its own subdoman, e.g. myapp.com/customer
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matled has quit [Remote host closed the connection]
matled has joined #ruby-lang
<yorickpeterse>
dagda1: assuming Rails you'd have to set up a wildcard
<yorickpeterse>
e.g. set up so that myapp.com/customer/foo is translated to myapp.com/foo with some variable set to "customer"
tunaCanBruh has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
<dagda1>
yorickpeterse: how would the variable get set?
matled has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
kapil___ has joined #ruby-lang
matled has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
<yorickpeterse>
You'd have to set up your routes so that myapp.com/customer/X points to some generic controller, which then sets the customer ID/name/etc
<yorickpeterse>
That controller then would forward you to the actual one (/X in this case)
tunaCanBruh has quit [Ping timeout: 264 seconds]
<yorickpeterse>
IIRC Rails had some way of adding hooks I believe to routes
<yorickpeterse>
granted this is easier using subdomains
bruno- has quit [Ping timeout: 246 seconds]
LMity has joined #ruby-lang
fusillicode has joined #ruby-lang
<dagda1>
yorickpeterse: I could use rack middleware also
<yorickpeterse>
You'd have to expose the variable in the Rack environment then
<yorickpeterse>
(something that is not a global variable )
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
fujimura has joined #ruby-lang
centrx has quit [Client Quit]
sankaber has joined #ruby-lang
ArchRogem has joined #ruby-lang
bruno- has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
mkaesz has quit [Read error: No route to host]
bruno- has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
morfeen has quit [Ping timeout: 246 seconds]
ruskie has quit [Quit: ...]
nathanstitt has joined #ruby-lang
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
toretore has joined #ruby-lang
mathie has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
seank_ has quit []
arooni-mobile has quit [Ping timeout: 252 seconds]
yellowgh0st has joined #ruby-lang
gr33n7007h has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby-lang
seank_ has joined #ruby-lang
<DynamicMetaFlow>
Hello once again I apologize I got disconnected.
<DynamicMetaFlow>
Thank you for those who say hi I felt welcomed!
<DynamicMetaFlow>
said*
b_hoffman has quit [Quit: b_hoffman]
ghostpl_ has quit [Remote host closed the connection]
<DynamicMetaFlow>
I apologize ahead of time if this is not the correct channel to ask questions, if its not I would be grateful if someone could redirect me.
<imperator>
go ahead
<DynamicMetaFlow>
I am personally teaching myself computer programming and started with Python and have read a few books but haven't programmed anything. Unfortunately there is this great project I'm eager to work on but due to lack of a library for this web application called Trello I can't write it there. Although there is this Ruby library that mostly covers everything in the Trello API so I'm trying to work with that so far.
intinig has quit [Remote host closed the connection]
<DynamicMetaFlow>
where 1 represents a keystroke for interface, I have the authentication done with Trello, its user token and API but for some reason I don't understand how to properly use the Card.create
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
<DynamicMetaFlow>
If anyone can help that would be great if not i completely understand. But I will keep working through this to understand it better.
<jhass>
Best is if you could show some code and the error you get, or the behavior you get vs the behavior you expect
<DynamicMetaFlow>
jhass, thank you. I will do that. Could you perhaps recommend me a website where I can paste the code that would be appropiate for viewing? I don't want to spam the IRC too much.
<jhass>
gist.github.com
<waxjar>
it expects a hash with options in it. it's a bit unfortunate that the keys aren't documented, but if you click "view source" you can see what it expects :)
<jhass>
takes multiple files, if you have a github account sign in and you can update them
intinig has quit [Remote host closed the connection]
benlovell has quit [Read error: Connection reset by peer]
<DynamicMetaFlow>
Thank you both, I do have a github but haven't used it so it would be my first time. Scary and empowering at the same time so thank you
intinig has joined #ruby-lang
mattyohe has joined #ruby-lang
<DynamicMetaFlow>
If anyone of you live in MA i would treat you to a beverage of your choice so thank you!
donovan has joined #ruby-lang
fusillicode has quit [Ping timeout: 255 seconds]
<DynamicMetaFlow>
I am so happy right now I got it working!
oleo has quit [Ping timeout: 240 seconds]
<DynamicMetaFlow>
I was working on this for hours to understand it but somehow got it working now. :)
oleo has joined #ruby-lang
<DynamicMetaFlow>
I have a question can anyone recommend me a book that describes the process one should do before writing a program?
<DynamicMetaFlow>
I took a pre-programming class in college about 10 years ago
<DynamicMetaFlow>
I can understand Python for the most part and going to have to learn Ruby again but I've sketched out some of my ideass but I kinda want some form of refresher. Like one that wouls say write purpose, variable names, def etc
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mathie has joined #ruby-lang
seank__ has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
banister is now known as banisterfiend
iamninja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has quit [Quit: Leaving...]
tenderlove has joined #ruby-lang
rippa has joined #ruby-lang
seank_ has quit [Ping timeout: 250 seconds]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
taylorrf has quit [Read error: Connection reset by peer]
<DynamicMetaFlow>
Thank you
<jhass>
Chris Pine's Learn to program is often recommended, didn't read it myself though
<DynamicMetaFlow>
I will check out the website and book, my goal is to write a Trello cli using Ruby-Trello since it has the best library support for the API
<DynamicMetaFlow>
This will be my first project so I'm happy about this endeavor
havenwood has joined #ruby-lang
b_hoffman has joined #ruby-lang
donovan has quit [Remote host closed the connection]
vipaca has joined #ruby-lang
mikecmpb_ has joined #ruby-lang
mikecmpbll has quit [Read error: Connection reset by peer]
donovan has joined #ruby-lang
shinnya has quit [Ping timeout: 252 seconds]
terpo has joined #ruby-lang
j4cknewt has joined #ruby-lang
b_hoffman has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby-lang
fusillicode has joined #ruby-lang
|jemc| has joined #ruby-lang
DynamicMetaFlow has quit [Quit: Page closed]
b_hoffman has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
Integralist has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
mkaesz has joined #ruby-lang
piotrj has quit []
mnilsson has quit [Ping timeout: 250 seconds]
Integralist has quit [Client Quit]
yellowgh0st has joined #ruby-lang
bruno- has quit [Read error: Connection reset by peer]
malev has joined #ruby-lang
DynamicMetaFlow has joined #ruby-lang
<DynamicMetaFlow>
Does anyone know how to download documentation from YARD?
slawrence00 has joined #ruby-lang
<jhass>
DynamicMetaFlow: you can do gem install yard and then do yard server -g to get a local documentation server for all the gems you have installed
<DynamicMetaFlow>
Thank you jhass once again
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<imperator>
c extension writers, do you write custom c functions for regexps, or do you just use rb_cRegexp + funcall?
roamingdog has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
DynamicMetaFlow has quit [Ping timeout: 246 seconds]
sirfilip has quit [Quit: Leaving]
DivineEntity has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby-lang
chinmay_dd has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
Thylacinelol has quit [Quit: Lost terminal]
thebastl has joined #ruby-lang
roamingdog has joined #ruby-lang
NameNotFound has joined #ruby-lang
<NameNotFound>
helo?
mmoretti has joined #ruby-lang
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
if so you run it without sufficient permissions
alakran has quit [Quit: WeeChat 0.4.2]
<NameNotFound>
oh yes and i´m on a mac w/ mac os 10.10
alakra has joined #ruby-lang
<NameNotFound>
jhass: yes but i read it isn´t recomned to install gems as root?
<jhass>
depends on your setup & wishes really
mikecmpbll has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 244 seconds]
mikecmpb_ has quit [Ping timeout: 245 seconds]
seank__ has joined #ruby-lang
Miphix has quit [Quit: Leaving]
<NameNotFound>
jhass: is there any way it could be a damadged download? how can i clean the cache? just deleting/moving?
<jhass>
no, there's no way it could be a damaged download
<havenwood>
NameNotFound: You can choose where to install gems. It's pretty popular to install them in your home directory so you don't have to escalate privileges. There's a `--user-install` flag for that or you can set it in your `~/.gemrc` file.
<havenwood>
NameNotFound: I'm guessing that's the issue at least, probably set that way in one of your gemrc files.
<jhass>
NameNotFound: dunno, it should work IMO, try getting the latest Rubygems: sudo gem update --system
cmisenas has joined #ruby-lang
<NameNotFound>
jhass: didn´t work but i have to go afk now i am sorry i´ll be bakc soon
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
NameNotFound: try replacing gem: with install: in your .gemrc, maybe they removed support for doing it with gem:
fujimura has quit [Remote host closed the connection]
centrx has quit [Quit: Shutting down, Please wait...]
fujimura has joined #ruby-lang
vipaca has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby-lang
matp has quit [Quit: Bye!]
DivineEntity has joined #ruby-lang
* imperator
is parsing strings again with c, lovely
matp has joined #ruby-lang
amsi has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
deol has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
donovan has quit [Remote host closed the connection]
Deckon has joined #ruby-lang
vipaca has joined #ruby-lang
fujimura has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
fusillicode has quit [Ping timeout: 240 seconds]
b_hoffman has joined #ruby-lang
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
<NameNotFound>
jhass: i am back again and i try your last suggestion... and it faild
gwendall has joined #ruby-lang
<jhass>
mmh, can I just declare your setup as weird and be done? :P
<NameNotFound>
jhass: you could but it should be like ruby on all macs
<jhass>
nah, I doubt Ruby on all macs is in /usr/local
<havenwood>
NameNotFound: No, you have a manual install of Ruby 2.1.5 in /usr/local.
skade has joined #ruby-lang
<NameNotFound>
havenwood: nope i installed it w/ homebrew
centrx has joined #ruby-lang
riotjone_ has quit [Remote host closed the connection]
<jhass>
NameNotFound: echo $GEM_HOME # does that say anything?
mathie has joined #ruby-lang
<havenwood>
NameNotFound: Brew Ruby should use a local gem by default, last I checked.
<NameNotFound>
jhass: nope
b_hoffman has quit [Quit: b_hoffman]
<NameNotFound>
havenwood: and this means?
mikecmpbll has quit [Ping timeout: 240 seconds]
<NameNotFound>
jhass: it´s just a blanc line
<havenwood>
NameNotFound: Typically if you `brew install ruby` it is already configured for a user local install of gems in the user's home directory.
miqui has quit [Ping timeout: 264 seconds]
roamingdog has quit [Remote host closed the connection]
<NameNotFound>
havenwood: so i should reinstall ruby (and maybe upgrade to ruby22?
<havenwood>
NameNotFound: That seems prudent, yeah.
<NameNotFound>
havenwood: i´ll do it
ghostpl_ has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
<NameNotFound>
havenwood: thank you it worked
<havenwood>
NameNotFound: \o/
Deckon has quit [Quit: Leaving]
My_Hearing has joined #ruby-lang
My_Hearing has joined #ruby-lang
My_Hearing has quit [Changing host]
arBmind has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 250 seconds]
elia has quit [Quit: Computer has gone to sleep.]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
Guest33_ has joined #ruby-lang
donovan has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
<Guest33_>
Does MRI allocate an execution context for every block call? That is, will 1_000_000.times { } trigger any GC?
mkaesz has quit [Read error: Connection reset by peer]
j4cknewt has quit [Read error: Connection reset by peer]
djbkd has quit [Client Quit]
smoitra has joined #ruby-lang
amal has joined #ruby-lang
amal is now known as morfeen
Guest33_ is now known as plasticchicken
<morfeen>
hi
morfeen is now known as abcd
abcd has quit [Client Quit]
morfeen has joined #ruby-lang
lytol has joined #ruby-lang
stamina has quit [Remote host closed the connection]
<plasticchicken>
To answer my own question: no. puts GC.count; 1_000_000_000.times { }; puts GC.count gives me the same number both times.
<morfeen>
what are some cool non web projects written in Ruby?
mathie has joined #ruby-lang
<jhass>
plasticchicken: I'm only uninformed guessing here, but I would expect that to count into the usual stack, that is it's not different from a method call in terms of memory issues
banister has joined #ruby-lang
allomov has quit [Remote host closed the connection]
<plasticchicken>
1_000_000.times { local_1 = nil; local_2 = nil; local_3 = nil; etc... } does not trigger any GC.
<plasticchicken>
1_000_000.times { binding } DOES trigger GC.
<jhass>
yes, if my assumption is right the locals would be stack allocated and nil only exists once, while binding creates a new Binding instance each time
<waxjar>
local_1 = nil doesn't create any new objects (there's only one nil), binding here creates a million new objects :)
<morfeen>
jhass: are these packages I can use in my Ruby projects?
<jhass>
morfeen: yeah
<morfeen>
cool
mkaesz has joined #ruby-lang
<jhass>
morfeen: that's just a categorized selection, the full deal is at rubygems.org
<morfeen>
jhass: thanks. I'm currently in the process of learning Ruby from Pragmatic Ruby. After this I want to dive into Rails. Does Rails involve a lot of concepts I need to learn
<jhass>
yes
<jhass>
it depends a bit on your prior experiences, but there will be some
<pipework>
Not only that, but yes.
<morfeen>
jhass: I have prior experience in Node.js
mkaesz has quit [Client Quit]
<plasticchicken>
morfeen: Rails is easier if you are already familiar with OO programming and HTTP. However, it is quite possible to jump in with no prior experience.
<jhass>
well, that doesn't say too much, there's lots of stuff you can build in node in various ways ;)
<plasticchicken>
morfeen: Some SQL background helps too, even though Rails nicely abstracts away a lot of that for you.
<morfeen>
jhass: I've worked with Express, but its kind of a microframework inspired by Sinatra
solars has quit [Ping timeout: 244 seconds]
<morfeen>
plasticchicken: I have all those backgrounds :)
<morfeen>
Do Ruby web applications scale well?
<plasticchicken>
morfeen: Then if don't mind magic, you'll do just fine!
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
so yeah, rails is strong on convention over configuration and quite opinionated when it comes to code structure, so those will probably the most important concepts to learn for you
<morfeen>
plasticchicken: as long as work gets done, I do not mind ;)
<jhass>
but it shouldn't be too hard ;)
<plasticchicken>
morfeen: That's an impossible question to answer. :)
<plasticchicken>
It can be done. Github still uses Ruby on their front-end, as does Twitter iirc.
<morfeen>
plasticchicken: cool. Twitter rewrote some of it in Scala, iirc
<toretore>
everything scales
<toretore>
scaling is an infrastructure problem, not a programming one
roamingdog has quit [Remote host closed the connection]
<morfeen>
Is Rails for Zombies a good resource to start with?
amystephen has joined #ruby-lang
AlexAltea has joined #ruby-lang
ghostpl_ has joined #ruby-lang
<smoitra>
morfeen start with railstutorial.org/book and if there is any problem in understanding refer to guides.rubyonrails.org
wallerdev has quit [Quit: wallerdev]
<plasticchicken>
morfeen: Yeah. Anything that gets you going is going to be fine. Personally, I learned from the PragProg book "Agile Web Development with Rails" and had a mentor.
wallerdev has joined #ruby-lang
__butch__ has joined #ruby-lang
<morfeen>
thanks
scampbell has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
mnilsson has joined #ruby-lang
b_hoffman has joined #ruby-lang
fujimura has joined #ruby-lang
b_hoffman has quit [Client Quit]
riotjones has joined #ruby-lang
terpo has quit []
yfeldblum has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
gwendall has quit [Remote host closed the connection]
kr3ssh has joined #ruby-lang
lytol has quit [Remote host closed the connection]
lytol has joined #ruby-lang
kr3ssh has quit [Read error: Connection reset by peer]
__butch__ has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 255 seconds]
mnilsson has quit [Ping timeout: 250 seconds]
cornerma1 has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
kr3ssh has joined #ruby-lang
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
cornerman has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
__butch__ has joined #ruby-lang
<apeiros>
somebody seen zzak lately?
<pipework>
Maybe zz_sMecKs has, they have the same prefix.
skade has quit [Ping timeout: 255 seconds]
dik_dak has joined #ruby-lang
jkyle1 has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby-lang
<imperator>
apeiros, not here, he's active on twitter i think
<apeiros>
well, he is online, but marked as away
skade has joined #ruby-lang
<apeiros>
can't send him DM on twitter since he doesn't follow me :-|
djbkd has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Ping timeout: 246 seconds]
plasticchicken has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mathie has joined #ruby-lang
taylorrf has joined #ruby-lang
gianlucadv has quit [Ping timeout: 264 seconds]
taylorrf_ has quit [Ping timeout: 246 seconds]
kr3ssh has quit [Ping timeout: 256 seconds]
ducklobster has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
havenwood has joined #ruby-lang
ducklobster has quit [Remote host closed the connection]
<wallerdev>
you can tweet at someone without DMing them
gwendall has joined #ruby-lang
<wallerdev>
no one sees it anyway unless they go to your page
ducklobster has joined #ruby-lang
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tunaCanBruh has quit [Ping timeout: 264 seconds]
arBmind has joined #ruby-lang
LMity has joined #ruby-lang
j4cknewt has joined #ruby-lang
intinig has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
dellavg_ has joined #ruby-lang
j4cknewt has joined #ruby-lang
Bwild has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
<apeiros>
sure? I thought anything I tweet is in my timeline and anybody following me will see that too?
j4cknewt has quit [Remote host closed the connection]
<yorickpeterse>
what is this secret twitter business
donovan has quit [Remote host closed the connection]
<jhass>
DynamicMetaFlow: if you click view source, you can see that you should pass a hash, where the keys :name and :description are required and :closed and :organization_id are optional
djbkd has quit [Remote host closed the connection]
<jhass>
that one you just call and gives you an array of Board instances back
djbkd has joined #ruby-lang
<DynamicMetaFlow>
Ok, I'll figure that out in a bit
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DynamicMetaFlow>
This is what I have worked on today for a little bit, I know it's not much but only been working with Ruby for a few hours and happy that I'm making some level of progress. My next step is to retrieve information from Trello, (the lists and boards) so I can add let the user select on which board and list they want to create a card. Any tips of recommendations are helpful
<havenwood>
DynamicMetaFlow: just an aside, but if you gist it with a `.rb` extension we'll get pretty colors
<jhass>
a few style notes if you don't mind:
<DynamicMetaFlow>
I was trying to figure that out. Thank you first time using github
<jhass>
Ruby community standard is two spaces for indentation
<jhass>
snake_case for method and variable names
<jhass>
try to use "foo #{bar} baz" over "foo " + bar + " baz"
<havenwood>
no headlessCamels!
<jhass>
if all your keys are :symbols, you can write foo: bar instead of :foo => bar
Musashi007 has joined #ruby-lang
<DynamicMetaFlow>
Ok, thank you both I'll make modifications to that once i get a chance. I need to make dinner now. Thank you both. Also thank you for everyone here being responsive, learning to program alone can be an ardous task.
_br_ has quit [Ping timeout: 256 seconds]
<jhass>
you're welcome
chouhoulis has quit [Ping timeout: 265 seconds]
<DynamicMetaFlow>
Be back soon!
dik_dak has joined #ruby-lang
charliesome has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
centrx has joined #ruby-lang
matp_ has joined #ruby-lang
djbkd has joined #ruby-lang
nathanstitt has quit [Ping timeout: 244 seconds]
_br_ has joined #ruby-lang
matp has quit [Ping timeout: 240 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
taylorrf has joined #ruby-lang
kr3ssh has quit [Ping timeout: 255 seconds]
yellowgh0st has joined #ruby-lang
_br_ has quit [Ping timeout: 244 seconds]
taylorrf has quit [Ping timeout: 250 seconds]
diegoviola has quit [Remote host closed the connection]
_br_ has joined #ruby-lang
matp_ is now known as matp
symm- has quit [Ping timeout: 250 seconds]
symm- has joined #ruby-lang
fujimura has joined #ruby-lang
charliesome has quit [Quit: zzz]
havenwoo_ has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
fujimura has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
ghostpl_ has quit [Remote host closed the connection]