supergiantrobot_ has quit [Quit: supergiantrobot_]
Sicp has quit [Quit: Leaving]
fschuindt has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
mahmoudi_ has joined #ruby
mahmoudimus has quit [Ping timeout: 245 seconds]
perun0 has joined #ruby
Yakko has quit [Ping timeout: 248 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
love_color_text has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby
rismoney has quit [Read error: Connection reset by peer]
reppard has joined #ruby
<reppard>
anyone know how to do this: ("a".."zzz").each{ |i| print i } but in reverse
sambao21 has quit [Quit: Computer has gone to sleep.]
stkowski has quit [Quit: stkowski]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
Ibuprofen has joined #ruby
Skofo has quit [Remote host closed the connection]
nadirvardar has joined #ruby
jonathanwallace has joined #ruby
keyvan has quit [Read error: Connection reset by peer]
<banisterfiend>
reppard: reverse_each
nadirvardar has quit [Client Quit]
<reppard>
are you serious??
<undersc0re97>
reppard: yes
<undersc0re97>
enjoy your day
love_color_text has joined #ruby
<reppard>
holy crap
<reppard>
a year and a half of ruby and i never knew about that
<reppard>
thank you
<reppard>
haha
davetherat has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 252 seconds]
davetherat has joined #ruby
arya_ has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
dankest has quit [Quit: Leaving...]
r3d3 has quit [Ping timeout: 242 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
r3d3 has joined #ruby
lupine has joined #ruby
chrishough has quit [Quit: chrishough]
rsahae has quit [Quit: rsahae]
kristofers has quit []
hiroyuki_ has quit [Read error: Connection reset by peer]
lupine has quit [Max SendQ exceeded]
arya_ has quit [Ping timeout: 276 seconds]
zeade has quit [Quit: Leaving.]
DonRichie has quit [Read error: Operation timed out]
DonRichie has joined #ruby
rsahae has joined #ruby
arya has joined #ruby
rellin has quit [Ping timeout: 260 seconds]
artofraw has joined #ruby
jeebster has quit [Quit: Leaving.]
codezombie has joined #ruby
huoxito has quit [Quit: Leaving]
rickmasta has quit [Ping timeout: 264 seconds]
Ontolog has quit [Remote host closed the connection]
Ontolog has joined #ruby
Ontolog has quit [Remote host closed the connection]
rburton- has joined #ruby
banjara has quit [Quit: Leaving.]
fschuindt has quit [Read error: Connection reset by peer]
fschuindt has joined #ruby
awarner has quit [Remote host closed the connection]
artofraw has quit [Remote host closed the connection]
eykosioux has joined #ruby
DonRichie has quit [Ping timeout: 248 seconds]
DonRichie has joined #ruby
lupine has joined #ruby
r3d3 has quit [Remote host closed the connection]
lupine has quit [Excess Flood]
thams has quit [Quit: thams]
thernull has quit [Read error: Connection reset by peer]
groktar has quit []
eykosioux has quit [Ping timeout: 245 seconds]
generalissimo has quit [Remote host closed the connection]
wesside has quit [Quit: Computer has gone to sleep.]
bhaarat has quit [Quit: bhaarat]
yours_truly has joined #ruby
yours_truly has quit [Client Quit]
Bry8Star has quit [Remote host closed the connection]
iphands_ has joined #ruby
lupine has joined #ruby
tylersmith has quit [Quit: tylersmith]
soooga has joined #ruby
subbyyy has joined #ruby
Bry8Star has joined #ruby
tomsthumb has quit [Quit: Leaving.]
jnoob22 has joined #ruby
mele- has joined #ruby
chessguy has joined #ruby
lupine has quit [Excess Flood]
Nisstyre-laptop has joined #ruby
rburton- has quit [Ping timeout: 260 seconds]
mele- is now known as rburton-
jonathanwallace has joined #ruby
<Vivekananda>
hello
soooga has quit [Max SendQ exceeded]
soooga has joined #ruby
zastern has joined #ruby
<zastern>
Once 'return' is called in a method, whether implicit or explicit, that is the end of that method right? Even if there is further code "beneath" the return, inside the method.
<chessguy>
zastern: you are correct
rickruby has joined #ruby
pkill has joined #ruby
<zastern>
chessguy: thanks!
jeebster has joined #ruby
<chessguy>
zastern: no worries. if you have some code you're trying to understand, i'd be happy to help
<zastern>
chessguy: I actually do understand it. Just trying to make sure I uh . . . understand the things I understand.
<zastern>
Doing codecademy ruby (and it's my first time programming)
<chessguy>
nice. feel free to ping me with any questions if i'm around
<zastern>
thanks!
wsterlin_ has joined #ruby
Xeago_ is now known as Xeago
wsterling has quit [Ping timeout: 248 seconds]
baphled_ has quit [Ping timeout: 260 seconds]
lupine has joined #ruby
<zastern>
I guess i don't totally understand why lambdas and procs are what they are
<pkill>
any idea why I always get an error with openssl on Mac OS X 10.8 when installing ruby?
Xeago has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
<pkill>
can't recall how i got 1.8.2 installed but it works fine; trying to update to 1.9 or 2.0 errors out with openssl being the cause
<pkill>
installing --with-openssl-dir=/opt/local/bin/ fails too
lupine has quit [Max SendQ exceeded]
<pkill>
frustrating as hell
<banisterfiend>
zastern: what part dont u understand
<sebastianb>
pkill: have you tried the --with-openssl option?
<zastern>
banisterfiend: the combonation of features I guess
soooga has quit [Ping timeout: 240 seconds]
<zastern>
for example from codecademy:
<pkill>
sebastianb: --with-openssl or --with-openssl-dir?
<zastern>
Why are lambdas vs procs designed with those specific features
tomzx_mac has quit [Client Quit]
rickmasta has joined #ruby
<zastern>
Why not have procs pass back control to the method, and lambas not?
<sebastianb>
pkill: if that fails try again with --with-opt-dir=/usr/local
<pkill>
hmm, trying it now
<pkill>
would you look at that... --with-openssl seems to work just fine so far
<banisterfiend>
zastern: because 'lambdas' behave like methods
<pkill>
thanks! :D
<zastern>
why have one fil in nil for missing vars but not the other one
<sebastianb>
:)
<pkill>
slow, but looks like it may work
<zastern>
banisterfiend: mm ok.
<sebastianb>
it should
<banisterfiend>
zastern: so a lambda has method-like argument checking and mehtod-like return behaviour
<banisterfiend>
that's it
<zastern>
mm ok that makes sense
<pkill>
oddly enough, homebrew can't install openssl either... so weird
<banisterfiend>
zastern: but i dont think i've ever had to use lambdas, i prefer procs
<banisterfiend>
zastern: though one reaosn i sometimes use lambdas is beacuse i love the -> syntax :) but aside from that, i'm happy with proc semantics
mfridh has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
<zastern>
mm so I guess also why is it victor = Proc.new { return "Batman will win!" } but with a lambda victor = lambda { return "Batman will win!" }
<zastern>
why isnt it Lambda.new
<banisterfiend>
zastern: it's kind of weird, a lambda is really a kind of Proc
<banisterfiend>
it just has a flag set that makes it behave differently
zastern has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
love_color_text has joined #ruby
mrwalker has quit [Remote host closed the connection]
Mattix has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
lupine has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
lupine has quit [Max SendQ exceeded]
moos3 has quit [Quit: Computer has gone to sleep.]
mando has joined #ruby
brennanMKE has joined #ruby
<Vivekananda>
hey everyone
<Vivekananda>
again
<Vivekananda>
anyone around
jonathanwallace has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Remote host closed the connection]
mando_ has joined #ruby
<chessguy>
hi Vivekananda
johnnyfuchs has joined #ruby
mando has quit [Ping timeout: 245 seconds]
nwertman has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
jeebster has quit [Quit: Leaving.]
czervik_ has joined #ruby
atno has quit [Remote host closed the connection]
indyrl has joined #ruby
rakl has quit [Quit: sleeping]
lupine has joined #ruby
benlieb has quit [Quit: benlieb]
lupine has quit [Max SendQ exceeded]
mfridh has joined #ruby
Hanmac1 has joined #ruby
benlieb has joined #ruby
baroquebobcat has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
kofno has quit [Remote host closed the connection]
etcetera has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
benlieb has quit [Quit: benlieb]
BSaboia has joined #ruby
<bnagy>
oh boy! It's Vivekananda homework time!
<bnagy>
what problems can we fix for you today that you're too lazy to work out for yourself?
lupine has joined #ruby
randomautomator has joined #ruby
randomautomator has quit [Remote host closed the connection]
lupine has quit [Max SendQ exceeded]
subbyyy has quit [Ping timeout: 245 seconds]
randomautomator has joined #ruby
Skofo has joined #ruby
<Vivekananda>
bnagy: lol well you make it sound like I really am doing nothing about this
<Vivekananda>
tell me something
<Vivekananda>
how long have you been using ruby. Also how long did you take to learn it. ? :). Just a quick estimate
<Vivekananda>
hey chessguy howdy
<fryguy>
i started ruby back on january 2nd when I took a new job
<fryguy>
learned everything in about 2 weeks
<fryguy>
not rocket science
<bnagy>
about 8 years I guess, and it took me a week or two to produce my first 'working' thing
<sebastianb>
well, it's not so easy for someone without prior programming skills
<bnagy>
the difference between me and what I see you doing is that I didn't beg for help every five seconds, I read docs, used irb and debugged my issues
<bnagy>
sebastianb: Vivekananda has ( or claims to have ) experience in other languages already
<sebastianb>
:D
<sebastianb>
Maybe it's html
jdunck has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
shevy has quit [Ping timeout: 245 seconds]
<Vivekananda>
bnagy: a little yes. and not begging please!!. I try to be polite and just that. I am quite okay if you point me to relevant reading (as you did with enumerators)which is sometimes a little roundabout.
icantbecool has joined #ruby
icantbecool has left #ruby [#ruby]
icantbecool has joined #ruby
<bnagy>
what you need a strategies for self-sufficiency and a willingness to invest a little more work in gaining understanding
havenwood has joined #ruby
icantbecool has left #ruby [#ruby]
<bnagy>
right now you're acting like what's called a Help Vampire
<sebastianb>
Vivekananda: buy yourself a book and read it
<sebastianb>
eloquent ruby is quite good
<bnagy>
I still love the poignant guide :(
benwoody has quit [Remote host closed the connection]
<sebastianb>
I don't
<sebastianb>
I couldn't read it, tbh
<bnagy>
it may be batshit insane, but Dwemthy is the best basic metaprogramming / DSL stuff I've read
<sebastianb>
I left it at something around 20th page?
<bnagy>
and also the section on introspection is good
benwoody has joined #ruby
banjara has joined #ruby
freakazoid0223 has joined #ruby
<bnagy>
but yeah it's pretty nutty
<sebastianb>
it's not that it's insane
<sebastianb>
it just bored me to death
<sebastianb>
well, almost
rpgsimmaster has joined #ruby
lupine has joined #ruby
bhaarat has joined #ruby
ananthakumaran has joined #ruby
radic has quit [Disconnected by services]
<banisterfiend>
i loved the poignant guide
radic_ has joined #ruby
lupine has quit [Max SendQ exceeded]
<sebastianb>
good for you :)
<sebastianb>
I enjoyed Eloquent Ruby much more
<banisterfiend>
they're not really comparable
<sebastianb>
actually I'm still enjoying it, since I'm still learning
dhruvasagar has quit [Ping timeout: 248 seconds]
soooga has joined #ruby
<sebastianb>
banisterfiend: they're two books about learning ruby
<sebastianb>
;)
d11wtq_ios has joined #ruby
<Paradox>
yay books
sambio has joined #ruby
<Paradox>
i like books
arya_ has joined #ruby
<banisterfiend>
sebastianb: the emphasis is different, i didnt read the poignant guide to learn ruby, i read it to get excited about learning ruby
<banisterfiend>
to actually learn ruby i read a different book :) "the ruby programming language"
banjara has quit [Quit: Leaving.]
<banisterfiend>
sebastianb: the poignant guide is more like an infomercial on crack
<sebastianb>
;)
<sebastianb>
doesn't matter now, I won't touch it again ;)
<banisterfiend>
stop winking at me
<banisterfiend>
pls :)
<bnagy>
I think I feel the same way about tPG, tbh the only other thing I have read are the rdoc and the source, and other people's code
<d11wtq_ios>
yeah I learn best reading other people's code, once you have the language basics down.
<bnagy>
and sitting around on IRC helping noobs is surprisingly useful
<sebastianb>
banisterfiend: it's a bad habit I know
<sebastianb>
I just use it as a default smiley
<bnagy>
once every couple of days I guess I refine my understanding of something
<sebastianb>
not as actual 'wink'
<d11wtq_ios>
and just trying dumb shit to see what happens. I love exporting language that way
shevy has joined #ruby
Opettaja has quit [Read error: Connection reset by peer]
<d11wtq_ios>
semi-colon is easier to type than colon :P
<d11wtq_ios>
or should that be ;P
arya has quit [Ping timeout: 260 seconds]
senayar has quit []
Opettaja has joined #ruby
<sebastianb>
yup, it's faster
Hanmac has joined #ruby
<sebastianb>
but, as we could see, banisterfiend feels a little insecure about it
<sebastianb>
:D
<Vivekananda>
I was trying to go through the rubymonk. you guys think that is okay ?
<banisterfiend>
well when someone isn't just being lazy the ';)' emoticon has a specific meaning - i.e an actual wink - and i dont like being winked at by random dudes on an irc channel :)
czervik_ has left #ruby ["Ex-Chat"]
eykosioux has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
<d11wtq_ios>
that's pretty much why I'm hanging out here, naturally.
<banisterfiend>
hehe
<bnagy>
#rubybearcave
<sebastianb>
Vivekananda: it is
iphands_ has quit [Ping timeout: 276 seconds]
<d11wtq_ios>
Trying IRC from my iPhone. This is surprisingly pleasant.
c0rn has joined #ruby
<sebastianb>
aw hell naw
<sebastianb>
;D
<sebastianb>
never again I'm going to irc from any phone
<Paradox>
blarg
<d11wtq_ios>
I use irssi on my Mac, but this app seems pretty solid.
<sebastianb>
I used to use epic + lice years ago
<sebastianb>
but now irssi 4 life
<d11wtq_ios>
not familiar with those.
<bnagy>
epic lice is NOT an appealing name
<sebastianb>
the client was named epic
<sebastianb>
and lice was just a... patch?
<sebastianb>
dunno better word
<d11wtq_ios>
yeah irssi is really nice. I'm usually in the terminal all day so I like my IRC there. A fork maybe?
eykosioux has quit [Ping timeout: 264 seconds]
supernullset has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
rickmasta has quit [Quit: Leaving...]
eee19 has quit [Remote host closed the connection]
Arzaga has joined #ruby
rickmasta has joined #ruby
mando_ has quit [Remote host closed the connection]
<fryguy>
i use weechat
hiram has joined #ruby
hiram has quit [Client Quit]
Arzaga has quit [Quit: Computer has gone to sleep.]
marcdel has joined #ruby
<rking>
Since the thread's already gone off-topic, I might as well make my knee-jerk plug for weechat.
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby
Arzaga has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
akam-it has quit [Ping timeout: 258 seconds]
vlad_starkov has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
bhaarat has quit [Quit: bhaarat]
thams has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
akam-it has joined #ruby
Opettaja has quit [Quit: WeeChat 0.3.8]
guns has quit [Quit: guns]
rakl has joined #ruby
A124 has quit [Remote host closed the connection]
tzanger has joined #ruby
cantonic has joined #ruby
A124 has joined #ruby
<Vivekananda>
fryguy: howdy
momomomomo has quit [Quit: momomomomo]
markalanevans has quit [Ping timeout: 245 seconds]
pandawarrior has quit [Quit: Leaving.]
chris___ has joined #ruby
baroquebobcat has joined #ruby
pkrnj has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
tealmage has quit [Remote host closed the connection]
hiyakashi has quit [Quit: お前は知りすぎた]
d11wtq_ios has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
supernullset has quit [Remote host closed the connection]
tk_ has joined #ruby
pandawarrior has joined #ruby
shadoi has joined #ruby
latermuse has joined #ruby
<latermuse>
is there a ruby for haskell programmers article?
btaitelb has quit [Quit: btaitelb]
reset has quit [Ping timeout: 245 seconds]
chandankumar has joined #ruby
jpfuentes2 has joined #ruby
mwlang has quit [Quit: mwlang]
tk___ has joined #ruby
tk___ has quit [Client Quit]
btaitelb has joined #ruby
tk_ has quit [Ping timeout: 256 seconds]
rking has quit [Quit: Another attempt at UTF-8 fix on new VPS]
pkill has joined #ruby
lktp has joined #ruby
heliumsocket has joined #ruby
rking has joined #ruby
rking has quit [Client Quit]
Arzaga has joined #ruby
<pandawarrior>
any recommendations for a good jenkins resource?
rking has joined #ruby
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich has joined #ruby
Arzaga has quit [Client Quit]
rickruby has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
tk_ has joined #ruby
havenwood has quit [Remote host closed the connection]
pkill has quit [Quit: leaving]
browndawg has joined #ruby
reppard_ has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby
pkill has joined #ruby
MrZYX is now known as MrZYX|off
chxane has joined #ruby
momomomomo has quit [Client Quit]
eykosioux has joined #ruby
lupine has joined #ruby
kevdev has joined #ruby
mmitchell has joined #ruby
Arzaga has joined #ruby
<kevdev>
I have a quick question, working with a clients older RoR app, ruby 1.8.7 rails 2.3.6 and I have the following line if( params[:advert_photo] && params[:advert_photo][:uploaded_data] != "" ) @advert.advert_photos << AdvertPhoto.new(params[:advert_photo]) wondering what in the world << means? If anyone could steer me in the right direction I would greatly appreciate it! :)
lupine has quit [Max SendQ exceeded]
soooga has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
<kevdev>
It's causing some YAML parse errors Psych::SyntaxError ((<unknown>): did not find expected node content while parsing a flow node at line 18 column 14):
mmitchell has quit [Remote host closed the connection]
<waxjar>
kevdev: It's a method called <<
eykosioux has quit [Ping timeout: 252 seconds]
<waxjar>
usually to add an object to a list of some sort
nari has joined #ruby
<kevdev>
Hmmm, looks like I'm off to google some more then hehe :) thanks!
jhn has quit [Ping timeout: 248 seconds]
<kevdev>
Just making sure it was proper syntax
Davey has joined #ruby
tealmage has joined #ruby
a_a_g has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
tjbiddle_ has joined #ruby
dmiller has quit [Quit: WeeChat 0.4.0]
wsterlin_ has quit [Remote host closed the connection]
Arzaga has quit [Quit: Computer has gone to sleep.]
wsterling has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Ping timeout: 245 seconds]
akam-it has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Ping timeout: 248 seconds]
kevdev has quit [Quit: Page closed]
rickruby has quit [Remote host closed the connection]
tjbiddle_ has quit [Ping timeout: 248 seconds]
chandankumar has quit [Ping timeout: 245 seconds]
tealmage has quit [Ping timeout: 256 seconds]
lupine has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
_maes_ has joined #ruby
decoponio has joined #ruby
lupine has quit [Max SendQ exceeded]
momomomomo has joined #ruby
pandawarrior1 has joined #ruby
pandawarrior1 has quit [Client Quit]
rickruby has joined #ruby
pandawarrior1 has joined #ruby
akam-it has joined #ruby
p4tux has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
pandawarrior1 has quit [Client Quit]
vlad_starkov has joined #ruby
rawng has joined #ruby
pandawarrior1 has joined #ruby
security is now known as megha
etcetera has quit []
reppard has joined #ruby
p4tux has quit [Client Quit]
a_a_g has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
dhruvasagar has joined #ruby
Astral__ has joined #ruby
lupine has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
lupine has quit [Max SendQ exceeded]
drale2k has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
TomJ has quit [Quit: TomJ]
dhruvasagar has quit [Ping timeout: 276 seconds]
seich has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
seich- has joined #ruby
rickruby has quit [Remote host closed the connection]
sambio has quit []
swex_ has joined #ruby
Morkel has quit [Quit: Morkel]
jacobbednarz has joined #ruby
jacobbednarz has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
swex has quit [Ping timeout: 245 seconds]
lupine has joined #ruby
lupine has quit [Max SendQ exceeded]
Zolo has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lupine has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
lupine has quit [Max SendQ exceeded]
Catbuntu has joined #ruby
arya has quit []
Spooner has joined #ruby
Xeago has joined #ruby
marcdel has quit []
marcdel has joined #ruby
marcdel has quit [Client Quit]
chip` has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
pmros has joined #ruby
<pmros>
hi
chip` has quit [Quit: TA]
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
angusiguess has joined #ruby
<chris___>
Hey there
chris___ is now known as codesoda
keymone has joined #ruby
love_color_text has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Catbuntu has quit [Quit: Leaving]
yann_ck has joined #ruby
<pmros>
when ruby (cruby) will be able to compile (and load) bytecode? (like rubinius or jruby)
Opettaja has quit [Read error: Operation timed out]
<Hanmac>
pmros when the hell is frozen ;P
Myk267 has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
jean-louis has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
lupine has joined #ruby
lupine has quit [Max SendQ exceeded]
<pmros>
lol
Xeago has quit [Remote host closed the connection]
ZachBeta has quit [Read error: Connection reset by peer]
kushalkhandelwal has joined #ruby
<bnagy>
eh? it uses bytecode internally
ZachBeta has joined #ruby
perun0 has quit [Quit: Leaving]
perun0 has joined #ruby
<Hanmac>
bnagy: yeah but it cant export or inport bytecode
<bnagy>
well you can look at RubyVM
yshh has quit [Remote host closed the connection]
<Hanmac>
pmros: why does everyone wants bytecode? you cant run it on other machines
<bnagy>
wasn't this a thing they were going to add to 2.0? Although tbh I have NFI why
<bnagy>
don't really see the point of exporting to bytecode to disk, I must be missing something
shevy has quit [Ping timeout: 255 seconds]
Zolo has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<pmros>
it's faster
<Hanmac>
pmros for this we have C-exts
<pmros>
hide code
<bnagy>
it doesn't hide shit
<bnagy>
and it's so close to not faster that it doesn't matter for any real script
<pmros>
C-exts is not everything, everywere, you know
yfeldblum has joined #ruby
<vandemar>
converting to some intermediate bytecode is usually faster. if a language doesn't compile to bytecode, it usually means it's interpreting some things repeatedly
<Hanmac>
pmros i can do 3D rendering with ruby and C-exts ... GPU powerd with more than 200FPS ... beat that ;P
<bnagy>
vandemar: YARV already uses bytecode internally, that's not ( as I understand it ) the question
<Hanmac>
vandemar: you are halfright, cruby does use bytecode, but not for you
<pmros>
I mean you usually don't use C-exts
<Hanmac>
pmros: why?
<pmros>
it's an specific optimization
<pmros>
not regular, daily use
kushalkhandelwal has quit [Remote host closed the connection]
stacky has quit [Ping timeout: 256 seconds]
<pmros>
(my english is awful, sorry)
* Hanmac
uses C-exts for nearly everything ... opening archives, making Window GUI with Buttons, doing 3D rendering, etc
kushalkhandelwal has joined #ruby
<bnagy>
Hanmac: yeah but you're a psychopath
yashshah__ has quit [Ping timeout: 264 seconds]
<vandemar>
when you compile code to a bytecode that actually has specs, that opens the door for a bytecode interpreter/vm to be separated and optimized better. jvm and hotspot are great. llvm would be nice. you really think cruby will approach either one?
<bnagy>
vandemar: I have no idea, I use jruby exclusively now
<vandemar>
it's not bytecode that matters, I'll grant that. it's the kind of bytecode and the interpreter/vm that runs the bytecode that matters
* Hanmac
never used jruby because of my gems
tealmage has joined #ruby
<bnagy>
but from what I hear they improved YARV again in 2.0, there's no inherent reason they can't get a pretty damn good VM
<bnagy>
but the only reason to _save_ bytecode to disk is to skip some lex / parse time, which is nuts
<Fuzai>
Could someone help me with a pattern match? I've got a string that has two numbers like "2 2" and i'm trying to pull them in to separate variables, i understand /\d+ \d+/.match("2 2") but how to i put them in separate values?
teddyp1cker has joined #ruby
<bnagy>
Hanmac: yeah cext and jruby do not play nicely :( That's why I do so much FFI now :)
<Spooner>
bnagy, Not really, unless there are an indeterminate number of numbers.
<Fuzai>
oh nice ty :)
<Fuzai>
there should be two exactly
<vandemar>
i'm guessing scan is still faster?
<bnagy>
it's definitely imho more readable and saves grouping etc
<Hanmac>
bnagy: FFI cant solv all of my problems ... because i can keep my bindings in nice ruby style and i can also play with the GC (so I can choose when objects are deleted or not)
<Spooner>
Fuzai, x, y = /(\d+) (\d+)/.match("2 2").captures.map(&:to_i)
<bnagy>
Hanmac: well you could manage it all in your c lib, write an FFI wrapper and turn off ruby GC ;)
lupine has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
<Hanmac>
bnagy yeah but i dont want to turn it of, i prefer to protect only my objects from deleting
<Spooner>
Fuzai, But in this case it would be easier to use: x, y = "2 2".split(" ").map(&:to_i)
<bnagy>
Hanmac: yeah well like I said before, that's because you're a psychopath :)
yashshah has joined #ruby
<pmros>
see you!
pmros has quit [Quit: Konversation terminated!]
<Hanmac>
bnagy: yeah but this is good for my gems ;P
tealmage has quit [Ping timeout: 256 seconds]
rakl has quit [Quit: sleeping]
kushalkhandelwal has joined #ruby
<Fuzai>
(from, to) = message.content.gsub(/^.+#{trigger['trigger_phrase']}/, '').scan(/\d+/) seems to get the job done for me nicely :)
<bnagy>
+1 for avoiding the use of regexp altogether, regexp sux
lupine has quit [Excess Flood]
<bnagy>
Fuzai: you probably don't need to bother gsubbing out whatever the trigger thing is, unless it contains numbers
<bnagy>
vandemar: try creating a Regexp before you enter your loop in the scan benchmark
<bnagy>
match automagically caches stuff somehow I think
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
callmeivan has joined #ruby
eykosioux has joined #ruby
rickruby has joined #ruby
lupine has joined #ruby
lupine has quit [Client Quit]
jgrevich has quit [Remote host closed the connection]
security has joined #ruby
kushalkhandelwal has quit [Ping timeout: 245 seconds]
megha has quit [Ping timeout: 245 seconds]
jean-louis has quit [Ping timeout: 252 seconds]
eykosioux has quit [Ping timeout: 245 seconds]
rickruby has quit [Ping timeout: 255 seconds]
shadoi has quit [Quit: Leaving.]
mockra has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby
Villadelfia has quit [Ping timeout: 248 seconds]
SeySayux has quit [Ping timeout: 256 seconds]
Villadelfia has joined #ruby
SeySayux has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
bonty_ssh has joined #ruby
robustus has joined #ruby
drale2k has joined #ruby
angusiguess has joined #ruby
eka has joined #ruby
bonty_ssh has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
crazed has quit [Ping timeout: 245 seconds]
idkazuma has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
blacktulip has joined #ruby
polysics has joined #ruby
<polysics>
hello!
<polysics>
anyone knows what Array#join() calls on its arguments, please?
Myk267 has quit [Quit: Ack! Hans, run! It's the lhurgoyf!]
<polysics>
I am seeing different behavior iwth arrays of Nokogiri documents
ehellman has joined #ruby
Myk267 has joined #ruby
<polysics>
ie. calling #to_s on them before the join results in the correct result, while simply using #join results in only the node text getting rendered
dhruvasagar has joined #ruby
<polysics>
I am running on 2.0 but I guess it is no different from 1.9.3 - at least, it is not reported as such
browndawg has left #ruby [#ruby]
<bnagy>
polysics: probably to_str
<bnagy>
but I can't see the source right from the rdoc cause it calls rb_ary_join internally and I can't be bothered :)
<bnagy>
but in general you should never rely on those implicit conversions, join seems to change every major ruby version, anyway
<polysics>
yes, I will to_s args firs
<polysics>
*t
<polysics>
and no, it's not calling to_s for some weird reason :-)
<polysics>
to_s would give the correct results
<bnagy>
it's not weird, it's consistent with other stuff
<bnagy>
that's why we have to_str and to_s
<polysics>
yes, correct
kristofers has joined #ruby
bluOxigen has joined #ruby
<bnagy>
it's just that in this case you got a weird result because of how Nokogiri chooses to implement those two methods
hogeo has quit [Remote host closed the connection]
<polysics>
but your (and my) reasoning is that if you want arguments in a certain form, you should just be using the correct method yourself
<polysics>
correct?
<bnagy>
yeah
<polysics>
Nokogiri could change, or join could change, or to_str could change :-)
<bnagy>
like Array#to_s I think used to call join, that's what I'm thinking of ( I think )
<MrZYX>
(16:13:18) tobiasvl: reppard: but ... isn't that just because you print them out
<MrZYX>
(16:13:23) tobiasvl: puts "Done with #{set}"
idkazuma has quit [Remote host closed the connection]
<tobiasvl>
reppard: it's printed to stdout because you explicitly prints it to stdout
<reppard>
MrZYX: damnit, i thought i changed that
mockra has joined #ruby
<reppard>
set should be name
<reppard>
haha thanks for seeing what i overlooked
<MrZYX>
also something like f.write ((set = set.to_a).first[0] == 'a' ? set : set.reverse).join("\n") is probably faster since it can to more IO at once, which greatly helps when doing threading in ruby (due to the GIL)
mercwithamouth has joined #ruby
reppard has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
mneorr has joined #ruby
reppard has joined #ruby
<reppard>
i'm always looking for ways to optimize threding
bonty_ssh has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
<reppard>
MrZYX: in your example, why am i joining on newline?
tommyvyo has quit [Client Quit]
sambio has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
pioz has joined #ruby
tommyvyo has joined #ruby
bonty_ssh has quit [Ping timeout: 260 seconds]
MrZYX is now known as MrZYX|off
<reppard>
damn tether connection
hmarr has joined #ruby
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
subbyyy has joined #ruby
backjlack has quit [Remote host closed the connection]
adamjleonard has joined #ruby
angusiguess has joined #ruby
adamjleonard has quit [Client Quit]
<ShapeShifter499>
near the bottom, why couldn't I just use "Calculator.maincalc"? is it because I had to start a "new" object? http://pastebin.com/8mXqDkmQ
Rioji has quit [Remote host closed the connection]
backjlack has joined #ruby
freerobby has quit [Quit: Leaving.]
nil1511 has quit [Ping timeout: 255 seconds]
eykosioux has quit [Ping timeout: 248 seconds]
<tobiasvl>
yes
<tobiasvl>
maincalc is an object method, not a class method
<tobiasvl>
so you can't access it through the class
rismoney has joined #ruby
LS\MFT has quit [Quit: Leaving]
uxp_ is now known as uxp
peta_ has quit [Quit: peta_]
<ShapeShifter499>
tobiasvl, ah ok thanks
sayan has quit [Read error: Connection reset by peer]
kirun has quit [Ping timeout: 255 seconds]
<tobiasvl>
ShapeShifter499: your code is pretty basic so
abstrusenick has joined #ruby
MrZYX|off is now known as MrZYX
<tobiasvl>
it's not that easy to see the difference, but consider your calculator's memory variable
<tobiasvl>
ypu need to create an object so you have a memory array
<tobiasvl>
othervise it could be a class variable, but then all calculators would share the same memory
<tobiasvl>
read up on instance variables btw
<tobiasvl>
now fun.memory always returns an empty array...
<reppard>
MrZYX: I think that goes much faste
<reppard>
r
apeiros has quit [Remote host closed the connection]
hach has joined #ruby
eval-in has quit [Remote host closed the connection]
s0ber has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<Psycho_gr>
I did sudo gem install bundler and got ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) too many connection resets (http://rubygems.org/gems/bundler-1.3.5.gem) What should I do?
inomataj has joined #ruby
inomataj has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
inomataj has joined #ruby
<mercwithamouth>
are there any tools out there that can help me fill out web forms?
momomomomo has joined #ruby
LooChao has quit [Remote host closed the connection]
inomataj has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
wargasm has joined #ruby
tenmilestereo has joined #ruby
freerobby has joined #ruby
hiyakashi has joined #ruby
atno__ is now known as atno
F1skr has joined #ruby
Ontolog has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
gyre007 has joined #ruby
aapzak has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
aapzak has joined #ruby
JeanMertz has quit []
sayan has quit [Ping timeout: 260 seconds]
pandawarrior1 has joined #ruby
yashshah has quit [Remote host closed the connection]
yashshah has joined #ruby
newUser1234 has joined #ruby
k3rn3lito has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
tevio has quit [Remote host closed the connection]
eykosioux has joined #ruby
mikecmpbll has joined #ruby
rakl has quit [Quit: sleeping]
Psycho_gr has quit [Quit: Leaving]
eykosioux has quit [Ping timeout: 245 seconds]
stkowski has joined #ruby
codespectator has joined #ruby
includex has quit [Quit: Leaving...]
sayan has joined #ruby
apeiros has quit [Remote host closed the connection]
hach has joined #ruby
nezumi has quit [Ping timeout: 260 seconds]
newbie has joined #ruby
newbie is now known as Guest66948
<Guest66948>
can you explain this method call .... a_method { a,b} do |f|
<Guest66948>
what is f here ?
<banisterfiend>
Guest66948: it doesnt make sense
<banisterfiend>
Guest66948: that method call is a syntax error
<Guest66948>
i'm looking at the view new.html.erb generated by devise
<Guest66948>
<%= simple_form_for( parameters here...) do |f| %>
<MrZYX>
Guest66948: read up about blocks and block parameters
<injekt>
Guest66948: you didn't add the parenthesis to your version
<banisterfiend>
Guest66948: probably best to learn ruby a little bit before you start with rails :)
blazedd has quit [Quit: Bye]
<Guest66948>
any pointer to a good dumb down of block tutorial? that's the feature i most struggle with with ruby
<injekt>
it's pretty basic Ruby, you'll find resources for it in a simple google search or any Ruby book
gunboat has joined #ruby
Opettaja has joined #ruby
yshh has quit [Read error: Connection reset by peer]
gunboat has quit [Read error: Connection reset by peer]
<Guest66948>
alright. thanks guys
yshh has joined #ruby
pskosinski has joined #ruby
gunboat has joined #ruby
reppard has joined #ruby
gunboat has quit [Read error: Connection reset by peer]
gunboat has joined #ruby
gyre008 has joined #ruby
gunboat has quit [Read error: Connection reset by peer]
jetblack has joined #ruby
gunboat has joined #ruby
Guest66948 has quit [Quit: irc2go]
maxmanders has joined #ruby
adambeynon has joined #ruby
gunboat has quit [Read error: Connection reset by peer]
gunboat has joined #ruby
gyre007 has quit [Ping timeout: 276 seconds]
gunboat has quit [Read error: Connection reset by peer]
gunboat has joined #ruby
pkrnj has joined #ruby
security has joined #ruby
gunboat has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
gunboat has joined #ruby
cibs has joined #ruby
megha has quit [Ping timeout: 252 seconds]
security is now known as megha
chrishough has joined #ruby
pandawarrior1 has quit [Quit: Leaving.]
gunboat has quit [Read error: Connection reset by peer]
megha has quit [Excess Flood]
teddyp1cker has quit [Remote host closed the connection]
gunboat has joined #ruby
k3rn3lito has quit [Ping timeout: 240 seconds]
Faris has quit [Remote host closed the connection]
Roa has quit [Ping timeout: 264 seconds]
gyre008 has quit [Remote host closed the connection]
gunboat has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 256 seconds]
megha has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
browndawg has quit [Quit: Leaving.]
PragCypher has joined #ruby
bga-ruby has joined #ruby
freerobby has quit [Quit: Leaving.]
<bga-ruby>
I am a ruby noob trying to use mechanize, and I am having problems with an iterator. I have "agent.page.links_with(:href => /p\-/)". If I have a simple iterator of {|link| puts link } it displays the links, but if I use an iterator of {|link| puts link.uri} it complains withNoMethodError: undefined method `uri' for #<Array:0x5340b667>
<bga-ruby>
If I do link = agent.page.links_with(:href => /p\-/)[1] in jirb and then puts link.uri, it works
hmarr has joined #ruby
blaxter has joined #ruby
motto has joined #ruby
zavier has quit [Quit: WeeChat 0.3.8]
<bga-ruby>
why isn't the method found within the iterator?
enriclluelles has joined #ruby
zavier has joined #ruby
m8 has quit [Read error: Operation timed out]
ToApolytoXaos has joined #ruby
browndawg has joined #ruby
motto has quit [Max SendQ exceeded]
maxmanders has quit [Quit: Computer has gone to sleep.]
motto has joined #ruby
lkba has joined #ruby
cloke has joined #ruby
n1x has joined #ruby
gyre007 has joined #ruby
hach has quit [Ping timeout: 256 seconds]
<dhodgkin>
#python
etcetera has quit []
* dhodgkin
is a retard
<dhodgkin>
all can agree :)
mockra has joined #ruby
* bga-ruby
doesn't like languages that use whitespace to define blocks.
* dhodgkin
either
Politoed has quit [Ping timeout: 245 seconds]
jaysql has joined #ruby
<jaysql>
I found a ruby exploit
motto has quit [Max SendQ exceeded]
angusiguess has joined #ruby
motto has joined #ruby
<waxjar>
uh oh
Politoed has joined #ruby
<dhodgkin>
bga-ruby: def ... end, { ... }, begin .... end, those are how blocks should be defined. agreed?
hach has joined #ruby
reppard has quit [Ping timeout: 252 seconds]
johnnyfuchs has quit [Quit: Leaving.]
<bga-ruby>
yes, I agree
<waxjar>
i'd rather have whitespace than multiline curly braces, though. i think :P
mockra has quit [Ping timeout: 252 seconds]
<dhodgkin>
anywho, apologies for the #python slip up. typo induced disrespect for the chan :(
<Hanmac>
jaysql so that is it?
<bga-ruby>
You should be able to cut and past a block to anywhere where the block would be legal, and just have it work.
motto has quit [Max SendQ exceeded]
bonty_ssh has joined #ruby
motto has joined #ruby
<dhodgkin>
bga-ruby: agreed
<jaysql>
I didnt know ruby was so insecure
<Hanmac>
jaysql the most "exploits" are from rails people that uses ruby wrong
mikecmpbll has quit [Quit: Computer has gone to sleep.]
cloke has quit [Quit: cloke]
enriclluelles has quit [Remote host closed the connection]
<jaysql>
Not really
enriclluelles has joined #ruby
reppard has joined #ruby
subbyyy has joined #ruby
<Hanmac>
they whine about that YAML and Marshal can generate objects ... they whine about that to_sym generate Symbols and they what to change Core Ruby because they are to lazy to change ther own code
<jaysql>
Ruby is built to be insecure
Proshot has joined #ruby
bonty_ssh has quit [Ping timeout: 256 seconds]
<ChristianS>
jaysql: stop talking nonsense
<ChristianS>
jaysql: "insecure" might or might not be true about rails, but it hardly makes sense for programming languages
gunboat has quit [Read error: Connection reset by peer]
gunboat has joined #ruby
Xlab has joined #ruby
atno has quit [Remote host closed the connection]
adamjleonard has joined #ruby
gunboat has quit [Read error: Connection reset by peer]
atno has joined #ruby
a_a_g has joined #ruby
gunboat has joined #ruby
chandankumar has joined #ruby
adamjleonard has quit [Client Quit]
lktp has quit [Quit: This computer has gone to sleep]
basex has joined #ruby
g0bl1n has quit [Ping timeout: 264 seconds]
gunboat has quit [Read error: Connection reset by peer]
gunboat has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
gunboat has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
gunboat has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
gunboat has quit [Read error: Connection reset by peer]
gunboat has joined #ruby
generali_ has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
greenarrow has joined #ruby
brianherman has joined #ruby
<jaysql>
nice 'bug' reports
<jaysql>
:D
codespectator has quit [Quit: Computer has gone to sleep.]
jaysql is now known as gentoofan
gentoofan is now known as jaysql
gunboat has quit [Ping timeout: 252 seconds]
Spooner has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 255 seconds]
tealmage has joined #ruby
codespectator has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
one8zero has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
k3rn3lito has joined #ruby
anderse has quit [Quit: anderse]
iamjarvo has joined #ruby
<Hanmac>
jaysql: soo what is your exploit you found?
whowantstolivefo has joined #ruby
<jaysql>
remote execution
workmad3 has quit [Ping timeout: 255 seconds]
tealmage has quit [Ping timeout: 256 seconds]
banjara has joined #ruby
BizarreCake has quit [Ping timeout: 240 seconds]
jgrevich has joined #ruby
travnick has joined #ruby
ph^ has joined #ruby
dhruvasagar has joined #ruby
apeiros has joined #ruby
chandankumar has joined #ruby
roz has joined #ruby
hiroyuki has joined #ruby
tomsthumb has quit [Quit: Leaving.]
banjara has quit [Client Quit]
one8zero has left #ruby [#ruby]
ph^_ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
<havenwood>
FUD
<Vivekananda>
hey everyone
<Vivekananda>
hi havenwood
apeiros has quit [Ping timeout: 245 seconds]
Czupa has joined #ruby
iamjarvo has quit [Quit: Leaving.]
<havenwood>
jaysql: pics or it didn't happen :P
<jaysql>
i am selling it
sambao21 has quit [Quit: Computer has gone to sleep.]
Opettaja has quit [Quit: WeeChat 0.3.8]
etcetera has joined #ruby
<ChristianS>
lol
pothibo has quit [Quit: pothibo]
<havenwood>
jaysql: Half price with the purchase of a time machine ticket?
pothibo has joined #ruby
sixEch0_ has joined #ruby
hashmal has joined #ruby
sixEch0_ has left #ruby [#ruby]
pkrnj has quit [Quit: Computer has gone to sleep.]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
drale2k has joined #ruby
apeiros has joined #ruby
ckrailo has joined #ruby
workmad3 has joined #ruby
etcetera has quit []
baroquebobcat has quit [Quit: baroquebobcat]
tylersmith has joined #ruby
Xeago has joined #ruby
apeiros has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 264 seconds]
Yakko is now known as YakkoAFK
ckrailo has quit [Client Quit]
nalaginrut has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
Dreamer3 has joined #ruby
chandankumar has quit [Quit: Leaving]
ananthakumaran has quit [Quit: Leaving.]
devisequestion has joined #ruby
arya has quit [Ping timeout: 248 seconds]
gyre007 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
<devisequestion>
hi all, i have a question on devise. Most tutorial on the net show to create a _navigation.erb.html partial for devise navigation menu. In this partial, user_signed_in variable is used, but i couldn't see where it is defined in which controller...
ckrailo has joined #ruby
arya has joined #ruby
choobie has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
deric_skibotn has joined #ruby
_br_ has joined #ruby
tommyvyo has quit [Quit:]
baroquebobcat has quit [Client Quit]
<_br_>
Sorry crawling up from under a rock here... what is this ? A BOM? (first line in a file) .. # -*- mode: ruby -*-
<sebastianb>
devisequestion: does it have to be defined in the controller if it comes from a gem?
<_br_>
emacs...
<_br_>
never mind.
workmad3 has joined #ruby
rickruby has quit [Remote host closed the connection]
<devisequestion>
i think i found it...it's in the devisegem/lib/devise/helper
_br_ has quit [Quit: leaving]
rickruby has joined #ruby
havenn_ has joined #ruby
m8 has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenn_ has quit [Remote host closed the connection]
m8 has quit [Max SendQ exceeded]
motto has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
jdunck has joined #ruby
iamjarvo has joined #ruby
m8 has quit [Max SendQ exceeded]
devisequestion has quit [Quit: irc2go]
hmarr has quit []
browndawg has quit [Quit: Leaving.]
beneggett has joined #ruby
stef_204 has joined #ruby
pioz has joined #ruby
btaitelb has joined #ruby
kimteq has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
Astral__ has quit [Ping timeout: 276 seconds]
sepp2k has quit [Quit: Leaving.]
mlr has joined #ruby
<Akuma>
hello, I'm having some issues with mysql2 on windows, it says it cannot install the gem and it stops after "check for main in -llibmysql... no"
<Akuma>
my mysql server is located on a separate machine
mockra has joined #ruby
Roa has quit [Ping timeout: 240 seconds]
KazW has quit [Ping timeout: 245 seconds]
k3rn3lito has quit [Ping timeout: 252 seconds]
etcetera has quit []
Astralum has joined #ruby
roz has quit [Ping timeout: 260 seconds]
mockra has quit [Ping timeout: 256 seconds]
pioz has quit [Quit: This computer has gone to sleep]
mercwithamouth has quit [Ping timeout: 248 seconds]
baphled_ has joined #ruby
tealmage has joined #ruby
chandankumar has joined #ruby
ggordan has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
mneorr_ has quit [Remote host closed the connection]
chandankumar has quit [Remote host closed the connection]
roz has joined #ruby
sayan has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
generali_ has joined #ruby
mneorr has joined #ruby
javiolo has joined #ruby
mneorr has quit [Remote host closed the connection]
lunarjar has quit [Quit: Bye]
lunarjar has joined #ruby
mercwithamouth has joined #ruby
danneu has joined #ruby
pesto has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
pesto has left #ruby [#ruby]
pitzips has joined #ruby
pitzips has quit [Client Quit]
eka has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
sepp2k has joined #ruby
mahmoudimus has joined #ruby
oneirophren has joined #ruby
oneirophren has quit [Client Quit]
subbyyy has quit [Read error: Connection reset by peer]
basex has quit [Quit: basex]
reset has joined #ruby
schickung_ has joined #ruby
peta_ has joined #ruby
subbyyy has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
schickung has quit [Ping timeout: 256 seconds]
schickung_ is now known as schickung
AlSquire has joined #ruby
sayan has joined #ruby
heliumsocket has quit [Ping timeout: 245 seconds]
undersc0re97 has quit [Quit: Leaving]
jaysql has quit [Quit: a]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
Ontolog has joined #ruby
oneirophren has joined #ruby
oneirophren has quit [Client Quit]
apeiros has joined #ruby
n1x has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
hiyakashi has quit [Ping timeout: 245 seconds]
pitzips has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
ngoldman has joined #ruby
PragCypher has quit [Quit: Leaving]
angusiguess has quit [Ping timeout: 256 seconds]
<Akuma>
I managed to install the mysql2 gem, however I cannot seem to get it recognized; webrick tells me that I have to add it to my gem file even though it is already there
Neandre has quit [Remote host closed the connection]
brian_000_ has joined #ruby
tobyo has joined #ruby
Spooner has joined #ruby
angusiguess has joined #ruby
jgrevich has quit [Remote host closed the connection]
Roa has joined #ruby
brianherman has quit [Ping timeout: 245 seconds]
oneirophren has joined #ruby
mneorr has joined #ruby
mlr has quit [Quit: Lost terminal]
<danneu>
Akuma: youve added it to gemfile, right
basex has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
basex has quit [Client Quit]
drale2k has quit [Quit: Leaving...]
forlin has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
eykosioux has joined #ruby
n1x has joined #ruby
chrishough has quit [Quit: chrishough]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
sambao21 has joined #ruby
eykosioux has quit [Ping timeout: 256 seconds]
mockra has joined #ruby
bricker`LA has quit [Quit: leaving]
wreckimnaked has quit [Ping timeout: 246 seconds]
Ontolog has quit [Remote host closed the connection]
Arzaga has joined #ruby
sambao21_ has joined #ruby
tenmilestereo has quit [Quit: Leaving]
fir_ed has quit [Quit: Leaving]
mockra has quit [Ping timeout: 248 seconds]
eykosioux has joined #ruby
rakl has joined #ruby
jdolitsky has joined #ruby
wreckimnaked has joined #ruby
perun0 has quit [Ping timeout: 252 seconds]
schickung has quit [Quit: schickung]
DrCode has quit [Remote host closed the connection]
nuttyradiofreek has joined #ruby
pcarrier has joined #ruby
momomomomo has joined #ruby
ehellman has quit []
tommyvyo has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
<Rumsteak>
What is the default file encodeing when doing File.read("my_file") in Ruby ?
<MrZYX>
your system one iirc
<Rumsteak>
ok
kristofers has joined #ruby
DrCode has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21_ is now known as sambao21
eykosioux has quit [Remote host closed the connection]
tylersmith has quit [Quit: tylersmith]
n1x has quit [Read error: Connection reset by peer]
<Rumsteak>
looks like it is utf8 for me (when I do File.read("my_file").encoding)
newUser1234 has quit [Remote host closed the connection]
perun0 has joined #ruby
reset has quit [Quit: Leaving...]
iamjarvo has quit [Quit: Leaving.]
chussenot has joined #ruby
<waxjar>
the default encoding in Ruby 2.0 is UTF-8? don't know if that applies to files too
chussenot has quit [Remote host closed the connection]
benlieb has joined #ruby
crassus is now known as Israeli-
<MrZYX>
I think so, but for reading stuff in it uses the system encoding by default, only if that's unset it falls back to the internal default
jpfuentes2 has joined #ruby
etcetera has joined #ruby
iamjarvo has joined #ruby
<Rumsteak>
"The external encoding defaults to whatever the $LANG environment variable is set to - in my case de_AT.UTF-8"
deric_skibotn has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
mockra has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
<shevy>
Rumsteak haha austria?
kop has quit [Remote host closed the connection]
nanothief has joined #ruby
mockra has quit [Ping timeout: 240 seconds]
slainer68 has quit [Remote host closed the connection]
sambio has quit [Ping timeout: 256 seconds]
oneirophren has quit [Ping timeout: 256 seconds]
etcetera has quit []
chrishunt has quit [Ping timeout: 245 seconds]
<Spooner>
I have two files that I'm reading with File.read (in 1.9.3), both have encoding = UTF-8 - both are seemingly identical,but == says they are not. What have I missed?
<tobiasvl>
huh?
<tobiasvl>
the files?
<banisterfiend>
Spooner: sup
<tobiasvl>
can't imagine ruby checks the contents of the files when comparing them
<tobiasvl>
Spooner: what's your code
chrishunt has joined #ruby
<banisterfiend>
File#== just uses Object#==
<banisterfiend>
so it compares (effectively) object_id
Czupa has quit [Ping timeout: 245 seconds]
<Spooner>
File.read(x) == File.read(y) (both UTF and both identical when I print them out)
<MrZYX>
banisterfiend: File.read returns a string
<banisterfiend>
MrZYX: yeah i didnt see that bit ;)
<banisterfiend>
(that he was using File.read)
Dreamer3 has quit [Quit: Leaving...]
<Spooner>
banisterfiend, There is a File.identical?, you know ;) But I want the strings.
dmiller has quit [Remote host closed the connection]
<MrZYX>
same .size?
wallclockbuilder has joined #ruby
kirun has joined #ruby
<Rumsteak>
shevy: nope, just copy/pasted this encoding from an article
<Spooner>
Ah, I found an unprintable character in there. Oops!
wallcloc_ has joined #ruby
<tobiasvl>
:)
<tobiasvl>
otherwise there are a couple of diffing tools
mattbl has quit [Remote host closed the connection]
newUser1234 has joined #ruby
huoxito has joined #ruby
hach has quit [Ping timeout: 256 seconds]
mockra has quit [Ping timeout: 255 seconds]
btaitelb has quit [Quit: btaitelb]
eykosioux has joined #ruby
kirun has quit [Read error: Operation timed out]
etcetera has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
wesside has joined #ruby
sambao21 has joined #ruby
codecop has quit [Remote host closed the connection]
workmad3 has joined #ruby
eykosioux has quit [Ping timeout: 245 seconds]
btaitelb has joined #ruby
mneorr has joined #ruby
tjbiddle_ has joined #ruby
callmeivan has quit [Remote host closed the connection]
callmeivan has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
btaitelb has quit [Quit: btaitelb]
arya has quit [Ping timeout: 248 seconds]
subbyyy has joined #ruby
<cat-on-mah-keys>
So, I traded one error for another.
<cat-on-mah-keys>
/usr/lib/ruby/1.9.1/xmlrpc/client.rb:414:in `call': Call XML not a proper XML-RPC call. error parsing "100000970217396": Numerical result out of range (34) (XMLRPC::FaultException)
<cat-on-mah-keys>
Think I'll just sanitize my data. :P
markalanevans has joined #ruby
<MrZYX>
sum the digits up, done :P
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
enriclluelles has quit [Read error: Connection reset by peer]
etcetera has quit []
<cat-on-mah-keys>
I figure I'll just add another field on each name/id pair based on index, and then map my edges list against that.
workmad3 has quit [Quit: Lost terminal]
mercwithamouth has quit [Ping timeout: 252 seconds]
enriclluelles has joined #ruby
mercwithamouth has joined #ruby
etcetera has joined #ruby
idkazuma has joined #ruby
reppard has quit [Ping timeout: 252 seconds]
etcetera has quit [Client Quit]
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777>
howdy. anyone here using 2.0?
nezumi has joined #ruby
<undersc0re97>
ntzrmtthihu777: yes
<undersc0re97>
probably /most/ people are
* Hanmac
uses 2.1 ;P
<ntzrmtthihu777>
:D anyone willing to help me sort out an issue?
<MrZYX>
ntzrmtthihu777: if you have a question just ask it and don't try to find the "right one to answer it" ;)
chessguy has joined #ruby
<ntzrmtthihu777>
MrZYX: true XD, I should know that.
pcarrier has quit [Quit: Computer has gone to sleep.]
<ntzrmtthihu777>
anyways, attempting to rake the gem rbSFML against 2.0 gives me an error, will try again to get the exact error. it wants me to recompile something with -fPIC, and its not the gem as the rakefile forces that anyways.
dhodgkin has quit [Remote host closed the connection]
ngoldman has joined #ruby
mockra has joined #ruby
carloslopes has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 245 seconds]
travnick has quit [Remote host closed the connection]
undersc0re97 has quit [Remote host closed the connection]
carloslopes has joined #ruby
mockra has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
momomomomo has joined #ruby
freerobby has quit [Quit: Leaving.]
wallcloc_ has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
pkill has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 245 seconds]
enriclluelles has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
enriclluelles has joined #ruby
<ntzrmtthihu777>
yeah. attempting to rake rbsfml against 2.0 gives this error : /usr/bin/ld: /usr/local/lib/libruby-static.a(enumerator.o): relocation R_X86_64_PC32 against symbol `rb_enumeratorize_with_size' can not be used when making a shared object; recompile with -fPIC
kirun has joined #ruby
tylersmith has joined #ruby
Akuma has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
tomsthumb has joined #ruby
tomsthumb has quit [Client Quit]
beneggett has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
skattyadz has joined #ruby
mneorr has joined #ruby
LnL has joined #ruby
AtoxIO has joined #ruby
sambio has joined #ruby
newUser1234 has quit [Ping timeout: 252 seconds]
newUser1234 has joined #ruby
<AtoxIO>
Hello, ruby1.9.3-p392 FileUtils.touch(file) generates a "No such file or directory" error (Errno::ENOENT)
<AtoxIO>
now that shouldn't happen, so, anybody knows why and how to solve?
hackeron has quit [Ping timeout: 240 seconds]
nezumi has quit [Ping timeout: 264 seconds]
<MrZYX>
AtoxIO: ensure all leading path components in file exist
<banisterfiend>
MrZYX: are you new to ruby btw?
<AtoxIO>
MrZYX: I just realized that, gheh
<MrZYX>
hm, not sure, what is new? :P
<banisterfiend>
MrZYX: how many month/year ? :)
<AtoxIO>
MrZYX: seems like somewhere my app is doing a chdir
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
iamjarvo has quit [Quit: Leaving.]
<MrZYX>
banisterfiend: my problem is I've no clear point where I started learning ruby
<banisterfiend>
MrZYX: how long ago until u got past noob
<ntzrmtthihu777>
< still in n00b
<MrZYX>
but I'd say around 1 1/2 years, although just private/for fun
mockra has joined #ruby
<MrZYX>
being "noob" is again something very vague to me
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
<AtoxIO>
interesting, __FILE__ doesn't catch up to chdir, does anybody know a hack?
<banisterfiend>
__FILE__ has nothing to do with chdir
<banisterfiend>
__FILE__ is the current source file
<MrZYX>
you want Dir.pwd
ckrailo has joined #ruby
apeiros has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
carloslopes has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<AtoxIO>
__FILE__ is a relative path, if you chdir, I'd expect that relative path to update
<waxjar>
that's not much different from c = 1; def c; 2; end; c, though.
<AtoxIO>
works with local variables too, but its more fun with constants
freerobby has quit [Quit: Leaving.]
chilili has joined #ruby
<AtoxIO>
anyways, I'm adding FILE = File.expand_path( __FILE __ ) to the top of my script
momomomomo has joined #ruby
<AtoxIO>
still quite unexpected
<apeiros>
AtoxIO: contants are less fun actually, since there it's never ambigous
mercwithamouth has quit [Ping timeout: 245 seconds]
<apeiros>
you can't call a capitalized method without either of a) explicit receiver, b) parens, or c) an argument
bigkevmcd has quit [Read error: Connection reset by peer]
<AtoxIO>
apeiros: you sir, are correct
grenierm has left #ruby [#ruby]
roz has quit [Ping timeout: 264 seconds]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
carloslopes has joined #ruby
roz has joined #ruby
immutable_ has joined #ruby
wesside has joined #ruby
jarin has quit [Quit: WeeChat 0.4.0]
arya has quit [Ping timeout: 248 seconds]
<apeiros>
I think it's mainly because :: can also be used for method invocation. due to that, a method would always shadow a nested constant :-/
chessguy has joined #ruby
niceguy1234 has quit [Read error: Connection reset by peer]
arya has joined #ruby
roz has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
undersc0re97 has quit [Quit: Leaving]
chilili has quit [Quit: leaving]
fixl has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
sambao21 has quit [Quit: Computer has gone to sleep.]
Frodo128 has joined #ruby
mockra has joined #ruby
ngoldman_ has joined #ruby
ngoldman has quit [Ping timeout: 256 seconds]
pcarrier has joined #ruby
marcdel has joined #ruby
mneorr has joined #ruby
sambao21 has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
mockra has quit [Ping timeout: 252 seconds]
wreckimnaked has quit [Ping timeout: 264 seconds]
hach has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
undersc0re97 has quit [Quit: Leaving]
Frodo128 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
iamjarvo has joined #ruby
dmiller has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
pkrnj has joined #ruby
tomzx_mac has joined #ruby
Opettaja has joined #ruby
Opettaja has quit [Client Quit]
benlieb has quit [Quit: benlieb]
Opettaja has joined #ruby
iamjarvo has quit [Quit: Leaving.]
iamjarvo has joined #ruby
jekotia has joined #ruby
ngoldman_ has quit [Remote host closed the connection]
reset has joined #ruby
Opettaja has quit [Client Quit]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
Opettaja has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
kirun_ has joined #ruby
mercwithamouth has joined #ruby
Opettaja has quit [Client Quit]
Opettaja has joined #ruby
kirun has quit [Ping timeout: 256 seconds]
Iszak has joined #ruby
etcetera has quit []
Opettaja has quit [Client Quit]
Opettaja has joined #ruby
dmiller has joined #ruby
Opettaja has quit [Client Quit]
miskander has joined #ruby
Opettaja has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
nezumi has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
mockra has joined #ruby
kuzushi__ has joined #ruby
AtoxIO has quit [Remote host closed the connection]
pioz has joined #ruby
pioz has quit [Client Quit]
ckrailo has quit [Quit: Computer has gone to sleep.]
whowantstolivefo has quit [Ping timeout: 245 seconds]
DonRichie has quit [Quit: Verlassend]
cads has quit [Ping timeout: 264 seconds]
kuzushi_ has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777>
hello, using ruby 1.9.3 and the ruby binding of sfml (now a gem), using example scripts for a template. thing is they require 'path/to/so' relative to the source directory, so how would I use them with the gem instead?
idkazuma has quit [Remote host closed the connection]
eykosioux has joined #ruby
dmiller has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]
hach has quit [Ping timeout: 255 seconds]
predator117 has joined #ruby
idkazuma has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
eykosioux has quit [Ping timeout: 256 seconds]
dmiller has quit [Ping timeout: 245 seconds]
BSaboia has quit [Read error: Connection reset by peer]
pandawarrior1 has quit [Quit: Leaving.]
heliumsocket has joined #ruby
kseifried has quit [Quit: Leaving]
tdecs has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
emmanuelux has quit [Quit: emmanuelux]
<tomzx_mac>
ntzrmtthihu777: use require_relative?
<ntzrmtthihu777>
tomzx_mac: yeah, I know about that, I was just hoping to be able to just use the gem so another person using my work would just have to install the gem.
<ntzrmtthihu777>
kinda like cpp, when you use include and it knows where the dir to look is already and you don't have to point the path to it.
Xeago has quit [Remote host closed the connection]
<tomzx_mac>
you talking about using bundler?
<tomzx_mac>
afaik that's the fancy way to deal with dependencies like requiring sfml and other gems
<ntzrmtthihu777>
tomzx_mac: hey! I've heard of that... I mean like in the sdl gem's sample code it uses gem 'rubysdl' and such.
skattyadz has quit [Quit: skattyadz]
cmarques has joined #ruby
<tomzx_mac>
you can always be unfancy and write in the installer documentation to run gem install X
<tomzx_mac>
:P
MrZYX is now known as MrZYX|off
<tomzx_mac>
or write a install.sh file that calls gem install
<tomzx_mac>
there's various way to accomplish the "automated" install of gems you require for your app
ZachBeta has joined #ruby
LongLiveBacon has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777>
tomzx_mac: yeah, I understand that. problem is I have the gem, but I can't get it into the code without using the require 'path/to/so', which may or may not be the same on all systems.