lemur has quit [Remote host closed the connection]
<shevy>
it's just a representation, I think you can get it via db.inspect
phinfonet has joined #ruby
zz_karupa is now known as karupa
<sgp667>
shevy, db.class gives me Mysql, db.inspect give me the crytipc mesage :(
pietr0 has quit [Quit: pietr0]
hpoydar has joined #ruby
ahofmann has joined #ruby
momomomomo has quit [Remote host closed the connection]
ahofmann has quit [Client Quit]
predator117 has quit [Ping timeout: 264 seconds]
ahofmann has joined #ruby
<shevy>
it's not cryptic
Kricir has joined #ruby
<shevy>
it's just some internal representation thing
<shevy>
possibly where it's stored
<shevy>
what message do you want to see else sgp667 ?
<shevy>
you already have an instance of class Mysql assigned to the variable name db
predator117 has joined #ruby
nateberkopec has joined #ruby
NukePuppy has quit [Ping timeout: 240 seconds]
Matip has quit [Ping timeout: 240 seconds]
<sgp667>
shevy, I guess I didn't introdue the whole proble I get thsi message and similar ones even I try to query something and I do something like fetch_row, in this case I am expecting something recognizable from my database but I get similar set of numbers
robbyoconnor has quit [Excess Flood]
<sgp667>
shevy, what are those numbers anyway? some error exception? If I knew what it is I would look it up
net_mask has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
net_mask has joined #ruby
<shevy>
you get this problem only in irb?
<shevy>
<shevy> it's just some internal representation thing
<shevy>
<shevy> possibly where it's stored
<shevy>
<shevy> it's just a representation, I think you can get it via db.inspect
gusblan has quit [Remote host closed the connection]
timonv has joined #ruby
blooberr____ has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Client Quit]
sski has joined #ruby
guyz has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
Ankhers has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 252 seconds]
gomikemike is now known as gomikemike_ZZz
digifiv5e has joined #ruby
bradhe has joined #ruby
digifiv5e is now known as Guest50712
cashnguns has quit [Remote host closed the connection]
lyanchih has joined #ruby
balazs has joined #ruby
timmow has joined #ruby
monkegjinni has joined #ruby
Davey is now known as Eomar
nateberkopec has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
<balazs>
hi. what's the way to store a big data structure to a pstore ? can I do: ps = Pstore.new(file); ps = bigdatastructure ?
b1205 has joined #ruby
lyanchih_ has joined #ruby
ghr has joined #ruby
sdouglas has quit [Remote host closed the connection]
cjsarette has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
adantj has quit [Ping timeout: 264 seconds]
sdouglas has joined #ruby
lemur has joined #ruby
aantix has quit [Quit: aantix]
cjsarette has joined #ruby
lyanchih has quit [Ping timeout: 252 seconds]
lyanchih_ is now known as lyanchih
lw has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
zorak has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
Valesk_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
sgp667 has quit [Quit: Leaving]
ghr has quit [Ping timeout: 245 seconds]
<toretore>
ps[key] = value
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
rezzack has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 264 seconds]
cjsarette has quit [Remote host closed the connection]
b1205 has quit [Ping timeout: 264 seconds]
happytux has quit [Remote host closed the connection]
cjsarette has joined #ruby
zorak has joined #ruby
Hanmac1 has joined #ruby
freggles has quit [Remote host closed the connection]
momomomomo has joined #ruby
northfurr has joined #ruby
Rollabunna has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
stantona has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
Channel6 has joined #ruby
aspires has quit []
robustus has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
doodlehaus has joined #ruby
b1205 has joined #ruby
ixti has quit [Read error: Connection reset by peer]
robustus has joined #ruby
cjsarette has quit [Remote host closed the connection]
MZAWeb has joined #ruby
cjsarette has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
ahofmann has quit [Quit: Computer has gone to sleep.]
b1205 has quit [Ping timeout: 240 seconds]
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
Zenigor has joined #ruby
mikepack_ has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Valesk_ has joined #ruby
Channel6 has quit [Quit: Leaving]
net_mask has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
ASLY has joined #ruby
<wallerdev>
how is everyone this afternoon
havenwood has joined #ruby
mikepack_ has quit [Ping timeout: 240 seconds]
<ASLY>
holaaaaaaaaaaaaaaaaa
<havenwood>
hi
linuxnewb2 has joined #ruby
<ASLY>
de donde don
ASLY has left #ruby [#ruby]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Photism2 has joined #ruby
ndngvr has joined #ruby
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
ndngvr` has quit [Ping timeout: 276 seconds]
cjsarette has quit [Remote host closed the connection]
toastynerd has joined #ruby
cjsarette has joined #ruby
Photism_ has quit [Ping timeout: 276 seconds]
eguim has quit [Ping timeout: 276 seconds]
dseitz has joined #ruby
renier has joined #ruby
momomomomo has quit [Quit: momomomomo]
kies has quit [Quit: baaaaiiiiiiiiiii~]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
kies has joined #ruby
ponga has joined #ruby
mary5030_ has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
Channel6 has joined #ruby
<shevy>
wallerdev nothing happens
<wallerdev>
zzz
<wallerdev>
im eating dinner
<wallerdev>
then going home
hamakn has quit [Remote host closed the connection]
<shevy>
yeah
<shevy>
nothing happens
_reset has joined #ruby
nateberkopec has quit [Quit: Leaving...]
datafirm has quit [Quit: Computer has gone to sleep.]
<balazs>
toretore: so I need to loop thru each key of bigdatastructure ?
datafirm has joined #ruby
<balazs>
no way to just say: store this data in this file ?
reset has quit [Ping timeout: 264 seconds]
Valesk_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
net_mask has quit [Remote host closed the connection]
_reset has quit [Ping timeout: 244 seconds]
net_mask has joined #ruby
mikesplain has joined #ruby
datafirm has quit [Ping timeout: 240 seconds]
krz has joined #ruby
bradhe has joined #ruby
<wiku5_>
q
wiku5_ has quit [Quit: WeeChat 0.4.2]
benzrf is now known as benzrf|offline
net_mask has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
felixjet has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 245 seconds]
felixjet has joined #ruby
TheComrade has joined #ruby
Kricir has quit [Remote host closed the connection]
Slavox|AFK has quit [Ping timeout: 252 seconds]
datafirm has joined #ruby
Slavox|AFK has joined #ruby
hamakn has joined #ruby
<TheComrade>
if !(File.exists?(dest_fn) && (File.size(dest_fn) == s3_obj.content_length)) < this code is failing on the File.size call, because the file does not exist. Question is: Why isn't this code short circuiting out on File.exists? I thought I had this figured out yesterday but apparently not...
net_mask has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
Valesk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gaboesquivel has joined #ruby
GriffinHeart has joined #ruby
mgorbach has quit [Max SendQ exceeded]
mgorbach has joined #ruby
dorei has quit []
Spami has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
b1205 has joined #ruby
<TheComrade>
argh, nevermind. wrong line.
phoo1234567 has quit [Remote host closed the connection]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
gruz0[russia] has joined #ruby
ehc has quit [Quit: ehc]
radic has quit [Ping timeout: 240 seconds]
OffTheRails has quit [Ping timeout: 264 seconds]
radic has joined #ruby
ehc has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
b1205 has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
atraylen has quit [Ping timeout: 252 seconds]
ehc has quit [Ping timeout: 264 seconds]
Atrumx has joined #ruby
combusean has joined #ruby
doodlehaus has quit [Remote host closed the connection]
zB0hs has joined #ruby
binaryhat has joined #ruby
zB0hs has quit [Max SendQ exceeded]
SCommette has joined #ruby
aantix has joined #ruby
Asher has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
Takle has quit [Remote host closed the connection]
amclain has joined #ruby
Kricir has joined #ruby
tectonic has joined #ruby
harryk has quit [Ping timeout: 240 seconds]
aantix has quit [Client Quit]
doodlehaus has joined #ruby
eka has joined #ruby
pot is now known as version
lyanchih has joined #ruby
gbchaosmaster has joined #ruby
b1205 has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
binaryhat has quit [Quit: Leaving]
oo_ has joined #ruby
spastorino has joined #ruby
kenneth has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
doodlehaus has quit [Remote host closed the connection]
harryk has joined #ruby
<lagweezle>
Hmm. For rspec, using let ... let only creates/assigns for an example that uses it, but it makes a new one for each example?
<sevenseacat>
yep
<sevenseacat>
tests in isolation
<sevenseacat>
no shared state between tests
newUser1234 has quit [Remote host closed the connection]
<lagweezle>
Yay!
eguim has joined #ruby
Zenigor has quit [Remote host closed the connection]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Boohbah has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
newUser1234 has joined #ruby
Takle has joined #ruby
gusblan has joined #ruby
* lagweezle
peers at results.
<lagweezle>
let has some ... interesting behaviors...
<sevenseacat>
such as?
eguim has quit [Ping timeout: 245 seconds]
<lagweezle>
it 'meh' do
<lagweezle>
puts "start #{moo}"
<lagweezle>
moo = b
<lagweezle>
b = moo + 1
<lagweezle>
moo = moo + 1
<lagweezle>
puts "end #{moo}"
<lagweezle>
end
<lagweezle>
That ... did odd things.
<sevenseacat>
i have no idea what you expect that to do
bradhe has joined #ruby
<lagweezle>
If I take out the 3rd and 4th lines, I get Failure/Error: moo = moo + 1 NoMethodError: undefined method `+' for nil:NilClass
timonv has quit [Ping timeout: 240 seconds]
<lagweezle>
As written, 'puts "end #{moo}"' outputs 'end 3'
musashi1 has quit [Quit: Musashi1]
net_mask has quit [Remote host closed the connection]
<jkline>
you can use exit to indicate your program failed, or your program suceeded.
jespada has quit [Quit: Leaving]
<jkline>
abort always means your program failed.
<jkline>
abort will print an error message, but exit will not .
thesheff17 has joined #ruby
<jkline>
I should have said: abort will print an error message, if you pass an error message to be printed.
<jkline>
Does that make sense?
Rollabunna has quit [Ping timeout: 240 seconds]
<sevenseacat>
abort implies unexpected failure
<noob101>
I need to think about that jkline
<jkline>
abort means your program failed to do whatever it was asked to do.
<jkline>
exit means your program is finished doing what it was asked, and you have to specify if it suceeded or failed
<noob101>
jkline: Oh ok
djbkd has joined #ruby
<noob101>
jkline: Oh ok for example, if the program exits then I would purposely know depending if I made exit a good sign if exiting the program means success or failure right?
<jkline>
I think that is right.
<jkline>
`exit 0` or `exit true` means you're done, and you accomplished your goal.
<jkline>
`exit false` or exit with any non-zero integer means you failed.
<jkline>
and whoever called your program is responsible for checking the exit status to know how to react.
cjsarette has quit [Remote host closed the connection]
mary5030 has joined #ruby
cjsarette has joined #ruby
<noob101>
My freaking keyboard mouse froze sorry
<noob101>
Thank you for the info jkline
microdex has joined #ruby
dik_dak has quit [Quit: Leaving]
<microdex>
Anyone use Unicorn ?
b1205 has joined #ruby
newUser1_ has joined #ruby
<microdex>
I can start Rails app using 'rails s' but with Unicorn it just hangs and then times out
sski has quit [Remote host closed the connection]
<noob101>
By the way, what kind of things are created using ruby. Can anyone show me something before I go to sleep, I wonder if I will be able to use my ruby skills.
sski has joined #ruby
<sevenseacat>
anything... its a general purpose programming language
newUser1234 has quit [Ping timeout: 264 seconds]
dayepa has joined #ruby
<noob101>
sevenseacat: What does that mean? What can be created then?
<sevenseacat>
anything you want
mary5030 has quit [Remote host closed the connection]
<mozzarella>
well, you wouldn't write an operating system in ruby, for example…
<mozzarella>
and you can't really do embedded programming with it either
sski has quit [Remote host closed the connection]
sski has joined #ruby
<sevenseacat>
if you were after doing either of those things, you wouldnt be named 'Noob101' and wouldnt be asking the difference between exit and abort
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
NukePuppy has joined #ruby
mradmacher has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
alvaro has joined #ruby
<alvaro>
E: Unable to locate package rails3
<alvaro>
E: Unable to locate package ruby1.9.3
<alvaro>
How to proceed whit this?
<sevenseacat>
thats not a lot to work with
Takle has joined #ruby
<alvaro>
=/
<sevenseacat>
start with what OS you're on and what command you're running
GriffinH_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ponga>
mozzarella do you use hotkey to switch around channel?
<mozzarella>
yes, ctrl + vim "movement keys"
<ponga>
lol
<ponga>
irc pro
<mozzarella>
which would usally be hjkl, but I'm using a dvorak keyboard layout
<mozzarella>
;p
cjsarette has quit [Remote host closed the connection]
<ponga>
wow
cjsarette has joined #ruby
<mozzarella>
weechat is the best irc client
to_s has joined #ruby
bmurt has joined #ruby
helpa has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
helpa has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
FifthWall has quit [Ping timeout: 252 seconds]
FifthWall has joined #ruby
net_mask has joined #ruby
byonic has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jack_rabbit has joined #ruby
kireevco has joined #ruby
Monte has joined #ruby
<Monte>
these hips are big hips
lyanchih has quit [Quit: lyanchih]
maletor has joined #ruby
Kricir has joined #ruby
<alvaro>
haha
PanPan has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
paradisaeidae has quit [Ping timeout: 245 seconds]
bmurt has quit []
cpruitt has joined #ruby
newUser1_ has quit [Read error: Connection reset by peer]
b1205 has quit [Ping timeout: 264 seconds]
newUser1234 has joined #ruby
Monte has left #ruby [#ruby]
eka has joined #ruby
eka has quit [Client Quit]
cjsarette has quit [Remote host closed the connection]
amargherio has quit [Remote host closed the connection]
cjsarette has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
stantona has joined #ruby
<microdex>
Anyone know how to find logs for Unicorn? My app works perfectly when started with 'rails s' but breaks down when using Unicorn
ehc has joined #ruby
stantona has quit [Ping timeout: 244 seconds]
Eyes has quit [Read error: Connection reset by peer]
SuinDraw has joined #ruby
SuinDraw is now known as Eyes
TheComrade has quit [Remote host closed the connection]
ehc has quit [Ping timeout: 252 seconds]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
deric_skibotn has quit [Ping timeout: 265 seconds]
danijoo has joined #ruby
Kricir has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
papercode has quit [Quit: WeeChat 0.4.3]
net_mask has quit []
helpa has quit [Ping timeout: 245 seconds]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
b1205 has joined #ruby
Deele has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
timonv has joined #ruby
brunops has quit [Quit: leaving]
Kricir has quit [Remote host closed the connection]
i_s has joined #ruby
mary5030 has joined #ruby
Channel6 has quit [Quit: Leaving]
doodlehaus has joined #ruby
gaboesquivel has quit []
bradhe has joined #ruby
b1205 has quit [Ping timeout: 240 seconds]
datafirm has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 244 seconds]
SOLID000 has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
cjsarette has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 252 seconds]
cjsarette has joined #ruby
Valesk has joined #ruby
cephalostrum has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Ping timeout: 264 seconds]
linuxnewb4 has joined #ruby
musashi1 has joined #ruby
musashi1 has quit [Client Quit]
srx___ has joined #ruby
cephalostrum has joined #ruby
ratdaddy has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
codezomb has joined #ruby
cjsarette has quit [Remote host closed the connection]
datafirm has joined #ruby
cjsarette has joined #ruby
linuxnewb2 has quit [Ping timeout: 272 seconds]
wchun has joined #ruby
wchun has quit [Remote host closed the connection]
linuxnewb4 has quit [Ping timeout: 245 seconds]
wchun has joined #ruby
Gil_ has joined #ruby
aantix has joined #ruby
Dreamer3 has joined #ruby
oo_ has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
Tricon has quit [Remote host closed the connection]
Tricon has joined #ruby
Gil_ has quit [Ping timeout: 240 seconds]
Tricon has quit [Remote host closed the connection]
Tricon has joined #ruby
gaboesquivel has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dreamer3 has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
cjsarette has quit [Remote host closed the connection]
aantix has quit [Quit: aantix]
cjsarette has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
cjsarette has quit [Remote host closed the connection]
lw has quit [Quit: s]
cjsarette has joined #ruby
codezomb has quit [Ping timeout: 264 seconds]
newUser1234 has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
lw has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
newUser1234 has joined #ruby
NukePuppy has quit [Ping timeout: 240 seconds]
rkr090 has joined #ruby
monkegjinni has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
newUser1234 has quit [Remote host closed the connection]
exgf_z has joined #ruby
ghr has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
exgf has quit [Ping timeout: 264 seconds]
tobago has joined #ruby
Rollabunna has joined #ruby
alem0lars has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
ghr has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
x1337807x has joined #ruby
cjsarette has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 264 seconds]
cjsarette has joined #ruby
ehc has joined #ruby
Spami has joined #ruby
sinkensabe has quit [Remote host closed the connection]
aspires has quit []
ferr_ has joined #ruby
mijicd has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
ehc has quit [Ping timeout: 245 seconds]
dukedave has quit [Ping timeout: 264 seconds]
jobewan has joined #ruby
amclain has quit [Quit: Leaving]
MrDoctor has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
tagrudev has joined #ruby
comma8 has quit [Ping timeout: 245 seconds]
jkline has quit [Quit: jkline]
Kricir has joined #ruby
kireevco has quit [Quit: Leaving.]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
bradhe has joined #ruby
luisjose has quit [Read error: No route to host]
subraminion has joined #ruby
ta has quit [Remote host closed the connection]
Valesk_ has joined #ruby
luisjose has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
kireevco has quit [Client Quit]
Kricir has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
nemesit|znc has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 272 seconds]
nanodano has joined #ruby
aganov has joined #ruby
<nanodano>
By what name do you call one who Rubies? A Rubier? A Rubist? A Ruber?
<Hanmac1>
Rubican? ,P
nemesit|znc has joined #ruby
<sevenseacat>
rubyist
<nanodano>
ah!
yfeldblum has joined #ruby
djbkd has quit [Remote host closed the connection]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: Leaving]
heftig has quit [Quit: Quitting]
<nanodano>
I am a fresh Rubyophyte
djbkd has joined #ruby
pvb has joined #ruby
<sevenseacat>
welcome :)
alvaro has quit [Quit: Saindo]
<nanodano>
I saw a couple talks by David Heinemeier Hansson and rails, specifically one about test driven design and how he hates it, and another called "writing software" and he definitely re-sparked my interest in Ruby (coming from the PHP world)
<sevenseacat>
that was an interesting talk recently
<nanodano>
I liked what he had to say
<nanodano>
I did not realize he wrote rails, I knew him from business talks and 37signals
djbkd has quit [Ping timeout: 240 seconds]
<sevenseacat>
well 37signals made basecamp, and the original basecamp codebase is what rails was originally extracted from
<nanodano>
I have used CAkePHP which I think is meant to be a clone of rails
<sevenseacat>
one of the many php frameworks heavily inspired by rails, yes
<nanodano>
I'm hoping that knowledge will transfer well when learning rails
<sevenseacat>
some will - like the basics of MVC on the web
ta has joined #ruby
<sevenseacat>
we also have a dedicated channel for discussing rails - #rubyonrails
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
<nanodano>
I'm watching a Google Tech Talk by Matz right now
yetanotherdave has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
cjsarette has quit [Remote host closed the connection]
kiri has joined #ruby
ferr_ has quit [Remote host closed the connection]
cjsarette has joined #ruby
yetanotherdave has quit [Ping timeout: 244 seconds]
Shidash has joined #ruby
thesheff17 has quit [Ping timeout: 244 seconds]
garndt has quit [Quit: Connection closed for inactivity]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
to_s has quit [Quit: leaving]
chrishough has quit [Quit: chrishough]
akonny has joined #ruby
SOLID000 has joined #ruby
krz has joined #ruby
mijicd has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
alem0lars has quit [Quit: Going AFK...]
ghr has joined #ruby
alem0lars has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
i_s has quit [Quit: i_s]
alem0lars has quit [Client Quit]
djbkd has joined #ruby
echevemaster has quit [Quit: Leaving]
sinkensabe has joined #ruby
saarinen has quit [Quit: saarinen]
ghr has quit [Ping timeout: 272 seconds]
krz has quit [Quit: WeeChat 0.4.3]
<nanodano>
Just to get a feel, what kind of applications do some of you guys write? Do you write hobby or professional?
adantj has joined #ruby
himsin has joined #ruby
cjsarette has quit [Remote host closed the connection]
alem0lars has joined #ruby
<sevenseacat>
i write rails apps for a living
cjsarette has joined #ruby
<nanodano>
nice!
yetanotherdave has quit [Ping timeout: 264 seconds]
<nanodano>
Do you freelance?
ehc has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
blinkdesign has joined #ruby
jprovazn has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
dawkirst has joined #ruby
IceDragon has quit [Quit: Space~~~]
b1205 has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
ehc has quit [Ping timeout: 264 seconds]
<sevenseacat>
nah
kwd has joined #ruby
timonv has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
sdouglas has joined #ruby
cjsarette has quit [Remote host closed the connection]
lkba has joined #ruby
apeiros has quit [Remote host closed the connection]
bradhe has joined #ruby
cjsarette has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
b1205 has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
lxsameer has joined #ruby
Valesk_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 245 seconds]
<lxsameer>
hey guys what is ruby 2.0 hash syntax ?
yetanotherdave has quit [Ping timeout: 240 seconds]
nitish has joined #ruby
nitish has quit [Changing host]
nitish has joined #ruby
ehc has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
timonv has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
ndrei has quit [Quit: Lost terminal]
holden247 has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
Doppp has quit [Quit: leaving]
datafirm has joined #ruby
Doppp has joined #ruby
gusblan has joined #ruby
sinkensabe has quit [Remote host closed the connection]
e^0 has quit [Quit: WeeChat 0.4.3]
sinkensabe has joined #ruby
datafirm has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
railzForDaiz has joined #ruby
GriffinHeart has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
gaboesquivel has quit []
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
tesuji has joined #ruby
alex88 has joined #ruby
jimbauds has quit [Quit: Leaving]
cuqa has quit [Changing host]
cuqa has joined #ruby
Notte has joined #ruby
Morkel has joined #ruby
tomyx has joined #ruby
SegFaultAX has quit [Ping timeout: 272 seconds]
ctp has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
qba73 has joined #ruby
SegFaultAX has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
<whyy>
Hey
hermanmunster has quit [Remote host closed the connection]
<whyy>
I was recently going through Optional Types in Swift Programming Language by Apple, and it seems they have done a good job of avoiding Nil Propogations with the same
hermanmunster has joined #ruby
<whyy>
Is there anyway the same pattern for avoiding nil propogations in Ruby be adopted or implemented ?
cjsarette has quit [Remote host closed the connection]
ratdaddy has quit [Quit: Connection closed for inactivity]
cjsarette has joined #ruby
mikecmpbll has joined #ruby
ctp has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
obs has joined #ruby
<Mon_Ouie>
What do you mean, nil propagations? Most often, as soon as you message nil where you didn't expect to get it you'll get a NoMethodError exception
dayepa has quit [Quit: dayepa]
ta has joined #ruby
lw_ has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
nfk has joined #ruby
MrDoctor has quit [Remote host closed the connection]
MrDoctor has joined #ruby
moritzs has joined #ruby
lw has quit [Ping timeout: 252 seconds]
olivier_bK has joined #ruby
nitish has quit [Remote host closed the connection]
MrDoctor has quit [Ping timeout: 240 seconds]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
<Macaveli>
I have objects in my array is it possible to set this object to nil?
yubrew has joined #ruby
<Macaveli>
object.first = nil not working NoMethodError: undefined method `first=' for #<Array:0x007fef4d066398>
<isomorphismes>
canton7: it's doing the entire rather than piecewise
<apeiros>
isomorphismes: a) use concat, b) if you use push, use push(*ary)
<canton7>
isomorphismes, I've shown you how to make push work
cpruitt has quit [Quit: cpruitt]
<canton7>
see my message juuust above
<apeiros>
20 messages now really :o)
<isomorphismes>
canton7: oh oh
<canton7>
man, it's like talking to a brick wall
cjsarette has quit [Remote host closed the connection]
<canton7>
apeiros, was it as much as 20? :O
<Hanmac1>
isomorphismes: "[*1..6]" is better than "(1..6).to_a"
cjsarette has joined #ruby
<isomorphismes>
so I see *(1..6).to_a and *(1..6) both
<isomorphismes>
no wait it's *(1..6).to_a versus [*1..6] ?
<canton7>
there are two things here
<canton7>
it's (1..6).to_a vs [*1..6]
LadyRainicorn has joined #ruby
<canton7>
and push([1, 2, 3]) vs push(*[1, 2, 3])
<apeiros>
(1..6).to_a and [*1..6] are equivalent
<apeiros>
push([1, 2, 3]) and push(*[1, 2, 3]) are NOT
<canton7>
indeed - I should have made that clear
<apeiros>
concat([1,2,3]) and push(*[1,2,3]) are equivalent
<apeiros>
IMO ary.concat([*1..6].sample(5)) should be used
<isomorphismes>
canton7: why concat vs push or unshift?
Takle_ has joined #ruby
<canton7>
isomorphismes, what do you mean by that?
<isomorphismes>
over, even
Takle_ has quit [Remote host closed the connection]
railzForDaiz has joined #ruby
<Hanmac1>
apeiros: i think [*1..6] might be a bit faster than (1..6).to_a
<isomorphismes>
well, you all are saying that with a "splat" I can do with unshift and push
subraminion has joined #ruby
<apeiros>
concat over push because with push you need a splat. a splat is more work.
<apeiros>
concat can work directly.
subraminion has quit [Remote host closed the connection]
<canton7>
more idiomatic, really. there might be a small speed boost
Takle_ has joined #ruby
ehc has joined #ruby
<isomorphismes>
readability is what I'm more interested in =)
<apeiros>
there too, concat IMO wins.
<isomorphismes>
ok
subraminion has joined #ruby
<apeiros>
one operation, less noise.
<Mon_Ouie>
As a proof, look at how much explanation it took to make you see the splat
cjsarette has quit [Remote host closed the connection]
<isomorphismes>
>> (*[[[1,2,3]]])
<eval-in>
isomorphismes => /tmp/execpad-94149d8a741a/source-94149d8a741a:2: syntax error, unexpected ')', expecting :: or '[' or '.' ... (https://eval.in/161531)
cjsarette has joined #ruby
<isomorphismes>
well I'm new
<isomorphismes>
so I don't count
<apeiros>
isomorphismes: splat only makes sense in assignment
<apeiros>
a,b = *[1,2]
<Mon_Ouie>
Well that's the same as a, b = [1, 2] though
<isomorphismes>
>> ary = *(1..10)
<apeiros>
argument passing is like assignment. def foo(a,b); … end; foo(*[1,2]) is almost like a,b = *[1,2]
<apeiros>
Mon_Ouie: only because of rubys sad choice for autosplat
tharindu is now known as tharindu|away
Takle has quit [Ping timeout: 252 seconds]
yetanotherdave has joined #ruby
<isomorphismes>
when canton7 used it it was not in assignment itwas in push( *(........
<apeiros>
11:26 apeiros: argument passing is like assignment. def foo(a,b); … end; foo(*[1,2]) is almost like a,b = *[1,2]
<apeiros>
isomorphismes: ^
<apeiros>
reading helps :-p
<isomorphismes>
this is a lot to keep up with. I'm still parsing 10 mins ago responses
<apeiros>
:)
ehc has quit [Ping timeout: 245 seconds]
<apeiros>
note that the splat can be on both sides of the assignments. on the left side it means "collect the rest of the data into an array", on the right side (the one you've seen so far) it means "expand an array to individual values"
cjsarette has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
<whyy>
Hey
<whyy>
require 'objspace
cjsarette has joined #ruby
<shaquile>
I'm trying to POST data to a rack-app with Curl. But i'm having difficulties reading it.. req = Rack::Request.new(env), then req.post, or req.body.read.. I can't find the data =/
<whyy>
obj = Object.new
<whyy>
ObjectSpace::allocation_class_path(obj)
<whyy>
That is returning nil
<whyy>
any reasons ? Why is that?
<apeiros>
whyy: see the example in the docs
<apeiros>
seems you need to wrap it in ObjectSpace.trace_object_allocations do
<whyy>
apeiros: Oh ok, Let me try
dawkirst has quit [Remote host closed the connection]
<apeiros>
though, for me the doc example copy & pasted doesn't work either…
Papipo has joined #ruby
<Papipo>
Hi there
ksinkar has joined #ruby
<whyy>
aperios: Yes
<whyy>
aperios: The example in the docs also returning nil
<apeiros>
whyy: my nick is not aperios
<apeiros>
use tab completion
<apeiros>
I'd post to the mailing list. seems like a bug to me.
<apeiros>
(either implementation or documentation - one of them is off)
dawkirst has joined #ruby
<whyy>
apeiros: Which version are you using ?
<apeiros>
I tested on 2.1.2
cjsarette has quit [Remote host closed the connection]
<apeiros>
maybe. I've dropped 2.1.0 and 2.1.1 from this machine and don't intend to reinstall
dawkirst has quit [Ping timeout: 240 seconds]
<isomorphismes>
so is the splat maybe like readline or things that happen in bash (eg ! being intercepted, things needing to be escaped etc) in that splat [*1..6] is expanding [1,2,3,4,5,6] "before" it's written in, whereas (1..6).to_a invokes ruby "more", first creating a range and then coercing it?
<whyy>
apeiros: Same with 2.1.1, Doubting whether missed something
<apeiros>
whyy: given that the example doesn't work, it's at the very least a documentation bug
datafirm has quit [Ping timeout: 264 seconds]
<apeiros>
isomorphismes: no, [*1..6] and (1..6).to_a both create a range first and call to_a on that
yfeldblum has quit [Remote host closed the connection]
<Hanmac>
ups there was "putobject 1..6" but it does squeeze to much ;P
nw has quit [Quit: leaving]
nw has joined #ruby
ctp has quit [Ping timeout: 264 seconds]
jottr_ has joined #ruby
jemendja has left #ruby [#ruby]
toastynerd has joined #ruby
Morkel has quit [Quit: Morkel]
dawkirst has joined #ruby
ctp has joined #ruby
ctp has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karupa is now known as zz_karupa
jottr_ has quit [Ping timeout: 264 seconds]
toastynerd has quit [Ping timeout: 272 seconds]
relix has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
bradhe has joined #ruby
himsin has quit [Quit: himsin]
jprovazn has joined #ruby
<Hanmac>
havenwood: huhu did you watch doctor who or AT recently?
xjiujiu has quit [Read error: Connection reset by peer]
tjsousa has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
Azulinho has joined #ruby
yfeldblum has joined #ruby
<yottanami>
Is it wrong in case : when "text" || "integer" || "string"
xjiujiu has joined #ruby
havenwood has quit [Remote host closed the connection]
Rojo has quit [Ping timeout: 245 seconds]
ctp has joined #ruby
havenwood has joined #ruby
<Mon_Ouie>
It's the same as when "text" because ("text" || "integer" || "string") == "text"
<Mon_Ouie>
You probably mean when "text", "integer", "string"
yfeldblu_ has joined #ruby
datafirm has joined #ruby
Takle_ has quit [Remote host closed the connection]
xjiujiu has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
helpa has joined #ruby
yfeldbl__ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
pencilcheck has joined #ruby
chth0n has quit [Ping timeout: 272 seconds]
alexherbo2 has joined #ruby
<alexherbo2>
Hi
<alexherbo2>
How replace last line with 'bar' in 'foo.txt' ?
yfeldblu_ has quit [Ping timeout: 240 seconds]
ponga has quit []
xjiujiu has joined #ruby
Takle_ has joined #ruby
<alexherbo2>
I use the last line of the file to puts json data which i want update whenever un run the script.
ponga has joined #ruby
datafirm has quit [Ping timeout: 245 seconds]
ponga has quit [Client Quit]
xjiujiu has quit [Read error: Connection reset by peer]
yfeldbl__ has quit [Ping timeout: 244 seconds]
xjiujiu has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
Azure has quit [Quit: Blue Sky Fish]
pencilcheck has quit []
xjiujiu has joined #ruby
ehc has joined #ruby
pencilcheck has joined #ruby
toastynerd has joined #ruby
chth0n has joined #ruby
b1205 has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
ehc has quit [Ping timeout: 272 seconds]
<yottanami>
I wrote all_fields.join!("") and I have error undefined method "`join!' for ["title", "string"]:Array" should I write all_fields = all_fields.join(" ") ?
codecop has joined #ruby
xjiujiu has joined #ruby
ash_m has quit [Ping timeout: 246 seconds]
doev has quit [Quit: Verlassend]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
<canton7>
sure
yetanotherdave has joined #ruby
<canton7>
all of the bang methods which mutate (that I'm aware of) don't change the *type* of the thing being mutated. i.e. none of them take, say, an array, and turn it into a string
<yottanami>
canton7: There is no join! ?
<canton7>
#join! would do that
railzForDaiz has joined #ruby
<canton7>
just like there's no #to_i! or #to_s!
toastynerd has quit [Ping timeout: 245 seconds]
b1205 has quit [Ping timeout: 240 seconds]
<yottanami>
canton7: Thanks
AlSquire has joined #ruby
doodlehaus has joined #ruby
Biohazard has joined #ruby
TheKruex has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
railzForDaiz has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
<Hanmac>
canton7: i recently wrote a holder object that when you do "<meth>!" it does "obj = obj.<meth>" internally
ksinkar has quit [Remote host closed the connection]
<canton7>
aha! no bad
ksinkar has joined #ruby
railzForDaiz has joined #ruby
yetanotherdave has quit [Ping timeout: 245 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
akonny has joined #ruby
xjiujiu has joined #ruby
tessi_zz is now known as tessi
alem0lars has quit [Quit: Going AFK...]
moritzs has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
senayar has joined #ruby
xjiujiu has quit [Client Quit]
Takle has joined #ruby
railzForDaiz has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
joaoh82 has quit [Remote host closed the connection]
chth0n has joined #ruby
sski has joined #ruby
timonv_ has joined #ruby
Takle_ has joined #ruby
Takle_ has quit [Remote host closed the connection]
mupkoo has joined #ruby
Takle_ has joined #ruby
flagg0204 has quit [Ping timeout: 252 seconds]
Takle has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 252 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
jottr_ has joined #ruby
yfeldblum has joined #ruby
alem0lars has joined #ruby
dangerou_ has joined #ruby
flagg0204 has joined #ruby
alem0lars has quit [Client Quit]
monkegjinni has joined #ruby
alem0lars has joined #ruby
andikr has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
datafirm has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
yacks has joined #ruby
<MrDoctor>
Can I have an array of strings as a property in DataMapper class?
TheKruex has quit [Read error: Connection reset by peer]
TheKruex has joined #ruby
Takle_ has quit [Remote host closed the connection]
datafirm has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
kaspergrubbe has joined #ruby
<Hanmac>
MrDoctor: i dont think that would work ... you might need yaml or json or similar for that
<MrDoctor>
Okay, Hanmac, thanks
<Hanmac>
MrDoctor: normaly it might be used in a m-n connection with TableA has many TableB... there you have a TableAB with is connected with both (like in TableB are the strings and in TableAB only the ids )
vifino has joined #ruby
<MrDoctor>
That would do I guess
<MrDoctor>
Thanks a lot
ehc has joined #ruby
TheKruex has quit []
lyanchih has quit [Ping timeout: 240 seconds]
fella5s has joined #ruby
vinleod has joined #ruby
kaspergr_ has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
b1205 has joined #ruby
akonny has quit [Quit: akonny]
ehc has quit [Ping timeout: 244 seconds]
kaspergrubbe has quit [Ping timeout: 240 seconds]
tjsousa has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
bbloom_ has joined #ruby
joaoh82 has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
b1205 has quit [Ping timeout: 264 seconds]
cjsarette has quit [Remote host closed the connection]
bbloom has quit [Ping timeout: 245 seconds]
cjsarette has joined #ruby
fabrice31 has joined #ruby
blackgoat^ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
joaoh82 has quit [Ping timeout: 245 seconds]
bbloom_ has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
DrCode has quit [Remote host closed the connection]
yeticry has quit [Quit: leaving]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
blackgoat^ is now known as blackgoat_
ctp has joined #ruby
whyy has quit [Remote host closed the connection]
maknado has joined #ruby
maknado has left #ruby [#ruby]
blackgoat_ has quit [Quit: Leaving...]
blackgoat_ has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
whyy has joined #ruby
blackgoat^ has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
blackgoat_ has quit [Client Quit]
DrCode has joined #ruby
scx_ has quit [Ping timeout: 272 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
blackgoat^ has quit [Client Quit]
scx has joined #ruby
blackgoat has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
newUser1234 has joined #ruby
phutchins has joined #ruby
blackgoat_ has joined #ruby
ctp has quit [Client Quit]
eka has joined #ruby
yetanotherdave has quit [Ping timeout: 244 seconds]
mupkoo has quit []
whyy has quit [Ping timeout: 240 seconds]
timonv_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
donnoc has joined #ruby
fella6s has joined #ruby
mijicd has joined #ruby
toretore has joined #ruby
sk87 has joined #ruby
kiri has joined #ruby
ldnunes has joined #ruby
phoo1234567 has joined #ruby
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
fella5s has quit [Quit: Leaving]
subraminion has joined #ruby
gruz0[russia] has joined #ruby
blinkdesign has quit [Remote host closed the connection]
Takle_ has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
Notte has quit [Remote host closed the connection]
joaoh82 has joined #ruby
Morkel has joined #ruby
Takle has joined #ruby
mostlybadfly has joined #ruby
_justin has quit [Quit: _justin]
lkba has joined #ruby
Xeago has quit [Remote host closed the connection]
Takle_ has quit [Ping timeout: 240 seconds]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
donnoc has quit [Ping timeout: 272 seconds]
yottanami has quit [Remote host closed the connection]
jxf has joined #ruby
<linduxed>
hey guys
<linduxed>
if i see something like this:
<linduxed>
Foobar.new(* )
<linduxed>
i react in two ways:
<linduxed>
1. WTF
<linduxed>
2. What does that even mean?
<linduxed>
i'm wondering if someone could answer number 2
jespada has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
<linduxed>
i know of splatting arguments
<linduxed>
but this isn't splatting anything, or so at least i think
<urinal-cake>
thanks shevy, i'll try an upgrade without rvm
sailias has joined #ruby
why_away has joined #ruby
<shevy>
I think one big problem is that you don't get a backtrace
whyy has quit [Read error: Connection reset by peer]
kwd_ has joined #ruby
akonny has quit [Quit: akonny]
<shevy>
if I run into a segfault on linux from the commandline, I get a long report
cjsarette has quit [Remote host closed the connection]
<shevy>
showing which libraries are called an so forth
<shevy>
*and so forth
cocotton has joined #ruby
<workmad3>
urinal-cake: did you take a look at this file? /usr/local/rvm/gems/ruby-1.9.3-p547/wrappers/ruby
<urinal-cake>
i have not
cjsarette has joined #ruby
<workmad3>
urinal-cake: I wonder if that's actually acting as a wrapper for the system ruby...
<sdegutis>
Ugh if only this were Swift
<urinal-cake>
lolol
lw_ has quit [Quit: s]
phinfonet has joined #ruby
<sdegutis>
Ooooh, I bet it's the printing of it that's going awry.
<urinal-cake>
looking at it now workmad3
<workmad3>
sdegutis: hahah :D
<sdegutis>
I bet it's trying to do to_s on it
BizarreCake has joined #ruby
monkegjinni has joined #ruby
kwd has quit [Ping timeout: 264 seconds]
kwd_ is now known as kwd
<sdegutis>
Or trying to unwind it maybe..
newUser1_ has joined #ruby
taybin has joined #ruby
<workmad3>
sdegutis: just did a failing range test...
<workmad3>
sdegutis: it tries to diff the elements...
NET||abuse has quit [Quit: WeeChat 0.4.2]
NET||abuse has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
gregf has quit [Ping timeout: 252 seconds]
<sdegutis>
LOL yeah that's it then.
<sdegutis>
Oh well, I just made my test pass and it works fine.
<sdegutis>
Kinda sucks, but just nobody break this test.
timonv has joined #ruby
<workmad3>
sdegutis: wrap it in a Timeout?
<sdegutis>
dunno how
timonv has quit [Remote host closed the connection]
nateberkopec has joined #ruby
newUser1234 has quit [Ping timeout: 264 seconds]
robert_ has left #ruby ["Connection reset by traffic clause."]
gregf has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
<codydh>
Hello! I'm new to Ruby/Rails. Followed this http://guides.rubyonrails.org/getting_started.html basically substituting "articles" for "users" to connect to an already-existing database with about 20 columns. My models/user.rb only specifies "firstname" and "lastname," yet somehow in one of my views I'm able to access other columsn in the MySQL table. Does this mean my
<codydh>
models/user.rb isn't doing anything?
chilimac has joined #ruby
almostwhitehat has joined #ruby
sski has quit [Remote host closed the connection]
<workmad3>
sdegutis: begin; timeout(1) { expect(...) }; rescue Timeout::Error; fail "Range was not equal"; end
<workmad3>
sdegutis: or something along those lines
monkegjinni has quit [Ping timeout: 244 seconds]
niharvey|out is now known as niharvey
<shevy>
codydh problem is that it is a rails question, the rails folks are on #rubyonrails
sski has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
<codydh>
shevy: Aah, sorry! Thanks!
<workmad3>
sdegutis: you might need to do 'require "timeout" ' before that in your spec_helper.rb
Notte has joined #ruby
<sdegutis>
workmad3: woot thanks
<shevy>
if it is a question about core ruby then people here can help, but I am not familiar with model-view-mysql environments
<workmad3>
sdegutis: and I'm only assuming 'fail' works... I think it does :)
<shevy>
so even when they have the best intention, they still could not help because they do not understand the problem domain fully
datafirm has joined #ruby
<shevy>
workmad3 are your projects on rubygems.org?
steveelsewhere has joined #ruby
codecop has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
<workmad3>
shevy: no
tier has joined #ruby
<shevy>
:(
<steveelsewhere>
hey does anyone use gems for joining separate modules of their own app? I'm looking for some workflow advice
<workmad3>
sdegutis: ah, it works fine for me :)
<shevy>
I would not call them app
xaxisx has quit [Quit: xaxisx]
<shevy>
but I use many different gems steveelsewhere
diegoviola has quit [Remote host closed the connection]
<steveelsewhere>
I have a couple of git repos that are pulled in as gems
joaoh82 has joined #ruby
<shevy>
good!
cjsarette has quit [Remote host closed the connection]
xaxisx has joined #ruby
<shevy>
hmm
<shevy>
but not via "gem install" right?
<steveelsewhere>
bundler
pvb has quit [Quit: Leaving]
cjsarette has joined #ruby
<shevy>
yeah as I suspected hehehe
<shevy>
the rubygems bin/gem wrapper does not by default like non rubygems.org sources
<shevy>
whereas bundler does not seem to care much
diegoviola has joined #ruby
<workmad3>
sdegutis: also, I managed to run the test fine on my machine with a timeout of 0.01, which will trigger a test failure quicker in that circumstance :)
<shevy>
it's a big division IMO really... just as workmad3 surely uses github... but not rubygems.org :(
andrewhl has joined #ruby
chilimac has left #ruby [#ruby]
<workmad3>
shevy: the gem command line is perfectly happy to use things other than rubygems.org
<shevy>
it looks more like a bundler workflow
<workmad3>
shevy: but it does require a rubygems compatible gem repository
<shevy>
workmad3 yeah but users must add the remote source
<shevy>
I estimate 99% of the users will fail at that haha
<workmad3>
shevy: which is fair enough... rubygems is a package manager
<sdegutis>
Thanks.
<steveelsewhere>
I'm just wondering if there's a simpler workflow or a tool to reduce those steps
<steveelsewhere>
I think my answer is to write rake tasks for it all
<workmad3>
shevy: bundler is more of a provisioner though... you tell bundler "in order to work, I need X from here, Y from there and Z from whereever you can find it" and it goes away and sorts stuff out for you :)
<shevy>
I guess you need a git expert here
jottr_ has quit [Ping timeout: 264 seconds]
<steveelsewhere>
I've checked with #git =]
kies has joined #ruby
<shevy>
workmad3 well that is actually a feature that gem itself lacks :(
<shevy>
or perhaps lacks is too strong a word
<shevy>
it doesn't make it convenient enough
<steveelsewhere>
I investigated subtrees but nobody in #git seemed to use them
NukePuppy has joined #ruby
<workmad3>
shevy: it's a feature that is part of a provisioner, not a package manager
RubyPanther has quit [Ping timeout: 260 seconds]
<shevy>
ok then I suggest to replace gem with bundler completely
spyderman4g63 has quit []
netf has joined #ruby
<workmad3>
shevy: bundler is written on top of gem though
Caius has joined #ruby
sski has joined #ruby
<shevy>
we could create a third project to replace BOTH! :)
soulcake has joined #ruby
<workmad3>
shevy: :P
Deele has joined #ruby
peckermanzzz has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
barratt has joined #ruby
<workmad3>
steveelsewhere: it does kinda sound like you've got something that matches a pretty typical bundler Gemfile...
tsunamie has joined #ruby
danijoo has joined #ruby
<workmad3>
steveelsewhere: list your gems as git repos in your gemfile with 'gem "gem-name", github: "user/repo" ' and then just 'bundle install' and 'bundle update'
timfoo has joined #ruby
<workmad3>
steveelsewhere: to get them down and update the recorded ref that's in use
ehc has joined #ruby
SCommette has joined #ruby
sdouglas has joined #ruby
ayaz has quit [Ping timeout: 244 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
sdegutis has left #ruby [#ruby]
akonny has joined #ruby
<steveelsewhere>
is there a rake module or some extension that is built to interact with bundler and gems?
pencilcheck has quit [Ping timeout: 264 seconds]
<workmad3>
shevy: btw, my 'stuff' isn't on rubygems.org mostly because the majority of what I do isn't really gems, and when I do create gems they tend to be private code, so I store them in private github and bitbucket repos and use bundler to install them
pencilcheck has joined #ruby
<workmad3>
steveelsewhere: interact in what way?
b1205 has joined #ruby
<steveelsewhere>
update gemfiles and lockfiles when I have a branch scenario, etc
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jerius has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
<workmad3>
steveelsewhere: well, if you had those sub-gems checked out into different directories, rather than subdirectories of the main project (which seems somewhat weird), you can easily use https://coderwall.com/p/tqdrhq
donnoc has joined #ruby
nemesit|znc has quit [Max SendQ exceeded]
toastynerd has joined #ruby
ehc has quit [Ping timeout: 240 seconds]
nemesit|znc has joined #ruby
apearce has joined #ruby
<workmad3>
steveelsewhere: then to switch branch, you'd alter the branch in your checkout... and it wouldn't update the Gemfile.lock until you'd made sure it was fine and run a 'bundle update' iirc
<steveelsewhere>
hmm
doev has quit [Ping timeout: 252 seconds]
datafirm has quit [Ping timeout: 240 seconds]
doev has joined #ruby
akonny has quit [Client Quit]
<steveelsewhere>
the problem then becomes everything but local dev
nemesit|znc has quit [Max SendQ exceeded]
nemesit|znc has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
The_NetZ has joined #ruby
<shevy>
hehe
<The_NetZ>
hello. how would one go about compling ruby with debugging symbols for gdb?
jrhorn424 is now known as zz_jrhorn424
RubyPanther has joined #ruby
Channel6 has joined #ruby
tessi is now known as tessi_zz
djcp has joined #ruby
cjsarette has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
badhatter has joined #ruby
cocotton has quit [Remote host closed the connection]
sk87 has joined #ruby
doev has quit [Quit: Verlassend]
bradhe has joined #ruby
thesheff17 has joined #ruby
kilk_ has quit [Quit: kilk_]
lyanchih has quit [Quit: lyanchih]
<phutchins>
anyone know anything that can be used in rails to loop through pages after a given time? I have a few dashboards that i want it to show for 30 seconds each...
ehc has joined #ruby
<phutchins>
I've used sinatra_cyclist for sinatra but moving the project into rails...
apearce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
b1205 has quit [Ping timeout: 244 seconds]
stantona has joined #ruby
why_away has quit [Ping timeout: 244 seconds]
bradhe has quit [Ping timeout: 240 seconds]
<apeiros>
phutchins: #ror
setra has joined #ruby
jherbst has joined #ruby
ephemerian has quit [Ping timeout: 264 seconds]
yetanotherdave has joined #ruby
tjsousa has joined #ruby
MZAWeb has joined #ruby
ehc has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
shime has quit [Remote host closed the connection]
cocotton has joined #ruby
b1205 has joined #ruby
<shevy>
hehe
djcp has left #ruby ["WeeChat 0.4.3"]
Zenigor has joined #ruby
stantona has quit [Remote host closed the connection]
lw has joined #ruby
fella5s has joined #ruby
cjsarette has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
cjsarette has joined #ruby
doev has joined #ruby
Zenigor has quit [Client Quit]
apearce has joined #ruby
Zenigor has joined #ruby
chipotle has joined #ruby
hermanmunster has joined #ruby
t0rc has joined #ruby
Takle has quit [Remote host closed the connection]
t0rc has left #ruby [#ruby]
northfurr has joined #ruby
cjsarette has quit [Remote host closed the connection]
Zai00 has joined #ruby
maximski has joined #ruby
cjsarette has joined #ruby
Notte has joined #ruby
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
SCommette has quit [Quit: SCommette]
blackmesa has quit [Ping timeout: 244 seconds]
yetanotherdave has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
noop has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kitak has joined #ruby
diegoviola has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
senayar has quit [Remote host closed the connection]
silkfox has joined #ruby
cjsarette has quit [Remote host closed the connection]
subraminion has quit [Read error: Connection reset by peer]
mupkoo has quit [Remote host closed the connection]
maestrojed has joined #ruby
<jj_>
hi, i remember that from ruby 1.9 there is a method to do something with the returned value of a call, but i cannot find it... something like rails's .try method... i need to call "var = foo.bar.zoo" and bar could return nil, i'd like to avoid doing "baz = foo.bar ; var = baz && baz.zoo"
cocotton has quit [Remote host closed the connection]
<jj_>
banister: mm.. I was sure there was from 1.9 :\ or maybe i'm confused with another one, not returning the value, something like: foo.bar.method {|p| puts p }.baz..... which I also don't remember the name, lol :)
Rojo has joined #ruby
<canton7>
jj_, #tap ?
<jj_>
yes :)
<DouweM>
that sounds like #tap, but that's different from what you mentioned before
<banister>
jj_ tap returns the receiver, whereas you want the result of the block dont u?
subraminion has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
datafirm has quit [Quit: Computer has gone to sleep.]
thesheff17 has joined #ruby
<banister>
lemur if you comebine pipeable with funkify you can get: 1.pipe(&add(2)) #=> 3 "hello".pipe(&print)
IceDragon has joined #ruby
<DouweM>
what's the difference between that and parentheses around the experession?
datafirm has joined #ruby
aantix has quit [Quit: aantix]
<banister>
DouweM parameters flow from the left
<Jnco>
hey guys , is there a channel where I can find folks for freelance work?
<DouweM>
yeah I guess that's useful instead of having a hundred open parentheses on the left
<lemur>
#google
<lemur>
freelancer and some other sites are in the first few results
TheKruex has joined #ruby
<Jnco>
uhmm
<lemur>
banister - could. Pipeable was a 10 minute hack gem
<banister>
lemur i always found it weird that monadic composition is left to right, but function composition is right to left
<banister>
composition via >>= anyway
<lemur>
yeah, haskell
<banister>
i know there's some weird function you can use to compose monads from left to right, something like >=> or god knows what
qwyeth has joined #ruby
<banister>
benzrf probably knows
<banister>
form right to left8
<benzrf>
:-O
<lemur>
or we could ask on #haskell
<benzrf>
banister: to compose kleisli arrows left to right, use (>=>)
<benzrf>
banister: (.) is right-to-left because that's math notation
<lemur>
or find where bitemyapp hides
datafirm has quit [Client Quit]
mg^^ has quit [Quit: Leaving]
<Mon_Ouie>
You can use (<=<) as well though
Ankhers has quit [Remote host closed the connection]
<benzrf>
(>>=) is probably left-to-right so that do-notation is a more direct translation
lw has quit [Quit: s]
yacks has joined #ruby
Fraeon has quit [Quit: Lost terminal]
datafirm has joined #ruby
<Mon_Ouie>
As well as (=<<)
<benzrf>
but i have observed sentiments on #haskell that (=<<) should be the method and (>>=) the function
<benzrf>
really, join should be ;)
apearce has joined #ruby
treehug88 has quit [Ping timeout: 272 seconds]
jobewan has joined #ruby
Ankhers has joined #ruby
bradhe has joined #ruby
treehug88 has joined #ruby
andrewjanssen has joined #ruby
<banister>
benzrf Mon_Ouie is only 15 and he's doing a PhD in category theory
combusean has quit [Quit: Leaving.]
<benzrf>
!!!
<benzrf>
Mon_Ouie: is that true???
datafirm has quit [Ping timeout: 255 seconds]
sdelmore1 has joined #ruby
shenk has quit [Read error: No route to host]
<lemur>
benzrf is younger too, right?
<Mon_Ouie>
benzrf: The first of those statement has been true for several years!
<benzrf>
Mon_Ouie: you've been 15 for several years eh
<benzrf>
lemur: i 17
<lemur>
thought it was somewhere around there or 16
<sdelmore1>
Does Ruby have built in time period classes? I have a lot of code with (startdate, enddate) that smells like a missing TimePeriod class but I didn't want to re-invent the wheel if one already exists.
<Mon_Ouie>
benzrf: Indeed. Like, 4 years now.
bradhe has quit [Ping timeout: 255 seconds]
<DouweM>
damn, this channel has a lot of young regulars
tier has quit [Remote host closed the connection]
bee_keeper has left #ruby [#ruby]
<lemur>
define young
<lemur>
not sure if I quite qualify anymore.
<Mon_Ouie>
seitensei: No, but it has a range class so you can do start_date..end_date
<Mon_Ouie>
sdelmore1*
<DouweM>
lemur: young as in I'm starting to feel old at 20
apeiros has joined #ruby
<lemur>
I'm 23 if it makes you feel better.
<sdelmore1>
Easy enough to build one using the range operator then. Thanks.
* Hanmac
is 25 and is now feeling old
<lemur>
Combine with activesupport and....
danman has joined #ruby
<DouweM>
Hanmac: haha
<lemur>
(1.day.ago..3.days.ago)
<lemur>
I turn 24 in 10 days at least.
enebo has joined #ruby
<lemur>
I don't really count myself as older though.
<DouweM>
lemur: oh definitely not, but there's a lot of <20 here
sdouglas has joined #ruby
<lemur>
yeah
MrDoctor has quit [Remote host closed the connection]
<DouweM>
more than I'd expected anyway, although that makes little sense as I was here when I was <20 as well
<lemur>
when I was under 20, I was mostly still trying to be an artist
MrDoctor has joined #ruby
jj_ has quit [Quit: Page closed]
<DouweM>
it just furhter confirms the idea that I'm not a unique snowflake :P
<DouweM>
lemur: artist in what?
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lemur>
Digital
<lemur>
baweaver.deviantart.com
<sdelmore1>
For what it's worth, I am not looking at how to check if time ranges overlap, I am looking to dry up code by putting the logic into a class instead of having startdate..enddate between, overlap, etc in 50 different places. I just hate writing a class only to find out it already exists in the standard library.
<DouweM>
sdelmore1: there's not a stdlib class like that, no
<DouweM>
lemur: pretty
<lemur>
got published in a few magazines and such, sold some work, but didn't really see it as sustainable compared to programming.
sski has joined #ruby
<DouweM>
makes sense
<lemur>
I'm a polymath, I can do about anything I really want to
<atmosx>
lemur: like El Greco?
<atmosx>
lemur: cool
<atmosx>
like Da Vinci
<atmosx>
lemur: can you do a pizza?
<lemur>
Pretty much
<DouweM>
lemur: cool
momomomomo has joined #ruby
betacz has joined #ruby
codydh has joined #ruby
<atmosx>
I ate 2 fruits trying to avoid pizza, but my stomach is still complaining. Id'd make a salad but I'll need another one in about 2 hours for sure
<atmosx>
hmm
<lemur>
Writing (couple books on the way), Art, Music (trumpet, french horn, piano, guitar, etc), Running (college athlete), Fencing, and a lot of other stuff I keep forgetting about.
Ankhers has quit [Ping timeout: 264 seconds]
tacit7 has joined #ruby
<DouweM>
lemur: damn, nice
<lemur>
It's pretty much if I get interested in something, I do it.
<atmosx>
lemur: yeah, but do you excell on these things?
<lemur>
Like Piano, I started last February, I can already play basic Chopin songs and some Rachmaninoff
<atmosx>
haha then you do excell I guess :-)
<lemur>
I had offers for scholarships in Art and Music across the board
MrDoctor has quit [Ping timeout: 264 seconds]
<atmosx>
and why didn't you take them?
<lemur>
running I was a state level in high school
<lemur>
programming pays a lot more
<atmosx>
true
<lemur>
and a scholarship is signing away part of your soul
<lemur>
book wise I just need to quit rewriting the dang things already and publish them
sski has quit [Ping timeout: 244 seconds]
<DouweM>
lemur: synopsis?
<atmosx>
cool
<lemur>
Two books
mikepack has joined #ruby
mupkoo has joined #ruby
fold has joined #ruby
<lemur>
I'll see where I hid the first few chapters.
<lemur>
First is Black Manifesto, SciFi / Dystopian
<lemur>
Watchdogs reminds me of it a lot, but this goes a lot further down the rabbit hole
jottr_ has joined #ruby
jerius has quit []
betacz has left #ruby [#ruby]
mark_locklear has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
lemur has quit [Read error: Connection reset by peer]
<lemur>
not sure how old those versions are though.
datafirm has joined #ruby
timonv has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
<lemur>
Second is Nocturne, more in the realm of fantasy
<DouweM>
lemur: opened in tabs, will check out once I've finished this ep of orange is the new black :P
<lemur>
heh, fair enough
<lemur>
I'll probably be afk for about an hour
<lemur>
ping at brandon_weaver@baweaver.com or @keystonelemur on twitter if anyone wants to
doev has quit [Ping timeout: 255 seconds]
noop has joined #ruby
<DouweM>
sure
<lemur>
Running wise, managed a 4:24 mile at least. Nothing great though.
<lemur>
Still my life goal to be a modern day Da Vinci
<lemur>
we'll see how it goes.
bluOxigen has joined #ruby
nitish has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
GriffinHeart has joined #ruby
anarang has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 264 seconds]
<arrubin>
Da Vinci was a runner?
m_3 has joined #ruby
apearce has quit []
<DouweM>
haha
yetanotherdave has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
GriffinHeart has quit [Ping timeout: 240 seconds]
subraminion has quit [Ping timeout: 264 seconds]
BWStearns has joined #ruby
gusblan has joined #ruby
The_NetZ_ has joined #ruby
OffTheRails has quit [Quit: Leaving]
sambao21 has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
deric_skibotn has joined #ruby
The_NetZ has quit [Ping timeout: 240 seconds]
cjsarette has quit [Remote host closed the connection]
gregf has joined #ruby
tirengarfio has joined #ruby
lw has joined #ruby
cjsarette has joined #ruby
oponder has joined #ruby
yetanotherdave has quit [Ping timeout: 245 seconds]
heftig has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
newUser1234 has joined #ruby
<tirengarfio>
I have installed pushmeup gem (https://github.com/NicosKaralis/pushmeup) . Now I would like to use it using "require", so I have add at the top of my file this "require 'pushmeup'", but i get this error "/home/tirengarfio/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- pushmeup (LoadError)from /home/tirengarfio/.rvm/rubies/ruby-2.0.0-p353/lib/r
dawkirst has quit [Remote host closed the connection]
yubrew__ has joined #ruby
pvb has quit [Quit: Leaving]
CaioTSan has joined #ruby
almostwhitehat has quit [Quit: almostwhitehat]
yubrew has quit [Ping timeout: 264 seconds]
yubrew_ has quit [Ping timeout: 240 seconds]
mikesplain has joined #ruby
<Hanmac>
tirengarfio: how did you install the gem? does gem list show it?
mupkoo has quit [Ping timeout: 245 seconds]
blinkdesign has quit [Remote host closed the connection]
maletor has joined #ruby
bricker`1A is now known as bricker`work
<tirengarfio>
Hanmac, no it is not in the list
taybin has quit [Quit: This computer has gone to sleep]
MrDoctor has joined #ruby
dukedave has joined #ruby
dukedave has quit [Max SendQ exceeded]
zorak8 has quit [Ping timeout: 252 seconds]
<queequeg1>
I'm looking for very small projects/gems to do some practice reading code. Any suggestions. The smaller the better as I'm looking for things around 100 lines of code.
ta has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
<jhass>
go for anything you actually used so far
sdouglas has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
maximski has joined #ruby
stantona has joined #ruby
michaelchum has quit [Quit: Connection closed for inactivity]
maximski has quit [Max SendQ exceeded]
mikecmpbll has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
<queequeg1>
I've mostly used rails most of the gems I have looked at are too complex for first foray into code reading. I was really hoping to find something small.
klaut has quit [Remote host closed the connection]
zorak8 has joined #ruby
tcstar has joined #ruby
<jhass>
pick a particular feature you want to understand, don't try to read any library top down
lolmaus has quit [Ping timeout: 264 seconds]
sski has quit [Remote host closed the connection]
lkba has joined #ruby
sski has joined #ruby
maximski has quit [Client Quit]
lolmaus has joined #ruby
stantona has quit [Read error: No route to host]
stantona has joined #ruby
djbkd has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
subraminion has joined #ruby
sski has quit [Ping timeout: 244 seconds]
taybin has joined #ruby
nmokru has joined #ruby
SilverKey has joined #ruby
pietr0 has joined #ruby
Kricir has joined #ruby
amargherio has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
Kricir_ has joined #ruby
<queequeg1>
have any suggestions you think are fairly easy to follow?
andrewjanssen has quit [Quit: Leaving...]
dukedave has joined #ruby
ta has joined #ruby
redondos has quit [Excess Flood]
b1205 has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
xaxisx has quit [Quit: xaxisx]
sski has joined #ruby
Kricir_ has quit [Ping timeout: 264 seconds]
stantona has quit [Remote host closed the connection]
dik_dak has joined #ruby
mary5030_ has joined #ruby
kiri has quit [Quit: Leaving]
mary5030_ has quit [Remote host closed the connection]
mary5030 has quit [Read error: Connection reset by peer]
tier has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
pietr0 has quit [Quit: pietr0]
pietr0 has joined #ruby
nmokru has quit [Quit: nmokru]
mjsmith2 has joined #ruby
SCommette has joined #ruby
obs has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
benzrf is now known as benzrf|offline
andrewjanssen has joined #ruby
mijicd has quit [Remote host closed the connection]
kevind_ has joined #ruby
elaptics is now known as elaptics`away
cocotton has quit [Remote host closed the connection]
almostwhitehat has joined #ruby
BillyParadise has joined #ruby
lolmaus has joined #ruby
silkfox has quit [Read error: Connection reset by peer]
xaxisx has joined #ruby
Shidash has joined #ruby
silkfox has joined #ruby
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
Takle has joined #ruby
mupkoo has joined #ruby
toastynerd has joined #ruby
lw has quit [Quit: s]
<BillyParadise>
hey people, i'm trying to hash a string, write it to a file, read it back in, and compare the hashes - they're not matching. for example x=Digest::SHA256.hexdigest(y)
<BillyParadise>
any immediate gotchas?
gruz0[russia] has joined #ruby
wallerdev has joined #ruby
<jhass>
BillyParadise: put your code into a gist so we can reproduce
<poincare101>
Hi everyone. I have a quick question about metaprogramming. I have a super class which needs to create an instance of itself in one of its class methods and then return that instance. However, I don't want to limit the # of arguments a child constructor can have. What would be a way to do this?
fold has quit [Ping timeout: 245 seconds]
<jhass>
BillyParadise: iirc readline includes the trailing newline
<RubyPanther>
poincare101: Put the arguments into a hash, then you just have 1 argument
<BillyParadise>
so chomp it?
<poincare101>
RubyPanther: I thought about that, but what if the child class doesn't want to have a hash? Is there some way to create an "empty" instance of a class?
<jhass>
yeah
SCommette has quit [Quit: SCommette]
<Mon_Ouie>
poincare101: You can use allocate which will not call initialize
<jhass>
poincare101: yes, with .allocate, though you'd have to initialize sooner or later anyway?
bricker`work has quit [Ping timeout: 244 seconds]
<poincare101>
jhass: right, thank you
silkfox has quit [Ping timeout: 252 seconds]
<BillyParadise>
line 16 of the tester, i added .chomp
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BillyParadise>
still doing the same thing
kpshek has quit []
pencilcheck has quit [Remote host closed the connection]
<RubyPanther>
poincare101: You need to read a basic Ruby book so that you can internalize the semantics. There are unlimited contents, because everything is dynamic. And an instance has instance variables, but they're not really attributes, and the class doesn't even know which ones you might use
nanoyak has joined #ruby
<BillyParadise>
also tried to chomp on the readline
banister has joined #ruby
<poincare101>
jhass: I don't think I'd have to allocate; I'm just copying the the instance variables over to the actual object
predator117 has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
predator117 has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
saarinen has joined #ruby
<poincare101>
RubyPanther: I'm writing a super class called "JSONSerializable" (you can guess what it does). The child classes are just data containers so I'm copying over instance variables from a dictionary to an object and then returning that object.
dawkirst has joined #ruby
chth0n has quit [Ping timeout: 245 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
subraminion has quit [Remote host closed the connection]
nanoyak has quit [Client Quit]
kaspergrubbe has joined #ruby
subraminion has joined #ruby
Spami has joined #ruby
saarinen has quit [Client Quit]
mark_locklear has joined #ruby
andrewjanssen has joined #ruby
Gil_ has joined #ruby
ghr has joined #ruby
saarinen has joined #ruby
monkegjinni has joined #ruby
<Hanmac>
poincare101: JSONSerializable should be a module
subraminion_ has joined #ruby
<poincare101>
Hanmac: that makes sense
doev has joined #ruby
subraminion has quit [Ping timeout: 272 seconds]
<ryanneufeld>
I'm not sure how to describe my problem, which is part of the problem,
<ryanneufeld>
I'm working within a Vagrant file
<ryanneufeld>
I'm' using the vm.synced_folder
sski has quit [Remote host closed the connection]
<ryanneufeld>
and I'd like to have a loop over an array of items
<ryanneufeld>
or rather use an array as the parameter list
<RubyPanther>
poincare101: There is no such distinction as a "data container" except for base classes like Hash and Array
oponder_ has joined #ruby
doev has quit [Client Quit]
ghr has quit [Ping timeout: 252 seconds]
<RubyPanther>
poincare101: You're over-thinking some things, but only by reading a whole book can it become clear to you
Rainicorn has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
<poincare101>
RubyPanther: ok, book recommendations?
<poincare101>
RubyPanther: also, an example where the scheme of just copying over the instance variables would fail would be great
b1205 has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
<RubyPanther>
poincare101: "pickaxe" is canonical, there is a free online old version that is mostly still correct
sambao21 has joined #ruby
benweint has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
<RubyPanther>
poincare101: assuming the data is in instance vars it works fine to copy them. The only time that doesn't work is classes written in C that might use their own storage
<poincare101>
RubyPanther: ok, thank you.
poincare101 has left #ruby [#ruby]
<jhass>
BillyParadise: I guess your equal? tricked you, that compares object identity. I took the liberty to slightly rewrite your code to a better style: http://paste.mrzyx.de/p4c88faa0/
papercode has joined #ruby
ryannielson has joined #ruby
oponder has quit [Ping timeout: 245 seconds]
dawkirst has quit [Remote host closed the connection]
TheKruex has quit [Ping timeout: 264 seconds]
bricker`work has joined #ruby
oponder_ has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
Kedare has quit [Read error: No route to host]
frem has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
<lectrick>
Anyone know why if I type "exit 5" in IRB, and then immediately type "echo $?" (in Bash shell), I don't get 5 as the exit status?
yetanotherdave has joined #ruby
timonv_ has joined #ruby
<lectrick>
I'm assuming it's because of some crap irb does at_exit which doesn't preserve exit status
b1205 has joined #ruby
<BillyParadise>
@jhass DANKE!!
forcefsck has joined #ruby
K3dare has joined #ruby
Notte has joined #ruby
hobogrammer1 has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Ping timeout: 264 seconds]
stantona has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
sambao21 has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 244 seconds]
binaryhat has joined #ruby
binaryhat has quit [Client Quit]
dangerousdave has joined #ruby
danman_ has joined #ruby
danman has quit [Ping timeout: 264 seconds]
danman_ is now known as danman
timonv has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 255 seconds]
kpshek has joined #ruby
kireevco1 has joined #ruby
mikepack has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
kireevco has quit [Ping timeout: 264 seconds]
andrewjanssen has quit [Quit: Leaving...]
GoodTimes has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
SilverKey has quit [Quit: Halted.]
kljksdf has joined #ruby
dilated_dinosaur has quit [Ping timeout: 252 seconds]
<kljksdf>
Hi all. I am learning ruby these days and I am having problem checking if I am right or not about the functions I wrote. Can anyone please check my code and tell me what am I doing wrong? https://gist.github.com/anonymous/f0a54dea3664506a6cdf
pencilcheck has joined #ruby
ta has quit [Ping timeout: 264 seconds]
xaxisx has quit [Quit: xaxisx]
<jhass>
Self is a (undefined) constant
<jhass>
you probably mean self
cjsarette has quit [Remote host closed the connection]
tcstar has quit [Ping timeout: 244 seconds]
cjsarette has joined #ruby
<kljksdf>
oh, should be small?
brunops has quit [Ping timeout: 264 seconds]
<jhass>
yes
<jhass>
now there are more issues
jprovazn_afk is now known as jprovazn
akonny has joined #ruby
<jhass>
first of all self is implicit on method calls, you only need it to pass it along or disambiguate between local variable assignments and calling attribute writers
qhartman has quit [Remote host closed the connection]
tier has joined #ruby
<kljksdf>
jhass: means I don't need to write self at all?
<jhass>
to_s.downcase.gsub! /[^a-z\d],*/, '' # now this line, you #to_s, which returns self on a String, you call downcase, which returns a new(!) string and on that you call gsub! which modifies that new string in place, then you don't do anything with the result, it just vanishes
<jhass>
rarely
<jhass>
not in this case
nmokru has joined #ruby
<jhass>
if Self.eql?(Self.reverse) == true # that's just if self == reverse
cocotton has joined #ruby
<kljksdf>
how would it know on what object I have to do that thing?
<jhass>
as said, self. is implicit
<jhass>
if condition; true; else; false; end # just write condition instead, it return the value of the condition which already is true/false
<kljksdf>
I see. If I don't put any object it would automatically take self
<kljksdf>
gotcha
<kljksdf>
thanks, jhass
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kljksdf>
ah
<jhass>
arr = to_s.downcase!.split # same as above, plus don't chain on bang (!) methods, they may return nil if they don't change anything
Azulinho has quit [Ping timeout: 252 seconds]
<kljksdf>
I see
<jhass>
always use newlines with do end blocks, do |arg| [newline] body [newline] end
Kricir has joined #ruby
pencilcheck has quit [Read error: Connection reset by peer]
diegoviola has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<Mon_Ouie>
Or in other words, learn about the Enumerable module
nmokru has joined #ruby
aspires has quit []
mattmcclure has joined #ruby
jprovazn is now known as jprovazn_afk
LadyRainicorn has joined #ruby
hpoydar has joined #ruby
nmokru has quit [Client Quit]
aspires has joined #ruby
nmokru has joined #ruby
<dukedave>
Mon_Ouie, ha, that's exactly the implementation I had to begin with
kirun has joined #ruby
Takle has quit [Remote host closed the connection]
sdegutis has left #ruby [#ruby]
<dukedave>
with the one change, that I had to do cluster.place ? cluster.place : :_alone, in the chunk method, to not group clusters without a place
<Hanmac>
Mon_Ouie: .select { |cluster| cluster.place }.chunk { cluster.place } is unessary ... chunk already removes nil elements
x1337807x has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
silkfox has quit [Ping timeout: 244 seconds]
<shevy>
what is .chunk
reset has joined #ruby
<Mon_Ouie>
A method that has way too many special cases apparently
<shevy>
first time I read it
<dukedave>
:)
danijoo has joined #ruby
tier has joined #ruby
tier has quit [Remote host closed the connection]
<Mon_Ouie>
It's been added at some point during 1.9, maybe 1.9.3
<dukedave>
Mon_Ouie, jhass sorry in an attempt to keep my gist short I missed out a rather important step, which means I couldn't use Mon_Ouie's chunk suggestion
<shevy>
during the dark days
<dukedave>
But.. I think I can rejigger my algorithm to work around it any way :)
<jhass>
ammend that point?
Gil_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
datafirm has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
datafirm has joined #ruby
toastynerd has quit [Remote host closed the connection]
<Mon_Ouie>
Just removing clusters without a place after merging all the other ones should work then
Gil_ has quit [Ping timeout: 244 seconds]
Shidash has quit [Quit: Leaving.]
senayar_ has joined #ruby
5EXABF2MD has joined #ruby
sambao21 has joined #ruby
nszceta has joined #ruby
<dukedave>
Mon_Ouie, that's what I realized :) it's a little more subtle, because there's a different between a cluster we didn't try to get a place for, and one where the place was nil; but yeah a 'tagging' then selecting approach is nicer
dawkirst has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
<dukedave>
jhass, Mon_Ouie, thanks for call me out on ArrayIter :)
senayar has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
ra4king1 has joined #ruby
ra4king is now known as Guest63890
datafirm has quit [Ping timeout: 244 seconds]
sdelmore1 has left #ruby [#ruby]
Hanmac1 has joined #ruby
ra4king1 is now known as ra4king
Gil_ has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
dangerousdave has quit []
mjsmith2 has quit []
Hanmac has quit [Ping timeout: 245 seconds]
<jhass>
there's one? can't it just be nil in both cases? or if in your example b would get p1 it would result in bde(p1)?
ponga has joined #ruby
tier has joined #ruby
Guest63890 has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
holden247 has quit [Quit: Leaving.]
Takle has joined #ruby
jonahR has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
GriffinHeart has joined #ruby
lordflapjack has quit [Quit: keep cool, stay in school]
almostwhitehat has joined #ruby
dangerousdave has joined #ruby
diegoviola has joined #ruby
<jhass>
dukedave: ^
ponga has quit [Ping timeout: 245 seconds]
joaoh82 has joined #ruby
Olipro has quit [*.net *.split]
_m_g_ has joined #ruby
doodlehaus has joined #ruby
Zenigor has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 272 seconds]
_m_g_ is now known as SlvrDragn
nmokru has quit [Quit: nmokru]
<dukedave>
jhass, no, because the resultant array can't include the 'x's (there's another method to decide if each cluster is 'placeable' or an 'x'); and yep if b was p1 it would be bde
IceDragon has joined #ruby
lkba has joined #ruby
pencilcheck has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3]
andrewjanssen has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 255 seconds]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
mb___ has quit [Ping timeout: 246 seconds]
NivenHuH has joined #ruby
pencilcheck has joined #ruby
nmokru has joined #ruby
gusblan has quit [Remote host closed the connection]
Gil_ has quit [Remote host closed the connection]
gusblan has joined #ruby
Gil_ has joined #ruby
yfeldblum has joined #ruby
jonahR has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
silkfox has joined #ruby
timonv has joined #ruby
tier has quit [Remote host closed the connection]
edmellum has quit [Quit: Connection closed for inactivity]
<jhass>
wait, why isn't it deg then?
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
SCommette has quit [Quit: SCommette]
lolmaus has quit [Read error: Connection reset by peer]
<jhass>
dukedave: ^
Zenigor has joined #ruby
Gil_ has quit [Ping timeout: 264 seconds]
tier has joined #ruby
lolmaus has joined #ruby
<dukedave>
jhass, because f has a nil place (I updated the gist, FYI, just to be sure you're not looking at the bogus version I put up first)
Blaguvest has joined #ruby
streblo has joined #ruby
ta has joined #ruby
BalkM has joined #ruby
ghr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
Olipro has joined #ruby
hiyosi has joined #ruby
klaut has joined #ruby
<dukedave>
jhass, just updated one more time, to make it clear the nil place clusters are still needed at the end
<dukedave>
FWIW, I've nearly finished now, will post full code shortly :)
<shevy>
I'd wish we could have this in ruby
<shevy>
if foo
<shevy>
bla
<shevy>
else
<shevy>
ble
<shevy>
# that's it!
<jhass>
dukedave: so, it's "don't join if element with no place in between", "don't join if element x is in between" and "don't assign a place to x elements" which means to me that for looking at joining them, it doesn't matter if it's x or not, it just hasn't a place
<dukedave>
jhass, you got it
gusblan has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
almostwhitehat has quit [Quit: almostwhitehat]
ta has quit [*.net *.split]
ratdaddy has quit [*.net *.split]
timmow has quit [*.net *.split]
canton7 has quit [*.net *.split]
camilasan has quit [*.net *.split]
bjeanes has quit [*.net *.split]
LostDatagram has quit [*.net *.split]
jinie has quit [*.net *.split]
phrozen77 has quit [*.net *.split]
lele has quit [*.net *.split]
noocode has quit [*.net *.split]
kalleth has quit [*.net *.split]
keen________ has quit [*.net *.split]
kalz has quit [*.net *.split]
eval-in has quit [*.net *.split]
gusblan has joined #ruby
eval-in has joined #ruby
spastorino has joined #ruby
lele has joined #ruby
bjeanes has joined #ruby
keen________ has joined #ruby
ratdaddy has joined #ruby
timmow has joined #ruby
m8 has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
kalleth has joined #ruby
camilasan has joined #ruby
ta has joined #ruby
sambao21 has joined #ruby
cjsarette has quit [Remote host closed the connection]
<jhass>
basically what you got the other day already
shevy has quit [Ping timeout: 245 seconds]
gusblan has quit [Ping timeout: 264 seconds]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
yubrew__ has quit [Ping timeout: 264 seconds]
mehlah has quit [Quit: Leaving...]
Xeago_ has quit [Read error: Connection reset by peer]
<dukedave>
jhass, looks good! :)
Xeago has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
bradhe has joined #ruby
<dukedave>
I think, this is why I shouldn't start the day without a coffee
musashi1 has joined #ruby
stantona has quit [Remote host closed the connection]
LostDatagram has joined #ruby
kalz has joined #ruby
LostDatagram has quit [Excess Flood]
akonny has joined #ruby
yubrew_ has joined #ruby
stantona has joined #ruby
qwyeth has quit [Quit: Leaving]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
rixius has joined #ruby
benzrf is now known as benzrf|offline
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
cjsarette has quit [Remote host closed the connection]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
cjsarette has joined #ruby
stantona has quit [Remote host closed the connection]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
ryannielson has quit []
postmodern has joined #ruby
setra has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
maximski has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
blooberr____ has joined #ruby
yfeldblum has joined #ruby
maximski has quit [Max SendQ exceeded]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
bradhe has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
maximski has quit [Max SendQ exceeded]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
ahofmann has joined #ruby
silkfox has quit [Ping timeout: 255 seconds]
maximski has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
b1205 has quit [Ping timeout: 240 seconds]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
cjsarette has quit [Remote host closed the connection]
almostwhitehat has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
cjsarette has joined #ruby
monkegjinni has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
tjsousa has quit [Quit: Computer has gone to sleep.]
DanielRb has quit [Ping timeout: 276 seconds]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
benweint has quit [Quit: Computer has gone to sleep.]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
joaoh82 has quit [Remote host closed the connection]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
b1205 has joined #ruby
Spami has joined #ruby
zz_jrhorn424 is now known as jrhorn424
datafirm has quit [Quit: Computer has gone to sleep.]
fold has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
sdouglas has joined #ruby
datafirm has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
mupkoo has quit [Remote host closed the connection]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
danijoo has quit [Read error: Connection reset by peer]
monkegjinni has quit [Ping timeout: 255 seconds]
hy2guru has joined #ruby
silkfox has joined #ruby
ahofmann has quit [Quit: Computer has gone to sleep.]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
danijoo has joined #ruby
sheperson has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
sski has joined #ruby
LostDatagram has joined #ruby
combusean has quit [Quit: Leaving.]
aspires has quit []
hy2guru has quit [Client Quit]
datafirm has quit [Ping timeout: 245 seconds]
bricker`work has quit [Ping timeout: 244 seconds]
beef-wellington has joined #ruby
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
RubyPanther has quit [Ping timeout: 240 seconds]
NinoScript has joined #ruby
timonv has quit [Remote host closed the connection]
Gil_ has joined #ruby
alvaro_o has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danman has quit [Ping timeout: 252 seconds]
spyderman4g63 has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
danman has joined #ruby
brasten has quit [Quit: brasten]
IceDragon has quit [Ping timeout: 272 seconds]
tier has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
IceDragon has joined #ruby
beef-wellington has quit [Ping timeout: 255 seconds]
silkfox has joined #ruby
GoodTimes has quit [Ping timeout: 264 seconds]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
mupkoo has joined #ruby
mupkoo has quit [Remote host closed the connection]
mehlah has joined #ruby
hy2guru has joined #ruby
momomomomo has joined #ruby
senayar_ has quit [Remote host closed the connection]
Gil_ has quit [Remote host closed the connection]
senayar has joined #ruby
dreks has joined #ruby
hy2guru has quit [Client Quit]
sheperson has quit [Ping timeout: 240 seconds]
cjsarette has quit [Remote host closed the connection]
b1205 has quit [Ping timeout: 245 seconds]
cjsarette has joined #ruby
ra4king1 has joined #ruby
<dreks>
after updating puppet to the latest version, ruby can't seem to find library files it looks like.. does anyone have any suggestions. Here is the errors seen. http://hastebin.com/itucoxofec.vbs
<dreks>
They all reference require statements
newUser1234 has quit [Remote host closed the connection]
gbchaosmaster has quit [Ping timeout: 244 seconds]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
GriffinHeart has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
gruz0[russia] has joined #ruby
troyready has joined #ruby
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
nmokru has quit [Client Quit]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
cocotton has quit [Remote host closed the connection]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
cjsarette has quit [Remote host closed the connection]
hy2guru has joined #ruby
cjsarette has joined #ruby
<hy2guru>
good
kirun has quit [Quit: Client exiting]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
jprovazn_afk has quit [Quit: Odcházím]
LostDatagram has joined #ruby
pencilcheck has quit []
wallerdev has joined #ruby
pencilcheck has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
danman_ has joined #ruby
yalue has quit [Quit: Leaving]
danman has quit [Ping timeout: 264 seconds]
danman_ is now known as danman
_bart has joined #ruby
cjsarette has quit [Remote host closed the connection]
pencilcheck is now known as pen
cjsarette has joined #ruby
nmokru has joined #ruby
<_bart>
So if I have floats of 1.0 .. 10.0, but I only want to display the decimal when it's not zero, so hide when it's .0, how do I do that?
<_bart>
So 7.2 stays 7.2, 7.0 becomes just 7.
noop has quit [Ping timeout: 264 seconds]
LostDatagram has left #ruby ["Leaving"]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
<_bart>
Got it: "%gx" % 7.0
gusblan has joined #ruby
Atrumx has joined #ruby
benzrf|offline is now known as benzrf
<_bart>
I mean: "%.2g" %
jobewan has quit [Quit: Leaving]
tjsousa_ has joined #ruby
tacit7 has quit [Ping timeout: 264 seconds]
cjsarette has quit [Remote host closed the connection]
cjsarette has joined #ruby
rezzack has joined #ruby
<shevy>
cool
paulfm has quit []
nmokru has quit [Quit: nmokru]
ponga has quit [Ping timeout: 240 seconds]
nmokru has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
LostDatagram has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
Zenigor has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
jobewan has joined #ruby
cjsarette has quit [Remote host closed the connection]
joaoh82 has joined #ruby
cjsarette has joined #ruby
workmad3 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<wallerdev>
you gbuys watching thew orldc up?
Sawbones has joined #ruby
<shevy>
only by side
enebo has quit [Quit: enebo]
jackneill has quit [Remote host closed the connection]
<shevy>
the TV is running to the far left side of the room
<RubyPanther>
shevy: C-style ifs, that is not one I'm used to hearing people request.
<RubyPanther>
Personally, I'm from the "considered harmful" side on that one in C
<benzrf>
c-style ifs?
<shevy>
well C uses {}
<RubyPanther>
no braces, one line, don't make a mistake
<benzrf>
lol
<benzrf>
well ruby has that
<benzrf>
it's just postfix :-)
<RubyPanther>
postfix you can't make that class of mistake
<RubyPanther>
postfix is "considered safe" even by those who consider it disgusting
b1205 has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
cjsarette has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
sailias has quit [Quit: Leaving.]
cjsarette has joined #ruby
bradhe has joined #ruby
almostwhitehat has left #ruby [#ruby]
<RubyPanther>
In Perl they teach that postfix is superior because the "point" of the line is what happens, not when it happens; if you're searching the code it is for where something happened first, and then when is the next step
<shevy>
Perl teaching is oldschool teaching
<RubyPanther>
In Ruby it is more just, "whatever man"
<RubyPanther>
Dangling ifs are way older than Perl
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
nfk has quit [Quit: yawn]
<shevy>
kinda sad they didn't get through with perl 6
hiyosi has joined #ruby
<shevy>
"Building Rakudo from the sources requires Perl 5.8 or newer"
<shevy>
enter the future - by bowing to legacy
taybin has quit [Quit: This computer has gone to sleep]
cjsarette has quit [Remote host closed the connection]
ctp has quit [Read error: Connection reset by peer]
cjsarette has joined #ruby
robertodecurnex has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 245 seconds]
<shevy>
lua is damn small compared to the other scripting languages family ... lua-5.2.3.tar.xz
bradhe has quit [Ping timeout: 252 seconds]
<shevy>
197K
<shevy>
ruby-2.1.2.tar.xz: 9,0M
<shevy>
python-3.4.0b1.tar.xz: 14M
combusean has quit [Quit: Leaving.]
<shevy>
php-5.5.13.tar.xz: 11M
<shevy>
perl-5.20.0.tar.xz: 11M
tier has quit []
<shevy>
hmm
bahar has quit [Changing host]
bahar has joined #ruby
lemur has quit [Remote host closed the connection]
GoodTimes has joined #ruby
cjsarette has quit [Remote host closed the connection]
BizarreCake has quit [Quit: Leaving]
cjsarette has joined #ruby
NukePuppy has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
cjsarette has quit [Remote host closed the connection]
wildercycle has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 264 seconds]
cjsarette has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
m8 has quit [Quit: Sto andando via]
alexju has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
danijoo has joined #ruby
b1205 has quit [Ping timeout: 255 seconds]
dangerou_ has quit [Ping timeout: 252 seconds]
calaba has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
joaoh82 has joined #ruby
acrussell has quit [Quit: Leaving.]
dawkirst has quit [Remote host closed the connection]
timonv has joined #ruby
cjsarette has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 272 seconds]
cjsarette has joined #ruby
qwyeth has quit [Quit: Leaving]
Notte has quit []
GoodTimes has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
dreks has quit [Quit: Leaving...]
yokel has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
lemur has quit [Remote host closed the connection]
tjr9898_ has quit [Remote host closed the connection]
djbkd has joined #ruby
chipotle has joined #ruby
djr has joined #ruby
tjr9898 has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
adantj has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
sputnik13 has joined #ruby
rixius has quit [Quit: leaving]
sputnik13 has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
SCommette has joined #ruby
mtmcfarl has joined #ruby
niftylettuce_ has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
<mtmcfarl>
How would one go about parsing a tab delimited file where the first three fields are single line and the last field is multiline? I'm trying IO and CSV.foreach
tjr9898 has quit [Ping timeout: 240 seconds]
<mtmcfarl>
The end goal is to put this data into the database with the multiline field as a text column
<wildercycle>
have you tried anything?
<mtmcfarl>
I have tried IO.readlines and for each line splitting on the tab character.
dwayhs has joined #ruby
<mtmcfarl>
this creates a huge array with each line of the mutiline field an element.
<theberlin>
so do you want to keep or throw out the first 3 fields?
<mtmcfarl>
keep them
<mtmcfarl>
i want 4 total fields
<theberlin>
so you want an array of arrays?
geggam has quit [Remote host closed the connection]
<mtmcfarl>
the last one being the concatenated message
danijoo has quit [Read error: Connection reset by peer]
cjsarette has quit [Remote host closed the connection]
djbkd has joined #ruby
cjsarette has joined #ruby
gusblan has joined #ruby
<mtmcfarl>
I feel like I need to read the last column and loop through it somehow to get the entire message
danijoo has joined #ruby
riotjones has joined #ruby
<theberlin>
so readlines just literally reads every line. what if you set up some if statements so that if the first 3 are empty but the last one is full, to concatenate it to the last item from the previous line?
thesheff17 has quit [Ping timeout: 244 seconds]
<workmad3>
mtmcfarl: CSV can handle multiline fields as long as they're quoted appropriately, iirc...
<segv>
just a bad understanding of how modular gems are built
<AntelopeSalad>
do you want a single thor class that has a bunch of commands but the implementation details of each command is in its own file?
<segv>
I have one file called cli.rb and I am using thor as the main starting point for the app, so App.start(ARGV) is passed to CLI.rb
Gil has quit [Ping timeout: 272 seconds]
ponga has quit [Ping timeout: 255 seconds]
<segv>
I wanted to just have all my options in one spot and then include each one individually somehow but i've since confused myself and gone far down the wrong rabbit hole
bradhe has quit [Ping timeout: 272 seconds]
<segv>
well, each one meaning, each other modular class individually
workmad3 has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
Shidash has joined #ruby
kies has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
toastynerd has quit [Remote host closed the connection]
snath has joined #ruby
<AntelopeSalad>
segv: you might want to look at the bundler project on github
<segv>
kk
<AntelopeSalad>
it has a pretty good example of splitting up a cli in a reasonable way
<segv>
I read they were using thor
frem has quit [Ping timeout: 264 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<segv>
ahhh
x1337807x has joined #ruby
<segv>
AntelopeSalad good call, that's cool how they handle it