<alexspeller>
it avoids rounding errors and gives you some nice other features
reppard has quit [Ping timeout: 245 seconds]
nipara has quit [Ping timeout: 244 seconds]
chord has joined #ruby
nazty has joined #ruby
Virunga has quit [Remote host closed the connection]
<xnm>
alexspeller: thanks
ttt has quit [Ping timeout: 276 seconds]
nazty is now known as lordnaz
reppard has joined #ruby
art_man1 has quit [Quit: art_man1]
bradyl0ve has quit [Quit: Leaving...]
DanBoy_ has quit [Quit: Leaving]
karupanerura has quit [Excess Flood]
ephemerian has left #ruby [#ruby]
karupanerura has joined #ruby
verto|off is now known as verto
atadesk has joined #ruby
elico has quit [Quit: elico]
Russell^^ has quit [Quit: Russell^^]
elico has joined #ruby
lenovodroid has quit [Ping timeout: 250 seconds]
banister_ has quit [Ping timeout: 248 seconds]
lordnaz has quit [Read error: Connection reset by peer]
NiteRain has joined #ruby
havenn has quit [Remote host closed the connection]
rvmeier has joined #ruby
dankest is now known as dankest|away
banisterfiend has joined #ruby
lejonet has quit [Ping timeout: 260 seconds]
stuartrexking has joined #ruby
pac1 has joined #ruby
wicked_shell has joined #ruby
jjang has quit [Remote host closed the connection]
r0bby has quit [Ping timeout: 252 seconds]
xnm has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
dankest|away is now known as dankest
alexspeller has quit [Remote host closed the connection]
chord has quit [Ping timeout: 245 seconds]
stuartrexking has quit [Quit: Leaving...]
Guest90418 has quit [Ping timeout: 252 seconds]
Gooder has joined #ruby
ltsstar has quit [Quit: ltsstar]
lenovodroid has joined #ruby
nipar has joined #ruby
<nipar>
Mission "Steal 500 euro without spouse noticing" is a success. (Update for the few ppl giving suggestions)
Drager has quit [Remote host closed the connection]
woolite64 has quit []
Guest90418 has joined #ruby
Drager has joined #ruby
slainer68 has joined #ruby
jfl0wers has joined #ruby
jjbohn has joined #ruby
omg765 has joined #ruby
icole has quit [Remote host closed the connection]
daniel_- has quit [Quit: WeeChat 0.3.9.2]
nateberkopec has quit [Quit: Leaving...]
danneu has quit [Ping timeout: 248 seconds]
friskd has quit [Read error: Operation timed out]
Drager has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 265 seconds]
atadesk has left #ruby [#ruby]
Dario_ has quit [Ping timeout: 260 seconds]
taoru has joined #ruby
cloud|nix__ has joined #ruby
ixxxxi is now known as ixx
dawkirst_ has quit [Quit: Nettalk6 - www.ntalk.de]
marr has quit [Ping timeout: 256 seconds]
emmanuel__ has joined #ruby
breakingthings has joined #ruby
reppard has quit [Ping timeout: 244 seconds]
Guest90418 has quit [Ping timeout: 265 seconds]
cloud|nix_ has quit [Ping timeout: 265 seconds]
Drager has joined #ruby
emmanuelux has quit [Ping timeout: 244 seconds]
piotr__ has quit [Ping timeout: 248 seconds]
elico has quit [Quit: Elico]
banisterfiend has quit [Ping timeout: 248 seconds]
emmanuel__ has quit [Read error: Connection reset by peer]
rezzack has quit [Quit: Leaving.]
ttt has joined #ruby
wicked_shell has quit [Ping timeout: 276 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<shevy>
I hate rewrites...
elaptics is now known as elaptics`away
<swarley>
:(
ermines is now known as otters
reppard has joined #ruby
ttt has quit [Ping timeout: 245 seconds]
rvmeier has quit [Ping timeout: 248 seconds]
xbayrockx has quit [Ping timeout: 265 seconds]
rvmeier has joined #ruby
<shevy>
swarley I have a class here, 300 lines of code, rewriting it right now. the thing is, there seem to be so many useless variables... and it seems easier to start from scratch, than scanning through and getting rid of what is unnecessary
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<shevy>
it's like a 5 years old .rb file
<swarley>
yeesh
<swarley>
What's the class for?
fred909 has quit [Ping timeout: 265 seconds]
io_syl has joined #ruby
yshh has joined #ruby
<shevy>
It does not do much, just creates a directory structure for standalone programs ( bin/ lib/ sbin/ etc..), including some sanitizing
maletor has quit [Quit: Computer has gone to sleep.]
<shevy>
hmm and some more things, which I will try to find out slowly, as I dissect this shit ...
<shevy>
apparently it has a debug mode. and a simulation mode (tells the user what it would do, without performing it)
<shevy>
also sets a symlink and removes wrong symlinks
Guest90418 has joined #ruby
pabloh has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
swex_ has joined #ruby
<shevy>
hmm if you have an array ["foo"]
mahmoudimus has quit [Read error: Connection reset by peer]
<shevy>
do you say, this array has one member, or do you say, this array has one element?
<swarley>
I would say element
omg765 has quit [Read error: Operation timed out]
<swarley>
I almost never refer to it as member
<shevy>
ok
mahmoudimus has joined #ruby
freakazoid0223 has joined #ruby
fgro has quit [Ping timeout: 265 seconds]
swex has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Ping timeout: 248 seconds]
Guest90418 has quit [Read error: Connection reset by peer]
squidBits has quit [Quit: whoops]
benlieb has joined #ruby
horofox has quit [Quit: horofox]
Proshot has quit [Quit: Leaving]
sn0wb1rd has quit [Quit: sn0wb1rd]
malte_ has quit [Quit: malte_]
<ryanf>
I think member is pretty common too
jjbohn has quit [Read error: Connection reset by peer]
cloud|nix__ has quit [Quit: Ex-Chat]
maletor has joined #ruby
<shevy>
is there a technically correct form?
GlenK has left #ruby [#ruby]
<ryanf>
of course not, this is ruby
<ryanf>
they can't even decide what an eigenclass is called
zommi has joined #ruby
Goles has quit [Read error: Operation timed out]
lenovodroid has quit [Ping timeout: 252 seconds]
dankest has quit [Quit: Leaving...]
adkron has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: kenneth]
jkarayusuf has joined #ruby
nari_ has joined #ruby
sn0wb1rd has joined #ruby
verto is now known as verto|off
ttt has joined #ruby
alexim has quit [Quit: sleep]
jimeh has quit [Remote host closed the connection]
eka has quit [Remote host closed the connection]
guns has joined #ruby
jfl0wers has quit [Quit: jfl0wers]
alexspeller has joined #ruby
brendan_ has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
jgrevich has joined #ruby
Dario_ has joined #ruby
ricburton has joined #ruby
<ricburton>
hey
aapzak has quit [Ping timeout: 265 seconds]
<ricburton>
could anyone help with a '[BUG] cross-thread violation on rb_gc()' issue?
<ricburton>
SO is not proving fruitful
ricburton has quit [Client Quit]
aces1up has joined #ruby
aapzak has joined #ruby
<aces1up>
hey all is there a gem that makes it easy to create a console output like when using top in linux?
<aces1up>
top command?
thams has quit [Quit: thams]
alexspeller has quit [Ping timeout: 252 seconds]
<slash_nick>
like tailing a log file?
<slash_nick>
tail -fn100 log/development.log
greenarrow has quit [Quit: IRC is just multiplayer notepad]
jkarayusuf has quit [Remote host closed the connection]
<slash_nick>
like tailing a log file?
<slash_nick>
tail -fn500 log/development.log
omg765 has joined #ruby
aaronmacy has quit [Quit: Leaving.]
Dario_ has quit [Ping timeout: 248 seconds]
<aces1up>
slash_nick never used that command, i'm a bit new to linux but basically want a static console page that doesn't scroll that i can have like a table like when doing top command that auto updates.
<aces1up>
on different events
twoism has quit [Remote host closed the connection]
<slash_nick>
ah, that command would show the most 500 recent lines of log file as they're written... So, aces1up what would be in the table?
<aces1up>
mostly kinda like a real time dbase hook.
<slash_nick>
ah... well I don't know of anything like that
<aces1up>
i have hooked Active record to call my table console handler whatever that would be on an update.
<aces1up>
ok
MissionCritical has quit [Ping timeout: 246 seconds]
Dario_ has joined #ruby
stkowski has joined #ruby
reppard has quit [Ping timeout: 265 seconds]
Goles has joined #ruby
xbayrockx has joined #ruby
xbayrockx has quit [Client Quit]
Guest9041 has joined #ruby
omg765 has quit [Quit: Computer has gone to sleep.]
Dario_ has quit [Ping timeout: 252 seconds]
xbayrockx has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
wf2f has quit [Ping timeout: 250 seconds]
jslowe has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
reppard has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
BeLucid_ has quit [Ping timeout: 264 seconds]
Guest9041 has quit [Ping timeout: 260 seconds]
nga4 has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
slash_nick has quit [Ping timeout: 246 seconds]
elico has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
MissionCritical has joined #ruby
drPoggs has quit [Quit: Goodbye]
c0rn has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
drPoggs has joined #ruby
tommyvyo_ has joined #ruby
emmanuelux has joined #ruby
pcarrier has quit []
Guest9041 has joined #ruby
phipes has joined #ruby
williamherry has joined #ruby
<williamherry>
how to wrap a method that it's arguemnt is a hash?
<swarley>
what?
<williamherry>
I want write a method that will call update_attribute method
<williamherry>
how to handle the argument
<williamherry>
swarley: *args not work
<swarley>
oh, when an argument is a hash, treat it like a normal variable
emmanuelux has quit [Read error: Operation timed out]
elliomax has joined #ruby
nouh has quit [Remote host closed the connection]
<williamherry>
def my_method(args) \n some code \n update_attribute(args)\n end?
jgrevich_ has joined #ruby
nouh has joined #ruby
elliomax has quit [Remote host closed the connection]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<reppard>
so if you do something like Regexp.new(eval("/12/")) it will return a proper regex object
<reppard>
but if you try to add special characters and escape them it freaks
<swarley>
errm sorry i forgot to add a readme
mahmoudimus has joined #ruby
<swarley>
But the spec/spec.rb says enough
<reppard>
swarley: nice spec file. i seem to always screw up the "it" grammar
<swarley>
I don't usually make specs as nice as that one
rvmeier has joined #ruby
emergion has joined #ruby
aaronmacy has joined #ruby
<shevy>
hehehe
<shevy>
swarley you are a funny guy
<swarley>
hm?
Guest9041 has joined #ruby
<shevy>
reppard you tried to write a grammer with it?
<shevy>
*grammar
<shevy>
let me look at that spec.rb ...
<shevy>
is minitest easy?
<swarley>
It's as easy as my spec looks
rvmeier has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
gyre007 has quit [Remote host closed the connection]
jonnnn has joined #ruby
squidBits has joined #ruby
yacks has quit [Ping timeout: 265 seconds]
jekotia has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
flip_digits has joined #ruby
<swarley>
but yeah, if any of you guys find any of that interesting. If no one is going to use it I'm not going to keep working on it, but I will if anyone finds use in it
<shevy>
swarley are you on rubygems.org btw?
<reppard>
so yeah my bad...apparently you dont have to escape forward slashes
Guest9041 has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
<bluebie>
I have a little USB gadget which makes a fake serial port using some weird hacks, and I'd like to abstract it in ruby so it works like any other IO
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<swarley>
cr3; within pry, do show-doc Module
<cr3>
havenn: ah, I believe you mentionned pryrepl yesterday too. I was under the impression it was just for debugging though
Juul has joined #ruby
<swarley>
No, it is a complete irb replacement
Guest9041 has joined #ruby
<havenn>
cr3: It is an irb replacement. A very good one at that!
<popl>
What's wrong with irb?
<cr3>
popl: I'm wondering the same thing, but that's mostly because I'm just starting with ruby
<bluebie>
popl: irb is alright, pry is much better
<bluebie>
I could never remember to use it though, so I aliased irb to pry on my computers!
frem has quit [Quit: Computer has gone to sleep.]
<bluebie>
nobody knows stuff about IO?
<popl>
Nobody. Ever.
<bluebie>
dang
benlieb has joined #ruby
Muz has quit [Read error: Operation timed out]
sepuku has quit [Read error: Operation timed out]
notbrent has quit [Read error: Operation timed out]
fatninja has quit [Read error: Operation timed out]
iaj has quit [Read error: Operation timed out]
zaiste has quit [Write error: Broken pipe]
rapha has quit [Write error: Broken pipe]
<havenn>
popl: syntax highlighting, auto-indentation, omgwtfbbqwin, type `help` in Pry for good list of additional commands available in Pry.
<bluebie>
I was really hoping it'd be a bit like enumerable, where you just implement a couple of methods and the rest work through those
tommyvyo_ has joined #ruby
karnowski has quit [Read error: Operation timed out]
<popl>
syntax highlighting is overrated. :)
tessi has quit [Ping timeout: 248 seconds]
malcolmva has joined #ruby
emergion has joined #ruby
Bish has quit [Ping timeout: 260 seconds]
Sigma00 has quit [Ping timeout: 248 seconds]
msch has quit [Ping timeout: 246 seconds]
rcj_ has quit [Ping timeout: 255 seconds]
<chord>
swarley what do you think about the statement: Python > Ruby
<havenn>
popl: Maybe just synesthesia, but text colors matter to me. :P
plu has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
sonne has quit [Ping timeout: 264 seconds]
z has quit [Ping timeout: 252 seconds]
wedgeV has quit [Ping timeout: 252 seconds]
parus has quit [Ping timeout: 244 seconds]
raddazong has quit [Ping timeout: 248 seconds]
aef has quit [Ping timeout: 264 seconds]
drizz_ has quit [Ping timeout: 255 seconds]
xAndy has quit [Ping timeout: 255 seconds]
Dario_ has joined #ruby
im0b has quit [Ping timeout: 252 seconds]
cam` has quit [Ping timeout: 246 seconds]
swi7ch has quit [Ping timeout: 245 seconds]
dreamfall has quit [Ping timeout: 245 seconds]
telling has quit [Ping timeout: 245 seconds]
wereHamster has quit [Ping timeout: 260 seconds]
<popl>
havenn: to each their own
_br_ has quit [Ping timeout: 255 seconds]
ccooke has quit [Ping timeout: 264 seconds]
failingkid has quit [Ping timeout: 244 seconds]
caveat- has quit [Ping timeout: 252 seconds]
randym has quit [Ping timeout: 260 seconds]
eval-in has quit [Ping timeout: 260 seconds]
SeanTAllen has quit [Ping timeout: 276 seconds]
KRF has quit [Ping timeout: 265 seconds]
[0x1a] has quit [Ping timeout: 260 seconds]
<swarley>
irb is painfully hard to use compared to pry
<bluebie>
if ruby's okay, I wonder if there's anything you think is good?
<swarley>
brainfuck
eval-in has joined #ruby
<popl>
I really like Haskell.
xAndy has joined #ruby
iaj has joined #ruby
aef has joined #ruby
Weazy has quit [Ping timeout: 255 seconds]
WhereIsMySpoon has quit [Ping timeout: 264 seconds]
<popl>
I use Perl an awful lot.
<bluebie>
I've never gotten around to learning haskell but some of my compsci friends love it :)
Sigma00 has joined #ruby
rcj_ has joined #ruby
<bluebie>
are you doing uni stuff?
[0x1a] has joined #ruby
williamherry has quit [Ping timeout: 252 seconds]
<popl>
I was. I am currently not attending.
patricksroberts_ has joined #ruby
parus has joined #ruby
Weazy has joined #ruby
<bluebie>
neat ^_^
randym has joined #ruby
<swarley>
Haskell is really interesting
<bluebie>
I learnt C by crashing uni lectures
<havenn>
Perl 6 reminds me of Ruby.
tessi has joined #ruby
<popl>
In UNI I used a lot of differentl anguages.
rcsheets_ has joined #ruby
madhatter has joined #ruby
dkannan_ has joined #ruby
<swarley>
but difficult to learn if you have programming experience
<cr3>
I can't imagine deeply knowing a few languages and being really adamant about any one language, does it really make that big a difference as long as you use the right language for the right job?
<bluebie>
perl and ruby are friends :)
<popl>
Perl6 is pretty.
NimeshNeema_ has joined #ruby
sepuku has joined #ruby
Bish has joined #ruby
sonne has joined #ruby
Guest9041 has quit [Ping timeout: 260 seconds]
octarine_ has joined #ruby
drizz has joined #ruby
dbrgn has joined #ruby
wereHamster has joined #ruby
<swarley>
it's also destined to be slow
telling has joined #ruby
<popl>
cr3: No. You will probably have favorites because well, you're human.
rapha has joined #ruby
rapha has joined #ruby
rapha has quit [Changing host]
ccooke has joined #ruby
<popl>
slow?
emergion has quit [Quit: Computer has gone to sleep.]
caveat- has joined #ruby
<swarley>
Interpreted P6 is going to be slow
<swarley>
Until processors catch up
<cr3>
popl: so, it's likely to be your first programming language for nostalgic reasons or your last one for familiarity reasons :)
Guest9041 has joined #ruby
_br_ has joined #ruby
<popl>
possibly
<popl>
but never Java
<popl>
:P
<cr3>
popl: agreed :)
rcsheets has quit [Disconnected by services]
rcsheets_ is now known as rcsheets
<swarley>
Since the P6 standard is built on the principal of using the parrotVM
<cr3>
it's really hard to be passionate about java
ryanf_ has quit [Quit: broken pipes |||]
<swarley>
and parrot is nothing near fast
spanx___ has joined #ruby
MissionCritical has quit [Ping timeout: 264 seconds]
bluehavana_ has joined #ruby
<chord>
swarley: Java > Ruby
dreamfall has joined #ruby
cyong has joined #ruby
<popl>
flamebait
tommyvyo[cloud]_ has joined #ruby
kapowaz_ has joined #ruby
<swarley>
chord; performance wise yes, syntactically no
<swarley>
Java is line noise
lectrick____ has joined #ruby
<bluebie>
JRuby
pvh___ has joined #ruby
wedgeV has joined #ruby
<popl>
cr3: I had to implement AES in Java and it sucked.
<popl>
bluebie: I also implemented RSA (which was a lot more fun in Java, actually).
<bluebie>
cocoa ._.
<shevy>
man
<bluebie>
they finally got themselves a dictionary literal syntax..
<shevy>
coding zombies
<bluebie>
so I can stop gouging my eyes out every time I find the need to write some
cj3kim has quit [Quit: This computer has gone to sleep]
_br_ has quit [Excess Flood]
failingkid has joined #ruby
squidBits has quit [Quit: squidBits]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<popl>
swarley: Parrot isn't finished yet.
<swarley>
popl; no it's not. But it's a high level language in itself
SeanTAllen has joined #ruby
WhereIsMySpoon has joined #ruby
<popl>
How does that imply it's going to be slow?
shiroginne_ has joined #ruby
_br_ has joined #ruby
dekz__ has joined #ruby
xerxas_ has joined #ruby
TheDeadSerious_ has joined #ruby
fcoury_ has joined #ruby
yeban_ has joined #ruby
davidboy___ has joined #ruby
cr3 has quit [Quit: leaving]
<chord>
so whats going to be the next big language
<chord>
besides Go
_br_ has quit [Excess Flood]
percival__ has joined #ruby
Mission-Critical has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<swarley>
not Go
Muz has joined #ruby
<chord>
swarley how you know that
emergion has joined #ruby
<swarley>
because it's another one of those "Oh this is neat!... I don't know what I'm supposed to do with this"
NimeshNeema_ has quit [Excess Flood]
kiyoura has quit [Quit: Leaving]
axl_ has joined #ruby
_br_ has joined #ruby
<popl>
Piet
<chord>
swarley what do you mean they explicitly said its a systems language
<popl>
Let's all switch to Piet
<swarley>
I mean, it's a neat little tool, but there is just no reason for it to be the next big thing
swi7ch has joined #ruby
<chord>
swarley you need to write backend systems software what you gonna use? Java?
<havenn>
Ruby <3
<swarley>
I'm not sure, but Go wouldn't be the option I jump at lol
williamherry has joined #ruby
NimeshNeema_ has joined #ruby
<chord>
swarley: so in other words you're saying Go
jxriddle has quit [Quit: jxriddle]
gordon1775 has joined #ruby
<swarley>
No? I'm saying I'm not sure what languages are suited for the job
dougireton has joined #ruby
yacks has joined #ruby
<chord>
not sure basically means default Go
<swarley>
No..
cj3kim has left #ruby ["Leaving"]
<chord>
you keep saying no for the sake of no but you know i'm right
crackfu has joined #ruby
<swarley>
Honestly, If I was targeting a compiled, C like language. I would use D before I would use Go
Mission-Critical is now known as MissionCritical
brendan_ has joined #ruby
rondale_sc has joined #ruby
<chord>
wow you would use both Ruby and D where D is the language that is 10000x more complicated in Ruby, talk about cognitive dissonance
joofsh has quit [Remote host closed the connection]
gyre007 has joined #ruby
guns has quit [Quit: guns]
<popl>
Man. I sense some serious unrequited bromance.
moshee has quit [Ping timeout: 260 seconds]
notbrent has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
seejohnrun has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
sayan has joined #ruby
<swarley>
o-O
<swarley>
Something tells me that you're just here because you got a boner setting up your GO_PATH
brendan_ has quit [Ping timeout: 264 seconds]
keyvan is now known as love_color_text_
gyre007 has quit [Ping timeout: 256 seconds]
mahmoudimus has joined #ruby
stuartrexking has joined #ruby
a_a_g has joined #ruby
rondale_sc has quit [Ping timeout: 255 seconds]
elliottcable is now known as elliottcable___
Divinite_ is now known as Divinite
ryanf_ has joined #ruby
Divinite has quit [Quit: Divinite has left :(]
benlieb has quit [Quit: benlieb]
axl_ has quit [Quit: axl_]
browndawg has joined #ruby
mhi^ has quit [Ping timeout: 240 seconds]
<chord>
swarley: so you betting on D over Go?
stuartrexking has quit [Ping timeout: 252 seconds]
<swarley>
Betting? No, jesus
<swarley>
Alright, this is going no where, swarley out
lenovodroid has quit [Ping timeout: 255 seconds]
ryanf__ has joined #ruby
<popl>
chord: troll level increased
ryanf__ has quit [Client Quit]
<popl>
chord: new wart achieved
elliottcable___ is now known as elliottcable
<popl>
chord: hump on your back increases in diameter by 6 cm
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
nateberkopec has joined #ruby
JohnBat26 has joined #ruby
ryanf_ has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
atal421 has joined #ruby
jsilver has joined #ruby
<popl>
chord: I have +g set.
<popl>
chord: You shouldn't /msg people anyways, not without asking first. :P
<atal421>
hey folks, quick question
<atal421>
when submitting a form
<atal421>
what do you do to clean up the incoming data?
squidBits has joined #ruby
<atal421>
like, converting incoming 1 to true
<chord>
popl: you know I'm right about go
ryanlecompte has joined #ruby
<popl>
chord: I don't care.
stuartrexking has joined #ruby
stuartrexking has quit [Client Quit]
chaosis has quit [Remote host closed the connection]
ckrailo has joined #ruby
<chord>
popl what do you use for systems programming then?
cj3kim has joined #ruby
Coolhand_ has joined #ruby
<popl>
Indians
<chord>
popl enable private chat
<popl>
No. I don't like talking to you.
<popl>
:P
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]]
<chord>
WTF
<popl>
chord: You smell like a troll.
<chord>
popl why you so suspicious
Coolhand__ has joined #ruby
<moshee>
don't even try it popl
<moshee>
spend any amount of time in here or #ruby and you'll come to know the guy
<moshee>
he's always like that
Coolhand has quit [Ping timeout: 248 seconds]
<chord>
moshee is just mad because I proved him wrong in the past
<moshee>
strange, I thought I was in #go-nuts
<moshee>
well, I meant here and #go-nuts
<popl>
there are puns to be had there
burgestrand has quit [Quit: Leaving.]
<popl>
#go-nads
haylon has joined #ruby
<popl>
#haskell is tired of the gonad joke
<moshee>
I'm pretty sure the go language authors had all of the puns in mind already
<chord>
haskell is going to die
<chord>
haskell will fade away
<chord>
its not the functional language of the future
Coolhand_ has quit [Ping timeout: 248 seconds]
gordon1775 has quit [Read error: Connection reset by peer]
<haylon>
I am trying to perform array function, and I'm not sure whether I'm doing this correctly. I want to fill an array, go through the indexes and look for a certain element, being LJ or BJ. Then i want to return the element, then return the index of the element. https://gist.github.com/4350856
wargasm1 has joined #ruby
jxriddle has joined #ruby
<swarley>
array.each_with_index do |object,index|
io_syl has joined #ruby
a_a_g has quit [Quit: Leaving.]
wargasm has quit [Ping timeout: 260 seconds]
<haylon>
swarley: that will return both? or will it just go through each index and display the element?
<swarley>
you want the element and the index?
<swarley>
uh, you can do var = [] outside of the block and then add in arrays
uris has quit [Quit: Leaving]
williamherry has quit [Ping timeout: 260 seconds]
nick_h has quit [Ping timeout: 265 seconds]
<haylon>
ok, i'll think on it
<haylon>
thank you
tommyvyo has joined #ruby
nick_h has joined #ruby
stevechiagozie has joined #ruby
rondale_sc has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
ananthakumaran1 has quit [Ping timeout: 255 seconds]
zommi has quit [Quit: Leaving.]
browndawg has quit [Ping timeout: 245 seconds]
fir_ed has quit [Ping timeout: 248 seconds]
Coolhand has joined #ruby
ukd1 has joined #ruby
aharris6 has joined #ruby
fir_ed has joined #ruby
Coolhand__ has quit [Ping timeout: 250 seconds]
dmerrick has joined #ruby
turtlehat has quit [Quit: quitquit]
cakehero has quit [Quit: Computer has gone to sleep.]
woolite64 has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
rondale_sc has quit [Ping timeout: 252 seconds]
twoism has quit [Remote host closed the connection]
williamherry has joined #ruby
twoism has joined #ruby
iamjarvo has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
twoism has quit [Ping timeout: 244 seconds]
ukd1_ has joined #ruby
Gooder has quit [Remote host closed the connection]
Coolhand_ has joined #ruby
dougireton has quit [Quit: Leaving.]
wargasm has joined #ruby
wargasm1 has quit [Ping timeout: 255 seconds]
dougireton has joined #ruby
chussenot has joined #ruby
fir_ed has quit [Ping timeout: 248 seconds]
dougireton has quit [Client Quit]
Coolhand has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
LazyNoop has joined #ruby
flip_digits has quit [Read error: Connection reset by peer]
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon1 has quit [Read error: Connection reset by peer]
emergion has quit [Quit: Computer has gone to sleep.]
Shadow_S has joined #ruby
zeade has joined #ruby
ukd1_ has quit [Quit: Lost terminal]
haylon has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
chussenot has quit [Client Quit]
jblack has quit [Read error: Operation timed out]
nomenkun has joined #ruby
sn0wb1rd has quit [Quit: I will be right back]
ryanlecompte has joined #ruby
nomenkun has quit [Remote host closed the connection]
ukd1 has quit [Quit: leaving]
nomenkun has joined #ruby
nomenkun has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
sn0wb1rd has joined #ruby
rakl has joined #ruby
sjuxax has joined #ruby
<sjuxax>
Hello. I have a file whose MD5 I am trying to compare in the script before it is written. I am using Digest::MD5.hexdigest() to calculate the hash. This returns a different hash than md5sum on my machine. After I write the file and load it into irb, I get the same MD5 as md5sum. Does file.write() modify the data stream, and if so, how can I prevent this?
<sjuxax>
I have tried to work around this by writing the file in /dev/shm, reading the contents out, and then reading that, but these still give me the bad MD5
<Hanmac1>
sjuxax show me your code, do you use File.read?
<snuglepuss>
Seems that I can improve the playerMove and humanTurn functions in my code. Can anyone give me some advice? https://gist.github.com/4352111
gordon1775 has joined #ruby
sqbell has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
qwerxy has quit [Quit: Computer has gone to sleep.]
lenodroid has quit [Read error: Connection reset by peer]
nimred_ has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
gordon1775 has quit [Ping timeout: 244 seconds]
lenodroid has joined #ruby
includex has joined #ruby
cousine has joined #ruby
clooth has quit [Quit: clooth]
neurotech has quit [Remote host closed the connection]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
lenodroid has quit [Read error: Connection reset by peer]
regedarek has quit [Read error: Operation timed out]
browndawg has quit [Quit: Leaving.]
shtirlic_ has joined #ruby
clooth has joined #ruby
ebouchut has joined #ruby
regedarek has joined #ruby
verto|off is now known as verto
horofox has quit [Quit: horofox]
koshii has quit [Quit: leaving]
emergion has joined #ruby
lenodroid has joined #ruby
lenodroid has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
<mpfundstein>
zlude: its actually just comparing $argv[1] to "keytrue"
[Neurotic] has quit [Remote host closed the connection]
<mpfundstein>
zlude: not entirely true sorry
<mpfundstein>
zlude: the for loop, decrements each char by one. so t becomes s etc..
<apeiros_>
zlude: we gladly help, but we don't do it for you. so I suggest you start trying yourself and show us your effort.
zlude has quit [Read error: No route to host]
<mpfundstein>
zlude: its also not valid C code. the printf %s will not compile
<mpfundstein>
zlude: starting point: aString.each_byte { |c| # do something with c }
rapper has joined #ruby
lenodroid has quit [Read error: Connection reset by peer]
rapper has quit [Client Quit]
<mpfundstein>
suglepuss: i would move all the commands between the big if statements into a more compact function. for example p "You cant go back"; return playerMove is duplicated a lot.
alexspeller has joined #ruby
browndawg has quit [Ping timeout: 255 seconds]
pencilcheck has joined #ruby
Bedry has joined #ruby
Bedry has left #ruby [#ruby]
rapper has joined #ruby
yacks has quit [Quit: Leaving]
yacks has joined #ruby
pen has quit [Ping timeout: 260 seconds]
<rapper>
hello ..how are u doing people\
sayan has quit [Ping timeout: 248 seconds]
<mpfundstein>
good, and you?
<rapper>
well.
sayan has joined #ruby
kjetilho has left #ruby [#ruby]
gmci has joined #ruby
gmci is now known as Guest94028
<mpfundstein>
also waiting for the end?
yshh has quit [Read error: No route to host]
<rapper>
:))))))) there is no end
yshh has joined #ruby
pencilcheck has quit [Remote host closed the connection]
rakuN has quit [Remote host closed the connection]
banisterfiend has joined #ruby
caveat- has quit [Ping timeout: 265 seconds]
eldariof has quit [Ping timeout: 255 seconds]
rapper has left #ruby [#ruby]
Goles has joined #ruby
jessta has joined #ruby
browndawg has joined #ruby
binarypl1 has joined #ruby
sqbell has joined #ruby
jblack_ has quit [Ping timeout: 245 seconds]
emocakes has joined #ruby
Jasko has quit [Ping timeout: 250 seconds]
<emocakes>
morning everyone
<emocakes>
turns out the world hasnt ended
sayan has quit [Read error: Connection reset by peer]
<emocakes>
in ruby, is it possible to create a variable based on the value of a string?
<emocakes>
say i have a string "satan"
<emocakes>
could I make a variable called @satan?
binaryplease has quit [Ping timeout: 265 seconds]
<banisterfiend>
emocakes: you can
<emocakes>
how would I go about doing this?
<banisterfiend>
emocakes: instance_variable_set("@{var}", "value you want")
<emocakes>
ahh :)
<banisterfiend>
no
<banisterfiend>
emocakes: instance_variable_set("@#{var}", "value you want")
<emocakes>
from (irb):342:in `instance_variable_set'
<emocakes>
so its happening there
<emocakes>
but I dont get it :(
WanderingGlitch has quit [Ping timeout: 264 seconds]
WanderingGlitch has joined #ruby
<hoelzro>
emocakes: could you paste all of the code?
cakehero has joined #ruby
Divinite-needbed has left #ruby [#ruby]
mjolk has joined #ruby
Guest94028 has quit [Ping timeout: 252 seconds]
mjolk is now known as Guest74591
sayan_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
gmci has joined #ruby
gmci has quit [Client Quit]
sayan_ is now known as sayan
sayan has quit [Changing host]
sayan has joined #ruby
clooth has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
nateberkopec has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<emocakes>
i feel so stupid with ruby at the moment
<emocakes>
like I have some big training wheels
<apeiros_>
training wheels are awesome
<apeiros_>
means you can go as fast as you want without getting hurt :=
<apeiros_>
:-)
cakehero has quit [Quit: Computer has gone to sleep.]
cascalheira has joined #ruby
ownclo has joined #ruby
ownclo has quit [Client Quit]
gordon1775 has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
pcarrier has joined #ruby
Takehiro has joined #ruby
qwerxy has joined #ruby
timonv has quit [Remote host closed the connection]
Takehiro_ has joined #ruby
Guest48481 has quit [Changing host]
Guest48481 has joined #ruby
stevechiagozie has joined #ruby
Guest48481 is now known as z
beiter has joined #ruby
postmodern has quit [Quit: Leaving]
k610 has quit [Ping timeout: 264 seconds]
cantonic has quit [Quit: cantonic]
includex has quit [Quit: Leaving...]
geekbri has quit [Remote host closed the connection]
geekbri has joined #ruby
includex has joined #ruby
stopbit has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
fgro has joined #ruby
<emocakes>
i must say it really helps to use a good IDE at the start
<emocakes>
its tells you wher eyou are wrong
cantonic has joined #ruby
theRoUS has joined #ruby
crackfu has quit [Remote host closed the connection]
timonv has joined #ruby
adamnbowen has joined #ruby
<jrajav>
An IDE with Ruby?
<jrajav>
o_O
<oz>
like vim?
<jrajav>
TIL people actually use and recommend IDEs with Ruby
Armon has joined #ruby
<Armon>
Hello, i'm trying to send a POST request from within rails controller. The server will happily accept a json string from PHP script, but refuses to see Ruby data outright. (requests go through, just no data)
gordon1775 has joined #ruby
<Armon>
I have tried RestClent, Net::HTTP methods
pcarrier has quit []
<Armon>
weirder still, If i relay the same json string via a php script (no processing, parsing etc). then the server can see it
C0deMaver1ck has joined #ruby
<Armon>
header/network analysis of requests shows them to be visualy identical
includex has quit [Quit: Leaving...]
elsifaka has quit [Quit: Veloma e!]
maesbn has joined #ruby
<shevy>
you may find more rails users on #rubyonrails - I for example don't use rails so could not help
<emocakes>
ruby withouts rails? :o
<emocakes>
jrajav RubyMine
<emocakes>
sublime text is nice as well
<shevy>
when I started with ruby, rails did not exist yet :(
<emocakes>
once you know what you are doing
<shevy>
jrajav there is a bot here, eval-in
<emocakes>
but for now, when I am learning, rubymine shall guide me with corect syntax
<jrajav>
:O
<banisterfiend>
shevy: if you've been using ruby so long how come u're still a noob
<shevy>
I had the weirdest results with it when I used it in my shell. my shell pulled in lots of other projects
robustus has joined #ruby
<shevy>
somehow I ended up running an at_exit in another script every time I ended the shell :\
clooth has joined #ruby
dr_bob has joined #ruby
<shevy>
at least if anyone knows of a large project using at_exit, I'd like to know that project
<dave__>
it is acting a bit weird.
ebouchut has quit [Quit: This computer has gone to sleep]
<dave__>
isn't recognising sessions.
miskander has joined #ruby
SCommette has joined #ruby
apeiros_ has quit [Remote host closed the connection]
roger_rabbit has quit [Ping timeout: 265 seconds]
apeiros_ has joined #ruby
dave__ has quit [Remote host closed the connection]
binarypl1 has quit [Quit: WeeChat 0.3.9.2]
dr_bob has left #ruby [#ruby]
lewellyn has joined #ruby
<lewellyn>
is this a proper place to ask questions about rvm?
cakehero has joined #ruby
ninp0 has quit [Ping timeout: 245 seconds]
<lewellyn>
(i'm not sure if it's an rvm question, tbh, yet.)
<shevy>
lewellyn you can always try, not everyone uses rvm though
<lewellyn>
yeah. it was to be the path of least resistance though, in this case. ;)
<lewellyn>
basically, how can i tell it which compiler to use? it's choosing one which doesn't exist on the system. (sigh.)
<hoelzro>
lewellyn: what OS are you on?
<lewellyn>
os x 10.4
<hoelzro>
thought so
<lewellyn>
i figured someone would guess from the description ;)
lenovodroid has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
emocakes has quit [Quit: emocakes]
<Xeago>
best bet is ruby_build, and getting a compiler from source
Squarepy has joined #ruby
woolite64 has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<lewellyn>
Xeago: new compilers are problematic. i'm installing ruby as a convenience. if it's non-trivial to build (rvm or otherwise), i'm going to just ignore it.
spinagon has joined #ruby
jkarayusuf has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<Xeago>
what do you have?
larissa has quit [Quit: Leaving]
<Xeago>
and why are new compilers problematic?
<shevy>
I use linux
<shevy>
that helps avoid many problems
<lewellyn>
apple ships gcc 3.3 and 4.0. and building a new compiler from source is problematic for more ways than can be enumerated (partially since this machine builds universal binaries for packaging)
jlast has joined #ruby
Xaratas has joined #ruby
<shevy>
I don't follow the FHS however, it's a piece of grap. programs should always reside in versioned standalone directories
<shevy>
*crap
<lewellyn>
this is, however, why i am tempted to blame rvm: /Users/lewellyn/.rvm/scripts/functions/build: line 42: gcc-apple-4.2: command not found
<shevy>
you can use both 3.3 and 4.0 at the same time?
<lewellyn>
shevy: /usr/bin/gcc_select :)
<shevy>
and what exactly does gcc_select do?
<lewellyn>
it updates the gcc symlinks
<shevy>
hehe
<lewellyn>
(afaik)
<Xeago>
lewellyn: correct
<shevy>
knew that it would fiddle with symlinks ;)
<shevy>
that's what debian does too, with /etc/alternatives
<shevy>
or /usr/bin/ruby -> /usr/bin/ruby1.9
<lewellyn>
except alternatives is a special hell for the uninitiated :)
<lewellyn>
(and it's not just debians using alternatives these days)
<shevy>
it sucks for initiated ones too
<shevy>
with linux one must avoid distributions, then linux is ok
<lewellyn>
not once you start packaging things properly ;)
<Xaratas>
Hello, i have changed a rhtml file of an existing ruby on rails app, but it does not appear on the website? what must i do?
<shevy>
Xaratas most rails experts are on #rubyonrails
saml has joined #ruby
<saml>
hey, what does "After gem installation" mean?
<shevy>
here on #ruby are only the rails noobs, but we are better with standard ruby than the rails guys
eka has quit [Quit: chant Hare Krishna and be Happy]
axl_ has joined #ruby
eka has joined #ruby
<mybrainis404>
hey, is there an easy way to take a string that is "999-999-9999" or "(333)999-9999" or "999x999x9999" and return "9999999999" --ie remove all non-numerics but keep it as a string not an integer?
<saml>
i tried gem install akamai_api # ERROR: While generating documentation for builder-3.1.4 ... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->"
pavilionXP has quit [Read error: Connection reset by peer]
<_bart>
Addressable::URI.parse("http://something.blogspot.com").host returns something.blogspot.com, but what if I wanted blogspot.com?
DaZ has quit [Read error: Operation timed out]
banisterfiend has quit [Remote host closed the connection]
<shevy>
saml no idea, you could file a report at akamai github issue tracker and ask why it does not work
goraxe has joined #ruby
<shevy>
perhaps they tell you what to do in order to install their stuff
<hasse>
What time format is this? '2012-10-23 07:46:07.373' Whats with the three digits at the end? (373)
<Xeago>
ms?
cj3kim has quit [Quit: This computer has gone to sleep]
<Xeago>
looks like the 8xxx standard thingy
adeponte has joined #ruby
<apeiros_>
8601
<apeiros_>
and no, it's not
<Xeago>
:O
<apeiros_>
8601 mandates a T between date and time
<Xeago>
why not?
elliomax has joined #ruby
<Xeago>
hmm
<apeiros_>
at least iirc
baroquebobcat has joined #ruby
<apeiros_>
yupp, it's not optional.
dave has joined #ruby
<Xeago>
it is optional if no time is specified right?
dave is now known as Guest94678
<apeiros_>
it is not needed without a time or without a date component, yes
bhavesh_a_p has joined #ruby
acrocity has quit [Ping timeout: 248 seconds]
<atadesk>
hasse, where did you get that string from?
Mon_Ouie has joined #ruby
mockra has joined #ruby
elliomax has left #ruby [#ruby]
acrocity has joined #ruby
thatguycraig has joined #ruby
jkarayusuf has quit [Remote host closed the connection]
_alejandro has quit [Remote host closed the connection]
dougireton has joined #ruby
DaZ has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
Armon has quit [Ping timeout: 245 seconds]
tk__ has quit [Quit: ばいばい]
bhavesh_a_p has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
ebouchut has joined #ruby
qwerxy has quit [Quit: Computer has gone to sleep.]
jgrevich has joined #ruby
<hasse>
atadesk: From a XML feed
ebouchut has quit [Client Quit]
jkarayusuf has joined #ruby
regedarek has quit [Ping timeout: 255 seconds]
regedarek has joined #ruby
ebouchut has joined #ruby
<hasse>
But I guess it's ms as Xeago said
<hasse>
Xeago: thanks
uris has joined #ruby
razibog1 has quit [Quit: Leaving.]
<apeiros_>
it definitively is. I thought that was obvious o0
<apeiros_>
(it's actually second fractions, but since it's 3, you can consider them as ms)
grzywacz has quit [Ping timeout: 248 seconds]
<hasse>
apeiros_: sweet, thanks
Guest94678 has left #ruby [#ruby]
diece has left #ruby [#ruby]
G________ is now known as asteve
tjbiddle has quit [Ping timeout: 248 seconds]
sayan has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
asteve has quit [Changing host]
asteve has joined #ruby
<apeiros_>
+3 digits
<Xeago>
damnit
<Xeago>
just fell off my ball-chair
<Xeago>
I feel dumb now
atno has joined #ruby
jkarayusuf has quit [Remote host closed the connection]
<apeiros_>
what? how? why?
carlyle has joined #ruby
<Xeago>
like a big skippy-skip ball
<Xeago>
that I use as a chair
<Xeago>
to train my back
axl_ has quit [Quit: axl_]
jerius has joined #ruby
qwerxy has joined #ruby
<apeiros_>
ah
<Xeago>
lost balance and fell off
* apeiros_
has one at work
* apeiros_
should use it more often again
<Xeago>
I use it 2 hours every day
<Xeago>
usually after lunch
* apeiros_
fell of more than once, due to intense bumping and jumping around :D
<Xeago>
but someone stole my chair today
<Xeago>
yea :D
<Xeago>
I skip to the fridge :3
<apeiros_>
oh, when I use it, I usually use it the whole day. I actually like it. but it's a bit low in height :-(
<apeiros_>
*fell off
rakl has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
<Xeago>
I feel it is a bit low as well, but mostly because my back wants to bend forward
codebiff has joined #ruby
kn330 has quit [Ping timeout: 252 seconds]
<Xeago>
if I have my back straight it is about fine
<apeiros_>
hm, no, for me it's because my head is ~10cm lower with the ball :)
Blue_Ice has joined #ruby
Blue_Ice has quit [Changing host]
Blue_Ice has joined #ruby
<Xeago>
here aswell :)
<apeiros_>
damit, did a blood sample today, can't use my middle finger to type - annoying as hell…
<Xeago>
can't lower my chair :\
s1n4 has joined #ruby
<Xeago>
I usually set legged
<Xeago>
asin my legs crossed
<Xeago>
and sit on that
<apeiros_>
at home I now have a table to stand at (can be lowered to use while sitting)
carlyle has quit [Remote host closed the connection]
<apeiros_>
love it, but still use it too little (sofa >> table)
punkrawkR has joined #ruby
<apeiros_>
errr, sofa = coach
codebiff has left #ruby [#ruby]
<apeiros_>
gah
s1n4 has quit [Client Quit]
speakingcode has joined #ruby
<apeiros_>
sofa = couch
adeponte has quit [Remote host closed the connection]
<Xeago>
wtf, there is nsfw results when searching for kleermakerszit at google
<apeiros_>
turn safe search on?
codebiff has joined #ruby
<Xeago>
the nsfw results depict the stance better than the other results
topriddy has joined #ruby
<apeiros_>
heh
<topriddy>
…good fast track tutorial/hands-on to ruby anybody?
<apeiros_>
well, a couple of titties never hurt anybody
arkiver has joined #ruby
* topriddy
tried it in the distant past…its xmas season and i want to flirt with it again.
wreckimnaked has quit [Ping timeout: 255 seconds]
<mybrainis404>
okay.. when formatting #s... which of these methods would work best -- phone.gsub(/\D/, '') - phone.scan(\w+).join("") - or phone.delete('^0-9)
ryannielson has joined #ruby
__BigO__ has joined #ruby
jrajav has quit [Read error: Connection reset by peer]
<apeiros_>
mybrainis404: define "best"
clocKwize has quit [Quit: clocKwize]
<apeiros_>
note, not all of these do the same, also the middle one has broken syntax.
<mybrainis404>
less overhead in a rails app, and hits all combinations
<topriddy>
HELLOOOOOO
jrajav has joined #ruby
ryannielson has left #ruby [#ruby]
<apeiros_>
mybrainis404: ri Benchmark, my bet is on String#delete
ryannielson has joined #ruby
<apeiros_>
mybrainis404: with regards to "hits all combinations": write unit tests
aajjbb has joined #ruby
<apeiros_>
topriddy: hi
pcarrier has quit []
<mybrainis404>
yeah... working on learning those -- guess this is a good place to start with unit testing
<apeiros_>
mybrainis404: wrt unit tests - once you have them, you can also use them to get help when your solution fails a test
<topriddy>
apeiros_: trying to get fast track and refresh on Ruby. Wanted a recommendation of a good ruby free tutorial. something fast track and for ex[erienced devs
<apeiros_>
topriddy: yes, I've read your question. but I have no answer so I didn't write. you need more patience.
jeffreybaird has quit [Quit: jeffreybaird]
tjbiddle_ has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle_ is now known as tjbiddle
nwertman has quit [Ping timeout: 260 seconds]
nemesit|osx has joined #ruby
<mybrainis404>
CodeSchool and Treehouse have some real good courses on Ruby/Rails and other programming topics, CodeAcademy is a good free alternative as well, but more javascript than ruby...
omg765 has joined #ruby
jgrevich_ has joined #ruby
hoelzro is now known as hoelzro|away
slash_nick has joined #ruby
arkiver has quit [Ping timeout: 255 seconds]
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich_ is now known as jgrevich
joeycarmello has joined #ruby
nemesit has quit [Ping timeout: 244 seconds]
arkiver has joined #ruby
aajjbb has quit [Ping timeout: 244 seconds]
jgrevich_ has joined #ruby
bean has joined #ruby
justincampbell has joined #ruby
xclite has quit [Remote host closed the connection]
seanyo has joined #ruby
Maniacal has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<Banistergalaxy>
Atadesk the same time feel that I have a great day and night and day out of the most important thing is that the company is a good time to time and money on the roads instead of the most important thing is to be a great deal with the help you.
shiin has joined #ruby
atadesk has quit [Quit: Leaving.]
kenneth has quit [Quit: kenneth]
alexspeller has quit [Remote host closed the connection]
jenrzzz has joined #ruby
zastern has joined #ruby
<zastern>
So I'm learning ruby from a book and right now it's talking about arrays, and one example is this - the_count = [1, 2, 3, 4, 5] - do arrays have to have spaces after the commas like that? It just "feels wrong" to me.
woolite64 has quit []
<shevy>
zastern there is another way, to build an array
<shevy>
though it would be for strings
<shevy>
the_count = %w( 1 2 3 4 5 )
<zastern>
so I can't do the same thing without spaces?
<zastern>
like the_count = [1,2,3,4,5] wouldnt wokr?
<shevy>
that would work too
<shevy>
[1 2 3 4 5] however would not work
<zastern>
right i realize the commas are necessary . . . i was specifically asking about the spaces. thanks.
<Banistergalaxy>
Zastern try things in the irb in future
<zastern>
Banistergalaxy: mm good point
<shevy>
hmm I am not sure if the parser could work without the ,
drnfx has quit [Remote host closed the connection]
<emocakes>
it entertains the ladies when you are looking directly at them and having a conversation while also typing at the same time
foohey has joined #ruby
sayan has joined #ruby
<aedorn>
lol
Squarepy has quit [Quit: Leaving]
<shevy>
hmmm
fred909_ has joined #ruby
robustus|Off has joined #ruby
robustus has quit [Read error: Connection reset by peer]
<shevy>
that works?
<shevy>
when I want to fix a bug, I get angry...
<shevy>
then I want to become a buddhist, give up on everything and just be happy
<aedorn>
you get angry when you *want* to fix a bug?
<shevy>
soon that becomes boring, so I am back to fixing bugs again
DPass- has quit []
joeycarmello has joined #ruby
<shevy>
aedorn, yeah! it's a waste of time! it's no fun!
<shevy>
bugs just steal time
fred909 has quit [Ping timeout: 250 seconds]
robustus|Off has quit [Client Quit]
<shevy>
it would be cool if you could have a programming language, that would work like ants, and it could fix itself
<shevy>
and you'd only have to do a little bit here, and a little bit there, only what is fun
robustus has joined #ruby
<aedorn>
Wouldn't that be what machine learning is for?
<shevy>
I dont know... all the AI stuff I saw so far seems to be mostly millions of lines of code in like C++
<emocakes>
c++ ftw
<shevy>
it just doesn't strike me as real intelligence
<shevy>
and the neuronal networks just seem to be optimized route-planning, no real intelligence either
<emocakes>
outsource bug fixing to india
<shevy>
:\
<emocakes>
for the prce of a coffee a month
<shevy>
as if those in india would have fun fixing bugs...
<emocakes>
you get someone unskilled
<shevy>
well, no surprise for boring slave labour
sayan has quit [Read error: Connection reset by peer]
<aedorn>
Hire an intern instead
joeycarmello has quit [Ping timeout: 252 seconds]
fred909_ has quit [Ping timeout: 248 seconds]
pavilionXP has joined #ruby
<aedorn>
Then you get free workers, while contributing to their education from valuable experience at bug fixing, and you don't have to fix it yourself
includex has quit [Quit: Leaving...]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<aedorn>
And even if you have to fire them, you're still giving them a life lesson: You can't succeed without failure!
timonv has quit [Remote host closed the connection]
elliomax has quit [Ping timeout: 252 seconds]
<shevy>
hmm ruby question, ansi colours. I love colours in terminal... In ruby, I do something like this here: system('./configure'), and I get some output. But this output does not have any colours hmm...
jkarayusuf has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
jblack has joined #ruby
maesbn has quit [Remote host closed the connection]
kn330 has quit [Ping timeout: 264 seconds]
ryannielson has quit [Quit: ryannielson]
gordon1775 has quit [Ping timeout: 265 seconds]
segv-_ has joined #ruby
eldariof has joined #ruby
c0rn has joined #ruby
segv- has quit [Read error: Connection reset by peer]
segv-_ is now known as segv-
<jrajav>
italian clothing is conservative? >_>
<jrajav>
have you SEEN some of their ridiculous suits?
maesbn has quit [Remote host closed the connection]
<deepboy>
what's the optimal way to extend ruby? is it by C or C++ ?
philcrissman has quit [Remote host closed the connection]
<Banistergalaxy>
Deepboy C
beneggett has quit [Client Quit]
sayan_ has left #ruby [#ruby]
sayan has quit [Read error: Connection reset by peer]
<havenn>
deepboy: Whatcha working on?
axl_ has quit [Quit: axl_]
geekbri_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
axl_ has joined #ruby
berserkr has quit [Quit: Leaving.]
AndChat| has joined #ruby
sepp2k has joined #ruby
geekbri_ has quit [Remote host closed the connection]
geekbri__ has joined #ruby
hoelzro|away is now known as hoelzro
AndChat- has joined #ruby
geekbri has quit [Read error: Connection reset by peer]
icole has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 252 seconds]
gyre007 has quit [Remote host closed the connection]
lectrick____ has quit [Changing host]
lectrick____ has joined #ruby
lectrick____ is now known as lectrick
<deepboy>
not much yet,.. but i'm into opscode
AndChat| has quit [Ping timeout: 252 seconds]
Tabrenus has quit [Quit: Tabrenus]
icole has joined #ruby
mutenewt has quit [Quit: WeeChat 0.3.5]
<sifi|workd>
is railscasts down for anyone else?
atal421 has joined #ruby
maesbn has joined #ruby
DaZ has joined #ruby
arietis has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
beneggett has joined #ruby
phipes has quit [Quit: phipes]
DrShoggoth has quit [Ping timeout: 248 seconds]
<havenn>
sifi|workd: Site works but video DL gives me: The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
axl_ has quit [Quit: axl_]
<sifi|workd>
havenn: yeah, same issue. Finally got the chef video to load.
stkowski has joined #ruby
DrShoggoth has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
phipes has joined #ruby
aajjbb has quit [Ping timeout: 252 seconds]
Diogo has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
<Diogo>
hi..
<Diogo>
i need to run a script in ruby but appear this error: `size' for nil:NilClass (NoMethodError)
DaZ has quit [Ping timeout: 250 seconds]
<Diogo>
i'm new in ruby but i need to run a script..to generate some statistics...
clooth has joined #ruby
<havenn>
Diogo: Can you paste a Gist of your code? (You are calling #size on nil, and nil has no method #size.)
mark_locklear has quit [Remote host closed the connection]
lolcathost has quit [Quit: brb peepls!!1]
elliomax has joined #ruby
lolcathost has joined #ruby
_nitti has quit [Remote host closed the connection]
h4mz1d has joined #ruby
bean has joined #ruby
sheerun has quit [Ping timeout: 240 seconds]
elliomax has quit [Ping timeout: 255 seconds]
_bart has joined #ruby
tpe11etier_ has joined #ruby
<_bart>
Hi
shevy has joined #ruby
Vainoharhainen has joined #ruby
xclite has quit [Remote host closed the connection]
<_bart>
Let's say I made a scraper, that scrapes 10 websites, 5 of them contain the word 'apple', and 5 of them contain 'banana'. A resque/sidekiq worker is responsible of scraping the contents, and stores the value. Now how do I group all the apples and bananas into a model called Case? So that Case 1 contains all the apples and Case 2 contains all the bananas?
Banistergalaxy has joined #ruby
sheerun has joined #ruby
<_bart>
I could that using a cronjob, passing all the data and storing the findings into a case_website relationship table.
<_bart>
I could do*
<_bart>
But that feels weird.
<swarley>
that sounds like a rails problem
dp has joined #ruby
JoeHazzers has quit [Quit: JoeHazzers]
<dp>
is this the right channge for questions about a specific gem, or only ruby?
<havenn>
dp: Either, long as it isn't Rails! :P
<swarley>
^
<dp>
heh. trying to find out if maruku has the ability to specify CSS classes on an image
<havenn>
_bart: God is really nice alternative to cron jobs, I think.
woolite64 has quit []
<havenn>
Heh, had a project the other day called angel and ended up with an angel.god file. >.>
<swarley>
Whatever you're doing, it seems like there are easier ways to do it than cron jobs
<_bart>
havenn: yes I'm just checking into god, looks great
kn330 has quit [Ping timeout: 265 seconds]
<havenn>
_bart: Works really well with Sidekiq/Celluloid.
crackfu has quit [Remote host closed the connection]
Guest has joined #ruby
_nitti has joined #ruby
emmanuelux has joined #ruby
<jrajav>
"God" for managing daemons?
Banistergalaxy has quit [Ping timeout: 255 seconds]
dougireton has quit [Quit: Leaving.]
<jrajav>
Cute :P
<havenn>
dp: Dunno if maruku itself can do that, but maruku uses nokogiri internally and easy with nokogiri.
Beoran_ has quit [Read error: Connection reset by peer]
Guest has left #ruby [#ruby]
Beoran_ has joined #ruby
<_bart>
havenn: I'm a little scared to use Sidekiq, because of I'm unsure wether my code is thread safe
kn330 has joined #ruby
otters has joined #ruby
mguy_ has quit [Ping timeout: 276 seconds]
aajjbb has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
<swarley>
What's the fastest way to remove a section of a string out of a string?
mguy_ has joined #ruby
<swarley>
something like str.gsub!(/^.{13}/, ''). But not that lame
<hoelzro>
swarley: I'm guessing you want something flashy like str[/^.{13}/] = ''
<swarley>
well, if that will work a better answer is probably str[0..13] = ''
aajjbb has quit [Ping timeout: 244 seconds]
<apeiros_>
str[0,13] != str[0..13]
<apeiros_>
first one is 13 chars
<apeiros_>
second one is 14 chars
<hoelzro>
you could probably trim or something
<_bart>
Hmm I have another question. Let's say I have a model named Post, and that has a column called 'category'. Now if the category is ID 0, there is also another 'type' required (maybe call it a subcategory), but how do I store that properly? My first thought was that I should subclass Post into all the 6 types of Posts there are.. but that's not the way I think.
<_bart>
ehh, 'into the 6 categories of Posts there are'*
<havenn>
str[13..-1] or str.slice!(0..12) maybe?
track7 has quit [Read error: Connection reset by peer]
shemerey has joined #ruby
track7 has joined #ruby
iamjarvo has joined #ruby
track7 has quit [Read error: Connection reset by peer]
<maetthew>
Hmm I have maybe a small project in mind. But I'm not really sure how to do it. I want to copy my bank statement in to CSV
timonv has quit [Ping timeout: 264 seconds]
<maetthew>
anyone got ideas on how I should pursue, gems etc?
<maetthew>
i see there are CSV built into Ruby
<maetthew>
but there are also gems
<havenn>
maetthew: What was the FasterCSV gem is now the stdlib CSV in Ruby 1.9 if I recall correctly. I'd suggest a modern Ruby and just use CSV.
<maetthew>
ah yeah 1.9.3-p327
<maetthew>
:p
<maetthew>
that will help, thanks havenn
jfl0wers has joined #ruby
elliomax has joined #ruby
Morkel has joined #ruby
Banistergalaxy has joined #ruby
<tjbiddle>
anyone mind taking a look at a small snippet? haven't touched rspec in a while (and when i did the past not even sure if i was doing it correctly) and I'm completely blanking on what's wrong.
<havenn>
tjbiddle: Gist eet!
<tjbiddle>
woot! sec
eka has quit [Remote host closed the connection]
eka has joined #ruby
foohey has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]