apeiros changed the topic of #ruby-lang to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
vlad_starkov has quit [Read error: Connection reset by peer]
johnmilton has quit [Read error: Connection reset by peer]
tshine has joined #ruby-lang
kotk1 has quit [Quit: Leaving...]
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby-lang
quizzicol1 has quit [Quit: Leaving.]
conquerio has joined #ruby-lang
kitak has joined #ruby-lang
dingus_khan has joined #ruby-lang
<dingus_khan> was there a way to typecast a numerical datatype to accept a 1000-digit non-float integer in ruby? or am i stuck with the array > split route?
<dingus_khan> string > split *
<dingus_khan> can't find das google
<dingus_khan> whoops, was asking wrong question, nevermind
deens has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deens has quit [Read error: No route to host]
imjacobclark has quit [Remote host closed the connection]
deens_ has joined #ruby-lang
deens_ has quit [Remote host closed the connection]
symm- has quit [Read error: Operation timed out]
deens has joined #ruby-lang
deens has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
patriciomacadden has joined #ruby-lang
daikan has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
faces has joined #ruby-lang
face has quit [Ping timeout: 252 seconds]
mykoweb has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
brushbox has quit [Quit: brushbox]
tkuchiki has joined #ruby-lang
heftig has quit [Quit: Quitting]
bzalasky has joined #ruby-lang
fijimunkii has quit [Ping timeout: 272 seconds]
styped has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cnivolle has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
heavyhorse has joined #ruby-lang
fijimunkii has joined #ruby-lang
haon99 has joined #ruby-lang
jtw has joined #ruby-lang
bcjordan has quit [Ping timeout: 264 seconds]
haon99 has quit [Client Quit]
deens has joined #ruby-lang
zrl has quit [Ping timeout: 276 seconds]
zrl has joined #ruby-lang
deens has quit [Ping timeout: 246 seconds]
avdi has quit [Ping timeout: 276 seconds]
ggherdov has quit [Ping timeout: 276 seconds]
avdi has joined #ruby-lang
imjacobclark has joined #ruby-lang
ggherdov has joined #ruby-lang
imjacobclark has quit [Ping timeout: 272 seconds]
face has joined #ruby-lang
faces has quit [Ping timeout: 252 seconds]
henrikhodne has quit [Ping timeout: 252 seconds]
henrikhodne has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
Cakey has joined #ruby-lang
faces has joined #ruby-lang
face has quit [Ping timeout: 252 seconds]
elia has quit [Quit: Computer has gone to sleep.]
stonerfish has joined #ruby-lang
seanlinsley has quit [Quit: …]
seanlinsley has joined #ruby-lang
rahul_j has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
_mtr has joined #ruby-lang
mehlah_ has joined #ruby-lang
patriciomacadden has quit [Quit: Textual IRC Client: www.textualapp.com]
mehlah has quit [Ping timeout: 260 seconds]
deens has joined #ruby-lang
daikan has joined #ruby-lang
seanlinsley has quit [Ping timeout: 272 seconds]
ledestin has quit [Ping timeout: 252 seconds]
deens has quit [Ping timeout: 265 seconds]
imjacobclark has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
go|dfish has quit [Ping timeout: 252 seconds]
seanlinsley has joined #ruby-lang
ledestin has joined #ruby-lang
jay_m has joined #ruby-lang
jay_m is now known as Xuisce
Cakey has quit [Ping timeout: 252 seconds]
imjacobclark has quit [Ping timeout: 265 seconds]
<Lewix> Example = Struct.new(:var) { def example_method item ; var << item ; puts var ; end ; end }
<Lewix> How come the double less than operator is working
<Lewix> And var is an array
face has joined #ruby-lang
mistym_ is now known as mistym
faces has quit [Ping timeout: 264 seconds]
deens has joined #ruby-lang
deens has quit [Ping timeout: 265 seconds]
ender_ has joined #ruby-lang
rahul_j has left #ruby-lang [#ruby-lang]
ender__ has quit [Ping timeout: 246 seconds]
ender__ has joined #ruby-lang
mdub has joined #ruby-lang
ender_ has quit [Ping timeout: 260 seconds]
bzalasky has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
mykoweb has quit [Remote host closed the connection]
mehlah_ has quit [Quit: Leaving...]
mykoweb has joined #ruby-lang
hahuang61 has joined #ruby-lang
mykoweb has quit [Ping timeout: 264 seconds]
knu has quit [Ping timeout: 252 seconds]
Cakey has joined #ruby-lang
Cakey has joined #ruby-lang
hahuang61 has quit [Ping timeout: 252 seconds]
mdub has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
soba has joined #ruby-lang
mykoweb has joined #ruby-lang
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
go|dfish has joined #ruby-lang
woollyams has joined #ruby-lang
daikan has joined #ruby-lang
styped has joined #ruby-lang
imjacobclark has joined #ruby-lang
daikan has quit [Ping timeout: 264 seconds]
jtw has quit []
jtw has joined #ruby-lang
imjacobclark has quit [Ping timeout: 252 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
fijimunkii has quit [Quit: leaving]
fijimunkii has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
deens has joined #ruby-lang
mykoweb has quit [Ping timeout: 272 seconds]
deens has quit [Ping timeout: 248 seconds]
iliketurtles has quit [Quit: zzzzz…..]
dorei has quit []
bzalasky has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
woollyams has quit [Remote host closed the connection]
Xuisce- has joined #ruby-lang
woollyams has joined #ruby-lang
Xuisce has quit [Quit: Leaving...]
Xuisce- is now known as Xuisce
Lewix has quit [Remote host closed the connection]
caral has quit [Read error: Operation timed out]
Lewix has joined #ruby-lang
caral has joined #ruby-lang
pirozhkov has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
tylersmith has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
pirozhkov has quit [Remote host closed the connection]
bjh13 has joined #ruby-lang
rahul_j has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
<Lewix> Example = Struct.new(:var) { def example_method item ; var << item ; puts var ; end ; end }
bzalasky has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Max SendQ exceeded]
<Lewix> For each member a reader and writer is created similar to attr_accessor, so how come we can use <<
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
<Lewix> shouldn't we be only able to use =
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
<badeball> Lewix: upon writing var << item, you are actually calling a method named #<< on whatever is contained in var
<Lewix> badeball: yes. it does not change what i asked
<Lewix> badeball: where is the method #<< defined? - to my knowledge attr_accessor do not define it
styped has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<badeball> it doesn't and it shouldn't. you are just misunderstanding
RobertBirnie has joined #ruby-lang
<badeball> 'var << item' is utilizing the reader and calling #<< upon the returned value
fijimunkii has quit [Ping timeout: 252 seconds]
woollyams has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
<Lewix> badeball: ah thanks. it makes sense
knu has quit [Ping timeout: 252 seconds]
tubbo` has left #ruby-lang [#ruby-lang]
<Lewix> also even if we used = it would have to be self.var. I'm not sure why I didn't get it right away
knu has joined #ruby-lang
<Lewix> https://gist.github.com/6ewis/c4c3dfb54ed165338d64 -> feedbacks?. I know it gets ugly after line 126 #train coding
<badeball> heh, you wouldn't be the first one to ever get confused
fijimunkii has joined #ruby-lang
vlad_starkov has joined #ruby-lang
daikan has joined #ruby-lang
<badeball> i prefer to write @parser instead of self.parser
robbyoconnor has joined #ruby-lang
<badeball> in line 68 you could do something like ['1', 'ElecOrGas'].include?(customer.elect_or_gas) instead of two comparisons
<Lewix> badeball: I don't like the @
<Lewix> badeball: I also think it's good practice to solely rely on the methods
<Lewix> badeball: thanks =)
imjacobclark has joined #ruby-lang
<badeball> also, some of the lines are terribly long and I bet could easily be shortened by rubyfying them a bit
daikan has quit [Ping timeout: 246 seconds]
<badeball> if month is of integer and "#{month}" is an attempt to cast it to a string, then month.to_s would to the trick
<Lewix> badeball: I like to avoid comments whenever possible, the balance between long method names and having name that makes sense is a fine line
deens has joined #ruby-lang
<Lewix> s/fine/thin
prc has quit [Read error: Connection reset by peer]
<badeball> I'm totally with you and I was more thinking about code lines, IE. line 105
heavyhorse has quit [Quit: :quit]
<badeball> s/EI/EG/
deens_ has joined #ruby-lang
deens has quit [Read error: Connection reset by peer]
imjacobclark has quit [Ping timeout: 264 seconds]
<badeball> #list_of_nbr_of_meter_readings_and_customer_ID seems confusing. what are you doing with break there?
knu has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby-lang
<pipecloud> badeball: Why use such a long method name and end it in an abbreviation?
iliketurtles has quit [Excess Flood]
<pipecloud> Lewix: don't use shortened names for things. :D
KM has joined #ruby-lang
<pipecloud> I prefer to use methods instead of calling instance variables, I just make nice private methods.
<badeball> pipecloud: was that a question for me?
knu has joined #ruby-lang
<pipecloud> badeball: No, I just highlighted you because I thought you could use some attention.
<centrx> list_of_unique_nbr_of_meter_readings_and_number_of_customers_with_that_many_readings_before_and_after_weekend_for_leap_year_if_customer_likes_donuts
rahul_j has quit [Quit: rahul_j]
<Lewix> badeball: you're right line 105 is quite long
deens_ has quit [Ping timeout: 260 seconds]
<Lewix> badeball: bread returns what follow if the condition is met
<Lewix> s/bread/break
<Lewix> centrx: hahaha
<Lewix> centrx: ok. I get your point
<badeball> Lewix: I know, but the syntax felt weird to me. I very rarely see it be used like that and it makes the line long
<Lewix> badeball: what line were you referring to about #{month}
<badeball> 78
<Lewix> badeball: I refactored, i didn't want 18 lines of code
<pipecloud> Lewix: Your mixing of abbreviations with long method names is confounding.
<badeball> I had to scroll horizontally in gist.github.com to get the gist of some of the lines and that is imho a good indication that they're too long
<Lewix> badeball: they are
<centrx> Lewix, This is nothing wrong with lines of code if they make the code clearer. Lines of code is a proxy for code complexity. You could make your entire program be 1 line of code, that would not be better.
<centrx> There is
<Lewix> pipecloud: true
<Lewix> centrx: true
<pipecloud> Have you considered making more objects that better describe the different attributes better?
<pipecloud> MeterReadings, for instance.
<pipecloud> Also, the sooner you ditch 'show' in your method names, the better.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
<badeball> I'd much rather prefer 18 lines of code of they were shorter (horizontally)
woollyams has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
<pipecloud> I'd prefer 1 line of code if it cleanly and clearly expressed intent and purpose.
<pipecloud> -1 lines if it didn't
<centrx> Also, use a database, not a CSV :)
rahul_j has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
<Lewix> badeball: here is what i had before https://gist.github.com/6ewis/c26c8e6af54526df30c0 , This is equivalent to line 78.
RobertBirnie has quit [Ping timeout: 248 seconds]
<badeball> then I'd suggest a refactoring
vlad_starkov has joined #ruby-lang
CaptainJet has quit []
vlad_starkov has quit [Remote host closed the connection]
knu has quit [Ping timeout: 252 seconds]
<badeball> your usage of next within #collect in combination with #compact.. it seems like you want to map an array and filter out some elements and you're trying to do it at the same time
knu has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<Lewix> badeball: so do you suggest a if else for 107
vlad_starkov has joined #ruby-lang
mistym has quit [Remote host closed the connection]
hahuang61 has joined #ruby-lang
<badeball> are we still viewing your previously posted gist? because I only see an end keyword on line 107
<Lewix> badeball:105 sorry
<badeball> then yes, definitely
sepp2k has quit [Read error: Connection reset by peer]
<Lewix> badeball: line 40. its just a list of comma separated value. any idea how to store an array of arrays
hahuang61 has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby-lang
<badeball> in regards to what I said about using select with next for doing two different things, take a look at this: https://gist.github.com/badeball/8515259. the last two lines produces the same result, but I think the latter is more concise
<badeball> Lewix: I'm not sure if you can do that with CSV. maybe you're better of with another database?
<Lewix> badeball: what's your background. math?
<badeball> Lewix: when I'm done with my masters, I'll be a civil engineer in computer science, so I have some knowledge of slightly-above easy math, but it's not my primary field
<Lewix> "civil engineer in computer science". I've never heard that before
<centrx> Sounds made up
<badeball> probably just me trying to use expressions commonly used in norway, but not so common elsewhere. anyway, here: http://www.ntnu.edu/studies/mtdt
<pipecloud> I always thought that civil engineer was fancy talk for boardroom inhabitant.
diegovio1 has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegovio1 has quit [Changing host]
rahul_j has quit [Quit: rahul_j]
diegoviola is now known as Guest10369
diegovio1 is now known as diegoviola
<badeball> in the case of ntnu, the difference between civil engineer and non-civil engineer is basically just the amount of math courses
rahul_j has joined #ruby-lang
Guest10369 has quit [Ping timeout: 260 seconds]
<centrx> badeball, "civil" engineer is generally engineering of bridges, canals, that sort of thing
<centrx> In English
woollyams has joined #ruby-lang
<centrx> badeball, In America, the general distinction between "taking more math" would be Master of Science vs Master of Arts
<Lewix> lol
<centrx> So, that's my non-Ruby language lesson for the day
<badeball> centrx: yeah, I know. I believe the term has some other roots in norway, even though the title is not protected these days. here, it's most often used to describe studies given by ntnu (university previously known as nth)
<badeball> in comparison, my english report card only says master of science
<badeball> in retrospect, I guess that would have been the least confusing term
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
daikan has joined #ruby-lang
imjacobclark has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
zlogan has joined #ruby-lang
mistym has joined #ruby-lang
imjacobclark has quit [Read error: Operation timed out]
<Lewix> badeball: How's the job market in Norway?
<badeball> quite good. very few leave the university without having signed a full-time contract
ahmedelgabri has quit [Ping timeout: 260 seconds]
jonahR has joined #ruby-lang
toretore has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
<Lewix> badeball: I see
rahul_j has quit [Quit: rahul_j]
<Lewix> badeball: What is your approach when you design the data model of your code? do you begin by the method you need. I have to find a more efficient way to do it
<pipecloud> I prefer emergent design.
amerine has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 252 seconds]
<badeball> difficult question, really. I havn't formalized my though process enough to write it down. it boils down to gut feeling, but I like for my code to adhere some concrete rules, like a) don't take an insane amount of arguments b) don't have a high cyclomatic complexity and c) don't be too long
<Lewix> pipecloud: can you be more specific please. I should know more about
<badeball> s/though/thought/
ahmedelgabri has quit [Ping timeout: 260 seconds]
<pipecloud> Lewix: Don't plan too far ahead and be careful not to make decisions that lock you into a design that might prove to be hard to evolve.
rahul_j has joined #ruby-lang
<Lewix> badeball: I'm asking that because I hate when I see someone who write a much better piece of code in significanly less time than I did - it must be that my process is not efficient enough
<Lewix> pipecloud: I see
<badeball> practice makes perfect
robbyoconnor has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
<Lewix> badeball: when you start writing, do you start by the methods then move on to define the classes or the other way around
<Lewix> badeball: true
RobertBirnie has joined #ruby-lang
<badeball> well, I usually like to begin with data containment and domain logic, so models
yfeldblum has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
yfeldblum has joined #ruby-lang
Elico has quit [Quit: Elico]
jerrytgarcia has joined #ruby-lang
mdub has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
woollyams has quit [Ping timeout: 252 seconds]
error404_ has quit [Read error: Operation timed out]
<Lewix> badeball: line 82 don't scale. any suggestion?
robbyoconnor has joined #ruby-lang
<badeball> which gist are you looking at now?
jstemmer has quit [Ping timeout: 252 seconds]
matp has quit [Ping timeout: 252 seconds]
yorickpeterse has quit [Ping timeout: 272 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
error404 has joined #ruby-lang
yorickpeterse has joined #ruby-lang
yorickpeterse has quit [Changing host]
yorickpeterse has joined #ruby-lang
jstemmer has joined #ruby-lang
matp has joined #ruby-lang
mucker has joined #ruby-lang
amclain has quit [Quit: Leaving]
setmeaway has joined #ruby-lang
<badeball> by the looks of it, the method has a linear runtime. were you expecting more?
<badeball> or are you experiencing worse?
<Lewix> what does linear runtime mean?
<Lewix> badeball: it's slow
<badeball> it means that if the method terminates within 10 seconds for 100 customers, it will terminate within 20 seconds for 200 customers
<Lewix> 5000 lines
robbyoconnor has quit [Read error: Connection reset by peer]
<badeball> I don't see any obvious optimization potentials
jtw has quit []
robbyoconnor has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
Shellcat has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
daikan has joined #ruby-lang
r0bby_ has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
r0bby_ has quit [Client Quit]
iliketurtles has joined #ruby-lang
imjacobclark has joined #ruby-lang
vmoravec has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
r0bby_ has joined #ruby-lang
imjacobclark has quit [Ping timeout: 246 seconds]
Elico has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
arBmind has joined #ruby-lang
mucker has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 246 seconds]
mucker has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
robbyoconnor has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
mdub has quit [Ping timeout: 252 seconds]
mucker has quit [Ping timeout: 252 seconds]
apeiros has quit [Ping timeout: 246 seconds]
<Lewix> badeball: im not sure where the bottleneck is
Barrin6 has quit [Quit: Leaving]
iliketurtles has quit [Quit: zzzzz…..]
<badeball> maybe you oughta try a profiler and see where the interpreter actually spends time
camilleldn has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby-lang
Shellcat has quit [Quit: Later peeps]
ahmedelgabri has joined #ruby-lang
dagobah has joined #ruby-lang
KM has quit [Read error: Connection reset by peer]
<Lewix> badeball: a profiler?
KM has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
<badeball> a profiler will usually show you which method is invoked the most and where time is mostly spent
<badeball> it's a great way to identify bottlenecks
<badeball> unfortunately, I don't have any experience in profiling ruby-applications
jonahR has quit [Quit: jonahR]
phansch has joined #ruby-lang
mucker has joined #ruby-lang
daikan has joined #ruby-lang
imjacobclark has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
DouweM has quit [Ping timeout: 272 seconds]
imjacobclark has quit [Ping timeout: 272 seconds]
tbuehlmann has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
h_kon has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
<badeball> Lewix: that's just showing a stacktrace of where you interupted
<badeball> can anyone help with a suggestion of a profiler here
<badeball> ?
vondruch has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
rahul_j has joined #ruby-lang
solars has joined #ruby-lang
<centrx> Isn't ruby-prof the one?
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
DouweM has joined #ruby-lang
mucker has quit [Ping timeout: 252 seconds]
robmiller has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 265 seconds]
diegovio1 has quit [Changing host]
diegovio1 has joined #ruby-lang
diegovio1 is now known as diegoviola
mistym_ has quit [Remote host closed the connection]
<yorickpeterse> ARRRRRR MATEYS
<yorickpeterse> IT BE MONDAY
<yorickpeterse> and I'm in early for a change
diegovio1 has joined #ruby-lang
diegovio1 has quit [Changing host]
diegovio1 has joined #ruby-lang
diegoviola is now known as Guest60214
diegovio1 is now known as diegoviola
Guest60214 has quit [Ping timeout: 248 seconds]
<Lewix> centrx: badeball: https://gist.github.com/6ewis/674f527c5abe304e3f04 line 176
<Lewix> it's taking forever with a larger data set
<centrx> Lewix, I assume you are redirecting output to a file?
<Lewix> centrx: nope
phansch has quit [Quit: Leaving]
<centrx> Lewix, Also I think the customers_with_electricity and customers_with_gas functions should be "include?" not "index"
simi has quit [Ping timeout: 260 seconds]
<Lewix> centrx: I'm hunting for the bottleneck
<centrx> Lewix, Okay, outputting to the screen is always slow, that is not a measure of program speed
<Lewix> centrx: yea i changed it to index to improve performance
<centrx> index is slower than include? ...
<centrx> anyway, both are fast so that isn't the bottleneck
<centrx> but if you are outputting all the data to the screen, the program is going to be as slow as your terminal scroll limit is
cba has joined #ruby-lang
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
<Lewix> centrx: it's just three lines
<Lewix> centrx: and index is faster from my understanding (not that it matters in my situation)
knu has quit [Ping timeout: 252 seconds]
<centrx> it looks like show_nbr_of_meters_readings_per_number_of_customers_with_that_many_readings is outputting every line from list_of_unique_nbr_of_meter_readings_and_number_of_customers_with_that_many_readings(resource) with puts
<badeball> #include? returns less information than #index and could have been implemented as !index.nil?, which means that #include? will never be slower than index, but depending on implementation #index can be slower than #include?
knu has joined #ruby-lang
<Lewix> centrx: not really. it outputs two line. i waited earlier and saw the output
<centrx> They're all slow because this is insane
daikan has joined #ruby-lang
<centrx> There is no way to even talk about it because the method names are so long
<centrx> It requires cutting and pasting everything into the chat
<badeball> haha
<centrx> I can't even see the whole line for all the crucial lines
<badeball> centrx: that would take all the fun out of it
<centrx> 80 characters is the conventional limit on line length
<centrx> but the names of some of the methods is longer than 80 characters, just the names of the methods!
<centrx> Lewix, Try writing your code so that no line is longer than 80 characters, without using any line breaks with \
imjacobclark has joined #ruby-lang
daikan has quit [Ping timeout: 272 seconds]
<gnufied> maloik: no probably not "my" conference.
<centrx> Lewix, Just use a database with Rails
cnivolle has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
<centrx> All you are doing is: Customer.group(:meter_readings).count
huma has joined #ruby-lang
imjacobclark has quit [Ping timeout: 260 seconds]
<badeball> centrx: even though I havn't tried using AR without the rest of Rails, I believe the recent refactoring was to make that possible
diegoviola has joined #ruby-lang
<centrx> It is even more separable I think
<centrx> Either way, you can use arel without ActiveRecord or any part of Rails
<badeball> even better
<Lewix> centrx: how?
<Lewix> centrx: my file is in *.csv
<centrx> You create the CSV though right?
<centrx> Either way, load the CSV into a database
<centrx> You can use your existing scheme without a database or Rails, but simplify simplify simplify
<centrx> You are calling some of these methods several times
<centrx> But I would recommend a database and Rails
<centrx> especially if you plan to add any other data or any other features
<centrx> but I don't know what the plan is for this program
<centrx> I do know that list_of_nbr_of_meter_readings_and_customer_ID(resource).map { |a,_| [a, nbr_of_customers_with_that_many_readings(a,resource) ]}. is running N times instead of 1 time
mbj has joined #ruby-lang
<centrx> and that I have to scroll the paste to see the whole line
francisfish has quit [Remote host closed the connection]
<centrx> Customer.where(service: 'electricity').group(:meter_readings).count
<centrx> Customer.where(service: 'gas').group(:meter_readings).count
ahmedelgabri has joined #ruby-lang
<centrx> Customer.where(move_in_date: Date.today)
vlad_starkov has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.2]
woollyams has joined #ruby-lang
diegoviola has joined #ruby-lang
vlad_starkov has joined #ruby-lang
diegoviola has quit [Client Quit]
diegoviola has joined #ruby-lang
ender__ has quit [Ping timeout: 252 seconds]
<centrx> Anyway, that is the end of my outburst
relix has joined #ruby-lang
centrx has quit [Quit: Leaving]
jonahR has joined #ruby-lang
r0bby_ is now known as robbyoconnor
woollyams has quit [Ping timeout: 252 seconds]
ender__ has joined #ruby-lang
michd is now known as MichD
benlovell has joined #ruby-lang
ender_ has joined #ruby-lang
elia has joined #ruby-lang
ender__ has quit [Ping timeout: 246 seconds]
woollyams has joined #ruby-lang
mechanicles has joined #ruby-lang
camilleldn has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
woollyams has quit [Ping timeout: 252 seconds]
Jostein` has joined #ruby-lang
Jostein` has quit [Read error: Connection reset by peer]
daikan has joined #ruby-lang
imjacobclark has joined #ruby-lang
ajayrhc has joined #ruby-lang
achru has joined #ruby-lang
robmiller has quit [Quit: robmiller]
daikan has quit [Ping timeout: 246 seconds]
phansch has joined #ruby-lang
imjacobclark has quit [Ping timeout: 248 seconds]
symm- has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
francisfish has joined #ruby-lang
marr has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
<yorickpeterse> oh silly travel websites
<yorickpeterse> you can't put unescaped spaces in your URLs
phansch has quit [Ping timeout: 246 seconds]
dragonnkh has joined #ruby-lang
dragonkh has quit [Read error: Operation timed out]
robmiller has joined #ruby-lang
<yorickpeterse> also hmpf, seems I'll need to write a multi-language date parser at some point
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
jerrytgarcia has joined #ruby-lang
cbreeze has joined #ruby-lang
camilleldn has quit [Remote host closed the connection]
ender_ has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
vlad_starkov has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
atmosx has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
soba has quit [Ping timeout: 252 seconds]
kitak has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
tom025 has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
daikan has joined #ruby-lang
sandbags has joined #ruby-lang
imjacobclark has joined #ruby-lang
ahmedelg_ has joined #ruby-lang
ahmedelg_ has quit [Remote host closed the connection]
ahmedelg_ has joined #ruby-lang
ahmedelgabri has quit [Read error: Connection reset by peer]
cnivolle_ has joined #ruby-lang
imjacobclark has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby-lang
cnivolle has quit [Ping timeout: 252 seconds]
<yorickpeterse> and apparently a Swedish thing is to call a hotel a "Bra hotel!"
<wnd> only if it's good (or one is being sarcastic)
skade has joined #ruby-lang
heftig has joined #ruby-lang
<yorickpeterse> which reminds me of Swedish chef
<yorickpeterse> https://www.youtube.com/watch?v=GWGh1YYT4vI I mean, this is fucking awesome
cored has joined #ruby-lang
daikan has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
atmosx has quit [Quit: Lost in trance]
h_kon has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
closer has quit [Ping timeout: 252 seconds]
closer has joined #ruby-lang
hahuang61 has joined #ruby-lang
camilleldn has joined #ruby-lang
camilleldn has quit [Remote host closed the connection]
camilleldn has joined #ruby-lang
apeiros has quit [Ping timeout: 272 seconds]
daikan has joined #ruby-lang
r0bgleeson has joined #ruby-lang
hahuang61 has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby-lang
daikan has quit [Read error: Connection reset by peer]
daikan has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
tom025 has quit [Remote host closed the connection]
daikan has quit [Remote host closed the connection]
EngierkO has joined #ruby-lang
sandbags has quit []
imjacobclark has joined #ruby-lang
|jemc| has quit [Ping timeout: 265 seconds]
daikan has joined #ruby-lang
imjacobclark has quit [Ping timeout: 272 seconds]
daikan has quit [Client Quit]
vondruch has quit [Ping timeout: 260 seconds]
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 252 seconds]
diegovio1 has quit [Client Quit]
vondruch has joined #ruby-lang
diegoviola has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
symm- has quit [Quit: Leaving...]
cnivolle_ has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
mechanicles has quit [Remote host closed the connection]
skade has quit [Client Quit]
mistym has joined #ruby-lang
mistym has quit [Ping timeout: 252 seconds]
jsrn has joined #ruby-lang
wolfsoul has joined #ruby-lang
jvrmaia has joined #ruby-lang
patriciomacadden has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
thmzlt has joined #ruby-lang
thmzlt has quit [Client Quit]
wolfsoul has quit [Quit: Leaving]
francisfish has joined #ruby-lang
camilleldn has quit [Remote host closed the connection]
camilleldn has joined #ruby-lang
camilleldn has quit [Remote host closed the connection]
Johz has joined #ruby-lang
francisfish has quit [Ping timeout: 246 seconds]
danijoo has quit [Read error: Operation timed out]
danijoo has joined #ruby-lang
imjacobclark has joined #ruby-lang
Kero has joined #ruby-lang
h_kon has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
hahuang61 has joined #ruby-lang
imjacobclark has quit [Ping timeout: 252 seconds]
bin7me has joined #ruby-lang
hahuang61 has quit [Ping timeout: 272 seconds]
vmoravec has quit [Quit: Leaving]
enebo has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
skade has joined #ruby-lang
imperator has joined #ruby-lang
smashwilson has joined #ruby-lang
<imperator> good morning
enebo has quit [Quit: enebo]
<gnufied> morning good
<gnufied> (it is rather evening in this part of the world)
<imperator> where's that if i may ask?
* imperator forgot
ahmedelg_ has quit [Remote host closed the connection]
mucker has joined #ruby-lang
<gnufied> Bangalore
jperry has joined #ruby-lang
<Lewix> hey
jperry is now known as Guest54055
<Lewix> can someone help me map my class to the database https://gist.github.com/6ewis/0bcc99a599340fd321ab
<imperator> gnufied, what OS you running? got a ping question for you
ahmedelgabri has joined #ruby-lang
<yorickpeterse> GNU...nevermind
<imperator> yorickpeterse, actually, maybe you can help me too
<gnufied> osx
<gnufied> imperator:
<Lewix> hmm
<yorickpeterse> imperator: shoot
<imperator> yorickpeterse, gnufied, when you run the ping command, is the output in english?
<yorickpeterse> you can just do it in here, apeiros aint here anyway :P
<yorickpeterse> just `ping` or with an argument?
AKASkip has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<yorickpeterse> http://hastebin.com/raw/vajixidema without args
<gnufied> imperator: yep
<yorickpeterse> http://hastebin.com/raw/xinohusici with args
francisfish has joined #ruby-lang
<yorickpeterse> this is on The Linux
rahul_j has joined #ruby-lang
<imperator> and if you try to deliberately ping a bogus host?
<yorickpeterse> "ping: unknown host foobar.cat"
<imperator> ok, still english
<imperator> what's your locale set to? just trying to figure out if that matters
diegoviola has joined #ruby-lang
francisfish has quit [Ping timeout: 265 seconds]
<imperator> does changing the locale to russian change the output?
<yorickpeterse> doesn't seem to for me
<whitequark> russian?
<imperator> oh, i thought yorickpeterse was russian
<whitequark> lol no, he's from NL
<imperator> maybe that's you whitequark
<whitequark> I am
<imperator> got you mixed up
<yorickpeterse> why thank you for insulting my country
<imperator> no offense!
<yorickpeterse> :P
<yorickpeterse> I tried Dutch btw
<whitequark> although my locale is en_US, because russian translations universally suck
<yorickpeterse> it stays in English
<imperator> ok, thanks
<imperator> seems this is a windows thing, then
<wnd> /bin/ping (from iputils-ping on Debian) doesn't contain string "locale"
cnivolle has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
<whitequark> the errno explanation for 0 (ESUCCESS) was and still is translated as "Victory" in glibc
<whitequark> "git: Cannot open file: Victory"
<yorickpeterse> haha
new2ruby has joined #ruby-lang
<whitequark> also, UP in ifconfig was translated as "UPWARD"
Raycaster has quit [Quit: Leaving.]
<yorickpeterse> I'm amazed it wasn't translated as "Victory comrades!" and "Upwards! For Mother Russia!"
<whitequark> I nearly cried the first time I seen that
saneax_ has joined #ruby-lang
DouweM has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby-lang
<yorickpeterse> heh
<yorickpeterse> man gitlab is slow
<yorickpeterse> clearly they should've written it in Django
<r0bgleeson> they should have written it on a scroll and fed it to the computer in the vatican
saneax_ has quit [Ping timeout: 272 seconds]
<whitequark> also, what the fuck is the following messages
francisfish has joined #ruby-lang
<r0bgleeson> google translate on a massive page of russian is a great way to kill your browser
saneax__ has joined #ruby-lang
imjacobclark has joined #ruby-lang
<r0bgleeson> interesting way to do localization
<new2ruby> Recently reset a linux server with many moving parts. Ruby as one of them. Now I do not see the "Rack" running. When I spawn the process, I do see the program list (ps) fire off many "Passenger ApplicationSpawner: /directory/to/ruby-root"
<new2ruby> The part of the website that is handled by this ruby code isn't working. I'm having problems digging into this issue since I did not develop the server although I have been able to maintain many of the parts until the Rack stopped working.
<r0bgleeson> new2ruby: it's going to be very hard/maybe impossible to help you with that information
imjacobclark has quit [Ping timeout: 260 seconds]
vondruch_ has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 272 seconds]
wolfsoul has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
wolfsoul has quit [Client Quit]
camilleldn has joined #ruby-lang
Lewix has joined #ruby-lang
elia has quit [Read error: Operation timed out]
nisstyre has quit [Quit: Leaving]
rolfb has joined #ruby-lang
vpretzel has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
cnivolle_ has joined #ruby-lang
camilleldn has quit [Remote host closed the connection]
camilleldn has joined #ruby-lang
bin7me has quit [Quit: Leaving]
Squarepy has joined #ruby-lang
cnivolle has quit [Ping timeout: 252 seconds]
saneax__ has quit [Quit: Lost terminal]
mechanicles has joined #ruby-lang
<ljarvis> oin
<ljarvis> moin
<ljarvis> r0bgleeson: but it isn't working, that should be enough information for you
kwando_ has joined #ruby-lang
kwando has quit [Read error: Connection reset by peer]
cnivolle_ has quit [Remote host closed the connection]
<yorickpeterse> what is Rack?
<ljarvis> u r
cnivolle has joined #ruby-lang
<yorickpeterse> I know I'm loaded
<yorickpeterse> check out my rack
* yorickpeterse shows server rack
<yorickpeterse> new2ruby: either way, what's your question?
rahul_j has joined #ruby-lang
<yorickpeterse> Passenger is a Ruby web server that uses Rack. Rack is sort of like a protocol for writing HTTP stuff in Ruby
<gnufied> there is some problem.
skade has quit [Quit: Computer has gone to sleep.]
<gnufied> what basically happened was, All the Racks belong to yorick now
<r0bgleeson> he doesn't have access to logs or something like that
<yorickpeterse> sudo su -l root
<yorickpeterse> job well done
<r0bgleeson> new2ruby: you'll get better help in the main channel
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<new2ruby> I'm trying to get started on the debug - but am having some issues locating the framework and associated logs.
<new2ruby> I have root access - the enviroment is under a chroot subdir.
jvrmaia has quit [Remote host closed the connection]
jvrmaia has joined #ruby-lang
<r0bgleeson> what web server are you running passenger on?
<r0bgleeson> nginx, apache?
<yorickpeterse> new2ruby: what are you trying to do?
<r0bgleeson> it should write its logs to the same file
<yorickpeterse> That is, what is your problem?
<yorickpeterse> "it isn't working" is not an answer
<r0bgleeson> the web server isnt serving requests
<r0bgleeson> and he doesnt know why
<new2ruby> server is apache
<r0bgleeson> did you check the apache log files?
<new2ruby> Apache + Red5
<new2ruby> I've checked the logs
<r0bgleeson> i dont know what red5 is
<new2ruby> Apache logs
<r0bgleeson> did you tail the log and then try to hit the ruby part of the site?
rnea has joined #ruby-lang
csaunders_ has quit [Remote host closed the connection]
<Lewix> r0bgleeson: are you familiar with sequel
mistym has joined #ruby-lang
csaunders has joined #ruby-lang
csaunders has quit [Client Quit]
ahmedelg_ has joined #ruby-lang
csaunders has joined #ruby-lang
jvrmaia has quit [Ping timeout: 252 seconds]
<r0bgleeson> Lewix: I know of it yeah, I follow it on github, but I don't use it anywhere
<new2ruby> I'll rerun just to get a fresh look at it.
<r0bgleeson> this same code again dude
<r0bgleeson> haha
<r0bgleeson> cool
<Lewix> r0bgleeson: i try to map it to my class customer
<Lewix> r0bgleeson: -)
ahmedelg_ has quit [Remote host closed the connection]
<r0bgleeson> you cant do it like that
<r0bgleeson> you dont want a Struct anymore
<r0bgleeson> you want a subclass of Sequel::Model
<Lewix> r0bgleeson: thats why im asking you
<r0bgleeson> class Customer < Sequel::Model
<r0bgleeson> then define to_csv somewhere on that model
<r0bgleeson> the rest should flow like normal
<r0bgleeson> maybe just to_a on Customer
mistym has quit [Ping timeout: 252 seconds]
<r0bgleeson> they're not readers
<r0bgleeson> i think you say 'property'
ahmedelgabri has quit [Ping timeout: 272 seconds]
<Lewix> r0bgleeson: can you mention the line you're referring to
rahul_j has quit [Quit: rahul_j]
<r0bgleeson> you should remove the readers
<r0bgleeson> then try Customer.columns
<r0bgleeson> and see what it returns
<Lewix> r0bgleeson: im not sure i follow
<r0bgleeson> you should remove attr_reader, it isn't neccessary and might cause a conflict with Sequel::Model
<r0bgleeson> if you want to find out what columns are mapped to your class, you can say p Customer.columns
<yorickpeterse> ^ attr_reader fucks things up
<r0bgleeson> check out the README as well, you can set the table name & see how 'Customer.db' works: https://github.com/jeremyevans/sequel
<new2ruby> I do see some entries in suphp and error (_log) but nothing "interesting"
<gnufied> I suggest you hire someone for quick work I think
<Lewix> r0bgleeson: do i need def intialize
<gnufied> it sucks to be unhelpful, but it is hard to help when we don't know the problem. new2ruby
tkuchiki has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<r0bgleeson> Lewix: if you do, you should call super()
<ljarvis> Lewix: you dont need it by default, unless you're overriding behaviour in which case you need super() like r0bgleeson mentions
<Lewix> ljarvis: i hate not understanding, it feels like magic
rahul_j has joined #ruby-lang
<Lewix> i have no idea how the mapping works
<new2ruby> Previously, when I ran ps, there would be a "Rack: " process resident - I'm assuming this was serving the http calls to the ruby portion. However, after a reboot I do not see this. I do see an attempt by the ApplicationSpawner - but I do not see any reason why it bails nor do I know enough about the architecture to "follow the bouncing ball". In no way am I frustrated at the support because I fully realize the knowledge gap
<ljarvis> Lewix: you have to pass a hash in, not a list
diegoviola has quit [Ping timeout: 272 seconds]
<new2ruby> The issue currently defined as - not knowing where to begin.
<new2ruby> Which is fairly close to needle in the haystack given the possibly variations in configuration, etc.
<gnufied> Is Passenger running properly?
<gnufied> check /etc/apache2
<gnufied> and related configuration files, if they have correct ruby path etc
<gnufied> bit like shooting in dark
imjacobclark has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
elia has joined #ruby-lang
diegoviola has joined #ruby-lang
rahul_j has joined #ruby-lang
<new2ruby> no /etc/apache2 - Passenger shows (in ps) PassengerWatchdog, PassengerHelperAgent, Passenger spawn server, PassengerLoggingAgent
imjacobclark has quit [Ping timeout: 260 seconds]
<new2ruby> I tried digging into where PassengerLoggingAgent dumps info - but didn't find an answer
nigerianceo has joined #ruby-lang
serroft has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 260 seconds]
ahmedelgabri has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
stonerfish has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rnea has quit [Quit: WeeChat 0.4.2]
mykoweb has joined #ruby-lang
jvrmaia has joined #ruby-lang
jstewart has joined #ruby-lang
<jstewart> \list
AKASkip has joined #ruby-lang
tylersmith has joined #ruby-lang
<new2ruby> More digging: http://localhost:3000/ gave me something to chew on.
diegoviola has joined #ruby-lang
patriciomacadden has joined #ruby-lang
<new2ruby> Looks like I have what I need from that page (the detail). Now I know how to debug from the outside although it would be nice to have a log file with the same information (or know where it exists).
<new2ruby> ... ahhh - fixed
<ljarvis> Lewix: is cust_id a primary key?
<new2ruby> Rack is now running. no errors in http://localhost:3000 .... and I've learned another tool in my toolbox for this server.
<Lewix> ljarvis: no. its not. I dont even know what im doing anymore. nvm sequel, i spent too much time on it without success
h_kon has quit [Remote host closed the connection]
imperator2 has joined #ruby-lang
achru has quit [Remote host closed the connection]
<new2ruby> Root cause was problem with code (missing quote)
symm- has joined #ruby-lang
coca_rails has joined #ruby-lang
<new2ruby> touch tmp/restart.txt neither restarted the Rack nor did it destroy it - so I was in the dark until the server was rebooted. Someday I'll learn more to debug as I go but I still do not have a handle on the environment.
kurko_ has joined #ruby-lang
lfox has joined #ruby-lang
<new2ruby> I assumed no code error since I have another server with a similar image (although no problems with the Ruby code) that stopped working after a reboot. Now that I know about localhost:3000, I see that server is complaining about a missing library.
<new2ruby> libmysqlclient_r.so.15: cannot open shared object file: No such file or directory - /usr/local/rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.11/lib/mysql2/mysql2.so
<new2ruby> That's something I can fix.
nathanstitt has joined #ruby-lang
heftig has quit [Ping timeout: 272 seconds]
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby-lang
svsolnc has joined #ruby-lang
shinnya has joined #ruby-lang
rippa has joined #ruby-lang
svsolnc has quit [Ping timeout: 272 seconds]
ajayrhc has quit []
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imjacobclark has joined #ruby-lang
jtw has joined #ruby-lang
diegoviola has quit [Ping timeout: 272 seconds]
patriciomacadden has joined #ruby-lang
imjacobclark has quit [Ping timeout: 272 seconds]
lfox has quit []
lfox has joined #ruby-lang
cored has quit [Read error: Connection reset by peer]
ender_ has joined #ruby-lang
ender__ has joined #ruby-lang
canton7-mac has joined #ruby-lang
|jemc| has joined #ruby-lang
ender_ has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 264 seconds]
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has quit [Quit: Leaving...]
rahul_j has quit [Quit: rahul_j]
mistym has joined #ruby-lang
ender__ has quit [Ping timeout: 272 seconds]
patriciomacadden has joined #ruby-lang
imperator2 has quit [Ping timeout: 265 seconds]
rahul_j has joined #ruby-lang
kolyaska has joined #ruby-lang
kolyaska has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
webtrans has joined #ruby-lang
DouweM has joined #ruby-lang
webtrans has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
shinnya has quit [Ping timeout: 252 seconds]
cnivolle has quit [Remote host closed the connection]
robmiller has quit [Quit: robmiller]
cnivolle has joined #ruby-lang
cnivolle_ has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
flowerrus has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
cnivolle has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby-lang
cnivolle_ has quit [Ping timeout: 252 seconds]
imjacobclark has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
imjacobclark has quit [Ping timeout: 264 seconds]
hahuang61 has joined #ruby-lang
MrZYX|off is now known as MrZYX
mikecmpbll has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jsrn has quit [Read error: Operation timed out]
dagobah has quit [Quit: Leaving...]
hahuang61 has quit [Ping timeout: 245 seconds]
zlogan has quit [Ping timeout: 252 seconds]
coca_rails has quit [Remote host closed the connection]
imperator has quit [Quit: Valete!]
new2ruby has quit [Quit: Page closed]
mistym has quit [Remote host closed the connection]
flowerrus has quit [Ping timeout: 252 seconds]
styped has joined #ruby-lang
styped has quit [Max SendQ exceeded]
simi has joined #ruby-lang
ivanskie has joined #ruby-lang
mistym has joined #ruby-lang
styped has joined #ruby-lang
styped has quit [Max SendQ exceeded]
serroft has quit [Quit: Leaving.]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
senj has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mykoweb has quit [Ping timeout: 246 seconds]
canton7-mac has quit [Quit: Leaving]
camillel_ has joined #ruby-lang
mykoweb has joined #ruby-lang
camilleldn has quit [Read error: Operation timed out]
mykoweb has quit [Remote host closed the connection]
bantic has joined #ruby-lang
mykoweb has joined #ruby-lang
coca_rails has joined #ruby-lang
_mtr has joined #ruby-lang
_mtr has quit [Max SendQ exceeded]
jsrn has joined #ruby-lang
camillel_ has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 272 seconds]
mykoweb has quit [Ping timeout: 272 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
caral has quit [Quit: caral]
charliesome has joined #ruby-lang
solars has joined #ruby-lang
mykoweb has joined #ruby-lang
Kero has quit [Ping timeout: 252 seconds]
ahmedelgabri has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
cored has joined #ruby-lang
elia has quit [Ping timeout: 272 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tbuehlmann has quit [Ping timeout: 252 seconds]
hahuang61 has joined #ruby-lang
imjacobclark has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
serroft has joined #ruby-lang
imjacobclark has quit [Ping timeout: 264 seconds]
jtw has quit []
caral has joined #ruby-lang
serroft has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby-lang
chouhou__ has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
iliketurtles has joined #ruby-lang
simi has quit [Ping timeout: 272 seconds]
ahmedelgabri has joined #ruby-lang
chouhoulis has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhou__ has quit [Read error: Connection reset by peer]
jtw has joined #ruby-lang
cored has quit [Ping timeout: 265 seconds]
jtw has quit [Client Quit]
jvrmaia has quit []
apeiros has joined #ruby-lang
saarinen has joined #ruby-lang
imjacobclark has joined #ruby-lang
serroft has joined #ruby-lang
phansch has joined #ruby-lang
Squarepy has quit [Ping timeout: 272 seconds]
imjacobclark has quit [Remote host closed the connection]
chouhoul_ has joined #ruby-lang
wiku6 has joined #ruby-lang
wiku6 has quit [Client Quit]
wiku6 has joined #ruby-lang
VTLob has joined #ruby-lang
scampbell has joined #ruby-lang
ahmedelgabri has quit []
wiku6 has quit [Client Quit]
wiku6 has joined #ruby-lang
saarinen has quit [Quit: saarinen]
chouhoulis has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby-lang
coca_rails has quit [Ping timeout: 240 seconds]
wiku6 has quit [Quit: WeeChat 0.3.8]
deens has joined #ruby-lang
wiku6 has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
wiku6 has quit [Client Quit]
wiku6 has joined #ruby-lang
mykoweb has joined #ruby-lang
jtw has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
jayne has quit [Remote host closed the connection]
wiku6 has quit [Client Quit]
wiku6 has joined #ruby-lang
mykoweb has quit [Ping timeout: 272 seconds]
mehlah has quit [Quit: Leaving...]
arBmind has quit [Quit: Leaving.]
deens has quit [Remote host closed the connection]
rulip1 has joined #ruby-lang
saarinen has joined #ruby-lang
imjacobclark has joined #ruby-lang
centrx has joined #ruby-lang
cx has joined #ruby-lang
cx has quit [Client Quit]
heftig has joined #ruby-lang
rulip1 has left #ruby-lang [#ruby-lang]
deens has joined #ruby-lang
bradcliffe has joined #ruby-lang
kith_ has joined #ruby-lang
kith_ has left #ruby-lang [#ruby-lang]
el_gato has joined #ruby-lang
el_gato has left #ruby-lang [#ruby-lang]
roberto_ has joined #ruby-lang
imjacobclark has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 272 seconds]
deens has quit [Remote host closed the connection]
roberto_ has quit [Quit: Saliendo]
roberto_ has joined #ruby-lang
atmosx has joined #ruby-lang
bambuka has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambuka has quit [Client Quit]
roberto_ has quit [Client Quit]
fenicks has joined #ruby-lang
bambuka has joined #ruby-lang
joshsz has left #ruby-lang [#ruby-lang]
lsegal has joined #ruby-lang
bambuka has quit [Client Quit]
roberto_ has joined #ruby-lang
roberto_ has quit [Client Quit]
roberto_ has joined #ruby-lang
roberto_ has quit [Client Quit]
bambuka has joined #ruby-lang
MichD is now known as michd
Andrevan has joined #ruby-lang
soahccc has quit [Read error: Connection reset by peer]
patriciomacadden has joined #ruby-lang
lcdhoffman has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
coca_rails has joined #ruby-lang
Pupeno_w has joined #ruby-lang
wiku6 has quit [Quit: WeeChat 0.3.8]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vocablo has joined #ruby-lang
wiku6 has joined #ruby-lang
coca_rails has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: This computer has gone to sleep]
vocablo has quit [Remote host closed the connection]
trickyhero has joined #ruby-lang
trickyhero has left #ruby-lang ["Leaving"]
deception has joined #ruby-lang
hiperborean has joined #ruby-lang
mykoweb has joined #ruby-lang
mbj has quit [Ping timeout: 272 seconds]
mechanicles has quit [Remote host closed the connection]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
elia has joined #ruby-lang
fijimunkii has joined #ruby-lang
mbj has joined #ruby-lang
mykoweb has quit [Ping timeout: 272 seconds]
mykoweb has joined #ruby-lang
wiku6 has quit [Quit: WeeChat 0.3.8]
KevinK has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
chaos_ has joined #ruby-lang
mykoweb has joined #ruby-lang
chaos_ has left #ruby-lang [#ruby-lang]
soahccc has joined #ruby-lang
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
skade has joined #ruby-lang
achru has joined #ruby-lang
mbj has quit [Ping timeout: 252 seconds]
mykoweb has quit [Ping timeout: 272 seconds]
mykoweb has joined #ruby-lang
elia has quit [Quit: (IRC Client: textualapp.com)]
Pupeno_w has quit [Ping timeout: 246 seconds]
imjacobc_ has joined #ruby-lang
mbj has joined #ruby-lang
hiperborean has quit [Ping timeout: 265 seconds]
amerine has joined #ruby-lang
soahccc has quit [Remote host closed the connection]
Rodrigo5244 has joined #ruby-lang
amerine has quit [Client Quit]
tuttinator has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
<Rodrigo5244> I have just read "The Ruby Programming Language" book. Now I want to covert to Ruby one Win32 application written in C. Is FFI the way to go?
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
RoxasShadowRS has joined #ruby-lang
hahuang61 has joined #ruby-lang
chaos_ has joined #ruby-lang
chaos_ has left #ruby-lang [#ruby-lang]
robbyoconnor has quit [Ping timeout: 264 seconds]
|jemc| has quit [Read error: Operation timed out]
imjacobc_ has quit [Remote host closed the connection]
achru has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
achru has joined #ruby-lang
bin7me has joined #ruby-lang
coca_rails has joined #ruby-lang
achru has quit [Ping timeout: 248 seconds]
<yorickpeterse> Rodrigo5244: you want to convert Ruby to C or the other way around?
<yorickpeterse> Neither way is really possible
<Rodrigo5244> yorickpeterse: C to Ruby
<r0bgleeson> you could try 'ironruby'
<r0bgleeson> it can talk to .NET/.NET runtime
<r0bgleeson> it was dropped by MS and is now a community effort so it might be buggy and useless
<yorickpeterse> Rodrigo5244: there's no clear cut way to convert C code to Ruby
<yorickpeterse> I don't see why you would want that either
<centrx> It is called porting
<r0bgleeson> he wants to port the code
coca_rails has quit [Ping timeout: 240 seconds]
<yorickpeterse> ah
<Rodrigo5244> I had a bad experience with C and Win32 API. I want to change the language of my project to be able to add features with less pain.
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Rodrigo5244: Gui app, command line, or library?
<Rodrigo5244> GUI app
<Rodrigo5244> + dll
<Rodrigo5244> I don't need to change the dll. I think it is doing all that it should already.
<Rodrigo5244> win32-api doc suggest that FFI is better.
<r0bgleeson> yeah, it may be
<Rodrigo5244> That is how I ended with FFI
<r0bgleeson> you should be able to call functions from a DLL
bradcliffe has joined #ruby-lang
<Rodrigo5244> If you guys are wondering. The C app is Desktop Slider.
<r0bgleeson> FFI is what people normally use
<r0bgleeson> not sure how it works on windows
<Rodrigo5244> Thanks. That is all that I need to know.
<r0bgleeson> cool
bambuka has quit [Remote host closed the connection]
robmiller has joined #ruby-lang
imjacobclark has joined #ruby-lang
kurt_ has joined #ruby-lang
mehlah has joined #ruby-lang
patriciomacadden has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
robmiller has quit [Quit: robmiller]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
patriciomacadden has joined #ruby-lang
mykoweb has quit [Ping timeout: 272 seconds]
centrx is now known as not-a-bot
diegoviola has quit [Quit: WeeChat 0.4.2]
kurt_ has quit [Quit: leaving]
mbj has quit [Ping timeout: 248 seconds]
not-a-bot is now known as centrx
kurt_ has joined #ruby-lang
dr_bob has joined #ruby-lang
mbj has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 246 seconds]
dr_bob has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
Yu\2 has joined #ruby-lang
x0f has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
dr_bob has left #ruby-lang [#ruby-lang]
coca_rails has joined #ruby-lang
robbyoconnor has joined #ruby-lang
dr_bob1 has joined #ruby-lang
kurt_ has quit [Ping timeout: 252 seconds]
dr_bob1 has quit [Client Quit]
coca_rails has quit [Ping timeout: 240 seconds]
jayne has joined #ruby-lang
mistym has joined #ruby-lang
scampbell has quit [Quit: Leaving]
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
mucker has quit [Ping timeout: 246 seconds]
|jemc| has joined #ruby-lang
arBmind has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
johnmilton has joined #ruby-lang
fijimunkii has quit [Ping timeout: 272 seconds]
mykoweb has joined #ruby-lang
fijimunkii has joined #ruby-lang
mistym has quit [Ping timeout: 265 seconds]
bradcliffe has quit [Quit: Textual IRC Client: www.textualapp.com]
jstewart1 has joined #ruby-lang
jstewart has quit [Read error: Connection reset by peer]
mykoweb has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
bondar has joined #ruby-lang
bondar has quit [Max SendQ exceeded]
robbyoconnor has quit [Ping timeout: 272 seconds]
bradcliffe has joined #ruby-lang
heftig has quit [Quit: Quitting]
vlad_sta_ has joined #ruby-lang
mykoweb has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
kurt_ has joined #ruby-lang
heftig has joined #ruby-lang
Yu\2 has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 264 seconds]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
chouhoulis has joined #ruby-lang
madb055 has joined #ruby-lang
mehlah has quit [Ping timeout: 260 seconds]
mbj has quit [Quit: leaving]
iliketurtles has joined #ruby-lang
mykoweb_ has joined #ruby-lang
marr has quit [Ping timeout: 246 seconds]
mykoweb has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
kurt_ has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby-lang
phansch has quit [Quit: Leaving]
mykoweb_ has quit [Remote host closed the connection]
chouhoul_ has quit [Ping timeout: 248 seconds]
chouhou__ has joined #ruby-lang
mykoweb has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
prc has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhou__ has quit [Read error: Connection reset by peer]
mykoweb has quit [Ping timeout: 272 seconds]
solars has quit [Read error: Operation timed out]
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mistym has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
chouhoulis has joined #ruby-lang
deens has joined #ruby-lang
camilleldn has joined #ruby-lang
coca_rails has joined #ruby-lang
mistym has joined #ruby-lang
coca_rails has quit [Ping timeout: 240 seconds]
Cakey has quit [Ping timeout: 265 seconds]
woollyams has joined #ruby-lang
waxjar has quit [Ping timeout: 248 seconds]
huma has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
waxjar has joined #ruby-lang
smashwilson has quit [Quit: Leaving]
AKASkip has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
saneax_ has joined #ruby-lang
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
vlad_starkov has joined #ruby-lang
coca_rails has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
nigerianceo has quit []
vlad_sta_ has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
MrZYX is now known as MrZYX|off
deens has quit [Remote host closed the connection]
mdub has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby-lang
patriciomacadden has quit [Ping timeout: 260 seconds]
serroft has quit [Quit: Leaving.]
imperator has joined #ruby-lang
chaos_ has joined #ruby-lang
chaos_ has left #ruby-lang [#ruby-lang]
soahccc has joined #ruby-lang
patriciomacadden has joined #ruby-lang
jstewart1 has quit [Quit: Leaving.]
simi has joined #ruby-lang
johnmilton has quit [Remote host closed the connection]
marr has joined #ruby-lang
danijoo has quit [Quit: Leaving...]
shinnya has joined #ruby-lang
patriciomacadden has quit [Ping timeout: 252 seconds]
coca_rails has quit [Remote host closed the connection]
havenwood has quit []
fijimunkii has quit [Read error: Connection reset by peer]
lfox has quit [Quit: ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
jsrn has quit [Quit: Leaving]
vlad_sta_ has joined #ruby-lang
fijimunkii has joined #ruby-lang