apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<The_NetZ> selina345: hell, fire up a virtualbox :P
ghr has joined #ruby
greggroth has quit [Ping timeout: 265 seconds]
<Senjai> Any linux distro works
<selina345> im using a really shitty laptop
<selina345> not sure if capable of
<Senjai> selina345: It will run linux better than windows
yourmysin has joined #ruby
<Senjai> selina345: You can run a linux OS on a raspberry PI
MatthewsFace has joined #ruby
<selina345> i dunno, virtualbox seemed to slow down my macbook
<selina345> when i downloaded it
<The_NetZ> yep. windows is a hog from hell; linux isn't greedy.
freezey has quit [Ping timeout: 268 seconds]
<Senjai> selina345: virtualbox = virtualbox, not linux
_tpavel has quit [Read error: Operation timed out]
<The_NetZ> selina345: what.
<Senjai> selina345: Check out Ubuntu, or better yet Gnome Ubuntu/X Ubuntu
SCommette has joined #ruby
<The_NetZ> selina345: simply downloading a file will not slow down your machine
pel_daniel1 has left #ruby [#ruby]
mansi has quit [Ping timeout: 245 seconds]
anon667 has joined #ruby
<selina345> Senjai: But I dont want to completely get rid of windows
shinobi_one has quit [Quit: shinobi_one]
<Senjai> selina345: I dual boot
<selina345> i want to be able to switch
<The_NetZ> Senjai: quit trying to push *buntu XD
freezey_ has quit [Ping timeout: 255 seconds]
<The_NetZ> Senjai: easy as hell.
<The_NetZ> Senjai: I tripple boot :P
<Senjai> The_NetZ: I use Arch, but it is not newbie friendly at all
<selina345> A CD?!?!?!
<The_NetZ> Senjai: good, lol.
<selina345> i haven't seen one in ages
<The_NetZ> selina345: yep, or a dvd, or a usb
<selina345> ackk
<The_NetZ> selina345: installing linux has a lot of options on the chosen media
evenix has quit [Ping timeout: 255 seconds]
<Senjai> selina345: I use a usb
forced_request has quit [Ping timeout: 245 seconds]
<selina345> Senjai: oh okay. how much memory are we talking?
<The_NetZ> you can put it on a cd (if its a small enough distro), dvd, or usb
<Senjai> selina345: Like.. not much, less than 4 gb
<Senjai> selina345: http://www.linuxliveusb.com/ << Use this
<The_NetZ> *buntu doesn't fit on a cd anymore, does it?
pen has joined #ruby
<Senjai> The_NetZ: Not a CD, but a DVD-R
<selina345> oh you mean not a real usb?!
<selina345> what is this
<Senjai> The_NetZ: You can get ultra slim versions that download everything from the internet
Red_Onyx has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
siwica has quit [Ping timeout: 246 seconds]
<Senjai> selina345: Nono, this will create a usb given a linux image
<selina345> you dont need an actual usb stick
<The_NetZ> selina345: forget everything.
<Senjai> selina345: You do..
<selina345> oh
<Senjai> You need bootable media
dstynchu_ has quit []
<The_NetZ> selina345: grab a 2+gb usb stick, download unetbootin, then use that on a ubuntu disk image.
<Senjai> I have XUbuntu stored on my phone and boot from that
<The_NetZ> Senjai: you can do that.
<The_NetZ> ?
tylersmi_ has quit [Remote host closed the connection]
<Senjai> The_NetZ: Yea, your phones hard drive is just a hard drive..
<selina345> what kinda phone
<selina345> will a nexus work
<Senjai> I use an unlocked HTC One
tylersmith has joined #ruby
<The_NetZ> Senjai: never tried it, but then again my usb adapter is too crappy.
<The_NetZ> selina345: just get a normal usb stick.
sdouglas has quit [Remote host closed the connection]
GodPuppet has quit [Remote host closed the connection]
<Senjai> selina345: ^
<Senjai> they're like $5
boombadaroomba has joined #ruby
sdouglas has joined #ruby
<The_NetZ> selina345: just a 1gb one fits most distros.
<The_NetZ> 2gb for room to spare, or grab a huge one, install GRUB2 on it, and set it up to chainload iso's :P
siwica has joined #ruby
<Senjai> The_NetZ: I think you're overloading them with info,
<Senjai> selina345: Just follow the guide I linked and google around, it's not difficult
<The_NetZ> Senjai: lol, its just too awesome :P
<The_NetZ> when I first learned how awesome grub2 is I nearly shat myself :P
<Senjai> grub2 is horrible..
doodlehaus has quit []
<selina345> off to the msft store to grab a USB
<selina345> btw can i boot linux onto surface 1
<selina345> ?
<selina345> and then connect it to my laptop
tylersmith has quit [Ping timeout: 245 seconds]
<The_NetZ> selina345: is that the one with a normal x86_64 cpu?
<The_NetZ> selina345: or is the one with an arm processor?
jzig has joined #ruby
fabrice31 has joined #ruby
<The_NetZ> Senjai: its pretty nice with an UEFI motherboard
<selina345> beats me
CorySimmons has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
<Senjai> selina345: Linux can install on almost anything
<Senjai> google around
<selina345> k
b00stfr3ak has quit [Ping timeout: 245 seconds]
<The_NetZ> Senjai: yeah, but not on the ARM one.
<The_NetZ> Senjai: at least not as of my last check.
<The_NetZ>
yokel has quit [Changing host]
yokel has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
batman has joined #ruby
<batman> hi
<batman> is there a looping primitive
<batman> that does not use #each?
nanoyak has joined #ruby
<batman> I am trying to implement each for a datastructure
SCommette has quit [Quit: SCommette]
ce_afk is now known as cescalante
<The_NetZ> batman: whats wrong with each bruce?
<batman> Well..I am trying to implement each
<batman> so I can't really use #each, in each
<batman> I can use 0.upto(array.length - 1)
selina345 has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 252 seconds]
<batman> but is there a simpler looping construct so I can yield successive elements of this array?
<The_NetZ> batman: you're reinventing the wheel?
_tpavel has joined #ruby
<batman> The_NetZ, exercise for learning
<batman> reimplement enumerable.
taf2 has joined #ruby
pencilcheck has joined #ruby
f0ster has quit [Read error: Operation timed out]
nobitanobi has quit [Remote host closed the connection]
pen has quit [Ping timeout: 246 seconds]
Jeticus has joined #ruby
CaptainJet has quit [Ping timeout: 252 seconds]
smathieu has quit [Remote host closed the connection]
ascarter has joined #ruby
showaz has joined #ruby
smathieu has joined #ruby
benlieb has quit [Quit: benlieb]
Bumptious has quit [Remote host closed the connection]
<Senjai> batman: each with object
chipotle has quit [Quit: cya]
<Senjai> err wait
saarinen has quit [Quit: saarinen]
<Senjai> why cant you use each in each
lolmaus_ has quit [Ping timeout: 268 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
fflush has joined #ruby
fflush has joined #ruby
smathieu has quit [Remote host closed the connection]
caveat- has joined #ruby
smathieu has joined #ruby
Xuerian has joined #ruby
<toretore> batman: if you want to yield successive elements of an array, use array.each
trhodes_ has joined #ruby
<toretore> def each; ary.each{|e| yield e } end
MatthewsFace has joined #ruby
andredieb has left #ruby [#ruby]
kitak_ has quit [Remote host closed the connection]
<batman> toretore, :| so how would I reimplement that each?
<batman> or not worth the effort
<batman> since its basically a simple for loop
<batman> lol
<batman> Senjai, thank you
pen has joined #ruby
fijimunkii has joined #ruby
kitak_ has joined #ruby
<Senjai> batman: For in ruby is defined in terms of each
pencilcheck has quit [Ping timeout: 252 seconds]
<toretore> batman: i don't understand what you're trying to do
Beoran_ has quit [Ping timeout: 265 seconds]
<toretore> def each; c=0; while c<ary.size; yield ary[c]; c+= 1; end; end
MatthewsFace has quit [Client Quit]
<batman> toretore, there
<toretore> or loop{}
fflush has quit [Quit: fflush]
<batman> toretore, thank you
ctp has joined #ruby
showaz has quit [Quit: Textual IRC Client: www.textualapp.com]
pwh has joined #ruby
showaz has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
toastynerd has joined #ruby
smathieu has quit [Remote host closed the connection]
ctp has quit [Client Quit]
manacit has joined #ruby
Guest97577 has quit [Remote host closed the connection]
evenix has joined #ruby
smathieu has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brunops has joined #ruby
centrx has joined #ruby
papercod1 has quit [Quit: WeeChat 0.4.4-dev]
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ukd1 has quit [Remote host closed the connection]
fflush has joined #ruby
noctua has quit [Ping timeout: 265 seconds]
smathieu has quit [Ping timeout: 264 seconds]
CorySimmons has quit [Quit: Zzz...]
<hfp> Hey all! How does Ruby work in that case? https://eval.in/130397? Is it just ignoring whatever is after the decimal point?
Beoran_ has joined #ruby
sriehl has joined #ruby
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
<hfp> Is it never ever rounding?
hooper has quit [Ping timeout: 246 seconds]
doodlehaus has joined #ruby
<bricker> hfp: it's probably casting it to an integer, which rounds down
BP-out has joined #ruby
horofox_ has joined #ruby
lukec has quit [Ping timeout: 252 seconds]
<bricker> hfp: more accurately, it truncates the float: http://www.ruby-doc.org/core-2.1.1/Float.html#method-i-to_int
lukec has joined #ruby
hooper has joined #ruby
jeregrine has joined #ruby
<hfp> I se,, thanks
<hfp> see*
Shidash has quit [Ping timeout: 240 seconds]
jamto11 has quit [Remote host closed the connection]
User289 has joined #ruby
karmatr0n has quit [Remote host closed the connection]
doodlehaus has quit [Client Quit]
nateberkopec has joined #ruby
User289 has quit [Client Quit]
lukec has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
kaspergrubbe has joined #ruby
smathieu has joined #ruby
horofox_ has quit [Quit: horofox_]
<BP-out> hey, what is the rails channel on freenode?
funktor has quit [Remote host closed the connection]
CorySimmons has joined #ruby
bilbo_swaggins has joined #ruby
bilbo_swaggins has quit [Client Quit]
fflush has quit [Quit: fflush]
greggroth has joined #ruby
smathieu has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 268 seconds]
afex has quit [Ping timeout: 264 seconds]
<bricker> #rubyonrails
CorySimmons has quit [Client Quit]
<BP-out> thank you :)
oo_ has joined #ruby
smathieu has joined #ruby
dx7 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<BP-out> If I have a Class that has a #run method, and inside that #run method I start a new thread and do some stuff, how can I reference instance methods declared outside that Thread.start() loop ?
pen has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
jmimi1 has quit [Ping timeout: 246 seconds]
ukd1 has joined #ruby
<BP-out> Or should I instantiate that class object inside the thread?
Celm has quit [Remote host closed the connection]
albedoa has joined #ruby
agrinb has joined #ruby
<wallerdev> BP-out: you could pass the object to the block
aspires has quit []
<wallerdev> like Thread.new(obj) { |obj| now i can access obj }
<BP-out> thats okay to do even if the Thread.start() is inside the class itself>
<BP-out> ?*
<wallerdev> i mean it's kinda a weird way to do things
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
<wallerdev> like you probably want one class for starting threads, and another for your actual stuff to be done
<wallerdev> instead of tying them both together
ascarter has joined #ruby
cashnguns has joined #ruby
<wallerdev> like maybe one class ThreadStarter, and maybe when it starts it creates a FacebookChecker and runs that in the thread
subbyyy_ has quit [Ping timeout: 255 seconds]
juanmnl has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
dx7_ has joined #ruby
diegoviola has joined #ruby
<BP-out> AH okay, thank you wallerdev that sounds like a good idea
The_NetZ has joined #ruby
<BP-out> I'll refactor this once I verify it works :)
fflush has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
centrx has quit [Quit: All this computer hacking is making me thirsty]
dx7 has quit [Ping timeout: 255 seconds]
fflush has quit [Client Quit]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<The_NetZ> hey, can one use extconf.rb to generate a makefile for an embedded ruby application? (EG, statically linked ruby)
dapz has joined #ruby
pen has joined #ruby
dx7 has joined #ruby
diegoviola has quit [Client Quit]
kori has joined #ruby
<BP-out> hmmm wallerdev actually I realized that wouldn't work. Let me pastebin some code if you wouldn't mind looking at it
newUser1234 has joined #ruby
dapz has quit [Client Quit]
kori has left #ruby [#ruby]
pigzzcanfly has quit [Remote host closed the connection]
njection has joined #ruby
dapz has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
hiall has quit [Quit: hiall]
tkuchiki has quit [Ping timeout: 245 seconds]
<wallerdev> sure
rmorello has joined #ruby
<The_NetZ> or, rephrased, how to static link using extconf.rb
diegoviola has joined #ruby
dx7_ has quit [Ping timeout: 246 seconds]
kitak__ has joined #ruby
<BP-out> here wallerdev perhaps this will explain things a bit more clearly: http://pastebin.com/Um8vhRyw
ffranz has quit [Quit: Leaving]
danshultz has joined #ruby
subbyyy_ has joined #ruby
Vovko has joined #ruby
karmatr0n has joined #ruby
selina345 has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
whatasunnyday has quit [Quit: whatasunnyday]
tylersmith has joined #ruby
fflush has joined #ruby
fflush has joined #ruby
fflush has quit [Changing host]
asteros has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jason__ has joined #ruby
SidWu has joined #ruby
weeb1e has joined #ruby
SidWu has quit [Max SendQ exceeded]
kkirr has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<wallerdev> BP-out: this is what i had in mind https://gist.github.com/anonymous/9926286
<wallerdev> kinda pseudo code but hopefully you get the idea
zachalle_ has quit [Remote host closed the connection]
simono has joined #ruby
<BP-out> Ah okay, this does make sense
<BP-out> thank you very much! I'll try to implement
havenn has joined #ruby
CaptainJet has joined #ruby
smathieu has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
smathieu has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
CorySimmons has joined #ruby
MartinJNash has joined #ruby
Bumptious has joined #ruby
Jeticus has quit [Ping timeout: 268 seconds]
doodlehaus has joined #ruby
CaptainJet has quit [Client Quit]
CaptainKnots has quit [Ping timeout: 252 seconds]
smathieu has quit [Ping timeout: 252 seconds]
Voodoofish430 has quit [Quit: Leaving.]
danshultz has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
slawrence00 has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
chipotle has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
guest123 has quit [Quit: Connection closed for inactivity]
yourmysin has quit [Remote host closed the connection]
jrhe has quit [Quit: Connection closed for inactivity]
siwica has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
fflush has quit [Quit: fflush]
pen has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
stupidystupid has joined #ruby
CorySimmons has quit [Quit: Bye!]
arubin has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
geggam has quit [Remote host closed the connection]
Vovko has quit [Remote host closed the connection]
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zcreative has joined #ruby
browndawg has joined #ruby
fflush has joined #ruby
george2 has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 252 seconds]
dx7 has joined #ruby
Celm has joined #ruby
benzrf has joined #ruby
<benzrf> hello rubyists
<benzrf> has anybody here used mirah
wallerdev has quit [Quit: wallerdev]
sriehl has quit []
<benzrf> o-o its quiet
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dx7 has quit [Ping timeout: 255 seconds]
Hanmac1 has joined #ruby
<The_NetZ> benzrf: sup man
Hanmac has quit [Ping timeout: 252 seconds]
<The_NetZ> benzrf: no clue, never even heard of it.
larissa has joined #ruby
toastynerd has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
<benzrf> yo
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf> The_NetZ: i havent badgered you to try Quick yet have i
<The_NetZ> benzrf: and quick is?
newUser1_ has joined #ruby
<The_NetZ> you may have, but I need some context; I have heard of it, methinks.
ukd1 has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
ukd1 has joined #ruby
chichou has quit [Remote host closed the connection]
<benzrf> The_NetZ: it is my live coding env thingy
krz has joined #ruby
asteros has quit [Quit: asteros]
browndawg has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
browndawg has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BP-out> is it a terrible idea to run a ruby IRC bot inside of a rails app?
<benzrf> BP-out: yes and you should feel bad
<benzrf> BP-out: jk i dunno
<BP-out> the idea is that you could "spawn" a bot from an admin console and it would have some web based features
<benzrf> it depends on how the setup works
<BP-out> but handling threads and events on the socket is hard
<The_NetZ> benzrf: as in? can I write c++ extensions with it?
<benzrf> BP-out: it sounds to me like it'd be better to embed the web app in the bot
x77686d has joined #ruby
<benzrf> The_NetZ: probably not
mway has joined #ruby
<BP-out> sarcasm or are you serious benzrf ?
<benzrf> BP-out: im serious
<benzrf> use webrick or something
<BP-out> hmmm, thats an idea
<BP-out> im trying to run this on heroku
<benzrf> id use sinatra myself but w/e
Hobogrammer has joined #ruby
<benzrf> BP-out: how about
<benzrf> BP-out: run them as separate procs, then use 0mq or something to communicate between them
ukd1 has quit [Ping timeout: 255 seconds]
agrinb_ has joined #ruby
<The_NetZ> benzrf: then, no offense, I have no need of it right now.
trhodes_ has quit [Ping timeout: 255 seconds]
<benzrf> The_NetZ: =p
<The_NetZ> On that note; anyone care to suggest a good IDE for writing c++ ruby extensions in?
<BP-out> that looks very interesting
doodlehaus has quit [Remote host closed the connection]
<BP-out> is it possible to spawn two procs on a single heroku (free) instance?
<BP-out> like maybe call the bot script from the rails app througha route or something
fabrice31 has joined #ruby
chaos___________ has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
ghr has joined #ruby
r_rios has joined #ruby
<BP-out> Although I think maybe running sinatra from inside the bot script may be the best idea
nanoyak has quit [Quit: Computer has gone to sleep.]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
fabrice31 has quit [Ping timeout: 252 seconds]
pigzzcanfly has joined #ruby
meatherly has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
havenn has quit [Remote host closed the connection]
rahult has joined #ruby
ahuman has quit [Remote host closed the connection]
zcreative has quit [Quit: Computer has gone to sleep.]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
hooper has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
Lewix has joined #ruby
centrx has joined #ruby
chichou has joined #ruby
ukd1 has joined #ruby
ukd1 has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
ukd1 has joined #ruby
snuffeluffegus has joined #ruby
smathieu has joined #ruby
mway has quit [Quit: mway]
Celm has quit [Remote host closed the connection]
Celm has joined #ruby
binaryhat has joined #ruby
dx7_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chichou has quit [Read error: Connection reset by peer]
lukec has joined #ruby
chichou has joined #ruby
Akuma has quit [Quit: So long sukkas!]
_justin has joined #ruby
sensen has joined #ruby
oo_ has quit [Remote host closed the connection]
Vovko has joined #ruby
smathieu has quit [Ping timeout: 265 seconds]
Vovko has quit [Remote host closed the connection]
maroloccio has joined #ruby
dx7 has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
taf2 has quit [Quit: taf2]
oo_ has joined #ruby
keen_ has joined #ruby
Red_Onyx has quit [Quit: Leaving]
siwica has quit [Ping timeout: 252 seconds]
newUser1_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
newUser1234 has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
jaimef has quit [Excess Flood]
crystal77 has joined #ruby
locriani has joined #ruby
Cache_Money has joined #ruby
radic has quit [Ping timeout: 245 seconds]
rm___ has joined #ruby
subbyyy has joined #ruby
siwica has joined #ruby
rm___ is now known as Guest73959
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
gregf has joined #ruby
BP-out has quit [Quit: Page closed]
yeltzooo has quit [Ping timeout: 246 seconds]
george2 has joined #ruby
fflush has quit [Quit: fflush]
subbyyy_ has quit [Ping timeout: 246 seconds]
radic has joined #ruby
<mozzarella> guys
yeltzooo has joined #ruby
nari has joined #ruby
<benzrf> su mozzarella
<benzrf> *sup
Akuma has joined #ruby
* benzrf cleverly diverts attention from his attempt to log in as mozzarella
MartinJNash has quit [Remote host closed the connection]
beneggett has joined #ruby
<The_NetZ> hahah
jaimef has joined #ruby
<The_NetZ> hey, what do I need to compile a ruby gem under windows?
chris_thomson has quit [Quit: Zzz...]
sambao21 has joined #ruby
zcreative has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
<The_NetZ> as a test; not as in a packaged gem proper; I just need to be sure it compiles under windows properly.
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
<arubin> The_NetZ: I am not sure whether this is the right answer, but: http://rubyinstaller.org/add-ons/devkit/
fflush has joined #ruby
fflush has joined #ruby
fflush has quit [Changing host]
newUser1234 has quit [Remote host closed the connection]
<The_NetZ> arubin: ah, I think thats it
chuk_ has quit [Quit: This computer has gone to sleep]
thomasxie has joined #ruby
ukd1 has quit [Remote host closed the connection]
chris_thomson has joined #ruby
ukd1 has joined #ruby
Spami has joined #ruby
markisonfire has quit [Quit: markisonfire]
fflush has quit [Client Quit]
Spami has quit [Client Quit]
<mozzarella> is there an agreed on file hierarchy for ruby projects?
kaspergrubbe has quit [Remote host closed the connection]
<The_NetZ> mozzarella: depends, I suppose.
meatherly has quit [Remote host closed the connection]
aspires has joined #ruby
thomasxie has quit [Ping timeout: 264 seconds]
ukd1 has quit [Ping timeout: 264 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
centrx has quit [Quit: All this computer hacking is making me thirsty]
jorts has quit [Ping timeout: 264 seconds]
alexju has joined #ruby
luriv has quit [Ping timeout: 268 seconds]
_justin has quit [Quit: _justin]
crystal77 has quit [Quit: Computer has gone to sleep.]
boombadaroomba has quit [Remote host closed the connection]
thomasxie has joined #ruby
Lewix has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gancl has joined #ruby
tectonic has joined #ruby
Lewix has joined #ruby
<mozzarella> WHY am I getting this
<mozzarella> /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- minitest/unit (LoadError)
<mozzarella> ◕ ◡ ◔
<mozzarella> The_NetZ: what is it?
subbyyy has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
jamto11 has joined #ruby
<The_NetZ> mozzarella: dunno.
toastynerd has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<pontiki> bl00p
trhodes_ has joined #ruby
<arubin> mozzarella: There are several gems which will create a standard gem layout for you.
newUser1234 has joined #ruby
selina345 has quit []
<pontiki> mozzarella: there is at least a top-level hierarchy for ruby projects that end up as gems
<arubin> mozzarella: And Rails will create a standard layout for its projects (there is a lot of overlap between the two).
binaryhat has quit [Quit: Leaving]
carlyle has joined #ruby
<pontiki> if you look at http://guides.rubygems.org/ you can find out what is "standard"
aspires has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Ping timeout: 255 seconds]
dx7 has joined #ruby
luriv has joined #ruby
endash__ has quit [Quit: endash__]
carlyle has quit [Ping timeout: 265 seconds]
Vovko has joined #ruby
habanany has joined #ruby
dx7_ has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
Vovko_ has joined #ruby
Aquilo_ has joined #ruby
Aquilo_ is now known as Aquilo
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mozzarella> WHY am I getting this
<mozzarella> /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- minitest/unit (LoadError)
<mozzarella> when requiring 'test/unit'
Slavox|AFK is now known as Slavox
Vovko has quit [Ping timeout: 240 seconds]
juanmnl has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
<benzrf> godbye people
benzrf has quit [Quit: leaving]
chipotle has quit [Quit: cya]
CyborgCygnus has joined #ruby
asteros has joined #ruby
sambao21 has joined #ruby
dik_dak has quit [Quit: Leaving]
_5kg has quit [Read error: Connection reset by peer]
<mozzarella> guys wtf is minitest
<mozzarella> is test:;unit dead?
braincra- has quit [Quit: bye bye]
coderhs has quit [Ping timeout: 255 seconds]
kennym has joined #ruby
jason__ has quit [Remote host closed the connection]
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
jason__ has joined #ruby
eynj has joined #ruby
_5kg has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
mway has joined #ruby
tvw has joined #ruby
joonty has quit [Ping timeout: 268 seconds]
braincrash has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
jason__ has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
maletor has quit [Client Quit]
mary5030 has quit [Ping timeout: 252 seconds]
Soliah has quit [Quit: Soliah]
brianpWins has joined #ruby
andy__ has quit [Remote host closed the connection]
r_rios has quit [Ping timeout: 255 seconds]
Slavox is now known as Slavox|AFK
_justin has joined #ruby
joonty has joined #ruby
Guest32172 has joined #ruby
afex has joined #ruby
nouitfvf has quit [Read error: Connection reset by peer]
nouitfvf has joined #ruby
charliesome has joined #ruby
jorts has joined #ruby
newUser1234 has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
jlast has quit [Remote host closed the connection]
SCommette has joined #ruby
karmatr0n has joined #ruby
sdwrage has joined #ruby
nateberkopec has joined #ruby
bluOxigen has joined #ruby
Slavox|AFK is now known as Slavox
kitak has joined #ruby
nateberkopec has quit [Read error: No route to host]
JJMalina has joined #ruby
cover has quit [Remote host closed the connection]
kitak__ has quit [Ping timeout: 260 seconds]
mbuf has joined #ruby
<mbuf> is there an example gem where cucumber features are shipped, and can be tested after installation?
zorak_ has quit [Ping timeout: 265 seconds]
browndawg1 has joined #ruby
JJMalina has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
jorts has quit [Quit: jorts]
browndawg has quit [Ping timeout: 240 seconds]
volk_ has joined #ruby
yacks has joined #ruby
tesuji has joined #ruby
SCommette has quit [Quit: SCommette]
karmatr0n has quit [Remote host closed the connection]
afex has quit [Ping timeout: 265 seconds]
codeurge has joined #ruby
yekta has quit [Quit: yekta]
carlyle has joined #ruby
tjr9898 has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 245 seconds]
jameswla_ has joined #ruby
jameswla_ has quit [Max SendQ exceeded]
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
_justin has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
fabrice31 has joined #ruby
zorak_ has joined #ruby
SCommette has joined #ruby
rahult is now known as rahult_
sepp2k has quit [Quit: Leaving.]
CyborgCygnus has quit [Remote host closed the connection]
Guest73959 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
DEA7TH has joined #ruby
rm___ has joined #ruby
rm___ is now known as Guest33976
fabrice31 has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 268 seconds]
digifiv5e has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
jorts has joined #ruby
<mozzarella> help
robustus has quit [Ping timeout: 255 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest58121
pfg has joined #ruby
dseitz has joined #ruby
newUser1234 has joined #ruby
arquebus has joined #ruby
pigzzcanfly has joined #ruby
newUser1234 has quit [Remote host closed the connection]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
rahult_ is now known as rahult
browndawg1 has left #ruby [#ruby]
Deele has joined #ruby
jonmorehouse has quit [Ping timeout: 252 seconds]
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 246 seconds]
jorts has quit [Client Quit]
_justin has quit [Quit: _justin]
doodlehaus has joined #ruby
m104 has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
pen has joined #ruby
robustus|Off has joined #ruby
ghr has joined #ruby
gancl has quit [Remote host closed the connection]
Vovko_ has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 245 seconds]
cashnguns has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 246 seconds]
<mozzarella> GUYS
<The_NetZ> wat
<mozzarella> is test::unit dead?
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<The_NetZ> google it XD
<mozzarella> basically it's minitest now?
<The_NetZ> because if someone hasn't answered I don't think anyone knows here.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
m104 has quit [Quit: bye]
jameswlane has joined #ruby
hakunin has quit [Ping timeout: 264 seconds]
juanmnl has quit [Quit: My dingdong has gone to sleep. ZZZzzz…]
jameswlane has quit [Max SendQ exceeded]
jameswlane has joined #ruby
kkirr has quit [Ping timeout: 245 seconds]
juanmnl has joined #ruby
oo_ has quit [Remote host closed the connection]
havenwood has quit []
agrinb_ has quit [Remote host closed the connection]
budrose has joined #ruby
Bumptious has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
djbender has joined #ruby
mary5030 has joined #ruby
djbender has left #ruby [#ruby]
mostlybadfly has quit [Quit: Connection closed for inactivity]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
_justin has joined #ruby
mway has quit [Quit: mway]
mary5030 has quit [Ping timeout: 264 seconds]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
andy__ has joined #ruby
jonmorehouse has joined #ruby
karmatr0n has joined #ruby
tesuji has quit [Ping timeout: 252 seconds]
zorak_ has quit [Ping timeout: 255 seconds]
Bumptious has joined #ruby
carlyle has quit []
ukd1 has joined #ruby
tectonic has quit []
nateberkopec has joined #ruby
compleatang has quit [Ping timeout: 240 seconds]
pigzzcanfly has quit [Remote host closed the connection]
ahuman has joined #ruby
Vovko has joined #ruby
andy__ has quit [Ping timeout: 245 seconds]
compleatang has joined #ruby
tylersmith has quit [Remote host closed the connection]
mway has joined #ruby
tylersmith has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
_justin has quit [Quit: _justin]
jason_ has joined #ruby
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
funktor has joined #ruby
oo_ has joined #ruby
wallerdev has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
brunops has quit [Quit: leaving]
jason_ has quit [Ping timeout: 252 seconds]
Vovko has quit [Ping timeout: 268 seconds]
Lewix has quit [Remote host closed the connection]
arquebus has quit [Quit: Konversation terminated!]
oo_ has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zorak has joined #ruby
jamto11 has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
chichou has quit [Remote host closed the connection]
JordanJ2 has joined #ruby
Solnse has quit [Quit: Leaving.]
PragCypher has joined #ruby
oo_ has joined #ruby
kennym has quit [Quit: Leaving.]
<JordanJ2> Hello, i am trying to install eventmachine. I keep getting the following error: http://pastebin.com/ga9AQ2tj
SCommette has quit [Quit: SCommette]
zorak has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
<JordanJ2> Could someone tell me why?
jamto11 has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 246 seconds]
_justin has joined #ruby
_justin has quit [Client Quit]
sdwrage has joined #ruby
chris_thomson has quit [Quit: Zzz...]
<mozzarella> JordanJ2: which operating system are you using?
<showaz> JordanJ2: sudo apt-get install build-essential libopenssl-ruby
<showaz> JordanJ2: c++ compiler installed ?
budrose has quit []
subbyyy has joined #ruby
<showaz> JordanJ2: sudo apt-get install ruby1.9.1-dev
JasmeetQA has joined #ruby
SCommette has joined #ruby
s3ri0us_ has joined #ruby
SCommette has quit [Client Quit]
jameswlane has quit [Quit: Logging off]
quatron is now known as arfr
arfr is now known as quatron
hakunin has joined #ruby
oo_ has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #ruby
defuncprocess has joined #ruby
ukd1 has quit [Quit: Leaving...]
thomasxie has quit [Quit: Leaving.]
arietis has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
pigzzcanfly has joined #ruby
speakingcode has joined #ruby
robert_ has joined #ruby
volk_ has quit [Quit: volk_]
endash has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
tylersmith has joined #ruby
endash has joined #ruby
sdwrage has joined #ruby
sdwrage has quit [Remote host closed the connection]
kobain has quit []
fgo has joined #ruby
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
markisonfire has joined #ruby
agjacome has joined #ruby
davedev24 has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
manyrus has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
agrinb_ has joined #ruby
nateberkopec has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
IceDragon has quit [Quit: Space~~~]
brianpWins has quit [Quit: brianpWins]
manyrus has quit [Read error: No route to host]
Jon30 has quit [Ping timeout: 264 seconds]
twiceaday has quit [Ping timeout: 240 seconds]
twiceaday has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
horrorvacui has quit [Quit: Leaving]
krz has joined #ruby
brianpWins has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
PragCypher has quit [Quit: Leaving]
tagrudev has joined #ruby
Cache_Money has quit [Ping timeout: 252 seconds]
brianpWins has quit [Client Quit]
Vovko has joined #ruby
jzig has quit [Remote host closed the connection]
s2013 has quit [Quit: Leaving]
karmatr0n has joined #ruby
jzig has joined #ruby
jason_ has joined #ruby
phansch has joined #ruby
_5kg has quit [Quit: WeeChat 0.4.3]
_5kg has joined #ruby
agrinb_ has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
funktor has quit [Remote host closed the connection]
Vovko has quit [Ping timeout: 240 seconds]
pigzzcanfly has quit [Remote host closed the connection]
decoponio has joined #ruby
cj3kim has joined #ruby
pigzzcanfly has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
_5kg has quit [Quit: WeeChat 0.4.3]
sensen has joined #ruby
cj3kim has quit [Remote host closed the connection]
jason_ has quit [Ping timeout: 252 seconds]
_5kg has joined #ruby
_5kg has quit [Client Quit]
heftig has quit [Quit: Quitting]
cj3kim has joined #ruby
guai has joined #ruby
testcore has joined #ruby
Bumptious has joined #ruby
yfeldblum has joined #ruby
_5kg has joined #ruby
guai has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
locriani has quit [Quit: Leaving...]
nfk has joined #ruby
pfg has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
pfg has quit [Client Quit]
beneggett has joined #ruby
near77 has joined #ruby
<near77> hi
doodlehaus has joined #ruby
<near77> anyone knows how I can create a persistent connection to an external mysql database in rails?
budrose has joined #ruby
ndrei has joined #ruby
<Hanmac> near77: #RubyOnRails
nisstyre has quit [Quit: WeeChat 0.4.3]
<near77> thanks
noop has joined #ruby
The_NetZ has quit [Quit: leaving]
doodlehaus has quit [Ping timeout: 265 seconds]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
rahult is now known as rahult_
bal1 has joined #ruby
centrx has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahult_ is now known as rahult
claymore has joined #ruby
nisstyre has joined #ruby
_justin has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
tylersmith has joined #ruby
cj3kim has quit [Remote host closed the connection]
chichou has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
budrose has quit []
jack_rabbit has joined #ruby
Shidash has joined #ruby
toastynerd has joined #ruby
gaussblurinc has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
badhatter has joined #ruby
<gaussblurinc> hi! does anybody parse macrodefinitions like #define (C header)? I don't want invent wheel, so, any module, please
<Hanmac> gaussblurinc: what specially are you trying todo?
nateberkopec has joined #ruby
<gaussblurinc> Hanmac: I want to parse several C headers in project and collect them in csv file
apeiros has quit [Remote host closed the connection]
hakunin has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
LekeFly has joined #ruby
<gaussblurinc> Hanmac: in general, there are several projects with identical structure. They all have C headers, which I want to parse for macro defines and collect definitions in csv (or db, not necessary here)
cj3kim has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
cj3kim has quit [Read error: Connection reset by peer]
LekeFly has quit [Client Quit]
anarang has joined #ruby
Guest32172 has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
toastynerd has quit [Remote host closed the connection]
apeiros has quit [Read error: Operation timed out]
dagobah has joined #ruby
<Hanmac> gaussblurinc: soething like that: File.foreach(path).with_object([]) {|l,a| /#define (?<key>\w+) ?(?<value>\S+)?/ =~ l ? a << [key,value] : nil }
dukz has joined #ruby
larissa has quit [Quit: Leaving]
<Hanmac> gaussblurinc: sample:
<Hanmac> >> " #define ABC\n#define XYZ 123 \n".each_line.with_object([]) {|l,a| /#define (?<key>\w+) ?(?<value>\S+)?/ =~ l ? a << [key,value] : nil }
<eval-in> Hanmac => [["ABC", nil], ["XYZ", "123"]] (https://eval.in/130467)
<gaussblurinc> Hanmac: so, wheel. what about #undef, #ifndef #ifdef ?
agrinb has joined #ruby
<Hanmac> >> " #ifdef xyz\n #define ABC\n#define XYZ 123 \n#endif ".each_line.with_object([]) {|l,a| /#(?<type>\w+) (?<key>\w+) ?(?<value>\S+)?/ =~ l ? a << [type,key,value] : nil }
<eval-in> Hanmac => [["ifdef", "xyz", nil], ["define", "ABC", nil], ["define", "XYZ", "123"]] (https://eval.in/130468)
<Hanmac> gaussblurinc: or try coderay ... its for syntaxhighlight but it also has a code parser
carif has joined #ruby
near77 has quit [Quit: Page closed]
jzig has joined #ruby
eynj has quit [Quit: Leaving.]
einarj has joined #ruby
<gaussblurinc> Hanmac: ok, will try Perl CPAN for that goal. I search something like this: https://metacpan.org/pod/Convert::Binary::C
DouweM has quit [Ping timeout: 240 seconds]
nomenkun_ has joined #ruby
_5kg has quit [Remote host closed the connection]
sigurding has joined #ruby
hermanmunster has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
carif has quit [Remote host closed the connection]
hermanmunster has joined #ruby
nomenku__ has joined #ruby
_Andres has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
hakunin has joined #ruby
mr_snowf1ake has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
karmatr0n has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 240 seconds]
nomenkun_ has quit [Ping timeout: 268 seconds]
karmatr0n has joined #ruby
fijimunkii has quit [Ping timeout: 255 seconds]
fijimunkii has joined #ruby
nomenku__ has quit [Ping timeout: 246 seconds]
klaut has joined #ruby
karmatr0_ has joined #ruby
chipotle has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
funktor has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
toastynerd has quit [Client Quit]
juanmnl has quit [Quit: My dingdong has gone to sleep. ZZZzzz…]
centrx has quit [Quit: All this computer hacking is making me thirsty]
userx has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
funktor has quit [Ping timeout: 255 seconds]
monkegjinni has joined #ruby
fabrice31 has joined #ruby
aganov has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
moeSeth_ has joined #ruby
_justin has quit [Quit: _justin]
asteros has quit [Quit: asteros]
rylev has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
WJB has joined #ruby
rahult has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
andikr has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
phansch has quit [Quit: WeeChat 0.4.2]
agrinb has quit [Ping timeout: 252 seconds]
luriv has quit [Read error: Operation timed out]
hiall has joined #ruby
kitak has quit [Read error: Connection reset by peer]
bogeyd6 has joined #ruby
samlt has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Celm has quit [Remote host closed the connection]
Biohazard has quit [Ping timeout: 264 seconds]
oso|away has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
slawrence00 has quit [Ping timeout: 265 seconds]
Guest33976 has quit [Remote host closed the connection]
relix has joined #ruby
hiall has quit [Ping timeout: 246 seconds]
rm_ has joined #ruby
Biohazard has joined #ruby
lkba has joined #ruby
oso|away has joined #ruby
northfurr has quit []
oso|away is now known as oso96_2000
spicerack has joined #ruby
NovapaX has joined #ruby
qba73 has joined #ruby
mway has quit [Quit: mway]
monkegjinni has joined #ruby
LekeFly has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
jprovazn has joined #ruby
Bumptious has quit [Remote host closed the connection]
jarray52 has left #ruby [#ruby]
Bumptious has joined #ruby
spicerack has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
_tpavel has quit [Read error: Connection reset by peer]
mrnugget has joined #ruby
_tpavel has joined #ruby
einarj has quit []
lele has quit [Remote host closed the connection]
nateberkopec has joined #ruby
lele has joined #ruby
einarj has joined #ruby
mrnugget has quit [Client Quit]
apeiros has joined #ruby
rahult has joined #ruby
LiohAu has joined #ruby
blackmesa has joined #ruby
mengu has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
_tpavel has quit [Quit: Leaving]
nateberkopec has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
CyborgCygnus has joined #ruby
hiall has joined #ruby
kil0byte has joined #ruby
oo_ has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
sk87 has joined #ruby
pfg has joined #ruby
relix has joined #ruby
JohnBat26 has joined #ruby
Vovko has joined #ruby
pfg has quit [Client Quit]
cj3kim has quit [Remote host closed the connection]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davout has joined #ruby
nism has joined #ruby
LekeFly has joined #ruby
Vovko has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
hiall has quit [Quit: hiall]
_tpavel has joined #ruby
Photism_ has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 240 seconds]
skammer has joined #ruby
nism has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
bahar has quit [Ping timeout: 265 seconds]
kukyakya has quit [Remote host closed the connection]
nism has joined #ruby
agjacome has quit [Quit: leaving]
sn0wb1rd has quit [Quit: See ya]
_tpavel has quit [Quit: Leaving]
rdark has joined #ruby
bahar has joined #ruby
dumdedum has joined #ruby
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon has joined #ruby
doodlehaus has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
sn0wb1rd has joined #ruby
oo_ has quit [Remote host closed the connection]
zigomir has joined #ruby
Xeago has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
<shevy> long live ruby!
oo_ has joined #ruby
doodlehaus has quit [Ping timeout: 268 seconds]
banister_ has joined #ruby
bahar has joined #ruby
nvrch has joined #ruby
banister_ has quit [Max SendQ exceeded]
jonmorehouse has joined #ruby
agrinb_ has joined #ruby
banister_ has joined #ruby
ghr has joined #ruby
ikaros has joined #ruby
carraroj has joined #ruby
ndrei has joined #ruby
banister has quit [Ping timeout: 240 seconds]
dev1x has joined #ruby
olivier_bK has joined #ruby
timonv has joined #ruby
roolo has joined #ruby
obs has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
dyoko has joined #ruby
evenix has quit [Remote host closed the connection]
<gischy> o/
cj3kim has joined #ruby
ndrei_ has joined #ruby
evenix has joined #ruby
<shevy> long live gischy!
dkamioka has joined #ruby
<gischy> you too shevy
Celm has joined #ruby
luckyruby has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
<certainty> i'm done with ruby. I'll shift to HHVM + Hack
evenix has quit [Ping timeout: 252 seconds]
<shevy> nah
<certainty> ok first of april is over
_justin has quit [Quit: _justin]
Celm has quit [Ping timeout: 265 seconds]
karmatr0_ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
<shevy> nah
<shevy> every day is now first april day
yacks has quit [Quit: Leaving]
karmatr0n has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
elaptics`away is now known as elaptics
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
CaptainJet has quit []
fudanchii has quit [Read error: Operation timed out]
viscera has joined #ruby
heftig has joined #ruby
Azure has quit [Read error: Operation timed out]
klaut_ has joined #ruby
Azure has joined #ruby
_justin has joined #ruby
fudanchii has joined #ruby
nateberkopec has joined #ruby
klaut has quit [Ping timeout: 252 seconds]
hiall has joined #ruby
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
dkamioka has quit [Remote host closed the connection]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
davout has quit [Ping timeout: 255 seconds]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
St_Marx has quit [Ping timeout: 245 seconds]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
francisfish has joined #ruby
dkamioka_ has joined #ruby
pfg has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
chuk has joined #ruby
monkegjinni has quit [Remote host closed the connection]
St_Marx has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
St_Marx has quit [Client Quit]
fgo has quit [Remote host closed the connection]
Xeago has joined #ruby
railzForDaiz has joined #ruby
St_Marx has joined #ruby
Shidash has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
<railzForDaiz> say hello
<railzForDaiz> hello
Vovko has joined #ruby
AlSquire has joined #ruby
bahar has joined #ruby
chuk has quit [Quit: This computer has gone to sleep]
St_Marx has quit [Remote host closed the connection]
agrinb_ has quit [Ping timeout: 245 seconds]
St_Marx has joined #ruby
shabgard has joined #ruby
wallerdev has quit [Quit: wallerdev]
popl has joined #ruby
popl has joined #ruby
tesuji has joined #ruby
<railzForDaiz> is anybody home ?
Vovko has quit [Ping timeout: 245 seconds]
<apeiros> no
<apeiros> anybody is at work
<tesuji> i thought anybody quit
<railzForDaiz> my first time here just started learning ruby
shabgard has quit [Read error: Connection reset by peer]
<railzForDaiz> got a question
<railzForDaiz> does truncate only work for files
<railzForDaiz> ?
<apeiros> depends
<apeiros> you can also truncate a numeric
<apeiros> or a table
francisfish has quit [Remote host closed the connection]
<apeiros> and probably a large number of other things.
<apeiros> but this question doesn't seem all useful to me.
<apeiros> what problem are you trying to solve? or why do you ask this?
kith has joined #ruby
<railzForDaiz> target = File.open(filename,'w')
<railzForDaiz> target.truncate(target.size)
<railzForDaiz> idea is to empty the file and add text form another file
<apeiros> but truncate(target.size) won't empty it
<railzForDaiz> but is it possible to remove a certain portion of the text from target
<apeiros> truncate(0) will
<railzForDaiz> ahhhh..
jamto11 has joined #ruby
<apeiros> "file.truncate(integer) -- Truncates file to at most integer bytes."
<apeiros> straight from the docs
<apeiros> also, if you open a file with 'w', the cursor position will be at 0
dyoko has quit [Quit: Leaving.]
<railzForDaiz> ahhh okokokok
<apeiros> so if your new data is at least as long as the data already in the file, you don't need to truncate
<railzForDaiz> then we start writing form the beginning of the file
<apeiros> if it's shorter however, then you should truncate
<apeiros> alternatively, just use File.write
timonv has quit [Remote host closed the connection]
<apeiros> hm, that said, I'm actually not sure File::write truncates… lets see
yacks has joined #ruby
<railzForDaiz> :)
cj3kim_ has joined #ruby
skaflem has joined #ruby
<apeiros> yupp, File::write truncates.
kevinykchan has quit [Quit: Computer has gone to sleep.]
rahult is now known as rahult_
<apeiros> so if you just want to replace an existing file with new content, and your new content is contained in a string in full, then just use File::write
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<railzForDaiz> alright will give it a go .. thanks ..
<railzForDaiz> I'm reading Learn Ruby the Hard Way
workmad3 has joined #ruby
<apeiros> oh, opening with 'w' truncates too
<apeiros> good to know
jamto11 has quit [Ping timeout: 240 seconds]
ndrei_ has quit [Ping timeout: 240 seconds]
<apeiros> goes to show how little I work with raw files…
<railzForDaiz> hehe
<railzForDaiz> also new to IRC
<railzForDaiz> i thought its best i come to the source of knowledge
<railzForDaiz> lol
<railzForDaiz> anytips?
cj3kim has quit [Ping timeout: 268 seconds]
<railzForDaiz> and what do you work on your specialty
<railzForDaiz> ?
deadlock has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
CyborgCygnus has quit [Remote host closed the connection]
<apeiros> I don't have any tips. don't understand the second question.
markisonfire has quit [Quit: markisonfire]
JasmeetQA has quit [Read error: Connection reset by peer]
<certainty> railzForDaiz: apeiros' specialty is it to be a ruby guru and thus generally giving competent answers
<apeiros> except when I utterly fail to remember basic IO method behaviors :D
<railzForDaiz> hehehe
<workmad3> apeiros: that's not ruby knowledge though
<workmad3> apeiros: that's POSIX behaviour for 'w' vs 'a' file modes ;)
<apeiros> it's still part of ruby core
<certainty> then workmad3, the meta guru, comes into play and helps out with those parts
<railzForDaiz> let me step outta this one
<railzForDaiz> :P
* apeiros is still curious what that 3 is standing for in workmad3's nick
<workmad3> apeiros: last digit of the year I started uni...
<apeiros> did you kill your two predecessors?
<certainty> 1803
<workmad3> certainty: you're off by about 2 centuries there ;)
<apeiros> and there I thought you were born 2003 :-p
diegoviola has quit [Read error: Connection reset by peer]
<certainty> workmad3: you can't trick me. I know you know how to use punchcards
moeSeth_ has quit [Quit: Connection closed for inactivity]
Zai00 has joined #ruby
ephemerian has joined #ruby
peterellisjones has joined #ruby
<workmad3> certainty: nah... but if I needed to, I could probably get my mum to teach me
<certainty> heh
<certainty> not the time for mum jokes, yet
<certainty> must resist
noop has quit [Ping timeout: 268 seconds]
<workmad3> :D
phansch has joined #ruby
<certainty> railzForDaiz: tips for IRC. If you happen to hang around in different ruby related channels, it's good behavior to avoid cross-posts. And if you do, probably because one channel is utterly silent, then at least announce it as a cross-post
dweeb_ has joined #ruby
<Xeago> just lurk
<Xeago> I've learned so much that way
agrinb has joined #ruby
DaniG2k has joined #ruby
<Xeago> if you are interested, stay there, don't just go after your problems
<railzForDaiz> what do you mean cross post
fgo has joined #ruby
jonmorehouse has quit [Ping timeout: 240 seconds]
marr has joined #ruby
<certainty> railzForDaiz: ask the same question in different channels
francisfish has joined #ruby
<railzForDaiz> okok
<certainty> http://www.more-magic.net/posts/internals-gc.html for those of you, who are interested in garbage collectors
<railzForDaiz> nice tip
fgo_ has joined #ruby
ineb has joined #ruby
jonmorehouse has joined #ruby
rahult has joined #ruby
poikon has quit []
andrewlio has joined #ruby
fgo has quit [Ping timeout: 268 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesuji has quit [Ping timeout: 240 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo_ has quit [Ping timeout: 268 seconds]
noop has joined #ruby
peterellisjones has quit [Quit: Leaving.]
timonv has joined #ruby
peterellisjones has joined #ruby
LekeFly has joined #ruby
dfranciosi has joined #ruby
Speed has joined #ruby
St_Marx has quit [Ping timeout: 245 seconds]
showaz has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
_tpavel has joined #ruby
bcc_ has joined #ruby
DouweM has joined #ruby
ndrei has joined #ruby
bcc_ has left #ruby [#ruby]
red234324 has joined #ruby
mengu has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
nateberkopec has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has joined #ruby
jollyy has joined #ruby
luriv has joined #ruby
canton7-mac has joined #ruby
poikon has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 252 seconds]
viscera has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
hermanmunster has joined #ruby
Xeago has quit [Remote host closed the connection]
bahar has quit [Ping timeout: 264 seconds]
bahar has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
lolmaus_ has joined #ruby
Vovko has joined #ruby
St_Marx has joined #ruby
nism has quit [Quit: This computer has gone to sleep]
francisfish has quit [Remote host closed the connection]
Vovko has quit [Ping timeout: 245 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
kevinykchan has joined #ruby
yfeldblum has quit [Remote host closed the connection]
greenarrow has joined #ruby
Speed has quit [Read error: Operation timed out]
jonmorehouse has quit [Ping timeout: 246 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Quit: WeeChat 0.4.3]
chrisseaton has quit []
nari has quit [Ping timeout: 245 seconds]
viscera has joined #ruby
relix has joined #ruby
fabrice31 has quit [Remote host closed the connection]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has quit [Client Quit]
kennym has joined #ruby
nvrch has quit [Quit: nvrch]
einarj has quit []
doodlehaus has joined #ruby
chuk has joined #ruby
nvrch has joined #ruby
chuk has left #ruby [#ruby]
bahar has quit [Ping timeout: 268 seconds]
doodlehaus has quit [Ping timeout: 265 seconds]
rahult is now known as rahult_
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgo has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit []
noop has quit [Ping timeout: 255 seconds]
RaptorJesus has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
Celm has joined #ruby
fgo has quit [Ping timeout: 268 seconds]
mengu has joined #ruby
nari has joined #ruby
freggles has quit [Remote host closed the connection]
thomasxie has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
Celm has quit [Ping timeout: 240 seconds]
jack_rabbit has quit [Ping timeout: 268 seconds]
kennym has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
dyoko has joined #ruby
noop has joined #ruby
freggles has joined #ruby
freggles has quit [Changing host]
freggles has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
alexju has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
keen_ has left #ruby [#ruby]
chrisseaton has joined #ruby
tesuji has joined #ruby
fabrice31 has joined #ruby
arietis has joined #ruby
bambuka has joined #ruby
_justin has quit [Quit: _justin]
nateberkopec has joined #ruby
roolo has quit [Quit: Leaving...]
maasha has joined #ruby
agrinb has joined #ruby
banister has joined #ruby
mmochan_ has joined #ruby
nvrch has quit [Quit: nvrch]
nateberkopec has quit [Ping timeout: 265 seconds]
jason_ has joined #ruby
WillAmes has joined #ruby
nism has joined #ruby
jollyy has quit [Quit: jollyy]
karmatr0n has joined #ruby
narcan has joined #ruby
bhaak has quit [Ping timeout: 255 seconds]
anon667 has quit [Ping timeout: 255 seconds]
chichou has quit [Remote host closed the connection]
kies has quit [Quit: baaaaiiiiiiiiiii~]
bahar has quit [Ping timeout: 265 seconds]
jollyy has joined #ruby
mostlybadfly has joined #ruby
Vovko has joined #ruby
karmatr0n has quit [Ping timeout: 268 seconds]
jollyy has quit [Client Quit]
bahar has joined #ruby
CyborgCygnus has joined #ruby
jason_ has quit [Ping timeout: 245 seconds]
Vovko has quit [Ping timeout: 255 seconds]
nones has joined #ruby
carraroj has quit [Read error: Operation timed out]
Xeago has joined #ruby
blackmesa has joined #ruby
deadlock has quit [Quit: fuck off]
<nones> hi, I need to detect script path, what works better: Dir.pwd or __dir__?
<canton7-mac> they show different things. Dir.pwd is the current working directory, __dir__ is the directory in which the script file is located
<canton7-mac> so if I do `cd somefolder; ruby somesubfolder/script.rb`, Dir.pwd shows somefolder and __dir__ shows somefolder/somesubfolder
roolo has joined #ruby
<nones> canton7-mac: thanks!
jamto11 has joined #ruby
yfeldblum has joined #ruby
jollyy has joined #ruby
kies has joined #ruby
jlebrech has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
jollyy has quit [Read error: Connection reset by peer]
quatron is now known as arfr
jollyy has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
_justin has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
Speed has joined #ruby
<atmosx> rvm compilation on rpi takes a lifetime
arfr is now known as quatron
sigurding has quit [Quit: sigurding]
browndawg has joined #ruby
quatron is now known as arfr
rahult has joined #ruby
lushious has joined #ruby
casheew has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
bal1 has quit [Quit: bal1]
<lushious> Can anyone pinpoint why this build of Ruby is failing for 2.0.0-dev using rbenv + ruby-build: http://hastebin.com/pesaloxafa.coffee
evenix has joined #ruby
bal1 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gaussblurinc has quit [Quit: Leaving.]
arfr is now known as quatron
agrinb has quit [Ping timeout: 246 seconds]
doodlehaus has joined #ruby
chipotle has quit [Quit: cya]
fijimunkii has quit [Ping timeout: 252 seconds]
chrisseaton has quit []
evenix has quit [Ping timeout: 268 seconds]
tsunamie has quit [Max SendQ exceeded]
rahult has quit [Ping timeout: 268 seconds]
tsunamie has joined #ruby
fflush has joined #ruby
_justin has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 255 seconds]
Xiti has quit [Ping timeout: 240 seconds]
hooper has joined #ruby
Xeago has joined #ruby
fgo has joined #ruby
rahult has joined #ruby
kil0byte has joined #ruby
quatron is now known as arfr
skammer has joined #ruby
grayWolf has joined #ruby
peterellisjones has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 264 seconds]
Celm has joined #ruby
timonv_ has joined #ruby
nemesit|znc has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 252 seconds]
peterellisjones has joined #ruby
arfr is now known as quatron
Xiti has joined #ruby
Speed has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
nemesit|znc has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
LekeFly has joined #ruby
sensen has quit [Ping timeout: 240 seconds]
quatron is now known as C3PO
ndrei has joined #ruby
C3PO is now known as Guest3530
Guest3530 has left #ruby [#ruby]
<atmosx> In capistrano context, what does 'staging' mean?
<atmosx> I'm configuring production.rb and there's a staging.rb there too.
<atmosx> ah okya got it from the docs
robde has joined #ruby
flowerpot has joined #ruby
grayWolf has quit [Ping timeout: 255 seconds]
simono has joined #ruby
luriv has quit [Ping timeout: 246 seconds]
sqwirl has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
ndrei has joined #ruby
<shevy> whatcha coding now atmosx :)
<shevy> you ought to do some screenshots!
viscera has quit [Quit: viscera]
r_rios has joined #ruby
simono has quit [Quit: Textual IRC Client: www.textualapp.com]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
carraroj has joined #ruby
fflush has quit [Quit: fflush]
DEA7TH has quit [Ping timeout: 255 seconds]
<nones> why ruby doesn't see save method? https://codeo.me/4mx
monkegjinni has joined #ruby
relix has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
<banister> nones cos you're mxing up class level scope and instance scope
fflush has joined #ruby
fflush has joined #ruby
fflush has quit [Changing host]
<matti> shevy: Ahoy sailor!
CyborgCygnus has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
popl has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Read error: Connection reset by peer]
<banister> nones https://codeo.me/4mz
simono has joined #ruby
RowdyChild|Away is now known as RowdyChildren
<nones> banister: oh, really changing to "self.save" works, but how to make this method private
<banister> nones read a goddamn book :)
Seldan has joined #ruby
jollyy has quit [Quit: jollyy]
okdas_ has joined #ruby
<matti> +1
<matti> banister speaks the truth!
noctua has joined #ruby
monsieur1 has joined #ruby
<banister> nones https://codeo.me/4mz
lkba has joined #ruby
jollyy has joined #ruby
Vovko has joined #ruby
<nones> banister: thanks a lot! I'll listen your advice ;)
yalue has joined #ruby
chrisseaton has joined #ruby
monsieurp has quit [Ping timeout: 240 seconds]
okdas has quit [Ping timeout: 255 seconds]
<fflush> bonjou
<fflush> bonjour
Roa has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby
carraroj has quit [Ping timeout: 264 seconds]
<shevy> bonjours
monkegjinni has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 255 seconds]
poikon has quit [Remote host closed the connection]
<matti> Cheese.
workmad3 has joined #ruby
monkegjinni has joined #ruby
Vovko has quit [Ping timeout: 268 seconds]
<banister> wookiehangover ping
LiohAu has quit [Quit: LiohAu]
francisfish has quit [Ping timeout: 265 seconds]
Seldan has quit [Quit: leaving]
gaussblurinc has joined #ruby
jkamenik has joined #ruby
yfeldblum has joined #ruby
akemrir has joined #ruby
Roa has joined #ruby
monsieur1 is now known as monsieurp
banister is now known as banisterfiend
jzig has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemonsparrow has joined #ruby
railzForDaiz has quit [Ping timeout: 240 seconds]
peterellisjones has quit [Quit: Leaving.]
meatherly has joined #ruby
mbuf has quit [Quit: Leaving]
luriv has joined #ruby
nateberkopec has joined #ruby
railzForDaiz has joined #ruby
halfie has left #ruby [#ruby]
postmodern has quit [Quit: Leaving]
rylev has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 255 seconds]
dfranciosi has quit [Remote host closed the connection]
eka has joined #ruby
ndrei has joined #ruby
dfranciosi has joined #ruby
deepy has quit [Ping timeout: 252 seconds]
rahult is now known as rahult_
agrinb has joined #ruby
zorak has joined #ruby
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deepy has joined #ruby
deepy is now known as Guest47341
kaspergrubbe has joined #ruby
jprovazn has quit [Quit: Leaving]
kennym has joined #ruby
rylev has joined #ruby
flowerpot has quit [Quit: leaving]
nomenkun has quit [Read error: Connection reset by peer]
LiohAu has joined #ruby
nomenkun has joined #ruby
sambao21 has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
YellowSun has joined #ruby
dweeb_ has joined #ruby
<YellowSun> hi :)
maximski has joined #ruby
<YellowSun> first time here
<workmad3> YellowSun: hihi
doodlehaus has quit [Remote host closed the connection]
<YellowSun> workmad3: hello :)
<workmad3> or ni hao, if you prefer :)
<YellowSun> workmad3: oww is this chinese?
ctp has joined #ruby
<workmad3> no, just some people like that as a greeting :)
<YellowSun> owww cool
<YellowSun> i'm pretty new to ruby, but like it alot
<YellowSun> ever used shoes?
hooper has joined #ruby
carraroj has joined #ruby
poikon has joined #ruby
dawkirst_ has quit [Quit: Leaving]
dawkirst_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
Shidash has quit [Ping timeout: 268 seconds]
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #ruby
<YellowSun> any dutch in here?
hooper has quit [Ping timeout: 252 seconds]
rylev has quit [Remote host closed the connection]
<YellowSun> does anybody know Ruby Shoes?
<tobiasvl> nobody knows shoes
rahult has joined #ruby
<YellowSun> tobias! is that you pragtob?
<tobiasvl> no sorry
_Andres has quit [Read error: Connection reset by peer]
<YellowSun> do you use it?
<atmosx> watching capistrano pushing a project for the first time is awesome heh I like the screen colors
<tobiasvl> no :( "nobody knows shoes" was just a reference to http://cloud.github.com/downloads/shoes/shoes/nks.pdf
<atmosx> I know Ruby Shoes
<atmosx> but I never used it
<tobiasvl> since you asked if anybody knows shoes
<YellowSun> tobiasvl: lol i see :)
<YellowSun> it's the reason i;m into programming
dawkirst has quit [Disconnected by services]
<atmosx> I'm still using a script to download a podcast... that should really get up with the times and become more dry also use threads becuase it's way too slow
mark_locklear has joined #ruby
* atmosx lazy ass
dawkirst has joined #ruby
tjbiddle has joined #ruby
<YellowSun> atmosx: how do you keep track of the threads
Martxel has joined #ruby
<atmosx> YellowSun: I have no idea, never wrote anything with threads, but this is a small script.. oh no wait.. I wrote a TCPServer. There's a keyword.
<atmosx> can't recall right now, but I was able to do that... I must have the code somewhere...
<YellowSun> atmosx: ah cool i also wrote a tcpserver
<shevy> atmosx the simplest way to get started via threads is to download several files in parallel via open-uri
dawkirst has quit [Disconnected by services]
<atmosx> shevy: exactly, the way this script works is trying several urls because the admin that uploades the podcast gives all kinds of filenames... it's insane
dawkirst has joined #ruby
dawkirst_ has quit [Quit: Leaving]
dawkirst_ has joined #ruby
<atmosx> I mean the Flowerplayer (flash shitty player) most of the times is not able to find the file :-P you need to view-source and grab the mp3... but there is a sort of consistency in the filename, so I made a pool of possible names and I iterate through them.
<YellowSun> you can do something like @thread1 = Thread.new do .. end and then @thread1.exit i think
<atmosx> using wget
<atmosx> YellowSun: yeah or use fibers?!
dawkirst_ has quit [Remote host closed the connection]
<YellowSun> atmosx: fibers?
dawkirst has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
<YellowSun> are they the same as threads?
LekeFly has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
meatherly has quit [Remote host closed the connection]
<atmosx> kinda
meatherly has joined #ruby
<YellowSun> is there a security risk in using @@ alot?
<YellowSun> because i like to use it quite frequently
<atmosx> YellowSun: not sure, I never do.
<atmosx> YellowSun: and IIRC I don't know many people who do, except from the case where you wanna keep track of classes being created for some reason...
<atmosx> YellowSun: shevy might use it
kukyakya has joined #ruby
flowerpot has joined #ruby
Martxel has quit [Ping timeout: 245 seconds]
<YellowSun> because i like it, when i can get to a variable everywhere in my code
<jmaister> all variables should be global always
peterellisjones has joined #ruby
<jmaister> best coding paradigm
<atmosx> YellowSun: To tell you the truth, I don't feel like I have mastered inheritance all that well. I write web-applications lately and everything is already setup for me in a way that I can access modules and classes but there are things that I don't understand in depth :-/
CaptainKnots has joined #ruby
<YellowSun> i think of them as a room within a room
<YellowSun> some can go to every door, some don't
sski has joined #ruby
<shevy> atmosx nope, I dont use @@ ever
<atmosx> neither do I actually
<YellowSun> so people prefer to use $ above @@
meatherly has quit [Ping timeout: 245 seconds]
<atmosx> I used it only on a book example to keep track of how many instances of a class were created iirc
<crome> YellowSun: they are not the same, really.
agrinb has quit [Ping timeout: 240 seconds]
<YellowSun> crome: yeah one is global the other has a different scope
lolmaus_ has quit [Read error: Connection reset by peer]
<atmosx> YellowSun: You can't invoke $var from another class...
red234324 has quit [Quit: Leaving]
lolmaus has joined #ruby
<YellowSun> atmosx: ow, i don't use it that much, so have to test with it alot :)
sk87 has joined #ruby
<shevy> YellowSun I dont think that this is logical
<YellowSun> shevy: what is ?
<shevy> people could equally dislike $ and @@
<shevy> you can also abuse constants as $
nones has quit [Quit: Moonlight and vodka, takes me away...]
<shevy> FOO = []; FOO << 'hey there'
gilcosson has joined #ruby
<YellowSun> shevy: for me that would me somewhat tricky
<YellowSun> and confusing
compleatang has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<shevy> hehe
<YellowSun> in ruby shoes i don't know a way to make classes, but it does accept methods
compleatang has joined #ruby
<YellowSun> so i have been doing methods alot, instead of classes, works for me :)
kaspergr_ has joined #ruby
coreysmith has joined #ruby
<coreysmith> test
trhodes_ has joined #ruby
rmorello has joined #ruby
RowdyChildren is now known as RowdyChild|Away
vt102 has quit [Ping timeout: 245 seconds]
gilcosson has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
<YellowSun> i'm waiting for the first game engine to come out in pure ruby :) would be cool
jollyy has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 255 seconds]
<coreysmith> What well known apps have been made in ruby
<shevy> there are not that many ruby hackers YellowSun
karmatr0n has joined #ruby
<shevy> and from that pool available, not that many write games in ruby
fannye has joined #ruby
<shevy> and those who do usually stick to already existing solutions like gosu/gamebox
<banisterfiend> YellowSun there's no real way it could ever be 'pure ruby'
<YellowSun> banisterfiend: never say enever
<banisterfiend> YellowSun you need to write bindings for opengl etc
<banisterfiend> YellowSun beacues all the technologies you'd awnt to use are written in C/C++ :)
<Hanmac> shevy Bug des Tages: Ein Debian-Paket baut nicht, wenn es der letzte Tag des Monats ist => https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743238
<shevy> lol
<YellowSun> banisterfiend: if somehow, in the future ruby could be somewhat as fast, it can be done
<shevy> could be an early april joke though
<YellowSun> the chance is unlikely but it's possible
<banisterfiend> YellowSun How would you bind to a graphics lib?
<TheLarkInn1> Tis a shame, I work in Obj-C when not doing ruby, and I wish that the simplistic nature could be combined with the power tools of Xcode (and not in a MacRuby CocoaRuby hack way)
<YellowSun> banisterfiend: the binder is already written to use ruby syntax for its operations
<banisterfiend> YellowSun what does that even mean? :)
<YellowSun> that you can speak to opengl with ruby
<YellowSun> it's not that hard to imagine right
Vovko has joined #ruby
<banisterfiend> YellowSun opengl is written in C/C++. If you awnt to use it you have to write a conversion layer between C/C++ and Ruby, you can't do this without writing C
<TheLarkInn1> Ruby should probably switch to Automatic Reference counting instead of GC.
<YellowSun> banisterfiend: i know but once that wrapper is good enough, you can write pure ruby
fijimunkii has joined #ruby
<banisterfiend> YellowSun so in what sense is it 'pure ruby' ? at some point somewhere you're writing C
karmatr0n has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
<TheLarkInn1> well I hear that eventually ruby will be written in ruby and not c anymore
<YellowSun> banisterfiend: if someone writes the wrapper and the rest uses it in pure ruby
<YellowSun> thats what i mean
johnhamelink has joined #ruby
<banisterfiend> YellowSun what's the difference between the opengl wrapper being written in C and the game library itself wrapping the opengl wrapper in C ? thats what gosu does
<YellowSun> banisterfiend: syntax?
<banisterfiend> YellowSun but all that is invisible to the person actually writing the game
<banisterfiend> YellowSun since the C layer is below the level the game programming is working at
rylev has joined #ruby
ayaz has joined #ruby
nism has quit [Quit: Leaving]
Vovko has quit [Ping timeout: 240 seconds]
<YellowSun> banisterfiend: ok lets say someone designes a wrapper that is close enough to pure ruby, could that be possible
bambuka has quit [Quit: Saliendo]
<YellowSun> for someone that only knows ruby to program in that game engine and it auto translates to C or something
<atmosx> When I add a file to .gitignore it is ignored from next commit instantly?
<canton7-mac> if it isn't tracked by git, it will be ignored instantly
<canton7-mac> if it is tracked by git, it won't be ignored
browndawg has joined #ruby
kitak has quit [Remote host closed the connection]
<atmosx> canton7-mac: and how can I tell git to ignore it, if it's tracked?
<atmosx> canton7-mac: remove it from the dir, commit and add it?
mway has joined #ruby
dennus has joined #ruby
Martxel has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<atmosx> yeah worked fine
grayWolf has joined #ruby
grayWolf is now known as Speed
mway has quit [Client Quit]
rylev has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
coreysmith has quit [Remote host closed the connection]
noctua has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<canton7-mac> git rm --cached
<canton7-mac> if you want to stop tracking it without removing it from disk
<atmosx> nice ty
francisfish has joined #ruby
jprovazn has joined #ruby
jamto11 has quit [Ping timeout: 246 seconds]
fflush has quit [Quit: fflush]
dukz has quit [Remote host closed the connection]
<YellowSun> is there a way to see my ruby code translated to real 1's and 0's ? :D
yfeldblum has quit [Ping timeout: 265 seconds]
samlt has quit [Quit: WeeChat 0.4.3]
<YellowSun> i was thinking about putting it in one giant string, but that does not work.. dunno why
dblessing has joined #ruby
volk_ has joined #ruby
vt102 has joined #ruby
doodlehaus has joined #ruby
<atmosx> YellowSun: have you ever tried python?
<atmosx> it's a great programming language
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
<YellowSun> atmosx: no, but i seem to recall it's more static typing
<atmosx> YellowSun: you should give it a go
<atmosx> try #python
<atmosx> lots of ineresting people
dik_dak has joined #ruby
<YellowSun> atmosx: ok, but after looking at almost every famous language, ruby is the one i actually like reading
<YellowSun> dunno why, it just is for me :D
tjr9898 has joined #ruby
simono has quit [Read error: Connection reset by peer]
<atmosx> YellowSun: you're killing me
<YellowSun> atmosx: hahhaha why
<atmosx> YellowSun: j/k lol :-P
<atmosx> hahahahaha
<atmosx> I'm off going to clean up this mess I call *room*
<atmosx> bbl ;-) YellowSun ruby is awesome
<YellowSun> atmosx: bye bye! thnx for the chat
yacks has quit [Ping timeout: 255 seconds]
prs has left #ruby [#ruby]
yekta has joined #ruby
volk_ has quit [Quit: volk_]
vt102 has quit [Remote host closed the connection]
Tomasso has joined #ruby
vt102 has joined #ruby
simono has joined #ruby
jackneill has joined #ruby
kaspergrubbe has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
francisfish has quit [Remote host closed the connection]
davedev24 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
davedev24 has quit [Read error: Connection reset by peer]
kaspergr_ has quit [Ping timeout: 255 seconds]
yekta has quit [Quit: yekta]
davedev24 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
amaltson has joined #ruby
Shidash has joined #ruby
vlad_starkov has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
noctua has joined #ruby
YellowSun has quit [Ping timeout: 245 seconds]
phantummm has joined #ruby
noctua has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
pu22l3r has joined #ruby
danshultz has joined #ruby
arount has joined #ruby
noctua has joined #ruby
arount has left #ruby [#ruby]
davedev24 has quit [Ping timeout: 252 seconds]
chris_thomson has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
jpstokes has joined #ruby
tjr9898 has quit [Remote host closed the connection]
fijimunkii has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
platzhirsch has joined #ruby
CreativeEmbassy has joined #ruby
noctua has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Remote host closed the connection]
davedev2_ has joined #ruby
yacks has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
luriv has quit [Remote host closed the connection]
davedev24 has joined #ruby
cover has joined #ruby
sambao21 has joined #ruby
shterrett has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
davedev2_ has quit [Ping timeout: 252 seconds]
Tomasso has joined #ruby
budrose has joined #ruby
Squarepy has joined #ruby
alekst has joined #ruby
davedev24 has quit [Ping timeout: 252 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chris_thomson has quit [Quit: Zzz...]
JohnnyIsAFoodie has joined #ruby
<JohnnyIsAFoodie> Hello can someone help me with rails here
jamto11 has joined #ruby
<JohnnyIsAFoodie> I am getting "No route matches [PATCH] "/tweets/admin_approve" in rails 4 ruby 2.0.0
<shterrett> How did you define the route?
<Hanmac> JohnnyIsAFoodie: #RubyOnRails
afreidah has joined #ruby
<JohnnyIsAFoodie> match '/tweets/admin_approve' => 'tweets#admin_approve', :as =>'admin_approve', :via => [:post]
<JohnnyIsAFoodie> admin_approve_path
<shterrett> There’s no :patch because you defined the route as :post. Try changing via: [:post] to via: [:patch]
<JohnnyIsAFoodie> ok I think I shud go to #RubyOnRails sorry guyzz
thesheff17 has quit [Read error: Operation timed out]
<JohnnyIsAFoodie> oh
davedev24 has joined #ruby
momomomomo has quit [Quit: momomomomo]
rm_ has joined #ruby
randomnick_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
<JohnnyIsAFoodie> shterrett: thank you it worked. Now let me go and learn what this patch is all about
_maes_ has joined #ruby
<maasha> Hey. Sanity check of my fork pool, anyone? -> https://gist.github.com/maasha/9d0b7e88ca6cf200cfed
<shterrett> It’s another HTML verb; I believe it’s for partial updates?
<JohnnyIsAFoodie> shterrett: :-) cool
cj3kim has joined #ruby
afreidah has quit [Ping timeout: 252 seconds]
_Andres has joined #ruby
havenwood has joined #ruby
mway has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
afreidah has joined #ruby
quatron has joined #ruby
tkuchiki has joined #ruby
ffranz has joined #ruby
alekst_ has joined #ruby
JohnnyIsAFoodie has left #ruby [#ruby]
afreidah1 has joined #ruby
jpstokes has quit [Remote host closed the connection]
failshell has joined #ruby
quatron has quit [Client Quit]
afreidah has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
rylev has joined #ruby
NovapaX_ has joined #ruby
osvico has quit [Read error: Connection reset by peer]
osvico has joined #ruby
NovapaX__ has joined #ruby
fijimunkii has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
kies has quit [Ping timeout: 240 seconds]
Vovko has joined #ruby
NovapaX has quit [Ping timeout: 240 seconds]
fijimunkii has quit [Read error: Connection reset by peer]
railzForDaiz has left #ruby [#ruby]
fflush has quit [Quit: fflush]
NovapaX_ has quit [Ping timeout: 252 seconds]
rylev has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
kennym has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
robde has quit [Quit: Gone.]
nvrch has quit [Quit: nvrch]
kennym has joined #ruby
fijimunkii has joined #ruby
budrose has quit [Ping timeout: 268 seconds]
failshel_ has joined #ruby
nvrch has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Solnse has joined #ruby
ctp has quit [Quit: Leaving...]
headius_ is now known as headius
agrinb_ has joined #ruby
zachallett has joined #ruby
toretore has joined #ruby
failshell has quit [Ping timeout: 255 seconds]
failshel_ has quit [Ping timeout: 255 seconds]
Monito has joined #ruby
failshell has joined #ruby
alekst has quit [Read error: Connection reset by peer]
alekst_ is now known as alekst
Tomasso has quit [Ping timeout: 240 seconds]
cover has quit [Ping timeout: 240 seconds]
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby
failshel_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
elioat has joined #ruby
kaspergrubbe has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
failshell has quit [Read error: Connection reset by peer]
elioat has left #ruby [#ruby]
alekst has quit [Quit: Bye]
alexju has joined #ruby
dx7 has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.3]
Elhu has quit [Quit: Computer has gone to sleep.]
jollyy has joined #ruby
enebo has joined #ruby
Elhu has joined #ruby
tjr9898 has quit [Remote host closed the connection]
r_rios has quit [Remote host closed the connection]
momomomomo has joined #ruby
phutchins has joined #ruby
rayners has joined #ruby
michael_lee has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
r_rios has joined #ruby
freezey has joined #ruby
karmatr0n has joined #ruby
thomasxie has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
greggroth has joined #ruby
karmatr0n has quit [Remote host closed the connection]
nvrch has joined #ruby
karmatr0n has joined #ruby
Celm has joined #ruby
freezey has quit [Read error: Connection reset by peer]
phansch has quit [Quit: WeeChat 0.4.2]
meatherly has joined #ruby
freezey has joined #ruby
siwica has joined #ruby
tylersmith has joined #ruby
failshel_ has quit []
yfeldblum has joined #ruby
heftig has quit [Ping timeout: 264 seconds]
karmatr0n has quit [Ping timeout: 255 seconds]
Celm has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
noctua has joined #ruby
mary5030 has joined #ruby
lukec has quit [Quit: lukec]
alekst has joined #ruby
arcanez has left #ruby [#ruby]
alexju has quit [Remote host closed the connection]
<spstarr_work> you know, I've never been to Ruby Tuesday yet
<spstarr_work> ;)
<apeiros> I have! once! :)
<apeiros> food was quite good iirc
<spstarr_work> spstarr_work.been_to?.date("02-04-2014").tuesday? ;p
<spstarr_work> heh
elioat has joined #ruby
<spstarr_work> the commercials look good but there is no Ruby::Tuesday in Toronto ;)
yfeldblum has quit [Ping timeout: 265 seconds]
noctua has quit [Read error: Operation timed out]
<spstarr_work> since today is isn't Tuesday .tuesday? will return False ;(
elioat_ has joined #ruby
pedda has joined #ruby
robde has joined #ruby
michael_lee has joined #ruby
arubincloud has joined #ruby
ctp has joined #ruby
tjr9898 has joined #ruby
IceDragon has joined #ruby
elioat has quit [Ping timeout: 240 seconds]
Monito has quit [Read error: Connection reset by peer]
maasha has quit [Quit: Page closed]
Tomasso has joined #ruby
WillAmes has quit [Read error: Operation timed out]
tagrudev has quit [Remote host closed the connection]
monkegjinni has joined #ruby
shredding has joined #ruby
mengu has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
kobain has joined #ruby
ctp has quit [Ping timeout: 268 seconds]
AlexRussia has joined #ruby
francisfish has joined #ruby
Speed has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_afk
andy__ has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
lemonsparrow has quit [Quit: Page closed]
andy__ has joined #ruby
sk87 has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
ADNIX has joined #ruby
fgo has joined #ruby
mr_snowf1ake has joined #ruby
andy__ has joined #ruby
jorts has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Speed has joined #ruby
agrinb_ has quit [Ping timeout: 245 seconds]
BrianJ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
Aquilo has quit [Ping timeout: 264 seconds]
kaspergr_ has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Read error: Operation timed out]
boska has joined #ruby
<ADNIX> Is anyone familiar with SauceLabs for cross browser testing?
keen_ has joined #ruby
jameswlane has joined #ruby
rylev has joined #ruby
ADNIX has quit [Quit: BitchX: born to raise hell]
dgfdgf has joined #ruby
duggiefresh has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
karmatr0n has joined #ruby
nari has quit [Ping timeout: 255 seconds]
poikon has quit [Remote host closed the connection]
ndrei has quit [Quit: Lost terminal]
poikon has joined #ruby
s3ri0us_1 has joined #ruby
rylev has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
DEA7TH has joined #ruby
hiall has quit [Quit: hiall]
<s3ri0us_1> .
greggroth has quit [Read error: Connection reset by peer]
poikon has quit [Read error: Connection reset by peer]
greggroth has joined #ruby
flowerpot has quit [Ping timeout: 245 seconds]
jpstokes_ has joined #ruby
poikon has joined #ruby
jpstokes_ has quit []
havenwood has joined #ruby
shterrett has quit [Quit: shterrett]
iceden has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
alexju has joined #ruby
Monito has joined #ruby
mansi has joined #ruby
lmickh has joined #ruby
geggam has joined #ruby
vlad_starkov has joined #ruby
bal1 has quit [Quit: bal1]
ghr has quit [Ping timeout: 264 seconds]
thesheff17 has joined #ruby
francisfish has quit [Remote host closed the connection]
Tomasso has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
monkegjinni has joined #ruby
jeregrine has joined #ruby
dgfdgf has quit [Remote host closed the connection]
`MArceLL` has joined #ruby
newUser1234 has joined #ruby
elioat_ has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
noop has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 240 seconds]
Speed has quit [Read error: Connection reset by peer]
LekeFly has joined #ruby
Aquilo has joined #ruby
mikepack has joined #ruby
luriv has joined #ruby
Speed has joined #ruby
Speed has quit [Client Quit]
francisfish has joined #ruby
mikepack has quit [Remote host closed the connection]
Speed has joined #ruby
sigurding has quit [Quit: sigurding]
anekos has quit [Remote host closed the connection]
fgo has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
pigzzcanfly has joined #ruby
freezey has quit [Remote host closed the connection]
coderhs has joined #ruby
cj3kim_ has joined #ruby
ikaros has quit [Quit: Ex-Chat]
anekos has joined #ruby
momomomomo has quit [Quit: momomomomo]
lolmaus has quit [Read error: Operation timed out]
lolmaus has joined #ruby
noctua has joined #ruby
phansch has joined #ruby
chichou has joined #ruby
abdulsattar has joined #ruby
_tpavel has quit [Quit: Leaving]
fgo has quit [Ping timeout: 240 seconds]
Zesty has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
flowerpot has joined #ruby
x77686d has joined #ruby
ephemerian has quit [Quit: Leaving.]
monkegjinni has quit [Remote host closed the connection]
NovapaX__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
evenix has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
zcreative has joined #ruby
carif has joined #ruby
davy has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
freezey has joined #ruby
sputnik1_ has joined #ruby
cj3kim has joined #ruby
pu22l3r_ has joined #ruby
greggroth has quit [Ping timeout: 265 seconds]
kaspergr_ has quit [Ping timeout: 252 seconds]
tos9 has joined #ruby
<tos9> Hey, how do I install an additional gem into a bundle that isn't in a Gemfile?
noctua has quit [Quit: WeeChat 0.4.3]
mrig has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
<Solnse> are you asking how to install a gem that's not a gem?
pu22l3r has quit [Ping timeout: 240 seconds]
<tos9> It.. is a gem. It's not one specified as a dep in the Gemfile
mikepack has joined #ruby
<Solnse> why not add it to the gemfile?
<tos9> If I `gem install foo` it installs fine, but not into the bundle.
Elhu_ has joined #ruby
Elhu has quit [Read error: Connection reset by peer]
<tos9> Solnse: Because it's not something everyone is going to use. It's not an actual dep, it's something I want myself.
<tos9> (It's an rspec formatter, one that I want to use personally.)
siwica has quit [Quit: siwica]
mrig has left #ruby ["Textual IRC Client: www.textualapp.com"]
funktor has joined #ruby
<Solnse> if you are writing code that it will use in the project, it makes sense that it should become part of the Gemfile.
kaspergrubbe has joined #ruby
<tos9> An rspec formatter has nothing to do with the project.
<Solnse> you mean it just like changes colors?
<tos9> Yes.
<Solnse> that sounds like a development environment thing...
<Solnse> what gem?
<tos9> It is -- I would assume that's probably not something people put in Gemfiles.
<tos9> Solnse: fuubar
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Monito has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: dblessing]
<Solnse> and you did gem install fuubar?
<Solnse> are you using it when you run rspec? rspec --format Fuubar --color spec
<tos9> Yep -- when I do so it seems to possibly go into the system <whatever that's called>
dawkirst has quit [Ping timeout: 268 seconds]
<tos9> Because I can require 'fuubar' from irb
<tos9> But not from bundle exec irb
<Solnse> because bundler is just going to use what's in your gemfile.
<tos9> (And I get a traceback when I try to bundle exec rspec with the options you just mentioned)
Tomasso has joined #ruby
browndawg has quit [Quit: Leaving.]
workmad3 has joined #ruby
<Solnse> so... there's your problem
<Solnse> by using bundle exec - you are telling it to use what's in your gemfile.
<Solnse> try running it outside bundler
<Solnse> rspec --format Fuubar --color spec
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
<tos9> it's the same
<tos9> Pastebin incoming.
maletor has joined #ruby
dawkirst has joined #ruby
rm_ has quit [Remote host closed the connection]
_tpavel has joined #ruby
hooper has joined #ruby
rm_ has joined #ruby
asteros has joined #ruby
<tos9> I'm also using rvm, if that has any bearing. I don't know which pieces are causing nonsense here, sorry for not mentioning that.
<Solnse> shouldn't
bilbo_swaggins has joined #ruby
cover has joined #ruby
tylersmith has quit [Remote host closed the connection]
<Solnse> hmm, i'm not really sure... but it looks like it can't find fuubar...
<Solnse> you installed it in the project directory?
tylersmith has joined #ruby
phantummm has quit [Ping timeout: 265 seconds]
kevind has joined #ruby
julweber has joined #ruby
<Solnse> I've never used fuubar... I use guard.
nomenkun has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
graft has joined #ruby
hobodave has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
andy___ has joined #ruby
anarang has quit [Quit: Leaving]
andy___ is now known as Guest56024
<v0n> hi
mary5030_ has joined #ruby
tylersmith has quit [Ping timeout: 265 seconds]
funktor has quit [Remote host closed the connection]
<v0n> if you use ruby -n to call a script, should you put the requires as well as function definitions in the BEGIN { } block?
phantummm has joined #ruby
ghr has joined #ruby
funktor has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
TheLarkInn1 has left #ruby [#ruby]
robde has quit [Ping timeout: 268 seconds]
mary5030 has quit [Ping timeout: 268 seconds]
_maes_ has joined #ruby
davy has quit [Remote host closed the connection]
<shevy> ack
agrinb has joined #ruby
<shevy> unlikely
momomomomo has quit [Quit: momomomomo]
paulfm has joined #ruby
ce_afk is now known as cescalante
robde has joined #ruby
jherbst has joined #ruby
funktor_ has joined #ruby
chichou has quit [Remote host closed the connection]
funktor has quit [Ping timeout: 268 seconds]
momomomomo has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tylersmith has joined #ruby
cover has quit [Ping timeout: 240 seconds]
zachallett has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
pen has quit [Remote host closed the connection]
jamto11 has quit []
carif has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
horrorvacui has joined #ruby
rylev has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
bilbo_swaggins has quit [Quit: Leaving]
sski has quit [Remote host closed the connection]
thesheff17 has joined #ruby
sski has joined #ruby
davy has joined #ruby
dblessing has joined #ruby
julweber has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
<tos9> Solnse: Yeah I sat in the project directory and did that.
<tos9> Oh well. Thanks.
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby
<Solnse> sorry I couldn't help
ctp has quit [Ping timeout: 240 seconds]
rylev has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
davy has quit [Remote host closed the connection]
sski has quit [Ping timeout: 265 seconds]
gaussblurinc has quit [Quit: Leaving.]
maroloccio has quit [Quit: WeeChat 0.4.3]
Tomasso has quit [Read error: Connection reset by peer]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
Es0teric has joined #ruby
Tomasso has joined #ruby
jrvlima has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
simono has joined #ruby
noctua has joined #ruby
JBreit has joined #ruby
lukec has joined #ruby
danman_ has joined #ruby
guardian has joined #ruby
simono has quit [Client Quit]
<guardian> hello, I'm a Ruby beginner. Is there a way to "concatenate/sum" blocks? That is create a new block3 that when executed would execute block1 and block2 in sequence
mary5030 has joined #ruby
poikon has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 246 seconds]
mary5030_ has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
<canton7-mac> once you've captured a block in a variable, it becomes a proc (slight detail)
fannye has quit [Read error: Connection reset by peer]
<canton7-mac> and sure, you can do proc{ proc1.call; proc2.call }
JBreit has left #ruby [#ruby]
tylersmith has quit [Remote host closed the connection]
flowerpot has quit [Ping timeout: 268 seconds]
JacobHayes has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<noctua> l
michaeldeol has joined #ruby
tylersmith has joined #ruby
afreidah1 has quit [Ping timeout: 265 seconds]
<certainty> >> ->(f,g){ f.(); g.() }.(->(){ puts "f" }, ->(){ puts "g" })
<eval-in> certainty => f ... (https://eval.in/130841)
tos9 has left #ruby [#ruby]
<certainty> line-noise
cj3kim_ has joined #ruby
<certainty> guardian: maybe you can tell us a bit about the specific problem you're trying to solve
asteros has quit [Quit: asteros]
testcore has quit [Quit: BitchX: the Cadillac of all clients]
kaspergr_ has joined #ruby
<banisterfiend> guardian that would be a pretty interesting feature
ebwise has joined #ruby
<banisterfiend> guardian but you're probalby after something like promises, no/
<banisterfiend> ?
poikon has quit [Ping timeout: 240 seconds]
<banisterfiend> guardian that way you could decide whether to execute the subsequent block dependent on success/failure status
<certainty> just executing the blocks for their side-effects isn't very interesting is it?
<banisterfiend> guardian it's trivial to implement a promises system in ruby
mary5030 has quit [Remote host closed the connection]
hooper has quit [Ping timeout: 240 seconds]
<banisterfiend> certainty sounds like he's doing something like promises, and promises are interesting :)
karmatr0n has quit [Remote host closed the connection]
mary5030 has joined #ruby
freezey has joined #ruby
<certainty> promised? :)
nfk has quit [Quit: yawn]
bilbo_swaggins has joined #ruby
<certainty> banisterfiend: what are promises in ruby?
tylersmith has quit [Ping timeout: 240 seconds]
<banisterfiend> certainty they're not in stdlib, but they're trivial to implement. There's a kind of implementatino of them for eventmachine, but they're sort of shitty
poikon has joined #ruby
<banisterfiend> eventmachine calls them deferrables
greggroth has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
<certainty> banisterfiend: ok so delayed code that might be forced sometime in the future?
rippa has joined #ruby
fgo has joined #ruby
timonv_ has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
jollyy has quit [Quit: jollyy]
apeiros has quit [Remote host closed the connection]
<banisterfiend> certainty yeah
tos9 has joined #ruby
apeiros has joined #ruby
holo has joined #ruby
<banisterfiend> they're executed when the resolver decides to execute them
jrvlima has quit [Ping timeout: 268 seconds]
holo has left #ruby [#ruby]
<tos9> Solnse: adding --require fuubar fixes it <no idea why>
<tos9> (if you were curious)
dagobah has quit [Quit: Leaving...]
yfeldblum has joined #ruby
<guardian> certainty, canton7-mac, banisterfiend: I'm trying to extend a DSL. The DSL allows to include files, and I would like to concatenate statements that correspond to same rules but coming from different files
<tos9> Well some idea why heh.
<certainty> banisterfiend: i see.
CreativeEmbassy has quit [Quit: FO SHO]
noctua is now known as donnoc
<banisterfiend> certainty good explanation here http://domenic.me/2012/10/14/youre-missing-the-point-of-promises/
sambao21 has quit [Quit: Computer has gone to sleep.]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
fgo has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
Emmanuel_Chanel has joined #ruby
Guest56024 has quit [Remote host closed the connection]
<banisterfiend> certainty actually, more generally, he's looking for monads :)
hobodave_ has joined #ruby
<banisterfiend> promise is just one kind of monad, that determines how the statements are glued together
apeiros has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
<banisterfiend> you can also have Maybe monads that would glue together the block execution in different ways
<banisterfiend> in a different way*
wallerdev has joined #ruby
mheld has left #ruby [#ruby]
mary5030 has quit [Ping timeout: 240 seconds]
<banisterfiend> there's a much cuter way of doing that using fibers rather than blocks
timonv has joined #ruby
<banisterfiend> whether or not you continue resuming the fiber vs whether or not you execute the next block
hobodave has quit [Ping timeout: 252 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
BrianJ has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
BP-out has joined #ruby
<bilbo_swaggins> banisterfiend: this sounds interesting enough you could write a long form article. Would you be willing to? It'd be appreciated by many of us I'm sure
<BP-out> Hi, is anyone here familiar with heroku ruby script deployment?
<toretore> guardian: showing some code would help a lot in understanding what it is you want to do
petey has joined #ruby
nvrch has quit [Quit: nvrch]
jerius has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins> guardian: as toretore says, I'd like to know what you meant by "concatenate statements that correspond to same rules"
mikepack has quit [Remote host closed the connection]
<bilbo_swaggins> BP-out: if you need a basic intro to such deployments, http://ruby.railstutorial.org/ is good
<bilbo_swaggins> I can't speak to more advanced usage
<BP-out> ah, I meant deploying a standalone ruby.rb script, not a rails app
afreidah1 has joined #ruby
dblessing has quit [Quit: dblessing]
Royalb15_1 has joined #ruby
<bilbo_swaggins> I don't think this is rails-specific if I recall
<bilbo_swaggins> let me check
<toretore> isn't it just a Procfile telling it what to execute?
qba73 has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
maroloccio has joined #ruby
<toretore> https://devcenter.heroku.com/articles/getting-started-with-ruby looks like it covers the basics
<BP-out> That's what I thought, but I'm running into problems
<BP-out> I'll look through it again though, tahsnkl
<BP-out> thanks*
<bilbo_swaggins> yeah I just looked at it
<bilbo_swaggins> it's not rails specific at all
tos9 has left #ruby [#ruby]
Royalb15 has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
xibalba has joined #ruby
m8 has joined #ruby
jerius has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
Es0teric has quit [Ping timeout: 240 seconds]
pigzzcanfly has quit [Remote host closed the connection]
Tomasso has joined #ruby
simono has joined #ruby
shredding has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 245 seconds]
jobewan has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
r_rios has joined #ruby
karmatr0n has joined #ruby
kil0byte has quit [Remote host closed the connection]
mikepack has joined #ruby
robde has quit [Read error: Connection reset by peer]
robde has joined #ruby
<BP-out> ah okay, I was missing the ps:scale command to spin up the dyno for the script
Es0teric has joined #ruby
<BP-out> thank you very much for the help toretore Billy2
<BP-out> bilbo_swaggins *
jollyy has joined #ruby
dstynchula has joined #ruby
carraroj has quit [Ping timeout: 245 seconds]
<bilbo_swaggins> no worries
Guest32172 has joined #ruby
<bilbo_swaggins> I work tech support. It's nice to help actually intelligent people for once
<BP-out> ahaha
cover has joined #ruby
mark_locklear has quit [Ping timeout: 268 seconds]
newUser1234 has quit [Remote host closed the connection]
zorak has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Squarepy has quit [Quit: Leaving]
duggiefresh has quit [Remote host closed the connection]
sk87 has joined #ruby
r_rios has quit [Ping timeout: 255 seconds]
duggiefresh has joined #ruby
funktor_ has quit []
canton7-mac has quit [Quit: Leaving]
skaflem has quit [Ping timeout: 265 seconds]
platzhirsch has quit [Ping timeout: 246 seconds]
yxhuvvd has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 268 seconds]
saarinen has joined #ruby
vlad_starkov has quit []
kaspergrubbe has joined #ruby
frank_____ has joined #ruby
railzForDaiz has joined #ruby
smathieu has joined #ruby
yxhuvud has joined #ruby
djbender has joined #ruby
Spami has joined #ruby
thesheff17 has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
timonv has joined #ruby
x77686d has quit [Quit: x77686d]
greenarrow has quit [Quit: 500]
dennus has quit []
<shevy> haha
duggiefr_ has joined #ruby
duggiefresh has quit [Ping timeout: 268 seconds]
armyriad has quit [Ping timeout: 252 seconds]
kaspergr_ has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
_Andres has joined #ruby
wallerdev has quit [Quit: wallerdev]
kaspergrubbe has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 265 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
skaflem has joined #ruby
centrx has joined #ruby
timonv has quit [Remote host closed the connection]
beneggett has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
railzForDaiz has quit [Ping timeout: 268 seconds]
timonv has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
zachallett has joined #ruby
lukec has quit [Quit: lukec]
Photism has joined #ruby
jzig has joined #ruby
marr has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 255 seconds]
jonathanwallace has joined #ruby
ctp has joined #ruby
thesheff17 has joined #ruby
francisfish has quit [Remote host closed the connection]
rylev has joined #ruby
kaspergrubbe has joined #ruby
zachallett has quit [Ping timeout: 240 seconds]
beneggett has quit [Remote host closed the connection]
Elhu_ has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
apeiros has joined #ruby
<certainty> banisterfiend: you mean the guy in the explanation is looking for monads or guardian?
RowdyChild|Away is now known as RowdyChildren
zachallett has joined #ruby
newUser1234 has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
pwh has quit []
poikon_ has joined #ruby
DEA7TH has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
ctp has quit [Ping timeout: 268 seconds]
RowdyChildren is now known as RowdyChild|Away
gancl has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<banisterfiend> certainty possibly guardian
nism has joined #ruby
toastynerd has joined #ruby
otyugh has left #ruby [#ruby]
Tomasso has joined #ruby
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon__ has joined #ruby
aspires has joined #ruby
poikon has quit [Ping timeout: 265 seconds]
cj3kim_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
<certainty> banisterfiend: possibly. I didn't really get what he was trying to solve there. The very first sentence however sounded much like plain function composition, except the fact that he didn't care for return values. So yeah he could be looking a monadic thing
railzForDaiz has joined #ruby
cover has quit [Ping timeout: 240 seconds]
poikon_ has quit [Ping timeout: 268 seconds]
DEA7TH has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<guardian> what's the idiomatic way to replace the last element of an array? instead of pop then <<
subbyyy has joined #ruby
<banisterfiend> guardian array[-1] = blah
Martxel has quit [Ping timeout: 265 seconds]
<guardian> thank you
<guardian> damn I'm so new to this :)
s3ri0us_1 has quit [Quit: leaving]
chichou has joined #ruby
wallerdev has joined #ruby
armyriad has joined #ruby
adsisco has left #ruby [#ruby]
obs has quit [Quit: Konversation terminated!]
andikr has quit [Remote host closed the connection]
razrunelord has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
obs has joined #ruby
CreativeEmbassy has joined #ruby
roolo has quit [Quit: Leaving...]
kobain has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
AlSquire has quit [Quit: Quitte]
peterellisjones has quit [Quit: Leaving.]
robde has left #ruby ["Bye."]
chichouw has joined #ruby
tylersmith has joined #ruby
Lewix has quit [Remote host closed the connection]
donnoc has quit [Ping timeout: 265 seconds]
chichou has quit [Ping timeout: 265 seconds]
Squarepy has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
pulpfiction has joined #ruby
pulpfiction has quit [Changing host]
pulpfiction has joined #ruby
jhass|off is now known as jhass
fgo has joined #ruby
toastynerd has quit [Remote host closed the connection]
arietis has joined #ruby
Shidash has joined #ruby
<pulpfiction> can anyone tell me what's wrong here? 0.upto(100).each { |i| puts Statistics2.pnormaldist(1-(1-i/100)/2) }
<pulpfiction> all i get is NaN
chichou has joined #ruby
kobain has joined #ruby
lukec has joined #ruby
asteros has joined #ruby
chichouw has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dtcrshr has joined #ruby
maximski has quit [Read error: Connection reset by peer]
forced_request has joined #ruby
davy_ has joined #ruby
freezey has quit [Remote host closed the connection]
<Hanmac> pulpfiction: you need "i.to_f"
spider-mario has quit [Read error: Connection reset by peer]
maximski has joined #ruby
afreidah1 has quit [Ping timeout: 268 seconds]
michaeldeol has joined #ruby
<apeiros> or i.fdiv(100)
<apeiros> one less method call
aspires has quit []
<pulpfiction> apeiros, ok, that worked, thanks
<pulpfiction> i don't know ruby but this gem had this pnormaldist() method i needed :)
_tpavel has quit [Quit: Leaving]
<certainty> ruby is the new php
fgo has quit [Ping timeout: 252 seconds]
codabrink has quit [Ping timeout: 252 seconds]
<apeiros> AAAAAAAAH!
<certainty> i don't know ruby but i use it anyway :)
* apeiros smacks certainty
<certainty> ouch
timonv has quit [Remote host closed the connection]
kobain has quit [Read error: Connection reset by peer]
andy__ has joined #ruby
petey has quit [Remote host closed the connection]
rainmanjam has joined #ruby
petey has joined #ruby
chichou has quit [Ping timeout: 240 seconds]
<pulpfiction> hehe
<tobiasvl> i know ruby but i don't use it
kobain has joined #ruby
GreatSUN has joined #ruby
<GreatSUN> re
toastynerd has joined #ruby
elaptics is now known as elaptics`away
* Hanmac raises his hand in a gun position: "i can C and i know how to use it!" ;P
fabrice31 has joined #ruby
<certainty> Hanmac: aiming at your foot?
pwh has joined #ruby
IceDragon_ has joined #ruby
jonmorehouse has joined #ruby
failshell has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
petey has quit [Ping timeout: 252 seconds]
afreidah1 has joined #ruby
IceDragon_ is now known as IceDragon
dumdedum has quit [Quit: foo]
pfg has joined #ruby
rezzack has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
codabrink has joined #ruby
Guest32172 has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
pigzzcanfly has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
Lewix has joined #ruby
zigomir has quit [Remote host closed the connection]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
Monito has joined #ruby
Zai00 has quit [Quit: Zai00]
jollyy has quit [Quit: jollyy]
pulpfiction has quit [Quit: Leaving]
SolarSailor has joined #ruby
aspires has joined #ruby
Tomasso has quit [Ping timeout: 268 seconds]
JacobHayes has quit [Remote host closed the connection]
<shevy> no
<shevy> at you!
jay_ has joined #ruby
papercode has joined #ruby
dfrancio_ has joined #ruby
sjkaliski has joined #ruby
wigg has joined #ruby
tylersmi_ has joined #ruby
Lewix_ has joined #ruby
mikeg has joined #ruby
karmatr0_ has joined #ruby
chipotle_ has joined #ruby
pigzzcan_ has joined #ruby
grayWolf has joined #ruby
nanoyak has joined #ruby
wallerdev_ has joined #ruby
phutchin1 has joined #ruby
erobtom1 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
shanlar has joined #ruby
subbyyy_ has joined #ruby
tkuchiki has joined #ruby
sambao21 has joined #ruby
lmickh_ has joined #ruby
pierre1_ has joined #ruby
agrinb__ has joined #ruby
Speed has quit [Disconnected by services]
grayWolf is now known as Speed
invinceable has joined #ruby
zigomir has joined #ruby
AlexRussia_ has joined #ruby
gancl_ has joined #ruby
zigomir has quit [Remote host closed the connection]
freerobby has joined #ruby
devyn_ has joined #ruby
m_3_ has joined #ruby
flori_ has joined #ruby
sivoais_ has joined #ruby
fuleo_ has joined #ruby
gtc|ghost has joined #ruby
<phutchin1> lo
tris has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
kirun has joined #ruby
<phutchin1> Anyone know how to do something like fork do exec("ssh me@myhost.com", out: io, err: :out) end
<phutchin1> then programatically send a command to that ssh session?
jonmorehouse has quit [Ping timeout: 252 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
<phutchin1> that leaves you with a ssh session that you can interact with in your terminal. So i'm thinking i could someehow have ruby fake some stdin from the user?
kaspergrubbe has quit [Read error: Connection timed out]
ignoch has joined #ruby
m0sz has joined #ruby
lkba has joined #ruby
jaywastaken has quit [Disconnected by services]
jay_ is now known as jaywastaken
dblessing has joined #ruby
jaywastaken has quit [Changing host]
jaywastaken has joined #ruby
tchebb_ has joined #ruby
jprovazn_afk is now known as jprovazn
cj3kim has quit [Remote host closed the connection]
SolarSailor has quit [*.net *.split]
Lewix has quit [*.net *.split]
pwh has quit [*.net *.split]
tylersmith has quit [*.net *.split]
pigzzcanfly has quit [*.net *.split]
Monito has quit [*.net *.split]
subbyyy has quit [*.net *.split]
wallerdev has quit [*.net *.split]
razrunelord has quit [*.net *.split]
dfranciosi has quit [*.net *.split]
x77686d has quit [*.net *.split]
gancl has quit [*.net *.split]
yacks has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
karmatr0n has quit [*.net *.split]
bilbo_swaggins has quit [*.net *.split]
iceden has quit [*.net *.split]
agrinb has quit [*.net *.split]
lmickh has quit [*.net *.split]
phutchins has quit [*.net *.split]
chipotle has quit [*.net *.split]
nateberkopec has quit [*.net *.split]
tchebb has quit [*.net *.split]
gtc has quit [*.net *.split]
sivoais has quit [*.net *.split]
shanlar- has quit [*.net *.split]
m_3 has quit [*.net *.split]
erobtom has quit [*.net *.split]
preller has quit [*.net *.split]
atno has quit [*.net *.split]
fuleo has quit [*.net *.split]
devyn has quit [*.net *.split]
flori has quit [*.net *.split]
m0s^away has quit [*.net *.split]
camt has quit [*.net *.split]
tchebb_ is now known as tchebb
wallerdev_ is now known as wallerdev
platzhirsch has joined #ruby
subbyyy_ has quit [Ping timeout: 268 seconds]
luriv has quit [Remote host closed the connection]
railzForDaiz has left #ruby [#ruby]
railzForDaiz has joined #ruby
freezey has joined #ruby
luriv has joined #ruby
Valesk has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
poikon__ has quit [Remote host closed the connection]
pwh has joined #ruby
f0ster has joined #ruby
<certainty> shevy: :(
<BP-out> if i'm parsing messages from a TCPSocket (an irc bot, in this instance), is it a bad idea to create a new Message object for each line the socket receives?
alexju has quit [Ping timeout: 240 seconds]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
Olipro has joined #ruby
dyoko has quit [Quit: Leaving.]
rdark has quit [Quit: leaving]
mikepack has quit [Remote host closed the connection]
atno has joined #ruby
JacobHayes has joined #ruby
iceden has joined #ruby
<centrx> BP-out, It might be a little slower or use more memory, but it would work for IRC level of load
preller has joined #ruby
_justin has joined #ruby
bilbo_swaggins has joined #ruby
JacobHayes has quit [Remote host closed the connection]
yacks has joined #ruby
Martxel has joined #ruby
yxhuvud has joined #ruby
cj3kim has joined #ruby
s2013 has joined #ruby
<s2013> can you have a superclass without initializing anything?
alexju has joined #ruby
havenwood has joined #ruby
<centrx> s2013, What does that mean?
Voodoofish430 has joined #ruby
<Solnse> nothing inherits from nothing :)
<Solnse> lol
<Solnse> found the one thing that doesn't inherit from basicobject
<s2013> what i mean is that lets say i have different types of "reports" so i have different report class but i want to have a superclass called BaseReport that has a lot of methods that other reports share
<s2013> does that make sense?
<s2013> but i never would actally initiate any object as BaseReport
pu22l3r_ has quit [Remote host closed the connection]
<s2013> so do i still need to have constructors?
heftig has joined #ruby
pu22l3r has joined #ruby
marcux has joined #ruby
<apeiros> s2013: nothing stopping you from doing that
jherbst has joined #ruby
marcux has quit [Client Quit]
<s2013> ok.. better question.. is that an acceptable practice or not
<apeiros> though, modules are often preferred for shared code.
<centrx> s2013, You don't need to define def initialize on any class
<apeiros> s2013: you're a rails user, you've seen that pattern ;-)
<apeiros> AR::Base
ctp has joined #ruby
<s2013> yeah apeiros
dseitz has joined #ruby
<s2013> i am just building service objects
marcux has joined #ruby
greggroth has quit [Ping timeout: 240 seconds]
<s2013> not a fan of concerns which are more module based idsay
rylev has joined #ruby
<s2013> so basically im refactoring our controllers which are sometimes 500+ lines into little service objects
stupidystupid has joined #ruby
stupidystupid has quit [Max SendQ exceeded]
<phutchin1> Anyone have any idea on sending data to a process spawned by exec() ?
<horrorvacui> wow someone didn't get the memo on fat models slim controllers?
stupidystupid has joined #ruby
stupidystupid has quit [Max SendQ exceeded]
davy_ has quit [Read error: Connection reset by peer]
<s2013> horrorvacui, dont get me started on our codebase
dyoko has joined #ruby
<s2013> it was 40k lines of code with 0 lines of test
stupidystupid has joined #ruby
<apeiros> s2013: didn't say anything about concerns
<s2013> some actions were like 100+ lines
stupidystupid has quit [Max SendQ exceeded]
<apeiros> ruby's modules work without using concern.
<s2013> some controllers are even bigger than 1000
davy_ has joined #ruby
stupidystupid has joined #ruby
<s2013> im talking about in rails context apeiros i believe thats how the concerns work
DrShoggoth has joined #ruby
<apeiros> s2013: rubys modules work in rails just fine too.
rylev_ has joined #ruby
<s2013> k
bilbo_swaggins has quit [Quit: Leaving]
ozzloy_ is now known as ozzloy
Sawbones has joined #ruby
dfrancio_ has quit [Remote host closed the connection]
dfranciosi has joined #ruby
<workmad3> s2013: I think apeiros is suggesting that, rather than having a BaseReport that you inherit from, you'd instead have a module ReportHelpers that you include into your various Report objects
trhodes_ has joined #ruby
ctp has quit [Ping timeout: 240 seconds]
rylev has quit [Ping timeout: 240 seconds]
<workmad3> s2013: name of the mixin module is obviously up to you :)
<s2013> gotcha
Tomasso has joined #ruby
thrillagorilla has joined #ruby
obs has quit [Quit: Konversation terminated!]
<s2013> not sure where id put that though
ozzloy has quit [Changing host]
ozzloy has joined #ruby
<s2013> i have a services folder
<workmad3> s2013: lib/ :)
<s2013> should i leave it there or leave it in the concerns folder? this is more rails question
jollyy has joined #ruby
rylev_ has quit [Ping timeout: 240 seconds]
bricker_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
bricker_ is now known as bricker`work
nisstyre has quit [Quit: WeeChat 0.4.3]
yfeldblum has joined #ruby
bricker has quit [Disconnected by services]
bilbo_swaggins has joined #ruby
pen has joined #ruby
<ignoch> s2013: you can put on app folder. lib is for other purposes
jonmorehouse has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
mark_locklear has joined #ruby
albedoa has joined #ruby
bilbo_swaggins has quit [Client Quit]
kpshek has quit []
mercwithamouth has quit [Ping timeout: 252 seconds]
<s2013> ok i guess ill put it in app/concerns
cj3kim has quit [Remote host closed the connection]
<albedoa> http://ruby.railstutorial.org/chapters/a-demo-app#sec-planning_the_application if you scroll down about half a page, can someone tell me if the second `bundle install` command is redundant given we just executed a `bundle update`?
yfeldblum has quit [Read error: Operation timed out]
invinceable has quit [Ping timeout: 268 seconds]
<s2013> albedoa, bundle install is fine
<s2013> bundle update just updates the gems
<s2013> or you can just run bundle
<s2013> bundle install looks for new gems and installs them. bundle update updates gems that are already installed
<albedoa> s2013 yes but is the second one doing anything that the fitst bundle install and bundle update didn't?
<albedoa> s/fitst/first
<s2013> hold on let me chekc it
pel_daniel has joined #ruby
<albedoa> it looks redundant to me
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<s2013> yes
<s2013> first one only installs gems that are in dev/test
<s2013> last one installs all gems
<s2013> see the --without production flag
bhaak has joined #ruby
<s2013> so in this case it wont install pg and rails_12factor
<albedoa> yes but that puts the flag into .bundle/config
atmosx has quit [Ping timeout: 265 seconds]
<albedoa> so it runs with the flag each time, no?
<workmad3> albedoa: yes, the second 'bundle install' is unnecessary
ce_afk is now known as cescalante
<s2013> i dont know i havent read that tutorial albedoa
<albedoa> workmad3 that's what i suspected. just making sure. thanks!
<albedoa> s2013 thanks for your help
<s2013> but generally you only need to just do bundle install
<workmad3> albedoa: also, try not to do a blanket 'bundle update' on your application unless you're *very* sure that you won't break things
_justin has quit [Ping timeout: 240 seconds]
<s2013> yeah
zigomir has joined #ruby
<workmad3> albedoa: thankfully, if you do break something, you just need to roll back changes to Gemfile.lock... but still, it's a dodgy practice in real apps :)
<s2013> you can update individual gems
<albedoa> ty
sk87 has joined #ruby
EminenceHC has joined #ruby
<RubyPanther> if you have tests, it should be as safe as anything else. You can just roll it back and go one at a time if there are any problems.
Morkel has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
<RubyPanther> that is sortof a rubber chicken warning, everybody knows to warn you about it, but if you follow the other advice, any harm is already mitigated
kies has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
afex has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
kies has joined #ruby
Sawbones has quit []
sk87 has quit [Client Quit]
krz has joined #ruby
snath has quit [Ping timeout: 255 seconds]
<albedoa> thanks, good to know
sambao21 has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
dx7 has quit [Read error: Connection reset by peer]
dx7_ has joined #ruby
TheFishy has joined #ruby
<TheFishy> Hey all
Musashi1 has joined #ruby
<TheFishy> anyone find it odd that in ruby you can do something like: if (true) then i=1; end puts i; and have it work?
fgo has joined #ruby
SolarSailor has joined #ruby
<TheFishy> Coming from C++ this shouldn't work at all as the scope of the variable has ended
cover has joined #ruby
BP-out has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kaspergr_ has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<TheFishy> I understand though that the ruby VM has allocated the variable and will hold onto it until the process destruction is that right?
greggroth has joined #ruby
andy__ has joined #ruby
petey has joined #ruby
jonmorehouse has quit [Ping timeout: 252 seconds]
<mary5030_> hi i had a question: i had initially assumed that output is a hash and did this output.values.any? {|entry| entry.to_s.include? 'Unexpected Device Error' }, now i am realizing that it is a ruby string representation of a hash how can i achieve the same thing without calling eval
mattwb has quit [Quit: Textual IRC Client: www.textualapp.com]
benzrf is now known as benzrf|offline
armyriad has joined #ruby
cescalante is now known as ce_afk
gancl_ has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
<crome> TheFishy: I wouldn't say its odd
sjkaliski has quit [Quit: Linkinus - http://linkinus.com]
<crome> its just different
klaut_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
<shevy> mary5030_ that is bad - if you have a string already you need to convert it back into a hash
jollyy has quit [Quit: jollyy]
fgo has quit [Ping timeout: 268 seconds]
<TheFishy> crome: one thing I would have suspected is that if I did something like if (uninitVar) ... it would treat the uninitVar as nil but it doesn't
atmosx has joined #ruby
<shevy> Hanmac eh I am so far removed, I don't care about most of th ese technologies
monkegjinni has joined #ruby
x77686d has quit [Ping timeout: 255 seconds]
CaptainJet has joined #ruby
nateberkopec has joined #ruby
<horrorvacui> Hanmac: please tell me they didn't really do the last one
<TheFishy> I assumed this would be the logical thing to do if you are treating variables scope so loosely but I can see that it would probably cause a BUNCH of typos to go unnoticed.
cj3kim has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
mikepack has joined #ruby
jonmorehouse has joined #ruby
timonv has joined #ruby
<TheFishy> the SUPER weird thing is that this works: if (false) i = 1; end puts i #puts nil
Slavox is now known as Slavox|AFK
RaptorJesus has joined #ruby
zachallett has quit [Remote host closed the connection]
<horrorvacui> I find it funny that John Carmack works for facebook now.
Avahey_ has joined #ruby
kpshek has joined #ruby
<mary5030_> shevy: you mean i need to convert output into a hash first?
toastynerd has quit [Remote host closed the connection]
<TheFishy> horrorvacui: The best part is a tweet like a week before it happened was something along the lines of "Ugh, these are one of those days where I am going to do more communicating than coding. I just want to code."
monkegjinni has quit [Remote host closed the connection]
<shevy> mary5030_ well, the best way would be if you would have output be a hash
<shevy> mary5030_ so if you can achive that, that is great. other than that, you will have to work with that string, which is annoying; it will have key->value pairs which you may have to re-assemble into a hash, probably through a .split
nanoyak has quit [Quit: Computer has gone to sleep.]
<mary5030_> i wanted to just check if it has "'Unexpected Device Error'", i won't be sending this output to the user i am just needing it in a method to check for that text
<mary5030_> i srr
<mary5030_> i see
graft has quit [Ping timeout: 240 seconds]
<apeiros> mary5030_: doesn't use eval
smathieu has quit [Remote host closed the connection]
monkegjinni has joined #ruby
smathieu has joined #ruby
zachallett has joined #ruby
smathieu has quit [Remote host closed the connection]
Tomasso has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
smathieu has joined #ruby
Lewix_ has quit [Remote host closed the connection]
karmatr0_ has quit [Remote host closed the connection]
Tomasso has joined #ruby
dkamioka has joined #ruby
pigzzcan_ has quit [Remote host closed the connection]
<horrorvacui> TheFishy: Maybe Mark Zuckerburg won't mess with the gaming side to much.
<crome> besides, I could imagine playing a game in which I have to kill ads
armyriad has quit [Ping timeout: 240 seconds]
<crome> just like in futurama
hooper has joined #ruby
Lewix has joined #ruby
ehc has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ce_afk is now known as cescalante
Lewix has quit [Remote host closed the connection]
testcore has joined #ruby
pigzzcan_ has joined #ruby
x77686d has joined #ruby
<horrorvacui> Hanmac: omg hilarious
Zai00 has joined #ruby
<apeiros> hah, lovely last stretch goal
<apeiros> but I doubt facebook would sell
evenix has joined #ruby
<apeiros> horrorvacui: you think he wants to build a second second life?
<horrorvacui> I don't know, I kinda licked the early days of second life making and coding stuff.
<horrorvacui> liked* not licked
toastynerd has quit [Remote host closed the connection]
<horrorvacui> I just want to play HL3 with it.
Lewix has joined #ruby
Zai00 has left #ruby [#ruby]
camt has joined #ruby
nism has quit [Ping timeout: 240 seconds]
<mdpatrick> Anyone used awesome_nested_set before? Of particular interest is using it with large data sets
toastynerd has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
SCommette has quit [Quit: SCommette]
carraroj has joined #ruby
* platzhirsch roars...
mikepack has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
locriani has joined #ruby
yubrew has joined #ruby
jaywastaken has quit [Quit: Leaving]
<horrorvacui> Does anyone do pomodoros or GTD?
jaywastaken has joined #ruby
bhaak has quit [Read error: Connection reset by peer]
<jle`> on and off
dyoko has quit [Quit: Leaving.]
subbyyy_ has joined #ruby
<benzrf> apeiros: did u ever try quick
AlexRussia_ is now known as AlexRussia
<benzrf> (⊙ω⊙)
jamto11 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greggroth has quit [Ping timeout: 240 seconds]
<platzhirsch> benzrf: naughty
dreamer_ has joined #ruby
<apeiros> benzrf: not yet, but I've installed osxfuse
<apeiros> or… wait… maybe I only updated brew
<apeiros> no, it's installed.
<apeiros> so what's the next step, benzrf?
<dreamer_> I've got a sequel question. Trying to get the ddl of 'show table TABLENAME' on a terradata db, and can't find a way to capture the text. anyone have an idea?
dyoko has joined #ruby
blandflakes_ has joined #ruby
elisarver has joined #ruby
SCommette has joined #ruby
maximski has quit []
marcux has quit [Quit: marcux]
cj3kim_ has joined #ruby
Lewix has quit [Remote host closed the connection]
bricker`1ork has joined #ruby
marcux has joined #ruby
blandflakes has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
bricker`work has quit [Ping timeout: 255 seconds]
kung has joined #ruby
davy__ has joined #ruby
kung has quit [Changing host]
kung has joined #ruby
francisfish has joined #ruby
ctp has joined #ruby
agjacome has joined #ruby
ahibal has joined #ruby
Squarepy has quit [Quit: Leaving]
dfranciosi has quit [Remote host closed the connection]
CaptainJet has quit []
<TheFishy> horrorvacui: eh
chinkung has quit [Ping timeout: 264 seconds]
<ahibal> Hi everybody
dfranciosi has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<TheFishy> Hi Dr.Nick!
rylev has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
skaflem has quit [Quit: Leaving]
marcux has quit [Quit: leaving]
Tomasso has joined #ruby
mumin has joined #ruby
<TheFishy> Seriously this still is killing my brain: if (true) i = 1 end puts i #works and prints 1. if (false) i = 1 end puts i# works and prints nil. puts i#fails on i not being a variable. How is this different from the if failed statement?
<mumin> hello
francisfish has quit [Ping timeout: 240 seconds]
marcux has joined #ruby
Slavox|AFK is now known as Slavox
jerius has joined #ruby
aspires has quit []
<ahibal> I have an issue with processor detection any ideas?
kennym has quit [Quit: Leaving.]
ctp has quit [Ping timeout: 268 seconds]
chrisseaton has quit []
LiohAu has quit [Quit: LiohAu]
ctp has joined #ruby
rylev has quit [Ping timeout: 252 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
frank_____ has quit [Quit: Connection closed for inactivity]
marcux_ has joined #ruby
funktor has joined #ruby
funktor has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
marcux has quit [Client Quit]
marcux_ is now known as marcux
CaptainJet has joined #ruby
marcux has quit [Client Quit]
marcux has joined #ruby
LexicalScope` has joined #ruby
reset has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<mumin> no one answers hello here :D
railzForDaiz has left #ruby [#ruby]
marcux has quit [Client Quit]
Mongey has quit [Ping timeout: 265 seconds]
<apeiros> TheFishy: once the interpreter sees an assignment to an lvar, the lvar gets created. even if the code-path of the assignment is not executed.
railzForDaiz has joined #ruby
shredding has joined #ruby
<DouweM> mumin: someone answered someone else's "hello" not 10 minutes ago
<DouweM> mumin: I guess we just don't like you :p
<TheFishy> apeiros: odd. and the interpreter will keep that variable after the scope ends or are the if statements just no longer scopes in ruby?
jackneill has quit [Quit: WeeChat 0.4.3]
subbyyy_ has quit [Ping timeout: 240 seconds]
<DouweM> TheFishy: if statement doesn't scope, no
Stalkr_ has joined #ruby
<apeiros> TheFishy: they have never been
<mumin> DouweM: :s but i just said only hello
decoponio has quit [Quit: Leaving...]
toastynerd has joined #ruby
marcux has joined #ruby
saarinen has quit [Quit: saarinen]
<DouweM> mumin: don't be sad, I would've said hello if I'd seen your message earlier
Cheets-X has joined #ruby
<Cheets-X> Hi :)
<DouweM> Hi!
<apeiros> TheFishy: it's not all that odd really. lvars should (and hopefully aren't in ruby, but I didn't check) not be implemented as a hash
<DouweM> mumin: see?
<Cheets-X> Having weird issue. Looks like ruby is ordering my hash randomly every time my script is executed :/
smathieu has quit [Remote host closed the connection]
<apeiros> TheFishy: so a decent parser will scan for all lvars in a code-piece and internalize them, it won't use the name of the variables. they don't matter for code execution.
<DouweM> Cheets-X: post code, your expected result and the actual result
nism has joined #ruby
<mumin> yep
benzrf is now known as benzrf|offline
smathieu has joined #ruby
njection_ has joined #ruby
dreamer_ has quit [Quit: Page closed]
<Cheets-X> I'm just using myhash.values[0] to get at the elements
Mongey has joined #ruby
<Cheets-X> I know there's only 4
<Cheets-X> items
<DouweM> Cheets-X: code pls
<DouweM> Cheets-X: also, I'm assuming you're on Ruby >=1.9?
michaeldeol has joined #ruby
dx7_ has quit [Read error: Operation timed out]
pigzzcan_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
njection has quit [Ping timeout: 265 seconds]
djbender has quit [Quit: djbender]
<Cheets-X> DouweM,
<Cheets-X> DouweM, http://pastebin.com/Ejy2a6rW
fgo has joined #ruby
ahibal has quit [Quit: Leaving]
subbyyy_ has joined #ruby
<DouweM> Cheets-X: so I'm assuming that gives you '0,0,0,0'? what did you expect?
TheFishy has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<Cheets-X> DouweM, http://pastebin.com/Ug7sF44h is better example
davy__ has quit [Remote host closed the connection]
<DouweM> Cheets-X: right. which I expect to puts '0,1,2,3'. what are you seeing instead?
<DouweM> Cheets-X: and again: Ruby version?
<DouweM> Cheets-X: also, why don't you just use `myemails.values.join(",")`
bricker`1ork is now known as bricker
fabrice31 has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
Ziarkaen has joined #ruby
<Solnse> it looks like you are trying to access the hash like an array using values... but iirc, it'll pull values matching what you are trying to access... .values[0] will return hash values that are 0 (all 4 in your myemails variable) ?
<Cheets-X> DouweM, it's pure random
toastynerd has joined #ruby
<Cheets-X> ruby 1.8
<DouweM> Cheets-X: and there you go
<DouweM> Cheets-X: hashes are not ordered in 1.8
<DouweM> Cheets-X: go with the time and grab yourself some Ruby 2.1.1
greggroth has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<Cheets-X> v2 doesn't work for me on the mac
<Cheets-X> (for what i want it to do and the gems i need)
<DouweM> in that case you're SOL
EminenceHC has quit [Remote host closed the connection]
<havenwood> Cheets-X: The latest version of OS X ships with Ruby 2.0.
<havenwood> Cheets-X: Ruby 1.8 is past End-of-Life.
Ziarkaen` has joined #ruby
<DouweM> Cheets-X: what gems are these, that you can't run on the latest Rubt?
<Cheets-X> havenwood, oh i didn't know that I used macports
<DouweM> Solnse: nah, that's not how it works. #values returns an array of values
mikepack has joined #ruby
<DouweM> Cheets-X: hehe, macports has fallen out of favor as well. go with homebrew
<Solnse> yeah I see
<Cheets-X> well which ruby says /usr/bin/ruby
chinkung has joined #ruby
nomenkun has joined #ruby
<Solnse> how is that useful, when you are specifying the value to return?
graft has joined #ruby
<DouweM> Cheets-X: what OS X are you on?
<Cheets-X> Maverick
<DouweM> Solnse: if you don't have the key, but do have the index
yfeldblum has joined #ruby
<DouweM> Cheets-X: Mavericks comes with 2.0...
Ziarkaen has quit [Ping timeout: 252 seconds]
<Cheets-X> Hmmmz
<Solnse> you mean value.
<havenwood> Cheets-X: the ruby21 port is on 2.1.1
mikepack_ has joined #ruby
osvico has quit [Read error: Connection reset by peer]
<Solnse> but if it's just returning the value again, how are you getting the key?
<havenwood> Cheets-X: Mavericks ships with Ruby 1.8 and 2.0, but 2.0 is symlinked as Current by default.
<DouweM> Solnse: if you have an array, and you want to get a value, you usually do so by specifying the key. if you don't have the actual key (the email address in this case), but you do have the index, you can use #values[i]. Or just when you want to iterate over the values but don't care about the keys
<DouweM> Solnse: use #values when you don't care about the key
mehlah has quit [Quit: Leaving...]
osvico has joined #ruby
<Solnse> I see.
mikepack_ has quit [Read error: Connection reset by peer]
kung has quit [Ping timeout: 255 seconds]
afex has quit [Ping timeout: 240 seconds]
mikepack_ has joined #ruby
<Cheets-X> The gem I was trying to get working was rail. But it seems broken when I run /usr/bin/ruby
aspires has joined #ruby
<Cheets-X> s/rail/rmail
greggroth has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
<DouweM> Cheets-X: Well, aside from OS X, you've got a thing for obsolete software
mikepack has quit [Read error: Connection reset by peer]
<DouweM> Cheets-X: the latest version of rmail was released in 2008. Just use the mail gem: https://rubygems.org/gems/mail
mumin has quit [Ping timeout: 240 seconds]
Tomasso has quit [Read error: Connection reset by peer]
bricker has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
Tomasso has joined #ruby
sambao21 has joined #ruby
bricker has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> Cheets-X: mail gem on the Ruby 2.1.1 port sounds good
samfisher has joined #ruby
samfisher has quit [Changing host]
samfisher has joined #ruby
<samfisher> ruby rules
enebo has quit [Quit: enebo]
<Cheets-X> cool i'll look into it :)
<samfisher> do you know how I could create a windows virtual printer with ruby?
<samfisher> i need a file printer, one that prints to text
Jake232 has joined #ruby
<samfisher> text files
<DouweM> samfisher: how would one create a windows virtual printer with anything?
davy_ has joined #ruby
<samfisher> DouweM: dunno, that's why I'm asking
<DouweM> samfisher: legitimately curious, I had no idea there was an established protocol for that
mengu has joined #ruby
<DouweM> samfisher: hehe. I'm not aware of a gem that does that. it's a very specific request
Guest58121 has quit [Changing host]
Guest58121 has joined #ruby
<shevy> samfisher that will probably also be quite OS specific
<samfisher> hmm
jerius has quit [Quit: Computer has gone to sleep.]
<jhass> samfisher: "virtual printer" is the solution you think you need, what's the problem that solves that?
bricker has quit [Read error: Connection reset by peer]
bricker has joined #ruby
<samfisher> the problem is this: I have a .NET app that prints a page, using a windows virtual printer (prints page to .txt) file. Problem is that stupid(R) windows printer keeps asking for path to save the file, and I want it to print it to a default path (not possible)
<samfisher> so I have to recreate a printer driver
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<DouweM> I'd look for some existing solution to that. you're not trivially going to solve it with Ruby.
<jhass> I doubt you can write a windows driver with ruby
<RubyPanther> samfisher: I recommend installing another OS in a VM, and setting up a network printer there, and printing to that
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
alexju has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
<samfisher> RubyPanther: it's good idea by i plan to keep it as simple as I can (life phylosophy)
nanoyak has joined #ruby
<RubyPanther> Or, re-implement the .NET app in Ruby, and use Gtk and gtk_print_operation_set_export_filename ()
doodlehaus has quit [Remote host closed the connection]
<jeregrine> so what do I do when two libraries have conflicting depdendiecs?
<RubyPanther> samfisher: Setting up a network printer in a VM ****is**** the simple way
UserNameInvalid has joined #ruby
<DouweM> jeregrine: cry
<RubyPanther> it involves no code, and every step is HOWTO level stuff
<samfisher> it would be simpler to learn .NET and modify that damn's app source
nanoyak has quit [Client Quit]
<DouweM> jeregrine: why do you have two different foursquare2's? :/
<jeregrine> idk
<jeregrine> :(
<RubyPanther> yeah if by simpler you mean, would take a zillion times longer
<RubyPanther> installing a VM takes minutes
<jeregrine> DouweM: its only in my gemfile once
<jhass> jeregrine: post your Gemfile.lock
<RubyPanther> setting up a network printer, that is like learning to change a tire, it is easy, there are instructions if you want them, and it is a useful thing to know how to do
<DouweM> jeregrine: foursquare2 1.9.8 wants "faraday ~> 0.8", so I have no idea why it's asking for <0.9,>=0.74 at all
<DouweM> jeregrine: so yeah, your Gemfile.lock pls. And regular Gemfile wouldn't hurt either
<jhass> DouweM: that's exactly what ~> 0.8 says
<jhass> hm, well, >= 0.8 actually
<RubyPanther> I mean, writing a printer driver in Ruby, that is like... out of the ballpark crazy "not simple"
zz_jrhorn424 is now known as jrhorn424
<DouweM> jhass: ~>0.8 means >=0.8, <1.0, right?
<jhass> hmm, right, ignore me
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jeregrine> DouweM: not sure how it said foursquare tiwce
<jhass> kinda was reading ~> 0.8.0
<jeregrine> is new error
francisfish has joined #ruby
<DouweM> jhass: even then, the 0.7.4 is weird
<jhass> yeah
<DouweM> jeregrine: ah that's different
Musashi1 has joined #ruby
<jeregrine> yea no clue how it got into that previous state
nomenkun has quit [Quit: Leaving...]
<jeregrine> moved some things around in my gemfile
<jeregrine> fixed it :(
<DouweM> jeregrine: so, the gems have conflicting dependencies. you should explicitly ask for an older version of either
<jeregrine> why is 0.9 > 0.9.0 :((
<DouweM> same thing
blandflakes_ has quit [Quit: Page closed]
smathieu has quit [Remote host closed the connection]
<jeregrine> twitter need 0.9.0. foursquare2 needs less than 0.9
<jeregrine> got it not equal to
<DouweM> jeregrine: right. 0.9 obviously isn't less than 0.9.0
smathieu has joined #ruby
<jhass> jeregrine: do you need features of twitter 5.6, 5.7 or 5.8?
<DouweM> (other way around, but still)
GasPowered has joined #ruby
<DouweM> looks like no new features were added, so you're probably good with 5.5
<jhass> but don't forget to complain to foursquare2 author to update his shit
<DouweM> better yet, post a pull request: https://github.com/mattmueller/foursquare2/pulls
jkamenik has quit [Quit: Leaving.]
doodlehaus has joined #ruby
jokke has quit [Disconnected by services]
jokke1 is now known as jokke
jokke1 has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
<GasPowered> is it okay to ask for help here? I cant figure out this error: https://gist.github.com/anonymous/cba1ef047f7540709c3b
<DouweM> GasPowered: $arr != @arr
<jhass> GasPowered: ^ and forget that $arr is a thing
<DouweM> GasPowered: the former is a global var (which you should stay away from), the latter is the instance var you're looking for
<jeregrine> sigh this doesn't make sense......
<GasPowered> wow, cant believe i didnt see it, thanks
<jhass> jeregrine: okay, really time for your Gemfile.lock
<jeregrine> ok
GasPowered has left #ruby ["Leaving"]
mehlah has joined #ruby
angusiguess has joined #ruby
<DouweM> jeregrine: looks like you're gonna have to patch that foursquare2 to support Faraday 0.9.0. this probably isn't the last gem you're gonna see that requires it
samfisher has quit [Quit: exit error code 434]
vasilakisFiL has joined #ruby
<vasilakisFiL> hi, if I have an array of objects which is being used by multiple threads (read/write), I have to wrap it in mutexes, right ?
petey has quit []
armyriad has joined #ruby
<jhass> probably
clamstar has quit [Quit: ZNC - http://znc.in]
djbender has joined #ruby
snath has joined #ruby
freggles has quit [Remote host closed the connection]
<jhass> I recall there are some gems that implement threadsafe versions of those
afreidah1 has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
jerius has joined #ruby
dorei has joined #ruby
greggroth has joined #ruby
jerius has quit [Client Quit]
<jhass> hm, thread stdlib was removed from ruby 2.1
<jhass> ?
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 252 seconds]
<jhass> so for < 2.1 there's stuff like http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/Queue.html if that's your usage
arietis has quit [Quit: Computer has gone to sleep.]
amaltson has left #ruby [#ruby]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
<vasilakisFiL> I am using 2.1.1 but nice to know, thanks
<jhass> looks like just the docs broke
sqwirl has joined #ruby
<jhass> so that's in my 2.1.1 still
armyriad has quit [Ping timeout: 240 seconds]
matled- has joined #ruby
mehlah has quit [Ping timeout: 240 seconds]
matled has quit [Quit: leaving]
freezey has quit [Remote host closed the connection]
x1337807x has joined #ruby
nanoyak has joined #ruby
<vasilakisFiL> yeah mine too
enebo has joined #ruby
matled- is now known as matled
jerius has joined #ruby
greggroth has quit [Ping timeout: 240 seconds]
<jeregrine> DouweM: thats really fucking annoying :(
kukyakya has quit [Remote host closed the connection]
<jeregrine> DouweM: maybe I'll just make the request myself
Jon30 has joined #ruby
Monito has joined #ruby
afex has joined #ruby
<DouweM> jeregrine: yeah. just fork it, update the gemfile, check if everything still works, submit PR, and reference your own fork from your Gemfile
Morkel has quit [Quit: Morkel]
matchaw has joined #ruby
rylev has joined #ruby
matchaw_ has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
afreidah1 has joined #ruby
smathieu has quit []
yalue has quit [Quit: Leaving]
shredding has joined #ruby
Tomasso has quit [Ping timeout: 240 seconds]
cover has quit [Read error: Connection reset by peer]
kennym has joined #ruby
gigetoo has joined #ruby
<vasilakisFiL> jhass I add semaphores only in write operations, read operations are thread safe, right ?
freezey has joined #ruby
<jhass> vasilakisFiL: no
<jhass> vasilakisFiL: depending on your case they can be or it doesn't matter
<jhass> in MRI you probably won't see data inconsistencies due to the GVL
rylev has quit [Ping timeout: 255 seconds]
<jhass> still, for your logic an array you're iterating over could be changed by another thread during that while your logic doesn't expect that
toastynerd has quit [Remote host closed the connection]
<jhass> as an example
<vasilakisFiL> hmm ok
dyoko has quit [Quit: Leaving.]
hooper has quit [Ping timeout: 268 seconds]
aspires has quit []
<jeregrine> DouweM: not really as easy as that because it has a dep on faraday_middleware that needs less than 9 too
<DouweM> jeregrine: any chance you can use another foursquare gem?
armyriad has joined #ruby
<jeregrine> yea
<jeregrine> thats where I'm at now
<atmosx> I'm stuck with this issue
<atmosx> I'm giving up on capistrano
<DouweM> what issue?
saarinen has joined #ruby
<jeregrine> DouweM: blehhhh those all haven't been touched in years
toastyne_ has joined #ruby
x77686d has quit [Quit: x77686d]
<atmosx> DouweM: I have 1 failed (exit status: 0) which I have no idea why... and on the server when the app is launched using production env, doesn't load the CSS
<atmosx> DouweM: on dev env, loads the css just fine
ndrei has joined #ruby
<atmosx> the only diff is that localy I use sqlite3 while on production (it's just a RPi local server actually) I use psql
<DouweM> jeregrine: looks like foursquare2 is the most active :/
<jhass> atmosx: rails?
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jeregrine> yea and it has YEARS old pr's as well
<jeregrine> very exciting
okdas_ has quit [Ping timeout: 264 seconds]
<DouweM> atmosx: the people over on #RubyOnRails may be able to help you with that
aspires has joined #ruby
havenwood has quit []
<atmosx> DouweM: nope, I've asked 5 times since the afternoon
bluOxigen has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Quit: tjbiddle]
<atmosx> no one knwos apparently where to dig
<DouweM> atmosx: too bad. I have no experience with Capistrano, so can't help you either :(
<atmosx> someone said something about precompiled assets but... that's not it. Capistrano 3.1 precompield assets remotely by defualt
<atmosx> DouweM: nm thanks
phutchin1 has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
gischy is now known as dyoko
Vovko has quit []
dyoko is now known as gischy
nomenkun has joined #ruby
tjr9898 has quit [Remote host closed the connection]
weaksauce has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
nism has quit [Remote host closed the connection]
tjr9898 has joined #ruby
parduse has quit []
pigzzcanfly has joined #ruby
fgo has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
rdg has joined #ruby
benzrf|offline is now known as benzrf
vpretzel has quit [Quit: Adios!]
chrisseaton has joined #ruby
iceden has joined #ruby
parduse has joined #ruby
vpretzel has joined #ruby
<benzrf> yo
karmatr0n has joined #ruby
<DouweM> lo
nateberkopec has quit [Quit: Leaving...]
Xeago_ has joined #ruby
* benzrf smacks DouweM
eliasp has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
* DouweM purs
* benzrf dons a purple snapback with 'SWAG' written on it in sequences
<jhass> atmosx: no capistrano experiene either, but you do setup a reverse proxy that serves the assets?
<benzrf> *sequins oops
tylersmi_ has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
danman_ has quit [Quit: danman_]
<atmosx> jhass: that was the idea, using nginx but my tests are done running 'puma' manually.
fgo has quit [Ping timeout: 240 seconds]
shinobi_one has joined #ruby
<atmosx> jhass: so not rev proxy involved.
frem_ has joined #ruby
macmartine has joined #ruby
<jhass> atmosx: rails doesn't serve assets in production mode, that's intentional behavior
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago_ has quit [Read error: Operation timed out]
<atmosx> jhass: you're sayint that is to be expected?
<atmosx> what should I do then??
<jhass> setup a reverse proxy that serves them
<atmosx> jhass: hm
okdas_ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
braincra- has joined #ruby
<atmosx> so if I setup nginx properly you're sayung I'll be able to see the CSS?
<jhass> yes
rdg has quit [Quit: ttfn]
toastyne_ has quit [Remote host closed the connection]
<atmosx> where were you all day?
<atmosx> lol
<atmosx> let me give it ag o
okdas__ has joined #ruby
marr has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Read error: Operation timed out]
braincrash has quit [Ping timeout: 252 seconds]
wigg is now known as razrunelord
okdas__ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
x1337807x has joined #ruby
timonv has quit [Remote host closed the connection]
okdas_ has quit [Ping timeout: 240 seconds]
Monito has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
Hobogrammer_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
okdas has joined #ruby
Spami has joined #ruby
Tomasso has joined #ruby
hooper has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
bricker_ has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
bricker_ is now known as bricker`work
kaspergrubbe has joined #ruby
Hobogrammer_ has joined #ruby
bricker has quit [Disconnected by services]
ukd1 has joined #ruby
parduse has quit [Read error: Connection reset by peer]
Guest55922 has joined #ruby
Guest55922 has quit [Read error: Connection reset by peer]
parduse has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
ffranz has quit [Ping timeout: 252 seconds]
<batman> what does the 'and' operator translate to in other programming languages?
ffranz has joined #ruby
<atmosx> &&
greggroth has joined #ruby
alvaro_o_ has joined #ruby
hobodave has joined #ruby
jprovazn has quit [Quit: Odcházím]
gabrielCmendes has quit [Ping timeout: 240 seconds]
hobodave has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
sambao21_ has joined #ruby
Musashi1 has joined #ruby
codeurge has quit [Read error: Connection reset by peer]
gabrielCmendes has joined #ruby
sambao21_ has quit [Client Quit]
codeurge has joined #ruby
ffranz has quit [Excess Flood]
Speed has joined #ruby
macmartine has quit []
platzhirsch has left #ruby [#ruby]
popl has joined #ruby
popl has joined #ruby
<atmosx> jhass: hmm still seeing no css
angusiguess has quit [Ping timeout: 268 seconds]
sambao21 has quit [Ping timeout: 268 seconds]
<atmosx> jhass: running through nginx now
<jhass> and nginx serves your assets?
reset has joined #ruby
<atmosx> yeap it should
jerius has quit [Quit: Computer has gone to sleep.]
<jhass> I think it doesn't
fgo has joined #ruby
Deejay has joined #ruby
hobodave_ has quit [Ping timeout: 268 seconds]
Deejay is now known as Guest63814
<jhass> so share your config
ctp has quit [Quit: Leaving...]
Guest63814 is now known as BinaryTweedDeej
mercwithamouth has joined #ruby
chipotle_ has quit [Quit: cya]
toastynerd has joined #ruby
<jhass> hm, I always forget the matching order of locations
greggroth has quit [Ping timeout: 255 seconds]
<jhass> you can define a named location for the proxy and just use try_files $uri @proxy; though
<jhass> where @proxy is the name of the location
angusiguess has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 240 seconds]
parduse has quit []
<atmosx> jhass: I'll try, but t least you pointed into some direction, I can look into.
<atmosx> ty
benzrf is now known as crasher
crasher is now known as benzrf
<jhass> also make sure public/assets actually exists and has the right files
zachallett has quit [Remote host closed the connection]
parduse has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
alexju has joined #ruby
angusiguess has joined #ruby
nateberkopec has joined #ruby
kith has quit [Quit: kith]
<jrhorn424> is there a convention about choosing a module over a class? i'm never going to have more than one instance, so i thought a module would be fine. then, i started defining attr_accessors on my module and it felt "wrong ®"
jerius has joined #ruby
karmatr0n has joined #ruby
larissa has joined #ruby
<jhass> use modules for namespaces, mixins and collections of utilities that share no state
<DouweM> +1
<benzrf> +1
<benzrf> jrhorn424: use class and include singleton
<DouweM> jrhorn424: if you're gonna have only one instance, you're looking for a singleton
armyriad has joined #ruby
nateberkopec has quit [Client Quit]
guest123 has joined #ruby
beardedninja has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
<jrhorn424> Nice heuristics. Noted and thanks!
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
mansi has quit [Quit: Leaving...]
guest123 is now known as rakm
<jrhorn424> Well, to be honest, I don't even think I need an instance. My module needs both data and behavior, but I'll never instantiate it.
aspires has quit []
taf2 has joined #ruby
alexju has quit [Remote host closed the connection]
<jrhorn424> just do naked calls when needed to do work.
<jhass> get specific, what are you actually doing
<jrhorn424> for reference, i'm doing something a bit different than the global gem. https://github.com/railsware/global
paulfm has quit []
kith has joined #ruby
mansi has joined #ruby
<jhass> I prefer to do stuff like Settings = Configuration.new 'settings.yml'
Tomasso has quit [Read error: Connection reset by peer]
<jrhorn424> i wasn't planning on calling ".new". this module will look for yaml files and persist the values to the database, which could naturally happy at app boot time.
<jrhorn424> ah, jhass that makes sense, too
BinaryTweedDeej has quit [Quit: Textual IRC Client: www.textualapp.com]
<taf2> https://gist.github.com/taf2/9942888 any ideas why i keep getting a 551 error?
<jrhorn424> s/happy/happen
Tomasso has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thesheff17 has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
soahccc has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
Musashi1 has joined #ruby
duggiefr_ has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
davy_ has quit [Remote host closed the connection]
asteros_ has joined #ruby
<taf2> updated the gist with debug output
pigzzcanfly has quit [Remote host closed the connection]
<taf2> get: 551 /test/revenue-example/data-2014-04-02.txt: Error on output file.
<taf2> 551 Error on output file :???
<taf2> put: STOR data-2014-04-02.txt
rylev has joined #ruby
asteros has quit [Ping timeout: 255 seconds]
asteros_ is now known as asteros
<taf2> the helper method to upload via StringIO does not appear to be the issue iether.. i've tried a file directly and it has the same issue
rylev has quit [Read error: Connection reset by peer]
<taf2> also trippled checked iptables and pretty sure outgoing ftp is configured…
<jrhorn424> here's a barebones example of where i started. https://gist.github.com/jrhorn424/9941504
<atmosx> jhass: you're right, nginx doesn't serve the css, it does but it's not accessible heh
<taf2> seems like a ruby issue?
rylev has joined #ruby
armstrjare has joined #ruby
djbender has quit [Quit: djbender]
armyriad has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
<taf2> https://gist.github.com/taf2/9942888 updated again with the ruby stack trace
<taf2> ftp is hard :(
<taf2> it reminds me of windows
jonmorehouse has joined #ruby
<benzrf> taf2: o lord ur right
<taf2> see even in active mode it fails :(
weems has quit [Quit: Leaving]
<jhass> yeah, I usually brute force it. like now I'd try to set binary mode
<taf2> ha
<jhass> or disable it, whatever the default is
<jhass> I'd also double check I've access rights
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevind_ has joined #ruby
sambao21 has joined #ruby
Seldan has joined #ruby
alexju has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 268 seconds]
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
ndrei has joined #ruby
benzrf is now known as benzrf|offline
carraroj has quit [Quit: Konversation terminated!]
ferr has joined #ruby
dx7 has joined #ruby
thesheff17 has joined #ruby
rhys has quit [Ping timeout: 255 seconds]
popl has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<atmosx> jhass: worked!!!!!
<atmosx> yay!
<jhass> atmosx: \o/
bhaak has joined #ruby
<atmosx> jhass: it's 23:07, I started deploying capitrano ta 13:05
niharvey is now known as niharvey|brb
<atmosx> wow
* atmosx happiness
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
dkamioka has quit [Remote host closed the connection]
<jhass> at least you'll never forget that rails doesn't serve you the assets in production. Now that it's working properly: you can actually make it still do that in config/environments/production.rb ;P
nowthatsamatt has joined #ruby
ktosiek has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
danshultz has quit [Remote host closed the connection]
fgo has joined #ruby
danshultz has joined #ruby
<atmosx> jhass: I don't think I will :-P
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
brunops has joined #ruby
<shevy> haha
beneggett has joined #ruby
<shevy> 10 hours!
<jhass> yeah, it's only useful for locally testing prod mode for dev purposes
<atmosx> shevy: yeah, configuration is a bitch if you don't know where to look
freerobby has quit [Quit: Leaving.]
ascarter has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
ascarter has quit [Max SendQ exceeded]
<jhass> taf2: fixed it yet? If not I'd also try using storebinary instead of storelines
dx7 has quit [Ping timeout: 252 seconds]
drewgle has joined #ruby
ascarter has joined #ruby
<jhass> taf2: because digging into the rfc that basically says you're using the wrong TYPE command
<jhass> (551 that is)
mengu has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
karmatr0n has quit [Remote host closed the connection]
WillAmes has joined #ruby
<jhass> hm, nvm it's a different thing
danshultz has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
<jhass> still, using binary mode should circumvent that if I got that right
juanmnl has joined #ruby
JungleG1337 has joined #ruby
<atmosx> going to get some sleep now, later all
michael_lee has quit [Remote host closed the connection]
olivier_bK has joined #ruby
GreatSUN has quit [Ping timeout: 245 seconds]
<JungleG1337> later
toastynerd has joined #ruby
Speed has joined #ruby
<drewgle> Why does "\xA8"=~/\S/ complain about the invalid UTF-8 bytes but the other operators, like ==, don't complain?
yfeldblum has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<jhass> because they don't actually do a match
absolutezeroff has quit [Ping timeout: 268 seconds]
francisfish has quit [Remote host closed the connection]
<jhass> >> "\xA8".match /\S/
<eval-in> jhass => invalid byte sequence in UTF-8 (ArgumentError) ... (https://eval.in/130971)
<jhass> >> "\xA8"[/\S/]
_Andres has joined #ruby
<jhass> >> /\S/ === "\xA8"
<eval-in> jhass => invalid byte sequence in UTF-8 (ArgumentError) ... (https://eval.in/130972)
<jhass> everything that does a match does complain
hermanmunster has quit [Remote host closed the connection]
nateberkopec has joined #ruby
momomomomo has quit [Quit: momomomomo]
<drewgle> OK
toastynerd has quit [Ping timeout: 240 seconds]
<drewgle> Is there any way to query the string to see if matches will fail before attempting it?
JungleG1337 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
<apeiros> drewgle: because == compares data as binary
<drewgle> Any way to query whether a string is encodable, given an encoding?
<apeiros> drewgle: so to ==, encoding doesn't matter
<apeiros> and invalid sequences therefore don't matter either
<jhass> drewgle: .valid_encoding? should do
hakunin has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
<drewgle> Thanks
toastynerd has joined #ruby
<taf2> jhass: no dice with binary either
tjr9898 has quit [Remote host closed the connection]
failshell has quit []
<taf2> thing is it's a 551 so i'm a bit confused finding references to that error code in google is not too good
toastynerd has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
pen has quit [Ping timeout: 240 seconds]
bilbo_swaggins has joined #ruby
<jhass> taf2: have a look at the ftp rfc(s), especially what page type means in the protocol. I've the feeling that net/ftp and your ftp server are incompatible
bilbo_swaggins has quit [Client Quit]
pen has joined #ruby
karmatr0n has joined #ruby
asteros has quit [Quit: asteros]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<taf2> yeah...
pen has quit [Client Quit]
<taf2> thinking about shelling out to curl
<jhass> or a sane protocol, like sftp :P
<taf2> yeah… i don't have a choice… enterprise customers $$$
<taf2> f$p
mattmcclure has joined #ruby
toastyne_ has joined #ruby
taf2 has quit [Quit: taf2]
mehlah has joined #ruby
<horrorvacui> Anyone used subtle wm?
blackmesa has quit [Quit: WeeChat 0.4.3]
userx has joined #ruby
<horrorvacui> Just curious is it any good?
blackmesa has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
absolutezeroff has joined #ruby
habanany has quit [Read error: Connection reset by peer]
bahar has quit [Ping timeout: 240 seconds]
pigzzcanfly has joined #ruby
bahar has joined #ruby
bricker`1ork has joined #ruby
juanmnl has quit [Quit: My dingdong has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
parduse has quit []
Versality has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
bricker`work has quit [Ping timeout: 268 seconds]
yacks has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
pigzzcanfly has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
andrewlio has quit [Remote host closed the connection]
afreidah1 has quit [Ping timeout: 268 seconds]
habanany has joined #ruby
juanmnl has joined #ruby
matcouto has joined #ruby
<shevy> dunno
jhass is now known as jhass|off
shredding has quit [Quit: shredding]
drewgle has quit [Quit: leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<f0ster> does anyone know how i can default to not the latest version of a gem somehow (in my ENV)? with gem or rbenv somehow
contradictioned has quit [Remote host closed the connection]
contradictioned has joined #ruby
workmad3 has joined #ruby
bricker`1ork has quit [Quit: leaving]
railzForDaiz has quit [Quit: railzForDaiz]
<apeiros> f0ster: gem 'gemname', 'versionspec'
<apeiros> in your code
<apeiros> see Kernel#gem for docs
kirun has quit [Quit: Client exiting]
<f0ster> apeiros: not from code though, from command line
<f0ster> e.g. i want to use a diff version of rake
Versality has quit [Remote host closed the connection]
siwica has joined #ruby
<apeiros> with rvm, you could create a gemset
Versality has joined #ruby
<apeiros> I'd assume rbenv has a mechanism too, but I don't use rbenv
Versality has quit [Remote host closed the connection]
Versality has joined #ruby
<f0ster> apeiros: interesting, apparently rbenv says just to use bundler so
CyborgCygnus has joined #ruby
<f0ster> i could change the rake script to use the version i want, but that's ghetto
<apeiros> that's a way too, but it's project specific
mway has quit [Quit: mway]
Versality has quit [Remote host closed the connection]
<f0ster> guess i will jsut type bin/rake since i made binstubs,
Versality has joined #ruby
asteros has joined #ruby
fijimunkii has quit [Ping timeout: 268 seconds]
chichou has joined #ruby
Versality has quit [Remote host closed the connection]
Versality has joined #ruby
Ziarkaen` has quit [Read error: Connection reset by peer]
Versality has quit [Remote host closed the connection]
<workmad3> f0ster: rake _VERSION_ <task>
siwica has quit [Ping timeout: 268 seconds]
<arubincloud> Is the correct solution not Bundler?
Versality has joined #ruby
Galgorth has quit []
Versality has quit [Remote host closed the connection]
<apeiros> oh right, gem binstubs check for that special arg
<apeiros> it's soooo ugly :-S
<workmad3> apeiros: yeah :)
Versality has joined #ruby
monkegji_ has joined #ruby
<apeiros> I'd prefer something like gem -vVERSION rake *args
monkegjinni has quit [Ping timeout: 240 seconds]
<workmad3> if you just want to use the version in your Gemfile though, yeah use the binstub... or rubygems-bundler... or bundle exec... or oh-my-zsh's bundler package...
Versality has quit [Remote host closed the connection]
<apeiros> damn, I hate this…
Versality has joined #ruby
<apeiros> should go to bed and sleep, but don't want to
<apeiros> I feel like a 5y old >:(
<workmad3> apeiros: go to bed and read a good book instead then?
<f0ster> ah yeah workmad3 i want to set the default though, the whole point is i'm too lazy to type bundle exec in front of rake db:create or something
<apeiros> workmad3: can't do that, dave.
<apeiros> when I start to read a book, I read it till the end.
<workmad3> f0ster: well rubygems-bundler and the oh-my-zsh bundler package are both transparent, so you just type 'rake <whatever>' and it'll Just Work(tm)
<f0ster> i guess there really inst a way to do it globally nicely without doing something like changing a shim or the rake script itself
<f0ster> rubygems-bundler ill check it otu
<apeiros> rvm automatically runs it with bundle exec if a Gemfile is detected
<workmad3> apeiros: ah, same as the bundler package then :)
Versality has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
<workmad3> apeiros: hmm... I thought rvm installed rubygems-bundler for you... which rewrites your gem binstubs so that if you invoke a gem binary inside a hierarchy with a Gemfile, it'll use bundler
<apeiros> not sure how it does it
<apeiros> or rather: don't know how it does it :)
devyn_ has quit [Changing host]
devyn_ has joined #ruby
greggroth has joined #ruby
devyn_ is now known as devyn
<workmad3> but needs you to rebuild any previously installed gems... and can also be a PITA if you have gems you install intending them to be global commands, then get a crapout message because it's not in your Gemfile
<workmad3> (some of my old gripes with rubygems-bundler :) )
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brain_shim has joined #ruby
benzrf|offline is now known as benzrf
rm___ has joined #ruby
rm___ is now known as Guest4157
davy_ has joined #ruby
sputnik1_ is now known as sputnik13net
<f0ster> just yet-another-layer-of-wrappers in your path which first takes into account your path and gemfile
<f0ster> I assume*
<workmad3> f0ster: not quite
thesheff17 has quit [Ping timeout: 240 seconds]
<workmad3> f0ster: it's not yet-another-layer, it's replacing the rubygems wrappers with a customised version that's bundler aware (so not an additional layer)
kpshek has quit []
<f0ster> ahh I see
aspires has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
<workmad3> f0ster: the approach I use is the oh-my-zsh package, which provides shell functions for the common commands (rake, rails, etc.) so if they're invoked in a hierarchy with a Gemfile, it'll bundle exec them, otherwise it'll call the original version
rm_ has quit [Ping timeout: 255 seconds]
djbender has joined #ruby
<f0ster> workmad3: ahh.. sounds nicer that it separated actually
<f0ster> but i have bash so i assumed it wasnt relevant
<workmad3> yeah, you could write the functions yourself :)
zigomir has quit [Ping timeout: 240 seconds]
<workmad3> or you could switch to zsh and have awesome tab-completion ;)
<f0ster> which would almost be more productive
Guest47341 has quit [Changing host]
Guest47341 has joined #ruby
ferr has quit [Quit: Leaving.]
<workmad3> f0ster: I think the most awesome tab-completion I've found in zsh so far is for kill... 'kill ruby<tab>' will tab-complete to the pid of ruby processes...
Guest47341 is now known as deepy
<f0ster> interesting
<f0ster> i jsut figure it's taken me so long to learn rudiemntary bash programming, that i might as well stick with it
rainmanjam has quit [Remote host closed the connection]
<workmad3> f0ster: I still script in bash
<workmad3> although most of it is transferrable
<f0ster> ah
<workmad3> just be good with #!/bin/bash at the top of your bash scripts :)
jerius has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
jgrevich has joined #ruby
jgrevich has quit [Client Quit]
klaut has quit [Remote host closed the connection]
fgo has joined #ruby
andy__ has quit [Remote host closed the connection]
frem_ is now known as frem
jerius has joined #ruby
donnoc has joined #ruby
momomomomo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
spstarr_work has quit [Quit: Page closed]
SCommette has quit [Quit: SCommette]
timonv has quit [Ping timeout: 268 seconds]
fgo has quit [Ping timeout: 240 seconds]
wigg has joined #ruby
newUser1234 has joined #ruby
toastyne_ has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<mary5030_> hi anyone know about guard clauses in ruby ?
saarinen has quit [Quit: saarinen]
nowthatsamatt has quit [Quit: nowthatsamatt]
<benzrf> mary5030_: huh?
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
<mary5030_> def foo
<mary5030_> if a?
<mary5030_> b
<mary5030_> elsif c?
<mary5030_> d
<mary5030_> else
<mary5030_> g
<mary5030_> end
<mary5030_> end
<toretore> oh yeah
<mary5030_> i was wondering how i can change this to use a guard claus instead,
yfeldblum has joined #ruby
<mary5030_> can anyone help me use guard clause for this method?
jlast has quit [Remote host closed the connection]
<momomomomo> that was awesome
Photism_ has joined #ruby
<shevy> mary5030_ wrap it in a begin/rescue/end
Guest58121 is now known as guyz
saarinen has joined #ruby
Photism has quit [Ping timeout: 240 seconds]
<benzrf> what is a guard clause
dtcrshr has quit [Quit: Saindo]
guyz is now known as digifiv5e
<shevy> rescue
<benzrf> i only know guards in haskell
<shevy> I know guards in reallife too
<shevy> they stand somewhere and look really stupid
yfeldblum has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sambao21 has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 255 seconds]
dseitz has joined #ruby
dx7 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
jollyy has joined #ruby
monkegjinni has joined #ruby
dx7 has joined #ruby
apeiros has joined #ruby
angusiguess has joined #ruby
Royalb15 has joined #ruby
<mary5030_> shevy: hope this is not silly to ask you how would it look like?
hermanmunster has joined #ruby
<shevy> mary5030_ the part that can fail must be wrapped inside begin rescue
<benzrf> shevy: i do not think that is what mary5030_ is asking about
<benzrf> maybe?
<shevy> mary5030_ the first answer at http://stackoverflow.com/questions/2191632/begin-rescue-and-ensure-in-ruby gives complete examples + explanations
<shevy> benzrf what do you think mary5030_ is asking?
pigzzcanfly has joined #ruby
* benzrf shrugs
DrShoggoth has quit [Quit: Leaving]
<benzrf> iunno
Royalb15_1 has quit [Ping timeout: 252 seconds]
monkegji_ has quit [Ping timeout: 268 seconds]
dx7 has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 255 seconds]
<toretore> mary5030_: it would be easier to answer a question with real code
angusiguess has quit [Ping timeout: 240 seconds]
phantummm has quit [Quit: phantummm]
jamto11 has quit [Remote host closed the connection]
<mary5030_> toretore:
<mary5030_> def failure_reason
<mary5030_> if has_successful_response?
<mary5030_> unavailable_ips_message
<toretore> no
<mary5030_> elsif not_a_network_device?
<toretore> no
<mary5030_> non_network_device_message
<mary5030_> else
<mary5030_> FAILURE_REASON % { output: output, status: status }
<mary5030_> end
<mary5030_> end
<shevy> there, wrap it into begin/rescue inside of that method you just pasted
rayners has quit [Remote host closed the connection]
<toretore> i don't see why you need a guard clause there
<toretore> the code is fine as it is
sambao21 has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
<mary5030_> i was hoping to not have to use elseif
<toretore> because?
geggam has quit [Remote host closed the connection]
<mary5030_> i thought there would be a better way of presenting this
<toretore> it's fine
<toretore> it's readable and it makes sense
<shevy> that code scares me
olivier_bK has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
vasilakisFiL has quit [Remote host closed the connection]
donnoc has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
chris_thomson has joined #ruby
jollyy has quit [Quit: jollyy]
gabrielCmendes has quit [Ping timeout: 255 seconds]
bilbo_swaggins has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
gabrielCmendes has joined #ruby
dkpi has joined #ruby
spyderman4g63 has joined #ruby
EnginA has joined #ruby
habanany has quit [Quit: Leaving.]
spyderman4g63 has quit [Client Quit]
<EnginA> I don't remember if I've installed Ruby manually or not and not sure how to update it now. I'm on Mac and the ruby I'm running is ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
ebwise has quit [Ping timeout: 255 seconds]
<dkpi> I'm not a ruby dev but I try to understand a third party code snippet.
<dkpi> event :idle do
<dkpi> transition :first_gear => :idling
<dkpi> end
pzuraq has joined #ruby
<toretore> state machine
<dkpi> So event is a function that is called with 2 params
<EnginA> It might have come default with Mac, or I could have installed it with brew maybe. My gem version is 2.0.3. Should I update at all?
<pzuraq> is it possible to compare two integers programmatically using send?
bpgoldsb has quit [Ping timeout: 268 seconds]
<dkpi> toretore, yes
<EnginA> (my problem is 'gem install jekyll' failed)
bpgoldsb|too has joined #ruby
<pzuraq> like 1.send('<', 2)
narcan has joined #ruby
<dkpi> why there isn't a comma between `:idle` and `do`
<toretore> >> 1.send('<', 2)
<eval-in> toretore => true (https://eval.in/131021)
<pzuraq> :D
<pzuraq> I love ruby!
<toretore> dkpi: the `do ... end` is special syntax for a "block", which is an anonymous function sent to the method
<benzrf> pzuraq: use symbols tho
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> it only has 1 "regular" argument
<dkpi> ok
<dkpi> any method can receive a block?
dx7 has quit [Remote host closed the connection]
arubincloud has quit []
parduse has quit []
toastynerd has joined #ruby
<toretore> yes
dx7 has joined #ruby
chipotle has joined #ruby
<toretore> `fname(:idle, function(){ transition( .. ) })`
peterhu has quit [Quit: kernel update]
hooper has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> like that, but with special syntax
<dkpi> Thank you
<dkpi> It's nice to be a noob again :)
parduse has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
<benzrf> dkpi: to be precise any method can take a block
rahult has joined #ruby
<benzrf> dkpi: it is handled separately from regular arguments
<benzrf> >> def foo; end; foo() {3}
<eval-in> benzrf => nil (https://eval.in/131027)
cescalante is now known as ce_afk
<dkpi> benzrf, Don't get the def foo; end; foo() {3} example what does it do?
habanany has joined #ruby
peterhu has joined #ruby
newUser1234 has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 268 seconds]
CyborgCygnus has quit [Remote host closed the connection]
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 240 seconds]
<shevy> why can't we include a class
chichou has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
enebo has quit [Quit: enebo]
<EnginA> OK, gem is trying to compile a native extension apparently and it is passing faulty parameters to clang. How do I modify those parameters?
<shevy> benzrf I feel it is time for me to learn a new language
CorySimmons has joined #ruby
angusiguess has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
chrisseaton has quit []
djbender has quit [Quit: djbender]
mehlah has quit [Quit: Linkinus - http://linkinus.com]
SHyx0rmZ has joined #ruby
wallerdev has joined #ruby
beneggett has joined #ruby
maroloccio has joined #ruby
<benzrf> shevy: haskell!
<benzrf> dkpi: sorry
<benzrf> dkpi: the point is that block syntax and block args are entirely separate from regular args
greggroth has quit [Ping timeout: 240 seconds]
<benzrf> dkpi: the block goes /after/ the argument list, including outside parens if you used em
<benzrf> dkpi: and you dont declare it in the arg list, you access it with the yield keyword
<EnginA> what a helpful channel! yay!
<benzrf> although you can also capture it with an &arg
ce_afk is now known as cescalante
chrisseaton has joined #ruby
<benzrf> >> def foo(a, b, &the_block); p the_block; end; foo(1, 2) {bluh}
<eval-in> benzrf => #<Proc:0x4102628c@/tmp/execpad-3d79271d4e41/source-3d79271d4e41:2> ... (https://eval.in/131031)
x1337807x has joined #ruby
<benzrf> dkpi: note that you can use yield to call the given block even if you don't declare an &arg
mehlah has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
CorySimmons has quit [Quit: Bye!]
habanany has quit [Ping timeout: 240 seconds]
<dkpi> benzrf, thank you :)
user has joined #ruby
schmidt has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
user is now known as basichash
duggiefresh has joined #ruby
duggiefresh has quit [Client Quit]
<dkpi> not easy to google this kind of question
<dkpi> now I got it
schmidt has joined #ruby
<basichash> How do I set default ruby to 2.1.1 when it is currently set to 1.9 (ubuntu)?
jrhorn424 is now known as zz_jrhorn424
<benzrf> :)
<benzrf> basichash: use rvm or ruby-install/chruby
narcan has quit [Ping timeout: 240 seconds]
nath_schwarz_ has joined #ruby
brain_shim has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
byennen has joined #ruby
andrewlio has joined #ruby
caustic has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 255 seconds]
caustic has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
Photism2 has joined #ruby
<EnginA> fixed it meh
EnginA has left #ruby ["WeeChat 0.3.7"]
brain_shim has joined #ruby
brain_shim has quit [Max SendQ exceeded]
jollyy has joined #ruby
djbender has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
lmickh_ has quit [Remote host closed the connection]
brain_shim has joined #ruby
locriani has quit [Remote host closed the connection]
<basichash> benzrf: Getting a "Requirements installation failed with status: 100" when trying to install with curl
locriani has joined #ruby
Photism_ has quit [Ping timeout: 240 seconds]
<benzrf> basichash: rvm?
<benzrf> basichash: i dont know much about rvm
jobewan has quit [Remote host closed the connection]
<benzrf> i use ruby-install/chruby myself
<benzrf> they are pretty minimal\
greggroth has joined #ruby
<benzrf> ruby-install is used to automate downloading and building any major version and implementation of ruby
rylev has quit [Remote host closed the connection]
<benzrf> chruby sets envvars and paths to make ruby commands use a given version
dblessing_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<benzrf> i.e.
<benzrf> ruby-install jruby
<benzrf> then
<benzrf> chruby jruby
<benzrf> they work with versions as well as impls
<benzrf> note that there's no automatic cd hooks or anything
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Remote host closed the connection]
dblessing_ has quit [Client Quit]
sent-hil has joined #ruby
locriani has quit [Ping timeout: 265 seconds]
mansi has joined #ruby
dblessing has quit [Ping timeout: 240 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<sent-hil> what does the File object translate to when sent via http?
Es0teric has joined #ruby
<benzrf> sent-hil: can you be more detailed
<sent-hil> I get this output https://www.irccloud.com/pastebin/7NHF096O when I upload a recipe from the engineyard ruby client. I'm unable to understand what #File represents though? I'm trying to export the api via node, not sure what the equivalent is
<sent-hil> benzrf: ^
nath_schwarz_ has quit [Quit: ERROR: User not found(ERRID:201ak234k12)]
mansi has quit [Ping timeout: 240 seconds]
s3ri0us_ has quit [Ping timeout: 255 seconds]
bricker`LA has joined #ruby
<benzrf> sent-hil: it's probably marshalled
<benzrf> have you tried intercepting the output?
juanmnl has quit [Quit: My dingdong has gone to sleep. ZZZzzz…]
<sent-hil> benzrf: no, how would I do that?
tcstar has joined #ruby
davy_ has quit [Remote host closed the connection]
juanmnl has joined #ruby
xibalba has left #ruby ["Leaving"]
Shidash has quit [Quit: Leaving.]
Shidash1 has joined #ruby
phoenixSunset has joined #ruby
sethen has quit [Remote host closed the connection]
caustic has quit []
doodlehaus has joined #ruby
s3ri0us has joined #ruby
<benzrf> sent-hil: try setting it to connect to localhost on a high port, then run netcat there
yfeldblum has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
pwh has quit []
Shidash1 has quit [Ping timeout: 268 seconds]
postmodern has joined #ruby
davy_ has joined #ruby
andrewlio has quit [Quit: Leaving.]
<benzrf> why isnt there a #beingsnootyaboutvideogames
pigzzcanfly has joined #ruby
predator117 has quit [Ping timeout: 268 seconds]
andy__ has joined #ruby
speakingcode has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
predator117 has joined #ruby
francisfish has quit [Ping timeout: 268 seconds]
Shidash has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
wallerdev has quit [Quit: wallerdev]
xcv has joined #ruby
mway has joined #ruby
m8 has quit [Quit: Sto andando via]
pigzzcanfly has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
Stalkr_ has quit [Quit: Leaving...]
banisterfiend has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
pierre1_ has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> because that's just gamers being gamers?
<bilbo_swaggins> to be expected, really
jerius has joined #ruby
mary5030_ has quit [Ping timeout: 240 seconds]
Shidash1 has joined #ruby
Solnse has quit [Quit: Leaving.]
Shidash has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
maroloccio has quit [Quit: WeeChat 0.4.3]
lkba has joined #ruby
banister has joined #ruby
maroloccio has joined #ruby
jollyy has quit [Quit: jollyy]
<bilbo_swaggins> benzrf have you used Sinatra much yet?
<bilbo_swaggins> I'm planning an API for an economy game
<benzrf> yea
<benzrf> ive used sinatra so much dude
<benzrf> its like
<bilbo_swaggins> all interaction will go through HTTP, with JSON for data structures and (possibly something else?) for commands sent from clients
<benzrf> nuts how much ive used it whoa
<benzrf> bilbo_swaggins: use REST
<benzrf> i hear its the best
<basichash> right I've installe rails via ruby install rails, but I can't access it, 'program can not be found'
jollyy has joined #ruby
<benzrf> or maybe hateoas whatever the fuck that is
<benzrf> basichash: i think you mean gem install rails
<basichash> yeah sorry gem*
<benzrf> what are u tryin to run
mary5030 has joined #ruby
<basichash> rails new blog
Geniack_ has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
Geniack has joined #ruby
mikeg has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<bilbo_swaggins> okay I'll have to read some of these pdfs I just got on REST
<bilbo_swaggins> it's not a "understand in 5 minutes" kind of thing
<bilbo_swaggins> It seems to imply not the protocol for use, but rather the way my application is structured to respond to things coming in by it?
<benzrf> roight
<benzrf> it's a way to set up HTTP apis
<bilbo_swaggins> okay thanks I'll read these and keep working on my SWEET VIDEO GAME
<benzrf> :-)
<basichash> benzrf: do I need to install via apt-get?
Martxel has quit [Ping timeout: 268 seconds]
<benzrf> u shouldnt have ot
<benzrf> *t
<benzrf> o
<basichash> don't understand why it can't find the gem
<basichash> i installed rb 2.1.1 via source, installed rbenv, set local to 2.1.1 then installed rails gem, should work
wigg has quit [Remote host closed the connection]
razrunelord has joined #ruby
<basichash> dw, just restarted bash
basichash has quit [Quit: Lost terminal]
<bilbo_swaggins> this project I'm working on is something I've had many false starts with. It started as a something awful forum game, became a card game, then I eventually realized needed to be programmed. And so here I am, 4 years into it, learning to program and all the billion things I need to get this concept off the ground.
<bilbo_swaggins> I *will* be back with questions, to be sure, though some aren't really specifically Ruby-related
chrisseaton has quit []
<bilbo_swaggins> That's why I ask if you have experience desgning APIs in Sinatra
<bilbo_swaggins> or via, I should say
<benzrf> o=
mercwithamouth has quit [Ping timeout: 268 seconds]
<bilbo_swaggins> scope creep used to be a problem, but I have a very solid idea in mind now
<bilbo_swaggins> it's still really hard
dstynchula has quit []
<bilbo_swaggins> I'm just wondering where I might find help resources if I get stuck on issues that aren't really Ruby related
saarinen has quit [Quit: saarinen]
<bilbo_swaggins> like designing game economies, game AI agents to connect via the API, etc
jollyy has quit [Quit: jollyy]
<bilbo_swaggins> books are one thing, but I'm not smart enough to just get everything right
bricker`LA has quit [Quit: leaving]
george2 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
mansi has joined #ruby
<horrorvacui> bilbo_swaggins: check out extra credits on youtube
andy__ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
locriani has joined #ruby
<horrorvacui> It will talk about the theory side that is
Es0teric has quit [Quit: Computer has gone to sleep.]
andy__ has joined #ruby
Es0teric has joined #ruby
<bilbo_swaggins> awesome thanks
<bilbo_swaggins> bookmarked
snath has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
codeurge has quit [Quit: codeurge]
andy__ has quit [Read error: Connection reset by peer]
andy__ has joined #ruby
saarinen has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
ehc has quit [Quit: ehc]
locriani has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
razrunelord has quit []