apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
<heftig> fileLines = File.readlines(realPath)
<heftig> forget curFile
kiyoura has joined #ruby
<Scriptonaut> shevy: ha, I have spent the last coupel months writing a unix shell
<Scriptonaut> so it makes sense
<shevy> writing a unix shell in C?
<Scriptonaut> yep
gnarmis has quit [Remote host closed the connection]
<chiel> what do you guys use to get alerts when shit hits the fan in production?
brianpWins has quit [Quit: brianpWins]
<shevy> I wanted a ruby shell... but file listing in pure ruby is too slow :(
<heftig> and at the end just write it out again using File.write(realPath, fileLines.join("\n"))
gnarmis has joined #ruby
reppard has quit [Ping timeout: 255 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<Scriptonaut> heftig: alright
<Scriptonaut> write closes it?
<heftig> nothing is left open here
pewter_tao has joined #ruby
emergion has joined #ruby
<heftig> File.readlines opens, reads, and closes
<pewter_tao> how do I put all 'ruby -d' output to a file?
nsr has joined #ruby
<Scriptonaut> chiel: what do you mean?
<heftig> File.write opens, writes and closes
SCommette has quit [Quit: SCommette]
<heftig> if that still leaves garbage, use File.write(realPath, fileLines.join("\n"), mode: "w")
<banisterfiend> heftig: that's only 2.0 though right?
<pewter_tao> that is, debug output?
<heftig> banisterfiend: what?
<heftig> i'm working with 1.9.2 docs
bluOxigen has quit [Ping timeout: 252 seconds]
<heftig> er, 1.9.3
nsr has left #ruby [#ruby]
<banisterfiend> ah it's >= 1.9.3
<banisterfiend> that's really cool
<pewter_tao> it fills up my terminal
<heftig> what, File.write?
<pewter_tao> ruby -d rubyscript.rb
doritostains has joined #ruby
<Scriptonaut> heftig: so I can forget about closing the file then right? I can just readlines, write, and truncate?
FifthWall has quit [Quit: Computer has gone to sleep.]
<heftig> you never have the File object anyway
<heftig> Scriptonaut: no, write with mode: "w" will truncate before writing
<chiel> Scriptonaut: well if something goes wrong in production, how to you get yourself notified
<heftig> so no additional truncating necessary
<pewter_tao> hello?
gnarmis has quit [Ping timeout: 244 seconds]
c0rn has quit [Ping timeout: 244 seconds]
<heftig> pewter_tao: 2>debug.txt
spo0n- has quit [Ping timeout: 256 seconds]
<Scriptonaut> chiel: People call my phone and yell at me(so I tend not to answer it), or they email the admin inbox
<Scriptonaut> it's an electronic form system for the university I work at
<chiel> hahaha :
<chiel> :p
gyre008 has joined #ruby
<Scriptonaut> heftig: it is still leaving garbage at the bottom. I'm simply doing readlines, then write
<chiel> getting a #<NameError: uninitialized constant>, what is the best way to detect if this is the case? DB.nil? didn't seem to work
<Scriptonaut> IO.readlines, and IO.write that is
echosystm has quit [Quit: leaving]
dmiller1 has joined #ruby
<shevy> Scriptonaut, echo "Hello world\n" >> '/bla.txt'; File.open('/bla.txt','a+') {|file| file.write(File.readlines('/bla.txt'))}
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<chiel> basically i'm doing this: "DB = Mongo::Connection.new['tinker']" inside a begin/rescue block, so if that fails, DB is not defined
<chiel> what is the best way to check if a constant is defined?
ChampS666 has quit []
notwhoopseric has quit [Quit: Page closed]
Nisstyre-laptop has joined #ruby
<havenn> chiel: defined? CONSTANT
<chiel> ah, cheers
<Scriptonaut> shevy: this just writes the file at the end, effectively writing the file twice
<shevy> chiel: another way would be Object.const_defined? :Y # => false; Y = 'Now it is defined' # => "Now it is defined"; Object.const_defined? :Y # => true
gnarmis has joined #ruby
<shevy> Scriptonaut you can use File.readlines, modify that array, then use that modification to store into the file
Fuzai has quit [Ping timeout: 260 seconds]
<shevy> if you do want to only modify certain bytes, I am afraid you will have to use that .seek thingy
<Scriptonaut> shevy: that's exactly what I'm doing, however the changes shrink the number of lines. So it overwrites just fine, however there is still some garbage on the end of the file
dmiller1 has quit [Ping timeout: 252 seconds]
<shevy> you modify the bytes directly already?
jlast has quit [Ping timeout: 265 seconds]
<Scriptonaut> No I mean I readlines, modify the array, and then write the array back
<shevy> ok, via .readlines it is super easy
allsystemsarego has quit [Quit: Leaving]
fumduq has quit [Quit: Linkinus - http://linkinus.com]
<shevy> if you can write a new file
Kuifje has quit [Ping timeout: 265 seconds]
<shevy> you are in full and easy control of the data that gets to be written into that file
c0rn has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
<Scriptonaut> Would it be dumb to readlines, modify the file, open the file with 'w+', write the array, close the file?
<Scriptonaut> It would work, but for all I know this is a taboo practice
<shevy> no, why would that be dumb?
<heftig> that's what i told you to do
<shevy> why is it a taboo practice
<heftig> shevy: it doesn't scale to really large files
<shevy> ah
ebobby has joined #ruby
fumduq has joined #ruby
<shevy> hmm then what should they do with large files? read in only chunks?
<Scriptonaut> heftig: sorry, I'm trying to follow all this advice
<chiel> shevy: thanks, but prefer havenn's solution i think ^^
<chiel> ty though
advorak has quit [Quit: Ex-Chat]
<shevy> chiel yeah it is shorter
<shevy> I am not sure why I don't like defined? ... in the back of my head I only remember it is cheating somehow
<davidcelis> no
spo0n- has joined #ruby
theRoUS_ has quit [Ping timeout: 255 seconds]
<shevy> it's a big cheater
theRoUS has quit [Ping timeout: 252 seconds]
<davidcelis> => false
ebobby has quit [Ping timeout: 256 seconds]
robotmay has quit [Remote host closed the connection]
jimeh has quit [Quit: Computer has gone to sleep.]
<shevy> hmm I just found a strange example
<shevy> is this common?
<chiel> shevy: no idea :)
<shevy> def foo; return @foo if defined?(@foo); end
<Spooner> shevy, that is redundant, since @vars default to nil anyway (unlike locals).
<davidcelis> defined? is for constants
rads has joined #ruby
<shevy> I see Spooner
<shevy> there are some bad ruby examples out there in the www :\
<Scriptonaut> so if I do File.open(blah, blah) do |f| ... end
<Scriptonaut> and write inside the block
<Scriptonaut> will I need to close it when I return from the block?
<shevy> it is the block form, the {} will take care of the closing for you
ben__ has quit [Quit: ben__]
<shevy> or in your example the do/end
<shevy> but I like {} more
krz has quit [Quit: krz]
slainer68 has quit [Remote host closed the connection]
<Scriptonaut> fml, it keeps putting the garbage there
F1skr has joined #ruby
dankest has joined #ruby
<Spooner> davidcelis, Yes, makes sense for constants a lot more, even though locals it is useful for. Just ivars it is mostly redundant for.
Fretta has joined #ruby
<Scriptonaut> if you guys feel like it, here's what I have now, and it's still not truncating the end
ebobby has joined #ruby
spo0n- has quit [Ping timeout: 248 seconds]
<Spooner> That is so not Ruby code ;) Well done.
MattRb has quit [Quit: This computer has gone to sleep]
<Scriptonaut> ha, I know. I'd love to get back into the groove of ruby, it's probably my favorite scripting language to write in
<Scriptonaut> it's sexy as fuck compared to most other syntaxes
<Spooner> The semi-colons are a dead give-away, I'm afraid.
<chiel> hmm.. what's the best way to log errors somewhere?
reppard has joined #ruby
<chiel> i realise these are really basic questions, just trying to tighten things up a bit,
bcx has joined #ruby
MattRb has joined #ruby
<bcx> Hi there, has anyone successfully used ActiveRecord multi-threaded?
<Hanmac> Scriptonaut: in line6 you use readlines wrong
Asher has quit [Ping timeout: 264 seconds]
malkomalko has quit [Remote host closed the connection]
<Scriptonaut> should it be the path, rather than listFile?
<Spooner> Scriptonaut, You can just File.readlines("thefile")
<bcx> I have a service that uses active record, and the old mysqlplus driver. I was wondering if any progress has been made on using activerecord in a threaded environment (i.e. outside of rails)
<chiel> hm.. anyone know how to write to stderr from sinatra apps?
emergion has quit [Quit: Computer has gone to sleep.]
main has quit [Ping timeout: 264 seconds]
<Spooner> Scriptonaut, And I'd suggest using something like Nokogiri to parse XML rather than regexps.
yfeldblum has joined #ruby
<shevy> Scriptonaut you are in control what is being written to the file
<shevy> I do not know why you use IO.write however
nateberkopec has joined #ruby
nsr has joined #ruby
nsr has quit [Changing host]
nsr has joined #ruby
<shevy> and why is .truncate used
<Spooner> Yeah, you beat me to that shevy. Should be f.write (and the ...yeah that).
<shevy> why don't you use file.write(where, data)
nateberkopec has quit [Client Quit]
<Scriptonaut> I'm trying to erase the damn file, so then I can only write what I want
<shevy> erase a file
<Scriptonaut> empty it I guess
<Scriptonaut> Hmm, maybe my array has the garbage
<Scriptonaut> I'll have to check that
<Scriptonaut> anyways, thanks guys, works over
nsr has quit [Client Quit]
<shevy> FileUtils.rm '/foo/bla.txt'
<shevy> but it is not needed in your case
<shevy> Scriptonaut require 'pp'; pp your_array
<shevy> then you know what content your array will have
<Spooner> shevy, opening a file in "w" will truncate it.
<shevy> Spooner he wanted to erase a file for some reason :D
<Spooner> I'm not sure what Scriptonaut wanted really.
<shevy> hehehe
<shevy> I think he wants a beer
shtirlic has quit [Remote host closed the connection]
busybox42 has joined #ruby
<Scriptonaut> I do want a beer
<Scriptonaut> I wanted to modify a file
<Scriptonaut> which involved erasing about 50 lines
<Scriptonaut> and then adding 2
<Scriptonaut> so since the new file contents is smaller than the old, when I write it leaves the lines that were there after I'm done
<Scriptonaut> that's why I'm trying to truncate
deuterium has quit [Quit: zZZz]
CLUSTERfoo has quit [Ping timeout: 260 seconds]
<Spooner> Yes, but you write with IO.write(filename, str) not f.puts(fileLines)
mrsolo has quit [Quit: This computer has gone to sleep]
spo0n- has joined #ruby
ben__ has joined #ruby
<Scriptonaut> hmm. Well it was my array, which I thought I had tested
lele has joined #ruby
<Scriptonaut> sorry for wasting your guy's time
<Scriptonaut> cya
ninp0 has joined #ruby
telagraphic has joined #ruby
mneorr has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
fred909 has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
<Spooner> Scriptonaut, Sorry, didn't mean to be so down on you, but you look a lot like someone trying to run before walking. You need to brush up on more basic scripts, I think.
fred909 has joined #ruby
pewter_tao has left #ruby [#ruby]
cobragoa_ has quit [Ping timeout: 265 seconds]
<shevy> Scriptonaut you should split up the things into components
ffranz has joined #ruby
ryanf has quit [Ping timeout: 264 seconds]
<shevy> like (1) read in the data (2) modify the data until that data is how you want it to be, and only then (3) save it
blazes816 has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 260 seconds]
<telagraphic> so is using !tweets or unless tweets like saying "If its true that it is false, then move on to the truthy code branch" ???
mneorr has quit [Remote host closed the connection]
bcx has left #ruby [#ruby]
mneorr has joined #ruby
<Spooner> "if !tweets" is the same as "unless tweets", yes.
<shevy> Scriptonaut, for example right now at http://pastebin.com/LVnLWkzN you combine (2) and (3), O.write(realPath, fileLines.join("\n")); <-- I'd not do a .join there, I'd do it before
<davidcelis> woah
<davidcelis> is that java
sailias has quit [Quit: Leaving.]
<shevy> telagraphic you can read "unless" like "if !", "if not"
<shevy> x = true; puts 'hello world' if x
<telagraphic> cool
<shevy> x = false; puts 'hello world' unless x
jonahR has quit [Quit: jonahR]
<shevy> ^^^ outputs hello world too
<shevy> x = false; puts 'hello world' if ! x
<shevy> ^^^ also outputs it
timonv has joined #ruby
Rym has joined #ruby
<Kovensky> unless x is actually equivalent to if ! (x)
<Kovensky> due to precedence
<Kovensky> (assuming 'x' is an arbitrary expression and not just a var)
stevechiagozie has joined #ruby
segv- has quit [Quit: segv-]
<Kovensky> unless is also easier to read
<telagraphic> shevy: right on! one more for ya, when you write: x = false; puts 'hello world' unless x, the unless is checking if it it false>
<shevy> just translate it into written english in your brain telagraphic
<chiel> hm, shit.. completely blanking here since i haven't coded ruby in a few months, so here comes another noob question
jjbohn has joined #ruby
<shevy> "puts hello world if x is not", and x is not if it is false. if x is, then it is true
* Kovensky had to do all sorts of quickref'ing when returning to ruby after ~3 months away
aajjbb has joined #ruby
<shevy> telagraphic, it really just is the reverse of "if condition". unless equals "if not condition"
dsdasdas has joined #ruby
<Spooner> Kovensky, I forget stuff if I haven't coded for a weekend.
_alejandro has joined #ruby
<chiel> how do you define a method like "Tinker.find" again on a class?
Playground has quit [Ping timeout: 248 seconds]
<shevy> chiel, within class Tinker, def self.find
benlieb has quit [Quit: benlieb]
<telagraphic> shevy: true
<chiel> there's two ways i recall
<Spooner> class Tinker; class << self; def find; end; end; end
<Kovensky> what's class << self used for btw?
<shevy> there are more than two ways
yxhuvud2 has joined #ruby
<chiel> ah :p
<shevy> I think you can even use some eval too, but since I hate eval, I dont use that
<dsdasdas> can i call each on a zipped array and have the block have multiple parameters?
<chiel> what's the difference between `class << self` and `def self.find` ?
bradhe has quit [Remote host closed the connection]
<Spooner> Which is the preferred way. The more old-fashioned way is class Tinker; def self.find; end; end
sailias has joined #ruby
<havenn> chiel: if you aren't going to to initialize the class it, use: module Tinker, class << self
<shevy> Kovensky dunno... extends a Singleton perhaps? or... topscope object something something ... no idea... but I think it is somewhere different to def self.bla
<Spooner> chiel Just one makes all the methods inside it on self and the other just affects a single method.
aajjbb_ has joined #ruby
<havenn> **module Tinker; class << self
<chiel> havenn: the class can be initialised
<shevy> dsdasdas yeah but your array must have those parameters, otherwise they are nil.
<havenn> chiel: ahh
<Spooner> And also, class << self allows you to do stuff like use #attr_accessor inside it.
bradhe has joined #ruby
<danneu> use def self.find. -- class << self is for when you actually need to access the class self context. like adding an attr_reader to class<<self`
<chiel> but i guess def self.find would then return a new instance of the class
slainer68 has joined #ruby
jjbohn has quit [Client Quit]
yxhuvud has quit [Ping timeout: 264 seconds]
<shevy> chiel perhaps. perhaps not. you can write anything inside that method
stopbit has quit [Quit: Leaving]
<dsdasdas> shevy: so the array passed to the block is expanded automatically as though the block had been called with * in front of the argument?
jjbohn has joined #ruby
<chiel> basically, i would want Tinker.find to return a new instance of Tinker
<shevy> dsdasdas well you can do |*foo|
<Spooner> chiel, In both cases, it just applies the method on the class, not the instances of that class.
<danneu> you'll find that using `class << self; end` so you don't have to write `self.method_name` just makes things confusing when you have a bunch of methods and have to look at the indentation level just to see if it's a classmethod or instancemethod. -______-
gyre007 has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<shevy> dsdasdas it would be easier if you would have a small sample array, and then tell your desired end result
<dsdasdas> shevy: wouldn't that coolect multiple arguments into a single array?
<Spooner> (I know that it is _attaching_ the method to the class and the class's metaclass in these cases, but the method is _avaialble_ on instance and class).
<dsdasdas> shevy: ok, i'm zipping an array with 2 other arrays, so the each block gets called with an array of 3 elements
xnm has quit [Ping timeout: 252 seconds]
<chiel> Spooner: yeah, so inside the `self.find` i could then initialise a new instance of said class, passing it data, and then returning that, yeah?
kiyoura has quit [Read error: Connection reset by peer]
Playground has joined #ruby
awarner has quit [Remote host closed the connection]
<shevy> dsdasdas no, can you pastie a small array example please. I can copy paste that.
<dsdasdas> shevy: and i don't want to have to explicitly get the 3 elements out of the parameter in the block
kiyoura has joined #ruby
musl has quit [Quit: Terminal is F****'d]
<dsdasdas> ok
<danneu> chiel: `def self.find; new(args); end`
<chiel> danneu: right yea, cool thank you :)
FlyingFoX has quit [Quit: No Ping reply in 180 seconds.]
<Spooner> chiel, Yes, it is common to make factory methods like that, to allow you to build stuff outside of new (for example, if you want to return nil on a fail, rather than raise an exception which is the only way out of initialize).
nazty has quit [Quit: Leaving]
musl has joined #ruby
FlyingFoX has joined #ruby
<shevy> there is also this dsdasdas: [1,2,3,4,5,6].each_slice(3) {|slice| p slice}
musl has quit [Client Quit]
nazty has joined #ruby
<chiel> Spooner: yea, makes sense :)
<chiel> thanks guys
jarred_ has joined #ruby
banisterfiend is now known as banister`sleep
<danneu> chiel: that's pretty common when exposing an api. for instance your gem consumers can write MyGem.process(data) instead of MyGem.new.process(data)
<dsdasdas> shevy: http://pastie.org/5671470
sailias has quit [Quit: Leaving.]
<Spooner> dsdasdas, [1, 2].zip([3, 4], [5, 6]) {|a, b, c| }
<dsdasdas> i thought it had to have a single parameter
<dsdasdas> since it's gettting passed a single array
<Spooner> Nope, try it.
<shevy> [1, 2].zip([3, 4], [5, 6]) # => [[1, 3, 5], [2, 4, 6]]
aajjbb_ has quit [Quit: Leaving]
<dsdasdas> Spooner: so are arrays always automatically expanded?
<dsdasdas> splatted?
<chiel> danneu: yea, just makes it cleaner :)
FroMaster2 has quit []
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
musl has joined #ruby
<Spooner> dsdasdas, They pretty much are, yes. It isn't quite as consistent as that though.
<dsdasdas> awesome i save 1 line
<dsdasdas> thanks guys
<Spooner> dsdasdas, And you can always manually sort of splat them with the () operator in the block.
<dsdasdas> usually i don't need ot use the splat?
slainer68 has quit [Ping timeout: 248 seconds]
<Spooner> Mostly, no. But, e.g. you can do magic like [[1, [2, 3]], [4, [5, 6]]].each {|a, (b, c)| }
<dsdasdas> thanks
otherj has joined #ruby
<shevy> ahhh magic
ilyam has quit [Quit: ilyam]
<shevy> harry potter magic
* Hanmac thinks its more the other kind of magic ...
<Spooner> dsdasdas, the bit that is confusing is when you just have one block var and it doesn't splat: [1, 2].zip([3, 4], [5, 6]) {|a| p a } # a will be an array of 3 values
bradhe has quit [Remote host closed the connection]
alejandro_ has joined #ruby
<Paradox> who wants to know what i get to code
<Spooner> But in [1, 2].zip([3, 4], [5, 6]) {|a, b| p [a, b] } the last of the three vales will be lost entirely.
<Paradox> its a fun project of fun
jds_ has joined #ruby
* Spooner gives up on block vars.
reppard has quit [Ping timeout: 276 seconds]
ner0x has joined #ruby
MrPunkin has quit [Quit: MrPunkin]
jblack has joined #ruby
<shevy> hehehe
<Paradox> i have to code something
<Paradox> that
<Paradox> scrapes the patent database
<Paradox> D:
_alejandro has quit [Ping timeout: 265 seconds]
zeade has quit [Quit: Leaving.]
Guest29624 has quit [Quit: WeeChat 0.3.9.2]
<Spooner> I'd kill to do that, Paradox! Sounds like more fun than I could handle though.
megha has joined #ruby
bradhe has joined #ruby
<Paradox> its about as fun as eating peanutbutter with a kitchen knife
<Paradox> there is NO patent API
decal has quit [Quit: leaving]
<Paradox> and patents are typically just a gigantic text file
<Spooner> Well, scraping isn't too exciting, but if it pays the bills...?
twoism_ has quit [Remote host closed the connection]
<Paradox> so
<Paradox> no nokogiri
<Paradox> just tremendously complex regex
jds_ has quit [Ping timeout: 265 seconds]
aaronmacy has joined #ruby
Russell^^ has joined #ruby
tbrock has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
fred909 has quit [Ping timeout: 248 seconds]
Scriptonaut has quit [Ping timeout: 265 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
<reactormonk> Paradox, wtf are you parsing?
<Paradox> reactormonk, patent files
<Paradox> patents
dankest is now known as dankest|away
<Spooner> Paradox, can you link one of the pages, so we can imaging your horror?
<Spooner> *imagine
johnmilton has quit [Remote host closed the connection]
<Paradox> http://patft.uspto.gov/netacgi/nph-Parser?Sect2=PTO1&Sect2=HITOFF&p=1&u=/netahtml/PTO/search-bool.html&r=1&f=G&l=50&d=PALL&RefSrch=yes&Query=PN/6148817
<Paradox> the stuff at the top doesnt matter
ebobby has quit [Quit: Lost terminal]
<Paradox> its the stuff at the bottom
jlast has joined #ruby
<Spooner> Well, there is no data there. Just words :)
<Paradox> words of data
<Paradox> turds
sepp2k1 has quit [Remote host closed the connection]
Russell^^ has quit [Ping timeout: 246 seconds]
<Spooner> I am not sure how much you can pull out of that at all!
<Spooner> Unless maybe some keywords and titles.
datalurkur has joined #ruby
<datalurkur> Is IO.select threadsafe?
<Spooner> Paradox, My condolences, anyway!
gnarmis has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
<reactormonk> Paradox, nlp?
gnarmis has joined #ruby
<Paradox> reactormonk, sort of
<reactormonk> Paradox, well, I'd go with nokogiri.
telagraphic has quit [Quit: Page closed]
<chiel> hmm.. anyone used the httparty gem?
<reactormonk> chiel, wrong question ;-)
squidBits has quit [Quit: whoops]
jjbohn has quit [Quit: Leaving...]
<chiel> hah, should i ask who doesn't? xD
<Spooner> Yeah, Nokogiri doc.search('p').first.text =~ MAGIC_REGEXP ;)
<chiel> ok anyway, trying to figure out how to set options for it... mainly the timeout?
woolite64 has quit [Ping timeout: 252 seconds]
<chiel> can i just defaults on the HTTParty class or something?
jlast has quit [Ping timeout: 264 seconds]
dankest|away has quit [Quit: Leaving...]
gnarmis has quit [Ping timeout: 244 seconds]
nsr has joined #ruby
nsr has quit [Changing host]
nsr has joined #ruby
<chiel> no one? : <
aajjbb has quit [Ping timeout: 276 seconds]
datalurkur has left #ruby [#ruby]
<Paradox> chiel, just include HTTParty
<Paradox> in your class
<Paradox> then set the settings as you like
<Paradox> I do this in the snoo gem i wrote
<chiel> ah ok, you have to include it in your class?
jondot` has quit [Ping timeout: 244 seconds]
zigomir has joined #ruby
<Paradox> its generally a good idea
jpfuentes2 has joined #ruby
tyfighter has quit [Quit: tyfighter]
<chiel> atm i was just using HTTParty.get
statarb3 has quit [Quit: Leaving]
malkomalko has joined #ruby
_alejandro has joined #ruby
<chiel> Spooner: oh cool, so i can just call HTTParty.default_timeout
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
bradhe has quit [Remote host closed the connection]
nsr has left #ruby [#ruby]
<Spooner> Not sure. I'd try it if I was you. You may have to include it in a class to get that method; haven't a clue.
<chiel> hmm doesn't seem to work ^^
joeycarmello has quit [Remote host closed the connection]
macmartine has joined #ruby
alejandro_ has quit [Ping timeout: 252 seconds]
<Spooner> " You may have to include it in a class to get that method"
adeponte has quit [Remote host closed the connection]
reppard has joined #ruby
bigmac has joined #ruby
<chiel> yea :)
<chiel> which is what i am doing now :)
malkomalko has quit [Ping timeout: 256 seconds]
ngoldman has quit [Remote host closed the connection]
Pip has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
the_jeebster has quit [Quit: Leaving.]
dmerrick has quit [Quit: dmerrick]
sn0wb1rd has quit [Quit: I will be right back]
cableray has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
artOfWar has quit [Remote host closed the connection]
ryannielson has joined #ruby
dwu1 has joined #ruby
megha has joined #ruby
<ryannielson> I"m writing an app that renders .erb templates. Also, I'd like it to compile and combine js into one js file. Sprockets seems to do the former, it mentions erb but I don't think it can render erb templates. Any gem recommendations for these tasks?
megha has quit [Client Quit]
gnarmis has joined #ruby
arpegius has joined #ruby
<atmosx> ryannielson: you're written another web framework?
awaage has quit [Quit: awaage]
<ryannielson> atmosx: Static site generator as a learning exercise basically.
<atmosx> ah nice
<atmosx> sorry, I can't help you. I don't know any gems, that do what you want.
<atmosx> you could take a look at sinatra's internals though
yxhuvud has joined #ruby
mengu has quit [Quit: Leaving]
aaronmacy has joined #ruby
<ryannielson> atmosx: Ya, I found tilt to render erbs. Was just hoping there was something that did erb and javascript stuff. haha. I'll probably just have to use sprockets and tilt
megha has joined #ruby
<atmosx> no idea, I never actually used js
daniel_- has quit [Quit: WeeChat 0.3.9.2]
<atmosx> not directly I mean :-)
<kiyoura> missin out
yxhuvud2 has quit [Ping timeout: 265 seconds]
toekutr has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
dmerrick has joined #ruby
reppard has quit [Ping timeout: 264 seconds]
<chiel> hmm.. feels like i cannot include HTTParty in a Sinatra::Base class :/
spo0n- has quit [Ping timeout: 252 seconds]
rwilcox has quit []
bradhe has joined #ruby
<atmosx> chiel: what do you want to do exactly?
joofsh has quit [Remote host closed the connection]
zph has joined #ruby
<chiel> atmosx: i wanted to set the timeout to something a bit lower
<chiel> now it hangs at times
malkomalko has joined #ruby
stevechiagozie has joined #ruby
jduan1981 has quit [Quit: jduan1981]
dsdasdas has left #ruby [#ruby]
aaronmacy has quit [Quit: Leaving.]
<shevy> hmmm is Dir.glob() the same as Dir[] ?
ryanf has joined #ruby
megha has quit [Read error: Connection reset by peer]
cobragoa_ has joined #ruby
aytch has joined #ruby
<rking> shevy: “Equivalent to calling Dir.glob(array,0) and Dir.glob([string,...],0).” — http://www.ruby-doc.org/core-1.9.3/Dir.html#method-c-5B-5D
_knitetemplar has joined #ruby
Hanmac1 has joined #ruby
tommyvyo_ has quit [Ping timeout: 252 seconds]
<shevy> hmmmmm
<shevy> oh yes
<shevy> so Dir[] is shorter
<shevy> that seems to be the sole difference
ryanf has quit [Read error: Connection reset by peer]
<shevy> I am gonna grep for Dir.glob and replace them all with Dir[] !
hbpoison has quit [Ping timeout: 252 seconds]
joeycarmello has joined #ruby
gnarmis has quit [Remote host closed the connection]
pskosinski has quit [Quit: Learn Life's Little Lessons]
<shevy> oh
gnarmis has joined #ruby
<shevy> what is that ,0
hbpoison has joined #ruby
<rking> So that's the "flags"
nathancahill has joined #ruby
<rking> And it says to look at File.fnmatch for info about that
Hanmac has quit [Ping timeout: 255 seconds]
<shevy> eww
benlieb has joined #ruby
<rking> But that doesn't really have a lot of info: http://www.ruby-doc.org/core-1.9.3/File.html#fnmatch-method
<shevy> ok, so Dir[] defaults to flag 0
ryanf has joined #ruby
<shevy> int flags;
spo0n- has joined #ruby
<shevy> ary = rb_push_glob(str, flags);
mrbtie has joined #ruby
<rking> File::FNM_CASEFOLD (case insensitive), File::FNM_PATHNAME (? doesn't match /) File::FNM_NOESCAPE (\ means literal \, not escape), File::FNM_DOTMATCH (* matches leading-dot files)
<rking> Which actually pretty cool. I didn't know about File.fnmatch
ilyam has joined #ruby
ilyam has quit [Client Quit]
malkomalko has quit [Ping timeout: 264 seconds]
mibitzi has joined #ruby
<rking> The only other one I see from using pry to 'ls File::Constants' is: FNM_SYSCASE
<shevy> huh
<shevy> casefold, pathname, noescape, dotmatch
<rking> Which I assume means be case-insensitive if on Windows.
gnarmis has quit [Ping timeout: 252 seconds]
h4mz1d has quit [Ping timeout: 276 seconds]
jjbohn has joined #ruby
bradhe has quit [Remote host closed the connection]
<rking> So anyway, yeah, Dir#[] is like Dir.glob. ☺
timonv_ has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
gyre007 has quit [Remote host closed the connection]
jarred_ has quit [Quit: jarred_]
MattRb has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
cobragoa_ has quit [Remote host closed the connection]
danneu has quit [Ping timeout: 248 seconds]
<shevy> hmm
<shevy> next time when I am about to use Dir.glob()
<shevy> I am going to use Dir[] instead
<shevy> but for now, I am too lazy to replace all occurances :\
<chiel> hmm.. when selecting something from mongo, i get back a "BSON::OrderedHash"
ossareh has quit [Ping timeout: 276 seconds]
<chiel> is there a way to check if something inherits from Hash?
kil0byte has joined #ruby
<chiel> is it `is_a?` ?
arpegius has quit [Quit: arpegius]
charliesome has joined #ruby
tommyvyo_ has joined #ruby
<chiel> aha, that seems to work
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
AndChat| has joined #ruby
<aytch> I'm building a Cinch bot, and when I try to require 'open-uri' it barfs, but it works when I call require 'open-uri' from irb
<aytch> what gives?
emergion has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<heftig> barfs how?
joeycarmello has joined #ruby
Banistergalaxy has quit [Ping timeout: 265 seconds]
<aytch> it tells me that open-uri isn't available
mneorr has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
<jblack> could you be running different rubys?
cousine has quit [Remote host closed the connection]
stopbit has joined #ruby
jjbohn has quit [Ping timeout: 248 seconds]
arpegius has joined #ruby
<aytch> oooh, that could be it
Spooner has quit [Remote host closed the connection]
emergion has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
joeycarmello has quit [Ping timeout: 240 seconds]
ryannielson has quit [Quit: ryannielson]
h4mz1d has joined #ruby
mibitzi has quit [Ping timeout: 276 seconds]
nari has joined #ruby
atmosx has quit [Quit: And so the story goes…]
danneu has joined #ruby
frem has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
reppard has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
generalissimo has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
alejandro_ has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
_alejandro has quit [Ping timeout: 248 seconds]
roadt has joined #ruby
DrCode has quit [Quit: ZNC - http://znc.in]
malkomalko has joined #ruby
timonv_ has joined #ruby
roadt has quit [Max SendQ exceeded]
timonv has quit [Read error: Connection reset by peer]
roadt has joined #ruby
ffranz has quit [Quit: Leaving]
Guest92373 is now known as verto|off
dmerrick has quit [Quit: dmerrick]
DrCode has joined #ruby
nomenkun has joined #ruby
jbw has quit [Ping timeout: 248 seconds]
CLUSTERfoo has joined #ruby
arpegius has quit [Quit: arpegius]
_bart has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
malkomalko has quit [Ping timeout: 276 seconds]
tjbiddle_ has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
reset has quit [Quit: Leaving...]
tjbiddle__ has joined #ruby
jojosiao1 has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle__ is now known as tjbiddle
tjbiddle_ has quit [Read error: Connection reset by peer]
Asher has joined #ruby
yxhuvud2 has joined #ruby
mneorr has joined #ruby
gyre008 has quit [Remote host closed the connection]
rads has quit []
rburton- has joined #ruby
yxhuvud has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Ping timeout: 255 seconds]
MattRb has joined #ruby
jbw has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
art_man1 has quit [Ping timeout: 265 seconds]
x82_nicole has quit [Quit: Textual IRC Client: www.textualapp.com]
<rking> chiel: FWIW checking the types of things isn't probably what you want.
horofox has quit [Quit: horofox]
slainer68 has joined #ruby
Playground has joined #ruby
seich- has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
<reppard> slow ride
<reppard> take it easy
nari has quit [Ping timeout: 260 seconds]
crackfu has joined #ruby
average_drifter has joined #ruby
<average_drifter> "He likes it, HEY MIKEY!!!"
baphled has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby
<reppard> those were the days
jonahR has quit [Client Quit]
timonv_ has quit [Ping timeout: 255 seconds]
<reppard> i got really bored and just started reading the source for some of the stuff in the standard library
timonv has joined #ruby
jonahR has joined #ruby
<reppard> man you can learn all kinds of stuff in there
wargasm has quit [Ping timeout: 252 seconds]
sn0wb1rd has joined #ruby
seich- has joined #ruby
<reppard> didn't really expect to see a class method about 80 lines long
<reppard> packed with case statements
baphled has quit [Ping timeout: 248 seconds]
alvaro_o has quit [Quit: Ex-Chat]
Stormpath has left #ruby [#ruby]
malkomalko has joined #ruby
hotovson has joined #ruby
<reppard> man I didn't even know those Shell class existed
r3nrut has joined #ruby
<reppard> scripts just got a lot easier
pkrnj has joined #ruby
diegoviola has quit [Quit: WeeChat 0.3.9.2]
benlieb has quit [Quit: benlieb]
<JohnTeddy> How can I execute this program, with guessing_player=HumanPlayer, and secret_word_generating_player=AI
<JohnTeddy> I know this code sucks, but this should run. I'm nto sure how to run it though.
<reppard> JohnTeddy: whats the error
hotovson has quit [Ping timeout: 248 seconds]
<JohnTeddy> reppard: I don't even know how to make new class instances feeding it the options I want.
d2dchat has joined #ruby
<JohnTeddy> I just started programming, I ran this once awhile ago, now I'm not sure how to run it again.
<JohnTeddy> I don't have a good grasp of classes yet to understand it.
<reppard> Hangman.new(AI.new, HumanPlayer.new) ?
<reppard> or just Hangman.human_guesser
fumduq has quit [Ping timeout: 255 seconds]
<reppard> which is the same thing
<JohnTeddy> sweet
<JohnTeddy> thanks reppard
<reppard> np
rburton- has quit [Ping timeout: 264 seconds]
rakl has quit [Quit: sleeping]
gyre007 has joined #ruby
malkomalko has quit [Ping timeout: 248 seconds]
tarsolya has quit [Ping timeout: 265 seconds]
cobragoa_ has joined #ruby
subbyyy has joined #ruby
rakm has quit [Ping timeout: 264 seconds]
gyre007 has quit [Ping timeout: 248 seconds]
cobragoa_ has quit [Ping timeout: 276 seconds]
greenarrow has quit [Ping timeout: 255 seconds]
joeycarmello has joined #ruby
baphled has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sambio has quit []
arpegius has joined #ruby
joeycarmello has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
<reppard> anyone know how to pipe the output of one command to the argument of another command in bash?
<rking> reppard: Wait what?
<rismoney> having an issue converting and packing array, can someone look at my code? i am using a struct and i can't get it to an array
<rking> I'd redirect you to #bash but they'd rip you to shreds with that kind of a question formulation. ☺
<rking> rismoney: gist that
<reppard> rking: thanks for having mercy
<reppard> haha
frem has quit [Quit: Computer has gone to sleep.]
toekutr has joined #ruby
<reppard> i was just wondering how i could use the output of 'which' which would be a path and pipe it to vim
arpegius has quit [Quit: arpegius]
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<rking> reppard: Hrm. Tell me what you think Struct does, please?
<rking> reppard: You mean like: vim `which hihi`
Playground has joined #ruby
<rking> reppard: You can also do $(…), which is nice because it's nestable (but I generally go with `` for the outer layer)
<reppard> i think struct is a lazy class
<rking> reppard: And, FWIW, zsh has the shortcut: vim =hihi
roadt has quit [Ping timeout: 248 seconds]
<rking> reppard: Yes
<reppard> rking: i could do figure taht out in ruby easily
<reppard> i know its a bit off topic and i apologies, i was asking for just command line
<reppard> *apologize
lateau has quit [Remote host closed the connection]
<reppard> i like one-liners in bash and thought i might be on to something =)
lateau has joined #ruby
<aytch> are there any useful tools for browsing the xpath returned from a nokogiri request to an http page?
<rismoney> were you asking me about struct?
<rking> reppard: Sorry, I meant to ask rismoney about Struct
<rismoney> lol
<rking> Yeah. ☺
<reppard> im sure could just grep the output from "which" and pass it to awk and execute vim but wasn't sure how
rakl has joined #ruby
<reppard> rking: no worries =)
<rking> reppard: A fourth option is to do: which hihi | xargs vim
_alejandro has joined #ruby
<rking> rismoney: You know what would be simpler on this one? Just give us the inputs and desired outputs.
<rismoney> well i am trying to bundle a bunch of things together, to use with the win32api, to pass to C/C++ functions...
<rking> OK
pedrosnk has joined #ruby
<rismoney> ok- one sec. link --
<rking> Well, you need to increase your pack/unpack fu about sixfold. ☺
<reppard> rking: haha thanks man, i brain farted and forgot about xargs
<rismoney> i just started w/ this packing yesterday
<rking> rismoney: K, no biggie. Just get them I's and O's, we'll provide the →.
shufflebot has joined #ruby
<shufflebot> I have a noob question when it comes to modifying an existing gem
<shufflebot> I have a gem installed for my rails app and I want to perform some minor tweaks
<reppard> shufflebot: have at it and have fun maintaining it
<shufflebot> reppard: its super minor
<shufflebot> cosmetic
havenn has joined #ruby
<reppard> im just saying that you should watch out how you update that gem
alejandro_ has quit [Ping timeout: 276 seconds]
<reppard> rather, upgrading it in the future
<shufflebot> anyway the gem I'm looking to tweak is https://github.com/weppos/breadcrumbs_on_rails/blob/master/lib/breadcrumbs_on_rails/breadcrumbs.rb but I just don't know where that exists. I installed via rvm running 1.9.3
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<rking> shufflebot: Do you know about pull requests and about gem 'foo', github: 'shufflebot/foo'
<shufflebot> rking: sadly I'm kind of a git noob
<reppard> shufflebot: i use rbenv but im guessing its in ~/.rvm/somerubyversion/rubygems/blahblah
<shufflebot> or unsprisingly
malkomalko has joined #ruby
<rking> shufflebot: Ok, well, this is essentially a great experience, but it is a non-great experience getting the details right.
<rking> shufflebot: Do you have a Github account?
<shufflebot> Yeah
<rking> OK, so go to https://github.com/weppos/breadcrumbs_on_rails and click Fork
<rking> rismoney: So, the use of Struct in your code isn't doing anything for you.
<rking> rismoney: It's just putting them into an array and getting them back.
<shufflebot> rking: mmk
<shufflebot> forked
<rking> rismoney: I'm not really sure how you pass a C struct to a DL call. You'll do best if you can find some other gem that makes a similar call.
Virunga has quit [Remote host closed the connection]
<rismoney> yea, I was looking at ffi
yxhuvud has joined #ruby
nari has joined #ruby
<rking> rismoney: That is, I don't know if you can predict the layout of the struct well enough to just pack it in
jojosiao1 has left #ruby [#ruby]
<rking> shufflebot: OK, so now git clone it as a sibling dir of your other code.
<rismoney> i think i can ;)
<shufflebot> rking: the machine I'm running the app =! machine with git installed
Pip has quit [Ping timeout: 240 seconds]
<shufflebot> rking: its a community project and surprisingly we haven't used git
<rking> shufflebot: There are no machines that don't have git installed these days. No correct ones, anyway.
<shufflebot> rking: so I don't need to be logged into that machine though
<rking> shufflebot: Do you not have a dev env?
yxhuvud2 has quit [Ping timeout: 248 seconds]
<rking> rismoney: But don't those things have arbitrary alignment and stuff?
<shufflebot> rking: define "def env" I mean Its just an ubuntu server box that apparently isn't running RVM.. totally thought it was
<reppard> s...s.....h
tommyvyo_ has quit [Quit: http://twitter.com/tommyvyo]
<shufflebot> well yeah I'm ssh'd into it
<reppard> sudo apt-get install git
<shufflebot> so just clone it into another directory
<rking> shufflebot: So the server is running somewhere, but do you have another machine that is running the code that you can toy with?
otherj has quit [Quit: otherj]
<rismoney> rking not entirely sure just yet. maybe - like i said 1 day w/ this type of function. i plan to rspec it to understand it better but no clue yet
macmartine has joined #ruby
<shufflebot> no I don't have it, heh honestly git should be setup for this kind of thing I've just never been the guy whos used it
<reppard> shufflebot: you should definitely consider developing locally
h4mz1d has joined #ruby
<reppard> it does wonderful things for you
<rismoney> I will change it to a hash, then that should allow the to_a work
<rking> rismoney: OK, well, the key thing is to find some other code that makes a C call that involves passing a pointer-to-struct.
<shufflebot> reppard: yeah I nkow heh
joshsmith has quit [Quit: joshsmith]
<reppard> shufflebot: is your code not under version control?
<rking> shufflebot: Well, do you want to just viciously hack it?
<shufflebot> rking: nope heh
Fuzai has joined #ruby
<rking> shufflebot: OK, then the only sane thing to do is set up a dev env separate from the live service.
<reppard> cause if its not, do yourself a favor and go to root of the app and 'git init'
<shufflebot> yeah
<Fuzai> is there something like perl's var_dump for Ruby?
<rking> shufflebot: Which, this is often quite a pain. We can walk you through it, but you might want to do a basic Rails tutorial first.
nooodl_ has quit [Ping timeout: 248 seconds]
<shufflebot> rking: I've done rails and the like for a bit and I'm somewhat familiar with the ruby syntax its just the grudinglyyy learn by doing phase
sailias has quit [Quit: Leaving.]
toekutr has quit [Remote host closed the connection]
JarJar has quit [Quit: Leaving]
<rking> shufflebot: And BTW since this is going to be a Rails-specific set of questions, it should probably go to #RubyOnRails
<shufflebot> rking: plus I've build other webapps in other languages / and whatnot
<rking> shufflebot: OK, that's good.
<shufflebot> rking: well its not so much rails specific its building hte custom gem / using git
<rking> shufflebot: It's just kind of a cluster of steps to get a dev env set up.
malkomalko has quit [Ping timeout: 252 seconds]
<shufflebot> and I've read about it I just mentally haven't figured out
stevechiagozie has joined #ruby
<rking> shufflebot: OK, I'll go ahead and summarize what I was going to say and you can ask other questions about the details of getting there.
<rking> shufflebot: Let's say your dev tree is in ~/src/happy-flutes/. cd ~/src && git clone git@github.com:shufflebot/breadcrumbs_on_rails
<rking> So now you have a ~/src/bradcrumbs_on_rails
<rking> Then go into ~/src/happy-flutes/Gemfile and change the previous reference to 'breadcrumbs_on_rails'
h4mz1d has quit [Ping timeout: 260 seconds]
<rking> gem 'breadcrumbs_on_rails', path: '../breadcrumbs_on_rails'
<rking> That will cause the next server start to actually use the local clone
<shufflebot> makes sense
<rking> Then you can hack around on it, get it how you want, then cd ../breadcrumbs_on_rails && git add . && git commit -v && git push
<reppard> shufflebot: you can use the vendor directory in your app as well for things like that
Antiarc has quit [Read error: Operation timed out]
crackfu has quit [Ping timeout: 265 seconds]
<rking> *Then* you go back into ~/src/happy-flutes/Gemfile and make it say: gem 'breadcrumbs_on_rails', github: 'shufflebot/breadcrumbs_on_rails '
<rking> Oops, trailing space in there, my bad.
<rking> After you get that to work, you can consider a Pull Request on the original.
<rking> But if you do that, be sure to think about how general the change is (it shouldn't break anyone else's stuff), and make sure you update the tests plus add any for your new changes.
<rking> Once it gets merged into https://github.com/weppos/breadcrumbs_on_rails.git , you can update your Gemfile to say: gem 'breadcrumbs_on_rails', github: 'weppos/breadcrumbs_on_rails'
zph has quit [Quit: Computer has gone to sleep.]
<rking> *Then*, one shining day, they 'gem push' with your changes in it, and you can just go back to: gem 'breadcrumbs_on_rails'
w|t is now known as w|t[not_nice]
<shufflebot> well whats annoyuing is I just need to update the styling / delimiters and he could have made it assignable
<shufflebot> in fact he does, but if you make it null it just assigns the default delimter
Antiarc has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<rking> shufflebot: Yeah, so you can always just use your own fork forever, but the Community Participation achievement is unlocked if you actually generalize the weppos one, configure it so the default is no change for other users, but then reconfigure it to your needs on your end.
ananthakumaran has joined #ruby
<aytch> wait, github has achievements?
toekutr has joined #ruby
<rking> aytch: Yes. They're kept on the leaderboard of your heart.
<aytch> haha
<aytch> I was actually hoping they did - Achievements can go a long way toward teaching proper gameplay concepts.
<rking> shufflebot: Wait, end.join(@options[:separator] || " &raquo; ")
F1skr has quit [Quit: WeeChat 0.3.9.2]
<rking> shufflebot: You sure you can't just say separator: '/' and be done with it?
<rking> No mods look necessary.
<shufflebot> rking: my css adds an > for ater
<shufflebot> I mean I could retool it but thats annoying
<shufflebot> heh
<rking> shufflebot: Ok, so you want this?: options: ''
<rking> Ur
h4mz1d has joined #ruby
<rking> separator: ''
zph has joined #ruby
<shufflebot> rking: I did that, it just thinks separator isn't set or just ovverides with the default
jeffreybaird has joined #ruby
<shufflebot> brb need to give someone a ride. Ill bbl
SCommette has joined #ruby
MattRb has quit [Quit: This computer has gone to sleep]
yacks has joined #ruby
lateau has quit [Ping timeout: 252 seconds]
kil0byte has quit [Read error: Connection reset by peer]
tommyvyo has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
MattRb has joined #ruby
baphled has quit [Ping timeout: 260 seconds]
malkomalko has joined #ruby
<reppard> nite everyone
AndChat| has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
macmartine has quit [Quit: Computer has gone to sleep.]
eka has joined #ruby
reppard has quit [Ping timeout: 248 seconds]
macmartine has joined #ruby
malkomalko has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
zodiak has quit [Quit: Leaving]
Umren has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
alejandro_ has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
_knitetemplar has quit [Remote host closed the connection]
w|t[not_nice] is now known as w|t
tk_ has joined #ruby
ebobby has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
_alejandro has quit [Ping timeout: 276 seconds]
mrbtie has quit [Quit: Leaving]
danieldocki has joined #ruby
yakko has joined #ruby
tbrock has joined #ruby
nomenkun has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
skaczor has quit [Remote host closed the connection]
savage- has joined #ruby
<shufflebot> rking: so options '' didn't do anything, it seems to just keep using the >> delimitor even if I set it to &nbsp;
heyitsdave has quit [Ping timeout: 244 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
danieldocki has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
huoxito has quit [Quit: Leaving]
yxhuvud2 has joined #ruby
danieldocki has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
<rking> shufflebot: gist as much code as you can.
<rking> shufflebot: Sumn' ain't right.
otters has quit [Quit: WeeChat 0.3.9.2]
otters has joined #ruby
danieldocki has quit [Client Quit]
havenn has quit [Remote host closed the connection]
jduan1981 has joined #ruby
<JohnTeddy> I did 'sudo gem install gist', and it worked.. though pry still tells me I need to install-command gist
<ryanf> JohnTeddy: are you in a rails app?
jeffreybaird has joined #ruby
<ryanf> oh also you need the jist gem, not gist
<ryanf> I think
imperator has joined #ruby
malkomalko has joined #ruby
<rking> JohnTeddy: Are you under the watchful hate of Bundler?
n1x has quit [Ping timeout: 255 seconds]
<JohnTeddy> rking: What is bundler?
<rking> "bundle exec something"
<JohnTeddy> ryanf: No, I was in gnome-terminal($BASH), and I execute 'pry'
<JohnTeddy> I want to practice pasting methods that I loaded, or files, like file.rb
savage- has quit [Quit: savage-]
<rking> JohnTeddy: It's a (quite nice) tool that limits the visibility of gems. So you can't say 'require "happy-time"' in your project that expects happy-time 0.0.9 and end up getting happy-time 0.1.2 just because some *other* project installe dthat.
<ryanf> JohnTeddy: yeah, try "sudo gem install jist" and see if that works for you
<ryanf> JohnTeddy: the gist gem was broken for a long time, so pry uses jist instead
<JohnTeddy> ryanf: That is already installed.
d2dchat has quit [Remote host closed the connection]
<JohnTeddy> ryanf: Should I apt-get remove --purge gist?
<ryanf> hmm
<JohnTeddy> both of them are installed
<ryanf> no, that shouldn't matter
<ryanf> what is the output of gem list?
<JohnTeddy> er, not apt-get
<ryanf> also are you in a directory that contains a file called "Gemfile"?
<JohnTeddy> gem remove, or whatever the gem remove command is
<ryanf> sorry, ignore the question about the output of gem list
<ryanf> it doesn't matter
<JohnTeddy> ryanf: No, there is no GemFile
<JohnTeddy> er, Gemfile
<ryanf> what if you run pry and then type "require 'jist'" ?
kenneth has quit [Quit: kenneth]
<JohnTeddy> ryanf: LoadError: cannot load such file -- jist
Edward_ has quit [Ping timeout: 248 seconds]
<JohnTeddy> hmm
<JohnTeddy> ryanf: I think I'm confused about my environment.
savage- has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<JohnTeddy> If I already did 'sudo gem install just' (and gist), do I need to also do 'gem-install gist' in pry?
<JohnTeddy> ryanf: http://pastebin.com/7qcKLha8
lightguard_jp has joined #ruby
<rking> There's a jist OS package?
<ryanf> no
malkomalko has quit [Ping timeout: 276 seconds]
bigmac has quit [Ping timeout: 248 seconds]
<ryanf> JohnTeddy: can you run "sudo gem remove gist" and "sudo gem remove jist" from your shell, run "gem env" and paste the output from that, and then run "sudo gem install jist" and paste the output from that?
anirudh24seven has joined #ruby
<rking> Wait, I'm being silly. I say 'sudo ___ install ___' and read it as an OS thing. I forgot people globally install gems. ☺
<JohnTeddy> ryanf: Is remoev an option for gem?
<JohnTeddy> rking: yea, I think that might be the problem.
<JohnTeddy> I might have accidentally installed pry with apt-get
<JohnTeddy> So it's not storing in .gem
<rking> Hehe
<JohnTeddy> hmm, I don't see pry in 'dpkg -al|grep -i pry' though
<rking> I'd only use OS gems for OS packages that depended on them, but otherwise it's 100% ~/.gem
<JohnTeddy> yea, I should make sure I do that too.
<JohnTeddy> I can't figure out how pry is install though
<JohnTeddy> Weird
<rking> JohnTeddy: From within pry, do: $:.grep /pry/
<ryanf> oh sorry, it's probably gem uninstall or something
<ryanf> anyway tbh it seems like your env is probably messed up, which is what pretty much always happens when people use apt to install ruby-related things
<rking> $:.grep(/pry/).grep /^(?!\/home)/ # if you want to be fancier
<JohnTeddy> => ["/var/lib/gems/1.9.1/gems/pry-0.9.10/lib"]
<ryanf> your life will be a lot easier if you just use rvm or rbenv instead
<rking> s/rvm or//
<JohnTeddy> Should I sudo apt-get install rvm?
<JohnTeddy> I don't want to think about my environment too much, I want to code. heh
<postmodern> JohnTeddy, are you on Ubuntu 12?
<rking> No one should ever install rvm ever, with one exception: people from the future installing it as a museum piece to see how tangled a simple problem can get.
<JohnTeddy> I wish there was something to just automaticaly setup my environment in a sane way.
SCommette has joined #ruby
<JohnTeddy> postmodern: yes, the latest ubuntu, 32bit
<postmodern> JohnTeddy, alright, just install pry using `gem install`
<JohnTeddy> You don't have write permissions into the /var/lib/gems/1.9.1 directory.
<JohnTeddy> This is why I've been using sudo.
<JohnTeddy> Since gem by default goes global
<postmodern> JohnTeddy, try gem install --user-install pry
<aytch> I've been using rvm, and haven't had any problems
rburton- has joined #ruby
<JohnTeddy> postmodern: That worked fine.
<JohnTeddy> How can I wipe out my global stuff, and reinstall everything as local?
<JohnTeddy> Or what is a sane way to do that?
savage- has quit [Quit: savage-]
<JohnTeddy> I don't have any non-default .preference configs
<postmodern> JohnTeddy, now you should probably add ~/.gem/ruby/1.9.1/bin to your $PATH
<postmodern> JohnTeddy, and you should be able to run pry
<JohnTeddy> postmodern: pry would be in my $PATH twie then
<JohnTeddy> twice*
<postmodern> JohnTeddy, put ~/.gem/ruby/1.9.1/bin at the beginning?
<JohnTeddy> sudo dpkg -S /usr/local/bin/pry gives me dpkg-query: no path found matching pattern /usr/local/bin/pry
<postmodern> JohnTeddy, dpkg doesn't no about gems
Solnse has joined #ruby
<JohnTeddy> sweet
<Solnse> oops sorry
<JohnTeddy> I understand more now, I believe.
<JohnTeddy> sudo gem list, sudo gem uninstall everything_from_that_list;
<JohnTeddy> Now I'll do gem install --user-install blah, from now on.
<postmodern> JohnTeddy, you can even make --user-install the default
<postmodern> JohnTeddy, echo "gem: --user-install" ~/.gemrc
<postmodern> er
<postmodern> JohnTeddy, echo "gem: --user-install" > ~/.gemrc
<JohnTeddy> Before I setup my local environment, should I do anything with rvm or rbenv?
rakuN has joined #ruby
rakuN has quit [Client Quit]
<postmodern> JohnTeddy, not unless you need to switch between multiple rubies
rakuN has joined #ruby
<postmodern> JohnTeddy, that's what rvm,rbenv,chruby are useful for
<JohnTeddy> I don't.
<JohnTeddy> I'll just always use the latest and conform to that.
<JohnTeddy> So if I did 'sudo gem install gist', why couldn't pry use it?
<JohnTeddy> (earlier, when my environment was globally setup)
subbyyy has quit [Ping timeout: 276 seconds]
<postmodern> JohnTeddy, good question, it should
kenneth has joined #ruby
<postmodern> JohnTeddy, might want to check `gem env`
yakko has quit [Remote host closed the connection]
Umren has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
LouisGB has joined #ruby
<JohnTeddy> postmodern: http://pastebin.com/chkprihN
<postmodern> JohnTeddy, ok
<JohnTeddy> postmodern: Why are my rubygems version lower than my ruvy version?
<JohnTeddy> Are the gems written for an older version of ruby?
<postmodern> JohnTeddy, they are separate projects
<JohnTeddy> ok
MattRb has quit [Quit: This computer has gone to sleep]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
malkomalko has joined #ruby
jduan1981 has quit [Quit: jduan1981]
rakuN has quit [Remote host closed the connection]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
MattRb has joined #ruby
<JohnTeddy> o weird, sudo gem uninstall pry was ignoring me
<JohnTeddy> Since other things depend on pry
<JohnTeddy> So I had to uninstall though.
Fretta has quit [Quit: Fretta]
<JohnTeddy> I felt like I was in rpm hell in 2002 with Redhat or something.
mockra has joined #ruby
mockra_ has quit [Ping timeout: 240 seconds]
IceDragon has quit [Quit: Space~~~]
sailias has joined #ruby
<macmartine> postmodern: ! i was just introduced to chruby. looking fwd to checking it out
<postmodern> macmartine, awesome
squidBits has joined #ruby
<postmodern> macmartine, i should probably release 0.3.2 tonight
<macmartine> postmodern: what's new? earlier i was reading an old post about how auto-switching wasn't in, and that was a deal breaker. Someone then pointed out that it's now in and that post is outdated. Wanting to check it
luckyruby has quit [Remote host closed the connection]
<postmodern> macmartine, two minor bug fixes
<postmodern> macmartine, auto-switching and chruby-exec were added in 0.3.0
nomenkun has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
<postmodern> macmartine, 0.4.0 will export a RUBY_PATCHLEVEL variable for people with custom prompts
malkomalko has quit [Ping timeout: 244 seconds]
rramsden has quit [Quit: Lost terminal]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
_bart has quit [Quit: _bart]
macmartine has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
LouisGB has quit [Ping timeout: 260 seconds]
yxhuvud has joined #ruby
SCommette has quit [Quit: SCommette]
cableray has quit [Ping timeout: 276 seconds]
yxhuvud2 has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
dankest has joined #ruby
Rym has quit [Read error: Connection reset by peer]
Rym has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
Playground has quit [Ping timeout: 255 seconds]
havenn has joined #ruby
Chryson has quit [Quit: Leaving]
<JohnTeddy> ryanf / rking / postmodern , I have pry install locally, though it still won't let me execute gist from pry.
<JohnTeddy> All my gems were installed locally without sudo, doing 'gem install blah', I can even see the pry binary in a .gem directory.
<JohnTeddy> Gem::FilePermissionError: You don't have write permissions into the /var/lib/gems/1.9.1 directory.
<JohnTeddy> When i do install-command jist, it dumps that out.
havenn has quit [Ping timeout: 248 seconds]
guns has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<JohnTeddy> rbenv install 1.9.3-p194; is that the latest I should install?
_alejandro has joined #ruby
mneorr_ has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
alejandro_ has quit [Ping timeout: 255 seconds]
<macmartine> JohnTeddy: That's sufficient
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
malkomalko has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
fjfish has joined #ruby
Nisstyre-laptop has joined #ruby
pnkbst has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
francisfish has quit [Ping timeout: 248 seconds]
Playground has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
imperator has quit [Quit: Leaving]
pkrnj has quit [Quit: Computer has gone to sleep.]
mrdtt has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
mockra has joined #ruby
ner0x has quit [Quit: Leaving]
dankest is now known as dankest|away
tps_ has joined #ruby
malkomalko has quit [Ping timeout: 264 seconds]
slyride has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby
tps_ has quit [Client Quit]
mockra has quit [Ping timeout: 256 seconds]
pkrnj has quit [Client Quit]
Rym has quit [Quit: Rym]
alejandro_ has joined #ruby
MattRb has quit [Quit: This computer has gone to sleep]
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
cableray has joined #ruby
Playground has joined #ruby
_alejandro has quit [Ping timeout: 264 seconds]
opettaja has joined #ruby
SiegeX has quit [Quit: Insert generic quit message here]
dmiller1 has joined #ruby
ryanf_ has joined #ruby
uris has quit [Quit: Leaving]
<postmodern> JohnTeddy, it looks like GEM_HOME is pointing to /var/lib/gems/1.9.1
guns has quit [Quit: guns]
<postmodern> JohnTeddy, to gist is trying to install into that
<postmodern> JohnTeddy, you can override GEM_HOME in ~/.bashrc or ~/.bash_profile
<postmodern> JohnTeddy, or install rbenv/chruby + 1.9.3
savage- has joined #ruby
virtuose has quit [Ping timeout: 276 seconds]
ryanf has quit [Ping timeout: 255 seconds]
dmiller1 has quit [Ping timeout: 276 seconds]
sailias has quit [Read error: Connection reset by peer]
<JohnTeddy> postmodern: I got it all fixed.
<JohnTeddy> My environment is really shiny now.
<JohnTeddy> I'm happy.
<JohnTeddy> I purged all global packages related to ruby.
SCommette has joined #ruby
<JohnTeddy> Everything is in my ~
ryanf_ has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
yasu has quit [Quit: Tiarra 0.1+svn-38663: SIGTERM received; exit]
<shevy> u purger u!
<TTilus> \o/ polishing ftw!
danneu has quit [Ping timeout: 252 seconds]
malkomalko has joined #ruby
<TTilus> JohnTeddy: got rbenv?
SCommette has quit [Client Quit]
yxhuvud2 has joined #ruby
osaut has joined #ruby
yxhuvud has quit [Ping timeout: 246 seconds]
adamdecaf has joined #ruby
x82_nicole has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
becom33 has joined #ruby
mjbamford has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
hackerdude has quit [Remote host closed the connection]
cableray has quit [Ping timeout: 252 seconds]
ryanf has quit [Quit: broken pipes |||]
malkomalko has quit [Ping timeout: 252 seconds]
adamdecaf has quit [Ping timeout: 248 seconds]
osaut has quit [Quit: osaut]
georgeisbusting has joined #ruby
stkowski has quit [Quit: stkowski]
DrShoggoth has joined #ruby
ryanf has joined #ruby
tommyvyo_ has joined #ruby
tps_ has joined #ruby
yasu has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
<Solnse> can I convert Process.times into seconds?
jgrevich has quit [Quit: jgrevich]
tjbiddle has quit [Read error: Connection reset by peer]
georgeisbusting has quit [Quit: Leaving]
tjbiddle has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
osaut has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
timonv has joined #ruby
viuo_ has quit [Read error: Connection reset by peer]
viuo has joined #ruby
tjbiddle has quit [Client Quit]
maxamillion has joined #ruby
<maxamillion> are there clever tricks for tracking down where I picked up an extra 'end' that lacks a 'do'? ... the error is throwing the last line of the file but according to the git log, the last 600 lines of this code haven't been changed in over a month, but this change happened sometime today
fyolnish has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
JohnTeddy has left #ruby [#ruby]
dankest|away is now known as dankest
<maxamillion> Boohbah: well, that'll help in this instance because the code is checked into git ... I was just curious if there was some clever tactic that's more ruby-specific
r3nrut has quit [Read error: Connection reset by peer]
rakuN has joined #ruby
slyride has quit [Ping timeout: 260 seconds]
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
<maxamillion> Boohbah: ah, swank
<Boohbah> :)
ebobby has joined #ruby
tps_ has quit [Quit: tps_]
dhruvasagar has quit [Ping timeout: 255 seconds]
malkomalko has joined #ruby
danneu has joined #ruby
andrewhl has quit [Remote host closed the connection]
ebobby has quit [Ping timeout: 265 seconds]
opettaja has quit [Remote host closed the connection]
LouisGB has joined #ruby
Playground has quit [Read error: No route to host]
dankest is now known as dankest|away
dankest|away has quit [Quit: Leaving...]
malkomalko has quit [Ping timeout: 264 seconds]
lightguard_jp has left #ruby ["WeeChat 0.3.9.2"]
neersighted has quit [Read error: Operation timed out]
timonv_ has joined #ruby
dmiller1 has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
aaronmacy has joined #ruby
arietis has joined #ruby
dmiller1 has quit [Ping timeout: 248 seconds]
neurotech has joined #ruby
neurotech has quit [Remote host closed the connection]
neurotech has joined #ruby
tommyvyo_ has quit [Quit: http://twitter.com/tommyvyo]
tommyvyo_ has joined #ruby
gnarmis has joined #ruby
fyolnish has joined #ruby
Playground has joined #ruby
bluOxigen has joined #ruby
tommyvyo has quit [Quit: http://thomasvendetta.com]
tommyvyo_ is now known as tommyvyo
aaronmacy has quit [Quit: Leaving.]
yxhuvud has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
noyb has joined #ruby
CLUSTERfoo has quit [Quit: Leaving]
yxhuvud2 has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
Guest25886 has joined #ruby
maletor has joined #ruby
woolite64 has joined #ruby
Solnse has quit [Ping timeout: 264 seconds]
megha has joined #ruby
megha is now known as security
security is now known as firewall
jeffreybaird has quit [Quit: jeffreybaird]
karupanerura has quit [Excess Flood]
hemanth has joined #ruby
slainer68 has joined #ruby
becom33 has quit [Ping timeout: 260 seconds]
karupanerura has joined #ruby
becom33 has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
fyolnish has quit [Ping timeout: 244 seconds]
malkomalko has joined #ruby
eldariof-office has joined #ruby
slainer68 has quit [Ping timeout: 246 seconds]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Playground has quit [Ping timeout: 240 seconds]
Playground has joined #ruby
yasu has quit [Quit: Tiarra 0.1+svn-38663: SIGTERM received; exit]
Solnse has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
aaronmacy has joined #ruby
toekutr has quit [Remote host closed the connection]
kumarat9pm has joined #ruby
yasu has joined #ruby
pcarrier has quit [Ping timeout: 264 seconds]
aaronmacy has quit [Client Quit]
malkomalko has quit [Ping timeout: 276 seconds]
kumarat9pm has left #ruby [#ruby]
maletor has quit [Quit: Computer has gone to sleep.]
toekutr has joined #ruby
alejandro_ has quit [Ping timeout: 248 seconds]
lobak_ has quit [Ping timeout: 260 seconds]
lobak has joined #ruby
JeanMertz has joined #ruby
roadt has joined #ruby
mibitzi has joined #ruby
savage- has quit [Quit: savage-]
<becom33> Im kinda confused . everytime I made a chance in the sinatra app I have to stop the server from the terminal and start it again to see the chance . is there a better way to do it ?
<becom33> change *
knirhs has quit [Ping timeout: 260 seconds]
joshsmith has joined #ruby
Axsuul has quit [Ping timeout: 256 seconds]
pnkbst has quit [Ping timeout: 276 seconds]
goganchic has joined #ruby
knirhs has joined #ruby
goganchic has quit [Remote host closed the connection]
serhart has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
Spami has joined #ruby
c3vin has quit [Read error: Connection reset by peer]
* becom33 anypne ?
<becom33> damn it !
<becom33> anyone *
fyolnish has joined #ruby
verma has quit [Ping timeout: 240 seconds]
russfrank has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
razibog has joined #ruby
mahr_123 has joined #ruby
verma has joined #ruby
emmanuelux has joined #ruby
firewall has quit [Quit: WeeChat 0.3.9.2]
smspillaz has quit [Remote host closed the connection]
megha has joined #ruby
megha is now known as firewall
ananthakumaran has joined #ruby
verma has quit [Ping timeout: 260 seconds]
verma has joined #ruby
russfrank has joined #ruby
malkomalko has joined #ruby
Playground is now known as lolcathost
greg5green has quit [Remote host closed the connection]
braoru has joined #ruby
hbpoison has joined #ruby
<danneu> becom33: shotgun
ananthakumaran has quit [Quit: Leaving.]
fyolnish has quit [Ping timeout: 256 seconds]
<danneu> becom33: http://danneu.com/posts/15 ctrl+f for "shotgun"
timonv_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
kiyoura has quit [Quit: Leaving]
yacks has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
mneorr has quit [Remote host closed the connection]
yxhuvud2 has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
mneorr has joined #ruby
malkomalko has quit [Ping timeout: 255 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
hypodermicninja has joined #ruby
jcrawford has quit [Quit: Will Be Back]
hypodermicninja has left #ruby [#ruby]
sporkbomb has quit [Read error: Connection reset by peer]
sporkbomb has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
lolcathost has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
yacks has joined #ruby
yacks has quit [Max SendQ exceeded]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Nuck is now known as devonuck
yacks has joined #ruby
devonuck is now known as Nuck
timonv_ has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
firewall has quit [Ping timeout: 248 seconds]
Spami has quit [Quit: This computer has gone to sleep]
yxhuvud2 has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
jcrawford has joined #ruby
neurotec_ has joined #ruby
bradhe has joined #ruby
robert_ has joined #ruby
fyolnish has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
yxhuvud has quit [Client Quit]
neurotech has quit [Ping timeout: 264 seconds]
generalissimo has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
yxhuvud has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
hbpoison has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
bradhe has quit [Remote host closed the connection]
apeiros_ has joined #ruby
SCommette has joined #ruby
osaut has quit [Quit: osaut]
timonv_ has joined #ruby
hadees has quit [Quit: hadees]
emergion has quit [Quit: Computer has gone to sleep.]
Playground has joined #ruby
malkomalko has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<robert_> are there any good CSV output libraries that anyone could recommend me? (From a usability/DSL standpoint)
hbpoison has quit [Ping timeout: 276 seconds]
<apeiros_> robert_: what's wrong with the one in stdlib?
<robert_> I'm just evaluating my options
osaut has joined #ruby
karasawa has joined #ruby
firewall has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
tarsolya has joined #ruby
ananthakumaran has joined #ruby
rakl has quit [Quit: sleeping]
TomyLobo has joined #ruby
fyolnish has quit [Ping timeout: 240 seconds]
yasu has quit [Quit: Tiarra 0.1+svn-38663: SIGTERM received; exit]
malkomalko has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
three18ti has quit [Ping timeout: 252 seconds]
timonv_ has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
jds_ has joined #ruby
karasawa has quit [Ping timeout: 276 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
noyb has quit [Ping timeout: 244 seconds]
<robert_> apeiros_: I need something with a little more bite.
<apeiros_> that doesn't really tell anything
<robert_> well, I need headers and to be able to insert at specific header columns and everything
<apeiros_> despite what you might think, "and everything" doesn't tell anything either
aaronmacy has joined #ruby
<robert_> oh, sorry. I should stop being so tired.
io_syl has quit [Ping timeout: 246 seconds]
<apeiros_> I don't know a lib doing the first, though
yasu has joined #ruby
osaut has quit [Quit: osaut]
robert_ has quit [Read error: Connection reset by peer]
robert_ has joined #ruby
malte_ has joined #ruby
karasawa has joined #ruby
danneu has quit [Read error: Connection reset by peer]
danneu has joined #ruby
Guest2180 has joined #ruby
ben__ has quit [Quit: ben__]
Guest2180 has quit [Client Quit]
io_syl has joined #ruby
jds_ has quit [Remote host closed the connection]
AlbireoX`Laptop has quit [Ping timeout: 264 seconds]
jds_ has joined #ruby
adambeynon has joined #ruby
nkr has joined #ruby
otters has quit [Ping timeout: 252 seconds]
robert_ has quit [Ping timeout: 276 seconds]
cryptnet has joined #ruby
cryptnet is now known as jph2
jph2 is now known as jph_
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jds_ has quit [Ping timeout: 276 seconds]
fyolnish has joined #ruby
objectivemo has joined #ruby
robert_ has joined #ruby
<objectivemo> Hi, I just want to know if there is a way in interactive ruby to see the modules mixed into a class
jds_ has joined #ruby
aytch has quit [Ping timeout: 260 seconds]
<robert_> blah
cgcardona has joined #ruby
<objectivemo> ah, found that you can see it when doing Object.ancestors
greg5green has joined #ruby
<Mon_Ouie> also SomeClass < SomeModule
malkomalko has joined #ruby
<Mon_Ouie> (the '<' can be seen as the same as in 'class Foo < Bar', but also works for inculded modules)
jds_ has quit [Ping timeout: 248 seconds]
swex_ has joined #ruby
wermel has joined #ruby
swex has quit [Ping timeout: 276 seconds]
SCommette has quit [Quit: SCommette]
slainer68 has joined #ruby
jibi has joined #ruby
<apeiros_> objectivemo: you can add .select { |m| m.instance_of?(Module) } to get modules only
<objectivemo> apeiros_: thanks, already doing so
<objectivemo> weird how Object is an ancestor of Object
<Mon_Ouie> The class itself is always included in the return value of ancestors
<reactormonk> objectivemo iirc pry got some nice inspect for the repl
<objectivemo> oh, every object is an ancestor of itself
<objectivemo> reactormonk: I am just using pry now, although I have just started using it
<objectivemo> will have a look into this
<apeiros_> ls obj
<apeiros_> in pry
<objectivemo> Mon_Ouie: Yup, thanks
slainer68 has quit [Ping timeout: 248 seconds]
Spooner has joined #ruby
malkomalko has quit [Ping timeout: 264 seconds]
fyolnish has quit [Ping timeout: 265 seconds]
danneu has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
rakl has joined #ruby
emergion has joined #ruby
lkba has quit [Quit: Bye]
nomenkun has quit [Remote host closed the connection]
mrdtt has quit [Quit: mrdtt]
Spami has quit [Client Quit]
ryanf has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby
three18ti has joined #ruby
arturaz has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
rakl has quit [Quit: sleeping]
ananthakumaran has quit [Quit: Leaving.]
bradhe has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
kil0byte has joined #ruby
jonahR has quit [Quit: jonahR]
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
bradhe has quit [Ping timeout: 255 seconds]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
fyolnish has joined #ruby
slainer68 has joined #ruby
mahr_123 has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0/20130107224849]]
shtirlic has joined #ruby
greenarrow has joined #ruby
TomyLobo has quit [Quit: Standby mode...]
osaut has joined #ruby
saschagehlich has joined #ruby
gyre008 has joined #ruby
main has joined #ruby
karasawa has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
verto|off is now known as verto
verto is now known as Guest68541
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
aaronmacy has quit [Quit: Leaving.]
Spami has quit [Client Quit]
fyolnish has quit [Ping timeout: 264 seconds]
horofox has joined #ruby
caemir has left #ruby ["Je pars..."]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
_bart has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
mneorr has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
reinaldob has joined #ruby
hemanth has joined #ruby
pavilionXP has joined #ruby
Guest68541 is now known as verto|off
browndawg has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
lele has quit [Ping timeout: 246 seconds]
jph_ has quit [Quit: leaving]
mibitzi has quit [Quit: Leaving]
doritostains has quit [Quit: Linkinus - http://linkinus.com]
Virunga has joined #ruby
shufflebot has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
LouisGB has quit []
wallerdev has quit [Quit: wallerdev]
deuterium has joined #ruby
wermel has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
browndawg has joined #ruby
danneu has joined #ruby
LouisGB has joined #ruby
robotmay has joined #ruby
fyolnish has joined #ruby
jph_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
jondot` has joined #ruby
reinaldob has joined #ruby
jimeh has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
danneu has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
rakuN has quit [Quit: rakuN]
bluOxigen has quit [Ping timeout: 246 seconds]
Umren has joined #ruby
fyolnish has quit [Ping timeout: 255 seconds]
_46bit has joined #ruby
_46bit has left #ruby [#ruby]
Solnse has quit [Ping timeout: 240 seconds]
pedrosnk has quit [Quit: pedrosnk]
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
wermel has joined #ruby
rezzack has quit [Read error: Operation timed out]
RagingDave has joined #ruby
reinaldob has quit [Remote host closed the connection]
hemanth has quit [Quit: Leaving]
dwu1 has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
baphled has joined #ruby
pattersonc has joined #ruby
pattersonc has quit [Client Quit]
lockweel has joined #ruby
niklasb has joined #ruby
ejnahc has quit [Quit: leaving]
ejnahc has joined #ruby
freeayu has joined #ruby
nomenkun has joined #ruby
Pip has joined #ruby
Abhijit has joined #ruby
<Abhijit> hi
atmosx has joined #ruby
razibog has quit [Ping timeout: 244 seconds]
<atmosx> hello
<atmosx> anyone doing coffescript in his spare time?
fyolnish has joined #ruby
<Abhijit> i am trying to access https://www.libavg.de/site/ and getting error Ruby on Rails application could not be started and phusion passenger error
danguita has quit [Quit: WeeChat 0.3.7]
<Abhijit> but its up for everyone else
<Abhijit> help please
roadt has quit [Read error: Connection reset by peer]
<atmosx> Abhijit: it's not up for everyone else
<atmosx> Ruby on Rails application could not be started <-- it's down for me too
<atmosx> Abhijit: try #rubyonrails
<Abhijit> ok good
<Abhijit> atmosx, its not my site
<Abhijit> i just want to view pages on that site.
<atmosx> ah k
<atmosx> contact the admin
<Abhijit> atmosx, is there anythix i can do to fix or should just wait owner to fix it?
<atmosx> google cache
<atmosx> omnipotent google knows everything
<Abhijit> :-)
browndawg has quit [Quit: Leaving.]
onibox has joined #ruby
banister`sleep has quit [Remote host closed the connection]
lockweel has quit [Remote host closed the connection]
anirudh24seven has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
arturaz has quit [Remote host closed the connection]
Proshot has joined #ruby
Virunga has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
shtirlic has joined #ruby
fyolnish has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
timonv_ has joined #ruby
shtirlic has quit [Ping timeout: 246 seconds]
timonv has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
woolite64 has quit [Ping timeout: 255 seconds]
timonv_ has quit [Read error: Connection reset by peer]
firewall has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
ViPi has joined #ruby
atmosx has quit [Quit: And so the story goes…]
serhart has joined #ruby
TheFuzzball has joined #ruby
Proshot has quit [Quit: Leaving]
<sn0wb1rd> Anybody know how to print "loading" graphics/animation on the terminal?
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<Spooner> sn0wb1rd, Not sure what you are asking. You just use "puts 'Loading...'"?
spacemud has quit [Ping timeout: 248 seconds]
<sn0wb1rd> Spooner: I'm not sure how to explain. Something with characters '-', '|', '/', '-'
<Spooner> Oh right, sorry. You can manage the control codes yourself, but there are libraries for that sort of thing. e.g. curses
<sn0wb1rd> I was just looking at that.
<Spooner> Basically, you print '-', then move the cursor left, then print '|', etc.
firewall has joined #ruby
y^dolce has joined #ruby
tintin has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
niklasb has quit [Quit: WeeChat 0.3.9.2]
<sn0wb1rd> Yeah… using escape characters...
<tintin> is it the only way to use html inside ruby code?
vlad_starkov has joined #ruby
<Spooner> You mean Ruby code inside HTML?
ddv has joined #ruby
<tintin> yes
arturaz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
fyolnish has joined #ruby
<Spooner> ERB is certainly the way to do it, but using Rack to serve the pages is rather bare-bones.
ddv has quit [Changing host]
ddv has joined #ruby
vlad_starkov has joined #ruby
<Spooner> And also, you might want to look at HAML or Slim instead of erb, but some people prefer raw HTML.
<Spooner> tintin, But anyway, instead of Racking it like that, you are probably better off just using Sinatra and having an easier time of it.
nari has quit [Ping timeout: 265 seconds]
<chiel> rking: how do you mean, checking the types is probably not what i want
<chiel> ?
Zolo has quit [Ping timeout: 245 seconds]
<tintin> return [200, {'Content-Type' => 'text/html; encoding=utf-8'}, [ form() ]] , is it the only way to render html form when '/' ?
<tintin> with ruby
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<tintin> with rack+ config.ru
Virunga has joined #ruby
<tintin> can't ruby get the data from a static html form ?
Playground has joined #ruby
blacktulip has joined #ruby
<tintin> like: , <form action='f.rb' method="POST"> ...</form>
<Spooner> Oh, I see. Right, I think you can do ERB.new("your html").result if you don't want to read from a file.
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
sepp2k has joined #ruby
samphippen has joined #ruby
spacemud has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
Zolo has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
nomenkun_ has quit [Read error: No route to host]
nomenkun has joined #ruby
atno has quit [Ping timeout: 276 seconds]
RagingDave_ has joined #ruby
nari has joined #ruby
fyolnish has quit [Ping timeout: 255 seconds]
niklasb has joined #ruby
niklasb has quit [Client Quit]
niklasb has joined #ruby
RagingDave has quit [Ping timeout: 260 seconds]
tintin has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
neurotec_ has quit [Remote host closed the connection]
fyolnish has joined #ruby
xemu has joined #ruby
timonv has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
samphippen has joined #ruby
reinaldob has joined #ruby
hbpoison has quit [Ping timeout: 265 seconds]
jds_ has joined #ruby
hbpoison has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
braoru has quit [Remote host closed the connection]
Donkeycoder has joined #ruby
Abhijit has quit [Quit: Leaving]
mercwithamouth has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
nomenkun_ has joined #ruby
banister`sleep has joined #ruby
clooth has joined #ruby
atno has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
Astral_ has quit [Ping timeout: 252 seconds]
reinaldob has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
Astralum has joined #ruby
SeySayux has quit [Ping timeout: 240 seconds]
<Blue_Ice> is there a string method to get the UTF-16 codepoints ? I found "each_codepoint", but that returns decimal code points, I need the UTF-16 code units (see http://home.comcast.net/~caetools/unicode/unicode.html )
villadelfia has quit [Ping timeout: 276 seconds]
emocakes has joined #ruby
postmodern has quit [Quit: Leaving]
villadelfia has joined #ruby
SeySayux has joined #ruby
<heftig> Blue_Ice: just convert decimal to hex
tps_ has joined #ruby
<heftig> "foo".codepoints.map { |c| "%04x" % c }
<heftig> or %04X, if you prefer
<Spooner> 53.to_s(16) #=> "35"
hrr has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
nyuszika7h has quit [Read error: Connection reset by peer]
<Blue_Ice> thanks heftig ! I must have done something wrong previously (wat trying with hex/to_hex yesterday but that yielded incorrect results)
<Blue_Ice> idna ... such a pain
reinaldob has joined #ruby
willob has joined #ruby
RagingDave_ has quit [Quit: Ex-Chat]
browndawg has joined #ruby
reinaldob has quit [Remote host closed the connection]
mengu has joined #ruby
danieldocki has joined #ruby
jonahR has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
pavilionXP has joined #ruby
nyuszika7h has joined #ruby
LouisGB has quit [Ping timeout: 246 seconds]
nooodl has joined #ruby
slainer68 has quit [Remote host closed the connection]
sie has joined #ruby
wermel has quit [Remote host closed the connection]
banister`sleep has quit [Remote host closed the connection]
LouisGB has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
cortez has joined #ruby
sie has quit [Read error: Connection reset by peer]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
sie has quit [Read error: Connection reset by peer]
nomenkun_ is now known as nomenkun
whowantstolivefo has quit [Ping timeout: 256 seconds]
sie has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
sie has quit [Read error: Connection reset by peer]
danieldocki has quit [Quit: Leaving...]
sepp2k has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
Daman has quit [Ping timeout: 256 seconds]
sie has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
goganchic has joined #ruby
nooodl has quit [Read error: Connection reset by peer]
percival__ has quit [Quit: Planned maintenance, back soon]
Guest85414 has quit [Quit: Planned maintenance, back soon]
kapowaz has quit [Quit: Planned maintenance, back soon]
pkondzior__ has quit [Quit: Planned maintenance, back soon]
moeSeth_ has quit [Quit: Planned maintenance, back soon]
dekz__ has quit [Quit: Planned maintenance, back soon]
dotemacs has quit [Quit: Planned maintenance, back soon]
spanx___ has quit [Quit: Planned maintenance, back soon]
fcoury_ has quit [Quit: Planned maintenance, back soon]
NimeshNeema has quit [Quit: Planned maintenance, back soon]
bluehavana has quit [Quit: Planned maintenance, back soon]
davidboy has quit [Quit: Planned maintenance, back soon]
octarine has quit [Quit: Planned maintenance, back soon]
rcsheets has quit [Quit: Planned maintenance, back soon]
patricksroberts_ has quit [Quit: Planned maintenance, back soon]
thejefflarson_ has quit [Quit: Planned maintenance, back soon]
xerxas has quit [Quit: Planned maintenance, back soon]
lectrick has quit [Quit: Planned maintenance, back soon]
jhowarth__ has quit [Quit: Planned maintenance, back soon]
Spaceghost|cloud has quit [Quit: Planned maintenance, back soon]
tommyvyo[cloud]_ has quit [Quit: Planned maintenance, back soon]
robotmay_ has joined #ruby
sepp2k has joined #ruby
hbpoison has joined #ruby
otherj has joined #ruby
karasawa has joined #ruby
robotmay has quit [Ping timeout: 264 seconds]
hybris has joined #ruby
y^dolce has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby
hybris has left #ruby [#ruby]
ebouchut has joined #ruby
hybris has joined #ruby
banister`sleep has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
sie has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
statarb3 has quit [Ping timeout: 248 seconds]
spo0n- has quit [Quit: Leaving]
freeayu has quit [Remote host closed the connection]
sie has quit [Read error: Connection reset by peer]
eldariof-office has quit [Ping timeout: 276 seconds]
otherj has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 264 seconds]
sie has joined #ruby
nari has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
subbyyy has joined #ruby
skaczor has joined #ruby
slainer68 has joined #ruby
clooth has quit [Quit: clooth]
goganchic has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 265 seconds]
hbpoison has joined #ruby
goganchic has joined #ruby
robotmay_ has quit [Ping timeout: 260 seconds]
jonahR_ has joined #ruby
jonahR has quit [Ping timeout: 252 seconds]
jonahR_ is now known as jonahR
jacktrick has joined #ruby
danieldocki has joined #ruby
slainer68 has quit [Ping timeout: 276 seconds]
hybris has left #ruby [#ruby]
bluOxigen has joined #ruby
reinaldob has joined #ruby
goganchic has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
joofsh has joined #ruby
kjellski has joined #ruby
kjellski has quit [Client Quit]
crackfu has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
jaywastaken has joined #ruby
Apic has joined #ruby
<Apic> Hi. I get: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- md5 (LoadError)
timonv has joined #ruby
<Apic> What do I need to install so md5 will be available?
<emocakes> lol
<apeiros_> that's probably because it is digest/md5, not md5
<emocakes> you need to rtfm :o
<apeiros_> also md5 is too weak and thus deprecated. don't use it, except if you have to interface with some legacy system.
<Apic> Hm. I try to compile omegle-irc-bot which uses https://github.com/CRogers/FileWatcher
robotmay has joined #ruby
* apeiros_ better doesn't comment on that code
<Apic> B-)
<emocakes> whats wrong with md5 Apic
<emocakes> *apeiros
<emocakes> i use it on my password hashes
<apeiros_> emocakes: as said, it's too weak
<emocakes> in an application i made
<apeiros_> it can be broken within seconds
<emocakes> I've never been hacked
<emocakes> and I have a firewall
<emocakes> so I'm not worried
percival__ has joined #ruby
<apeiros_> "I've never been hacked" != "my security is good"
<emocakes> have you heard of norton apeiros_?
niklasb has quit [Read error: Connection reset by peer]
<emocakes> thats what I;m running, impossible to penetrate
<apeiros_> oh my
<apeiros_> why do you md5 your pw's at all then?
Apic has left #ruby ["Fnord"]
<emocakes> let the client feel safe
aapzak has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 248 seconds]
<apeiros_> anyway, not willing to even start that discussion. md5 has been broken. don't use it. your own fault if you still do. there's enough security advisories online to google.
hbpoison has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
niklasb has joined #ruby
reinaldob has quit [Remote host closed the connection]
<emocakes> that site says it is sage
<emocakes> *safe
<emocakes> This MD5 hash generator is useful for encoding passwords, credit cards numbers and other sensitive date into MySQL
<apeiros_> with regards to that filewatcher lib - using crypto-hashing for change-detection isn't exactly a good idea to start with. crypto-hashes are not built for performance.
<emocakes> "However, it is a one-way transaction and as such it is almost impossible to reverse engineer an MD5 hash to retrieve the original string."
Banistergalaxy has joined #ruby
hbpoison has joined #ruby
<emocakes> impossible
Nss has joined #ruby
<heftig> emocakes: not.
workmad3 has quit [Ping timeout: 252 seconds]
<apeiros_> it's not necessary to get the original string from the hash.
clooth has joined #ruby
<apeiros_> all you need is create a string which results in the same hash.
Targen has joined #ruby
<apeiros_> wait, I'm starting to discuss. don't want. go google.
<apeiros_> srsly, md5's insecurity is well documented.
<emocakes> whats if I base64 encode the string before it gets hashed?
<heftig> no!
bluOxigen has quit [Ping timeout: 276 seconds]
<apeiros_> then you haven't understood hashing.
<apeiros_> and you haven't understood the underlying security issue.
bigmac has joined #ruby
jds_ has joined #ruby
Guest85414 has joined #ruby
sie has quit [Read error: Connection reset by peer]
kapowaz has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<heftig> use a stronger hash and add a salt
sie has joined #ruby
<apeiros_> e.g. use bcrypt
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Zolo has quit [Remote host closed the connection]
JeanMertz has quit []
hbpoison has quit [Ping timeout: 248 seconds]
pkondzior__ has joined #ruby
Zolo has joined #ruby
dotemacs has joined #ruby
ananthakumaran has joined #ruby
<apeiros_> it's docs even has a tiny introduction to security: http://bcrypt-ruby.rubyforge.org
hbpoison has joined #ruby
fflush has joined #ruby
ejnahc has quit [Quit: leaving]
ejnahc has joined #ruby
jds_ has quit [Ping timeout: 256 seconds]
aapzak has joined #ruby
dekz__ has joined #ruby
moeSeth_ has joined #ruby
sie has quit [Read error: Connection reset by peer]
MattRb has joined #ruby
fflush has left #ruby [#ruby]
eka has joined #ruby
crackfu has quit [Remote host closed the connection]
spanx___ has joined #ruby
sie has joined #ruby
cortez has quit [Remote host closed the connection]
crackfu has joined #ruby
crackfu has quit [Read error: Connection reset by peer]
crackfu has joined #ruby
slainer68 has joined #ruby
sie has quit [Read error: Connection reset by peer]
pskosinski_ has joined #ruby
pskosinski_ has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 244 seconds]
bluehavana has joined #ruby
sie has joined #ruby
fcoury_ has joined #ruby
vegeek-ng has joined #ruby
mercwithamouth has joined #ruby
patricksroberts_ has joined #ruby
<vegeek-ng> hi! do somebody have experience in exporting google talk history
octarine has joined #ruby
d2dchat has joined #ruby
arpegius has joined #ruby
davidboy has joined #ruby
xerxas has joined #ruby
rcsheets has joined #ruby
lectrick has joined #ruby
NimeshNeema has joined #ruby
clooth has quit [Quit: clooth]
thejefflarson_ has joined #ruby
tommyvyo[cloud]_ has joined #ruby
Spaceghost|cloud has joined #ruby
jpfuentes2 has joined #ruby
clooth has joined #ruby
sie has quit [Read error: Connection reset by peer]
jhowarth__ has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
ejnahc has quit [Quit: leaving]
ejnahc has joined #ruby
hbpoison has joined #ruby
reppard has joined #ruby
cortez has joined #ruby
wallerdev has joined #ruby
sie has quit [Read error: Connection reset by peer]
crackfu has quit [Remote host closed the connection]
sie has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
crackfu has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
hbpoison has joined #ruby
gyre007 has joined #ruby
squidBits has quit [Quit: squidBits]
sie has quit [Read error: Connection reset by peer]
crackfu has quit [Ping timeout: 246 seconds]
tintin has joined #ruby
reppard has quit [Quit: leaving]
jeffreybaird has joined #ruby
jeffreybaird has left #ruby [#ruby]
reppard has joined #ruby
sie has joined #ruby
squidBits has joined #ruby
sie has quit [Read error: Connection reset by peer]
LouisGB has quit [Ping timeout: 252 seconds]
F1skr has joined #ruby
emocakes has quit [Quit: emocakes]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
wallerdev has quit [Quit: wallerdev]
Edward_ has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
sie has quit [Read error: Connection reset by peer]
arpegius has quit [Quit: arpegius]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
Vert has joined #ruby
ebouchut has joined #ruby
Guest25886 has quit [Quit: Guest25886]
sie has quit [Read error: Connection reset by peer]
cha1tanya has quit [Ping timeout: 252 seconds]
Fuzai has quit [Ping timeout: 248 seconds]
andrewhl has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
jacktrick has quit [Ping timeout: 255 seconds]
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
jonathanwallace has joined #ruby
grzywacz has quit [Quit: :wq]
hrr has quit [Quit: hrr]
greg5green has left #ruby [#ruby]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
crackfu has joined #ruby
crackfu has quit [Remote host closed the connection]
sie has quit [Read error: Connection reset by peer]
tbrock has joined #ruby
sie has joined #ruby
zph has joined #ruby
sie has quit [Read error: Connection reset by peer]
MattRb has quit [Quit: This computer has gone to sleep]
banister`sleep has quit [Remote host closed the connection]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
Nss has quit [Quit: Sto andando via]
sie has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 264 seconds]
reppard has quit [Ping timeout: 260 seconds]
tintin has quit [Quit: leaving]
_knitetemplar has joined #ruby
kidoz has joined #ruby
tps_ has quit [Quit: tps_]
Liothen has quit [Remote host closed the connection]
goganchic has joined #ruby
RagingDave has joined #ruby
sie has joined #ruby
jacktrick has joined #ruby
BizarreCake has joined #ruby
matthias_ has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
danneu has joined #ruby
sie has quit [Read error: Connection reset by peer]
pyro111 has joined #ruby
clooth has quit [Quit: clooth]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
sambio has joined #ruby
jacktrick has quit [Ping timeout: 248 seconds]
jds_ has joined #ruby
sie has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
Donkeycoder has quit [Quit: Textual IRC Client: www.textualapp.com]
karasawa has quit [Ping timeout: 264 seconds]
karasawa has joined #ruby
bigmac has quit [Ping timeout: 255 seconds]
jds_ has quit [Ping timeout: 252 seconds]
hbpoison has quit [Read error: Connection reset by peer]
Rym has joined #ruby
hbpoison has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
vegeek-ng has quit [Quit: Leaving]
sie has quit [Read error: Connection reset by peer]
ebouchut has quit [Quit: This computer has gone to sleep]
sie has joined #ruby
bigmac has joined #ruby
sie has quit [Read error: Connection reset by peer]
<bigmac> http%3A%2F%2Famazon how can i decode this properly... i could use gsub but this is lame
<bigmac> ://
<apeiros_> CGI.unescape
sie has joined #ruby
gyre007_ has joined #ruby
gyre008_ has joined #ruby
irkaclient has joined #ruby
TheFuzzball has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
sie has quit [Read error: Connection reset by peer]
jacktrick has joined #ruby
gyre008 has quit [Ping timeout: 276 seconds]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
hbpoison has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
cortez has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 276 seconds]
shtirlic has joined #ruby
maxmanders has joined #ruby
goganchic has quit [Quit: Leaving.]
Spami has joined #ruby
<bigmac> thanks
sie has quit [Read error: Connection reset by peer]
Pip has quit [Ping timeout: 244 seconds]
cortez has joined #ruby
yshh has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
Neomex has quit [Quit: Neomex]
Goles has joined #ruby
Goles_ has joined #ruby
sie has quit [Read error: Connection reset by peer]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
cortez has quit [Ping timeout: 276 seconds]
neersighted has joined #ruby
otters has joined #ruby
Goles_ has quit [Client Quit]
robotmay_ has joined #ruby
hotovson has joined #ruby
banister`sleep has joined #ruby
hackerdude has joined #ruby
robotmay has quit [Ping timeout: 264 seconds]
squidBits has quit [Quit: squidBits]
vlad_starkov has quit [Remote host closed the connection]
MattRb has joined #ruby
sie has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
irkaclient has left #ruby [#ruby]
gabebug has quit [Quit: gabebug]
hadees has joined #ruby
hydrozen has joined #ruby
pedrosnk has joined #ruby
_bart has quit [Ping timeout: 264 seconds]
<hydrozen> I was hit by the segmentation fault in 1.9.3-p362 last night. Is it still worth it to report? I'm guessing the devs are aware of the problem by now.
<banister`sleep> hydrozen: do u have a backtrace?
banister`sleep is now known as banisterfiend
verto|off is now known as verto
verto is now known as Guest50244
<hydrozen> banisterfiend: yes
jonathanwallace has quit [Ping timeout: 248 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
<hydrozen> banisterfiend: https://gist.github.com/4519192
<banisterfiend> hydrozen: do you know how to use gdb?
<banisterfiend> that gives more useful backtraces
<hydrozen> I've never used it no. It can help after the fact or its for next time I get the segmentation fault?
<banisterfiend> hydrozen: do you get a core file?
slyride has joined #ruby
jonathanwallace has joined #ruby
shtirlic has quit [Remote host closed the connection]
SirFunk has quit [Ping timeout: 245 seconds]
viario has joined #ruby
<hydrozen> banisterfiend: not sure, how can I check?
<banisterfiend> hydrozen: ulimit -c unlimited
<banisterfiend> that should be put a core file in your pwd
<banisterfiend> then u can try: gdb path/to/your/ruby core
ebouchut has joined #ruby
<banisterfiend> you'll need to run again to generate the segfault
Russell^^ has joined #ruby
<banisterfiend> hydrozen: but, if there's already an issue posted for your segv by someone else, forget about it
<banisterfiend> im just curious what's causing it myself :)
statarb3 has quit [Ping timeout: 248 seconds]
Russell^^ has quit [Client Quit]
SirFunk has joined #ruby
<hydrozen> I mostly saw this
Russell^^ has joined #ruby
<hydrozen> but I ignored it and upgraded anyways :)
reppard has joined #ruby
eldariof has joined #ruby
rakl has joined #ruby
<banisterfiend> hydrozen: this is what i was asking u to do: https://gist.github.com/4411144
<banisterfiend> but it's been done, so dont worry ;)
zph has quit [Quit: Computer has gone to sleep.]
<banisterfiend> he really wanted to type: frame 6
<banisterfiend> though
<banisterfiend> that's where the crash is happening
_br_ has quit [Excess Flood]
hackerdude has quit [Remote host closed the connection]
_br_- has joined #ruby
<hydrozen> ok
<hydrozen> just wondering though, i ran ulimit -c unlimited on my server
<hydrozen> should i undo that?
<hydrozen> or it does not matter
<banisterfiend> hydrozen: all it does it creates core files when a segv happens
<banisterfiend> it's not a big deal
<hydrozen> ok cool
<hydrozen> so from what i understand its fixed already? im guessing we can expect a new patch soon
Goles has joined #ruby
Goles_ has joined #ruby
eka has joined #ruby
adambeynon has joined #ruby
matthias_ has quit [Remote host closed the connection]
buibex has joined #ruby
Goles has quit [Client Quit]
_br_- has quit [Excess Flood]
kirun has joined #ruby
pcarrier has joined #ruby
banisterfiend has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
viario has quit [Remote host closed the connection]
banisterfiend has joined #ruby
_br_ has joined #ruby
wf2f has quit []
osaut has quit [Quit: osaut]
razibog has joined #ruby
kil0byte has quit [Remote host closed the connection]
Goles_ has quit [Quit: Out.]
Goles has joined #ruby
reppard has quit [Ping timeout: 252 seconds]
berserkr has joined #ruby
vlad_starkov has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
viario has joined #ruby
MattRb has quit [Quit: This computer has gone to sleep]
samphippen has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
savage- has joined #ruby
heyitsdave has joined #ruby
samuelj has joined #ruby
JohnTeddy has joined #ruby
<samuelj> Hey, does anyone know if it's possible to dynamically change my Gemfile and rerun bundle install from within an app?
<samuelj> *a heroku app, that is
hbpoison has joined #ruby
<JohnTeddy> If I have a hash table with keys "a".."z", each with a value of some integer, how can I pick the key with the highest value integer that isn't in the picked_keys array?
noyb has joined #ruby
<apeiros_> JohnTeddy: what?
robotmay has joined #ruby
<banisterfiend> apeiros_: lols
<apeiros_> oh, I fell out of character
<apeiros_> JohnTeddy: ¿como?
jonahR has quit [Quit: jonahR]
<JohnTeddy> apeiros_: {"a"=>4, "b"=>0, "c"=>0, "d"=>0, "e"=>0, "f"=>8, "g"=>0, "h"=>0, "i"=>0, "j"=>0, "k"=>0, "l"=>0, "m"=>0, "n"=>0, "o"=>0, "p"=>0, "q"=>0, "r"=>0, "s"=>0, "t"=>0, "u"=>0, "v"=>0, "w"=>0, "x"=>0, "y"=>0, "z"=>0}
stevechiagozie has joined #ruby
chessguy has joined #ruby
<JohnTeddy> apeiros_: picked_keys = ["f"]
<JohnTeddy> How can I pick the letter from the hash table with the highest integer value that isn't in picked_keys?
robotmay_ has quit [Ping timeout: 264 seconds]
<apeiros_> JohnTeddy: uuuuuh, are you sure that's the way you want to structure your data to solve that problem? o0
swingha has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<JohnTeddy> apeiros_: What is a better way?
<apeiros_> with that datastructure, you'd probably use Hash#keys, Array#- and Array#max_by
<apeiros_> JohnTeddy: well, one which doesn't involve having to test all keys…
<ViPi> get the sorted set of keys (by value), substract your picked-Key values, take the last element of the set
tbrock has joined #ruby
tbrock has quit [Max SendQ exceeded]
Spami has joined #ruby
tbrock has joined #ruby
tbrock has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
tps_ has joined #ruby
tbrock has joined #ruby
mahmoudimus has joined #ruby
<ViPi> not sure its the most performance effective way though
robotmay has quit [Ping timeout: 264 seconds]
<JohnTeddy> apeiros_: Are you saying my data structure should be an array, or that I should manipulate my datastructure on the fly, to say remove picked_keys from the data structure, each time a key gets added to it. ?
delphaber has joined #ruby
Monie has quit [Read error: Connection reset by peer]
_knitetemplar has quit [Remote host closed the connection]
<apeiros_> JohnTeddy: I'm not proposing a different way to structure your data (hint: I'm not the one who should have thought about how to solve your problem). All I'm saying is that your current datastructure isn't well suited for the problem you asked about.
ananthakumaran has quit [Ping timeout: 252 seconds]
tk_ has quit [Quit: ばいばい]
<ViPi> somth like: (metrics.sort {|a1,a2| a2[1]<=>a1[1]}.keys - picked_keys).last ?
<ViPi> sorry
ananthakumaran has joined #ruby
<ViPi> somth like: (your_hash.sort {|a1,a2| a2[1]<=>a1[1]}.keys - picked_keys).last ?
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
tommyvyo_ has joined #ruby
ananthakumaran1 has quit [Ping timeout: 252 seconds]
objectivemo has quit [Quit: objectivemo]
SCommette has joined #ruby
robotmay has joined #ruby
Russell^^ has quit [Quit: Russell^^]
swingha has quit [Quit: leaving]
<apeiros_> Hash#sort returns an Array (sadly :-S)
noyb_ has joined #ruby
maletor has joined #ruby
<ViPi> mmmh
Russell^^ has joined #ruby
<apeiros_> if you sort once and access many times, that's better than .key-picked + max_by, but if you do it everytime, it'll be slower
<ViPi> long time i didnt use ruby haha
<apeiros_> (max_by is O(n), sort is O(nlogn))
<julian-delphiki> apeiros_thats because its Enumberable#sort
<apeiros_> julian-delphiki: yes
hydrozen has quit [Quit: Computer has gone to sleep.]
noyb has quit [Ping timeout: 276 seconds]
Russell^^ has quit [Client Quit]
becom33 has quit [Quit: Leaving]
<ViPi> then: (your_hash.keys.sort{|k1,k2| your_hash[k1] <=> your_hash[k2]} - picked).last
clooth has joined #ruby
<JohnTeddy> ok, thanks
Russell^^ has joined #ruby
Russell^^ has quit [Client Quit]
<danneu> JohnTeddy: hash.invert[hash.values.max]
<JohnTeddy> I've only been programming for a couple weeks, so if my questions seem easy.. that's because I just started.
yshh has quit [Remote host closed the connection]
<danneu> JohnTeddy: i'd delete the keys found in picked_keys before the #invert
<JohnTeddy> danneu: yea, that seems like a good idea.
pyro111 has quit [Quit: Leaving]
<JohnTeddy> I'm not always sure if I should pick an array, or a hash table to store data.
noyb_ has quit [Read error: Operation timed out]
<JohnTeddy> I know an array is slow for processing lots of data, and has_keys is much faster. iirc.
<apeiros_> o0
<apeiros_> an array is not slow for processing lots of data
<JohnTeddy> relatively
robotmay has quit [Ping timeout: 276 seconds]
<JohnTeddy> So if I have 100k elements in a data structure, to search them all if in an array is slower than with a hash and .hash_keys?()
<apeiros_> JohnTeddy: if you have to *iterate* to search for it, both are roughly the same
Iszak has joined #ruby
<danneu> well, if youre pushing real processing volume, the algorithms is what scales https://github.com/kanwei/algorithms
<apeiros_> you have to use a datastructure due to what it is good at
<JohnTeddy> apeiros_: I see, that's good to know.
hbpoison has quit [Ping timeout: 276 seconds]
zph has joined #ruby
hbpoison has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
itnomad has joined #ruby
andrewhl has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
kiyoura has joined #ruby
apa_ has joined #ruby
_bart has joined #ruby
SCommette has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<shevy> hey apeiros_ do you also write in Ruby-C?
atno has quit [Ping timeout: 276 seconds]
kenneth has quit [Quit: kenneth]
onibox has quit [Quit: leaving]
hbpoison has quit [Ping timeout: 248 seconds]
Rym has quit [Quit: Rym]
hbpoison has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
hydrozen has joined #ruby
billy_ran_away has quit [Ping timeout: 252 seconds]
fumbe has joined #ruby
Astralum has joined #ruby
hydrozen has quit [Client Quit]
pcarrier has quit []
delphaber has left #ruby [#ruby]
IceDragon has joined #ruby
chessguy has quit [Remote host closed the connection]
apa_ has quit [Remote host closed the connection]
apa has joined #ruby
pcarrier has joined #ruby
goganchic has joined #ruby
Goles has quit [Quit: Out.]
pcarrier has quit [Client Quit]
danneu has quit [Ping timeout: 252 seconds]
Playground has quit [Ping timeout: 256 seconds]
<apeiros_> shevy: rarely
ViPi has quit [Quit: Computer has gone to sleep.]
aytch has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
hbpoison has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
<apa> Hello! Anybody has experience on IPC and pipes?
savage- has quit [Quit: savage-]
generalissimo has joined #ruby
danieldocki has quit [Quit: Linkinus - http://linkinus.com]
zeade has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
<apeiros_> apa: please, for the love of irc, don't metaquestions.
<apeiros_> +ask
SCommette has quit [Quit: SCommette]
<apa> apeiros: don't undertand what you mean with metaquestions
<apeiros_> let me reply with a metaquestion: how does answering your question help you solve your problem?
mackintosh has joined #ruby
<apa> apeiros_: ok, let's formulate better my question
<apa> apeiros_: I'm experimenting with IPC (inter process communication) in ruby
shevy has quit [Ping timeout: 246 seconds]
<apa> apeiros_: different processes communicate with the master process through a pipe
billy_ran_away has joined #ruby
danneu has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<apa> apeiros_: I just wanted to know how can I read a variable length string from a pipe and convert it to a Struct
<apeiros_> apa: you to either know the length or have a terminator
<apeiros_> if you know the length: IO#read(len), if you have a terminator: IO#gets(term)
<apa> apeiros_: there is where I would like some help with
<apa> apeiros_: the workers send information: <process-no><heart-bit time>
<canton7> he's just answered :P
<apa> apeiros_: now, process-no can be 1 or 10
dhruvasagar has joined #ruby
<apa> apeiros_: and that is a different length
pu22l3r has joined #ruby
<apa> apeiros_: now, I don't know if "pipes" is the right way to do that
bradhe has joined #ruby
<apeiros_> pipes or other method is mostly irrelevant
browndawg has quit [Quit: Leaving.]
dhruvasagar has quit [Read error: Connection reset by peer]
<apa> apeiros_: tried to search for posix messages queues on OS X but not supported
<apeiros_> do you write the worker?
ben__ has joined #ruby
<apa> apeiros_: yep
<apeiros_> then you can change the protocol
<apeiros_> I'm sure you can come up with a non-variable-length way to express "1 out of 2 values"
<apa> hmm, ok, will continue thinking about a nice way to do it. Now it is very naive what I did: just write process-no and Time.now.to_i to the pipe
bigmac has quit [Remote host closed the connection]
<apa> and on the master I know the first char is the process-no and the rest is the heart-bit
<apa> and I read nonblocking, 11 chars
<Mon_Ouie> If you didn't put anything in between, your protocol isn't really ambiguous but still confusing
<apa> because I know I have less than 10 workers (just 4)
<apeiros_> apa: as said, you can either know the length (by having a fixed length message or by sending the length)
<apeiros_> apa: or you send a terminator after each message
<apeiros_> and what Mon_Ouie said
<apa> aha
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie> You could for example write a line with the two numbers separated by a space, or using a binary format with pack/unpack
maxmanders has joined #ruby
Spooner has quit [Remote host closed the connection]
brianpWins has joined #ruby
<apa> second suggestion seems better
browndawg has joined #ruby
Spooner has joined #ruby
workmad3 has joined #ruby
<Mon_Ouie> Binary protocols have the advantage of being very space efficient, text-based protocols have the advantage of being human readable (which can help debugging)
<apa> I can give a separator to self defined separator to IO.write, right?
dnyy has quit [Remote host closed the connection]
<Mon_Ouie> (for something that simple, it's no big deal either way)
<apa> indeed
<apa> probably I will continue with text based for simplicity
thorncp has quit [Ping timeout: 260 seconds]
shevy has joined #ruby
dwu1 has joined #ruby
SCommette has joined #ruby
thorncp has joined #ruby
<canton7> please, whatever you do, don't go with some "magic" separator that's just a normal string you're assuming, but not ensuring, won't be used in normal operation :P
danneu has quit [Ping timeout: 252 seconds]
nrt- has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
sokrates has joined #ruby
<sokrates> puts namespace.constants.include?(name), namespace.const_defined?(name) # => true, false
hbpoison has quit [Ping timeout: 265 seconds]
<sokrates> how can this happen?
<apeiros_> canton7: I love "<thisismyseparatoranditwontoccuranywhere>"
<apeiros_> canton7: also, you're aware of mime-multipart? :D
hbpoison has joined #ruby
<canton7> apeiros_, I love it when it's some learning project. I hate it when people try and defend it :P
<apa> canton7: nice separator
hotovson has quit [Remote host closed the connection]
Guest50244 is now known as verto
Hanmac has joined #ruby
shtirlic has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
apa has quit [Remote host closed the connection]
m104 has joined #ruby
jaygen has quit [Remote host closed the connection]
maxmanders has joined #ruby
* apeiros_ bets most mail clients just use a really long PRN
danneu has joined #ruby
hadees has quit [Quit: hadees]
atno has joined #ruby
<shevy> I find myself often rewriting old code
<shevy> sometimes even starting from scratch, rather than going through the old code and changing things to a new model
<aytch> That's refactoring, and it's a good thing
pu22l3r has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
yshh has joined #ruby
viario has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
karakedi has left #ruby [#ruby]
ananthakumaran has quit [Quit: Leaving.]
Playground has joined #ruby
stevechiagozie has joined #ruby
SCommette has quit [Quit: SCommette]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
sokrates has quit [Quit: Page closed]
speakingcode has quit [Disconnected by services]
weeb1e has quit [Remote host closed the connection]
yshh has quit [Ping timeout: 248 seconds]
shtirlic has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
weeb1e has joined #ruby
bluOxigen has joined #ruby
SCommette has joined #ruby
generalissimo has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
kjellski has joined #ruby
buibex has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby
SCommette has quit [Client Quit]
zodiak has joined #ruby
<danneu> wouldnt that be rewriting?
mneorr has joined #ruby
aaronmacy has joined #ruby
ebouchut has joined #ruby
goganchic has quit [Quit: Leaving.]
Asym has joined #ruby
bricker_ has joined #ruby
Asym has left #ruby [#ruby]
buibex has quit [Ping timeout: 276 seconds]
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
bricker_ has quit [Client Quit]
bricker_ has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
_bart has quit [Quit: _bart]
Hanmac has quit [Ping timeout: 276 seconds]
browndawg has quit [Quit: Leaving.]
AsgardBSD has quit [Remote host closed the connection]
bricker_ has quit [Client Quit]
bricker_ has joined #ruby
squidBits has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ebouchut has quit [Quit: This computer has gone to sleep]
<shevy> yeah
sepp2k has quit [Remote host closed the connection]
Spami has joined #ruby
<shevy> the problem I have is that, it seems much simpler to think from zero and rewrite from zero, than jump into a large project and try to fix its shortcomings
dr_neek has quit [Quit: dr_neek]
bluOxigen has quit [Ping timeout: 276 seconds]
aaronmacy has quit [Quit: Leaving.]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
BizarreCake has quit [Ping timeout: 256 seconds]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
Spami has quit [Client Quit]
_alejandro has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
NullByte is now known as Gliner
Gliner is now known as FEWONA
SCommette has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
nomenkun has quit [Remote host closed the connection]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
dmiller1 has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ebouchut has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
bluOxigen has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ben__ has quit [Quit: ben__]
ViPi has quit [Max SendQ exceeded]
bradhe has joined #ruby
ViPi has joined #ruby
browndawg has joined #ruby
graft_ has quit [Ping timeout: 244 seconds]
Spooner has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
alejandro_ has joined #ruby
dankest has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
andrewhl has joined #ruby
_alejandro has quit [Ping timeout: 248 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
s1n4 has quit [Quit: peace out]
pacbard is now known as zz_pacbard
objectivemo has joined #ruby
gyre007_ has quit [Remote host closed the connection]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
statarb3 has quit [Ping timeout: 240 seconds]
red|dye has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
_alejand_ has joined #ruby
SCommette has quit [Quit: SCommette]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
red|dye has left #ruby [#ruby]
DrShoggoth has quit [Ping timeout: 248 seconds]
zph has quit [Quit: Computer has gone to sleep.]
alejandro_ has quit [Ping timeout: 276 seconds]
generalissimo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lolcathost has joined #ruby
Playground has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
nkr has quit [Read error: Connection reset by peer]
dankest has quit [Quit: Leaving...]
nkr has joined #ruby
DrShoggoth has joined #ruby
tarsolya has quit [Quit: Lost terminal]
jds_ has joined #ruby
Zolo has quit [Remote host closed the connection]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
weddingcakes has joined #ruby
zeade has quit [Ping timeout: 260 seconds]
FEWONA is now known as Rix
solidoodlesuppo has joined #ruby
solidoodlesuppor has quit [Ping timeout: 248 seconds]
graft_ has quit [Ping timeout: 248 seconds]
davidokner has quit [Quit: leaving]
jds_ has quit [Remote host closed the connection]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
solidoodlesuppo is now known as solidoodlesuppor
yacks has quit [Remote host closed the connection]
weddingcakes has quit [Quit: leaving]
workmad3 has joined #ruby
nathancahill has quit [Quit: nathancahill]
nathancahill has joined #ruby
v0n has joined #ruby
SCommette has joined #ruby
shufflebot has joined #ruby
ebouchut has joined #ruby
robotmay has joined #ruby
r3nrut_ has joined #ruby
gyre007 has joined #ruby
sgupta has joined #ruby
hackerdude has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
lolcathost has quit [Ping timeout: 276 seconds]
robotmay has quit [Ping timeout: 264 seconds]
bricker_ has quit [Ping timeout: 255 seconds]
verto is now known as verto|off
vilu has joined #ruby
ebobby has joined #ruby
<vilu> ccc
knirhs has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 264 seconds]
ewet has joined #ruby
sepp2k has joined #ruby
gyre007 has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
Spooner has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
vilu has quit [Ping timeout: 245 seconds]
knirhs has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
bigmac has joined #ruby
wting has joined #ruby
mneorr has quit [Remote host closed the connection]
tjbiddle has joined #ruby
x82_nicole has joined #ruby
graft_ has quit [Ping timeout: 240 seconds]
pcarrier has joined #ruby
<bigmac> ping=buff1.index("true"), cnt=1 || ping=buff1.index("false"), cnt=0
wargasm has joined #ruby
pcarrier has quit [Client Quit]
<wting> I'm using multiple threads to read/write to a MongoDB. Should I have one db connection per thread or one total?
<bigmac> how can i use....
sgupta has quit [Ping timeout: 240 seconds]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
<yfeldblum> wting, the mongo driver from 10gen coordinates a thread-safe connection pool for you
<wting> yfeldblum: Thanks!
bigmac has quit [Client Quit]
Playground has joined #ruby
<yfeldblum> wting, so you just need to instantiate a single Mongo::MongoClient (or Mongo::MongoReplicaSetClient or whatever) and the thread-safe connection-pool is handled behind the scenes
<yfeldblum> wting, make sure you configure it, though, to have as many connections as you will end up needing per pool ...
m104 has quit [Quit: Be back later]
_alejandro has joined #ruby
objectivemo has quit [Quit: objectivemo]
alejandro_ has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
Targen has quit [Ping timeout: 240 seconds]
_alejand_ has quit [Ping timeout: 256 seconds]
ryanf has joined #ruby
<wting> I've been using a single Mongo::Connection.new, looking into Mongo::MongoClient
zz_pacbard is now known as pacbard
zph has joined #ruby
<wting> hmm, looks like Mongo::Connection is deprecated
<wting> guess I need to update my code, thanks for the help
_alejandro has quit [Ping timeout: 272 seconds]
v0n has joined #ruby
SeanTAllen has quit [Remote host closed the connection]
nomenkun has joined #ruby
notbrent has quit [Remote host closed the connection]
cableray has joined #ruby
mneorr has joined #ruby
im0b has quit [Remote host closed the connection]
Targen has joined #ruby
s1n4 has joined #ruby
nathancahill has quit [Quit: nathancahill]
heftig has quit [Quit: leaving]
jacktrick has quit [Quit: Leaving]
toekutr has joined #ruby
jaygen has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
s0ber_ has joined #ruby
Dann1 has joined #ruby
s0ber has quit [Ping timeout: 255 seconds]
s0ber_ is now known as s0ber
SeanTAllen has joined #ruby
notbrent has joined #ruby
macmartine has joined #ruby
im0b has joined #ruby
stevechiagozie has joined #ruby
Zolo has joined #ruby
bradhe has joined #ruby
kjellski has quit [Quit: Leaving]
subbyyy has quit [Ping timeout: 264 seconds]
daguco has joined #ruby
ossareh has joined #ruby
karasawa has quit [Ping timeout: 248 seconds]
gyre007 has joined #ruby
stevechiagozie has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby
ViPi_ has joined #ruby
Dann1 has quit [Ping timeout: 255 seconds]
ViPi has quit [Ping timeout: 265 seconds]
Edward_ has quit [Ping timeout: 248 seconds]
Dann1 has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
Dann1 has joined #ruby
jondot` has quit [Read error: Connection reset by peer]
joofsh has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 252 seconds]
daguco has left #ruby ["Saliendo"]
karasawa has quit [Remote host closed the connection]
Dann1 has quit [Client Quit]
gnarmis has quit [Remote host closed the connection]
gnarmis has joined #ruby
stevechiagozie has joined #ruby
cableray has quit [Quit: cableray]
m104 has joined #ruby
karasawa has joined #ruby
havenn has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
gnarmis has quit [Ping timeout: 248 seconds]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
allsystemsarego has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
Dann1 has joined #ruby
zeade has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
<ryanf> wting: in the current gem, Mongo::Connection is almost just a subclass of MongoClient
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_md has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
m104 has quit [Ping timeout: 264 seconds]
jondot` has joined #ruby
jds_ has joined #ruby
vlad_starkov has joined #ruby
heftig has joined #ruby
kil0byte has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
sgupta has joined #ruby
n1x has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
jds_ has quit [Ping timeout: 256 seconds]
ewet has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
staafl has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
staafl has quit [Client Quit]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
theRoUS has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
theRoUS_ has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
heftig has quit [Quit: leaving]
aytch has quit [Remote host closed the connection]
Dann1 has quit [Read error: Connection reset by peer]
albakry has joined #ruby
albakry has quit [Changing host]
albakry has joined #ruby
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
squidBits has quit [Quit: squidBits]
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
osaut has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
ViPi_ has quit [Quit: Computer has gone to sleep.]
hakunin has joined #ruby
Dann1 has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
hakunin_ has quit [Read error: Connection reset by peer]
Dann1 has quit [Client Quit]
razibog1 has joined #ruby
TheFuzzball has joined #ruby
razibog has quit [Quit: Leaving.]
Dann1 has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
razibog1 has quit [Client Quit]
razibog has joined #ruby
pmros has joined #ruby
Playground has quit [Ping timeout: 260 seconds]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
Playground has joined #ruby
Rym has joined #ruby
heftig has joined #ruby
akl_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
dreinull has joined #ruby
m104 has joined #ruby
soulcake has quit [Quit: ZNC - http://znc.in]
ben__ has joined #ruby
tommyvyo_ has quit [Quit: http://twitter.com/tommyvyo]
soulcake has joined #ruby
m104 has quit [Ping timeout: 260 seconds]
shufflebot has quit [Read error: Connection reset by peer]
tommyvyo_ has joined #ruby
hackerdude has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<rynkan> man, gitlab is no easy-install
hackerdude has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
eldariof has quit []
DrShoggoth has quit [Ping timeout: 248 seconds]
m104 has joined #ruby
nathancahill has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
shtirlic has quit [Remote host closed the connection]
jaygen has quit [Remote host closed the connection]
hackerdude has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
cableray has joined #ruby
jacktrick has joined #ruby
d2dchat has quit [Remote host closed the connection]
subbyyy has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Dann1 has quit [Quit: Dann1]
bricker_ has joined #ruby
r3nrut_ has quit [Ping timeout: 260 seconds]
WilfredTheGreat has joined #ruby
zv470 has joined #ruby
Daman has joined #ruby
firewall has quit [Ping timeout: 276 seconds]
danneu has joined #ruby
brianpWins has quit [Quit: brianpWins]
karl___ has quit [Ping timeout: 245 seconds]
allsystemsarego_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
theRoUS_ has quit [Ping timeout: 276 seconds]
theRoUS has quit [Ping timeout: 276 seconds]
dankest has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
blacktulip has quit [Remote host closed the connection]
squidBits has joined #ruby
hbpoison has joined #ruby
allsystemsarego has quit [Ping timeout: 272 seconds]
F1skr has quit [Quit: WeeChat 0.3.9.2]
mengu has quit [Quit: Konversation terminated!]
zv470 has quit [Quit: Computer has gone to sleep]
pacbard is now known as zz_pacbard
mneorr_ has joined #ruby
firewall has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
slainer68 has quit [Remote host closed the connection]
jlast has joined #ruby
nesoi has joined #ruby
<nesoi> hello
<nesoi> so I'm getting a record from a web service, and it seems that sometimes it has some fields abset. How can I print the fields it does have ?
PragCypher has quit [Quit: Leaving]
Iszak has quit []
<nesoi> I'm getting an error when trying to work with a nonexistent field
mneorr_ has quit [Remote host closed the connection]
aytch has joined #ruby
jekotia has joined #ruby
jacktrick has quit [Quit: Leaving]
bapa_ has joined #ruby
mneorr has joined #ruby
bapa has quit [Ping timeout: 255 seconds]
alejandro_ has quit [Remote host closed the connection]
<nesoi> nevermind :)
wargasm has quit [Ping timeout: 246 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
elico has joined #ruby
wargasm has joined #ruby
<banisterfiend> nesoi: u r talking to yourself
<banisterfiend> :P
yfeldblum has quit [Ping timeout: 248 seconds]
kirun has quit [Read error: Operation timed out]
otters has quit [Ping timeout: 252 seconds]
elico has quit [Client Quit]
blazes816 has joined #ruby
rakl has quit [Quit: sleeping]
mrbtie has joined #ruby
n1x has quit [Ping timeout: 246 seconds]
berserkr has quit [Quit: Leaving.]
jacktrick has joined #ruby
jds_ has joined #ruby
bradhe has quit [Remote host closed the connection]
akl_ has quit [Remote host closed the connection]
<nesoi> banisterfiend: :)
clooth has quit [Quit: clooth]
bradhe has joined #ruby
uris has joined #ruby
oblio has joined #ruby
mrbtie has quit [Read error: Connection reset by peer]
Divinite has joined #ruby
bentglasstube has joined #ruby
<bentglasstube> having some trouble getting the bdb gem to install
slyride has quit [Remote host closed the connection]
Zolo has quit [Remote host closed the connection]
dankest is now known as dankest|away
dankest|away has quit [Quit: Leaving...]
snearch has joined #ruby
Divinite has left #ruby [#ruby]
brianpWins has joined #ruby
yfeldblum has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
macmartine has joined #ruby
mrbtie has joined #ruby
nkts has joined #ruby
ossareh has quit [Read error: Connection reset by peer]
x82_nicole has joined #ruby
perlsyntax has joined #ruby
zeade has quit [Quit: Leaving.]
slainer68 has joined #ruby
nathancahill has quit [Quit: nathancahill]
mrbtie has quit [Remote host closed the connection]
solidoodlesuppor has quit [Remote host closed the connection]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
mrbtie has joined #ruby
DrShoggoth has joined #ruby
akl_ has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
aytch has quit [Remote host closed the connection]
aytch has joined #ruby
rakl has joined #ruby
v0n has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
pmros has quit [Quit: Konversation terminated!]
osaut has quit [Read error: Connection reset by peer]
osaut has joined #ruby
DrShoggoth has quit [Ping timeout: 272 seconds]
havenn has joined #ruby
matthewrobbins has joined #ruby
m104 has quit [Quit: Bye!]
linoj has joined #ruby
aytch has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 264 seconds]
nathancahill has joined #ruby
AlbireoX has joined #ruby
bradhe has joined #ruby
rburton- has joined #ruby
<oblio> i have some json with a list of elements that have name and parent attributes (which match other names), anyone know a quick way to generate & print a hierarchy from the list?
matthewrobbins has quit [Quit: matthewrobbins]
f03lipe has joined #ruby
s1n4 has quit [Quit: leaving]
andrewhl has quit [Remote host closed the connection]
AlbireoX has quit [Ping timeout: 246 seconds]
thone has joined #ruby
dnyy has joined #ruby
nathancahill_ has joined #ruby
AlbireoX has joined #ruby
thufir_ has joined #ruby
<apeiros_> oblio: what have you tried so far?
mercwithamouth has quit [Ping timeout: 272 seconds]
dmiller1 has quit [Quit: WeeChat 0.3.9.2]
thone_ has quit [Ping timeout: 240 seconds]
macmarti_ has joined #ruby
mercwithamouth has joined #ruby
mrbtie has quit [Quit: Leaving]
f03lipe has quit [Quit: Leaving]
nathancahill has quit [Ping timeout: 264 seconds]
nathancahill_ is now known as nathancahill
macmartine has quit [Ping timeout: 276 seconds]
f03lipe has joined #ruby
snearch has quit [Quit: Verlassend]
alanp_ has joined #ruby
f03lipe has quit [Max SendQ exceeded]
Nisstyre-laptop has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
alanp has quit [Ping timeout: 264 seconds]
nesoi has left #ruby ["I'm a happy Miranda IM user! Get it here: http://miranda-im.org"]
albakry has quit [Quit: Leaving]
h4mz1d has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
osaut has quit [Quit: osaut]
<pskosinski> number.chr is has range 0-255. but char.ord is returning codes from much bigger range… is it using utf-8?
<pskosinski> or what is it...
akl_ has quit [Ping timeout: 265 seconds]
hbpoison has quit [Ping timeout: 276 seconds]
vlad_sta_ has quit [Remote host closed the connection]
hbpoison has joined #ruby
_knitetemplar has joined #ruby
clooth has joined #ruby
aytch has joined #ruby
<pskosinski> nvm
perlsyntax has quit [Quit: Leaving]
allsystemsarego_ has quit [Quit: Leaving]
_hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has quit [Read error: Connection reset by peer]
Playground has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
_hemanth_ has joined #ruby
hbpoison has quit [Remote host closed the connection]
butblack has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
<butblack> can a when in a case statement have an if statement?
<danneu> butblack: like what
<butblack> sec i'll throw it in a gist
<danneu> butblack: nesting conditional checks is a code smell imo
<butblack> what's a code smell
<danneu> like, signs that youre going down a dark route that will make you sad if you don't heed the warnings
<danneu> and refactor today
<butblack> danneu: ha and ok ill throw it into a method
<danneu> butblack: gist it
<danneu> i havent seen your code man, maybe what you have in mind is perfect. who knows
h4mz1d has quit [Ping timeout: 264 seconds]
_knitetemplar has quit [Remote host closed the connection]
aytch has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 276 seconds]
aytch has joined #ruby
hbpoison has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
<apeiros_> butblack: a when statement consists of normal code again. there are no restrictions.
bentglasstube has left #ruby [#ruby]
jondot` has quit [Ping timeout: 256 seconds]
clooth has quit [Quit: clooth]
gnarmis has joined #ruby
aytch has quit [Ping timeout: 265 seconds]
h4mz1d has joined #ruby
Beoran_ has joined #ruby
apeiros has joined #ruby
ossareh has joined #ruby
LouisGB has joined #ruby
aytch has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
robert__ has joined #ruby
dreinull has quit [Remote host closed the connection]
Beoran__ has quit [Ping timeout: 248 seconds]
noyb has joined #ruby
aytch has quit [Remote host closed the connection]
`brendan has joined #ruby
aytch has joined #ruby
nathancahill_ has joined #ruby
nathancahill has quit [Ping timeout: 272 seconds]
nathancahill_ is now known as nathancahill
_md has quit [Quit: Linkinus - http://linkinus.com]
robert_ has quit [Ping timeout: 276 seconds]
hbpoison has quit [Remote host closed the connection]
krisfremen has quit [Remote host closed the connection]
krisfremen has joined #ruby
hbpoison has joined #ruby
aytch has quit [Ping timeout: 252 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
sie has quit [Read error: No route to host]
itnomad has quit [Remote host closed the connection]
robotmay has joined #ruby
vlad_starkov has joined #ruby
* apeiros assumes oblio solved his problem…
clooth has joined #ruby
jaywastaken has quit [Read error: Connection reset by peer]
jaywastaken has joined #ruby
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
WilfredTheGreat has quit [Ping timeout: 265 seconds]
hbpoison has quit [Ping timeout: 255 seconds]
nkts has quit []
Spami has joined #ruby
gnarmis has quit []
sie has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
apeiros has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
bigmac has joined #ruby
WilfredTheGreat has joined #ruby
horofox has quit [Quit: horofox]
reppard has joined #ruby
jds_ has quit [Remote host closed the connection]
<bigmac> im trying to pull a list of directories for writing
<bigmac> media/6E88F3A627ADD9B7/place/bob picture (1995)/
b26 has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
<bigmac> the problem im having is the spaces need to look like /bob\ pictures\ (1995\)/
`brendan has quit [Read error: Connection reset by peer]
b26 is now known as `brendan
mneorr has quit [Remote host closed the connection]
nomenkun has joined #ruby
<pskosinski> Could CGI::encode http://www.ruby-doc.org/stdlib-1.9.3/libdoc/cgi/rdoc/CGI.html#method-c-escape be following RFC3986 http://tools.ietf.org/html/rfc3986 and escape space as %20 and not escape tilde? :<
sepp2k has quit [Remote host closed the connection]
hbpoison has joined #ruby
<pskosinski> There's not big difference if any but… RFC. :<
dankest has joined #ruby
bricker_ has quit [Quit: leaving]
generalissimo has quit [Remote host closed the connection]
nathancahill has quit [Read error: Connection reset by peer]
bricker_ has joined #ruby
nathancahill has joined #ruby
<bigmac> pskosinski: are you talking to me? cgi.encode?
DatumDrop has joined #ruby
butblack has left #ruby [#ruby]
philcrissman has joined #ruby
reppard is now known as repaprd
repaprd is now known as reppard
clooth has quit [Quit: clooth]
nomenkun has quit [Ping timeout: 260 seconds]
Kuifje has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
h4mz1d has quit [Ping timeout: 276 seconds]
Edward_ has joined #ruby
Glacer232 has joined #ruby
<Glacer232> Hey, why does my ruby set itself to 1.8.7 even though i have used rvm to set the default to 1.9.3?
DatumDrop has quit [Ping timeout: 276 seconds]
<bigmac> wget "some.site.cm/index,html" -O "/media/place/bobs+pictures+%281995%29/trailer.flv"
karasawa has quit [Ping timeout: 276 seconds]
karasawa has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
<bigmac> dst_dir="/media/place/#{CGI.escape(person_name)}"
bricker_ is now known as bricker`LA
timonv_ has quit [Ping timeout: 276 seconds]