x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
wallerdev has joined #ruby
wyman has joined #ruby
bmcorser has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Quit: Computer has gone to sleep.]
codabrink has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 276 seconds]
evenix has joined #ruby
andy___ has quit [Ping timeout: 264 seconds]
wyman has quit [Client Quit]
wyman has joined #ruby
nisstyre has joined #ruby
x77686d has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
Lemur has joined #ruby
Lewix has quit [Remote host closed the connection]
<wallerdev>
Solnse: i find it easier to find things if every class always has its own file
weaksauce has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
afex has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
troyronda has quit [Remote host closed the connection]
marahin has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 252 seconds]
m3nTe has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
dotemacs has quit [Quit: Connection closed for inactivity]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
Bira has joined #ruby
troyronda has joined #ruby
<Firebox>
shevy: Beginning Linux programming 4th edition is good for learning english?
troyronda has quit [Remote host closed the connection]
<Firebox>
learning liunx?
mr_rogerz has joined #ruby
codeFiend has joined #ruby
<terrellt>
Almost for sure not english.
instantaphex has joined #ruby
<instantaphex>
can anyone tell me what the || does in front of an equals sign?
troyronda has joined #ruby
skysploit has quit [Quit: Leaving]
<instantaphex>
for example: @words ||= 0
<terrellt>
>> words = 1; words ||= 2; words
wjimenez5271 has quit [Ping timeout: 265 seconds]
crystal77 has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
<terrellt>
Fine then.
jcs222 has joined #ruby
<terrellt>
<< words = 1; words ||= 2; words
<terrellt>
=(
<terrellt>
instantaphex: Shortcut for "set this variable unless it's set already"
<instantaphex>
ahhh
<terrellt>
eval-in: Why you hatin'?
<instantaphex>
an or seems like a strange way to do that
jjbohn has joined #ruby
<terrellt>
instantaphex: It's a shortcut for words = words || value
kyb3r_ has quit [Ping timeout: 255 seconds]
<instantaphex>
Ohhh
meatherly has joined #ruby
<instantaphex>
now I get it
<instantaphex>
thanks!
razrunelord has quit [Remote host closed the connection]
wyman has quit [Quit: wyman]
Guest89644 has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
stantona has quit [Remote host closed the connection]
<shevy>
Firebox you really should train your english first
<shevy>
make it your primary language for some months
shinobi_one has quit [Quit: shinobi_one]
<Firebox>
ok i see. shevy
<Firebox>
Beginning Linux programming 4th edition is good for learning linux? shevy
kyb3r_ has joined #ruby
fgo has joined #ruby
testcore has quit [Quit: [BX] Uh oh... I'm getting a blip on the gaydar. Richard Simmons is coming!]
rahult has joined #ruby
<shevy>
you should learn english first
<shevy>
then, learn ruby
<shevy>
and after that, go learn linux
jamto11 has quit [Remote host closed the connection]
bradhe has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
troyronda has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 252 seconds]
wyman has joined #ruby
Solnse has quit [Quit: Leaving.]
<Firebox>
english ->ruby->linux?
popl has quit [Ping timeout: 252 seconds]
<Firebox>
english : 3 years, ruby : 2 month, linux : 6 month.
<Firebox>
i think so.
Hanmac has quit [Ping timeout: 264 seconds]
<wallerdev>
you really should use linux before learning ruby
afex has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<terrellt>
See you in three years.
<Lemur>
Those two are pretty well interchangeable.
stantona has joined #ruby
<Lemur>
Linux and Ruby, you need to know both really.
<wallerdev>
well
<Lemur>
well, unix like system. Mac counts too
<wallerdev>
learning ruby on windows is gonna make you hate ruby
<terrellt>
I have to train some student workers here shortly. I'm seriously considering putting them in front of a terminal and unplugging the mouse. 1. Tmux, 2. Vim, 3. Ruby
<Lemur>
leaning anything on windows will make you hate it.
x1337807x has joined #ruby
<wallerdev>
yes get a mac :D
<wallerdev>
at least give them emacs haha
<Lemur>
Mac at work
<Lemur>
Linux at home
<wallerdev>
vim is not good to start on
<Lemur>
Vim + Tmux <3
<wallerdev>
they wont be able to even type lol
<terrellt>
Psh, right in the deep end!
<Lemur>
oi, I started vim
<Lemur>
just give them a good cheat sheet
jeregrine has quit [Quit: Connection closed for inactivity]
djbkd has quit [Remote host closed the connection]
<Lemur>
sublime text is probably the simplest to get people started on.
<Firebox>
i have many anti for 1 day.
<Lemur>
vim if they're already versed in command line.
<Lemur>
I was a sysadmin long before I knew ruby
cjsarette has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
<Lemur>
so me starting to program ruby in vim was a given by that point.
aspires has joined #ruby
<terrellt>
Right in the deep end I say!
vlad_starkov has joined #ruby
<terrellt>
I understand the difficulty, I certainly didn't start this way. I just honestly feel like you have to feel comfortable with the computer, and I think you get that feeling the most when you're hotkeying your way around a tmux session.
tyfighter has quit [Quit: tyfighter]
<Lemur>
show them about mapping caps lock to control and the action key to a
<Lemur>
saves a huge amount of annoyance
stantona has quit [Ping timeout: 252 seconds]
<shevy>
Firebox man, you need 3 years to learn english??? what is your native language?
<Firebox>
japanese
<Lemur>
that, and index starting at 1 for more natural pane selection
pwh has quit []
<terrellt>
Lemur: I have action key set to a, never thought about switching control to caps lock.
<Lemur>
faster for me at least
fgo has joined #ruby
jamto11 has joined #ruby
<Lemur>
keeps me from botching things up when I type too fast as well.
<shevy>
Firebox k, then you would be in good company, matz' english is still not perfect, but his ruby code is excellent
<shevy>
but he uses emacs + linux (debian)
senayar has joined #ruby
<terrellt>
Well I mean
tvw has quit []
<terrellt>
I'd hope Matz' ruby code is good.
<terrellt>
Being his language.
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy>
terrellt not sure, he writes a lot of C every day :\
<shevy>
let me try to find some examples of his ruby in mruby
IceDragon has joined #ruby
<terrellt>
That makes his ruby even better! "This doesn't feel right...oh look new feature, ruby 2.1.2"
<Firebox>
shevy: i think i will stop programming.
<Lemur>
about the same as Guido never claiming to be an expert in Python.
<terrellt>
Nothing about this looks bad. He prefers clear branches instead of inline ifs, but that's in a lot of coding standards.
djbkd has joined #ruby
cjsarette has joined #ruby
<Firebox>
my iq is just 152
<Firebox>
too low
psyko666 has joined #ruby
<terrellt>
Rofl.
eynj has joined #ruby
<terrellt>
And suddenly I'm done with that guy.
<benzrf>
implying thats actually ur iq
senayar has quit [Ping timeout: 252 seconds]
<Lemur>
humblebrag?
<shevy>
Firebox do you really want to waste your life sitting before a computer?
roadie has joined #ruby
x77686d has quit [Quit: x77686d]
<Firebox>
shevy: how can i do? i don’t know really.
<Lemur>
ignoring the irrelevance of iq
<Firebox>
givme advice.
<Firebox>
give me advice
<Firebox>
shevy:
<shevy>
no, that is your freedom to decide what you want to do Firebox
kaspergr_ has joined #ruby
m00nlight has quit [Ping timeout: 240 seconds]
<Firebox>
i study programming for 2 year. now i am too exhausted.
<Lemur>
How old are you anyways?
<shevy>
Firebox then you are simply having a burn out
<Firebox>
i m in university.
meatherly has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
<dnordstrom>
I.e., he could be 16, could be 56.
<Firebox>
oh
wyman has quit [Quit: wyman]
<Firebox>
i m student.
<Firebox>
in university
bradhe has quit [Remote host closed the connection]
Kricir has joined #ruby
wyman has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
<Lemur>
started programming at 8, burned out on PHP. Wanted to become an artist or a musician. went back to programming at 18, doing fine.
<Lemur>
plenty of time to be had.
<Firebox>
i m good till studying hacking, but after studying hacking my life is changed.
<Lemur>
define hacking
cjsarette has quit [Ping timeout: 252 seconds]
<Firebox>
web database hacking and system hacking.
<dnordstrom>
doxing them trolls for the lolz n giggles
<Firebox>
when i good for stduying c, c++, perl, python, php etc,,,,, but all is chaned after studying hacking.
meatherly has quit [Ping timeout: 265 seconds]
<Lemur>
how so?
jlast has joined #ruby
<Firebox>
no confidence.
Lewix has quit [Remote host closed the connection]
<Lemur>
against hacking?
<Firebox>
yes
<Lemur>
you're fine
<Firebox>
and to my life
<Firebox>
and i always think why i study programming
ce_afk is now known as cescalante
<Lemur>
just keep up on trends and it's a non-issue. More often than not it's a matter of common sense and keeping things updating.
<creethy>
Guys, does anyone have experience with Timeout::timeout? I’m using it to limit the time Socket.getaddrinfo may take, but it doesn’t interrupt when the timeout is over. Does anyone know why? I’m building a small DNS forwarder, merely as a learning projeject, and want to make sure things don’t take forever. See https://gist.github.com/fza/4b452fd2c539890aed35
Hanmac1 has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
binaryhat has joined #ruby
Kricir has quit [Ping timeout: 276 seconds]
<dnordstrom>
Practice STD.
skysploit has quit [Ping timeout: 252 seconds]
<dnordstrom>
Stop. THINK. Do. == It's all good.
centipedefarmer has joined #ruby
<Lemur>
Firebox, that's why you have senior programmers
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Firebox>
Lemur: then my skill is good?
<Lemur>
not a clue
<Lemur>
but being paranoid about security is going to drive you insane
<Firebox>
i can hack something.
<Lemur>
don't
<Firebox>
dont do it?
MatthewsFace has quit [Quit: This computer has gone to sleep]
<Lemur>
don't hack anything if it's remotely illegal
Hanmac has quit [Ping timeout: 276 seconds]
<jacky>
^
pwh has joined #ruby
<Firebox>
ok i see.
<Lemur>
not worth it remotely
dik_dak has quit [Quit: Leaving]
pskosinski_ has joined #ruby
terrellt has quit [Quit: Leaving...]
<Lemur>
behave, and keep learning.
<dnordstrom>
Meh, I thought it was "don't hack anything if it's remotely legal, not worth it"
toastynerd has joined #ruby
andy___ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
cjsarette has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
danshultz has joined #ruby
dev_ has joined #ruby
pskosinski has quit [Ping timeout: 272 seconds]
andrewlio has joined #ruby
jlast has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
yubrew has joined #ruby
<Firebox>
Lemur: ok thanks
<Firebox>
i will do it.
voidfire has joined #ruby
<dnordstrom>
Nah, makes sense, I read yesterday about that poor university student who ran LOIC for 2-3 days in the background to assist a DDoS raid for some fun, didn't really know what he was doing. Got prison time.
<havenwood>
Hack the planet!
<shevy>
hack your pants!
<Firebox>
me? s?
<Firebox>
me? shevy ?
<dnordstrom>
On skateboards and rollerblades preferably.
tjsousa__ has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
jamto11 has quit [Remote host closed the connection]
hermanmunster has joined #ruby
<Firebox>
who use vmware?
tjsousa__ has joined #ruby
andrewlio has quit [Client Quit]
tjsousa__ has quit [Read error: Connection reset by peer]
<dnordstrom>
vmware-what?
cjsarette has quit [Ping timeout: 276 seconds]
Hanmac1 has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 264 seconds]
<Firebox>
it is good vmware player in the windows?
<FenixFyreX>
Can anyone explain to me why rb_num2uint is turning up as an undefined reference? I've custom built Ruby-2.1.1 on Windows 7 using mingw.
cjsarette has quit [Ping timeout: 252 seconds]
<FenixFyreX>
I've googled the entirety of the internet about undefined reference to rb_num2uint, nothing has turned up really..not sure why ruby isn't including it as it builds...
djbkd has quit [Remote host closed the connection]
Hanmac has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Es0teric has joined #ruby
Firebox has left #ruby [#ruby]
Es0teric has quit [Max SendQ exceeded]
jonr22 has joined #ruby
dev_ has quit [Read error: Connection reset by peer]
<FenixFyreX>
line 2072 of numeric.c of Ruby's core reads #if SIZEOF_INT < SIZEOF_LONG
codeFiend has quit [Quit: codeFiend]
helpD has quit [Ping timeout: 276 seconds]
x1337807x has joined #ruby
amclain has joined #ruby
dinoex has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
dev_ has joined #ruby
echevemaster has joined #ruby
oo_ has joined #ruby
Es0teric has joined #ruby
creethy has quit [Ping timeout: 265 seconds]
m00nlight has joined #ruby
<FenixFyreX>
My question; why is Ruby 2.1.1 discriminant to builds whose LONG is equal to that of INT
cjsarette has joined #ruby
cescalante is now known as ce_afk
SilkFox has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
m00nlight_ has joined #ruby
existensil has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
dev__ has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
troyronda has joined #ruby
dev__ has quit [Client Quit]
afex has quit [Ping timeout: 240 seconds]
m00nlight has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
sski has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
danijoo has joined #ruby
aspires has quit []
rm__ has quit [Remote host closed the connection]
troyrond_ has joined #ruby
troyronda has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
binaryhat has quit [Quit: Leaving]
aspires has joined #ruby
sski has quit [Ping timeout: 264 seconds]
FenixFyreX has quit [Quit: Page closed]
redondos has quit [Excess Flood]
dapz has joined #ruby
redondos has joined #ruby
rm___ has joined #ruby
Hobogrammer has joined #ruby
rm___ is now known as Guest5920
rm__ has quit [Read error: No route to host]
troyrond_ has quit [Remote host closed the connection]
andy___ has quit [Remote host closed the connection]
stantona has joined #ruby
andy___ has joined #ruby
troyronda has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
Solnse has joined #ruby
x77686d has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
andy___ has quit [Ping timeout: 240 seconds]
goleldar has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x77686d has quit [Client Quit]
alvaro_o has quit [Quit: Ex-Chat]
Soda has joined #ruby
thomasxie has joined #ruby
afex has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
fly2web has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
ddv has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dev_ has quit [Read error: Connection reset by peer]
pen has joined #ruby
yvemath has quit [Ping timeout: 265 seconds]
troyronda has quit [Remote host closed the connection]
Hanmac has joined #ruby
JoeGaudet has joined #ruby
wyman has quit [Quit: wyman]
lmickh has quit [Remote host closed the connection]
Kricir has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ce_afk is now known as cescalante
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
ddv has joined #ruby
MatthewsFace has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
near77 has joined #ruby
<near77>
hi
<near77>
im going crazy
<near77>
using curses in ruby
<near77>
Im not able to destroy the screen
<near77>
and go back to normal inside my script
<fly2web>
:)
<fly2web>
take easy.
danshultz has joined #ruby
<fly2web>
:)
crzrcn has quit [Quit: Leaving.]
pen has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 252 seconds]
<near77>
ahhah
<near77>
its so frustrating
kitak has quit [Ping timeout: 240 seconds]
<near77>
after init_screen
<near77>
its impossible to go back
duggiefresh has quit [Remote host closed the connection]
Guest1866 has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
endash has quit [Quit: endash]
phinfonet has quit []
troyronda has joined #ruby
pen has joined #ruby
reset has quit [Quit: Leaving...]
cescalante is now known as ce_afk
<near77>
or does anyone know how to open a function in ruby in a different tty ?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<postmodern>
is there a google-safebrowing library that isn't a rails plugin?
<cina>
I can't install a gem using 'gem install' on my server -- is it enough to copy the gem from my local gems/ directory into the servers gems/ directory? I'm using the exact same Ruby version (using RVM)
jjbohn has joined #ruby
<arubin>
Are the machines the same architecture?
<arubin>
And OS?
<arubin>
Or is the gem pure Ruby?
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cina>
it's pure Ruby
pontiki has joined #ruby
<arubin>
Should be fine.
<arubin>
Although I do not know the details of the gems directory hierarchy.
<cina>
it doesn't seem to find it
lw has quit [Quit: s]
<cina>
~/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find http_parser.rb (= 0.6.0.beta.2) amongst [list of gems, but not http_parser.rb]
tagrudev has joined #ruby
<cina>
why is there a 1.9.1 version in the middle? It should be using 1.9.3-p484
<sevenseacat>
api version
mrj has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 252 seconds]
Speed has quit [Ping timeout: 240 seconds]
jjbohn has quit [Ping timeout: 276 seconds]
n0n3 has quit []
fantasti` has joined #ruby
<cina>
I see, so it's okay.
pu22l3r_ has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
<arubin>
From what I gather from SO, you might need to copy the specification into a specifications directory.
fantasticsid has quit [Ping timeout: 252 seconds]
ClarusCogitatio has quit [Excess Flood]
yubrew has joined #ruby
larsam has quit [Quit: larsam]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
<Hanmac>
arubin: 'noël'.size returns 4 for me, RUBY_VERSION #=> "2.2.0" what is your encoding?
sdouglas has quit [Remote host closed the connection]
ClarusCogitatio has quit [Excess Flood]
jamto11 has quit [Ping timeout: 252 seconds]
ClarusCogitatio has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
SCommette has quit [Quit: SCommette]
rm__ has quit [Ping timeout: 265 seconds]
ponga has quit [Quit: Leaving :)]
moritzs has quit [Remote host closed the connection]
cescalante is now known as ce_afk
robbyoconnor has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
moritzs has joined #ruby
makara has joined #ruby
m00nlight__ has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
moritzs has quit [Remote host closed the connection]
moritzs has joined #ruby
funburn has quit [Quit: funburn]
schaary|afk is now known as schaary
ClarusCogitatio has quit [Ping timeout: 255 seconds]
moritzschaefer has joined #ruby
moritzschaefer has quit [Client Quit]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
crzrcn has quit [Quit: Leaving.]
akonny has joined #ruby
mansi has joined #ruby
ClarusCogitatio has joined #ruby
kitak_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
cina has quit [Ping timeout: 252 seconds]
<brucelee_>
is nokogiri the right tool to do the perl equivalent of "document.getElementById('slct-w').style.display = 'block';"
jamto11 has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
<sevenseacat>
where does perl come into things?
<brucelee_>
my friend has a perl script that does this: document.getElementById('slct-w').style.display = 'block';
<brucelee_>
i just want to do the ruby equivalnt
<sevenseacat>
thats javascript
<brucelee_>
oh
<brucelee_>
:P
<brucelee_>
ok
<brucelee_>
didnt realize that
<brucelee_>
then i guess i would be able to do that too
<brucelee_>
im trying to get selenium to work
<brucelee_>
fyi :p
ClarusCogitatio has quit [Excess Flood]
mansi has quit [Ping timeout: 265 seconds]
ClarusCogitatio has joined #ruby
moritzschaefer has joined #ruby
fabrice31 has joined #ruby
ClarusCogitatio has quit [Excess Flood]
fgo has joined #ruby
ClarusCogitatio has joined #ruby
m00nlight__ has joined #ruby
nateberkopec has joined #ruby
fgo has quit [Read error: No route to host]
moritzschaefer has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
moritzs has joined #ruby
alem0lars has joined #ruby
nfk has joined #ruby
ClarusCogitatio has quit [Excess Flood]
andikr has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
kitak_ has quit [Remote host closed the connection]
Darryl has joined #ruby
ClarusCogitatio has joined #ruby
yubrew has joined #ruby
kitak_ has joined #ruby
moritzschaefer has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
SCommette has joined #ruby
blackavr has quit [Quit: blackavr]
moritzschaefer has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
MacTrash has joined #ruby
moritzs has joined #ruby
ta has quit [Ping timeout: 265 seconds]
thomasxie has left #ruby [#ruby]
kitak_ has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
ta has joined #ruby
JensOfSw_ has joined #ruby
omosoj has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
Lewix has joined #ruby
JensOfSweden has quit [Ping timeout: 276 seconds]
wildroman2 has quit [Remote host closed the connection]
ta has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
razrunelord has joined #ruby
blackmesa has joined #ruby
Rollabunna has joined #ruby
mrnugget has joined #ruby
kitak_ has joined #ruby
spider-mario has joined #ruby
stantona has joined #ruby
SCommette has quit [Quit: SCommette]
moritzs has quit [Ping timeout: 276 seconds]
<ayaz>
Hello. I'm wondering: does the `.gsub()` method not support word boundaries `\b` in regular expressions it takes? For example: 'hello www.test.com test.com www.test.com'.gsub(/\btest.com\b/, '')
razrunelord has quit [Ping timeout: 264 seconds]
KanKava has joined #ruby
funburn has joined #ruby
mikecmpbll has joined #ruby
<apeiros>
ayaz: gsub supports word boundaries.
heftig has joined #ruby
stantona has quit [Ping timeout: 252 seconds]
jcs222 has quit [Remote host closed the connection]
<ayaz>
apeiros: Well, am I doing something wrong in that simple test, because as far as I can tell, it is not respecting word boundaries there?
jcs222 has joined #ruby
<ayaz>
It gives me "hello www. www."
<tobiasvl>
that seems correct, doesn't it? period is a word boundary
sk87 has joined #ruby
mengu has quit [Remote host closed the connection]
<ayaz>
Hmmm
dev_ has joined #ruby
lele has joined #ruby
<ayaz>
I see, okay
<dev_>
Please i need help on this
<dev_>
i have a JSON response - {"statusCode":"000040","statusMessage":"OK"}
<dev_>
how can i put is in single quotes - '{"statusCode":"000040","statusMessage":"OK"}'
x77686d has joined #ruby
x77686d has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
tvw has quit []
sla3k has quit [Quit: Changing server]
<tobiasvl>
dev_: the JSON response is a string? or a hash? (what you pasted isn't a valid hash syntax)
<tobiasvl>
what gave you that response
<tobiasvl>
if it is a hash in spite of the invalid syntax, to_s or inspect will give you the string
<|JD|>
any ideas how i can fix this? im not very familiar with ruby
<popl>
snorby?
wildroman2 has joined #ruby
<|JD|>
popl: its a frontend for snort(intrusion preventions/detection system)
<popl>
|JD|: This is really a channel about the Ruby programming language, not to troubleshoot problems with applications that happen to be written for RoR/in Ruby. :)
northfurr has joined #ruby
<|JD|>
popl: uhmm yeah. but a bit help, in other words a kick in the right direction would be just nice and appreciated :)
<popl>
I don't know a fucking thing about your stupid application. Go check out #snorby, on this network, like the website says.
<Hanmac>
imo it looks like that bundler fucked up something ... |JD| did you try this channel for help? #bundler
<popl>
Sorry, is that clearer? :P
<sevenseacat>
\
chipotle has joined #ruby
<|JD|>
Hanmac: not yet. did not know there is a bundler channel :)
<popl>
Look, there's even a link to the mailing list.
<postmodern>
apeiros, roll your own packages with fpm
qba73 has quit [Read error: Connection reset by peer]
<postmodern>
apeiros, also do you really want to run production on 2.1.0...
<apeiros>
postmodern: because joe average does that.
<postmodern>
apeiros, there's bluebox group packages...
<sevenseacat>
14.04 even has 2.0.0-p484! such modern
<apeiros>
postmodern: no, but that's because I don't use old versions :-p
<apeiros>
I want 2.1.1
<postmodern>
apeiros, hipster :-P
<apeiros>
and yes, for new stuff, I indeed use/want 2.1.1 in prod
pen has quit [Ping timeout: 252 seconds]
* Hanmac
is living in the future and has "2.2.0"
* sevenseacat
has just upgraded one app to use 2.0
thomasxie has joined #ruby
<apeiros>
much more than I want to be stuck on a broken 1.8.3 release apt had for like 3 years
* postmodern
calls the time police on Hammac
kaspergrubbe has quit [Ping timeout: 276 seconds]
* sevenseacat
still has an app running on ree
funburn has quit [Quit: funburn]
<apeiros>
sevenseacat: yeah, we have a zombie here too. rails 1.2.3 with ruby 1.8.2 :)
<postmodern>
nothing wrong with running production on older rubies that are known to work and are supported
* apeiros
will not touch that server, ever.
<sevenseacat>
apeiros: holy crap
<postmodern>
however, you _should_ upgrade off of 1.8.x
senayar has joined #ruby
jamto11 has joined #ruby
<apeiros>
sevenseacat: if there should ever be a feature request for that app, the time estimate will automatically be <estimated time for feature> + 2 months
<sevenseacat>
oh i know. its on the agenda.
nateberkopec has quit [Ping timeout: 240 seconds]
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<sevenseacat>
will be pushed to 1.9.3, and rails 3, and then ruby 2, and then rails 4 >_>
rahult has joined #ruby
<apeiros>
our other apps are scheduled for ruby 2.1 and rails 4.1 next month, yay! :)
ce_afk is now known as cescalante
<apeiros>
biggest pain point will be migrating syck to psych
dev_ has joined #ruby
xiaoguo has joined #ruby
claymore has quit [Quit: Leaving]
<blackms>
mariadb vs mysql
<blackms>
what do u think about it? :)
pen has joined #ruby
<ddv>
mariadb
seuros has joined #ruby
<blackms>
i have to try galera but i don't know if to use mysql or mariadb
Kuda_ has joined #ruby
<Arnvald>
mariadb
<Arnvald>
or percona
<blackms>
percona is commercial afaik
<apeiros>
mariadb +1
<ddv>
blackms: mariadb is the default in many distro's for some time now
<apeiros>
mysql is oracle. fuck oracle.
<jnor>
mariadb +1
roadie has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blackms>
ddv, like?
mcrmfc has joined #ruby
<apeiros>
blackms: but seriously, use postgres :)
<ddv>
blackms: arch, fedora
jamto11 has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
roadie has quit [Remote host closed the connection]
<blackms>
apeiros, i'm afraid is not an option
<blackms>
ddv, ok :) i will try with mariadb
<apeiros>
you're right to be afraid!
<apeiros>
curious, though - why isn't it an option?
<blackms>
because my boss asked me to try mysql with galera
<blackms>
:)
roadie has joined #ruby
rm_ has joined #ruby
<Arnvald>
afaik percona is on gpl just as mariadb
timonv has quit [Read error: Connection reset by peer]
<Arnvald>
anyway, whatever of these 2 you choose
<ddv>
your boss is an idiot
<Arnvald>
it's better than mysql
<ddv>
blackms: don't listen to suits
<apeiros>
postgres uses MIT/BSD <3
DouweM has quit [Ping timeout: 276 seconds]
<blackms>
ok i will check percona too
<blackms>
so percona or maria
<blackms>
get it :)
pencilcheck has joined #ruby
<apeiros>
blackms: your boss asking you to try mysql with galera doesn't mean you must not try postgres :-p
sputnik13 has joined #ruby
<blackms>
ddv, no we are just italians we are far behind in techs thing :)
<apeiros>
as a good employee, you should provide better options
pen has quit [Ping timeout: 276 seconds]
<blackms>
a better option here is not seen as a better option :)
<blackms>
but as another thing to study and people wont study anymore :)
<apeiros>
"I work for morons"?
<blackms>
apeiros, definitely
<ddv>
lol
rm_ has quit [Ping timeout: 255 seconds]
yihangho has joined #ruby
cescalante is now known as ce_afk
Martxel has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tvw has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
jamto11 has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
yubrew has joined #ruby
mengu has quit [Remote host closed the connection]
mansi has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
xiella has joined #ruby
decoponio has joined #ruby
Milly_Bays has joined #ruby
workmad3 has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
senayar has quit [Ping timeout: 255 seconds]
anidear has joined #ruby
crzrcn has joined #ruby
funburn has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
tagrudev has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 255 seconds]
<krz>
'1,2,3'.split(',') turns it into an array of strings
rahult is now known as rahult_
<krz>
how do i make it so it turns into an array of ints
<sevenseacat>
map(&:to_i) ?
<krz>
ah!!!!
<krz>
i was doing map(&:.to_i
xiaoguo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
weems has quit [Ping timeout: 252 seconds]
crzrcn has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
<Veejay>
krz: It's basically Symbol#to_proc
sevenseacat has quit [Quit: Leaving.]
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
relix has joined #ruby
fgo has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
sdouglas has quit [Ping timeout: 252 seconds]
xiella has quit [Ping timeout: 265 seconds]
<anidear>
what if, they are all in hex, like 'a0,2f,7a' ? how can convert it to int array?
pagios has quit [Remote host closed the connection]
<anidear>
oh there's '\h', and .hex() I didn't know. Thanks :)
sk87 has quit [Client Quit]
qba73 has joined #ruby
<apeiros>
scanf!
<apeiros>
(no, no, don't, really, it's bad)
mrnugget has quit [Read error: Operation timed out]
mrnugget has joined #ruby
<Hanmac>
apeiros: scanf might not work if you dont know how many numbers you get
LadyRainicorn has joined #ruby
nanashiRei has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
relix has joined #ruby
fgo has joined #ruby
relix has quit [Client Quit]
Ancient has left #ruby [#ruby]
<jnor>
chruby setup script takes awhile huh :)
francisfish has joined #ruby
pen has joined #ruby
pencilcheck has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 276 seconds]
<apeiros>
Hanmac: I wouldn't use it even if I knew how many numbers
kitak has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 265 seconds]
thomasxie has quit [Remote host closed the connection]
dev_ has quit [Ping timeout: 240 seconds]
sensen has joined #ruby
kilk_ has joined #ruby
psyko666 has quit [Remote host closed the connection]
HashNuke has quit [Quit: Connection closed for inactivity]
akonny has quit [Quit: akonny]
marr has joined #ruby
GreatPotato has joined #ruby
mengu__ has joined #ruby
m3nTe_ has joined #ruby
_justin has joined #ruby
pen has quit [Ping timeout: 240 seconds]
<GreatPotato>
Hey guys, total ruby newb here - im setting up a “dashing” dashboard, which i have running nicely, and i want to populate it from data on an mssql database
<jhass>
GreatPotato: click on Documentation on that page
<jnor>
postmodern: also latest ruby should be installed now but ruby -v shows an older version, do I need to reload ruby ?
<LadyRainicorn>
oh < is more fun
JJMalina has quit [Ping timeout: 240 seconds]
mengu__ has quit [Ping timeout: 252 seconds]
<shock_one>
jhass, I have an ActiveSupport::Concern called Schedulable, which is included into some models. Among other things this concern defines a callback after_end, similar to standard Rails callbacks. The function that invokes this callback has to get all the instances of all the classes that include Schedulable.
<jhass>
"has to get", I love that argument
<shock_one>
jhass, OK, I registered callbacks, and not I have to execute them somehow.
flops has joined #ruby
<postmodern>
jnor, after installing a new ruby, with chruby, you should restart the shell
funburn has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 264 seconds]
m00nlight has joined #ruby
funburn has joined #ruby
kitak has quit [Remote host closed the connection]
<jnor>
hmm restarted shell and ruby -v ruby 1.8.7
<jhass>
shock_one: you can call methods of the class you're included into
<postmodern>
jnor, chruby X.Y.Z
kitak has joined #ruby
<flops>
Hey, I have a problem with the camping framework. I'd like to use a postgres database but I get the following error when running the 'create' method: ActiveRecord::StatementInvalid: PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "first"
monkegjinni has joined #ruby
<flops>
And I have no clue where that "first" is coming from. Everything worked with sqlite
Arnvald has quit [Remote host closed the connection]
<postmodern>
jnor, you need to load chruby into your shell
<postmodern>
jnor, just like rvm or rbenv
sent-hil has quit [Quit: Connection closed for inactivity]
klaut has quit [Remote host closed the connection]
<shock_one>
jhass, think of after_save, for example. I want to call a method on an instance of a class that includes Schedulable. Moreover, on instances that match some criteria.
kitak has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
<jhass>
after_save runs on the instance after some event happened in that instance, not after it happened in any instance
<jnor>
so I manually need to add alias to my bashrc for the executable ?
<ddv>
jnor: you need to read the documentation
<jnor>
i followed the install section in the documents
<jnor>
then ran the setup script
senayar has quit [Remote host closed the connection]
robustus has joined #ruby
senayar has joined #ruby
m00nlight has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
Rollabunna has quit [Remote host closed the connection]
SubSignal has joined #ruby
<shock_one>
jhass, my problem is that no event happens. Or rather this event is a particular point of time.
pagioss has joined #ruby
seuros has quit [Ping timeout: 264 seconds]
seuros has joined #ruby
francisfish has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
subraminion has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
<jhass>
you probably should have a central scheduler then and your Scheduable module is just some syntactic sugar for it's API, that registers the instances on Foo#initialize or something
tjsousa__ has joined #ruby
tjsousa__ has quit [Remote host closed the connection]
ixti has joined #ruby
yubrew has joined #ruby
tjsousa__ has joined #ruby
<jhass>
like a wrapper that does def initialize; Scheduler.in(10.minutes, self, :method); end or whatever
senayar has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: alem0lars]
andrewlio has joined #ruby
SubSignal has quit [Ping timeout: 252 seconds]
<jnor>
ddv vould you point me to the place in documentation that states how I load chruby into my shell? I have done the installation process. Sorry for all the trouble but all the ruby stuff is killing me
rm_ has quit [Ping timeout: 276 seconds]
<jhass>
probably with some weird AR / AS hook so you don't have to super in your classes #initialize
cescalante is now known as ce_afk
<ddv>
jnor: I have never used chruby.
<postmodern>
jnor, exec $SHELL
<postmodern>
jnor, or manually `source` the chruby.sh and auto.sh files into the shell
armyriad has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
klaut has joined #ruby
francisfish has joined #ruby
senayar has joined #ruby
<jnor>
postmodern: thanks okay so I added source <those to files>, think it worked
<jnor>
two*
klaut has quit [Read error: Connection reset by peer]
klaut has joined #ruby
unl0ck has joined #ruby
moritzs has joined #ruby
mansi has joined #ruby
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
funburn has quit [Quit: funburn]
<jnor>
if I want to remove jruby-1.7.8 how would I do it using chruby?
crzrcn has joined #ruby
<postmodern>
jnor, rm -rf the directory and restart the shell
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jnor>
postmodern: ok cool
mansi has quit [Ping timeout: 264 seconds]
<jnor>
postmodern: say I want to install thin, should I use this "ruby-instal thinl" or "gem install thin"?
bthesorceror has joined #ruby
<postmodern>
jnor, gem install thin
<postmodern>
jnor, just to make sure, do you just want one ruby on your system or multiple?
crzrcn has quit [Ping timeout: 265 seconds]
fannye has joined #ruby
<jnor>
postmodern: my objective is to get ruby program redmine running with thin behind nginx
<postmodern>
jnor, ah ha
<jnor>
so maybe I will need multiple rubys to find the one working :p
roadie has joined #ruby
<postmodern>
jnor, than i recommend removing chruby
<jnor>
thin was not working with 1.8
anidear has quit [Quit: Leaving]
<jnor>
hmm X)
<postmodern>
jnor, install ruby into /usr/local using `ruby-install -i /usr/local ruby X.Y`
<shevy>
jnor come to 2.1 man
<workmad3>
jnor: many things don't work with 1.8, and that situation will just get worse as 1.8 is *dead*
seuros has quit [Quit: Leaving.]
Guedes0 has joined #ruby
VictorBjelkholm has joined #ruby
Kuda_ has quit [Quit: Byebye!]
seuros has joined #ruby
Stalkr^ has joined #ruby
bthesorceror has quit [Ping timeout: 276 seconds]
<jnor>
yeah alright but ruby-2.0.0-p353/ is installed into /opt/rubies with chruby, maybe I should install 2.1 there too?
Alina-malina has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
Alina-malina has joined #ruby
<postmodern>
jnor, the -i option controls where it installs into
kaspergr_ has quit [Ping timeout: 255 seconds]
moritzs has quit [Ping timeout: 265 seconds]
wildroman2 has quit [Remote host closed the connection]
<jnor>
postmodern: should I really remove chruby?
<postmodern>
jnor, if you only need one ruby, you do not need ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
Stalkr_ has joined #ruby
<jnor>
is ruby-install not aprt of chruby?
Guedes0 has quit [Ping timeout: 252 seconds]
<postmodern>
jnor, correct, it is a separate util
ndrei has joined #ruby
<jnor>
so if i remove chruby how can I install latest ruby
iamstalkr has joined #ruby
<postmodern>
jnor, ruby-install ruby X.Y.Z
Stalkr^ has quit [Read error: Connection reset by peer]
<postmodern>
jnor, ruby-install installs whatever version you give it
francisfish has quit [Remote host closed the connection]
<apeiros>
but indeed, in the website, it doesn't list it. either an oversight, or the adapter isn't mature.
armyriad has joined #ruby
northfurr has quit [Ping timeout: 252 seconds]
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
stantona has joined #ruby
nanashiRei has joined #ruby
rahult_ is now known as rahult
sski has joined #ruby
<jnor>
Im trying to purge ruby completly from my system now and start fresh, is it safe to delete /usr/include/ruby*? theres a bunch of 1.9.1 stuff, already did apt-get purge ruby1.9.1
mrdtt has quit [Read error: Connection reset by peer]
tyll has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
<shevy>
I would hope that apt-get handles removal cleanly
<apeiros>
jnor: it's generally not a good idea to mix manual deinstallation with package management
<LadyRainicorn>
It often leaves stuff.
stantona has quit [Ping timeout: 252 seconds]
tyll has joined #ruby
dangerousdave has joined #ruby
<workmad3>
jnor: /usr/include/ruby* was probably added by ruby1.9.1-dev
yfeldblum has quit [Remote host closed the connection]
<workmad3>
jnor: so maybe purge that package too ;)
<jnor>
my oc thanks you workmad3 !!
<jnor>
ocd*
jackneill has quit [Quit: WeeChat 0.4.3]
thomasxie has quit [Quit: Leaving.]
nvrch has quit [Quit: nvrch]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
tyll has quit [Ping timeout: 252 seconds]
banister_ has joined #ruby
_justin has quit [Quit: _justin]
ktun has joined #ruby
banister has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
phoo1234567 has joined #ruby
Fire-Dragon-DoL has joined #ruby
Martxel has joined #ruby
timgauthier has joined #ruby
atno has quit [Remote host closed the connection]
ce_afk is now known as cescalante
rahult is now known as rahult_
yubrew has joined #ruby
mrnugget has joined #ruby
canton7-mac has joined #ruby
rm_ has joined #ruby
<flops>
Does anyone have experience with the camping framework and postgres?
_justin has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<jhass>
don't try to find the right person for your problem
dANOKELOFF has quit [Remote host closed the connection]
<flops>
Hey, I have a problem with the camping framework. I'd like to use a postgres database but I get the following error when running the 'create' method: ActiveRecord::StatementInvalid: PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "first"
Rollabunna has joined #ruby
dANOKELOFF has joined #ruby
<flops>
And I have no clue where that "first" is coming from. Everything worked with sqlite
rm_ has quit [Ping timeout: 265 seconds]
cescalante is now known as ce_afk
_tpavel has joined #ruby
<ddv>
flops: debug your code?
<jhass>
flops: show the statement that causes that
<jhass>
tpo: the variable is defined when the parser sees it, not when it's assigned
fella5s has joined #ruby
<jhass>
you need to separate parsing and running the code here
bthesorceror has joined #ruby
<LadyRainicorn>
huhh, I didn't know defined? worked that way.
sk87 has joined #ruby
helpD has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
<matiasmm>
Hey I'm getting this error http://pastebin.com/qLfJyWKU after running: " /usr/local/rvm/wrappers/ruby-2.0.0-p451/unicorn -D -E production -c /etc/unicorn/bugs.ru"
rm_ has joined #ruby
<tpo>
jhass, what a semantic breakdown. Is this behaviour defined somewhere (where?). Thanks a lot jhass
jhass is now known as jhass|off
ndrei has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Alina-malina has quit [Ping timeout: 264 seconds]
Snarkz has joined #ruby
charliesome has joined #ruby
rahult_ is now known as rahult
rahult has quit [Quit: Back to the world of zombies]
m00nlight has joined #ruby
vlad_starkov has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
osvico has joined #ruby
<sce>
hello
maq has joined #ruby
cescalante is now known as ce_afk
wildroman2 has quit [Remote host closed the connection]
tsnfoo has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
lyanchih has quit [Ping timeout: 240 seconds]
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
klaut has quit [Remote host closed the connection]
<timgauthier>
hi
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
iamstalkr has quit [Read error: Connection reset by peer]
_justin has quit [Quit: _justin]
Stalkr^ has joined #ruby
Bira has joined #ruby
srji has joined #ruby
nvrch has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
Alina-malina has joined #ruby
crzrcn has joined #ruby
<timgauthier>
Today, is break day. Today I break something
bthesorceror has quit [Remote host closed the connection]
crzrcn has quit [Ping timeout: 264 seconds]
troyronda has joined #ruby
<timgauthier>
anyone need their blog broken?
mengu has quit [Remote host closed the connection]
<matiasmm>
Hey, I'm getting this error when running unicorn: Exception `EOFError' at /usr/local/rvm/gems/ruby-2.0.0-p451/gems/unicorn-4.8.2/lib/unicorn/launcher.rb:46 - end of file reached . log: http://pastebin.com/4fAwSEvA
sski has joined #ruby
<flops>
timgauthier: How do you plan to break it?
<olivier_bK>
timgauthier, try to brake code babes
<olivier_bK>
:)
<timgauthier>
haha not that sort of break :P
<timgauthier>
though that site needs to disapear :P
<timgauthier>
I was thinking of designing something
Lewix has joined #ruby
<flops>
designing a blog?
ValicekB has joined #ruby
<timgauthier>
flops i'm a designer, who pretends to program sometimes. I'm having a really tough design issue with my own portfolio, so i was thinking of redesigning something else without any pressure
<timgauthier>
i don't think i actually want to redesign someone specifics blog though, then there is pressure. bleh
Lewix has quit [Remote host closed the connection]
sambao21 has joined #ruby
lmickh has joined #ruby
jxf has quit [Quit: Leaving]
jxf has joined #ruby
_justin has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
troyronda has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
mehlah has quit [Quit: Leaving...]
kitak has joined #ruby
benzrf is now known as benzrf|offline
<olivier_bK>
how to use specifique version of gem in ruby script ?
rdark has quit [Ping timeout: 276 seconds]
<timgauthier>
bundler?
kitak has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
kitak has joined #ruby
<Mon_Ouie>
Just gem "name", "version constraint"
rdark has joined #ruby
<Mon_Ouie>
e.g. (where version constraint is something like '= 1.0.0' or '~> 1.9' or '> 3.0')
vpretzel has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
<olivier_bK>
i try that in my script bu i get an error require 'green_shoes' '= 1.1.373'
senayar has joined #ruby
<Mon_Ouie>
Not require, gem
<Mon_Ouie>
Then you need to use require just as before
mark_locklear has joined #ruby
_justin has quit [Quit: _justin]
troyronda has joined #ruby
m3nTe has quit [Ping timeout: 265 seconds]
troyronda has quit [Remote host closed the connection]
troyronda has joined #ruby
SubSignal has joined #ruby
benzrf is now known as benzrf|offline
klaut has joined #ruby
ClarusCogitatio has quit [Ping timeout: 264 seconds]
tjr9898 has quit []
stantona has joined #ruby
jnor has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
ClarusCogitatio has joined #ruby
tpo has quit [Quit: Leaving]
troyronda has quit [Ping timeout: 240 seconds]
kiri has quit [Quit: Leaving]
jxf has quit [Ping timeout: 276 seconds]
stantona has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
yfeldblum has joined #ruby
kaspergrubbe has joined #ruby
KevinSjoberg has quit [Max SendQ exceeded]
jjbohn has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
KevinSjoberg has joined #ruby
KevinSjoberg has quit [Max SendQ exceeded]
KevinSjoberg has joined #ruby
benzrf|offline is now known as benzrf
<gaussblurinc1>
great solution: item = Shellwords.escape(f.to_s.strip.encode(f.to_s.encoding).force_encoding(%q(utf-8)))
ndrei has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 276 seconds]
nisstyre has joined #ruby
simono has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
jamto11 has joined #ruby
tjsousa__ has quit [Quit: Computer has gone to sleep.]
jxf has joined #ruby
senayar has quit [Remote host closed the connection]
jnor has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
ClarusCogitatio has joined #ruby
senayar has joined #ruby
Rollabunna has joined #ruby
srji has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
vlad_starkov has quit []
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
subraminion has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
northfurr has quit [Quit: northfurr]
mercwithamouth has joined #ruby
mansi has joined #ruby
maximski has joined #ruby
rm_ has joined #ruby
davedev24 has joined #ruby
<apeiros>
f.to_s.strip.encode(f.to_s.encoding) # <-- errr, what? encode to its current encoding is a no-op, entirely pointless.
jottr has joined #ruby
jottr has quit [Client Quit]
ndrei has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
flops_ has joined #ruby
jottr has joined #ruby
danshult_ has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
matiasmm has left #ruby [#ruby]
centipedefarmer has quit [Remote host closed the connection]
flops_ has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
jottr has quit [Client Quit]
cescalante is now known as ce_afk
flops has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
jamto11 has quit [Remote host closed the connection]
jottr has quit [Client Quit]
danshultz has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<pontiki>
bah
<pontiki>
this code
flops has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Morkel_ has joined #ruby
jottr has joined #ruby
MattStratton has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
jottr has quit [Client Quit]
jamto11 has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
jottr has quit [Client Quit]
dblessing has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
flops has quit [Read error: Connection reset by peer]
crzrcn has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
flops has joined #ruby
Avahey_ has joined #ruby
fantasti` has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 252 seconds]
SubSignal has quit [Remote host closed the connection]
moritzs has joined #ruby
Stalkr_ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
srji has quit [Client Quit]
kiri has joined #ruby
codabrink has joined #ruby
Rollabunna has joined #ruby
ktun has joined #ruby
banister_ is now known as banisterfiend
<olivier_bK>
who is the best GUI in ruby
instantaphex has joined #ruby
jottr has joined #ruby
jottr has quit [Client Quit]
kevind has joined #ruby
ClarusCogitatio has joined #ruby
helpD has joined #ruby
bthesorceror has joined #ruby
Stalkr^ has quit [Ping timeout: 276 seconds]
tjsousa__ has joined #ruby
altatistic has joined #ruby
skysploit has quit [Remote host closed the connection]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
jottr has joined #ruby
jjbohn has quit [Quit: Leaving...]
Stalkr_ has quit [Quit: Leaving...]
ClarusCogitatio has quit [Excess Flood]
kiri has quit [Ping timeout: 252 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
Guest89644 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
tjsousa__ has quit [Ping timeout: 255 seconds]
kiri has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
enebo has joined #ruby
danijoo has joined #ruby
Bira has quit [Remote host closed the connection]
gwb3 has joined #ruby
gwb3 has quit [Client Quit]
_bart has joined #ruby
obs has quit [Remote host closed the connection]
AGreyCrane has quit [Quit: Leaving]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
mrmargolis has joined #ruby
PragCypher has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
ta has joined #ruby
rudisimo has joined #ruby
flughafen has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
gwb3 has joined #ruby
Stalkr^ has joined #ruby
andrewjanssen has joined #ruby
alexju has joined #ruby
andrewjanssen has quit [Client Quit]
yubrew has joined #ruby
gwb3 has quit [Client Quit]
Chamkila has quit [Remote host closed the connection]
mary_synthesizin has joined #ruby
mary_synthesizin has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
subraminion has quit [Remote host closed the connection]
mary_synthesizin has joined #ruby
amundj has quit [Ping timeout: 240 seconds]
Rudde has quit [Ping timeout: 252 seconds]
<Stalkr^>
I am trying to write a tool for 4chan, that's supposed to download some images. I am using their API (json), and was recommended to use something like VCR for the API data. How would I write a test to download images?
troyronda has joined #ruby
ta has quit [Ping timeout: 240 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
stantona has joined #ruby
Rudde has joined #ruby
gwb3 has joined #ruby
nateberkopec has joined #ruby
akemrir has joined #ruby
ClarusCogitatio has quit [Excess Flood]
MikeLeman has joined #ruby
kiri has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
michael_lee has quit [Remote host closed the connection]
lethjakman has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
andrewjanssen has joined #ruby
pwh has joined #ruby
ClarusCogitatio has quit [Excess Flood]
danshultz has joined #ruby
aganov has quit [Quit: Leaving]
chipotle has joined #ruby
iceden has joined #ruby
Bira has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ClarusCogitatio has joined #ruby
bal has quit [Quit: bal]
crzrcn has joined #ruby
crystal77 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
anarang has quit [Quit: Leaving]
ta has quit [Ping timeout: 265 seconds]
Bira_ has joined #ruby
sgen has joined #ruby
jobewan has joined #ruby
Firebox has joined #ruby
<Firebox>
hi
<elico>
hi Firebox
<Firebox>
:)
jprovazn has quit [Quit: Leaving]
mrmargolis has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 276 seconds]
michael_lee has joined #ruby
x77686d has joined #ruby
atmosx has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
mrmargolis has joined #ruby
ClarusCogitatio has quit [Ping timeout: 255 seconds]
arubincloud has joined #ruby
evenix has joined #ruby
sdouglas has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
ta has joined #ruby
rm_ has joined #ruby
ClarusCogitatio has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
Solnse has joined #ruby
andy___ has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrdtt has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
etqqkoiflwhb has joined #ruby
ta has quit [Read error: Connection reset by peer]
rm_ has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
sdouglas_ has joined #ruby
s2013 has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abra has quit [Ping timeout: 252 seconds]
maoko has joined #ruby
ScottJohn has quit [Remote host closed the connection]
terrellt has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
abra has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
jonDeer has joined #ruby
skysploit has quit [Remote host closed the connection]
ua has joined #ruby
Hobogrammer has joined #ruby
sambao21 has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
Cache_Money has joined #ruby
BWStearns has joined #ruby
MattStratton has joined #ruby
mrnugget has quit [Quit: mrnugget]
<jonDeer>
I started ruby and I'm not sure why I'm having problems with something so basic. I included my irb shell input along with the error message: http://ideone.com/xQFXeo
mrdtt has joined #ruby
dik_dak has joined #ruby
george2|chakra has joined #ruby
mark_locklear has quit [Quit: Leaving]
george2 has quit [Ping timeout: 240 seconds]
skysploit has joined #ruby
<apeiros>
jonDeer: only explanation I see is that you have more than one zombie.rb and you're looking at the wrong one
BizarreCake has quit [Ping timeout: 240 seconds]
<jonDeer>
oh wait that might be the case
<jonDeer>
hopefully it is let me see
kitak has quit [Remote host closed the connection]
<ua>
or you havent saved changes in zombie.rb
xvikvi has joined #ruby
rm_ has joined #ruby
s00pcan has joined #ruby
ClarusCogitatio has joined #ruby
<mgorbach>
Anyone using default Ruby with OS X?
<mgorbach>
I'm just trying to install gem on a buildserver ... the clive gem installs and is put into place, but my ruby won't load it with require 'clive'
ce_afk is now known as cescalante
<mgorbach>
Even though the gem files appear to be located in the right place. Any tips?
Kricir has quit [Remote host closed the connection]
_maes_ has joined #ruby
jamto11 has quit []
HashNuke has joined #ruby
<jonDeer>
yes! thank you :)
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bthesorceror has quit [Remote host closed the connection]
kilk_ has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Quit: Leaving...]
kilk__ has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
snooc_ has joined #ruby
saarinen has joined #ruby
<mishoch>
hi people, I am trying to upload a file server-side via Net::HTTP on Ruby 2.1.0 and I get the error [Errno::ECONNRESET: Connection reset by peer from /home/deployer/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/openssl/buffering.rb:326:in `syswrite'...] whereas if using Ruby 1.9.3 the code executes without a problem. Do you know how to solve this issue because it seems like a Ruby 2.1.0 library problem?
dANOKELOFF has quit [Ping timeout: 252 seconds]
snooc has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
jcs222 has joined #ruby
Kricir has joined #ruby
altatistic has quit []
toastynerd has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
carlyle_ has joined #ruby
juco has quit [Quit: Leaving]
cocotton has joined #ruby
qba73_ has quit []
Hobogrammer has quit [Ping timeout: 240 seconds]
MrJoshua has quit [Quit: MrJoshua]
newUser1234 has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.3]
carlyle has quit [Ping timeout: 246 seconds]
andrewjanssen has joined #ruby
Lewix has joined #ruby
acrussell has joined #ruby
Sirupsen has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby
apeiros has joined #ruby
danshultz has joined #ruby
dstynchula has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
bean has joined #ruby
SilkFox has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
havenwood has joined #ruby
|JD| has quit [Quit: Verlassend]
mattmcclure has joined #ruby
phantasm66 has joined #ruby
snath has joined #ruby
mishoch has left #ruby [#ruby]
_bart has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
AlexRussia has joined #ruby
jjbohn has quit [Quit: Leaving...]
fflush_ has quit [Quit: fflush_]
duggiefresh has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
goleldar has joined #ruby
dapz has joined #ruby
danshultz has joined #ruby
maestrojed has joined #ruby
andikr has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
kitak has joined #ruby
andy___ has quit [Ping timeout: 276 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Remote host closed the connection]
blackmesa has joined #ruby
andy___ has joined #ruby
bradhe has joined #ruby
nateberkopec has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
pietr0 has joined #ruby
pagioss has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
spider-mario has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
kevind has quit [Ping timeout: 240 seconds]
kevind_ is now known as kevind
clov3r has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
andy___ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has joined #ruby
wallerdev has quit [Quit: wallerdev]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
troyronda has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 276 seconds]
Kricir has quit [Remote host closed the connection]
dangerousdave has joined #ruby
subraminion has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
fgo has joined #ruby
MatthewsFace has joined #ruby
rm_ has joined #ruby
Kricir has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
deric_skibotn has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 252 seconds]
instantaphex has quit [Ping timeout: 276 seconds]
crystal77 has joined #ruby
Teck1a is now known as cout
mikecmpbll has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
snooc_ has quit [Ping timeout: 252 seconds]
agarie has joined #ruby
sparrovv has joined #ruby
bklane has joined #ruby
x77686d has quit [Client Quit]
olivier_bK has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
nvrch has quit [Quit: nvrch]
andrewjanssen has quit [Quit: Leaving...]
jack_rabbit has joined #ruby
einarj has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
carlyle_ has quit [Remote host closed the connection]
xiaoguo has joined #ruby
xiaoguo has quit [Client Quit]
carlyle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
carlyle has quit [Remote host closed the connection]
echevemaster has joined #ruby
LiohAu has quit [Quit: LiohAu]
michaeldeol has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
Snarkz has joined #ruby
bthesorceror has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
michael_lee has quit [Quit: Ex-Chat]
_justin has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
rokob has joined #ruby
descala has quit [Ping timeout: 240 seconds]
the_f0ster has joined #ruby
heath_ has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
cover_ has joined #ruby
andrewlio has joined #ruby
<heath_>
question: I'm running 'bundle exec <gemname>' and getting a 'Gemfile not found' error. It doesn't happen if I'm in the gem's directory...but I don't want to have to be. Ideas?
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cover has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
srji has joined #ruby
<heath_>
I'm trying to ensure when I deploy this executable I can safely run it using the same dependencies in the Gemfile.lock
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<srji>
if $0 == __FILE__ i don't understand this line
snooc has joined #ruby
harumph has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
psyko666 has quit [Quit: Leaving]
<centrx>
heath_, bundle gets its information from the Gemfile in the current directory
<apeiros>
srji: true if the current file is also the one directly executed (as opposed to being required, f.ex.)
franzip has joined #ruby
fflush_ has joined #ruby
fflush_ has quit [Changing host]
fflush_ has joined #ruby
<heath_>
centrx: so there's no way to execute a gem so that it only uses the dependencies in the Gemfile.lock?
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<heath_>
we are having issues where the executable fails in PROD because there's newer versions of gems installed on the system
<srji>
apeiros: ty
cover has joined #ruby
<apeiros>
yw
_bart has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<centrx>
heath_, Gemfile.lock is used, but Gemfile is always in the directory with it, I assume it's required
<centrx>
heath_, Gemfile will have the general dependencies, Gemfile.lock is generated from the Gemfile with the exact versions used.
bean has joined #ruby
pu22l3r has joined #ruby
<Senjai>
heath_: I venture that you dont lock down your versions properly
coderhs has joined #ruby
cover_ has quit [Ping timeout: 276 seconds]
<heath_>
Senjai: it's not my gemfile that is not locked properly but are sub-dependencies of gemfiles that are out of my controle
harumph has left #ruby [#ruby]
centrx has quit [Quit: All this computer hacking is making me thirsty]
wallerdev has joined #ruby
wald0 has joined #ruby
descala has joined #ruby
razrunel_ has joined #ruby
<Senjai>
heath_: Do you package and upload the Gemfile.lock when you deploy?
razrunel_ has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
<heath_>
Senjai: yeah, it's part of the package
<Senjai>
heath_: Then it should use the exact same gems as your local dev does
razrunel_ has joined #ruby
<Senjai>
heath_: Some gems have external deps, like phantomjs, or other executables that are not provided by ruby
<Senjai>
imagemagick, etc
<Senjai>
heath_: Also you can specify the gemfile to use with --gemfile IIRC
RohanRNS has quit []
bthesorceror has joined #ruby
<Senjai>
but there is no reason not to be in that directory
RohanRNS has joined #ruby
RohanRNS has quit [Changing host]
RohanRNS has joined #ruby
RohanRNS has quit [Client Quit]
<heath_>
Senjai: so my only solution is to execute 'bundle exec <gemname>' from within the gem directory?
Es0teric has quit [Quit: Computer has gone to sleep.]
heftig has quit [Quit: Quitting]
SCommette has quit [Quit: SCommette]
Xeago has quit [Read error: Connection reset by peer]
razrunelord has quit [Ping timeout: 276 seconds]
<heath_>
in order to ensure it only uses the versions of gems in the Gemfile.lock?
aspires_ has quit [Remote host closed the connection]
<havenwood>
heath_: if you want to execute the command in the context of the bundle, bundle exec
<havenwood>
heath_: or use a tool like `rubygems-bundler` that will `bundle exec` for you
cocotton has quit [Remote host closed the connection]
<havenwood>
heath_: nothing wrong with doing it manually
aspires has joined #ruby
<havenwood>
heath_: the rubygems-bundler gem ships with RVM and thereby has become widely used
SilkFox has joined #ruby
cover_ has joined #ruby
RohanRNS has joined #ruby
RohanRNS has quit [Changing host]
RohanRNS has joined #ruby
cover has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
nanoyak has joined #ruby
<heath_>
I guess I was hoping that I could use 'bundle exec <gemname>' from any directory on the system (like I can when just executing any installed gem) and have it honor the Gemfile.lock. Sounds like if I want to always ensure that specific versions of sub-dependencies are used I'll need to execute it from within the gem's directory.
VictorBjelkholm has quit [Ping timeout: 252 seconds]
cocotton has joined #ruby
RohanRNS has quit [Client Quit]
JoeGaudet has joined #ruby
<havenwood>
heath_: yeah, you have to specify the Gemfile somehow, otherwise how'd it know which bundle to context?
pu22l3r_ has joined #ruby
<havenwood>
heath_: kinda sounds like you don't want to use bundles :P
dapz has joined #ruby
agjacome has joined #ruby
Advocation has joined #ruby
andrewlio has quit [Quit: Leaving.]
ACPe has quit [Quit: I used /quit.]
saarinen has joined #ruby
ACPe has joined #ruby
Kricir has joined #ruby
<heath_>
havenwood: I was thinking that bundler had a way of knowing where the installed gem was and opening it to examine the Gemfile.lock
<heath_>
or something like that
workmad3_ has joined #ruby
<havenwood>
heath_: the installed gem could be installed in multiple bundles and on the system though
SCommette has joined #ruby
<havenwood>
heath_: so how'd it ever know which you meant to use?
pen has quit [Remote host closed the connection]
canton7-mac has quit [Remote host closed the connection]
<heath_>
yeah
<heath_>
I'm installing this particular gem on a Windows machine and it seems everything has to be in the system gemset
pu22l3r has quit [Ping timeout: 255 seconds]
<havenwood>
heath_: if you want the gems in your Gemfile installed on the system, try: bundle --system
<wallerdev>
good mroning
<havenwood>
wallerdev: g'morn
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RohanRNS has joined #ruby
SCommette has quit [Client Quit]
bluOxigen has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
subbyyy has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
testcore has joined #ruby
SCommette has joined #ruby
tvw has joined #ruby
workmad3_ has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 252 seconds]
<Hanmac>
havenwood: did you watch DoctorWho recently?
pushpak has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
WishBoy has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
bricker has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
<Hanmac>
havenwood: the next ones S3E10 and S3E11 are one of my favorits ;P
nanoyak has joined #ruby
<havenwood>
Hanmac: nice, i need to keep watching :)
ACPe has quit [Quit: I used /quit.]
Xeago has quit [Remote host closed the connection]
ACPe has joined #ruby
bricker has joined #ruby
roadie has joined #ruby
Xeago has joined #ruby
Kricir has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<the_f0ster>
can I define functions, not methods, although I guess its a method on something since everything is an object in ruby, can I just do something like if { def thing; stuff end; thing } ?
<the_f0ster>
basically just want to make function in the scope of an if statement then call it later inside of that if statement
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<Mon_Ouie>
No, `if` does not create a new scope for method definitions (so it will still be defined and callable later)
<the_f0ster>
Mon_Ouie: ah i see, but basically i have to define it before I can call it, since everything is just interpreted, right ?
<Mon_Ouie>
Yes, but it doesn't have to do with interpretation or compilation (some implementations do in fact compile the code)
<Mon_Ouie>
(and most of them compile it to bytecode beforehand still)
Jnco has joined #ruby
<havenwood>
the_f0ster: you can always define then undefine methods, though do you really want the method to be fleeting?
dawkirst has quit [Remote host closed the connection]
flughafen has quit [Ping timeout: 252 seconds]
MattStratton has quit [Ping timeout: 264 seconds]
<the_f0ster>
im just hacking somethign crazy together for a seed script to import data from another db into my data model for testing, wanted to have a little more encapsulation by just using functions
testcore has quit [Quit: [BX] If you gaze into the abyss, the abyss gazes also into you]
<havenwood>
the_f0ster: like passing around lambdas?
shinobi_one has joined #ruby
<the_f0ster>
i just want to separate the tables i am importing into their own functions
<apeiros>
the_f0ster, Mon_Ouie: interpreted vs. compiled vs. various mixed forms is not a language feature
<the_f0ster>
so not really lambdas
<apeiros>
or s/feature/attribute/
testcore has joined #ruby
SilkFox has quit [Read error: Operation timed out]
<heath_>
havenwood: thx for helping me out
<havenwood>
so windy out today!
<the_f0ster>
but functions have to be def before they are referenced ?
<havenwood>
heath_: np
<heath_>
centrx: thx for helping me out :)
<Mon_Ouie>
Yes, and that rule holds even when an implementation compiles your code to native code before running it
<heath_>
Senjai: appreciate the help.
<apeiros>
the_f0ster: yes, in the order of code execution, a method's definition must be executed before you can call it
<apeiros>
the_f0ster: that doesn't mean the definition has to be lexically before the call
AlSquire has quit [Quit: This computer has gone to sleep]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
<apeiros>
the_f0ster: e.g. at_exit do foo end; def foo; puts "yay, I was lexically defined after the invocation"; end
sambao21 has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
wald0 has quit [Quit: Lost terminal]
<Jnco>
Hey All - I'm looking for an advanced ruby programmer / architect to help a startup (getsortbox.com). I definetly need some help! If looking for work, please msg me to talk - Thanks ! :)
chrisja has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ndrei has joined #ruby
<mordof>
so.. I'm doing this: mystr = IO.readlines('textfile').join; mystr.each { |c| # stuff in here for handling per-character } but i'm getting 'undefined method `each' for #<String:memloc> .. is anything required to use .each in a regular ruby file?
srji has quit [Ping timeout: 252 seconds]
<mordof>
oh.. i'm using 1.9.3 also
danshultz has quit [Read error: Connection reset by peer]
<mordof>
>> "test".each { |c| print c, " " }
danshult_ has joined #ruby
<havenwood>
mordof: #each_char
yfeldblum has joined #ruby
badhatter_ has quit [Ping timeout: 276 seconds]
<apeiros>
mordof: also, File.read('textfile') instead of .readlines.join
<Hanmac>
havenwood: long time ago ... the BBC did show doctor who episodes to young children ... (5-10) and they should rank how scary they where ... from a scale of 1-5 Episode S3E11 got a "5.5 (Off the scale!)"
SilkFox has joined #ruby
<wallerdev>
spoilers
Kricir has joined #ruby
<mordof>
bah.. this tutorial
twidx has joined #ruby
<mordof>
neither of those are listed, lol
<shevy>
mordof tutorial
<shevy>
are you still reading tutorials
<mordof>
shevy: was using it as a reference because it had things nicely organized
ascarter has joined #ruby
<mordof>
but clearly it's not a full reference
<mordof>
so i'm abandoning it now
<shevy>
this all happens because you decided to start with a boring project
<Mon_Ouie>
Though if you want to just iterate character per character there's no reason to read the whole string at once. IO#each_char exists as well
<mordof>
shevy: ssshhh
<shevy>
now you are back to read incomplete, outdated tutorials :(
Xeago has joined #ruby
<apeiros>
Mon_Ouie: d'uh, right :D
<shevy>
mordof in regards to docu and tutorials though - I think in the end the best way is to collect useful tidbits on your own
bakflash has joined #ruby
rdark has quit [Quit: leaving]
<apeiros>
d'oh?
<shevy>
mordof what was the tutorial about?
<apeiros>
meh
<shevy>
apeiros mah!
<mordof>
shevy: it was a a guide to ruby
vpretzel|998 is now known as vpretzel
<mordof>
shevy: went through a large list of things
senayar has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
<shevy>
flughafen!!! why are you here and not in #berlin ???
tacos1de has quit [Remote host closed the connection]
<Hanmac>
xD
<Mon_Ouie>
Regex is the contraction of 'regular expresion'. Not the same.
<s2013>
ich bin ein berliner
senayar has joined #ruby
<flughafen>
shevy: gute frage
sambao21 has joined #ruby
SegFaultAX has quit [Excess Flood]
<mordof>
Mon_Ouie: wha?
<flughafen>
haha ;)
tyll has quit [Ping timeout: 276 seconds]
<s2013>
g stands for gangsta shevy
tacos1de has joined #ruby
SegFaultAX has joined #ruby
s3ri0us has joined #ruby
<mordof>
it's the modifier that says to match all occurances, isn't it?
<mordof>
or is that the one to match accross newlines..
<shevy>
mordof yeah
<mordof>
i forget
<mordof>
ok
<shevy>
mordof I remember it as "g" for "global"
<shevy>
.sub replaces only once
<mordof>
m is newlines i think?
<Mon_Ouie>
Oh, that's what you mean. I thought you meant the g in the regexp word.
jxf has quit [Ping timeout: 255 seconds]
<mordof>
Mon_Ouie: no
<Mon_Ouie>
There's no g modifier in Ruby either
<mordof>
well
<mordof>
sub vs gsub
Torgoton has joined #ruby
<shevy>
yeah!
<mordof>
there isn't one in php either - it's preg_replace vs preg_replace_all
<mordof>
but the concept is there
metamaterial has quit [Ping timeout: 272 seconds]
St_Marx has quit [Ping timeout: 272 seconds]
<shevy>
mordof kk you passed the #ruby tutorial for today but more difficult ones will await you in the future
<apeiros>
//m makes . match \n too, without it, . is [^\n]
<mordof>
lol
testcore has quit [Remote host closed the connection]
<shevy>
we may even have to combine different ruby classes together ...
Kricir has quit [Remote host closed the connection]
sparrovv has joined #ruby
<shevy>
ah since you know regexes mordof or probably have to do some for your html parser anyway
<mordof>
apeiros: right - that's what m is
sambao21 has quit [Client Quit]
<shevy>
mordof you can use: "foobar"[/YOUR_REGEX_HERE/]
<mordof>
shevy: nope, not using regular expressions for a parser
<shevy>
!!!
<mordof>
that's a poor way of doing it
<shevy>
this is the strangest first project of any ruby beginner to have had
<mordof>
well, it's one way
<mordof>
state machines!
<shevy>
you may end up like apeiros
<mordof>
?
<shevy>
when he was young, he went on to create his own programming language
<mordof>
lol
<wallerdev>
string[/regex/, num] is the most useful method in ruby haha
<mordof>
like i said, i've already done that
<shevy>
nowadays, he has gotten fat and lazy thanks to rails :(
<mordof>
xD
<Torgoton>
Where would be the place to go for help with Ruby's OpenSSL library?
sambao21 has joined #ruby
<Hanmac>
Narnia?
<shevy>
lol
pwh_ has joined #ruby
<mordof>
wallerdev: what's the num arg for?
<shevy>
Torgoton dont think there is a special place; #ruby is for all ruby related questions, if it is a bug then the bug tracker at bugs.ruby-lang.org/projects/ruby-trunk
pwh_ has quit [Client Quit]
<wallerdev>
gets the grouped value
senayar has quit [Ping timeout: 252 seconds]
pwh has quit [Ping timeout: 276 seconds]
tacos1de has quit [Remote host closed the connection]
<Torgoton>
Not sure if it's a bug. I'm trying to encrypt a file with a public key. Having trouble creating the key from the file. "Not enough data" error.
<Mon_Ouie>
Even aster and produces the correct result!
nanoyak has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mordof>
can i not do when "<" and !recordTag in ruby?
<Hanmac>
shevy my system has a big problem ... Xorg uses more ram than my firefox ... oO
<mordof>
thought there was full expression capabilities for when..
<shevy>
Hanmac weird
<shevy>
Hanmac play more flash games, then your firefox will explode
<Mon_Ouie>
Yes but "<" and !recordTag will evaluate to !recordTag (because "<" is always true in a boolean expression)
<Hanmac>
shevy i think you dont get my problem ... firefox currently uses 3.7GB ram ... Xorg uses MORE!! ...
tyll has quit [Ping timeout: 252 seconds]
Musashi1 has joined #ruby
<mordof>
Mon_Ouie: oh, i see
<mordof>
lol, that makes a lot of sense.. i'm just having a dumb moment
<Mon_Ouie>
!recordTag is one of false, true or nil. Because it appears in a `when`, it will be compared to the object in your case using ===. Unless your object happens to be one of those three it won't work.
* mordof
nods
<shevy>
Hanmac lol
mansi has quit [Ping timeout: 276 seconds]
<shevy>
Hanmac you are playing a flash porn game then
<mordof>
Mon_Ouie: understood. the full expression compares, for whatever reason i derped and thought just the first portion would compare, haha
<Hanmac>
currnetly not ... only horting tabs
echevemaster has quit [Ping timeout: 265 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
testcore has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
crystal77 has quit [Quit: Computer has gone to sleep.]
razrunel_ has quit [Remote host closed the connection]
<mordof>
shevy: there - got all tags identified, and right shortly will have all tags with hierarchy and data identified. total lines of code will probably be under 100
pen has joined #ruby
dh64 has joined #ruby
<mordof>
organized, easy to understand.. it's actually not that hard
Mon_Ouie has quit [Ping timeout: 276 seconds]
tyll has joined #ruby
<mordof>
well, later on it starts getting a bit complex. oh well
kobain has joined #ruby
reset has joined #ruby
sdouglas has quit [Remote host closed the connection]
papercode has joined #ruby
<flops>
http://pastebin.com/GBg2RnC4 Anyone got an idea why the SQL is off? Line 7 shows the format... However I can't insert anything.
razrunelord has joined #ruby
Solnse has quit [Quit: Leaving.]
<Hanmac>
flops seems like the array was not inserted correctly into the sql string
<flops>
But how can that happen? I am using ActiveRecord and appearently the table is created correctly
m3nTe has quit [Ping timeout: 276 seconds]
pen has quit [Ping timeout: 240 seconds]
Speed has joined #ruby
Soda has quit [Read error: Connection reset by peer]
* Hanmac
point and laugh at ActiveShit
dawkirst has joined #ruby
<Hanmac>
flops: did you try to ask at #rubyonrails ? AR & AS are their children ... they should take care of it
<flops>
Hanmac: I didn't but I will ask there. Thanks for your help
mehlah has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cina has joined #ruby
<lagweezle>
flops: Show us your class. :p
senayar has joined #ruby
mikecmpbll has joined #ruby
* lagweezle
peers at the example.
chipotle has quit [Quit: cya]
<lagweezle>
word = Word.create(:text => "Test")
<lagweezle>
word.save()
<lagweezle>
What if you did that?
mrmargolis has quit [Remote host closed the connection]
andy___ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
andy___ has joined #ruby
User740 has quit [Client Quit]
dangerousdave has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
mcrmfc has quit [Quit: mcrmfc]
codeFiend has quit [Quit: codeFiend]
kirun has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
<mib_mib>
hi - trying to make a gem - i put everything in a lib/ folder and added a .gemspec file with the correct stuff, and did gem build my-gem.gemspec which says successfuly, and then gem install my-gem which works, then in irb when i do require 'my-gem' it says cannot load such file -- 'my-gem' - any ideas?
alem0lars has joined #ruby
<Senjai>
mib_mib: Do you have a lib/my-gem.rb?
<Stalkr_>
mib_mib: Have you added the lib files to the gemspec?
cina has quit [Quit: leaving]
<mib_mib>
Senjai: it created a lib/my/gem.rb and a lib/my/gem/version.rb
_bart has quit [Ping timeout: 276 seconds]
<Stalkr_>
mib_mib: You should use the name my_gem and not my-gem
predator117 has quit [Remote host closed the connection]
<Stalkr_>
my-gem means it's an extension for my, which I guess is not true?
bean has joined #ruby
Kricir has quit [Remote host closed the connection]
<mib_mib>
Stalkr_: okay - is there any way i can do this without renaming my github repo? kind of want to avoid that
<mib_mib>
Stalkr_: or is it completely independent?
WillAmes has joined #ruby
Kricir has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has quit [Remote host closed the connection]
jottr has joined #ruby
<Mon_Ouie>
It's completely independent. You can have a gem called foo and put all of your code in lib/bar.rb
<Stalkr_>
mib_mib: The repo can still be named my-gem
<Mon_Ouie>
You're just breaking conventions if you do that
rm_ has joined #ruby
yacks has quit [Quit: Leaving]
jimbauds has joined #ruby
<apeiros>
it's a good idea to name your repo like your gem. and let your gem name follow conventions.
cover has joined #ruby
cover_ has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
<Stalkr_>
I am trying to write an image download tool for 4chan. I was told to look at VCR for the API data, but how would I make a sure a thread didn't die, and I can download the images (to test they were actually downloaded)?
<wallerdev>
doesnt vcr cache the responses so it never even contacts the server so it wouldn't matter if it died?
<Stalkr_>
My code talks with the domain, so I am not sure how it's supposed to talk with a cached version
cocotton has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
ktun has joined #ruby
cocotton has joined #ruby
<Stalkr_>
wallerdev: Just append .json to any thread
s3ri0us|away is now known as s3ri0us
predator117 has joined #ruby
<toretore>
i don't get what the problem is
pmd` has joined #ruby
carlyle has joined #ruby
<toretore>
can't you just fetch the json, go through the list of images and download them?
Cache_Money has quit [Quit: Cache_Money]
andrewjf has joined #ruby
jheg_ has joined #ruby
<Stalkr_>
toretore: The JSON doesn't actually contain the images, just data (such as file name and extension). I would have to cache both the thread and the JSON, not sure if that's possible
<Stalkr_>
and then make my test speak with the cached version instead, which I am not sure is possible
rm_ has quit [Ping timeout: 252 seconds]
<toretore>
oh, that kind of thread
tjsousa__ has quit [Ping timeout: 265 seconds]
blueOxigen has quit [Read error: No route to host]
senayar has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<toretore>
are you writing tests for this?
senayar has joined #ruby
<Stalkr_>
That was my plan, but only if it's actually possible
<toretore>
that depends on exactly what it is you want to test
<Stalkr_>
It's no problem to write tests for say the file name, comment or something, but the binary image itself.. I don't know
alem0lars has joined #ruby
<Stalkr_>
Okay, an example:
<toretore>
you can't test against the live 4chan server obviously and have it be predictable
<toretore>
i say screw the tests
<toretore>
just write the thing and see if it works
cover_ has joined #ruby
<Stalkr_>
I want to test my download_thread method. It should create an image `out` and contain six images
carlyle has quit [Ping timeout: 246 seconds]
<Stalkr_>
You don't think that's possible to do?
cover has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
pmd` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<toretore>
i don't know enough about your code nor your project to have an opinion on that
jimbauds has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
_tpavel has joined #ruby
SilkFox has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Read error: No route to host]
bluOxigen has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
SilkFox has joined #ruby
paulfm has quit []
<pontiki>
have you looked a webmock and vcr?
<pontiki>
at*
Snarkz has joined #ruby
jottr has quit [Read error: Operation timed out]
<pontiki>
assuming you testing a remote http service...
<pontiki>
(for Stalkr_ )
<Stalkr_>
pontiki: Yes, I mentioned VCR (and use either webmock or fakeweb). I still don't know how to utilize the library for my example though
ghr has quit [Ping timeout: 252 seconds]
<pontiki>
you can't figure it out from the READMEs?
<Stalkr_>
Nope
<pontiki>
huh
_tpavel has quit [Client Quit]
<pontiki>
i can't do much besides parrot the same info
<Stalkr_>
Have you read my example?
alexju has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<pontiki>
no
<pontiki>
i just looked in
toastynerd has quit [Remote host closed the connection]
cescalante is now known as ce_afk
_tpavel has joined #ruby
<pontiki>
but if you're trying to test code that deals with gathering data from remote web sites, those would be it
afex has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
_djbkd has quit [Remote host closed the connection]
<timgauthier>
flops you thar?
jespada has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
sepp2k has joined #ruby
djbkd has joined #ruby
rmorello has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<Stalkr_>
pontiki: I will try something and see if it actually works
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
ta has joined #ruby
mib_mib has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 252 seconds]
dstynchu_ has joined #ruby
benzrf is now known as benzrf|offline
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
timonv has joined #ruby
dstynchula has quit [Ping timeout: 255 seconds]
freggles has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
bthesorceror has quit [Remote host closed the connection]
omosoj has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bthesorceror has joined #ruby
jespada has joined #ruby
bthesorceror has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby
vpretzel is now known as vpretzel|1211
LostDatagram has quit [Quit: Bye :P - znc.in]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof>
hmm
<mordof>
will something like hash.each.strip work?
_bart has joined #ruby
<apeiros>
mordof: no
<apeiros>
.each without a block returns an Enumerator, and that doesn't have a strip method
<mordof>
ah
<apeiros>
array.each(&:strip) would work
<apeiros>
hash.each(&:strip) would not work, because the each yields an array [key, value] which again, does not have strip
<Hanmac>
but each(&:strip) does nothing ... you need eigher map(&:strip) or each(&:strip!)
<lagweezle>
Erm, suggestions for a gem to help in taking a web page and extracting data from it? I have a local copy of the html.
Kricir has quit [Remote host closed the connection]
<baweaver>
nokogiri
<mordof>
Mon_Ouie: right. well that's more efficient anyway and ends up being what i want
<baweaver>
or grep
mcrmfc has joined #ruby
Kricir has joined #ruby
<Mon_Ouie>
So if you got those string from somewhere and you use Hanmac's code, the change will be observable at other places in your code (potentially, at least)
mcrmfc has quit [Client Quit]
<mordof>
right.. if i did hash.each { |v| v.strip! } it's teh same thing as what was proposed
<mordof>
right
* mordof
nods
<mordof>
understood
fijimunkii has joined #ruby
razrunelord has quit [Remote host closed the connection]
<Mon_Ouie>
Well that wouldn't work. It would be either 'each { |k, v|' or 'each_value { |v|'
<apeiros>
example:
<baweaver>
hash.map { |k,v| [k,v.strip] }.to_h
<baweaver>
example ninja'd
<apeiros>
>> x = "hello"; h = {"key" => x}; h.each_value(&:strip!); x
<apeiros>
Hanmac: yes, map_keys, map_values and map_pairs have been proposed
<baweaver>
didn't really go far.
fgo has joined #ruby
<apeiros>
but rejected by the core devs
* lagweezle
gets to work.
<Hanmac>
*sad face*
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dyreshark has quit [Quit: I just dont know what went wrong!]
jack_rabbit has quit [Ping timeout: 276 seconds]
<mordof>
oh - everything is passed as reference right? there's no value copying in ruby?
<apeiros>
mordof: not on the level you operate :)
dyreshark has joined #ruby
<mordof>
definitely makes things more convenient
<apeiros>
you pass around an opaque object
<Stalkr_>
toretore: pontiki: I feel pretty stupid for not at least trying first. VCR seems to be awesome enough to include the JSON response as well, so it works perfectly
<mordof>
js is all value copying unless you pass an object specifically, then it's a reference
<toretore>
what
jack_rabbit_ is now known as jack_rabbit
dapz has joined #ruby
bradhe has quit [Remote host closed the connection]
<apeiros>
I think in js it's irrelevant whether primitives are copied or not, as they're immutable anyway
<toretore>
i've never seen js do that
razrunelord has joined #ruby
dapz has quit [Client Quit]
<toretore>
it would be like ruby's immediate objects
LostDatagram has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<mordof>
apeiros: technically yeah. though sometimes it would be nice to have a variable that's containing a number to be passed to a different scope and still modify the original
jonDeer has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
razrunelord has quit [Remote host closed the connection]
rokob has quit [Remote host closed the connection]
<toretore>
that would be horrible
<mordof>
toretore: why?
fgo has quit [Ping timeout: 252 seconds]
<apeiros>
kills encapsulation
<toretore>
unpredictable
<mordof>
true
<toretore>
kills babies too
cocotton has quit [Remote host closed the connection]
<mordof>
so ruby doesn't behave this way i take it?
<toretore>
no
bthesorceror has quit [Remote host closed the connection]
MindfulMonk has quit [Ping timeout: 252 seconds]
<mordof>
ok - then i was misunderstanding what was happening with the code block
djbkd has joined #ruby
wallerdev has quit [Quit: wallerdev]
bthesorceror has joined #ruby
Xeago has joined #ruby
cocotton has joined #ruby
<apeiros>
mordof: a block has a property which goes in that direction. it's a closure. but that's not what you use there.
cocotton has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
<apeiros>
in the pieces above, the block is just used as an anonymous function, to which the method you call passes arguments.
cocotton has joined #ruby
Milly_Bays has joined #ruby
confounds has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
zz_jrhorn424 is now known as jrhorn424
* mordof
nods
benzrf|offline is now known as benzrf
Musashi1 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
MindfulMonk has joined #ruby
<apeiros>
closure means it knows about the surrounding lexical context and can manipulate it. example:
nickgartmann has quit [Quit: Connection closed for inactivity]
bradhe has quit [Read error: Connection reset by peer]
srji has quit [Ping timeout: 252 seconds]
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
<gheegh>
i typed this in #rails. .but it's really a ruby question.. If I've got a hash.. like this h = {"1"=>{"2"=>"Yay"}} and the keys for it in an array ["1", "2"].. how would I easily query h to get the "Yay" out?
<Mon_Ouie>
inject(h, :[])
<apeiros>
heh, :[], nice
<gheegh>
trying.. :-)
bradhe has joined #ruby
bthesorceror has quit [Ping timeout: 255 seconds]
mansi has quit [Ping timeout: 265 seconds]
sailias has quit [Quit: Leaving.]
altatistic has joined #ruby
sailias has joined #ruby
razrunelord has joined #ruby
crystal77 has joined #ruby
alem0lars has quit [Quit: alem0lars]
altatist_ has joined #ruby
<gheegh>
i'm clearly at the limit of my ruby.. :-) if the array is k = ["1", "2"]
seuros1 has joined #ruby
kilk__ has joined #ruby
relix has joined #ruby
altatist_ has quit [Client Quit]
jottr has joined #ruby
mansi has joined #ruby
<benzrf>
gheegh: k.inject(h, :[])
simono has joined #ruby
<gheegh>
:-) i was going backwards.. :-)
altatistic is now known as r0ast
<benzrf>
do you know how inject works?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jxf has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
dpyzhov has left #ruby [#ruby]
r0ast has quit [Client Quit]
altatistic has joined #ruby
altatistic is now known as r0ast
davispuh has joined #ruby
seuros has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
Royalb15_1 has quit [Ping timeout: 264 seconds]
noop has quit [Read error: Operation timed out]
razrunelord has quit [Ping timeout: 276 seconds]
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
funburn has joined #ruby
davispuh has quit [Remote host closed the connection]
bthesorceror has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
michael_mbp has joined #ruby
ascarter has joined #ruby
r0ast_ has joined #ruby
wallerdev has joined #ruby
r0ast has quit [Client Quit]
r0ast_ has quit [Client Quit]
r0ast has joined #ruby
doodleha_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
apeiros has joined #ruby
r0ast_ has joined #ruby
anaeem___ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
doodlehaus has quit [Ping timeout: 276 seconds]
crystal77 has joined #ruby
Torgoton has left #ruby [#ruby]
davispuh has joined #ruby
r0ast has quit [Remote host closed the connection]
bthesorceror has quit [Ping timeout: 240 seconds]
r0ast_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<mordof>
even after fiddling with it, having trouble understanding exactly what it's doing
<Mon_Ouie>
And if you don't specify an initial value for the accumulator, it uses the first element of the array and then applies the block while iterating over every other element
<wallerdev>
interesting
<wallerdev>
makes sense
cocotton has joined #ruby
kyb3r_ has joined #ruby
JBreit has joined #ruby
cocotton has quit [Remote host closed the connection]
<timgauthier>
woah, i just did my first pull request on github! :O!
Bira_ has quit [Remote host closed the connection]
<wallerdev>
link us
rudisimo has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
afex has joined #ruby
WishBoy has quit [Remote host closed the connection]
Bira_ has joined #ruby
jottr has joined #ruby
anaeem1_ has joined #ruby
omosoj has quit [Ping timeout: 264 seconds]
paulfm has quit []
benzrf is now known as benzrf|offline
kaspergr_ has quit [Ping timeout: 264 seconds]
s2013_ has joined #ruby
alexju has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
sailias has quit [Quit: Leaving.]
timgauthier has joined #ruby
binw has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
SHyx0rmZ has joined #ruby
ss__ has joined #ruby
kavinder has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
zach23 has joined #ruby
timgauthier has quit [Client Quit]
mrj has quit [Read error: Connection reset by peer]
testcore has quit [Ping timeout: 272 seconds]
s2013_ has quit [Ping timeout: 252 seconds]
dstynchula has joined #ruby
djbkd has quit [Remote host closed the connection]
workmad3 has joined #ruby
dstynchu_ has quit [Read error: Operation timed out]
Morkel has quit [Quit: Morkel]
JaTochNietDan has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
havenwood has quit [Remote host closed the connection]
mcrmfc has joined #ruby
havenwood has joined #ruby
wjlafrance has joined #ruby
djbkd has joined #ruby
<LastWhisper>
sorry hoelzro got sidetracked
<hoelzro>
np
nanoyak has quit [Quit: Computer has gone to sleep.]
danijoo has quit [Read error: Connection reset by peer]
testcore has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
danijoo has joined #ruby
twidx has quit [Quit: Connection closed for inactivity]
nanoyak has joined #ruby
cocotton_ has joined #ruby
testcore has quit [Client Quit]
<LastWhisper>
what's the significance of <=>
ss__ has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
crucify_me has joined #ruby
Squarepy has joined #ruby
havenn has joined #ruby
<workmad3>
LastWhisper: it's the minimal method interface required for implementing comparable objects
crucify_me has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
danshult_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Kricir has joined #ruby
SubSignal has quit [Remote host closed the connection]
havenn has quit [Client Quit]
danshultz has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
s2013 has quit [Disconnected by services]
<hoelzro>
LastWhisper: it returns a value depending on the ordering of its two inputs
<hoelzro>
usually -1, 0, or 1
<hoelzro>
but sometimes it's <0, 0, or >0
s2013 has joined #ruby
andy___ has quit [Quit: Leaving...]
momigi has joined #ruby
cocotton has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
pskosinski has joined #ruby
cocotton_ has quit [Ping timeout: 276 seconds]
<n_blownapart>
hi could anyone recommend an example of deep_clone, one slightly more complex than a fooBar example?
flops has quit [Quit: leaving]
bradhe has joined #ruby
dblessing has quit [Quit: dblessing]
sdouglas has quit [Remote host closed the connection]
n_blownapart is now known as crucify_me
<wallerdev>
crucify_me: usually you have to implement your own deep cloning and copy the info you actually want to be copied
sdouglas has joined #ruby
<wallerdev>
or serialize to json if you just need simple data
JaTochNietDan has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
<crucify_me>
thanks wallerdev yeah I'm learning the differences between clone and deep clone and need to study something aside from a foobar example. noob here.
havenwood has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
bradhe has quit [Read error: Connection reset by peer]
bradhe_ has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
<wallerdev>
basically just create a method deep_clone or something, and in that method you call deep_clone on all the attributes you want to clone recursively til you get to basic types
Es0teric has quit [Quit: Computer has gone to sleep.]
benzrf|offline is now known as benzrf
jgwong has joined #ruby
mark_locklear has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 252 seconds]
<crucify_me>
ok wallerdev that is helpful insofar that I now know to clone up to parent classes, etc. right ? thanks
Spami has joined #ruby
<wallerdev>
yeah
<workmad3>
you need to be careful with cycle-detection when doing deep cloning
failshel_ has joined #ruby
jgwong has quit [Quit: leaving]
pskosinski has quit [Ping timeout: 272 seconds]
Bira_ has quit [Remote host closed the connection]
<crucify_me>
I understand freezing to an immutable state and cloning and the differences in dupe. cycle detection? I only know the cycle method from a deck of cards example.
<crucify_me>
*dup
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
crucify_me: let me show u what is meant
michaeldeol has joined #ruby
<workmad3>
crucify_me: class A; attr_accessor :b; end; a = A.new; a.b = a
<workmad3>
crucify_me: imagine deep-cloning that ;)
<benzrf>
bah, workmad3 beat me to it
<Hanmac>
workmad3: Marshal can do that ;P
jgwong has joined #ruby
tylerkern has joined #ruby
<LastWhisper>
hey hoelzro
<crucify_me>
benzrf: workmad3 wallerdev hmm .. what's that bit a.b = a ?
<workmad3>
Hanmac: yeah, I didn't claim you couldn't... just that you need to be careful and have some form of cycle-detection or recognition that you've already cloned this item
<LastWhisper>
is this implementation an aberration
<cschneid>
Is there a "AND" version of Regexp.union, which is an OR?
<hoelzro>
LastWhisper: yes?
ahawkins has joined #ruby
<LastWhisper>
it was mostly a
<LastWhisper>
"ihavenoideawhatimdoing.jpg"
<cschneid>
Regexp.and(r1, r2, r3) makes sure all 3 match in that order on an input
<workmad3>
crucify_me: setting the attribute 'b' on the instance to itself
ffranz has quit [Quit: Leaving]
Es0teric has joined #ruby
Nukepuppy has quit [Ping timeout: 240 seconds]
<hoelzro>
ah =)
<hoelzro>
it's not bad
failshell has quit [Ping timeout: 252 seconds]
<crucify_me>
cool so I would apply deepClone to that ? workmad3
<LastWhisper>
i can reup it on gist
<hoelzro>
I'm betting there's a more idiomatic way to do it in Ruby, though
<LastWhisper>
might be easier to comment
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<workmad3>
cschneid: yes... /#{r1}#{r2}#{r3}/
<workmad3>
cschneid: a.k.a. slapping the patterns together ;)
<cschneid>
workmad3: I figured that one out, felt a bit odd doing interpolation like that :)
troyronda has joined #ruby
failshel_ has quit [Ping timeout: 240 seconds]
<LastWhisper>
workmad3: you have any suggestions on how to improve my "readability solution" http://pastebin.com/dGK4PZgB
<banisterfiend>
workmad3 hey :D
Es0teric has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
<workmad3>
crucify_me: I'm trying to point out that if you tried a naieve deep-clone on that, where you simply clone all the attributes then you end up with infinite recursion when there's a 'cycle' and the same object appears multiple times in the clone
<workmad3>
banisterfiend: o/
jgwong has quit [Client Quit]
<workmad3>
LastWhisper: you start by not using the most horrific-looking pastebin out there ;)
kavinder has quit [Remote host closed the connection]
<reactormonk>
how would you split a string and keep the character position of each splitted element?
<LastWhisper>
ugh sorry haha
<LastWhisper>
let me gist
wjlafrance has quit [Quit: This computer has gone to sleep]
<workmad3>
wallerdev: that isn't quite the same as the setup though
mcrmfc has quit [Ping timeout: 252 seconds]
<SteveBenner09>
guys is there anyone who knows a lot about the issues surrounding gcc use in OSX 10.9
<wallerdev>
haha well i was just guessing based on what it looked like
<wallerdev>
didnt really look at what it was doing too long
<workmad3>
wallerdev: it's subtly different ;)
mcrmfc has joined #ruby
<havenwood>
SteveBenner09: Like what do you mean?
<wallerdev>
i use os x
<SteveBenner09>
I've noticed several cases where I run into problems building software because either the llvm/clang support is required or newer versions of gcc are not compatible
<workmad3>
wallerdev: if left and right displays are the same, it should sort on position if display is true, and on title if display is false
dennus has joined #ruby
<SteveBenner09>
like, I just failed to build nokogiri becase I was installing with gcc-4.8 installed with homebrew and can't for the life of me figure why, because the build output gets too vague
eavgerinos has joined #ruby
m8 has quit [Ping timeout: 265 seconds]
<SteveBenner09>
it said some flags were not supported, then just failed without a description while linking some html_document.o file
<wallerdev>
probably not building with gcc then
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev>
sounds like a clang error
<SteveBenner09>
I just want to learn more about how these things function if I can
fgo has joined #ruby
<wallerdev>
gcc is symlinked to clang on os x 10.9
<SteveBenner09>
so this would necessitate knowledge about C compilers >.<
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<SteveBenner09>
no way can I learn that in a day
kaspergrubbe has quit [Ping timeout: 252 seconds]
<SteveBenner09>
I know, all you have to do is type 'gcc -v' :)
Nukepuppy has joined #ruby
<wallerdev>
theres a flag you can pass to clang to ignore those errors
<wallerdev>
thats what most people suggest doing
pel_daniel has joined #ruby
<SteveBenner09>
wallerdev: thats what I found out, because I assumed it was the newer gcc tha twas causing hte issue; I use the CC env variable to build
<SteveBenner09>
I built with the system gcc and it worked
kaspergrubbe has joined #ruby
x1337807x has joined #ruby
<LastWhisper>
thanks workmad3! That is what I was looking for
<LastWhisper>
I think your rephrasing of left/right also helped me understand better
<LastWhisper>
:)
ahawkins_ has joined #ruby
<workmad3>
LastWhisper: np :)
ahawkins_ has quit [Read error: Connection reset by peer]
ahawkins1 has joined #ruby
marr has quit []
<SteveBenner09>
wallerdev: interesting, I did not know that. Where can I find out more info? Can you suggest a set of terms to google
<wallerdev>
if you pastebin the error i can probably find where i found the flag before
<wallerdev>
but i dont recall the flag off the top of my head right now
<SteveBenner09>
Luckily I can build with system gcc, but I'm dying to know the underlying reason why there are so many issues with gcc :) I guess that's a personal dilemma haha
CMoH has joined #ruby
<wallerdev>
clang just fails if you pass it an unrecognized parameter since it doesnt want to build something incorrectly
olivier_bK has quit [Ping timeout: 246 seconds]
<wallerdev>
so if you use some gcc specific flag that clang doesnt support then it will fail to build
andrewjanssen has quit [Quit: Leaving...]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Remote host closed the connection]
<SteveBenner09>
right; I'm assuming this is a nokogiri issue since I didn't alter anything but the gcc version
<SteveBenner09>
CMoH: you are actually looking at Rack in this case, which is the software Thin uses as configuration
<natewalck>
aha!
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dawkirst has quit [Ping timeout: 265 seconds]
<natewalck>
havenwood: thanks!
<SteveBenner09>
Thin seems to have very poor documentation, but actually that's because it's just basically several other software components wrapped together
testcore has joined #ruby
<natewalck>
I think that will fix it, I just need to reinstall the gems now
<SteveBenner09>
Rack is what determines the logger in most cases
aspires has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
<SteveBenner09>
natewalck: I HIGHLY recommend chruby for a version manager, personally
<havenwood>
chruby \o/
<SteveBenner09>
haha
nfk has quit [Quit: yawn]
<natewalck>
SteveBenner09: Yea
aspires has joined #ruby
<natewalck>
I plan on it
<natewalck>
I want a standalone env for this
<natewalck>
as clearly apt managing ruby is a nightmare
<SteveBenner09>
it has made my life less painful in many ways haha
<SteveBenner09>
oh trust me, apt isn't the only one
ahawkins has quit [Read error: Connection reset by peer]
<SteveBenner09>
as in, 'try developing on osx' and you'll see what I mean
<SteveBenner09>
its also irksome
<momomomomo>
SteveBenner09: natewalck You don't have to - you could run a virtual machine inside of Vanguard or something
<wallerdev>
i love os x
<wallerdev>
dont hate
<momomomomo>
erm * Vagrant
<SteveBenner09>
dude me too
vpretzel has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 240 seconds]
jnor has joined #ruby
vpretzel has joined #ruby
<natewalck>
SteveBenner09: I developed on OS X
razrunelord has quit []
<natewalck>
but am moving it to ubuntu
<natewalck>
vm
s3ri0us has quit [Ping timeout: 252 seconds]
<SteveBenner09>
but they only just got around to updating ruby in 10.9 for gods sake and they still can't figure out how to consolodate their own Ruby frameworks used in developer tools
<SteveBenner09>
geez
jonr22 has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
<Stalkr_>
When writing a Ruby gem, do I have to (in my Gem module file), require all lib/gem/* files manually?
jonr22 has joined #ruby
cover_ has quit [Remote host closed the connection]
aspires has quit [Client Quit]
andrewlio has quit [Quit: Leaving.]
<jnor>
hmm why is this so difficult, thin refuses to start a pid, it start without any error (but it dosen't) and then when I stop it sats cant find thin.0.pid.. it can write to the pid folder.. this is killing me
<Stalkr_>
Is it possible to do require_relative './gem/*'?
razrunelord has joined #ruby
nanoyak has joined #ruby
<SteveBenner09>
Stalkr_: You can use `Dir.glob('../gem/*.rb')` to collect all the ruby files if you want
<SteveBenner09>
or better, add the path to your $LOAD_PATHS
<SteveBenner09>
which will make them available for requiring normally
<Stalkr_>
Are there anything wrong with that or does gem developers do that as well?
Avahey_ has joined #ruby
SegFaultAX has quit [Excess Flood]
aspires has joined #ruby
SegFaultAX has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
ikaros has quit [Quit: Ex-Chat]
nanoyak has quit [Quit: Computer has gone to sleep.]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires_ has joined #ruby
nanoyak has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
nanoyak has quit [Read error: Connection reset by peer]
brutalbutler has joined #ruby
guardian` has joined #ruby
einarj has joined #ruby
pwh has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
pwh has quit [Max SendQ exceeded]
frem has joined #ruby
Adran has quit [Ping timeout: 258 seconds]
brutalbu1ler has quit [Ping timeout: 258 seconds]
dmarr has quit [Ping timeout: 258 seconds]
guardian has quit [Ping timeout: 258 seconds]
Port3M5[Work] has quit [Ping timeout: 258 seconds]
<crucify_me>
benzrf: this line is correct though? obj2 = DeepClone.clone obj1
troyronda has quit [Remote host closed the connection]
* benzrf
shrugs
<benzrf>
i dont know how deepclone works
ahawkins has quit [Read error: Connection reset by peer]
<crucify_me>
in deep over my head ^^
<benzrf>
haha
<crucify_me>
thanks
meatherl_ has joined #ruby
george2 has quit [Remote host closed the connection]
<crucify_me>
meatherl_: nice moniker
lbwski has quit [Ping timeout: 276 seconds]
mansi has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 240 seconds]
senayar has quit []
mary_synthesizin has quit [Remote host closed the connection]
jnor has quit [Quit: WeeChat 0.4.3]
troyronda has joined #ruby
thumpba_ has joined #ruby
meatherly has joined #ruby
zach23 has joined #ruby
<SteveBenner09>
lol
sdouglas has joined #ruby
cherry_lin has joined #ruby
drago777 has quit [Ping timeout: 258 seconds]
<CMoH>
havenwood, SteveBenner09, thanks - in the end i gave up; the rackup file seems to be fine for logging application output to syslog, not thin (as container)
troyronda has quit [Remote host closed the connection]
<CMoH>
but learned a lot
newUser1234 has quit [Quit: Leaving...]
meatherly has quit [Remote host closed the connection]
billy_ran_away has quit [Ping timeout: 258 seconds]
cherry_l1n has quit [Ping timeout: 258 seconds]
<CMoH>
?
drago777 has joined #ruby
<SteveBenner09>
CMoH unsure what you mean by that but okay.
AlexRussia has quit [Remote host closed the connection]
<SteveBenner09>
thin is a server, rackup is a configuration interface for servers and applications
<CMoH>
well, if say redmine crashes for some reason, the exception is logged in the thin log
<SteveBenner09>
you want to configure the logger in either the rackup config file (.ru) or your actual app (.rb)
billy_ran_away has joined #ruby
AlexRussia has joined #ruby
<CMoH>
which, without syslog, can't be transported on my admin server
<SteveBenner09>
and you want to divert this from Redmine to your own script? or ..?
<CMoH>
no, i don't have any script. i just want to get an email when the stuff crashes (which does happen)
Kricir has joined #ruby
crucify_me has quit [Remote host closed the connection]
<CMoH>
and i have set up the email thing for syslog already centralized for N hosts
meatherl_ has quit [Ping timeout: 264 seconds]
<CMoH>
what remains is to convince this thin to use syslog instead of a plain file
fluve has joined #ruby
clov3r has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<SteveBenner09>
thats actually what I was looking for earlier.
<SteveBenner09>
that is open source apache software
blackmesa has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
jtdowney has joined #ruby
troyronda has quit [Remote host closed the connection]
<CMoH>
thanks - i'll look into it
<momomomomo>
SteveBenner09: this is neat
centipedefarmer has joined #ruby
clov3r has quit [Ping timeout: 255 seconds]
thumpba_ has quit [Remote host closed the connection]
<CMoH>
momomomomo, piping the thin command through logger only logs the initial command output (like 'Staring blah'). next thin somehow forks or whatnot and the real server is started with a different stdout
cmoneylulz has joined #ruby
<SteveBenner09>
yeah I haven't used it but am highly interested and impressed with their demo video. Sorry ignore papertrail haa, I was looking for logstash initially
<the_f0ster>
any suggestions on going from ruby code -> executable on mac
<SteveBenner09>
I was making suggestions for that because you seem less accustomed to developing the internals of ruby server softwaer
<SteveBenner09>
you can configure Thin to do that but i haven't used redmine myself so not sure where to help out there