apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
savage- has joined #ruby
maletor has joined #ruby
<Spooner> swarley : The problem with that argument is that noone needs to use sockets any more, so a high level language doesn't make it easier to use a socket, it provides abstractions above that.
<swarley> Meh, i still mess with sockets
therod has quit [Ping timeout: 245 seconds]
<swarley> so that's how i judge a language for my use
lecreme has joined #ruby
<swarley> its not the best judge
<swarley> but its one that's relevant for me
<ablankfield> hmmm
<lecreme> hi
<ablankfield> I still don't understand the difference between OO and functional or the other type of language you mentioned
lukec has quit [Quit: lukec]
<swarley> Well, have you ever done any fucntional programming?
Goles has quit [Ping timeout: 245 seconds]
ralphvdh has quit [Ping timeout: 244 seconds]
<ablankfield> is javascript functional?
<swarley> the best way to explain functional programming, is that if you say that x = 4, you cant say later that x = 5 because then you're lying
<swarley> no, javascript is OO/procedural
<ablankfield> huh... maybe I've only been trying OO languages then lol
ryanlecompte has quit [Ping timeout: 244 seconds]
<ablankfield> is C++ functional?
<blazes816> c++ is OO
<swarley> C++ is procedural with OO capabilities
<blazes816> that would be a more correct way to say it
erichmenge has quit [Quit: Be back later]
pureluck has quit [Remote host closed the connection]
aantix has quit [Ping timeout: 240 seconds]
nari_ has quit [Ping timeout: 264 seconds]
pureluck has joined #ruby
mikalv has quit [Ping timeout: 245 seconds]
Progster has joined #ruby
<ablankfield> I just wikipedia'd functional programming. It says something about haskell and lisp... never tried either of those lol
apok has joined #ruby
<swarley> Yeah, let me show you a haskell example really quickly
<ablankfield> alright
<blazes816> i'd probably exit the chan before you see that example
<ablankfield> why?
<ablankfield> will I poop myself? lol
<blazes816> i'm just kidding. I can't stand haskell
<ablankfield> oh
<blazes816> lol, you just might
<Spooner> I thought it was interesting, but I couldn't think of anything to use it for (though admittedly I've only read a few chapters on it).
elico has joined #ruby
<ablankfield> I have a few hours to chat tonight. I'm cutting back on intake of programming knowledge until I understand some of the fundamentals
arubin has joined #ruby
<swarley> factorial :: (Num a) => a -> a
<swarley> factorial x
elico has quit [Client Quit]
<swarley> | x < 0 = 1
<swarley> | otherwise = x * (x-1)
<ablankfield> mhmmmm... that looks like alien talk
<ablankfield> speaking of which, what does the => mean in ruby?
<waxjar> i'd really like to learn haskell properly some time
<Spooner> It meant a rocket ;)
<waxjar> => separates the key from a value in a Hash
<ablankfield> so fast rocket a slower rocket a?
<swarley> => in ruby means association in a hash
pureluck has quit [Ping timeout: 252 seconds]
<swarley> but what i just pasted was haskell
<ablankfield> yeah
<ablankfield> I went through the try ruby page on code school and I remember seeing the => in the hash section
caleb_io has quit [Quit: Leaving...]
<swarley> => in ruby is tASSOC (to use the lexer token name) to denote association in a hash, and -> is a shortcut for the lambda keyword
<ablankfield> or maybe it was when I was looking at rails
<waxjar> { :key => "value" }
<Spooner> I think one problem here is that I get the impression that you don't know any language to any degree, so it will be hard to explain the difference between language styles in terms of code.
pureluck has joined #ruby
<ablankfield> ohhhhh I think I get it
<Spooner> And statting to talk about lexers and tASSOC would confuse most people.
<ablankfield> so { :ablankfield => "doesn't quite understand programming" }
<swarley> yeah sorry, i dont know what compelled me to reference that
<waxjar> that's valid yeah, ablankfield
conor_ireland has quit [Quit: conor_ireland]
<ablankfield> what is ruby used for?
<swarley> its a general use language
<swarley> but mostly, people get paid to use it for web applications
mikalv has joined #ruby
Takehiro has joined #ruby
<waxjar> it's mostly used for websites (rails, sinatra), but there's loads and loads more you can do with it
erichmenge has joined #ruby
savage- has quit [Remote host closed the connection]
<swarley> Personally, i use it for just about everything you can imagine
bluenemo has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
* swarley works for a minute
<Spooner> swarley Do you use it to program self-aware killer robots so they can take over the world?
<ablankfield> is there anything I should learn or practice/get good at before I really try to program things?
jeffreybaird has quit [Quit: jeffreybaird]
<swarley> Spooner; you mean my roomba? of course
<ablankfield> people really have those?
c0rn_ has joined #ruby
<swarley> ablankfield; there are actual robot versions that you can program
pureluck has quit [Ping timeout: 248 seconds]
<ablankfield> I thought roomba's were just filler for bags of crap on woot
<swarley> that arent vacuums
dylanjha has quit [Quit: Leaving...]
<swarley> And to be honest
<ablankfield> is ruby good for robotics stuff?
brainbox has joined #ruby
<swarley> You're going to make mistakes, a lot of mistakes
<brainbox> whats the equivalent of textmate on linux? recently moved from osx
<swarley> The only thing you can do is keep at it and learn more about it
<waxjar> it helps to be familiar with logic, i think. thinking of every possible case, for example
<swarley> brainbox; look at sublime text 2
<swarley> i believe it uses textmate as a base
<ablankfield> I love sublime text 2
Takehiro has quit [Ping timeout: 240 seconds]
<ablankfield> zen coding and paraphraser makes it cake
<swarley> its a free trial, you dont actually have to buy, and the free version only has a minor (and i mean extremely minor) annoyance
<ablankfield> but it is annoying
<swarley> Yeah, all you have to do is click okay though
<ablankfield> that and it wont open if he makes a new release
<brainbox> ruby support in sublime?
armenb has quit [Ping timeout: 248 seconds]
<ablankfield> kind of a forced upgrade\
GeekOnCoffee has quit [Ping timeout: 244 seconds]
<swarley> Yes, it has good syntax hilighting
headius has joined #ruby
<swarley> I use it when i'm not using vim
<ablankfield> wait... you can use ruby in sublime text?
<ablankfield> I just installed eclipse but maybe I'll grab sublime again
<brainbox> swarley: does it have document completion?
<swarley> Yes
davidcelis has quit [Quit: K-Lined.]
Progster has quit [Ping timeout: 260 seconds]
<brainbox> great, I'll give it a go
<swarley> Are you talking about snippet tab complete?
<ablankfield> sublime text is one of the best things i've used especially for web dev
<brainbox> swarley: thought more about completion based on current document contents
<swarley> Ah, i believe so
<swarley> I know that it uses text mate packages
<swarley> so, you can probably find most features in there
<ablankfield> plus it has that command line thing for getting packages
<brainbox> sounds perfect
helichopter has joined #ruby
airtanah_ has quit [Ping timeout: 264 seconds]
<ablankfield> if you use it like a boss then its well worth the 70 bucks or whatever it is for a license
jcaudle_ has joined #ruby
<waxjar> if you like text mate, you'll love sublime text 2
<brainbox> also, in addition to a text editor, I need a full blown ide, what is the best one for linux? i'm thinking either eclipse or idea
<ablankfield> I like eclipse, but I've never tried idea
<waxjar> what do you need an IDE for?
<brainbox> waxjar: for bigger projects, I need it for heavy organizing
<blazes816> brainbox: I just use sublime text these days, but I remember Aptana Studio working really well for me
<brainbox> class trees, reference updating, etc
<waxjar> hmm okay
<brainbox> it's just some of the things that a fullblown ide brings I think
<brainbox> for large projects I just cant do without
<ablankfield> I wish there was a program that turned a laptop monitor into multiple monitors
<waxjar> i never actually worked on a big project, but i can't imagine using some bloated IDE :p
<ablankfield> like you can select a part of your screen and make it so whatever you have open there just stays put
<ablankfield> wait, nvm
<ablankfield> I forgot I was using linux
artOfWar has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
hbpoison has joined #ruby
blazes816 has quit [Quit: blazes816]
c0rn_ has quit [Quit: Computer has gone to sleep.]
ryanlecompte has joined #ruby
seich- has quit [Read error: Operation timed out]
brandonblack has joined #ruby
<ablankfield> so what you guys are saying is that I should just keep learning about ruby and playing with it and eventually I'll have a better understanding of some of the fundamentals of programming?
CaptainKnots has quit [Quit: bazinga!]
<swarley> yeah
<waxjar> that's p much how i did it
horofox has quit [Read error: Connection reset by peer]
<brainbox> is a ruby a language people start with learning programming?
<brainbox> i'd never have thought
horofox has joined #ruby
<waxjar> if you're on reddit, r/ruby has interesting articles every once in a while.
<ablankfield> do you guys have careers where you get paid to program?
<swarley> I didnt start with ruby, but ruby is how i really learned how to program
<brainbox> ablankafield: that said, i dont think it matters which language you chose for learning to program
brandonblack has quit [Remote host closed the connection]
<brainbox> it's all the same, basically, as far as programming principles goes
brandonblack has joined #ruby
<ablankfield> I'm primarily choosing ruby because syntax hangs me up and I just wanna learn, not learn where the ;
<ablankfield> 's go\
seich- has joined #ruby
<brainbox> ablankfield: yes... python and ruby are very elegant as they say
<ablankfield> ruby's a hot date and I wanna take her to prom
<brainbox> your files don't end with }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
<ablankfield> if your
armenb has joined #ruby
<ablankfield> if your's do then that's pretty scary
<brainbox> try java
eignerchris has quit [Remote host closed the connection]
GeekOnCoffee has joined #ruby
<brainbox> ablankfield: but seriously, basic programming principles and theory are very easy to grasp.... you don't need to write anything else than psedo-code actually. to learn
<ablankfield> I learned a bit of java but then my twin convinced me to learn objective c which confused me and I decided to try javascript since I new html and css and then I got hung up on dom and other things
havenn has quit [Remote host closed the connection]
<ablankfield> pseudo code?
<waxjar> depends a bit though, i'd be very hard to switch to something like Erlang or Lisp from Ruby, but to JavaScript or PHP would be quite smooth i think?
<brainbox> you just need to know about variables, typing, scope, environment, operators, precedence, loops/conditional statements
<brainbox> I think that's mostly all you need to have a basic understanding
<brainbox> I forgot functions/methods and classes
<brainbox> :D
<ablankfield> scope... that's what hung me up
<brainbox> oh, and objects... and instances.. sorry
<brainbox> but that should be all for a basic understanding... I think
bradhe has joined #ruby
gabrielr_ has joined #ruby
<ablankfield> I get variables and operators and conditional statements but methods classes scope and objects confuse me a bit
jcaudle_ has quit [Quit: jcaudle_]
ryanlecompte has quit [Ping timeout: 244 seconds]
nlpplz has quit [Ping timeout: 252 seconds]
jjang has quit [Remote host closed the connection]
caleb_io has joined #ruby
<brainbox> ablankfield: depending on language function and method are the same. think of a function or method as a verb. as something that is performed.
<brainbox> ablankfield: getWater() would be a function, stealCar(), steerLeft(), getUsers(), etc.
<ablankfield> so .reverse is a method because it performs an action
<brainbox> ablankfield: yes
Chryson has quit [Quit: Leaving]
<ablankfield> are those functions you mentioned also methods?
<brainbox> ablankfield: now you know what a function/method is.
gabrielrotbart has quit [Ping timeout: 245 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
<ablankfield> so those terms go hand in hand?
<brainbox> ablankfield: yes, function and method are the same thing. just some language call it a function, and others call it a method.
<ablankfield> and scope is like hierarchy?
brandonblack has quit [Remote host closed the connection]
<waxjar> functions and methods are not strictly the same, especially not in ruby. In ruby you call a method *on* an object, but in php for example you can define functions like in mathematics
<ablankfield> are functions in ruby those things that start with def
<brainbox> yes
<ablankfield> but then you can call them as a method
<waxjar> ruby doesn't have functions, it only has methods. but yes, they start with def :)
irleif has quit [Quit: Computer has gone to sleep.]
<brainbox> well, what is called a function in say javascript, is called a method in ruby
<brainbox> in javascript you declare with keyword function, in ruby, with keyword def
<ablankfield> ohhhhh
<ablankfield> yeah, see ruby makes way more sense to me
<waxjar> they're similar, but don't start thinking of them as the same thing. it'll make things a lot easier :)
mmitchell has joined #ruby
cbuxton has quit [Quit: Leaving.]
<brainbox> ablankfield : definitely learn programming in whatever language you understand it best.
<ablankfield> so what is scope? and is that something that is involved in every language?
<brainbox> ablankfield: but once you've learned it in ruby, you can pick up any other language in a day
<brainbox> ablankfield : yes, scope is important in all languages
<waxjar> i like to think of it as an onion :P
<brainbox> ablankfield : but the rules of scope are different in every language
<ablankfield> yeah, i noticed I get through variables and conditional statements then usually after that when it gets into methods and classes and scope... I get a huge brain fart and dont get what happened to the math and logic
<ablankfield> so what is scope
reinaldob has joined #ruby
<brainbox> ablankfield: i guess you can think of scope as access... rules of access.. or which variables can be seen by a certain function, or which function can see another function.
jrist is now known as jrist-afk
<ablankfield> I think that was where I got lost when I was learning javascript
<brainbox> ablankfield: hmm, or even in terms of privacy or protection.
headius has quit [Quit: headius]
jcaudle has joined #ruby
<ablankfield> I havent used ruby yet to make any .rb files or anything, i've just used ruby in irb. I'm hoping that if I learn about scope with ruby it might be easier to comprehend
<ablankfield> is scope like control flow, or is that different
<brainbox> ablankfield: say you create a function, it has a couple of variables, those variables might be local. they might be only seen by that function
<waxjar> when defining a method for example, you might have some variables (variable = 'value'), those will only be accessible by that method
<brainbox> ablankfield: so you could say those variables are limited to the scope of the function. they exist only within the function.
<ablankfield> because they are in the bucket that is the method you are currently defining right?
<brainbox> ablankfield: where as on the other hand, you could have global functions, that can be seen by all functions
pureluck has joined #ruby
<brainbox> hehe yeah
<brainbox> that is a very limited picture of what scope is
<brainbox> but you get the basic idea
<ablankfield> the big words lose me lol, I have to think in simpleton terms
Youko has joined #ruby
reinaldob has quit [Remote host closed the connection]
Youko has left #ruby [#ruby]
awc737 has quit [Ping timeout: 240 seconds]
<brainbox> because programming in general can be very abstract, it helps to visualize in terms of real objects
<ablankfield> that also kind of confuses me a bit
<brainbox> especially when you start dealing with more complex things
nitti has joined #ruby
<ablankfield> because some objects have functions and other objects are just trinkets to look at
<ablankfield> real world objects that is
digitalcakestudi has joined #ruby
Tearan has joined #ruby
und3f has joined #ruby
awarner has joined #ruby
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lolzie has joined #ruby
pureluck has quit [Ping timeout: 268 seconds]
moshee has quit [Ping timeout: 255 seconds]
allyraza has quit [Ping timeout: 244 seconds]
kiyoura has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<waxjar> the cliché is to think of it as persons or animals. x = Person.new; x.eat(Burrito.new); x.stomach_contents # => [<Burrito 1234>]
<ablankfield> like a mouse for a computer does multiple things like move the cursor, has buttons that do things, and sometimes even a scroll button. but... huh. well as I'm looking around i'm starting to realize everything I look at has a purpose or function
<ablankfield> so that was kinda eye opening I think
<lolzie> I have a class with an array. It seems a natural course of action for this program will be to use wraparound-ing for index access of this array, e.g. array of length 4, array[4] returning array[0]
nitti has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
<lolzie> For this, should I create a class method, or simply override [] in Array?
<brainbox> ablankfield: you might have heard that line 'everything is an object' about ruby... or other languages (python)
bemson has quit [Ping timeout: 260 seconds]
<ablankfield> brainbox yeah
<lolzie> I feel the latter to be bad, but I think it might be because I haven't lost my dynamic method definition virginity in Ruby yet. But I think it would be cleaner.
<swarley> lolzie; you should probably use an instance method
nlpplz has joined #ruby
yshh has joined #ruby
<brainbox> ablankfield: for you that just means that since everything is an object, you dont need to worry that much about what an object actually is
<swarley> def [](*args); @array_in_my_object[*args]; end
pureluck has joined #ruby
<swarley> that will just pass the call to [] down to the array in your object
<brainbox> ablankfield: but of a class, think of a class as a blueprint for an object.
awarner has quit [Read error: No route to host]
<ablankfield> so if I'm a child playing in a sand box, I shouldn't worry about what sand is made of, I should be happy that I can play with it and turn it into whatever I can imagine?
classix has quit [Ping timeout: 246 seconds]
awarner has joined #ruby
<brainbox> ablankfield : you can have a class called 'car', an instance of this class, could be a 'bmw'
<swarley> how many object oriented programmers does it take to change a light bulb?
ralphvdh has joined #ruby
<ablankfield> lol
<swarley> none. They tell it to change itself
<swarley> lightbulb.change
<ablankfield> is that like when you do the "def bmw < car" thing?
pureluck has quit [Remote host closed the connection]
<waxjar> that's inheritance, i think what brainbox means is that you can do bmw = Car.new for example
<lolzie> swarley: does that essentially define obj[]
<lolzie> swarley: this would only be used internally
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<brainbox> ablankfield : ablankfield : how about... bmw = new Car();
<lolzie> swarley: umm, I'll have a little mess about, no need to spoon feed :)
<brainbox> ablankfield : now you have created object 'bmw', from class Car, or blueprint Car
daniel_-_ has quit [Quit: WeeChat 0.3.9]
<brainbox> ablankfield : or rather an instance of.
gabrielrotbart has joined #ruby
awarner has quit [Remote host closed the connection]
<ablankfield> I think I get it?
niklasb has quit [Read error: Operation timed out]
gabrielr_ has quit [Read error: Connection reset by peer]
<ablankfield> and from there you add some attr_accessors?
classix has joined #ruby
ralphvdh has quit [Ping timeout: 248 seconds]
adamjleonard has joined #ruby
Girls_Escort has joined #ruby
pureluck has joined #ruby
<ablankfield> as far as I know i haven't really gotten to a point where I do anything with the objects
Drewch has quit [Read error: Operation timed out]
<lolzie> Is there a way of modifying Array's []= but not for the whole program, just for from within that class?
<swarley> uh
samphippen has joined #ruby
<ablankfield> I do feel like I'm starting to understand some of this stuff
<swarley> you could do NewArray = Array.dup i suppose
<swarley> and then modify NewArray
<brainbox> ablankfield: well, since everything is an object that means you're always doing something either with or to objects
<heftig> er, class NewArray < Array
<heftig> what's this with dup?
LouisGB has quit [Ping timeout: 246 seconds]
<swarley> I dont know, i'm tired
<swarley> And this question seems weird
<heftig> too much javascript? :p
Axsuul has joined #ruby
<brainbox> ablankfield: just like syntax can... hinder understanding, so can terminology, so don't focus that much on it.... right now
<brainbox> ablankfield: it'll stick after a while
<waxjar> ablankfield, have you read anything on Ruby yet?
<swarley> honestly, you probably dont want to change Array#[]
<swarley> that's almost never what you want
<swarley> you probably want to change MyObject#[]
<ablankfield> I've watched all of thenewboston's tutorials on youtube and went through some of the ruby section on codeacademy and worked through try ruby on code school
ckrailo has quit [Quit: Computer has gone to sleep.]
<swarley> i would read Beginning Ruby by Peter Cooper, or something along those lines
pureluck has quit [Ping timeout: 256 seconds]
jumpingcloud has joined #ruby
<ablankfield> I'm mostly here asking questions because my mom never went to college, my twin is a physics/math major, and my dad is a business major and no one I know programs lol
<ablankfield> I might have that
chrishunt has quit [Quit: Leaving...]
<ablankfield> from novice to professional?
<swarley> yes
<waxjar> i started out with why's poignant guide to ruby. i don't think i followed it all but it's a great introduction: http://mislav.uniqpath.com/poignant-guide/book/
<ablankfield> lemme check my iphone, I'm pretty sure i have it on there
pureluck has joined #ruby
caleb_io has quit [Quit: Leaving...]
dpatel has quit [Quit: dpatel]
earthquake has quit [Remote host closed the connection]
<swarley> I think Beginning Ruby is better for people new to programming completely, why is a little better for those who can afford to be distracted by chunky bacon
<ablankfield> waxjar I was looking for that
<ablankfield> ealrier
earthquake has joined #ruby
jenrzzz has joined #ruby
Takehiro has joined #ruby
<ablankfield> I'm pretty positive I have that beginning ruby book
<brainbox> ablankfield: any particular reason you ended up with ruby as your first language?
<brainbox> ablankfield: or wasnt it the first you tried
<ablankfield> my phones being silly. I may have downloaded too many itunesU videos... looks like it deleted my ebooks
<ablankfield> honestly I have no clue why I stumbled upon it
<ablankfield> I think I was on codeacademy one day and happened to see it was a new course they were working on
<ablankfield> I liked the syntax and it seemed easy to read and follow what was happening
<brainbox> ablankfield: right... but what fields are you interested in
pureluck has quit [Ping timeout: 244 seconds]
bradhe has quit [Read error: Connection reset by peer]
love_color_text_ has quit [Remote host closed the connection]
pureluck has joined #ruby
<ablankfield> well, I've been a musician for most of my life and I'm tired of moving gear from stage to stage and I decided instead of thinking about what I wanted to do career wise, to think about how I want to spend my time
Takehiro has quit [Ping timeout: 246 seconds]
jeffreybaird has joined #ruby
<ablankfield> and the answer to that was making my own hours to a degree and not necessarily having to leave the house
<brainbox> ablankfield: heh, so you just decided programming? of all other things you could try...
samphippen has quit [Quit: Computer has gone to sleep.]
anachronistic has quit [Quit: anachronistic]
<brainbox> ablankfield: well since you're on irc you're probably bit of a techie or computer guy...
lukeholder has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
carlyle has joined #ruby
<ablankfield> well I already remodel kitchens bath rooms and houses. I've messed around with a bunch of linux OS's and learned pretty much anything that interested me since I was a kid. Now I just wanna get married, move south, buy a house and spend time sitting at home and have a dog
Vert has quit [Read error: Connection reset by peer]
<brainbox> nice...
<brainbox> sounds like a happy ending
<ablankfield> I also wanna make money though, so I can't really be an artist or writer. So web development or app development seems like a good choice
<ablankfield> I went through 4 years of college constantly switching majors and I think I've had around 30 jobs in my life. none of those things have happened from my house
<brainbox> i dunno, i think a handful of rock stars have made way more money than all programmers combined
bbttxu has joined #ruby
xpen has quit [Remote host closed the connection]
<brainbox> if you exclude perhaps a couple...
<ablankfield> true, but to a certain extent the money isn't worth the being away from friends and constantly on the move
<brainbox> plus now with spotify piratebay and all
<brainbox> people are hardly respectful of artists work anymore
Cultofmetatron has joined #ruby
<ablankfield> I usually disagree with people that discourage piracy because of "economic value" of peoples art
<ablankfield> or work or what have you
<Girls_Escort> Porn SEx Girls http://fredfilms.blogspot.com
Girls_Escort has left #ruby [#ruby]
<ablankfield> If people were sharing music I wrote I'd be happy about it
<waxjar> interesting..
<brainbox> hm
<ablankfield> musicians make very little money from records alone
<ablankfield> the money is in being on stage and ticket sales
<brainbox> well, i just think it extends to more than musicians, people just dont seem to value anything enough to pay for it anymore
<brainbox> unless it's an apple product
<brainbox> or a car
<mr-rich> Any savon gem users here?
<ablankfield> to an extent
<brainbox> if you made an album, you've put in hundreds or thousands of hours
<brainbox> and money
pureluck has quit [Ping timeout: 244 seconds]
<ablankfield> you program right?
<brainbox> recording studio, etc... or innstruments
<waxjar> music is an art form, not a business model :)
<ablankfield> how long does it take you to write a program?
<brainbox> if someone enjoys the result of that product
<brainbox> why wouldnt that be worth their money
<ablankfield> I can write and record a 3 minute song that sounds like the strokes or shins in 2 hours
rakl has quit [Quit: sleeping]
<ablankfield> most musicians don't put tons and tons of time in, and if they do then they're about as good of a musician as I am a programmer
chin-tastic has joined #ruby
<brainbox> ablankfield : i guess you're saying that time should be an important factor in whether your product is worth money or not?
<brainbox> ablankfield: and that if youve only spent a couple of days writing and recording the songs for your album, people dont need to pay for it
<waxjar> it's not really a product, unless we're talking mtv-style entertainment tunes
ryanlecompte has joined #ruby
<ablankfield> no no no, I'm saying if you like something some one made, show them support
<brainbox> anything packaged is a product
<ablankfield> the package is a product, the digital information is just that
<brainbox> ablankfield: but so many who, really do like an artist, never give anything back
seme has joined #ruby
<waxjar> that's not strictly true
<brainbox> ofcourse no one should pay for shit they don't like
<brainbox> but so many don't pay either way
<ablankfield> they do when the artist they like comes to town
<ablankfield> they see a great show, have a few drinks and then ask you to take their wallet lol
g-ram has quit [Quit: Computer has gone to sleep.]
ejholmes has quit [Quit: ejholmes]
<ablankfield> and to be honest, that $40-50 ticket that you buy to go see a show pays more than the sale of the actuall cd package
Araxia has quit [Quit: Araxia]
<brainbox> ablankfield: thats true, but how many people come to a show, if you add up the shows for 1 year and all the tickets sold combined
<brainbox> ablankfield: with your % of each cd sold and multiply that with the number of downloads in a year
<ablankfield> its the same as how walmart works, you go in for toothpaste and walk out with a 16 gig flash drive and a bluetooth mouse and forget about the toothpaste lol
<ablankfield> downloads
<ablankfield> downloads don't cost a musician anything
<ablankfield> its just a copy of a file that exists and is played on the radio or elsewhere
<waxjar> more importantly, it costs labels next to nothing
<brainbox> they don't cost you, but I'm saying that's the number of people who enjoy your music but don't pay for it, and you're not recouping that at shows
blazes816 has joined #ruby
<waxjar> who do rake in most of the profits
<waxjar> leaving the artists with a couple cents per download
<ablankfield> are you agreeing with me waxjar?
Tearan has quit [Quit: Sleepy Badger....]
<waxjar> mostly, yeah
apok has quit [Ping timeout: 248 seconds]
<ablankfield> right
zomgbie has quit [Ping timeout: 256 seconds]
<ablankfield> you make more money from letting people download your music
<ablankfield> for free
<ablankfield> and heres the reason why among many
<waxjar> ultimately yes. nobody's going to pay $10 upfront for some stuff they never heard before
<ablankfield> say you being a smart guy download a full album from demonoid or pirate bay
<brainbox> so what would be bigger number, 1) your percent of a cd sale times number of downloads or 2) your percentage of ticket sales
<brainbox> that's all i'm wondering
<brainbox> well, people have heard the music on radio, or through a friend perhaps
nyrb has quit [Remote host closed the connection]
<ablankfield> now you go to your friend thats not tech savy and tell them about that album... they'll end up buying the cd and tell they're friends
<waxjar> probably ticket sales brainbox, although labels started taking a cut of the touring profits as well in the last few years
Serial_Killer_C has joined #ruby
<ablankfield> cuz they're smarter tech savvy friend says its good and hes smart and knows what hes talking about so its good music
<waxjar> somewhat smaller bands used to get all of the profits from a tour
<brainbox> yeah, word of mouth is powerful, and sure, all those downloads, it is a lot of "free" marketing
jenrzzz has joined #ruby
djbpython has joined #ruby
<brainbox> i guess you could see the potential loss of downloads as more like a marketing expense
<ablankfield> another good example is the normal working world
aharris6 has joined #ruby
medik has quit [Quit: Leaving]
acrocity has joined #ruby
<ablankfield> if you posted an ad on craigslist for a job position that pays minimum wage, 7.25 here, you would get tons of people asking for an interview
jcaudle has quit [Quit: jcaudle]
<ablankfield> however, you post a job position that pays 25 an hour and has a few qualifications, maybe even 1 -2 qualifications... you get way less results
<ablankfield> people are lazy and competition is high where "nothing required" exists
<ablankfield> everyone has a mouth
<ablankfield> thats why american idol works
adamjleonard has quit [Quit: Leaving...]
<ablankfield> or did
<ablankfield> same as fiverr.com
<ablankfield> people line up to do silly things for 5 bucks
<ablankfield> the music biz is crowded
<brainbox> i didnt quite catch what the job listing example would be analoguos to...
baphled has quit [Ping timeout: 276 seconds]
<ablankfield> its not like the 70's where you would see venue banners that say "living legend" no one's really a legend today
<waxjar> the problem these labels have is that their "product" is no longer scarce, so they attempted all kinds of tricks to make it scarce (DRM), which obviously didn't quite work.
<ablankfield> music is easy
<ablankfield> or I should say, people think music is easy
<waxjar> personally i think they should just move on, change their business model or w/e
<brainbox> in most cases i think creating good music takes thousands of hours practice
<brainbox> just like any other skill
<ablankfield> this is true
<ablankfield> I spent a ton of time playing around
digitalcakestudi has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
JonnieCache has joined #ruby
<ablankfield> learning music programs
Skooljester has joined #ruby
<ablankfield> now I can pound out a couple songs a day
omry has quit [Read error: Operation timed out]
<whackatre> :P
<ablankfield> but so can my neighbor that wears tight jeans, and the kid with weird dark makeup on
<Skooljester> Hnh?
love_color_text_ has joined #ruby
love_color_text_ has joined #ruby
love_color_text_ has quit [Changing host]
<ablankfield> in a world where everyone is an artist, art ends up being a hobby for most
<brainbox> music programs? like software? so you dont play instruments?
blithen has joined #ruby
<ablankfield> lol, no I do
<ablankfield> I play piano, guitar, violin, drums, sax
slainer68 has joined #ruby
<ablankfield> if it makes sound I'll make music
cakehero has joined #ruby
<ablankfield> you gotta record it though
<ablankfield> thats the time consuming part
<blithen> evening everyone, just got a quick question, why isn't this working? system('grep #{date.rstrip} textpicks.txt')
ttt has joined #ruby
<waxjar> use double quotes blithen
<waxjar> single quotes don't do interpolation
<blithen> o_o Are you serious?
<blithen> well...crap
<waxjar> yep :)
<blithen> That was so simple I kind of want to die...
<ablankfield> Thats how I feel when I'm trying to figure things out
* waxjar walked into the same problem when starting out
baroquebobcat has joined #ruby
<brainbox> ablankfield: do you have high school level algebra skills?
digitalcakestudi has joined #ruby
<ablankfield> I was playing with something last night and after 20 minutes realized I spelled the method wrong
<blithen> xD Yep it works now...holy biscuits that's frustrating...
<ablankfield> brainbox: I believe so
Skooljester has quit [Client Quit]
<blithen> ablankfield I had a script that was writing some information to a text file and I ended up messing around with it, turns out I was opening the wrong file in nano...
<waxjar> ablankfield, do you have a link to your tunes?
nari_ has joined #ruby
<brainbox> ablankfield: on edx (google it) there's a course from mitx "introduction to computer science and programming" that's pretty good
<ablankfield> LOL
<ablankfield> I have 2 soundclouds I think
carlyle has quit [Remote host closed the connection]
<ablankfield> thats just random stuff though
<brainbox> ablankfield: it's free, it's a bit heavy on the math side but with high school level skills you should do fine
<ablankfield> not that its bad
<brainbox> ablankfield: they use python
<whackatre> edx?
<brainbox> ablankfield: but check out edx, coursera, udacity, khan academy
<brainbox> etc
<ablankfield> I was watching that one and stopped cuz I didn't wanna learn yet another language
brianpWins has joined #ruby
<whackatre> i was going to take the harvard cs one
<ablankfield> I've never heard of edx but I know of the rest
<whackatre> is it a good class?
slainer68 has quit [Ping timeout: 252 seconds]
recycle has quit [Remote host closed the connection]
<ablankfield> whats cs?
<ablankfield> counter strike?
ckrailo has joined #ruby
<blithen> Welp, I'm off guys, thanks a ton for the help. :)
<brainbox> edx is an online learning effort from mit, berkeley, harvard, and more
blithen has quit [Quit: Avoiding death]
<waxjar> computer science, i think
<heftig> computer science, duh
<ablankfield> oh lol
tiripamwe has joined #ruby
cbuxton has joined #ruby
<ablankfield> waxjar: that soundcloud link i made is all piano stuff and album instrumentals for a vintage rock project
<waxjar> damn dude, you know how to work a piano :P
aharris6 has quit [Remote host closed the connection]
<ablankfield> all of that piano stuff is stuff I wrote or just free styling
nitti has joined #ruby
cyong has joined #ruby
<ablankfield> I have another soundcloud with mostly electronic music I made
<ablankfield> stuff like daft punk and justice and skrillex kinad
<waxjar> ugh skrillex :P
<ablankfield> is that a good ughhh or bad ugh
<brainbox> i like some dubstep
<waxjar> bad. haha
<ablankfield> that one is the electronic stuff
blazes816 has quit [Quit: blazes816]
pothibo has quit [Quit: pothibo]
<brainbox> stuff like this
<ablankfield> most of the tracks on those sound clouds took anywhere from 2-6 hours, mostly single sittings
Dreamer3 has quit [Quit: Leaving...]
<waxjar> takes me days
<ablankfield> I rarely come back to projects
Dreamer3 has joined #ruby
tiripamwe has quit [Ping timeout: 248 seconds]
<ablankfield> idk why but I never do builds in the beginning of electronic stuff really
caleb_io has joined #ruby
shadoi has quit [Ping timeout: 268 seconds]
<waxjar> heres mine: https://soundcloud.com/jipjip it's not that good tho :p
<ablankfield> I don't listen to a lot of electronic but I have a bunch of dj friends that tell me what your supposed to do or something
nitti has quit [Ping timeout: 272 seconds]
<ablankfield> did you make that stuff waxjar?
<waxjar> yea
<ablankfield> I like it
<waxjar> thanks :)
<ablankfield> I mean for the 1st minute i've heard i like it
ffranz has quit [Quit: Leaving]
sicentendu has joined #ruby
phelps has left #ruby ["Linkinus - http://linkinus.com"]
<ablankfield> most peoples soundclouds I listen to generally have a bunch of random samples that arent anything complete
<ablankfield> its nice to listen to something that sounds like music
<waxjar> :P
ralphvdh has joined #ruby
<ablankfield> I have to say that after the puppylinux channel kinda died down it's nice to find a good replacement
<ablankfield> I have a hard time staying on topic so I love the chill channels
brainbox has quit [Remote host closed the connection]
<ablankfield> waxjar: did you make that twin sister one?
<waxjar> its a remix
<ablankfield> oh. do you smoke alot of weed? lol
joeycarmello has joined #ruby
<waxjar> haha, ocasionally
passbe has quit [Read error: Connection reset by peer]
<sicentendu> 42069
ryanlecompte has quit [Remote host closed the connection]
zomgbie has joined #ruby
<ablankfield> I go through phases of smoking for days on end then not smoking for a month or so
passbe has joined #ruby
passbe has quit [Changing host]
passbe has joined #ruby
caleb_io has quit [Quit: caleb_io]
Skooljester has joined #ruby
pipopopo has joined #ruby
<Skooljester> <3 interpolation
gridaphobe has quit [Ping timeout: 240 seconds]
ralphvdh has quit [Ping timeout: 244 seconds]
<ablankfield> waxjar: you might like that last link i posted
<ablankfield> thats my old band
lolzie has quit [Quit: Page closed]
Ruler_Of_Heaven_ has quit [Ping timeout: 265 seconds]
<waxjar> cool, i'll check it out
<ablankfield> I miss playing with them
chrishunt has joined #ruby
<swarley> oh boy.. now i get to deal with all of the crash reports as i try to get my C extension working
<ablankfield> nothing's real anymore is one of my favs. the quality is kinda shitty but if you can get past that
dylanjha has joined #ruby
dylanjha has quit [Client Quit]
ewokchewy has quit [Ping timeout: 244 seconds]
voodoofish430 has quit [Quit: Leaving.]
joeycarmello has quit [Ping timeout: 255 seconds]
pipopopo has quit [Read error: Operation timed out]
<Spooner> swarley : Segfaults are just cries for attention. You need to be stern and not bow to the pressure.
sicentendu has quit [Quit: sicentendu]
tiripamwe has joined #ruby
<ablankfield> be back in a bit maybe... gf's on the phoen
matti has joined #ruby
lecreme has quit [Quit: Leaving]
pureluck has joined #ruby
pipopopo has joined #ruby
wallerdev has quit [Quit: wallerdev]
zomgbie has quit [Ping timeout: 272 seconds]
tiripamwe has quit [Ping timeout: 245 seconds]
xpen has joined #ruby
g-ram has joined #ruby
Takehiro has joined #ruby
marcuspat has joined #ruby
passbe has quit [Quit: WeeChat 0.3.9]
cbuxton has left #ruby [#ruby]
freeayu has joined #ruby
ablankfield has quit [Quit: Leaving]
bradhe has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
Targen has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 246 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
seich- has quit [Ping timeout: 264 seconds]
und3f has quit [Quit: Leaving.]
passbe has joined #ruby
passbe has quit [Changing host]
passbe has joined #ruby
zastern has joined #ruby
<zastern> Anybody having good luck with xcode 4.5 + ruby-build yet?
mmitchell has quit [Remote host closed the connection]
thone_ has joined #ruby
seich- has joined #ruby
justsee has quit [Quit: Leaving...]
maskact has quit [Quit: Leaving.]
JonnieCache has quit [Ping timeout: 265 seconds]
locriani has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 240 seconds]
laurac has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
laurac has left #ruby [#ruby]
uris_ has joined #ruby
tiripamwe has joined #ruby
miso1337 has joined #ruby
itnomad has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
jhowarth has joined #ruby
Araxia has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
areil has joined #ruby
tiripamwe has quit [Ping timeout: 248 seconds]
airtanah_ has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chessguy has joined #ruby
Skooljester has left #ruby [#ruby]
Skooljester has joined #ruby
Skooljester has left #ruby [#ruby]
g-ram has joined #ruby
radic has joined #ruby
nyrb has joined #ruby
SegFaultAX is now known as zz_SegFaultAX
mkillebrew has quit [Ping timeout: 248 seconds]
mkillebrew has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
patrick99e99 has joined #ruby
radic_ has quit [Ping timeout: 246 seconds]
zz_SegFaultAX is now known as SegFaultAX
tiripamwe has joined #ruby
tiripamwe has quit [Ping timeout: 260 seconds]
robert__ has joined #ruby
robert_ has quit [Ping timeout: 240 seconds]
schronicles47 has quit [Ping timeout: 246 seconds]
rubious has quit [Quit: Leaving...]
nitti has joined #ruby
kzrl has quit [Ping timeout: 246 seconds]
kzrl has joined #ruby
chendo_ is now known as chendo
<aef> Hi there, can anyone here solve this RSpec and Ruby 1.9.3 related problem: http://stackoverflow.com/questions/13042298/including-namespace-module-through-rspec-config-in-
gabrielrotbart has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
swarley has quit [Ping timeout: 255 seconds]
gabrielrotbart has joined #ruby
nitti has quit [Ping timeout: 248 seconds]
SCommette has joined #ruby
perryh has quit [Excess Flood]
ralphvdh has joined #ruby
perryh has joined #ruby
brandonblack has joined #ruby
ralphvdh has quit [Ping timeout: 244 seconds]
adamjleonard has joined #ruby
shadoi has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
djbpython has quit [Ping timeout: 244 seconds]
adamjleonard has quit [Client Quit]
justsee has joined #ruby
zomgbie has joined #ruby
freezey has joined #ruby
ZubKonst has joined #ruby
Bosox20051 has joined #ruby
hbpoison has joined #ruby
megaman has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
zomgbie has quit [Ping timeout: 276 seconds]
Cultofmetatron has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
brandonblack has quit [Remote host closed the connection]
ZubKonst_ has quit [Ping timeout: 256 seconds]
recycle has joined #ruby
joeycarmello has joined #ruby
ryanlecompte has quit [Ping timeout: 240 seconds]
hbpoison has quit [Ping timeout: 240 seconds]
joofsh has joined #ruby
sent-hil has joined #ruby
Spooner has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
SCommette has quit [Quit: SCommette]
SCommette has joined #ruby
mahmoudimus has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
SCommette has quit [Client Quit]
kiyoura has quit [Quit: Leaving]
megaman has joined #ruby
SCommette has joined #ruby
marcuspat has quit [Quit: marcuspat]
mmitchell has joined #ruby
SCommette has quit [Client Quit]
nesterchung has joined #ruby
chin-tastic has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
SCommette has quit [Client Quit]
tiripamwe has joined #ruby
therod has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
locriani has joined #ruby
jarred_ has quit [Quit: jarred_]
tiripamwe has quit [Ping timeout: 240 seconds]
rakl has joined #ruby
vjt has quit [Ping timeout: 272 seconds]
reuf has quit [Quit: Leaving]
rkneufeld has quit [Quit: Computer has gone to sleep.]
quest88 has joined #ruby
Rix has joined #ruby
seme has quit [Quit: leaving]
<tos9> Erm. Does bundler not install dependencies of dependencies?
<tos9> I have cucumber in my Gemfile but apparently it wants capybara and that is not being installed?
SCommette has joined #ruby
rubious has joined #ruby
slainer68 has joined #ruby
horofox has quit [Quit: horofox]
teedex has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
nitti has joined #ruby
AlbireoX has quit [Remote host closed the connection]
g-ram has quit [Quit: Computer has gone to sleep.]
AlbireoX has joined #ruby
g-ram has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
brianpWins has quit [Quit: brianpWins]
ralphvdh has joined #ruby
sertaconay has joined #ruby
Dreamer3__ has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
Dreamer3__ is now known as Dreamer3
patrick99e99 has quit [Quit: Lost terminal]
ralphvdh has quit [Ping timeout: 244 seconds]
savage- has joined #ruby
maskact has joined #ruby
davidcelis has joined #ruby
xpen has quit [Remote host closed the connection]
sertaconay has quit [Ping timeout: 244 seconds]
SolarisBoy has quit [Ping timeout: 246 seconds]
xpen has joined #ruby
zomgbie has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
sent-hil has quit [Remote host closed the connection]
savage- has quit [Quit: savage-]
hbpoison has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
xpen_ has joined #ruby
baroquebobcat has joined #ruby
Takehiro has joined #ruby
airtanah_ has quit [Ping timeout: 276 seconds]
xpen has quit [Read error: Connection reset by peer]
alvaro_o_ has joined #ruby
helichopter has quit [Ping timeout: 244 seconds]
alvaro_o has quit [Ping timeout: 255 seconds]
akem has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 276 seconds]
akem has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
mahmoudimus has joined #ruby
joofsh has quit [Remote host closed the connection]
savage- has joined #ruby
perryh has quit [Excess Flood]
airtanah_ has joined #ruby
perryh has joined #ruby
Jonah11_ has quit [Quit: Leaving]
mahmoudi_ has joined #ruby
ryanf has joined #ruby
digitalcakestudi has quit [Quit: Leaving.]
mahmoudimus has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: Computer has gone to sleep.]
cakehero has quit [Quit: Computer has gone to sleep.]
sagax has quit [Ping timeout: 264 seconds]
e_dub has quit [Quit: Leaving]
SCommette has quit [Quit: SCommette]
Nisstyre has quit [Ping timeout: 256 seconds]
<davidcelis> roooooby
baroquebobcat has quit [Quit: baroquebobcat]
cakehero has joined #ruby
mikepack has joined #ruby
nemesit has joined #ruby
joeycarmello has quit [Remote host closed the connection]
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
rohit has joined #ruby
JonnieCache has joined #ruby
nemesit has quit [Quit: Leaving...]
baroquebobcat has joined #ruby
anderse has joined #ruby
v3m4 has joined #ruby
baroquebobcat has quit [Client Quit]
v3m4 has quit [Quit: Leaving]
erichmenge has quit [Quit: Be back later]
d2dchat has quit [Remote host closed the connection]
Nisstyre has joined #ruby
slainer68 has joined #ruby
akemEikko has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
akem has quit [Read error: Connection reset by peer]
quest88 has quit [Quit: quest88]
uris_ has quit [Quit: Leaving]
chessguy has quit [Remote host closed the connection]
sambio has quit []
recycle has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Vinz_ is now known as Vinz_`
akemEikko has quit [Read error: Connection reset by peer]
Karunamon has joined #ruby
akem has joined #ruby
jumpingcloud has quit [Ping timeout: 260 seconds]
jumpingcloud has joined #ruby
SCommette has joined #ruby
akem has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
akemEikko has joined #ruby
rburton- has joined #ruby
nemesit has joined #ruby
maletor has joined #ruby
ralphvdh has joined #ruby
Juul has joined #ruby
artnez has quit [Quit: artnez]
b26 has joined #ruby
`brendan has quit [Read error: Connection reset by peer]
b26 is now known as `brendan
akemEikko has quit [Max SendQ exceeded]
akemEikko has joined #ruby
billycraven has quit [Quit: Linkinus - http://linkinus.com]
akemEikko has quit [Max SendQ exceeded]
akemEikko has joined #ruby
ralphvdh has quit [Ping timeout: 244 seconds]
jumpingcloud has quit [Ping timeout: 272 seconds]
joeycarmello has joined #ruby
_axx has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mikepack has quit [Remote host closed the connection]
xnm has joined #ruby
flagg0204 has quit [Ping timeout: 260 seconds]
zomgbie has joined #ruby
_axx has joined #ruby
maletor has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
margle has joined #ruby
brianpWins has joined #ruby
cyong has left #ruby [#ruby]
zomgbie has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
joeycarmello has quit [Ping timeout: 240 seconds]
cyong has joined #ruby
zastern has quit [Remote host closed the connection]
allyraza has joined #ruby
rakunHo has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
flagg0204 has joined #ruby
AlbireoX has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
AlbireoX has quit [Read error: Connection reset by peer]
AlbireoX has joined #ruby
Takehiro has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
h4mz1d has joined #ruby
freezey has quit [Quit: freezey]
cyong has quit [Quit: Leaving.]
tonini has joined #ruby
zodiak has joined #ruby
yxhuvud has joined #ruby
artnez has joined #ruby
Takehiro has joined #ruby
kn330 has joined #ruby
anandhegde has joined #ruby
bms has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
anandhegde has quit [Client Quit]
anandhegde has joined #ruby
bms has left #ruby ["Leaving"]
Ben^^ has joined #ruby
joeycarmello has joined #ruby
answer_42 has joined #ruby
mahmoudimus has joined #ruby
answer_42 has quit [Client Quit]
xbayrockx has joined #ruby
answer_42 has joined #ruby
Cultofmetatron has joined #ruby
d2dchat has joined #ruby
anderse has quit [Quit: anderse]
k0nichiwa has joined #ruby
AlbireoX has quit [Remote host closed the connection]
slainer68 has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Ben^^ has quit [Changing host]
Ben^^ has joined #ruby
recycle has joined #ruby
elsifaka has joined #ruby
joeycarmello has quit [Ping timeout: 276 seconds]
arubin has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Ping timeout: 245 seconds]
nitti has joined #ruby
jgrevich_ has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
ralphvdh has joined #ruby
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
verto is now known as verto|off
mahmoudimus has quit [Quit: Computer has gone to sleep.]
anandhegde has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
banisterfiend has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
kn330 has quit [Ping timeout: 244 seconds]
BadProphet has quit [Quit: This computer has gone to sleep]
kn330 has joined #ruby
zomgbie has joined #ruby
tobym has joined #ruby
zomgbie has quit [Read error: Operation timed out]
jarred_ has joined #ruby
tagrudev has joined #ruby
arturaz_ has joined #ruby
rippa has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
answer_42 has quit [Quit: WeeChat 0.3.9]
aganov has joined #ruby
burgestrand has quit [Quit: Leaving.]
<shevy> I hate bundler
maesbn has joined #ruby
jgrevich_ has joined #ruby
itnomad has quit [Ping timeout: 246 seconds]
alanp has joined #ruby
k0nichiwa has quit [Ping timeout: 246 seconds]
alanp_ has quit [Ping timeout: 272 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
margle has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
jarred_ has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
sspiff has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
maskact has quit [Quit: Leaving.]
rohit has quit [Quit: Leaving]
baphled has joined #ruby
krz has joined #ruby
bradhe has quit [Remote host closed the connection]
Ben^^ has quit [Quit: Leaving]
smtlaissezfaire has joined #ruby
jprovazn_away is now known as jprovazn
slainer68 has joined #ruby
wallerdev has quit [Quit: wallerdev]
arturaz_ has quit [Remote host closed the connection]
kn330 has quit [Ping timeout: 245 seconds]
nitti has joined #ruby
slainer68 has quit [Ping timeout: 244 seconds]
nemesit|osx has joined #ruby
fantazo has joined #ruby
namidark has quit [Ping timeout: 244 seconds]
kn330 has joined #ruby
namidark has joined #ruby
nemesit has quit [Ping timeout: 244 seconds]
baphled has quit [Ping timeout: 264 seconds]
Araxia has quit [Quit: Araxia]
khakimov has quit [Quit: Computer has gone to sleep.]
nitti has quit [Ping timeout: 244 seconds]
jimeh2 has joined #ruby
<RubyPanther> rb_funcall(bundler_klass, rb_intern("require"), 1, rb_intern("shevy") );
khakimov has joined #ruby
timonv has quit [Remote host closed the connection]
ctwiz has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<shevy> oh god if bundler has C bindings, things will only get worse
<shevy> they should really build a linux distribution with it
savage- has quit [Quit: savage-]
chendo has quit [Ping timeout: 245 seconds]
jimeh2 has quit [Ping timeout: 268 seconds]
blacktulip has joined #ruby
chendo_ has joined #ruby
dr_bob has joined #ruby
mahmoudimus has joined #ruby
pskosinski has joined #ruby
elico has joined #ruby
advorak has joined #ruby
chendo_ has quit [Ping timeout: 245 seconds]
blacktul_ has joined #ruby
hoelzro|away is now known as hoelzro
chendo_ has joined #ruby
blacktulip has quit [Ping timeout: 260 seconds]
xnm has quit [Read error: Connection reset by peer]
dekroning has joined #ruby
therod has quit [Read error: Connection reset by peer]
yxhuvud has quit [Ping timeout: 256 seconds]
JohnBat26 has joined #ruby
Morkel has joined #ruby
therod has joined #ruby
bradhe has joined #ruby
<shevy> ruby is so strange
mahmoudi_ has joined #ruby
<shevy> I am now abusing array constants as data structures
<shevy> it looks better than using globals
<shevy> :\
justsee has quit [Quit: Leaving...]
maesbn has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
mahmoudimus has quit [Ping timeout: 255 seconds]
jord has quit [Read error: Operation timed out]
jord has joined #ruby
cezar has joined #ruby
maesbn has joined #ruby
cezar has quit [Client Quit]
m_3 has quit [Ping timeout: 252 seconds]
<shevy> what is mvm?
ctwiz has quit [Ping timeout: 255 seconds]
ctwiz_ has joined #ruby
jamesaxl has quit [Ping timeout: 265 seconds]
<heftig> shevy: multivm, probably
<heftig> as in, multiple ruby VMs in a single process
Spami has quit [Read error: Connection reset by peer]
<shevy> hmm that sounds cool
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
m_3 has joined #ruby
jamesaxl has joined #ruby
xorigin has joined #ruby
savage- has joined #ruby
nlpplz has quit [Read error: Operation timed out]
teedex has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 244 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
savage- has quit [Client Quit]
<heftig> shevy: basically share-nothing multiprocessing
zigomir has joined #ruby
hamed_r has joined #ruby
nlpplz has joined #ruby
Erfankam has joined #ruby
kil0byte_ has joined #ruby
k0nichiwa has joined #ruby
SegFaultAX is now known as zz_SegFaultAX
workmad3 has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
jarred_ has quit [Ping timeout: 244 seconds]
zomgbie has joined #ruby
manizzle has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
bbttxu_ has joined #ruby
luckyruby has joined #ruby
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
_cheney has quit [Quit: Nettalk6 - www.ntalk.de]
sagax has joined #ruby
bbttxu has quit [Ping timeout: 240 seconds]
bbttxu_ is now known as bbttxu
flori has quit [Quit: leaving]
zz_SegFaultAX is now known as SegFaultAX
_cheney has joined #ruby
kaneda__ has quit [Ping timeout: 264 seconds]
kaneda__ has joined #ruby
aces23up is now known as aces1up
workmad3 has quit [Ping timeout: 248 seconds]
answer_42 has joined #ruby
smtlaissezfaire has quit [Remote host closed the connection]
bluOxigen has joined #ruby
sertaconay has joined #ruby
flype has joined #ruby
sepp2k has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
nitti has joined #ruby
manizzle has joined #ruby
margle has joined #ruby
kaneda__ has quit [Ping timeout: 255 seconds]
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
aisbaa has joined #ruby
therod has quit [Read error: Connection reset by peer]
sertaconay has quit [Ping timeout: 244 seconds]
nitti has quit [Ping timeout: 244 seconds]
kaneda__ has joined #ruby
matrixise has joined #ruby
SegFaultAX is now known as zz_SegFaultAX
KevinSjoberg has joined #ruby
<mtfk> hi, it is possible to set body in Net::HTTPResponse by just response.body = "<h1>body</h1>" ?
<mtfk> beause it sometimes it does not work and when I call response.body I've got nil
whackatre is now known as Mew
Mew is now known as `Mew_
Elhu has joined #ruby
eldariof has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
shtirlic has joined #ruby
zomgbie has quit [Ping timeout: 260 seconds]
darth has joined #ruby
elaptics`away is now known as elaptics
saschagehlich has joined #ruby
darth is now known as Guest31771
ralphvdh has quit [Ping timeout: 260 seconds]
jimeh2 has joined #ruby
charliesome has joined #ruby
tvw has quit [Remote host closed the connection]
anderse has joined #ruby
irleif has joined #ruby
fantazo has quit [Remote host closed the connection]
<shevy> hmm guys
<shevy> is it possible to do either
<shevy> foo # call method foo
answer_42 has quit [Ping timeout: 265 seconds]
<shevy> foo.some_method() # here, call a method on object foo, rather than the foo() method
<shevy> both ways would have to work for my use case
<shevy> my current opinion is that this is not possible. but is that true?
morf has joined #ruby
<hoelzro> shevy: I'm not sure what you mean
<hoelzro> do either?
irleif has quit [Client Quit]
saschagehlich_ has joined #ruby
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich_ is now known as saschagehlich
miso1337 has quit [Ping timeout: 248 seconds]
slainer68 has joined #ruby
miso1337 has joined #ruby
zomgbie has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
chendo_ has quit [Read error: Operation timed out]
chendo_ has joined #ruby
hamed_r has quit [Ping timeout: 244 seconds]
noxoc has joined #ruby
Iszak has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
skum has joined #ruby
<shevy> well yeah I wanna be able to do this:
<shevy> foo 'pass some', 'arguments here'
<shevy> but also
<shevy> foo.set_default_for_first_argument 'bla'
<shevy> foo # here we call method foo() with this new default called 'bla'
und3f has joined #ruby
advorak has quit [Quit: Leaving]
coffer has joined #ruby
timonv has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jimeh2 has quit [Quit: bye]
Juul has quit [Ping timeout: 276 seconds]
zz_chrismcg is now known as chrismcg
robotmay has joined #ruby
awestroke has joined #ruby
Axsuul has quit [Ping timeout: 244 seconds]
marius has quit []
miso1337_ has joined #ruby
jimeh has joined #ruby
fixl has joined #ruby
ephemerian has joined #ruby
Xeago has joined #ruby
miso1337 has quit [Ping timeout: 244 seconds]
miso1337_ is now known as miso1337
irleif has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
xpen_ has quit [Remote host closed the connection]
irleif has quit [Client Quit]
anderse has quit [Quit: anderse]
xpen has joined #ruby
anderse has joined #ruby
timmow has joined #ruby
kil0byte has joined #ruby
xorgnak has joined #ruby
hotovson_ has joined #ruby
yeggeps has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 252 seconds]
yeggeps has joined #ruby
kil0byte_ has quit [Ping timeout: 248 seconds]
d3vic3 has joined #ruby
nari_ has quit [Quit: Ex-Chat]
Guest31771 is now known as darthdeus
kil0byte_ has joined #ruby
nari_ has joined #ruby
<clocKwize1> shevy, isn't that like currying?
baphled has joined #ruby
<JonnieCache> that is just currying isnt it?
<clocKwize1> i guess :p
zommi has joined #ruby
artnez has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 256 seconds]
<clocKwize1> its not that easy in ruby
<clocKwize1> as methods aren't first class
workmad3 has joined #ruby
<clocKwize1> though you can do it roughly with #method
xorgnak has quit [Remote host closed the connection]
<clocKwize1> and call through that
<clocKwize1> maybe
saschagehlich has quit [Quit: saschagehlich]
<clocKwize1> would be nice if we could pass methods around and call them from anywhere in ruby and return new methods.. so you could do x = default_first_param(&obj.method, "abc") x(123) would call obj.method("abc", 123)
<JonnieCache> how about obj.curry(:method, "abc")
_alfalfa has joined #ruby
<JonnieCache> that would be easy
<clocKwize1> yeah
<clocKwize1> that would in effect modify a class instance in place
<clocKwize1> which would mean any call to obj.method would be curried
k0nichiwa is now known as Guest65288
<JonnieCache> i was thinking it would just return a proc
ctevie has joined #ruby
<clocKwize1> ok :)
fir_ed has joined #ruby
<clocKwize1> then yeah, that would be nice :)
_alfalfa is now known as k0nichiwa
<JonnieCache> or it could just make a new method on obj
<JonnieCache> with some derived name
xpen has quit [Read error: Connection timed out]
<JonnieCache> that would kind of such though
Guest65288 has quit [Ping timeout: 264 seconds]
ltsstar has joined #ruby
<clocKwize1> you could implement that now i guess
xpen has joined #ruby
deadSnowman has left #ruby [#ruby]
<JonnieCache> apparently currying is built into 1.9 http://pragdave.blogs.pragprog.com/pragdave/2008/09/fun-with-procs.html
<clocKwize1> oh
* clocKwize1 reads
withnale has quit [Excess Flood]
kramutils has joined #ruby
krz has quit [Quit: krz]
withnale has joined #ruby
<clocKwize1> kind of cool, would be nice if you could do it with methods and not procs though
<clocKwize1> with normal syntax
thillux_ has quit [Remote host closed the connection]
xorgnak has joined #ruby
codefyre has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
samphippen has joined #ruby
Juul has joined #ruby
kjellski has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
<clocKwize1> awwwww
<clocKwize1> scrum master just said something real nice to me
xorgnak has joined #ruby
k0nichiwa has quit [Ping timeout: 245 seconds]
<clocKwize1> He was like thanks for all your work, this project is going so well and we've got all this stuff done and its mostly because of you, so thank you
Takehiro has quit [Remote host closed the connection]
rakunHo has quit [Remote host closed the connection]
lukeholder has quit [Quit: Computer has gone to sleep.]
xorgnak has quit [Remote host closed the connection]
ctwiz_ has quit [Quit: ctwiz_]
anderse has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
xpen_ has joined #ruby
emergion has joined #ruby
xorgnak has joined #ruby
<JonnieCache> ask for more money
xpen_ has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 246 seconds]
rabidpraxis has joined #ruby
xpen_ has joined #ruby
xpen has quit [Ping timeout: 244 seconds]
<clocKwize1> JonnieCache, I did before I started the contract, If they want me for another project (which they've already hinted at) then I'll ask again, now they know I'm awesome.
bier has quit [Ping timeout: 252 seconds]
<clocKwize1> omg, I just noticed your name is like Jonnie Cash, but its Jonnie Cache. Thats awesome.
krz has joined #ruby
BrianJ has joined #ruby
_bart has joined #ruby
coffer has quit [Remote host closed the connection]
ctwiz has joined #ruby
codefyre has quit [Ping timeout: 245 seconds]
knite has quit [Quit: knite]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
xpen has joined #ruby
tonini has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
coffer has joined #ruby
darthdeus has quit [Quit: Leaving...]
daniel_- has joined #ruby
shtirlic has quit [Remote host closed the connection]
reinaldob has joined #ruby
xpen_ has quit [Ping timeout: 244 seconds]
Juul has quit [Ping timeout: 265 seconds]
lupine_85 has quit [Changing host]
lupine_85 has joined #ruby
mucker_ has joined #ruby
xpen has quit [Remote host closed the connection]
bier has joined #ruby
clocKwize1 has quit [Quit: Leaving]
Zai has joined #ruby
Zai has quit [Client Quit]
emergion has joined #ruby
Zai has joined #ruby
emergion has quit [Client Quit]
saschagehlich has joined #ruby
bradhe has quit [Remote host closed the connection]
Zai has left #ruby [#ruby]
samphippen has quit [Quit: Computer has gone to sleep.]
Zai has joined #ruby
saschagehlich has quit [Read error: Connection reset by peer]
Zai has left #ruby [#ruby]
Zai00 has joined #ruby
darthdeus has joined #ruby
brtdv has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
brtdv has joined #ruby
jamesaxl has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
matrixise has quit [Remote host closed the connection]
clocKwize has joined #ruby
<clocKwize> hell, yeah. I'm using freenode SSL
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nari_ has quit [Quit: Ex-Chat]
nitti has joined #ruby
heftig has quit [Quit: leaving]
Juul has joined #ruby
nari has joined #ruby
jenrzzz has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
brtdv has quit [Ping timeout: 260 seconds]
matrixise has joined #ruby
LouisGB has joined #ruby
answer_42 has joined #ruby
dhruvasagar has joined #ruby
darthdeus has quit [Quit: Leaving...]
vlad_starkov has quit [Remote host closed the connection]
brtdv has joined #ruby
banisterfiend has joined #ruby
<banisterfiend> clocKwize: ping
lkba has joined #ruby
<clocKwize> banisterfiend: pong
<banisterfiend> clocKwize: if you want to grab the binding of the caller method you could also consider using Proc#binding
amacgregor_osx has quit [Remote host closed the connection]
<banisterfiend> clocKwize: def hello(&block); block.binding.eval("x"); end x = 10; hello { } #=> 10
<clocKwize> ah, interesting :)
hbpoison has quit [Ping timeout: 252 seconds]
<clocKwize> that'd be one way, though having to specify a block for no use would be annoying
<clocKwize> though it'd work
<clocKwize> which is better than where we got yesterday :P
maletor has quit [Quit: Computer has gone to sleep.]
<banisterfiend> clocKwize: yeah, it's only natural if the method natively takes a block
hbpoison has joined #ruby
<banisterfiend> clocKwize: binding.of_caller(1) isn't that bad, it's fairly robust these days
<clocKwize> it even says on the docs not to use in production
<clocKwize> :p that kind of scared me off
<banisterfiend> clocKwize: i use it pry-stack_explorer and i dont get that many complains :)
<clocKwize> and its VM specific
<banisterfiend> clocKwize: you wanted to use it in an actual production application?
<clocKwize> yeah
<banisterfiend> clocKwize: well it works in MRI and rbx, i cant get it working in jruby yet though
<clocKwize> yeah
<clocKwize> I've never used anything other than MRI
<banisterfiend> clocKwize: what information do you want from the caller binding anyway?
<clocKwize> in production app anyway
<clocKwize> to pull local varaibles
tvw has joined #ruby
<banisterfiend> clocKwize: i've done a lot of programming with binding_of_caller, i can tell you it makes life hell
<clocKwize> heh
<banisterfiend> not because it's unstable, but because of the weird couplings it creates
<banisterfiend> it makes it very hard to refactor things, cos when you use it, it's very easy to start relying on the caller method being X
<banisterfiend> and you can't then refactor X to Y
<clocKwize> it was just for syntactic sugar on what I already had, not core to fixing the problem
<banisterfiend> without breaking your expectations and your code
<clocKwize> basically instead of Formulae.new "x * y", x: x, y: y
<clocKwize> I wanted: Formuae.new "x * y"
<clocKwize> and it get those from the calling scope
nari has quit [Ping timeout: 260 seconds]
<clocKwize> which I could do with Formulae.new { "x * y" }
<clocKwize> the caller is telling the callee what the variables to look at are called, so it has no coupling
beit has joined #ruby
<banisterfiend> clocKwize: why not use this
dekroning has quit [Ping timeout: 260 seconds]
<banisterfiend> clocKwize: Formulae.new ->(x, y) { x * y }
<clocKwize> because that looks nasty
<banisterfiend> i disagree
<banisterfiend> i think it looks nice
<clocKwize> and only works in 1.9
<banisterfiend> evaluating strings like this "x * y" is nasty
<clocKwize> you specify x and y twice
zomgbie has quit [Ping timeout: 246 seconds]
<clocKwize> banisterfiend, but the whole point is the Formulae class tracks the formulae used, so it can be later displayed (including formulae it used, e.g. if x was a formulae) in a list
<banisterfiend> clocKwize: you're just evaluating the string right?
<clocKwize> no
x0F_ has joined #ruby
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
<clocKwize> which is mine too
<banisterfiend> clocKwize: but, if you're actually getting x and y from the caller binding (like you intend to), then you could just eval it, right?
<clocKwize> yes but then I don't have the AST from which to build nice formatted HTML of the expression
<banisterfiend> clocKwize: you could just run it through ruby_parser
<banisterfiend> up2u though
<clocKwize> if I pass x * y, i get the result, when I want to display <abbr title="x">144</abbr> <span>*</span> <abbr title="y">512</abbr> etc
daniel_- has quit [Ping timeout: 240 seconds]
<clocKwize> using ruby_parser would still mean using a string right
berserkr has joined #ruby
chessguy has joined #ruby
margle has quit [Ping timeout: 256 seconds]
<banisterfiend> clocKwize: Yeah
Virunga has joined #ruby
<clocKwize> I know how math_engine works and I can extend it, and its build specifically for math, not for the whole ruby language
<banisterfiend> cool
cdt has joined #ruby
<clocKwize> I like your idea with the proc binding
<clocKwize> will mean Formulae.new { "x * y" } works
<clocKwize> which is nice
<clocKwize> (as nice as possible)
<banisterfiend> clocKwize: after a few more months/years of ruby programming, you will start to wince when you see magic like that ;)
<banisterfiend> i used to do even crazier stuff than that, but now it kind of disturbs me
<JonnieCache> it is fun though
<banisterfiend> i dont find it pretty anymore, either
<JonnieCache> metaprogramming is like recreational drugs you have to have self control
<banisterfiend> hehe
<JonnieCache> and listen to your friends when they tell you that youve gone too far :)
<clocKwize> I do, but I'd rather a bit of encapsulated magic than the alternative, which for this is exposing lots of different values throughout my domain so the UI can display how it calculated a value, and then updating the html and the forumla when they change
jenrzzz has quit [Ping timeout: 264 seconds]
<banisterfiend> clocKwize: do u have one Binding where they do all their math?
<banisterfiend> clocKwize: it sounds like you're doing a kind of 'live document' system?
<banisterfiend> in which case u can just store that binding in a global or thread local
<clocKwize> no, I'm building something to pass this
hamed_r has joined #ruby
<clocKwize> bearing in mind all these separate formulae are just return values of random classes through out my domain
<clocKwize> classes/methods
<clocKwize> the comment is what I want to be able to access to build back up how the value was achieved
<clocKwize> and display it
<clocKwize> just by looking at the f object
<banisterfiend> clocKwize: wy not just create a scratch binding for math
<banisterfiend> Scratch = binding
<banisterfiend> clocKwize: Scratch.eval("days = 320")
<banisterfiend> Scratch.eval("x = 30")
<banisterfiend> Formulae.new "days / 360.0"
<banisterfiend> bbl
<clocKwize> globals? :i
chessguy has quit [Remote host closed the connection]
<clocKwize> cya :)
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
tchebb has quit [Ping timeout: 244 seconds]
kil0byte has joined #ruby
maesbn_ has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
<shevy> currying?
<clocKwize> wow, this channel is LAGGY
darthdeus has joined #ruby
ABK has joined #ruby
<clocKwize> first convosation about something that happened like 18 hours ago, second about something that happened 2 hours ago :p
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
kil0byte_ has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
<shevy> clocKwize haha man
<shevy> I idle to power here
maesbn has quit [Ping timeout: 276 seconds]
<shevy> "re-discovered by Haskell Curry"
<shevy> omg
<shevy> haskell is a real life name too???
<shevy> MAN
<shevy> I did not know that!!!
<clocKwize> basically given M(a, b) -> B = curry(M, 7) -> B(x) == M(7, x)
<shevy> I am gonna call my next programming language "John"
<shevy> yeah
<shevy> I could need that for what I want in ruby
<shevy> def foo
<shevy> end
<shevy> foo 'call the method'
<shevy> foo.call_a_method_on_an_object
<shevy> or...
<shevy> foo.set_default_argument 'bla bla bla'
<shevy> foo.call_a_method_on_an_object # call default argument like so
<shevy> using (:method) is unfortunately ugly :(
<clocKwize> yeah, I saw your message earlier - thats the idea behind currying, except you express it differently
<shevy> hmm
samphippen has joined #ruby
<clocKwize> you can't pass methods around in ruby (very easily) so its not an ideal place to do it
bradhe has quit [Ping timeout: 276 seconds]
<shevy> :(
<clocKwize> you can pass around a proc that calls a method on a class with a default argument
<clocKwize> then stuff can call that
Zai00 has quit [Quit: Zai00]
<shevy> hmmmm
<shevy> it's a little bit over my head right now
<clocKwize> its not something I've really used in ruby
maz-dev has quit [Quit: Leaving]
<shevy> my brain only works when things are so simple that even a 2 years old can understand it
<clocKwize> or in any language really. I just know it exists. One day I'll realise I need it :)
rumba has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
kil0byte_ has joined #ruby
<rumba> hi. the page at http://savonrb.com/ says to use this syntax: "response = client.request :wsdl, "GetPDF", id: 1" to perform a soap request to get the element with id=1, but ruby complains about the syntax saying "syntax error, unexpected tSYMBEG, expecting kDO or '{' or '('"
casheew has quit [Read error: Connection reset by peer]
jgrevich has quit [Quit: jgrevich]
<rumba> is there something i'm missing? is that kind of syntax correct?
casheew has joined #ruby
hotovson_ has quit [Remote host closed the connection]
<clocKwize> rumba, thats ruby 1.9 hash syntax
<clocKwize> if you are using ruby 1.8
<clocKwize> you should do: client.request :wsdl, "GetPDF", :id => 1
<clocKwize> and then quickly update to ruby 1.9 if you know whats good for you
<rumba> okay, fixed it, thanks!
casheew has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
dekroning has joined #ruby
ctwiz has quit [Quit: ctwiz]
samphippen has quit [Quit: Computer has gone to sleep.]
deadSnowman has joined #ruby
casheew has joined #ruby
tchebb has joined #ruby
nesterchung has quit [Ping timeout: 240 seconds]
h4mz1d has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
evilgeenius has joined #ruby
AlbireoX has joined #ruby
vlad_sta_ has joined #ruby
eldariof-office has joined #ruby
kn330 has quit [Ping timeout: 244 seconds]
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
Takehiro has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
AlbireoX has quit [Ping timeout: 244 seconds]
djbpython has joined #ruby
eldariof has quit [Ping timeout: 240 seconds]
hotovson has joined #ruby
reuf has joined #ruby
dmerrick has quit [Quit: dmerrick]
Progster has joined #ruby
<aef> Hi there, can anyone here solve this RSpec and Ruby 1.9.3 related problem: http://stackoverflow.com/questions/13042298/including-namespace-module-through-rspec-config-in-
<workmad3> aef: that's not a 'problem'
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<workmad3> aef: it's to do with how constant lookup works in ruby, which uses a lexical scope
Takehiro has joined #ruby
<workmad3> aef: which basically translates to 'including a module doesn't mean you get to access constants like that'
pothibo has joined #ruby
daniel_- has joined #ruby
Progster has quit [Ping timeout: 255 seconds]
KevinSjoberg has joined #ruby
margle has joined #ruby
<aef> workmad3: first of all. it worked in Ruby 1.9.2. Now it doesn't. Second: this works in 1.9.2 and 1.9.3: http://pastie.org/5108390
<aef> workmad3: in my opinion, this is exactly how it should work in Ruby, and always did. There is just a regression in RSpec's magic in correllation to Ruby 1.9.3. And I need a way around it.
protolif has joined #ruby
moshee has quit [Ping timeout: 272 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<protolif> ohai
ando has joined #ruby
<protolif> is anybody here good at making gems?
matrixise has quit [Ping timeout: 260 seconds]
hamed_r has quit [Ping timeout: 252 seconds]
daniel_- has quit [Read error: Operation timed out]
larissa has joined #ruby
protolif has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
ando has quit [Ping timeout: 244 seconds]
niklasb has joined #ruby
_bart has quit [Quit: _bart]
kil0byte_ has joined #ruby
samphippen has joined #ruby
kil0byte has quit [Ping timeout: 272 seconds]
samphippen has quit [Client Quit]
ltsstar has quit [Ping timeout: 248 seconds]
Spami has quit [Quit: This computer has gone to sleep]
heftig has joined #ruby
chichou has joined #ruby
_axx has quit [Ping timeout: 252 seconds]
elliot_ has joined #ruby
elliot_ is now known as elliot98
elliot98 has quit [Changing host]
elliot98 has joined #ruby
* elliot98 enters
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Mon_Ouie has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
hekin has joined #ruby
Takehiro has joined #ruby
<elliot98> how does read lines from a file using a block?
<elliot98> something like: File.open("file").readline { |line| puts lines }
eldariof-office has quit [Ping timeout: 244 seconds]
<hoelzro> elliot98: IO#each_line
postmodern has quit [Quit: Leaving]
<elliot98> how about foreach?
BSaboia has joined #ruby
samphippen has joined #ruby
<hoelzro> I haven't tried it; ri seems to indicate that would work
_axx has joined #ruby
irleif has joined #ruby
LiquidInsect has joined #ruby
kaawee has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
hekin has quit [Ping timeout: 256 seconds]
hekin has joined #ruby
havenn has joined #ruby
nitti has joined #ruby
rkneufeld has joined #ruby
BrianJ has quit [Quit: BrianJ]
vlad_sta_ has quit [Remote host closed the connection]
hamed_r has joined #ruby
robertotauille has joined #ruby
baphled has quit [Ping timeout: 248 seconds]
daniel_- has joined #ruby
zommi has left #ruby [#ruby]
luckyruby has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 240 seconds]
nitti has quit [Ping timeout: 244 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
rabidpraxis has quit [Remote host closed the connection]
hekin has quit [Quit: hekin]
samphippen has joined #ruby
samphippen has quit [Client Quit]
Nisstyre has quit [Ping timeout: 246 seconds]
eph3meral has quit [Quit: eph3meral]
jrist-afk is now known as jrist
kaawee has joined #ruby
rabidpraxis has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
peter1 is now known as ph^
ph^ is now known as ph^^
mark_locklear has joined #ruby
rabidpraxis has quit [Ping timeout: 260 seconds]
rkneufeld has quit [Quit: Computer has gone to sleep.]
erichmenge has joined #ruby
djbpython has quit [Ping timeout: 268 seconds]
evilgeenius has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
Nisstyre has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
havenn has quit [Remote host closed the connection]
dangerousdave has joined #ruby
Erfankam has quit [Quit: Leaving.]
dw has joined #ruby
stuffmc has joined #ruby
pothibo has quit [Quit: pothibo]
geekbri has joined #ruby
<dw> hey, i'm trying to install a bundle that requires rbx-require-relative=0.5 via less-rails-bootstrap on ruby 1.9.3, but =0.5 requires ruby ~> 1.8.7. i tried installing =0.9 which supports newer ruby, but it's still copmlaining
<dw> is there some way to ignore a dependency, or somesuch
justsee has quit [Ping timeout: 244 seconds]
erichmenge has quit [Quit: Be back later]
luckyruby has joined #ruby
Araxia has joined #ruby
<Xeago> dw: edit the gemfile
daniel_- has quit [Read error: Operation timed out]
<tos9> Does bundler not install dependencies' dependencies? I put gem "cucumber" in my Gemfile but now I get complaints about missing capybara.
hbpoison has joined #ruby
paolooo has joined #ruby
<Xeago> it does, did you run bundle install?
<tos9> Yes.
<tos9> It says "The Gemfile's dependencies are satisfied" with bundle check and bundle install exits successfully.
daniel_- has joined #ruby
tiripamwe has joined #ruby
tiripamwe has quit [Client Quit]
tiripamwe has joined #ruby
<tos9> FWIW full gemfile is http://bpaste.net/show/53238/ (where I added capybara to get it to shut up and now it does run successfully)
Vert has joined #ruby
<dw> ok, seems it's not due to less-rails-bootstrap. can i print the dependency tree somehow?
<Xeago> there's a graphing thingy with bundler
kil0byte has joined #ruby
tommyvyo has joined #ruby
<Xeago> have no experience with it but there's documentation on bundler.org
<dw> thanks
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
Cork has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
drago757 has joined #ruby
tommyvyo has quit [Client Quit]
robotmay has quit [Remote host closed the connection]
kzrl has quit [Ping timeout: 240 seconds]
kil0byt__ has joined #ruby
kil0byte_ has quit [Ping timeout: 248 seconds]
<workmad3> dw: capybara isn't a dependency of cucumber
<workmad3> sorry, tos9
kzrl has joined #ruby
<shevy> BUNDLE!
<shevy> BUNDLE THE WORLD!
tiripamwe has quit [Ping timeout: 248 seconds]
<tos9> workmad3: I noticed that :P I was assuming that it was a dep of cucumber-sinatra instead
freeayu__ has joined #ruby
iamjarvo has joined #ruby
seanyo has joined #ruby
<workmad3> dw: add 'gem "rbx-require-relative", "0.9"' to your Gemfile and try to re-run 'bundle install'
kil0byte has quit [Ping timeout: 252 seconds]
<workmad3> dw: that should tell you the gem(s) that have locked to 0.5 ;)
<tos9> (I have both, but obviously I couldn't run cucumber until I added cucumber too so I'm just noticing the failure)
<JonnieCache> the graphviz thing in bundler is awesome
<workmad3> tos9: it tends to be a good idea that if you're actively using a gem then you should add it to your Gemfile explicitly ;)
freeayu has quit [Ping timeout: 245 seconds]
<workmad3> tos9: rather than relying on transitive dependencies
<tos9> workmad3: I'm not, which is why I don't :)
<tos9> i.e. I'm not using capybara
<workmad3> tos9: hmm... ok then
Cool_Fire has quit [Quit: Something something I'm gone.]
<dw> workmad3: lol, nice hack
jeffreybaird has joined #ruby
<workmad3> dw: it's not so much a hack as forcing an inconsistent dependency graph... ok, maybe it's a hack :)
kaawee has quit [Ping timeout: 245 seconds]
<workmad3> tos9: could be that some pre-supplied steps are built around capybara
rkneufeld has joined #ruby
<workmad3> dw: once you've figured out which gem(s) are the issue, then do a 'bundle update <gem> <gem> ... rbx-require-relative'
<dw> <3
<tos9> workmad3: Yeah, I understand that I guess, I was coming more from what you said, that I don't want to see it if it isn't my direct dep.
<workmad3> dw: which will unlock just the specified gems (and their dependencies) for updates
<workmad3> tos9: well, if it's some pregenerated steps then it kind of *is* a direct dependency
im0b has quit [Remote host closed the connection]
dreamfall has quit [Remote host closed the connection]
SeanTAllen has quit [Remote host closed the connection]
patricksroberts has quit [Read error: Connection reset by peer]
rcsheets has quit [Remote host closed the connection]
notbrent has quit [Read error: Connection reset by peer]
octarine has quit [Remote host closed the connection]
arubin- has quit [Read error: Connection reset by peer]
Guest38 has quit [Read error: Connection reset by peer]
moeSeth has quit [Read error: Connection reset by peer]
lectrick has quit [Remote host closed the connection]
sr___ has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
fcoury has quit [Remote host closed the connection]
randym has quit [Write error: Connection reset by peer]
davidboy has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
shiroginne has quit [Read error: Connection reset by peer]
octarine has joined #ruby
moeSeth has joined #ruby
<workmad3> tos9: and it's not a dependency of cucumber or cucumber-sinatra, because they both work absolutely fine without capybara, just that they can supply code that makes it easy to integrate with it :)
rcsheets has joined #ruby
fbernier has quit [Read error: Connection reset by peer]
tiripamwe has joined #ruby
tommyvyo has joined #ruby
<workmad3> incidentally, I tend to avoid pregenerated steps... they tend to lead to scenarios that specify way too much implementation detail in my experience...
tk___ has joined #ruby
mohanmcgeek has joined #ruby
chichou has quit [Ping timeout: 244 seconds]
<workmad3> dw: you could also do the brute-force approach of adding rbx-require-relative to you Gemfile with version 0.9 and then doing 'bundle update' which will unlock all your gems and attempt to update them... but that could cause issues (but would reveal if something had a hard dependency on 0.5 and was unable to use 0.9 quicker)
kaawee has joined #ruby
sr___ has joined #ruby
<dw> ok, problem detected
<dw> the directory i was working from was not for ruby 1.9.3. its a brnach in the midst of a huge rearrangement
<dw> thanks all for the help :)
kjellski_ has joined #ruby
<tos9> Oh.
<tos9> I guess looking at the traceback would have been nice.
cibs has joined #ruby
chichou has joined #ruby
<tos9> It looks like cucumber-sinatra generates a file that requires capybara but doesn't declare it in its deps.
nanderoo has joined #ruby
<workmad3> tos9: which is right... you'll be able to use cucumber-sinatra without that code, it's just pregenerated code to make things easier
ABK has quit [Read error: Connection reset by peer]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
kjellski has quit [Ping timeout: 244 seconds]
<tos9> workmad3: I see.
<workmad3> tos9: and pregenerated code becomes yours, not the gems ;)
x0F_ is now known as x0F
* tos9 has not used cucumber-sinatra before
<tos9> Well, mystery solved then at least. Thanks.
<workmad3> I've not used it either... but cucumber and cucumber-rails provide various generators that probably do similar (capybara integration, they used to provide webrat integration too, etc)
dreamfall has joined #ruby
<workmad3> and once you've generated the code, it's yours and it's up to you to make sure the dependencies are satisfied ;)
Guest38 has joined #ruby
<workmad3> documentation on that point is probably a bit sparse though
hron84 has joined #ruby
nitti has joined #ruby
<tos9> /nod
darthdeus has quit [Quit: Leaving...]
mohanmcgeek has left #ruby [#ruby]
<shevy> thuna!
<shevy> THUUUNA
<shevy> Freedom for thuna!
awarner has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
bluenemo is now known as blunix
blunix is now known as bluenemo
jcaudle has joined #ruby
<clocKwize> argh
patricksroberts has joined #ruby
<clocKwize> google auto complete: I typed light yellow... first 3 suggestions were: light yellow discharge, light yellow urine, light yellow hex
im0b has joined #ruby
<clocKwize> I wanted number 3
<clocKwize> :D
Cork has joined #ruby
fbernier has joined #ruby
notbrent has joined #ruby
nopolitica has joined #ruby
seanyo has quit [Read error: Connection reset by peer]
Vert has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
heftig has quit [Quit: leaving]
cantonic_ has joined #ruby
invisime has joined #ruby
drago757 has quit [Quit: drago757]
filipe has quit [Read error: Operation timed out]
fphilipe has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
randym has joined #ruby
cantonic_ is now known as cantonic
bbttxu has quit [Quit: bbttxu]
shiroginne has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
anildigital_work has joined #ruby
bairui has quit [Read error: Connection reset by peer]
bairui has joined #ruby
awestroke has quit [Remote host closed the connection]
pskosinski has joined #ruby
chussenot has joined #ruby
carloslopes has joined #ruby
stuffmc has quit [Quit: stuffmc]
carloslopes has left #ruby [#ruby]
v0n has joined #ruby
arietis has joined #ruby
<shevy> hehehe
<shevy> light yellow urine???
<shevy> BOY WHAT ARE YOU TRYING TO FIND!
yshh has quit [Remote host closed the connection]
<shevy> YOU SICK SICK MAN
yshh has joined #ruby
luckyruby has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
ffranz has joined #ruby
darthdeus has quit [Quit: Leaving...]
sailias has joined #ruby
GoGoGarrett has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
fphilipe has quit [Remote host closed the connection]
arubin- has joined #ruby
test_ has joined #ruby
test_ has left #ruby [#ruby]
dkannan has joined #ruby
lectrick has joined #ruby
darthdeus has joined #ruby
davidboy has joined #ruby
<mr-rich> Any savon gem users here?
chin-tastic has joined #ruby
filipe has joined #ruby
Cultofmetatron has joined #ruby
mikepack has joined #ruby
mohits has quit [Quit: Leaving]
philcrissman has joined #ruby
daniel_- has quit [Read error: Operation timed out]
samphippen has joined #ruby
thisirs has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Uranio has joined #ruby
IrishGringo has joined #ruby
peneconleche has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
awarner has quit [Remote host closed the connection]
fcoury has joined #ruby
bbttxu has joined #ruby
hbpoison has joined #ruby
Nowaker has quit [Ping timeout: 246 seconds]
Nowaker has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
skum has quit [Ping timeout: 268 seconds]
ralphvdh has joined #ruby
robotmay has joined #ruby
Takehiro has quit [Remote host closed the connection]
Neomex has joined #ruby
Servidorv has joined #ruby
<Servidorv> hey guys
<Servidorv> good morning
mmitchell has joined #ruby
joofsh has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<jcaudle> good morning servidorv!
<Servidorv> hey question: i have an array and inside there is other array, each one of the inside arrays has a page information, what will be the best way to create a method that will search inside the main array and find the inner array containing the pageid and then returning just that one array
hamed_r has quit [Quit: Leaving]
<shevy> .select
<hoelzro> I would do .find, I think
<hoelzro> .select returns an array
<hoelzro> if you only want a single element, you would have to unbox .select's return value
tpe11etier has joined #ruby
<jcaudle> hoelzro, I think servidorv was looking for an array to be returned
<shevy> array = [1,2,3,[5,6,7]]; array.select {|x| x.include? 6 if x.respond_to? :include?} # => [[5, 6, 7]]
<shevy> and probably use .flatten... not sure why you need arrays in arrays in arrays... seems as if a hash may be easier to use
<crocket> When I run "bundle install", I see http://pastebin.com/whHcYUfN
<crocket> Why?
Araxia has quit [Quit: Araxia]
<hoelzro> jcaudle: yes, but in the case servidorv is describing, it would return a nested array
<crocket> "Error Bundler::HTTPError during request to dependency API"
<jcaudle> hoelzro: yeah, just noticed that
horofox has joined #ruby
<shevy> buuuuuuuuuuuundle!
skum has joined #ruby
<Servidorv> thanks guys
<jcaudle> crocket: the dependency API is down right now, it should still go through without it though...
<jcaudle> oops
<jcaudle> it's back now
<crocket> really?
<jcaudle> it had been down, but http://status.rubygems.org/ says it's back
<jcaudle> I guess my canned response is out of date… sorry
reinaldob has quit [Remote host closed the connection]
<Servidorv> can it be array.select{|x| x['pageid'] = pageid } ????
<hoelzro> servidorv: yes, except for == instead of =
<hoelzro> but!
<hoelzro> that will return an array of arrays
<hoelzro> .find will just return the inner array
<hoelzro> and .find will stop searching once it's found a match
<hoelzro> whereas .select will not
erichmenge has joined #ruby
<Servidorv> ok so then it will be array.find{|x| x['pageid'] == pageid} ??
erichmenge has quit [Client Quit]
<hoelzro> that ought to do it
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<Servidorv> thanks
dmerrick has joined #ruby
iPhoneMRZ has joined #ruby
ZubKonst_ has joined #ruby
nitti has joined #ruby
kapowaz has joined #ruby
ttt has quit [Remote host closed the connection]
krawchyk has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
ZubKonst has quit [Ping timeout: 265 seconds]
chin-tastic has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
Mon_Ouie has quit [Ping timeout: 244 seconds]
elico has quit [Quit: elico]
nitti has quit [Ping timeout: 244 seconds]
yshh has joined #ruby
EddieS has joined #ruby
morozovm has joined #ruby
EddieS is now known as Guest69755
skum has quit [Read error: Connection reset by peer]
skum has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
kpshek has joined #ruby
stopbit has joined #ruby
horofox has quit [Quit: horofox]
<crocket> I still receive "Error Bundler::HTTPError during request to dependency API" message.
<crocket> jcaudle, It's down.
jipiboily has quit [Quit: Leaving.]
jipiboily has joined #ruby
slyd3r has joined #ruby
slyd3r has left #ruby [#ruby]
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
miso1337 has quit [Quit: unplugging]
clocKwize has quit [Quit: Leaving]
dangerousdave has joined #ruby
clocKwize has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Takehiro has joined #ruby
<jcaudle> crocket: is bundler quitting after that error?
axl_ has joined #ruby
<jcaudle> it should continue to say "Fetching full source induex from http://rubygems.org/"
<jcaudle> *index
SeanTAllen has joined #ruby
<crocket> jcaudle, It doesn't exit with an error.
<jcaudle> crocket: ?
<crocket> jcaudle, bundle install succeeds eventually.
<jcaudle> right
Takehiro has quit [Remote host closed the connection]
<jcaudle> ok
Takehiro has joined #ruby
Spooner has joined #ruby
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<jcaudle> The dependency API has been turned off due to load issues
vjt has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<jcaudle> There's a pretty good community of developers working on getting it up again, but for now, bundler is capable of resolving dependencies on its own.
<jcaudle> The dependency API just makes that happen faster.
tommyvyo has quit [Quit: Computer has gone to sleep.]
fermion has joined #ruby
<crocket> PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block
<crocket> : ALTER TABLE "git_caches" RENAME COLUMN "proj_identifier" TO "repo_identifier"
nitti has joined #ruby
metrix has joined #ruby
g-ram has joined #ruby
cakehero has joined #ruby
<metrix> What is the proper way to use bundler in the following situation: I have a group of 5 ruby applications and library living under one build script and in version control. I want to deploy these applications to a QA server and finally a Production server with the gems that I have defined in a bundle package.
Servidorv has quit [Quit: I cna ytpe 300 wrods pre mniuet!!!]
Spooner has left #ruby ["I'm a happy Miranda IM user! Get it here: http://miranda-im.org"]
horofox has joined #ruby
Norrin has quit [Ping timeout: 245 seconds]
eignerchris has joined #ruby
<metrix> on my dev I should run bundle install and commit gem files... on QA and production I should run bundle package?
baphled has joined #ruby
<JonnieCache> metrix: on prod. you should run bundle install --deployment --without development test
<metrix> ok, and what about QA? bundle install --deployment?
Norrin has joined #ruby
<JonnieCache> yeah if you want
Agis__ has joined #ruby
<JonnieCache> its pretty configurable
<Agis__> do you people prefer iTerm 2 over the standard os x terminal?
<JonnieCache> yeah
<hoelzro> I do
<Xeago> never tried, got no urge to move away from terminal.app
peneconleche is now known as peneconleche|awa
<Xeago> hoelzro, JonnieCache would you try convincing me?
coffer has quit [Read error: Connection reset by peer]
<hoelzro> I switched a *long* time ago
<workmad3> metrix: you could run 'bundle package' to create a release too, if you wanted, and then that release gets passed around to QA, staging, production, etc. and archived somewhere
<hoelzro> one reason is 256 color support
<hoelzro> which they may or may not have added to Terminal.app
<Agis__> i just tried it, but my vim looks strange in iTerm2.. no line numbers are visible and colors are a little different
<Xeago> 256 got added in snow leopard
carloslopes has joined #ruby
<workmad3> metrix: it'll depend on your deployment workflow and how much you want 'exactly the same' code to be tested, deployed, etc.
krz has quit [Quit: krz]
<hoelzro> Agis__: your TERM may not be set correctly
<workmad3> Agis__: or your terminal colours may be set differently
tk___ has quit [Quit: ばいばい]
<Xeago> it should be xterm-256color
sent-hil has joined #ruby
<metrix> workmad3: Interesting.. I would prefer things to be as close to the same throughout the development cycle
<workmad3> Agis__: vim in Terminal.app and vim in iTerm2 look massively different on my machine, despite them both using nominally the same theme, because I've set up my terminal colours differently :)
samphippen has joined #ruby
<workmad3> metrix: well, if you trust rubygems, then simply running 'bundle --deployment' with the same Gemfile.lock should get you the same code
<Agis__> there are color schemes for iTerm too I suppose?
<Xeago> 1 thin I dislike about osx's terminal is that it clips sizes by character
<workmad3> metrix: but if you read something like Continuous Deployment, they recommend a deployment pipeline that never relies on external library repositories after the 'release bundle' (or whatever you want to call it) has been constructed
flip_digits has joined #ruby
<workmad3> metrix: they tend to talk more about java and compiled language pipelines, so they talk about ensuring the same jar or war is always passed around, to ensure that compiler differences don't affect you
kn330 has joined #ruby
<metrix> workmad3: Something I haven't quite picked up: When I add bundler to my code, does that mean it looks at the gemfile in the current directory and ONLY uses the given gems? or will my application always use the latest gem found?
<Xeago> given gems
whaley has joined #ruby
<elliot98> why does "1234 5678"[/([0-9]{3,4}).*([0-9]{3,4})/,1] produce "1234", but "1234 5678"[/([0-9]{3,4}).*([0-9]{3,4})/,2] produces "678"?
<workmad3> metrix: by the same token, if you wanted to isolate your code from as many changes as possible, you could even consider distributing something like a statically linked ruby runtime as part of your release
JonnieCache has quit [Ping timeout: 265 seconds]
<elliot98> should it not produce "5678"?
<workmad3> metrix: yeah, bundler acts as a sandbox, something running within bundler will only see the gems and gem versions specified in your Gemfile.lock
<workmad3> elliot98: the .* is greedy
<elliot98> ah...how do you ungreedy it?
<workmad3> elliot98: I think .*?
<workmad3> elliot98: but I can't remember exactly :)
<metrix> workmad3: Thank you! I appreciate your help
<workmad3> elliot98: you could also specify that you want to match 0 or more whitespace characters, rather than any character
<elliot98> thanks!
<workmad3> metrix: I'd recommend you read 'Continuous Delivery' btw... it goes into a lot of detail about this sort of thing :)
mklappstuhl has joined #ruby
<elliot98> workmad3: true, but sometimes that are more than just whitespaces between the numbers
linoj has joined #ruby
<workmad3> elliot98: fair enough :)
krawchyk has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
dnstbr has joined #ruby
morf has quit [Quit: eof]
baphled has quit [Ping timeout: 240 seconds]
<Agis__> don't you guys find it a little uncomfortable to hit Esc (vim) in Apple's wireless keyboard?
<Agis__> it's just too small
JonnieCache has joined #ruby
beakerman has quit [Remote host closed the connection]
<JonnieCache> fuck you apple and your antisocial dhcp client implementation
coffer has joined #ruby
sambio has joined #ruby
DrShoggoth has joined #ruby
rlb3 has joined #ruby
nari_ has joined #ruby
<workmad3> Agis__: I don't use apple's wireless keyboard
freezey has joined #ruby
<Xeago> all function keys and (inherently escape) are too small on wireless-keyboard/mbair11" models
joshman_ has joined #ruby
justsee has quit [Quit: Leaving...]
quest88 has joined #ruby
<JonnieCache> one of my bosses uses that its *tiny*
<JonnieCache> the normal apple keyboards are bad enough
<Xeago> I quite like the wired keyboard
Agis__ has quit [Quit: Agis__]
<JonnieCache> my typo rate is massive on it
<JonnieCache> i need a new one
Takehiro has quit [Remote host closed the connection]
kil0byt__ has quit [Ping timeout: 246 seconds]
<JonnieCache> although im kinda used to it now
<Xeago> the keys are relatively small compared to other mechanical kb
<Xeago> and I quite like that
<Xeago> less movement needed to reach keys
<JonnieCache> not so good if you hit the wrong one though
baroquebobcat has joined #ruby
<JonnieCache> i dont like the lack of travel
dimka has quit [Ping timeout: 248 seconds]
<Xeago> I sometimes am in an odd position, like besides the laptop
<Xeago> needing to type with 1 hand, sideways
adambeynon has joined #ruby
<Xeago> it's quite doable because of the size
Takehiro has joined #ruby
Drewch has joined #ruby
carlyle has joined #ruby
kil0byte has joined #ruby
<Drewch> Is Array.second not a method anymore in latest versions of 1.9.3?
<Xeago> I hope the fusion drive stuff that apple made, allows for some manual interaction aswell
blacktul_ has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
<Drewch> I thought this used to be valid: [5,3,6].second
<atmosx> hello
blacktulip has joined #ruby
robotmay has quit [Read error: Connection reset by peer]
metrix has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
robotmay has joined #ruby
pk1001100011 has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
pk1001100011 is now known as pskosinski
ltsstar has joined #ruby
bbttxu has quit [Quit: bbttxu]
adac has joined #ruby
<clocKwize> Drewch, I think it might have been
<clocKwize> for some reason
<Drewch> lol yeah I definitely remember using it
<Drewch> was just curious when it stopped being a function of Array
sent-hil has quit [Remote host closed the connection]
<Xeago> it's not in 1.8.7 core
tungd has joined #ruby
<clocKwize> it might be part of rails
<clocKwize> or was at some point
<Xeago> active-support prolly
<clocKwize> yeah
sent-hil has joined #ruby
<clocKwize> seems a silly thing to have and i can understand why it would have been removed
airtanah_ has quit [Ping timeout: 268 seconds]
sent-hil has quit [Remote host closed the connection]
recycle has quit [Remote host closed the connection]
<shevy> rails is truly evil
<clocKwize> shevy, nahh
<shevy> but with rails 5.0 it'll become better
<shevy> it will become a new language on its own
<shevy> railsy
<clocKwize> since when?
<clocKwize> O.o
<shevy> in 2015 I think
<shevy> :)
<shevy> but then mruby will be finished
<Uranio> I has been compiled ruby from source bit compile the support for manage excel documents just fail.. what could I do?
<adac> "Dir.foreach('../path/to/folder') do |file|" does notr work since it cannot find the folder (due to relative path?) Any ideas?
<shevy> wat
therod has joined #ruby
<shevy> what "support for excel", where do you have this information Uranio
<shevy> adac does absolute path work?
<Uranio> shevy: I thins is a win32ole or something like that
<shevy> Dir.entries('/')
<Uranio> for read and write ole documents
uuair has joined #ruby
<shevy> Uranio you compile on windows?
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> I usually download the ruby installer on windows
haxrbyte has quit [Remote host closed the connection]
<adac> shevy, yes it does
freeayu__ has quit [Remote host closed the connection]
quest88 has quit [Quit: quest88]
dr_bob has quit [Quit: Leaving.]
Husel has joined #ruby
<adac> But with the example above I do get: No such file or ../path/to/folder (Errno::ENOENT)
<shevy> adac ok so we now know that if you use the absolute path it works
<shevy> are you sure the relative path you gave is correct?
<shevy> because
<shevy> if I go to /Depot/j, start irb
<shevy> and then do this here:
<shevy> Dir.foreach('../../tmp').each {|x| puts x
<shevy> it works
<shevy> so my estimate is that you gave the wrong relative path
recycle has joined #ruby
<shevy> wheeee adac where do you live? :D
dr_bob has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
iamjarvo has joined #ruby
BSaboia__ has joined #ruby
<adac> shevy, yes the path is correct. i double checked it
<adac> shevy, austria
<adac> you?
<adac> US?
<adac> lol austria too
<shevy> adac vienna
<Uranio> shevy: nop.. not in windows.. ti nly work on windows?? :-/
haxrbyte has joined #ruby
<shevy> adac, if I give a bogus entry to .foreach(), I also get Errno::ENOENT
morozovm has quit [Read error: Connection reset by peer]
<shevy> but if I give a working directory, .foreach() works for me
<shevy> (both absolute and relative path)
morozovm has joined #ruby
<adac> shevy, ok I re-check this danke :)
<shevy> Uranio yeah, I found compiling on windows too annoying, I kind of gave up... too much to read, and I use linux most of my time anyway
Vinz_` is now known as Vinz_
<shevy> adac, btw, Dir.glob() is nicer than .foreach IMHO, just that you have to append .each to it
ttt has joined #ruby
<shevy> but I use .glob because of '*'
<shevy> Dir.glob('/tmp/*.rb').each {|x| puts ' - '+x }
love_color_text has quit [Remote host closed the connection]
<adac> shevy, kk
kil0byte_ has joined #ruby
linoj has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 246 seconds]
<shevy> adac are you on github or rubygems?
<adac> shevy, I'm in Innsbruck btw
nari_ has quit [Ping timeout: 244 seconds]
haxrbyte_ has joined #ruby
<shevy> ah cool, like manveru on #ruby-lang (though he went to japan, then back to munich, but I think he travels between germany and tirol all the time)
fgro has joined #ruby
<adac> shevy, find me here: https://github.com/phlegx
<atmosx> is there any function to optimize a string match?
dr_bob has quit [Quit: Leaving.]
nitti has quit [Remote host closed the connection]
<shevy> optimize?
<Xeago> only if you know your problem domain very well, and can thus strip out non related match stuff
<fgro> any screen/tmux users out there that do pair programming? what is your ssh/server setup, do you have a dedicated dev server that you connect to? wondering because because of wifi/routing/ports issues..
<shevy> such a question is ripe for Spooner or workmad3 :)
kil0byte has quit [Ping timeout: 245 seconds]
nitti has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<Xeago> fgro: I use 1 time keys with ssh forcecommand of screen and then screen that asks for permission on the host
apeiros_ has joined #ruby
<Xeago> no dev server
<Dreamer3> is it possible to get the output of ruby -v inside ruby?
ttt has quit [Ping timeout: 240 seconds]
<dekroning> i'm wondering when doing 'puts "foo"' inside a pry session that was invoked via binding.pry seem to be hanging
<Xeago> 1 time keys get passed in paper planes, im, irc, or other stuff
<apeiros_> Xeago: RUBY_DESCRIPTION
haxrbyte has quit [Ping timeout: 245 seconds]
<apeiros_> errr, Dreamer3, not Xeago, sry
<shevy> Dreamer3 -> result = `ruby -v`
darthdeus has quit [Quit: Leaving...]
zastern has joined #ruby
<shevy> wheee!!! apeiros_ is back again!!!!
<fgro> Xeago: yes, who connects to who remotly? your pair connects to your machine? how do you do when you "travel" and ssh ports are not forwared to your machine?
<apeiros_> shevy: I'm just his shadow
<shevy> apeiros_ what is up with you, why are you barely here anymore :(
<zastern> At some point I installed puppet on my mac via the official Puppet Labs packages. Is there some way to uh . . . uninstall it?
<Xeago> fgro: we're at the office atm
dmiller has quit [Ping timeout: 268 seconds]
<adac> shevy, https://github.com/shevegen gives me 500
<Xeago> the ones I've done it over firewall are smart enough to open and forward their ports
<fgro> Xeago: ok
jprovazn is now known as jprovazn_away
<JonnieCache> apeiros_: yeah, where do you get off, having a life
<JonnieCache> :P
dr_bob has joined #ruby
<fgro> Xeago: i'm quite sure this wouldn't work in some random public wifi... the port would have to be forwarded to the machine with the ssh server
<Xeago> not in public wifi no ;p
dmiller has joined #ruby
<fgro> hence my thinking to use a dedicated dev server, that both parties can ssh connect to.
<Xeago> unless both hosts are on the same wifi and hosts on the same network can see eachother
<fgro> Xeago: well of course. ;-)
<atmosx> shevy: I use @list_name.include?(word) to match two lists. Thing is these are kinda big lists and they are about to get way bigger soon.
arturaz has quit [Remote host closed the connection]
<Xeago> I've snooped quite a few credentials over public wifi the last few years
<Xeago> got quite some fun stuff ;3
dr_bob has quit [Client Quit]
<fgro> Xeago: "traveling"...
<Xeago> hmm
<Xeago> there are several reverse connection providers out there
<Xeago> might be cheaper than a server
<zastern> whoops did not mean to ask that here
<zastern> sorry haha
<Xeago> btw, I'd _always_ work with a reverse proxy on a public host
<shevy> adac haha odd, I also get that 500 error :)
morozovm has quit [Read error: Connection reset by peer]
<Xeago> and then from that host connect to your local dev box
<shevy> Xeago you scare me
morozovm has joined #ruby
<Xeago> it helps a lot having your own environment available
<Xeago> shevy: howcome?
<shevy> if I ever randomly meet you in reallife, I am gonna have to be armed to the teeth
<Xeago> no :)
<Xeago> I am a nice guy :D
<Xeago> I help people I snoop
<shevy> lol
<Xeago> got some thankful donations/gifts from it aswell
Takehiro has quit [Remote host closed the connection]
<adac> shevy, you know what, when i'm in vienna we can just meet in person and have a coffee beer. screw github =)
<JonnieCache> coffee beer? thats anew one on me
* Xeago is in stockholm eager for some drinkup!
kil0byte_ has quit [Remote host closed the connection]
<shevy> adac \o/
SCommette has joined #ruby
<shevy> stockholm? hmm
<apeiros_> drinkup, sounds like an idea…
<shevy> I was in Göteborg once ... that was the foggiest day in my life
* apeiros_ ponders to get something to drink up
<shevy> up in northern europe I think folks always must have awful weather
hweiqiu has joined #ruby
reinaldob has joined #ruby
<Xeago> was a lovely day today
<Xeago> had a lovely walk around noon to get lunch
darthdeus has joined #ruby
<hweiqiu> hi all,who knows how to sort this hash by the last number? {"192.168.203.28"=>{"ESTABLISHED"=>{"tcp"=>59}}, "192.168.204.119"=>{"ESTABLISHED"=>{"tcp"=>13}}, "192.168.203.10"=>{"ESTABLISHED"=>{"tcp"=>6}}, "192.168.204.73"=>{"ESTABLISHED"=>{"tcp"=>10}}
<Xeago> several methods
<Xeago> construct ip object
<Xeago> s
<Xeago> strip the first 3 octets
<apeiros_> hweiqiu: sort_by
<apeiros_> beware, it returns an array
<Xeago> tbh, you could just sort by the string representation of the key
<shevy> hweiqiu are you from china
<apeiros_> (which you can turn back to a hash using Hash::[])
<hweiqiu> shevy>yes
<shevy> \o/
irleif has quit [Quit: Computer has gone to sleep.]
<shevy> see apeiros_ knows all those things by heart :)
xorgnak has quit [Remote host closed the connection]
<hweiqiu> the final result will be { {"192.168.203.28"=>{"ESTABLISHED"=>{"tcp"=>59}},"192.168.204.119"=>{"ESTABLISHED"=>{"tcp"=>13}}, "192.168.204.73"=>{"ESTABLISHED"=>{"tcp"=>10},"192.168.203.10"=>{"ESTABLISHED"=>{"tcp"=>6}}}
chussenot has quit [Quit: chussenot]
<apeiros_> there's only blood in the heart
<atmosx> shevy: I'm matching a wordlist.txt (11000+ words) against a dictionary (407000+ words), using wordlist.each {|word| nwords << word unless dictionary.include?(word)} ... So I get a list (nwords) who has all the words not matching the dictionary. But since the iterations take 7 minutes in an i5 4 GB ram, I was wondering if there's any faster way of doing this.
rabidpraxis has joined #ruby
maesbn_ has quit [Remote host closed the connection]
<Xeago> atmosx: yes
<Xeago> first of all you want to do that in c
<atmosx> fingerpringint (sha1) might be a good one, but the time needed to turn the wordlist to sha1 + the time to match, takes too much.
mmitchel_ has joined #ruby
<apeiros_> atmosx: you should take a look at Array's set methods, like &, | etc.
<hweiqiu> <shevy>yes
<atmosx> Xeago: I dont.
maesbn has joined #ruby
<Xeago> second, you should use direct memory mapped arrays for fastest performance
<shevy> atmosx that's really a lot
<apeiros_> atmosx: what you do is an O(n^2) solution, really slow and bad
<atmosx> apeiros_: hm set methods? I've seen a stackoverflow post about & but didn't pay much attention, I'll take a closer look thanks
larissa has quit [Quit: Leaving]
baphled has joined #ruby
<Xeago> you should also sort them first
<apeiros_> x = ary1-ary2 # all values in ary1 but not in ary2
<apeiros_> also a set operation
mmitchell has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
<atmosx> apeiros_: I figure it out. I do even worse because I capitalize the words from the nword list and try again, then I downcase the words and try again... so it's like 3 full iterations.
<Xeago> which will give you nlogn complexity
<apeiros_> Xeago: no, you should not sort them first. that's pointless.
<apeiros_> also more expensive than a Set#-
<atmosx> Xeago: sort them?
<atmosx> Xeago: that's easy.
<atmosx> apeiros_: ah
<atmosx> hm
davidcelis has quit [Quit: K-Lined.]
<Xeago> if both arrays are sorted the final result is g(n)
`brendan has joined #ruby
<atmosx> argh GSL gem breaks on macosx
<hweiqiu> <apeiros_>how?
<apeiros_> Xeago: sorting *alone* already takes more time
<apeiros_> since sorting is nlogn, set#- is only n
chichou has quit [Remote host closed the connection]
<apeiros_> really, it's not just pointless but even wasteful.
<atmosx> apeiros_: okay so I'm looking for Array#set?
Agis__ has joined #ruby
<apeiros_> atmosx: no, you look for Array#- in your specific case
<apeiros_> 17:24 apeiros_: x = ary1-ary2 # all values in ary1 but not in ary2
Serial_Killer_C has joined #ruby
<Xeago> once the wordlist is sorted, it doesn't have to be sorted again apeiros_, could you please elaborate why Array-Array is more efficient?
headius has joined #ruby
<apeiros_> Xeago: but to sort the wordlist you have to sort it :-p
<apeiros_> Array#- does not need sorting.
<apeiros_> it can work in a single iteration
hoelzro is now known as hoelzro|away
maesbn has quit [Ping timeout: 245 seconds]
k610 has joined #ruby
<Xeago> it does that in a single iteration yes, but it also does a full st_lookup for each item in ary2
ltsstar has quit [Quit: ltsstar]
<k610> is there something like ruby-gmail that doens't require me to setup smpp & co to send mails ?
<atmosx> any ideas how to solve this?> http://pastebin.com/eLjLdvwc
baroquebobcat has joined #ruby
<apeiros_> Xeago: st_lookup? I don't know the C implementation by heart. but it does a hash key lookup, which is O(1)
<atmosx> I'm on mountain lion (osx) and rvm ruby
<apeiros_> and it does that N times, N times O(1) is O(n)
Neomex has quit [Quit: Neomex]
<apeiros_> you may want to read up on algorithmic complexity of set operations.
<apeiros_> it's well enough documented.
<Xeago> okay, I claim to do it even faster
<Xeago> using only presorted dictionary ;p
<Xeago> my previous claim was borked
<apeiros_> hweiqiu: re: "how?" - what part do you need help with? sort_by will yield you key and value (e.g. "192.168.203.28" and {"ESTABLISHED"=>{"tcp"=>59}})
maletor has joined #ruby
mrmist is now known as groupcat
<apeiros_> Xeago: go ahead, implement your code and feel devestated by a simple Array#- beating your code :-p
groupcat is now known as mrmist
<Xeago> apeiros_: by having a presorted wordlist in memory, one can map the word directly to a memory address and simply check for null there
<Xeago> having the wordlist sorted beforehand just makes the code easier to map directly to memory
<apeiros_> Xeago: you're reinventing a hash table? great.
justsee has quit [Quit: Linkinus - http://linkinus.com]
<apeiros_> as said, go ahead, try it
<Xeago> basically
<Xeago> ;p
<apeiros_> it's what Array#- already does
rippa has joined #ruby
<Xeago> but it's faster than what Array#- does, as that does not have to convert ary2 to hash
<apeiros_> "it's faster" is an (yet) unsubstantiated claim.
<apeiros_> and I doubt it
<apeiros_> but as said, go ahead, build it.
<Xeago> I substantiated it earlier
<apeiros_> you only reasoned about it. and I say you're wrong :-p
<Xeago> you didn't reason me wrong
<Xeago> you reasoned me similar to the implementation that already exists in Array#-
<apeiros_> I don't need to. you can simply test it.
adambeynon has quit [Quit: Computer has gone to sleep.]
chussenot has joined #ruby
aganov has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 264 seconds]
therod has quit [Quit: Leaving...]
<apeiros_> there is an algorithm which is faster than using a hash table which relies on sorting. but you haven't proposed it yet. also it's a silly amount of work for a problem which can be solved with as little as `a-b`
<apeiros_> and again, it is only faster with pre-sorted stuff, once you have to consider sort as part of the operation, it'll in all likeliness be slower
<aef> Hi there, can anyone here solve this RSpec and Ruby 1.9.3 related problem: http://stackoverflow.com/questions/13042298/including-namespace-module-through-rspec-config-in-
<apeiros_> 17:30 apeiros_: hweiqiu: re: "how?" - what part do you need help with? sort_by will yield you key and value (e.g. "192.168.203.28" and {"ESTABLISHED"=>{"tcp"=>59}})
deadalus has joined #ruby
deadalus has joined #ruby
deadalus has quit [Changing host]
recycle has quit [Remote host closed the connection]
awestroke has joined #ruby
adambeynon has joined #ruby
<Xeago> apeiros_: I fail to see how a binary search would be faster?
<apeiros_> a binary search wouldn't.
<Xeago> then what would be?
recycle has joined #ruby
<darthdeus> what do I need to make bundler require all gems in my rakefile? require "bundler/setup" doesn't seem to wrok
<apeiros_> parallel iteration
eignerchris has quit [Remote host closed the connection]
elsifaka has quit [Quit: Veloma e!]
lushious has quit [Quit: "THIS USER'S MACHINE HAS BEEN SEIZED BY THE UNITED STATES DEPARTMENT OF JUSTICE"]
<apeiros_> darthdeus: require: 'foo' for each gem (replace 'foo' with the matching thing for each gem, of course)
<apeiros_> darthdeus: also I guess you meant Gemfile, not rakefile :-p
carloslopes has quit [Remote host closed the connection]
<darthdeus> apeiros_: no i meant Rakefile in my gem ... I have specified dependencies in .gemspec, and now I want to do something like task(:console) { Pry.start }
Husel has quit [Quit: Page closed]
<darthdeus> the thing is that none of the gems are loaded in the rakefile
<apeiros_> darthdeus: bundler doesn't care for your gemspec (except when installing, of course)
<darthdeus> my Gemfile has `gemspec` in it
zomgbie has joined #ruby
morozovm has quit [Quit: morozovm]
<Xeago> that is a technique, not an algorithm
<apeiros_> Xeago: you may want to check the meaning of "algorithm" again.
<Xeago> let me rephrase, parallel iteration could be applied to all solutions proposed here
Takehiro has joined #ruby
<apeiros_> Xeago: um, no
spinagon has joined #ruby
<Xeago> then which did I miss :O?
<apeiros_> you need it presorted, otherwise it won't help
<shevy> wheee a bundler question
<darthdeus> apeiros_: and even if i add the gems directly in the gemfile it doesn't make any difference
<Xeago> darthdeus: using bundler does not mean you do not need to require gems manually..
haxrbyte has joined #ruby
<apeiros_> you iterate over both lists at the same time, starting out with the first value. if a > b, then you continue iterating with b, if b > a, you continue iterating with a
<darthdeus> Xeago: I've tried require "bundler/setup" and Bundler.require(:default), neither of which owkrs
<darthdeus> works*
<rismoney> on windows when i run exec 'powershell.exe -executionpolicy unrestricted -command get-module -listavailable' i get a different result than when i run that command from cmd.exe. why would that be?
codezombie has joined #ruby
rippa has quit [Ping timeout: 276 seconds]
<hweiqiu> <apeiros_> i mean how to use sort_by
daniel_- has joined #ruby
<apeiros_> but yes, I didn't fully specify the algorithm. there are various ways you can continue the iteration. you can either do it linearly, use quadratic probing or even binary search. knowing your problem domain can tell you which one will yield the highest performance
mmitchel_ has quit [Ping timeout: 264 seconds]
<hweiqiu> apeiros_ i have never used it
<apeiros_> hweiqiu: yes, that's a very unspecific question. See Enumerable#sort_by for its documentation. if you can tell me where you need more help, I'll do. But I ain't the manual.
thisirs has quit [Remote host closed the connection]
bradleyprice has joined #ruby
haxrbyte_ has quit [Ping timeout: 244 seconds]
rlb3 has quit [Quit: rlb3]
Takehiro has quit [Ping timeout: 260 seconds]
<Agis__> guys, what's the difference in rvm between ruby head and ruby 1.9.3-p0?
<Agis__> head is the latest?
mmitchell has joined #ruby
<apeiros_> head is not released
uuair has quit [Quit: uuair]
<Agis__> oh
<apeiros_> 1.9.3-p0 is relatively old and released
linoj has joined #ruby
uuair has joined #ruby
<Xeago> should use p286 tho Agis__
<apeiros_> 1.9.3-p286 is the newest released ruby version
<apeiros_> and I concur with Xeago, you should use that one
joeycarmello has joined #ruby
lushious has joined #ruby
<Agis__> but it's not listed in rvm when I do a list rubies --known
<apeiros_> because your rvm is old
* Xeago knows crap about rvm, sorry
<apeiros_> updated your rvm
<Agis__> I see.. thx
samphippen has quit [Quit: Computer has gone to sleep.]
<Agis__> so Xeago is an alternative? like rbenv?
<Agis__> lol
<Agis__> forget that
<Agis__> never said that....
dekroning has quit [Ping timeout: 264 seconds]
<Agis__> roflcopterz
* Xeago likes and uses rbfu and rbenv
<apeiros_> and I think it's "rvm list known" in newer rvms
<ddd> yes. rvm list known to see known ruby versions to install
<Agis__> yes upgraded my rvm and now installing -286.. thx
<apeiros_> yw
joeycarmello has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
airtanah_ has joined #ruby
whaley_ has joined #ruby
<darthdeus> what's a good salary for a moderately senior ruby developer in sweden? :p
margle has quit [Quit: Computer has gone to sleep.]
<Xeago> in eur?
<Xeago> 2.8-3.2
<Xeago> around 25-30 in SEK
adac has quit [Quit: Leaving]
<darthdeus> that's for an employee pre-tax i suspect?
<Xeago> pre-tax yea
<matti> Xeago:
<ccooke> Xeago: 2.8-3.2 what per what?
<darthdeus> so if i was to be a freelancer, i could charge more?
<Xeago> 10^3 EUR
samphippen has joined #ruby
* apeiros_ assumes per month
<apeiros_> seems low?
sent-hil has joined #ruby
<Xeago> per month yea
<JonnieCache> PS3 code signing private key! get it while its hot! http://pastie.org/private/bevpt5jf9kdjg3vrrv05w
Ankhers has joined #ruby
whaley has quit [Ping timeout: 244 seconds]
<Xeago> as a junior I am getting 2.5k eur a month
mmitchel_ has joined #ruby
<darthdeus> i'm applying for a senior position, but it's my first job in sweden, so i literally have no idea what to ask
<apeiros_> k, as a junior I can see that
samphippen has quit [Client Quit]
mmitchell has quit [Read error: Connection reset by peer]
Ankhers has quit [Client Quit]
<Xeago> darthdeus: there are strict regulations regarding the minimum pay, not judged by age alone but also by degree and certificates
Ankhers has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
<apeiros_> darthdeus: I don't know about sweden, but for switzerland, there's a good amount of publicly available statistical data on such things, I'd google whether there's some for sweden too. I wouldn't be surprised if there was.
<Xeago> it is a very rough estimate
<darthdeus> Xeago: i don't have any of those :p
<Xeago> sorry I missed notable experience ;p
<matti> ;-)
<darthdeus> i'm applying for a job in sweden but i live in czech republic and i'm considering moving there, so ... :X
<Xeago> do you got your work-permit?
<atmosx> I'm trying to install gsl-rb manually. Apparently the 'ruby setup.rb install' script chooses the correct paths but I can't see or load the gsl gem... any ideas?
<darthdeus> Xeago: not yet
<Xeago> you have to decide what to do
<Xeago> move first, or move because of a (new) job
<Xeago> most of the time, it is easier to do the latter
tiripamwe has quit [Ping timeout: 264 seconds]
ralphvdh has quit [Quit: ralphvdh]
<darthdeus> i'll be moving because of the job, but i still haven't decided if i want to be an employee, or if i should try to work for them as a freelancer
<atmosx> I like Czech Republic. Czech people are a bit unfriendly generally speaking but apart from that it's awesome. I've heard Sweden is better though (from a Swedish girl)
<darthdeus> cuz as a freelancer i would get only 15% tax rate
deadalus has quit [Ping timeout: 260 seconds]
kaawee has quit [Ping timeout: 240 seconds]
<darthdeus> atmosx: average salary in Czech Republic is like 2-5 times less than everywhere else
<Xeago> if you plan to become a resident, get employed
<Xeago> it is a lot easier for the authorities
<atmosx> darthdeus: not "everywhere else" but I get your point.
<Xeago> if you work as a free lancer you might just loose your permit after the expiration
<Xeago> there's plenty of good females outhere atmosx :)
Araxia has joined #ruby
<matti> Sweden?
<Xeago> always a pleasure to look at when in the subways on lousy drousy mornings
freezey has quit [Quit: freezey]
<darthdeus> at my last interview i said i want 4.6k euro, and he kinda laughed and said he'll think about it ... and now he's asking me how much do i want, before the final interview :X so i'm not really sure what's going on :D
<Xeago> yea, stockholm for my case
<matti> Xeago: :D
<hweiqiu> <apeiros_>test={"192.168.203.28"=>{"ESTABLISHED"=>{"tcp"=>59}}, "192.168.204.119"=>{"ESTABLISHED"=>{"tcp"=>13}}, "192.168.203.10"=>{"ESTABLISHED"=>{"tcp"=>6}}, "192.168.204.73"=>{"ESTABLISHED"=>{"tcp"=>10}}}
freezey has joined #ruby
<matti> Xeago: Lucky you, then
deadalus has joined #ruby
dmilith has joined #ruby
<dmilith> how?
<hweiqiu> <apeiros_> test.sort_by{|key,value|
<hweiqiu> value.sort_by{|key1,value1|
<hweiqiu> value1.sort_by{|key2,value2|
<hweiqiu> }
<hweiqiu> value2
<hweiqiu> value1
<hweiqiu> }
<dmilith> how can I do it?
<hweiqiu> key
<apeiros_> hweiqiu: please use a pastebin
<hweiqiu> }
<apeiros_> e.g. gist.github.com
<dmilith> how can't I call ruby developers fucking morons?
<darthdeus> so, do you guys think 4.6k is a total overkill? :p
<atmosx> hweiqiu: use something
<hweiqiu> <apeiros_> does not work
<atmosx> hweiqiu: gist, pastebin, codapg
<atmosx> codepad... anything
<Xeago> matti: can only look, a little… moved to sweden cus of girlfriend lol
<matti> Xeago: Aaa...
filipe has quit [Read error: Connection reset by peer]
<Xeago> but I also enjoy the sight of the other girls that came with it ;p
Trioke has joined #ruby
<dmilith> why ruby installed in custom path, which has NOTHING to do with /usr/local has 171 occurences of /usr/local in BINARY DIR!?
<apeiros_> hweiqiu: you're supposed to return a sortable value from your sort_by block
<apeiros_> your data will then be sorted according to that value.
<dmilith> who the fuck is that moron who designed this trash language?
baphled has quit [*.net *.split]
mark_locklear has quit [*.net *.split]
zastern has quit [*.net *.split]
stopbit has quit [*.net *.split]
reuf has quit [*.net *.split]
kzrl has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
manizzle has quit [*.net *.split]
jimeh has quit [*.net *.split]
FDj has quit [*.net *.split]
rking has quit [*.net *.split]
kkiero has quit [*.net *.split]
greenarrow has quit [*.net *.split]
ccooke has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
musl has quit [*.net *.split]
wedgeV has quit [*.net *.split]
AwesomeGarethMan has quit [*.net *.split]
udk_ has quit [*.net *.split]
plu has quit [*.net *.split]
ahuman has quit [*.net *.split]
mattp_ has quit [*.net *.split]
neersighted has quit [*.net *.split]
zipkid has quit [*.net *.split]
Jb___ has quit [*.net *.split]
barefoot has quit [*.net *.split]
xkx has quit [*.net *.split]
alta has quit [*.net *.split]
elspeth has quit [*.net *.split]
Gonzih has quit [*.net *.split]
rcj_ has quit [*.net *.split]
faulkner has quit [*.net *.split]
ahuman has joined #ruby
ccooke has joined #ruby
FDj has joined #ruby
elspeth has joined #ruby
root has joined #ruby
AwesomeGarethMan has joined #ruby
kzrl has joined #ruby
kkiero has joined #ruby
Jb__ has joined #ruby
zipkid has joined #ruby
greenarrow has joined #ruby
wedgeV has joined #ruby
baphled has joined #ruby
mark_locklear has joined #ruby
jimeh has joined #ruby
<matti> Xeago: And you are from originally.
Gonzih has joined #ruby
<apeiros_> dmilith: behave or get lost
reuf has joined #ruby
xkx has joined #ruby
stopbit has joined #ruby
faulkner- has joined #ruby
neersighted has joined #ruby
manizzle has joined #ruby
faulkner- is now known as faulkner
plu has joined #ruby
kjellski_ has quit [Quit: This computer has gone to sleep]
rcj_ has joined #ruby
kupkovski_ has joined #ruby
barefoot has joined #ruby
rking has joined #ruby
alta has joined #ruby
<Xeago> simpelveld, limburg, netherlands
sixteneighty has joined #ruby
<Xeago> blog.xeago.nl/me
<dmilith> fucking morons
dmilith has left #ruby ["oOo oOo oOo"]
<matti> Lol
<matti> Blame the tools
sagax has quit [Quit: Ухожу я от вас]
<apeiros_> *shrug*
kil0byte has joined #ruby
<apeiros_> idiots, they come and go.
<Xeago> I once knew latitude and longitude of my bed exactly
ephemerian has quit [Quit: Leaving.]
kupkovski_ has quit [Read error: Connection reset by peer]
jso has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has joined #ruby
<matti> Xeago: Iiii dont need that :P
rakl has joined #ruby
<JonnieCache> Xeago: did you use that information to hit on people?
<Xeago> what information?
<JonnieCache> im havign a lot of fun imagining chatup lines featuring gps coordinates
kupkovski has joined #ruby
Agis__ has quit [Quit: Agis__]
<Xeago> lol
<Xeago> no
<Xeago> :P
<Xeago> only for maps
<matti> :P
<Xeago> and navigation
<Xeago> typing numbers has always been faster then typing street, number, city, etc
kupkovski has quit [Read error: Connection reset by peer]
<matti> Xeago: 404
CaptainKnots has quit [Client Quit]
<Xeago> wops, /posts/me
<apeiros_> Xeago: and on a/s/l you replied with a timestamp in seconds and your long/lat?
<JonnieCache> lol
<JonnieCache> the s there is implied
<Xeago> a/s/l?
mmitchell has joined #ruby
<apeiros_> oh
Trioke has quit [Ping timeout: 268 seconds]
Rydefalk has quit [Read error: Connection reset by peer]
<apeiros_> once the most common question on irc…
rumba has quit [Ping timeout: 245 seconds]
<apeiros_> age, sex, location
xavii has quit [Read error: Connection reset by peer]
<Xeago> oh that again..
<JonnieCache> apeiros_: someone else the other day didnt know what it meant either. whats the world coming to?
<atmosx> can someone give me the output of: ls ~/.rvm/rubies/default/lib/ruby
<Xeago> JonnieCache: that was me aswell
<apeiros_> JonnieCache: faaaaacebooooooook =(
<apeiros_> lol
barefoot has quit [Changing host]
barefoot has joined #ruby
<Xeago> facebook.com/xeago
<Xeago> comon how hard is it >.<
davidcelis has joined #ruby
Rydefalk has joined #ruby
<JonnieCache> 1.9.1
<JonnieCache> gems
<JonnieCache> vendor_ruby
<JonnieCache> site_ruby
mmitchel_ has quit [Ping timeout: 276 seconds]
<clocKwize> Xeago, your sexy
<atmosx> JonnieCache: you put an -l somewhere? :-P
<clocKwize> you're
<Xeago> ty, I love the dog tho
<Xeago> I missher
<JonnieCache> sorry yeah i forgot its an alias
<atmosx> okay, now I don't have a clue about wtf isn't working...
<apeiros_> JonnieCache: I guess the new reply to a/s/l is "facebook.com/%{username}"
<JonnieCache> hmmm actually no, when i run ls 1.9.1
<JonnieCache> gems
<JonnieCache> vendor_ruby
<JonnieCache> site_ruby
<JonnieCache> fuck sorry people
\13k has joined #ruby
<apeiros_> sorry-fuck not accepted (wrong gender)
<JonnieCache> but yeah apparently when i pipe ls into pbcopy it adds newlines
<JonnieCache> and when i dont, it doesnt
<apeiros_> oh? funny
<Xeago> indeed, weird
<apeiros_> behaviour of ls
<apeiros_> ls | cat does the same
<clocKwize> is that that correct way to treat an apologetic person?
coderhut has joined #ruby
<JonnieCache> just imagine i added a comma and calm down
jso has quit []
Trioke has joined #ruby
<Xeago> "181706 clocKwize: is that that correct way to treat an apologetic person?"?
<atmosx> I pay 100 Kc to anyone who will go to the super market and get me milk + corn flakes
zz_SegFaultAX is now known as SegFaultAX
<atmosx> but he has to go now
* atmosx looks at Xeago
<Xeago> where!?
aantix has joined #ruby
<Xeago> and what is a Kc?
<atmosx> it's like 450m from my room
zmo_ has joined #ruby
<atmosx> Czech Coruna
<Xeago> you are behind tor
<atmosx> Xeago: say 4 EUR
<Xeago> can't igure out where you are..
<clocKwize> Xeago, JonnieCache said: fuck sorry people ;p
<atmosx> Xeago: I know, I do it on purpose. I'm privacy-wiseass
<hweiqiu> <apeiros_> when it returns a sortable value ,what to do next?use sort_by on the return value again and again ?
<clocKwize> atmosx, doesn't that technically make you a paedophile?
<apeiros_> hweiqiu: no, you use it once. it iterates over the whole array and yields each item once. Enumerable#sort_by documentation tells you that.
<atmosx> clocKwize: how?
xorigin has quit [Quit: leaving]
blazes816 has joined #ruby
<apeiros_> ["apple", "pear", "fig"].sort_by {|word| word.length} # => ["fig", "pear", "apple"]
hbpoison has quit [Ping timeout: 260 seconds]
<atmosx> clocKwize: using tor you mean?
<apeiros_> from the Enumerable#sort_by docs - how to e.g. sort an array by length of word
<clocKwize> yes
<JonnieCache> hahaha
<JonnieCache> he could be a drug dealer!
teedex has joined #ruby
Ziioynx has joined #ruby
<atmosx> clocKwize: well, if you vote for Romney, I guess so.
jonathanwallace has quit [Remote host closed the connection]
<clocKwize> atmosx, I don't live in America
<atmosx> girlfriend called via facetime
MissionCritical has joined #ruby
<atmosx> bb
AlbireoX has joined #ruby
carloslopes has joined #ruby
<atmosx> clocKwize: me neither
<atmosx> but still...
<atmosx> bb
<JonnieCache> has romney promised to destroy tor
khakimov has joined #ruby
<matti> Romey
<matti> ?
<JonnieCache> thats gonna be funny when he gets in andthe cia tell him to go fuck himself
eignerchris has joined #ruby
<Xeago> you can't kill tor..
<apeiros_> damit, why there's no streetview in the sahara?
<JonnieCache> my point was, the cia use it all the time. they wont let anyone kill it
enroxorz-work has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
enroxorz-work has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
enroxorz-work has joined #ruby
Iszak has quit [Quit: User has gone to sleep.]
carlyle has quit [Remote host closed the connection]
<JonnieCache> like bitcoin
<JonnieCache> i bet the security services fucking love it
darthdeu has joined #ruby
darthdeu has quit [Client Quit]
<Xeago> thinkso
teedex has quit [Ping timeout: 240 seconds]
musl has joined #ruby
timonv has quit [Remote host closed the connection]
<Xeago> untainted money
<Xeago> that doesn't get tracked
<JonnieCache> now they dont have to mess about with all sorts of gold bars and diamonds and stuff to pay bribes and so on
kupkovski has joined #ruby
<JonnieCache> or however they do it
<clocKwize> I think they probably have access to untraceable US currency..
<clocKwize> being the CI mother fuckin A
samphippen has joined #ruby
<Xeago> clocKwize: it'd still be limited quantities
linoj has quit [Quit: linoj]
<Xeago> once they get a hold of a bitcoin, it is on an untracked budget
<JonnieCache> yeah but what if the informant is some random guy in a hostile country who cant have us currency anywhere near them, let alone large amounts
<clocKwize> What if they want to track the currency they pay
therod has joined #ruby
<JonnieCache> if i was in the pay of the cia working against my govt. i certainly wouldnt want suitcases full of dollars
lurksia has quit [Remote host closed the connection]
<clocKwize> or whatever
<clocKwize> I'm sure the CIA can get hold of any currency
darthdeus has quit [Ping timeout: 246 seconds]
<JonnieCache> you are right though the cia can basically do what they want. it more applies to other less countries
<JonnieCache> s/less/lesser
brianpWins has quit [Quit: brianpWins]
ryanlecompte has joined #ruby
<clocKwize> anyway, I must go - I'm meeting some old colleagues to have a drink or 2(3, 4, 5, 6, 7, 8..)
zhangwei has joined #ruby
<JonnieCache> rand(2..Math::INFINITY)
<Xeago> anyone going to dreamhack btw?
* Xeago wants to split costs
kupkovski has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: quiting...]
mattp_ has joined #ruby
linoj has joined #ruby
<JonnieCache> whats dreamhack?
<Xeago> erhm, worlds biggest lan?
<clocKwize> wow
joeycarmello has joined #ruby
<clocKwize> I want in
<clocKwize> how much does that shit cost
<Xeago> dreamhack.se
ABK has joined #ruby
<JonnieCache> a lanparty?
deadalus has quit [Read error: Connection timed out]
<clocKwize> I'm on it
zigomir has quit [Read error: Operation timed out]
caleb_io has joined #ruby
<JonnieCache> fuck that save your money and come to 29c3
<Xeago> I go for the community, programming lounge, providing hosting support, and sc2 compo's
deadalus has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
vonsar has joined #ruby
<JonnieCache> or you could come to the chaos computer club's annual convention
<clocKwize> wow, thats like 51 GBP
<clocKwize> for the whole event
<JonnieCache> the whole place is one big programming lounge
<Xeago> pretty cheap
<clocKwize> and 40 GBP for a flight
Uranio has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
<clocKwize> anyway, must dash.
<clocKwize> laters
ABK has joined #ruby
cdt has quit [Quit: Ex-Chat]
moshef has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
ABK has quit [Read error: Connection reset by peer]
hweiqiu has quit [Quit: Leaving]
ABK has joined #ruby
joeycarmello has quit [Ping timeout: 276 seconds]
dpatel has joined #ruby
whaley_ is now known as whaley
G has quit [Ping timeout: 240 seconds]
Voxxit has quit [Ping timeout: 245 seconds]
Spaceghostc2c has quit [Ping timeout: 245 seconds]
caleb_io has quit [Quit: caleb_io]
daniel_- has quit [Ping timeout: 244 seconds]
mahmoudimus has joined #ruby
rcassidy has joined #ruby
<rcassidy> is there support for PF_PACKET anywhere in ruby for raw socket work?
nick_h has quit [Ping timeout: 246 seconds]
<rcassidy> poking around in Socket to no luck
nick_h has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
zooz has quit [Quit: Leaving IRC]
Spaceghostc2c has joined #ruby
tungd has quit [Quit: tungd]
Voxxit has joined #ruby
mucker_ has left #ruby [#ruby]
moshef has quit [Quit: moshef]
G has joined #ruby
fermion has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 264 seconds]
fermion has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
jonathanwallace has joined #ruby
JonnieCache has quit [Ping timeout: 240 seconds]
artOfWar has joined #ruby
fgro has quit [Ping timeout: 260 seconds]
dylanjha has joined #ruby
darthdeus has joined #ruby
uuair has quit [Quit: uuair]
tallica has joined #ruby
haxrbyte has quit [Remote host closed the connection]
voodoofish430 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
tallica has left #ruby ["WeeChat 0.3.8"]
iamjarvo has joined #ruby
ABK has quit [Read error: Connection reset by peer]
kaawee has joined #ruby
ABK has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
stephenjudkins has joined #ruby
AlbireoX has quit [Ping timeout: 268 seconds]
haxrbyte has joined #ruby
robotmay has quit [Ping timeout: 244 seconds]
zhangwei has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 255 seconds]
paolooo has quit [Quit: Page closed]
Ankhers has quit [Read error: Operation timed out]
skum has quit [Quit: Leaving...]
wallerdev has joined #ruby
timonv has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 245 seconds]
Araxia has joined #ruby
jgrevich has joined #ruby
mmitchell has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
kaawee has quit [Ping timeout: 244 seconds]
ABK has joined #ruby
amoe_ has joined #ruby
dhruvasagar has joined #ruby
<amoe_> when compiling ruby 1.8, is there any way to disable the building of a certain extension?
apok has joined #ruby
mrsolo has joined #ruby
ABK has quit [Read error: Connection reset by peer]
SegFaultAX is now known as zz_SegFaultAX
noxoc has quit [Read error: Operation timed out]
elaptics is now known as elaptics`away
ABK has joined #ruby
linoj has quit [Quit: linoj]
chussenot has quit [Quit: chussenot]
akemEikko has quit [Ping timeout: 256 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
brianpWins has joined #ruby
ABK has quit [Read error: Connection reset by peer]
theRoUS has quit [Ping timeout: 264 seconds]
alfism has joined #ruby
ABK has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
d3vic3 has quit [Quit: leaving]
Rydefalk has joined #ruby
teedex has joined #ruby
und3f has quit [Read error: Connection reset by peer]
Spami has quit [Quit: Leaving]
timonv has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
djbpython has joined #ruby
wallerdev has quit [Quit: wallerdev]
timonv has joined #ruby
und3f has joined #ruby
caleb_io has joined #ruby
baphled has quit [Ping timeout: 260 seconds]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
ABK has quit [Read error: Connection reset by peer]
nitti has quit [Remote host closed the connection]
teedex has quit [Ping timeout: 272 seconds]
ABK has joined #ruby
sailias has quit [Quit: Leaving.]
rasbonics has joined #ruby
hbpoison has joined #ruby
tyfighter has joined #ruby
chussenot has joined #ruby
zz_SegFaultAX is now known as SegFaultAX
yshh has quit [Remote host closed the connection]
<shevy> amoe_ I think only by removing the directory there
vlad_starkov has quit [Remote host closed the connection]
<shevy> otherwise, make probably recursively tries to enter it
<shevy> perhaps it works if you move it away temporarily
apok_ has joined #ruby
bradhe has joined #ruby
aantix has quit [Ping timeout: 244 seconds]
Uranio has joined #ruby
noxoc has joined #ruby
dmiller has quit [Remote host closed the connection]
sotu has joined #ruby
yxhuvud has joined #ruby
apok has quit [Ping timeout: 244 seconds]
apok_ is now known as apok
<amoe_> shevy: thanks, that works :)
kaawee has joined #ruby
<shevy> really??
<shevy> cool
<shevy> I usually work the other way
philcrissman has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 260 seconds]
<shevy> some extension does not work
<shevy> so I go into ext/NAME_OF_EXTENSION
ABK has quit [Read error: Connection reset by peer]
<shevy> and run make or extconf.rb there
<shevy> and try to fix what's missing
<shevy> usually missing .h files
ABK has joined #ruby
kn330 has quit [Ping timeout: 240 seconds]
Virunga has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
bluenemo has quit [Read error: Connection reset by peer]
recycle has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
zomgbie has quit [Ping timeout: 248 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
irleif has joined #ruby
bemson has joined #ruby
teedex has joined #ruby
irleif has quit [Client Quit]
gridaphobe has joined #ruby
jeffreybaird has joined #ruby
ffranz1 has joined #ruby
ejholmes has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
love_color_text_ has quit [Remote host closed the connection]
love_color_text has joined #ruby
shadoi has joined #ruby
LucidDreamZzZ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ has joined #ruby
irleif has joined #ruby
timonv has quit [Remote host closed the connection]
rabidpra_ has joined #ruby
rabidpraxis has quit [Read error: Connection reset by peer]
g-ram has joined #ruby
ffranz has quit [Ping timeout: 268 seconds]
Cicloid has joined #ruby
maskact has joined #ruby
heftig has joined #ruby
<RubyPanther> or rename the Makefile
g-ram has quit [Client Quit]
treyryan has joined #ruby
<RubyPanther> (presumably, I don't actually do that)
Araxia has joined #ruby
Araxia_ has quit [Read error: Connection reset by peer]
rabidpra_ has quit [Remote host closed the connection]
kn330 has joined #ruby
rabidpraxis has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
daniel_-_ has joined #ruby
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
chichou has joined #ruby
ABK has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 252 seconds]
ABK has joined #ruby
kdridi has joined #ruby
psychouroboros has joined #ruby
psychouroboros has quit [Changing host]
psychouroboros has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
chichou has quit [Remote host closed the connection]
Rydefalk has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
sent-hil has quit [Remote host closed the connection]
asuka has quit [Ping timeout: 255 seconds]
Synthead has joined #ruby
BadProphet has joined #ruby
chichou has joined #ruby
sepp2k1 has joined #ruby
shevy has quit [Read error: Operation timed out]
deadalus has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
xargoon has quit [Ping timeout: 265 seconds]
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk_ has joined #ruby
sepp2k has quit [Ping timeout: 244 seconds]
psychouroboros is now known as deadalus
zomgbie has joined #ruby
recycle has joined #ruby
zmo_ has quit [Ping timeout: 248 seconds]
RubyPanther has quit [Ping timeout: 260 seconds]
RubyPanther has joined #ruby
zomgbie has quit [Ping timeout: 265 seconds]
ABK has quit [Read error: Connection reset by peer]
sent-hil has joined #ruby
ABK has joined #ruby
orion has joined #ruby
Neomex has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
<orion> Hi. I installed a bunch of gems in to vendor/bundle (including rails) and I want to start the rails server. I did `./vendor/bundle/ruby/1.9/bin/rails s' but that command failed, saying it couldn't find the gem in my ~/.gem folder. How do I tell it to look for gems in vendor/bundle?
Araxia has joined #ruby
philcrissman has joined #ruby
blischalk has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
baroquebobcat has quit [Quit: baroquebobcat]
xargoon has joined #ruby
apok has quit [Remote host closed the connection]
apok has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
ABK has quit [Read error: Connection reset by peer]
kaawee has quit [Ping timeout: 240 seconds]
Rydefalk has joined #ruby
ABK has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
jrajav has joined #ruby
c0rn_ has joined #ruby
ABK has joined #ruby
jrist is now known as jrist-afk
teedex has quit [Remote host closed the connection]
mmitchell has joined #ruby
shevy has joined #ruby
ABK has quit [Read error: Connection reset by peer]
Serial_Killer_C has joined #ruby
Axsuul has joined #ruby
lampe2 has joined #ruby
ABK has joined #ruby
atmosx has joined #ruby
<mr-rich> Hello. Any savon gem users here?
SegFaultAX is now known as zz_SegFaultAX
mmitchell has quit [Remote host closed the connection]
Tom2 has quit [Ping timeout: 260 seconds]
airtanah_ has quit [Quit: WeeChat 0.3.9]
vonsar has quit [Ping timeout: 244 seconds]
treyryan has left #ruby [#ruby]
treyryan has joined #ruby
treyryan has left #ruby [#ruby]
sepp2k1 has quit [Quit: Leaving.]
sepp2k has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
bradhe has quit [Read error: No route to host]
samphippen has joined #ruby
bradhe has joined #ruby
tvw has quit [Remote host closed the connection]
<crocket> "Fetching gem metadata from http://rubygems.org/."; fails
linoj has joined #ruby
vonsar has joined #ruby
knite has joined #ruby
Tom2 has joined #ruby
k610 has joined #ruby
kdridi has quit [Quit: This computer has gone to sleep]
sent-hil has quit [Read error: Connection reset by peer]
<crocket> "Fetching full source index from http://rubygems.org/" also fails.
Araxia has quit [Read error: No route to host]
Araxia_ has joined #ruby
<blazes816> crocket: rubygems.org is having some issues right now
imami|afk is now known as banseljaj
<blazes816> by right now I mean ~ a week now
mmitchell has joined #ruby
<crocket> blazes816, What do I do?
<crocket> bundle install can't be done.
<blazes816> eh, it shouldn't be totally fatal
<blazes816> what's your Gemfile look like?
<blazes816> at least the top section
<crocket> blazes816, source :rubygems
<blazes816> try: source "http://rubygems.org"
reinaldob has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<crocket> Gemfile syntax error:
<crocket> source :http://rubygems.org
k610 has quit [Ping timeout: 245 seconds]
slainer68 has joined #ruby
<blazes816> source "http://rubygems.org"
bradhe has quit [Read error: No route to host]
teedex has joined #ruby
bradhe_ has joined #ruby
jcaudle has quit [Read error: Connection reset by peer]
jcaudle has joined #ruby
maskact has left #ruby [#ruby]
<crocket> blazes816, It doesn't make a difference.
Araxia_ is now known as Araxia
k610 has joined #ruby
hotovson has quit [Remote host closed the connection]
AlbireoX has joined #ruby
c0rn_ has joined #ruby
jrajav has quit []
coderhut has quit [Quit: Page closed]
chendo_ has quit [Ping timeout: 246 seconds]
jbw has quit [Ping timeout: 260 seconds]
Rydefalk has quit [Read error: Connection reset by peer]
glyytchy has joined #ruby
Rydefalk has joined #ruby
Xeago has joined #ruby
<crocket> It's down!!!
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
__zfn__ has joined #ruby
chendo_ has joined #ruby
sent-hil has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
Virunga has joined #ruby
<jcaudle> crocket: rubygems.org isn't down. The dependency API is just off for a while until things can get worked out.
jbw has joined #ruby
<crocket> jcaudle, So is it off?
<jcaudle> What is keeping bundler from installing?
k610 has joined #ruby
nitti_ has joined #ruby
<crocket> jcaudle : rubygems.org is unresponsive.
<crocket> jcaudle, "Fetching full source index from http://rubygems.org/" fails
hbpoison has joined #ruby
<jcaudle> what error message do you get there?
chussenot has quit [Quit: chussenot]
samphippen has quit [Quit: Computer has gone to sleep.]
kdridi has joined #ruby
<crocket> jcaudle : "Error Bundler::HTTPError during request to dependency API"
<jcaudle> That isn't stopping the install, or at least it shouldn't
<jcaudle> what do you get after the "Fetching full source index" message?
Juul has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
<crocket> jcaudle, "Enter your password to install the bundled RubyGems to your system:"
<crocket> But my account doesn't have a password.
<jcaudle> what happens if you just hit enter?
greenail has joined #ruby
Raboo has quit [Ping timeout: 240 seconds]
margle has joined #ruby
<jcaudle> The password prompt is likely because you are doing this through sudo or something
<crocket> jcaudle, "su - chiliproject"
Raboo has joined #ruby
<greenail> quick threading question... while boolean_varriable_name, should this be while mutex.synchronize{boolean_varriable_name}
<jcaudle> crocket: are you getting an error message?
<greenail> if i change the boolean_varriable_name outside of thread
<crocket> jcaudle, "Error Bundler::HTTPError during request to dependency API"
k610 has quit [Ping timeout: 265 seconds]
<crocket> I'm running "bundle install" again as root.
k610 has joined #ruby
sailias has joined #ruby
dhruvasagar has joined #ruby
bradhe_ has quit [Ping timeout: 268 seconds]
hbpoison has quit [Ping timeout: 265 seconds]
<crocket> jcaudle, It's totally gone out.
robustus has joined #ruby
__zfn__ has quit [Quit: KVIrc 4.1.1 Equilibrium http://www.kvirc.net/]
downtown has joined #ruby
__zfn__ has joined #ruby
skryking has joined #ruby
dakine has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
sent-hil has quit [Remote host closed the connection]
slainer68 has joined #ruby
<jcaudle> crocket: What do you mean by that?
downtown has left #ruby [#ruby]
<crocket> jcaudle, I see that error twice before it proceeds installing.
<jcaudle> That should be fine
Araxia has quit [Read error: Connection reset by peer]
k610 has quit [Ping timeout: 255 seconds]
<crocket> jcaudle, It used to show me that error just once.
<crocket> It's annoying.
<jcaudle> crocket: the dependency API is out, but it doesn't matter
<greenail> maybe this is easier to grok, which option is best? https://gist.github.com/3947901
Araxia has joined #ruby
<crocket> jcaudle, And the fact that it's out delays bundler.
<jcaudle> crocket: right. If you'd like to help out with fixing it you're more than welcome to, but right now it's down until a fix is found.
k610 has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
timonv has joined #ruby
samphippen has joined #ruby
ABK has quit [Ping timeout: 268 seconds]
<jcaudle> crocket: rubygems.org has more information on the top bar about how to help out
sent-hil has joined #ruby
kdridi has quit [Quit: This computer has gone to sleep]
bradhe has joined #ruby
pskosinski has joined #ruby
<jcaudle> crocket: Bundler was designed to be able to handle dependencies, but the dependency API offloads it from your machine to the servers. It's just a speed thing.
<apeiros_> greenail: make it a method (running?) and handle the logic there. your 3 solutions do different things btw., so can't really answer.
<greenail> aperios_ where can I read about the impact of the 3 solutions?
<greenail> i don't see it covered in the standard ruby threading stuff i've found
vlad_starkov has joined #ruby
nopolitica has quit [Ping timeout: 264 seconds]
<apeiros_> greenail: hint, use tab completion for nicks in irc. makes you not typo them :-p
k610 has quit [Ping timeout: 240 seconds]
<greenail> i'm using ircii, i forget how to get tab completion working ;(
<apeiros_> well, a local variable is shared across all threads (lexical scope is orthogonal to threading)
* greenail shakes his fist at his old crippled command line irc client
<apeiros_> while Thread#[] stores values thread-locally
iamjarvo has quit [Quit: Computer has gone to sleep.]
Russell^^ has joined #ruby
k610 has joined #ruby
bricker_ has joined #ruby
emmanuelux has joined #ruby
<greenail> apeiros_ so you are saying thr[:running] only effects running in the thread scope?
<greenail> so if i had 3 threads going all evaluating "running" only the thr1[:running] = false would only change thr1
<greenail> assuming i name the 3 threads thr1,thre2...
Araxia has quit [Ping timeout: 244 seconds]
bapa has quit [Quit: No Ping reply in 180 seconds.]
bricker has quit [Ping timeout: 260 seconds]
psycho_one has joined #ruby
vlad_starkov has quit [Ping timeout: 244 seconds]
chussenot has joined #ruby
Araxia has joined #ruby
anderse has joined #ruby
k610 has quit [Ping timeout: 265 seconds]
kdridi has joined #ruby
bapa has joined #ruby
k610 has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
ABK has joined #ruby
spinagon is now known as rippa
k610 has quit [Ping timeout: 245 seconds]
k610 has joined #ruby
[-mX-] has joined #ruby
<apeiros_> greenail: yes
<apeiros_> ri Thread#[]
choffstein has joined #ruby
[-mX-] has quit [Client Quit]
Neomex has quit [Quit: Neomex]
mib_mib has joined #ruby
<mib_mib> does closure-compiler gem work on css ?
zz_SegFaultAX is now known as SegFaultAX
Serial_Killer_C has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 260 seconds]
glyytchy has quit [Quit: glyytchy]
\13k has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
Tom2 has quit [Quit: Leaving]
k610 has joined #ruby
Rhynn has quit [Ping timeout: 256 seconds]
<Uranio> I was trying get the remote context lenght of something but all the methods look like must get the whole "something" before get the lenght
glyytchy has joined #ruby
<Uranio> for example... get_response(URI("http://db.local.clamav.net/daily.cvd")).header["content-type"]
<Uranio> would be return the content type after get the whole page
<Uranio> that is weird
psycho_one has quit [Remote host closed the connection]
chichou has quit [Ping timeout: 244 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<greenail> apeiros_ so this is threadsafe? no mutexes required? https://gist.github.com/3948056
Serial_Killer_C has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
k610 has joined #ruby
samphippen has joined #ruby
<greenail> i know almost no c, but looking at the source I dont' see any way the thing is locking
Astral_ has joined #ruby
zomgbie has joined #ruby
areil has quit [Remote host closed the connection]
lampe2 has quit [Ping timeout: 240 seconds]
anderse has quit [Quit: anderse]
ABK has quit [Read error: Connection reset by peer]
Guest96551 has quit [Ping timeout: 245 seconds]
k610 has quit [Ping timeout: 252 seconds]
ABK has joined #ruby
julio_ has joined #ruby
bbttxu has joined #ruby
k610 has joined #ruby
zomgbie has quit [Ping timeout: 245 seconds]
snearch has joined #ruby
jrajav has joined #ruby
linoj has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
chrisramon has joined #ruby
linoj has joined #ruby
<mr-rich> Hello. Any savon gem users here?
jenrzzz has quit [Ping timeout: 260 seconds]
Araxia has quit [Read error: No route to host]
jeffreybaird has quit [Quit: jeffreybaird]
Rhynn has joined #ruby
choffstein has quit [Remote host closed the connection]
kirun has joined #ruby
walbert has joined #ruby
iamjarvo has joined #ruby
h4mz1d has joined #ruby
statarb3 has quit [Quit: Leaving]
BrianJ has joined #ruby
iamjarvo has quit [Client Quit]
k610 has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
iamjarvo has joined #ruby
k610 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<rking> mr-rich: Me, actually. What's up?
Araxia has joined #ruby
chrisramon has left #ruby [#ruby]
<mr-rich> rking: oh thank god ...
<mr-rich> I'm new to soap/wsdl and I need some pointers ...
Neomex has joined #ruby
chrisramon has joined #ruby
jenrzzz has joined #ruby
ejholmes has quit [Quit: ejholmes]
ejholmes has joined #ruby
<mr-rich> the wdsl I'm working with has some VERY complex types and I'm having trouble structuring a call ...
maletor has joined #ruby
<mr-rich> rking: I guess what I'm looking for is a way to use savon to dump out the COMPLETE structure of the complex types.
BrianJ has quit [Ping timeout: 264 seconds]
<mr-rich> rking: I istalled soapui pro (14 day trial) and the Form tab tells me nothing ...
k610 has quit [Ping timeout: 260 seconds]
<mr-rich> s/istalled/installed/
<rking> mr-rich: Wait, do you just mean you want to see some interpretation of the WSDL?
chichou has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
k610 has joined #ruby
deadalus has quit [Quit: Leaving]
<mr-rich> rking: yes ... I suppose that's what I need. I can't find any tool that will dump out the COMPLETE structure of a complex type ... I am a geek, but soap/wsdl is new to me ...
chichou has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 265 seconds]
<rking> mr-rich: Well, WSDL XML is no tame beast, but that'll say 100% of what you want
<mr-rich> rking: I'm trying to use Ruby to communicate with an F5 device ...
sent-hil has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
<rking> mr-rich: Are you telling Savon the WSDL URL?
theRoUS has quit [Read error: Operation timed out]
<mr-rich> rking: No kidding ... I'm finding that out ...
<mr-rich> rking: yes, I have a small script working with a local wsdl file ...
k610 has quit [Ping timeout: 268 seconds]
<rking> OK, so just look at it in your browser.
Morkel_ has joined #ruby
<rking> Link?
k610 has joined #ruby
<mr-rich> no like ... local file
<mr-rich> link even
chrisramon has left #ruby [#ruby]
<mr-rich> I can paste bin it ...
Morkel has quit [Ping timeout: 244 seconds]
Morkel_ is now known as Morkel
<kaleido> the f5 api is a horrifying thing
jrist-afk is now known as jrist
asuka has joined #ruby
kirun has quit [Quit: Client exiting]
sent-hil has joined #ruby
<mr-rich> kaleido: no kidding ...
hbpoison has joined #ruby
<mr-rich> kaleido: do you know any about it?
k610 has quit [Ping timeout: 252 seconds]
<rking> mr-rich: Which thing are you looking to describe?
<mr-rich> rking: create_user_3
kirun has joined #ruby
rakl has quit [Quit: sleeping]
<rking> Request, Response, or both?
k610 has joined #ruby
<mr-rich> my boss wants me to use Ruby & iControl to automate adding users to devices
<mr-rich> rking: request
<mr-rich> rking: I'll deal with the response later ...
julio_ has quit [Ping timeout: 256 seconds]
<kaleido> i was lucky enough to avoid being responsible for the stuff we automated
<mr-rich> rking: I tried to read through that mess ... it's like trying to read a plate of spagetti ...
* atmosx likes spaghetti
<atmosx> I don't have a clue what you're talking about though
chriskk has joined #ruby
jeffreybaird has joined #ruby
Xeago has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
<mr-rich> rking: How would I structure a hash to submit a request?
<Xeago> greenail: that is not threadsafe
dekroning has joined #ruby
kpshek has quit []
Tuxist has joined #ruby
<rking> mr-rich: Did you look at Create_User_3 > Request 1 in SoapUI?
<mr-rich> rking: yes
k610 has quit [Ping timeout: 264 seconds]
k610 has joined #ruby
<rking> So the XML thing where it does <users> <user>1</user> … </users> is unnatural in the Ruby call
<rking> 1min
<rcassidy> >> p "ping"
* rcassidy misses the bot
Araxia has quit [Read error: No route to host]
<rking> That actually looks like this:
<mr-rich> rking: it has one line in the middle with that VERY complex type ... That's the part I need to figgure out ...
Araxia has joined #ruby
<rking> { users: { user: [ 1, 2 ] } in the savon call
<rking> mr-rich: Right. But even before you can do that you have to get that ☝ right
linoj has quit [Quit: linoj]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
jenrzzz has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
irleif has joined #ruby
elaptics`away is now known as elaptics
k610 has joined #ruby
<rking> mr-rich: Yeah, this is a pain. =)
<rking> Line 48 of the WSDL defines Management.UserManagement.UserInfo3Sequence
ABK has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
<mr-rich> rking: is there a way to dump out the structure of the complex type?
<rking> Line 78 defines Management.UserManagement.UserInfo3
eignerchris has quit [Remote host closed the connection]
ABK has joined #ruby
<rking> Then that has user/permissions/password/login_shell, only the last of which is a simple string.
<rking> mr-rich: Have you absolutely no example code to look at?
JonnieCache has joined #ruby
bemson has quit [Quit: bemson]
<mr-rich> rking: none for create_user_3 ... I can get to a code example for create_user_2, but much as changed ...
<rking> Well, use that to map your way out of this dark chamber.
<rking> Read the example for _2, look at how that is expressed in the WSDL, then reverse that for _3
<mr-rich> rking: and the sample is is C# ...
caleb_io has quit [Quit: caleb_io]
sent-hil has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 252 seconds]
baphled has joined #ruby
<atmosx> apeiros_: you alive?
k610 has joined #ruby
sent-hil has joined #ruby
<rking> mr-rich: Try to make a call with a pretty bogus thing.
<rking> mr-rich: Hopefully the error messages can guide you to the end.
<reactormonk> atmosx, yes, he is
jenrzzz has quit [Ping timeout: 268 seconds]
<apeiros_> I might
tothehilt has joined #ruby
eignerchris has joined #ruby
<mr-rich> rking: Hopefully ... I'll let you know ... I'm gonna go play ...
BadProphet has quit [Quit: This computer has gone to sleep]
<mr-rich> rking: thank you for your help so far ...
havenn has joined #ruby
<apeiros_> atmosx: why?
glyytchy has quit [Quit: glyytchy]
ABK has quit [Read error: Connection reset by peer]
JonnieCache has quit [Read error: Operation timed out]
ABK has joined #ruby
crocket has left #ruby ["Leaving"]
sent-hil has quit [Remote host closed the connection]
linoj has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
<shevy> are there any useful ruby-GUI bindings at all?
BrianJ has joined #ruby
<greenail> xeago, do i need a synchronize for every access to :running?
AlbireoX`Laptop has joined #ruby
__zfn__ has quit [Quit: KVIrc 4.1.1 Equilibrium http://www.kvirc.net/]
d2dchat has joined #ruby
sent-hil has joined #ruby
coffer has quit [Remote host closed the connection]
jaygen has joined #ruby
<atmosx> apeiros_: I was about to ask you a couple of questions about arrays ('-' method) but I'm performing some tests to see how can I get what I want. Thanks, seems okay so far
kn330 has quit [Read error: Connection reset by peer]
alvaro_o__ has joined #ruby
AlbireoX has quit [Ping timeout: 240 seconds]
AlbireoX`Mac has joined #ruby
bemson has joined #ruby
bricker_ has quit [Quit: leaving]
bricker has joined #ruby
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
greasegum has joined #ruby
<apeiros_> atmosx: you are aware that ruby comes with docs? :)
Monie has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
ABK has quit [Read error: Connection reset by peer]
alvaro_o_ has quit [Ping timeout: 245 seconds]
ABK has joined #ruby
robertotauille has quit [Quit: Leaving...]
philcrissman has quit [Remote host closed the connection]
blischalk has quit [Quit: blischalk]
Tuxist has quit [Read error: Connection reset by peer]
<greenail> also i'm confused about mutexes. Do i need to use the same mutex for accessing an object or would Mutex.new.synchronize{} work anywhere
robert__ has quit [Read error: Connection reset by peer]
robert__ has joined #ruby
havenn has joined #ruby
carlyle has joined #ruby
cczona has joined #ruby
timte has joined #ruby
<greenail> i guess people are cavalier about bool with threads becaus I've never seen while mutex.synchronize{run?}
caleb_io has joined #ruby
Monie has quit [Read error: Connection reset by peer]
robert__ has quit [Read error: Connection reset by peer]
julio__ has joined #ruby
greasegum has quit [Read error: Connection reset by peer]
Juul has joined #ruby
margle has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ckrailo has joined #ruby
<atmosx> apeiros_: yeah, sure... I type 'gem server' quite often :-P
cczona has quit [Client Quit]
chriskk has quit [Quit: chriskk]
greasegum has joined #ruby
<greenail> is this threadsafe? https://gist.github.com/3948451
nitti_ has quit [Ping timeout: 256 seconds]
Mon_Ouie has quit [Ping timeout: 244 seconds]
havenn has quit [Remote host closed the connection]
aaroncm has joined #ruby
nitti has joined #ruby
<greenail> sry, i meant this https://gist.github.com/3948459
ejholmes has quit [Quit: ejholmes]
<greenail> the other one is broken
kaawee has joined #ruby
cpruitt has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
kpshek has joined #ruby
nitti has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
havenn has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
davidcelis has joined #ruby
dylanjha has quit [Quit: Leaving...]
chessguy has joined #ruby
Serial_Killer_C has joined #ruby
jslowe has joined #ruby
<greenail> wow, lots os scroll here
Araxia_ has joined #ruby
Araxia has quit [Read error: No route to host]
Araxia_ is now known as Araxia
davidcelis has quit [Client Quit]
<apeiros_> atmosx: you could just type it once and let it keep running…
kirun_ has joined #ruby
robert_ has quit [Ping timeout: 256 seconds]
<apeiros_> greenail: Queues are thread safe, yes
<apeiros_> actually reading your code - it's an odd use of a queue, though
apok_ has joined #ruby
<greenail> well i'm just learning
<greenail> i'm really considering useing zeromq to just pass messages and forget about mutexes
ejholmes has joined #ruby
<greenail> but i though it doesn't hurt to learn a bit about threading in ruby
kirun has quit [Ping timeout: 265 seconds]
Neomex has quit [Quit: Neomex]
<greenail> apeiros_, what about mutexes, do you need to use the same mutex instance?
ABK has quit [Read error: Connection reset by peer]
<apeiros_> greenail: there are no silver bullets to concurrency issues.
ABK has joined #ruby
nitti has joined #ruby
<apeiros_> greenail: a mutex is like a door. if you have two doors it's no use to lock a door which doesn't lead to the thing you want to protect…
<apeiros_> *to lock the one door which…
<greenail> ya that is logical, but it isn't in the documentation anywhere obvious
<greenail> i suppose mutex could be a singleton
vlad_starkov has joined #ruby
apok has quit [Ping timeout: 264 seconds]
apok_ is now known as apok
<apeiros_> greenail: um, that'd make no sense
fermion has quit [Quit: P]
<apeiros_> and not being a singleton isn't something that needs documentation
nanderoo has quit [Quit: Leaving.]
jrajav has quit []
<apeiros_> you do not document the normal case. you document the exception.
darthdeus has quit [Quit: Leaving...]
kpshek has quit []
ephemerian has joined #ruby
<greenail> i was just thinking out loud, but where ides it say that you need to use the same mutex? I don't see that.
<greenail> s/ides/does/
timte has quit [Quit: timte]
conor_ireland has joined #ruby
davidcelis has joined #ruby
daniel_-_ has quit [Ping timeout: 245 seconds]
<atmosx> that's not possible
<atmosx> apeiros_: I do in 1 second what took me over 6 minutes to achieve... :-/ wtf
<apeiros_> greenail: that's like asking "do I have to push to the same array?"
<apeiros_> it makes no sense, really
codefyre has joined #ruby
<greenail> apeiros_ i suppose it is ;)
<greenail> forgive my noobness
kpshek has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<apeiros_> I do agree that ruby docs have some weak spots
teedex has quit [Remote host closed the connection]
<apeiros_> but this one… I think this one is self evident
vlad_starkov has joined #ruby
enroxorz-work has quit [Read error: Connection reset by peer]
<greenail> there isn't exactly a wealth of documentation on ruby threading best practices
maletor has quit [Quit: Computer has gone to sleep.]
enroxorz-work has joined #ruby
glyytchy has joined #ruby
<greenail> ok, so anyway, let's say I want to use zeromq
sent-hil has quit [Remote host closed the connection]
Vinz_ is now known as Vinz_`
xorigin has joined #ruby
endzyme has joined #ruby
baphled has quit [Ping timeout: 260 seconds]
<greenail> if i do Marshal.dump(obj) i can pass that around and not worry about any contention right?
<endzyme> how do i include a local library such as "fog"
<endzyme> i have new changes to the source i wanted to test
<greenail> if it's just marshelled into a string it's free
<greenail> endzyme load './fog.rb', or require './fog.rb'
<greenail> assuming it's in a file named fog.rb
<greenail> or is it in an gem?
ABK has quit [Read error: Connection reset by peer]
<atmosx> I use require_relative
<endzyme> greenail: not a gem file
<atmosx> but okay...
<atmosx> whatever goes I augess
jenrzzz has joined #ruby
ABK has joined #ruby
<greenail> i've always wondered why explisit path is something you never see in a require
<greenail> er explisit relative path
<greenail> "."
stephenjudkins has quit [Quit: stephenjudkins]
answer_42 has quit [Ping timeout: 276 seconds]
Criztian has joined #ruby
nitti has quit [Quit: Leaving...]
sailias has quit [Quit: Leaving.]
<greenail> so anyone using zeromq message passing for multithreading?
eboaz has quit [Ping timeout: 246 seconds]
kartouch has quit [Quit: ZNC - http://znc.sourceforge.net]
<endzyme> When i load up irb i already have the contants initialized
Neomex has joined #ruby
AlbireoX`Mac has quit [Remote host closed the connection]
<greenail> endzyme did you install it as a gem?
vlad_starkov has quit [Remote host closed the connection]
<greenail> or is it in a .rb file?
AlbireoX has joined #ruby
<endzyme> greenail: i had originally installed it as a gem - now I am contributing but finding it hard to test
<greenail> if it's THE fog gem, use require 'rubygems';require 'fog'
<greenail> oh, use bundler
dylanjha has joined #ruby
<endzyme> gotcha
<endzyme> how's that work
<greenail> bundle console
<greenail> in the git root
axl__ has joined #ruby
<endzyme> greenail: rockin
<greenail> that should pull it in
baphled has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
justinweiss has joined #ruby
<endzyme> it didn't :-/
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
codefyre has quit [Quit: Leaving]
k610 has quit [Ping timeout: 240 seconds]
dmiller has quit [Remote host closed the connection]
AlbireoX has quit [Ping timeout: 240 seconds]
<endzyme> im an idiot
<endzyme> sorry
<shevy> hey endzyme
ABK has quit [Ping timeout: 255 seconds]
<endzyme> shevy: yo
<shevy> do you have a "d" too much and wanted to be known as enzyme? :-)
Neomex has quit [Quit: Neomex]
<endzyme> shevy: it's intentional
daniel_-_ has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jamesaxl has quit [Read error: Operation timed out]
anderse has joined #ruby
vonsar has quit [Ping timeout: 245 seconds]
rakl has joined #ruby
anderse has quit [Client Quit]
ionte has quit [Ping timeout: 260 seconds]
therod has quit [Quit: Leaving...]
CaptainJet has joined #ruby
<davidcelis> intendtional*
<davidcelis> FTFY
ionte has joined #ruby
eboaz has joined #ruby
sent-hil has joined #ruby
schronicles47 has joined #ruby
maletor has joined #ruby
<endzyme> davidcelis: ha
awestroke has quit [Remote host closed the connection]
rkneufeld has quit [Quit: Computer has gone to sleep.]
greasegum has quit [Ping timeout: 260 seconds]
<kdridi> is there any rake gem that permit to upload file and serve them statically ?
greasegum has joined #ruby
caleb_io has quit [Quit: caleb_io]
alvaro_o__ is now known as alvaro_o
<kdridi> humm i mean rack gem not rake gem sorry
marius has joined #ruby
<blazes816> you should use nginx or apache to server static files
yxhuvud has quit [Ping timeout: 245 seconds]
ABK has joined #ruby
joofsh has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 244 seconds]
caleb_io has joined #ruby
<kdridi> hum… i'm just looking for an easy way to upload files, write them in a specific directory and serve them static
joofsh has joined #ruby
medik has joined #ruby
geekbri has quit [Remote host closed the connection]
schronicles47 has quit [Remote host closed the connection]
julio__ has quit [Ping timeout: 268 seconds]
jamesaxl has joined #ruby
mark_locklear has quit [Remote host closed the connection]
schronicles47 has joined #ruby
vonsar has joined #ruby
<rcassidy> anyone have experience doing pcap stuff in ruby?
jonathanwallace has quit [Remote host closed the connection]
ejholmes has quit [Quit: ejholmes]
Xeago has quit [Remote host closed the connection]
julio has joined #ruby
caleb_io has quit [Quit: caleb_io]
Tearan has joined #ruby
starship|2 has joined #ruby
cableray has joined #ruby
h4mz1d has joined #ruby
ejholmes has joined #ruby
jenrzzz has joined #ruby
starship|2 has quit [Client Quit]
elico has joined #ruby
jcaudle has quit [Quit: jcaudle]
dnstbr has quit [Quit: Computer has gone to sleep.]
carlyle has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
apok has quit [Remote host closed the connection]
apok has joined #ruby
timte has joined #ruby
vlad_starkov has joined #ruby
ejholmes has quit [Quit: ejholmes]
yekta has joined #ruby
richardjortega_ has joined #ruby
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
joofsh has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
alfism has quit [Quit: alfism]
Serial_Killer_C has quit [Remote host closed the connection]
ejholmes has joined #ruby
walbert has quit [Quit: Leaving.]
joofsh has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
mmitchell has quit [Remote host closed the connection]
TomJ has left #ruby [#ruby]
blendedbychris has joined #ruby
mmitchell has joined #ruby
dmerrick has quit [Ping timeout: 244 seconds]
<blendedbychris> Hey guys… i am trying to determine if a variable is a hash (or a string).
Serial_Killer_C has joined #ruby
<blendedbychris> that's the sudo code
savage- has joined #ruby
nitti has joined #ruby
tothehilt has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
therod has joined #ruby
ryanlecompte has quit [Ping timeout: 244 seconds]
<Gate> blendedbychris: what you want is is_a?
nitti has quit [Client Quit]
<Gate> blendedbychris: if video_param.is_a?(String)
<blendedbychris> wonder if that would work… this is some dumbed down erb (puppet)
<atmosx> is_a? is probably better, I use .class usually
mmitchell has quit [Ping timeout: 244 seconds]
<blendedbychris> I'll give it a go
mfridh has quit [Quit: leaving]
<Gate> blendedbychris: is_a? is basic ruby, if it can't do that its not ERB
dekroning has quit [Ping timeout: 256 seconds]
und3f has quit [Quit: Leaving.]
axl_ has quit [Read error: Connection reset by peer]
mfridhfreenode has joined #ruby
mikepack has quit [Remote host closed the connection]
axl_ has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
axl_ has quit [Client Quit]
caleb_io has joined #ruby
richwestcoast has joined #ruby
<Gate> atmosx: the great thing about is_a? is it deals with inheritance, so if you have, say, an ActiveSupport::HashWithIndifferentAccess, is_a?(Hash) will still be true :)
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Cultofmetatron has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
therod has quit [Ping timeout: 244 seconds]
snearch has quit [Quit: Verlassend]
carlyle has joined #ruby
blacktulip has quit [Remote host closed the connection]
ltsstar has joined #ruby
Morkel has quit [Quit: Morkel]
manizzle has quit [Ping timeout: 264 seconds]
<blendedbychris> Gate: thanks for the help guys
danneu has joined #ruby
swarley has joined #ruby
amacgregor_osx has joined #ruby
khakimov has joined #ruby
uris has quit [Ping timeout: 245 seconds]
philcrissman has joined #ruby
stkowski has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
k0nichiwa has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
richwestcoast has quit [Ping timeout: 245 seconds]
bemson has quit [Quit: bemson]
richwestcoast has joined #ruby
awarner has joined #ruby
ltsstar has quit [Quit: ltsstar]
awarner has quit [Remote host closed the connection]
kdridi has quit [Quit: This computer has gone to sleep]
ryanf has joined #ruby
ABK has quit [Read error: Connection reset by peer]
beit has quit [Quit: beit]
ABK has joined #ruby
becom33 has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
<becom33> Im just going to this webrick server . I was wondering how can I write a simple ruby app to run on webrick
<becom33> normal ruby commands like puts for the loops doesnt seems to work on the server
nadirvardar has joined #ruby
whowantstolivefo has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
timonv has quit [Remote host closed the connection]
Araxia has joined #ruby
rburton- has joined #ruby
lampe2 has joined #ruby
greasegum has quit [Ping timeout: 245 seconds]
<atmosx> becom33: try sinatra.
<becom33> ok
<swarley> mmmm sinatra
<atmosx> it's probably what you want, forget webrick. Also along with sinatra install 'thin' gem
<orion> padrino > sinatra
linoj has quit [Quit: linoj]
<atmosx> yeah whatever
Takehiro has joined #ruby
<atmosx> vim > emacs but the beard linux guy still use it.
bemson has joined #ruby
<atmosx> Padrino is a ruby framework built upon the Sinatra web library. Sinatra is a DSL for creating simple web applications in Ruby. Padrino was created to make it fun and easy to code more advanced web applications while still adhering to the spirit that makes Sinatra great!
<swarley> I use linux and i have a beard and i like unix
<swarley> err
<swarley> vim
<atmosx> that look spromising thanks orion
emergion has joined #ruby
skum has joined #ruby
<Poapfel> how do I modifie the elements of an array in a each block for exmaple if I have array.each { |e| e[elementnumber????] = newvalue } ???
<Poapfel> as in how do I get the element number in an each block with an array?
<atmosx> I still didn't understand exactly what you wanna do
<Poapfel> I want to modifie the contents of an element in the array
<atmosx> swarley: you're not Stallman, are you?
uris has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
<atmosx> Poapfel: a specific element or all elements?
<apeiros_> Poapfel: you probably want map or map! instead of each
<orion> grr
<Poapfel> .each_index is working for me - thanks
<atmosx> apeiros_: map changes the 'original' array, right?
<apeiros_> ary = [1,2,3]; ary.map! do |x| x*10 end; ary # => [10, 20, 30]
<apeiros_> atmosx: map! does, map returns a new array with the mapped values
chrismcg is now known as zz_chrismcg
<atmosx> ah k
skipper has joined #ruby
skipper is now known as Guest88601
<orion> Ok, so I have the following: - "gempath" => ["/usr/home/alex/software/diaspora/vendor/bundle/ruby/1.9"] -- seems reasonable, right?
<swarley> atmosx; no
richwestcoast has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<havenn> Use the One True Editor for maximum productivity.
<atmosx> swarley: I was positive!!!!
<orion> Well, when I try to do this: ./vendor/bundle/ruby/1.9/bin/rails s it fails saying that it can't find the railties gem.
horofox has joined #ruby
<orion> The list of available gems it presents is wrong.
* atmosx lost an electron
<apeiros_> 0o
<orion> It's looking at the system-wide directory, not the one I specified.
<apeiros_> orion: not sure what you're trying to do…
<orion> Does anyone know why this is happening?
<apeiros_> but I think you want `bundle exec rails s`
daniel_-_ has quit [Ping timeout: 244 seconds]
<atmosx> orion: ask #rails
<apeiros_> atmosx: not #rails
therod has joined #ruby
<apeiros_> #ror or #rubyonrails
<blazes816> #rubyonrails
<orion> atmosx: gems != rails
<shevy> guys
<atmosx> #ror ?
<shevy> let's have sex
<blazes816> if they go to #rails I have to redirect them
<atmosx> yeah whatever that is
<shevy> no please don't send them to #hell!!!
<atmosx> that lame framework, who got me into ruby and that I never wrote a single line of code on it
<atmosx> or in it
<shevy> lol
<shevy> you really did not write ONE rails app?
<atmosx> I agree with the sex part
<shevy> :-)
tommyvyo has joined #ruby
<shevy> I think I managed to do the one tutorial where you build some kind of shop ? in rails
<atmosx> I don't get laid since... Sept and my gf is comming on saturday so I'm pretty up to the task.
<shevy> I remember I used sqlite back then
<orion> hmm
<shevy> quite a long time, it's almost november
<atmosx> shevy: seriously? I need to restart my sinatra book
<shevy> and soon it is 2013!!!
<orion> That seems to have worked apeiros_. In theory though, shouldn't what I have done worked?
<shevy> sinatra book? a book? you mean, reread a book? a paper book?
<apeiros_> orion: I think not
<atmosx> I stopped because of a lame chemistry test, then a microbiology test, then I was just lazy and now I don't remember half the book... although I can read my code I'm not able to 'write it' by heart... sucks.
<shevy> ah yeah I remember you spoke about that exam
<atmosx> shevy: nah, pdf, iPad book
<havenn> I thought this year was 2013, and now whenever I see 2012 I feel like I'm in the past :(
<orion> atmosx: Why?
<apeiros_> orion: your rails executable wouldn't know where to find what
<atmosx> shevy: successful it was! (yoda speaking)
<shevy> havenn I always get scared when I try to deduct 100 years... soon we have world war 1 start
<atmosx> orion: what y?
<orion> atmosx: Wrong person. Auto complete.
<orion> apeiros_: So, the .gemrc file isn't consulted when loading gems.
<havenn> shevy: Should we look forwards to the roaring 20's?
<atmosx> orion: k, I forgive you.
dmiller has joined #ruby
<shevy> and both times austria was kinda involved :(
bairui has quit [Quit: WeeChat 0.3.7]
<shevy> havenn, dunno... I am always looking into a better tomorrow!
<atmosx> shevy: I thought you were from Swiss
<atmosx> ah no wait apeiros_ is the swiss guy
<atmosx> that's why he knows everything
<shevy> nah, apeiros_ is from swiss, I sit in vienna to the distant east of zurich
<havenn> Mmm, Austria. Apfel strudel mit vanilla sauce.
pskosinski has joined #ruby
<shevy> I mean, *is swiss
Guest88601 has quit [Ping timeout: 245 seconds]
<atmosx> I'll be in Vienna next weekend
<shevy> whoa why?
<atmosx> I'll visit the museums and maybe a 3 or 4 michelin stars restaurant that you have there
GoGoGarrett has quit [Remote host closed the connection]
<shevy> michelin restaurant? hehehe what's that
<atmosx> shevy: my gf didn't visit Vienna and she wants to go... so... I thought why not
<shevy> ah
pskosinski has left #ruby [#ruby]
<shevy> been a bit rainy and foggy the last some days :(
<atmosx> shevy: it's a sort of category of "good" (as in expensive) restaurants.
<atmosx> Yeah, next week here will be minus zero
therod has quit [Ping timeout: 260 seconds]
adamjleonard has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<shevy> odd name
<blendedbychris> people on the internet have gfs?
<shevy> atmosx thought you go THERE to eat ;)
ABK has joined #ruby
invisime has quit [Quit: Leaving.]
<shevy> blendedbychris it's rumours
<shevy> blendedbychris it's usually a dude acting like a girl on the intarnets
mklappstuhl has quit [Ping timeout: 244 seconds]
noxoc has quit [Ping timeout: 244 seconds]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
dylanjha has quit [Quit: Leaving...]
<matti> shevy: shevy shevy shevy shevy shevy shevy shevy shevy
<atmosx> blendedbychris: I even used to run gentoo linux, can you imagine what a combination?
<shevy> he wrote he wants the code to be really good. he uses C and lua as far as I can see
joofsh has quit [Ping timeout: 240 seconds]
julio has quit [Quit: leaving]
<blendedbychris> atmosx: did that get you all the girls?
<shevy> I can't help but think that the same in ruby would be much more readable
<shevy> well a bit at least
<shevy> local oldstdout, oldstderr = io.stdout, io.stderr
<atmosx> this one seems nice http://www.doco.com/
<shevy> atmosx very strange... never heard of these
<shevy> not that I really know the hotels in my own town :-)
jimeh has quit [Ping timeout: 276 seconds]
<shevy> when I venture outside, I usually look for holiday inns
<shevy> or family owned ones, those are kinda nice too... I dont like the huge ones and I hate the luxurious ones, the people there just don't quite fit to me at all in any way
<shevy> "Sounds like literate programming to me. I know Haskell supports it and I've seen Ruby implementations (and there's the venerable CWEB, of course), so it seems like something quite within the grasp of most programmers."
<shevy> ruby \o/
<shevy> take this php
<atmosx> shevy: what is a good restaurant that you know off, with traditional Austrian food (if there's any food that is not purely German)
<blazes816> But\\Im\\Super\\Readable
ABK has quit [Read error: Connection reset by peer]
<shevy> atmosx ohh that is a tough one... I remember I usually avoided local cuisine and head straight to korean kitchen hahaha
ABK has joined #ruby
<shevy> hmm but I actually know one
<atmosx> shevy: oh jeez, :-p if I wanna eat Korean, I'd to Korea!! :-P
Virunga has quit [Remote host closed the connection]
freezey has quit [Quit: freezey]
<atmosx> shoot
<shevy> atmosx not sure you'll like it though
<shevy> yeah, but korean food is really awesome
treyryan has joined #ruby
daniel_-_ has joined #ruby
<shevy> and it is also better in korea haha, anyway
<atmosx> haha
<atmosx> probabl
<atmosx> y
tommyvyo has quit [Quit: Computer has gone to sleep.]
zz_chrismcg is now known as chrismcg
<shevy> atmosx, I think it is this one here http://www.restaurant-wiener.at/ but I am not 100% sure, lemme check
xorigin has quit [Quit: leaving]
<rcassidy> anyone used Pcaprub?
v0n has quit [Ping timeout: 244 seconds]
noxoc has joined #ruby
butblack has joined #ruby
skum has quit [Quit: Leaving...]
<atmosx> shevy: do I need a reservation for that?
sepp2k has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
becom33 has quit [Quit: Leaving]
<shevy> atmosx: hmm don't think so, I remember when my dad and I used to go there, we never needed one, but it's been a few years since we last were there hmm
<atmosx> it's everything in German
<atmosx> !
stephenjudkins has joined #ruby
<atmosx> shevy: okay I'll bookmark it! danke shon
<atmosx> (no umlaut here)
alanp has quit [Read error: Connection reset by peer]
<shevy> atmosx hmm I need to check, I think there is also another restaurant right opposite to that one
allyraza has quit [Ping timeout: 244 seconds]
alanp has joined #ruby
chriskk has joined #ruby
<shevy> atmosx I can tell you tomorrow for sure which one it was hehehe
dimka has joined #ruby
dimka has quit [Client Quit]
elico has quit [Quit: elico]
dylanjha has joined #ruby
Araxia has quit [Ping timeout: 244 seconds]
dimka has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<atmosx> shevy: okay I'll be here I think
<atmosx> no worries
Takehiro has quit [Remote host closed the connection]
<atmosx> shevy: except from the castle of Sissy (the princes and all her family etc) and the museums is there anything else in Vienna that I'm missing? :-/
Soliah has joined #ruby
DrShoggoth has quit [Quit: Leaving]
chriskk_ has joined #ruby
d2dchat has quit [Remote host closed the connection]
BrianJ has quit [Quit: BrianJ]
havenn has quit [Remote host closed the connection]
chriskk has quit [Client Quit]
chriskk_ is now known as chriskk
stopbit has quit [Quit: Leaving]
noxoc has quit [Ping timeout: 245 seconds]
chriskk_ has joined #ruby
eph3meral has joined #ruby
chriskk has quit [Client Quit]
chriskk_ is now known as chriskk
butblack has quit [Ping timeout: 252 seconds]
kdridi has joined #ruby
elico has joined #ruby
mbrit has joined #ruby
mbrit has left #ruby ["Saliendo"]
jslowe has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
Araxia has joined #ruby
baphled has joined #ruby
Juul has quit [Quit: Leaving]
chessguy_ has joined #ruby
joshman_ has quit [Ping timeout: 276 seconds]
sent-hil has quit [Remote host closed the connection]
elico has quit [Remote host closed the connection]
JonnieCache has joined #ruby
wca has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
chessguy has quit [Ping timeout: 264 seconds]
sent-hil has joined #ruby
phelps has joined #ruby
sjuxax has joined #ruby
Soliah has quit [Read error: Connection reset by peer]
<wca> IO#gets() seems to return less-than-a-line from streams with an active writer on the other end. Is there a way to get only complete lines or nil?
kpshek has quit []
elaptics is now known as elaptics`away
chussenot has quit [Quit: chussenot]
horofox has quit [Quit: horofox]
chrismcg is now known as zz_chrismcg
caleb_io has quit [Quit: caleb_io]
timte has quit [Quit: timte]
* wca has a hand-written IO method that does the trick, but wonders if there is a standard method to do it instead.
havenn has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
bemson has quit [Quit: bemson]
sent-hil has quit [Remote host closed the connection]
Soliah has joined #ruby
nari_ has joined #ruby
<sjuxax> I am doing some basic string replacement/calculation, and I feel it has made my script way, way slower than it should be. Would someone please revise this methodology and tell me what I need to do to make it fast? http://dpaste.com/817936/ Uses fake data, obviously; encoding real strings, not just numbers.
beilabs has quit [Ping timeout: 276 seconds]
horofox has joined #ruby
justinmcp has joined #ruby
dangerousdave has quit [Quit: Leaving...]
manizzle has joined #ruby
<wca> sjuxax: combine your two gsubs into one gsub. perhaps fix URI.encode_www_form_component() to remove the need for the third.
horofox has quit [Client Quit]
<swarley> woo finally it works
CodeDroid__ has joined #ruby
h4mz1d has joined #ruby
bbttxu has quit [Quit: bbttxu]
<sjuxax> wca: Copied encode_www_form_component call from the Ruby documentation. How can I go down to one gsub when they replace with different characters? Also, I believe this is an issue where Ruby's GC collects a bunch of dead weight and never lets it go, as my memory usage increases frequently and the program pauses frequently for what looks like GC runs.
<wca> sjuxax: Regexp.union
<sjuxax> This seems pretty crazy that I can't process a few hundred thousand elements without hitting this issue. I have another script with the same. Is there something horribly wrong in this code, or is Ruby just that bad for significant loops?
vonsar has quit [Quit: This computer has gone to sleep]
<wca> well, you are creating a pretty big string :)
<sjuxax> In my other script, I have done everything possible to inform the collector that things are empty. See http://stackoverflow.com/questions/12487986/how-can-i-make-ruby-release-unreferenced-memory for an example.
<wca> you have to imagine that under the covers, it's reallocating and copying that string at least a few times
<sjuxax> Right, but it should let that string go after I nil it out between iterations of the 50k
emergion has joined #ruby
<sjuxax> the string is never let go, memory usage just continues, and objects just collect
Takehiro has joined #ruby
<sjuxax> and the program gets slower and slower as the GC pauses for longer and longer to see if it can collect any of the millions
<sjuxax> You'd think that mutable strings would be an advantage in this case, right? Isn't this what they're supposed to be used for, rapid, massive modification?
slainer68 has quit [Remote host closed the connection]
beilabs has joined #ruby
zodiak has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 255 seconds]
<wca> hmmm. are you sure the reason it's slow is because of GC, and not because you're increasing the string size?
piotr_ has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
caleb_io has joined #ruby
cpruitt has quit [Quit: cpruitt]
Takehiro has joined #ruby
<sjuxax> No. I know on my other case, people in here told me it was a GC thing. Why would it make everything slow down so hard/often to allocate sufficient memory, and why wouldn't it reset when I zero out anyway? In real life, these strings are probably getting to like 10MB tops before the string is written to storage and zeroed back out for the next iteration.
JonnieCache has quit [Read error: Operation timed out]
adambeynon has joined #ruby
rakm has quit [Ping timeout: 252 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
fantazo has quit [Ping timeout: 255 seconds]
rakl has quit [Ping timeout: 265 seconds]
conor_ireland has quit [Quit: conor_ireland]
rakm has joined #ruby
Nisstyre has quit [Quit: Leaving]
ABK has quit [Read error: Connection reset by peer]
ablankfield has joined #ruby
rakl has joined #ruby
ABK has joined #ruby
rakl has quit [Client Quit]
<ablankfield> man, alot of people chill in here
chichou has joined #ruby
glyytchy has quit [Quit: glyytchy]
ablankfield has quit [Client Quit]
h4mz1d has quit [Ping timeout: 265 seconds]
carlyle has quit [Remote host closed the connection]
ablankfield has joined #ruby
ABK has quit [Read error: Connection reset by peer]
berserkr has quit [Quit: Leaving.]
ABK has joined #ruby
rakl has joined #ruby
Nisstyre has joined #ruby
perryh has quit [Excess Flood]
forced_request has joined #ruby
perryh has joined #ruby
apeiros_ has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
Cicloid has quit [Remote host closed the connection]
dakine has joined #ruby
Synthead has quit [Quit: p33 ba115]
stephenjudkins has quit [Quit: stephenjudkins]
nemesit|osx has quit [Quit: Leaving...]
endzyme has quit [Ping timeout: 264 seconds]
bluenemo has quit [Remote host closed the connection]
bairui has joined #ruby
caleb_io has quit [Quit: caleb_io]
nopolitica has joined #ruby
advorak has joined #ruby
mklappstuhl has joined #ruby
ryanlecompte has joined #ruby
love_color_text has quit [Remote host closed the connection]
hotovson has joined #ruby
savage- has quit [Ping timeout: 255 seconds]
thecreators has joined #ruby
Takehiro has quit [Remote host closed the connection]
slainer68 has joined #ruby
uris has quit [Quit: Leaving]
emergion has joined #ruby
jimeh has joined #ruby
CodeDroid__ has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
ffranz1 has quit [Quit: Leaving]
t0rc has joined #ruby
caleb_io has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
Nisstyre has quit [Quit: Leaving]
mib_mib has quit [Quit: Page closed]
marciopuga has joined #ruby
emergion has quit [Ping timeout: 244 seconds]
gngrwzrd has joined #ruby
marciopuga has left #ruby [#ruby]
kirun_ has quit [Quit: Client exiting]
iamjarvo has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
helichopter has joined #ruby
slainer68 has quit [Ping timeout: 265 seconds]
emergion has joined #ruby
stephenjudkins has joined #ruby
codezombie has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
justinmc_ has joined #ruby
BSaboia__ has quit [Read error: Connection reset by peer]
irleif has joined #ruby
recycle has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Ping timeout: 244 seconds]
recycle has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
<havenn> ablankfield: Chillax'n like super villaxens.
justinmcp has quit [Ping timeout: 276 seconds]
SCommette has quit [Quit: SCommette]
artOfWar has quit [Remote host closed the connection]
maletor has joined #ruby
havenn has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
<djbpython> how can i parse a european formatted number to float? 4.567,123
<swarley> from a string?
<djbpython> swarley, sure
<djbpython> ideally, it'd complain if it wasnt properly formatted. like 45.67,123
vlad_starkov has quit [Ping timeout: 240 seconds]
piotr_ has quit [Ping timeout: 240 seconds]
<swarley> probably something like
<swarley> sec
digitalcakestudi has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
h4mz1d has joined #ruby
banseljaj is now known as imami|afk
LouisGB has quit [Ping timeout: 240 seconds]
nopoliti1a has joined #ruby
atmosx has quit [Quit: quiting...]
kramutils has quit [Remote host closed the connection]
Takehiro has joined #ruby
ejholmes has quit [Read error: Connection reset by peer]
ejholmes has joined #ruby
<swarley> djbpython; alright i got it
nopolitica has quit [Ping timeout: 260 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
<swarley> errr
<swarley> sec, minor adjustmne
<swarley> adjustment
jeffreybaird has joined #ruby
Cicloid has joined #ruby
<swarley> djbpython; http://pastebin.com/CKTydp90 there you go
yaymukund has joined #ruby
dw has left #ruby [#ruby]
gngrwzrd has quit [Quit: gngrwzrd]
<djbpython> awesome thanks
<swarley> no problem
<yaymukund> when negating variables, can I have a space between the dash and the variable?
<djbpython> bummer there isn't anything built into ruby like other languages have
<yaymukund> `-a` versus `- a`
hotovson has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
<yaymukund> my friend tells me that the latter is incorrect, but I tested and they seem equivalent
<swarley> yaymukund;
<swarley> [14] pry(main)> - 1
<swarley> => -1
<swarley> => -1
<swarley> [15] pry(main)> -1
<swarley> what happens behind the scenes, is the method "-@" is called on the 1, to negate it
<swarley> and since its infix, it doesnt have to be right next to the variable
fgro has joined #ruby
Cicloid has quit [Ping timeout: 268 seconds]
<yaymukund> swarley: thanks. I just wanted to be sure because operator precedence has a way of rearing its ugly head in those weird edge cases
<swarley> otherwise, this would be a syntax error as well, creating a new array of [1] instead of calling [] with argument 1
<swarley> [16] pry(main)> k = [1,2,3]
<swarley> => [1, 2, 3]
<swarley> [17] pry(main)> k [1]
<swarley> => 2
<yaymukund> ooh
therod has joined #ruby
<swarley> I have a feeling (probably a wrong feeling) that the [] constructor may be a method call instead of a syntatical shortcut as well. But i'm not sure about that
Criztian has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 260 seconds]
hvq has joined #ruby
<matti> swarley: What do you need to store?
<swarley> ?
Araxia has quit [Read error: Connection reset by peer]
<swarley> wrong channel? :p
Cultofmetatron has joined #ruby
<matti> No.
<matti> zenspider will get all cranky at us ;d
<swarley> oh lol
<swarley> Its meant to be polymorphic (hence the use of the void pointers), so that i can extend it for use in general
<matti> That is fine.
<matti> You are storing pointers.
<swarley> Yeah
<matti> So you can store Ruby's VALUE
<matti> Which is just a (void *)
<swarley> Well, let me show you my two different structures
<swarley> one will stay in system memory and destroyed when ruby actually wants the value, at which point it becomes the static version
stkowski has quit [Quit: stkowski]
<swarley> which is more efficient and compact
<swarley> sec
<matti> Ah, that adds interesting problem.
<matti> You have to tell GC not to collect this objects referenced by this structure that always stays.
Vert has joined #ruby
<matti> As it is ephemeral to Ruby VM, it will try to recall objects, but only you knows that you need them, Ruby wont.
therod has quit [Ping timeout: 244 seconds]
elico has joined #ruby
<swarley> http://pastebin.com/rWAPNAhX pay no attention to the first data types introduced, those are going to be replaced
h4mz1d has quit [Ping timeout: 256 seconds]
<matti> Do I make sense?
<matti> ;d
<swarley> I'm going to wrap the struct when it gets raised to the VM, so that the free call gets made when the finalizer is run
<matti> Ah, OK.
<matti> ;]
<matti> On gcc 4.6 you will get warning about typedef'ing struct, BTW.
joeycarmello has joined #ruby
<matti> You'd have to prepend them with forward definition.
<matti> Annoying.
<swarley> Its going to be a DynamicXmlNode until the value is actually needed, at which point it will transfer into a StaticXmlNode (notice the smaller and more defined data types)
bradleyprice has quit [Remote host closed the connection]
<swarley> The reason I'm doing that is because its easier to manipulate the dynamic structures, but the static ones are better once all the parsing is done and i know the size of everything
<matti> swarley: I'd make top-level a tree.
<matti> And each node would be later on a relevant struct.
<matti> So you can traverse it easily.
shtirlic has quit [Remote host closed the connection]
<ninegrid> i'm having trouble getting capybara-webkit + cucumber to work with jquery... I am getting the error: undefined|0|ReferenceError: Can't find variable $ The only hint I have to go on is from the issues forum on the capybara github where someone indicates that it is a timing issue with jquery not being fully loaded... But there is no suggestion as to how to fix that
<matti> swarley: Said that, I have never wrote an XML parser...
<swarley> What do you mean by a tree? what the layout would be as is would be a node has a collection, and each of them has their own collection
<matti> swarley: Just thinking out loud.
elico has quit [Quit: elico]
<helichopter> hi, sorry, I'm new to ruby, but how can I get the slice of an array from an index i to the end of the array? in python it would be like: myarray[i:]
<matti> helichopter: [1 .. -1]
<matti> helichopter: [x .. -1]
<swarley> also, i cant find a growth algorithm :p
<matti> swarley: ;p
manizzle has quit [Ping timeout: 268 seconds]
<swarley> I need to rewrite this now lol
<helichopter> matti: thank you very much
<matti> helichopter: No worries ;]
omry has joined #ruby
horofox has joined #ruby