maletor_ has quit [Quit: Computer has gone to sleep.]
JohnFord has joined #ruby
gtc has quit [Quit: kill -9 gtc]
havenwood has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
emocakes has quit []
luckyruby has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
rklfn has joined #ruby
CaptainJet has quit [Ping timeout: 276 seconds]
piglet has joined #ruby
piglet has quit [Client Quit]
mary5030 has joined #ruby
<tejas-manohar>
how do i extra yo_username out of json formatted like {"status"=>"OK", "id"=>"NJXrLYXFV1yv0kX82sc15srGgsISHRau1d4xZnpIrkLa74c", "user"=>{"id"=>"87b20967-ddc6-4259-b08a-565974a0e99f", "yo_username"=>"BILAWALHAMEED"}}
<tejas-manohar>
using json gem
<centrx>
JSON.parse(str) returns your JSON-formatted object which is a hash
sparrovv has joined #ruby
_cake has joined #ruby
omosoj has quit [Quit: Leaving]
sevvie has joined #ruby
<CorySimmons>
is there a ruby jobs room?
mattmcclure has quit [Quit: Connection closed for inactivity]
<CorySimmons>
for paying for someone to make something small for me?
havenwood has joined #ruby
coreycondardo has quit [Quit: coreycondardo]
<centrx>
CorySimmons, never heard of one, no
<centrx>
CorySimmons, Also FYI more people are around during weekday daytime (America/Europe)
<CorySimmons>
meh, offering $50 to someone to build a simple gem that will load some scss files into vendor/assets/stylesheets/foo
thumpba has joined #ruby
<centrx>
sorry I don't know about those things off the top of my head
sparrovv has quit [Ping timeout: 272 seconds]
adamski2600 has quit [Remote host closed the connection]
<jhass>
CorySimmons: have you seen rails-assets.org?
<CorySimmons>
jhass: No, looking now
adamski2600 has joined #ruby
pwh has quit []
tlarevo_ has joined #ruby
tlarevo has quit [Ping timeout: 252 seconds]
deric_skibotn has joined #ruby
<CorySimmons>
Wow looks simply
<CorySimmons>
*simple
adamski2600 has quit [Ping timeout: 245 seconds]
radic has joined #ruby
freerobby has quit [Quit: Leaving.]
avita1 has quit [Quit: Leaving.]
kotk has joined #ruby
felixjet__ has quit [Quit: Leaving]
emmesswhy has quit [Quit: This computer has gone to sleep]
bruno- has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
skysploit has quit []
InhalingPixels has quit [Remote host closed the connection]
tkuchiki has joined #ruby
arup_r has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 268 seconds]
braincra- has quit [Quit: bye bye]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lampd1 has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
lampd1 has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
j_mcnally has joined #ruby
avita1 has joined #ruby
emmesswhy has joined #ruby
freerobby has joined #ruby
braincrash has joined #ruby
dc__ has joined #ruby
Girakrok has quit [Ping timeout: 276 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
Vile` has quit [Remote host closed the connection]
Wolland has joined #ruby
felixjet has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
zettam_ has quit [Read error: Connection reset by peer]
jbw has quit [Ping timeout: 246 seconds]
CorySimmons has quit [Quit: Zzz...]
Wolland has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
compo has joined #ruby
cajone has left #ruby [#ruby]
<tejas-manohar>
pipework: ruby is having trouble with my env vars
luckyruby has quit [Remote host closed the connection]
Advocation has joined #ruby
JohnFord has quit [Ping timeout: 268 seconds]
robbyoconnor has joined #ruby
archy78 has joined #ruby
<archy78>
Hi anyone used Dashing?
tkuchiki has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
arup_r has quit [Ping timeout: 240 seconds]
relix has joined #ruby
arup_r has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mollitz has joined #ruby
luckyruby has joined #ruby
skfax has joined #ruby
dukz has quit [Remote host closed the connection]
centrx has quit [Quit: Mead error: Connection reset by beer]
<skfax>
Would anyone mind checking the codecadamy.com Ruby lesson "A Night at the Movies" 3/10. I can't seem to get it working. My program: http://pastebin.com/6Ps3GufK
dukz has joined #ruby
<skfax>
codecademy*
zettam has joined #ruby
jeramyRR has joined #ruby
<jeramyRR>
guys I have a stupid question about require ‘filename’
<jeramyRR>
for some reason ruby is making me type require ‘./filename’ to work
InhalingPixels has joined #ruby
<jeramyRR>
it’s giving me the following error: /Users/Jeramy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- fizz_buzz (LoadError)
io_syl has quit []
<jeramyRR>
any ideas why?
dukz has quit [Ping timeout: 260 seconds]
<archy78>
anyone know how to use auth_key
<havenwood>
jeramyRR: modern Rubies don't have '.' in $LOAD_PATH like 1.8 did
atmosx has joined #ruby
<havenwood>
jeramyRR: they do have #require_relative
<archy78>
i'm trying to update dashng but need to set auth_key in its config.ru i've got no idea on format
danijoo has quit [Read error: Connection reset by peer]
<atmosx>
hello people
davedev2_ has quit [Ping timeout: 264 seconds]
danijoo has joined #ruby
<jeramyRR>
havenwood: thanks, I’m looking that up right now
<skfax>
Figured out my issue. Turns out the validator was just a bit strict, and commenting out the "puts 'Choice: '" made it work
<atmosx>
I need to count connections calls to an API, how do I go about this? Every connection creates a new object, etc. do I use @@counter?
anaeem1_ has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
diegoviola has quit [Remote host closed the connection]
<jeramyRR>
require_relative fixed it, thank you!
SilkFox_ has joined #ruby
diegoviola has joined #ruby
Wolland has joined #ruby
mkaesz has joined #ruby
<atmosx>
archy78: configu.ru has str format iirc
SilkFox_ has quit [Ping timeout: 245 seconds]
<atmosx>
configure do; set auth_key: 'blah-blah';end
<atmosx>
I went with a simpler solution fonud at SO for now, just to wrap my head around it. I remember some examples of class insances doing this in Peter Cooper's book (IIRC)... I'll have a look at Observable too thanks
zmartAzz has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 268 seconds]
x1337807x has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
grenierm has quit [Quit: grenierm]
io_syl has quit []
grenierm has joined #ruby
dukz has joined #ruby
fabrice31 has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
dukz has quit [Remote host closed the connection]
cina has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
sinkensabe has joined #ruby
mahtennek has joined #ruby
dcoxall has joined #ruby
dukz has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
klmlfl has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.0]
klmlfl has joined #ruby
jbw has quit [Quit: Ex-Chat]
diegoviola has joined #ruby
<havenwood>
atmosx: mm, simple is good ;)
<atmosx>
yeap, now I need to implement a timer too. I have 100 calls per minute.. but most of my calls won't be counter the API supports a sort of call just to see if state of object has changd which not counted (and this is what I'm basically checking). Come tothink of it I should have start the othe rway around hehe
klmlfl has quit [Ping timeout: 260 seconds]
abuzze has joined #ruby
OffTheRails has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grenierm has quit [Quit: grenierm]
banjara1 has quit [Quit: Leaving.]
bMalum has quit [Ping timeout: 272 seconds]
cina has joined #ruby
abuzze has quit [Remote host closed the connection]
<arup_r>
In the line @_current_user ||= session[:current_user_id] && .. Why the instance variable started with like @_ <~~~~ ?
<arup_r>
Is this any convention ?
<arup_r>
Why not @current_users ?
dukz has quit []
JohnFord has joined #ruby
<AmBienCeD>
uhm
OffTheRails has quit [Ping timeout: 255 seconds]
<AmBienCeD>
mostly because its protected or private var
<arup_r>
I am not sure...
<Mon_Ouie>
You should ask that in #rubyonrails. I have only seen things like that used e.g. when a module uses an ivar
<Mon_Ouie>
Or for things like Delegator
<Mon_Ouie>
(ivars are by definition all private)
<arup_r>
It is a Ruby convention.. not I think related to Ruby on Rails
anaeem1_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<AmBienCeD>
i am kinda sure
<AmBienCeD>
used in php alot
bruno- has joined #ruby
cina has quit [Quit: leaving]
yfeldblum has quit [Remote host closed the connection]
<havenwood>
arup_r: It is more a Rails idiom that has infected a handful of gems. :P
diegoviola has quit [Remote host closed the connection]
<arup_r>
But instance vars are already private to the objects where they were defined
<havenwood>
arup_r: Rails has its own idioms.
Kerber0s has joined #ruby
<arup_r>
What the leading `_` is needed.. not sure
<AmBienCeD>
its a convention
yfeldblum has joined #ruby
mkaesz has joined #ruby
<arup_r>
havenwood: hehehe
<havenwood>
a leading _ is a general programming convention, sure
JohnFord has quit [Ping timeout: 255 seconds]
<AmBienCeD>
sometimes its a private / protected var thats been inherited
<AmBienCeD>
so you know there's something going on with it
melik has joined #ruby
<Mon_Ouie>
It's never needed, you can always remove it — the idea is "the more leading underscores there are, the less likely someone else already used that name!"
mahtennek has quit []
<arup_r>
In Ruby instance variables not inhertis...
<havenwood>
Mon_Ouie: good point
ringarin has joined #ruby
<havenwood>
though seems preference is two __ before and after
<havenwood>
protected is nasty
jeroenvisser101 has joined #ruby
<havenwood>
i'm suspicious of class variables ;P
diegoviola has joined #ruby
avita1 has quit [Quit: Leaving.]
<Mon_Ouie>
That one is more common for methods, it's also what uses it for (__id__, __send__)
ringaring has joined #ruby
<havenwood>
ah, right - then just two in front form ivars
<havenwood>
or one in rails' case
<AmBienCeD>
protected vars are inherited btw
<havenwood>
a grep of my gems shows chaos
<Mon_Ouie>
It's not that instance variables are inherited, they're a property of an object, not of a class
<Mon_Ouie>
(well a class has its own instance variables, but that wasn't the point)
<havenwood>
AmBienCeD: I think not worth using. When you're tempted to good time to rethink design.
<havenwood>
AmBienCeD: generally* >.>
InhalingPixels has joined #ruby
<AmBienCeD>
havenwood: yeah, i would avoid using it. Unless absolutely necessary
ringarin has quit [Ping timeout: 268 seconds]
<atmosx>
What do the '::' stand for in ::File.join(...) ?
<havenwood>
atmosx: going out to top namespace
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
atmosx: so if you're in the Example class, you don't mean Example::File.join
cina has joined #ruby
Advocation has quit [Quit: Advocation]
InhalingPixels has quit [Ping timeout: 255 seconds]
<atmosx>
I think I got it
<atmosx>
but I need to use it a couple of times on my own
<atmosx>
hm
mkaesz has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<atmosx>
any reasons why foreman keeps leaving dump.rdb files in my root dir? Should I be worried or it's usual?!
SilkFox_ has joined #ruby
avita1 has joined #ruby
avita1 has quit [Client Quit]
eivindml has joined #ruby
Wolland has joined #ruby
JoshGlzBrk has joined #ruby
lampd1|mobile has quit [Quit: Bye]
Mon_Ouie has quit [Quit: WeeChat 1.0]
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
cirn0 has joined #ruby
tobyo has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
atmosx has quit [Quit: Lost in trance]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
ringaring has quit [Ping timeout: 268 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dphase- has quit [Read error: Connection reset by peer]
dphase has joined #ruby
cirn0 has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
sigurding has joined #ruby
pu22l3r has joined #ruby
relix has joined #ruby
m8 has joined #ruby
Lewix has joined #ruby
ringarin has joined #ruby
patrick99e99 has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
relix has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
JoshGlzBrk has quit [Ping timeout: 245 seconds]
caveat- has quit [Ping timeout: 268 seconds]
User458764 has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
tvw has quit []
Takle has joined #ruby
Juanchito has joined #ruby
qba73 has joined #ruby
GriffinH_ has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 245 seconds]
tlarevo has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
LangeOortjes has joined #ruby
GriffinH_ has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
wallerdev has quit [Quit: wallerdev]
sigurding has quit [Quit: sigurding]
eivindml has joined #ruby
anaeem1 has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
hamakn has joined #ruby
thomasxie has quit [Ping timeout: 264 seconds]
jeroenvisser101 has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
jeroenvisser101 has joined #ruby
JohnFord has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.0]
JohnFord has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
sigurding has joined #ruby
_Kerber0s_ has joined #ruby
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby
arup_r has joined #ruby
Kerber0s has quit [Ping timeout: 276 seconds]
diegoviola has joined #ruby
dcoxall has quit []
Bumptious has quit [Remote host closed the connection]
melik has quit [Quit: Computer has gone to sleep.]
Bumptious has joined #ruby
kaspergrubbe has joined #ruby
dcoxall has joined #ruby
InhalingPixels has joined #ruby
spider-mario has joined #ruby
spider-mario has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
swartwulf has quit [Remote host closed the connection]
spider-mario has joined #ruby
InhalingPixels has quit [Ping timeout: 268 seconds]
jeroenvisser101 has quit [Read error: Connection reset by peer]
luckyruby has quit [Ping timeout: 264 seconds]
swartwulf has joined #ruby
jeroenvisser101 has joined #ruby
vinleod has joined #ruby
emocakes has quit []
io_syl has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
SilkFox_ has joined #ruby
Wolland has joined #ruby
sinkensa_ has joined #ruby
emocakes has joined #ruby
m8 has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
mikecmpbll has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
Wolland has quit [Ping timeout: 272 seconds]
Mgdrt has joined #ruby
andrewlio has joined #ruby
Mgdrt is now known as aligundogdu
tlarevo has quit [Remote host closed the connection]
charliesome has joined #ruby
fabrice31 has joined #ruby
aligundogdu has quit [Client Quit]
cina has quit [Quit: leaving]
Advocation has joined #ruby
crdprink2 has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crdpink has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
atmosx has joined #ruby
eivindml has joined #ruby
poulet_a has joined #ruby
eivindml has quit [Max SendQ exceeded]
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
sameerynho has quit [Ping timeout: 252 seconds]
eivindml has joined #ruby
Advocation has quit [Quit: Advocation]
eivindml has quit [Client Quit]
sameerynho has joined #ruby
dcoxall has quit []
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
threesixes has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
Ilyas has joined #ruby
goodenough has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
qba73_ has joined #ruby
qba73_ has quit [Remote host closed the connection]
qba73_ has joined #ruby
qba73_ has quit [Remote host closed the connection]
jhass|off is now known as jhass
arup_r has joined #ruby
dideler has joined #ruby
qba73 has quit [Ping timeout: 264 seconds]
newsarpk92 has joined #ruby
<newsarpk92>
hello
<newsarpk92>
is this same as rubylang room?
sigurding has quit [Quit: sigurding]
<apeiros>
newsarpk92: no. but the topic is the same.
<newsarpk92>
I have a problem with a tutorial
<newsarpk92>
can you help me?
hamakn has quit [Remote host closed the connection]
<apeiros>
I'm don't have time right now. sorry.
<apeiros>
s/I'm/I/
rdark has joined #ruby
Fire-Dragon-DoL has joined #ruby
JohnFord has joined #ruby
rklfn has joined #ruby
qualiabyte has quit [Quit: Leaving]
User458764 has quit [Ping timeout: 246 seconds]
<jhass>
newsarpk92: wow, you're a pretty impatient person
JohnFord has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
Takle has quit [Remote host closed the connection]
cina has joined #ruby
sigurding has joined #ruby
rklfn has quit [Client Quit]
rklfn has joined #ruby
postmodern has joined #ruby
rklfn has quit [Client Quit]
_Kerber0s_ has quit [Remote host closed the connection]
io_syl has quit []
Kerber0s has joined #ruby
pagios has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
_Kerber0s_ has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
Scotteh has joined #ruby
workmad3 has joined #ruby
InhalingPixels has quit [Ping timeout: 264 seconds]
<hrrz>
hey guys, i'm a ruby developer, with rails background. There are many talks about new way of building web application through API and a separated client side. How would you recommend me to build my next web application?
<Nemin32>
this is my input text
<atmosx>
I think that's the 5th time I have to modify my models :-( it's insane.
<apeiros>
Nemin32: ok. and what would the returned array look like for that text?
<hrrz>
I am up for learning new technologies and approaches.
pu22l3r_ has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
adamski2600 has quit [Remote host closed the connection]
<apeiros>
Nemin32: I assume the values in the inner arrays are supposed to be strings?
<hrrz>
atmosx what book
<Nemin32>
Yes
andrewjanssen has quit [Client Quit]
<apeiros>
Nemin32: other than that - this is what a complete question looks like. example input, output and current code
adamski2600 has joined #ruby
<waxjar>
Nemin32: why do you want to put every line in a one-element array?
<pontiki>
it looks like a setup for Game of Life, for example
<apeiros>
Nemin32: your example output looks different from what your code seems to generate, though
<atmosx>
hrrz: depends on what you wanna do
<Nemin32>
Oh, well, i made it wrong
<hrrz>
atmosx: "hey guys, i'm a ruby developer, with rails background. There are many talks about new way of building web application through API and a separated client side. How would you recommend me to build my next web application?"
thomasxie has left #ruby [#ruby]
<Nemin32>
Sorry, i wanted that i can reach like array [2][2] and it would be like: a dot or a #
cirn0 has joined #ruby
<apeiros>
Nemin32: your example output you can create like this: return File.readlines(path).map { |line| [line.chomp] }
<waxjar>
Ah ok. File.read("file").lines.map { |line| line.chars } then
<apeiros>
waxjar: string has [] just fine too :)
<waxjar>
ooh, readlines even
JohnFord has joined #ruby
pu22l3r has joined #ruby
<waxjar>
good point
pu22l3r_ has quit [Read error: Connection reset by peer]
<waxjar>
no need to put it in an Array then though
<apeiros>
waxjar: well, I gave him what he said he wanted in the example output
<apeiros>
Nemin32: IMO your example output is wrong.
<Nemin32>
Surely...
<Nemin32>
I should rewrite my code
<Nemin32>
Its a mess now
<waxjar>
you either wanted ["###", ...] or [["#", "#", "#"], ...]
<apeiros>
single element array makes no sense to me. I guess you meant ["######", "# #", …],
<apeiros>
yeah
<apeiros>
if so, then just: File.readlines(path).map(&:chomp)
<apeiros>
just that you have your x & y the wrong way round
<apeiros>
Nemin32: note that ruby convention is e.g. update_map instead of UpdateMap
arup_r has quit [Read error: Connection reset by peer]
<Nemin32>
Alright, thanks, im trying it out now.
fabrice31 has quit [Ping timeout: 276 seconds]
sameerynho has quit [Quit: Leaving]
<AlexRussia>
apeiros, i really like, ruby use update_map instead of UpdateMap, its more readable for me :)
amundj has joined #ruby
yeboot has joined #ruby
amundj has quit [Client Quit]
workmad3 has quit [Ping timeout: 272 seconds]
InhalingPixels has joined #ruby
<yeboot>
does require ever work directly with .so (shared library) files? I'm trying to figure out what to put in my require command after I installed a library through my package manager (debian)
zeroNones has joined #ruby
<yeboot>
and I don't see any .rb files in the package
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
yeboot: should work if the .so is a Ruby C ext
<yeboot>
seems like a rather terrible name for a library
<jhass>
mmh, yeah
<jhass>
interesting that it even finds it in that place
SilkFox_ has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
<apeiros>
yeboot: indeed a rather bad name
PersonX has joined #ruby
davedev24_ has joined #ruby
PersonX has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
zmartAzz has joined #ruby
lkba has quit [Read error: Connection reset by peer]
supperman has joined #ruby
PersonX has joined #ruby
nucatus has quit [Remote host closed the connection]
sepp2k has joined #ruby
nucatus has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
lkba has joined #ruby
freerobby has joined #ruby
kristofferR has joined #ruby
<AlexRussia>
yeboot, if its not secret, where you use ROOT?Its seems interesting...
<wasamasa>
scientists don't really care about clean code :P
Panicky has joined #ruby
PersonX has quit [Read error: Connection reset by peer]
<AlexRussia>
wasamasa, @_@
nucatus has quit [Ping timeout: 255 seconds]
Takle has quit []
enriclluelles has joined #ruby
Takle has joined #ruby
<yeboot>
it's not a secret, really, I was looking at the source of some math stuff and ROOT seemed to have appropriate header files, so I just started taking a look, and noticed they (ROOT's documentation) claimed one could use it in ruby, which led me here
<yeboot>
when it didn't seem right
SilkFox_ has quit [Ping timeout: 245 seconds]
<Nemin32>
Ok, bye guys thanks fdo
<Nemin32>
for help
Nemin32 has quit [Quit: Page closed]
Hanmac has joined #ruby
hrrz has quit [Quit: hrrz]
doodlehaus has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
JohnFord has quit [Ping timeout: 252 seconds]
utkukaynar has joined #ruby
koderok has quit [Ping timeout: 268 seconds]
britneywright has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one___ has quit [Ping timeout: 240 seconds]
ghost2060 has quit [Ping timeout: 260 seconds]
PersonX has joined #ruby
<AlexRussia>
yeboot, i see this framework could works with many data, then you use it for sort your math stuff? @_@
utkukaynar has left #ruby [#ruby]
sparrovv has joined #ruby
shevy has quit [Quit: ""]
enriclluelles has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
PersonX has quit [Read error: Connection reset by peer]
_Kerber0s_ has quit [Remote host closed the connection]
hamakn has joined #ruby
Kerber0s has joined #ruby
Imofftopic has joined #ruby
<Imofftopic>
hit
<Imofftopic>
hi*
<Imofftopic>
Is it okay if I ask some noob questions?
freerobby has quit [Quit: Leaving.]
PersonX has joined #ruby
dcoxall has quit []
<Hanmac>
i dont see why not, the only thing we dont like is to ask if questions can be ask
iamjarvo has joined #ruby
PersonX has quit [Max SendQ exceeded]
SilkFox_ has quit [Ping timeout: 268 seconds]
<Imofftopic>
Okay. So is ruby basically only for web usage?
<canton7>
nope
hamakn has quit [Ping timeout: 264 seconds]
io_syl has joined #ruby
cesarstafe has joined #ruby
<canton7>
I use it for all of the little random tools, scripts, projects, munging, etc, that some people use python or bash for
Kerber0s has quit [Ping timeout: 268 seconds]
Fire-Dragon-DoL has joined #ruby
<wasamasa>
Imofftopic: why should it be?
<wasamasa>
Imofftopic: just because rails once made the most news?
<Imofftopic>
wasamasa: thats why i said noob question first. I know very little about ruby if i'm completely honest.
mollitz has quit [Ping timeout: 268 seconds]
pwh has joined #ruby
<AlexRussia>
Imofftopic, its the general-oriented PL, you can do here anything what you want....And we have -cookies- gems!
Fire-Dragon-DoL1 has quit [Ping timeout: 268 seconds]
<Imofftopic>
Okay so I can make random GUI tools as well?
<wasamasa>
Imofftopic: I'm just encouraging you to think logically about it, that's all :P
<AlexRussia>
Imofftopic, i mean to say, its of course OOP language etc etc, but its very very extensible
<wasamasa>
also, yes
<AlexRussia>
Imofftopic, ofc, just you should know what gui library you want to use( we probability have many bindings)
<Imofftopic>
okay
<AlexRussia>
Imofftopic, like Tk, Qt, GTK+ etc etc
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zmartAway has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
simoz1111117 has joined #ruby
Dev-Gitter has quit [Max SendQ exceeded]
yacks has quit [Read error: Connection reset by peer]
Dev-Gitter has joined #ruby
zmartAzz has quit [Ping timeout: 246 seconds]
io_syl has quit []
PersonX has quit [Remote host closed the connection]
drPoggs has joined #ruby
geeky-sh has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
18VAAT2X4 has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
jzigmund has quit [Ping timeout: 255 seconds]
PersonX has joined #ruby
yacks has joined #ruby
luckyruby has joined #ruby
fabrice31 has joined #ruby
cajone has joined #ruby
geeky-sh has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 260 seconds]
PersonX has quit [Read error: Connection reset by peer]
ndrei_ has joined #ruby
lsmola_ has joined #ruby
cesarstafe has quit [Ping timeout: 268 seconds]
jzigmund has joined #ruby
bMalum has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 260 seconds]
astav has quit [Quit: astav]
PersonX has joined #ruby
claymore has joined #ruby
7F1AA52T9 has quit [Read error: Connection reset by peer]
lemur has joined #ruby
ghost2060 has joined #ruby
linojon has joined #ruby
Advocation has joined #ruby
shevy has joined #ruby
TorpedoSkyline has joined #ruby
iamjarvo has joined #ruby
oo_ has quit [Remote host closed the connection]
compo has joined #ruby
jottr has joined #ruby
<SpaceKookie>
Is there a way to break the first part of that if statement into multiple lines or should I just use the classic if-else statement instead? http://pastebin.com/fPzZHSwN
ghost2060 has quit [Ping timeout: 245 seconds]
<Kilo`byte>
i have a question
<benzrf>
Kilo`byte: so ask it
<Kilo`byte>
how can i best read binary data from a ruby socket
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
Advocation has quit [Quit: Advocation]
<Kilo`byte>
like, i have a byte value followed by a 32 bit integer
<Kilo`byte>
now i want to read those into two numbers
MasterPiece has quit [Remote host closed the connection]
shevy has quit [Remote host closed the connection]
<Kilo`byte>
wasamasa: you saved my sanity
<Kilo`byte>
:D
compo has quit [Quit: Leaving]
<wasamasa>
np
Imofftopic has quit [Remote host closed the connection]
compo has joined #ruby
<wasamasa>
you see, I write some ruby code here and there at work, cursing about the imperative and repetitive parts
lxsameer has joined #ruby
<wasamasa>
then I see gems like these and feel there is some hope
<wasamasa>
didn't try it yet though
<lxsameer>
hey guys, I'm looking for a place to upload my gem docs, any suggestion ?
ndrei has joined #ruby
<wasamasa>
the github wiki?
Takle has quit [Remote host closed the connection]
Heartbroken has quit [Ping timeout: 272 seconds]
<SpaceKookie>
jhass: I've already it in a normal if-else. And the @@class_variables are a singleton pattern. Don't pee your pants.
lw has quit [Quit: s]
<wasamasa>
jhass is the last person in here I'd expect to ever pee their pants
<jhass>
SpaceKookie: you like want a class instance variable for that (or just use singleton stdlib)
<jhass>
*likely
shelling_ has joined #ruby
<jhass>
SpaceKookie: that is unless you want to enforce a single instance in the whole ancestry chain
<SpaceKookie>
jhass It's a singleton class that has parameters. So using a mutex and a private initialize method. But that's not even the issue. That works fine.
<SpaceKookie>
I only asked about the if-else because I'm new to the whole ruby shorthand stuff :P
<jhass>
I'm just saying that the semantics of a class variable are not what most people think what it is
<jhass>
and using it for the singleton pattern is a good indicator you neither
<benzrf>
man
<benzrf>
in haskell function application binds tighter than operator application
<benzrf>
so whenever i use ruby i keep tripping over precedence
<benzrf>
(when i dont use parens, anyway)
<jhass>
lxsameer: I like rubydoc.info/gems/gemname but if you have something more special IMO github pages is the way to go
<lxsameer>
thanks
ag95 has quit [Read error: Connection reset by peer]
Takle has joined #ruby
havenwood has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
shevy has joined #ruby
<shevy>
aaaah
<shevy>
ubuntu is so much more usably without unity
<wasamasa>
++
<jhass>
shevy: wait until you start to remove the ubuntu part from it!
<shevy>
I am scared
<shevy>
something might break
* Hanmac
prefers cinnamon on this ubuntu ;P
<jhass>
just strip to the kernel and build back up
tjr9898 has quit [Remote host closed the connection]
<shevy>
things like /usr/lib/command-not-found always annoy me
<jhass>
don't you think there would be a class variable in there if that's good pratice?
doodlehaus has joined #ruby
Bumptious has quit [Remote host closed the connection]
havenwood has joined #ruby
butblack has left #ruby [#ruby]
Bumptious has joined #ruby
<jhass>
besides I wouldn't make a singleton with a parameter but read the parameter from the application configuration inside initialize or do something like Singleton.log_file = "/foo/bar" that has to be set prior the first instance call
<apeiros>
a singleton with a parameter is quite a smell
<apeiros>
IMO the "call this before using" is a bad pattern too. value from config is better.
jimms has quit []
<jhass>
yeah, listed that first for reason, just showing additional alternatives
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
yupp. and I comment on them :)
claymore has quit [Ping timeout: 276 seconds]
Wolland has joined #ruby
sparrovv has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
seamon has joined #ruby
dideler has quit [Ping timeout: 276 seconds]
emmesswhy has joined #ruby
emmesswhy has quit [Client Quit]
fsapo has joined #ruby
einarj has joined #ruby
avita1 has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
einarj_ has joined #ruby
Spami has joined #ruby
InhalingPixels has joined #ruby
`ph8 is now known as ph8
ph8 has quit [Changing host]
ph8 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Azure has quit [Read error: Connection reset by peer]
claymore has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
sdwrage has joined #ruby
mary5030 has joined #ruby
sdwrage_ has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
Azure has quit [Max SendQ exceeded]
fold has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
bluenemo has quit [Client Quit]
bluOxigen has joined #ruby
zeroNones has joined #ruby
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
klmlfl has joined #ruby
sdwrage has quit [Ping timeout: 245 seconds]
jyuan has quit [Ping timeout: 245 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
iartarisi has joined #ruby
theo_ has joined #ruby
ghost2060 has joined #ruby
cesarstafe has joined #ruby
<iartarisi>
is there an alternative to String.sub which I can trust with a user-provided second argument? i.e. it seems the second argument is interpreted as a regexp with expansions being done.
anaeem1 has joined #ruby
<Hanmac>
iartarisi: make a gist of what you mean
_Kerber0s_ is now known as Kerber0s
anaeem1 has quit [Remote host closed the connection]
rockdon_ is now known as rockdon|away
<shevy>
hehe
<shevy>
I didn't quite get what he wants either
<iartarisi>
in the documentation to String.sub, there is this:
<iartarisi>
If replacement is a String it will be substituted for the matched text. It may contain back-references to the pattern’s capture groups of the form "\d", where d is a group number, or "\k<n>", where n is a group name.
<iartarisi>
I just want a version of sub which doesn't do that
ghost2060 has quit [Ping timeout: 252 seconds]
<centrx>
iartarisi, You don't need to use that feature
Scotteh has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
<iartarisi>
that seems to have worked. At least with my weird input data. Thanks a lot, guy!
fabrice31 has quit [Ping timeout: 240 seconds]
catbusters_ has quit [Quit: Connection closed for inactivity]
klmlfl has joined #ruby
timonv_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
earthquake has quit [Quit: earthquake]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
wallerdev has joined #ruby
mary5030 has quit [Remote host closed the connection]
mityaz_ has joined #ruby
iamjarvo has joined #ruby
cirn0 has joined #ruby
cirn000 has quit [Quit: Leaving]
ch0ke has joined #ruby
cirn00 has joined #ruby
fsapo has quit [Remote host closed the connection]
mary5030 has joined #ruby
yfeldblum has joined #ruby
cirn00 has quit [Client Quit]
<cajone>
Guys, I'm trying to debug a multi threaded ( well 2 threads actually) via irb/pry, I stuck an exit(0) clause in the threads thi8nking this would teminate the running code but would leave me in pry to invesigate some variables, what actually is happening is the exit(0) are killing the pry session, any ideas how I gat around this?
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeroenvisser101 has joined #ruby
<havenwood>
cajone: exit terminates the process not the thread
kireevco has joined #ruby
<havenwood>
cajone: you could kill or join the thread
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
<havenwood>
cajone: when it is done, it dies and you can join it, or kill it early, or it will die when the process ends
cirn0 has quit [Ping timeout: 240 seconds]
cirn00 has joined #ruby
<havenwood>
i need coffee
sevvie has joined #ruby
<havenwood>
cajone: I think you're looking for Thread.stop
<havenwood>
err, that'd sleep the thread
<AlexRussia>
havenwood, you need coffee....script? xD
<havenwood>
AlexRussia: hold the script, i take it black
heftig has quit [Quit: Quitting]
yfeldblum has quit [Ping timeout: 268 seconds]
<cajone>
hi havenwood: I kicked the theads off using join, would I put the Thread.stop within the Thread.new{} block?
<AlexRussia>
havenwood, lol
<AlexRussia>
cajone, havenwood somebody could explain me how to work with Thread's?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
shock_one has joined #ruby
havenwood has joined #ruby
<Hanmac>
hm ok its not perfect yet but i am still working in it
jeramyRR has joined #ruby
ghost2060 has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 272 seconds]
<jhass>
Hanmac: look at the examples of Enumerable#slice_before ;P
iartarisi has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
havenwood has quit [Remote host closed the connection]
<Hanmac>
jhass: hm currently i dont know which example do you mean ...
<jhass>
4th block
ndrei has joined #ruby
Akagi201 has joined #ruby
dmfranc has joined #ruby
<Hanmac>
hm oh you mean the one with "Word wrapping"? hm i might look at it
<jhass>
no, the one before
echevemaster has joined #ruby
sevvie has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 268 seconds]
io_syl has joined #ruby
wallerdev has joined #ruby
Wolland_ has joined #ruby
mikeg has quit [Remote host closed the connection]
JetsekaiYori has joined #ruby
ghost2060 has joined #ruby
klmlfl has quit [Remote host closed the connection]
zaphro has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
saarinen has joined #ruby
<zaphro>
Is there a Ruby quick reference site or pdf which covers 2.0 or even 2.1? Most stuff on Google barely covers 1.9 with the exception of zenspider.com
hsps_ has quit [Read error: Connection reset by peer]
SouL has joined #ruby
andrewlio has joined #ruby
qpls has joined #ruby
Urocyon has joined #ruby
threesixes has joined #ruby
tobyo has joined #ruby
b1nd has joined #ruby
evansbee has joined #ruby
dc__ has joined #ruby
thumpba has joined #ruby
jayne has joined #ruby
anekos_ has joined #ruby
kies^ has joined #ruby
xiphias has joined #ruby
lagweezle has joined #ruby
adrenaline_ has joined #ruby
Koshian has joined #ruby
FDj has joined #ruby
mahlon has joined #ruby
optiz0r has joined #ruby
britneywright has joined #ruby
TorpedoSkyline has joined #ruby
OffTheRails has joined #ruby
zarul has joined #ruby
timonv_ has joined #ruby
vcoinminer______ has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Remote host closed the connection]
fold has quit [Ping timeout: 255 seconds]
wjimenez5271 has joined #ruby
<atmosx>
jesus christ
vcoinminer______ has joined #ruby
<atmosx>
I've lost about ~ 2 hours debugging for a ... oasdf;aksdjf;lkj I can'tbelieve this
Urocyon has quit [Ping timeout: 252 seconds]
<atmosx>
You guys implement begin/rescue/end and loggers on the first write? (usually?)
<pontiki>
no
<atmosx>
or it's part of the refactoring
<pontiki>
well, logging sometimes
<atmosx>
me either, but the app is starting to get big enough apparently and I can't cope with it anymore... I can't hold all the methods in my head anymore
relix_ has joined #ruby
<pontiki>
b/r/e, not so often until we find it blowing exceptions
<pontiki>
or in the case of a service model, then yes
cesarstafe has joined #ruby
<nobitanobi>
Do you guys know how am I supposed to stub the :gets method here: https://gist.github.com/novito/0da80bc677722e460ecc -- I get a deprecation warning "Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated".
lemur has quit [Read error: Connection reset by peer]
<havenwood>
shevy: i think not good to be on the north side of that horizontal line... more questions than use :P
maestrojed has joined #ruby
<havenwood>
shevy: you wanna be in the southeast
<havenwood>
(right where Ruby is, muahhahaa)
<havenwood>
i guess not so far south >.>
* havenwood
pokes Common Lisp
IrishGringo has joined #ruby
cirn0 has joined #ruby
sdwrage_ has quit [Quit: Leaving]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
waah
<shevy>
only common lisp is in the southeast
<shevy>
it's like the desert area where nobody returns
<banister>
centrx they aren't exceptions :)
<havenwood>
shevy: i guess questions aren't so bad ;P
<banister>
centrx raise/rescue are for exceptions, try/catch is for exactly your use case
<havenwood>
shevy: some stack overflow is prolly good, does show popularity not just obtuseness
lw has quit [Quit: s]
<shevy>
somehow I think havenwood is drunk right now
<havenwood>
shevy: false!
<pontiki>
atmosx: did you get an answer to your question above about created_at times?
<atmosx>
pontiki: I'm explicitly calling the time object (the TZinfo to get local time) at every create call
dcoxall has joined #ruby
<atmosx>
pontiki: but it's not a dynamic solution, however... The thing is that you launch the rack server, the object is created and the date won't change.
darkxploit has quit [Ping timeout: 272 seconds]
<atmosx>
I mean these values are read only once, that's the prob there I think and either I have to do something 'weird' to create a new object at every request or I shouuld explicitly call it from elsewhere.
Zesty has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
cirn0 has quit [Ping timeout: 246 seconds]
<pontiki>
what i see is you're setting the default for created_at. what I'm not seeing is where you're saving a record into that table
<atmosx>
I'm in 100% dump mode, I've been writing code non-stop from yesterday night, I didn'tnew I could be so productive on one hand I've lost too many hours debugging stupid errors on the other. I can't even do simple things like sort an array of hashes
<shevy>
but you can't do much with it
<shevy>
like use it like a variable
_1_Nitromk has joined #ruby
<_1_Nitromk>
sap
maestrojed has joined #ruby
<shevy>
hehe
<_1_Nitromk>
wats fresh
sinkensabe has quit [Read error: Connection reset by peer]
<atmosx>
shit
sinkensabe has joined #ruby
<_1_Nitromk>
r u 4 real
benzrf|offline is now known as benzrf
mskaesz has joined #ruby
<_1_Nitromk>
nskaez sap
TheNet has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
mskaesz has quit [Read error: Connection reset by peer]
mkaesz_ has joined #ruby
<atmosx>
I think I must stop now
<_1_Nitromk>
atmosx
ptrrr has joined #ruby
<_1_Nitromk>
y aay that
wald0 has joined #ruby
<atmosx>
_1_Nitromk: is your keyboard setup correctly? Do you have an osteoarthritis condition?
<shevy>
lol
<atmosx>
shevy: I didn't pass my clinical pharmacology exam
<atmosx>
jesus fucking christ I have t do it again :-(
<atmosx>
October
<shevy>
ewww
mkaesz has quit [Ping timeout: 264 seconds]
mkaesz_ has quit [Ping timeout: 245 seconds]
<pontiki>
atmosx: wondering if the created_at is working?
<pontiki>
half hour ago you were adding created_at to your record creates. is it doing what you expect now?
<atmosx>
pontiki: yes sure
Net has joined #ruby
<pontiki>
is Sequel supposed to handle that magically like AR does?
<atmosx>
pontiki: totally
maestrojed has quit [Quit: Computer has gone to sleep.]
<atmosx>
and utterly!
<atmosx>
hehe, yes it's an ORM, best alternative to AR as far as I can tell.
cirn000 has joined #ruby
hamakn has joined #ruby
hsps__ has joined #ruby
Net has quit [Client Quit]
TheNet has joined #ruby
gdoteof has joined #ruby
<gdoteof>
when i do apt-get install ruby, i get "settingu p ruby 1.9.1"
<gdoteof>
if i do ruby -v, it says 1.9.3p484
<gdoteof>
when i try and install compass, i get complaints about 1.9.1
<gdoteof>
and if i do ls /usr/lib/ruby it only has 1.9.1 in there
<gdoteof>
i just did a purge/reinstall and its all the same, ic an't tell wtf is going on
<gdoteof>
im on ubuntu 14.04
<pontiki>
in AR, though, you don't nail the created_at default to the table creation time
<pontiki>
or if you did, i'd expect the same behaviour
cirn00 has quit [Ping timeout: 276 seconds]
_1_Nitromk has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
troyready has quit [Ping timeout: 255 seconds]
deric_skibotn has joined #ruby
claymore has quit [Quit: Leaving]
wald0 has quit [Quit: Lost terminal]
cirn000 has quit [Quit: Leaving]
pu22l3r has joined #ruby
jack_rabbit has joined #ruby
andrewjanssen has joined #ruby
JohnFord has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
jimmykarily has quit [Quit: leaving]
io_syl has joined #ruby
glebm has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
SCHAAP137 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
yeboot has joined #ruby
<pontiki>
yeah, that's exactly what it does
<pontiki>
atmosx: leave off the default on the created_at fields and see if you get what you want
dapz has joined #ruby
ch0ke has quit [Ping timeout: 260 seconds]
<atmosx>
pontiki: my idea (of the default) was flawed anyway, at the time of writing seemed right but it wasn't :-P
io_syl has quit []
sinkensabe has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
ovoraptor has joined #ruby
anshin has quit [Quit: signing off due to storms]
pu22l3r has quit [Remote host closed the connection]
freerobby has joined #ruby
jimms has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
JetsekaiYori has quit [Ping timeout: 255 seconds]
TrueJet has joined #ruby
TorpedoSkyline has joined #ruby
jimms has quit [Client Quit]
TorpedoSkyline has quit [Client Quit]
britneywright has joined #ruby
nobitanobi has quit [Remote host closed the connection]
butblack has joined #ruby
Takle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
crdpink has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
mkaesz has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
sinkensabe has quit [Remote host closed the connection]
PsionTheory has quit [Remote host closed the connection]
timonv^ has quit [Remote host closed the connection]
sepp2k has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
b06464f377 has quit [Quit: leaving]
nobitanobi has joined #ruby
<jhass>
gdoteof: the 1.9.1 in the package name and the paths is the ABI version, not the interpreter version. The ABI version of the ruby 1.9.x series is 1.9.1
butblack has left #ruby [#ruby]
mkaesz has quit [Ping timeout: 272 seconds]
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
Spami has joined #ruby
andrewlio has quit [Remote host closed the connection]
Mars has joined #ruby
<Mars>
Anyone have issues with ruby after upgrading to Mavericks?
Mars is now known as Guest9420
<havenwood>
Guest9420: Nope, what are you running into?
<havenwood>
Guest9420: Works well on Yosemite too.
jimms has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
ptrrr has quit [Quit: ptrrr]
axsuul has quit [Ping timeout: 260 seconds]
heftig_ is now known as heftig
davedev24_ has quit [Ping timeout: 252 seconds]
axsuul has joined #ruby
havenwood has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
Inhaling_ has joined #ruby
hsps__ has quit [Ping timeout: 268 seconds]
davedev24_ has joined #ruby
farn has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
farn has joined #ruby
InhalingPixels has quit [Ping timeout: 260 seconds]
<preyalone>
Is there a Ruby library to help search for and apply configuration dotfiles, per-directory?
pwh has joined #ruby
<preyalone>
something like defaults.reek, .cane, .excellent.yml, .rubocop.yml, but more general
doritostains has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
CpuID has joined #ruby
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
crdprink2 has joined #ruby
britneywright has joined #ruby
codecop has quit [Remote host closed the connection]
crdpink has quit [Ping timeout: 245 seconds]
cesarstafe has quit [Quit: leaving]
patrick99e99 has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby
Lewix has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has quit [Client Quit]
pwh_ has joined #ruby
pwh has quit [Ping timeout: 264 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
Bumptious has joined #ruby
ptierno has quit [Quit: leaving]
yeboot has quit [Ping timeout: 272 seconds]
melik has quit [Quit: Computer has gone to sleep.]
grenierm has joined #ruby
shock_one_ has quit [Quit: Computer has gone to sleep.]
Inhaling_ has quit [Remote host closed the connection]
ahmads has quit [Read error: Connection reset by peer]
rubytor has quit [Ping timeout: 255 seconds]
<shevy>
can I pass a block to a method, and inside the method instantly delegate that passed block to a class?
siwica has joined #ruby
<shevy>
I want to set some slots on that object, but without the object.message notation - the block message has the instructions as to which methods on that object to call
rockdon_ is now known as rockdon|away
cirn0 has joined #ruby
kireevco has joined #ruby
grenierm has quit [Quit: grenierm]
InhalingPixels has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
siwica has quit [Client Quit]
Cooler_ has quit [Ping timeout: 240 seconds]
TrueJet has quit [Ping timeout: 255 seconds]
rubyonrailed has quit []
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica has joined #ruby
<waxjar>
if you get a reference to the block you can just pass it around, no?
cirn0 has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
nobitanobi has quit [Remote host closed the connection]
rbenv has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc__ has quit [Remote host closed the connection]
<shevy>
hmm a moment, let me test
lucianosousa has joined #ruby
Photism has joined #ruby
maletor has joined #ruby
mocfive has quit [Remote host closed the connection]
<waxjar>
that's why stuff like #map &:to_s works, Symbol#to_proc returns a proc that you pass as a block to #map
jimms has joined #ruby
Guest9420 has quit [Remote host closed the connection]
niklas has quit [Quit: Leaving]
<shevy>
aha
niklas has joined #ruby
JetsekaiYori has joined #ruby
rubytor has joined #ruby
JohnFord has joined #ruby
<shevy>
this is cool
JohnFord has quit [Read error: Connection reset by peer]
JohnFord has joined #ruby
weaksauce has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
phoo1234567 has quit [Quit: Leaving]
<shevy>
can python do this as well?
t0rc has joined #ruby
niklas3 has joined #ruby
niklas has quit [Quit: Leaving]
carbon_ has quit [Quit: leaving]
niklas3 has quit [Client Quit]
starkhallo has joined #ruby
niklas has joined #ruby
autochthon has quit [Ping timeout: 272 seconds]
niklas has quit [Client Quit]
starkhalo has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
niklas has joined #ruby
havenn has joined #ruby
<wasamasa>
shevy: no, you'd insist that in python it's good style to write out names
<wasamasa>
shevy: and forego instance_eval and all of its evils
havenn has quit [Client Quit]
kireevco has left #ruby [#ruby]
IrishGringo has joined #ruby
niklas has quit [Client Quit]
<shevy>
this example has a clear advantage
xenogis has quit [Ping timeout: 240 seconds]
niklas has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sent-hil has joined #ruby
<wasamasa>
shevy: the scariest metaprogramming I've seen in python involved decompiling emitted bytecode to generate an AST, then running it through monadic optimizers and creating the desired bytecode from their results
iamjarvo has joined #ruby
<shevy>
cool
<shevy>
can we generate bytecode in ruby?
<wasamasa>
I'm pretty sure that happens all the time
<wasamasa>
the thing's just that the ruby executable does not spit it out into a file it can run instead of the original as python does
w3pm has joined #ruby
<wasamasa>
shevy: if you want to have it explained in more detail, watch the videos about ponyorm
<w3pm>
how can i pass an interpolated string into system()? doesnt seem to work
<w3pm>
system( "#{test}" ) literally tries to run #{test}
niklas has quit [Client Quit]
niklas123 has joined #ruby
<w3pm>
nevermind
marr has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
<havenwood>
shevy: we can!
Deele has quit [Ping timeout: 276 seconds]
<havenwood>
in manyfold and myriad ways
<havenwood>
shevy: there's straightforward ways to, like with rbx and mruby
<havenwood>
there're*
<havenwood>
too*
shevy has quit [Ping timeout: 264 seconds]
deric_skibotn has quit [Ping timeout: 240 seconds]
doritostains has quit [Quit: doritostains]
Vile` has quit [Quit: .]
coreycondardo has joined #ruby
yeboot has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
bruno- has joined #ruby
dc__ has joined #ruby
fabrice31 has joined #ruby
niklas123 has quit [Quit: Leaving]
codergeek121 has joined #ruby
datreh has quit [Quit: Computer has gone to sleep.]
astav has joined #ruby
codergeek121 has quit [Client Quit]
niklas123 has joined #ruby
zenojis has joined #ruby
charliesome has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
IrishGringo has quit [Ping timeout: 240 seconds]
t0rc has left #ruby ["WeeChat 1.0"]
OffTheRails has quit [Ping timeout: 272 seconds]
niklas123 has quit [Client Quit]
codergeek123 has joined #ruby
synergyz has quit [Remote host closed the connection]