apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Jetchisel has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
woop has left #ruby [#ruby]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
danshultz has joined #ruby
graft has quit [Ping timeout: 272 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inimit has left #ruby [#ruby]
smathieu_ has joined #ruby
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snuffeluffegus has quit [Quit: Leaving]
Jdubs has joined #ruby
bricker is now known as bricker`away
smathieu has quit [Ping timeout: 272 seconds]
jonathanwallace has joined #ruby
bradhe has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
bradhe has joined #ruby
smathieu_ has quit [Ping timeout: 272 seconds]
jalcine is now known as jalcine_
m00nlight has joined #ruby
lewis has quit [Remote host closed the connection]
funburn has joined #ruby
freezey has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
lewis has joined #ruby
lewis has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 246 seconds]
lewis has joined #ruby
maz-dev has joined #ruby
Spami has quit [Read error: Operation timed out]
Spami has joined #ruby
i_s has quit [Read error: Connection reset by peer]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
b00stfr3ak has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Quit: Leaving.]
nari has quit [Ping timeout: 260 seconds]
lewis has quit [Remote host closed the connection]
einarj has joined #ruby
lewis has joined #ruby
hogeo has joined #ruby
soheil has quit [Read error: Connection reset by peer]
RichardBaker has quit [Quit: RichardBaker]
maz-dev has quit [Ping timeout: 252 seconds]
soheil has joined #ruby
b00stfr3ak has joined #ruby
jlast has joined #ruby
lewis has quit [Ping timeout: 252 seconds]
DonRichie has quit [Read error: Operation timed out]
DonRichie has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
maletor has quit [Quit: Computer has gone to sleep.]
pel_daniel1 has left #ruby [#ruby]
blarghmatey has joined #ruby
lukec has quit [Quit: lukec]
Monie has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
zastern has joined #ruby
IceyEC has joined #ruby
soheil_ has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
orionstein is now known as orionstein_away
soheil has quit [Read error: Connection reset by peer]
peterhu has quit [Ping timeout: 264 seconds]
tjbarber has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
zz_tsykoduk is now known as tsykoduk
freakcult has joined #ruby
<freakcult> hi
bradhe has joined #ruby
huydx has joined #ruby
simplyaubs has joined #ruby
<weeb1e> race conditions.
kaz has joined #ruby
end_guy has joined #ruby
lfox has joined #ruby
Flashmasterson has joined #ruby
<Flashmasterson> how do i create a directory in ruby?
<burlyscudd> Flashmasterson: FileUtils is your friend
bradhe has quit [Ping timeout: 240 seconds]
<burlyscudd> Flashmasterson: there are other ways, but that does lots of great filesystem stuff — worth checking out
monkegjinni has quit [Remote host closed the connection]
<burlyscudd> FileUtils.mkdir works
DonRichie has quit [Quit: Verlassend]
end_guy has quit [Remote host closed the connection]
mrsolo has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mrsolo has joined #ruby
julweber_ has joined #ruby
maz-dev has joined #ruby
thumpba has quit [Quit: thumpba]
brennanMKE has quit [Remote host closed the connection]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Flashmasterson> burlyscudd: ok and to access ruby i just type 'ruby' into my terminal?
brennanMKE has joined #ruby
lembacon has joined #ruby
end_guy has joined #ruby
<burlyscudd> Flashmasterson: do you have it installed?
joshu_ has joined #ruby
capnmalarkey has joined #ruby
duggiefresh has quit [Ping timeout: 272 seconds]
<burlyscudd> Flashmasterson: irb is the command for an interactive session, which is like what you get when you do "python" on the command line w/ a standard install of python
joshu has quit [Ping timeout: 264 seconds]
mmitchell has joined #ruby
joshu_ has quit [Client Quit]
julweber has quit [Ping timeout: 272 seconds]
kaz has left #ruby ["Leaving"]
<Flashmasterson> burlyscudd: yeah i have 2.0 installed and just bought 'the well-grounded rubyist'
<burlyscudd> cool\
monkegjinni has quit [Ping timeout: 272 seconds]
prisoner has joined #ruby
rjhunter has joined #ruby
kaz has joined #ruby
soheil_ has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
theRoUS has joined #ruby
crus has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 272 seconds]
crus has joined #ruby
<kaz> hi am looking for a language that will not be used as webe devenoplennt language but i could use it for other administrative task ..like batch files or quick coding to make something apparenlty in the ystsem
nari has joined #ruby
<kaz> does ruby work with that vs python
baroquebobcat has joined #ruby
<kaz> my main aim right neo is to open a website
<TigerWolf> They can be both used for console scripts
<kaz> whcih has inbuilt chat rosm an forums..users can registeer..buy stuff online from my website and broser collectio oof videos i have
<Flashmasterson> burlyscudd: ok so just type 'ruby' in the terminal and i should be in it?
jlebrech has quit [Ping timeout: 260 seconds]
<TigerWolf> Ruby is fantastic for a website - check out ruby on rails (or sinatra for simple web sites)
bradhe has joined #ruby
<burlyscudd> Flashmasterson: obvious troll is obvious? i just answered your question above and also gave you a good link :-)
<TigerWolf> and both do websites
<burlyscudd> nginx does websites
<burlyscudd> apache does websites
<kaz> yes both do websitea and both awe euqally good at dconsole or OS scirpting ?
<burlyscudd> hell iis does websites
<burlyscudd> :-p
<burlyscudd> lol
kitak has joined #ruby
<burlyscudd> nope
<TigerWolf> but you need html :P
<kaz> i heard alot of people use python ..for like making debuggers like ollydbg
<burlyscudd> rails is the fastest way to prototype something
<burlyscudd> imo
prisoner has quit [Ping timeout: 246 seconds]
<kaz> and for writting quick exploit scanners and other funs tuff
<burlyscudd> you get to probs w/ scale sometimes
baroquebobcat has quit [Client Quit]
<burlyscudd> kaz
<burlyscudd> ok you are speaking my language
mmitchell has quit [Remote host closed the connection]
<burlyscudd> i have to go now but if you are talking scanners/netsec stuff, #metasploit is a good spot to talk if you are interested in doing it w/ Ruby
<kaz> i need to choose one teachnolgy for now ..i heard there are ruby websies that have all the prebuilt things i am hoping for
baroquebobcat has joined #ruby
<kaz> shopping carts , message boards and chat servers
mmitchell has joined #ruby
<burlyscudd> that the world's most famous hacker toolkit is written in Ruby should tell you something
<Flashmasterson> how do i create a directory in ruby?
<burlyscudd> rails (ruby) or django (python) pick your poison
<burlyscudd> ughh someone kickbak Flashmasterson
<burlyscudd> ban
lastk has joined #ruby
burlyscudd has quit [Quit: Leaving.]
crus` has joined #ruby
<lastk> hi guys, i just created a new project with a folder test and inside it a little test, i installed autotest-standalone and I cant see the tests running automatically, any idea?
baroquebobcat has quit [Client Quit]
crus has quit [Ping timeout: 246 seconds]
jlebrech has joined #ruby
Fuzai has quit [Read error: Connection reset by peer]
lukec has joined #ruby
geggam has joined #ruby
benlieb has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
Fuzai has joined #ruby
Fuzai has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
tkuchiki has joined #ruby
soheil has joined #ruby
lethjakman has quit [Ping timeout: 268 seconds]
crus` has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
randomnick_ has quit [Quit: Leaving]
Aryasam has joined #ruby
kaz has quit [Quit: Leaving]
b00stfr3ak has quit [Ping timeout: 272 seconds]
nadirvardar has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Ping timeout: 272 seconds]
soheil has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
IceyEC has quit [Quit: IceyEC]
stonevil has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
Senjai has joined #ruby
bricker`LA has joined #ruby
<Flashmasterson> burlyscudd gave me a website that does not contain instructions on how to create a directory in ruby. this is a very simple question and answer
smathieu has joined #ruby
aspires has quit [Quit: aspires]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
<rjhunter> Flashmasterson: What have you tried so far?
someish has joined #ruby
crus has joined #ruby
btanaka has quit [Remote host closed the connection]
RealMarc has quit [Ping timeout: 272 seconds]
smathieu has quit [Ping timeout: 240 seconds]
rgbdev has joined #ruby
Mars` has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
lyanchih has joined #ruby
<jrobeson> Flashmasterson, you're supposed to try to google first
bricker`LA has quit [Ping timeout: 240 seconds]
<jrobeson> then you come here after that
Mars` has joined #ruby
jonahR has joined #ruby
asteros has joined #ruby
pragmatism has quit [Quit: Peace]
asteros has quit [Client Quit]
jcromart_ has joined #ruby
Mars` has quit [Ping timeout: 246 seconds]
Flashmasterson has quit [Quit: Leaving.]
thesheff17 has quit [Remote host closed the connection]
Guest28413 has quit [Remote host closed the connection]
thesheff17 has joined #ruby
Michael has joined #ruby
tabolario has joined #ruby
Michael is now known as Guest77267
Guest77267 has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
maletor has joined #ruby
jlast has joined #ruby
katsrc has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 248 seconds]
reset has quit [Quit: Leaving...]
reset has joined #ruby
roadt_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
Voodoofish430 has quit [Quit: Leaving.]
brianpWins has joined #ruby
brianpWins_ has joined #ruby
brianpWins_ has quit [Client Quit]
MoRoSKiT has joined #ruby
tjbarber has joined #ruby
tkuchiki has joined #ruby
tsykoduk is now known as zz_tsykoduk
codeFiend has joined #ruby
freerobby has joined #ruby
nwertman has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
rickmasta has quit [Quit: Leaving...]
deception has quit [Quit: Goodbye]
reset has quit [Ping timeout: 248 seconds]
ehaliewicz has quit [Remote host closed the connection]
Flashmasterson has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
nwertman has joined #ruby
MoRoSKiT has quit [Quit: Quitte]
aryaching has joined #ruby
heidi has quit [Quit: Leaving.]
ravster has joined #ruby
ssvo has quit [Ping timeout: 252 seconds]
<Flashmasterson> i tried google and got flooded with jargon i don't understand and lots of steps
huydx has quit [Read error: No route to host]
<Flashmasterson> i bought "the well grounded rubyist" but it doesn't specify how to create a directory on ruby
rickmasta has joined #ruby
<Flashmasterson> or irb, i'm still learning the difference. if one of you could just tell me i can move on with this language that is completely foreign to me
soheil has joined #ruby
<jrobeson> it was foreign to me before.. but i still found how to do it with google
rickmasta has quit [Client Quit]
r0bby_ has joined #ruby
tvw has quit [Ping timeout: 272 seconds]
fijimunkii has quit [Ping timeout: 240 seconds]
<jrobeson> i just found an answer on the very first page of google results
dhilipsiva has joined #ruby
<jrobeson> Flashmasterson, if you think some of that is jargon, then you're gonna have to spend a little time learning that jargon
r0bby_ has quit [Read error: Connection reset by peer]
mj12albert has quit [Ping timeout: 248 seconds]
<Flashmasterson> jrobeson: that's fine man, i'm committing to at least a year of study but i need a little help from people. have you ever called an 800 and received a dozen automated options and solutions that don't fit your simple question? of course ou have, then you either mumble enough to get to the operator or press 0 for him/her
mj12albert has joined #ruby
joshu has joined #ruby
fomatin has joined #ruby
aspires has joined #ruby
r0bby_ has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
<jrobeson> Flashmasterson, i look up stuff and spend an entire day of trying to find an answer sometimes
<jrobeson> even after coding for years
aryaching has quit [Ping timeout: 272 seconds]
soheil has quit [Ping timeout: 265 seconds]
<jrobeson> Flashmasterson, hate ot break it to you.. but i've been doing this for multiple years and i still feel like i don't know anything sometimes :)
<jrobeson> Flashmasterson, so what have you been doing to learn ruby so far? have you tried the ruby koans yet?
Tearan has quit [Quit: Sleepy Badger....]
Mars` has joined #ruby
Nilium has quit [Ping timeout: 264 seconds]
r0bby_ has quit [Excess Flood]
<Flashmasterson> i don't know what that is, i've tried 1.rails for zombies: too complicated right now 2. hartle's pdf and screencasts, also over my head. now i just said fuck it i need to learn the language first so i bought this book and it's been slow but good so far - i just need to know how to make a goddamnit directory through ruby or irb will any of you just spare 3 fucking seconds to type the directions
r0bby_ has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
fuhgeddaboudit has joined #ruby
eightygrit has joined #ruby
Ren has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bradhe has quit [Ping timeout: 256 seconds]
Ren is now known as Guest13089
Ren^ has quit [Read error: Connection reset by peer]
prisoner has joined #ruby
Fuzai has joined #ruby
<tylersmith> what is a 'goddamnit directory'?
<tylersmith> do you mean you want to list the contents of a directory?
maletor has quit [Quit: Computer has gone to sleep.]
<Flashmasterson> no i want to create a directory. i have ruby 2.0 installed as well as irb. how is it done
<Flashmasterson> please
<tylersmith> what have you tried so far?
<tylersmith> have you tried googling 'ruby create directory' and clicking the first stackoverflow link?
bubbajoness has joined #ruby
rgbdev has quit [Quit: rgbdev]
robbyoconnor has joined #ruby
bubbajones has quit [Ping timeout: 264 seconds]
prisoner has quit [Ping timeout: 265 seconds]
Nilium has joined #ruby
<Flashmasterson> tylersmith: makedir_P gives me this NameError: undefined local variable or method `mkdir_P' for main:Object
<Flashmasterson> from (irb):1
<Flashmasterson> from /Users/toreystriffolino/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `<main>'
robbyoconnor has quit [Client Quit]
Mars` has quit [Ping timeout: 260 seconds]
Domon has joined #ruby
ravster has left #ruby [#ruby]
<tylersmith> well that would make sense
<tylersmith> what are you typing?
<weeb1e> Flashmasterson: Ruby methods do not contain uppercase chars by convention
r0bby_ has quit [Ping timeout: 260 seconds]
<tylersmith> it should be: FileUtils.mkdir_p '/a/b/c'
<tylersmith> may want to check that it hasn't changed in 2.0
<tylersmith> but i doubt it
<weeb1e> God what have I gotten myself into with swapping all my synchronous database queries with async fiber based ones
<rjhunter> tylersmith: it hasn't, but FileUtils isn't in core anymore
roflpox has joined #ruby
<jrobeson> weeb1e, pure evil
<weeb1e> So many race conditions to fix :(
roflpox has quit [Client Quit]
<tylersmith> rjhunter: interesting. wish i had the chance to do more ruby 2
<Flashmasterson> tylersmith: now have this NameError: uninitialized constant FileUtils
<Flashmasterson> from (irb):2
<Flashmasterson> from /Users/toreystriffolino/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `<main>'
Michael has joined #ruby
<weeb1e> Flashmasterson: require 'fileutils'
Michael is now known as Guest75492
<weeb1e> tylersmith: As do I
kobain has quit []
zz_tsykoduk is now known as tsykoduk
Mars` has joined #ruby
ioNull has joined #ruby
<weeb1e> I'm starting to think migrating my whole platforms database to MongoDB and sticking with synchronous queries would have been less of a headache
Ahti333 has quit [Quit: Computer has gone to sleep.]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars` has quit [Remote host closed the connection]
<Flashmasterson> weeb1e: enter require 'fileutils' ?
Mars` has joined #ruby
<weeb1e> Flashmasterson: Yes you have to require the fileutils library before you can use it
sailias has joined #ruby
voodoofish has joined #ruby
ItSAN____ has joined #ruby
mary5030 has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
<Flashmasterson> ok irb just said "true"
tkuchiki has quit [Remote host closed the connection]
MoRoSKiT has joined #ruby
3JTAAHLI1 has joined #ruby
<weeb1e> Then it is required, and you can go ahead and use it
ItSANgo has quit [Ping timeout: 268 seconds]
hogeo has quit [Ping timeout: 272 seconds]
Mars` has quit [Ping timeout: 246 seconds]
radic has joined #ruby
jrgarcia has joined #ruby
3JTAAHLI1 has quit [Client Quit]
tkuchiki has joined #ruby
<Flashmasterson> weeb1e: ookk so now enter 'FileUtils.mkdir_p' ? i get this when i do that ArgumentError: wrong number of arguments (0 for 1..2)
<Flashmasterson> from /Users/toreystriffolino/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:197:in `mkdir_p'
<Flashmasterson> from (irb):4
<Flashmasterson> from /Users/toreystriffolino/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `<main>'
ItSAN____ has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
<rjhunter> Flashmasterson: Have you learned enough to guess what "wrong number of arguments" means?
aspires has quit [Quit: aspires]
francisfish has joined #ruby
radic_ has quit [Ping timeout: 264 seconds]
<Flashmasterson> rjhunter: no i'm not even half way through chapter 1 man, i skipped ahead to the section about ri and RDoc and that was a mistake
eka has quit [Quit: Computer has gone to sleep.]
<rjhunter> Flashmasterson: It sounds like you might be trying to run before you can walk :-(
<weeb1e> Go back to the beginning
ZhBPi has joined #ruby
zeade has joined #ruby
rickmasta has joined #ruby
<Flashmasterson> yeah i did. i'm at the beginning. the beginning says to create a directory so i can store all of my sample code. how do i create a directory? it doesn't say
<Flashmasterson> everyone in this room knows how to do that
<rjhunter> Flashmasterson: you don't need to use Ruby to make a directory
tjbarber has joined #ruby
francisfish has quit [Remote host closed the connection]
<Flashmasterson> that's not the point. i'm going to use Ruby because that's what i'm trying to learn how to use
<jrobeson> they don't mean use ruby to do it
francisfish has joined #ruby
<Flashmasterson> ok then what do 'they' mean and how do i make a directory.
kreeves has joined #ruby
Shidash has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
<rjhunter> Flashmasterson: you can use whatever tools you normally use -- Windows Explorer (File -> New Folder), the Mac Finder (File -> New Folder), the Unix `mkdir` command...
francisfish has quit [Ping timeout: 256 seconds]
jean_ has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
MoRoSKiT has quit [Ping timeout: 240 seconds]
jrgarcia has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
codeFiend has quit [Quit: codeFiend]
nullobject has joined #ruby
<tjbarber> how would you make a game like nethack in ruby?
jake has joined #ruby
<tjbarber> any gems for that kind of cli "terminal manipulation"?
greenride has joined #ruby
patricklamoreux has joined #ruby
<gf3> You can't because ruby is dead
jake is now known as agent_white
<weeb1e> Flashmasterson: If they wanted you to use ruby to create the directory, they would have told you how to do it. Use common sense man
<tjbarber> Ruby Curses?
<Flashmasterson> weeb1e: no, they would have done exactly what they did and said 'google it first then come here'
<weeb1e> tjbarber: That should do the job
<tjbarber> weeb1e thanks
<greenride> Is there an automated tool that allows one to determine if 2 ruby functions are equivalent?
<weeb1e> greenride: What are you really trying to accomplish?
osvico has joined #ruby
<weeb1e> Flashmasterson: Then I think you are starting with the wrong ruby book
jean_ has quit [Read error: Connection reset by peer]
ChronocityLC has joined #ruby
<rjhunter> Flashmasterson: Even "Learn Ruby The Hard Way", one of the most deliberately step-by-step hand-holding guides around, includes the following step in "Exercise 0: The Setup" -- "Learn how to make a directory in the Terminal. Search online for help."
<weeb1e> Flashmasterson: I recommend starting with http://tryruby.org and then read http://mislav.uniqpath.com/poignant-guide/
<greenride> I'm looking at two projects. One was generated from the other via a massive cut & paste job. I want to know the actual differences.
tjbiddle has joined #ruby
patricklamoreux has quit [Client Quit]
<weeb1e> Or maybe what rjhunter suggested is even better for an absolute beginner, I'm not sure
<greenride> weeble: I'm looking at two projects. One was generated from the other via a massive cut & paste job. I want to know the actual differences.
ioNull has quit [Ping timeout: 248 seconds]
<weeb1e> greenride: What you are talking about is a diff
<weeb1e> Which is not language specific
<weeb1e> It is generally used by version control systems
<weeb1e> But you can use a standalone diff tool
<greenride> weeble: After the cut & paste, one project was modified. variables renamed and control structures modified at a superficial level.
<greenride> and there's no version control
aspires has joined #ruby
burlyscudd has joined #ruby
<rjhunter> greenride: If you're OK with comparing the text, the "diff" that weeb1e is talking about will do the job. "Diff" tools compare two files (or two directories) and show the differences in various ways
patricklamoreux has joined #ruby
burlyscudd has quit [Client Quit]
<weeb1e> If the code was heavily modified, a diff isn't going to work all that great, but it is still your best option
<greenride> rjhunter: I know what diff does.... I'm looking for something more like a refactoring tool
ioNull has joined #ruby
burlyscudd has joined #ruby
Flashmasterson has quit [Quit: Leaving.]
<rjhunter> greenride: If you're looking for an AST comparison, Ruby tooling isn't so great in that regard.
<weeb1e> The only other option would be parsing the code and comparing an abstract version of it, which would not exactly be easy on the eyes
<weeb1e> Yeah, parsing it is AST is what I mean
<weeb1e> *parsing it to AST
<greenride> what does AST stand for?
<weeb1e> Abstract Syntax Tree
ewnd9 has joined #ruby
fomatin has joined #ruby
<weeb1e> greenride: You're pretty much better off with a diff
eka has joined #ruby
* weeb1e really needs to stop procrastinating and fix some race conditions
<jrobeson> when i run into something like that.. i just do basic cleanups on the sucky side.. rename the vars, fix up the spacing, see how it looks
sailias has quit [Ping timeout: 272 seconds]
<weeb1e> Yeah, that is pretty much the only viable option
* rjhunter nods in agreement.
<greenride> Thanks for the suggestions
<weeb1e> Anyone here familiar with the activerecord internals?
<weeb1e> If not, it's fine and I'll continue reading though the source, but maybe someone could save me some
<rjhunter> weeb1e: I used to be
<weeb1e> save me some time
<weeb1e> rjhunter: The transaction stuff specifically
<greenride> weeble: I've looked at them for some problems. What in particular are you looking for?
deeepblue has joined #ruby
mansi has joined #ruby
<rjhunter> hmm, try me, but that's changed a bit since I was deeply familiar
<weeb1e> I just started looking at the source, and I presume starting a transaction for each update query delays setting the attribute with the setter method until the transaction has started
<weeb1e> Which would explain a bunch of my race conditionms
<weeb1e> *conditions
mansi has quit [Remote host closed the connection]
<weeb1e> I basically want to patch it to set those attributes on the model instance before even starting the transaction, since being the only single threaded application accessing the database, transactions will never fail
mansi has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<weeb1e> Does that make any sense? :P
jlast has joined #ruby
<rjhunter> weeb1e: not just yet, I'm just re-reading it to see if it gels this time :-)
heftig has quit [Quit: Quitting]
soba has joined #ruby
heftig has joined #ruby
jlast has quit [Remote host closed the connection]
soba_ has joined #ruby
<weeb1e> with_transaction_returning_status do
<weeb1e> self.assign_attributes(attributes, options)
mary5030 has quit [Remote host closed the connection]
<weeb1e> Firstly I'm presuming with_transaction_returning_status starts a transaction, which delays assign_attributes until the database responds
mary5030 has joined #ruby
<weeb1e> Which means that another fiber that checks the attribute between an update being called, and the transaction starting does not see the attribute as been set yet
mansi has quit [Ping timeout: 248 seconds]
<weeb1e> The instance of the model is cached and read from without a query, so I want the attribute set instantly, without any delay
<rjhunter> gotcha
i8igmac has quit [Quit: Leaving]
<weeb1e> Maybe it would make more sense to just disable transactions completely?
soba has quit [Ping timeout: 246 seconds]
<rjhunter> that's probably more practical in your case :-(
beilabs has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
<weeb1e> But then that could cause another issue, if any other instance of the model is used for updates
beilabs has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
<weeb1e> Which is less likely, but still possible due to legacy code, such as calling .reload on the model from within a delayed callback
<weeb1e> God this is a pain
shevy has quit [Read error: Connection reset by peer]
soba_ has quit [Read error: Connection reset by peer]
<weeb1e> I guess the best option is disable transactions and carefully go though every piece of code which may save anything and make sure it doesn't screw anything up
<weeb1e> The total platform is pretty big, but it's 4:45am so I have at least 6 hours before users start using stuff
Senjai has quit [Disconnected by services]
<rjhunter> this is live?! argh
Senjai_ has joined #ruby
rezzack has quit [Ping timeout: 272 seconds]
DonRichie has joined #ruby
mary5030 has joined #ruby
<weeb1e> Yeah, I took a pretty big leap of faith swapping out all synchronous sql queries with fiber based mysql2 driven ones 2 days ago :P
drumsrgr8forn8 has joined #ruby
<weeb1e> It took hours to wrap everything obvious in fibers and fix noticable bugs... I'm actually surprised there isn't more stuff broken, and that it took almost 2 days for the first serious race conditions to surface
ewnd9 has quit [Ping timeout: 272 seconds]
<rjhunter> I'd consider generating excess load in a prod-like environment to try surfacing leaks and race conditions
<weeb1e> That is pretty tough
dshep has joined #ruby
<weeb1e> One other question, does save() ie. update() generate a query which only updates the dirty attributes?
freerobby has quit [Quit: Leaving.]
<weeb1e> Activerecord doesn't update all the models attributes surely? Only the ones that have changed
<rjhunter> weeb1e: it used to last time I was deeply familiar -- I think that's still true
<weeb1e> Ok
Xaitec has joined #ruby
Xaitec has quit [Remote host closed the connection]
gja has joined #ruby
aryaching has joined #ruby
tjbarber has quit [Quit: Textual IRC Client: www.textualapp.com]
astrobunny has quit [Ping timeout: 272 seconds]
zeade has quit [Quit: Leaving.]
i8igmac has joined #ruby
i8igmac has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
bigmac has joined #ruby
bigmac is now known as i8igmac
ner0x has quit [Quit: Leaving]
i8igmac has quit [Client Quit]
sergicles has joined #ruby
bigmac has joined #ruby
bradhe has joined #ruby
io_syl has quit []
bigmac is now known as i8igmac
astrobunny has joined #ruby
Senjai_ has quit [Remote host closed the connection]
lewis has joined #ruby
<weeb1e> Just figuring out how to disable transactions is not too straight forward :/
<weeb1e> It seems to be driver specific, and I'm using mysql2
raphaelivan has quit [Quit: Leaving.]
bradhe has quit [Ping timeout: 265 seconds]
cody-- has joined #ruby
aapzak has quit [Ping timeout: 268 seconds]
astrobunny has quit [Ping timeout: 246 seconds]
aapzak has joined #ruby
fumduq has quit [Remote host closed the connection]
havenwood has joined #ruby
codeFiend has joined #ruby
soba has joined #ruby
Ahti333 has joined #ruby
astrobunny has joined #ruby
renanoronfle has joined #ruby
petey has joined #ruby
general|fedora has joined #ruby
Mars` has joined #ruby
kitak has quit [Remote host closed the connection]
fadethejedi has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
nadirvardar has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
sevenseacat has joined #ruby
rahult has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
DanKnox is now known as DanKnox_away
freerobby has joined #ruby
fadethejedi has quit [Quit: Page closed]
freerobby has quit [Client Quit]
benlieb has quit [Quit: benlieb]
krz has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
Flashmasterson has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
samsonasu has joined #ruby
<Flashmasterson> having trouble changing directories. 'tried "cd ~folder" and "ruby ~/folder"
<Flashmasterson> with the actual folder name of course
plotter has quit [Remote host closed the connection]
kilophoton has joined #ruby
blarghmatey has quit [Remote host closed the connection]
samsonasu has quit [Remote host closed the connection]
samsonasu has joined #ruby
<rjhunter> Flashmasterson: In Unix, the ~ means "home directory" or "user's folder". "~john" means john's home directory. "~/Downloads" means the folder called Downloads in the current user's home directory
funburn has quit [Quit: funburn]
Spami has joined #ruby
nateberkopec has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
dshep has left #ruby ["WeeChat 0.4.2"]
io_syl has joined #ruby
<Flashmasterson> hmm.. well this folder is called 'rubysamplecode' and it's in /documents/ruby stuff/. but trying ~/rubysamplecode doesn't get me to it
tomoyuki28jp has joined #ruby
<Flashmasterson> i think i'm misunderstanding your message
<tomoyuki28jp> proc and lambda, which one runs faster?
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funburn has joined #ruby
funburn has quit [Client Quit]
<rjhunter> tomoyuki28jp: Trick question because if you're worried about performance details at that level, you're using the wrong language?
luckyruby has joined #ruby
stkowski has joined #ruby
peterhu has joined #ruby
<rjhunter> Flashmasterson: "/documents/ruby stuff/rubysamplecode" and "~/rubysamplecode" are two quite different paths
<tomoyuki28jp> rjhunter: uhm? I just wonder which one works faster when we can use either one.
<rjhunter> Flashmasterson: If you're using Mac OS X, you can drag a folder from Finder to the Terminal to see the path
<tomoyuki28jp> https://www.ruby-toolbox.com/ is down..
<Flashmasterson> rjhunter: that's very helpful, thank you
mary5030 has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
dkamioka has joined #ruby
Flashmasterson has quit [Read error: Connection reset by peer]
Flashmasterson1 has joined #ruby
marcdel has joined #ruby
<sevenseacat> what makes you think you can just change the path to use ~ ?
<Flashmasterson1> rjhunter: but now it's just saying "is a directory" when i enter the path
<sevenseacat> did you forget the cd at the front?
ssvo has joined #ruby
<rjhunter> that's right -- without any command (like "cd" or "ls"), your shell is trying to run that directory as if it were a program
<Flashmasterson1> ahhh i see, i'll add that now
<rjhunter> because it's not a program, you see the error "is a directory"
lastk has quit [Quit: Leaving]
someish has quit [Quit: someish]
fomatin has quit [Quit: Computer has gone to sleep.]
<Flashmasterson1> ok i entered 'cd ~/Users/toreystriffolino/Documents/Ruby\ Stuff/rubysamplecode' and got 'no such file or directory'
<sevenseacat> again, what makes you think you can just add ~ to it
<sevenseacat> thats an absolute file path
jerius has quit []
<Flashmasterson1> i don't know i'm ver new to this, just trying to go step by step with 'the well-grounded rubyist'
<sevenseacat> do you have a Users folder in your home directory?
<Flashmasterson1> *very
<sevenseacat> the well-grounded rubyist assumes you can use a computer
Spami has quit [Quit: Leaving]
<Flashmasterson1> you don't need to be condescending, i'm trying to learn a new language here
<sevenseacat> your problems are nothing to do with the language
<sam113101> it also assumes you've done a bit of programming in the past, in a different language
brennanMKE has quit [Remote host closed the connection]
<tomoyuki28jp> according to my benchmark, lambda was faster than proc.
<Flashmasterson1> well i haven't so i guess i'll just return it
kitak has joined #ruby
<sam113101> it's one of my favorite book
<sam113101> because it's concise and explains everything
<Flashmasterson1> listen, i just want to change the directory to 'rubysamplecode' and check for syntax errors
Davey has quit [Quit: Computer has gone to sleep.]
<Flashmasterson1> yes it's been very helpful so far, the only problems i have come when i enter this chat for help
<Flashmasterson1> i just want to change the directory to 'rubysamplecode' and check for syntax errors
Fire-Dragon-DoL1 has joined #ruby
<krz> how can i refactor this code: https://gist.github.com/7002375
Fire-Dragon-DoL has quit [Ping timeout: 272 seconds]
<krz> should i be using dynamic setter/getter methods?
lewis has quit [Remote host closed the connection]
lewis has joined #ruby
<krz> perhaps leverage on no method found?
<jrobeson> Flashmasterson1, it's just that most people think you should know a bit about the command line before programming ruby
<sevenseacat> so you know the folder the code is in, don't add the ~, cd to it, run the command you need to run
<jrobeson> that is.. you're a step too deep atm
<samsonasu> krz: method_missing is probably overkill here, I'd start with refactoring the set methods to be like def user=(user) instead of set_user_id
<jrobeson> oh noes a sevenseacat appears
<sevenseacat> jrobeson: aloha
<jrobeson> scary music is playing
kofno has quit [Ping timeout: 260 seconds]
aspires has quit [Quit: aspires]
<rjhunter> krz: the first thing I'd do is consider that `session[:user]` is used heavily, so I'd extract that to a method
<jrobeson> sevenseacat, guten tag
<samsonasu> krz: https://gist.github.com/samsonasu/7002403 is more ruby-ish
nisstyre has joined #ruby
aspires has joined #ruby
astrobun_ has joined #ruby
<Flashmasterson1> sevenseacat: ok i ran '-cw c2f.rb' and got 'command not found'
asteros has joined #ruby
Eaven has joined #ruby
<krz> kk
<sevenseacat> what the
<sevenseacat> i think you're missing the command
<sam113101> lawl
<krz> rjhunter: good point too
<sam113101> ^_^
dhruvasagar has quit [Read error: Operation timed out]
<Flashmasterson1> sevenseacat: i thought 'cw' was a command
jalcine_ is now known as jalcine
<sevenseacat> it might be, but -cw definitely isnt
<krz> rjhunter: as a private method
lewis has quit [Ping timeout: 256 seconds]
Eaven has quit [Remote host closed the connection]
<Flashmasterson1> ok i'm confused
joshwines_ has joined #ruby
<Flashmasterson1> what is the command to run a syntax error check
<sevenseacat> what does the book say to run?
<sam113101> it's still ruby
<sam113101> but you pass arguments to it
tomoyuki28jp has left #ruby ["Killed buffer"]
<sam113101> ruby -cw file.rb
* sam113101 checks ruby's manual
<Flashmasterson1> sam113101: ok i got this "No such file or directory -- c2f.rb (LoadError)"
astrobunny has quit [Ping timeout: 272 seconds]
<Flashmasterson1> sevenseacat: the book says to run
<Flashmasterson1> : ruby -cw c2f.rb
<sevenseacat> so why did you leave the ruby off the first time
<sam113101> is there a c2f.rb file? lol
<Flashmasterson1> yes there is
<sevenseacat> do you have a c2f.rb file in this folder?
<Flashmasterson1> yes
<sam113101> Flashmasterson1: I don't believe it
<sevenseacat> ^
<sam113101> prove it
cody-- has quit [Quit: derp]
<sam113101> type "ls -la" and take a screenshot
<Flashmasterson1> ok
<krz> samsonasu: why do you suggest passing the entire object for the setter methods?
<krz> why not just pass the id value?
tsykoduk is now known as zz_tsykoduk
<sam113101> btw
<samsonasu> krz: symmetry. you have a method that gets the user and a method that sets the user
<sam113101> if you're running c2f, why would it load itself?
<samsonasu> krz: you could also do some caching in the setter this way and skip a round trip to the database if you wanted
burlyscudd has quit [Quit: Leaving.]
v9r has joined #ruby
<Flashmasterson1> sam113101: well c2f isn't a program, it's a file
dkamioka has quit [Read error: Connection reset by peer]
dkamioka_ has joined #ruby
<Flashmasterson1> sam113101: here is the git screenshot https://gist.github.com/anonymous/7002469
<krz> sam113101: but the getter method returns the user object. the setter method only sets the user id
<krz> shouldnt it be user=(user_id)
<sam113101> I see no c2f method
<sevenseacat> so thats a yes, there is no c2f.rb file
<krz> or even user_id=(user_id)
<sam113101> s/method/file/
blischalk has joined #ruby
<sevenseacat> you're still not in the right folder
<samsonasu> krz: it could be, but what's the context? If you have a method that returns a user, it just implies it might be useful to have a method that accepts a user
marcelo-lipiensk has quit [Remote host closed the connection]
<sam113101> "why can't I run the file?" "there's no such file"
<Flashmasterson1> wrong. i can see it in my finder window but i still can't change the directory to the folder it's in
<krz> sam113101: well not really. two different contexts. one returns the user object from the db. the other one sets the user id on the session
<sam113101> krz: who are you?
<sevenseacat> why cant you change to the directory its in?
robbyoconnor has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<krz> plus, if i only need the id value. passing an entire object would be overkill no?
<sam113101> are you sure you're talking to the right person?
<Flashmasterson1> sevenseacat: i'm stuck in 'Macintosh:~ toreystriffolino$'
<krz> samsonasu: ^^
<sevenseacat> Flashmasterson1: so why cant you change to the directory its in?
<sam113101> I guess that's better
<samsonasu> krz: if you really want to just set the user_id, go for it. just saying the api is cleaner if its symmetric
<Flashmasterson1> sevenseacat: i tried dragging it again, so i'll try the check again
deception has joined #ruby
ffranz has quit [Quit: Leaving]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Flashmasterson1> sevenseacat: now it says that the folder is a directory, but it's still not replacing "Macintosh:~ toreystriffolino$" followed by the prompt thing
<sevenseacat> because you forgot the cd at the front again
fijimunkii has joined #ruby
zigomir has joined #ruby
marcdel has joined #ruby
<krz> samsonasu: i know we are only talking about one class here. but if i were to pass the entire object as an arguement (i.e. user=(user), instead of just the value (user_id=(user_id)). is there much of a performance impact?
<Flashmasterson1> sevenseacat: ok so "cd /Users/toreystriffolino/Documents/Ruby Stuff/rubysamplecode" ?
aspires has quit [Quit: aspires]
<sevenseacat> if thats where the code is, yes
<krz> if i follow the pattern of passing objects as arguements, when i only need the value(s) for this class. then its likely this pattern will be followed for other classes
<krz> samsonasu: which one is more resourceful?
<sevenseacat> you're always passing objects as arguments
<sevenseacat> welcome to an object oriented language :P
<samsonasu> yeah, big object little object same diff it's all just a pointer
<sam113101> Flashmasterson1: beware, there's a space in the path
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
<krz> so passing objects is fine?
<sam113101> you must but it inside quotes or escape the space
<krz> i mean, is the convention?
<sam113101> Ruby\ Stuff
JohnBat26 has joined #ruby
<samsonasu> krz: guaranteed you get more performance saving database lookups
<Flashmasterson1> sam113101: thanks i saw, but sevenseacat gave it the 'ok'
lfox has quit [Quit: ZZZzzz…]
<sevenseacat> i didnt see the space
<sam113101> sevenseacat: what are you doin
ehaliewicz has joined #ruby
<sam113101> >(
<krz> yea will defo cache the db lookup. possibly via redis
<sevenseacat> i assume people dont put spaces in folder names
asteros has quit [Quit: asteros]
<sam113101> I do put spaces in folder and file names, even non-ascii characters
<sevenseacat> then he's all yours
aspires has joined #ruby
<Flashmasterson1> ok i want to change directory to " /Users/toreystriffolino/Documents/Ruby Stuff/rubysamplecode". once and for all how do i do this
<sam113101> what?
<sam113101> no!
skoovdebo has joined #ruby
<sam113101> you cd to it
<Flashmasterson1> show me the exact command, i keep fucking it up and going nowhere
funburn has joined #ruby
<Flashmasterson1> i know i cd to it, it's the syntax i'm looking for
<sam113101> it's "cd path"
<sam113101> there's no syntax… lol
<sam113101> cd "/Users/toreystriffolino/Documents/Ruby Stuff/rubysamplecode"
hogeo has quit [Remote host closed the connection]
maz-dev has quit [Ping timeout: 260 seconds]
St_Marx has joined #ruby
plotter has joined #ruby
<luckyruby> is there a simpler way than a gsub to convert "09:30 PM" to "9:30 PM"?
ChronocityLC has quit [Ping timeout: 241 seconds]
<Flashmasterson1> ok i just entered "cd /Users/toreystriffolino/Documents/Ruby Stuff/rubysamplecode" like you said and it said no file or directory
polaco is now known as polaco_zZz
<rjhunter> Flashmasterson1: watch your quotes
<sam113101> strip teh first letter?
<sevenseacat> thats not what he said
Jdubs_ has joined #ruby
<Flashmasterson1> i didn't put the quotes in
<sevenseacat> exactly
SilverKey has joined #ruby
<Flashmasterson1> goddamnit, finally
<Flashmasterson1> thank you
<rjhunter> Flashmasterson1: You'll find that punctuation, including spaces and even capital letters, is very important in Unix (Terminal) and Ruby
osvico has quit [Ping timeout: 265 seconds]
<sam113101> Change directory: ✔
<Flashmasterson1> rjhunter: yeah, nothing can be left out
<Flashmasterson1> it's a science
St_Marx has quit [Client Quit]
<sam113101> it's not over
<Flashmasterson1> not a method of approximation
<sam113101> you gotta run commands and stuff!
St_Marx has joined #ruby
<Flashmasterson1> that's fine i'll learn from black's book
tonni_ has quit [Ping timeout: 272 seconds]
St_Marx has quit [Client Quit]
sosedoff has quit [Read error: No route to host]
<Flashmasterson1> syntax OK. mission accomplished, i can go to bed now. thanks for putting up with me all
Jdubs has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
Flashmasterson1 has quit [Quit: Leaving.]
<sevenseacat> that was awesome.
saarinen has joined #ruby
St_Marx has joined #ruby
<sam113101> Check syntax: ✔ (task completed, 00:14 AM, 3 hours elapsed)
tonni has joined #ruby
<rjhunter> I'm impressed at Flash's tenacity.
<sevenseacat> i probably would have given up long before that
<sam113101> I would have given up loooong ago
<sam113101> although I give up on more complicated things, usually
kofno has joined #ruby
lyanchih has quit [Quit: lyanchih]
marcdel has quit [Ping timeout: 240 seconds]
<rjhunter> sam113101: changing directory was pretty complicated for the level that flash is at
francisfish has joined #ruby
gyzmodo has joined #ruby
deception has quit [Quit: Goodbye]
marcdel has joined #ruby
zxq9 has quit [Remote host closed the connection]
<sam113101> how did he find his way on irc, though? lol
sergicles has quit [Quit: sergicles]
funburn has quit [Quit: funburn]
Ahti333 has quit [Read error: Connection reset by peer]
<sam113101> well, I must admit that with webchat these days, click click click, real easy man
<rjhunter> I wonder if one of the tutorials (or even that book) suggested to come here?
<sam113101> I have the book, let me check
bricker`LA has joined #ruby
nignaztic has joined #ruby
Ahti333 has joined #ruby
francisfish has quit [Ping timeout: 260 seconds]
zz_michael_mbp is now known as michael_mbp
brennanMKE has quit [Ping timeout: 272 seconds]
DanKnox_away is now known as DanKnox
mary5030 has quit [Remote host closed the connection]
<sam113101> so, but #ruby-talk is mentioned
<sam113101> and he doesn't really say how to get there
mary5030 has joined #ruby
nazty has quit [Ping timeout: 240 seconds]
<sam113101> I read the book and love it, but it's not really beginner-friendly
soba has quit [Ping timeout: 252 seconds]
stormbytes has joined #ruby
<stormbytes> hello folks
<stormbytes> workign through a basic rack tutorial, when i type 'rackup' the server loads up on port 9292 but how can i get rack to put out a mesage to the terminal?
Dreamer3 has quit [Quit: Leaving...]
funburn has joined #ruby
<rjhunter> stormbytes: you can use a simple "puts" in your code if you like
tjbiddle has quit [Quit: tjbiddle]
Ahti333 has quit [Ping timeout: 272 seconds]
<stormbytes> where?
<stormbytes> i've got a basic 'hello' class in my config.ru
michael_mbp is now known as zz_michael_mbp
varfoo has joined #ruby
<weeb1e> stormbytes: Anywhere!
<stormbytes> hmm just 'puts' ?
<stormbytes> anywhere in the file??
<weeb1e> puts "hello world"
<rjhunter> stormbytes: move it around and see what it does
<weeb1e> rjhunter: I'm still worrying a little about disabling transactions
mary5030 has quit [Ping timeout: 260 seconds]
fenec2 has quit [Ping timeout: 245 seconds]
<stormbytes> i'm confused
<stormbytes> here's my config.ru
soba has joined #ruby
<rjhunter> weeb1e: yeah, it sounds like you're caught between a rock and a hard place
<weeb1e> rjhunter: Well it's too late to go back now
<weeb1e> I'm just not too sure if multiple async queries could cause an issue without transactions
mark06 has joined #ruby
<weeb1e> I'm really not sure how MySQL handles queries, and where exactly transactions would be neccesary outside of a threaded environment
<rjhunter> stormbytes: try adding `puts "hello"` on a line by itself anywhere in that file -- trial and error will make more sense than anyone explaining it
<stormbytes> ok, will do
Vivekananda has quit [Remote host closed the connection]
<weeb1e> stormbytes: It's pretty simple, the call method is called to process your request, and everything else is called when you first start your application
<weeb1e> So if you put the puts line inside the call method it will execute whenever there is a request, and I'm hoping you can guess what will happen putting it anywhere else
parzo has joined #ruby
<weeb1e> But as rj suggested, the best way to learn anything is with trial and error
<stormbytes> ok so... i added 'puts "hello"' and all it does is outputs hello to the stdio
zz_tsykoduk is now known as tsykoduk
<weeb1e> That is what you asked for
<stormbytes> that's not what i asked
codeFiend has quit [Read error: Connection reset by peer]
<weeb1e> "how can i get rack to put out a mesage to the terminal?"
<rjhunter> sorry, that's what I thought you asked for
<weeb1e> rjhunter: That is what he asked for, it just doesn't sound like he asked for what he really wanted
<stormbytes> no, i want to know why rackup isn't outputing what my tutorial says i should get : [2012-12-21 17:48:38] INFO  ruby 1.9.2 (2011-07-09) [x86_64-darwin11.0.1]
<stormbytes> [2012-12-21 17:48:38] INFO  WEBrick::HTTPServer#start: pid=1597 port=9292
<stormbytes> or something along those lines
Ahti333 has joined #ruby
maz-dev has joined #ruby
<stormbytes> after i hit 'rackup' i just get a blinking cursor. When i go to localhost:9292 i get the app.. but why not notification that webrick or whatver is running? (in the terminal i mean)
io_syl has quit []
<weeb1e> Add use Rack::CommonLogger
tejas has joined #ruby
tejas has joined #ruby
<weeb1e> to your second last line
gja has quit [Read error: Connection reset by peer]
Guest4740 has joined #ruby
<stormbytes> ahh oki doke
<stormbytes> no change..
<stormbytes> nada... just the blinking cursor
saarinen has quit [Quit: saarinen]
<weeb1e> I guess it's the web server you are using then, not completely sure
fomatin has joined #ruby
<rjhunter> stormbytes: Do you get different results with `rackup --server webrick`?
<weeb1e> I have only ever used a rackup file once myself, for a tiny app I built a day ago. All my applications are EventMachine based so they have embedded Thin web servers
<stormbytes> lets give that a shot
<rjhunter> I've used rackup files extensively :-)
Coolhand has quit [Read error: Operation timed out]
kofno has quit [Ping timeout: 260 seconds]
warren has joined #ruby
<rjhunter> but I haven't really done much with EventMachine
<weeb1e> EventMachine is awesome
<weeb1e> Can you believe I've been using ruby for many years now and yesterday was the first time I ever used a synchronous web server?
<weeb1e> unicorn is pretty nice, had to just learn the basics to get started with it
agent_white has quit [Read error: Connection reset by peer]
<warren> kgio native extension fails to build with an uninformative build log. Any suggestions? https://togami.com/~warren/temp/gem_make.out
<freakcult> exit
Coolhand has joined #ruby
<freakcult> anybody used prepend ruby 2.0?
agent_white has joined #ruby
tsykoduk is now known as zz_tsykoduk
<freakcult> is it the same as mixology gem for 1.8 ruby???
brunoro has quit [Quit: WeeChat 0.3.8]
<stormbytes> ughhh phone brb
ItSANgo has joined #ruby
<weeb1e> I couldn't find a eventmachine implementation of ruby-openid, and needed an excuse to put together a separate application for login that can be used for a cluster of backend applications, so I used unicorn and allowed the openid stuff to be synchronous
agent_white has quit [Client Quit]
fgo has joined #ruby
T__T has joined #ruby
<weeb1e> freakcult: I'm not familiar with mixology, but prepend does the reverse of include if I recall correctly
kofno has joined #ruby
<weeb1e> I also haven't had the pleasure of using Ruby 2.0 yet, but I did go through all the new features in detail
<freakcult> mixolgy do mxin module, unmixin module
amritanshu_RnD has joined #ruby
<freakcult> and it was done in c ext for ruby 1.8, issues with 1.9
<weeb1e> prepend adds the module to the beginning of the ascestor tree, instead of the end
<freakcult> i am switichin today to 2.0 just to have this prepend feature
<weeb1e> Well try it out, that will always make more sense than theory
<freakcult> it is this or it is alias_method_chain if i get it right
indstry has joined #ruby
<freakcult> any ideas if rails use prepend or not?
<freakcult> instead of alias_method_chain?
Nisstyre-laptop has joined #ruby
<weeb1e> It is not alias_method_chain
<weeb1e> And rails would avoid using Ruby 2.0 specific features to maintain 1.9 compatibility
i8igmac has quit [Quit: Leaving]
fgo has quit [Remote host closed the connection]
<freakcult> thnx weeb1e, i guess they can always check for version
<freakcult> personally i never use rails, but i am just curious coz of ruby coding ideas
<weeb1e> It wouldn't make too much sense for this feature, since doing the same thing without prepend requires more than swapping out a method name
hogeo has joined #ruby
<freakcult> i agree
kitak has quit [Remote host closed the connection]
<freakcult> any conference talks about 2.0 metaprogramming?
yacks has quit [Quit: Leaving]
kitak has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
<weeb1e> freakcult: No idea, have you at least read through the details on the new features?
kreeves has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
kitak has quit [Read error: Connection reset by peer]
<weeb1e> I can't believe ruby is over 20 years old already
<freakcult> i read that redefine might be removed, is it?
kitak has joined #ruby
<weeb1e> It's almost as old as me!
aspires has quit [Quit: aspires]
<weeb1e> redefine?
<freakcult> refine
<freakcult> sorry
<rjhunter> refinements were a super-controversial feature when they came in, but I haven't heard anything about them going away again
mercwithamouth has joined #ruby
<freakcult> why they even want to take it away?
<freakcult> wht is the harm its causing?
<weeb1e> I read that it is being changed/finalized for ruby 2.1
<weeb1e> But I cannot recall where I saw that
<weeb1e> It is currently an experimental feature, subject to change
petey has quit [Remote host closed the connection]
teapop has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
<weeb1e> "Refinements were added in Ruby 2.0, but turned out to be highly controversial, so their functionality was reduced and the feature was marked experimental."
<weeb1e> "In Ruby 2.1, refinements are no longer experimental and can also be applied within a module, without affecting the top level scope of a file."
nadirvardar has quit [Ping timeout: 245 seconds]
<stormbytes> ok solved
astrobun_ has quit [Ping timeout: 240 seconds]
<stormbytes> when webrick starts (explicitly) it puts out that message
nateberkopec has joined #ruby
prisoner has joined #ruby
<stormbytes> weird...
<freakcult> exit
freakcult has quit [Quit: leaving]
<rjhunter> stormbytes: different servers have different startup behaviours
<stormbytes> how do i know which server rack starts up by default?
mercwithamouth has quit [Ping timeout: 252 seconds]
<weeb1e> I assume you'd usually want to call the server itself and give it the rackup file to use
<weeb1e> Ie. I'm using unicorn -p 18071 ./config.ru
fomatin has joined #ruby
<warren> nevermind, kgio seems broken, switched away from unicorn for now..
<rjhunter> stormbytes: the `rackup` tool is more for convenient testing -- it has a hard-coded list that it checks through (as shown in the help)
nadirvardar has joined #ruby
<stormbytes> ahh will read up on that ;) thanks for the tip
petey has quit [Ping timeout: 272 seconds]
<samsonasu> "Please note that using refinements extensively can lead to very confusing code and that developers behind other Ruby implementations have already indicated they might not implement this feature at all."
<samsonasu> <3 ruby
<rjhunter> yeah, that's the kind of controversy that it caused
Guest4740 has quit [Quit: Linkinus - http://linkinus.com]
<rjhunter> it eliminates many of the previously-possible optimizations, since names could "come from" arbitrary places
freakcult has joined #ruby
astrobunny has joined #ruby
<samsonasu> is that all in 2.1.0-preview1
warren has left #ruby ["Leaving"]
lyanchih has joined #ruby
<weeb1e> "FiberError: fiber called across stack rewinding barrier"
<weeb1e> That's a new one
aagdbl has joined #ruby
<mark06> weeb1e: good to know about refine, good term as well, I missed monkey patching locally
lyanchih has quit [Client Quit]
<mark06> it's really refining stuff a bit :)
lukec has quit [Quit: lukec]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parzo has quit [Remote host closed the connection]
tejas has quit [Quit: This computer has gone to sleep]
lyanchih has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
parzo has joined #ruby
tobago has joined #ruby
io_syl has joined #ruby
dhruvasagar has joined #ruby
nullobject has quit [Remote host closed the connection]
aspires has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
frustrum has quit [Ping timeout: 252 seconds]
amritanshu_RnD has joined #ruby
general|fedora has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
mj12albert has quit [Quit: Textual IRC Client: www.textualapp.com]
brennanMKE has joined #ruby
Mars` has joined #ruby
mj12albert has joined #ruby
Hobogrammer has joined #ruby
havenwood has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
ping-pong has quit [Ping timeout: 268 seconds]
<weeb1e> Yeah, can't wait to be able to use it
ioNull has quit [Ping timeout: 272 seconds]
<stormbytes> whats that line you need to add to shell-rc files to get rvm to load up?
ioNull has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
havenwood has quit [Ping timeout: 272 seconds]
sergicles has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Fire-Dragon-DoL1 has left #ruby [#ruby]
aspires has quit [Quit: Adios]
Fuzai has quit [Remote host closed the connection]
aspires has joined #ruby
a1ph4g33k has joined #ruby
plotter has quit [Remote host closed the connection]
maz-dev has quit [Ping timeout: 248 seconds]
ping-pong has joined #ruby
kilophoton has quit [Ping timeout: 272 seconds]
teapop has quit [Read error: Connection reset by peer]
ssmithstone has joined #ruby
funburn has quit [Quit: funburn]
Fuzai has joined #ruby
tagrudev has joined #ruby
blischalk has quit [Ping timeout: 240 seconds]
T__T has quit [Remote host closed the connection]
funburn has joined #ruby
mj12albert has quit [Ping timeout: 240 seconds]
jalcine is now known as jalcine_
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
mayhew has quit [Remote host closed the connection]
mj12albert has joined #ruby
roadt__ has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
cads has joined #ruby
<weeb1e> Does anyone know the real meaning of "FiberError: fiber called across stack rewinding barrier"
T__T has joined #ruby
puzanov has quit [Ping timeout: 272 seconds]
Mars` has quit [Remote host closed the connection]
jalcine_ is now known as jalcine
Mars` has joined #ruby
roadt_ has quit [Ping timeout: 252 seconds]
<rjhunter> stormbytes: in my shell startup, I have the following:
<rjhunter> [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
dkamioka_ has quit [Remote host closed the connection]
Guest13089 has quit [Read error: Connection reset by peer]
<stormbytes> i'm using zshell
<stormbytes> does it matter?
<rjhunter> not really
codeFiend has quit [Read error: Connection reset by peer]
<stormbytes> woot woot :)
<stormbytes> worked
<stormbytes> thanks much!
samsonasu has quit [Quit: samsonasu]
<rjhunter> stormbytes: you might want to make sure rvm zsh completion gets loaded
<rjhunter> stormbytes: so you can tab-complete ruby names, for example
Mars` has quit [Ping timeout: 240 seconds]
Mars` has joined #ruby
<stormbytes> hmm there's a thought
<stormbytes> is that an rvm setting or extension of some sort?
<rjhunter> stormbytes: rvm ships with a file called `scripts/zsh/Completion/_rvm` so I imagine you just need to make sure you add it to your fpath
dhruvasagar has quit [Ping timeout: 240 seconds]
<rjhunter> I don't use ZSH so I'm not all over that -- my completion lives in /etc/bash_completion.d/ :-)
marcdel has joined #ruby
dhruvasagar has joined #ruby
<stormbytes> i used to use bash but command line autocompletion with zsh is totally fab so... i converted :)
bradhe has joined #ruby
gmas has quit [Ping timeout: 260 seconds]
<rjhunter> stormbytes: zsh was the standard shell in one place I worked, and I found the completion no better than bash but a couple of annoyances (like Ctrl-K killing the whole line instead of killing to EOL) so I stuck around
<rjhunter> one day I'll find something that zsh helps me with
<rjhunter> and I'll understand
<stormbytes> its not without its quirks but for the most part i'm used to it. i do switch off every now and again though... lol talk about desperate for diversity
<stormbytes> ......phone bbl
aspires has quit [Quit: sudo making a sandwich]
orien has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
orien has joined #ruby
cads has quit [Ping timeout: 248 seconds]
dzhulk has joined #ruby
eno has joined #ruby
<RubyPanther> rjhunter: I've been waiting since the 90s for the answer to that one
ssmithstone has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
<RubyPanther> but then, if everything didn't expect bash, I'd still be using csh
bradhe has joined #ruby
eno has quit [Client Quit]
v0n has quit [Ping timeout: 260 seconds]
eno has joined #ruby
narcan has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 245 seconds]
eno has quit [Client Quit]
jonathanwallace has quit [Ping timeout: 265 seconds]
stkowski has quit [Quit: stkowski]
Elhu has joined #ruby
thesheff17 has quit [Read error: Operation timed out]
robbyoconnor has quit [Read error: Connection reset by peer]
threesome has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
coderhs has joined #ruby
intuxicated has quit [Read error: No route to host]
robbyoconnor has joined #ruby
mark06 has left #ruby [#ruby]
pranny has joined #ruby
francisfish has joined #ruby
<xybre> ctrl-r history in zsh is much better out of the box, tab completion of files and directories is better tuned to the application you're using. It's nice that it can implement fish shell features while still maintaining sh compatibility.
WillAmes has quit [Remote host closed the connection]
brennanMKE has joined #ruby
WillAmes has joined #ruby
greenride has left #ruby [#ruby]
pranny has quit [Client Quit]
user258467 has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Ping timeout: 248 seconds]
lyanchih has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
brennanMKE has quit [Ping timeout: 241 seconds]
jalcine is now known as jalcine_
lyanchih has joined #ruby
<jrobeson> xybre, ah.. thanks for the info
tjad has joined #ruby
<jrobeson> ctrl-r sucks by default in bash
<xybre> Yes it does.
madb055 has joined #ruby
intuxicated has joined #ruby
<jrobeson> i shoudl think about zsh one of these days
<xybre> I'd say to get started with zsh check out Antigen http://antigen.sharats.me/
<xybre> If you use pathogen or vundle with vim, Antigen should be pretty straightforward.
<jrobeson> so.. it uses oh-my-zsh packaged plugins, but works fine standalone
<jrobeson> i've glanced at oh-my-zsh before.. but not much more than that
<xybre> Yeah I like to customize my setu pand oh-my-zsh seemed like overkill.
<sevenseacat> i didnt like omz
DrCode has quit [Remote host closed the connection]
<jrobeson> i was assuming they were thin wrappers over stuff you could already do.. just put together
<jrobeson> sevenseacat, what do you use ?
<xybre> You can see my fairly small zshrc here: https://github.com/acook/config/blob/master/dotfiles/.zshrc
<sevenseacat> just plain zsh
<sevenseacat> very few customizations
<jrobeson> got it
DrCode has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
funburn has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
aagdbl has quit [Quit: Leaving.]
freakcult has quit [Quit: leaving]
bradhe has joined #ruby
aganov has joined #ruby
aagdbl has joined #ruby
funburn has joined #ruby
Jetchisel has joined #ruby
Shidash has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<weeb1e> MySQL seems to become pretty slow as a basic select query filtering within a created_at range with 1.6 million records in a table
<weeb1e> I wonder what will happen when it reaches a few million
<jrobeson> and your indexing is good?
indstry has quit [Remote host closed the connection]
<weeb1e> I'm not a database expert, but adding an index to the nickname field didn't seem to help too much
zoee has joined #ruby
<weeb1e> jrobeson: Should all fields that are used in queries be indexed?
<weeb1e> This is the only legacy platform of mine that uses MySQL, all my other platforms are strictly MongoDB
<jrobeson> no, fields that you query by should be, but only an EXPLAIN will tell lyou the right way
<weeb1e> Well that's what I mean
<weeb1e> All fields that are used in the WHERE part of queries
<weeb1e> I should add created_at to the indexed fields in that case
<sevenseacat> yes.
atmosx has quit [Remote host closed the connection]
<jrobeson> probably.. but you really should run EXPLAIN
schaerli has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<jrobeson> indexing is a tradeoff so see what happens
<weeb1e> Hmm, guess I should learn what the explain output means
wildroman has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
<sevenseacat> if you want to optimize database queries, yes.
wildroman has quit [Remote host closed the connection]
<weeb1e> Well I see how it can help me get a better idea of the queries efficiency, but not what I should add to indexing
luckyruby has quit [Remote host closed the connection]
wildroman has joined #ruby
<weeb1e> Surely explain only helps you see what indexes are being used and how many rows there are to check, which means you still have to add indexes before using explain?
Es0teric has quit [Quit: Computer has gone to sleep.]
<sevenseacat> got an example output?
<weeb1e> 1 | SIMPLE | logs | ref | index_logs_on_nickname | index_logs_on_nickname | 258 | const | 117844 | Using where
<weeb1e> That is after I added nickname as an index
<sevenseacat> the entire output
<weeb1e> Which took long
<weeb1e> That is the only row in the output
<sevenseacat> yay for mysql being stupid then
<weeb1e> That is for the following query: SELECT `logs`.* FROM `logs` WHERE `logs`.`command` = 'PRIVMSG' AND `logs`.`nickname` = 'test' AND (`logs`.`created_at` BETWEEN '2013-10-16 08:53:06' AND '2013-10-16 08:53:12')
awc737 has quit [Ping timeout: 260 seconds]
rorra has quit [Quit: rorra]
mercwithamouth has joined #ruby
Hanmac has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
ericmathison has quit [Ping timeout: 264 seconds]
<sevenseacat> seems mysql uses `explain extended` and `analyse()`
Elhu has quit [Quit: Computer has gone to sleep.]
<weeb1e> Hmm
a1ph4g33k has quit [Quit: Leaving]
zz_michael_mbp is now known as michael_mbp
peterhu has quit [Ping timeout: 265 seconds]
obs has joined #ruby
threesome has quit [Ping timeout: 241 seconds]
awc737 has joined #ruby
jprovazn has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
rahult has quit [Quit: Back to the world of zombies]
picker has joined #ruby
io_syl has quit []
AxonetBE has joined #ruby
funburn has quit [Quit: funburn]
jbpros has joined #ruby
rezzack has joined #ruby
tatsuya_o has joined #ruby
relix has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
stormbytes has quit [Quit: Linkinus - http://linkinus.com]
Hobogrammer_ has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
skaflem has joined #ruby
mercwithamouth has joined #ruby
bradhe has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
bradhe has joined #ruby
tatsuya_o has quit [Ping timeout: 272 seconds]
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
julweber_ has quit [Remote host closed the connection]
dash_ has joined #ruby
julweber has joined #ruby
mhodgson has quit []
DanKnox is now known as DanKnox_away
mj12albert has quit [Ping timeout: 272 seconds]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
tjad has joined #ruby
T__T has quit [Remote host closed the connection]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
staafl has quit [Ping timeout: 245 seconds]
julweber has quit [Ping timeout: 260 seconds]
staafl has joined #ruby
mj12albert has joined #ruby
brennanMKE has joined #ruby
h_kon has joined #ruby
ahawkins has joined #ruby
mj12albert has quit [Client Quit]
persand has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
DanKnox_away is now known as DanKnox
T_T has joined #ruby
aryaching has joined #ruby
fixl has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
fomatin has joined #ruby
workmad3 has joined #ruby
claymore has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
parzo has quit [Remote host closed the connection]
blaxter has joined #ruby
parzo has joined #ruby
marcdel has joined #ruby
Xeago has joined #ruby
ephemerian has joined #ruby
kil0byte has joined #ruby
jrhe has joined #ruby
parzo has quit [Ping timeout: 256 seconds]
troessner has joined #ruby
DanKnox is now known as DanKnox_away
diegoviola has joined #ruby
Elhu has joined #ruby
zarubin has joined #ruby
rjhunter has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
maasha has joined #ruby
threesome has joined #ruby
<maasha> Hi
buibex has joined #ruby
tylersmith has quit [Remote host closed the connection]
<maasha> 10.to_f.round(2) outputs 10.0 and not 10.00 - why?
tylersmith has joined #ruby
joshAnderson991 has joined #ruby
carraroj has joined #ruby
jbpros has quit [Quit: jbpros]
<Hanmac> maasha: its only the about printing
<Hanmac> >> "%0.2f" % 10
<eval-in> Hanmac => "10.00" (https://eval.in/54722)
<Hanmac> >> "%0.2f" % 10.12345
<eval-in> Hanmac => "10.12" (https://eval.in/54723)
tylersmith has quit [Ping timeout: 240 seconds]
<joshAnderson991> hi, what's the best way to view docs? rvm docs generate, and view locally? or yard. or online docs are better?
<maasha> hanmac: but am I wrong in being surprised that .round does not format the output as well?
aapzak has quit [Ping timeout: 272 seconds]
<Hanmac> the provlem is : round does round your number, but the output short it as much as possible
<maasha> hanmac: I see, but I am still surprised :o)
bradhe has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 246 seconds]
aapzak has joined #ruby
bradhe has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
hogeo has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
fomatin has joined #ruby
apeiros has joined #ruby
michael_mbp is now known as zz_michael_mbp
rdark has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
Mars` has joined #ruby
Krzysiek__ has joined #ruby
<Krzysiek__> hello
Mars` has quit [Remote host closed the connection]
tesuji has joined #ruby
Mars` has joined #ruby
aagdbl has quit [Quit: Leaving.]
kpmjf has joined #ruby
<Krzysiek__> i'm trying to install gitlab app under freebsd-9.1, but i'm getting an error while running bundler, i'm not ruby user and error doesn't tells me anything that i understand as helpfull https://gist.github.com/krzysztofantczak/e5444dda7c7147f07ef0 - this is what i have at this moment, if some info is missing i'll try to update that gist... anyone can help?
diegoviola has quit [Quit: WeeChat 0.4.2]
thelamest has quit [Quit: reboot]
aspiers has joined #ruby
monkegjinni has joined #ruby
julweber has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
vockav has joined #ruby
peterhu has joined #ruby
claymore has quit [Quit: Leaving]
<vockav> hi! i have a rake task, a pretty big task. I am running it for month wise data. In between, the task just does not seem to go to the next month. Is it due to some memory issue. ?
<Hanmac> Krzysiek__: how is ruby installed? are the dev packages from ruby installed too? are there any "libjson" packages?
ghr has joined #ruby
jbpros has joined #ruby
juarlex_ has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
juarlex has quit [Read error: Connection reset by peer]
fomatin has quit [Quit: Computer has gone to sleep.]
camilasan has joined #ruby
<Krzysiek__> hanmac, ruby was compiled from ports, and... hmm, nope, no *json-* packages... but i have two of them in the ports list... devel/json-c and devel/json-glib any of them looks good?
fomatin has joined #ruby
<Krzysiek__> oh, and there is one more... devel/libjson++
peterhu has quit [Ping timeout: 248 seconds]
DrCode has quit [Ping timeout: 240 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Krzysiek__> ok, i'll install all of them ;P
DrCode has joined #ruby
vockav has quit [Quit: Leaving]
ReSam has joined #ruby
kaspergrubbe has joined #ruby
<Hanmac> ups wrong user its for Krzysiek__
<Krzysiek__> ;)
Mon_Ouie has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
asdasd has quit [Ping timeout: 240 seconds]
gstamp has quit [*.net *.split]
cibs has quit [*.net *.split]
karupa64 has quit [*.net *.split]
eshy has quit [*.net *.split]
wildroman has joined #ruby
aapzak has quit [Ping timeout: 240 seconds]
jbpros has quit [Quit: jbpros]
kaspergrubbe has quit [Read error: Connection reset by peer]
parzo has joined #ruby
kaspergrubbe has joined #ruby
newbiehacker has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
aapzak has joined #ruby
InFlames has quit [Ping timeout: 246 seconds]
malcolmva has quit [Ping timeout: 240 seconds]
zz_michael_mbp is now known as michael_mbp
Patteh has quit [Ping timeout: 248 seconds]
RealMarc has joined #ruby
karupa64 has joined #ruby
gstamp has joined #ruby
cibs has joined #ruby
eshy has joined #ruby
francisfish has joined #ruby
devoldmx has joined #ruby
justsee has quit [Quit: Lost terminal]
bradhe has joined #ruby
dangerousdave has joined #ruby
jbpros has joined #ruby
brennanMKE has joined #ruby
eightygrit has quit [Quit: eightygrit]
flughafen has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 272 seconds]
francisfish has quit [Ping timeout: 265 seconds]
elaptics`away is now known as elaptics
bradhe has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
TMM has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
barratt has joined #ruby
superbos has joined #ruby
funburn has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
kil0byte has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
francisfish has joined #ruby
funburn has quit [Ping timeout: 260 seconds]
joshAnderson991 has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
ninegrid has quit [Read error: Connection reset by peer]
obs has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby
T_T has quit [Remote host closed the connection]
ninegrid has joined #ruby
joshAnderson991 has joined #ruby
Bry8Star{T2 has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
xk_id has joined #ruby
Jdubs has joined #ruby
InFlames has joined #ruby
siwica has joined #ruby
Krzysiek_ has joined #ruby
matthias_ has joined #ruby
astrobunny has joined #ruby
tatsuya_o has joined #ruby
cads has joined #ruby
shaunbak_ has joined #ruby
Jdubs has quit [Ping timeout: 272 seconds]
Krzysiek__ has quit [Ping timeout: 272 seconds]
stonevil has joined #ruby
ordsel has quit [Ping timeout: 240 seconds]
fomatin has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
mattyw has joined #ruby
tylersmith has joined #ruby
timonv has quit [Remote host closed the connection]
Mars` has joined #ruby
stunthamster has joined #ruby
dash_ has quit [Quit: dash_]
Kar- has joined #ruby
varfoo has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
krz has quit [Ping timeout: 260 seconds]
parzo_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
parzo has quit [Read error: Connection reset by peer]
orien has joined #ruby
k610 has joined #ruby
Azulinho_ has joined #ruby
klaut has joined #ruby
yalue has quit [Ping timeout: 272 seconds]
superbos has left #ruby [#ruby]
monkegjinni has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 245 seconds]
fgh2 has quit [Ping timeout: 264 seconds]
gyre007 has joined #ruby
aagdbl has joined #ruby
aagdbl1 has joined #ruby
dash_ has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 248 seconds]
gyre007 has quit [Remote host closed the connection]
dash_ has quit [Max SendQ exceeded]
gyre007 has joined #ruby
workmad3 has joined #ruby
dash_ has joined #ruby
krz has joined #ruby
dash_ has quit [Max SendQ exceeded]
varfoo has joined #ruby
aagdbl has quit [Ping timeout: 272 seconds]
dash_ has joined #ruby
timonv has joined #ruby
gyre007 has quit [Ping timeout: 272 seconds]
Intrepid_ is now known as Intrepidd
bricker`LA has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
robbyoconnor has quit [Ping timeout: 246 seconds]
rdark has quit [Ping timeout: 240 seconds]
freakcult has joined #ruby
rdark has joined #ruby
allsystemsarego has joined #ruby
brennanMKE has joined #ruby
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
gyre007 has joined #ruby
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Ping timeout: 260 seconds]
fntzr has joined #ruby
rezzack has quit [Quit: Leaving.]
brennanMKE has quit [Ping timeout: 245 seconds]
m00nlight has quit [Quit: Konversation terminated!]
mengu has quit [Ping timeout: 265 seconds]
buibex has quit []
yalue has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
JeanMertz has joined #ruby
nari has joined #ruby
mengu has joined #ruby
Mars` has quit [Remote host closed the connection]
dawkirst has joined #ruby
Mars` has joined #ruby
Lewix has quit [Remote host closed the connection]
lewis has joined #ruby
siwica1 has joined #ruby
Lewix has joined #ruby
maz-dev has joined #ruby
funburn has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
siwica has quit [Ping timeout: 252 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
Mars` has quit [Ping timeout: 245 seconds]
includex has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
khushildep has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
funburn has quit [Ping timeout: 260 seconds]
Mars` has joined #ruby
lembacon has quit [Read error: Connection reset by peer]
lembacon has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
khushildep_ has joined #ruby
khushildep has quit [Ping timeout: 240 seconds]
khushildep_ is now known as khushildep
bricker`LA has quit [Ping timeout: 272 seconds]
k610 has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
mklappstuhl has joined #ruby
funburn has joined #ruby
gyre007 has quit [Remote host closed the connection]
cephalopod has joined #ruby
h_kon has quit [Remote host closed the connection]
lewis has quit [Remote host closed the connection]
bradhe has joined #ruby
maroloccio has joined #ruby
h_kon has joined #ruby
h_kon_ has joined #ruby
h_kon has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 272 seconds]
<cephalopod> Yo! Agents Of S.H.I.E.L.D:: S01E04... 15:55 (TIME)... GUI.... umm... how do I create a multiple step i.e. what I just mentioned??
<cephalopod> i.e. step up... 1, 2, 3, 4.... minimal ---> 1/4 of screen?
<cephalopod> I know it's a weird req... but I've tried a few times to create it... but... FAIL_WHALE
bradhe has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
<cephalopod> it's a simple 'screen wrap' ... but lower side... looks like a few steps:: 0, 1, 3, 5, 7... (in height... roughly)
<cephalopod> forgive me for being a douchebag... but I'm curious
yacks has joined #ruby
mengu has joined #ruby
xk_id has quit [Quit:
VTLob has joined #ruby
<jrobeson> cephalopod, are you sure you're in the right room?
_if has joined #ruby
amritanshu_RnD has quit [Read error: Operation timed out]
<cephalopod> perhaps?
<jrobeson> uhmm
<jrobeson> you haven't described anything specific to the ruby programming language
<jrobeson> or what tools you intend to use
<cephalopod> prob's should be asking in #RubyOnRails
<cephalopod> umm
<cephalopod> well...
<jrobeson> and in any case.. what would htat have to do with gui ?
<workmad3> cephalopod: are you wanting CSS help?
<cephalopod> mebe?
<cephalopod> umm
<cephalopod> let's consider a screenWrap
<jrobeson> what is a screen wrap?
<workmad3> cephalopod: first step... is this in a browser?
<cephalopod> border 1px... 4 steps
mengu has quit [Ping timeout: 246 seconds]
<jrobeson> ok there we go
<cephalopod> each 'step'
<jrobeson> definitely the wrong place .. however that doesn't make rubyonrails right either..
hamakn has quit [Ping timeout: 240 seconds]
<cephalopod> has mebe a 3px step... (think tabs) bottom mid. to bottom right
<workmad3> cephalopod: right... I'd suggest that a) you may get more luck in #rubyonrails, b) you learn HTML and CSS, and c) you consider a CSS grid framework rather than hand rolling this
<cephalopod> perhaps a 5px step
<cephalopod> fair'nough
<cephalopod> well...
<cephalopod> I'm just trying to figure out (in my craaaazy mind) how it might be done in Railz.
<cephalopod> sorry
<cephalopod> rails
<workmad3> cephalopod: it's HTML and CSS
<workmad3> cephalopod: learn them if you intend to write any web sites or apps
<cephalopod> I know.... but CodeCademy.com... hasn't given me the answers
<cephalopod> yeah... Noob FAIL
DaZ has quit [Ping timeout: 256 seconds]
<jrobeson> consider lowering your expecations
mengu has joined #ruby
* cephalopod facepalms and hopes to be saved by some G3N1U5 who understands my predicament
mengu has quit [Remote host closed the connection]
<jrobeson> learn the basics of html and css
<cephalopod> that's why I've been using codeCademy.com
xk_id has joined #ruby
<jrobeson> you have to do learning on your own also
<jrobeson> like reading docs
<cephalopod> HTML and CSS... == passed... but intelligence === fail??
mengu has joined #ruby
matti has joined #ruby
<tobiasvl> what IS this
<cephalopod> I know jrobeson
mengu has quit [Changing host]
mengu has joined #ruby
<tobiasvl> what am i reading
<jrobeson> well for one you weren't even obvious up front that you were dealing with html .. you left that up to us to figure out
<workmad3> cephalopod: a couple of online tutorials on HTML and CSS do not a CSS expert make you ;)
<cephalopod> reality_cheque?
<cephalopod> thankyou YODA workmad3
<jrobeson> i thought you were perhaps making a video player
<cephalopod> nope
<jrobeson> like with some ruby gui toolkit
<cephalopod> just trying to make a nice interface
<cephalopod> yeah
<workmad3> cephalopod: and dealing with (what sounds like) responsive design from scratch is somewhat tricky
<jrobeson> next time be more specific
<cephalopod> indeed?
<cephalopod> I'll try
<cephalopod> to be more specific that is
<jrobeson> too bad no helpa in here
<workmad3> cephalopod: hence my recommendation that you use a grid framework of some form
<workmad3> jrobeson: :)
bricker`LA has joined #ruby
<cephalopod> as in tables? or just <div id==?> with a lot of careful work?
hamakn has joined #ruby
<cephalopod> thx jrobeson ... I think
<workmad3> cephalopod: I repeat... look at and use a grid framework
<workmad3> cephalopod: if you're not going to do your own research based off that, I see no reason to expand on that further
<cephalopod> I'm not going to argue.. I just thought I'd ask
<cephalopod> anyhow... appreciate the feedback / info / trolling :P
persand has quit [Quit: persand]
DaZ has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
<tobiasvl> cephalopod: i thought YOU were trolling :P
<tobiasvl> you're _clearly_ in the wrong channel
<cephalopod> damn I wish I could use the CodeCademy.com interface for coding
<cephalopod> perhaps
<workmad3> cephalopod: jsfiddle
dash_ has quit [Ping timeout: 245 seconds]
<cephalopod> or mebe you're in the wrong reality?
<cephalopod> :P
<cephalopod> hmm... allright.. I'll just keep on researching / working on a result
<cephalopod> Hi5 for all of you
* prophile collects Hi5, sells it on the black market
<cephalopod> feel good that you at least considered my stupid predicament
* cephalopod expects 5%
<cephalopod> you can keep the rest of the prophets prophile
<cephalopod> :P
<cephalopod> ;)
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
amritanshu_RnD has joined #ruby
<cephalopod> jk:: DOGMA
<cephalopod> mov
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
Soda has quit [Ping timeout: 246 seconds]
Mars` has quit [Read error: No route to host]
camilasan has quit [Remote host closed the connection]
siwica has quit [Read error: Connection reset by peer]
pootler has joined #ruby
Mars` has joined #ruby
camilasan has joined #ruby
lyanchih has quit [Quit: lyanchih]
varfoo has quit [Quit: WeeChat 0.4.0]
varfoo has joined #ruby
<cephalopod> anyone working with CodeCademy.com?
<cephalopod> the interface as a toolkit / gui / enviro... could be so awesome...
Jetchisel has joined #ruby
Hanmac has quit [Quit: Leaving.]
lkba has joined #ruby
<cephalopod> honestly.. if I could replicate it openly (FOSS) I think it would change education for the better
<cephalopod> soo much potential, so cool... this is indeed the age of the geek / nerd..
Squarepy has joined #ruby
zarubin has quit [Read error: Operation timed out]
ReSam has left #ruby [#ruby]
bricker`LA has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
picker has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jbpros has quit [Quit: jbpros]
brennanMKE has quit [Ping timeout: 265 seconds]
dawkirst has joined #ruby
jbpros has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
varfoo has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
varfoo has quit [Client Quit]
cephalopod has quit [Ping timeout: 272 seconds]
lembacon has quit [Quit: Leaving...]
Hanmac has joined #ruby
sepp2k has joined #ruby
funburn has quit [Quit: funburn]
SteveBenner9 has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
cephalopod has joined #ruby
scarolan_ has joined #ruby
varfoo has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
scarolan has quit [Ping timeout: 240 seconds]
wildroman has quit [Remote host closed the connection]
_if has quit [Remote host closed the connection]
SteveBenner9 has quit [Quit: Leaving]
wildroman has joined #ruby
avqXb0uv has joined #ruby
scarolan_ has quit [Ping timeout: 245 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
scarolan has joined #ruby
rickmasta has quit [Quit: Leaving...]
wildroman has quit [Ping timeout: 240 seconds]
rdark has quit [Ping timeout: 246 seconds]
siwica has joined #ruby
jbpros has quit [Quit: jbpros]
rdark has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
astrobunny has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
ewnd9 has joined #ruby
avqXb0uv has quit [Quit: avqXb0uv]
danshultz has quit [Remote host closed the connection]
funburn has joined #ruby
danshultz has joined #ruby
<jlebrech> I'm inheriting a class in my gem, and trying to add a method but i'm getting undefined method
kil0byte has joined #ruby
avqXb0uv has joined #ruby
avqXb0uv is now known as avqxb0uv
svector has joined #ruby
avqxb0uv has left #ruby [#ruby]
svector has quit [Max SendQ exceeded]
funburn has quit [Client Quit]
avqxb0uv has joined #ruby
svector has joined #ruby
<cephalopod> be moar specific jlebrech
pootler has quit [Quit: Lost terminal]
<cephalopod> ah
<jlebrech> inheriting and adding a method to the class. why can't I do it
astrobunny has joined #ruby
danshultz has quit [Ping timeout: 248 seconds]
<cephalopod> not enough brackets? @jlebrech
<apeiros> you're not showing how you use it and the precise error
VTLob has quit [Quit: VTLob]
Hanmac has quit [Quit: Leaving.]
<cephalopod> def initilize..... seems 'short'
siwica has quit [Ping timeout: 240 seconds]
<apeiros> looks fine to me
bricker`LA has quit [Read error: Connection reset by peer]
<jlebrech> just trying to run foo in a controller action
<jlebrech> def index
<jlebrech> @foo_account = current_account.foo
<jlebrech> end
<jlebrech> something like that lol
<cephalopod> indeed?
<cephalopod> damnit... I use "indeed" too often
juan__ has joined #ruby
<jlebrech> the class is inherited correctly otherwise
dawkirst has joined #ruby
<apeiros> jlebrech: you intend on keep showing us single pieces of the puzzle? because that's annoying.
matthias_ has left #ruby [#ruby]
pootler has joined #ruby
osvico has joined #ruby
ChronocityLC has joined #ruby
<apeiros> what's current_account.class? what's the precise error you get from the above line?
gja has joined #ruby
wildroman has joined #ruby
gyzmodo has quit [Ping timeout: 240 seconds]
xk_id has joined #ruby
kitak has quit [Remote host closed the connection]
<jlebrech> current_account is an instance of class, the error is like undefined method `foo' for #...
<jlebrech> of account clas*
shark has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<apeiros> yeah, sorry. no. if you want help, answer the questions properly. I'm out.
<shark> quick question: i have a function http://pastebin.com/9jYf8D8a and after inspection of my code, even when logged_in? returns false and check_pass returns true, the code inside the if statement still runs, what am i messing up?
gyzmodo has joined #ruby
mikecmpbll has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
jbpros has joined #ruby
Hanmac has joined #ruby
mklappstuhl has joined #ruby
<cephalopod> jlebrech: good realityCheck
syltman has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
jbpros has quit [Client Quit]
orien has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
mlpinit has joined #ruby
Domon has joined #ruby
kil0byte_ has joined #ruby
jrhe has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 272 seconds]
Domon has quit [Remote host closed the connection]
jb41_ has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
yacks has quit [Quit: Leaving]
gyzmodo has quit [Ping timeout: 245 seconds]
tvw has quit []
jb41_ has quit [Client Quit]
tvw has joined #ruby
jb41 has joined #ruby
Stalkr_ has joined #ruby
mrsolo has joined #ruby
<syltman> Hi I defined a method *(y) in a class m but whenever I do k=m*m it seems to replace m as well with the result. http://pastebin.com/ZDa82N6J
brennanMKE has joined #ruby
jbpros has joined #ruby
fijimunkii has quit [Ping timeout: 272 seconds]
<cephalopod> syltman: and do you have your () {} &c... sorted?
tvw has quit [Ping timeout: 240 seconds]
<syltman> cephalopod what do you mean?
<syltman> sorry I'm very new
<cephalopod> not enough data.... too many lines unknown
<cephalopod> starts @ 73?
francisfish has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 240 seconds]
<apeiros> syltman: should not
<cephalopod> "tempi.monom..." fail?
tvw has joined #ruby
francisfish has joined #ruby
<cephalopod> line 80
<syltman> cephalopod yeah that was something from earlier replaced that
jrhe has joined #ruby
<syltman> should be y
<apeiros> >> class Foo; def *(y); "foo"; end; m = Foo.new; k = m*m; [k, m]
<eval-in> apeiros => /tmp/execpad-ed5f60977637/source-ed5f60977637:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/54821)
<apeiros> blerp
<apeiros> >> class Foo; def *(y); "foo"; end; end; m = Foo.new; k = m*m; [k, m]
<eval-in> apeiros => ["foo", #<Foo:0x40a00efc>] (https://eval.in/54822)
Elhu has quit [Quit: Computer has gone to sleep.]
<cephalopod> mon(i) == fail
<cephalopod> imho
<cephalopod> ah
<cephalopod> sorz
<apeiros> ah, missed your pastebin syltman
ioNull has quit [Quit: Computer has gone to sleep.]
<apeiros> syltman: well, you do temp = self
<apeiros> and then go on to manipulate it
<apeiros> so of course self is being manipulated
larissa has joined #ruby
<apeiros> foo = bar # this does not copy bar, foo and bar will reference the same object
<syltman> apeiros ah alright then must be it
<cephalopod> tempi>???
g3orge has joined #ruby
<g3orge> how can I get the raw bytes of a hex encoded string to a variable?
Desert_eagle has joined #ruby
<cephalopod> and declaring |a|?
devoldmx3 has joined #ruby
<cephalopod> str:a?
<cephalopod> re: g3orge
francisfish has quit [Ping timeout: 272 seconds]
<cephalopod> nm... thinking in python
<apeiros> g3orge: got example in/output?
kil0byte_ has quit [Ping timeout: 246 seconds]
<apeiros> >> ["68656c6c6f"].pack("H*")
<eval-in> apeiros => "hello" (https://eval.in/54823)
<syltman> apeiros so how do I do if I want to copy something and not reference it?
eka has joined #ruby
devoldmx27 has joined #ruby
kil0byte has joined #ruby
<apeiros> syltman: see Object#dup and #clone
<apeiros> usually you want dup.
<syltman> apeiros ok thank you so much!
<apeiros> be aware that dup does not deep copy.
jcromart_ has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
<g3orge> apeiros: so the raw bytes are the "hello" string? how will it print if some characters are unprintable?
_if has joined #ruby
reppard has joined #ruby
devoldmx3 has quit [Ping timeout: 256 seconds]
<apeiros> if it's unprintable, how could it print it? :)
<apeiros> the inspect will escape them
reppard has quit [Client Quit]
<cephalopod> correct.... umm... I think... apeiros
<apeiros> >> ["00010203090a"].pack("H*")
<eval-in> apeiros => "\0\x01\x02\x03\t\n" (https://eval.in/54824)
* cephalopod facePalms for no particular reason
ZhBPi has quit [Ping timeout: 265 seconds]
wildroman has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
wildroman has joined #ruby
nari has quit [Ping timeout: 252 seconds]
<g3orge> apeiros: ooook. but why not use unpack on the string and use pack on a array of the string?
<apeiros> g3orge: ?
<g3orge> str.unpack("H*")
<g3orge> isn't that the same?
<apeiros> g3orge: *you* said you had hex
syltman has quit [Remote host closed the connection]
<g3orge> yeah
<apeiros> unpack gets you from raw to hex
alup has joined #ruby
<apeiros> pack gets you from hex to raw
<apeiros> so "why not use unpack on the string" - because that does not answer the question you asked.
<g3orge> oh. I thought they differ on the structure they apply onto. pack for arrays and unpack for strings...
<g3orge> thanks man
<apeiros> no, they differ in direction
<apeiros> ary.pack(format).unpack(format) == ary
<apeiros> str.unpack(format).pack(format) == str
<g3orge> that makes sense
raphaelivan has joined #ruby
<apeiros> there may be exceptions, e.g. when a format includes skipping
wildroman has quit [Ping timeout: 265 seconds]
siwica has joined #ruby
<g3orge> what about using C* instead of H*?
<g3orge> it sais is for bytes. what's the difference?
<g3orge> *says
<apeiros> >> "hello".unpack("C*")
<eval-in> apeiros => [104, 101, 108, 108, 111] (https://eval.in/54825)
<apeiros> >> "hello".unpack("H*")
<eval-in> apeiros => ["68656c6c6f"] (https://eval.in/54826)
<apeiros> that's the difference
<cephalopod> str... == arry... == unpack either way, no?
<cephalopod> i.e. either choose.... str, or arr
<cephalopod> don't try to do both
Mars` has joined #ruby
siwica has quit [Read error: Operation timed out]
<g3orge> I'm asking because I want to xor to string together, and the only way I can make it work is by using to_i(16) to convert them to integers, xor them and convert back. That way seems weird, and I can't make it work with raw bytes...
<g3orge> *two strings together... jeez
<cephalopod> screw it... use two arrays... and use 8b for .ea
<cephalopod> compare
* Hanmac is packing his array and he put a String inside
<cephalopod> done
jonathanwallace has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
astrobunny has quit [Ping timeout: 248 seconds]
<apeiros> cephalopod: what?
<cephalopod> ummm... I thought it would make sens4e
<cephalopod> sory... drnk
<apeiros> g3orge: str1.unpack("C*").zip(str2.unpack("C*")).map { |a,b| a^b }.pack("C*")
<cephalopod> well...
<cephalopod> kinda
<apeiros> g3orge: assumes both strings have the same length
lyanchih has quit [Ping timeout: 241 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
<apeiros> you can speed it up by using N* instead of C*, but you have to take care of "tails" (N takes 4 bytes at once - but at the end of strings not a multiple of 4 bytes long that won't work)
avqxb0uv has quit [Quit: avqxb0uv]
<Hanmac> apeiros: what about each_byte and each_codepoint? that could replace the unpack ;P
<cephalopod> what hanmac said
<cephalopod> totally agree
randomnick_ has joined #ruby
* Hanmac said what Hanmac said
lyanchih has joined #ruby
wildroman has joined #ruby
<apeiros> hanmac: sure, but why? it's slower. also each_codepoint only if you want to xor codepoints, not bytes.
astrobunny has joined #ruby
drumsrgr8forn8 has joined #ruby
habanany has joined #ruby
<cephalopod> ?? xor == notOr or... &or
<cephalopod> sorz... not sure
AndChat- has joined #ruby
* cephalopod is doucheBagFacePalm
<apeiros> cephalopod: dude, sober up
* cephalopod is moron
<cephalopod> I'm too drnk to sober up... at least for an hr or so
lyanchih has quit [Client Quit]
<cephalopod> it's been a long day... and I've ridden like... 8+kms today
<apeiros> then just go to bed
<cephalopod> I can sleep when I'm dead... or when I run out of cofee
<cephalopod> I prefer the latter
<cephalopod> still.. xor == &or? yes?
<apeiros> no idea what &or is supposed to be
<apeiros> but most likely: no
<cephalopod> ok?
danshultz has joined #ruby
<apeiros> xor -> exclusive or
robbyoconnor has joined #ruby
<cephalopod> ah... well.. then I'm not thinking like a haxor... I'm drnk'nough to bee a noob today
<cephalopod> forgive me
<cephalopod> and g/l
fgh has joined #ruby
ioNull has joined #ruby
Banistergalaxy has quit [Ping timeout: 265 seconds]
theRoUS has quit [Ping timeout: 272 seconds]
<g3orge> apeiros: did you find that in SO? it tested it before, and it doesn't work
<apeiros> g3orge: no, I didn't find that in SO. if I had, I'd have linked you there.
<apeiros> and "it doesn't work" is a useless problem description.
blackmesa has joined #ruby
mmitchell has joined #ruby
colonolGron has joined #ruby
<apeiros> also, it most certainly does work. it might not be doing what you expect from it. but it does XOR two strings.
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<g3orge> I have a test set up to see if the method works. two string (hex-ed) xored together should produce a third, which I know is correct. your solution prints false. the only one that prints true is the one with the to_i(16) conversions...
AxonetBE has quit [Quit: AxonetBE]
<g3orge> what does to_i(16) do anyway?
<apeiros> g3orge: and the reason you didn't produce that test *as the f'ing very first thing* when asking the question is?
<apeiros> because seriously, such douchery riles me up.
MisutoWolf has joined #ruby
<g3orge> what do you mean?
<g3orge> post the code and the test?
araujo has quit [Read error: Connection reset by peer]
<apeiros> of. course.
<apeiros> should be the most obvious first step.
<MisutoWolf> Mmmm, delicious console IRC.
hamakn has quit [Remote host closed the connection]
<MisutoWolf> *hugs weechat*
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
banister`sleep has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
francisfish has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
<apeiros> g3orge: also it's easy enough to figure out what to_i(16) does.
<apeiros> you can a) read the docs of String#to_i
<apeiros> or b) use a repl (irb, which comes with ruby, or pry, which is a gem) to just try it out
pranny has quit [Quit: Leaving.]
breakingthings has joined #ruby
bamdad has joined #ruby
Beoran__ has joined #ruby
araujo has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 265 seconds]
jbpros has quit [Quit: jbpros]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<apeiros> g3orge: works fine here. of course it won't work if you're applying it to the hex representation of the strings.
buibex has joined #ruby
<apeiros> (which I assume is what you did)
fgh has quit [Quit: Leaving]
acrussell has joined #ruby
fgh has joined #ruby
<g3orge> correct. that's why I'm looking for a diff solution
mmitchell has quit [Remote host closed the connection]
roadt_ has joined #ruby
ldnunes has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
acrussell has quit [Client Quit]
tziOm has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
<g3orge> but why does your solution (or any in the web) not work, is beyond me
acrussell has joined #ruby
<apeiros> *sob*
tziOm has joined #ruby
<apeiros> mine *works*
Beoran_ has quit [Ping timeout: 245 seconds]
alexju has joined #ruby
<apeiros> but your input strings aren't the source strings. they're already transformed to a hex representation of the string.
<apeiros> and "xor'ing two strings" is NOT the same as "xor'ing the hex representation of two strings"
<apeiros> so mine "did not work" because you used it the wrong way.
<g3orge> hm
acrussell has left #ruby [#ruby]
<g3orge> so how do i use it ?
<apeiros> on the original string. not on the hex representation.
roadt__ has quit [Ping timeout: 245 seconds]
MrV_ has joined #ruby
astrobunny has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 248 seconds]
ChronocityLC has quit [Ping timeout: 256 seconds]
<g3orge> I don't have the original strings. that's why I asked about converting them to raw strings in the first place
hamakn has joined #ruby
<apeiros> g3orge: and you got told how to
mmitchell has quit [Ping timeout: 260 seconds]
<g3orge> yes. and still doesn't work... :(
<apeiros> oh dear, deary me…
<apeiros> somehow I get the impression you're trying to do homework or somesuch…
<apeiros> updated. I had str1/str2 in the code. you use s1, s2.
dhruvasagar has quit [Ping timeout: 272 seconds]
<g3orge> s1.unpack("H*").first ?? you didn't tell me about first or unpack....
<apeiros> g3orge: dude!
<apeiros> go back, read.
<apeiros> your question was "hex to raw"
<g3orge> apeiros: yes, in a way it's homework, that's why I didn't want to show you the code
<apeiros> the code there is "raw to hex"
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<apeiros> and even that I told you.
<apeiros> seriously.
<apeiros> I'm off, this gets far too annyoing.
<sevenseacat> lol
<g3orge> but you said that these are hex representations, so I thought I want hex to raw...
<apeiros> *facepalm*
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
<g3orge> why not?
<g3orge> I don't get it.. I'm sorry I'm not you..
brennanMKE has joined #ruby
<apeiros> g3orge: read the code. read it carefully. think about what is hex and what is raw.
<apeiros> then read the backlog. read it carefully. try to understand.
reppar has joined #ruby
<apeiros> but seriously, I'm off. I'll just be mean if I continue.
luke_ has joined #ruby
luke_ has quit [Client Quit]
zz_tsykoduk has quit [Read error: Operation timed out]
jrhe has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
barratt has quit [Ping timeout: 248 seconds]
mklappstuhl has joined #ruby
francisfish has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
francisfish has joined #ruby
jhaals has joined #ruby
Squarepy has quit [Ping timeout: 272 seconds]
barratt has joined #ruby
blaxter has quit [Quit: foo]
mark_locklear has joined #ruby
flujan has joined #ruby
<flujan> how can I detect a broken symlink in ruby?
reppar has quit [Quit: reppar]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hoelzro> flujan: perform a readlink and check for existence
<flujan> hoelzro: yeah, I thought we could have a better solution… But it is okay. Thanks .
flujan has left #ruby [#ruby]
buibex has quit [Remote host closed the connection]
<hoelzro> what would be a better solution here?
<hoelzro> that's two method calls =/
flujan has joined #ruby
<apeiros> he's gone
<apeiros> and back again...
* hoelzro shrugs
buibex has joined #ruby
<flujan> I am back…
<flujan> lol
jonathanwallace has joined #ruby
<hoelzro> I repeat:
<hoelzro> what would be a better solution here?
<hoelzro> that's two method calls =/
<flujan> I am using three… symlink? than read, then I try to find the file pointed…
dash_ has joined #ruby
fenec2 has joined #ruby
drumsrgr8forn8 has joined #ruby
sr78ger has joined #ruby
jrhe has joined #ruby
g0bl1n has joined #ruby
matthia__ has joined #ruby
zz_tsykoduk has joined #ruby
buibex has quit [Ping timeout: 252 seconds]
buibex has joined #ruby
cephalopod has quit [Quit: IRC is just multiplayer notepad]
jonathanwallace has quit [Ping timeout: 240 seconds]
dzhulk has quit [Read error: Connection reset by peer]
kaldrenon has joined #ruby
angusiguess has joined #ruby
shevy2 has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
<Hanmac> flujan: yeah "Ruby is a dying language." … blasphemy!!
Elhu has joined #ruby
Squarepy has joined #ruby
buibex has quit [Remote host closed the connection]
<flujan> I don't understand why theses guys do not send patches to the MRI instead of creation new languages…
<flujan> anyway, it is oss after all.
buibex has joined #ruby
alexju has quit [Remote host closed the connection]
aagdbl has joined #ruby
jerius has joined #ruby
waxjar has joined #ruby
alexju has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
mpeg has joined #ruby
jerius has quit [Client Quit]
buibex has quit [Ping timeout: 240 seconds]
aagdbl1 has quit [Ping timeout: 272 seconds]
mpeg has quit [Client Quit]
alexju has quit [Ping timeout: 248 seconds]
<shevy2> flujan every patch has a risk of being rejected
shevy2 is now known as shevy
iamjarvo_ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
<hoelzro> instead of hearing how many startups champion rails these days, I'd rather see a graph of # of GH projects using Ruby over time, or # gems over time
claymore has joined #ruby
samsonasu has joined #ruby
<hoelzro> the whole "Ruby is dying" thing is just FUD
<Hanmac> flujan: and MRI and rubinius are not maybe not similar enough in the code
<Hanmac> hoelzro: i think its a conspiracy from php and java combined ;P
<flujan> hanmac: lol
mansi has joined #ruby
<flujan> I believe php is crappy… Just on the last versions it starts supporting OO.
dash_ has quit [Quit: dash_]
sailias has joined #ruby
<hoelzro> the late support for OO is the least of PHP's concerns, imo
jbpros has joined #ruby
<Hanmac> did php already supports encoding? recently i had a problem with that oO … i mean there is utf8_encode function but imo you can not trust it
<rdark> Ruby is no longer the hip new thing it once was. This is a good thing for ruby in the long run though imho, it's passed adolescence and it's maturing into a grown-up language
someish has joined #ruby
mansi has quit [Remote host closed the connection]
v0n has joined #ruby
sambao21 has joined #ruby
<hoelzro> rdark: agreed
<MisutoWolf> So, I try to run this test for my code that I'm writing (i'm new to RSpec), and I get this error...
<shevy> flujan php design decisions are rather awful, the whole language is an inconsistent spaghetti mess from a design point of view
mansi has joined #ruby
<MisutoWolf> misutowolf@blomkvist:~/Projects/freeman$ rspec spec
<MisutoWolf> /home/misutowolf/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.6/lib/rspec/core/hooks.rb:512:in `extract_scope_from': You must explicitly give a scope (:each, :all, or :suite) when using symbols as metadata for a hook. (ArgumentError)
<hoelzro> (wrt PHP + unicode)
<MisutoWolf> ^-- test spec
<hoelzro> disclaimer: the presenter of that talk is a Perl junkie, so it's Perl biased
<rdark> As long as it doesn't fall into the trap of a major incompatible rewrite that splits or stagnates the community (a la perl 6, and to a lesser extent, python 3) then it should keep on keeping on
<hoelzro> it's also 2 years out of date
<MisutoWolf> Is my before block screwed up?
cody-- has joined #ruby
<Hanmac> rdark: that does not stop me … i am still trying to write an new RPGMaker in ruby … (yeah i am still working even i i dont have much time)
<hoelzro> granted, the presenter is also the one *responsible* for adding so much unicode goodness to Perl
enebo has joined #ruby
<MisutoWolf> oh, i think i see the problem, maybe
<MisutoWolf> never mind
ewnd9 has joined #ruby
<MisutoWolf> my before block is the problem, I guess I'm Doing It Wrong(tm)?
vince_prignano has joined #ruby
xk_id has quit [Quit:
lyanchih has joined #ruby
drumsrgr8forn8 has quit [Read error: Connection reset by peer]
drumsrgr8forn8 has joined #ruby
<MisutoWolf> oh
<MisutoWolf> :each isn't a thing
rjhunter has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
<MisutoWolf> err
mansi has quit [Ping timeout: 256 seconds]
<MisutoWolf> :test
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
siwica has joined #ruby
<shevy> perl 6 was truly a remarkable way to show how one should not do it
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
g3orge has quit [Quit: leaving]
dash_ has joined #ruby
rjhunter has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
<hoelzro> as much as I love perl (5 & 6), I agree
<hoelzro> Perl 6 should have had a new name
<hoelzro> because it's a completely different language
<hoelzro> bad PR move
barratt has quit [Remote host closed the connection]
barratt has joined #ruby
polaco_zZz is now known as polaco
yfeldblum has quit [Ping timeout: 268 seconds]
Sail is now known as Sail_Away
elux has joined #ruby
rjhunter has quit [Remote host closed the connection]
cody-- has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
tkuchiki has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
buibex has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_if has quit [Read error: Connection reset by peer]
colonolGron has quit [Quit: Lost terminal]
tkuchiki has joined #ruby
blackmesa has quit [Remote host closed the connection]
devoldmx has joined #ruby
orionstein_away is now known as orionstein
<maasha> just wait for perl 7 !
jonathanwallace has quit [Ping timeout: 240 seconds]
<shevy> well
tkuchiki has quit [Ping timeout: 245 seconds]
<shevy> they should just focus on perl5 for a while longer
<shevy> and then push perl 10.0
mmitchell has joined #ruby
devoldmx27 has quit [Ping timeout: 272 seconds]
rjhunter has quit [Remote host closed the connection]
<shevy> or!!!
<shevy> we merge mruby, ruby and perl into one super new language!
cody-- has joined #ruby
<shevy> we could call it "murl"
persand has joined #ruby
jdenen has joined #ruby
rickmasta has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
tomzx_mac has joined #ruby
jlast has joined #ruby
jerius has joined #ruby
persand has quit [Client Quit]
cody--_ has joined #ruby
jibi has joined #ruby
rjhunter has joined #ruby
cody-- has quit [Read error: Connection reset by peer]
cody--_ is now known as cody--
<shevy> murl hello_world.rl
<shevy> so sweet ...
mr_red has joined #ruby
rickmasta has quit [Client Quit]
<hoelzro> shevy: Perl 6 contains a *lot* of Ruby's best features
<hoelzro> so if you want to achieve the dream of murl, help with Perl 6 =P
varfoo has quit [Quit: WeeChat 0.4.0]
brennanMKE has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
robbyoconnor has joined #ruby
frustrum has joined #ruby
soba has quit [Ping timeout: 248 seconds]
siwica has joined #ruby
polaco is now known as polaco_zZz
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
reisl has joined #ruby
fntzr has quit [Ping timeout: 256 seconds]
dash_ has quit [Ping timeout: 246 seconds]
renanoronfle has joined #ruby
rickmasta has joined #ruby
raphaelivan has quit [Quit: Leaving.]
Patteh has joined #ruby
Monie has joined #ruby
Banistergalaxy has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
krz has quit [Quit: krz]
xk_id has joined #ruby
banisterfiend has joined #ruby
iamjarvo_ has joined #ruby
devoldmx3 has joined #ruby
larissa has quit [Ping timeout: 248 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
mklappst_ has joined #ruby
<shevy> I am more a dreamer than a hard worker :D
flujan has quit [Quit: flujan]
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
amritanshu_RnD has quit [Quit: Leaving]
<hoelzro> =)
devoldmx has quit [Ping timeout: 265 seconds]
<shevy> though
teapop has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
<shevy> I more try to write ruby scripts initially to make my time spent with computers more efficient
bamdad has left #ruby [#ruby]
AndChat- has quit [Ping timeout: 265 seconds]
siwica has quit [Ping timeout: 246 seconds]
catphish has joined #ruby
persand has joined #ruby
lyanchih has quit [Quit: lyanchih]
iamjarvo_ has quit [Ping timeout: 256 seconds]
<shevy> going to try and dream bigger!
<shevy> but when one stops dreaming, there is so much work suddenly :(
<catphish> a change in ruby 2.0 has highlighted a design flaw in something i wrote, but i'm unsure of how to fix it, i have a process that upon receiving a USR1 signal, kills child processes, forks and loads a new version of the child process, unfortunately since ruby 2.0 it's illegal to call require inside a trap, since my fork was inside a trap, my entire child process ends up being inside the trap
petey has joined #ruby
AlSquire has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
fgo has joined #ruby
jlebrech has joined #ruby
<catphish> is there an obvious way to work around this? obviously ruby is telling me that my entire program shouldn't be running from inside a trap call, but i'm not sure how i might get out of it
enebo has quit [Quit: enebo]
Mon_Ouie has quit [Ping timeout: 241 seconds]
xk_id has quit [Quit:
siwica has joined #ruby
dash_ has joined #ruby
fuhgeddaboudit has joined #ruby
freakfantom has joined #ruby
iamjarvo_ has joined #ruby
fgo has quit [Remote host closed the connection]
freakfantom has quit [Client Quit]
<hoelzro> catphish: what about exec'ing the child process after forking?
r0bby_ has joined #ruby
<hoelzro> or do you need to preserve the program state?
devoldmx has joined #ruby
mephux has quit [Quit: w0ots...]
fntzr has joined #ruby
<catphish> hoelzro: i was just considering that, the child relies to a limited degree on some methods provided by the parent
mephux has joined #ruby
devoldmx3 has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Ping timeout: 265 seconds]
mephux has quit [Changing host]
mephux has joined #ruby
<hoelzro> hmm
drumsrgr8forn8 has joined #ruby
rgbdev has joined #ruby
joshAnderson991 has quit [Ping timeout: 260 seconds]
<catphish> my "master" process has a main loop that just keeps an eye on things and does nothing, so i might set a global in the trap then form in the main loop instead
<catphish> *fork
freezey has joined #ruby
<hoelzro> that's probably the best way to do it
reisl is now known as larissa
cody-- has quit [Quit: derp]
<catphish> thanks
rgbdev has quit [Client Quit]
baordog_ has joined #ruby
vpretzel has joined #ruby
siwica has quit [Ping timeout: 253 seconds]
<catphish> hoelzro: this is the tool: https://github.com/atech/rbg/blob/master/lib/rbg.rb
mikecmpbll has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
kiri has joined #ruby
robert__ has joined #ruby
lfox has joined #ruby
alexju has joined #ruby
aagdbl has quit [Quit: Leaving.]
fntzr has quit [Ping timeout: 272 seconds]
robert_ has quit [Ping timeout: 252 seconds]
tabolario has joined #ruby
mrsolo has joined #ruby
aagdbl has joined #ruby
dhruvasagar has joined #ruby
maasha has quit [Ping timeout: 250 seconds]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
cody-- has joined #ruby
einarj has quit [Ping timeout: 265 seconds]
DaZ has quit [Ping timeout: 265 seconds]
Stalkr^ has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
cha1tanya has joined #ruby
burlyscudd has joined #ruby
yfeldblum has joined #ruby
mpeg has joined #ruby
Mon_Ouie has joined #ruby
rgbdev has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
tobago has quit [Remote host closed the connection]
devoldmx has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
aagdbl has quit [Read error: Operation timed out]
siwica has joined #ruby
DaZ has joined #ruby
nemysis has left #ruby [#ruby]
freezey has quit [Remote host closed the connection]
enebo has joined #ruby
cody-- has quit [Quit: derp]
prisoner has quit [Ping timeout: 252 seconds]
<shevy> I dream of a world without bugs
DrCode has quit [Remote host closed the connection]
freezey_ has joined #ruby
<sweeper> it's a feature \o/
<renanoronfle> hahaha
mlpinit has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
fntzr has joined #ruby
cha1tanya has quit [Ping timeout: 265 seconds]
stonevil has joined #ruby
andredublin has joined #ruby
DrCode has joined #ruby
siwica has quit [Ping timeout: 245 seconds]
freezey_ has quit [Read error: Connection reset by peer]
freezey has joined #ruby
freerobby has joined #ruby
habanany has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
wallerdev has joined #ruby
terrellt has joined #ruby
<Hanmac> shevy & sweeper look at Tex: "For this reason, he has stated that the "absolutely final change (to be made after my death)" will be to change the version number to π, at which point >>all remaining bugs will become features<<<."
mansi has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
stonevil has quit [Ping timeout: 248 seconds]
momomomomo has joined #ruby
dash_ has quit [Quit: dash_]
yacks has joined #ruby
marcgg has joined #ruby
nateberkopec has joined #ruby
mpeg has quit [Ping timeout: 256 seconds]
thesheff17 has joined #ruby
bean__ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
marcgg_ has quit [Ping timeout: 272 seconds]
kindjal has joined #ruby
abunashir has joined #ruby
kevind has joined #ruby
matchaw_ has quit [Ping timeout: 240 seconds]
matchaw has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
shevy has quit [Quit: ""]
andredublin has left #ruby [#ruby]
kindjal has quit [Client Quit]
fijimunkii has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
clov3r has joined #ruby
devoldmx has joined #ruby
tesuji has quit [Ping timeout: 265 seconds]
lyanchih has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
tesuji has joined #ruby
framling has quit [Quit: Lost terminal]
phantasm66 has joined #ruby
wildroman has quit [Remote host closed the connection]
kilophoton has joined #ruby
devoldmx has joined #ruby
capnmalarkey has quit [Quit: capnmalarkey]
wildroman has joined #ruby
Yakko has joined #ruby
plotter has quit [Remote host closed the connection]
dkamioka has joined #ruby
tesuji_ has joined #ruby
wildroman has quit [Read error: No route to host]
wildroman has joined #ruby
tylersmith has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
tesuji has quit [Ping timeout: 265 seconds]
kpshek has joined #ruby
threesome has quit [Read error: Operation timed out]
devoldmx has quit [Ping timeout: 245 seconds]
blaxter_ has joined #ruby
mansi has joined #ruby
zoee has quit [Ping timeout: 272 seconds]
jhaals has quit [Ping timeout: 260 seconds]
vince_prignano has quit [Remote host closed the connection]
goganchic has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
shevy2 has joined #ruby
mrsolo has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
shevy2 is now known as shevy
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
matthia__ has left #ruby [#ruby]
jonathanwallace has joined #ruby
failshell has joined #ruby
devoldmx has joined #ruby
neonlex has joined #ruby
petey has quit [Ping timeout: 272 seconds]
petey_ has joined #ruby
end_guy has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 248 seconds]
xk_id has joined #ruby
agjacome has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
mercwithamouth has quit [Ping timeout: 272 seconds]
chriskentfield has joined #ruby
lukec has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
camilasan has joined #ruby
siwica has joined #ruby
neonlex has quit [Ping timeout: 272 seconds]
jlast has quit [Remote host closed the connection]
rgbdev has quit [Quit: rgbdev]
rickmasta has quit [Quit: Leaving...]
stonevil has joined #ruby
bamdad has joined #ruby
bamdad has quit [Client Quit]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
threesome has joined #ruby
Catie has quit [Read error: Operation timed out]
tagrudev has quit [Remote host closed the connection]
dawkirst has joined #ruby
whowantstolivefo has joined #ruby
abunashi_ has joined #ruby
heftig has quit [Quit: Quitting]
sjltaylo_ has joined #ruby
kil0byte has joined #ruby
tesuji_ has quit [Ping timeout: 272 seconds]
ij has joined #ruby
<ij> Does the destroyallsoftware guy hang around here? @garybernhardt
mlpinit has joined #ruby
<sevenseacat> nah
kil0byt__ has joined #ruby
kil0byte_ has quit [Ping timeout: 252 seconds]
abunashir has quit [Ping timeout: 256 seconds]
siwica has quit [Read error: Connection reset by peer]
<catphish> this behaviour upsets me: "1 2 3 4 ".split(/ /) => ["1", "2", "3", "", "4"]
<ij> sevenseacat, Are you sure?
<sevenseacat> ij: i havent seen him here.
<ij> ok
equ1n0x has joined #ruby
rgbdev has joined #ruby
siwica has joined #ruby
sjltaylo_ has quit [Ping timeout: 248 seconds]
Catie has joined #ruby
<goganchic> catphish, try "1 2 3 4".split(/\s+/)
v0n has quit [Quit: WeeChat 0.4.3-dev]
<shevy> catphish indeed odd...
petey_ has quit [Remote host closed the connection]
<apeiros> catphish: which part of it? the empty string or the missing empty string?
<shevy> when I apply .join ' ' on that result, I get ""1 2 3 4" so I miss one ' '
<catphish> shevy: " 1 2 3 4 ".split(/ /) => ["", "1", "2", "3", "", "4"]
kil0byte has quit [Ping timeout: 240 seconds]
<catphish> it's not very consistent
<shevy> remove one " from my paste
petey has joined #ruby
<apeiros> >> "1 2 3 4 ".split(/ /, -1)
<eval-in> apeiros => ["1", "2", "3", "", "4", ""] (https://eval.in/54853)
<catphish> how did you do that?
<shevy> now that one works
<apeiros> -1 as 2nd arg
v0n has joined #ruby
<catphish> but... but...
<apeiros> it'd be nice if that was default behavior
<catphish> ok :)
<shevy> I did not even know .split accepts more than one argument
<catphish> yeah, you can limit it which is cool
SilverKey has quit [Quit: Sleep now]
<catphish> >> "1 2 3 4 ".split(/ /, 2)
<catphish> >> "1 2 3 4 ".split(/ /, 2)
<eval-in> catphish => ["1", "2 3 4 "] (https://eval.in/54854)
<catphish> >>" ".split(/ /)
<eval-in> catphish => [] (https://eval.in/54855)
<catphish> >>" ".split(' ', -1)
rickmasta has joined #ruby
<eval-in> catphish => [""] (https://eval.in/54856)
<MisutoWolf> So, i have a weird question. I'm dealing with this protocol:
general|fedora has joined #ruby
<catphish> >>" ".split(/ /, -1)
<eval-in> catphish => ["", "", "", "", "", "", "", "", "", "", ""] (https://eval.in/54857)
<catphish> wow
chriskentfield has quit [Quit: leaving]
<catphish> so, -1, but only with regex
SilverKey has joined #ruby
<MisutoWolf> and i'm trying to figure out how i'm going to look for a null terminated string
<shevy> ack
<MisutoWolf> coming from a UDP socket
<shevy> " ".split(/ /, -1) gives the weirdest result
<catphish> shevy: actually, that's the result i'd expect
<shevy> hmmmmm
<catphish> that's the only sane result
stonevil has quit [Remote host closed the connection]
<hoelzro> misutowolf: what do you mean?
<catphish> misutowolf: what you mean by "look for"
<catphish> i'd just do udp_data.split("\0")
<catphish> or similar
<catphish> apeiros: thanks!
general|fedora has quit [Client Quit]
awkwords has joined #ruby
decoponio has joined #ruby
<MisutoWolf> like
<MisutoWolf> grab a string and return it that's null terminated
<MisutoWolf> is what I'd done, where @buffer is the string i'm looking in
<MisutoWolf> and @position is the position i'm starting at in the buffer
<MisutoWolf> the problem is, I don't know what encoding the string is coming in, and I guess that's been causing me problems
freakcult has quit [Ping timeout: 248 seconds]
<MisutoWolf> since i don't know what I should be using for the substring in index()
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<catphish> misutowolf: s[0,s.index("\0")]
<catphish> like that?
<catphish> that will return the string up to the first \0
freakcult has joined #ruby
<hoelzro> that page says that the strings are UTF-8 encoded
<hoelzro> and NUL terminated
v1n has joined #ruby
stonevil has joined #ruby
Tricon has joined #ruby
ffranz has joined #ruby
deception has joined #ruby
<MisutoWolf> so does that mean I should be looking for \u0000 or 0x00 or something Unicode-y?
mansi has quit [Read error: Connection reset by peer]
<hoelzro> just '\0'
<hoelzro> like catphish has said
awkwords has left #ruby [#ruby]
<workmad3> mmm, NUL terminated strings
mansi has joined #ruby
<catphish> i love binary network protocols
<catphish> (not even joking)
<MisutoWolf> i guess i was just confused, since I was trying to test this thing in IRB
<MisutoWolf> and it didn't seem to be working
<catphish> >>s="hello\0lalalala";s[0,s.index("\0")]
<eval-in> catphish => "hello" (https://eval.in/54858)
<catphish> i love that bot
<MisutoWolf> nifty
threesome has quit [Ping timeout: 256 seconds]
<catphish> but normally the reason for null terminating a string in a network protocol is that something else follows after
<MisutoWolf> right
v0n has quit [Ping timeout: 240 seconds]
<catphish> otherwise it would just be the end of the datagram
<MisutoWolf> it's a bunch of information about a HL2/etc server
<catphish> so you need to make some logic to parse the whole packet
<MisutoWolf> map, mod, all of that
<MisutoWolf> mhmm
<catphish> misutowolf: also, look up how to use string#unpack
<MisutoWolf> yeah
fgo has joined #ruby
<catphish> that's ideal for fixed length data
<MisutoWolf> this is what I have so far (entire ruby file)
<catphish> and i think it supports null terminated strings too
fgo has quit [Remote host closed the connection]
pentameter has joined #ruby
wildroman has quit [Remote host closed the connection]
marcgg_ has joined #ruby
xk_id has quit [Quit:
zoee has joined #ruby
wildroman has joined #ruby
kevind_ has joined #ruby
<catphish> looks like you got the idea
<MisutoWolf> :D
<MisutoWolf> i guess i'm just sort of overwhelmed, this is my first try at doing anything with Ruby in my life
wallerdev has quit [Quit: wallerdev]
<MisutoWolf> i like it a lot, though
robert__ is now known as robert_
jprovazn has quit [Quit: Leaving]
shevy has quit [Ping timeout: 256 seconds]
Monie has joined #ruby
brennanMKE has quit [Remote host closed the connection]
airdisa has joined #ruby
<catphish> misutowolf: your code to find the \0 should work fine
xk_id has joined #ruby
<MisutoWolf> hm
marcgg has quit [Ping timeout: 272 seconds]
<catphish> though i'm not sure why you increment the position by 2
<catphish> @position+=2
<catphish> you should only need to increment by 1 (the null byte)
mrsolo has quit [Quit: This computer has gone to sleep]
<MisutoWolf> right
goganchic has quit []
<MisutoWolf> hmmmmm
<MisutoWolf> sec
kevind has quit [Ping timeout: 272 seconds]
<catphish> but experiment and you'll see
kevind_ is now known as kevind
teapop_ has joined #ruby
parzo_ has quit [Read error: Connection reset by peer]
wildroman has quit [Ping timeout: 246 seconds]
parzo has joined #ruby
svector has quit [Ping timeout: 272 seconds]
<m4rcu5> hhm, if i pass a attribute to a methode like to: doSomething(hash[:key][:key]) can i find out within the function where the value came from and even delete it in the hash?
zoee has quit [Ping timeout: 272 seconds]
<hoelzro> m4rcu5: no
<MisutoWolf> This is hwat happens when I test it in IRB
dhruvasagar has joined #ruby
tvw has quit []
alx- has joined #ruby
<hoelzro> unless you have a hash-like object and have it return wrapper values that understand their place
gener1c has joined #ruby
<m4rcu5> hoelzro: is there a recommended way around this?
<hoelzro> m4rcu5: depends; what exactly are you trying to do?
teapop has quit [Ping timeout: 240 seconds]
Giorgio has quit [Ping timeout: 272 seconds]
<m4rcu5> i have a validation function that should remove the whole key value pair if it determens its invalid
maletor has joined #ruby
<hoelzro> you could pass in the hash and the "path" to the value instead
iamjarvo_ has quit [Remote host closed the connection]
<hoelzro> like so: doSomething(hash, [:key, :key])
iamjarvo has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
airdisa has quit [Ping timeout: 240 seconds]
<m4rcu5> hoelzro: hhmm, thats an option. thanks
schaerli has quit [Remote host closed the connection]
kindjal has joined #ruby
<m4rcu5> i was hoping because everything seems to be an option in ruby that it would have a way to determine where it came from :)
<MisutoWolf> ugh
wildroman has joined #ruby
schaerli has joined #ruby
<MisutoWolf> so i don't know why when i set the buffer to 'Hello\0World\0'
<MisutoWolf> it ends up being \x00 for null instead of just \0
<MisutoWolf> (hence my function not finding them, i guess?)
gener1c has quit [Ping timeout: 252 seconds]
buibex has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 256 seconds]
<MisutoWolf> oh hey
<MisutoWolf> unpack('Z')
brennanMKE has joined #ruby
VSpike has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
<VSpike> I'm trying to get this https://github.com/cprice404/redmine-trello work on an Ubuntu 12.04 server. I've installed Ruby 1.9.1 and also the gems faraday and ox, but it also wants github_api. When I do gem install github_api I get "ERROR: While executing gem ... (ArgumentError)
astrobunny has quit [Ping timeout: 240 seconds]
<VSpike> invalid byte sequence in US-ASCII" .. I found a few references to this, but none of the suggestions seem to work for me (e.g. export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8)
h_kon_ has quit [Remote host closed the connection]
<VSpike> Any suggestion what I can try next?
h_kon has joined #ruby
end_guy has joined #ruby
lethjakman has joined #ruby
Squarepy has quit [Quit: Leaving]
blaxter_ has quit [Quit: foo]
<apeiros> misutowolf: '\0' is a backslash followed by a zero. "\0" is a null-byte.
<apeiros> single quotes have no escape sequences except \\ and \'
tkuchiki has joined #ruby
sailias has quit [Quit: Leaving.]
burlyscudd has quit [Quit: Leaving.]
<MisutoWolf> OH
<MisutoWolf> OH SHIT
<apeiros> also, "\x00" and "\0" are identical
h_kon has quit [Ping timeout: 248 seconds]
<MisutoWolf> i didn't realize that about the quotes
<MisutoWolf> (I'm a novice to programming, honestly)
astrobunny has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<hoelzro> oops, that is *my* bad
<hoelzro> I was the one who said '\0'
wallerdev has joined #ruby
<MisutoWolf> HAHA!
<MisutoWolf> it works!
<MisutoWolf> :D
framling has joined #ruby
<MisutoWolf> *fixes that 2*
cody-- has joined #ruby
barratt has quit [Quit: Leaving...]
mklappst_ has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
rippa has joined #ruby
arastu has joined #ruby
diegoviola has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<arastu> hello
petey has quit [Remote host closed the connection]
cody-- has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
petey has joined #ruby
marcgg has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
sevenseacat has left #ruby [#ruby]
pel_daniel has joined #ruby
tkuchiki has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
jkamenik has quit [Quit: Leaving.]
larissa has quit [Quit: Leaving]
dash_ has joined #ruby
nouitfvf has joined #ruby
marcgg_ has quit [Ping timeout: 248 seconds]
barratt has joined #ruby
petey has quit [Ping timeout: 272 seconds]
ahawkins has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
bradhe has joined #ruby
sailias has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
jonathanwallace has joined #ruby
schaerli has joined #ruby
kilophoton has quit [Ping timeout: 240 seconds]
jbpros has quit [Quit: jbpros]
teapop_ has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 260 seconds]
teapop has joined #ruby
mschneider_dev has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
aganov has quit [Remote host closed the connection]
VTLob has joined #ruby
momomomomo_ has joined #ruby
ssvo has quit [Ping timeout: 272 seconds]
momomomomo_ has quit [Client Quit]
petey has joined #ruby
threesome has joined #ruby
julweber has quit [Remote host closed the connection]
polaco_zZz is now known as polaco
julweber has joined #ruby
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
Monie has joined #ruby
kiri has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
danman has joined #ruby
kiri has joined #ruby
jbpros has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
xk_id has quit [Quit:
Monie has quit [Client Quit]
ij has quit [Ping timeout: 245 seconds]
a1ph4g33k has joined #ruby
astrobun_ has joined #ruby
mrsolo has joined #ruby
valesk has joined #ruby
r0bby_ has joined #ruby
geggam_ has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
RichardBaker has joined #ruby
bradhe has joined #ruby
thumpba has joined #ruby
user258467 has quit [Quit: Quitte]
Theravadan has joined #ruby
rgbdev has quit [Quit: rgbdev]
<kapowaz> is there a common pattern/idiom for specifying gems to only use with your rake tasks?
<kapowaz> does group :rake do that, or would I need to wire that up somehow?
jbpros has quit [Quit: jbpros]
mgolisch has joined #ruby
rgbdev has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
<rjhunter> kapowaz: I haven't seen a common way of doing that. You'd need to wire up group :rake yourself, though there would be complexities to deal with when someone runs `bundle exec rake`
<kapowaz> ok, thanks then.
rgbdev has quit [Client Quit]
Theravadan has quit [Client Quit]
ssvo has joined #ruby
alup has quit [Quit: Leaving]
kil0byte has joined #ruby
lyanchih has quit [Quit: lyanchih]
petey has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
petey has joined #ruby
capnmalarkey has joined #ruby
lewis has joined #ruby
Davey has joined #ruby
kindjal has quit [Ping timeout: 272 seconds]
kil0byt__ has quit [Ping timeout: 248 seconds]
jibi has quit [Quit: .]
arastu has quit [Quit: Leaving]
stonevil has quit [Remote host closed the connection]
Davey has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby
jbpros has joined #ruby
<MisutoWolf> i can't decide whether to keep working in VIM
abunashir has joined #ruby
<MisutoWolf> or switch over to RubyMine
Davey has joined #ruby
<diegoviola> how do i go in converting slim views back to erb?
<diegoviola> html/erb
petey has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
xk_id has joined #ruby
parzo has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
kil0byte_ has joined #ruby
kindjal has joined #ruby
habanany has joined #ruby
Nogbit has joined #ruby
TMM has quit [Quit: Ex-Chat]
kaspergrubbe has quit [Ping timeout: 272 seconds]
parzo has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
abunashi_ has quit [Ping timeout: 272 seconds]
freezey has quit [Remote host closed the connection]
stonevil has joined #ruby
mikecmpbll has joined #ruby
JeanMertz has quit [Read error: Operation timed out]
kil0byte has quit [Ping timeout: 268 seconds]
rickmasta has joined #ruby
kf8a has joined #ruby
theoretick has joined #ruby
stonevil has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
heftig has joined #ruby
<catphish> consider haml :)
raphaelivan has joined #ruby
catphish has left #ruby ["Leaving"]
<rjhunter> diegoviola: I don't know of any automated tools that convert *from* slim/haml to erb
raphaelivan has quit [Client Quit]
gmas has joined #ruby
<rjhunter> you could render the slim to HTML, then manually replace the dynamic bits
tjad has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
siwica has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
zarubin has joined #ruby
timonv has quit [Remote host closed the connection]
petey has joined #ruby
timonv has joined #ruby
siwica has quit [Read error: Connection reset by peer]
jerrad has joined #ruby
Voodoofish430 has joined #ruby
boxmein has joined #ruby
hakunin_ has joined #ruby
hakunin has quit [Ping timeout: 256 seconds]
DrShoggoth has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
sambao21 has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
kf8a has quit [Ping timeout: 245 seconds]
mhodgson has joined #ruby
dhruvasagar has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
Kruppe has joined #ruby
keen__ has joined #ruby
MrV_ has quit [Ping timeout: 246 seconds]
siwica has joined #ruby
keen_ has quit [Ping timeout: 248 seconds]
stunthamster has quit [Quit: Linkinus - http://linkinus.com]
lewis has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
georgi_ has joined #ruby
ghr has quit [Quit: Textual IRC Client: www.textualapp.com]
jlast has joined #ruby
benweint has joined #ruby
zastern_ has joined #ruby
drumsrgr8forn8 has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
aspires has joined #ruby
siwica has quit [Ping timeout: 245 seconds]
jerrad has quit [Changing host]
jerrad has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
sixtenei1hty is now known as sixteneighty
RichardBaker has quit [Ping timeout: 268 seconds]
sepp2k has quit [Quit: Konversation terminated!]
zastern has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
someish has quit [Quit: someish]
RichardBaker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Quit: jbpros]
PanPan has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
francisfish has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
PanPan has quit [Remote host closed the connection]
francisfish has joined #ruby
r0bby_ has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
sergicles has quit [Ping timeout: 252 seconds]
maycon has quit [Read error: Connection reset by peer]
kilophoton has joined #ruby
enebo has quit [Ping timeout: 240 seconds]
abunashir has quit [Remote host closed the connection]
abunashir has joined #ruby
camilasan has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
freezey has joined #ruby
zeade has joined #ruby
petey has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 246 seconds]
petey has joined #ruby
schaerli has quit [Remote host closed the connection]
Kruppe has quit [Quit: ZNC - http://znc.in]
schaerli has joined #ruby
chrisja has joined #ruby
iamjarvo has quit [Remote host closed the connection]
Kruppe has joined #ruby
luke has joined #ruby
luke has quit [Client Quit]
zastern_ has quit [Remote host closed the connection]
pragmatism has joined #ruby
abunashir has quit [Ping timeout: 245 seconds]
zastern has joined #ruby
zastern has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
petey has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
radic has quit [Ping timeout: 245 seconds]
pootler has quit [Ping timeout: 248 seconds]
stonevil has joined #ruby
schaerli has quit [Ping timeout: 272 seconds]
warmwaffles has joined #ruby
petey has joined #ruby
fastred has joined #ruby
r0bby_ has joined #ruby
persand has quit [Quit: persand]
barratt has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
malcolmva has joined #ruby
workmad3 is now known as tubbot
tubbot is now known as workmad3
gmas has quit [Ping timeout: 245 seconds]
malcolmva has quit [Max SendQ exceeded]
freezey has quit [Ping timeout: 272 seconds]
AndChat- has joined #ruby
malcolmva has joined #ruby
eightygrit has joined #ruby
abunashir has joined #ruby
PanPan has joined #ruby
warmwaffles has left #ruby [#ruby]
kilophoton has quit [Ping timeout: 245 seconds]
stonevil has quit [Remote host closed the connection]
freezey has joined #ruby
Banistergalaxy has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
T__T has joined #ruby
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
kindjal has quit [Quit: Computer has gone to sleep.]
petey has quit [Remote host closed the connection]
jerrad is now known as Underbyte
someish has joined #ruby
petey has joined #ruby
saarinen has quit [Ping timeout: 272 seconds]
carlyle has joined #ruby
radic has joined #ruby
sergicles has joined #ruby
Monie has joined #ruby
kindjal has joined #ruby
cha1tanya has joined #ruby
maycon has joined #ruby
rickmasta has quit [Quit: Leaving...]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
r0bby_ has quit [Quit: Konversation terminated!]
ericmathison has joined #ruby
diegoviola has joined #ruby
krz has quit [Quit: krz]
petey has quit [Ping timeout: 245 seconds]
krz has joined #ruby
randomnick_ has quit [Remote host closed the connection]
maletor has joined #ruby
lukec has quit [Quit: lukec]
maletor has quit [Client Quit]
timonv has joined #ruby
momomomomo has quit [Quit: momomomomo]
Jdubs has joined #ruby
tylersmith has joined #ruby
iamjarvo has joined #ruby
Stalkr^ has joined #ruby
<a1ph4g33k> g'morning folks.
<robert_> hey.
<robert_> so I'm looking at writing a ruby SOAP/WSDL server, however I'm getting "undefined method `upcase' for nil:NilClass (NoMethodError)" when I try to access the server from .NET :/
<Morrolan> Well, somewhere in your code (the stacktrace will tell you where) you're calling 'upcase' on an object which happens to be 'nil'.
mschneider_dev has quit [Remote host closed the connection]
Guest23812 has joined #ruby
mschneider_dev has joined #ruby
<MisutoWolf> What the hell?
<robert_> it seems to work if I set self.authenticator
persand has joined #ruby
<MisutoWolf> When I try to install a gem (namely rails/rspec) on my system, I get this>
<robert_> but I don't want an authenticated web service, lol
<MisutoWolf> ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
Nisstyre-laptop has joined #ruby
<MisutoWolf> SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number
jbpros has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Ping timeout: 272 seconds]
Azulinho_ has quit [Ping timeout: 256 seconds]
<MisutoWolf> :/
<bean__> sounds like you're connecting to something over SSL that just doesn't like you.
<MisutoWolf> I have no idea what the deal is.
<MisutoWolf> I'm just trying to run "
<MisutoWolf> "gem install rspec rails"
mr_red has quit [Ping timeout: 245 seconds]
mschneider_dev has quit [Ping timeout: 245 seconds]
tjbarber has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
rezzack has joined #ruby
Banistergalaxy has joined #ruby
Jdubs has quit [Remote host closed the connection]
Jdubs has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
Jdubs has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
elaptics is now known as elaptics`away
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
Stalkr^ has quit [Quit: Leaving...]
capnmalarkey has quit [Quit: capnmalarkey]
adhi has joined #ruby
khushildep has quit [Ping timeout: 272 seconds]
AndChat- has quit [Ping timeout: 240 seconds]
heidi has joined #ruby
<rippa> 's'.updawg
fomatin has joined #ruby
timonv has quit [Remote host closed the connection]
<bean__> >> Class String; def updawg; puts "what's updawg"; end; end; 's'.updawg
<eval-in> bean__ => /tmp/execpad-a945418c4310/source-a945418c4310:3: syntax error, unexpected keyword_rescue, expecting end-of-input ... (https://eval.in/54888)
<bean__> BAH
Spami has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
adhi has quit []
adhi has joined #ruby
adhi has left #ruby [#ruby]
<Hanmac> bean__: "class" != "Class"
<bean__> yep
* bean__ has clearly not had enough caffeine
<bean__> >> class String; def updawg; puts "what's updawg"; end; end; 's'.updawg
<eval-in> bean__ => what's updawg ... (https://eval.in/54891)
Monie has joined #ruby
<bean__> there we go.
<cout> YUM CAFFEEINE YUM
randomnick_ has joined #ruby
Monie has quit [Client Quit]
T__T has quit [Ping timeout: 260 seconds]
RORgasm_ has joined #ruby
stkowski has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
stkowski is now known as perlphil
<MisutoWolf> What would be the best way for me to check whetehr or not RUby can decompress something that's bz2 compressed?
pyrac has quit [Quit: pyrac]
akhkharu has joined #ruby
<cout> define "can"
<MisutoWolf> i'm writing a socket wrapper for this Source Engine (HL2, etc.) project
<bean__> misutowolf: theres a gem called bzip2-ruby
<bean__> that cn
<bean__> can*
<MisutoWolf> and servers can compress the data they send via udp via bz2 apparently
<cout> I don't get why anybody uses bz2 when we have lzma
<MisutoWolf> *shrugs*
<MisutoWolf> it's Valve, I guess.
<MisutoWolf> i'm just messing with their protocol
<Hanmac> i also have an archive gem that can decompess anything … but i need to rewrite it again
<cout> hanmac: rerewrite?
geggam has quit [Disconnected by services]
geggam_ is now known as geggam
astrobun_ has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
Monie has joined #ruby
<MisutoWolf> so instead of worrying or not where they 'have the gem or not' in program logic, should I just make it a dependency, so it's not an issue for them either way?
geggam_ has joined #ruby
rjhunter has quit [Quit: zzzzzz]
someish has quit [Quit: someish]
fntzr has quit [Ping timeout: 246 seconds]
ewnd9 has quit [Read error: Operation timed out]
capnmalarkey has joined #ruby
<Hanmac> cout yeah something like that, i think there are still a few bugs inside
Es0teric has joined #ruby
Es0teric has quit [Remote host closed the connection]
JeanMertz has joined #ruby
pootler has joined #ruby
havenwood has joined #ruby
<bean__> misutowolf: likely
lfox has joined #ruby
krz has quit [Read error: Connection reset by peer]
soheil has joined #ruby
astrobunny has joined #ruby
zz_tsykoduk is now known as tsykoduk
T__T has joined #ruby
burlyscudd has quit [Quit: Leaving.]
klaut has quit [Remote host closed the connection]
allsystemsarego has quit [Quit: Leaving]
codeFiend has joined #ruby
siwica has joined #ruby
jnix has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Zolo has joined #ruby
jnix has joined #ruby
mzdravkov has joined #ruby
troessner has quit [Quit: Leaving]
ffio has joined #ruby
jnix has quit [Changing host]
jnix has joined #ruby
mschneider_dev has joined #ruby
theRoUS has quit [Ping timeout: 272 seconds]
<mzdravkov> I want to make a veeeery simple 2 player online board game to play tafl with few friends. What's the easiest way to just send few numbers to the other player? Maybe rack?
Azulinho_ has joined #ruby
saarinen has joined #ruby
jnix has left #ruby [#ruby]
persand has quit [Quit: persand]
bricker`LA has joined #ruby
adambeynon has joined #ruby
<bean__> probably a socket connecting the two
<xybre> Yeah just opening a socket
<xybre> TCP
boxmein has joined #ruby
lukec has joined #ruby
rgbdev has joined #ruby
<havenwood> Or DRb.
<finnomenon> what's tafl?
whunt has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Remote host closed the connection]
capnmalarkey has quit [Quit: capnmalarkey]
<havenwood> finnomenon: Dunno. Why do you ask?
iamjarvo has joined #ruby
Mitchellvanw has joined #ruby
vince_prignano has joined #ruby
iamjarvo_ has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
Ahti333 has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
enebo has joined #ruby
<mzdravkov> thanks ill check it
kilophoton has joined #ruby
mark_locklear has joined #ruby
<finnomenon> havenwood: mrdavkov mentioned it
scarolan has quit [Ping timeout: 245 seconds]
<havenwood> aha
Azulinho_ has quit [Ping timeout: 240 seconds]
ffranz has joined #ruby
<havenwood> like a jekyll-ish thing, looks like
krz has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
frozon has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
scarolan has joined #ruby
lethjakm1 has joined #ruby
soheil has quit [Ping timeout: 245 seconds]
petey has joined #ruby
rgbdev has quit [Quit: rgbdev]
fmcgeough has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<mzdravkov> finnomenon: sorry, just now seeing your question. Its a old scandinavian board game. If you have read Wheel of time series, you might have heard about it, but with different name. Anyway its a fun game
heftig has quit [Quit: Quitting]
randomnick_ has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
Es0teric has joined #ruby
ShellFu has joined #ruby
mengu has joined #ruby
petey has joined #ruby
momomomomo has quit [Quit: momomomomo]
orionstein is now known as orionstein_away
kindjal has quit [Quit: Computer has gone to sleep.]
<havenwood> oh, the game not the lib, ha - looks like an interesting game
lethjakman has quit [Ping timeout: 252 seconds]
mrchris has joined #ruby
<mrchris> Hi
tsykoduk is now known as zz_tsykoduk
benweint has quit [Quit: Computer has gone to sleep.]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
sepp2k has joined #ruby
Mrk1869 has joined #ruby
randomnick_ has joined #ruby
someish has joined #ruby
mengu has quit [Remote host closed the connection]
<a1ph4g33k> mzdravkov, a good article that should get you started on your simple chat protocol would be: http://jxs.me/2010/08/20/websockets-using-ruby-eventmachine/
petey has quit [Ping timeout: 272 seconds]
Croissant41 has joined #ruby
<Croissant41> hey guys
<Croissant41> I got a problem with my ruby version: http://pastie.org/8407080. Someone got any ideas ?
mercwithamouth has joined #ruby
soheil has joined #ruby
<Croissant41> It told me that "rbenv: version `2.0.0-p247' is not installed". What's wrong ?
bean__ has quit [Quit: Computer has gone to sleep.]
abunashir has quit [Remote host closed the connection]
nfk has joined #ruby
<mzdravkov> thanks a1ph4g33k
Nisstyre-laptop has quit [Ping timeout: 268 seconds]
<a1ph4g33k> you are quite welcome.
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> Croissant41: Seems the usual answer to rbenv questions is to `rehash`.
Underbyte has quit [Quit: Leaving...]
cody-- has quit [Quit: derp]
<Croissant41> havenwood: Already done, obviously :(
freezey has quit [Remote host closed the connection]
^conner has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 272 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox_away is now known as DanKnox
Stalkr^ has joined #ruby
fijimunk1i has joined #ruby
notjohn has joined #ruby
sambao21 has joined #ruby
Hanmac has quit [Quit: Leaving.]
jkline has joined #ruby
mephux has quit [Ping timeout: 240 seconds]
iamstalkr has joined #ruby
freezey_ has joined #ruby
hukl has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
Stalkr^ has quit [Read error: Connection reset by peer]
mephux has joined #ruby
zz_tsykoduk is now known as tsykoduk
<havenwood> Croissant41: I think the best solution to rbenv problems is chruby! :P
maycon has quit [Quit: Saindo]
mattyw has quit [Quit: Leaving]
<Croissant41> havenwood: :P
lewis has joined #ruby
lewis has quit [Changing host]
lewis has joined #ruby
<Croissant41> havenwood: That's not the expected answer :)
Stalkr^ has joined #ruby
iamstalkr has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Remote host closed the connection]
nwertman has quit [Quit: Lost terminal]
Mars` has joined #ruby
lethjakm1 has quit [Ping timeout: 245 seconds]
tatsuya_o has joined #ruby
nwertman has joined #ruby
kenyabob has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
nwertman has quit [Client Quit]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
bean__ has joined #ruby
<kenyabob> Ive got an image cropping script thats a real memory hog. Im assuming I need to destroy my temporary references to the image and its thumbnail, but not sure how: https://gist.github.com/55728f448ef7310e5897
sambao21 has joined #ruby
postmodern has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
georgi_ has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
nwertman has quit [Client Quit]
cha1tanya has quit [Quit: cha1tanya]
Eiam has joined #ruby
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
nwertman has joined #ruby
jerrad has joined #ruby
jerrad has joined #ruby
jerrad has quit [Changing host]
mrsolo has quit [Quit: This computer has gone to sleep]
fomatin has quit [Quit: Computer has gone to sleep.]
benweint has joined #ruby
mrchris has quit [Ping timeout: 250 seconds]
MisutoWolf has quit [Quit: WeeChat 0.4.0]
tatsuya_o has quit [Ping timeout: 268 seconds]
soheil_ has joined #ruby
jrhe has quit [Quit: jrhe]
soheil has quit [Read error: Connection reset by peer]
jibi has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
jonathanwallace has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
pyrac has joined #ruby
habanany has quit [Ping timeout: 272 seconds]
cody-- has joined #ruby
jonathanwallace has quit [Client Quit]
jonathanwallace has joined #ruby
johnnyfuchs has joined #ruby
kindjal has joined #ruby
johnnyfuchs has quit [Client Quit]
johnnyfuchs has joined #ruby
kilophoton has quit [Ping timeout: 272 seconds]
stonevil has joined #ruby
jonathanwallace has quit [Client Quit]
nateberkopec has joined #ruby
jonathanwallace has joined #ruby
<havenwood> kenyabob: No need for the #clone()s and always omit empty parens. (Well, super() has some obscure exceptions, but almost always.) Check out `File.split` and `File.join` for your path manipulation.
<xybre> kenyabob: try using the minimagick gem, it should hog less memory
jonathanwallace has quit [Client Quit]
<havenwood> kenyabob: FileUtils.mkdir_p doesn't need a File.exists? check, that is built-in to _p.
jonathanwallace has joined #ruby
capnmalarkey has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
<havenwood> GC.start on each iteration? :P
awarner has joined #ruby
michael_mbp is now known as zz_michael_mbp
timonv has joined #ruby
gmas has joined #ruby
MrZYX|off is now known as MrZYX
Nisstyre-laptop has joined #ruby
<xybre> havenwood: I suspect the problem is that the gem they're using is loading imagemagick into memory and that its im that is leaking
awarner_ has quit [Ping timeout: 248 seconds]
<shevy> hmmm
<shevy> looooook
<havenwood> xybre: mm
<shevy> "Ruby's issue IMHO is that it has always been a Rails-centric community/ecosystem and never had the change to grow beyond that."
<havenwood> xybre: thin wrappers ftw!
ravster has joined #ruby
awarner_ has joined #ruby
<xybre> shevy: "always" "never"
awarner_ has quit [Remote host closed the connection]
<havenwood> shevy: I blame Rails!
awarner has quit [Ping timeout: 268 seconds]
<havenwood> shevy: Dunno what for, but damn u Rails!!!
whowantstolivefo has quit [Ping timeout: 246 seconds]
shadoi has quit [Quit: Leaving.]
awarner has joined #ruby
shadoi has joined #ruby
<shevy> well
<shevy> I remember the days when rails did not exist
<kenyabob> havenwood: if I don't use clone, and I modify 'new_path' then path is modified as well — I think thats why i have the puts path, puts new_path in there, to debug that issue
seoNinjaWarrior has joined #ruby
<shevy> so there was no "rails community" back then... but there were lots of people on IRC
<havenwood> Ruby is used in supercomputers, fighter aircraft simulators, embedded devices, maybe **he/she** just uses Rails. :P
<shevy> so I really wonder...
awarner has quit [Write error: Connection reset by peer]
<shevy> havenwood well, my gripe is like people say that there exists only a large rails community and nothing else now ... :(
<havenwood> kenyabob: `copied_path = path` should do the trick just fine without any cloning
<shevy> I can't imagine that everyone here only uses ruby because of rails
awarner has joined #ruby
Hobogrammer_ has quit [Read error: Connection reset by peer]
<havenwood> shevy: for sure not! i don't get why folk act like that is the case. just a myopic point of view imho.
fmcgeough has quit [Quit: fmcgeough]
valesk has quit [Ping timeout: 272 seconds]
<havenwood> But true stuff like Drb and other really neat Ruby stuff gets overlooked just cause Rails doesn't use it.
Azulinho_ has joined #ruby
<Rylee> wow, is drb included in most distributions of ruby?
<shevy> hmm
<shevy> Rylee should be, yeah
<shevy> require 'drb' # => true
<Rylee> this looks really cool
<havenwood> Rylee: It really is. When you need to talk between languages other than Ruby, MQs, but when it is Ruby to Ruby, Drb is win!!
RichardBaker has quit [Ping timeout: 272 seconds]
RichardBaker has joined #ruby
Guest23812 has quit [Remote host closed the connection]
<havenwood> Heh, even have a DRB in my .pryrc and a DRb server running just to share objects between Pry sessions. :P
burlyscudd has joined #ruby
<shevy> cool
benlieb has joined #ruby
kilophoton has joined #ruby
breakingthings has quit []
breakingthings has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
carlyle has quit [Ping timeout: 245 seconds]
zoee has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
heftig has joined #ruby
altivec has joined #ruby
seoNinjaWarrior has quit [Quit: Textual IRC Client: www.textualapp.com]
heidi has quit [Quit: Leaving.]
heidi has joined #ruby
francisfish has joined #ruby
<havenwood> shevy: kinda embarrassing script since i've never refactored it and totally phoned-in option parsing, but this does the trick for sharing `DRB[:this_key]` or `DRB[:that_key]` with `DRB.keys` or whatever: https://gist.github.com/havenwood/1e2cdbfdbf83c63bc62f
fmcgeough has joined #ruby
tsykoduk is now known as zz_tsykoduk
<havenwood> shevy: drb start; pry; DRB[:available_everywhere] = 'this'
codeFiend has quit [Quit: codeFiend]
zoee has quit [Ping timeout: 260 seconds]
lethjakm1 has joined #ruby
astrobunny has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
francisfish has quit [Ping timeout: 245 seconds]
s0ber has joined #ruby
<shevy> havenwood thanks, right now I am reading http://www.ruby-doc.org/stdlib-1.9.3/libdoc/drb/rdoc/DRb.html because I forgot how drb really works
frozon has quit [Ping timeout: 245 seconds]
iamjarvo_ has quit [Remote host closed the connection]
<havenwood> shevy: yeah, there's a lot more to DRb than I'm familiar with! i need to read up too.
kirun has joined #ruby
<havenwood> shevy: Looks like there was a Ruby Rogues on DRb but i haven't checked it out yet: http://rubyrogues.com/098-rr-drb-with-davy-stevenson/
nadirvardar has joined #ruby
tjbarber has joined #ruby
pootler has quit [Ping timeout: 272 seconds]
<havenwood> oh, actually this sounds familiar, i think i did listen to it a while back but forgot Davy was a girl, my mind is going...
brianpWins has joined #ruby
Nogbit has quit [Ping timeout: 260 seconds]
pyrac has quit [Quit: pyrac]
jerius has quit [Ping timeout: 272 seconds]
pyrac has joined #ruby
pyrac has quit [Client Quit]
Guest75492 has quit [Read error: Connection reset by peer]
Tricon has quit [Quit: Bye!]
rurban has joined #ruby
nobitanobi has joined #ruby
Zolo has quit [Remote host closed the connection]
jerius has joined #ruby
wildroman has quit [Remote host closed the connection]
Zolo has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
wildroman has joined #ruby
<rurban> I just released _why's potion 0.1: https://github.com/perl11/potion/releases/tag/v0.1 lots of sweat to stabilize the jit. in case someone is interested, a ruby frontend should be possible along p2.
araujo has quit [Read error: Connection reset by peer]
digital-ghost has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
jkline has quit [Quit: jkline]
mzdravkov has quit [Ping timeout: 245 seconds]
h4mz1d has joined #ruby
milardovich has joined #ruby
Mitchellvanw has quit [Quit: Quiting like a baws]
momomomomo has joined #ruby
wildroman has quit [Ping timeout: 245 seconds]
Zolo has quit [Ping timeout: 245 seconds]
tatsuya_o has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<havenwood> rurban: Wow, neat!
freezey_ has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 245 seconds]
petey has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
burlyscudd has joined #ruby
skaflem has quit [Quit: Leaving]
Davey has quit [Quit: Computer has gone to sleep.]
Michael has joined #ruby
araujo has quit [Ping timeout: 245 seconds]
failshel_ has joined #ruby
jrhe has joined #ruby
wildroman has joined #ruby
Michael is now known as Guest87336
araujo has joined #ruby
<nouitfvf> anyone know is there an visual programming library for ruby, similiar to Acme::EyeDrops in perl?
ssmithstone has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
Macaveli has joined #ruby
wildroman has quit [Remote host closed the connection]
<banisterfiend> nouitfvf can you describe it?
DrShoggoth has quit [Ping timeout: 272 seconds]
wildroman has joined #ruby
<havenwood> nouitfvf: Sounds like Shoes. Seems like a _why day today.
tjad has joined #ruby
<rurban> :)
alx- has quit [Quit: Leaving...]
Jdubs has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
graft_ has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
freezey has joined #ruby
Nogbit has joined #ruby
Jdubs has joined #ruby
<rurban> BTW: I tried to contact _why in Provo when I was in Utah for the Sundance film festival, but no chance
<havenwood> rurban: ahh, too bad!
failshell has quit [Ping timeout: 252 seconds]
carlyle has joined #ruby
c0rn has joined #ruby
divi has joined #ruby
randomnick_ has joined #ruby
<banisterfiend> rurban had you met him b4?
<havenwood> nouitfvf: A summer of code team did an update to Shoes for JRuby called Shoes4: https://github.com/shoes/shoes4#readme
<nouitfvf> banisterfiend, havenwood, no, no, it takes code at input and produces ascii-art with that code, which is specially formatted. http://search.cpan.org/dist/Acme-EyeDrops/lib/Acme/EyeDrops.pm#Making_Your_Programs_Easier_to_Understand
apeiros has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 268 seconds]
apeiros_ has joined #ruby
johnnyfuchs has joined #ruby
<havenwood> nouitfvf: oh, wow - haha
<nouitfvf> =)
<havenwood> nouitfvf: I don't know of such a thing in Ruby. :O
failshel_ has quit [Ping timeout: 272 seconds]
ffio has quit [Ping timeout: 268 seconds]
iamjarvo has joined #ruby
<nouitfvf> havenwood, it's a pity
wildroman has quit [Ping timeout: 268 seconds]
[zX] has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
soheil_ has quit [Ping timeout: 240 seconds]
<rurban> banisterfiend: no, I just stood in front of his house, but didn't want to disturb his wife
benweint has quit [Quit: Computer has gone to sleep.]
<rurban> But I figured out all my questions by myself eventually
Xeago_ has quit [Remote host closed the connection]
aspires has quit [Quit: sudo making a sandwich]
mr_red has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<havenwood> rurban: after a `brew install autogen` and a few `brew link`s Potion built on OS X Mavericks. :)
vince_prignano has quit [Remote host closed the connection]
<havenwood> rurban: 3 FAILS (255 tests)
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie> I don't know of a library that does it, but I've seen a program do something similar, you might want to check how it does it
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
<rurban> which fails? I guess classes/sub which is a make-3.81 problem
salt_ has joined #ruby
iamjarvo has joined #ruby
<havenwood> a couple of these: ** error loading lib/potion/aio.bundle: dlopen(lib/potion/aio.bundle, 1): Library not loaded: /usr/local/lib/libuv.11.dylib
kilophoton has quit [Ping timeout: 240 seconds]
<Mon_Ouie> nouitfvf: https://github.com/mame/quine-relay (the real code is in src/ of course, not QR.rb :p)
<rurban> Oh, the rpath. you'd need to install it probably there of I have to fixup the rpath
<rurban> ..or I have...
<rurban> aio is the libuv binding for fast async io
<nouitfvf> Mon_Ouie, already seen this
<havenwood> Mon_Ouie: Truly epic.
heidi has quit [Quit: Leaving.]
<nouitfvf> but i need utility that will do the same thing for any code
kpshek has quit [Ping timeout: 260 seconds]
Croissant41 has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
ij has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
<havenwood> rurban: What's greg?
soheil has joined #ruby
newbiehacker has quit [Ping timeout: 252 seconds]
<rurban> greg is the parser generator, a peg cloneww
iamjarvo has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #ruby
<havenwood> rurban: ahh, hem
<rurban> peg was not re-entrant then, so he fixed it to greg. piumarta caught up since, but greg is still better
mr_red has quit [Quit: mr_red]
mr_red has joined #ruby
hamakn has joined #ruby
alvaro_o has joined #ruby
<shevy> hmmm
wildroman has joined #ruby
<rurban> But I want a jitting parser, to be able to support macros. like maru
kpshek has joined #ruby
muxdemux has joined #ruby
wildroman has quit [Remote host closed the connection]
<rurban> https://code.google.com/p/maru/ is the best so far
* muxdemux is a total n00b & struggling
<muxdemux> trying to run gollum
wildroman has joined #ruby
lethjakm1 has quit [Quit: WeeChat 0.4.0]
sambao21 has quit [Quit: Computer has gone to sleep.]
<muxdemux> the gem installs, but i still don't have the gollum command available on my path
samsonasu has quit [Quit: samsonasu]
jrhe has quit [Quit: jrhe]
zz_tsykoduk is now known as tsykoduk
ij has quit [Read error: No route to host]
<muxdemux> I've tried adding the gem paths to my $PATH
<muxdemux> doesnt seem to work
jrhe has joined #ruby
<havenwood> muxdemux: How did you install Ruby? What version of Ruby (ruby -v)? What version of gem (gem -v)?
petey has quit [Remote host closed the connection]
milardovich has quit [Read error: Connection reset by peer]
d3c has joined #ruby
ij has joined #ruby
mrsolo has joined #ruby
petey has joined #ruby
pyrac has joined #ruby
decoponio has quit [Quit: Leaving...]
mengu has joined #ruby
SilverKey has quit [Ping timeout: 246 seconds]
hamakn has quit [Ping timeout: 272 seconds]
roadt_ has quit [Ping timeout: 240 seconds]
jrhe has quit [Client Quit]
<muxdemux> havenwood: making a gist...
RichardBaker has joined #ruby
<havenwood> rurban: Any way to get at a repl yet? Is p2 runnable yet? (Sorry for all the questions, i need to read through the source code, 10,000 lines seems manageable!)
salt_ has left #ruby [#ruby]
mengu has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
<muxdemux> havenwood: check it out
alx- has joined #ruby
alx- has quit [Client Quit]
sambao21 has joined #ruby
jrhe has joined #ruby
ekarlso has quit [Ping timeout: 260 seconds]
jrhe has quit [Client Quit]
fuhgeddaboudit has joined #ruby
petey has quit [Ping timeout: 272 seconds]
<havenwood> muxdemux: Dunno if it'll help but would be nice to update RubyGems in any case: gem update --system
<muxdemux> okay
<havenwood> muxdemux: Your env vars might not be set correctly, built it yourself?
burlyscudd has quit [Quit: Leaving.]
<muxdemux> $PATH?
<muxdemux> yes
<havenwood> muxdemux: chruby is lovely for setting everything that needs setting: https://github.com/postmodern/chruby#readme
<havenwood> muxdemux: or check chruby's manpage and set youself :P
<havenwood> muxdemux: PATH, GEM_HOME, GEM_ROOT, RUBY_ROOT, etc.
brennanMKE has quit [Remote host closed the connection]
jrhe has joined #ruby
<havenwood> muxdemux: I can't tell what the issue is.
<muxdemux> okay
<muxdemux> seems like the answer from everyone is "use a tool" and not just gem install
krz has quit [Quit: krz]
soheil has quit [Read error: Connection reset by peer]
<muxdemux> like rvm or rbenv
<muxdemux> or chruby :)
<rurban> havenwood: a repl is already there, just omit a file or -e
<rurban> p2 is runnable, yes. but only 50% of perl5 syntax yet
soheil has joined #ruby
ffio has joined #ruby
capnmalarkey has quit [Quit: capnmalarkey]
<bean__> is ok, perl sucks anyways
<bean__> :o
<shevy> muxdemux no
<bean__> trololol
<rurban> it's only ~7k src code
<shevy> muxdemux if you ask me, compile from source. always :-)
<bean__> shevy is a dirty hippy though
<shevy> though I do recommen to use an app-dir like approach when possible
<shevy> *recommend
<shevy> so basically, I kinda recommend a way similar to rvm, just that they install into the home dir
<terrellt> TIL: Don't ask shevy.
* bean__ compiles using homebrew
petey has joined #ruby
mengu has joined #ruby
<rurban> I'm working on the ffi and debugger now (almost done), stepping through code already possible, but no access to lexicals yet
<shevy> bean__ you use mac? :(
<bean__> only at work sir.
<shevy> nobody uses linux anymore...
<bean__> and only to manage linux servers
<bean__> :9
larissa has joined #ruby
pyrac has quit [Quit: pyrac]
<ShellFu> WHAT WHAT?
fastred has quit [Quit: fastred]
burlyscudd has joined #ruby
kil0byte has joined #ruby
<rurban> bean: But there's is lot of good perl library code out there. a potion ruby syntax would be pretty simple (similar to parrot, just faster and saner)
<bean__> rurban: I know. I'm just trolling :)
<rurban> :)
niklasb has joined #ruby
dangerousdave has joined #ruby
geekbri has joined #ruby
kilophoton has joined #ruby
<rurban> perl is just an aesthetic problem, like bash. $%@#&...
niklasb has quit [Client Quit]
<shevy> hehe
<shevy> well
<shevy> you can be ugly in any language
<rurban> perl6 is even worse
niklasb has joined #ruby
<shevy> perl just makes it easier to be ugly than most other languages
baggypants has joined #ruby
<shevy> while (<>) { print; }
lfox has quit [Quit: ZZZzzz…]
<shevy> wait
<havenwood> rurban: Looks really neat! I'm stoked to check this out further. REPL fails for me with `** can't find readline`, but i do have it installed.
<shevy> while(<>) { print $_; }
<shevy> :-)
<baggypants> hi guys..i'ma bit new to regex..what if i want to combine matching only A-Z characters..along with matching anything that isn't aoieu vowels? i'm trying /[^A-zaeiou]/i.match(string)
<shevy> hmm
<rurban> havenwood: we have a standalone linenoise based readline.
JohnBat26 has quit [Ping timeout: 272 seconds]
<baggypants> how can i combine match A-z..but also ^aeiou
bean__ has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
<shevy> regexes have always been one major weakness of mine
<baggypants> yeah..i'm stumped heh
dangerousdave has quit [Read error: Connection reset by peer]
kilophoton has quit [Ping timeout: 272 seconds]
<baggypants> i guess i could do this without regex
<shevy> could you combine two regexes? :-)
<shevy> or like, use .reject on your dataset, and reject it if it contains vowels or A-Z chars
<shevy> hmm or wait
<shevy> can you gimme example string that should return true or false?
<shevy> I could then play on http://rubular.com/
alvaro_o has joined #ruby
<baggypants> umm so like !fooo should be false..since the first chracter is !
<baggypants> blah should be true..since first char is b..a consonant
bean__ has joined #ruby
<baggypants> apple or opple should be false..since a and o are vowels.
<shevy> the ^ negates right?
<baggypants> yes
rickmasta has joined #ruby
<baggypants> basically you get a string..and if the first letter is a consontant return true..otherwise false
tsykoduk is now known as zz_tsykoduk
<shevy> aha, ok, so only the first char
<baggypants> [^aeiou] works..but
samsonasu has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
<baggypants> yeah so i can do string[0]
<baggypants> and match the regex on that
havenwood has quit [Remote host closed the connection]
<baggypants> i guess i could first check for A-z and then again check for the consonant..
<baggypants> 2 separate checks
wildroman has quit [Ping timeout: 272 seconds]
notjohn has quit [Quit: notjohn]
Guest87336 has quit [Remote host closed the connection]
Jdubs has joined #ruby
reset has quit [Quit: Leaving...]
capnmalarkey has joined #ruby
benweint has joined #ruby
ekarlso has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
shevy has quit [Ping timeout: 246 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
zz_tsykoduk is now known as tsykoduk
Mitchellvanw has joined #ruby
sambao21 has joined #ruby
Jdubs has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 245 seconds]
kevinykchan has joined #ruby
petey_ has joined #ruby
T__T has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
petey has quit [Read error: Connection reset by peer]
T__T has joined #ruby
goganchic has joined #ruby
DrShoggoth has quit [Ping timeout: 272 seconds]
wildroman has joined #ruby
theoretick has joined #ruby
wildroman has quit [Remote host closed the connection]
robustus has joined #ruby
Jdubs has joined #ruby
wildroman has joined #ruby
momomomomo has quit [Quit: momomomomo]
Jdubs has quit [Remote host closed the connection]
Jdubs has joined #ruby
dangerousdave has joined #ruby
T__T has quit [Ping timeout: 245 seconds]
whowantstolivefo has joined #ruby
theoretick has quit [Ping timeout: 260 seconds]
kenyabob has quit [Quit: kenyabob]
theoretick has joined #ruby
mark_locklear has quit [Ping timeout: 272 seconds]
freezey has joined #ruby
Todd has quit [Remote host closed the connection]
<apeiros_> baggypants: you'd have to write it out, like [bcdfghj-np-tv-z]
<apeiros_> there might be a fitting \p{} character class
barratt has joined #ruby
Todd has joined #ruby
<apeiros_> didn't find one, thought
<apeiros_> *though
staafl has left #ruby ["Leaving"]
NinjaPenguin has quit [Ping timeout: 268 seconds]
brennanMKE has joined #ruby
shevy has joined #ruby
simplyaubs has joined #ruby
kindjal has joined #ruby
<baggypants> ok
<baggypants> i got it..by splitting them out
<baggypants> the two checks
carlyle has quit [Read error: Connection reset by peer]
kindjal has quit [Client Quit]
carlyle has joined #ruby
volty has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
cody-- has quit [Quit: derp]
fmcgeough has quit [Quit: fmcgeough]
Mars` has joined #ruby
kindjal has joined #ruby
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
lfox has joined #ruby
zz_michael_mbp is now known as michael_mbp
bradhe has joined #ruby
kindjal has quit [Client Quit]
momomomomo has joined #ruby
Mars`_ has joined #ruby
Michael has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 268 seconds]
endash has joined #ruby
Michael is now known as Guest52196
notjohn has joined #ruby
wildroman has quit [Ping timeout: 260 seconds]
notjohn has quit [Client Quit]
marcdel has joined #ruby
DrShoggoth has joined #ruby
mklappstuhl has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
bradhe has quit [Read error: Connection reset by peer]
Jdubs has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 272 seconds]
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
Jdubs has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey_ has quit [Remote host closed the connection]
<shevy> :)
petey has joined #ruby
divi has joined #ruby
simoz has joined #ruby
yalue has quit [Quit: Leaving]
stonevil_ has joined #ruby
stonevil has quit [Read error: Connection reset by peer]
T__T has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
petey has quit [Ping timeout: 272 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
lfox has quit [Quit: ZZZzzz…]
reset has joined #ruby
<kapowaz> WTB help with asset_sync. Anyone?
marcdel has quit [Ping timeout: 272 seconds]
sailias has quit [Quit: Leaving.]
idoru has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 245 seconds]
raphaelivan has joined #ruby
timonv has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
barratt has quit [Quit: Leaving...]
angusiguess has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
simplyaubs has joined #ruby
petey has joined #ruby
Stalkr_ has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
michael_mbp is now known as zz_michael_mbp
Stalkr_ has joined #ruby
Xeago has joined #ruby
wildroman has joined #ruby
threesome has quit [Ping timeout: 272 seconds]
p8952 has quit [Ping timeout: 268 seconds]
SilverKey has joined #ruby
Davey has joined #ruby
xk_id has quit [Quit:
larissa has quit [Quit: Leaving]
capnmalarkey has quit [Quit: capnmalarkey]
larissa has joined #ruby
mantas322 has joined #ruby
<mantas322> Hello
<mantas322> I have a general question
<mantas322> if I send a variable to a function def and define and change its value
<mantas322> it remains the same value outside of the function
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mantas322> but if i use a .map on the original value it changes it outside of the function
<mantas322> does my question make sense?
<canton7> pastie an example?
<havenwood> mantas322: method not function :P
Monie has joined #ruby
<mantas322> a = 15 ; def(a) { a = 1 }; puts a will give me 15
<mantas322> if I do a = 15 ; def(a) { a.map something }; puts a will not give me 15
mansi has quit [Read error: Connection reset by peer]
<havenwood> mantas322: local variables are always looked up first
mansi has joined #ruby
<havenwood> mantas322: don't use local variables and methods of the same name in the same scope
brennanMKE has joined #ruby
<canton7> mantas322, calling .map on '15' will result in an error....
<mantas322> map on an array
divi has joined #ruby
<canton7> did you mean map! instead of map?
<mantas322> yes
cody-- has joined #ruby
<canton7> and there we go
heidi has joined #ruby
divi has quit [Client Quit]
kil0byte has quit [Remote host closed the connection]
teapop_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
<canton7> how best to put this.. 'a = 5' creates a new object and assigns that to a
<mantas322> hold on lemme paste bin some crap
<canton7> 'a.map!' mutates the object referenced by a, rather than creating anything new
p8952 has joined #ruby
kil0byte has joined #ruby
mschneider_dev has quit [Remote host closed the connection]
someish has quit [Quit: someish]
teapop has quit [Ping timeout: 240 seconds]
mschneider_dev has joined #ruby
<mantas322> Look here http://pastebin.com/qB0fTQ3f
mschneider_dev has quit [Changing host]
mschneider_dev has joined #ruby
goganchic has quit [Quit: Computer has gone to sleep.]
<mantas322> Thank you canton7
<mantas322> that makes sense
kil0byte has quit [Remote host closed the connection]
Mrk1869 has quit [Read error: Connection reset by peer]
someish has joined #ruby
<canton7> mantas322, line 11: create a new object, contents '15', and create a new reference to it, called 'a'. line 14: create a copy of that reference (so there are two references to the object '15'), and pass that to 'something'. line 2, create a new object '12', assign that to something's 'a' reference, leaving the one created on line 11 pointing to the old '15' object
ShoyaIshimaru has joined #ruby
divi has joined #ruby
funburn has joined #ruby
<canton7> same with 'b', *except* that on line 7, we mutate the object pointed to by somethingelse's 'b', rather than creating a new one. the 'b' from line 12 still point to that object, so line 21 prints the mutated one
lfox has joined #ruby
<canton7> not the best explanation, but hopefully you get the drift
<mantas322> I get it .map! mutates the original object
francisfish has joined #ruby
<canton7> 'a = a.map...' would not mutate the original object
elux has quit [Quit: Bye!]
mschneider_dev has quit [Ping timeout: 272 seconds]
simoz has quit [Ping timeout: 272 seconds]
<mantas322> makes sense i think
Yakko has quit [Ping timeout: 240 seconds]
reisl has joined #ruby
larissa has quit [Quit: Leaving]
reisl is now known as larissa
filipe has joined #ruby
teapop_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ShoyaIshimaru has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 245 seconds]
teapop has joined #ruby
ShoyaIshimaru has joined #ruby
sailias has joined #ruby
scarolan has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 272 seconds]
wildroman has quit [Remote host closed the connection]
<mantas322> thanks
wildroman has joined #ruby
mantas322 has left #ruby [#ruby]
scarolan has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Jdubs has quit [Ping timeout: 240 seconds]
ShoyaIshimaru has quit [Ping timeout: 272 seconds]
scottstamp has quit [Quit: Au revoir!]
wildroman has quit [Ping timeout: 272 seconds]
geekbri has quit [Remote host closed the connection]
adambeynon has joined #ruby
<banisterfiend> i lol'd http://i.imgur.com/jFOKcm3.png
mixel has joined #ruby
newbiehacker has joined #ruby
momomomomo has quit [Quit: momomomomo]
SHyx0rmZ has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
ShoyaIshimaru has joined #ruby
Jdubs has joined #ruby
colonolGron has joined #ruby
tvw has joined #ruby
perlphil has quit [Quit: perlphil]
zigomir has quit [Ping timeout: 248 seconds]
cody-- has quit [Quit: derp]
burlyscudd has joined #ruby
d3c has quit [Quit: Quit]
fenec2 has quit [Ping timeout: 245 seconds]
valesk has joined #ruby
drumsrgr8forn8 has joined #ruby
mlpinit has quit [Remote host closed the connection]
s0ber_ has joined #ruby
mlpinit has joined #ruby
ShoyaIshimaru has left #ruby ["Leaving..."]
pilotte has joined #ruby
banisterfiend is now known as beastieboy
kaldrenon has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 245 seconds]
kaldrenon has joined #ruby
s0ber_ is now known as s0ber
anderson is now known as Anderson
<pilotte> When I try to install rails via "gem install rails", I get this error: http://dpaste.com/1419307/
tjbarber has joined #ruby
nadirvardar has quit [Ping timeout: 268 seconds]
mercwithamouth has joined #ruby
cads has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
MrZYX is now known as MrZYX|off
samsonasu has quit [Quit: samsonasu]
peterhu has joined #ruby
<havenwood> pilotte: Install the build dependencies and try again. Listed here: https://github.com/postmodern/chruby/wiki/Ruby
workmad3 has joined #ruby
DrShoggoth has quit [Ping timeout: 245 seconds]
<havenwood> sudo apt-get install -y build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev
nadirvardar has joined #ruby
<pilotte> thanks
mlpinit has quit [Ping timeout: 268 seconds]
peterhu has quit [Client Quit]
<havenwood> pilotte: Though looks like you're using apt Ruby, so i guess just: sudo apt-get install -y ruby1.9.1-full
<havenwood> pilotte: Switch to chruby or rvm when the apt packaged Ruby drives you mad. :P
peterhu has joined #ruby
kaldrenon has quit [Ping timeout: 272 seconds]
<pilotte> havenwood: someone suggested using rbenv, which makes sense
<havenwood> pilotte: rbenv makes sense, chruby makes more sense ;)
<havenwood> pilotte: shims... for the birds!
<a1ph4g33k> what do chruby or rbenv do that rvm doesn't ? I've never had any problems with it ...
georgi_ has joined #ruby
<Xeago> keep your shell clean
<havenwood> a1ph4g33k: Less code, no shims to rehash.
peterhu has quit [Client Quit]
nobitanobi has quit [Read error: Connection reset by peer]
breakingthings has quit []
equ1n0x has quit [Quit: WeeChat 0.3.8]
<havenwood> a1ph4g33k: Has tests.
Spami has quit [Ping timeout: 272 seconds]
ldnunes has quit [Quit: Leaving]
volty has quit [Quit: Konversation terminated!]
mwlang has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
peterhu has joined #ruby
<havenwood> a1ph4g33k: does just what needs to be done in 90 lines of code and then gets out of your way
raphaelivan has quit [Quit: Leaving.]
funburn has quit [Quit: funburn]
peterhu has quit [Client Quit]
peterhu has joined #ruby
jdenen has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
<mwlang> in Ruby 2.0, how can I encode a degree sign (ASCII 176) from unicode string to ASCII-8BIT? "\u00B0".encode("ASCII-8BIT") gives "UndefinedConversionError: U+00B0 from UTF-8 to ASCII-8BIT"
danshultz has joined #ruby
<a1ph4g33k> which ?
freezey has quit [Remote host closed the connection]
Jetchisel has joined #ruby
newbiehacker has quit [Ping timeout: 272 seconds]
Fire-Dragon-DoL has joined #ruby
<havenwood> >> "\u00B0".force_encoding 'ASCII-8BIT'
<eval-in> havenwood => "\xC2\xB0" (https://eval.in/54903)
clov3r has quit [Remote host closed the connection]
scottstamp has joined #ruby
clov3r has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<mwlang> What's the \XC2 character that's getting injected there?
<mwlang> It looks wonky once I render it to PDF
<havenwood> mwlang: UTF-8 ALL THE THINGS \o/
tsykoduk is now known as zz_tsykoduk
Xeago_ has joined #ruby
<mwlang> havenwood: I wish! Unfortunately, I'm writing out a binary file in ASCII 8BIT encoding.
mib_mib has joined #ruby
<havenwood> mm
Azulinho_ has quit [Ping timeout: 260 seconds]
<mib_mib> using delayed_job - how can i get the 'job id' in the PERFORM method?
Monie has quit [Ping timeout: 268 seconds]
danshultz has quit [Ping timeout: 260 seconds]
hakunin_ is now known as hakunin
<apeiros_> mwlang: ascii does not contain the degree sign
<apeiros_> so you can't
<mwlang> Sure it does… its ASCII #176
<apeiros_> ascii only goes to 127
<apeiros_> anything beyond may be ascii compatible, but is not ascii.
freerobby has quit [Quit: Leaving.]
<mwlang> Ah -- old school ASCII -- that's 7bits, no?
<apeiros_> you can drop the 'old school'
colonolGron has quit [Quit: leaving]
<apeiros_> ascii only defines the first 7 bits, yes. even todays. that never changed.
<havenwood> 'old school' horse and carriage
clov3r has quit [Ping timeout: 260 seconds]
<apeiros_> that's also why ruby tells you it can't convert it.
<mwlang> I was misled by the whole "ASCII-8BIT" moniker.
muxdemux has quit [Quit: muxdemux]
<apeiros_> the question is - from where do you have that number 176?
<apeiros_> it'd fit for windows-12522
<mwlang> so is there a safe route to what I really want, which is obviously the extended ASCII codes in the 128 - 255 ranges?
<apeiros_> *windows-1252
momomomomo has joined #ruby
<apeiros_> HTML Entity (decimal)&#176; <-- that's the unicode codepoint
<apeiros_> nothing to do with ascii
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<apeiros_> and hurray for asciitable.com to name it 'Extended ASCII Codes'…
<apeiros_> I guess you want windows-1252
ij has left #ruby ["WeeChat 0.4.1"]
<mwlang> The windows-1252 seems to work…let me see how far I can get with this.
baggypants has quit [Quit: Textual IRC Client: www.textualapp.com]
drumsrgr8forn8 has joined #ruby
sailias has quit [Quit: Leaving.]
deception has quit [Quit: Goodbye]
<apeiros_> what they call 'Extended ASCII Codes' could be codepage 437, aka 'IBM437' in ruby. not sure though, I didn't go around comparing all characters.
rcedillor has joined #ruby
<apeiros_> mwlang: also note that this link you gave does NOT have ° at 176
Guest52196 has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 268 seconds]
<apeiros_> it has ░ at 176
vpretzel has quit [Remote host closed the connection]
Michael has joined #ruby
<apeiros_> so I'm again not quite sure where you have that number from - asciitable.com doesn't seem like the source.
phantasm66 has quit [Quit: *sleeeep….]
Michael is now known as Guest33506
<mwlang> apeiros_: harumph! right you are. I've been at this too long
enebo has quit [Quit: enebo]
patricklamoreux has quit [Quit: Leaving.]
<mwlang> apeiros_: you're nailing the nails into my coffin. ;-) But seriously, thanks. You've unblocked me and I'm able to make progress again.
someish has quit [Quit: someish]
carlyle has quit [Remote host closed the connection]
mrsolo has joined #ruby
fijimunk1i has quit [Ping timeout: 240 seconds]
<withnale> is there any way to require_relative a file that doesn't have a .rb extension?
kpshek has quit []
Guest33506 has quit [Ping timeout: 240 seconds]
samsonasu has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
interactionjaxsn has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
jonahR has joined #ruby
benlieb has quit [Quit: benlieb]
dash_ has quit [Quit: dash_]
zz_tsykoduk is now known as tsykoduk
interactionjaxsn has quit [Ping timeout: 268 seconds]
rubyracer has joined #ruby
__username__ has joined #ruby
<mwlang> apeiros_: do you happen to know where the supported encodings for Ruby are listed?
<apeiros_> Encoding.list
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
<mwlang> too easy!
alexju_ has joined #ruby
v1n has quit [Quit: WeeChat 0.4.3-dev]
<apeiros_> yeah, what the heck did they smoke when they came up with that?!?
bean__ has joined #ruby
Xeago_ has joined #ruby
wenshan has joined #ruby
brunoro has joined #ruby
fuhgeddaboudit has joined #ruby
jlast has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 256 seconds]
alexju_ has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
kpshek has joined #ruby
mschneider_dev has joined #ruby
mr_red has quit [Quit: mr_red]
clov3r has joined #ruby
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
mr_red has joined #ruby
mr_red has quit [Client Quit]
jaimef has quit [Excess Flood]
jaimef has joined #ruby
volty has joined #ruby
stkowski has joined #ruby
xk_id has joined #ruby
Mitchellvanw has quit [Quit: Quiting like a baws]
mr_red has joined #ruby
relix has joined #ruby
<mwlang> I dunno, but it must've been good stuff!
mr_red has left #ruby [#ruby]
bean__ has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
mr_red has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
<Eiam> Girl Scout Cookies
<Eiam> or Great White Shark
sambao21 has joined #ruby
<shevy> what
<shevy> oh... what they smoked
<Eiam> he said they were smoking good stuff...
idoru has joined #ruby
<shevy> yeah
<Eiam> so i named good stuff ;)
<shevy> when I first looked here, I wondered how GSC could become GWS
hukl has quit [Quit: Leaving...]
larissa has quit [Quit: Leaving]
<Eiam> shah wow I did not know this site existed
mschneider_dev has quit [Remote host closed the connection]
larissa has joined #ruby
pentameter has quit [Read error: Connection reset by peer]
denken has quit [Quit: leaving]
visof has joined #ruby
awarner_ has joined #ruby
Fire-Dragon-DoL has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
awarner has quit [Read error: No route to host]
fivethre1o has quit [Ping timeout: 256 seconds]
denken has joined #ruby
momomomomo has quit [Quit: momomomomo]
mengu has quit [Remote host closed the connection]
awarner_ has quit [Read error: No route to host]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has quit [Read error: Connection reset by peer]
ericmathison has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
fivethreeo has joined #ruby
awarner has joined #ruby
mengu has joined #ruby
v0n has joined #ruby
MoRoSKiT has joined #ruby
JeanMertz has quit []
tj` has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Remote host closed the connection]
dash_ has joined #ruby
mengu has quit [Remote host closed the connection]
tj` has joined #ruby
mengu has joined #ruby
tatsuya_o has joined #ruby
phrozen77 has quit [Ping timeout: 245 seconds]
PhilK has quit [Ping timeout: 267 seconds]
samsonasu has quit [Quit: samsonasu]
pipework has quit [Ping timeout: 245 seconds]
seich- has quit [Ping timeout: 245 seconds]
LBRapid has quit [Ping timeout: 245 seconds]
Norrin has quit [Ping timeout: 245 seconds]
heathjs has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Y_Ichiro_ has quit [Read error: Connection reset by peer]
joshwines has quit [Ping timeout: 245 seconds]
mjmac has quit [Ping timeout: 245 seconds]
blo has quit [Ping timeout: 245 seconds]
PhilK has joined #ruby
Y_Ichiro has joined #ruby
LBRapid has joined #ruby
heath has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
canton7 has quit [Ping timeout: 248 seconds]
robwilliamsukio has quit [Ping timeout: 248 seconds]
Spitfire has quit [Ping timeout: 245 seconds]
mlpinit has joined #ruby
[zX] has quit [Quit: leaving]
mjmac has joined #ruby
blo has joined #ruby
phrozen77 has joined #ruby
zoee has joined #ruby
robwilliamsuk has joined #ruby
tjad has quit [Read error: Connection reset by peer]
tjad has joined #ruby
seich- has joined #ruby
apeiros_ has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 245 seconds]
mengu has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
jerrad has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
claymore has quit [Quit: Leaving]
kreeves has joined #ruby
Spitfire has joined #ruby
mansi has quit [Remote host closed the connection]
zoee has quit [Ping timeout: 240 seconds]
runnyspot has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
mansi has joined #ruby
trla_ has joined #ruby
<trla_> Hi
<runnyspot> is rvm still the preferred way to manage ruby on ubuntu?
Norrin has joined #ruby
<shevy> I dont prefer it
lunarjar has quit [Quit: ZNC - http://znc.in]
<runnyspot> shevy: what do you prefer
<trla_> I have a string with Windows path (for example: c:/windows/program files/) I would like to scape the / with another / (c://windows//program files//). How can I do that?
brennanMKE has quit [Remote host closed the connection]
<shevy> runnyspot ruby compiled from source into a versioned appdirectory. but actually, that's pretty much what rvm does, it's just that since I do it already, I dont need a specific app for it
<runnyspot> shevy: ok thx
brennanMKE has joined #ruby
<shevy> trla_ .gsub works?
<shevy> "c:/windows/program files/".gsub(/\//,'//') # => "c://windows//program files//"
<shevy> you may have to play a little with the part inside the ''
<trla_> shevy: hi, let my try it
<trla_> one second
mansi has quit [Ping timeout: 240 seconds]
<shevy> runnyspot aside from the source, and rvm, I think there are not so many more choices.. rbenv I think, and another program which I forgot
segv has joined #ruby
jonahR has quit [Quit: jonahR]
julweber has joined #ruby
<shevy> ah and of course debian's ruby, but they modified it so much that nobody wants to use it
<trla_> shevy: thank you
<shevy> best example for the latter: Al Hoang : Fixing 'mkmf' load error Ruby in Ubuntu http://blogs.law.harvard.edu/hoanga/2006/10/27/fixing-mkmf-load-error-ruby-in-ubuntu/
<trla_> :)
ldnunes has joined #ruby
Hobogrammer has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has quit [Ping timeout: 245 seconds]
<segv> hey guys, quick Q, in vim is there a way to "match" the do/end or def/end blocks in vim? I swear there was but my googlefu is failing me
<segv> and I am talking highlighting not shortcuts
petey_ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
danshultz has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
tjad has quit [Ping timeout: 272 seconds]
petey has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
Valesk_ has joined #ruby
mengu has quit [Remote host closed the connection]
petey_ has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
valesk has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
ravster has left #ruby [#ruby]
mengu has quit [Ping timeout: 272 seconds]
hukl has joined #ruby
zarubin has joined #ruby
mib_mib has quit [Ping timeout: 250 seconds]
nerium has joined #ruby
<nerium> How can I print the stack trace after getting an "stack level too deep" error?
hukl has quit [Client Quit]
someish has joined #ruby
teapop has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
teapop has joined #ruby
<nerium> There must be away :p ?
kpshek has quit []
ewnd9 has joined #ruby
baordog_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
Michael has joined #ruby
mklappstuhl has joined #ruby
v0n has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
Michael is now known as Guest95207
Jdubs has quit [Remote host closed the connection]
julian-delphiki has joined #ruby
Jdubs has joined #ruby
tomzx_mac has joined #ruby
zarubin has quit [Ping timeout: 268 seconds]
<tjbarber> anyone in here with any experience with Sequel? I want dates to return in ISO8601 format
MoRoSKiT has quit [Quit: Quitte]
Jdubs_ has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
tsykoduk is now known as zz_tsykoduk
bean has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 268 seconds]
Guest95207 has quit [Ping timeout: 272 seconds]
bean has joined #ruby
hukl has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
johnnyfuchs has quit [Quit: Leaving.]
julian-delphiki has quit [Ping timeout: 272 seconds]
julian-delphiki has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
bean__ has joined #ruby
Sail_Away is now known as Sail
tylersmith has quit [Remote host closed the connection]
teapop has quit [Remote host closed the connection]
Jdubs has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
bean has quit [Ping timeout: 272 seconds]
bean__ is now known as bean
vlad_starkov has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
pipework has joined #ruby
AxonetBE has joined #ruby
justsee has joined #ruby
ffio has quit [Ping timeout: 268 seconds]
Jdubs_ has quit [Ping timeout: 245 seconds]
RORgasm_ has quit [Remote host closed the connection]
hukl has quit [Quit: Leaving...]
lfox has quit [Quit: ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
bean has quit [Quit: Computer has gone to sleep.]
frustrum has quit [Read error: Operation timed out]
Jdubs has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
Spami__ has joined #ruby
bean has joined #ruby
jerius has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
orien has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
julian-delphiki has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
eightygrit has quit [Quit: eightygrit]
dangerousdave has quit [Ping timeout: 241 seconds]
shams has joined #ruby
shams has quit [Client Quit]
shams has joined #ruby
smoothbu_ has quit [Ping timeout: 241 seconds]
mr_red has quit [Quit: Bye :)]
mr_red has joined #ruby
smoothbutta has joined #ruby
jrhe has quit [Quit: jrhe]
astrobunny has quit [Ping timeout: 268 seconds]
predator217 has quit [Ping timeout: 265 seconds]
aspires has quit [Quit: sudo making a sandwich]
endzyme has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
<endzyme> hello - anyone familiar with Grape - or specifically how to get my rack app to log to a file
<endzyme> *?
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
astrobunny has joined #ruby
havenwood has joined #ruby
clov3r has quit [Ping timeout: 240 seconds]
ssmithstone has quit [Ping timeout: 268 seconds]
jkline has joined #ruby
danman has quit [Quit: danman]
justsee has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
VTLob has quit [Quit: VTLob]
ner0x has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
einarj has quit [Remote host closed the connection]
rcedillor has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
ShellFu has quit [Quit: Leaving]
sepp2k1 has quit [Quit: Leaving.]
someish has quit [Quit: someish]
brennanMKE has quit [Ping timeout: 260 seconds]
ephemerian has left #ruby [#ruby]
fogus has joined #ruby
<fogus> hello, I am having a problem with installing the buildr: http://hastebin.com/kevakejuxa.vhdl
<fogus> I've tried the google solutions to the "Could not create Makefile due to some reason, probably lack of" problem
<fogus> I tried to install it using "the easy way" for linux on http://buildr.apache.org/installing.html
<fogus> java version "1.7.0_25"
johnnyfuchs has joined #ruby
<fogus> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] -- this is centos 6.4 latest
kevind has quit [Quit: kevind]
AxonetBE has quit [Quit: AxonetBE]
endzyme has quit [Remote host closed the connection]
xk_id has quit [Quit:
RichardBaker has quit [Quit: RichardBaker]
<fogus> is there a way to use buildr on centos?
<fogus> what's the best way to install it so that it works?
vlad_starkov has joined #ruby
larissa has quit [Quit: Leaving]
aspires has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<freakcult> activesupport autoload question here....
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
mixel has quit [Quit: mixel]
Spami__ has quit [Read error: Connection timed out]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami__ has joined #ruby
pwh has joined #ruby
lukec has quit [Quit: lukec]
johnnyfuchs has quit [Quit: Leaving.]
predator117 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
t0rc has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
bio has joined #ruby
<fogus> freakcult: can you expound on that a bit?
vlad_starkov has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
Ripp__ has joined #ruby
shams has quit [Excess Flood]
shams has joined #ruby
carlyle has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
ssmithstone has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
larissa has joined #ruby
endash has quit [Quit: endash]
superscott[8] has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
<trla_> shevy
mixel has joined #ruby
<trla_> are you still there ?
ssmithstone has quit [Ping timeout: 272 seconds]
ItSANgo has quit [Ping timeout: 244 seconds]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maz-dev has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 268 seconds]
carlyle has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
<trla_> I have another question. I have many strings like this ----> random_data = "c:/path/to/a/file.txt" and I want to extract just the path c:/path/to/a/file.txt
swingha has joined #ruby
samsonasu has joined #ruby
frustrum has joined #ruby
theoretick has joined #ruby
theoretick has quit [Client Quit]
Stalkr_ has quit [Quit: Leaving...]
<volty> >> 'random_data = "c:/path/to/a/file.txt"'.split(/\s*=\s*/)[1]
<eval-in> volty => "\"c:/path/to/a/file.txt\"" (https://eval.in/54913)
jibi has quit [Quit: .]
justsee has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Davey has joined #ruby
<trla_> volty: thank you so much
eightygrit has joined #ruby
stkowski has quit [Quit: stkowski]
<volty> attn that you have " inside !
sailias has joined #ruby
t0rc has quit [Quit: WeeChat 0.4.2]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> 'random_data = "c:/path/to/a/file.txt"'.split(/\s*=\s*/)[1][1..-1]
kazuuu has joined #ruby
<trla_> yes you are right
kazuuu has quit [Remote host closed the connection]
<trla_> thank :)
kazuuu has joined #ruby
nfk has quit [Quit: yawn]