BadProphet has quit [Remote host closed the connection]
gridaphobe has quit [Ping timeout: 276 seconds]
emmanuelux has quit [Quit: emmanuelux]
stkowski has quit [Quit: stkowski]
joshman_ has quit [Ping timeout: 245 seconds]
gridaphobe has joined #ruby
yuike has joined #ruby
slainer68 has joined #ruby
jimeh has joined #ruby
kzrx has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
<kzrx>
Hi folks, which one is better for a complete beginner: pickaxe or The Well-Grounded Rubyst (also, I'm open for other suggestions)?
<Spaceghostc2c>
The latter
kbeddingfield has joined #ruby
qwerxy has quit [Quit: offski]
mjolk has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<kzrx>
Spaceghostc2c: care to elaborate why?
<Spaceghostc2c>
kzrx: Because the pickaxe is a great reference.
osvico has joined #ruby
<blazes816>
complete beginner to ruby or to programming?
<Spaceghostc2c>
^
<kzrx>
blazes816: difficult to answer. I love to read technical papers about PL but I never programmed "for real". I'm very familiar with a bunch of CS concepts, tough.
<kzrx>
Only the occasional bash script to automate some simple stuff.
jimeh_ has joined #ruby
failingkid has quit [Quit: Connection closed for inactivity]
<blazes816>
well, it's more then general mindset that I think is important to be in, more so than actual programming experience. go with the pickaxe
SCommette has joined #ruby
<blazes816>
you seem to be familiar with the concepts
swex has quit [Read error: Operation timed out]
<kzrx>
blazes816: Yes. I chose Ruby because it drags influence from languages that I admire such as Lisp, Smalltalk, Perl, etc. But, as I said, it's very strange to be able to talk about type system, recursion, syntax, etc and, at the same time, be unable to do simple stuff like fibonacci or fizzbuzz.
pkrnj has quit [Quit: Computer has gone to sleep.]
etcetera has quit [Quit: Computer has gone to sleep.]
<blazes816>
ha, I can't even imagine
<Hanmac>
be brave, ruby feels when you are frightend and then bites you in your ass :D
<blazes816>
but sounds like you have a really good foundation
yuike has quit [Quit: Computer has gone to sleep.]
<blazes816>
but she talks to us :(
nat2610 has quit [Read error: Connection reset by peer]
nat26101 has joined #ruby
codespectator has joined #ruby
x82_nicole has joined #ruby
<hadees>
so I wrote this code http://pastie.org/5385343 to define some methods for my class but if the block i pass tries to access an instance method it doesn't work.
zastern_ has quit [Remote host closed the connection]
chessteach has joined #ruby
<kzrx>
blazes816: it gets more: I know the different algorithms used in ruby's GC (from mark and sweep to bitmap marking).
<kzrx>
blazes816: but I think that it'll be another one in 2.0 (there's a really smart guy working on that).
havenn has joined #ruby
<kzrx>
blazes816: got all wrong. 1.9 is lazy sweep; 2.0 is bitmap marking.
<chessteach>
Can someone recommend a library for me. I have a string that needs to be seperated into an array. It is seperated by spaces, and some fields are surrounded by quotes. He is the real problem though. Some fields do not start with quotes but contain non escaped quotes, these quotes need to be ignored. Does this make sense? Any suggestions?
<chessteach>
*here is the real problem
<blazes816>
kzrx: what do you do that you know this stuff despite not being a programmer?
<kzrx>
blazes816: I love to read about this kind of stuff.
<blazes816>
nice, sounds like you'll go far in programming
jenrzzz has quit [Ping timeout: 252 seconds]
binarypl2 has joined #ruby
sheerun has quit [Quit: sheerun]
tpe11etier has quit [Read error: Connection reset by peer]
<kzrx>
chessteach: regex + #{...} substitutions on the non escaped ones? (pulling this out of thin air, might work (it's semi-manual, but...).
mytec has joined #ruby
jimeh has quit [Quit: Bye.]
<havenn>
chessteach: Paste a gist of the before and after with expected result.
slainer68 has quit [Remote host closed the connection]
jimeh has joined #ruby
<kzrx>
chessteach: not all that manual if your editor can handle macros (like emacs, vim...)
yshh has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 245 seconds]
elliot98 has quit [Quit: Konversation terminated!]
banjara has quit [Quit: Leaving.]
<chessteach>
kzrx... no need for a gist, pretty simple: `blah "foo foo" blah"foo` should become ['blah', 'foo foo', 'blah"foo']
banjara has joined #ruby
<chessteach>
i mean havenn
Virunga has quit [Remote host closed the connection]
<postmodern>
betting there's a bug in there (since sstepheson doesnt write unit-tests)
<ner0x>
scrogson: No, rbenv but I just used the rvm requirements
pkrnj has joined #ruby
<ner0x>
postmodern: No unit testing?!
<ner0x>
Ridiculous.
<scrogson>
ok, yeah...I'm using rbenv aswell
<postmodern>
scrogson, yeah, rbenv uses ruby-build under the hood
yshh has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
alee_ has quit [Ping timeout: 276 seconds]
<scrogson>
I was getting all of my deploy scripts tested last night with my vagrant box and everything was fine...now when I want to deploy to production, it's broken :(
methods has joined #ruby
manizzle has quit [Ping timeout: 260 seconds]
<postmodern>
scrogson, i would install the last stable ruby-build version
<postmodern>
scrogson, 20121110 works for me
<ner0x>
That's the plan.
<ner0x>
How can you not have unit tests for an app that's online?!
<postmodern>
ner0x, i guess people think shell scripting is simple
<scrogson>
postmodern: I'll look into it
apok_ has joined #ruby
<postmodern>
ner0x, also why i don't use rbenv in production
<ner0x>
postmodern: I see this.
nmabry has quit [Quit: nmabry]
<ner0x>
postmodern: How do I git clone a stable version of ruby-build
atmosx has joined #ruby
<postmodern>
ner0x, checkout a tag
<postmodern>
ner0x, or download a zip/tar.gz for a tag
emmanuelux has quit [Remote host closed the connection]
apok has quit [Ping timeout: 246 seconds]
apok_ is now known as apok
atmosx has quit [Client Quit]
<ner0x>
postmodern: I must not know how to checkout a tag.
SCommette has joined #ruby
alexim has quit [Quit: sleep]
daniel_- has joined #ruby
ryanf has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
jonathan_ has joined #ruby
kbeddingfield has quit [Read error: Connection reset by peer]
<ner0x>
postmodern: But this was a ruby-builder issue not an rbenv issue.
<ner0x>
Although pretty much one in the same.
<ner0x>
Even if you wanted to use ruby-builder to roll your own ruby and then just PATH it, you'd still get errors.
<postmodern>
ner0x, yep, if you are installing from master
<ner0x>
Only thing to do is build your own ruby from some sort of ./build-ruby.sh script that sets all your needed configs.
braden` has quit [Read error: Connection reset by peer]
<ner0x>
Which is probably the better way to do it but takes longer.
<ner0x>
(longer _one_ time)
<havenn>
postmodern: chruby is awesome btw... Haven't had a thought of switching back to rvm, rbenv or rbfu
<postmodern>
ner0x, on most systems that would just be ./configure --prefix=... && make && make install
braden` has joined #ruby
<scrogson>
ner0x: are you using the rbenv-installer script from fesplugas?
<postmodern>
havenn, awesome!
<ner0x>
scrogson: No.
<scrogson>
ok
pkrnj has quit [Quit: Computer has gone to sleep.]
<havenn>
postmodern: I like that the code is so concise, elegantly so. You happened to bite off about exactly as much functionality I'm looking for.
<ner0x>
postmodern: So if I'm developing a ruby on rails app, where should I put it?
<atmosx>
I just use 1 version through rvm
<Spaceghostc2c>
ner0x: On the internet.
ryanf has quit [Quit: leaving]
<postmodern>
ner0x, i think /srv/$app is the traditional place
<atmosx>
I have a weird situation, sqlite3 doesn't read sha1's...
<havenn>
atmosx: E.g., chruby 2.0.0 or chruby rbx with fuzzy name matching completions. Along, chruby does rvm-ish style list of installed Rubies. Very few constraints.
<atmosx>
havenn: yeah I got it
<havenn>
s/Along/Aswell >.>
Tref has quit [Quit: Tref]
<postmodern>
atmosx, also lets you have rubies in /usr/local/ and install gems into ~/.gem/$ruby/$version
<havenn>
On that note, I need to move my rubies out of ~/.rbfu/rubies :P
carlyle has quit [Remote host closed the connection]
<ner0x>
Spaceghostc2c: Hilarious.
<Spaceghostc2c>
ner0x: #RubyOnRails is the proper place for rails help.
yuike_ has joined #ruby
<havenn>
I have a sneaking suspicion that my implantation of this is naive, mostly because it seem ugly... any suggestions on better (read: sane) way to define_method based on arguments here?: https://gist.github.com/4077299
<ner0x>
Spaceghostc2c: It wasn't a rails question. :) It was a system question.
werdnativ has quit [Quit: FAMOUS_LAST_WORDS is nil]
yuike has quit [Ping timeout: 260 seconds]
yuike_ is now known as yuike
tomsthumb has joined #ruby
Hydroxide has quit [Quit: leaving]
ewag has joined #ruby
<havenn>
Excuse my spelling. :(
SCommette has quit [Quit: SCommette]
pkrnj has quit [Quit: Computer has gone to sleep.]
kzrl_ is now known as kzrl
u89 has quit [Remote host closed the connection]
pkrnj has joined #ruby
frem has joined #ruby
<Spaceghostc2c>
havenn: I won't. I will, however, excuse your drinking.
<havenn>
Spaceghostc2c: Thank you kind sir.
nitti has joined #ruby
<havenn>
*hiccup
<atmosx>
cya later bb
bpfh has quit [Ping timeout: 246 seconds]
rakl has quit [Quit: sleeping]
mparodi_ has joined #ruby
nat26101 has quit [Quit: Leaving.]
schaary has joined #ruby
mparodi_ has left #ruby ["Leaving"]
maletor has quit [Quit: Computer has gone to sleep.]
LouisGB has quit [Ping timeout: 260 seconds]
<ner0x>
postmodern: making it with prefix=/usr/local but create a .deb with checkinstall so I can uninstall later on.
<ner0x>
postmodern: Should work nicely.
araujo has quit [Quit: Leaving]
ryanf has joined #ruby
nitti has quit [Ping timeout: 264 seconds]
skaczor has joined #ruby
<ner0x>
Safe to say I can remove the system ruby and install one in /usr/local
mercwithamouth has quit [Ping timeout: 256 seconds]
schaary has quit [Ping timeout: 276 seconds]
jeff_sebring has joined #ruby
chimkan has quit [Read error: Connection reset by peer]
forced_request has joined #ruby
quidnunc has quit [Remote host closed the connection]
nmabry has joined #ruby
chimkan has joined #ruby
jds has joined #ruby
senj has quit []
nari has joined #ruby
jds has quit [Ping timeout: 252 seconds]
jackdanger has joined #ruby
bpfh has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
F1skr has joined #ruby
ewag has quit [Ping timeout: 276 seconds]
Hanmac1 has joined #ruby
areil has joined #ruby
mercwithamouth has joined #ruby
ephemerian has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 260 seconds]
Hanmac1 is now known as Hanmac
samphippen has quit [Quit: Computer has gone to sleep.]
seanwash has joined #ruby
SCommette has joined #ruby
kebomix has quit [Quit: Page closed]
_bry4n has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Quit: tjbiddle]
pac1 has joined #ruby
mengu has quit [Remote host closed the connection]
dpatel has quit [Quit: dpatel]
fyolnish has joined #ruby
love_col_ has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 244 seconds]
sarmiena_ has quit [Quit: sarmiena_]
Bosma has quit [Read error: Connection reset by peer]
<seanwash>
I just wanted to say that.. I love you all.
daniel_- has quit [Quit: WeeChat 0.3.9.1]
nyrb has joined #ruby
kbeddingfield has joined #ruby
arya_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
beneggett has joined #ruby
beneggett has quit [Remote host closed the connection]
Bosma has joined #ruby
joeycarmello has quit [Remote host closed the connection]
apok has quit [Remote host closed the connection]
minijupe has quit [Quit: minijupe]
apok has joined #ruby
g_bleezy has quit [Remote host closed the connection]
wei719 has joined #ruby
nat2610 has joined #ruby
jenrzzz has joined #ruby
SCommette has quit [Quit: SCommette]
dmiller has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<blazes816>
sean i luv u2
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
nari has quit [Remote host closed the connection]
nari has joined #ruby
<Gate>
I'm sorry, but I love ruby more.
<Gate>
we were meant to be together.
dmiller has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
<blazes816>
that's fine I have sean
Soliah has quit [Quit: Soliah]
mascool has quit [Ping timeout: 265 seconds]
ryanf has quit [Quit: leaving]
ryanf_ has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
gridaphobe has quit [Ping timeout: 240 seconds]
ejdyksen has quit []
krz has joined #ruby
havenn has quit [Remote host closed the connection]
g_bleezy has joined #ruby
bricker has quit [Quit: leaving]
tjasko__ has quit [Ping timeout: 246 seconds]
havenn has joined #ruby
<RubyPanther>
Ruby loves everybody, mRuby too.
<blazes816>
it even loves mRuby?!
havenn has quit [Ping timeout: 240 seconds]
joeycarmello has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
ewag has joined #ruby
etcetera has quit [Read error: Operation timed out]
nitti has joined #ruby
Grieg has quit [Read error: Connection reset by peer]
<scrogson>
postmodern: hey by the way, my ruby-build is on 20121110 also ;/
<postmodern>
scrogson, ah crazy
love_color_text has quit [Remote host closed the connection]
<scrogson>
I'm trying to install on Ubuntu 12.04
<postmodern>
scrogson, wait, sstephenson hasn't bumped the version yet
<postmodern>
scrogson, you sure you did not install from master?
arya_ has joined #ruby
schaary has joined #ruby
love_color_text has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
<Spaceghostc2c>
postmodern: Not gonna waste my time. I'm not bad with git.
<Spaceghostc2c>
Maybe you are, so good luck.
<postmodern>
Spaceghostc2c, wget is just the quickest way to get the source
dakine has joined #ruby
<Spaceghostc2c>
postmodern: False.
<postmodern>
Spaceghostc2c, you can also clone and run `git archive`
<Spaceghostc2c>
I can also just run git clone and git fetch --tags
<Spaceghostc2c>
postmodern: I think the problem here lies with your fear of using git well.
<postmodern>
Spaceghostc2c, wget is on command, `git clone` and `git fetch` are two commands
<Spaceghostc2c>
postmodern: Oh so you can wget, and unpack in one command now?
<postmodern>
Spaceghostc2c, or maybe you have a fear of tar archives?
<Spaceghostc2c>
postmodern: Nope, but good loluck with you sir.
<ner0x>
Spaceghostc2c: Okay, so "make" has completed.
<Spaceghostc2c>
git pull is one command.
<postmodern>
Spaceghostc2c, curl | tar xzvf - :)
<Spaceghostc2c>
postmodern: two commands.
<ner0x>
Spaceghostc2c: "sudo checkinstall --install=no" should create a .deb correct?
<Spaceghostc2c>
ner0x: Yes.
<postmodern>
Spaceghostc2c, let's agree that we're both right in different ways
<Spaceghostc2c>
postmodern: You'd be in the minority though, which is okay.
<ner0x>
Spaceghostc2c: Can I /msg you with the questions it asks me so I know what they're doing?
<Spaceghostc2c>
If he's going to get help from people like you often, he should go your way. Otherwise, it's just as easy if not moreso to do it the way everyone else does it.
<Spaceghostc2c>
ner0x: No. Just let me know when you have errors in a gist. I'll take a peek.
g_bleezy has quit [Remote host closed the connection]
<scrogson>
Ok, I think I got it...I just ssh'd into my box and cd'd into the ruby-build dir and ran `git checkout v20121110`
<postmodern>
Spaceghostc2c, both solutions work, it's just a mater of style/taste, which is irrelevant, the goal here is to get scrogson's setup working
jmslagle has joined #ruby
<ner0x>
Spaceghostc2c: I get no errors. It just says "copying temporary files" and takes minutes to do so.
<Cadwallion>
wait wait wait
<Spaceghostc2c>
postmodern: It's a matter of whose workflow is easier to get help with by the community by and large. :)
<Spaceghostc2c>
I use git, I love git. rubyists use git, rubyists love git.
<Cadwallion>
are you telling me the object of the internet ISNT to enforce your opinions on others?
<Spaceghostc2c>
scrogson: Did you git fetch --tags first?
<Cadwallion>
I have been Doing It Wrong(TM)
<scrogson>
no
snorkdude has joined #ruby
<Spaceghostc2c>
Cadwallion: ™
<jmslagle>
I'm getting this when trying to info global in rdebug: https://gist.github.com/4083667 - new to ruby-debug - any insight?
<Spaceghostc2c>
I had a few lying around, so that one's yours.
<Spaceghostc2c>
'var global'?
<scrogson>
it has installed the yaml package so I think it's going good so far
<jmslagle>
Yeah that even :)
<Spaceghostc2c>
jmslagle: What do you think that is supposed to do?
iamjarvo has joined #ruby
<jmslagle>
Well according to the docs it shows global variables :)
ryanf_ has quit [Quit: broken pipes |||]
Jasko has joined #ruby
<jmslagle>
My guess is to_s on one of the globals might be busted?
braden` has quit [Disconnected by services]
<Spaceghostc2c>
I've never used that. is #var an instance method on a debugger-ish object?
<Spaceghostc2c>
I'll track this down.
braden`z has joined #ruby
<ner0x>
Spaceghostc2c: "Copying files to the temporary directory..." is where I'm getting to.
<Spaceghostc2c>
ner0x: Then what?
<Spaceghostc2c>
It shits itself? It tells you every flaw you have? It molests your cat?
<ner0x>
Spaceghostc2c: How'd you know about the cat thing?
<Spaceghostc2c>
ner0x: I had a cat too... once.
<ner0x>
Ah. version has to start with a digit.
ejdyksen has joined #ruby
ejdyksen has quit [Client Quit]
nmabry_ has joined #ruby
nmabry has quit [Read error: Connection reset by peer]
nmabry_ is now known as nmabry
<jmslagle>
Just added more to the gist - same thing happens if I info variables after a bit
<Spaceghostc2c>
I don't even want to say anything. Fucking :+1: activists. Why don't you go buy a fucking sticker and put it on your car and talk about how you 'support the ruby core' so damn much. :(
<Spaceghostc2c>
Maybe I'm venting about more than ruby though. :(
schaary has joined #ruby
<postmodern>
github used to support voting
<postmodern>
could actually vote up issues instead of +1ing them
<Spaceghostc2c>
+1
<Spaceghostc2c>
+1
<Spaceghostc2c>
+1
nitti has quit [Ping timeout: 240 seconds]
<Spaceghostc2c>
At least :shipit: is interesting.
jenrzzz has joined #ruby
ananthakumaran has joined #ruby
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
<postmodern>
:shipit: is basically the same thing
yuike has joined #ruby
swarley has quit [Read error: Operation timed out]
schaary has quit [Ping timeout: 265 seconds]
<postmodern>
showing your tacit endorsement of something that ultimately the maintainer(s) must agree on
apok_ has joined #ruby
apok_ has quit [Client Quit]
frem has quit [Quit: Computer has gone to sleep.]
swarley has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
<Spaceghostc2c>
postmodern: You're an aspie, aren't you?
<postmodern>
Spaceghostc2c, no I'm not, and that is rather ableist word to use
apok has quit [Ping timeout: 246 seconds]
snorkdude has quit [Quit: snorkdude]
xsbeats is now known as MattMattTheGreen
linoj has quit [Quit: linoj]
<Spaceghostc2c>
postmodern: I don't think it's a physical measurement that quantifies it. But creative word use. 6/10
havenn has quit [Ping timeout: 246 seconds]
MattMattTheGreen is now known as xsbeats
carlyle has quit [Remote host closed the connection]
a_a_g has joined #ruby
kbeddingfield has joined #ruby
havenn has joined #ruby
jmslagle has left #ruby [#ruby]
afd__ has quit [Quit: No Ping reply in 180 seconds.]
afd__ has joined #ruby
a_a_g has quit [Client Quit]
etcetera has quit [Quit: Computer has gone to sleep.]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
robdodson has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
<robdodson>
does anyone know how to list the --http-proxy that `gem` might be using?
<robdodson>
i was given this laptop by my client and any attempt to gem install anything results in nodename nor servname provided
yuike has quit [Quit: Computer has gone to sleep.]
pac1 has quit [Quit: I got it one line of code at a time]
yuike has joined #ruby
jackdanger has quit [Quit: Leaving.]
robdodson has quit [Quit: robdodson]
mklappstuhl has quit [Ping timeout: 246 seconds]
BoomCow has joined #ruby
caleb_io has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
adeponte has joined #ruby
etcetera has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
c0rn has quit [Quit: Computer has gone to sleep.]
g_bleezy has quit [Remote host closed the connection]
iamvery has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
nat2610 has left #ruby [#ruby]
robbyoconnor has joined #ruby
dmiller has joined #ruby
vitor-br has quit [Quit: Saindo]
r0bby has joined #ruby
maletor has joined #ruby
tjbiddle has joined #ruby
tjbiddle_ has joined #ruby
manizzle has joined #ruby
tjbiddle_ has quit [Client Quit]
BigO has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
tjbiddle has quit [Ping timeout: 252 seconds]
ananthakumaran1 has joined #ruby
karakedi has quit [Ping timeout: 246 seconds]
jeffreybaird has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
Vert has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
Drewch has quit [Ping timeout: 246 seconds]
chrisramon has joined #ruby
phantasm66 has quit [Remote host closed the connection]
phantasm66 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
Guest92676 has joined #ruby
rakl has joined #ruby
cj3kim has joined #ruby
tjbiddle has joined #ruby
joeycarmello has joined #ruby
tjbiddle_ has joined #ruby
nitti has joined #ruby
tjbiddle__ has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle__ is now known as tjbiddle
medik has quit [Quit: medik has no reason]
ananthakumaran1 has quit [Quit: Leaving.]
locriani_ has joined #ruby
fyolnish_ has joined #ruby
areil_ has joined #ruby
areil_ has quit [Client Quit]
schaary has joined #ruby
areil_ has joined #ruby
areil_ has quit [Client Quit]
fyolnish has quit [Ping timeout: 268 seconds]
locriani has quit [Ping timeout: 268 seconds]
rotor has quit [Ping timeout: 268 seconds]
thebastl has quit [Ping timeout: 268 seconds]
tjbiddle_ has quit [Ping timeout: 246 seconds]
areil has quit [Ping timeout: 246 seconds]
rotor has joined #ruby
nitti has quit [Ping timeout: 252 seconds]
havenn has quit [Read error: Connection reset by peer]
Retistic has joined #ruby
bastl has joined #ruby
havenn has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Jasko has quit [Read error: Connection reset by peer]
Rym has joined #ruby
schaary has quit [Ping timeout: 255 seconds]
cpruitt_ has joined #ruby
Jasko has joined #ruby
J-_-L has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
havenn has quit [Remote host closed the connection]
cpruitt has quit [Ping timeout: 246 seconds]
cpruitt_ is now known as cpruitt
havenn has joined #ruby
enderx86 has quit [Remote host closed the connection]
enderx86 has joined #ruby
ABK has joined #ruby
BigO_ has joined #ruby
manizzle has quit [Ping timeout: 268 seconds]
beilabs has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
BigO has quit [Ping timeout: 268 seconds]
havenn has quit [Ping timeout: 260 seconds]
<krz>
i have 10 elements in an array [0,0,0,0,0,0,0,0,0,0]. i want to distribute 12 evenly so my array looks like [2,2,1,1,1,1,1,1,1,1]. whats the best way to do this?
maletor has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
ananthakumaran has joined #ruby
joofsh has quit [Remote host closed the connection]
<tos9>
krz: divmod? Add the div to everything, and add +1 to the first mod elements
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<blazes816>
so he can keep track of indices with his fingers
nmabry has quit [Read error: Connection reset by peer]
nmabry_ has joined #ruby
kbeddingfield has quit [Ping timeout: 246 seconds]
<krz>
but how would i know to add +1 more to the first two elements?
jenrzzz has joined #ruby
phelps has quit [Changing host]
phelps has joined #ruby
quiliro has joined #ruby
etcetera has quit [Quit: Computer has gone to sleep.]
<krz>
div, mod = 12.divmod(10) => [1,2]. its easy enough to add 1 to all the elements. but how can i set it up so it its +1 more on the first 2 elements automatically
<quiliro>
hi....is there a way to use ruby to control lights and motors from a pc besides using the three leds on the keyboard?
sambio has quit []
<tos9>
krz: A conditional in the block. arr.map { |i| i < mod ? i + div + 1 : i + div } or whatever
<lurch_>
but it's different from for example echo *
<burgestrand>
There you go.
Villadelfia has quit [Ping timeout: 246 seconds]
Grieg has quit [Quit: laterz! :D]
<lurch_>
burgestrand: so it implies there is an ordering then, no? Then the question is, based on what?
codecaster has joined #ruby
slamice has quit [Quit: slamice]
SeySayux has quit [Ping timeout: 276 seconds]
timmow has joined #ruby
Retistic has joined #ruby
codecaster has quit [Client Quit]
skcin7 has quit []
Villadelfia has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
foofoobar has joined #ruby
SeySayux has joined #ruby
shiin has joined #ruby
swex_ has joined #ruby
gogiel has joined #ruby
im0b has joined #ruby
ccooke has joined #ruby
nick_h has joined #ruby
dekz has joined #ruby
wedgeV has joined #ruby
BombStrike has joined #ruby
mikekelly has joined #ruby
rking has joined #ruby
pigoz has joined #ruby
dcope has joined #ruby
rakl has quit [Quit: sleeping]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
casheew has quit [Read error: Connection reset by peer]
berserkr has joined #ruby
<burgestrand>
lurch_: if you need it ordered, I’d suggest you sort it.
binarypl1 has joined #ruby
casheew has joined #ruby
<burgestrand>
lurch_: as far as I know, it depends on the readdir C function.
<burgestrand>
lurch_: so no, it’s not guaranteed to be ordered in any way.
<lurch_>
burgestrand: ok, thx. it's not in my code, it's a gem that's used that does a Dir['*'] and runs through the entries to do stuff (mason gem going through buildpack directories). i'll try to work around it then
skcin7 has joined #ruby
skcin7 has quit [Client Quit]
skcin7 has joined #ruby
skcin7 has quit [Max SendQ exceeded]
skcin7 has joined #ruby
skcin7 has quit [Max SendQ exceeded]
<Hanmac>
lurch_ & burgestrand i found the order on my system ... its ino decending ...
answer_42 has quit [Remote host closed the connection]
<Metatron>
hi
Guest59059 has quit [Read error: Operation timed out]
dmiller has quit [Ping timeout: 276 seconds]
Metatron has left #ruby [#ruby]
answer_42 has joined #ruby
jeffreybaird has joined #ruby
Uranio has joined #ruby
lkba has joined #ruby
warb0 has joined #ruby
gmci has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
freeayu has joined #ruby
gmci is now known as Guest36705
[Neurotic] has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
jxf has joined #ruby
geekbri has joined #ruby
DaZ has quit [Ping timeout: 265 seconds]
Rydefalk_ has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
jonathanwallace has joined #ruby
mark_locklear has joined #ruby
DaZ has joined #ruby
jackiechan0 has joined #ruby
pcarrier has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
jackiechan0 has quit [Client Quit]
BeLucid has joined #ruby
pcarrier has quit [Ping timeout: 246 seconds]
pyx has quit [Quit: WeeChat 0.3.9.1]
enroxorz-work has joined #ruby
jackiechan0 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
shtirlic_ has joined #ruby
haxrbyte has joined #ruby
haxrbyt__ has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
shtirlic has quit [Ping timeout: 252 seconds]
oposomme has joined #ruby
jxf has quit [Ping timeout: 268 seconds]
wuzzzzaah has joined #ruby
ffranz has joined #ruby
haxrbyte has quit [Ping timeout: 268 seconds]
koshii_ has joined #ruby
<Xeago>
how to turn an array of integers into a hex string?
<Xeago>
ary.pack("C*").unpack("H*")?
<koshii_>
If I am making a site that is sitename/randomstring (like Etherpad), is ('a'..'z').to_a.shuffle[0..7].join random enough for generation of the string-url?
<Xeago>
that will give you 26^7 possibilities
<Xeago>
8031810176
<koshii_>
That's a lot. But the question is really, does Ruby's randomization need a seed or anything like that; is it in some way predictable?
<koshii_>
Or will this be sufficient
<Xeago>
you can do some simple test to count the number of iterations you have untill you get a collision
<Xeago>
won't take that long to implement nor run
mikecmpbll has joined #ruby
alee_ has joined #ruby
x82_nicole has joined #ruby
<Xeago>
around 110k iterations to get a 50% chance of collision
<Xeago>
I don't know if the random in shuffle is random enough to make sufficient use of your character space
<apeiros_>
Xeago: you sure about 26^7`
<apeiros_>
?
prezioso has quit [Ping timeout: 276 seconds]
<apeiros_>
I'm pretty sure that it is less
<Xeago>
note sure if alphabet is 24 or 26 chars
<apeiros_>
no, the point is he does [0..7]
schaerli has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
<Xeago>
also assuming 0..7 = 7 characters
<apeiros_>
there's 26! ways to shuffle a..z
<Xeago>
not that familiar with range in ruby
<apeiros_>
8 chars
<apeiros_>
hm, might actually be more
<Xeago>
hmm, 0..7 means 0 to 7 chars?
<Xeago>
so 'a' is valid aswell?
<apeiros_>
no, it means offset 0 to offset 7
<apeiros_>
which is 8 chars
jipiboily has joined #ruby
chussenot has joined #ruby
<koshii_>
Yes, "a" is valid as well.
jipiboily has left #ruby [#ruby]
<Xeago>
if shuffle[0..7] is factorial
noxoc has joined #ruby
<Xeago>
it is around 2.4* 10^13 iterations to get 50% collision rate
<Xeago>
hmm, not sure if I did that math correct either
emergion has joined #ruby
samphippen has joined #ruby
<Xeago>
you are asking for permutations right?
<koshii_>
Yeah
<koshii_>
Maybe this is not necessary to worry about; I can simply do a hard-check each time a new page is created.
vlad_starkov has quit [Remote host closed the connection]
<JonnieCache>
calculations on the topology of the universe depend on some extremely uncertain trigonometry on the CMB and the whole thing is still in doubt
<JonnieCache>
(as i understand it)
<catphish>
JonnieCache: space is simple a 3 dimensional address space there's no way it could have a limit (at least in my mind)
rippa has joined #ruby
dekroning has joined #ruby
<apeiros_>
let me rephrase: your hypothesis hinges on the assumption that space is infinite. if it isn't, then beer can't be.
<Hanmac>
as far as i know the space may be infinite, but it seems that the energy inside is not
<catphish>
but, the amount of matter in the universe is (afaik) finite
volta has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
statarb3 has joined #ruby
<JonnieCache>
Hanmac: the amount of energy inside is zero
leoncamel has quit [Ping timeout: 276 seconds]
<JonnieCache>
physics is weird
<Hanmac>
huch
clj_newb has joined #ruby
<Hanmac>
the 4dimensional SpaceTime is often tread as 2dimensional plane ... i question what is on the other side of the paper :D
horsey has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
adeponte has quit [Remote host closed the connection]
jblack has joined #ruby
rafrcruz has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
samphippen has quit [Quit: Computer has gone to sleep.]
<rafrcruz>
Hello guys... When I try Vector[2,5,0].r I get this error message: teste.rb:1: uninitialized constant Vector (NameError)
<rafrcruz>
What am I doing wrong?
<jblack>
you may have forgotten to require vector?
davidcelis has joined #ruby
chussenot has quit [Quit: chussenot]
LastBeerEver has left #ruby [#ruby]
nopolitica has quit [Read error: Connection reset by peer]
jackdanger has quit [Quit: Leaving.]
rakl has joined #ruby
<rafrcruz>
In the example it looks like there is no require needed.... But I try to put it and get this error instead: /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- vector (LoadError)
<Beoran>
brah, everything in good mesure. Use functional when you need it
<brah>
I am pretty much writing one liners here.
<brah>
And not doing any side effects
<Beoran>
so just playing around?
<brah>
No, one liners doesnt mean those lines are short.
<blazes816>
hahaha
dakine has joined #ruby
<Beoran>
maybe you're doing too much on one line then
<Beoran>
don't try to program in a tooc lever way twhen it's not eeded, it will make your like harder when you reread your own code later
<blazes816>
can I just step in for a second and say Integer#even? and Integer#odd?
<Beoran>
blazes816, yes, that too, but my example was educational
carlyle has joined #ruby
abionic has quit [Read error: Connection reset by peer]
manizzle has quit [Ping timeout: 265 seconds]
<Beoran>
brah, what is a lambda according to you?
abionic has joined #ruby
<brah>
Beoran: As I said, I don't want to elaborate because I will get nitpicked on words and terms. I don't want to be 'that guy' but trust me, I know what I'm doing.
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
aquaranto has quit [Remote host closed the connection]
aquaranto has joined #ruby
<brah>
but pretty much an expression that can be operated by beta rules
BoomCow has quit [Quit: This computer has gone to sleep]
tommyvyo_ has joined #ruby
<brah>
And in this particular program I'm only operating on a binary-tree-like logic
Xeago has quit [Ping timeout: 252 seconds]
volta has quit [Remote host closed the connection]
jonathan_ has quit [Remote host closed the connection]
abionic has quit [Read error: Connection reset by peer]
thatRD has joined #ruby
thatRD has quit [Client Quit]
BoomCow has joined #ruby
thatRD_ has joined #ruby
abionic has joined #ruby
luckyruby has joined #ruby
rakl has quit [Quit: sleeping]
haxrbyte has quit [Read error: Connection reset by peer]
kkh has quit [Remote host closed the connection]
tbrock has joined #ruby
codeFiend has quit [Quit: codeFiend]
Mon_Ouie has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
kkh has joined #ruby
<brah>
I didn't test it, but it'd be something as trivial as (define nsteps (lambda (x y) (if (even? x) (if (even? y) (if (eq? x y) (* x 2) (if (eq? x (- y 2) (- (* x 2) 1) false) ) false) (if (odd? y) (if (eq? x y) (* x 2) (if (eq? x (- y 2) (- (* x 2) 1) false )))
horsey has joined #ruby
jlwestsr has joined #ruby
<davidcelis>
...
hotovson has joined #ruby
<Beoran>
brah, that's LISP
<dermot>
lol
<rafrcruz>
how could I change one value of a matrix?
<Beoran>
also it doesn't read input
<dermot>
#lisp
ABK has joined #ruby
<Beoran>
in ruby
<dermot>
that's scheme right
<brah>
lol I know it's a lisp dialect.. yeah, scheme
ltsstar has joined #ruby
ascarpino has quit [Ping timeout: 276 seconds]
<Beoran>
you'd go at it in a more OOP style, but you can avoid side effects
<apeiros_>
pure ruby, ascii only atm, as we want to get the mechanics down first
<Beoran>
apeiros_, sure!
<apeiros_>
after that we'll switch to gosu
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
jrist is now known as jrist-afk
<Beoran>
youmay have to switch to C and mruby though, gosu is a bit slow for complicate renering on older pPC's.
<brah>
Ruby has functional capabilities, and google shows people rage at other people trying to use those capabilities.. I know, I could use a lisp dialect, but I want to do it on ruby!
<Beoran>
I startd with the graphics becauset hat's the hard word, combined with the tile mpa, physics, UI system.
Trioke has joined #ruby
g0bl1n has quit [Ping timeout: 260 seconds]
<Beoran>
brah, sure so let me see
<Beoran>
hmm your lisp could translate as
nopolitica has joined #ruby
<apeiros_>
Beoran: hm, seems jdubs is working on it right now - check out 9be191
<apeiros_>
(I have yet to introduce him to branches)
<Trioke>
Quick question, is there any reason to require both 'net/http' and 'net/https'?
Schmidt has quit [Read error: Operation timed out]
<Hanmac>
Beoran i could do an 3D engine with >200FPS in ruby :D
apeiros_ has quit [Remote host closed the connection]
<rafrcruz>
the matrix class just allow me to read the values in the matrix? How should I do to modify just the second column of a vector_column matrix?
ltsstar has quit [Ping timeout: 246 seconds]
<Trioke>
In an example code I'm referencing, it's requiring both libs, but in my past experiences, I can make ssl calls with just require 'net/http'
<Beoran>
not on my 3 yer old Intel Atom with intel gpu
<Beoran>
whoops ,someting wrong in that lispy thing
abionic has quit [Read error: Connection reset by peer]
<Beoran>
however in reality you'd do it
* Hanmac
has an onboard cpu xD
abionic has joined #ruby
<Hanmac>
Beoran you only need the closed source driver ... without you still get 20~60FPS ... with an ruby app
<brah>
"I consider this method (Proc#curry) to be trivial and should be treated like an Easter egg for functional programming kids." What's up with these guys?
<Hanmac>
brah did you know that ruby supports GOTO? ... when you build it with jokes :D
<mark_locklear>
hey folks...I could use some help with pastie.org/5387850
<mark_locklear>
I have the hash...I'm just not sure how to call rating_id
eldariof has quit []
BoomCow has quit [Quit: This computer has gone to sleep]
dekroning has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<Hanmac>
mark_locklear ... your question was answered before?
<mark_locklear>
Hanmac, hey could not remeber who help me before...
<mark_locklear>
so that did not work...hang on and I will tell you the result...
<mark_locklear>
you suggested :rating_id
<mark_locklear>
r[:rating_id]
elkclone_ has quit [Quit: It's never too late to unplug and run.]
<Beoran>
an it's an intel gpu, that has A) only an open source driver since intel provides it, B) not too much acceleration since it is integrated in the CPU
noxoc has quit [Quit: noxoc]
<brah>
The logic branches 4 times on both the if and else clauses :)
<brah>
Beoran:
BigO has joined #ruby
<Beoran>
so does it in lisp
voodoofish430 has joined #ruby
<Beoran>
or scheme
<Beoran>
the compiler sees those if calls and makes them into branches
<Beoran>
in tuby you can use cond ? if_value : else_value, but that to creates ab ranch
krawchyk_ has joined #ruby
<Beoran>
functional programming doesn't match with the reality of how CPU's work.
<Beoran>
CPU's use almost nothing but side effects
<Beoran>
registers are changed, memory on the stack or heap is stored data in
<Beoran>
that is reality
<Beoran>
FP is an abstraction, bthat is in essence, a lie
<Beoran>
unless you havea LISP CPU :)
ABK has quit [Read error: Connection reset by peer]
abionic has quit [Read error: Connection reset by peer]
ABK has joined #ruby
abionic has joined #ruby
thatRD_ has quit [Quit: thatRD_]
krawchyk has quit [Ping timeout: 276 seconds]
minijupe has quit [Read error: Connection reset by peer]
minijupe has joined #ruby
<Hanmac>
Beoran i have integrated CPU too (but from amd) and the pure C++ Program does not have more than 40FPS, so why do you think that ruby should have more?
<brah>
Beoran: You might be correct on the ruby part, dunno. The lisp code has many binary branches.
<Hanmac>
mark_locklear because the hash has stitt inside... the second has is not an hash, its an inspect of a hash
sailias has quit [Ping timeout: 246 seconds]
<brah>
I was about to ask why score is a string and rating_id is a symbol.
eldariof has quit []
abionic has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
Uranio has joined #ruby
abionic has joined #ruby
manizzle has joined #ruby
<Beoran>
Hanmac, I was saying exactly the opposite. C will be faster than ruby for the graphics.
tk__ has quit [Quit: ばいばい]
<Beoran>
So, program the prgram in C, but use mruby for the game data and scripting.
<mark_locklear>
Hanmac, so how now I view it?
ananthakumaran has quit [Quit: Leaving.]
solidoodlesuppor has quit [Ping timeout: 240 seconds]
shtirlic has joined #ruby
v0n has joined #ruby
<Hanmac>
mark_locklear it looks like an erb problem ...
codespectator has joined #ruby
<mark_locklear>
I'm doing this in rails...working between the view and controller
ananthakumaran has joined #ruby
eldariof has joined #ruby
g0bl1n has quit [Ping timeout: 260 seconds]
<Hanmac>
Beoran: with what i do you could write your entire App in ruby, and still has the same speed as the pure C++ implmentation
daniel_- has joined #ruby
<Hanmac>
mark_locklear: #rubyonrails
<mark_locklear>
I'm working it...
solidoodlesuppor has joined #ruby
<Beoran>
Hanmac, how so?
<Beoran>
(and I said C, not C++, but that's an aside )
<Beoran>
eh, and I don'twant to sound upset or anything, I'm just curious how you could program graphics in pure ruby and have it just as fast as in C
<Beoran>
even if you use a C extension, it will be slower than pure C because of the call and memory overhead
lurch_ has joined #ruby
<Hanmac>
it its a bit slower, but not noticable ... (the FPS is still the same)
schaerli has joined #ruby
BigO has quit [Remote host closed the connection]
monkegji_ has quit [Remote host closed the connection]
XSoul|2 has quit []
jekotia has joined #ruby
tyfighter has joined #ruby
enroxorz-work is now known as Anthnoy-
viktor_ has quit [Read error: No route to host]
slainer68 has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
<Beoran>
yes, Hanmac but if you please like to tell me, I'd like to know how exactly you are doing it, or if you can show the source that's even better. :)
<Hanmac>
did you know Ogre3d? i make an binding for that
<Beoran>
ah a c(++) extension
sailias has joined #ruby
mklappstuhl has quit [Ping timeout: 260 seconds]
ChampS666 has quit [Ping timeout: 255 seconds]
gridaphobe has quit [Read error: Connection reset by peer]
<Beoran>
well, in that case, though OgreD will be running most of the time, and your ruby script will be almost not be active at all.
<Beoran>
also, I I wouln't call that a pure ruby approach, but I guess we're arguing semantics then.
g0bl1n has joined #ruby
ABK has quit [Read error: Connection reset by peer]
Rym has joined #ruby
ABK has joined #ruby
h8R has joined #ruby
<Hanmac>
yeah i think i get the most speed because i use ruby in callback mode, that means ruby gets called from the C side in the event loop
thinkdevcode has joined #ruby
J-_-L has joined #ruby
ChampS666 has joined #ruby
Anthnoy- has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
chussenot has joined #ruby
Morkel_ has joined #ruby
DrShoggoth has joined #ruby
<Beoran>
Hanmac, well, that's almost equivalent to making a c++ program and using mruby for scripting it really :)
<Beoran>
but it's a clever find
thinkdev_ has joined #ruby
<Beoran>
although, mruby can be compiled to byte code so you can cloak your scripts againt easy cheating
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
abionic has quit [Read error: Connection reset by peer]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
abionic has joined #ruby
EyesIsMine has quit [Ping timeout: 245 seconds]
ltsstar has joined #ruby
thinkdevcode has quit [Ping timeout: 246 seconds]
Tania has joined #ruby
Tania has quit [Quit: :p]
abionic has quit [Read error: Connection reset by peer]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
abionic has joined #ruby
havenn has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
<Beoran>
I swear I'll end up writing a scenehgraph library in C one day, if I ever manage to finish my 2d game (next will be a 3d game)
havenn has joined #ruby
Slivka has joined #ruby
Mon_Ouie has joined #ruby
jaygen has quit [Remote host closed the connection]
jrajav has joined #ruby
abionic has quit [Read error: Connection reset by peer]
abionic has joined #ruby
joeycarmello has joined #ruby
enderx86 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
tbrock has quit [Quit: Computer has gone to sleep.]
<Cadwallion>
you just thank the person and continue living your life :)
<ddd>
yeah i have a weird UTF-8 char as my shell prompt :)
daniel_- has joined #ruby
<ner0x>
Well...
<ner0x>
ddd: Thank you sir.
<ddd>
np
<ner0x>
I would ddd++ you but apparently we don't do that in here.
<ddd>
yeah most of the ruby related channels don't.
<ner0x>
Odd.
<ddd>
including the #rubyonrails channel
prezioso has joined #ruby
<ddd>
naa, we're more community facing. we're seen out there. this is just for us to chat the backchannel really
<ner0x>
Either way, works.
<ddd>
yep
havenn has quit [Remote host closed the connection]
caleb_io has quit [Quit: caleb_io]
swarley has joined #ruby
<brah>
... karma?
stephenjudkins has quit [Quit: stephenjudkins]
jlwestsr has quit [Ping timeout: 246 seconds]
mikepack has quit [Remote host closed the connection]
gridaphobe has joined #ruby
<Eiam>
Cadwallion: Sat down last night and read most of the getting started for coffee script =p
havenn has joined #ruby
yalue has quit [Remote host closed the connection]
_bart has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
yshh has quit [Remote host closed the connection]
<Cadwallion>
Eiam: how'd that go?
<Eiam>
Cadwallion: okay, I'm sort of on the fence about maybe just using _.js instead of this whole layer still.. CS seems OK, it certainly addresses some of my complaints but it also brings in some my complaints about ruby haha
<Eiam>
Cadwallion: I don't like the browser inserts ; behavior. i like last line returns behavior. I don't like leaving out parans from method names, i think they help clarify intent. in ruby I can put them in or not, in CS i have to leave them out
ngoldman has joined #ruby
<Eiam>
Cadwallion: for example in ruby when chaining like .select.map i don't use () because blocks are usually present, but if i have a method thats on its own, like x = method() i always include the () so its clear I'm invoking something andn ot just assigning another variable
_nitti_ has joined #ruby
<Eiam>
Cadwallion: so over the holidays I'm going to take some of my JS functions and re-write them in CS. I do prefer the way CS handles classes
<Cadwallion>
fair nuff on the parens, I use parens as little as possible
<Eiam>
Cadwallion: I think it fits better with how I think about classes & models
<Cadwallion>
yeah, CS class handle
<Eiam>
CS feels like someone who wrote a lot of ruby wished they could use ruby in javascript
abionic has quit [Read error: Connection reset by peer]
<Cadwallion>
I'd say that's accurate
abionic has joined #ruby
<Eiam>
which is to be honest something i wish i could do, and I often avoid writing JS by instead doing the work in ruby and sticking the result in data-url's for js to just read & poop out
F1skr has quit [Quit: WeeChat 0.3.9.1]
<ner0x>
ddd: jist <myfile> Where does that gist post live?
_bart has quit [Client Quit]
<ner0x>
ddd: If I wanted to go to "My Gist" and delete it.
_nitti has quit [Ping timeout: 260 seconds]
<Cadwallion>
Eiam: a fairly apt description imo
slainer68 has quit [Remote host closed the connection]
enderx86 has quit [Remote host closed the connection]
<Cadwallion>
but since I enjoy ruby, and it follows the style I write Ruby, so I hug it and stroke it and call it mine
<Eiam>
going to run it by my boss see if he cares
pyx has joined #ruby
manizzle has quit [Ping timeout: 252 seconds]
horsey has quit [Read error: Connection reset by peer]
<blazes816>
the best part about CS is that at the end of the day if you aren't happy with it, it at least compiles to nice, clean JS
enderx86 has joined #ruby
<Eiam>
i'd argue about nice & clean
stephenjudkins has joined #ruby
<Eiam>
=)
etcetera has quit [Quit: Computer has gone to sleep.]
<Eiam>
then again, JS isn't nice & clean no matter what so whatever ;)
<blazes816>
well, that's true. I'd take the CS generated JS over *most* hand written JS any day
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
etcetera has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
abionic has quit [Read error: Connection reset by peer]
abionic has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
aghull has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
abionic has quit [Read error: Connection reset by peer]
RubyPanther has joined #ruby
havenn has quit [Remote host closed the connection]
maletor has joined #ruby
abionic has joined #ruby
Zolrath has joined #ruby
BigO has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
nachtwandler_ has joined #ruby
bigmcq77 has joined #ruby
_alejandro has joined #ruby
minijupe has quit [Read error: Connection reset by peer]
BigO has joined #ruby
abionic has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
abionic has joined #ruby
minijupe has joined #ruby
apok has quit [Quit: apok]
nachtwandler has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
alejandro_ has quit [Ping timeout: 252 seconds]
nat2610 has joined #ruby
BigO has quit [Remote host closed the connection]
g_bleezy has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
answer_42 has joined #ruby
BigO has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
h4mz1d has joined #ruby
manizzle has joined #ruby
g_bleezy has quit [Ping timeout: 244 seconds]
ngoldman has quit [Remote host closed the connection]
<ddd>
ner0x: when you run the jist command like i told you with a filename it gets sent to gist.github.com. It spits out a URL right that at the commandline, copy that into your browser to see it
<ddd>
and if you are logged in to github already (or have $HOME/.gitconfig set up with your username and password) it will output it to your account, otherwise it posts it as an anonymous gist.
banisterfiend has joined #ruby
<ddd>
sorry, my daughter has expressed a great desire to learn to program so I'm busy working with some people to get her set up on an education track to do so. I'm not really paying attention to IRC right now.
jonathanwallace has joined #ruby
GranMal has quit [Quit: GranMal]
abionic has quit [Read error: Connection reset by peer]
aldodelgado has joined #ruby
abionic has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
F1skr has joined #ruby
kammouflage has joined #ruby
kammouflage has quit [Client Quit]
caleb_io has joined #ruby
cjs226 has joined #ruby
<ner0x>
ddd: Not a problem. I am logged in but it created a private gist. I assume it's lost in internet-land?
Banistergalaxy has joined #ruby
<ddd>
no kick the other person the url returned. you just cant delete it yourself
robottinosino has joined #ruby
abionic has quit [Read error: Connection reset by peer]
<ddd>
because its not attached to anyone's account. thus the anonymous
abionic has joined #ruby
_nitti_ is now known as _nitti
answer_42 has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
abionic has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
<swarley>
err
<swarley>
[1] pry(main)> str = "124-342"
abionic has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
nachtwandler_ has quit [Quit: leaving]
jeffreybaird has quit [Ping timeout: 264 seconds]
jeffreybaird_ is now known as jeffreybaird
<leifmadsen>
hey all. I'm trying to track down either a usage error with assert_equals from the MiniTest::Assertion library, or potentially a bug in the library itself. I've outlined my tests and conclusions, and if anyone is interested would love ideas on how I could perform more testing and track down the issue. https://github.com/calavera/minitest-chef-handler/issues/34
ChampS666 has quit []
J-_-L has joined #ruby
BigO has quit [Remote host closed the connection]
abionic has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
nat2610 has joined #ruby
<lectrick>
aaand I just noticed the TLD group definition will have to change quite a bit starting next year. sigh
arya__ has joined #ruby
trevortwining has joined #ruby
monkegjinni has quit [Read error: No route to host]
monkegji_ has joined #ruby
<brah>
lectrick: There will be about 2000 new non-cc (don't remember their name) TLDs I believe.
BigO has quit [Remote host closed the connection]
abionic has quit [Read error: Connection reset by peer]
SJr has quit [Excess Flood]
etcetera has joined #ruby
abionic has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
<brah>
And URIs are regular.
<lectrick>
brah: yeah, i'd have to make the TLD group either recognize all of them or just any generic length of allowable path segment characters
caleb_io has quit [Quit: caleb_io]
carlyle__ has quit [Remote host closed the connection]
arya__ is now known as arya_
SJr has joined #ruby
fantazo_ has joined #ruby
fantazo has quit [Ping timeout: 248 seconds]
h4mz1d has quit [Ping timeout: 264 seconds]
GoGoGarrett has quit [Remote host closed the connection]
slamice has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
slash_nick has joined #ruby
slainer68 has joined #ruby
aces23up has joined #ruby
abionic has quit [Read error: Connection reset by peer]
alfism has quit [Quit: alfism]
abionic has joined #ruby
slainer68 has quit [Read error: Operation timed out]
<brah>
"I think this means that at least Ruby 1.9.1's regex engine, which is the Oniguruma regex engine, is actually equivalent to a context-free grammar"
d2dchat has quit [Remote host closed the connection]
<banisterfiend>
apeiros_: pretty k00?
<apeiros_>
banisterfiend: oooh, nice @ link
medik has joined #ruby
barce has joined #ruby
slainer68 has joined #ruby
maletor has joined #ruby
<sam101>
nothing
<sam101>
:s
<brah>
sam101: `file /usr/lib/ruby/1.8/ruby`
<sam101>
i want to try and remove this
havenn has joined #ruby
hsbt is now known as hsbt_away
kirun has quit [Quit: Client exiting]
<sam101>
/usr/lib/ruby/1.8/*
<sam101>
not /usr/lib/ruby/1.8/ruby
<sam101>
on 1.8 folder
<sam101>
there is many .rb files
<workmad3>
sam101: stepping back... what yum command did you install, and what OS is this exactly?
<sam101>
yum install ruby
Jasko has quit [Read error: Connection reset by peer]
<sam101>
redhat 4
dekroning has joined #ruby
Jasko has joined #ruby
aeontech has joined #ruby
<shevy>
anyone of you having used openssl with ruby successfully? Ideally I'd like to know the shortest way to have an IRC client .rb script use IRC (works already) use an openssl connection optionally (does not yet work)
savage- has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
codeFiend has quit [Ping timeout: 246 seconds]
aeontech is now known as codeFiend
dekroning has quit [Ping timeout: 252 seconds]
rakunHo has joined #ruby
ryanlecompte has quit [Ping timeout: 246 seconds]
jrist-dogwalk is now known as jrist
jds_ has joined #ruby
yshh_ has quit [Remote host closed the connection]
banseljaj has quit [Excess Flood]
banseljaj has joined #ruby
kil0byte has quit [Remote host closed the connection]
BigO has joined #ruby
atmosx has quit [Remote host closed the connection]