apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
elastik has quit [Ping timeout: 272 seconds]
zacts has joined #ruby
jeff-ooh_ has quit [Ping timeout: 240 seconds]
conniemj has quit [Quit: (null)]
robbyoconnor has quit [Read error: Connection reset by peer]
jeff-ooh has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
jeff-ooh has joined #ruby
TheNet has joined #ruby
dx7iso has quit [Remote host closed the connection]
george2 has joined #ruby
dx7iso has joined #ruby
rpag has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeff-ooh has quit [Remote host closed the connection]
Takle has joined #ruby
arescorpio has joined #ruby
robbyoconnor has quit [Ping timeout: 258 seconds]
r0bby_ has joined #ruby
devoldmx has joined #ruby
devoldmx33 has quit [Ping timeout: 255 seconds]
<deryl>
christ this is nuts. bigdecimal and io-console refuse to build on win32. sigh. always something
<shevy>
abandon your wicked windows past
<shevy>
enter the linux
<deryl>
shevy trust me, this is making me miss my linux more and more
dx7iso has quit [Ping timeout: 272 seconds]
<shevy>
I just add salt into your wound
<deryl>
this shit is just frakin evil!
<deryl>
yea you're getting good at that ;)
<godd2>
shevy Have you heard of Guru Laghima?
<deryl>
you evil evil grinch
ferr has joined #ruby
hamakn has joined #ruby
<shevy>
godd2 nope, sounds very important though
tokik has joined #ruby
<shevy>
imagine to hear ... Guru shevy
Takle has quit [Ping timeout: 272 seconds]
<shevy>
except that I consider myself to be quite clueless
<godd2>
Let go your earthly tether for all it does is drag you down. Enter the void.
<godd2>
I thought you were quoting him when you said abandon your wicked windows past and enter the linux
pu22l3r has quit [Remote host closed the connection]
dx7iso has joined #ruby
barderer has joined #ruby
ponga has joined #ruby
hmsimha has joined #ruby
<shevy>
no
<shevy>
I quoted myself
<shevy>
it's the best way to memorize quotes too
TheNet has quit [Remote host closed the connection]
<deryl>
interpolating shevy?
TheNet has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
<shevy>
rewriting rewriting rewriting
<deryl>
lol
Megtastique has joined #ruby
sankaber has joined #ruby
agrinb has joined #ruby
ponga has quit [Remote host closed the connection]
dorei has joined #ruby
ponga has joined #ruby
barderer has quit [Ping timeout: 240 seconds]
Synchunk has quit [Read error: Connection reset by peer]
<hfp>
Hey all, is there a way to install Ruby on a new system without having to compile it? I am installing 2.1.5 with rbenv and it's already been compiling for 20 minutes
<hfp>
on Debian
Techguy305|2 has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 258 seconds]
Techguy305|2 has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
egn has left #ruby [#ruby]
redians has joined #ruby
<redians>
hi everyone is anyone available tomorrow from 8 - 10 am pst?
george2 has quit [Ping timeout: 258 seconds]
Synchunk has joined #ruby
Mia has quit [Read error: Connection reset by peer]
<shevy>
hfp 20 minutes sounds way off
<shevy>
when I compile from source, it takes about 5 minutes
<godd2>
hfp is it on a normal desktop computer or like a vps server with limited resources?
Fusl has joined #ruby
<havenwood>
hfp_work: which version of debian, 32 or 64 bit?
pu22l3r has joined #ruby
asteve has joined #ruby
<havenwood>
hfp_work: another option would be using RVM, Travis or someone else's precompiled binaries. here're RVM's binaries for debian 7.0 64: https://rvm.io/binaries/debian/7.0/x86_64/
<havenwood>
for example ^
<redians>
is anyone available tomorrow in the morning?
<redians>
i would like to get some tutoring
<shevy>
lol
<shevy>
what kind of question is that
<havenwood>
hfp_work: You can just install them with RVM (rvm install ruby-2.1.5 --binary) or manually install and switch to them.
<hfp>
havenwood, godd2: It is on a VM, 64 bits Debian
jenrzzz has joined #ruby
Guest64 has joined #ruby
<hfp>
havenwood: Nice, I'll try rvm then
<redians>
I need an hour today and an hour tomorrnw
<redians>
tomorrow*
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
Irremotus: The best place for Rails questions is indeed #rubyonrails. Nick registration is required. See: /msg NickServ help REGISTER
redians has quit [Quit: Page closed]
icebourg has quit []
<deryl>
this channel is mainly about ruby as the language rather than specific frameworks. the #RubyOnRails channel covers the framework specifically. better for your needs
elastik has joined #ruby
nicolastarzia has quit [Ping timeout: 258 seconds]
<Irremotus>
Ah, I gotcha.
<havenwood>
red, oh redians already left
<Irremotus>
Yeah- I'm trying to figure out the asset pipeline
ninab is now known as ninabreznik
bogeyd6 has quit [Ping timeout: 255 seconds]
<Irremotus>
what is ruby used for other than ruby on rails?
<havenwood>
Irremotus: It's a general purpose programming language, so lots of other stuff.
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
bogeyd6 has joined #ruby
<deryl>
if you can think it, you can write it in ruby pretty much.
gsd has joined #ruby
barderer has joined #ruby
<Irremotus>
hmm
<havenwood>
Irremotus: Rails is one of the Rack adapters. There're other Rack adapters even, like Sinatra, Hobbit, Cuba, Roda, etc.
<havenwood>
Many, many of them.
charliesome has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hfp>
Irremotus: Ruby is also used for Sysadmin with Puppet or VoIP on top of freeswitch/Asterisk with Adhearsion
<Irremotus>
Yeah I was aware of the DevOps uses
Cache_Money has quit [Quit: Cache_Money]
mary5030 has quit [Remote host closed the connection]
<hfp>
Irremotus: There are also quite a few frameworks for writing apps in Ruby for the iPhone, Android, Mac OS, Windows...
mary5030 has joined #ruby
agrinb has joined #ruby
r0bby_ is now known as robbyoconnor
<hfp>
I don't understand why someone would use rbenv then since rvm is so much easier and faster
mary5030 has quit [Ping timeout: 258 seconds]
<havenwood>
Irremotus: Ruby is also used for various and sundry other things. Like Lockheed Martin used Ruby to model fighter jet hardware and software in development. NASA uses Ruby for various stuff in space.
Mia has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
<havenwood>
hfp: For a minimalist switcher I'd recommend chruby over rbenv. RVM even supports switching with chruby.
<havenwood>
hfp: So you can install Rubies with RVM (like binaries for example) and switch with chruby.
<havenwood>
hfp: Or just RVM, whatever you fancy.
<hfp>
havenwood: I'm not sure I follow. Isn't RVM used to switch rubies already?
<hfp>
havenwood: Why would I add chruby on top of RVM if the goal is to keep it minimalist?
Cache_Money has joined #ruby
<deryl>
in addition to not on top of, and its so you can try various ones out without conflicting.
arup_r has joined #ruby
<deryl>
rbenv conflicted with rvm directly until mpapis made it do it less so, almost to the point of irrelevance
<hfp>
deryl: Isn't what gemsets are for?
<havenwood>
hfp: Yes, and that's the usual way people use it--just RVM. But RVM is over 20,000 lines of shell code, so as you can imagine it's not a simple tool. On the other hand chruby is just under 100 lines of code and it's quite simple.
george2 has joined #ruby
<deryl>
no, gemsets are for creating bundler-like environments. we're talking the tool, not the toolset it provides
<hfp>
havenwood: Right. So you use RVM to install Ruby and then chruby or RVM to switch rubies?
<havenwood>
hfp: Or you can use ruby-install to install Rubies. But it doesn't support precompiled binaries (yet, though there's a branch that experiments with implementing it).
wolf4ood has quit [Quit: (null)]
arup_r has quit [Remote host closed the connection]
x1337807x has joined #ruby
<hfp>
havenwood: Interesting, thanks
AlexRussia has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
tyll_ has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 250 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
tyll has joined #ruby
goodenough has joined #ruby
CustosL1men has quit [Ping timeout: 240 seconds]
krz has joined #ruby
dain has joined #ruby
goodenough has quit [Remote host closed the connection]
nomadic has quit [Ping timeout: 256 seconds]
nomadic has joined #ruby
sargas has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ravster has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ferr has quit [Ping timeout: 245 seconds]
<ReinH>
hfp: chruby + ruby-install is my preferred method
<ReinH>
RVM is too magical and complicated.
AlexRussia has quit [Ping timeout: 256 seconds]
ferr has joined #ruby
AlexRussia has joined #ruby
conniemj has joined #ruby
radic has quit [Ping timeout: 245 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<deryl>
not complicated at all unless you make it so
adriancb has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
mocfive has quit [Remote host closed the connection]
icebourg has joined #ruby
dorei has quit []
<shevy>
source install
<shevy>
that is the only true way
mengu has joined #ruby
mengu has joined #ruby
<deryl>
yep for an unmanaged 1 time install (reinstalling over doesn't constitute management) thats great. Though unless it has a make uninstall managing its removal is a pita
bonhoeffer has joined #ruby
<deryl>
unless you push it to its own dir somewhere you can easily rm -rf and don't allow it to touch *anywhere* else except for maybe a path addition. :)
Soda has quit [Remote host closed the connection]
banister has joined #ruby
bonhoeffer has quit [Client Quit]
mengu has quit [Ping timeout: 244 seconds]
banister has quit [Max SendQ exceeded]
apurcell has joined #ruby
dc_ has joined #ruby
bonhoeffer has joined #ruby
bonhoeffer has quit [Client Quit]
pu22l3r has quit [Read error: Connection reset by peer]
sargas has quit [Quit: This computer has gone to sleep]
bradleyprice has joined #ruby
bonhoeffer has joined #ruby
pu22l3r has joined #ruby
bonhoeffer has quit [Client Quit]
apurcell has quit [Ping timeout: 255 seconds]
devoldmx33 has joined #ruby
agjacome has quit [Quit: leaving]
dain has quit [Quit: dain]
agrinb has joined #ruby
devoldmx27 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx27 has quit [Read error: Connection reset by peer]
pika_pika has joined #ruby
devoldmx has joined #ruby
devoldmx33 has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
VBlizzard has quit [Ping timeout: 255 seconds]
blizzy has quit [Ping timeout: 240 seconds]
Synthead has quit [Disconnected by services]
rshetty has joined #ruby
Synthbread has joined #ruby
ajaiswal has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjmac has quit [Ping timeout: 258 seconds]
kenneth has joined #ruby
Lewix has joined #ruby
yfeldblu_ has joined #ruby
banister has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
jeff-ooh has joined #ruby
banister has quit [Max SendQ exceeded]
armyriad has quit [Ping timeout: 252 seconds]
rockdon has quit [Ping timeout: 258 seconds]
rshetty has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
rshetty has joined #ruby
mjmac has joined #ruby
rockdon has joined #ruby
freerobby has quit [Quit: Leaving.]
jeff-ooh has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
tmroyal has quit [Quit: tmroyal]
dideler has quit [Remote host closed the connection]
dideler has joined #ruby
tmroyal has joined #ruby
elastik has quit [Ping timeout: 245 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmsimha has quit [Ping timeout: 252 seconds]
tmroyal has left #ruby [#ruby]
cibs has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<epitron>
reading the ruby standard library is great too
siwica has quit [Ping timeout: 245 seconds]
<epitron>
the ruby-doc.org lets you see the source to each method
<epitron>
you can learn a lot of good stuff from that
evanjs has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<Scripore>
oh, thanks. I'll check out the standard library then. was just browsing amazon for the 'Ruby Cookbook', looks like the new edition won't be out until March or so.
Rylee has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
<shevy>
here is how you learn ruby
<shevy>
you write code
<shevy>
then you study your own code
<shevy>
ideally after one year
<shevy>
then there are two possibilities:
<smokepoteveryday>
can someone do the test for me?
<shevy>
- you understand what you did
<shevy>
- or you go "wtf did I smoke back then when I wrote this"
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<smokepoteveryday>
i will pay you :)
<epitron>
shevy: you left out a step
<Scripore>
yeah, probably the latter
<epitron>
1. write code, 2. study code, 3. look at how experienced programmers solved it, 4. solve it better
<shevy>
I dunno
<shevy>
I usually wonder wtf did they smoke back then when they wrote this
<epitron>
good programmers write for others to read
<epitron>
if it looks like they were smoking crack, move along
<shevy>
epitron nice naming choice -> epitools
<epitron>
it used to be called "metils" :)
kp666 has joined #ruby
kenneth has joined #ruby
uber_hulk has joined #ruby
parabolize has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
adriancb has quit [Remote host closed the connection]
pu22l3r has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
uber_hulk has left #ruby [#ruby]
sarmiena_ has joined #ruby
boadie has joined #ruby
boadie has quit [Read error: Connection reset by peer]
boadie has joined #ruby
Pattt has quit [Ping timeout: 264 seconds]
hmsimha has joined #ruby
icebourg has quit []
oleo is now known as Guest80215
oleo__ has joined #ruby
psy_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<smokepoteveryday>
i'm tryign to uplad it but it's not letting me one sec
<jaequery>
after i changed from sqlite to mysql, i performed migrations and tables are now all setup on mysql. but, my app still tries to look in sqlite, what could i be missing?
mgberlin_ has joined #ruby
echooo has quit [Read error: Connection reset by peer]
jeff-ooh has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
mclee has quit [Ping timeout: 256 seconds]
arescorpio has quit [Excess Flood]
mgberlin has quit [Ping timeout: 244 seconds]
psyprus has quit [Ping timeout: 258 seconds]
pu22l3r has quit [Read error: No route to host]
pu22l3r has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psyprus has joined #ruby
jeff-ooh has quit [Ping timeout: 264 seconds]
<deryl>
probably forgot to modify your config/database.yml if this is a rails app
<deryl>
or add the mysql2 gem to Gemfile and rerun bundle install
sevenseacat has joined #ruby
<shevy>
smokepoteveryday don't be lazy, learn ruby
<smokepoteveryday>
i'm not being lazy i am working my ass off
<smokepoteveryday>
it's just hard for me
<smokepoteveryday>
i want to understand and i want someone to do my homework so i can see how it's done
parduse is now known as Guest30702
ponga has quit [Quit: Leaving...]
pardusf has joined #ruby
<shevy>
coding requires thinking
psyprus has quit [Ping timeout: 258 seconds]
<smokepoteveryday>
so does smoking weed
psyprus has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
<shevy>
nah
Guest30702 has quit [Ping timeout: 258 seconds]
<shevy>
but it's a good example of weeders being unable to code
<smokepoteveryday>
smoking weed takes concentration and finesse it's a skill very few people know how to do
<shevy>
that is a lie
<epitron>
most people who smoke weed smoke it too much
<epitron>
you should only smoke it once a week
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron>
its benefits become outweighed by its detriments when smoked too often
<shevy>
he is already lazy
josephndenton has joined #ruby
<smokepoteveryday>
epitron: that is a lie, you should smoke every time you're not high
<shevy>
can't get worse than this
<epitron>
THE ABC's OF SMOKING WEED
mgberlin_ has quit [Read error: Connection reset by peer]
<epitron>
A- ALWAYS
<epitron>
B- BE
<epitron>
C- CANNABISFUL
Takle has joined #ruby
<smokepoteveryday>
right now i'm high and it's wearing off so i am about to smoke another joint because there's nothing better than being high
mgberlin has joined #ruby
<smokepoteveryday>
did you know that when you smoke weed it's hard to remember stuff because the brain is building new brain cells?
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<deryl>
thats patently false
kith_ has joined #ruby
<smokepoteveryday>
so if you can remember stuff while high it will give you a retention rate of over 1500%
shanlar- has joined #ruby
<smokepoteveryday>
that's why it's important to smoke weed while studying
armyriad has quit [Ping timeout: 240 seconds]
shanlar has quit [Read error: Connection reset by peer]
swistak35 has quit [Read error: Connection reset by peer]
lbrf has quit [Read error: Connection reset by peer]
kenneth has quit [Read error: Connection reset by peer]
matled has quit [Read error: Connection reset by peer]
matled has joined #ruby
swistak35_ has joined #ruby
AdamMeghji has quit [Ping timeout: 245 seconds]
amitchellbullard has quit [Ping timeout: 245 seconds]
helpa has quit [Ping timeout: 245 seconds]
hfp has quit [Ping timeout: 245 seconds]
palantir has quit [Ping timeout: 245 seconds]
kenneth_ has joined #ruby
JDHankle has quit [Ping timeout: 240 seconds]
ryotarai has quit [Ping timeout: 240 seconds]
lbrf has joined #ruby
ferr has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
Adran has quit [Excess Flood]
ryotarai has joined #ruby
JDHankle has joined #ruby
deryl has quit []
Morkel has joined #ruby
davidcelis has quit [Excess Flood]
hamakn has quit [Read error: Connection reset by peer]
hfp has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
swistak35_ is now known as swistak35
kith has quit [Ping timeout: 240 seconds]
AdamMeghji has joined #ruby
amitchellbullard has joined #ruby
Adran has joined #ruby
smokepoteveryday has quit []
Kabaka has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
Apocalypse has quit [Ping timeout: 240 seconds]
maxmanders has quit [Ping timeout: 240 seconds]
julieeharshaw has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Ping timeout: 240 seconds]
scottyob has quit [Ping timeout: 240 seconds]
spacemud_ has joined #ruby
wjimenez5271_ has joined #ruby
ta_ has joined #ruby
zeusmns_ has joined #ruby
crodas has joined #ruby
Davey has quit [Excess Flood]
n3b has quit [Ping timeout: 240 seconds]
crazysim has quit [Ping timeout: 240 seconds]
tdubellz has joined #ruby
Davey has joined #ruby
tdubellz has quit [Client Quit]
kevinfagan_ has joined #ruby
eregon has quit [Quit: No Ping reply in 180 seconds.]
eregon has joined #ruby
yeltzooo9 has joined #ruby
palantir has joined #ruby
scottyob has joined #ruby
ta has quit [Read error: Connection reset by peer]
spacemud has quit [Ping timeout: 245 seconds]
wjimenez5271 has quit [Ping timeout: 245 seconds]
zeusmns has quit [Ping timeout: 245 seconds]
Nilium has quit [Ping timeout: 245 seconds]
kevinfagan has quit [Ping timeout: 245 seconds]
lest has quit [Ping timeout: 245 seconds]
yeltzooo has quit [Ping timeout: 245 seconds]
yosafbridge has quit [Ping timeout: 245 seconds]
adeponte has quit [Ping timeout: 245 seconds]
brixen has quit [Ping timeout: 245 seconds]
adam12 has quit [Ping timeout: 245 seconds]
spacemud_ is now known as spacemud
Davey has quit [Changing host]
Davey has joined #ruby
lest has joined #ruby
crazysim has joined #ruby
adeponte has joined #ruby
Nilium has joined #ruby
Apocalypse has joined #ruby
mr_rich101 has joined #ruby
julieeharshaw has joined #ruby
maxmanders has joined #ruby
adam_ has joined #ruby
n3b has joined #ruby
yosafbridge has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
elastik has quit [Ping timeout: 250 seconds]
Channel6 has quit [Quit: Leaving]
mgberlin has joined #ruby
Crazy_Atheist has quit [Ping timeout: 245 seconds]
rohit has joined #ruby
ninabreznik has quit [Ping timeout: 246 seconds]
brixen has joined #ruby
_seanc_ has joined #ruby
sarmiena_ has joined #ruby
icebourg has quit []
Scripore has quit [Ping timeout: 256 seconds]
anaeem1 has joined #ruby
Crazy_Atheist has joined #ruby
wldcordeiro has joined #ruby
Guest90 has joined #ruby
zeusmns_ is now known as zeusmns
_seanc_ has quit [Quit: Leaving.]
mgberlin has quit [Remote host closed the connection]
decoponio has joined #ruby
agrinb has joined #ruby
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
icebourg has joined #ruby
ajaiswal has quit [Quit: Leaving]
agrinb has quit [Ping timeout: 258 seconds]
Irremotus has quit [Read error: Connection reset by peer]
ferr has joined #ruby
kenneth_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
kiyote23 has joined #ruby
econerd4ever has joined #ruby
rektide_ has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
<rektide_>
what alternatives are there if a package tells me to 'bundle install'/ i get a message about not having access to system gems, but i don't understand ho i'm supposed to use --path then launch latter?
ajaiswal has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
arup_r has joined #ruby
arup_r has quit [Client Quit]
roqo has quit [Ping timeout: 258 seconds]
sdwrage has joined #ruby
jaequery has quit [Ping timeout: 258 seconds]
ajaiswal has quit [Remote host closed the connection]
Kricir has joined #ruby
phutchins has joined #ruby
roqo has joined #ruby
lbrf has quit [Quit: Be back later ...]
jaequery has joined #ruby
ajaiswal has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
roqo has quit [Changing host]
roqo has joined #ruby
yfeldblum has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
mjmac has joined #ruby
rockdon has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
claw has joined #ruby
mikeric has quit []
psyprus has joined #ruby
<havenwood>
rektide_: RubyGems can be setup with a user install where you don't need sudo or a system-wide install where you do. RubyGems has a `--user-install` option to install in the user's home directory when GEM_HOME is a system location.
<havenwood>
rektide_: No matter where GEM_HOME is, you can use `--path` with Bundler, and Bundler will remember it.
evanjs has joined #ruby
<havenwood>
rektide_: Just like it remembers `--deployment`.
<havenwood>
rektide_: or `--system` to go back to the system location, overriding the `--path` selection.
sarmiena_ has quit [Quit: sarmiena_]
kapil__ has joined #ruby
rohit has quit [Quit: Leaving]
kiyote23 has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
volk__ has joined #ruby
volk_ has quit [Ping timeout: 256 seconds]
volk__ is now known as volk_
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
commmmodo has quit [Quit: commmmodo]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
MuffinPimp has quit [Ping timeout: 240 seconds]
rockdon has quit [Ping timeout: 258 seconds]
pwnz0r has joined #ruby
nicolastarzia has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
mikeric has joined #ruby
MuffinPimp has joined #ruby
Obfuscate has quit [Ping timeout: 250 seconds]
mengu has quit [Ping timeout: 244 seconds]
econerd4ever has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nicolastarzia has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
rockdon has joined #ruby
claw has quit [Ping timeout: 258 seconds]
josephndenton has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
tobago has joined #ruby
dx7iso has quit [Ping timeout: 256 seconds]
pu22l3r has quit [Remote host closed the connection]
commmmodo has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renderful has joined #ruby
juni0r has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
agrinb has joined #ruby
armyriad has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
CrazyM4n has quit [Quit: Leaving]
oo_ has joined #ruby
rexunyzarc has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 258 seconds]
supersym has joined #ruby
deric_skibotn has joined #ruby
chinmay_dd has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
havenwoo_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
icebourg has quit []
jenrzzz has joined #ruby
havenwoo_ has quit [Ping timeout: 244 seconds]
commmmodo has quit [Quit: commmmodo]
fenzil has joined #ruby
codecop has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
mikeric has quit []
dseitz has joined #ruby
phutchins has joined #ruby
MartynKeigher has quit [Ping timeout: 240 seconds]
MartynKeigher has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
mclee has joined #ruby
anaeem1_ has joined #ruby
supersym has quit [Ping timeout: 240 seconds]
TheNet has quit [Quit: Leaving...]
phutchins has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
PhilS has quit [Quit: leaving]
ips|malc has joined #ruby
gokul has joined #ruby
evanjs has quit [Remote host closed the connection]
picassoo has quit [Ping timeout: 265 seconds]
volk_ has quit [Quit: volk_]
Macaveli has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
rshetty has joined #ruby
Guest90 has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 258 seconds]
jeff-ooh has quit [Ping timeout: 244 seconds]
MuffinPimp has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
Rylee has quit [Ping timeout: 250 seconds]
fenzil has quit [Changing host]
fenzil has joined #ruby
rshetty has quit [Remote host closed the connection]
Macaveli has joined #ruby
<arup_r>
I wrote this doc.search("//ul[@class='menu-catalog']/li[position() > 1 and position()<8]/a[1]").count and working.. How to write it using CSS selector.. specially I don't know equivalent CSS rule of this li[position() > 1 and position()<8]
sevenseacat has quit [Remote host closed the connection]
agrinb has joined #ruby
MuffinPimp has joined #ruby
SOLDIERz has joined #ruby
Rylee has joined #ruby
rshetty has joined #ruby
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
lkba has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
mengu has joined #ruby
mengu has joined #ruby
boadie has quit [Remote host closed the connection]
xhoy has quit [Remote host closed the connection]
oleo has joined #ruby
Guest90 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<epitron>
ooo.. sublime ctags works decently with ruby now
rimantas has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Ping timeout: 256 seconds]
Techguy305|2 has quit [Ping timeout: 252 seconds]
yeticry has quit [Ping timeout: 255 seconds]
dumdedum has joined #ruby
yeticry has joined #ruby
chinmay_dd has joined #ruby
echooo has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
bigkevmcd has joined #ruby
anarang has joined #ruby
bigkevmcd has quit [Client Quit]
bigkevmcd has joined #ruby
devoldmx has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
adriancb has quit [Ping timeout: 255 seconds]
despai has joined #ruby
bigkevmcd has quit [Client Quit]
bigkevmcd has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
bigkevmcd has quit [Client Quit]
wldcordeiro has quit [Quit: Leaving]
_Andres has joined #ruby
einarj has joined #ruby
rohit has quit [Quit: Leaving]
einarj has quit [Remote host closed the connection]
brahmadpk has joined #ruby
anarang has quit [Quit: Leaving]
jeff-ooh has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
nicolastarzia has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
PierreRambaud has joined #ruby
nicolastarzia has quit [Ping timeout: 258 seconds]
fenzil has quit [Read error: Connection reset by peer]
rshetty has quit [Ping timeout: 245 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
pu22l3r has joined #ruby
ajaiswal has quit [Remote host closed the connection]
ajaiswal has joined #ruby
Spami has joined #ruby
rshetty has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
agrinb has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
rshetty has quit [Remote host closed the connection]
Stoge88 has joined #ruby
anarang has joined #ruby
rshetty has joined #ruby
jenrzzz has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
sigurding has joined #ruby
x1337807x has joined #ruby
einarj has joined #ruby
jheg has joined #ruby
arup_r has quit [Remote host closed the connection]
mxweas has joined #ruby
mxweas has quit [Client Quit]
mxweas has joined #ruby
pwnz0r has quit [Remote host closed the connection]
sk87 has joined #ruby
Jackneill has joined #ruby
Megtastique has quit []
sdwrage has joined #ruby
chinmay_dd has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
cantonic has quit [Quit: cantonic]
phutchins has joined #ruby
cantonic has joined #ruby
yfeldblum has joined #ruby
charliesome has quit [Quit: zzz]
phutchins has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
Akagi201 has joined #ruby
jheg has quit [Quit: jheg]
bradleyprice has quit [Remote host closed the connection]
arup_r has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
LouisRoR has joined #ruby
rshetty has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
Soda has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
aswen has joined #ruby
s00pcan has quit [Client Quit]
Takle has joined #ruby
charliesome has quit [Quit: zzz]
s00pcan has joined #ruby
s00pcan has quit [Client Quit]
s00pcan has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
charliesome has joined #ruby
webgen has joined #ruby
webgen has quit [Client Quit]
CustosL1men has joined #ruby
rshetty has joined #ruby
CustosL1men has quit [Changing host]
CustosL1men has joined #ruby
alex88 has joined #ruby
charliesome has quit [Client Quit]
rshetty_ has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
rshetty_ has joined #ruby
ta has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
alex88 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
AFKGeek has joined #ruby
alex88 has joined #ruby
arup_r_ has joined #ruby
lolmaus has joined #ruby
jmdade has joined #ruby
startupality has quit [Quit: startupality]
alex88_ has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
_5kg has quit [Ping timeout: 244 seconds]
sevvie has quit [Quit: leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
gr33n7007h has joined #ruby
dumdedum has quit [Quit: foo]
supersym has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
phutchins has joined #ruby
shortCircuit__ has joined #ruby
ajaiswal has quit [Remote host closed the connection]
<shortCircuit__>
hi
renderful has quit [Ping timeout: 258 seconds]
<jameswatling>
hello
testcore has quit [Ping timeout: 250 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
<shortCircuit__>
I have a question, .map{|u| u.to_i} and .map(&:to_i) nearly does the same kind of thing, but in the second case, is it passing a block to the map function, In general for passing a block as parameter I have seen &args in the parameter list
phutchins has quit [Ping timeout: 240 seconds]
<apeiros_>
shortCircuit__: &:to_i passes a block to map too
mengu has joined #ruby
<apeiros_>
the block just gets constructed a bit differently
rshetty has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
bloudermilk has joined #ruby
lbrf has joined #ruby
<avril14th>
shortCircuit__: what's the trouble
reinaldob has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
<shortCircuit__>
I can't understand how the yeild works, how are parameters passed to block. I only know that if a function has an yeild block and if I call the function with a block {} then the yeild returns returns the o/p of the block.
<avril14th>
yield means: give back the hand to the block we're passed.
agrinb has joined #ruby
lbrf has quit [Ping timeout: 240 seconds]
<avril14th>
so def meth; yield end <-- is a method that takes a block to which the hand will be passed. The block is mandatory
kedare has quit [Quit: WeeChat 0.4.2]
<avril14th>
you can pass params to the block like "yield param_a, param_b", etc.
<shortCircuit__>
ok
<avril14th>
I think the online doc for all this is thorough
<shortCircuit__>
ok, now if I do a meth{|x| x*x} what happens?
<workmad3>
shortCircuit__: also be careful with your understanding... when you're dealing with Enumerator.new, you get passed an object 'y' which is an Enumerator::Yielder... that implements a normal method called 'yield' which is *not* the same as the built-in keyword 'yield' used for invoking an implicit block
<shortCircuit__>
ow
msgodf has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 258 seconds]
agrinb has quit [Ping timeout: 258 seconds]
fella7s has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
fella7s has joined #ruby
<avril14th>
shortCircuit__: your code will fail since x is not defined and passed to the block
neoxquick has quit [Read error: Connection reset by peer]
<workmad3>
shortCircuit__: but that doesn't provide access to them for the entire method you pass the block to
pgmcgee has quit [Ping timeout: 240 seconds]
<gr33n7007h>
yield is faster then &block
dangerousdave has quit [Ping timeout: 272 seconds]
<shortCircuit__>
let me digest it :P
shaman42_ has quit [Ping timeout: 240 seconds]
shaman42 has joined #ruby
<gr33n7007h>
yield = implicit, &block = explicit
_5kg has joined #ruby
<avril14th>
shortCircuit__: yeah it's like closure, except you don't need the self invoking whizzbang and it's nicer to read/write (<troll>like all JS code...</troll>)
QKO has quit [Ping timeout: 240 seconds]
<shortCircuit__>
:P
<avril14th>
shortCircuit__: you can test if an implicit block was passed by calling block_given? method.
<workmad3>
shortCircuit__: 'some_local' inside 'meth' will be a NameError
AFKGeek has quit [Read error: Connection reset by peer]
<workmad3>
err, NoMethodError even
rodfersou has quit [Read error: Connection reset by peer]
<workmad3>
but the block, which is yielded to, will have access to some_local
rodfersou has joined #ruby
WildBamboo-Josh has quit [Read error: Connection reset by peer]
WildBamboo-Josh has joined #ruby
siwica1 has quit [Remote host closed the connection]
<shortCircuit__>
so meth knows about foo but yeild doesn't .
siwica has joined #ruby
mengu has joined #ruby
aspiers has joined #ruby
<workmad3>
shortCircuit__: tbh, you should probably just play around with them to get an idea for what you can and can't do
jrhe has joined #ruby
<shortCircuit__>
ok
bloudermilk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
shortCircuit__: IRC isn't a good place to really disseminate in-depth knowledge... it's pretty obvious the explanations are just muddying the waters, and you need to try things out
surs has joined #ruby
<surs>
I installed rubybook (the package on debian). How do I access it?
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
yfeldblum has joined #ruby
Guest64 has joined #ruby
tkuchiki has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
artmann has quit [Remote host closed the connection]
<JovanJ>
Hi everyone :) I am pretty new to ruby, I wonder what program I can use to write a ruby? or is there something else that I can use it?
lbrf has quit [Ping timeout: 250 seconds]
agrinb has quit [Ping timeout: 258 seconds]
<avril14th>
JovanJ: you mean editor?
sevenseacat has joined #ruby
<JovanJ>
avril14th yes, or whatever do you use for a ruby.. Sorry so dumb question :)
<avril14th>
I use rubymine as an editor
druznek has joined #ruby
<avril14th>
but any text editor will do
AlexRussia has quit [Ping timeout: 264 seconds]
<avril14th>
excep ms word
<JovanJ>
Thank you. I heard for a Django, what do you think about it?
<shevy>
JovanJ I use bluefish 1.0.7; the more important thing is that you know what to use in ruby so it would be more important to know the main classes like class String than which editor
supersym has joined #ruby
<JovanJ>
shevy , thank you. I am curious about everything, I hope so I'll get into classes to...
lkba has joined #ruby
<shevy>
class Foo; end
<shevy>
there you go
<shevy>
add methods to it!
kirun has joined #ruby
aclearman037 has joined #ruby
<JovanJ>
Thanks ^^
<JovanJ>
There is a way to make a site with a ruby?
TPBallbag has joined #ruby
<avril14th>
oh yyes there is baby
<avril14th>
plenty of ways, but the most known one is called ruby on rails
DrCode has joined #ruby
TPBallbag has quit [Remote host closed the connection]
brahmadpk has joined #ruby
siwica has joined #ruby
claptor has quit [Quit: this channel is bakas]
<shevy>
JovanJ you can write .cgi scripts
<shevy>
though the ruby cgi in stdlib is not much fun to use
AlSquire has joined #ruby
DrCode has quit [Excess Flood]
<shevy>
JovanJ this is how I currently use .cgi in ruby; abbreviations are t() for title() http://pastie.org/9794137, w {} is a shortcut for web_object
DrCode has joined #ruby
<apeiros_>
sooo, what next? transactions or migrations?
keen___________9 has joined #ruby
msgodf has joined #ruby
<shevy>
migactions!
keen___________8 has quit [Ping timeout: 244 seconds]
<workmad3>
apeiros_: transactions
<sevenseacat>
migrationsss
zorak8 has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 265 seconds]
<workmad3>
apeiros_: an ORM without migrations is still usable, you just need to create the schema manually... an ORM without transactions is pretty crippled :)
<apeiros_>
mhm. since create migrations work already… I'd say transactions.
<apeiros_>
also they're more fun
blizzy has quit [Ping timeout: 258 seconds]
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VBlizzard has joined #ruby
zorak8 has joined #ruby
VBlizzard is now known as blizzy
<workmad3>
apeiros_: additionally, you can then use your transactions inside your migrations for databases that have transactional DDL :)
<apeiros_>
workmad3: iirc DDL statements are not transactional in pg
<apeiros_>
at least I'm very sure they aren't in oracle
<workmad3>
apeiros_: wrong
<workmad3>
apeiros_: pg has transactional DDL
<apeiros_>
did they recently (after pg8) change that?
<apeiros_>
and: noice! didn't know
RaCx has quit [Quit: Computer has gone to sleep.]
MartynKeigher has quit [Read error: Connection reset by peer]
<workmad3>
apeiros_: no idea when it got introduced... it's just always been there for me :)
Spami has quit [Quit: This computer has gone to sleep]
<workmad3>
apeiros_: I basically noticed when ActiveRecord implemented the use of transactional DDL in dbs that supported it
JovanJ has quit [Quit: Leaving]
yeticry has quit [Ping timeout: 244 seconds]
<apeiros_>
the other alternative would be to set up tests and benchmarks (ips & gc). I'm curious how it will stand up against AR & Sequel. even though comparing an incomplete system is somewhat unfair. (then again - that also means almost zero optimizations)
<apeiros_>
na… transactions first.
<workmad3>
apeiros_: yeah, transactions first
chinmay_dd has joined #ruby
nateberkopec has joined #ruby
mxweas has joined #ruby
yeticry has joined #ruby
<workmad3>
apeiros_: also, are you going to support any form of nested transaction? :)
mostlybadfly has joined #ruby
<apeiros_>
workmad3: of course
bloudermilk has joined #ruby
<apeiros_>
pg afaik has savepoints
<workmad3>
yeah
<workmad3>
prepared statements?
<apeiros_>
unnested transactions is sooo rails 2
<apeiros_>
prepared statements are low level. you can use the native pg connection to do that.
<apeiros_>
the orm uses it at the moment only for Model.id(num) type queries
jds has joined #ruby
<workmad3>
that was more what I was meaning :)
<apeiros_>
that said… I'm not sure whether pg gem always uses prepared statements when using bind variables
<apeiros_>
one thing I'm not so sure about: multiple .order's
<apeiros_>
multiple ways to solve it: a) order(…).order(…) -> raise AlreadyOrdered
<workmad3>
replace or concat?
<apeiros_>
b) order(a).order(b) -> ORDER BY b, a # lifo
<apeiros_>
c) order(a).order(b) -> ORDER BY a, b # fifo
mxweas has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 256 seconds]
<sevenseacat>
i would say c
<workmad3>
b seems counter-intuitive to me... I'd be tempted by a or c, or d) .order(a).order(b) -> ORDER BY b #replace
<apeiros_>
at the moment I favor a variant of a), which would be: require_order (disallows reordering) + order (allows reordering, raises on double order), reorder (overrides previous order/reorder)
<sevenseacat>
or d
codecop has quit [Ping timeout: 240 seconds]
druznek has quit [Quit: Leaving]
<sevenseacat>
yeah activerecord uses reorder
<apeiros_>
workmad3: well, be is "last one issued wins". it's certainly the most intuitive if you have e.g. scopes which contain orders. example: User.some_default_scope.order(my_order)
<apeiros_>
be -> b)
yeticry has joined #ruby
<sevenseacat>
default scope is always a special case
<apeiros_>
sevenseacat: any scope can order
antgel has quit [Quit: leaving]
<apeiros_>
so when you do an explicit order as the last statement and the data is not ordered by that statement - that's unintuitive to me. was a bit of a refute re workmad's "b seems counterintuitive". IMO it depends.
<workmad3>
apeiros_: ah yeah... if the order statements aren't local to each other, I can see what you mean
max96at|off is now known as max96at
<apeiros_>
the idea behind require_order is that if you design a scope which depends on order, you can enforce it. avoids "random" bugs
<workmad3>
apeiros_: I quite like the require_order... but I'd probably then just have reorder as order tbh :)
<apeiros_>
example of requiring an order: I had a couple of statistical methods on my models which I split up into multiple scopes. some of the scopes prepared the right order of data.
shredding has joined #ruby
<workmad3>
ok, must go get something to eat
AlexRussia has joined #ruby
codecop has joined #ruby
mengu has quit [Remote host closed the connection]
RaCx has joined #ruby
iamninja has joined #ruby
<avril14th>
HOLIDAYS!!!!!!!!!!!
avril14th has quit [Remote host closed the connection]
St_Marx has joined #ruby
jeanlinux has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
ernetas has left #ruby [#ruby]
yeticry has joined #ruby
<apeiros_>
avri14th starts holidays with a battle cry :D
phutchins has joined #ruby
pika_pika has joined #ruby
nicolastarzia has joined #ruby
p0wn3d_mhs has joined #ruby
dideler has left #ruby ["undefined"]
nicolastarzia has quit [Ping timeout: 240 seconds]
commmmodo has quit [Quit: commmmodo]
xymbol_____ has joined #ruby
sk87 has joined #ruby
Techguy305 has joined #ruby
rbrs has quit [Quit: Leaving]
rexunyzarc has quit [Remote host closed the connection]
TPBallbag has joined #ruby
brahmadpk has joined #ruby
agrinb has joined #ruby
dstarh has joined #ruby
PierreRambaud has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
ernetas has joined #ruby
<ernetas>
Hey guys.
<ernetas>
Any ideas why delayed_jobs workers are running only on 1 CPU?
apurcell has joined #ruby
<ernetas>
(all cores of that CPU)
tus has joined #ruby
<ernetas>
This is on Linux, by the way.
<apeiros_>
it probably runs in one process?
<ernetas>
No.
olivier_bK has quit [Ping timeout: 264 seconds]
<ernetas>
There are 24 processes, only 12 cores are utilized, all from the same CPU.
jeanlinux has quit [Remote host closed the connection]
<apeiros_>
if it's multiple processes, and your OS doesn't schedule them on multiple cores, I'd say your OS is fucked up.
rudisimo has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
<ernetas>
apeiros_: it's not that issue.
lbrf has joined #ruby
<apeiros_>
scheduling processes is outside of ruby ernetas. that's the OS' duty.
<ernetas>
It does schedule them on multiple cores and SMP seems to be working fine. stress --cpu 24 loads all cores.
<ernetas>
apeiros_: yeah, but only Ruby processes somehow suffer from that, so I was wondering if anyone has any ideas.
<shevy>
wheee 12 cores
PierreRambaud has joined #ruby
hiyosi has joined #ruby
apurcell has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
lbrf has quit [Ping timeout: 264 seconds]
krz has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
nw has joined #ruby
arya_ching has joined #ruby
tuelz has joined #ruby
<tuelz>
what all files should be appended in a .gemspec? Literally everything inside my gem root that is related to the gem or should I only include stuff that is code?
jerius has joined #ruby
lxsameer has quit [Quit: Leaving]
arya_ching has quit [Client Quit]
<shevy>
what does that mean
<shevy>
what does "what all files should be appended" mean. what files? do you mean documentation?
<shevy>
there are several fields to use, for instance, executables go with s.executables
<shevy>
yeah I dunno why matz did not think about distributed addons; mruby initially also had no support for gems, but I think you can somehow compile them into your mruby interpreter or something like that https://github.com/mruby/mruby
m8 has joined #ruby
beef-wellington has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<Areessell>
You make an MRuby gem with a rake file that has the spec in it, and it compiles right after your base MRuby system
anarang_ has quit [Quit: Leaving]
<Areessell>
It detects what's been changed too so if you only change one file in one MRuby gem, that's all that gets compiled on the next build
<shevy>
cool
yfeldblum has quit [Ping timeout: 264 seconds]
MartynKeigher has joined #ruby
tkuchiki has joined #ruby
anarang has joined #ruby
allcentury has joined #ruby
yfeldblu_ has quit [Ping timeout: 258 seconds]
jerius has quit []
<shevy>
that's going to wait for me for next year
<shevy>
C + mruby
<Areessell>
You don't really need C for MRuby, you can write pure MRuby gems
<Areessell>
I made one that's a very simple database model using the mruby-mysql and mruby-sqlite gems
droidburgundy has joined #ruby
chrisja has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
saltsa has joined #ruby
dblessing has joined #ruby
sankaber has joined #ruby
TPBallbag is now known as Ballkenende
Ballkenende is now known as TPBallbag
pu22l3r has joined #ruby
tier has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sankaber_ has joined #ruby
j2p2 has joined #ruby
sankaber has quit [Ping timeout: 245 seconds]
kish` has quit [Read error: Connection reset by peer]
<Areessell>
2
BTRE has quit [Ping timeout: 240 seconds]
kish has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
fandi has quit [Read error: Connection reset by peer]
fandi_ has joined #ruby
zacts has quit [Quit: leaving]
kiyote23 has joined #ruby
kish has quit [Read error: Connection reset by peer]
<apeiros_>
interesting. PG allows (non-SQL conformant) multiple savepoints with the same name. that'd make nesting savepoints quite easy.
kish has joined #ruby
tus has quit [Ping timeout: 265 seconds]
<apeiros_>
could just use `SAVEPOINT <framework>_<pid>_<thread-id>`
startupality has quit [Quit: startupality]
<wasamasa>
shevy: I don't find it that surprising considering where he stole the implementation details from
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<shevy>
nah
Synchunk has quit [Ping timeout: 240 seconds]
<shevy>
I think it was the same thing with php, pear wasn't there from the beginning
MuffinPimp_ has joined #ruby
<shevy>
and I think early python did not have ... how do they call it? eggs? hehehehe
MuffinPimp has quit [Read error: Connection reset by peer]
MuffinPimp_ is now known as MuffinPimp
MissionCritical has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
<shevy>
do you guys think this is human understandable?
<shevy>
screenshot | save to /Depot/Images | crop 100 25
Synchunk has joined #ruby
cantonic has joined #ruby
anaeem1 has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
MasterPiece has quit [Quit: Leaving]
agrinb has joined #ruby
pandaant has quit [Remote host closed the connection]
kish has quit [Changing host]
kish has joined #ruby
BTRE has joined #ruby
TPBallbag is now known as Ballkenende_
Ballkenende_ has quit [Disconnected by services]
Ballkenende_ has joined #ruby
Ballkenende_ is now known as TPBallbag
<DefV>
shevy: no
<DefV>
crop 100 25
<DefV>
nu clue what 100 or 25 is
yfeldblum has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
dumdedum has quit [Quit: foo]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
bradland has joined #ruby
<apeiros_>
oh, trollol, I forgot to implement Model#delete :D
MissionCritical has joined #ruby
t_p has joined #ruby
adriancb has joined #ruby
n1lo has joined #ruby
Menorah has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3>
apeiros_: the biggest flaw in most ORMs is the way it lets you delete data whenever you want, IMO
<apeiros_>
elaborate?
nateberkopec has quit [Quit: Leaving...]
<workmad3>
apeiros_: </joke>
startupality has quit [Quit: startupality]
<apeiros_>
oh wow, you got me quite confused (but interested) there :D
<workmad3>
apeiros_: ;)
<apeiros_>
anyway, transactions almost done
<workmad3>
yay
<apeiros_>
so I have: create migration, scopes, belongs_to, has_many, relation chaining, transactions. still missing: remove a couple of assumptions (like "id" column, primary key being an int), full migrations, joins, aggregations, a couple of datatypes. and probably a thousand other things.
startupality has joined #ruby
pandaant has joined #ruby
<workmad3>
yeah, primary key == int is an assumption that would break my current project (all IDs are UUIDs :) )
evanjs has joined #ruby
josephndenton has joined #ruby
nw has left #ruby ["WeeChat 1.0"]
Guest64 has joined #ruby
<apeiros_>
well, UUID is an int :-p
startupality has quit [Client Quit]
<apeiros_>
just one with a fancy standard format
<workmad3>
heh :)
<workmad3>
postgres has a separate type for it
<apeiros_>
I know
<apeiros_>
I plan to natively support it
<apeiros_>
along with most datatypes and a few custom composite types
<workmad3>
ah, so more copying of activerecord? :)
Kricir has quit [Remote host closed the connection]
<apeiros_>
oh, AR supports UUID now? (didn't stay current as we don't use pg at work)
dumdedum has joined #ruby
<workmad3>
yeah, rails 4 brought in native uuid support for pks, 4.2 extends that to allow easier specification of fks as uuids
<workmad3>
create_table :whatevers, id: :uuid do ... end
<apeiros_>
ah yeah, proper fk support… that's also a thing.
dorei has joined #ruby
enebo has joined #ruby
<workmad3>
it even spits out the CREATE EXTENSION line if needed into the schema :)
<apeiros_>
heh
<apeiros_>
I have a db setup task which creates everything necessary
<apeiros_>
including roles, schemas, framework tables
<apeiros_>
even the database if needed
<workmad3>
I should probably specify fk relationships in my migrations, thinking about it
<workmad3>
(4.2 introduced them into core as well)
<apeiros_>
my coworkers hated a bit on me when I started explicitly marking fk's
volk_ has joined #ruby
<apeiros_>
they couldn't just delete stuff anymore :D
rektide_ has left #ruby [#ruby]
<workmad3>
hehe
<workmad3>
'how dare you make sure we don't bork our data!"
<apeiros_>
^^
<apeiros_>
yeah, well, they *did* delete correctly. just not necessarily in the right order.
<workmad3>
not right order == not correctly ;)
<apeiros_>
now that I say that… I wonder whether you could just throw all deletes into a transaction…
<apeiros_>
trudat. the end result tended to be correct ;-)
<workmad3>
correct as long as the process didn't randomly die part way through? or db crashed and recovered into a bad state? :)
<apeiros_>
yes
<apeiros_>
dying randomly part way through is recoverable :)
<apeiros_>
well, the other thing too
Scripore has joined #ruby
<apeiros_>
it's just more annoying than doing it right from the beginning.
amundj has joined #ruby
<apeiros_>
hrm, I fear I won't get much work done this week. brother comes over for a few days. I sense lots of gaming & arduino.
startupality has joined #ruby
devdazed has joined #ruby
freerobby has joined #ruby
nateberkopec has joined #ruby
josephnd1nton has joined #ruby
dtordable has joined #ruby
Pupeno has quit [Remote host closed the connection]
Channel6 has joined #ruby
lbrf has joined #ruby
rshetty has quit [Remote host closed the connection]
Pupeno has joined #ruby
hamakn has quit [Remote host closed the connection]
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
jenrzzz has joined #ruby
last_staff has quit [Quit: last_staff]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
kish has quit [Changing host]
kish has joined #ruby
lbrf has quit [Ping timeout: 240 seconds]
Kabaka has quit [Read error: Connection reset by peer]
mliqu has joined #ruby
mliqu has quit [Remote host closed the connection]
mliqu has joined #ruby
kiyote23 has quit [Remote host closed the connection]
volk_ has quit [Quit: volk_]
cantonic has quit [Quit: cantonic]
bkulbida has joined #ruby
kiyote23 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
iamninja has quit [Ping timeout: 250 seconds]
shortCircuit__ has quit [Remote host closed the connection]
vt102 has joined #ruby
startupality has quit [Quit: startupality]
kiyote23 has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
momomomomo has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
rudisimo has quit [Ping timeout: 252 seconds]
siwica has quit [Ping timeout: 245 seconds]
sigurding has quit [Quit: sigurding]
axl_ has joined #ruby
siwica has joined #ruby
nicolastarzia has joined #ruby
mliqu has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
SOLDIERz has quit [Quit: Be back later ...]
_beechnut has joined #ruby
mliqu has joined #ruby
tesaf has joined #ruby
siwica has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
gsd has joined #ruby
Kricir has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
bkulbida has quit [Quit: bkulbida]
nicolastarzia has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
asteve has joined #ruby
Pupeno_ has joined #ruby
charliesome has quit [Quit: zzz]
<shevy>
I forgot
<shevy>
when I invoke a .rb file standalone
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dtordable>
shevy![1~
<shevy>
which variable should I use to address that file? both __FILE__ and $PROGRAM_NAME give me the same result
<dtordable>
shevy!
<shevy>
are you the freebsd dude
<dtordable>
somewhat tbat
<dtordable>
lol
<dtordable>
*that
Pupeno has quit [Ping timeout: 265 seconds]
<apeiros_>
shevy: __FILE__ is the file, $PROGRAM_NAME is the executed file. they'll differ in a require.
<shevy>
hmm
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
<apeiros_>
if you e.g. run a.rb, and a.rb requires b.rb, then in b.rb __FILE__ == "b.rb" and $PROGRAM_NAME == "a.rb"
agrinb has joined #ruby
<apeiros_>
that's why people use `if __FILE__ == $PROGRAM_NAME`
AndyBotwin has joined #ruby
<shevy>
aha!
sambao21 has joined #ruby
arup_r has quit [Quit: Leaving.]
DadoCe has quit [Remote host closed the connection]
<apeiros_>
bradland: I'm being silly and try to avoid method calls :)
<shevy>
whether it finishes or not depends on whether there will be errors or not
<dtordable>
thanks, "dude"
<shevy>
you can however also manually download .gem files; I do that locally, so I can just use an USB stick to add all gems even if I don't have internet connection up
<dtordable>
so... you mean that I'm fucked without executing that command=
<bradland>
haha, i like to use the $_ variables just to keep the kids off the street :)
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
<shevy>
it is the command to install a .gem dtordable - how else do you want to install a .gem file?
<dtordable>
so... you mean that I'm fucked without executing that command?
<dtordable>
ok
<shevy>
I don't mean you are "fucked" in any way. If you do not install a gem, you can not use it. Seems logical right?
<dtordable>
have to make a pranayama thing
startupality has joined #ruby
<shevy>
is that indian curry pizza
giuseppesolinas has joined #ruby
<dtordable>
well
<dtordable>
I'll see
Macaveli has quit [Ping timeout: 258 seconds]
<dtordable>
but after that I got a good news for you shevy
<dtordable>
lol
<dtordable>
I
<dtordable>
have
<dtordable>
WGET!!!!!!!!
<dtordable>
hahaha
<bradland>
dtordable: what are you trying to accomplish? if you really have some specific need, you can use gems without “installing” them to your system.
Lucky__ has joined #ruby
<dtordable>
so what it serves for a gem without installing it?
mxweas has quit [Ping timeout: 272 seconds]
<bradland>
i don’t know how to answer that question. i don’t know what you’re trying to accomplish.
<dtordable>
installing rails
jenrzzz has joined #ruby
<bradland>
you are trying to install rails?
adriancb has quit [Remote host closed the connection]
studiotate has joined #ruby
<dtordable>
yeah, somewhaT
<bradland>
so why do you want to avoid using rubygems?
<bradland>
it’s possible to do, but it will involve some pain.
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dtordable>
bradland: my connection is a pain definitely
<dtordable>
and getting a dependent gem
<dtordable>
it just don't install a dependency gem
<dtordable>
so I'm following master shevy
agjacome has joined #ruby
<dtordable>
in order to acomplish this task
<dtordable>
lol
<dtordable>
for now... I got rubygems installed
<dtordable>
I upgraded rubygems
<bradland>
ok, so when you try to install gems, the poor connection causes many errors, which eventually causes rubygems to fail.
<bradland>
is that correct?
<dtordable>
and after that I'm
<dtordable>
yes
agrinb has joined #ruby
<bradland>
ok, so i have a couple of ideas
<dtordable>
you got reason
<dtordable>
you're a clever man
aswen has quit [Ping timeout: 245 seconds]
<dtordable>
lol
<bradland>
probably the best is to mirror the gems locally
<dtordable>
aha
<dtordable>
my tactic of gem by gem is useful
<bradland>
that’s the other possible method
<dtordable>
gem that I need gem that I download
<bradland>
wget all the gems and simply install them from the individual files
<dtordable>
and after all
<dtordable>
yeah yeah
<dtordable>
that method is obvious
<dtordable>
lol
jenrzzz has quit [Ping timeout: 240 seconds]
<bradland>
that’s basically what the gem mirror would do, but it’s more automated
<dtordable>
the problem
<bradland>
and should be more resiliant to network issues
<dtordable>
look this
<dtordable>
9243648 (8,8M)
<bradland>
once you’ve got copies of the gems you need, you can use that mirror in any environment where you need the gems
<dtordable>
that's an impossible size to me
allcentury has quit [Ping timeout: 264 seconds]
<bradland>
your connection cannot download 8,8M?
<dtordable>
my connection fails in around 3%
<dtordable>
lol
obscured has joined #ruby
<bradland>
what country are you in? maybe there is a fellow Ruby programmer who can “sneaker net” some gems to you.
russt has joined #ruby
<bradland>
“sneaker net” means to put files on a USB drive and carry them over to you :)
<dtordable>
nah
<dtordable>
I'm lost in Madrid
<dtordable>
in a stupid place called Spain
s00pcan_ has quit [Ping timeout: 240 seconds]
<dtordable>
and my connection is crap
<dtordable>
for what I pay, I mean IRC
<dtordable>
it works
<bradland>
yeah, without a decent connection, you’re sunk
<bradland>
you gotta get your hands on the gem files somehow
<dtordable>
bradland: listen to me
mroach has quit [Quit: mroach]
<dtordable>
in some days
<dtordable>
around 26 of month
behrz has quit [Quit: Leaving]
agrinb has quit [Ping timeout: 258 seconds]
<dtordable>
the connection switchs to a "I'm incredibly fast" mode
<dtordable>
and for around 1 GB
<dtordable>
it is really fast
<dtordable>
lol
snath has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
<shevy>
dtordable the problem with rails is that there are lots of individual gems
Hanmac has quit [Ping timeout: 244 seconds]
<deepy>
and that it takes a long time to load
<shevy>
hehe
<dtordable>
so...
<dtordable>
am I fucked?
<dtordable>
lol
<shevy>
dtordable the good news is - the amount of gems is finite. so if you do 1 gem at a time, one day you'll have finished ;)
<shevy>
no you are not "fucked"
<deepy>
dtordable: it really depends, which one of you got custody?
<shevy>
you just have a long path ahead of you. start now, then you can finish sooner.
<shevy>
but actually
nateberkopec has quit [Quit: Leaving...]
<shevy>
don't you have faster internet connection in your country?
<bradland>
without a connection that can download 10MB reliably, yes, you’re fucked.
<dtordable>
yeah yeah
renderful has joined #ruby
<dtordable>
there are huge connections out there
techsethi_ has joined #ruby
barderer has joined #ruby
lbrf has joined #ruby
<dtordable>
but my earns don't pay them
<shevy>
we have cheap flatrate for about 20 euro per month
<dtordable>
lol
<dtordable>
yeah yeah
<dtordable>
I know that
<bradland>
i’d talk to someone at a university
icebourg has joined #ruby
<shevy>
and I never have connection issues (when I can connect that is, but I can connect like 99.99% of the time)
<dtordable>
but as a connection I use a mobile phone
<bradland>
see if you can get the gems downloaded there, and run a mirror
Aryasam has joined #ruby
<dtordable>
that gives me connection
<shevy>
k mobile phone
<bradland>
that way you’re not relying on a network to `bundle install`
<shevy>
don't you have a normal computer?
_beechnut1 has joined #ruby
<dtordable>
no no
<dtordable>
my computer is not normal
<shevy>
yeah
* dtordable
uses FreeBSD
Aryasam has quit [Client Quit]
<dtordable>
now laugh!
<dtordable>
hahahaha
<shevy>
but even freebsd can be fast
<bradland>
nothing wrong with freebsd
n008f4g_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<certainty>
hmm shen can run on ruby as it seems
<dtordable>
look
<shevy>
bradland he did not know how to download something from the commandline!
<dtordable>
if I get the gems tru the server
gheegh has joined #ruby
<dtordable>
I have the gems
<dtordable>
and I can download them by file
tkuchiki has joined #ruby
_beechnut has quit [Ping timeout: 240 seconds]
behrz has joined #ruby
<gheegh>
hey all.. quick question. Does anyone know of a gem you can use to track the history of changes of an object, activerecord or otherwise?
GaryOak_ has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anarang has quit [Quit: Leaving]
<gheegh>
I'm looking ot have some sort of history available for object changes.. for class instances stored in an ElasticSearch database.
behrz has quit [Read error: Connection reset by peer]
russt has quit [Quit: russt]
<gheegh>
well, it's not activerecord.. but i'll look.. :-)
behrz has joined #ruby
larissa has quit [Quit: Leaving]
<bradland>
ah, ok. thought you said activerecord in the original question.
tkuchiki has quit [Ping timeout: 245 seconds]
<shevy>
gheegh git!!!
behrz has quit [Read error: Connection reset by peer]
<shevy>
does activerecord actually record any history on changed objects?
behrz has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gheegh>
yeah, AR is interesting, but a lot of the places where we do this, there's no activerecord.. exploring this though.. thanks.. I know that was almost a "let me google that for you" moment.. so thanks. :-)
RealMarc has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
<apeiros_>
shevy: it only keeps track of changes between what was received from the db and what is in the object now
<apeiros_>
everything going beyond that you have to write yourself
tier has quit [Remote host closed the connection]
<mostlybadfly>
Hello all
sambao21 has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
Pattt has joined #ruby
<mostlybadfly>
I got a quick question. I'm using a custom class with some add and update type methods to run 2 or 3 examples
hydrozen has joined #ruby
sambao21 has joined #ruby
CustosL1men has quit [Ping timeout: 265 seconds]
<mostlybadfly>
To call the information saved for an "acct" I would need to use a hash(or some sort of array) or have stored it in a db correct?
behrz has quit [Ping timeout: 265 seconds]
vivek_ has joined #ruby
n80 has quit [Quit: n80]
behrz has joined #ruby
<apeiros_>
mostlybadfly: your question implies tons of contextual knowledge about what you do. if you want any useful answer, provide that information.
<apeiros_>
"add and update type methods" -> no idea what that's supposed to be
<apeiros_>
"to run 2 or 3 examples" -> no idea what that's supposed to be
<apeiros_>
"acct" -> no idea what that's supposed to be
<mostlybadfly>
Ok
<apeiros_>
"save" -> what do you understand as "save"?
<mostlybadfly>
I'll have to formulate some examples. I cant give the exact thing I'm looking at
<mostlybadfly>
I'll think of it and ask better I suppose
Hanmac has joined #ruby
behrz_ has joined #ruby
n80 has joined #ruby
<apeiros_>
without meaningful information: having a hash or array is very much totally different from storing something in a db.
pengin has joined #ruby
<apeiros_>
hash/array is in memory. stored in db *usually* means on disk.
behrz has quit [Read error: Connection reset by peer]
behrz has joined #ruby
Daneel has joined #ruby
<Daneel>
hi there
adriancb has joined #ruby
<mostlybadfly>
Yeah I'm ultimately planning to do both. Using s hash now for the 2 or 3 entries I have
fenzil has joined #ruby
<mostlybadfly>
I'll do a summary example and ask in a bit
kiyote23 has quit [Remote host closed the connection]
vivek_ has left #ruby ["Leaving"]
<Daneel>
i am not a ruby devel. But i try to concat an array elements in a string variable. how to do this ?
behrz_ has quit [Read error: Connection reset by peer]
behrz has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
Pattt has joined #ruby
studiotate has quit [Ping timeout: 258 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 245 seconds]
behrz has joined #ruby
behrz_ has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
deryl has joined #ruby
studiotate_ has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
startupality has quit [Quit: startupality]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prasselpikachu_ is now known as prasselpikachu
akaiiro has joined #ruby
skrite has joined #ruby
cantonic has quit [Client Quit]
n80 has quit [Quit: n80]
nicolastarzia has joined #ruby
n80 has joined #ruby
<Daneel>
this syntax is it possible ? @search_list.join(" ")
stunder has quit [Remote host closed the connection]
Akuma has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
cantonic has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
ij has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
olivier_bK has quit [Ping timeout: 245 seconds]
josephnd1nton has quit [Ping timeout: 255 seconds]
<certainty>
Daneel: it is
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<j2p2>
you'll get the spaces between them though
<Daneel>
certainty: thank you
davedev24_ has joined #ruby
<Daneel>
is it is possible. my problem was in erb file
kiyote23 has quit [Remote host closed the connection]
<certainty>
but syntactically it's perfectly fine
startupality has joined #ruby
behrz_ has joined #ruby
nicolastarzia has quit [Ping timeout: 244 seconds]
behrz has quit [Read error: Connection reset by peer]
russt has joined #ruby
studiotate has joined #ruby
mxweas has joined #ruby
snath has quit [Remote host closed the connection]
agrinb has joined #ruby
jheg has quit [Quit: jheg]
russt has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 1.0.1]
v0n has joined #ruby
pietr0 has joined #ruby
behrz_ has quit [Read error: Connection reset by peer]
behrz has joined #ruby
thumpba has joined #ruby
mxweas has quit [Ping timeout: 255 seconds]
evanjs has quit [Remote host closed the connection]
momomomomo has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 258 seconds]
evanjs has joined #ruby
momomomomo has quit [Client Quit]
aclearman037 has joined #ruby
gsd has joined #ruby
russt has joined #ruby
anaeem1 has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
jaequery has joined #ruby
Guest64 has joined #ruby
snath has joined #ruby
allcentury has joined #ruby
mweshi has joined #ruby
triple_b has joined #ruby
n80 has quit [Quit: n80]
chinmay_dd has quit [Quit: Leaving]
snath has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
tvw has quit []
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarmiena_ has joined #ruby
burritocat is now known as santacat
n80 has joined #ruby
thoughnut has quit [Ping timeout: 244 seconds]
thumpba has quit [Remote host closed the connection]
droidburgundy has quit [Ping timeout: 264 seconds]
goodenough has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
Takle_ has joined #ruby
goodenough has quit [Client Quit]
momomomomo has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
startupality has quit [Quit: startupality]
AndyBotwin has quit [Quit: Leaving]
gsd has joined #ruby
tobago has quit [Remote host closed the connection]
ghostmoth has joined #ruby
saltsa has quit [Ping timeout: 250 seconds]
SHyx0rmZ has quit [Ping timeout: 264 seconds]
behrz has quit [Remote host closed the connection]
thumpba has joined #ruby
behrz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Peterman_ has joined #ruby
n80 has quit [Quit: n80]
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
russt has quit [Quit: russt]
DEA7TH has joined #ruby
behrz_ has joined #ruby
devdazed has joined #ruby
behrz has quit [Read error: Connection reset by peer]
jerius has joined #ruby
mweshi has quit [Ping timeout: 258 seconds]
niftylettuce has joined #ruby
s00pcan_ has joined #ruby
thoughnut has joined #ruby
<DEA7TH>
I have two Time objects, and I want to take the difference in seconds between them, but taking only the time - without the date and year. Is there a method for that?
<apeiros_>
DEA7TH: normalize the times first.
<DEA7TH>
In general, I would like my Time object to behave like a Time, rather than DateTime, if that is available
<apeiros_>
i.e. create a third time using the first's hour/minute/second and the seconds year/month/day
sambao21 has joined #ruby
n80 has joined #ruby
<apeiros_>
no, there's no "time only" class in ruby core/stdlib
<DEA7TH>
sigh...
<DEA7TH>
you mean set their dates to be equal?
DadoCe has quit [Remote host closed the connection]
<dtordable>
shevy: I got that nokogiri gem installed
tier has joined #ruby
<dtordable>
retrying
mattmcclure has joined #ruby
shuber_ has quit [Remote host closed the connection]
Peterman_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<dtordable>
shevy: continues with dependencies!
<cruisibesares>
hey all i have been trying to build a static version of the ruby binary like this project https://code.google.com/p/pts-mini-gpl/wiki/StaticPython but for ruby I have been having a hell of a time getting it to work. Has anyone ever done this successfully or know of a good tutorial?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
maestrojed has joined #ruby
sk87 has quit [Client Quit]
DadoCe has joined #ruby
deepy has joined #ruby
stunder has joined #ruby
supersym has quit [Quit: WeeChat 1.0.1]
Takle_ has quit [Remote host closed the connection]
<havenwood>
cruisibesares: RVM has an option for statically compiling. It uses the SM framework, as does Tokaido (a project for static Ruby on OS X). You might want to ask in #rvm.
renderful has joined #ruby
shredding has joined #ruby
chrishough has joined #ruby
shredding has quit [Client Quit]
commmmodo has quit [Quit: commmmodo]
<havenwood>
cruisibesares: I'm sure mpapis in #rvm could answer questions when he's around.
einarj has quit [Remote host closed the connection]
<havenwood>
cruisibesares: Or you could use SM framework yourself, like RailsInstaller, Tokaido and RVM do.
mattwildig has quit [Remote host closed the connection]
chrishough has joined #ruby
freerobby has joined #ruby
mattwildig has joined #ruby
thumpba has quit [Remote host closed the connection]
mattwildig has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
DadoCe has quit [Remote host closed the connection]
thumpba has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan__ has quit [Ping timeout: 256 seconds]
davedev2_ has quit [Ping timeout: 258 seconds]
behrz has quit [Remote host closed the connection]
davedev24_ has joined #ruby
jpstokes has joined #ruby
gsd has joined #ruby
perturbation has joined #ruby
DLSteve has joined #ruby
gsd has quit [Client Quit]
mattwildig has joined #ruby
<jpstokes>
When running my test I get a duplicate entry error. I'm thinking Database cleaner can help to fix this but I'm using it now and I"m still getting the error. Here's my test_helper file: https://gist.github.com/6124219cefa169f3f411
<jpstokes>
btw...I'm running rails minitests
arietis has joined #ruby
behrz has joined #ruby
Synthbread is now known as Synthead
<havenwood>
jpstokes: What's the error? Usually the best place for Rails questions is #rubyonrails.
mattwildig has quit [Remote host closed the connection]
<jpstokes>
hmmmm your right
Guest64 has joined #ruby
<jpstokes>
error message: The following errors were found: Domain is already taken
AlSquire has quit [Quit: Quitte]
gsd has joined #ruby
mxweas has joined #ruby
<shevy>
do you guys sometimes seem to have phantom errors in ruby?
<shevy>
like when you assume your code does one thing, yet something else happens?
<havenwood>
shevy: Heisenbugs!
<shevy>
yeah
mattwildig has joined #ruby
<GaryOak_>
is that introduced by the type system, maybe?
<crome>
the worst bit is when I expect tests to break after a change and they don't
adriancb has joined #ruby
<shevy>
havenwood for some of these bugs, I am able to trace back where they originated, like when I had old gems being loaded
mattwildig has quit [Remote host closed the connection]
<shevy>
but some other bugs are more of a mystery to me
yfeldblum has joined #ruby
asmodlol has joined #ruby
gsd has quit [Ping timeout: 245 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
georgesmith has quit [Quit: georgesmith]
Takle has joined #ruby
giuseppesolinas has joined #ruby
<GaryOak_>
I've had some name collision bugs where requires were overwriting variables
kiyote23 has joined #ruby
<havenwood>
shevy: Stop writing bugs, they can be hard to find once you do!
<havenwood>
:P
<shevy>
hehehe
<shevy>
but the thing is! it was a tiny class
<shevy>
I made sure the input was correct
nicolastarzia has joined #ruby
<shevy>
but somehow, when I used it in the class method variant, suddenly one input became nil
<shevy>
and there was nothing in the code I could find where it could have been reset to nil
Scripore has quit [Ping timeout: 250 seconds]
<GaryOak_>
the ole 'turned into nil' bug, that's a ruby classic
yfeldblum has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
Takle has quit [Read error: No route to host]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
<shevy>
well I am rewriting it all and add tests
Takle has joined #ruby
gcoeki has quit [Remote host closed the connection]
<crome>
shevy: just use debug puts
<crome>
it solves everything
<shevy>
that's what I thought too
<shevy>
but those damn mysterious nils ruined that!
<shevy>
ok, singular. only one nil
<dtordable>
hey shevy
nicolastarzia has quit [Ping timeout: 250 seconds]
<dtordable>
I got a command called "rails" on my computer, shevy, did I acomplished the job?
Guest93887 has joined #ruby
<shevy>
dtordable possibly. did you invoke it yet? anyway, don't ask me about rails I don't use it, the rails guys are on #rubyonrails if you wanna learn rails
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<shevy>
then go learn ruby first
thumpba has quit [Remote host closed the connection]
<mostlybadfly>
what i'm wondering about is and i guess it is a sanity check for me: do I reinitialize to do a change_food or can i run it like i have it written , making sure to update the hash?
tenseiten has joined #ruby
<shevy>
I don't understand you. you said you have no time to learn ruby, but you continue trying to get rails installed
<mostlybadfly>
also is there a better way to represent the variable or is it ok to make it a constant?
tenseiten has quit [Changing host]
tenseiten has joined #ruby
<havenwood>
mostlybadfly: it's not okay to make it a constant, since it isn't constant
<shevy>
but we can change constants in ruby!
<shevy>
hence their name
<shevy>
:-)
<havenwood>
can but shouldn't!
nateberkopec has joined #ruby
<shevy>
haha
<mostlybadfly>
thanks havenwood is there a better way to represent it so it is available throughout a class?
<shevy>
apeiros loves it when we change constants
<mostlybadfly>
i kinda felt that it was wrong
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dtordable>
shevy: it's obvious that I can be crazy and my psyquiatric says so lol
<shevy>
mostlybadfly if it is in a hash, you could always query the hash for the value right?
<dtordable>
shevy: so let me have some sex with this computer
<shevy>
like: (a) MY_CONSTANT = 'britney spears' or (b) def my_constant?; hash['britney spears']; end
<havenwood>
mostlybadfly: or you're saying you want it available to all instances of the class?
reinaldob has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
<mostlybadfly>
havenwood: i guess that is my confusion. for example i'm assuming i initialize to add to the hash, so then this would mean that I am to do the same when i want to change correct?
crdpink has quit [Quit: q term]
agrinb has joined #ruby
<mostlybadfly>
for example, i'm basically just updating the hash in line in the method
<mostlybadfly>
instead of using the instance variables
mbeasley has quit [Quit: WeeChat 0.4.2]
seitensei has quit [Ping timeout: 272 seconds]
mbeasley has joined #ruby
sea_local has quit [Remote host closed the connection]
<mostlybadfly>
i guess if i place the hash in there, that kind of answers my question
msmith has joined #ruby
frem has joined #ruby
<mostlybadfly>
i'll modify so it is an instance variable under def initialize and see where that gets me
alex88 has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
fabrice31 has joined #ruby
<havenwood>
mostlybadfly: Seems you're conflating the NameList with a Name. Your `Names` class seems like it's the NameList, so the accessor for :name and :favorite_food are confusing.
allcentury has joined #ruby
<havenwood>
mostlybadfly: Is it a list of names? What should that expose to the outside?
agrinb has quit [Ping timeout: 272 seconds]
Synthead has joined #ruby
gsd has joined #ruby
<mostlybadfly>
I was trying to make a dumb example since I cant give the exact thing
kenneth has joined #ruby
<mostlybadfly>
I guess I'm trying to get to a point where I can make changes to the values in the hash
Guest64 has joined #ruby
momomomomo has joined #ruby
gsd has quit [Client Quit]
<mostlybadfly>
But I see what you're saying
dopie has quit [Remote host closed the connection]
<mostlybadfly>
I should have :name with options depending on what is being changed and update a hash under the def initialize method
<mostlybadfly>
name
AlbertoCG has quit [Quit: Leaving]
<havenwood>
mostlybadfly: just an aside, but you probably don't want to convert a user-inputted String into a Symbol. pre-ruby-2.2 you could munch up all the memory by creating a ton of Symbols.
<havenwood>
mostlybadfly: If it's a favorite food list, I'd call it that.
<mostlybadfly>
Ah I see ok
<mostlybadfly>
Won't be a need once I fix it I think
<mostlybadfly>
Was over complicating it as usual
asmodlol has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
Guest93887 is now known as mattwildig
asmodlol has joined #ruby
momomomomo has quit [Quit: momomomomo]
Darryl__ has quit [Quit: Connection closed for inactivity]
Megtastique has quit []
freerobby has quit [Quit: Leaving.]
sea_local has joined #ruby
Bira has quit [Client Quit]
codezomb has joined #ruby
frog|OFF is now known as green-big-frog
pika_pika has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Remote host closed the connection]
gfawcettpq has quit [Ping timeout: 244 seconds]
Bira has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
mattwildig has quit []
anaeem1 has quit [Remote host closed the connection]
Takle has joined #ruby
momomomomo has joined #ruby
CrazyM4n has joined #ruby
fabrice31 has joined #ruby
maestrojed has quit [Read error: Connection reset by peer]
maestrojed has joined #ruby
fabrice31 has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
fabrice31 has joined #ruby
geggam has joined #ruby
snath has joined #ruby
anaeem1 has joined #ruby
Bira has quit []
<ghostmoth>
this is likely a biased place to ask this question, but here goes: has anybody who has worked professionally with python and ruby noticed that python devs tend to get “clever” with code more often than ruby devs?
arietis has joined #ruby
<ghostmoth>
the kind of clever where you’re like “how the hell is this view working?”
rbennacer has joined #ruby
<ghostmoth>
“and why is it architected like this? there is nothing too complex going on overall.”
studiotate has joined #ruby
crdpink has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
<rbennacer>
hello
rshetty has quit [Remote host closed the connection]
<ghostmoth>
i’ve workd 90% in the python community and just a little in ruby, but i’ve observed this
<lbrf>
ghostmoth: well, they're different languages with differents functionalities...
rshetty has joined #ruby
<wasamasa>
ghostmoth: no
anaeem1 has quit [Remote host closed the connection]
<ghostmoth>
i probably just have a particular slice of experience that isn’t indicative of a general trend
<ghostmoth>
i’m just curious
mary5030 has quit [Remote host closed the connection]
<ghostmoth>
i feel frustrated with python a lot and likely have a “grass is always greener” attitude
mary5030 has joined #ruby
<havenwood>
ghostmoth: i really viscerally prefer Ruby, dunno why
studiotate has quit [Ping timeout: 244 seconds]
<havenwood>
well, i know some reasons why but there's an element of aesthetic preference as well
anaeem1 has joined #ruby
duggiefresh has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<ghostmoth>
the differences in the actual languages are “meh” to me, i like both for different reasons. i guess when i say “python” and “ruby” what i’m really talking about are the communities behind them and their tendencies
rshetty has quit [Remote host closed the connection]
DadoCe has joined #ruby
freerobby has joined #ruby
<eam>
ghostmoth: true of developers in general
tjohnson has joined #ruby
renderful has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
phutchins has quit [Ping timeout: 240 seconds]
tus has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
s00pcan_ has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dtordable>
fixing incredible stupid fails without knowledge of Ruby/Rails...
<waxjar>
CrazyM4n: sure
studiotate has quit [Ping timeout: 258 seconds]
<CrazyM4n>
kk
<Wolfram74>
I'm poking around benchmark-ips for the first time
Synchunk` has joined #ruby
Guest64 has joined #ruby
blizzy has quit [Ping timeout: 240 seconds]
<Wolfram74>
and I've got this algorithm that has a pre-processing step, but I don't know how the benchmark is handling it, it kind of looks like it isn't.
<shevy>
dtordable well most options should be documented via "ruby --help"
<dtordable>
yeah, I saw that!
<dtordable>
but now a cigarette! hahaha
<waxjar>
Wolfram74: the block is just executed over and over and then it counts how many times it has executed in (by default) 5 seconds
<waxjar>
so, depends on what you do in the block
<Wolfram74>
so it ignores everything outside of that block, including global variables?
asmodlol has quit [Ping timeout: 245 seconds]
<waxjar>
it doesn't benchmark them, no
<waxjar>
it can use them, obviously
Synchunk has quit [Ping timeout: 240 seconds]
Synchunk` is now known as Synchunk
<Wolfram74>
that's the thing i'm concerned about, because it's giving me undefined variable errors, so I'm not seeing that it does
<waxjar>
you're testing with random input, so results are bound the be skewed?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<waxjar>
and you're using a local variable there, which isn't visible in the scope of the fibo_find2 method
mleung has quit [Quit: mleung]
<Wolfram74>
90% of the numbers will be between 1 billion and 10 billion, so it won't be too skewed
<Wolfram74>
and when I run fibo_find2 outside of the context of benchmark, it sees fib_store
alicanyilmaz has joined #ruby
<Wolfram74>
I made an assumption about accessibility of local variables
nicolastarzia has joined #ruby
<Wolfram74>
I'll slap a dollar sign on them, just to be sure
<alicanyilmaz>
Guys i was mobile app developer at .net and i have experience in c#, would you recommend me to lern rails and ruby or can you give me instructions to how learn ruby and rails?? Books, video tutorials, etc. thanks
dseitz has joined #ruby
aef has quit [Remote host closed the connection]
sea_local has joined #ruby
renderful has quit [Remote host closed the connection]
<Wolfram74>
waxjar: i am correct in assuming that it chooses a new random number each time it tests, right?
<Wolfram74>
not like, fib1 will get some 9 digit beast, and fib 2 will check to see if 5 is a fibonacci number?
RedDwarf has joined #ruby
studiotate has joined #ruby
aef has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
Zackio has quit [Ping timeout: 245 seconds]
<shevy>
alicanyilmaz the name is "Ruby on Rails" http://rubyonrails.org/ - so when you write "rails and ruby" and when you write "ruby and rails", what exactly do you mean really?
<Areessell>
Well, you gotta learn Ruby to learn Rails, so I suppose he wants to learn both
<shevy>
the rails-centric people are on the channel #rubyonrails
momomomomo_ has joined #ruby
RedDwarf has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
nicolastarzia has quit [Ping timeout: 264 seconds]
<shevy>
some people use rails without knowing ruby!
<Areessell>
Err she? I should avoid pronouns
mliqu has joined #ruby
<waxjar>
yes, which is not what you want if you're benchmarking
<waxjar>
you're testing different implementation with different inputs. you won't be getting results you can compare
<waxjar>
*implementations
<waxjar>
Wolfram74: that's very possible. why do you want to test with random inputs in the first place?
<Areessell>
How would someone implement a controller action without knowing Ruby? O_o
djbkd has quit [Remote host closed the connection]
Zackio has joined #ruby
conniemj has joined #ruby
<shevy>
you'd be surprised!
<shevy>
they will apply a factory pattern
djbkd has joined #ruby
agrinb has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
<Wolfram74>
waxjar: I wanted to attempt for at least a semblence of representative sampling, and since the input space was just integers, I decided to integers at random
boadie has quit [Remote host closed the connection]
DivineEntity has quit [Ping timeout: 252 seconds]
<Wolfram74>
waxjar: I got the full thing working by making those referenced variables global, and i ran it twice and got very similar results, so I think the random selector is re-rolling each cycle
n1lo has quit [Quit: Leaving]
renderful has joined #ruby
asmodlol has quit [Ping timeout: 258 seconds]
conniemj_ has joined #ruby
conniemj has quit [Ping timeout: 272 seconds]
asmodlol has joined #ruby
gsd has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
IrishGringo has joined #ruby
DivineEntity has joined #ruby
last_staff has quit [Quit: -,-]
<waxjar>
they're still random, so you cannot learn anything from the results
<Areessell>
lol
<RDash>
Does ruby support lazy programmers?
<Areessell>
Absolutely
alicanyilmaz has left #ruby [#ruby]
<RDash>
great!
* RDash
goes to bed
agrinb has quit [Ping timeout: 258 seconds]
<Areessell>
person.sleep( 12.hours )
econerd4ever has joined #ruby
pwnz0r has joined #ruby
<bricker`work>
12 hours!
commmmodo has quit [Quit: commmmodo]
perturbation has quit [Ping timeout: 245 seconds]
<Areessell>
>_> Don;t judge me
obscured has quit [Quit: leaving]
lesnik_ has joined #ruby
crack_user has joined #ruby
econerd4ever has quit [Remote host closed the connection]
perturbation has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
Blackhol_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
commmmodo has joined #ruby
deepy has quit [Changing host]
deepy has joined #ruby
lbrf has quit [Quit: Be back later ...]
Morkel has quit [Quit: Morkel]
<lesnik_>
HI guys. I tried to load a gem called 'allegro-webapi'. It's on the list. dpiwowarski@dpiwowarski-Vostro-3300:~/ruby/allegro$ gem list|grep allegro
<lesnik_>
allegro-webapi (0.0.1)
sigurding has quit [Quit: sigurding]
<Areessell>
Go on
ChoiKyuSang has joined #ruby
<lesnik_>
but when i try to do require 'allegro-webapi'
econerd4ever has quit [Ping timeout: 244 seconds]
<lesnik_>
I get 'LoadError: cannot load such file -- allegro-webapi'
<Areessell>
You could just `gem list GEM_NAME` by the way
<Areessell>
Some gems do not have filenames (which is what you give as an argument to the require method) that correspond to the gem name
claw_ has joined #ruby
<Areessell>
Yeah the developer for that gem doesnt seem to know much about what they're doing, but if you really want to try using it, try `require 'allegro/webapi'`
<pwnz0r>
i guess i have this one question about test::unit
<pwnz0r>
is there a way to test stdout
<waxjar>
connection to a znc session on the same server is fast, messages are cached so you can still handle them plus you get extra goodies like flood protection and all that :)
mengu has joined #ruby
mengu has joined #ruby
<pwnz0r>
assert_match looks like the best option, but thats for returning strings not puts for example
<atmosx>
pwnz0r: for rails/sinatra I'd for with rspec. For pure ruby (functional or oo-based apps with no framework) I'd go with minitest
<waxjar>
and you don't have to muck about with code reloading! :D
<Areessell>
Use a StringIO and define STDOUT as a new instance of it, then you can test it all you want
<pwnz0r>
atmosx: thanks
<CrazyM4n>
Is ruby pass by value or reference?
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<waxjar>
reference
allcentury has joined #ruby
tuelz has joined #ruby
<CrazyM4n>
That's convenient
doodlehaus has joined #ruby
mjuszczak has joined #ruby
jeanlinux has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
mxweas has quit [Ping timeout: 256 seconds]
shredding has joined #ruby
commmmodo has quit [Quit: commmmodo]
IrishGringo has joined #ruby
pika_pika has joined #ruby
DadoCe has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 264 seconds]
DadoCe has joined #ruby
econerd4ever has joined #ruby
olivier_bK has joined #ruby
jheg has quit [Quit: jheg]
WeiJunLi has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
jrhe has quit [Quit: jrhe]
startupality has joined #ruby
AlexRussia has joined #ruby
shuber_ has quit [Remote host closed the connection]
marr has joined #ruby
startupality has quit [Client Quit]
ixti has joined #ruby
adriancb has quit [Remote host closed the connection]
shuber_ has joined #ruby
agrinb has joined #ruby
_ixti_ has quit [Read error: Connection reset by peer]
econerd4ever has quit [Remote host closed the connection]
Guest64 has joined #ruby
neoxquick has joined #ruby
revoohc has joined #ruby
doodlehaus has quit [Remote host closed the connection]
econerd4ever has joined #ruby
startupality has joined #ruby
zorak8 has joined #ruby
iamninja has quit [Remote host closed the connection]
Guest26597 has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
<pwnz0r>
Areessell: that stringio trick is handy and just what i was looking for. you can then use assert_match to use a regex to test it... perfect.. thanks
larissa has joined #ruby
ixti has quit [Quit: WeeChat 1.0.1]
econerd4ever has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
thisirs` has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
jeanlinux has joined #ruby
jheg has joined #ruby
wjimenez5271_ is now known as wjimenez5271
tenseiten is now known as seitensei
ixti has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
ohaibbq has quit [Quit: Leaving...]
chipotle has quit [Quit: cheerio]
aef has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
lolmaus has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
max96at is now known as max96at|off
cantonic has quit [Quit: cantonic]
iamninja has joined #ruby
dc_ has quit [Remote host closed the connection]
hashpuppy has joined #ruby
<hashpuppy>
what's a concise way to sum the :z keys here: {a: {z: 1}, b: {z: 5}}
Pupeno_ has quit [Read error: Connection reset by peer]
lesnik_ has quit [Ping timeout: 252 seconds]
george2 has quit [Ping timeout: 258 seconds]
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
studiotate has quit [Quit: Computer has gone to sleep.]
thumpba has quit [Remote host closed the connection]
ohaibbq has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
duggiefresh has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
commmmodo has quit [Quit: commmmodo]
maletor has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
beef-wellington has joined #ruby
Guest64 has joined #ruby
sami has left #ruby [#ruby]
commmmodo has joined #ruby
rshetty has joined #ruby
pengin_ has joined #ruby
Scripore has quit [Ping timeout: 245 seconds]
pengin has quit [Ping timeout: 244 seconds]
thumpba has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
amundj has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
agrinb has quit [Ping timeout: 258 seconds]
beef-wellington has quit [Ping timeout: 245 seconds]
livingstn has quit []
freerobby has quit [Quit: Leaving.]
rshetty has quit [Ping timeout: 272 seconds]
devdazed has joined #ruby
commmmodo has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
Akuma has quit [Ping timeout: 240 seconds]
<jidar>
any of you guys have like, real white papers on why linux is a better development platform to develop on for ruby based things? I've got a HR battle incoming in this company full of windows admins
ixti has quit [Ping timeout: 252 seconds]
<jidar>
I can't just write: "because it's better, duh" and have it matter :(
adriancb has quit [Remote host closed the connection]
<tobiasvl>
what are their reasons for switching to windows then?
<tobiasvl>
what's the situation here?
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jidar>
switching? no no, they've been windows since the 90s. I'm trying to influence change for my team who is going to be doing a great deal of ruby (puppet/rspec/beaker/etc)
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jidar>
because of this it's pretty difficult to get a good setup on windows going
adamski2600 has quit []
<jidar>
ie: beaker won't even launch from windows at all
<tobiasvl>
ah ok. well, do you have a linux infrastructure already? or do you want your sysadmins to start supporting linux at your workplace
<tobiasvl>
because that'll be hard
Menorah has quit [Quit: This computer has gone to sleep]
<Hanmac>
jidar decent package management with dependency system ... windows does still lack that
<jidar>
hanmac: I was really hoping for some white papers or some level of verbose documentation regarding the subject.. anything comes to mind/
pandaant has quit [Remote host closed the connection]
Guest64 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Areessell>
How about "I work better in a linux environment and that means it takes me less time to do things, therefore, costs you less money to employ me"
jeanlinux has quit [Remote host closed the connection]
leonmaia has joined #ruby
crack_user has joined #ruby
AlexRussia has joined #ruby
it0a has quit [Ping timeout: 240 seconds]
<zenspider>
jidar: good fucking luck. I spent 3 months negotiating a contract that let me stay off windows once. wasn't worth even taking the job in the long run.
Akuma has joined #ruby
Scripore has joined #ruby
<jidar>
hahahaa
pengin_ has quit [Remote host closed the connection]
<jidar>
zenspider: this is exactly why I'm asking now, rather than before I start this crap, to get the point across that this is important
<zenspider>
it doesn't matter if you have whitepapers.
pengin has joined #ruby
<zenspider>
or any level of rationale
<jidar>
the thing is, our team is going to do it rouge or with upper management support
<jidar>
but we're at least trying to do it properly
<shevy>
jidar you have a lot of programs very easily available on linux. for instance, kde konsole. I have several tabs open in where I can test a lot of stuff quickly on the commandline
<blizzy>
anyone know any good gems that would allow me to interact with a website?
mxweas has joined #ruby
<jidar>
Mechanize
<zenspider>
corporate culture is what is already there, and changing it is incredibly difficult. if they're an MS monoculture, they're not likely to change at all.
<jidar>
shevy: I'm really hoping for more than a few one liners
<zenspider>
this is coming from someone in stone throwing distance from redmond
<blizzy>
thanks, jidar.
<jidar>
somebody who's done some real research on this
<shevy>
jidar if you build up enough one liners you have a full paper
<jidar>
hahaha
<jidar>
zenspider: I'm in the bay, but their culture is awful
rbennacer has quit [Remote host closed the connection]
pengin has quit [Read error: Connection reset by peer]
<jidar>
I'm a consultant, the guys I'm doing this for are in shipping
<zenspider>
shevy: that paper is made up, has no research or references cited. it's more damaging than helpful
<jidar>
spoken like somebody who's already fought this battle and lost
<jidar>
hahaha
pen has joined #ruby
<jidar>
ugh... oh well
startupality has joined #ruby
<jidar>
thanks though
[gmi] has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kiyote23 has joined #ruby
LouisRoR has joined #ruby
<shevy>
I guess people hate doing their dissertation comparing linux to windows
Akuma has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<jidar>
I'm wondering if it's just more common knowledge than something that needs to be proven
DadoCe has joined #ruby
<jidar>
it's a shame I even need to do it
<jidar>
but some people just don't have their heads screwed on properly
mxweas has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
TheRinger_ has joined #ruby
jheg has quit [Quit: jheg]
giuseppesolinas has joined #ruby
ixti has joined #ruby
<TheRinger_>
i'm using sinatra. trying to import a csv file into the database then pull that information into a html file to be published, i want to pull the csv file once a day and delete the old results from the database when i load it.. can anyone point me to a good info block on how to do this
yfeldblum has quit [Ping timeout: 245 seconds]
Guest64 has joined #ruby
DadoCe has quit [Ping timeout: 265 seconds]
mattwildig has quit []
[gmi] has quit [Quit: Leaving]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
snath has quit [Read error: Connection reset by peer]
<shevy>
jidar well how do you want to compare?
<shevy>
one often uses the commandline; the other has a crippled commandline
wolf4ood has joined #ruby
perturbation has quit [Quit: Leaving]
<jidar>
shevy: as a development platform to run and use ruby based programs
<shevy>
yeah so we have a long list of what linux has to offer here
<shevy>
and nothing windows has to offer there
<jidar>
things like, "because it was written on linux" doesn't really help, the respose you'll get is, "well it runs on windows too"
davedev24_ has quit [Ping timeout: 258 seconds]
<shevy>
that would be a sad research paper
<shevy>
what runs on windows too
crack_user has quit [Ping timeout: 252 seconds]
<shevy>
you can run ruby on windows sure enough
<shevy>
you'll simply be slower than people who use linux
<jidar>
yea, scanning for something helpful. thanks again
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tercenya has quit []
sargas has joined #ruby
mary5030 has quit [Remote host closed the connection]
dts|pokeball has joined #ruby
aswen has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
luizbafilho has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
Guest64 has joined #ruby
behrz has quit [Ping timeout: 265 seconds]
KLVTZ has joined #ruby
<KLVTZ>
Do you think it's negative on the ruby community when it comes to how some DevOps solutions are moving to Go?
Matt___ has quit [Quit: Leaving]
agrinb has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
dfinninger has quit []
<shevy>
KLVTZ competition is always negative
ChoiKyuSang has joined #ruby
adriancb has joined #ruby
josephnd1nton has quit [Ping timeout: 264 seconds]
AntonioPls has joined #ruby
AlexRussia has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
aswen has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 258 seconds]
hiyosi has joined #ruby
sargas has joined #ruby
<pontiki>
nonsense
<pontiki>
competition is a net positive
josephnd1nton has joined #ruby
freerobby has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
<pontiki>
if Go works better for DevOps, great! More reason to learn Go
<apeiros_>
competition++
<apeiros_>
survivel of the fittest. if it isn't ruby - sad for ruby. but then that's how it is.
<bradland>
KLVTZ: Not at all. 8 years from now we’ll be reading about how someone is transitioning from Go to $LANG.
klmlfl has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 244 seconds]
<bradland>
Not that Go doesn’t have it’s merits, just that it wasn’t around when they started the project, so how could they have chosen it? As time goes on, language choices get more diverse, and inevitably some use-cases will find a better fit.
havenwood has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 264 seconds]
<KLVTZ>
Where do you guys feel ruby fits best in? It seems it popularized because of rails. But are there any other solutions that ruby fits best in?
<shevy>
in this context coders who could write in ruby
<pontiki>
i use it for command line tools a lot
josephnd1nton has quit [Ping timeout: 256 seconds]
<pontiki>
it's basically taken over what i used to use perl for
<bradland>
Ruby fits well if it solves your problem and its limitations don’t out-weight the benefits/your desire to use it.
<shevy>
KLVTZ ruby existed well before rails too. I started to use ruby before rails existed so whether rails exist or not makes no relevance to my use case. I use ruby for pretty every task that can be computer-automated
<bradland>
Programming languages are tools, not solutions.
* pontiki
applauds bradland
<KLVTZ>
bradlands view is spot-on
<pontiki>
that, right there, is probably the biggest thing
<pontiki>
Go is yet another tool for the toolchest
lmickh has quit [Remote host closed the connection]
<bradland>
Thank you, thank you. I’m here all week. Try the veal.
nfk has quit [Quit: yawn]
<shevy>
toolchest?
<crome>
veal burgers \o/
<pontiki>
the place where one keeps their tools, shevy
<shevy>
the bed!
<bradland>
T’s where I keep my tools. Obvs.
<crome>
someone should create a programming language in which it is totally impossible to create anything but it solves all the problems that are present in other programming languages. it would be the solution, not the tool