anaeem1 has quit [Remote host closed the connection]
Scripore has joined #ruby
mloveless has quit [Ping timeout: 250 seconds]
Scripore has quit [Client Quit]
Musashi007 has joined #ruby
kl has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
<juju>
havenwood, t-thanks
<juju>
havenwood, but that is just a function made for that
bears_ has quit [Ping timeout: 265 seconds]
<juju>
i can't implemenet it on my own
<juju>
you know what im ean?
davedev24_ has quit [Ping timeout: 258 seconds]
<juju>
a permutation function
bears has joined #ruby
asmodlol has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
fandi has joined #ruby
agent_white has joined #ruby
kavita has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
byprdct has joined #ruby
<mungojel1y>
juju: have you ever written any recursive function?
Musashi007 has quit [Ping timeout: 265 seconds]
larissa has joined #ruby
bears has quit [Ping timeout: 250 seconds]
<mungojel1y>
juju: i've never written a permutation function either, but i can think of how to do it recursively pretty easily, you just do one tiny step and pass the buck on the rest
Musashi007 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 244 seconds]
<juju>
mungojel1y, no
<juju>
i literally fart my brain whenever i try to think of solutions to advanced stuff like that
<juju>
well
<juju>
easy stuff, but algorithms
<juju>
i mean it must be compatatively easy to solar sysetm mapping or whatever
<mungojel1y>
being barely comprehensible is sorta the point of algorithms. to rein something incomprehensible just barely into the realm of the knowable
DonOtreply has joined #ruby
bmichelsen has joined #ruby
arescorpio has joined #ruby
<mungojel1y>
juju: you don't have to think of solutions to solved problems? search for "permutation algorithms" and feast your mind
jaequery has joined #ruby
<juju>
mungojel1y, but
<juju>
how do i become better by juping stuff on google
<juju>
i dont become elite
<juju>
by coping someone else's algo
<mungojel1y>
read Knuth and do the exercises, then
ponga has quit [Quit: Leaving...]
<mungojel1y>
understanding difficult algorithms isn't really the main thing about programming, though. it's difficult in many other ways.
<juju>
think i will just start from a nice big book onr uby
<juju>
like the well grounded ruby
<juju>
then work my way up in nice small steps
<mungojel1y>
like it's difficult to learn how to properly document things. nothing to do with the complexity of the algorithms. the difficulty there is communicating across time and cultural boundaries and etc.
ItSANgo has quit [Quit: Leaving...]
goshdarnyou has joined #ruby
<mungojel1y>
if you learn and think about how to document your programs well that will be way more useful to everyone else than if you worry about being clever about algorithms.
bears_ has joined #ruby
Scripore has joined #ruby
<mungojel1y>
do you have a text editor you know and love? get to know an editor well. get to know a version control system.
<havenwood>
juju: be sure to get Well-Grounded Rubyist, Second Edition
<havenwood>
juju: so you're learning against a modern Ruby
<juju>
t-thanks
<havenwood>
juju: you're the first typing-stutterer i've met
<juju>
mungojel1y, i have emacs
<juju>
havenwood, i know its weird but its who i am :/
apurcell has joined #ruby
Ballkenende has joined #ruby
<mungojel1y>
ruby is a fine language, but learning a language is nearly the least important thing to learn about programming.
josephndenton has joined #ruby
<Scripore>
what do you guys think about coding bootcamps? I'm thinking about attending one...
<Scripore>
worth the cost? or just a waste of time and money?
reset has quit [Quit: Leaving...]
<havenwood>
Scripore: the couple folk i know who've attended one have all said it was worth it. your mileage may vary, hard to say!
<juju>
mungojel1y, what is the most improtant thing
<chu_>
Scripore: I've heard good things about one a mate did in SanFran, but I forget its name.
<juju>
Scripore, i dont know, $3000 for 6 weeks of ruby :/
bmichelsen has quit [Remote host closed the connection]
<Scripore>
well, the one I'm thinking of is actually $12k for three months full time.
<Scripore>
I'm in NYC so there's quite a few options around here.
<mungojel1y>
juju: if i had to choose one tool it would be jhana. but as that's not widely available i'll say version control. programming without version control is hell.
Ballkenende has quit [Ping timeout: 245 seconds]
sankaber has joined #ruby
apurcell has quit [Ping timeout: 264 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
DonOtreply has quit [Quit: DonOtreply]
josephndenton has quit [Ping timeout: 250 seconds]
<juju>
Scripore, i just feel it's a waste, how much could you POSSIBLY learn in three months for it to be worth $12k?
hjlsteffens has joined #ruby
<juju>
all the resources you would be given are made public if you know which books to get even though i dont
<juju>
a waste of money imo
spastorino has quit [Quit: Connection closed for inactivity]
<Scripore>
shrug, I just feel as if I'm not making as much progress as I should be making.
<juju>
mungojel1y, i have git and emacs and magit
<havenwood>
juju: isn't it premature to say until you've learned the things they teach? :P
<juju>
Scripore, that is what their business model relies upon
<juju>
Scripore, the only thing that you will ever learn is deliberate practice of what you already know
<juju>
Scripore, so practice deliberately
<juju>
havenwood, thats true but three months?
<juju>
if i knew _what_ to learn i would do it myself
shevy has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
hjlsteffens has quit [Client Quit]
axilla has quit [Ping timeout: 264 seconds]
tristanp_ has joined #ruby
tyll_ has joined #ruby
kl has quit [Ping timeout: 245 seconds]
caiges has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Scripore>
they have pretty stellar reviews off of quora though. plus their 97% job placement is rather appealing.
<Scripore>
if it's to be believed.
<juju>
w/e
tristanp_ has quit [Client Quit]
<mungojel1y>
juju: what's your github?
<Scripore>
you could be right though. =)
bears___ has joined #ruby
kavita has quit []
<juju>
mungojel1y, dont have one i just have git installed
havenwood has quit []
<juju>
dont have any code to put on github lol
<juju>
ok so well grounded rubyist
antfy has joined #ruby
<juju>
anything else or is that the best
Timgauthier has joined #ruby
patrick99e99 has joined #ruby
<mungojel1y>
juju: get one, write code, collaborate on code, the sooner you do that the sooner you'll be able to make things
<Scripore>
I started off with Zed's Learn Ruby the Hard Way
<antfy>
You guys, I had a quick question. For a project I want to fetch updated information from a number of websites every 12 hours indefinitely.
<mungojel1y>
the number one cause of not getting programs made is not making programs
<juju>
mungojel1y, cant collaborate if i cant code :)
tyll has quit [Ping timeout: 245 seconds]
<juju>
Scripore, do you have a github so i can see your projects
<antfy>
My current plan to do this is run a ruby rails rake test every minute which adds a site when it hasn't been updated in 12 hours to a queue
<Scripore>
github.com/scripore
<Scripore>
not much there, just mostly random snippets...
<antfy>
and queue works run on that information performing the actual updates
<juju>
i guess i should get started on tehse two books then
<juju>
just hope i can become good in a month or two
<juju>
:p
<antfy>
Does this sound like a good system? Or is there a better way of doing it?
kavita has joined #ruby
<mungojel1y>
juju: you can write something, you can write a hello world, write it and put it up, that'll get you way further than writing a hello world and leaving it on your own hard drive
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ItSANgo has joined #ruby
<juju>
mungojel1y, lol
bears_ has quit [Ping timeout: 240 seconds]
niggler has joined #ruby
bears has joined #ruby
<niggler>
hello #ruby! is rubyforge.org down ?
<niggler>
heh of course it is -- i shouldve checked wikipedia
britt_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<niggler>
for some unknown reason, some modules still point to rubyforge as their URL
patrick99e99 has quit [Ping timeout: 240 seconds]
dc has joined #ruby
avarice has joined #ruby
giuseppesolinas has joined #ruby
Timgauthier has quit [Ping timeout: 272 seconds]
<juju>
Wooow, this pickaxe book has great reviews
bears___ has quit [Ping timeout: 255 seconds]
gsd has joined #ruby
RandyT_ has joined #ruby
rshetty has joined #ruby
Musashi007 has quit [Ping timeout: 250 seconds]
<juju>
wonder if it would be good for me
RandyT has quit [Ping timeout: 245 seconds]
RandyT_ is now known as RandyT
<juju>
doesn't look like it teaches "computer progarmming" but instead ruby
<juju>
if that meakes sense
o010n9 has quit [Ping timeout: 250 seconds]
<niggler>
i dont know of any ruby book designed for teaching computer programming
t3h_j4n170r has quit [Ping timeout: 250 seconds]
<niggler>
C/C++/java/python are the languages of choice for that purpose juju
bears has quit [Ping timeout: 265 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
<benzrf>
ew
Takle has joined #ruby
<juju>
hmmmm
Channel6 has joined #ruby
<benzrf>
niggler: wow what a BRAVE nick
o010n9 has joined #ruby
<juju>
was reading python code didn't like all the _____stuff_____ it did
t3h_j4n170r has joined #ruby
sarmiena_ has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
elek is now known as jasonmit
ahtik has quit [Ping timeout: 250 seconds]
sarmiena_ has quit [Client Quit]
sarmiena_ has joined #ruby
sevenseacat has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
Gambaro has joined #ruby
<Gambaro>
are there any programming lessons besides codecademy that are good?
reset has joined #ruby
kl has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
reset has quit [Client Quit]
<niggler>
juju: im a big fan of starting with C
<Scripore>
Ruby koans, there's also Dave Jone's Ruby tutorials on youtube.
bears has joined #ruby
Yzguy has joined #ruby
<niggler>
if for no other reason than because K&R is a wonderful book
dideler has joined #ruby
hamakn has joined #ruby
<benzrf>
niggler: do you have to use a nick like that
mloveless has joined #ruby
<niggler>
benzrf: do you have to use a nick like that?
<benzrf>
how very comparable
joast has quit [Quit: Leaving.]
radic has quit [Ping timeout: 245 seconds]
<niggler>
one nick is a word, the other afaict isn't
radic has joined #ruby
phutchins has joined #ruby
<benzrf>
one nick is deliberately extremely similar to a racial slur, the other afaict isn't
<juju>
w-why start with c when it is harder for me?
shevy has joined #ruby
<juju>
i wonder if nigeria was formed out of the combination of "nigger area"
<juju>
sorry :/
<niggler>
juju: there are excellent general programming books written for the C programming language, as it's the language used in many academic courses of study
<benzrf>
are you seriously going to try to claim you chose it for any reason other than to be edgy and/or racist
hamakn has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
sea_local has joined #ruby
Musashi007 has quit [Quit: Musashi007]
joast has joined #ruby
St_Marx has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
<sevenseacat>
who cares
_1_twinboy has joined #ruby
<niggler>
benzrf clearly does :/
larissa has quit [Quit: Leaving]
<_1_twinboy>
Huh
chipotle has quit [Quit: cheerio]
<niggler>
what exactly was rubyforge?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
sevenseacat: you dont care about people being racist?
<niggler>
you are being racist benzrf, move on
Musashi007 has joined #ruby
duncannz has joined #ruby
XxionxX has joined #ruby
bears has quit [Remote host closed the connection]
bears_ has joined #ruby
<shevy>
lol
<shevy>
you feed him entertainment value benzrf
<benzrf>
ugh
<niggler>
benzrf: i have an actual question, and your knowledge would be helpful right about now
<benzrf>
sorry i dont particularly feel like helping people who are amused by slurs
<shevy>
what is the question
<juju>
benzrf, are u of african descent
<benzrf>
juju: no
<niggler>
its not a slur, as evidenced by the dictionary; you are one of a handful of people who automatically assume that's the case
<juju>
shevy, are you racist and as such find no qualms with helping niggler?
bears_ has quit [Ping timeout: 245 seconds]
<niggler>
shevy: i was noticing some projects referencing rubyforge
<shevy>
juju I help people
chipotle has joined #ruby
<niggler>
so i came here asking if it was temporarily down, but wikipedia suggests that it is permanently down
<shevy>
rubyforge is gone to the ashes of the void
<benzrf>
niggler: do you legitimately believe that that's a valid defense
<juju>
why would one use pry instead of irb please
<niggler>
so what exactly was it shevy
<benzrf>
juju: because it's gr8
<shevy>
niggler well, the projects there simply are gone. but if they were active, most have moved to rubygems.org and github
<niggler>
benzrf: honestly, most people don't make that leap
<juju>
ok
<benzrf>
niggler: haha, sure
dideler has left #ruby ["undefined"]
deryl has joined #ruby
<shevy>
juju irb does not have as many custom addons/modifications; it also is not the same REPL philosophy
<niggler>
shevy: did they compete with rubygems?
Brando753 has quit [Ping timeout: 265 seconds]
benzrf has left #ruby [#ruby]
<shevy>
niggler not really, not in the beginning. rubyforge, hence the name, "competed" with sourceforge, just for ruby code
<niggler>
oh so they were hosting like github
<deryl>
shevy talking pry again? :)
<shevy>
the thing however was that rubygems, and the gems that are provided there, would duplicate the work of rubyforge. and since more and more people adopted gems, more and more people garnered to rubygems.org (and actually also github, github is like a walking behemoth)
<juju>
can i seee ur pryrc shevy
<shevy>
juju I don't have one as I don't use it
soroto has joined #ruby
<niggler>
can you gem install from a git endpoint?
<soroto>
my computer died
<juju>
shevy, o
rshetty has quit [Remote host closed the connection]
sarmiena_ has quit [Quit: sarmiena_]
<shevy>
niggler in principle yes
<shevy>
more generally, you can use non-rubygems.org sources
<shevy>
not sure if that would work, I only use rubygems.org; though I have two gems myself that are blocked on rubygems.org because someone else used that name already :(
<shevy>
'configuration' and 'usher'
t3h_j4n170r has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
<soroto>
what are good resources besides koans and codecademy?
<deryl>
write stuff. if it breaks figure out why. read the docs (ri Array for example) and figure out why i broke. Use a testing framework to help you visualize and conceptualize. Something like RSpec or (at a lower level) MiniTest.
<shevy>
soroto do you know what a block in ruby is?
<deryl>
stuff like that
<deryl>
shevy are you able to read my text? Am I not transmitting or something?
<shevy>
who is talking here
tus has quit []
<deryl>
new IRC client so wondering if I screwed up a config or something
<shevy>
;-)
<deryl>
hehe
gsd has joined #ruby
<niggler>
some people jsut want some hand holding deryl
<deryl>
shevy ahh yeah i foget that not everyone has fast inet
<shevy>
ok
<soroto>
do end.class
martin_work has quit [Quit: martin_work]
<deryl>
soroto read the 2 URLs I gave you.
<shevy>
soroto work through https://pine.fm/LearnToProgram/chap_01.html - all following chapters; afterwards you know what a block is and how to use it in methods you define
<deryl>
they are urls for THE programming book for learning Ruby.
<deryl>
or even the one shevy posted
<shevy>
but seriously the only way to learn ruby is to write ruby code soroto. you need to slowly get your brain towards being faced with a problem, and then work towards solving that problem
pu22l3r has quit [Read error: No route to host]
<soroto>
someone suggested that i go to some d thing
<mroach>
I agree with @shevy
<soroto>
it starts with d i wish i didn't lose the thign
<shevy>
d thing?
Ballkenende has joined #ruby
<deryl>
soroto and like i said, write code. don't be afraid to break stuff. humans learn by breaking
dx7iso has joined #ruby
<mroach>
Come up with a project to work on and just dive in and do it.
<soroto>
thanks guys
<shevy>
yeah
<soroto>
i want to check out all the available options
maxd has joined #ruby
<maxd>
hi
<deryl>
soroto that leads to analysis paralysis
<shevy>
soroto if you can't decide on what to do, I wrote a todo list over the years, and I never run out of things todo these days
<deryl>
meaning you spend more time looking for resources than actually *using* them, and *doing* what it is you're actually trying to learn.
pu22l3r has joined #ruby
<maxd>
I use JSON.parse to parse a json file. Can I elegantly provide fallback defaults (using a fixed value when no value exists for the key).
<deryl>
your brain then never actually 'gets' what you're doing
<shevy>
just two hours ago I started to write class VideoInformation, which right now just calls ffmpeg but presents me the information in a more usably form (video and audio streams found in e. g. a .flv or .mp4 file)
<mroach>
@maxd Sounds like you want to define a hash of defaults and then do a merge
<shevy>
maxd dunno if you can do that in JSON, but JSON.parse gives back a hash or? and you can modify a hash at runtime in ruby ... hash.default = 'donald duck'
rpag has quit [Ping timeout: 240 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mroach>
I wanted to learn Rails (and by extension, Ruby) so I just dived head first into making a web application. Few months later it’s up and running. That’s the way to go, mate
kavita has quit [Remote host closed the connection]
<shevy>
sorry
<shevy>
ah...
<shevy>
>> hash = Hash.new; hash.default = 'donald duck'; hash['who is the baddest duck in town']
<deryl>
here. Here's something 'simple'. Write a ruby program that pulls information on the version of ruby you have installed and outputs it. Everything from type (Jruby, MRI, etc) to version string, to compile options. Find out what class in the Ruby core API contains that info, and write a script to duplicate 'ruby --version'
<shevy>
I always used ruby because I needed a better language than php, and I was faced with python vs. ruby
<shevy>
"Instead of emphasizing the what, I want to emphasize the how part: how we feel while programming."
Ballkenende has quit [Ping timeout: 245 seconds]
<deryl>
in order to do that script you'll need to know ruby syntax (the book I gave you gives you that) and you'll need to know how to read the Ruby API (std, core, etc) and, using the syntax of ruby, how to output that to the console.
<mroach>
Somehow I never got around to programming in Python. Managed to get good at VB, PHP, C#, T-SQL, Perl, Bash, Ruby, while completely avoiding ever doing anything with Python, Java, C, or C++
<deryl>
I'm doing Java and JavaScript right now for Android platform.
<deryl>
something new
<mroach>
I think C# spoiled me and when I try to use Java it feels like using C# from 10 years ago. I imagine Python would feel similar compared to Ruby
<niggler>
anyone have experience with rubyracer or execjs?
<shevy>
mroach I dunno, I find that both ruby and python fill a similar niche, but python is really very ... strange
sargas has joined #ruby
<Cat_1>
puts `ruby --version` ?
<shevy>
[for x in y in cat and mice lambda:]
<shevy>
INDENT HERE
<Cat_1>
Is that cheating?
jenrzzz has joined #ruby
<deryl>
mroach i did that backwards, I did C# first and then went to java. i find myself writing something from 1 in the other. hehe. brain gets confused sometimes
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
<mroach>
@deryl Yeah same. C# first, took a look at Java, WTF’d my way through it and gave up
<niggler>
wait shevy wtf is *** in python
<deryl>
hehe
<shevy>
niggler I just made that up as I went ahead; I don't actually really *know* python
<shevy>
it's hard to want to learn python after ruby, it feels as if I'd duplicate learning work
<deryl>
i'm doing the java because I want to work on the Android platform. My wife bought me a Galazy S5 Active and I wanted to try my hand at writing stuff for it
<shevy>
k
<shevy>
now you are a hamster deryl
<deryl>
hamster?
<shevy>
and you must keep on running in the hamster treadmill
<shevy>
yep
<deryl>
lol
<mroach>
At my old job I’d sometimes have days of doing T-SQL, C#, VB, PHP, JavaScript, Ruby, and Bash all in the same day. That got my brain tied in knots over little things like “do I use != or <> in this language? ‘done’ or ‘end’ or nothing?”
<shevy>
a big JAVA logo is on it
<shevy>
in flashy neon colours
<deryl>
hahahaha you are a sick sick man shevy ;)
studiotate_ has quit [Read error: Connection reset by peer]
<shevy>
mroach I couldn't get my brain to do that
<mroach>
Fortunately that wasn’t so common. But 4 - 5 languages in a day was
Brando753 has quit [Ping timeout: 265 seconds]
<deryl>
that would fry my receptors
studiotate_ has joined #ruby
<shevy>
so now I try plan B; be better in ruby than the alternatives ... and I still don't really know that much ruby, today havenwood taught me this:
<mroach>
The problem is my IRC client translated regular double quotes into angled quotes which are not valid
<niggler>
on osx at least smart quotes turns standard quotes into the directional form
<niggler>
mroach: are you on a mac?
soroto has quit [Ping timeout: 246 seconds]
<mroach>
Yeah that's the problem. I'm on OS X. I just disabled that
blizzy has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Ping timeout: 265 seconds]
<mroach>
I can't fathom why Colloquy would have "Smart Quotes" enabled by default for IRC
<niggler>
its osx setting
<mroach>
It's a per text input setting
<niggler>
not colloquy (I'm also using colloquy)
<mroach>
Oh yeah it's also system-wide
<niggler>
system preferences ... keyboard ... text ... "Use smart quotes and dashes"
<mroach>
Disabling that garbage now
<mroach>
Yeah
<mroach>
mvh
<mroach>
mvh
<mroach>
(sorry)
braincrash has joined #ruby
Musashi007 has joined #ruby
<deryl>
ok i'm screwing myself up. accessed too many android tutorials and not completing any of them. time to knuckle down and pick one even if its not the greatest. getting myself confused here. bbl
<niggler>
deryl: good time to use rubymotion :D
DonOtreply has quit [Quit: DonOtreply]
<XxionxX>
I don't understand the inject method.
<XxionxX>
puts (1..2).inject(:+) #=> 3
<XxionxX>
I can make simple examples like the above code but I don't understand the symbol inject part ':+'
<XxionxX>
Is there a good article which someone could recommend?
<deryl>
niggler i'm going the java route for now since thats native to the platform. once i feel confident that way, i'll take a different turn and go rubymotion (its also payware and i'm broke damn it)
Takle has joined #ruby
<Cat_1>
Isn't :+ the same as writing "+" but in a symbol-ized form
<deryl>
i have ruboto core on my phone but typing out programs on a Galaxy S5's screen.. sucks ass :)
<niggler>
id also suggest cordova but that's HTML/JS
<deryl>
so i stole my son's laptop for awhile :)
<deryl>
i was looking at javascript on the android as well
DadoCe has joined #ruby
<deryl>
not sure which way to go currently actually. i mean learning JS would serve me on both the android and with rails apps. so..
<niggler>
JS is probably the better choice :D
<XxionxX>
Cat_1: Is it? I don't know.
yfeldblum has joined #ruby
<waxjar>
XxionxX: do you understand the block-form of inject?
amclain has joined #ruby
<deryl>
but since i need to just pick a damned direction and just *do*.. i picked the java since its 'the language' on android
psy_ has quit [Remote host closed the connection]
<deryl>
niggler see? now you got me 2nd guessing myself. that'd lock be back into paralysis
<niggler>
ok deryl im going to decide for you: go the JS route
<deryl>
s/be/me/
<deryl>
lol
<niggler>
if its true that JS will serve you on android and on rails apps, then its the obvious choice
<Cat_1>
XxionxX: Symbols are just references to strings. Every time you use a constant "+" That takes up memory because it allocates new space for the string. But using :+ is kinda like using a pointer to the location of the string "+"
<XxionxX>
waxjar: I'm not sure, I'm really new to programming. I was consulting the ruby docs and this:
<XxionxX>
(5..10).inject { |sum, n| sum + n } #=> 45
<XxionxX>
example makes sense to me, but I didn't understand the symbol example
Musashi007 has quit [Ping timeout: 255 seconds]
seitensei has joined #ruby
jack_rabbit has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
<deryl>
well I was thinking that since i'm the only one writing any project i work on, if I wanted to really add interactivity to whatever app I wrote I'd need to know JS (coffeescript just writes out javascript so why not write in JS directly)
<deryl>
i don't work for any company, just myself. so on most projects its just me, myself, and I hehehe
<Cat_1>
You can combine them by a symbol that names a method or operator... + can be defined for most objects.
<waxjar>
normally, you can pass proc as a block to a method like so: foo(&block). it calls #to_proc on block, and passes the proc as a block to the method.
DonOtreply has joined #ruby
<waxjar>
Symbol also has a #to_proc method, it returns a proc equivalent to proc { |x| x.send(self) }
sevenseacat has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
<waxjar>
inject is just special in that it doesn't require you to pass the symbol as a block, but you can pass it directly
sevenseacat has joined #ruby
adriancb has joined #ruby
<XxionxX>
Cat_1: If symbols are string references, why does ':+' add my integers?
<waxjar>
look up Symbol#to_proc in Ruby on google for a more detailed explanation
<Cat_1>
because + is a symbol for an operator
Photism has quit [Quit: Leaving]
<Cat_1>
The defiition of inject says
<Cat_1>
"Combines all elements of enum by applying a binary operation, specified by a block or a symbol that names a method or operator."
<Cat_1>
a symbol that names a method or operator
Musashi007 has joined #ruby
Scripore has quit []
<XxionxX>
waxjar: ok thanks
<Cat_1>
so you could have :add if you define it
<Cat_1>
be the same thing as :+
<Cat_1>
but + is already defined for integers
<XxionxX>
ah!
<Cat_1>
1+1=2
<XxionxX>
that makes sense
sea_local has joined #ruby
<Cat_1>
But let's say I had a class called Boats
<Cat_1>
what is Boat.new + Boat.new ?
<Cat_1>
You can define +, - , /, *, operators to do the correct things in those classes
josephndenton has joined #ruby
<Cat_1>
so Boat.new + Boat.new can return an array of boats, for example
<XxionxX>
I think I get it
<Cat_1>
and so inject(:+) on an array of Boats would return an array of Boat objects.
<Cat_1>
but if you didnt' define the operator
<Cat_1>
I don't know what it would do
adriancb has quit [Ping timeout: 265 seconds]
troulouliou_dev has joined #ruby
<Cat_1>
probably NoMethodError defined for '+' For Boat::BoatClass or something
Brando753 has joined #ruby
<waxjar>
basically, it's just there for convenience. if you don't feel comfortable yet using it, just use the block form to achieve the same
pu22l3r has quit [Remote host closed the connection]
<XxionxX>
so many things to understand @_@
<XxionxX>
At least ruby is easy to read, this is the first language I have actively been able to learn.
<waxjar>
after a while you'll get tired of writing blocks and use the Symbol#to_proc trick :P
<XxionxX>
I'll def write blocks for a while!
<XxionxX>
at least then I will have the syntax forged into my brain
<XxionxX>
but i'm off to read that doc!
charliesome has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
StoneCypher has quit []
siwica1 has joined #ruby
siwica has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
chu_ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
AndyBotwin has quit [Ping timeout: 264 seconds]
AndyBotwin has joined #ruby
windowlicker has quit [Quit: Lost terminal]
tenseiten has joined #ruby
seitensei has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 258 seconds]
StoneCypher has joined #ruby
Musashi007 has quit [Ping timeout: 255 seconds]
troulouliou_dev has quit [Remote host closed the connection]
apurcell has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
DonOtreply has quit [Quit: DonOtreply]
freerobby has joined #ruby
yfeldblum has joined #ruby
pu22l3r has joined #ruby
adelcampo has joined #ruby
hiyosi has joined #ruby
apurcell has quit [Ping timeout: 264 seconds]
arescorpio has quit [Excess Flood]
Brando753 has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
Brando753 has joined #ruby
techsethi_ has joined #ruby
adelcampo is now known as doritostains
adelcampo has joined #ruby
kl has quit [Ping timeout: 245 seconds]
doritostains has left #ruby [#ruby]
mgberlin has joined #ruby
mikepack has quit [Remote host closed the connection]
adelcampo has quit [Quit: WeeChat 1.0.1]
adelcampo has joined #ruby
sinequanon has joined #ruby
mikepack has joined #ruby
thegrid has quit [Ping timeout: 246 seconds]
DadoCe has quit [Remote host closed the connection]
adelcampo has quit [Client Quit]
DadoCe has joined #ruby
adelcampo has joined #ruby
adelcampo is now known as doritostains
mroach has quit [Quit: mroach]
mleung has joined #ruby
pu22l3r has quit [Remote host closed the connection]
goshdarnyou has quit [Quit: Connection closed for inactivity]
rshetty has quit [Remote host closed the connection]
RDash has quit [Quit: This device has been compromised!]
chinmay_dd has joined #ruby
TgMts_ has quit [Ping timeout: 240 seconds]
TgMts has joined #ruby
jeff-oo__ has joined #ruby
lkba has joined #ruby
jeff-ooh_ has quit [Ping timeout: 245 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
sea_local has joined #ruby
Machina has joined #ruby
Machina has quit [Changing host]
Machina has joined #ruby
Takle has joined #ruby
asmodlol has joined #ruby
sea_local has quit [Ping timeout: 250 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
davedev24_ has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
yfeldblum has joined #ruby
charliesome has joined #ruby
Calmoto has joined #ruby
arup_r has joined #ruby
arup_r__ has joined #ruby
arup_r__ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
chipotle has joined #ruby
arup_r__ has joined #ruby
arup_r_ has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
elaptics`away is now known as elaptics
josephndenton has joined #ruby
hiyosi has joined #ruby
genta has quit [Quit: Quit]
arup_r has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
BlackGea_ has joined #ruby
skmp_ has quit [Ping timeout: 244 seconds]
arrubin has quit [Read error: Connection reset by peer]
arrubin has joined #ruby
Stalkr_ has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Quit: Išeinu]
BlackGea_ has quit [Max SendQ exceeded]
BlackGea_ has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
BlackGea_ has quit [Max SendQ exceeded]
josephndenton has quit [Ping timeout: 245 seconds]
genta has joined #ruby
skmp_ has joined #ruby
BlackGear has quit [Ping timeout: 264 seconds]
BlackGea_ has joined #ruby
_5kg has quit [Ping timeout: 258 seconds]
ips|malc is now known as PhilS
gaboesquivel has joined #ruby
druznek has quit [Ping timeout: 240 seconds]
gaboesqu_ has joined #ruby
Ballkenende has joined #ruby
gaboesquivel has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 250 seconds]
thoughnut has joined #ruby
sarcas has quit [Remote host closed the connection]
renderful has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 245 seconds]
Ballkenende has quit [Ping timeout: 265 seconds]
petertretyakov has joined #ruby
mungojel1y has left #ruby [#ruby]
renderful has quit [Ping timeout: 258 seconds]
robbyoconnor has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Jackneill has joined #ruby
gaboesqu_ has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
lessless has joined #ruby
dc has quit [Remote host closed the connection]
Oejet has joined #ruby
xymbol__ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
reinaldob has joined #ruby
phutchins has joined #ruby
xymbol_ has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
reinaldob has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
frem has quit [Quit: Connection closed for inactivity]
agent_white has quit [Quit: goodnight.]
yfeldblum has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
yfeldblu_ has joined #ruby
BlackGea_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 265 seconds]
_5kg has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
jack_rabbit has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
ndrei has joined #ruby
sevenseacat has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
TgMts_ has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
TgMts has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
druznek has joined #ruby
Takle has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
oleo has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<apeiros_>
hm, in some regards, my ruby 2.2-head is a lot slower than 2.1.5. I wonder whether they've debugging code in it causing that.
<apeiros_>
e.g. plain startup time with bundle exec is ~1s vs. ~0.3s
amundj has joined #ruby
Spami has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
impi0us has joined #ruby
arup_r__ has quit [Remote host closed the connection]
pengin has joined #ruby
Jackneill has quit [Quit: Leaving]
Spami has quit [Client Quit]
jeff-ooh has joined #ruby
martin_work has joined #ruby
jeff-oo__ has quit [Ping timeout: 255 seconds]
BlackGear has joined #ruby
testcore has quit [Ping timeout: 250 seconds]
testcore has joined #ruby
chipotle has quit [Quit: cheerio]
pengin has quit [Remote host closed the connection]
Mia has joined #ruby
Axy has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
martin_work has quit [Quit: martin_work]
sea_local has joined #ruby
axilla has joined #ruby
martin_work has joined #ruby
chipotle has joined #ruby
sea_local has quit [Ping timeout: 255 seconds]
tokik has joined #ruby
martin_work has quit [Quit: martin_work]
Darryl__ has joined #ruby
AlexRussia has joined #ruby
mloveless has joined #ruby
scholar01 has joined #ruby
narph has joined #ruby
ndrei has joined #ruby
<scholar01>
When writing a Rubygem, I write test cases against my library, but how am I supposed to create testcases for the tools in bin/? Should I simply write a second tool in bin/ that tests the first?
mityaz has quit [Quit: See ya!]
decoponio has joined #ruby
tus has joined #ruby
<apeiros_>
scholar01: if you do it properly, your bin only consists of something akin: YourGem::Cli.run(ARGV)
mloveless has quit [Ping timeout: 264 seconds]
<apeiros_>
and then all you have to do is test YourGem::Cli
Jackneill has joined #ruby
Jackneill has quit [Max SendQ exceeded]
russt has joined #ruby
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_ixti_ has quit [Ping timeout: 264 seconds]
josephndenton has joined #ruby
Jackneill has joined #ruby
<scholar01>
apeiros: that's an interesting design pattern. There were a few features that I didn't want to put into the main library, but if I create a CLI class, that should maintain proper separation of functionality.
<scholar01>
I'll try that and see if that works.
josephndenton has quit [Ping timeout: 264 seconds]
scholar01 has quit [Quit: Leaving.]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
valeriansaliou has joined #ruby
yfeldblum has joined #ruby
druznek has quit [Ping timeout: 244 seconds]
jeff-ooh_ has joined #ruby
MasterPiece has quit [Ping timeout: 250 seconds]
<shevy>
long live ruby!
b4rbz has quit [Read error: Connection reset by peer]
jeff-ooh has quit [Ping timeout: 264 seconds]
b4rbz has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
Photism has quit [Ping timeout: 240 seconds]
Photism has joined #ruby
shazaum has joined #ruby
_ixti_ has joined #ruby
lessless has joined #ruby
impi0us has quit [Ping timeout: 256 seconds]
despai has joined #ruby
phutchins has joined #ruby
Jackneill has quit [Quit: Leaving]
ooesili has joined #ruby
Vivex has joined #ruby
gaboesquivel has joined #ruby
vinleod has joined #ruby
Photism_ has joined #ruby
arup_r has joined #ruby
seaned has joined #ruby
arup_r has quit [Remote host closed the connection]
maoko has joined #ruby
Photism has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
<maoko>
pew pew everyone
<maoko>
I think it's time for a very stupid question.. How can one change the pkey with mongoid?
<shevy>
weird thing is, if I copy paste it directly into irb, it works just fine
davedev24_ has joined #ruby
sea_local has joined #ruby
BlackGear has joined #ruby
mloveless has joined #ruby
<apeiros_>
Cat_1: aah haha :)
enebo has joined #ruby
mroach has quit [Quit: mroach]
<Cat_1>
Shevy what happens if you put the parameters in parens?
byprdct has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
<shevy>
same error
Ballkenende has joined #ruby
<shevy>
oh
sea_local has quit [Ping timeout: 264 seconds]
<shevy>
foo.rb:5: warning: encountered \r in middle of line, treated as a mere space
<shevy>
now I see it
<shevy>
there was a stray character
jaxxstorm has joined #ruby
<shevy>
I think I copy pasted that from somewhere directly, it works fine when the \r is gone obviously
<Cat_1>
interesting
mloveless has quit [Remote host closed the connection]
<shevy>
let me try to remember where from I copy pasted it
<soahccc>
reminds me of youtube (yeah who would copy code there), they insert some strange characters for line breaking or something
<shevy>
the two lines were these here:
<shevy>
# @example
<shevy>
# image.draw(100, 200)
goodenough has joined #ruby
petertretyakov has quit [Quit: Be back later ...]
larissa has joined #ruby
<shevy>
yard examples. I either got it from godd2 or from some link to yard formatting. or, which of course is also a possibility, I somehow added a \r ... although I don't know why I would do so... how do you create the \r actually? I sure enough never directly typed \r
<shevy>
I can understand \t and \n
n80 has quit [Quit: n80]
cantonic has joined #ruby
sandelius has joined #ruby
<shevy>
soahccc I've seen that with some php forums
Ballkenende has quit [Ping timeout: 250 seconds]
<shevy>
they aggressively exchange all newlines with <br>
<shevy>
and show that even when you edit your own post, suddenly it is overflown with <br> tags :(
<soahccc>
awesome :D
mroach has joined #ruby
<shevy>
soahccc this is one forum where I noticed it http://www.bokuwiese.at/forum/6 - I think I wrote 2 or 3 threads or commented, and afterwards I was fed up with this stupidity so I no longer use it
arietis has joined #ruby
<shevy>
I don't even know what software it is but I suspect php
<shevy>
and definitely not phpbb
mloveless has joined #ruby
<soahccc>
drupal
<soahccc>
at least buildwith says so
cantonic has quit [Read error: Connection reset by peer]
<soahccc>
shevy: but that is at least obvious... Youtube inserts some sort of "shy" character
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
rpag has joined #ruby
Guest75174 has quit [Changing host]
Guest75174 has joined #ruby
<shevy>
ack
Guest75174 is now known as nitrix
<shevy>
does sublime show \r characters btw? or is there some mode to toggle it?
<shevy>
my current gtk editor does not show such characters, I noticed this after the warning from ruby, with vim :\
TgMts_ has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
lessless has joined #ruby
Jackneill has joined #ruby
josephndenton has joined #ruby
TgMts has quit [Ping timeout: 258 seconds]
ponga has quit [Ping timeout: 244 seconds]
kiyote23 has quit []
cantonic has quit [Quit: cantonic]
ponga has joined #ruby
elastik has joined #ruby
petertretyakov has joined #ruby
kiyote23 has joined #ruby
<soahccc>
shevy: I don't know. I personally fuckup myself with all the time which you can enter with alt+space on mac and they are hard to spot
<shevy>
hehe
gaboesquivel has quit [Remote host closed the connection]
<shevy>
well ... until I find out how I managed to produce \r, I will assume that the \r came from some copy/paste way... so whatever godd2 showed me, I suspect it had the \r inside
<shevy>
godd2 will become famous for viral \r
armyriad has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
yfeldblum has joined #ruby
Audb has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba has quit [Remote host closed the connection]
behrz has quit [Quit: Leaving]
Menorah has joined #ruby
Audb has joined #ruby
beneggett has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 276 seconds]
testcore has quit [Remote host closed the connection]
testcore has joined #ruby
blizzy has quit [Ping timeout: 258 seconds]
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mroach has joined #ruby
beneggett has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
arietis has joined #ruby
TgMts_ has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<elastik>
Hello guys!
<elastik>
I am stuck again. Looking for a little help after a lot of reading and testing.
<elastik>
I am trying to close a pop up window in Windows 7 after running rkill.
adriancb has quit [Remote host closed the connection]
druznek has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
<rpag>
i didnt think that would be false
anaeem1 has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
paramourne has joined #ruby
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
nicolastarzia has joined #ruby
wookiehangover has quit [Ping timeout: 258 seconds]
dopie has quit [Remote host closed the connection]
anaeem1 has joined #ruby
St_Marx has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
george2 has joined #ruby
Axy is now known as Mia
tus has quit [Ping timeout: 245 seconds]
elastik has quit [Ping timeout: 258 seconds]
tus has joined #ruby
<shevy>
apeiros_ are you critisizing the handling of private in ruby!!!
<shevy>
;P
wookiehangover has joined #ruby
<shevy>
where is hanmac
_5kg has joined #ruby
<shevy>
pontiki I am using syck whenever possible in 2.1.5; haven't yet checked why it does not work in 2.2.x, I'll wait for xmas + new year before I give it another try (so basically I will try it in 2 weeks ago, I got lots of other code-related work to do and improve anyway in the meanwhile)
<shevy>
I'll also give it a try again with psych lateron then, feeding it valid yaml files
electrix has joined #ruby
<electrix>
hi
<electrix>
So I asked yesterday but went afk too soon.
<electrix>
Well, a JSON is parsed using a native Ruby JSON instance.
<electrix>
Now I got a hash structure, I want to provide defaults for it.
<electrix>
So when the value for a key is missing in that structure a fallback value should be provided.
<electrix>
I can put something together using some loops and such stuff...
<electrix>
But what would be elegant and simple?
jeff-ooh_ has quit [Remote host closed the connection]
Blackhol_ has joined #ruby
chihhsin_ has quit [Quit: leaving]
chihhsin has joined #ruby
sdwrage has joined #ruby
<shevy>
electrix was it not answered yesterday man
rpag has quit [Ping timeout: 258 seconds]
<shevy>
if you use a hash, you can provide a default
elaptics is now known as elaptics`away
<shevy>
I have a deja vu
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
phutchins has joined #ruby
<shevy>
did he go afk again
AlexRussia has joined #ruby
<electrix>
shevy: yes
<electrix>
shevy: but I mentioned this that I asked this already yesterfay
<electrix>
*yesterday
emmesswhy has quit [Quit: Leaving]
<kavita>
electrix: I think I did something similar where I created a hash with the fallback values (in my case it was just an empty hash) and merged it with the other hash that may have a missing key or value
<shevy>
electrix k. hash = Hash.new; hash.default = 'donald duck'
<electrix>
kavita: so just the merge method on the hash object on a default-providing hash
<electrix>
shevy: thank you
<shevy>
>> hash = Hash.new; hash.default = 'donald duck'; hash['who is the best duck in town?']
<electrix>
so hash.default will provide a default for all keys?
<shevy>
I loved those cartoons when I was young, especially tom and jerry; not necessarily because of the drawings and animation, but mostly because of the music. makes a fuzzy warm feeling hearing it
<electrix>
can I provide a default _per_ key?
<electrix>
shevy: Don Rosa is great, sadly he quitted :(
<shevy>
.default is generic for all missing keys
TgMts has quit [Ping timeout: 252 seconds]
<shevy>
you can not register a default per key in any custom hash; either you have to subclass or modify, or use a method that will do the checking for you
<shevy>
or use more than one hash like kavita wrote
<shevy>
lots of ways in ruby!
bankair has joined #ruby
jeff-ooh has joined #ruby
zacts_ has quit [Ping timeout: 255 seconds]
phutchins has quit [Ping timeout: 255 seconds]
dseitz has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
Astrologos_ has joined #ruby
TgMts has joined #ruby
Audb has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Ping timeout: 240 seconds]
DonOtreply has joined #ruby
Yzguy has joined #ruby
dorei has quit [Ping timeout: 264 seconds]
mengu has quit [Ping timeout: 240 seconds]
rpag has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
axilla has quit [Ping timeout: 265 seconds]
zorak8 has quit [Ping timeout: 250 seconds]
gizmore has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
Astrologos_ has quit [Ping timeout: 255 seconds]
robustus has quit [Ping timeout: 255 seconds]
jeff-ooh has quit [Remote host closed the connection]
AlexRussia has joined #ruby
soulcake has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
dorei has joined #ruby
yeticry has joined #ruby
Audb has joined #ruby
chinmay_dd has quit [Quit: Leaving]
claymore has quit [Ping timeout: 272 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
kirun has joined #ruby
Spami has quit [Read error: Connection reset by peer]
Spami_ has joined #ruby
claymore has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
karmatr__ has quit [Remote host closed the connection]
Menorah has joined #ruby
TgMts has joined #ruby
axilla has joined #ruby
hmsimha has joined #ruby
pu22l3r has joined #ruby
freerobby has joined #ruby
elastik has joined #ruby
freerobby has quit [Client Quit]
TgMts has quit [Client Quit]
apurcell has joined #ruby
freerobby has joined #ruby
rockdon has quit [Ping timeout: 258 seconds]
testcore has quit [K-Lined]
zacts has joined #ruby
adriancb has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
Ballkenende has quit [Ping timeout: 255 seconds]
fdelacruz has joined #ruby
freerobby has quit [Quit: Leaving.]
vinleod has joined #ruby
tristanp_ has quit [Ping timeout: 258 seconds]
fdelacruz has quit [Client Quit]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
Timgauthier has quit [Max SendQ exceeded]
sdwrage has quit [Quit: This computer has gone to sleep]
fdelacruz has joined #ruby
econerd4ever has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
josephndenton has quit [Ping timeout: 244 seconds]
TgMts has joined #ruby
giuseppesolinas_ has quit [Quit: Leaving]
Akuma has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
pu22l3r has quit [Remote host closed the connection]
elastik has quit [Ping timeout: 256 seconds]
fdelacruz has quit [Client Quit]
ponga has quit [Quit: Leaving...]
claptor has joined #ruby
TgMts has quit [Client Quit]
<giuseppesolinas>
hello. I'm using ruby gems for configuration purposes, I'm running ruby on mac os x, installed with ruby-install. I'm having an issue with gem installation being extremely slow to endless. If I pass the verbose option I get a series of "302, moved temporarily". Does anyone know how to fix this issue?
<apeiros_>
giuseppesolinas: did you try updating rubygems itself?
<apeiros_>
(a bit a shot in the blue)
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claptor has quit [Client Quit]
<giuseppesolinas>
apeiros_ : attempting
mloveless has quit []
TgMts has joined #ruby
goodenough has joined #ruby
doodlehaus has joined #ruby
<diegoviola>
how do I check if several elements exist in a array at the same time?
kiyote23 has quit [Remote host closed the connection]
gsd has joined #ruby
ahtik has joined #ruby
<havenwood>
majeure: because they haven't been merged
jottr has quit [Ping timeout: 256 seconds]
sea_local has joined #ruby
ooesili has quit [Quit: leaving]
windowlicker has quit [Quit: Lost terminal]
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
dickoff has joined #ruby
dickoff has quit [Changing host]
dickoff has joined #ruby
bascht3 has joined #ruby
<shevy>
majeure #ruby-lang are our sworn enemies
_ixti_ has joined #ruby
sea_local has quit [Ping timeout: 252 seconds]
kobain has joined #ruby
LouisRoR has joined #ruby
joast has quit [Quit: Leaving.]
arya_ching_ has joined #ruby
joast has joined #ruby
ndrst has joined #ruby
Audb has quit [Remote host closed the connection]
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
arya_ching has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
gr33n7007h has joined #ruby
<shevy>
there can be only one in the battle for survival
joast has quit [Client Quit]
<kavita>
shevy: ruthless!
<niggler>
I thought this was a channel about the gemstone :/
joast has joined #ruby
arya_ching_ is now known as arya_ching
tejas-manohar has quit [Quit: Page closed]
<niggler>
shevy: there used to be separate #javascript and ##javascript channels, but thanks to some freenode magic they are one
<kavita>
niggler: I just learned that Ruby is a programming language two yrs ago, and a few months ago, decided to learn it (learn programming, really). It's been a good journey so far :-)
<arup_r>
kavita: how are you?
<arup_r>
shevy: is too busy now-a-days
<kavita>
gemstones are cool too
mjmac has quit [Ping timeout: 258 seconds]
<kavita>
arup_r: I'm well, and you?
jaequery has quit [Ping timeout: 258 seconds]
rockdon has quit [Ping timeout: 258 seconds]
<shevy>
arup_r hehe yeah... right now I continue on the ffmpeg-conversion handler; I wanted a simpler way to convert from wav to mp3 to ogg and vice versa; also for video
<arup_r>
apeiros_: why your name preceded by underscore ?
Spami_ has quit [Quit: This computer has gone to sleep]
<arup_r>
kavita: Are you from India.. Me well too..
<niggler>
is there a pure ruby zip read/write library?
<arup_r>
niggler: DEFINE _pure_
pu22l3r has joined #ruby
<shevy>
niggler I think that is freenode terminology to use ## ... see here https://freenode.net/policy.shtml#topicalchannels quote: "Topical or reference channel names, formatted with two leading hash marks (##), are allocated on a first-come, first-served basis to unofficial groups wishing to discuss a project, group or general topic area. For example, the channel ##linux has been reserved for an unofficial group
<shevy>
which uses it to provide GNU/Linux support to visiting users."
<niggler>
one where the actual bit operations are performed in ruby
joast has quit [Quit: Leaving.]
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<niggler>
arup_r: as opposed to one that farms out to infozip or some other C library
bankair has quit [Ping timeout: 245 seconds]
<apeiros_>
arup_r: precede is on the other side. and the reason I have a trailing underscore is that "apeiros" is another of my computers logged in
<shevy>
we must eliminate one of the apeiroses
<kavita>
Been living in the US most of my life (born here, actually) but lived in India for a few yrs as a child. My parents grew up in India. I'd like to visit more often. Was hoping to make it in January, but won't work out
<kavita>
arup_r ^
<arup_r>
kavita: Great.. I guessed from your name that you should be an Indian :)
Cache_Money has quit [Quit: Cache_Money]
<niggler>
I've seen it spelled kavitha (with an h)
JBreit has left #ruby ["Leaving"]
aswen has quit [Ping timeout: 245 seconds]
mliqu has joined #ruby
lbrf has joined #ruby
ahtik has quit [Ping timeout: 250 seconds]
<kavita>
niggler: There are a lot of regional differences in India (as most countries, especially on the larger side). I believe people in the southern part of India tend to use an 'h' in the spelling.
goodenough has quit [Remote host closed the connection]
Pattt has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
zacts has quit [Quit: leaving]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
econerd4_ has joined #ruby
yfeldblum has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
joast has joined #ruby
gsd has joined #ruby
gsd has quit [Client Quit]
tkuchiki has joined #ruby
ooesili has joined #ruby
tejas-manohar has joined #ruby
goodenough has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
kl has quit [Ping timeout: 250 seconds]
icebourg has quit [Ping timeout: 272 seconds]
dx7iso has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
<godd2>
shevy you didn't get infected by me
Ballkenende has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
<godd2>
I'm on windows, but git will normalize line endings
icebourg has joined #ruby
<tejas-manohar>
havenwood: you there? what was that phone number script you whacked together yesterday
<majeure>
Hello niggler.
DadoCe has quit [Remote host closed the connection]
<niggler>
Hello majeure.
tkuchiki has quit [Ping timeout: 240 seconds]
<tejas-manohar>
what a username...
electrix has quit [Read error: Connection reset by peer]
<shevy>
godd2 do you happen to remember which example showed that? image.draw(100, 200) ... I wonder if I copy pasted it from somewhere or modified it specifically this part here may serve as identifier "# @example "
<godd2>
I have a niggling suspicion that it's borderline racist
Hobogrammer has joined #ruby
<godd2>
shevy anything in my yard docs weree taken from oneee of my github repos which were pushed with git. Even if I copied it from somewhere else, git wouldn't have let a stray \r through
<shevy>
hmm
<godd2>
also callled a carriage return
<niggler>
godd2 do you have autocrlf set?
kavita has quit [Quit: goodbye...]
Ballkenende has quit [Ping timeout: 272 seconds]
rockdon has joined #ruby
britt_ has joined #ruby
exile-bot-2 has joined #ruby
<godd2>
niggler yes, it's set to true
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
<godd2>
because I'm a nice person :)
exile-bot-2 has quit [Remote host closed the connection]
pothepanda has quit [Quit: Leaving]
mjmac has joined #ruby
exile-bot-2 has joined #ruby
musicmatze1 is now known as musicmatze
musicmatze has quit [Quit: WeeChat 0.4.3]
<shevy>
godd2 what editor do you use?
exile-bot-2 has quit [Remote host closed the connection]
musicmatze has joined #ruby
<godd2>
sublime text
joast has quit [Quit: Leaving.]
exile-bot-2 has joined #ruby
<shevy>
I just opened the file lib/dare/image.rb in my editor (bluefish)
exile-bot-2 has quit [Remote host closed the connection]
<shevy>
let me paste on pastie.org how it shows up:
exile-bot-2 has joined #ruby
freerobby has quit [Quit: Leaving.]
zacts has joined #ruby
<shevy>
what is ^M in vim?
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has quit [Remote host closed the connection]
<shevy>
in my editor, after those ^M I have a newline
<niggler>
shevy: that's the \r
<shevy>
aha
exile-bot-2 has joined #ruby
<shevy>
\r is not the same as \n right?
exile-bot-2 has quit [Remote host closed the connection]
<niggler>
just do :%s/\r/\r/g
exile-bot-2 has joined #ruby
<shevy>
nono I don't even use vim, it's just interesting that bluefish kinda replaces the \r with a newline, but they are not really a newline
exile-bot-2 has quit [Remote host closed the connection]
<shevy>
but now I am happy, I know how I got those \r in the first place - I got them from copy/pasting your docu godd2 :)
<godd2>
technically \r means go back to the beginning of the current line
<havenwood>
tejas-manohar: i subbed out 1 if the string started with a 1 then scanned for digits
<tejas-manohar>
havenwood: ah
<niggler>
it's useful for displaying spinners and whatnot
<tejas-manohar>
irc is awesome, learning so much
LouisRoR has quit [Ping timeout: 240 seconds]
unholycrab has quit [Ping timeout: 256 seconds]
<shevy>
spinners?
<niggler>
\ | / - the ascii spinner
<godd2>
since carriage return "\r" was the name for when a typewriter had it's carriage (the thing that holds the paper) reset. and then a line feed "\n" rolled the paper one line's worth up
petertretyakov_ has quit [Quit: Be back later ...]
pu22l3r has quit [Remote host closed the connection]
unholycrab has joined #ruby
Akuma has joined #ruby
freerobby has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CrazyM4n has joined #ruby
windowlicker has joined #ruby
Adran- is now known as Adran
majeure has left #ruby [#ruby]
majeure has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
kiyote23 has joined #ruby
<socash>
buffer 2
<socash>
buffer 1
<Fraeon>
buffer 0
<Fraeon>
buffer -1
daniell is now known as dfas
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
socash has quit [Quit: WeeChat 1.0.1]
<shevy>
buffer reset
DonOtreply has quit [Quit: DonOtreply]
jaequery has quit [Client Quit]
jottr has joined #ruby
antfy has joined #ruby
AliOsm has joined #ruby
<AliOsm>
hello
arya_ching has quit []
<AliOsm>
how are you ?
Scripore has joined #ruby
<AliOsm>
anyone can help me here ?
<AliOsm>
I'm have problem with ruby on rails
<niggler>
is there a separate rails channel?
phutchins has quit [Ping timeout: 245 seconds]
<havenwood>
AliOsm: The best place for Rails questions is #rubyonrails.
<AliOsm>
I don't know
<AliOsm>
OK thank you very very much :)
AliOsm has left #ruby [#ruby]
deryl has joined #ruby
<havenwood>
#rubyonrails requires nick registration: /msg NickServ help REGISTER
amundj_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<deryl>
seriously cuts down on bots
jottr has quit [Ping timeout: 245 seconds]
apurcell has joined #ruby
AliOsm has joined #ruby
<AliOsm>
Hi again, sorry
mliqu has left #ruby ["Leaving"]
<AliOsm>
but I can't login to #rubyonrails channel
<AliOsm>
anyone can help me ?
Akuma has joined #ruby
<deryl>
because it requires you register your nick as it says when you try to join
<AliOsm>
so what I can do now
<AliOsm>
?
nicolastarzia has quit [Remote host closed the connection]
<deryl>
umm, register your nick
<deryl>
./msg NickServ help REGISTER
RowdyChildren has quit [Quit: bye!]
<deryl>
remove the .
RowdyChildren has joined #ruby
kl has joined #ruby
<AliOsm>
do you mean run this command /msg NickServ help REGISTER and change NickServ with my nickname ?
apurcell has quit [Ping timeout: 272 seconds]
<AliOsm>
?.? pls help me
mjmac has quit [Ping timeout: 258 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<deryl>
dude, read the returned information.
<shevy>
AliOsm hey man
reinaldob has quit [Remote host closed the connection]
<deryl>
seriously, read the info. the command tells nickserv to give you the help text for that command to show you how to register your nickname on freenode. follow it's direction
<shevy>
AliOsm go take your time. use the thing called browser. go there https://freenode.net/faq.shtml#userregistration and read it slowly and carefully, afterwards you know how you can register and identify. once you have done so, #rubyonrails is available to you
russt has quit [Quit: russt]
<deryl>
once registered you can access any channel
<shevy>
deryl the new generation of people has no patience
Akuma has quit [Max SendQ exceeded]
<deryl>
i've noticed. sigh
rockdon has quit [Ping timeout: 258 seconds]
Akuma has joined #ruby
LudicrousMango has quit [Remote host closed the connection]
<AliOsm>
thank you :)
max96at is now known as max96at|off
_ixti_ has quit [Ping timeout: 258 seconds]
<AliOsm>
really you are very helpful :3
socash has joined #ruby
Akuma has quit [Max SendQ exceeded]
luckyruby has quit [Quit: Leaving...]
ahtik has joined #ruby
<deryl>
its like we've populated the world with a generation of self-entitled instant gratification minded, self centered folks. My dad would have kicked my ass
snowpeas has joined #ruby
<AliOsm>
deryl are you using rails ?
adriancb has quit [Remote host closed the connection]
AdNauseaum has quit [Ping timeout: 255 seconds]
adriancb has joined #ruby
<deryl>
not at the moment. i've changed focus from rails to android programming and javascript
_ixti_ has joined #ruby
<shevy>
deryl I must tell you
<shevy>
you sound like a railser obviously :D
Pattt has joined #ruby
<shevy>
everybody switches into javascript
<deryl>
:shrug: you know well and good I know POR. ;)
<AliOsm>
Emmm what you think about ruboto
<shevy>
AliOsm you are on the sugar rush again!
<godd2>
deryl it's okay. 95% of the world is still in poverty, so they can't be self-entitled!
nisstyre has quit [Changing host]
nisstyre has joined #ruby
<shevy>
hahaha
<deryl>
godd2 lol
<shevy>
well 95% I think is a bit too much
<niggler>
99%
<shevy>
niggler 99 is higher than 95
chipotle has quit [Read error: Connection reset by peer]
mliqu has joined #ruby
<godd2>
shevy are you saying that number is too high to be correct or to high for our own goodness?
<shevy>
I couldn't imagine 95% to be in poverty!
<godd2>
well it depends on how you define poverty
<shevy>
food
<shevy>
either you have food or you don't
<godd2>
for example, according to the US definition of the poverty line, I am most definitely living in poveerty
<AliOsm>
I'm sorry , only I dreaming to be good programmer with ruby
<godd2>
AliOsm Ruby is a good language to start programming!
<godd2>
AliOsm just be patient and take your time. It won't happen overnight ;)
adriancb has quit [Ping timeout: 256 seconds]
ahtik has quit [Ping timeout: 250 seconds]
<deryl>
this is friggin weird. *every* attempted download of eclipse's luna sr1 for win32 comes down corrupted. wonder if the version on the servers is toast.
Guest92 has joined #ruby
<deryl>
every other zip i grab unrelated is fine. starting to grate on my nerves
yfeldblum has joined #ruby
s00pcan has quit [Remote host closed the connection]
<AliOsm>
yap I know and I have good experience with programming , but I'm arabian and my english is not good so this is reason of my Unhappy
josephndenton has joined #ruby
ooesili has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 256 seconds]
josephndenton has quit [Ping timeout: 265 seconds]
thoughnut has quit []
claymore has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
<shevy>
deryl abandon the wicked ways of windows and come to linux man
<shevy>
AliOsm matz is japanese and his english is not perfect either so that is no excuse ;-)
<niggler>
you can get virtualbox and run linux from windows
<AliOsm>
lol thank you shevy I'm trying :3
<deryl>
shevy I run linux normally. MY laptop's PSU took a shit. using my son's laptop
<shevy>
go buy your own laptop!!!
<shevy>
;-)
<deryl>
too much work while waiting for my hardware guy to try to replace the psu to install linux etc.
<deryl>
hehe if he can't fix it, i will
rockdon has joined #ruby
mjmac has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
Cache_Money has joined #ruby
adriancb has joined #ruby
gsd has joined #ruby
adriancb has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<deryl>
shevy only reason I'm putzing around with javascript is because of my Galaxy S5 phone. decided I wanted to try my hand at writing android apps. I could do java, but with javascript I learn a skill that applies more widely
<shevy>
I see, I see
<shevy>
you dropped ruby for your new girlfriend
russt has joined #ruby
<shevy>
she is shinier, faster, richer
<godd2>
well that's weird. apparently "crease" and "increase" don't share an etymology
<shevy>
oh grease
<shevy>
sexy
<shevy>
I'm gonna ingrease me counters
<shevy>
deryl I guess compared to java, javascript is the lesser evil
<godd2>
deryl with Opal you can write your code in Ruby and have it compile to javascript
<shevy>
I mean, there is objects
econerd4_ has quit [Remote host closed the connection]
<shevy>
window.something()
zorak8 has joined #ruby
<AliOsm>
shevy , important to come to linux ? because I use windows
<shevy>
although it confuses me how functions can be standalone in javascript
econerd4ever has joined #ruby
<deryl>
godd2 naa, i could just use coffeescript if i wanted an intermediate layer
<shevy>
AliOsm working with code is easier on linux
<deryl>
i want to learn the language directly
<godd2>
deryl but then it's not Ruuuuuubyyyyy
<deryl>
frak! accidently tiled all my channel windows and now can't figure out how to retab them
<deryl>
godd2 hehe there are more skills to learn than *just* ruby
<shevy>
what IRC client do you use?
<godd2>
deryl are you in mirc?
Areessell has quit [Read error: Connection reset by peer]
<deryl>
godd2 naa doesn't suck, just doesn't work like i'm used to. i'm used to irssi :)
<deryl>
tmux+irssi reigns supreme in my world
valeriansaliou has quit [Ping timeout: 245 seconds]
AliOsm has quit [Quit: Page closed]
<majeure>
Why don't people use znc?
<shevy>
what is znc
<Nilium>
I use znc.
Azure has quit [Ping timeout: 258 seconds]
<deryl>
i've tried znc. i much prefer irssi. its been my go-to for years now
adriancb has joined #ruby
<Nilium>
The upside to tmux/irssi is that everything is retained between sessions, so if you type something, it still works.
unholycrab has joined #ruby
sdwrage has joined #ruby
gaboesquivel has joined #ruby
<Nilium>
Bad phrasing. If you type something, walk away, and then resume your session, your stuff's still there.
<Nilium>
Could also use screen, but tmux is better unless you're on OS X in which case it's subtly broken
<deryl>
back when bouncers were all the craze I worked with, and then ran my own, irc virtual servers loaded with just about every bouncer and client you could imagine. I tried a slew of them. Found irssi prior to all that and just stuck with it.
<deryl>
i like it, does what i want, stays out of my way. so now, its just one of those mainstays everyone has.
<deryl>
only major change over the years is from screen to tmux
<shevy>
I use xchat
LudicrousMango has joined #ruby
<deryl>
yeah lots of folks i know like xchat. that or kvirc
<shevy>
there is xchat for windows too :)
<deryl>
yep
<shevy>
but I guess people have moved to hexchat now since xchat is inactive since years http://hexchat.github.io/
<deryl>
i just grabbed a client real fast. mirc will work while i wait for my laptop
goodenough has quit [Remote host closed the connection]
<deryl>
actually, wouldn't using a mixin be better than a module in most cases?
doodlehaus has quit [Ping timeout: 256 seconds]
kj_ has quit [Quit: Page closed]
diegoviola has quit [Client Quit]
diegoviola has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
sea_local has quit [Ping timeout: 245 seconds]
<kaspergrubbe>
Takle: hello
freerobby has quit [Quit: Leaving.]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
thgye566 has joined #ruby
JohnBat26 has joined #ruby
Joufflu has joined #ruby
phutchins has joined #ruby
<deryl>
i mean yeah a mixin is really a module, just depends on how its added. module <modname> vs. extend(<modname>) vs. include <modname> just to be clear
<deryl>
wow that was a deplayed posting
m8 has quit [Quit: Sto andando via]
gaboesquivel has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Yzguy has joined #ruby
Megtastique has quit []
phutchins has quit [Ping timeout: 265 seconds]
fivetwentysix_ has joined #ruby
Calmoto1 is now known as Calmoto
fivetwentysix has quit [Ping timeout: 255 seconds]
fivetwentysix_ is now known as fivetwentysix
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
TerjeLarsen has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
thgye566 has quit []
pandaant has quit [Remote host closed the connection]
<ericwood>
they wouldn't lie to me on stackoverflow, right?
doodlehaus has quit [Ping timeout: 245 seconds]
<apeiros_>
no, that's mentioned in a bug I came across when googling
<apeiros_>
it's gone in 2.2
<Cat_1>
On big data tables you can use Hash[a.each_slice(2).to_a]
<Cat_1>
From the stackoverflow linked abovce
<Cat_1>
*above
<ericwood>
apeiros_: sweet :D
<apeiros_>
along with the huge overhead for kwargs
<apeiros_>
(that one I measured - ~40x faster for 15 kwargs iirc)
<ericwood>
kwargggssss
<ericwood>
sorry, it's fun to say
<Nilium>
Quargs
<apeiros_>
hrmpf… got difficulties coming up with an efficient and nice way to handle an immutable object which has methods which return a copy of said object with changes
adriancb has quit [Remote host closed the connection]
jeanlinux has joined #ruby
<apeiros_>
going over the constructor is ugly as it'd mean initialize had to take ~20 arguments
<apeiros_>
not going via the constructor means I can't freeze the object at the end of initialize, and that I have to use super-ugly ivar_set
adriancb has joined #ruby
spider-mario has quit [Remote host closed the connection]
<apeiros_>
*sob*, madness.
<shevy>
ericwood do you turn this into a standalone gem project? the midi reading part?
<ericwood>
shevy: there's a TON of gems written by some guy that do any midi task you could ever want
<ericwood>
look up Diamond, it's a full-featured sequencer
rshetty has joined #ruby
<ericwood>
the Gemfile has a ton of MIDI-related gems he wrote...very awesome and well-done projects
<ericwood>
right now I'm trying to learn things so I'm just using UniMIDI for the IO bits
josephndenton has quit [Ping timeout: 240 seconds]
<apeiros_>
ericwood: oh… midi… sounds like fun. wish I had more time for stuff like that :-|
<ericwood>
apeiros_: expect me to hit you up for threading advice in the near future
<ericwood>
I'm trying to write a sequencer
<ericwood>
then expanding it out to do craziness with filters on my synth...
<apeiros_>
ericwood: expect me to be super busy :-p
<ericwood>
damn!
<apeiros_>
I want to get this webframework functional
<apeiros_>
the more frustrated I grow with advanced stuff I'd like to do with rails, the more.
adriancb has quit [Ping timeout: 272 seconds]
<ericwood>
why do that when you can educate me about timing + threads?
<ericwood>
also how good at time-related stuff is ruby in the threading model
<ericwood>
or whatever
<apeiros_>
because I can de-frustrate me
<apeiros_>
it's quite bad
yfeldblum has joined #ruby
<ericwood>
:D
<apeiros_>
it's quite bad <-- re time-related stuff & ruby
JohnBat26 has quit [Ping timeout: 272 seconds]
<ericwood>
I'm guessing I'll want to port this over to eventmachine eventually
<ericwood>
iirc it does that correctly
elastik has quit [Ping timeout: 244 seconds]
<ericwood>
or something.
<apeiros_>
sleep can sleep sub-second, but there's no guaranteed precision
<ericwood>
woohoo
<ericwood>
know of any gems that can do more accurate timing?
petertretyakov_ has quit [Quit: Be back later ...]
<Cat_1>
Benchmark?
<apeiros_>
no. would be quite an interesting gem, given that it'd have to somehow replace rubys scheduler.
yfeldblum has quit [Ping timeout: 244 seconds]
<ericwood>
oh well. this sequencer will be primitive as all hell so I should be fine for now
<ericwood>
maybe
ddd has joined #ruby
<electrix>
ruby got a scheduler? One can replace it with native ruby?
mgberlin has quit [Read error: Connection reset by peer]
<Cat_1>
Torquebox has a scheduler
<Cat_1>
If you want to use jruby
<ericwood>
JRuby isn't a horrible idea actually
<ericwood>
I could get real threadz
gsd has joined #ruby
<ericwood>
already using it for work
mgberlin has joined #ruby
TgMts has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
josephndenton has joined #ruby
deryl has quit [Ping timeout: 255 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
goodenough has joined #ruby
ddd is now known as deryl
LouisRoR has joined #ruby
mengu has quit [Remote host closed the connection]