drago757 has quit [Read error: Connection reset by peer]
freeayu has quit [Ping timeout: 260 seconds]
drago757 has joined #ruby
emmanuelux has quit [Read error: Connection reset by peer]
adamkittelson has joined #ruby
Takehiro has joined #ruby
freeayu__ has quit [Read error: Connection reset by peer]
savage- has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
ZachBeta has joined #ruby
jtgiri_ has joined #ruby
kn330 has quit [Ping timeout: 264 seconds]
Takehiro has quit [Ping timeout: 244 seconds]
Spooner has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
fawningab1ot1c has quit [Quit: fawningab1ot1c]
areil has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
fiercetaste has joined #ruby
bradhe has joined #ruby
Guedes has quit [Quit: sleep...]
infinitiguy has quit [Quit: Leaving.]
mikehaas763 has left #ruby ["Leaving"]
jarred has quit [Quit: jarred]
t52017 has quit [Remote host closed the connection]
t65440 has joined #ruby
banisterfiend has quit [Ping timeout: 272 seconds]
MasterIdler__ has joined #ruby
MasterIdler__ has quit [Client Quit]
jgrevich has quit [Quit: jgrevich]
adeponte has quit [Remote host closed the connection]
mikepack has joined #ruby
tchebb has quit [Ping timeout: 246 seconds]
MasterIdler_ has quit [Read error: Operation timed out]
ZachBeta has quit [Quit: Computer has gone to sleep.]
ckrailo has quit [Quit: Computer has gone to sleep.]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
radic_ is now known as radic
jenrzzz has joined #ruby
adeponte has joined #ruby
dmiller has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
ghanima has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
chimkan has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
SCommette has quit [Quit: SCommette]
havenn has joined #ruby
freeayu__ has joined #ruby
daidoji has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
GoGoGarrett has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
vdf has joined #ruby
BrokenCog has quit [Quit: leaving]
Banistergalaxy has joined #ruby
bradhe has quit [Remote host closed the connection]
h4mz1d has joined #ruby
seanstickle has quit [Quit: seanstickle]
manizzle has joined #ruby
d3vic3 has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
x77686d has joined #ruby
d3vic3 has joined #ruby
vdf has quit [Quit: Leaving]
ZachBeta has joined #ruby
Takehiro has joined #ruby
drago757 has quit [Read error: Connection reset by peer]
freeayu3 has joined #ruby
drago757 has joined #ruby
ZachBeta has quit [Client Quit]
frozenskater5432 has joined #ruby
freeayu__ has quit [Ping timeout: 245 seconds]
ChadStud1uffin has quit [Quit: leaving]
sirish has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
tchebb has joined #ruby
uris has quit [Ping timeout: 245 seconds]
c0rn_ has quit []
aristidesfl has quit []
<frozenskater5432>
eek! I am trying to make a module but when I run this , http://pastie.org/4601170 , in irb (which returns true) and then I put "Basic.add(1,2)" it returns that add isn't defined.
aristidesfl has joined #ruby
abstrusenick has joined #ruby
davidcelis has joined #ruby
aristidesfl has quit [Client Quit]
bradhe has joined #ruby
h4mz1d has quit [Ping timeout: 244 seconds]
sirish has quit [Ping timeout: 272 seconds]
<[Neurotic]>
Dumb question, should there be a full stop after Basic?
t65440 has quit [Remote host closed the connection]
gmci has joined #ruby
t83920 has joined #ruby
<[Neurotic]>
Also, are how are you loading this file into your IRB session?
manizzle has quit [Remote host closed the connection]
<abstrusenick>
any face matching lib for ruby?
freeayu3 has quit [Read error: Connection reset by peer]
<frozenskater5432>
Neurotic: 'irb -I.' in terminal and "require 'bm.rb'" in irb
freeayu3 has joined #ruby
datapolitical has joined #ruby
pingfloyd has joined #ruby
BobuSumisu has quit [Ping timeout: 252 seconds]
freeayu has joined #ruby
<[Neurotic]>
So if you type 'Basic.instance_methods' in the IRB, what do you get?
<[Neurotic]>
you've left the line numbers in your example, so it's hard to re-run
BobuSumisu has joined #ruby
freeayu3 has quit [Ping timeout: 260 seconds]
datapolitical has quit [Quit: This computer has gone to sleep]
<frozenskater5432>
Neurotic: it says :add as one of them but still returns 'NoMethodError: undefined method `add' for Basic:Module' when its called
machty has quit [Ping timeout: 244 seconds]
<bnagy>
frozenskater5432: I didn't look at the code, but you need to define either self.add or use module_function :add
apok has joined #ruby
<[Neurotic]>
oh yeah that is a good point
<[Neurotic]>
they aren't class methods
datapolitical has joined #ruby
<bnagy>
(morning, rubyoids)
* [Neurotic]
facepalms
* fowl
is a rubynaut
daniel_hinojosa has quit [Quit: Leaving.]
* davidcelis
is a rubyista
mikepack has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
<bnagy>
wouln't that be feminine?
<davidcelis>
no
<bnagy>
hyperforeignism?
<davidcelis>
by that logic, all baristas are women
<davidcelis>
which would make you a sexist, sir
<bnagy>
no, by that logic male barista are misnamed
<davidcelis>
baristo?
AlbireoX has quit [Remote host closed the connection]
<davidcelis>
that ain't a word, dawg
<bnagy>
which is still not saying I'm right
AlbireoX has joined #ruby
null- has left #ruby [#ruby]
<bnagy>
lots of support for baristo, but I think it's wrong
Foxhound-Z has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
manolo has joined #ruby
Banistergalaxy has joined #ruby
heisenmink has joined #ruby
Tref has joined #ruby
zigomir has joined #ruby
senny has quit [Remote host closed the connection]
beneggett has joined #ruby
senny has joined #ruby
AndChat| has quit [Ping timeout: 246 seconds]
manolo has quit [Ping timeout: 260 seconds]
t28189 has quit [Remote host closed the connection]
t6632 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
freeayu__ has joined #ruby
bradhe has quit [Remote host closed the connection]
lateau has joined #ruby
freeayu3 has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
mahmoudimus has quit [Client Quit]
Hanmac1 is now known as Hanmac
Adran has quit [Read error: Operation timed out]
verto is now known as verto|off
Quadlex has quit [Read error: Operation timed out]
ph^ has quit [Remote host closed the connection]
manolo has joined #ruby
Quadlex has joined #ruby
lorn has quit [Ping timeout: 246 seconds]
aantix has quit [Quit: aantix]
Tref has quit [Quit: Tref]
cloud|droid has joined #ruby
lorn has joined #ruby
Morkel has joined #ruby
sixtycakes has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
Adran has joined #ruby
savage- has quit [Remote host closed the connection]
Hanmac has quit [Read error: Operation timed out]
Takehiro has quit [Remote host closed the connection]
nazty has joined #ruby
answer_42 has joined #ruby
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
dangerousdave has joined #ruby
burgestrand has quit [Quit: Leaving.]
naz has quit [Ping timeout: 260 seconds]
djdb has joined #ruby
phrame has quit [Ping timeout: 246 seconds]
freeayu has joined #ruby
TheLZA has joined #ruby
zommi has joined #ruby
TheLZA has quit [Client Quit]
Taichouchou2 has quit [Remote host closed the connection]
TheLZA has joined #ruby
freeayu__ has quit [Ping timeout: 248 seconds]
inimino has quit [Ping timeout: 246 seconds]
rking has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby
Abbas5 is now known as Abbas|
phrame has joined #ruby
Quatrerwin has joined #ruby
Quatrerwin has left #ruby [#ruby]
aantix has joined #ruby
Taichouchou2 has joined #ruby
t6632 has quit [Remote host closed the connection]
t77178 has joined #ruby
BobuSumisu has quit [Ping timeout: 264 seconds]
Asher has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
Hanmac has joined #ruby
xorigin has joined #ruby
_bart has quit [Quit: _bart]
lateau has quit [Quit: Leaving.]
heisenmink has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
rking has joined #ruby
Urtokk_ is now known as Urtokk
banisterfiend has joined #ruby
Takehiro has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
maesbn has quit [Remote host closed the connection]
maesbn has joined #ruby
_adeponte has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
maletor has quit [Client Quit]
ph^ has joined #ruby
edwardj has joined #ruby
Abbas| has quit [Ping timeout: 246 seconds]
manolo has quit [Ping timeout: 264 seconds]
laen__ has joined #ruby
etehtsea has joined #ruby
laen_ has quit [Ping timeout: 264 seconds]
etehtsea is now known as Guest66557
madhatter has quit [Ping timeout: 264 seconds]
madhatter has joined #ruby
manolo has joined #ruby
dhruvasagar has joined #ruby
aganov has joined #ruby
aantix has quit [Quit: aantix]
apok has joined #ruby
tgriffin2081 has quit [Ping timeout: 260 seconds]
haxrbyte_ has joined #ruby
RudyValencia- is now known as RudyValencia
Guest5516 has joined #ruby
dekroning has joined #ruby
Takehiro has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
Guest5515 has quit [Ping timeout: 256 seconds]
cezar has joined #ruby
LouisGB has joined #ruby
Z_Mass has quit [Quit: Leaving]
cezar has quit [Client Quit]
g_rotbart has quit [Remote host closed the connection]
g_rotbart has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
d3vic3 has quit [Quit: leaving]
robustus has joined #ruby
d3vic3 has joined #ruby
mwilson_ has quit [Excess Flood]
jastix has joined #ruby
mwilson_ has joined #ruby
IPGlider has joined #ruby
matrixise has joined #ruby
g_rotbart has quit [Ping timeout: 245 seconds]
ngoldman has joined #ruby
Takehiro has quit [Remote host closed the connection]
Rusher has joined #ruby
<Rusher>
hi, is there any reason to use utf-8 instead of default ASCII, if my site will be only in English?
<JonnieCache|home>
you or your users will eventually want non english characters, for some reason. i garuantee it.
<JonnieCache|home>
and then you will have to change everything from the database upwards, and you will be miserable
<cjk101010>
yep… experience proves. You really want utf-8.
<Hanmac>
Rusher: what is your site, does it has a comment function? if yes, you should prefer utf8
twosevenzero has quit [Ping timeout: 268 seconds]
cloud|droid has quit [Remote host closed the connection]
wobr has joined #ruby
Takehiro has joined #ruby
saschagehlich has joined #ruby
<Rusher>
hm.. okey, isn't there any easier option to tell interpreter, or is there a version of int which set all to utf-8 by default? you know to every file I have to add a comment #coding UTF-8, a little annoying
<cjk101010>
you can execute the ruby interpreter with -Ku
<cjk101010>
it basically tells it to handle source code as utf-8
Banistergalaxy has joined #ruby
wobr1 has joined #ruby
<Rusher>
ok but I guess there's some performance diff if I use ASCII though
wobr has quit [Ping timeout: 260 seconds]
qwerxy has quit [Quit: offski]
<cjk101010>
I doubt it. But I didn't verify
nilg has joined #ruby
thone has quit [Ping timeout: 246 seconds]
<charliesome>
Rusher: the only noticeable performance difference is that utf-8 strings have O(n) character indexing
<charliesome>
but it's unlikely that you'll want to index characters
saschagehlich_ has joined #ruby
<charliesome>
and even then, it really isn't that significant
thone has joined #ruby
<cjk101010>
is the internal string representation utf-8? because when the string is transformed to code points, it can be O(1) again
eldariof has joined #ruby
saschagehlich has quit [Ping timeout: 252 seconds]
saschagehlich_ is now known as saschagehlich
<Rusher>
so when to use ASCII? why does Ruby come with ASCII by default?
heisenmink has joined #ruby
t77178 has quit [Remote host closed the connection]
<Banistergalaxy>
Rusher silencio
mahmoudimus has joined #ruby
t40246 has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: Leaving...]
hoelzro|away is now known as hoelzro
elaptics`away is now known as elaptics
<Rusher>
I saw one video on youtube, where Matz said that UTF-8 is so large char collection "you won't like to use it" :D
sgmac has joined #ruby
sgmac has left #ruby [#ruby]
jarred has quit [Quit: jarred]
binaryplease has joined #ruby
nilg has quit [Remote host closed the connection]
Taichouchou2 has quit [Remote host closed the connection]
Musfuut has quit [Read error: Operation timed out]
G has quit [Ping timeout: 246 seconds]
Guest66557 has quit [Quit: Computer has gone to sleep.]
LorentzFactor has quit [Ping timeout: 276 seconds]
luist has quit [Quit: luist]
LorentzFactor has joined #ruby
shadoi has quit [Quit: Leaving.]
workmad3 has joined #ruby
freeayu has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
jarred has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
jarred has quit [Client Quit]
pingfloyd has quit [Quit: pingfloyd]
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
macaron has joined #ruby
h8R has quit [Ping timeout: 256 seconds]
indian has joined #ruby
just4dos_ has quit [Ping timeout: 272 seconds]
<cool>
question about variable scope. what is the scope of local variables? If I define a local variable inside a function/method. that is supposed be available only inside that particular function/method & not anywhere else right?
replore has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 244 seconds]
<tagrudev>
cool, yeah that's why it is called local :)
<cool>
tagrudev: Thanks :)
<Hanmac>
cool be careful when you use a block with the same variable name ... on 1.9 the variable is shadowed, on 1.8 it is overwitten
_bart has joined #ruby
Abbas5 is now known as Abbas|
mklappstuhl has joined #ruby
<mklappstuhl>
hey
<cool>
Hanmac: variable is shadowed, what is that supposed to mean?
<mklappstuhl>
I have no Idea whats wrong with the csv... could it be a problem of encoding or fileformat?
t40246 has quit [Remote host closed the connection]
t28453 has joined #ruby
Taichouchou2 has joined #ruby
<Hanmac>
cjk101010 i said block, maybe i mean blockvariable?
<cjk101010>
yes, I think so.
Takehiro_ has joined #ruby
<cjk101010>
hamac: because: ruby -e 'a = 2; [1,2,3].each {|b| a = b }; p a' shell output: 3
mahmoudimus has quit [Remote host closed the connection]
stuartrexking has joined #ruby
<Hanmac>
the blockvariable itself shadows! not some kind of assignment+
<cjk101010>
yes, this makes more sense :)
<stuartrexking>
Does bundle exec install gems specified in the Gemfile of the cwd, or do I need to run bundle install first?
<Hanmac>
stuartrexking: try at #bundler
<stuartrexking>
Oh! Sorry, thought I was there.
Takehiro_ has quit [Read error: No route to host]
Takehiro has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<Hanmac>
it may be is, but some of us dont understand bundler ... (and maybe i dont find a reason in it)
<stuartrexking>
Hanmac: Consider me a noob. How else do you manage dependencies in Ruby? RVM and Gemsets?
<Hanmac>
"gem install xyz" installs all gems xyz needs too
<Hanmac>
it works without rvm and without gemsets
<stuartrexking>
Yes, I understand transitive dependencies.
<stuartrexking>
But if you need different versions of ruby and deps then there are not alot of options.
<cjk101010>
well, bundler handles dependencies on a higher level. you can specify all gems you need for an application, even if they are not dependencies of each other
Takehiro has quit [Remote host closed the connection]
ly_gs has joined #ruby
Takehiro has joined #ruby
<mklappstuhl>
+1 for bundler & rbenv
chussenot has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
Banistergalaxy has quit [Ping timeout: 272 seconds]
<mklappstuhl>
Anyone an idea regarding my csv reading problem? I'm stuck with it since yesterday afternoon :(
Banistergalaxy has joined #ruby
* Hanmac
+1 for my self because i dont need different ruby versions because my system ruby version is the newest
* mklappstuhl
happy Hanmac
Takehiro has quit [Remote host closed the connection]
<shevy>
These are usually located in /usr/share/aclocal/pkg.m4.
vlad_starkov has quit [Remote host closed the connection]
<shevy>
whoaaaa...
<shevy>
pkg.m4 file
codefriar has joined #ruby
<shevy>
this sounds scary
tiripamwe has joined #ruby
<_bart>
why can't ruby handle »?
jastix has joined #ruby
<_bart>
It's \U+FFC2\U+FFBB
t62418 has quit [Remote host closed the connection]
<Hanmac>
_bart do you added the magic encoding comand to the file?
t37871 has joined #ruby
<_bart>
Hanmac: nope?
<Hanmac>
non-ascii files should have an" # encoding: utf-8" or something like that in the first or second line of the file to show that the file is in the given encoding
Takehiro has joined #ruby
<_bart>
Hanmac: I found this in a Nokogiri document. But now how do I "test" for the character, like in an .include?
Takehiro_ has joined #ruby
_s1n4_ has quit [Quit: leaving]
<Hanmac>
you mean in the same document or in an other?
Drager has left #ruby [#ruby]
<_bart>
Hanmac: in code, if I do somevar.include?("»") in runtime it will generate: invalid multibyte char (US-ASCII)
arkiver has quit [Quit: Leaving]
Takehiro has quit [Ping timeout: 244 seconds]
<Mon_Ouie>
Because it is invalid ASCII. You need to tell Ruby your source code isn't ASCII with a "# encoding: UTF-8" comment at the top of the file
timonv has quit [Remote host closed the connection]
<_bart>
Ah that worked actually, I only added it in one file
<_bart>
but it has to be at the top of every file using the characters
<Hanmac>
yeah ...
<JonnieCache>
just write a script to add it to every file
<JonnieCache>
you could have it fire as a git hook
Takehiro_ has quit [Remote host closed the connection]
<JonnieCache>
someone has almost certainly done that already i imagine
<shevy>
where
<shevy>
:D
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<JonnieCache>
the googles
Squarepy has joined #ruby
ryk has joined #ruby
olrrai has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
k_89 has quit [Ping timeout: 256 seconds]
BiHi has joined #ruby
fantazo has joined #ruby
edwardj has quit [Remote host closed the connection]
IPGlider has quit []
olrrai has quit [Client Quit]
niklasb has joined #ruby
reset has quit [Ping timeout: 244 seconds]
jeff_sebring has quit [Ping timeout: 244 seconds]
zigomir has quit [Remote host closed the connection]
Quadrant_ has quit [Read error: Connection reset by peer]
Quadrant_ has joined #ruby
`brendan has joined #ruby
olrrai has joined #ruby
Progster has quit [Read error: Operation timed out]
Progster has joined #ruby
philcrissman has quit [Remote host closed the connection]
olrrai has quit [Client Quit]
resure has joined #ruby
mneorr has joined #ruby
eml has joined #ruby
nwest has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
Progster has quit [Ping timeout: 250 seconds]
aristidesfl has joined #ruby
seanstickle has joined #ruby
tk___ has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
fermion has joined #ruby
Spooner has joined #ruby
jeff_sebring has joined #ruby
ly_gs has joined #ruby
yasushi has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
lahwran- is now known as lahwran
lahwran has quit [Changing host]
lahwran has joined #ruby
nanderoo has joined #ruby
zigomir has joined #ruby
pdelgallego has joined #ruby
pradeepto has quit [Quit: Coyote finally caught me]
<JonnieCache>
FUCKING BOTS. if you cant obey the http spec then dont scan my site
<JonnieCache>
actually just dont scan my sites at all. kthxbai
dhruvasagar has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
<seanstickle>
Liberal in what you accept, etc.
Criztian has joined #ruby
<JonnieCache>
im not going to hack rails to make it accept malformed http requests just so some fuckwit crawler can function correctly
<JonnieCache>
i just ignore those exceptions in my exception reporting script
<seanstickle>
What kind of wacky requests is this thing making?
lahwran is now known as lahwran-
lahwran- is now known as lahwran_
saschagehlich has quit [Quit: saschagehlich]
lahwran_ is now known as lahwran
fearoffish has joined #ruby
<JonnieCache>
theyre just normal get requests to image urls
pdelgallego has quit [Quit: pdelgallego]
<JonnieCache>
but there is something malformed about them which is making rails freak the fuck out
<JonnieCache>
im obviously not going to investigate it, because it isnt a bug
ghanima has joined #ruby
t37871 has quit [Remote host closed the connection]
Abbas| has quit [Ping timeout: 246 seconds]
t2458 has joined #ruby
Taichouchou2 has quit [Remote host closed the connection]
banisterfiend` is now known as banisterfiend
dpk has joined #ruby
Taichouchou2 has joined #ruby
<seanstickle>
Maybe it is a bug.
chussenot has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
geekbri has joined #ruby
AlbireoX has joined #ruby
<JonnieCache>
its not a bug because my app is not specced to accommodate random-ass crawlers (it works with google and so on) therefore it is impossible for it to be buggy in this regard
<JonnieCache>
none of my rails apps make coffee correctly, thats not a bug either
* seanstickle
shrugs
<JonnieCache>
sorry it just really gets to me sometimes :)
infinitiguy has joined #ruby
<seanstickle>
I can imagine.
<seanstickle>
We used to get hit by some Texas bot that would crawl everything 6 times simultaneously.
<seanstickle>
Unpleasant.
<_bart>
URI.parse is unable to parse [ and ], what should I do?
<JonnieCache>
my favourite is when the url in the user-agent field goes to a 500 error
<JonnieCache>
i feel like running ab against it
ninefawn has quit [Read error: Connection reset by peer]
<_bart>
I know it's not officially valid in URLs, but it is used
infinitiguy has quit [Client Quit]
<seanstickle>
JonnieCache: don't let the hate flow through you
Phelps has quit [Read error: Connection reset by peer]
<seanstickle>
JonnieCache: forever will you be consumed by it, and then you'll be hit with some sort of legal notice for "hacking"
<seanstickle>
And that would be sad.
<JonnieCache>
heh
jorge_ has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
jeff_sebring has quit [Quit: Leaving]
vlad_starkov has joined #ruby
justinmcp has quit [Remote host closed the connection]
Virunga has joined #ruby
kvirani has joined #ruby
joephelius has joined #ruby
pdelgallego has joined #ruby
tgriffin2081 has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
kvirani_ has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
freeayu__ has joined #ruby
Morkel has quit [Quit: Morkel]
Takehiro has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 245 seconds]
heisenmink has joined #ruby
zz_chrismcg is now known as chrismcg
Squarepy has quit [Read error: Connection reset by peer]
Phelps has joined #ruby
Squarepy has joined #ruby
t2458 has quit [Remote host closed the connection]
t10833 has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Takehiro has joined #ruby
BrokenCo1 has joined #ruby
<shevy>
hmm
mark_locklear has joined #ruby
Coolhand has joined #ruby
<mark_locklear>
test
seanstickle has quit [Quit: seanstickle]
<ly_gs>
pong
<mark_locklear>
hey guys...I am trying to add a carrage return to line 3 here http://pastie.org/4603486
AntiTyping has joined #ruby
<mark_locklear>
tried all manner of [row['first_name'], row['email']],\n
<mark_locklear>
and no cigar...
<bnagy>
uh
jjbohn has joined #ruby
<bnagy>
ok well \n is a newline not a carriage return
<mark_locklear>
I'll take either one...
<bnagy>
but try .. row['email'],"\n"]
<bnagy>
although if you're adding it there it sounds horrible like doing it wrong
linoj has joined #ruby
<bnagy>
shouldn't that be done at wherever you do presentation?
jorge_ has quit [Remote host closed the connection]
carloslopes has joined #ruby
<JonnieCache>
not if youre building a data structure with newlines as delimeters
<mark_locklear>
...its just for a logfile..
<JonnieCache>
yeah exactly
v0n has joined #ruby
<mark_locklear>
row['email'],"\n"] just gives me a "\n" in my log file...
<bnagy>
is f a filehandle?
<shevy>
row['email']+"\n
carloslopes has quit [Client Quit]
<shevy>
is row['email'] == ''
<mark_locklear>
hang on...I will give you the whole sha-bang...
carloslopes has joined #ruby
<shevy>
my shabang swinger is larger than bnagy's swinger!
BiHi has quit [Read error: Connection reset by peer]
luist has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
johnlcox has joined #ruby
miho has joined #ruby
chussenot has quit [Ping timeout: 272 seconds]
burgestrand has joined #ruby
uris has quit [Read error: Connection reset by peer]
uris has joined #ruby
vivien__ has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
mneorr has quit [Remote host closed the connection]
pradeepto has joined #ruby
BiHi has joined #ruby
mneorr has joined #ruby
infinitiguy has joined #ruby
timonv has quit [Remote host closed the connection]
luist has quit [Client Quit]
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
iamjarvo has quit [Ping timeout: 272 seconds]
joppe has quit [Ping timeout: 245 seconds]
BrokenCo1 has quit [Quit: leaving]
cakehero has joined #ruby
<kapowaz>
quick and easy way of parsing a string representing a number that uses commas as separators for the thousands…?
<kapowaz>
"4,999".to_i => 4
nari has quit [Ping timeout: 248 seconds]
emmanuelux has quit [Read error: Connection reset by peer]
freeayu__ has quit [Quit: 离开]
<lupine_85>
"4,999".gsub(",", "").to_i
<lupine_85>
just don't expect it to enjoy internationalized strings - some countries use . instead of ,
<kapowaz>
aha, gsub
<kapowaz>
s'ok, the dataset is relatively narrowly defined
<lupine_85>
(and , instead of .)
<kapowaz>
yeah I'm familiar with that
<kapowaz>
cheers :)
<bnagy>
you can probably tr ',.', '_' too
<lupine_85>
:)
<kapowaz>
I was going to go with "4,999".split(",").join.to_i
<kapowaz>
not sure which is more efficient…
<jrajav>
The gsub for sure
awarner has joined #ruby
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
t72562 has quit [Remote host closed the connection]
<lupine_85>
very little point worrying about efficiency there
t44356 has joined #ruby
zigomir has quit [Remote host closed the connection]
cascalheira has joined #ruby
blischalk has joined #ruby
asteve has joined #ruby
Abbas5 is now known as Abbas|
codefriar has quit [Quit: Leaving...]
jjbohn is now known as jjbohn|afk
<jrajav>
There might be if he's parsing a huge dataset
<jrajav>
Though I would question his choice of Ruby in that case
<lupine_85>
well, exactly ^^
<kapowaz>
easier to write something quickly in a language I know than a language I don't ;)
<lupine_85>
if he were processing a massive SQL database, for instance, then worrying about efficiency here, rather than getting the data entry right, or doing a one-time conversion of pre-existing data, would be nuts
<jrajav>
Better in the long term to qrite quickies in several different languages to improve your overall skills and versatility
dekroning has quit [Read error: Connection reset by peer]
jclem has joined #ruby
<kapowaz>
it's funny how people are obsessed with ‘the right way’, taking zero account for the specific constraints in the situation
ionte_ has joined #ruby
rippa has joined #ruby
<banisterfiend>
kapowaz: the 'right way' are often general idioms/style that apply irrespective of the situation
<banisterfiend>
is often*
<kapowaz>
yeah
<kapowaz>
but worrying about internationalisation when I know the dataset isn't internationalised…? :)
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
<banisterfiend>
yeah that sounds like a waste of time
SirRamonGabriel has quit [Read error: Operation timed out]
ionte has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
Takehiro_ has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
<lupine_85>
I was mentioning it as a possible concern, not saying that the gsub way definitely wouldn't work ^^
diegoviola has joined #ruby
ph^ has quit [Remote host closed the connection]
<jrajav>
It's worth worrying about internationalisation and accessibility more often than you have to
joppe has joined #ruby
uris has quit [Read error: Connection reset by peer]
uris_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
BrokenCog has quit [Quit: leaving]
yasushi has quit [Remote host closed the connection]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
paolooo has joined #ruby
stopbit has joined #ruby
codefriar has joined #ruby
Babar has joined #ruby
jjbohn|afk is now known as jjbohn
_pdelgallego has joined #ruby
pdelgallego has quit [Read error: Connection reset by peer]
_pdelgallego is now known as pdelgallego
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
mmitchel_ has joined #ruby
sailias has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
mmitchel_ has joined #ruby
wvms has joined #ruby
BrokenCog has quit [Quit: leaving]
Hanmac has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
mohits has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: leaving]
jrajav has quit [Quit: Leaving]
mmitchell has quit [Ping timeout: 264 seconds]
yasushi has joined #ruby
iori has quit [Remote host closed the connection]
dekroning has joined #ruby
LouisGB has quit [Read error: Connection reset by peer]
LouisGB has joined #ruby
jasonkuhrt has joined #ruby
asobrasil has joined #ruby
joshman_ has joined #ruby
SCommette has quit [Quit: SCommette]
BrokenCog has quit [Quit: leaving]
Coolhand has quit [Ping timeout: 244 seconds]
PhoSor has quit [Ping timeout: 252 seconds]
pho has joined #ruby
rakunHo has joined #ruby
pho has quit [Client Quit]
berserkr has quit [Quit: Leaving.]
mwilson_ has quit [Excess Flood]
jrist is now known as jrist-afk
mwilson_ has joined #ruby
saschagehlich has joined #ruby
senny_ has joined #ruby
d3vic3 has quit [Ping timeout: 248 seconds]
s1n4 has quit [Quit: leaving]
k_89 has joined #ruby
DrShoggoth has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Takehiro_ has joined #ruby
d3vic3 has joined #ruby
araujo has quit [Read error: Connection reset by peer]
PhoSor has joined #ruby
t44356 has quit [Remote host closed the connection]
t90491 has joined #ruby
rcassidy has quit [Quit: leaving]
Takehiro_ has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
senny has quit [Ping timeout: 268 seconds]
ryh has joined #ruby
zodiak has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
Chryson has joined #ruby
krawchyk has joined #ruby
tcopp has joined #ruby
Takehiro has quit [Remote host closed the connection]
pdelgallego has quit [Ping timeout: 264 seconds]
yasushi has quit [Remote host closed the connection]
alienaut has joined #ruby
Takehiro has joined #ruby
<alienaut>
hello, i changed my home folder name now my rvm does not work
Coolhand has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<alienaut>
any idea how can i load rvm back to my system?
PhoSor has quit [Ping timeout: 272 seconds]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<alienaut>
i have macos 10.7.4
<Mon_Ouie>
Check your configuration files for hard-coded paths (I mean ~ vs /home/your_user)
vegeek-ng has joined #ruby
<matti>
Hi Mon_Ouie
<Mon_Ouie>
'alut matti ;)
workmad3 has joined #ruby
pricees has joined #ruby
blischalk has quit [Quit: blischalk]
iamjarvo has joined #ruby
pdelgallego has joined #ruby
PhoSor has joined #ruby
<alienaut>
Mon_Ouie: you mean rvm/config?
tagrudev has quit [Remote host closed the connection]
johnjohnson has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
Virunga has quit [Remote host closed the connection]
<Mon_Ouie>
I mean your shell's config file for starters (where you source rvm's code)
SCommette has joined #ruby
deryl has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
aldodelgado has joined #ruby
i0n has joined #ruby
i0n has joined #ruby
i0n has quit [Changing host]
uris_ has quit [Ping timeout: 260 seconds]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
vectorshelve has quit [Quit: Page closed]
<alienaut>
hum you mean .bash_profile
frogprince_mac has joined #ruby
SirFunk has quit [Ping timeout: 246 seconds]
gift_ has quit [Remote host closed the connection]
yasushi has joined #ruby
Chryson has quit [Quit: Leaving]
krawchyk has quit [Remote host closed the connection]
nazty has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
nazty has joined #ruby
SirFunk has joined #ruby
<Mon_Ouie>
Yes, or .bashrc or whatever
senny_ has quit [Remote host closed the connection]
davorb has quit [Quit: Computer has gone to sleep.]
codefriar has quit [Quit: Leaving...]
<alienaut>
only line it includes is "v[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function"
saschagehlich has quit [Quit: saschagehlich]
senny has joined #ruby
<Mon_Ouie>
Then I guess some of the path within the RVM directory are fixed; you could try asking on #rvm
<Mon_Ouie>
(otherwise, the "easy" way is to just reinstall everything :p)
ge0pan has joined #ruby
<alienaut>
ok thanks for your help Mon_Ouie
aganov has quit [Quit: aganov]
el_nacho has joined #ruby
jrist-afk is now known as jrist
krawchyk has joined #ruby
t90491 has quit [Remote host closed the connection]
t39921 has joined #ruby
pureluck has joined #ruby
jtgiri_ has joined #ruby
pureluck has left #ruby [#ruby]
gift_ has joined #ruby
laen__ has quit [Read error: Connection reset by peer]
pdelgallego has quit [Remote host closed the connection]
<banisterfiend>
JonnieCache: Peter Bradshaw of The Guardian noted an unfortunate linguistic problem that reduced British viewers to "a state of nervous collapse". Colloquially, the word "bender" is slang for a homosexual male, giving an entirely different meaning to lines such as "I could tell at once that you were a bender, and that you would realise your destiny." Bradshaw commented that the response from the audience to such lines was "deafeningl
<banisterfiend>
y immature" and would "inevitably be repeated in every cinema in the land showing The Last Airbender.
luist has joined #ruby
recycle has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 244 seconds]
joast has quit [Quit: Leaving.]
kvirani_ has quit [Remote host closed the connection]
alienaut has quit [Quit: Leaving.]
alvaro_o has joined #ruby
geekbri_ has joined #ruby
senny has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
bradhe has joined #ruby
revans has joined #ruby
x77686d has joined #ruby
ScottNYC has joined #ruby
jgrevich has joined #ruby
matrixise has quit [Ping timeout: 244 seconds]
t15189 has quit [Remote host closed the connection]
t93201 has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.8]
Taichouchou2 has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
Taichouchou2 has joined #ruby
bd0 has joined #ruby
yasushi has joined #ruby
pricees has quit [Ping timeout: 256 seconds]
garndt has joined #ruby
pricees has joined #ruby
ThaDick has joined #ruby
<ThaDick>
I'm getting this error: ActionView::Template::Error (comparison of Date with ActiveSupport::TimeWithZone failed), from this code: start_date >= 3.days.from_now.beginning_of_day … Does anyone know why I can't compare the two dates?
randomautomator has joined #ruby
garndt_ has joined #ruby
zommi has left #ruby [#ruby]
<Hanmac>
ThaDick ask the guys at #rubyonrails that are the curpits
<Mon_Ouie>
The second object is not a Date object
<ThaDick>
Whoops … Sorry guys, wrong channel … i thought I'd joined that … my bad
<ThaDick>
Thanks for the insight though ;)
headius has quit [Ping timeout: 240 seconds]
garndt has quit [Ping timeout: 245 seconds]
carloslopes has quit [Ping timeout: 256 seconds]
<mattsmith>
Hanmac, any ideas? sorry i can't see the wood through the tress :-)
rakunHo has quit [Remote host closed the connection]
<scriabin>
this same thing works fine from the command line
jasonkuhrt has quit [Quit: Leaving...]
timonv has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
kiyoura has quit [Ping timeout: 245 seconds]
andrewstewart has joined #ruby
davidcelis has joined #ruby
mmitchell has joined #ruby
sebicas has joined #ruby
_bart has quit [Ping timeout: 264 seconds]
Virunga has joined #ruby
dmiller has quit [Remote host closed the connection]
eevar has joined #ruby
eevar has left #ruby [#ruby]
<shevy>
I am boggling about something
<shevy>
$0 or __FILE__
<shevy>
python does not seem to have that
<fowl>
who cares about python
<fowl>
i mean really
<shevy>
yeah but I am wondering. In ruby you can do puts __FILE__ in a .rb file, in python you have to do print(sys.argv[0]) if I see this right
<shevy>
specifically, the .argv data in python seems to include the name of the program, whereas ARGV in ruby is strictly only the commandline arguments given to the .rb file in question
<fowl>
shevy: __FILE__ is not the same as argv[0]
<fowl>
$0 is argv[0]
t93201 has quit [Remote host closed the connection]
t16618 has joined #ruby
xorigin has quit [Quit: leaving]
machty has quit [Ping timeout: 272 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
machty has joined #ruby
codefriar has quit [Quit: Leaving...]
philcrissman has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 252 seconds]
<shevy>
yeah
<shevy>
I wonder about the different ARGV and sys.argv
recycle has joined #ruby
<dpk>
How can I find out what PIPE_BUF is with Ruby?
recycle has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
datapolitical has joined #ruby
khakimov has joined #ruby
Abbas| has quit [Ping timeout: 246 seconds]
Dreamer3 has quit [Quit: Leaving...]
<Hanmac>
dpk in what context?
allyraza has joined #ruby
<mattsmith>
Hanmac, Thanks thats looking better, now I just need top remove anything without a value I guess
Takehiro has quit [Remote host closed the connection]
<luist>
Hanmac: because the gitorious configuration that works is for 10.04
Takehiro has joined #ruby
Synthead has quit [Remote host closed the connection]
Synthead has joined #ruby
dmiller has quit [Remote host closed the connection]
<luist>
Hanmac: and im already bored enough doing 203948290384209384 steps to configure this ****
Jay_Levitt has joined #ruby
baphled has joined #ruby
mattsmith has left #ruby [#ruby]
<luist>
these things are very non-intuitive and poorly deployable
<luist>
any gem that i update will stop everything to work
Takehiro has quit [Remote host closed the connection]
<fowl>
luist: do you need a shoulder to cry on? mine are particularly absorbent
<luist>
fowl: no.. i just need rubygems 1.3.6
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
Takehiro has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
hakunin has quit [Remote host closed the connection]
RudyValencia has quit [Read error: Connection reset by peer]
RudyValencia has joined #ruby
<burgestrand>
ubuntu/debian come with embarrasingly old versions of ruby :(
chussenot has quit [Quit: chussenot]
<burgestrand>
and broken packages of ruby
<burgestrand>
\o/
<shevy>
that is debian
<shevy>
the only distribution for the clueless masses to use
cakehero has quit [Quit: Computer has gone to sleep.]
<burgestrand>
both
<burgestrand>
ubuntu is no better, and I’m not sure there are more ubuntu users or more users having problems with ubuntu
<luist>
oh god… ubuntu has 1.3.5-1ubuntu2
chichou has quit [Remote host closed the connection]
<Hanmac>
burgestrand when you use an old version of ubuntu/debian why did you expect an new version of ruby?
thomas is now known as chaplain
cakehero has joined #ruby
<burgestrand>
Hanmac: I don’t use debian/ubuntu anymore, and even if I did I would not expect them to break rubygems or weird out with paths to both gems and ruby binaries :/
mmitchell has joined #ruby
<burgestrand>
(frankly I never used it as my main OS, always for servers)
k_89 has left #ruby ["Leaving"]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
<burgestrand>
even then, the latest ubuntu still comes with 1.8.7 as default doesn’t it?
cantonic has quit [Quit: cantonic]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
Tearan has joined #ruby
bontaq has joined #ruby
pricees has joined #ruby
resure_away is now known as resure
krz has joined #ruby
mneorr has quit [Ping timeout: 268 seconds]
<Hanmac>
burgestrand: yeah but it has an nearly recent ruby1.9.1-full package ... the next debian and the next ubuntu will have 1.9.3 as default
cantonic has joined #ruby
* workmad3
wonders when debian and ubuntu will have ruby 1.9.3 under a ruby1.9.3 package rather than a ruby1.9.1 package
kvirani has joined #ruby
_bart has joined #ruby
<Hanmac>
workmad3 because ruby1.9.1 and ruby1.9.3 are api compatible ... so the ruby1.9.3 package is only an link-package
und3f has quit [Read error: Connection reset by peer]
headius has joined #ruby
Synthead has quit [Quit: p33 ba115]
und3f has joined #ruby
thunderstrike has quit [Ping timeout: 252 seconds]
Synthead has joined #ruby
<JonnieCache|home>
did any of you lot do the stripe ctf?
Synthead has quit [Read error: Connection reset by peer]
* JonnieCache|home
is on level 4 and feeling like a massive noob
Synthead has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
rcloak has joined #ruby
<JonnieCache|home>
i shouldnt really have attempted it immediately after a 3 day weekend
Synthead has quit [Read error: Connection reset by peer]
Synthead has joined #ruby
<luist>
how do i unninstall all the gems from bundler?
<workmad3>
JonnieCache|home: I'll make you feel better... I'm just off a 5 day weekend :D
<celinedior>
Hi everyone. Noob question. i'm using sinatra, mongoid. Want to interpolate string as argument for Model.create! but got an error "undefined method `reject' for # <String:0x007f9e33b8dc78>"
<burgestrand>
celinedior: what arguments does a model.create take?
<JonnieCache|home>
i realised how presumptuous that was as i hit enter
rcloak has quit [Remote host closed the connection]
<burgestrand>
celinedior: by looking at the documentation it appears to take a hash. Are you sure you want to pass a string to it?
recycle has quit [Remote host closed the connection]
DarthGandalf has quit [Quit: Bye]
datapolitical has joined #ruby
<celinedior>
member:burgestrand the problem is when i copy and paste string output from teminal and replace interpolation in code everything goes smoothly
DarthGandalf has joined #ruby
mmitchell has quit [Remote host closed the connection]
<burgestrand>
celinedior: show code where things go smooth, and code where things go bad
recycle has joined #ruby
Taichouchou2 has quit [Ping timeout: 244 seconds]
johnlcox_ has joined #ruby
<celinedior>
one sec
SCommette has quit [Quit: SCommette]
johnlcox has quit [Ping timeout: 264 seconds]
johnlcox_ is now known as johnlcox
Goles has joined #ruby
SCommette has joined #ruby
resure is now known as resure_away
niklasb has joined #ruby
Criztian has quit [Remote host closed the connection]
<burgestrand>
celinedior: in the good one you pass a hash, in the bad one you pass a string
<burgestrand>
celinedior: a hash is a different kind of beast than a string, you cannot treat them the same way
havenn has joined #ruby
<burgestrand>
celinedior: it is very likely (and common) that mongoid expects a hash, but when you give it a string it makes a booboo and kill the script
<burgestrand>
celinedior: it’s like if you wanted a strawberry and I gave you a piece of coal
SCommette has quit [Client Quit]
Synthead has quit [Quit: p33 ba115]
codefriar has joined #ruby
Synthead has joined #ruby
<celinedior>
yeah i got i) i've tried to serialize it to_json for some reason, but realised that it's a new hash syntax) i'l try to convert it to hash. thank you!
jjbohn has joined #ruby
diegoviola has joined #ruby
PhoSor has quit [Quit: PhoSor]
elhu has joined #ruby
ThaDick has joined #ruby
dpk has joined #ruby
SCommette has joined #ruby
c0rn_ has joined #ruby
elhu has quit [Client Quit]
roger765 has joined #ruby
johnjohnson has quit [Ping timeout: 260 seconds]
<roger765>
hey
h4mz1d has joined #ruby
<roger765>
people i am ruby newbee
<matti>
Hey
<matti>
I am an coffeeholic.
<roger765>
i am working for cognizant for the last 6 months
jorge_ has joined #ruby
johnjohnson has joined #ruby
bluenemo has quit [Remote host closed the connection]
mmitchell has joined #ruby
<roger765>
just started working after colg for
<matti>
:)
<roger765>
cts on ruby on rails project
<matti>
Welcome to the World of Ruby then.
kirun has joined #ruby
<matti>
We offer free hugs, and mental support.
<roger765>
my mentor sucks he is offshore and it
<roger765>
becomes real difficult to communicate
<matti>
Free hungs are curtesy of shevy
<roger765>
i need to know how do i go about learning ruby and rails
chrisja has joined #ruby
<matti>
Feel free to ask question to your heart consent.
<matti>
roger765: Rails -> #rubyonrails ;]
<roger765>
yeah i went thru the text ruby by david falnagan
<roger765>
but how do i improve my programming skills with
<roger765>
ruby as the book has more of details on each topic than programming examples
Serosyn has joined #ruby
<shevy>
matti free hugs?
* shevy
hugs matti
samnang_ has joined #ruby
<roger765>
anyhelp would be deeply appreciated
<roger765>
:( i am frustrated
<Hanmac>
shevy did you know that yorkshire has a 'pigeon Bermuda Triangle' ? :P
<workmad3>
johnjohnson: there we go... I'm somehow stuck at level 2 :(
havenn has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
roger765 has quit [Quit: irc2go]
<workmad3>
oops... johnniecache has gone :/
havenn has joined #ruby
<workmad3>
tab-complete fail :)
<JonnieCache|home>
im here
<JonnieCache|home>
which one is level 2?
r0bby has quit [Client Quit]
el_nacho has quit [Quit: Leaving]
<workmad3>
the social network image upload one
ananthakumaran has quit [Quit: Leaving.]
elhu has joined #ruby
<workmad3>
must have been trying to tab-complete with joh :/
<JonnieCache|home>
ah that one took me ages, its actually really easy
timonv_ has joined #ruby
<workmad3>
JonnieCache|home: yeah, way to make me feel better :P
<JonnieCache|home>
its a really stupid solution that you might miss because its so moronic
s1n4 has quit [Quit: leaving]
<JonnieCache|home>
i spent ages trying to do clever things and then i was like "oh, is that it? damn."
<johnjohnson>
:o
<workmad3>
heh
emmanuelux has quit [Ping timeout: 245 seconds]
<workmad3>
I'm now wondering if I can make a file called '../*' :D
elhu has quit [Client Quit]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
jorge_ has quit [Remote host closed the connection]
TheLZA has quit [Ping timeout: 268 seconds]
johnlcox has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has joined #ruby
jorge_ has joined #ruby
<JonnieCache|home>
workmad3: ask if you want hints ;)
johnlcox has joined #ruby
mneorr has joined #ruby
h4mz1d has quit [Ping timeout: 265 seconds]
<workmad3>
JonnieCache|home: haha, just got it :D
recycle has quit [Remote host closed the connection]
und3f has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
<workmad3>
now I'm looking at evil python code :(
dpk has quit [Quit: Asleep at the keyboard.]
enherit has joined #ruby
und3f has joined #ruby
joephelius has joined #ruby
<JonnieCache|home>
the next one is ruby
<JonnieCache|home>
and its a proper app as well, and the vuln is in the actual app code. it doesnt stick out like in 0-3
<JonnieCache|home>
ive given up for now tbh
dpk has joined #ruby
ryker has joined #ruby
reset has joined #ruby
Takehiro has quit [Remote host closed the connection]
<Hanmac>
code is not evil, until hanmac did wrote it :P
Asher has joined #ruby
IrishGringo has joined #ruby
sixtycakes has quit [Remote host closed the connection]
sixtycakes has joined #ruby
Takehiro has joined #ruby
<matti>
shevy: ;]
jasonkuhrt has joined #ruby
<ryker>
hi all. i want to write some code in ruby to monitor a Linux server process list and execute some code if it finds a particular process is running. I've been looking around and found Guard (https://github.com/guard), but I'm not sure if that's the best thing to use. Looks like I would have to write my own guard plugin to parse the /proc directory. Any suggestions?
aldodelgado has quit [Quit: aldodelgado]
dangerousdave has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
mascool has joined #ruby
answer_42 has joined #ruby
sixtycakes has quit [Ping timeout: 264 seconds]
resure_away has quit [Remote host closed the connection]
<shevy>
workmad3 why do you look at python code, planning to abandon ruby like an ex-girlfriend :(
jastix has quit [Quit: Leaving]
adamkittelson has quit [Remote host closed the connection]
schaerli has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
khakimov has joined #ruby
recycle has joined #ruby
adeponte has quit [Remote host closed the connection]
sebicas has left #ruby [#ruby]
carloslopes has quit [Ping timeout: 252 seconds]
recycle has quit [Remote host closed the connection]
binaryplease has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
carloslopes has joined #ruby
jasonkuhrt has joined #ruby
znake has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
jasonkuhrt has quit [Client Quit]
Vert has quit [Remote host closed the connection]
SQLStud has joined #ruby
<workmad3>
shevy: because I'm trying to break an app on this strip-ctf thing
deryl has quit [Quit: deryl]
resure_away has joined #ruby
<JonnieCache|home>
stripe-ctf. strip-ctf would be a whole different deal
Monie has quit [Ping timeout: 244 seconds]
xorigin has joined #ruby
theRoUS is now known as GenghisKen
headius_ has joined #ruby
malkomalko has joined #ruby
GenghisKen is now known as theRoUS
jenrzzz has quit [Ping timeout: 252 seconds]
michael7 has joined #ruby
Xeago_ has joined #ruby
nnv7 has joined #ruby
headius has quit [Ping timeout: 260 seconds]
headius_ is now known as headius
jenrzzz has joined #ruby
<workmad3>
heh
<workmad3>
JonnieCache|home: ok, is level 3 also something dumbass moronic? or is it more subtle?
<workmad3>
I'm going code blind :(
timonv_ has quit [Remote host closed the connection]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
centipedefarmer has joined #ruby
michael7 has left #ruby [#ruby]
fowl has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 256 seconds]
Jay_Levitt has quit [Quit: Jay_Levitt]
Jay_Levitt has joined #ruby
deryl has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
foolove has quit [Quit: Leaving]
jarred has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
recycle has joined #ruby
resure_away is now known as resure
jarred has quit [Client Quit]
Serosyn has quit [Quit: Leaving...]
jarred has joined #ruby
juarlex_ has quit [Remote host closed the connection]
mlins has quit [Quit: Leaving...]
<JonnieCache|home>
level 3 isnt moronic, no
<JonnieCache|home>
it should however be obvious where it lies
<JonnieCache|home>
it isnt obvious how to exploit it, unless youre fairly practised at the particular technique
<JonnieCache|home>
i had to do some research
<workmad3>
hmm... well, the obvious attack was SQL injection but I couldn't figure out an attack
sixtycakes has joined #ruby
<JonnieCache|home>
yeah it is that. its not a "my first sqli" thing though, you have to be a bit cleverer
khakimov has joined #ruby
<workmad3>
bah, clever, that doesn't sound fun :P
reset has quit [Quit: Leaving...]
und3f has quit [Read error: Connection reset by peer]
<JonnieCache|home>
just think about it logically, what values do i need to poison, and then how can i poison them?
Vert has joined #ruby
<JonnieCache|home>
its like normal programming but backwards
cascalheira has quit [Quit: Leaving...]
und3f has joined #ruby
<workmad3>
well, all my attempts to poison it told me I could only execute one statement
<workmad3>
...
<nnv7>
Question
<nnv7>
What are you guys working on?
ringotwo has quit [Read error: Connection reset by peer]
<nnv7>
Jonnie/mad3
<workmad3>
nnv7: stripe-ctf 2.0
specialGuest has joined #ruby
ringotwo has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
recycle has quit [Remote host closed the connection]
<nnv7>
i c..
ringotwo has quit [Remote host closed the connection]
<nnv7>
So many things to learn..
<JonnieCache|home>
workmad3: you can mutate a statement without breaking it and starting a new one
<JonnieCache|home>
thats what i had to research
<workmad3>
JonnieCache|home: yeah, just looking that up now
Criztian has joined #ruby
t71401 has quit [Remote host closed the connection]
Tearan has joined #ruby
t83762 has joined #ruby
adamkittelson has joined #ruby
chimkan_ has joined #ruby
timonv has joined #ruby
Guest57566 is now known as rippa
bradhe_ has joined #ruby
recycle has joined #ruby
deadSnow1an has quit [Ping timeout: 252 seconds]
ScottNYC has quit [Quit: ScottNYC]
Takehiro has quit [Remote host closed the connection]
supergiantrobot_ has joined #ruby
deadSnowman has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 248 seconds]
ringotwo has joined #ruby
darren has joined #ruby
fantazo has joined #ruby
jasonkuhrt has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
dejanr has joined #ruby
<workmad3>
JonnieCache|home: got level 3... looking at level 4 now
Foxandxss has joined #ruby
znake has quit [Quit: znake]
adeponte has joined #ruby
<JonnieCache|home>
thats where i stopped. ive got a couple of ideas but im gonna do it another time
<workmad3>
I keep on coming back to the username being stored in the session here, but it's using session keys, not sure how to poison the session without it being invalidated
Speed has quit [Ping timeout: 252 seconds]
<JonnieCache|home>
doesnt look like you can poison the session key. its the sinatra session, if it was vulnerable wed know about it
mikehaas763 has joined #ruby
sailias has quit [Quit: Leaving.]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
<mikehaas763>
Hi, where are gems installed to on ubuntu?
sailias has joined #ruby
sirish has joined #ruby
<JonnieCache|home>
workmad3: transfers are stored according to username, not user id
bluOxigen has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
<JonnieCache|home>
workmad3: so if you can register a new user with the same username as KARMA_FOUNTAIN then youve won
<JonnieCache|home>
workmad3: i cant see how to defeat the check for duplicate usernames though
<JonnieCache|home>
workmad3: maybe i could change my own username somehow... it doesnt look like theres any mass-assignment or anything
stopbit has joined #ruby
timonv has quit [Remote host closed the connection]
jarred has quit [Quit: jarred]
<Hanmac>
mikehaas763 depending on the ruby version and if thery are installed via apt
jasonkuhrt has quit [Quit: Leaving...]
headius has quit [Quit: headius]
stopbit has quit [Read error: Connection reset by peer]
revans has quit [Remote host closed the connection]
revans has joined #ruby
revans has quit [Client Quit]
stopbit has joined #ruby
sirish has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
<mikehaas763>
Ok, how would I update a gem?
<shevy>
mikehaas763 gem update?
dpk has quit [Ping timeout: 245 seconds]
CannedCorn has joined #ruby
RORgasm has joined #ruby
Takehiro has joined #ruby
<CannedCorn>
hey guys, is there anyway to download a file in ruby with a nice wget like display and features
<CannedCorn>
i realize i can shell out and do it but...
<CannedCorn>
just wondering
mmitchell has quit [Remote host closed the connection]
dejanr has quit [Read error: Connection reset by peer]
<Hanmac>
shevy "i am too lazy to read the help file, but i can use irc"
sepp2k has quit [Remote host closed the connection]
<lectrick>
Basically I want a lambda that takes 2 arguments, but I want to pass it to an .each, which only gives 1 parameter, and I want to provide the original lambda with the other parameter myself... How can I do that?
<lectrick>
I think it has to do with currying but I am a currying noob
Xeago_ has quit [Remote host closed the connection]
resure has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
t83762 has quit [Remote host closed the connection]
reset has joined #ruby
t64735 has joined #ruby
khakimov has joined #ruby
heisenmink has quit [Remote host closed the connection]
bradhe_ has quit [Read error: Connection reset by peer]
cantelope has left #ruby [#ruby]
recycle has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
limes has joined #ruby
bradhe has joined #ruby
jlogsdon has quit [Remote host closed the connection]
Eldariof59-ru has joined #ruby
resure has quit [Remote host closed the connection]
Takehiro has joined #ruby
Eldariof27-ru has joined #ruby
krawchyk has quit [Remote host closed the connection]
RichieEvan has quit [Quit: RichieEvan]
banghouse is now known as banghouseFOOD
Eldariof-ru has quit [Ping timeout: 246 seconds]
w400z has joined #ruby
mmitchell has quit [Remote host closed the connection]
Eldariof59-ru has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby
w400z has quit [Client Quit]
w400z has joined #ruby
scootiepuff has quit [Remote host closed the connection]
jjbohn is now known as jjbohn|afk
<gift_>
I have two arrays containing 5 elements of type Fixnum each. The elements are populated from a static template with numbers from weekly reports. I'm trying to find the best way to create a new array, with 5 elements, with the difference between the respective elements in the first two arrays. whats the best way to go about that?
<matti>
gift_: Can you give us an example?
<gift_>
I'm capable of walking through both and comparing, and manually populating the third array, but i wodnered if there was some quicker ruby sorcery
<matti>
gift_: Try inject.
<matti>
gift_: Or select / reject.
<matti>
gift_: Or map / merge combo.
jorge_ has joined #ruby
<gift_>
alrighty, i'll look them up.
jerrad has joined #ruby
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
limes has quit [Remote host closed the connection]
ThaDick has quit [Quit: zzzZZZ ...]
<gift_>
matti: actually it was pretty easy without, i just wound up with something like: 0.upto(4) { |n| new_array.push( this_week[n] - last_week[n] ) }
jjbohn|afk is now known as jjbohn
havenn has joined #ruby
<matti>
\o/
<matti>
;]
<gift_>
i came crying for help too quickly before trying to do it :P
<sailias>
(a1 - a2) + (a2 - a1)
dbe has joined #ruby
<sailias>
that will give you differences and remove similarities
jorge_ has quit [Remote host closed the connection]
bawwwller has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
Markvilla has joined #ruby
Guest5516 has quit [Quit: Guest5516]
jimpsson has left #ruby ["WeeChat 0.3.7"]
havenn has quit [Remote host closed the connection]
reset has joined #ruby
recycle has joined #ruby
t88611 has quit [Remote host closed the connection]
t17187 has joined #ruby
graspee_ has quit [Quit: leaving]
centipedefarmer has quit [Ping timeout: 264 seconds]
<gfkjunior>
hey y'all I'm new to ruby and was writing a port scanner to learn some networking, but I have no idea what I'm doing wrong. Can anyone help me out with my script?
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
kirun has quit [Quit: Client exiting]
Takehiro has quit [Ping timeout: 252 seconds]
_bob has joined #ruby
kenichi has quit [Remote host closed the connection]
ryker has quit [Quit: Leaving.]
w400z has joined #ruby
<davidcelis>
fuck reddit
<shevy>
:)
tsan has quit [Quit: tsan]
sailias has joined #ruby
joshman_ has quit [Ping timeout: 264 seconds]
machty has quit [Ping timeout: 272 seconds]
machty has joined #ruby
jorge_ has quit [Remote host closed the connection]
Virunga_ has quit [Remote host closed the connection]
stuartrexking has joined #ruby
iamjarvo has joined #ruby
yasushi has joined #ruby
miho has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
ryh has quit [Remote host closed the connection]
<Muz>
davidcelis: I like to think of 4chan as 1000 monkeys, 1000 typewriters. As for reddit, 1000 monkeys, all throwing crap and jerking each other off in one big circlejerk.
ryh has joined #ruby
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
s1n4 has quit [Quit: leaving]
yasushi has quit [Ping timeout: 252 seconds]
Virunga has quit [Quit: Sto andando via]
Drakx has joined #ruby
Drakx has quit [Changing host]
Drakx has joined #ruby
cascalheira has joined #ruby
cascalheira_ has joined #ruby
cascalheira has quit [Read error: Connection reset by peer]
cascalheira_ has quit [Client Quit]
obryan has quit [Ping timeout: 272 seconds]
datapolitical has quit [Read error: Connection reset by peer]
havenn has joined #ruby
albel727 has joined #ruby
dmiller has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<atmosx>
is it faster having 2 functions: 1 to gather data (create an array/hash) and 2 put them into a database (put list to a db) OR gathering data and puting each fraction of it into the db right away?
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
belak has joined #ruby
<belak>
Anyone know of a good gem to integrate with google calendar?
<atmosx>
nah but that shouldn't be too hard, google must have a fine grained api
<atmosx>
4 of them!
havenn has quit [Ping timeout: 248 seconds]
dpk has joined #ruby
wvms has joined #ruby
josh^ has joined #ruby
jorge_ has joined #ruby
victor_ has joined #ruby
<shevy>
atmosx I would always use two separate methods, when what they do is logical
<shevy>
I think a new method may be a little bit slower than dumping things into the same method
mmitchell has joined #ruby
SirRamonGabriel has joined #ruby
IrishGringo has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
<atmosx>
shevy: so it's better to have two separate methods to do it right? 1 will create an enormous array and the other will dump it to the sqlite3
<atmosx>
hmm thanks, looks much more clear approach to me, I was thinking that it might be slower
<atmosx>
considerably slower
<shevy>
I think it is always better to have methods when possible and logical
punkrawkR has joined #ruby
<shevy>
I dont think it will be much slower for name of methods alone... perhaps when you have an object with one million methods? and twenty million method calls
<shevy>
I think Benchmark module tells you how many seconds it takes for each method
g_rotbart has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
<atmosx>
yeah
chimkan___ has quit [Quit: chimkan___]
<atmosx>
but I wont even benchmark it, I'll just go with it
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
cczona has joined #ruby
kvirani has quit [Remote host closed the connection]
<elico>
I need some help with tcp sockets and maybe threads.. any one?
lkba has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
<elico>
i want to run two tcpservers and hook two client to each other. any ideas?
saschagehlich has joined #ruby
sailias has joined #ruby
JonnieCache has quit [Ping timeout: 246 seconds]
havenn has quit [Remote host closed the connection]
ben_alman has joined #ruby
LouisGB has quit [Ping timeout: 256 seconds]
saschagehlich has quit [Quit: saschagehlich]
codeFiend has left #ruby [#ruby]
nnv7 has quit [Quit: nnv7]
Speed has quit [Remote host closed the connection]
apok has quit [Quit: apok]
jclem has joined #ruby
<Spooner>
elico: Have you considered a simpler system, such as drb? Otherwise, not sure why you need two servers to just pass messages between two clients.
<elico>
Spooner: the problem is that each side is using different approach to the server.. so i need first that two of them will be connected.
<elico>
if drb is good i dont car
<elico>
car*
<elico>
care*
jjang has joined #ruby
flyinprogramer has joined #ruby
binaryplease has quit [Ping timeout: 272 seconds]
<flyinprogramer>
has anyone worked on bundler before?
<flyinprogramer>
not with, but actually on source code
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
<davidcelis>
a little biy
binaryplease has joined #ruby
<davidcelis>
bit*
<davidcelis>
like, a tiny, tiny bit
<Muz>
A little bit too.
<Muz>
More importantly, why do you ask?
<flyinprogramer>
so i downloaded it from source on github, cd'd into the directory, ran rake install, and now bundle --help shows blank man pages
chichou has joined #ruby
<flyinprogramer>
and i know it's stupid, but i was trying to get them working
bontaq has quit [Remote host closed the connection]
punkrawkR has quit [Read error: Connection reset by peer]
<flyinprogramer>
or at least understand why they were broken
johnlcox has quit [Quit: Computer has gone to sleep.]
<flyinprogramer>
I'm on a mac, running rvm, and 1.9.3
uris has quit [Quit: leaving]
havenn_ has joined #ruby
<flyinprogramer>
and installing from rubygems, the man pages show, but i'm trying to add custom rake tasks to the gem without increasing the size of my rakefile
<davidcelis>
well rubygems tracks the latest stable version
<davidcelis>
you probably pulled from master
<davidcelis>
you're on a preview
<davidcelis>
maybe they broke the man pages
<flyinprogramer>
yah, but then i checked out v1.1.5, same problem
<davidcelis>
hm
stkowski has quit [Quit: stkowski]
seanstickle has joined #ruby
<flyinprogramer>
yah, my thoughts exactly, it seems like it's opening something, because the class "less" view is visible and i have to press the down arrow to get the [END]
<flyinprogramer>
but none of the text is visible
rakm has quit [Ping timeout: 272 seconds]
<flyinprogramer>
and it doesn't seem to be a system thing, man cp, show's the man page...
<flyinprogramer>
$ man bundle
<flyinprogramer>
No manual entry for bundle
fowl has joined #ruby
<Muz>
flyinprogramer: have you generated the man pages yet?
<Muz>
rake -T lists rake tasks, there's one to generate the docs iirc.
brianpWins has joined #ruby
tekacs has quit [Quit: Disappearing... *poof*]
diegoviola has joined #ruby
<flyinprogramer>
all i see are, build, install, release, spec:deps, vendor:build, vendor:clean