<shevy>
the only "loop" I see you try to use is via :rpp => 10,
<Spooner>
falieson : You want #each, not #map, since you aren't mapping an array, but iterating through it.
<shevy>
but who knows that the twitter api does with that
<shevy>
*what
<Spooner>
shevy : .results.map is the looping.
ph^ has quit [Ping timeout: 240 seconds]
<shevy>
what does .results contain
mahmoudimus has joined #ruby
<shevy>
do you really trust twitter Spooner :(
<Spooner>
If there are 10 results, then the block is run 10 times (presuming :rpp is limiting to 10 results).
fyolnish has quit [Remote host closed the connection]
<falieson>
Spooner, your presumption is correct
<falieson>
shevy, I know what .results contains
<falieson>
shevy, I can run the Twitter.search in irb and get the 10 results
NiteRain has quit [Ping timeout: 246 seconds]
VegetableSpoon has joined #ruby
<falieson>
(pretty simply just do require 'twitter' in irb
<Spooner>
falieson : Problem is that if you get an error creating the database link, then db is never set (exception raised in the constructor). Might want "db.close if db"
lggr has joined #ruby
<Spooner>
shevy I love how much you love pp, but really, p is fine in 95% of cases and doesn't require a require ;D
<falieson>
Spooner, it inserts the first row into the db, then the second iteration the mysql-connect errors
<shevy>
!!!
<shevy>
NEVAR
<shevy>
pp to the rescue
<shevy>
DOWN WITH YOU P-ERS
<falieson>
lollllz
<shevy>
falieson, compare the beautiful output of a huge array, with p vs pp
snorkdude has quit [Remote host closed the connection]
<falieson>
haha ok
* falieson
goes to do that now
<Spooner>
Yes, but you advertise pp when people want to output "hello world"
<shevy>
YES
<shevy>
the earlier they start to use it, the better!
<shevy>
well ok
<shevy>
for hello world I will recommend p
elico has joined #ruby
joelsbeard has quit [Ping timeout: 256 seconds]
`brendan has joined #ruby
<falieson>
lol
<Spooner>
As to why you can't get all the results to save in the db, I don't know. I would never use SQL in a world where people have written datamapper or similar (ha! Now who is recommending a bulldozer for a hammer's job? :D).
jasonkuhrt has quit [Quit: Leaving...]
TomJ has quit [Quit: TomJ]
<shevy>
I WOULD
<falieson>
lol
anildigital_work has joined #ruby
<falieson>
I come from LAMP background
<falieson>
I'm comfortable with M
notbrent has joined #ruby
<shevy>
lava lamp
<falieson>
ooo... I want to buy one of those
slicslak has joined #ruby
<shevy>
falieson, what you should try with ruby is to always be terse, when that is possible
<falieson>
thanks shevy for the reminder
chimkan has quit [Quit: chimkan]
kapowaz has joined #ruby
dpk has joined #ruby
<shevy>
there are at least two ways to create an array, array = [] vs. array = Array.new. Array.new allows a bit more, I think (you can pass a block), but [] is so much shorter to write, and a tiny bit faster too
havenn has quit [Remote host closed the connection]
<shevy>
so most people use []
boodle has joined #ruby
seanstickle has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
schwap has quit [Quit: leaving]
skrewler has joined #ruby
skrewler has quit [Client Quit]
<Spooner>
falieson : I know SQL and C, but I still use Ruby and a db-wrapper. I know some assembly too, but doesn't mean it is the best way (though in this 20 line script, I'll forgive you your bohemian ways!).
<falieson>
deving on my mac, chatting on my desktop
adkron_ has joined #ruby
girasquid has quit [Client Quit]
<falieson>
copy/paste doesn't work well between vnc =(
adkron has quit [Ping timeout: 244 seconds]
<falieson>
it does the second iteration of puts "#{status.... }"
havenn has quit [Remote host closed the connection]
<falieson>
and then "Could not connect the dtabase"
<Spooner>
peppering with p (or pp) and maybe p [status.id, status.from_user, status.text, status.created_at] to see what you are actually trying to save..
swarley| has joined #ruby
dpk has quit [Ping timeout: 245 seconds]
vandemar has quit [Ping timeout: 246 seconds]
PapaSierra has quit [Quit: PapaSierra]
lggr has joined #ruby
<Spooner>
Perhaps insert_new_tweet.close is closing the db rather than what you think it does?
mrdodo has quit [Remote host closed the connection]
chrishunt has quit [Ping timeout: 248 seconds]
<bperry>
if you have to debate as to whether you want to use an orm then you have two problems :)
girasquid has joined #ruby
<wmoxam>
lol
<epochwolf>
null-_: it's not a holy war, it's a couple of really vocal people against it and no one else gives a shit what those people think.
rabidpraxis has quit [Ping timeout: 252 seconds]
snorkdude has quit [Remote host closed the connection]
<epochwolf>
null-_: it's like the people that claim bsd is way better than everything else and refuse to use anything so "unclean" as linux regardless of what the best tool is.
<epochwolf>
No one cares what those people think.
mfridh_ has quit [Read error: Operation timed out]
<Spooner>
Ruby is way better than anything else and I refuse to consider anything else. Oops.
peneconleche has joined #ruby
lggr has joined #ruby
<null-_>
epochwolf: true I guess, some people just like to hype things
<falieson>
Spooner, lol
<epochwolf>
ding ding ding, can you stop being one of those people
AndChat| has joined #ruby
AndChat- has joined #ruby
<null-_>
Spooner: ^^ :D
<epochwolf>
Spooner: just remember ObjC is there waiting when you want to write something for the world's best phone.
<wmoxam>
yeah, if you're going to talk about a holy war then stick to real wars like emacs vs vim
<Spooner>
epochwolf : Yeah, ObjC. No comment required.
<epochwolf>
wmoxam: bye bye performance
<elico>
Need some help with active records
Drewch has quit [Excess Flood]
<null-_>
well, using an ORM without knowing SQL is looking fro trouble no?
<wmoxam>
epochwolf: the iphone5 is a bajillion times faster than 4S, speed doesn't matter anymore
glyytchy has joined #ruby
<wmoxam>
null-_: that hardly means there's a holy war
snorkdude has joined #ruby
Drewch has joined #ruby
<wmoxam>
if you're going to use ActiveRecord then you better fucking know your SQL
<epochwolf>
null-_: using a webframework without knowing html or javascript is also dumb
<null-_>
epochwolf: I have heard of people using Rails without knowing ruby :)
sheerun has quit [Quit: sheerun]
ph^ has joined #ruby
<epochwolf>
null-_: I know. I help them every other week. They annoy the hell out of me
<wmoxam>
null-_: yes, and they suck at it
<Spooner>
I've heard of people using Ruby who don't know assembler or _even_ C. Not sure the argument fits...
<epochwolf>
learn to fucking program
<epochwolf>
Spooner: leaky abstractions require you to know the mechanics
<epochwolf>
web frameworks are horribly leaky
Banistergalaxy has quit [Ping timeout: 256 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
<epochwolf>
orms aren't really designed for full abstraction, just convience
<wmoxam>
epochwolf: that's why you need a *pure* abstraction!
<wmoxam>
epochwolf: lets go write some Haskell
twoism_ has quit [Remote host closed the connection]
<epochwolf>
wmoxam: !fuckoff
tgraham is now known as tgraham|away
<wmoxam>
lol
<epochwolf>
… no bot in here
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
winux has quit [Quit: Leaving.]
<Spooner>
Leaky? Yeah, I guess the problem is that they generate something that you need to deal with directly (html/etc) unlike Ruby's bytecode or C which you can happily leave outside the back door.
mfridh has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<Spooner>
elico : ActiveRecord knowledge is more likely found in #rails or #RoR or #rubyonrails
<epochwolf>
Spooner: I have yet to see any abstraction that can do visual interfaces without messing with the findly bits.
<epochwolf>
And with database, it pays to learn sql and be able to optimize a bit
<RubyPanther>
ORMs are about having an OO interface, no more, no less
Hanmac has quit [Ping timeout: 246 seconds]
<null-_>
wow three channels for the same thing, is this a ruby community thing (#ruby #rubylang) ? :)
joeycarm_ has joined #ruby
<Spooner>
#rubylang is for people who work on Ruby, not people who use it (I _think_)
<RubyPanther>
There has got to be at least 5 or 6 just on freenode
davidcelis has quit [Quit: K-Lined.]
chimkan_ has joined #ruby
<A124>
#ruby-lang is devoted to the language itself
<null-_>
are the third party quality libraries to build something as rails? like sinatra and sequel comes to mind
joelsbeard has joined #ruby
<epochwolf>
hahahaha
yasushi_ has joined #ruby
<null-_>
s/the/there/
<A124>
The reccoment general ruby related but not ruby code thing to be discused here
<A124>
*d
adeponte has quit [Remote host closed the connection]
<wmoxam>
null-_: Rack
<Spooner>
epochwolf : Not sure what you mean. Plenty of GUI libs would disagree, though certainly any web framework is hardly comparible to those.
<null-_>
wmoxam: I guess sinatra implies rack
CaptainJet has joined #ruby
<epochwolf>
Spooner: aren't those just loose wrappers around the C libs?
<wmoxam>
null-_: every modern ruby web framework uses Rack
<epochwolf>
as in, not an abstraction?
<RubyPanther>
null-_: Most of what you need is in the stdlib
<epochwolf>
LIES
<null-_>
wmoxam: I mean build all the components of rails from third party libs
lggr has joined #ruby
<RubyPanther>
C libs are super-easy to wrap in Ruby.
winux has joined #ruby
winux has quit [Changing host]
winux has joined #ruby
girasquid has quit [Quit: girasquid]
<RubyPanther>
Not like all that XS nonsense in Perl
yasushi has quit [Ping timeout: 244 seconds]
<null-_>
RubyPanther: yeah, the stdlib does so much for you already :)
<Spooner>
epochwolf : Not necessarily, but that isn't the point. You can use them without needing to understand the underlying code, certainly (and they, themselves are just sitting on top of openGL or whatever and you don't need to know those mechanisms to create a window in Ruby).
<RubyPanther>
Most of the GUI libs are generated from the C libs using swig
wpaulson has joined #ruby
<wmoxam>
ugh, swig
adkron_ has quit [Ping timeout: 252 seconds]
girasquid has joined #ruby
<RubyPanther>
Yeah, stdlib gives you all the http stuff, cookies, sessions
joelsbeard has quit [Ping timeout: 256 seconds]
<Spooner>
Perhaps, but that isn't relevant to what I thought I was discussing. There is a huge difference between a desktop GUI library and a web "GUI" library, since the former will work and the latter probably won't (on one or more versions of Internet Explorer for entirely stupid reasons :D)
ph^ has quit [Ping timeout: 240 seconds]
adkron has joined #ruby
<RubyPanther>
It is easy to generate portable HTML
<Spooner>
That always looks and acts the same in the way that a desktop GUI can?
<rking>
Hrm. I need to figure out when you need %r// and when plain // works.
<RubyPanther>
Why would it? I think the test would instead be that it has the same inputs and outputs.
lggr has quit [Ping timeout: 246 seconds]
<rking>
I could've sworn that you had to do %r// more back in the day, but maybe I'm on the crack drug.
butblack has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
<RubyPanther>
%r used to be more popular is all
slicslak has quit [Ping timeout: 265 seconds]
glyytchy has quit [Quit: Leaving...]
girasquid has quit [Client Quit]
c0rn__ has quit [Quit: Computer has gone to sleep.]
<Spooner>
rking : No point doing %r// really, since the main advantage of %r is not needing to escape / (like %r</frog/cheese> rather than /\/frog\/cheese/ )
<rking>
Spooner: Hrm. In Perl, free-floating //'s mean "match against $_". Implicit meaning for //'s is completely gone in Ruby?
awarner has joined #ruby
<Spooner>
Yeah, // doesn't do anything.
<rking>
Spooner: K, thanks.
<RubyPanther>
We don't do implicit receivers unless it is self :)
<Spooner>
Well, it generates a regexp, of course.
Synthead has quit [Remote host closed the connection]
davidpk has quit [Quit: Ceci n'est pas une broken pipe.]
Hanmac has joined #ruby
<RubyPanther>
/\/\/(.*)$/ # Yay! Toothpicks!
<Spooner>
No, it is evil gnashy teeth!
<Spooner>
Or an advert for VVVVV
<RubyPanther>
It is either a chainsaw, or else a dragon hoarding some money
maletor has quit [Quit: Computer has gone to sleep.]
<Guest_>
Was really hoping someone could point me to a guide that better explains how to understand rack. I've successfully got it working, but I just don't understand what *it* is. It's like an embedded server, in my opinion. :/
<Spooner>
Guest_ : What do you actually want to use it for if you don't know what it is? Mostly it would be used by frameworks like Rails or Sinatra.
girasquid has joined #ruby
ryanlecompte has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
pipopopo has quit [Ping timeout: 264 seconds]
<Guest_>
Well, I'm already using it. I've cloned my friends small sinatra app, which uses rack (I can see the *.ru file), in conjunction with mongodb. I'm just trying to understand what it does. :p
JustinCampbell has quit [Remote host closed the connection]
<Guest_>
It's middleware between a server and app? :/
fir_ed has quit [Read error: Connection reset by peer]
eignerchris has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ckrailo has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
dmiller has quit [Read error: Connection reset by peer]
dmiller_ has joined #ruby
fir_ed has joined #ruby
emanu has joined #ruby
lggr has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
chimkan_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby
havenn has quit [Remote host closed the connection]
qubit has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
glyytchy has quit [Quit: Leaving...]
emanu has quit [Client Quit]
adkron has joined #ruby
ph^ has joined #ruby
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
havenn has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
twoism has joined #ruby
jameshyde has joined #ruby
<qubit>
I'm using Net::HTTP to connect over https with verify_mode set to VERIFY_PEER with ca_file provided as well, however it seems to be completely ignoring the ca_file. I did an strace and the file never gets opened. Any ideas why?
malcolmva has joined #ruby
justinmcp has quit [Remote host closed the connection]
peneconleche|awa has quit [Quit: Leaving...]
lggr has joined #ruby
butblack has quit [Quit: butblack]
twoism has quit [Ping timeout: 264 seconds]
<qubit>
nevermind, looks like the code I'm working with (not mine) is doing something stupid. Time to go figure out what...
sailias has joined #ruby
ph^ has quit [Ping timeout: 265 seconds]
manuelitox_ has quit [Ping timeout: 264 seconds]
dpk has quit [Quit: Ceci n'est pas une broken pipe.]
banannagram has joined #ruby
decentrality has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
dmiller_ has quit [Remote host closed the connection]
sailias has quit [Client Quit]
nga4 has quit [Ping timeout: 256 seconds]
bananagram has quit [Ping timeout: 248 seconds]
dpk has joined #ruby
NiteRain has joined #ruby
lggr has joined #ruby
dmiller has joined #ruby
VegetableSpoon has quit [Quit: Leaving]
dustinleer has quit [Remote host closed the connection]
<Guest_>
Spooner: Actually, that explained it perfectly! XD - Thanks man!
<Spooner>
Guest_ : Now explain it to me! ;)
<Guest_>
Rack is to Servers, as ORM's are to Databases :)
<Spooner>
Right. More than I ever needed to know.
rabidpraxis has quit [Remote host closed the connection]
dakine has quit [Read error: Connection reset by peer]
TheShadowFog has quit [Quit: pls respond]
snorkdude has joined #ruby
dakine has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Bosox20051 has joined #ruby
kiyoura has quit [Quit: Leaving]
kiyoura` has joined #ruby
kiyoura` has quit [Client Quit]
kiyoura has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
CaptainJet has quit []
baroquebobcat has joined #ruby
moted has quit [Ping timeout: 252 seconds]
Juul has joined #ruby
lggr has joined #ruby
digitalcakestudi has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
fyolnish has joined #ruby
glyytchy has joined #ruby
Targen has joined #ruby
girasquid has joined #ruby
havenn has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
falieson has joined #ruby
gabrielr_ has left #ruby [#ruby]
ph^ has joined #ruby
<falieson>
who remembers mysql
v0n has joined #ruby
baroquebobcat has joined #ruby
ken_barber has joined #ruby
lggr has joined #ruby
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
zeromodulus has quit [Remote host closed the connection]
dpk has quit [Ping timeout: 252 seconds]
<falieson>
how do I output the mysql error that I get/
Spooner has quit [Ping timeout: 246 seconds]
dpk has joined #ruby
baroquebobcat has quit [Client Quit]
pingfloyd has joined #ruby
pingfloyd has left #ruby [#ruby]
philips_ has quit [Excess Flood]
philips_ has joined #ruby
DarkFoxDK has quit [Read error: Operation timed out]
karstensrage has quit [Read error: Connection reset by peer]
<A124>
Cache_Money: Get the data into an array, sort it by apropriate index.
maesbn has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
arturaz has quit [Remote host closed the connection]
ltsstar has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
elsifaka has joined #ruby
havenn has quit [Remote host closed the connection]
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
ManK has joined #ruby
fantazo has quit [Remote host closed the connection]
ph^ has joined #ruby
adkron_ has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
adkron has quit [Ping timeout: 264 seconds]
jamjam has joined #ruby
robustus has quit [Ping timeout: 265 seconds]
zigomir has joined #ruby
aganov has joined #ruby
robustus has joined #ruby
slicslak has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
SJr has quit [Ping timeout: 256 seconds]
xpen_ is now known as xpen
lggr has joined #ruby
ph^ has quit [Remote host closed the connection]
insulator has quit [Ping timeout: 276 seconds]
arturaz has joined #ruby
pauC has joined #ruby
bradhe has joined #ruby
whowantstolivefo has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
mikepack has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
girasquid has left #ruby [#ruby]
Bosox20051 has quit [Quit: Leaving]
SJr has joined #ruby
mxweas has joined #ruby
ltsstar has quit [Quit: ltsstar]
jarred has joined #ruby
mneorr has joined #ruby
amng has left #ruby [#ruby]
lggr has joined #ruby
bartj3 has joined #ruby
mikepack has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
Eplemosen has joined #ruby
adeponte has quit [Remote host closed the connection]
mattyoho has joined #ruby
mattyoho has quit [Client Quit]
d3c has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
mneorr has quit [Ping timeout: 244 seconds]
Bosox20051 has joined #ruby
ests has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
senny has joined #ruby
frogprince_mac has joined #ruby
jimeh has joined #ruby
lggr has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
arya_ has joined #ruby
jameshyde has quit [Quit: Leaving]
arya_ has left #ruby [#ruby]
d3c has quit [Quit: Quit]
baroquebobcat has quit [Client Quit]
lggr has quit [Ping timeout: 244 seconds]
_br_ has quit [Excess Flood]
lggr has joined #ruby
baroquebobcat has joined #ruby
Eplemosen has quit [Quit: NOPE]
vectorshelve has joined #ruby
_br_ has joined #ruby
jarred has quit [Quit: jarred]
jgwong has quit [Read error: Operation timed out]
baroquebobcat has quit [Remote host closed the connection]
jprovazn_away is now known as jprovazn
baroquebobcat has joined #ruby
jarred has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
ests has quit []
ph^ has joined #ruby
lggr has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
mikepack has quit [Remote host closed the connection]
adelcampo has joined #ruby
budha has joined #ruby
manizzle has joined #ruby
bartj3 has quit []
lggr has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
_bart has quit [Quit: _bart]
zommi has joined #ruby
Cache_Money has quit [Ping timeout: 256 seconds]
justsee has quit [Quit: Leaving...]
rabidpraxis has quit [Remote host closed the connection]
lggr has joined #ruby
rabidpraxis has joined #ruby
lolmaus has joined #ruby
cezar has joined #ruby
jgrevich has quit [Quit: jgrevich]
cezar has quit [Client Quit]
maletor has joined #ruby
rabidpraxis has quit [Ping timeout: 244 seconds]
mahmoudimus has joined #ruby
justinmc_ has quit [Remote host closed the connection]
yasushi has joined #ruby
justinmcp has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
adkron has joined #ruby
adkron_ has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
evangelion has joined #ruby
lggr has joined #ruby
<evangelion>
hello
maesbn_ has joined #ruby
<evangelion>
why does the exec command break a while( true ) ... end loop in ruby 1.9?
Eldariof18-ru has joined #ruby
<robustus>
because exec replaces the current (ruby) process with another one
<robustus>
use system() instead
<evangelion>
oh
<evangelion>
ok
<evangelion>
thank you
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
thillux has joined #ruby
zaargy has left #ruby [#ruby]
maesbn has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 244 seconds]
djdb has joined #ruby
triptec has quit [Quit: triptec]
triptec has joined #ruby
bradhe has joined #ruby
Hamed-R has joined #ruby
lggr has joined #ruby
hoelzro|away is now known as hoelzro
gani has joined #ruby
bartj3 has joined #ruby
LouisGB has joined #ruby
wallerdev has quit [Quit: wallerdev]
bradhe has quit [Ping timeout: 248 seconds]
gani has quit [Client Quit]
lggr has quit [Ping timeout: 256 seconds]
JohnBat26 has joined #ruby
nykac_ has joined #ruby
<nykac_>
is it possible to store methods in a hash?
jokar has quit [Read error: Connection reset by peer]
<hoelzro>
nykac_: want do you want to do with them?
<nykac_>
hoelzro: i want to get the name of a method, then execute, and return it.
matthewrobbins has joined #ruby
lggr has joined #ruby
<hoelzro>
nykac_: well, you could use #send to execute a method by name
jokar has joined #ruby
<hoelzro>
what do you mean by "return it"?
<nykac_>
thanks
Iszak has joined #ruby
<nykac_>
hoelzro: capture the value it returns
<hoelzro>
oh, ok
<hoelzro>
then result = obj.send message, *args
<hoelzro>
that'll do it
<nykac_>
thank you. that's what i've been wanting to do.
<hoelzro>
happy to help =)
hbpoison has quit [Ping timeout: 252 seconds]
yasushi_ has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 246 seconds]
Hamed-R has quit [Ping timeout: 264 seconds]
cjk101010 has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
BombStrike has joined #ruby
haxrbyte has joined #ruby
Morkel has joined #ruby
tar_ has joined #ruby
noxoc has joined #ruby
bobbbo has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
cjk101010 has joined #ruby
schickung has joined #ruby
hasse has joined #ruby
lggr has joined #ruby
<hasse>
I try to give my users the option to add valid hosts using the asterix (*) like this "*.foobar.com". Can you find any pitfalls in my current solution? http://pastie.org/private/dkjqrfsxxudbxalushfrq
und3f has joined #ruby
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
dhruvasagar has joined #ruby
jarred has quit [Quit: jarred]
<hoelzro>
hasse: keep in mind a user could type other regex characters in that string
<hoelzro>
so you should probably escape those first
<hasse>
hoelzro: isn't that what I'm doing in the parse_to_regex method. First i escape the whole string and then replace the \*
<hoelzro>
ah, sure enough
F1skr has joined #ruby
<hoelzro>
I missed that; my bad =)
etehtsea has joined #ruby
etehtsea is now known as Guest12727
adkron_ has joined #ruby
banisterfiend has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
neersighted has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 248 seconds]
adkron has quit [Ping timeout: 246 seconds]
tblamer has quit [Quit: Leaving]
hbpoison has joined #ruby
lggr has joined #ruby
bodik has joined #ruby
adkron_ has quit [Ping timeout: 244 seconds]
mneorr_ has joined #ruby
<canton7>
hoelzro, beware of the fact that ^ and $ match the beginning and end of the line, not the string, respectively
mneorr_ has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
<canton7>
that'd led to some security breaches in the past. not sure if it's an issue here
Iszak has quit [Quit: User has gone to sleep.]
neersighted has joined #ruby
adkron has joined #ruby
workmad3 has joined #ruby
mneorr_ has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
mneorr has joined #ruby
Criztian has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 244 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
Iszak has joined #ruby
schickung has quit [Quit: schickung]
mneorr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
adeponte has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
lggr has joined #ruby
mneorr has joined #ruby
fixl has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
timmow has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
axiak has quit [Ping timeout: 240 seconds]
mneorr has quit [Read error: Connection reset by peer]
lggr has joined #ruby
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Kwpolska has quit [Ping timeout: 255 seconds]
mneorr has quit [Read error: Connection reset by peer]
zz_chrismcg is now known as chrismcg
hasse has quit [Quit: Page closed]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
lggr has joined #ruby
stoffus has joined #ruby
mneorr has joined #ruby
bobbbo has quit [Quit: bobbbo]
statarb3 has quit [Quit: Leaving]
lkba has quit [Quit: Bye]
Raboo has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
awestroke has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
vlad_starkov has joined #ruby
jonathanwallace has joined #ruby
jgwong has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
schickung has joined #ruby
Hamed-R has quit [Remote host closed the connection]
Virunga has joined #ruby
cjk101010 has quit [Ping timeout: 265 seconds]
cjk101010 has joined #ruby
adeponte has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
JustinCa_ has joined #ruby
adambeynon has joined #ruby
chussenot has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
justsee has quit [Quit: Leaving...]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
rjmt__ has quit [Remote host closed the connection]
arietis has joined #ruby
quazimodo has joined #ruby
rjmt__ has joined #ruby
lggr has joined #ruby
iocor has joined #ruby
Vainoharhainen has joined #ruby
adeponte has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
sent-hil_ has joined #ruby
sent-hil has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
sheerun has joined #ruby
tvw has joined #ruby
neersighted has joined #ruby
lggr has joined #ruby
josh^ has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
chimay has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
futilegames has joined #ruby
adambeynon has quit [Ping timeout: 244 seconds]
adkron has quit [Ping timeout: 245 seconds]
josh^ has joined #ruby
adkron has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 248 seconds]
moshef has joined #ruby
moshef has quit [Client Quit]
matrixise has joined #ruby
glyytchy has quit [Quit: Leaving...]
fyolnish has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
jenrzzz has joined #ruby
lggr has joined #ruby
banisterfiend has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 245 seconds]
Bart-_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 264 seconds]
frogprince_mac has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
thisirs has joined #ruby
thillux has quit [Remote host closed the connection]
justinmcp has joined #ruby
thillux has joined #ruby
hsbt is now known as hsbt_away
cantonic_ has joined #ruby
amskah has quit [Quit: Leaving]
adambeynon has joined #ruby
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
lggr has quit [Ping timeout: 256 seconds]
Bish_ is now known as Bish
JonnieCache has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
lggr has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
statarb3 has quit [Quit: Leaving]
lkba has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
lggr has joined #ruby
berserkr has joined #ruby
Guest12727 has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
kermes has joined #ruby
sheerun_ has joined #ruby
rjmt__ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
rjmt__ has joined #ruby
Hamed-R has joined #ruby
sheerun has quit [Ping timeout: 264 seconds]
sheerun_ is now known as sheerun
lggr has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Ping timeout: 246 seconds]
robozahn has joined #ruby
evangelion has quit [Quit: Leaving]
lggr has quit [Ping timeout: 240 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
nitin9003 has joined #ruby
<nitin9003>
Hi I have a query related to streaming files in ruby on rails
Hamed-R has quit [Ping timeout: 264 seconds]
<shevy>
#rubyonrails
<shevy>
because the wise guys who use it are there and not here ;P
lggr has joined #ruby
<nitin9003>
k thnx i think irc directed me to the wrong node
mneorr has joined #ruby
<matti>
;d
Hamed-R has joined #ruby
etehtsea has joined #ruby
<matti>
shevy shevy shevy
etehtsea is now known as Guest61005
nitin9003 has quit [Client Quit]
Virunga has quit [Remote host closed the connection]
<workmad3>
shevy: some of the wise guys are here too ;)
<workmad3>
shevy: and me too :P
adkron_ has joined #ruby
Eplemosen has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
hbpoison has quit [Ping timeout: 246 seconds]
rjmt__ has quit [Remote host closed the connection]
hbpoison has joined #ruby
futilegames has quit [Quit: futilegames]
<shevy>
yeah
rakl has joined #ruby
<shevy>
but no railsers!
lggr has quit [Ping timeout: 245 seconds]
rjmt__ has joined #ruby
yasushi_ has quit [Ping timeout: 265 seconds]
<shevy>
workmad3 can I highlight you in future for railsers who come here for help related to RoR? :)
nitin9003 has joined #ruby
mneorr has quit [Remote host closed the connection]
lggr has joined #ruby
<nitin9003>
hi I had one issue related to rubyonrails but the ror channel doesn't allow any anonymous user to post questions ...any suggestions on hw one can post a question on ror channel
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
hsbt_away is now known as hsbt
jonathanwallace has joined #ruby
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
hbpoison_ has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 248 seconds]
rjmt__ has quit [Remote host closed the connection]
arkiver has joined #ruby
matrixise has quit [Ping timeout: 256 seconds]
Forevernade has quit [Read error: Connection reset by peer]
Forevernade has joined #ruby
rjmt__ has joined #ruby
matrixise has joined #ruby
lggr has joined #ruby
hsbt has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby
hbpoison has joined #ruby
<shevy>
heeh
hsbt has joined #ruby
<shevy>
you could try to ask here, like 5% of the guys on #ruby know RoR
<shevy>
I dont know RoR so I can not help
<shevy>
<workmad3> shevy: some of the wise guys are here too ;)
sepp2k has quit [Read error: Connection reset by peer]
<shevy>
hmmmm
user123 has joined #ruby
user123 is now known as akem-eikko
Targen has joined #ruby
<nitin9003>
is it possible to send a file to the third party server without creatiing a tempfile in the rails application...
bobbbo has joined #ruby
adeponte has joined #ruby
sepp2k has joined #ruby
<nitin9003>
I meas I want to stream a file uploaded by a client directly to the third party server without creating a temporary location for that file in the rails application
Guedes0 has quit [Quit: Saindo]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
theRoUS_ has joined #ruby
robozahn has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 265 seconds]
robozahn has joined #ruby
schickung_ has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Mon_Ouie has joined #ruby
rjmt__ has joined #ruby
rcs has quit [Ping timeout: 264 seconds]
bartj3 has quit []
johnduhart2 has quit [Read error: Connection reset by peer]
johnduhart has joined #ruby
schickung has quit [Ping timeout: 264 seconds]
kapowaz has quit [Ping timeout: 264 seconds]
ctevie has quit [Ping timeout: 264 seconds]
kaichanvong has quit [Ping timeout: 264 seconds]
goraxe has quit [Ping timeout: 264 seconds]
schickung_ is now known as schickung
lggr has joined #ruby
hsbt is now known as hsbt_away
kapowaz has joined #ruby
hsbt_away is now known as hsbt
goraxe has joined #ruby
JustinCampbell has joined #ruby
rcs has joined #ruby
mneorr has joined #ruby
wpaulson has joined #ruby
JustinCa_ has quit [Read error: Connection reset by peer]
heisenmink has joined #ruby
wpaulson has quit [Client Quit]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
awestroke has quit [Ping timeout: 256 seconds]
mneorr has quit [Remote host closed the connection]
JustinCampbell has quit [Client Quit]
bobbbo has quit [Quit: bobbbo]
JustinCampbell has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
Beoran_ has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
und3f has quit [Quit: Leaving.]
Hamed-R has quit [Quit: Leaving]
und3f has joined #ruby
matrixise has joined #ruby
Beoran__ has quit [Ping timeout: 264 seconds]
luckyruby has joined #ruby
nitin9003 has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Averna has quit [Quit: Leaving.]
<shevy>
hsbt what are you doing
lggr has quit [Ping timeout: 248 seconds]
mohits has quit [Ping timeout: 264 seconds]
arkiver has quit [Ping timeout: 264 seconds]
yalue has joined #ruby
samflores has joined #ruby
iamjarvo has joined #ruby
lggr has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
adkron_ has quit [Ping timeout: 264 seconds]
yshh has quit [Remote host closed the connection]
emsilva has quit [Ping timeout: 246 seconds]
d3vic3 has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
alienaut has joined #ruby
nari has joined #ruby
d3vic3 has quit [Client Quit]
adkron has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
zeromodulus has quit [Ping timeout: 264 seconds]
d3vic3 has joined #ruby
Targen has quit [Ping timeout: 244 seconds]
d3vic3 has quit [Client Quit]
rjmt__ has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
tgraham has joined #ruby
vectorshelve has quit [Quit: Page closed]
hbpoison has joined #ruby
lggr has joined #ruby
hasse has joined #ruby
ltsstar has joined #ruby
<hasse>
what is good term for a method/program/host that responds to everything? (takes it all)
<DefV>
a slut
<Sp4rKy>
or a catchall ?
josh^ has quit [Remote host closed the connection]
<JonnieCache>
hasse: dont call it a slut. bad words in your code always come back to you
hbpoison has quit [Ping timeout: 240 seconds]
<shevy>
the problem with bad words is
<shevy>
they are not really helpful for engineering purposes
<DefV>
true
<DefV>
I once rolled into code that had a RedisHelper class and a RedisBitch class
<shevy>
hmm
<DefV>
the engineer had a hard time explaining that one
hbpoison has joined #ruby
lggr has joined #ruby
<DefV>
but they migrated from badly-coded RedisHelper to mediocre-coded RedisBitch
<shevy>
I could make a guess what RedisHelper would be about... but RedisBitch ... I would not have the slightest idea what this class aims to achieve
<DefV>
so RedisBitch was RedisHelperV2
<shevy>
hehe
<DefV>
but they couldn't be bothered rewriting the whole class so they didn't
<DefV>
*sigh*
<JonnieCache>
it also makes you look like a child in front of your collegues. i wouldnt give important work to someone who used swearwords in the place of foo and bar for example
<JonnieCache>
if you cant work out why that might be a bad idea, you probably suck at programming
tgraham has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
chimay has quit [Ping timeout: 264 seconds]
manizzle has quit [Ping timeout: 252 seconds]
deadghost has quit [Ping timeout: 256 seconds]
tgraham has quit [Client Quit]
ewag has joined #ruby
sheerun has quit [Quit: sheerun]
freeayu has joined #ruby
mark_locklear has joined #ruby
tar_ has quit [Quit: tar_]
lggr has quit [Ping timeout: 256 seconds]
adkron has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
fermion has joined #ruby
adeponte has quit [Remote host closed the connection]
bobbbo has joined #ruby
xyzodiac has joined #ruby
answer_42 has joined #ruby
bradhe has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
jeffreybaird has joined #ruby
lggr has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
sheerun has joined #ruby
akem-eikko has quit [Ping timeout: 244 seconds]
triptec has quit [Ping timeout: 264 seconds]
tar_ has joined #ruby
margle has joined #ruby
vderyagin has quit [Remote host closed the connection]
<margle>
I'm looking for a good ruby book, any recommendations? I want to get into the nitty grity of the language.
awestroke has joined #ruby
<m3pow>
flanagan & matsumoto - the ruby programming language is what i use
triptec has joined #ruby
<hoelzro>
The Ruby Programming Language is a great book
mneorr has joined #ruby
<hoelzro>
it tells you all the details
<hoelzro>
I *highly* recommend it
<JonnieCache>
+1
maesbn_ has quit []
maesbn has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
heisenmink has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
v0n has joined #ruby
pauC has quit [Ping timeout: 265 seconds]
hasse has quit [Ping timeout: 245 seconds]
pauC has joined #ruby
mneorr has quit [Remote host closed the connection]
rakl has quit [Quit: gone]
iamjarvo has quit [Ping timeout: 246 seconds]
tgraham has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
tar_ has quit [Quit: tar_]
mohits has joined #ruby
AlbireoX has joined #ruby
lggr has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
jrajav has joined #ruby
theRoUS_ has quit [Ping timeout: 252 seconds]
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
tgraham has quit [Ping timeout: 246 seconds]
answer_42 has joined #ruby
chimay has joined #ruby
berserkr has quit [Quit: Leaving.]
schickung has quit [Quit: schickung]
Hamed-R has quit [Ping timeout: 245 seconds]
cogman has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
d1zzYLuLz has quit [Quit: Page closed]
wobr has joined #ruby
anandhegde has joined #ruby
monkegjinni has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
icooba has joined #ruby
Xeago has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
awestroke has quit [Remote host closed the connection]
yshh has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
krawchyk has joined #ruby
kannix has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
schickung has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
cogman has quit [Quit: Page closed]
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-developers/moderators) Red Eclipse servers: http://altred.tk/lmaster]
freeayu has joined #ruby
schickung has quit [Client Quit]
BMF has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
vlad_starkov has joined #ruby
pskosinski has joined #ruby
schickung has joined #ruby
pauC has quit [Quit: Ex-Chat]
Kwpolska has joined #ruby
theRoUS_ has joined #ruby
Kwpolska has left #ruby [#ruby]
<shevy>
margle, the pickaxe
<margle>
hoelzro: hoelzro o`reilly?
<margle>
m3pow, shevy, hoelzro: thanks
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
ephemerian has joined #ruby
uris has joined #ruby
schickung has quit [Client Quit]
<shevy>
margle, keep in mind though that the only real way to learn ruby is by writing ruby code
nwest has joined #ruby
lggr has joined #ruby
shiki has quit [Remote host closed the connection]
<margle>
shevy: thanks, I'm typing a bit daily - I just feel like I don't want to type it in a python or coffeescript way.
<shevy>
hehe
<shevy>
well every language has bad parts, ruby too
<shevy>
@@class_variables
<margle>
I can sort of feel the language buzzing below me… and I don't want to ignore that.
Bart-_ has quit [Quit: Leaving...]
Spooner has joined #ruby
<margle>
shevy: are the best avoided?
sent-hil_ has quit [Remote host closed the connection]
<shevy>
I'd also like semi-namespaced global variables... a bit like CONSTANTS... but constants are supposed to not be changed (yet unfortunately they can be changed, I think that was an inconsistency, the name constant means that it should be a constant)
Elhu has joined #ruby
<margle>
s/the/they
stoffus has quit [Quit: The computer fell asleep]
<shevy>
dunno, you must decide on your own
<shevy>
I myself avoid them
<shevy>
I think the only use case with @@class_vars I have seen is by using counters
<shevy>
"keep track of how often this class was instantiated"
<margle>
that's what I saw in this article as well.
<margle>
er, another article regarding them
d3vic3 has joined #ruby
<margle>
this article you linked is great btw.
paolooo has joined #ruby
tgraham has joined #ruby
<shevy>
the philosophy was what made me pick ruby back then
<shevy>
respectively how matz explained it :)
jbw has quit [Ping timeout: 246 seconds]
ltsstar has quit [Quit: ltsstar]
<shevy>
Yukihiro Matsumoto: "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better."
havenn has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
d3vic3 has quit [Client Quit]
<Spooner>
shevy: There are innumerable use cases for class variables beyond being counters, but they are "surprising", so we use class instance variables nowadays, which are more predictable.
thisirs has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lggr has quit [Ping timeout: 256 seconds]
thisirs has joined #ruby
ZubKonst_ has joined #ruby
lggr has joined #ruby
Xeago has quit [Remote host closed the connection]
eddie_ has quit [Quit: Ex-Chat]
Xeago has joined #ruby
ZubKonst has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 244 seconds]
futilegames has joined #ruby
tk__ has joined #ruby
peneconleche has joined #ruby
notVert has joined #ruby
frogprince_mac has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
xjiujiu_ has joined #ruby
mmitchell has joined #ruby
Hamed-R has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
tar_ has joined #ruby
gfontenot has joined #ruby
seme has joined #ruby
seme is now known as Guest48370
mengu has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
fbernier_ is now known as fbernier
lggr has joined #ruby
mucker has joined #ruby
tar_ has quit [Quit: farewell]
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
Guest64548 has joined #ruby
iamjarvo has joined #ruby
justinmcp has quit [Remote host closed the connection]
hbpoison has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
lggr has quit [Ping timeout: 240 seconds]
joofsh has joined #ruby
nateberkopec has joined #ruby
rakl has joined #ruby
Virunga has joined #ruby
jonathanwallace has joined #ruby
Hamed-R has quit [Quit: Leaving]
hbpoison has quit [Ping timeout: 240 seconds]
awarner has joined #ruby
mmitchel_ has joined #ruby
TheNumb has joined #ruby
cody-- has joined #ruby
lggr has joined #ruby
axl_ has joined #ruby
peneconleche is now known as peneconleche|awa
mmitchell has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
quazimodo has joined #ruby
stopbit has joined #ruby
<m3pow>
is xeago around, i need some more tasks
<m3pow>
he gave me programming appetite
<Virunga>
More tasks?
<A124>
m3pow: I did not? ^^
<Virunga>
Does he give you homework?
<m3pow>
not like a homework, but he gave me a program to solve
<Virunga>
That is cool.
<m3pow>
i just want to learn, that's all
<Virunga>
And the he corrects it?
<m3pow>
sadly there are no ruby professors here
<Virunga>
*then
<m3pow>
yes he does, and gave me some good tips
<A124>
m3pow: And what would you like?
rabidpraxis has joined #ruby
<Virunga>
Very nice.
<m3pow>
my goal is to create a website in the future so i would like something that might point to that direction
lggr has quit [Ping timeout: 252 seconds]
robozahn has joined #ruby
<m3pow>
to be honest i started some video tutorials, but when Xeago gave me that small program to solve, i was stumped, which means i ain't going the good way
mercwithamouth has joined #ruby
jrajav has quit []
<A124>
m3pow: Can you be specific? I'm interested in what it might be.
lggr has joined #ruby
<m3pow>
what do you mean, what the website is going to be about ?
ph^ has quit [Ping timeout: 245 seconds]
snorkdude has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<Virunga>
m3pow: what material are you using to learn?
<A124>
m3pow: The problem he gave you to solve.
<m3pow>
video tutorials, books...but it's hard
<m3pow>
ahh
<m3pow>
FizzBuzz program
jonathanwallace has joined #ruby
lolmaus has quit []
futilegames has quit [Quit: futilegames]
bradhe has joined #ruby
guest__ has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<Virunga>
it's hard? Ruby is one of the most simple language ever.
xjiujiu_ has quit [Read error: Connection reset by peer]
<Virunga>
And fun.
<m3pow>
i mean hard by yourself
<GeekOnCoffee>
FizzBuzz was our initial screening in the job interview process
<m3pow>
no way
mvangala has quit [Remote host closed the connection]
<m3pow>
X also told me that is usually an interview task
<Virunga>
GeekOnCoffee: do you let make programming exercises in the job interview?
pskosinski has quit [Remote host closed the connection]
Soul_Est has joined #ruby
cakehero has joined #ruby
bbttxu has joined #ruby
manuelitox_ has joined #ruby
pskosinski has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
v0n has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 244 seconds]
manuelitox_ has quit [Read error: No route to host]
stopbit has joined #ruby
mohits has quit [Ping timeout: 248 seconds]
tagrudev has quit [Quit: Kepler-22b here I come]
<Spooner>
GeekOnCoffee : Good old fizzbuzz. Problem is that it is _really_ good test for people who don't know it, but less so for anyone who knows it.
mklappstuhl has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
xyzodiac has joined #ruby
theRoUS_ has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
<GeekOnCoffee>
Spooner: we tended to make them explain it too
<GeekOnCoffee>
so simply writing down memorized code wouldn't be enough
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
beneggett has joined #ruby
<Spooner>
Aye.
cody-- has quit [Quit: goodbye]
<GeekOnCoffee>
and it filtered out a remarkable number of people
<Spooner>
I imagine it would.
schickung has joined #ruby
gfontenot has quit [Ping timeout: 265 seconds]
obryan has joined #ruby
<shevy>
GeekOnCoffee, are you addicted to coffee?
<GeekOnCoffee>
shevy: yes
frogprince_mac has quit [Quit: Leaving...]
fantazo has joined #ruby
havenn has joined #ruby
gfontenot has joined #ruby
robertotauille has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
<Spooner>
GeekOnCoffee : Did anyone develop fizzbuzz by first writing the required tests? If they did, I hope you hired them before they bothered to actually write the code itself :D
<GeekOnCoffee>
Spooner: ha
<GeekOnCoffee>
at that job, if somebody had started by writing the required tests, I would have told them to turn and run ;)
sailias has quit [Quit: Leaving.]
<Spooner>
Oh dear!
failshell has joined #ruby
<failshell>
hello. let's say i have a string like 'root@localhost'. i would split it to get user,host in 2 variables. what's the simplest way of doing that?
hukl has quit [Quit: Leaving...]
<Spooner>
failshell user, host = str.split '@'
xyzodiac has quit [Quit: Computer has gone to sleep.]
<failshell>
thanks Spooner
<failshell>
so simple
chrishunt has joined #ruby
<failshell>
i love ruby
theRoUS_ has joined #ruby
lggr has joined #ruby
CannedCorn has joined #ruby
<JonnieCache>
when i read that fizzbuzz article a few years ago it freaked me out, i was sure i couldnt be doing it right
ph^ has joined #ruby
<Xeago>
btw, there are similar tests
<JonnieCache>
"its just like 3 conditionals. i must not have understood the question..."
<Xeago>
when I'm doing interviews now, I just ask if they know it
<m3pow>
and here is Xeago
lucianosousa has joined #ruby
internet_user has joined #ruby
<Xeago>
pff, mail me at attention@xeago.nl
<Xeago>
been connected since like 15:00+0200
<Spooner>
Here's a freebee (and no, I wouldn't write it that way in an interview): (1..100).each{|i|s="#{'fizz'if i%3==0}#{'buzz'if i%5==0}";puts s==''?i:s}
xyzodiac has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
<JonnieCache>
that is basically it though. the interview version would be that with a different conditional form, and some whitespace
<JonnieCache>
it implies that there is a percentage of the population who will *never* be able to code
<hoelzro>
NL! \o/
<m3pow>
i don't speak dutch, but i do have a lot of Dutch friends
* hoelzro
speaks almost no Dutch
<m3pow>
i just know bedankt
<m3pow>
:p
<m3pow>
and that's exhausted my dutch
<Xeago>
hoelzro: weren't you dutch tho?
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<hoelzro>
I'm not; I just live here =)
asobrasil has left #ruby [#ruby]
havenn has quit [Remote host closed the connection]
<Xeago>
lol
<m3pow>
hahaha
<m3pow>
that's a goodie
cascalheira has joined #ruby
fcoury has quit [Remote host closed the connection]
JC_SoCal has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
ctevie has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
sr___ has quit [Remote host closed the connection]
davidboy has quit [Read error: Connection reset by peer]
notbrent has quit [Remote host closed the connection]
SeanTAllen has quit [Remote host closed the connection]
jhowarth has quit [Remote host closed the connection]
randym has quit [Write error: Broken pipe]
patricksroberts has quit [Read error: Connection reset by peer]
dkannan has quit [Read error: Connection reset by peer]
moeSeth has quit [Read error: Connection reset by peer]
NimeshNeema has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
lectrick has quit [Write error: Connection reset by peer]
CannedCorn has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 252 seconds]
<Xeago>
for example, let them write String#palindrome?
<Xeago>
as alternative to fizzbuzz
<Xeago>
or count the bits set in a number
hbpoison has quit [Ping timeout: 256 seconds]
Know1edge has joined #ruby
Know1edge has quit [Changing host]
Know1edge has joined #ruby
<hoelzro>
I like "how can you use bit twiddling to tell if a number's a power of two"?
hukl has joined #ruby
* m3pow
hides from the masters
<Xeago>
hoelzro: only works for some numbering schemes
<Spooner>
Shout "Are you a power of two? Are you?"
lggr has joined #ruby
<hoelzro>
s/number/integer/
Axsuul has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
jgrevich has joined #ruby
Morkel has quit [Quit: Morkel]
<shevy>
m3pow hey I understand bedankt but I speak only german
cody-- has joined #ruby
<m3pow>
you're from germany ?
<Spooner>
hoelzro : s/power of two/positive integer power of two/
<hoelzro>
Spooner: oh, thanks
rcsheets has joined #ruby
<hoelzro>
that's what I meant ;)
<hoelzro>
s/integer/unsigned integer/
<JonnieCache>
hoelzro: bit twiddling questions only really test memory though. if you need to know if someone has experience of that kind of programming, just ask them
v0n has joined #ruby
<hoelzro>
JonnieCache: true, I just like that question =)
<JonnieCache>
asking them to swap two variables, and watching to see if they instinctively twiddle bits
<JonnieCache>
that would be better
<Spooner>
I find a lot of questions like that fail because the "clever" person writing something to test the other person's ability to follow a spec can't write a spec.
<hoelzro>
well, some people could come up with the answer on the spot
<Xeago>
JonnieCache: without a third variable :3
samflores is now known as samflores|away
<JonnieCache>
Xeago: nah just let them do it however, and hire the person who doesnt bother with the third var
kapowaz has joined #ruby
<Spooner>
hoelzro : Like this answer? ("%b" % num).chars.one? {|c| c = "1" }
<hoelzro>
heh
<Spooner>
*c == 1
wobr has quit [Quit: Leaving.]
<hoelzro>
it's certainly clever =)
<Spooner>
*c == "1" (I give up)
<JonnieCache>
in that situation i would have to say "i know you can do this with bit twiddling but i cant remember that shit. i can has googles?"
wobr has joined #ruby
<hoelzro>
that would be an acceptable answer to me =)
phantasm66 has joined #ruby
<hoelzro>
"you know where to look if you don't know. that's a good skill to have"
dAmIAnA has joined #ruby
<Xeago>
JonnieCache: duckduckgo
mengu has quit [Read error: Connection reset by peer]
<matti>
Hi m3pow
<JonnieCache>
i need to start using that. i hear its fast now
<dAmIAnA>
jola
<dAmIAnA>
hola
samflores|away has quit [Quit: Leaving...]
<Xeago>
I hear it has better results
<Xeago>
and it has an api
jrist is now known as jrist-mtg
<Xeago>
I search from commandline :3
dAmIAnA has quit [Client Quit]
<cody-->
I'm working on a gem and would like to add routes that can be used in a rails app, anyone have any advice or guides or doing this?
mmitchell has quit [Remote host closed the connection]
davidboy has joined #ruby
futilegames has joined #ruby
<Spooner>
cody-- : #ror #rails #rubyonrails
<JonnieCache>
cody--: look up rails engines
lggr has quit [Ping timeout: 256 seconds]
<cody-->
thanks
bradhe has joined #ruby
sailias has joined #ruby
[diecast] has joined #ruby
iocor has joined #ruby
<Spooner>
All this talk of interviews reminds me I should actually get off my arse and try to make some money from Ruby, because #ruby doesn't pay well :D
wobr has quit [Ping timeout: 264 seconds]
* JonnieCache
starts his new job on monday :)
<Xeago>
I actually get paid 10hr/week for community service
<Xeago>
tho, spend about 20hr/week here
<JonnieCache>
Xeago: here community service is something you get for a minor crime
lggr has joined #ruby
<JonnieCache>
im guessing thats not why youre doing it though, as youre getting paid
<Xeago>
then how the hell do you call it
jonathanwallace has quit [Remote host closed the connection]
foysavas has quit [Ping timeout: 245 seconds]
<JonnieCache>
i know what you mean, is it mandatory?
octarine has joined #ruby
<Xeago>
I have to report it :P
<JonnieCache>
here it used to be called national service but we dont do it any more
<Xeago>
atm it's just help on irc, fix issue's on github and stuff
jonathanwallace has joined #ruby
<JonnieCache>
oh youre talking about something else
<Xeago>
nope, I'm doing that
<Xeago>
lol
<JonnieCache>
what so your government pays you to help out hackers?
<Xeago>
no my employer
futilegames has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 252 seconds]
patricksroberts has joined #ruby
sr___ has joined #ruby
<JonnieCache>
i thought you were referring to something like the german Wehrpflicht
<JonnieCache>
or the old UK national service
<Xeago>
nonono lol
<Xeago>
I just get paid to do stuff within programming community's
sr___ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
patricksroberts has quit [Remote host closed the connection]
davidboy has quit [Read error: Connection reset by peer]
octarine has quit [Remote host closed the connection]
kapowaz has quit [Read error: Connection reset by peer]
<Spooner>
Nice employer.
jhowarth has joined #ruby
Neomex has quit [Quit: Neomex]
<Xeago>
only 10hours, would prefer fulltime
<Xeago>
I actually don't want proprietary code hanging on my cv
sent-hil has joined #ruby
anildigital_work has joined #ruby
davidboy has joined #ruby
sent-hil has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
<shevy>
:)
asobrasil has joined #ruby
<shevy>
WE FIGHT FOR FREEDOM
<shevy>
AND DONUTS
<matti>
I don't.
<shevy>
DIE MATTI DIE!!!
<matti>
;<
<shevy>
see that is why movements don't work
* shevy
points at matti.
<shevy>
him!
* Xeago
codes for food and sponsored vacancies to visit talks
* matti
codes for fun and profit
Bosma has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<Xeago>
s/vacancies/trips
<JonnieCache>
THE SOURCECODE LIBERATION FRONT! THOSE BASTARDS!
<matti>
Xeago: Conferences are boring
<Xeago>
what's the correct word for that that starts with vac?
<matti>
JonnieCache: We have this already.
<Xeago>
berlin buzzwords12 was fun
<matti>
JonnieCache: FSF with Stallman
<JonnieCache>
exactly
<Xeago>
especially the bars afterwards :D
octarine has joined #ruby
fcoury has joined #ruby
<matti>
Xeago: I am anti-social ;/
<Xeago>
well, so am I
<JonnieCache>
the ccc events are good. dunno if theyre stricly conferences though
hukl has quit [Quit: Leaving...]
<rburton->
matti so you're on facebook then ;)
blazes816 has joined #ruby
v0n has quit [Ping timeout: 268 seconds]
<matti>
rburton-: I am not.
<Xeago>
I just take a laptop with me, start coding with a portable beamer, and people start talking
<Xeago>
:)
<rburton->
Fuck that's beyond anti-social
<matti>
rburton-: LOL
<matti>
rburton-: I think that social networking is for 15 year old girls.
lectrick has joined #ruby
ananthakumaran has joined #ruby
<rburton->
Anti-social people use facebook to be social. When a person denies Facebook then... that's like wow!
lggr has joined #ruby
notbrent has joined #ruby
<matti>
rburton-: I strain from the retarded-nation ;p
<Xeago>
about half of the time, hackathons happen
<rburton->
matti You're wise beyond your years. So you figured out my motivation for being on facebook!
cody-- has quit [Quit: goodbye]
* rburton-
wonders what to do with matti now
<Spooner>
matti having 1000 friends on FB is for 15 year old girls :D
mmitchell has joined #ruby
<matti>
Spooner: That too ;]
<m3pow>
hahaha
<rburton->
MySpace is for retards and retarded investors
<deryl>
matti: but what about people like my family that aren't tech savvy and only know how to use Facebook? I have to contact them somehow and calling is prohibitively expensive.
<matti>
rburton-: Dunno, you cannot unfriend me ;p
<rburton->
I can't even poke you :(
<matti>
Hahaha
tgraham has quit [Quit: Leaving...]
<matti>
rburton-: Or send me annoying Farmville invites.
<rburton->
Damn you!
<matti>
;D
<rburton->
I need poker chips!
im0b has joined #ruby
bobbbo has quit [Quit: bobbbo]
<matti>
deryl: Training, man. Teach them something else.
mmitchell has quit [Remote host closed the connection]
<matti>
deryl: Not being tech savvy does not mean nor implies stupid, so.
<matti>
;]
margle has quit [Quit: Computer has gone to sleep.]
<rburton->
I plan to turn Facebook into a P2P network ;)
jgrevich_ has joined #ruby
<deryl>
no, but then again, being on facebook doesn't imply that either ;)
<deryl>
OK, Dog Eat Child pics backed by any song by Miley Sirus :)
<rburton->
gangnam style sorry
Neil_ has left #ruby [#ruby]
<Xeago>
this discussion has derailed
<matti>
deryl: I do hear your point about FB.
<matti>
deryl: I was refering to all the super-attention-seeking 15 years old girls.
<matti>
deryl: With 1000 friends.
<JonnieCache>
what are you doing with those people on your list though?
<deryl>
that would be 2 of my nieces :-)
<matti>
deryl: I actually said this more than once -- Facebook ruined what word "friend" used to mean.
rcsheets has joined #ruby
<matti>
deryl: Nowadys everybody is your friend.
<deryl>
though she only has 280+ friends :)
<matti>
deryl: Like, shevy wanted to kill me. But he is my FRIEND!
monobit_ has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<matti>
JonnieCache: Dunno, send them cute cat pictures?
<matti>
;]
<deryl>
the ability to just click on someone and add them as friend rather than having classes of people (friend acquaintance enemy ignored) ruined facebook and the word friend :)
* matti
goes and befriends deryl
zommi has quit [Quit: Leaving.]
* matti
then sents "its compliated" between him and deryl
<matti>
;p
<Xeago>
anyone: elasticsearch: what is it called if in a cluster of 3 nodes, 1 goes down, and both other nodes want to be master
<matti>
There.
<matti>
Xeago: Split brain.
<deryl>
either they are your friend or they're not. OK, facebook cause yea, we all know that mimics the reality of life and the standings of people! yep yep
<matti>
Xeago: You have to have quorum.
<deryl>
matti: hahahah
<Spooner>
deryl : google+ allows levels of friends, but Facebook is just too engrained for the "norms".
lggr has quit [Ping timeout: 256 seconds]
<matti>
Xeago: Otherwise they both want to be elected.
<deryl>
Spooner: Google+ is my preferred
philips_ has quit [Excess Flood]
<matti>
I cannot have G+
<deryl>
with a smattering of gklist :)
<matti>
Google claims that my name is a fake name.
<matti>
:<
<Spooner>
Yeah, but it doesn't matter if 90% of people think fb _is_ social networking.
<matti>
And they blocked my profile.
<deryl>
matti: err?
<matti>
deryl: Seriously.
<Xeago>
tekkub had the same issue, it works now tho
<shevy>
haha
<shevy>
matti is fake! :)
<matti>
deryl:
<matti>
Your profile is currently suspended
<matti>
Until your profile has been unsuspended, you will be unable to use this feature.
<deryl>
heh
<matti>
deryl:
<matti>
Your profile is currently under review to make sure it is in compliance with the Google+ Names Policy and User Content and Conduct Policy. Reviews are typically completed within a few days.
<shevy>
that's what you get for not obeying your google overlords man
lggr has joined #ruby
<matti>
deryl: "within a few days" -- that was year ago.
<Xeago>
lol
<deryl>
shevy: damn. Time to sic Howard The Duck on them
<deryl>
matti: damn!
<Spooner>
I have a made up name, but google seem quite happy with it.
xyzodiac has joined #ruby
<shevy>
I always thought your name is Paul Spooner ... :<
<shevy>
like Spongebob
<matti>
LOL
reuf has joined #ruby
<deryl>
don't be pickin' on my spongebob now
<deryl>
Ohhhhh, who lives in a pineapple under the sea?
randym has joined #ruby
<deryl>
now, how many of you now have that song stuck on repeat in your brain? muahahaha
CodeFriar has joined #ruby
<shevy>
I dont know that song
philips_ has joined #ruby
<deryl>
shevy: hehe its the spongebob show theme-song
<matti>
Like when I was hooked on the Totoro song.
<matti>
;/
<matti>
Oh noes.
<matti>
Now I reminded myself about it...
<deryl>
Xeago: how about enrailing the discussions?
* deryl
starts shooting out rails questions
aganov has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
<Xeago>
lol
<Xeago>
no
tk__ has quit [Quit: ばいばい]
<deryl>
damn, buzz killer!
<Xeago>
golf me a String#palindrome?
<matti>
deryl: -> OUT
<deryl>
hahaha
<Xeago>
Hanmac: you heard me? #codegolf #golf !
carloslopes has quit [Quit: Leaving.]
<Xeago>
m3pow: btw, feel free to do this as an exercise
Soul_Est has quit [Quit: WeeChat 0.3.8]
ttt has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 252 seconds]
Synthead has joined #ruby
<deryl>
actually i have an issue i can't figure out, know its related to 1 line in lib/dtf.rb but can't figure out why the tests can't run it to load my models (non-rails but AR backed gem) so all my tests are puking (specifically the fabricators)
<Xeago>
dtf?
<Xeago>
that's what they say on jersey shore all the time
<deryl>
Xeago: project of mine
<deryl>
gem search dtf -dr
<rburton->
I can't wait for JRuby 1.7.0 to be released
v0n has joined #ruby
<shevy>
ewww
<shevy>
there is java in jruby
<matti>
shevy: The way around.
moeSeth has joined #ruby
NimeshNeema has joined #ruby
<deryl>
i suppose one of these days i'll get to reading the jruby book
lucianosousa has quit [Quit: lucianosousa]
Mon_Ouie has joined #ruby
<matti>
Hi Mon_Ouie
maesbn has quit [Remote host closed the connection]
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
<Xeago>
Mon_Ouie: how do you get a subtle/user cloak?
CarlB_the_great has joined #ruby
<nykac_>
Xeago: by donation
<dimka>
How can I convert Set to Array?
<hoelzro>
dimka: #to_a?
friskd has joined #ruby
<Xeago>
I wonder why set is not in core
<CarlB_the_great>
to_a, should be money
<shevy>
matti whether the parasite is in you, or you are in the parasite... where is the difference :>
bawer has joined #ruby
d3vic3 has joined #ruby
rakl has quit [Quit: sleeping]
<matti>
shevy: ... O_o
friskd has quit [Client Quit]
NimeshNeema has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
moeSeth has quit [Remote host closed the connection]
fcoury has quit [Read error: Connection reset by peer]
randym has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
notbrent has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
jhowarth has quit [Read error: Connection reset by peer]
lectrick has quit [Read error: Connection reset by peer]
ctevie has quit [Remote host closed the connection]
<shevy>
why does Set.new only want enumerables?
<shevy>
ArgumentError: value must be enumerable
<Hanmac>
hihi
Forevernade has quit [Read error: Connection reset by peer]
octarine has joined #ruby
<hoelzro>
shevy: how else would you build the set?
QKO has joined #ruby
Forevernade has joined #ruby
w400z has joined #ruby
lggr has joined #ruby
<shevy>
with a 5!
JJMalina has joined #ruby
<shevy>
Set.new(5) to be treated like Set.new([5])
nateberkopec has quit [Read error: Connection reset by peer]
QKO_ has quit [Ping timeout: 264 seconds]
_bart has joined #ruby
d3vic3 has quit [Quit: leaving]
<canton7>
shevy, Set[5]
<Hanmac>
shevy :D Set.new Array 5
notbrent has joined #ruby
<matti>
It should throw: RuntimeError, 'shevy detected' ;d
* matti
hides
jprovazn is now known as jprovazn_away
bluOxigen has quit [Ping timeout: 240 seconds]
jrist-mtg is now known as jrist
rcsheets has joined #ruby
joeycarm_ has quit [Remote host closed the connection]
Raduwen has joined #ruby
futilegames has joined #ruby
dnyy has joined #ruby
<Mon_Ouie>
'alut
lggr has quit [Ping timeout: 240 seconds]
phantasm66 has quit [Quit: *poof*]
<Mon_Ouie>
Xeago: Because I'm using Subtle (a WM) and asked for it ;)
dmiller has joined #ruby
mmitchell has joined #ruby
philcrissman has quit [Remote host closed the connection]
Neomex has joined #ruby
SeanTAllen has joined #ruby
jonathanwallace has joined #ruby
Neomex has quit [Client Quit]
sr___ has joined #ruby
<hoelzro>
Mon_Ouie: that's neat
<hoelzro>
(the WM that is)
kapowaz has joined #ruby
randym has joined #ruby
chrishunt has quit [Ping timeout: 240 seconds]
jhowarth has joined #ruby
zigomir has quit [Quit: Leaving]
hukl has joined #ruby
rakl has joined #ruby
rakl has quit [Client Quit]
hbpoison has joined #ruby
senny has quit [Remote host closed the connection]
philcrissman has joined #ruby
lggr has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
tgraham has joined #ruby
haxrbyte has quit [Remote host closed the connection]
JohnHirbour has joined #ruby
futilegames has quit [Quit: futilegames]
<bawer>
Hello! How do developers such as yourself go about when working with many routes in an application? How do you organize them? It very soon grows "monolithic" having all the routes in the main module, what are the strategies used when building complex applications?
apok has quit [Quit: apok]
hbpoison has quit [Ping timeout: 240 seconds]
JC_SoCal has joined #ruby
moeSeth has joined #ruby
davidboy has joined #ruby
anildigital_work has joined #ruby
NimeshNeema has joined #ruby
slicslak has joined #ruby
bartj3 has quit []
hoelzro is now known as hoelzro|away
axiak has joined #ruby
ryanlecompte has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
billiam has joined #ruby
tatum_O_o has joined #ruby
<nykac_>
how can I make a method of a class static?
Forevernade has quit [Read error: Connection reset by peer]
patricksroberts has joined #ruby
deadghost has joined #ruby
ttt has joined #ruby
<heftig>
nykac_: def self.foo
robozahn has quit [Ping timeout: 265 seconds]
<nykac_>
thanks heftig
Forevernade has joined #ruby
lggr has joined #ruby
[diecast] has joined #ruby
philcrissman has quit [Ping timeout: 256 seconds]
JohnBat26 has quit [Ping timeout: 256 seconds]
harushimo has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
<ccooke>
harushimo: so, if you want to refer to a method by name, a Symbol is used.
<lectrick>
Xeago: nov 1-3
<harushimo>
for example, 15 / 3
<ccooke>
harushimo: you can call any method on a ruby object with: object.send( :foo ) (to call a method called 'foo')
lggr has joined #ruby
<ccooke>
harushimo: and so when you call the 'methods' method, it returns an array of all the methods you can call on the object, as Symbols
<ccooke>
harushimo: 15 / 3 is equivalent to 15.send( :/, 3 )
<ccooke>
harushimo: and if you look in the array of methods you got from 15.methods.sort, you'll see :/ and :! and :== ... etc
otters has joined #ruby
monkegjinni has joined #ruby
mmitchell has quit [Remote host closed the connection]
failshell has quit [Quit: Lost terminal]
<harushimo>
ok
<harushimo>
thank you so much
maletor has joined #ruby
<ccooke>
harushimo: and if you want some more fun, look at what 15.method(:/) returns :-)
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
yakitori has joined #ruby
timmow has quit [Quit: is having a nap]
<harushimo>
this is cool
<ccooke>
harushimo: this is why Ruby gets so much metaprogramming - because the tools and introspection are so good
bobbbo has joined #ruby
<harushimo>
both ruby and rails are high in demand
arturaz has quit [Ping timeout: 264 seconds]
<harushimo>
I just never done a project. I'm getting into it now
Spooner has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
yakitori has quit [Remote host closed the connection]
mmitchell has joined #ruby
okapi has joined #ruby
yakitori has joined #ruby
mvangala has joined #ruby
lectrick has quit [Changing host]
lectrick has joined #ruby
lggr has joined #ruby
<harushimo>
ccooke: I appreciate the tutorial
<Xeago>
this proper english: "Queries will be executed in a map-reduce like fashion."?
<ccooke>
harushimo: No problem
matti has quit [Changing host]
matti has joined #ruby
<ccooke>
Xeago: it's understandable, although it doesn't actually communicate much :-)
bapa_ has quit []
ttt has joined #ruby
<Xeago>
The response speed can be easily influenced by the amount of nodes and the amount of replica's. Queries will be executed in a map-reduce like fashion.
<Xeago>
The response speed can be easily influenced by the amount of nodes and the amount of replica's. Queries will be executed in a map-reduce like fashion when increasing the number of replica's. *
<Spooner>
It is replicas, not replica's
<RailWolf>
lol
<Xeago>
is it understandable in context?
matrixise has quit [Ping timeout: 252 seconds]
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
aoshel has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
fcoury has joined #ruby
ryanlecompte has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
chrishunt has joined #ruby
Villadelfia has joined #ruby
matthewrobbins has quit [Ping timeout: 265 seconds]
<shevy>
if I would have a company and hire smart people, I'd hire you right away
<Xeago>
why?
<shevy>
you left the impression of a clever person
<Xeago>
I am baffled by you saying that out of seeming randomness!
<shevy>
there is no randomness! look at what you wrote!
<shevy>
but alas I have no company :(
<musl>
That apostrophe totally made the room, man.
<Xeago>
elasticsearch.org it's documented there
<shevy>
musl, yeah and also that the sentence was ended with '.' properly, just look at my sentences
<Xeago>
that apostrophe is embarrassing
<shevy>
lol
<matti>
?
<Xeago>
shevy: it's mostly copypasted from a draft
tiripamwe has joined #ruby
<Xeago>
my normal talking on irc does not include a period :)
<Xeago>
shevy: xeago.github.com/ and xeago.github.com/graduation
baroquebobcat has joined #ruby
moshef has joined #ruby
<musl>
Sigh. Pop culture reference failure. s/made the room/tied the room together, dude/
<moshef>
RubyPanther bnag hope any of you are here :)
<moshef>
bnagy that is
<RubyPanther>
I just turned on my screen, creepy... lol
<moshef>
:)
<moshef>
I'm tracking you :D
<RubyPanther>
Well I hope you enjoyed the show lolol
<moshef>
anyhow, I need help with some improvement to the regex we did
<moshef>
:)
lggr has quit [Ping timeout: 240 seconds]
<moshef>
using text.scan(/(?:#{loose_words_array.join("|")})|(?:\b(?:#{exact_words_array.join("|")})\b)/) to scan for loose and exact matches
<RubyPanther>
That is the problem with regex, they are powerful but always need improvement
<moshef>
the thing is, I need to know the location of the words that were found. is that possible?
ph^ has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 240 seconds]
<moshef>
I'm splitting up the text into sentences by split("."), so I'd like to know in which sentence those words were being caught
<moshef>
is there an easy way of doing it?
<Xeago>
yuck, that's ugly
<RubyPanther>
yeah, if you use a block to loop then you can use a match object (or Perl-style $-vars)
<Xeago>
split at ". " atleaast
daniel_- has joined #ruby
<moshef>
RubyPanther: little example please?
<RubyPanther>
Yeah, I don't like that split either
<Xeago>
1993. The best year ever
tiripamwe has quit [Remote host closed the connection]
<Xeago>
hmm, that is actually 2 sentences
<Xeago>
abc, i.e. hello!
Guest15975 has quit [Quit: Lost terminal]
<moshef>
I have no problem with sentences being splitter incorrectly. I might have one day, and then I'll take care of that.
<moshef>
right now my problem is that I need the context of the words caught
<Xeago>
why are you splitting anyways?
<moshef>
to understand the context of the words
<moshef>
or at leas try to
<moshef>
least*
<Xeago>
can't you do occurrences?
<RubyPanther>
Well, if you split into strings and then iterate and then scan each chunk, you already know right before the #scan line what chunk you're on
<Xeago>
and then take 3 takens before, and 3 tokens after
hbpoison has joined #ruby
<moshef>
RubyPanther: exactly, but the problem is - I need to search the entire text, not each sentence separately.
Rydefalk has joined #ruby
<moshef>
so I do split each sentence and iterate, but in each iteration I have to search the entire thing
brianpWins has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<moshef>
or maybe I should scan both, and then do something with it, let me think
lggr has joined #ruby
<Xeago>
"It must not have a single point of failure unless unavoidable with reasonable means." I don't like the latte rpart, it should not have a spof if it would become too expensive for example
<RubyPanther>
splitting is a waste of resources unless you're going to keep the lines around for later
ryanlecompte has quit [Read error: Connection reset by peer]
<RubyPanther>
in this case the letter o
<moshef>
RubyPanther: yeah, I want to refactor it, I know splitting is a very very bad idea
<moshef>
and now I have to, I'm glad.
ryanlecompte has joined #ruby
evilsushi has quit [Quit: Lost terminal]
Morkel has joined #ruby
<moshef>
so now it returns the location of the word, right?
sneakyness_wk has joined #ruby
deryl has quit [Quit: Leaving.]
<RubyPanther>
Usually you only need to refactor the regex if you have a ^ $ and needed \A \Z or whatever
<moshef>
hmm I think I'm still missing my goal. I'll try to make a gist explain what I'd like to do
<moshef>
give me a sec
lggr has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
apok has joined #ruby
<RubyPanther>
Regexp.last_match gives you a MatchData object, because scan just feeds you the string that matched, and then you can call #begin(0) or #offset(0) for the start of the first match (there should be only one each time used this way)
elaptics is now known as elaptics`away
<RubyPanther>
There is also some $perl global that would already have the offset
shevy has joined #ruby
futilegames has joined #ruby
lggr has joined #ruby
noxoc has quit [Quit: Leaving.]
w400z has quit [Quit: Computer has gone to sleep.]
<moshef>
I might be doing it from the wrong angle so far, so let me know how you will approach this problem
lggr has quit [Ping timeout: 240 seconds]
TheShadowFog has joined #ruby
apok has quit [Remote host closed the connection]
apok has joined #ruby
macmartine has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
<RubyPanther>
moshef: okay, so you probably do need to split(/\s*\.\s*/) and then you have to decide based on your data if you want to check for ignore or match first. If there is an ignore word, you can just next and then if there are matches. So then you'll just have the first part of the regex from yesterday, not the whole madness
lggr has joined #ruby
<moshef>
so basically yeah, I need to return the caught words and the entire sentence (or just the entire sentence and then scan it again for the words), and then just iterate over sentences and ignore what needs to be ignore.
<RubyPanther>
Not clear if you really need the offsets or not
<moshef>
RubyPanther: how do I get the entire sentence back then?
<moshef>
how else?
moted has joined #ruby
<RubyPanther>
moshef: in most cases it will be more efficient to skip first and match after, since if you're skipping first you avoid the second regex and if you're skipping after, you always do both
<moshef>
what is the first part of the regex? I do have 2 arrays (loose and exact), I just removed the exact to simplify this problem
deryl has joined #ruby
<moshef>
I can add it..
<RubyPanther>
moshef: because you're splitting on it, just use a block form of the split
philcrissman has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<moshef>
sorry I lose you
SeySayux has joined #ruby
<RubyPanther>
"foobar.\nponies!\n".split(/\s*\.\s*/){|sentence| ... match against a line }
dmiller has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
wallerdev has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
<RubyPanther>
"foobar.\nponies!\n".split(/\s*\.\s*/).each{|sentence| next if sentence.match(/\bpon(?:y|ies?)s\b/) ; puts sentence } # skips ponies
adambeynon has joined #ruby
c0rn_ has joined #ruby
chrismcg is now known as zz_chrismcg
iocor is now known as samphippen
<RubyPanther>
moshef: so finally we have: "foobar.\nponies!\n".split(/\s*\.\s*/).each_with_index{|sentence,i| next if sentence.match(/\bpon(?:y|ies?)s\b/) ; sentence.scan(/bar|baz/){|s| m = Regexp.last_match; puts "%s saw at offset %d in sentence %d" % [s,m.begin(0),i] } }
c0rn_ has quit [Client Quit]
<RubyPanther>
sorry I wrote the whole thing for you, I got carried away. I better drink some coffee before I start scribbling on the walls, too.
dmiller has joined #ruby
<moshef>
RubyPanther: don't think I'd have gotten so far
<moshef>
hmm
darthdeus has joined #ruby
robozahn has joined #ruby
<moshef>
although I think I made it already
<moshef>
just had some small logic problem, but I'll text your insane regex
<darthdeus>
hey guys, any of you work in sweden? :)
peneconleche has joined #ruby
c0rn_ has quit [Client Quit]
<moshef>
RubyPanther: can you run it?
<RubyPanther>
I wrote 5 lines of code for a client in Sweden once, does that count?
<shevy>
YES
eldariof has joined #ruby
headius has joined #ruby
<RubyPanther>
moshef: my example I pasted directly from irb (ruby 2.0)
Spooner has quit [Ping timeout: 252 seconds]
<shevy>
RubyPanther is the man
xsdg has quit [Ping timeout: 268 seconds]
dmiller has quit [Ping timeout: 244 seconds]
peneconleche has quit [Client Quit]
jeffreybaird has quit [Quit: jeffreybaird]
ncr100 has joined #ruby
jarred has joined #ruby
etherdev has quit [Read error: Operation timed out]
niklasb has joined #ruby
<moshef>
RubyPanther: using rib 1.8.7. anyhow ill try to play with it myself a bit
<moshef>
thanks
thisirs has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
emmanuelux has joined #ruby
adamkittelson has joined #ruby
<RubyPanther>
it should be backwards compatible to whichever version added #each_with_index :)
<moshef>
it doesn't fail for that
<moshef>
says expecting } after b/)
shiki has joined #ruby
brianpWins has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
xclite has quit [Ping timeout: 260 seconds]
ttt has joined #ruby
baroquebobcat has joined #ruby
mahmoudimus has joined #ruby
sheerun has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
yakitori has quit [Ping timeout: 240 seconds]
vaclavt has joined #ruby
ben_alman has quit [Excess Flood]
philcrissman has joined #ruby
bawer has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
xsdg has joined #ruby
bawer has joined #ruby
blischalk has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
c0rn_ has joined #ruby
ltsstar has joined #ruby
ben_alman has joined #ruby
sepp2k1 has joined #ruby
mlue has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
slainer68 has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
c0rn_ has quit [Client Quit]
lggr has joined #ruby
mahmoudimus has quit [Ping timeout: 264 seconds]
niklasb has quit [Ping timeout: 246 seconds]
c0rn_ has joined #ruby
reuf has quit [Quit: Leaving]
billiam has quit [Read error: Connection reset by peer]
billiam has joined #ruby
ph^ has joined #ruby
dmiller_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 265 seconds]
moshef has quit [Quit: moshef]
lggr has joined #ruby
voodoofish430 has joined #ruby
GoHuyGo has quit [Quit: Leaving]
phantasm66 has joined #ruby
xuser has joined #ruby
peneconleche has joined #ruby
fredjean has joined #ruby
<lectrick>
So https://c9.io (cloud9 IDE, ideal for remote pairing on the same code) supports Ruby 1.9.3 now and apparently has RVM support.
berserkr has quit [Quit: Leaving.]
<harushimo>
I'm looking at ruby code. what does puts do in a program
<harushimo>
is it like a print statement?
<xuser>
harushimo: why are you looking at ruby code?
<harushimo>
I'm learning ruby
<RubyPanther>
I'm sure the first chapter of any beginner book will cover puts
<xuser>
harushimo: wrong way
kannix has quit [Ping timeout: 245 seconds]
<phantasm66>
if i have a method that takes a single parameter ( method_name(parameter) ). and i want to check the literal name of the parameter. for example, method_name(test).... how do i check that if a literal parameter name?
<harushimo>
wrong way?
<xuser>
harushimo: get a book
<phantasm66>
in that example, the parameter is test
<m3pow>
harushimo , get this mate : The Ruby Programming language
monkegjinni has quit [Remote host closed the connection]
<harushimo>
I am using a book
<m3pow>
it's a book from O'Reilly and it covers everything you need to know
<harushimo>
Learn Ruby the hard way
daniel_- has quit [Quit: WeeChat 0.3.8]
<xuser>
harushimo: try reading it
<m3pow>
and it's written by the one that created ruby
lggr has quit [Ping timeout: 256 seconds]
<harushimo>
it doesn't explain puts statement. I'm pretty sure it is similar to print
<m3pow>
pretty much yes !
jrist is now known as jrist-afk
mrdodo has joined #ruby
mrdodo has quit [Remote host closed the connection]
mrdodo has joined #ruby
<Hanmac>
phantasm66 in ruby you cant get the parametername of a variable
lggr has joined #ruby
bobbbo has quit [Quit: bobbbo]
sheerun has joined #ruby
Virunga has quit [Remote host closed the connection]
<harushimo>
thanks
shiki_ has joined #ruby
shiki has quit [Read error: Connection reset by peer]
davidcelis has quit [Quit: K-Lined.]
<Hanmac>
harushimo { puts 1,2,3 } its the same as { print [1,2,3].join("\n")+"\n" }
flip_digits has joined #ruby
<chiel>
in ruby if you say something like `myVar ||= 0` it's the same as saying `myVar = myVar || 0`, right?
<harushimo>
okay. I started reading that too
<harushimo>
thank you so much
<Mon_Ouie>
For variables, yes
dmiller has joined #ruby
<harushimo>
I'm asking a lot of basic questions. Sorry about that
<Mon_Ouie>
When "myVar" is actually something like an_object.an_attribute, it gets more complicated
<chiel>
ah
<chiel>
well I'm doing the latter form, so I could just shorten it, I think? :)
<Mon_Ouie>
Yes
Russell^^ has joined #ruby
jeffreybaird has joined #ruby
<Mon_Ouie>
(For method calls like foo.bar, it's more like foo.bar || (foo.bar = 0), but still not quite that for foo.bar.baz)
<Hanmac>
"complicated" is a nice word for this high-saccharid-syntax sugar :D
lggr has quit [Ping timeout: 265 seconds]
locriani_ has joined #ruby
w400z has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
futilegames has quit [Quit: futilegames]
slicslak has joined #ruby
lggr has joined #ruby
blazes816 has quit [Quit: blazes816]
locriani has quit [Ping timeout: 252 seconds]
bluenemo has quit [Read error: Operation timed out]
jbw has quit [Ping timeout: 264 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Keva161 has joined #ruby
fermion has quit [Ping timeout: 244 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
bluenemo has joined #ruby
lggr has joined #ruby
Keva161 has quit [Client Quit]
hbpoison_ has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
frogprince_mac has quit [Ping timeout: 264 seconds]
peneconleche has quit [Read error: Connection reset by peer]
GoGoGarrett has joined #ruby
hbpoison_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
stopbit has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
w400z has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
vaclavt has quit [Quit: vaclavt]
hbpoison has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
peneconleche has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Forevernade has joined #ruby
bbttxu has joined #ruby
lggr has joined #ruby
shiki has joined #ruby
jbw has joined #ruby
glyytchy has joined #ruby
Appineer has quit [Remote host closed the connection]
ScottNYC has joined #ruby
shiki_ has quit [Ping timeout: 264 seconds]
<bricker>
Should switch blocks be indented? (according to convention)
kermes has quit [Remote host closed the connection]
scrogson has joined #ruby
<Mon_Ouie>
If you're talking about "case", "when" is on the same column as "case" — but the body itself is indented
lggr has quit [Ping timeout: 256 seconds]
joelsbeard has joined #ruby
jarred has quit [Ping timeout: 264 seconds]
jimeh has quit [Ping timeout: 265 seconds]
ttt has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
theRoUS_ has quit [Ping timeout: 246 seconds]
blazes816 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
<jwg2s>
i was looking for something similar to == that did what i wanted
nateberkopec has joined #ruby
<jwg2s>
don't think i made that very clear
lushious has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
iamjarvo has quit [Quit: WeeChat 0.3.9-dev]
c0rn_ has quit [Quit: Computer has gone to sleep.]
areil has quit [Remote host closed the connection]
Tearan has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Tearan has quit [Client Quit]
mercwithamouth has joined #ruby
lushious has joined #ruby
ianbrandt has joined #ruby
ianbrandt has quit [Excess Flood]
bradleyprice has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
stephenjudkins has joined #ruby
vaclavt has joined #ruby
lggr has joined #ruby
Chryson has joined #ruby
ianbrandt has joined #ruby
Guest48370 has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
daniel_- has joined #ruby
joelsbeard has quit [Ping timeout: 246 seconds]
baphled has quit [Ping timeout: 245 seconds]
sepp2k1 has quit [Remote host closed the connection]
invisime has left #ruby [#ruby]
<Dwarf>
What's everyone's IDE of choice?
<eka>
Dwarf: IDE? RubyMine
mmitchell has quit [Remote host closed the connection]
<Hanmac>
i use Eclipse
<mr-rich>
Hello. This is probably a simple question: I want to iterate through an array of names and capitalize them. I am trying to do this in initialize part of a class. Any thoughts?
lggr has quit [Ping timeout: 240 seconds]
scrogson has left #ruby [#ruby]
mmitchell has joined #ruby
scrogson_ has joined #ruby
<eka>
mr-rich: .each?
scrogson_ is now known as scrogson
havenn has joined #ruby
<mr-rich>
eka: yes ... I used .each and I have a test with respond_to?("each"), but it doesn't seem to be working ...
<Hanmac>
mr-rich names.map(&:capitalize) or names.map!(&:capitalize) or names.each(&:capitalize!)
schickung has quit [Quit: schickung]
<mr-rich>
Hanmac: Thanks ... I'll try that ...
arietis has joined #ruby
ben_alman has quit [Excess Flood]
elaptics`away is now known as elaptics
davidcelis has joined #ruby
mrdodo is now known as dodo_
dodo_ is now known as icole
Beoran_ has quit [Read error: Connection reset by peer]
budha has quit []
lggr has joined #ruby
etherdev has joined #ruby
Xeago has joined #ruby
ben_alman has joined #ruby
adambeynon has joined #ruby
shiki_ has joined #ruby
triptec has quit [Ping timeout: 264 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
<mr-rich>
Hanmac: .map doesn't seem to be a method ...
twoism has joined #ruby
shiki has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
etehtsea has joined #ruby
robozahn has quit [Ping timeout: 265 seconds]
Tearan has joined #ruby
<Hanmac>
mr-rich, it is, make me a pastie of your code at pastebin.com or other pages
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
c0rn_ has joined #ruby
lggr has joined #ruby
<mr-rich>
Hanmac: Gimme a minute or five ... I'm trying something different. I just figured out that the class initialize was the wrong place for the code in the first place ... I'll let you know ...
adamkittelson has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
peneconleche is now known as peneconleche|awa
tvw has quit [Remote host closed the connection]
Monie has quit [Quit: Quit]
tvw has joined #ruby
twoism has joined #ruby
lggr has joined #ruby
ttt has joined #ruby
cakehero has joined #ruby
jenrzzz has quit [Quit: leaving]
jenrzzz has joined #ruby
chrisbolton has joined #ruby
matrixise has joined #ruby
kirun has joined #ruby
adelcampo has joined #ruby
jeffreybaird has joined #ruby
eignerchris has joined #ruby
jimeh has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<mr-rich>
Hanmac: would it be somethign like names = names.map(&:capitalize) or just by itself?
adelcampo has quit [Ping timeout: 265 seconds]
guns has joined #ruby
<Mon_Ouie>
names.each(&:capitalize!) would do the change in-place (instead of returning a new array with capitalized new strings)
adamkittelson has joined #ruby
lggr has joined #ruby
peneconleche|awa has quit [Quit: Leaving...]
<Mon_Ouie>
You should make sure the string isn't used in any other place when you perform such a change though
<Hanmac>
map(&:capitalize) returns an new Array with new Strings, map!(&:capitalize) change the array itself but make new strings, each(&:capitalize!) change the strings inside the array so no new object
paolooo has quit [Ping timeout: 245 seconds]
<mr-rich>
Mon_Ouie: Brilliant!
vlad_starkov has joined #ruby
adamkittelson has quit [Ping timeout: 244 seconds]
luckyruby has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<mr-rich>
So, let me see if I have this right ... the &: basically sez "apply to all elements"?
Chryson has quit [Quit: Leaving]
mmitchell has quit [Remote host closed the connection]
zhando has joined #ruby
the_jeebster1 has joined #ruby
<the_jeebster1>
with the CSV class, is it possible to specify only a certain row to act upon?
lggr has quit [Ping timeout: 265 seconds]
<Mon_Ouie>
No, it's a way of passing any object as a block to a method
<Mon_Ouie>
That you pass a block to #map and #each means it will be called for each element
nanderoo has quit [Quit: Leaving.]
arubin has joined #ruby
blazes816 has quit [Quit: blazes816]
<mr-rich>
monobit_: makes sense ... thanks
<Mon_Ouie>
foo(&bar) passes bar as a block to foo; in the above example, bar is just :capitalize (&: isn't an operator, thus)
blazes816 has joined #ruby
lggr has joined #ruby
<zhando>
if I do: somearray.sort.each_index {|i| ... } can I reference the sorted array somehow in the block like sa[i+1]? what do I use for sa?
vlad_starkov has quit [Remote host closed the connection]
<Mon_Ouie>
That's what variables are here for
<shevy>
zhando just give it a name
<shevy>
array = [1,2,3]
<shevy>
array.sort.each_index {|i| array[i+1] }
<Mon_Ouie>
Also, if it's just that, you might want to use #each_cons or
c0rn_ has joined #ruby
rakunHo has joined #ruby
<Mon_Ouie>
(or something else, I don't know*)
<shevy>
anyone knows of a service that allows you to upload images to a remote site quickly? and then ideally use ruby?
pskosinski has quit [Ping timeout: 276 seconds]
<zhando>
hmmm.. ok thanks..
<shevy>
I think imageshack requires one to register :(
<shevy>
SomeSite.upload("my_desktop.png")
akemEikko has joined #ruby
fir_ed has quit [Quit: Leaving]
<_7894>
shevy: http post does not work for you?
lggr has quit [Ping timeout: 265 seconds]
geekbri has quit [Remote host closed the connection]
<mr-rich>
Ok ... asked before but I'll ask again: Best Open Sourde Editor/IDE for ruby with auto completion
<stan_man_can>
Seems simple but am I doing something wrong?
roz-monokeros has joined #ruby
<roz-monokeros>
hello
<roz-monokeros>
is there a way to get an array with all the attributes I defined in a Class using attr_reader?
twoism has quit [Remote host closed the connection]
<_7894>
stan_man_can, Define your problem and place a question if you want an answer.
<Mon_Ouie>
No, because as far as Ruby is concerned they all are regular methods
<Mon_Ouie>
Documentation tools (e.g. RDoc or YARD) usually distinguish them from other methods though
<stan_man_can>
What about instance_variables?
<Mon_Ouie>
attr_reader defines a method that reads a value from an instance variable
Coolhand has quit [Remote host closed the connection]
<Mon_Ouie>
That doesn't mean any instance of the class will have that instance variable set to something
<stan_man_can>
_7894: when I open the url which is a csv ruby doesn't appear to be getting the actual contents. if I do can_csv.to_s it just outputs
<stan_man_can>
>> can_csv.to_s
<stan_man_can>
=> "#<StringIO:0x00000101163008>"
<Mon_Ouie>
(There's no such thing as "defining an instance variable", since they're created when needed)
<_7894>
stan_man_can, can_csv.read
Goles has joined #ruby
<stan_man_can>
_7894: ah that works
billiam has quit [Quit: Leaving]
GoHuyGo has quit [Quit: Leaving]
<Mon_Ouie>
stan_man_can: open(…) returns an IO object (or duck-typed IO in the case of open-uri)
<Mon_Ouie>
Never a String anyway
answer_42 has quit [Quit: WeeChat 0.3.8]
<_7894>
stan_man_can, The thing is it's StringIO, not String, hence read, or each_line or other method from IO class.
<stan_man_can>
Mon_Ouie: Ahh gotcha. Sorry guys I'm coming from a PHP world. Everything is different there.
pskosinski has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<stan_man_can>
_7894: That makes more sense. It's my mistake for assuming StringIO == String
<stan_man_can>
Is there a clean way to parse through the CSV or should I just go line by line and do a .split(";;")
baphled has joined #ruby
Vainoharhainen has joined #ruby
<Mon_Ouie>
require 'csv'
<Mon_Ouie>
See the documentation of the CSV class for details
<Mon_Ouie>
(well, more than details)
lggr has joined #ruby
vlad_starkov has joined #ruby
AlbireoX has quit [Remote host closed the connection]
Neomex has joined #ruby
bigmcq77 has joined #ruby
AlbireoX has joined #ruby
ltsstar has quit [Quit: ltsstar]
<deryl>
ok, sort of confused here. I have dtf gem listed as a dep of dtf-session. In 'dtf' I have a couple thor tasks. How do I make those tasks available to 'dtf-session'? basically I need to be able to execute the thor tasks in the dtf gem within the directory structure of dtf-session, and be listable (bundle exec thor list). I thought if 'dtf' was a dependency of 'dtf-session' those tasks would be available.
the_jeebster1 has quit [Read error: Connection reset by peer]
<deryl>
the dtf thor tasks copy some files around that this dtf-session gem needs as well
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
Peter-W has quit [Read error: Connection reset by peer]
Peter-IT_ has joined #ruby
AlbireoX has quit [Ping timeout: 244 seconds]
Peter-IT_ has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
chetan- has left #ruby [#ruby]
debill has joined #ruby
elaptics`away is now known as elaptics
lggr has quit [Ping timeout: 240 seconds]
Virunga has joined #ruby
joelsbeard has joined #ruby
<_7894>
stan_man_can, Anything particular to help with?
<stan_man_can>
_7894: Sorry I'm just trying to wrap my head around this all. I think you guys pointed me in the right direction though. If I can't get it from the documentation I'll ask again.
scrogson_ has joined #ruby
w400z has quit []
yxhvuud has quit [Ping timeout: 245 seconds]
maahes has quit [Ping timeout: 240 seconds]
Tearan has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
moshef has joined #ruby
moshef has quit [Client Quit]
__class__ has quit [Ping timeout: 256 seconds]
etherdev has quit [Ping timeout: 248 seconds]
scrogson_ is now known as scrogson
fantazo has quit [Remote host closed the connection]
__class__ has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
scrogson has left #ruby [#ruby]
bradleyprice has quit [Quit: bradleyprice]
ests has joined #ruby
lggr has joined #ruby
philcrissman has quit [Remote host closed the connection]
<shevy>
_7894 hmm not sure whether I tried it before or not...
ttt has joined #ruby
<_7894>
shevy: Mostly, it's just http post. Sometimes you need to post also some static data or in some cases dynamic data.
<lamba>
i can only assume i'm doing something super dumb here, i have: input = gets.chomp ; print input ; if input == 'y' and it's not even stopping for the input. This is in a rakefile.
jblack has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 248 seconds]
skogis has joined #ruby
RegEchse has joined #ruby
havenn has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 244 seconds]
pu22l3r has quit [Ping timeout: 256 seconds]
elaptics is now known as elaptics`away
snorkdude has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
ttt has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
adamkittelson has joined #ruby
pettsson has joined #ruby
ests has quit []
skogis has quit [Client Quit]
lggr has joined #ruby
tgraham has quit [Quit: Leaving...]
Axsuul has joined #ruby
belak has left #ruby [#ruby]
wpaulson has joined #ruby
dmiller has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
fir_ed has joined #ruby
fish_ has quit [Read error: Operation timed out]
matthewrobbins has joined #ruby
skogis has joined #ruby
<lamba>
if i use STDIN.getc it works once, then the second time it skips it entirely, ugh.
monkegjinni has joined #ruby
krawchyk has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
Mchl has quit [Ping timeout: 264 seconds]
fish_ has joined #ruby
jblack has joined #ruby
snorkdude has quit [Remote host closed the connection]
eldariof has quit []
lggr has joined #ruby
<blazes816>
lamba: $20 bucks it's a left over character in the buffer
<blazes816>
you type "y<enter>", then consume y, but not enter
<lamba>
yeah, thats my conclusion also.
mmitchell has joined #ruby
<lamba>
just pouring through trying to work out how to flush stdin. i kind of figured STDIN.flush would do it.
hool has joined #ruby
<blazes816>
never done any of this in ruby but sounds like it
bradleyprice has joined #ruby
diegoviola has joined #ruby
<hool>
hi
<blazes816>
while(STDIN.getc)
<blazes816>
or something perhaps
w400z has joined #ruby
<lamba>
kind of ripping my hair out.
Mchl has joined #ruby
bluenemo has quit [Remote host closed the connection]
hool has left #ruby [#ruby]
nwest has quit [Quit: Computer has gone to sleep.]
<Spooner>
Maybe using rackup would be more correct? I gave up on that project when I realised that free dynos turn themselves off, so it sort of became pointless :D
<workmad3>
:D
tgraham has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
<workmad3>
just realised... with rack, you can create a hello world web server in fewer characters than fizzbuzz...
<Spooner>
Though since then I found out how to keep them alive. I'll get back to it eventually...
<Spooner>
I'm sure it will run on my system, but it won't run on Heroku (aforementioned .ru and bundler issues).
<Spooner>
And no point me testing from an old version that also doesn't work anyway. What does that prove?
<catphish>
shevy: i want to call read and write on a file without ruby doing any buffering, i effectively want to open a file and call linux's read/write methods directly
<catphish>
obviously converting strings as appropriate
arubin has joined #ruby
<catphish>
i assume ruby provides that functionality of the file is opened with the correct modes?
<Spooner>
catphish : You can turn off buffering (File#sync = true, I think) if that is what you mean.
Criztian has quit [Remote host closed the connection]
<catphish>
that will probably do what i want, thanks
<catphish>
i'll also be wanting to open files with specific flags (O_DIRECT, O_SYNC for example)
jonathanwallace has joined #ruby
<catphish>
basiclly i'm going to be working on a shared file so i need to ensure that its read and written in realtime
kenneth has joined #ruby
<catphish>
so coordinate writes with other hosts sharing the data
<kenneth>
hey there
<kenneth>
if i have a subclass of Hash, is there a way to coerce a hash into the subclass
Juul has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<workmad3>
kenneth: no
<workmad3>
kenneth: all you can do is create a new instance of your subclass with the same contents
ph^ has quit [Ping timeout: 256 seconds]
<workmad3>
kenneth: subclassing things like Hash and Array is generally ill-advised btw, it can cause weirdnesses
<Spooner>
catphish : Have a look at what File and IO offers. No reason to use magic flags if they are wrapped with ruby code that does the same thing.
axl_ has quit [Quit: axl_]
<catphish>
Spooner: makes sense, i want to make sure i know what it's doing though :)
<catphish>
shared access to data is somewhat dangerous :)
<Spooner>
kenneth : Yeah, there is no terribly good reason to subclass Hash. Maybe you mean to wrap it?
BrokenCog has quit [Ping timeout: 244 seconds]
Forevernade has quit [Read error: Connection reset by peer]
<catphish>
is it ever possible to change the class of an object?
<catphish>
i would assume not
<bricker>
Is there a way to get the focus-object for a switch statement? eg: case @name; when String: puts case_object; else puts "not string"
<kenneth>
wrapping it would work too but it'd be less elegant
lggr has joined #ruby
<workmad3>
kenneth: composition > inheritance
<Spooner>
catphish : Well, if you read http://www.ruby-doc.org/core-1.9.3/IO.html you will see that you can send stuff like O_RDONLY, etc, when creating the file so try passing your numbers in there.
philcrissman has quit [Remote host closed the connection]
<workmad3>
kenneth: and seriously... classes like Hash and Array don't work well as base classes
Forevernade has joined #ruby
<catphish>
Spooner: thanks
<workmad3>
kenneth: the ruby runtime does some internal optimisations with them that can seriously screw with subclasses (or at least, that's what I've read in the past)
<kenneth>
here's my use case. i want to build some utility model methods into the hash returned by the db
ryanf has joined #ruby
<kenneth>
might not be the best idea
mercwithamouth has joined #ruby
<workmad3>
kenneth: that sounds like a perfect case for composition
<kenneth>
but i wanted the user to be able to use the data like a regular hash
<workmad3>
kenneth: basically you want a hash decorator
<kenneth>
but then be able to do things like .save
<Spooner>
kenneth : Well, that is easy. my_hash.extend module_with_extra_stuff_in
<Spooner>
But again, I don't think this is the right way. I am just telling how to do it.
xyzodiac has quit [Quit: Computer has gone to sleep.]
<kenneth>
Spooner: what do you think is the right way?
hvq has joined #ruby
hbpoison has joined #ruby
xyzodiac has joined #ruby
_dave_h_d has joined #ruby
<Spooner>
Well, as I said, you aren't returning a hash if it has something like #save on it. I'd wrap it in another object and redirect the Hash methods it actually needs (def_delegators does this _really_ simply).
<Spooner>
Looks like it is looking for mysql header files. You probably need to install mysql externally.
lggr has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
<Synthead>
Spooner: mysql and the headers are installed (that's what the locate was supposed to indicate)
_dave_h_d has quit [Quit: _dave_h_d]
<Spooner>
Synthead : That's all I have, sorry :/
thillux_ has joined #ruby
thillux__ has joined #ruby
Nisstyre is now known as Nisstyre_
Nisstyre_ is now known as Nisstyre
<Synthead>
Spooner: do you know if I can pass an "include" path to gem?
<Hanmac>
Synthead: make me a pastie of mkmf.log
<Spooner>
kenneth workmad3 However, if you are just getting rows back from a database, why not use one of the many existing ORM systems rather than rolling your own?
<Spooner>
Synthead : Huh? You mean an include path to the C compiler?
<Synthead>
Spooner: yeah, cause mysql.h is on the system for sure
<Synthead>
Hanmac: getting it ready :)
<workmad3>
Spooner: I don't do this :)
dagnachewa has joined #ruby
<workmad3>
Spooner: I just happened to be echoing you because you type too fast :P
<Spooner>
In extconf.rb: $CFLAGS << %{ -I"path/to/include"}
thillux has quit [Ping timeout: 244 seconds]
<workmad3>
Synthead: is mysql_config available on your path?
<Spooner>
workmad3 : I was getting your attention, not telling you to do it that way :D
<workmad3>
Spooner: :D
tgraham has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
_bart has quit [Quit: _bart]
<Spooner>
Synthead Oops, yes, but that is not a useful place for you to add CFLAGS. You mean to gem. Er, you can. I can't remember how though.
<workmad3>
Synthead: the one which has -I/usr/include/mysql in it? :)
plu has joined #ruby
techhelp has joined #ruby
techhelp has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 245 seconds]
issyl0 has quit [Ping timeout: 600 seconds]
<deryl>
I have dtf gem listed as a dep of dtf-session. In 'dtf' I have a couple thor tasks. How do I make those tasks available to 'dtf-session'? basically I need to be able to execute the thor tasks in the dtf gem within the directory structure of dtf-session, and be listable (bundle exec thor list). Trying to build so that any dtf-* gem can call the dtf master gem's thor tasks and pull in files in dtf to the calling gem's dirs.
Bosma has quit [Ping timeout: 264 seconds]
<foysavas>
hey everyone, general question: why do you use IRC over things like twitter and q&a websites?
pettsson has quit [Remote host closed the connection]
<deryl>
websites take longer and 140 chars is not enough to discuss things especially when most of what we deal with matters in the details
<Spooner>
Because it is instant and inclusive.
<Synthead>
workmad3: 1 gem installed
<workmad3>
foysavas: because IRC rocks!
<Synthead>
workmad3: thanks!!
lggr has joined #ruby
<foysavas>
thanks for the answers all :-)
haxrbyte has quit [Ping timeout: 248 seconds]
<foysavas>
i miss the days when IRC was more popular, and when you would go to tech conference and there was an irc backchannel
<chiel>
has any of you used mongodb in ruby?
<workmad3>
Synthead: what was it with the cache then?
<Spooner>
I have, but not much.
<Spooner>
chiel : I used Mongoid once, at least.
<chiel>
i'm wondering about something that is (i think) very basic
<chiel>
i want to filter based on a property inside a document, except it's not at the root level
<Synthead>
workmad3: I'm under pressure to finish something, so I did the unspeakable
<Synthead>
workmad3: created a symlink
<Spooner>
Well, that rather depends on which ORM you are using, chiel
<chiel>
Spooner: i'm using the "mongo" gem
Forevernade has quit [Read error: Connection reset by peer]
<guest__>
I've used the mongomapper gem :p
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
<chiel>
it has .find() which allows to pass an object of properties to filter by the looks of it
emsilva has quit [Client Quit]
<chiel>
but in the tutorial it only shows how to query root level
Forevernade has joined #ruby
<workmad3>
Synthead: a symlink of what?
<workmad3>
Synthead: I'm confused and confuddled now :P
dagnachewa has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
hbpoison has joined #ruby
snorkdude has joined #ruby
mmitchell has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
tbbach has joined #ruby
chrisbolton has quit [Quit: chrisbolton]
<gfkjunior>
Hey ya'll. quick noob question. I'm trying to implement an aes ctr mode cipher but the official ruby openssl docs are terrible. How can I look at the 'openssl' source?
lggr has joined #ruby
<gfkjunior>
I know there is "gem search -r <term>"
<gfkjunior>
but that didn't find it...
ph^ has quit [Ping timeout: 256 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
thillux__ has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 245 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
digitalcakestudi has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
vlad_starkov has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
GoHuyGo has quit [Quit: Leaving]
Synthead has quit [Quit: p33 ba115]
schickung has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 264 seconds]
digitalcakestudi has joined #ruby
cantonic has quit [Quit: cantonic]
lggr has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
schickung has quit [Client Quit]
xyzodiac has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
<zhando>
somearray.compact.sort.each_index {|i| thatcompactsortedarray[i+1] unless i == thatcompactsortedarray.size - 1 ;# how would you get at that thingy?
lggr has joined #ruby
hvq has joined #ruby
akemEikko has quit [Ping timeout: 252 seconds]
justinmcp has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
cakehero has quit [Client Quit]
skogis has joined #ruby
fantazo has joined #ruby
glyytchy has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
ph^ has joined #ruby
gfkjunior has quit [Quit: Leaving]
cakehero has joined #ruby
jokar1 has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
jokar has quit [Ping timeout: 240 seconds]
fredjean has quit [Quit: Computer has gone to sleep.]