brennanMKE has quit [Remote host closed the connection]
K-line has quit [Ping timeout: 248 seconds]
orien has quit [Quit: Computer has gone to sleep.]
Liquid-- has joined #ruby
aruntomar has quit [Ping timeout: 264 seconds]
<Spooner>
Godd2, I guess so. Hard to say without knowing what the overall structure is. Getting there though!
aruntomar has joined #ruby
timkohrumel has joined #ruby
<adramalech>
so another question... Is there a way to package api libraries used into a ruby like the equivalent of a .jar file?
orien has joined #ruby
marr has quit [Ping timeout: 245 seconds]
Inside has quit [Ping timeout: 256 seconds]
<fryguy>
adramalech: that's what gems are
<Spooner>
adramalech, gems are the way to package up a library.
<adramalech>
okay, so create a gem
<adramalech>
because i was worried about taking an email client solution using mail, etc.. and not being able to run it on another computer
eka has joined #ruby
<Spooner>
A gem is just a library. It isn't an executable.
<adramalech>
so i just include the gem with my code for others to use?
timkohrumel has quit [Remote host closed the connection]
<Spooner>
Usually gems are uploaded to rubygems.org
Xeago has quit [Remote host closed the connection]
gmci has quit [Read error: Connection reset by peer]
<adramalech>
so if someone runs my code and they don't have the proper gems installed would it warn them or just error?
ravster has left #ruby [#ruby]
<Spooner>
We usually use Bundler (a gem) to automatically install the correct gems.
<Spooner>
Before running an application.
<adramalech>
sorry for all my noobish questions just alittle mystified about all this..
aruntomar has quit [Ping timeout: 245 seconds]
<Spooner>
You come from Java?
fridim_ has joined #ruby
<fryguy>
adramalech: you mention dependencies in the gemspec that you create for the gem
mansi has joined #ruby
<adramalech>
well i come from alot of languages, just graduated and am working for a company, that wants me to know ruby before i start my contract job
Soekis has joined #ruby
<adramalech>
i know scheme, python, java, c, c++, verilog, prolog
<adramalech>
clips, lisp
aruntomar has joined #ruby
<Spooner>
Well, is like how Python manages it with eggs installed with pip (we just have gems installed with gem).
<rcs>
adramalech: The phrase you're looking for is "bundler standalone".
<adramalech>
just for some reason never got into ruby and so kindof like learning it fast as i can..
timkohrumel has joined #ruby
<adramalech>
okay thanks rcs!
Soeki has quit [Ping timeout: 255 seconds]
Soekis is now known as Soeki
<rcs>
But that still doesn't get you away from needing the ruby runtime itself.
<adramalech>
ahh i c spooner
gmci has joined #ruby
<adramalech>
so would you guys say that if perl and smalltalk had a kid it would have been ruby?? 8/
havenwood has joined #ruby
<Spooner>
That is a common belief, yes.
<rcs>
Perl : Ruby :: Daria :: Quinn
_Renegade has quit [Quit: _Renegade]
<adramalech>
i see alot of similar ruby practices as i saw in learning that god-forsaken language smalltalk..
`p has joined #ruby
aruntomar has quit [Ping timeout: 264 seconds]
aruntomar has joined #ruby
machuga|away is now known as machuga
<Apane>
Ruby is a pretty intuitive language, hence you should be able to pick it up relatively easy. Incidentally, you have exp with other languages and it is one of the more programmer friendly ones. Check out: The Well Grounded rubyist book for a deep-dive into all of the concepts/theory.
freerobby has joined #ruby
ntus1017 has quit [Remote host closed the connection]
<adramalech>
okay will do, i got a copy of pickaxe guide 1.9/2.0 updated drm-free ebook, and why's poignant guide
gmci has quit [Read error: Connection reset by peer]
jkline has quit [Quit: jkline]
huoxito has joined #ruby
moos3 has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
brennanMKE has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: chrishough]
timkohrumel has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
jamesaxl has quit [Ping timeout: 256 seconds]
gmci has joined #ruby
jamesaxl has joined #ruby
<Spooner>
_why is good for mind expanding. Rather less than dense in terms of concentration of Ruby wisdom ;)
Hanmac has quit [Ping timeout: 260 seconds]
moos3 has quit [Client Quit]
<adramalech>
well i find it is alot of learning the best sematical usage of a language and the mindset will help just as much as reading a tech. manual
timkohrumel has joined #ruby
citizensinspace has joined #ruby
aruntomar has quit [Ping timeout: 264 seconds]
john2x has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
<adramalech>
well it seems the nfc and opencv gems are out-of-date with my arch package... darn it... can I just replace the older gem with a newer one using my api version, or just use bundler???
<john2x>
hello.. i'm using rbenv, and just installed a gem which comes with an executable. but it didn't seem to get placed in the shims directory. can I just mv or cp it there?
lucianosousa has quit [Quit: lucianosousa]
<fryguy>
john2x: rbenv rehash probably
<john2x>
fryguy: perfect :) thanks!
johnrliv_ has joined #ruby
aruntomar has joined #ruby
johnrlive has quit [Read error: Operation timed out]
jamesaxl has quit [Ping timeout: 276 seconds]
citizensinspace has quit [Ping timeout: 255 seconds]
timkohrumel has quit [Remote host closed the connection]
vwoo has quit [Ping timeout: 245 seconds]
phantomcircuit has joined #ruby
JZTech101 has quit [Ping timeout: 255 seconds]
wmoxam has joined #ruby
pierre1 has joined #ruby
vwoo has joined #ruby
jamesfung14 has joined #ruby
freerobby has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
fswitalski has quit [Quit: Leaving]
viszu has joined #ruby
ner0x has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
tjbiddle_ has joined #ruby
ivanoats_ has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
ivanoats has joined #ruby
Spooner has quit [Remote host closed the connection]
tjbiddle_ has quit [Ping timeout: 264 seconds]
marcgg has quit [Read error: No route to host]
_cheney6 is now known as ccheney
marcgg has joined #ruby
ccheney has quit [Read error: Connection reset by peer]
<havenwood>
needsomehelp: Not sure if that link is still relevant.
Soekis has joined #ruby
<needsomehelp>
I just installed Ruby
orien has joined #ruby
<needsomehelp>
I dont know how to compile gems, only how to install
emergion has joined #ruby
<needsomehelp>
gem install name
Soeki has quit [Ping timeout: 245 seconds]
Soekis is now known as Soeki
slainer68 has quit [Remote host closed the connection]
<havenwood>
needsomehelp: Yeah, you need to be able to compile C-extensions as well - for gems that have those. DevKit or some way to compile/make gems.
<needsomehelp>
how?
subbyyy has joined #ruby
<havenwood>
needsomehelp: I don't know the best way on Windows. I could tell you for OS X, BSD, Linux, but Solaris or Windows I dunno.
<havenwood>
The 'exotic' systems. :P
<needsomehelp>
okay :p
<havenwood>
needsomehelp: I think Windows Ruby installer thing comes with build tools? I recall there being something like "DevKit" for Windows that could build.
<havenwood>
needsomehelp: I don't know. Maybe try checking the log they mention.
<needsomehelp>
k
Michae___ has joined #ruby
<jagadeesh>
I am learning ruby and trying this example
<havenwood>
jagadeesh: That is monkey patching String to add the method #word_count.
<jagadeesh>
havenwood: am learning and is first day. :-)
<havenwood>
jagadeesh: Gimme two min, i'm gunna lose this blitz chess match if I don't concentrate. Oh Saturday night....
<jagadeesh>
havenwood: ok... all the best
gadgetoid has quit [Ping timeout: 240 seconds]
albertone has quit [Ping timeout: 264 seconds]
<jagadeesh>
havenwood: lemme know when you are back. I have few clarifications
vlad_starkov has quit [Ping timeout: 245 seconds]
orien has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
dhruvasagar has joined #ruby
citizensinspace has joined #ruby
nari_ has joined #ruby
<havenwood>
jagadeesh: So the String class already exists. If you `class String` you're opening up that class. You can then add or edit methods. It is generally frowned upon to monkeypatch core classes, but can be really nice for creating a DSL>
MrZYX is now known as MrZYX|off
<jagadeesh>
havenwood: how was game ..
viszu has quit [Quit: Leaving.]
<havenwood>
jagadeesh: won :)
<havenwood>
jagadeesh: I'd recommend looking at Pry. Just use pry in place of irb. http://pryrepl.org/
<havenwood>
jagadeesh: Really nice for looking at what's going on.
<havenwood>
jagadeesh: Just type `help` to look at the Pry-specific commands. For example, you can type `cd String` then `ls` to see String's constants and methods.
<jagadeesh>
havenwood: so you are saying I am extending core String class and adding my own method. am I correct
Liquid-- has joined #ruby
<havenwood>
jagadeesh: yup
orien has joined #ruby
<havenwood>
jagadeesh: Shy of Ruby 2.0 refinements, there isn't a scoped way of doing so though. So just beware that you're in a global space.
albertone has joined #ruby
<jagadeesh>
havenwood: ok. I am using ruby1.9
citizensinspace has quit [Ping timeout: 264 seconds]
krainboltgreene has quit [Ping timeout: 248 seconds]
<jagadeesh>
havenwood: looking into pryrepl
<havenwood>
jagadeesh: To install just `gem install pry` from the command line.
slainer68 has joined #ruby
reset has quit [Ping timeout: 276 seconds]
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
phipes has quit [Quit: phipes]
icole has joined #ruby
Guga_ has joined #ruby
freakazoid0223 has quit [Ping timeout: 276 seconds]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
slainer68 has quit [Ping timeout: 255 seconds]
Matip has joined #ruby
ryannielson has quit [Remote host closed the connection]
aruntomar has quit [Ping timeout: 245 seconds]
Inside has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
aruntomar has joined #ruby
harrymoreno has quit [Ping timeout: 245 seconds]
harrymoreno has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<jagadeesh>
havenwood: pryrepl is quite useful. thanks for showing me that
phipes has joined #ruby
jamesfung14 has quit [Ping timeout: 245 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
Levin_22 has quit [Ping timeout: 245 seconds]
eka has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
cougarten has quit [Ping timeout: 264 seconds]
palantir has joined #ruby
gmci has quit [Read error: Connection reset by peer]
<havenwood>
jagadeesh: no prob, happy hacking!
Levin_22 has joined #ruby
DanKnox is now known as DanKnox_away
<jagadeesh>
havenwood: am perl background and sometimes I use Python too. I was reading about Ruby last night and I read Proc and lambda. My head was spinning
Soekis has joined #ruby
<jagadeesh>
havenwood: is lambda stuff that bad in ruby?
Davey has joined #ruby
Soeki has quit [Ping timeout: 255 seconds]
Soekis is now known as Soeki
<havenwood>
jagadeesh: Having block versus lambda lets Ruby fulfill Tenet's Correspondence Principle, etc. Sec, there is a good talk on it.
crustie has joined #ruby
<havenwood>
Tennent's**
ivanoats has quit [Remote host closed the connection]
<havenwood>
crustie: The remainder is one, since 100 doesn't divide into 1.
gmci has joined #ruby
bionhart has quit [Remote host closed the connection]
<havenwood>
crustie: 42 % 9000; #=> 42
Michae___ has quit [Remote host closed the connection]
<crustie>
so modulo of number A / ( A + 1 ) is always A ?
<jagadeesh>
havenwood: thanks. looking into it
<crustie>
guess so!
Michae___ has joined #ruby
<havenwood>
jagadeesh: Lambda end up being quite handy when you need them. Honestly I've never needed a proc.
dhruvasagar has quit [Ping timeout: 255 seconds]
<havenwood>
jagadeesh: Yehuda I think recommends proc and calls lambda mostly worthless, but I'd prefer to call proc worthless and use lambda.
<havenwood>
jagadeesh: I think Matz weighed in subtly by providing the stabby lambda syntax to encourage use.
<havenwood>
->{ :stabby_stab_stab }
bionhart has joined #ruby
devoldmx has quit [Remote host closed the connection]
cads has joined #ruby
devoldmx has joined #ruby
feedbackloop_ has quit [Quit: Leaving]
gmci has quit [Read error: No route to host]
sailias has quit [Quit: Leaving.]
Dummies_freelanc has joined #ruby
jamesfung14 has joined #ruby
<jagadeesh>
havenwood: yep. without lambda and proc we can do almost every stuff. Otherwise Ruby will become perl if we start using syntaxes like ->
ngoldman has joined #ruby
<jagadeesh>
that is my personal feeling
<jagadeesh>
havenwood: but now I have to write few scripts and master Ruby. that is today's goal :-)
<havenwood>
Nice. Hehe.
mknln has joined #ruby
mansi has joined #ruby
mknln has left #ruby [#ruby]
gmci has joined #ruby
bean has joined #ruby
ngoldman has quit [Remote host closed the connection]
machuga is now known as machuga|away
cantonic has quit [Ping timeout: 256 seconds]
julian-delphiki has quit [Ping timeout: 256 seconds]
jamesfung14 has quit [Ping timeout: 245 seconds]
jagadeesh has quit [Ping timeout: 245 seconds]
tmhr has quit [Remote host closed the connection]
mknln has joined #ruby
jagadeesh has joined #ruby
<jagadeesh>
what is diff between puts "hello".respond_to? to_s and puts "hello".respond_to? :to_str
<jagadeesh>
havenwood: ?
<havenwood>
jagadeesh: methods names are stored internally as symbols on a struct on the module, so they are referred to in arguments as symbols
<havenwood>
jagadeesh: The former fails, as the method expects a symbol that corresponds to the method name, not calling the method itself
<havenwood>
jagadeesh: 1.send :to_s == 1.to_s
<havenwood>
1.send(:to_s)
<jagadeesh>
havenwood: okay. now I need to read again about symbols. I thought of using "hello".is_a. it looked simpler to me :-)
<Apane>
havenwood I've just upgraaded to ruby 2.0 - however, my old apps are still in ruby 1.9.3 which is fine albeit, I'd like to know if new apps from here on out will be based in ruby 2.0 by default?
<havenwood>
Apane: Ruby 2.0 is the stable release. For example, Rails 4 prefers Ruby 2.0, support 1.9, and will not work with 1.8.
<havenwood>
Apane: Generally, 2.0 works. :)
slainer68 has joined #ruby
<havenwood>
Apane: I'd recommend using 2.0 unless you really, really have a reason not to. Just consider 1.9.3 the 2.0.0 release candidate. It isn't like Python 2 to 3 where everything breaks.
<Dha>
Hanmacl: okay, still i am missing the use of binding // i think i have to google some docs ... i am looking for some example to understand it better
vlad_starkov has joined #ruby
dhruvasagar has joined #ruby
kofno has joined #ruby
kofno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
tundrax has joined #ruby
<Hanmac1>
Dha: without binding you cant access the local parameters inside another function
mogsy has quit [Quit: Leaving]
konr` has joined #ruby
arya has joined #ruby
K-line has joined #ruby
konr has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
nkts_ has quit [Read error: Connection reset by peer]
nkts has joined #ruby
jimg has joined #ruby
takezawa has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
orien has joined #ruby
krainboltgreene has joined #ruby
Opettaja has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
huoxito has quit [Quit: Leaving]
zomg has joined #ruby
moos3 has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
Dummies_freelanc has joined #ruby
Opettaja has joined #ruby
io_syl has joined #ruby
Soekis has joined #ruby
Dummies_freelanc has quit [Client Quit]
kofno has quit [Remote host closed the connection]
Soeki has quit [Ping timeout: 264 seconds]
Soekis is now known as Soeki
pygmael has quit [Read error: Operation timed out]
freeayu has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Astralum has joined #ruby
freerobby has quit [Quit: Leaving.]
jbueza has joined #ruby
justsee has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
ngoldman has joined #ruby
jimg has joined #ruby
Vadelius has joined #ruby
Vadelius has joined #ruby
johnrlive has joined #ruby
mansi has joined #ruby
<jagadeesh>
how to catch File not found error?
<jagadeesh>
I am looking for specific error class, not something like generic Error
johnrlive has quit [Ping timeout: 252 seconds]
<Hanmac1>
jagadeesh: rescue Errno::ENOENT
<Hanmac1>
but i would prefer to test with File.exists?
Hanmac1 is now known as Hanmac
mansi has quit [Ping timeout: 276 seconds]
<jagadeesh>
Hanmac: what ruby does if I try to open a file that is not present in disk
<jagadeesh>
does it throw any speific error?
<Hanmac>
jagadeesh: 1) i would use File.exist?(path) to look if the file exist before you try to open it 2) the spefice error you mean is Errno::ENOENT
<jagadeesh>
let me modyfy code to as you suggested
john2x has quit [Quit: john2x]
Opettaja has quit [Ping timeout: 264 seconds]
IceDragon has quit [Quit: Space~~~]
generalissimo has quit [Ping timeout: 276 seconds]
tk_ has joined #ruby
fwaokda has quit [Ping timeout: 252 seconds]
<Godd2>
I'm following the guide on RubyGems to make my first gem, and it builds successfully, but when I try gem install ./gem_name it just deletes all the files in the gem's directory.
<Godd2>
THen it throws an error saying it can't find the file it just deleted...
kofno has joined #ruby
z is now known as Z
<Godd2>
Anyone know what' I'm doing wrong? or do I need to provide more info?
orien has quit [Quit: Computer has gone to sleep.]
Jackneill has joined #ruby
Jackneill has joined #ruby
r0bgleeson has joined #ruby
<Godd2>
Got it working. Apparently you shouldn't place the files where the gem will end up installing to...
Inside has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
harrymoreno_ has joined #ruby
jimg has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
DanKnox is now known as DanKnox_away
harrymoreno_ has quit [Ping timeout: 240 seconds]
lewis is now known as lewix
lewix has quit [Remote host closed the connection]
<Hanmac>
jagadeesh: 1) Errorno is wrong and 2) Errno::ENOENT must be before Exception
zmike has joined #ruby
fierycatnet has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
LnL has joined #ruby
LnL has quit [Client Quit]
<jagadeesh>
Hanmac I tried that method too. but still getting same error message
atno__ has quit [Quit: Leaving]
leonidlm has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
Soekis has joined #ruby
Vadelius has quit [Ping timeout: 250 seconds]
atno has joined #ruby
orien has joined #ruby
tundrax has quit [Remote host closed the connection]
Soeki has quit [Ping timeout: 264 seconds]
Soekis is now known as Soeki
sideshowcoder has quit [Ping timeout: 260 seconds]
jds_ has quit [Read error: Connection timed out]
jds_ has joined #ruby
atno has quit [Quit: Leaving]
sideshowcoder has joined #ruby
jimg has joined #ruby
atno has joined #ruby
tundrax has joined #ruby
tundrax has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 240 seconds]
<Apane>
Is everyone in here strickly Ruby? or Rails as well? and if you're strickly Ruby -- are you based in Software applications?
johnrlive has joined #ruby
jarjar_prime has joined #ruby
Hobogrammer_ has joined #ruby
mansi has joined #ruby
r0bby_ has joined #ruby
Silent__ has joined #ruby
redgirl_ has joined #ruby
timkohru_ has joined #ruby
tundrax has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
Silent__ is now known as Hobogrammer
havenn_ has joined #ruby
solars has joined #ruby
icole_ has joined #ruby
ged_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
Hobogrammer has quit [Client Quit]
harrymoreno_ has joined #ruby
Killerkeksdose has joined #ruby
redgirl_ has quit [Client Quit]
deavidsedice has joined #ruby
KRF_ has joined #ruby
weeb1e_ has joined #ruby
rpgsimmaster_ has joined #ruby
Coolhand_ has joined #ruby
jayne| has joined #ruby
adambeynon has joined #ruby
phreax_ has joined #ruby
awwaiid_ has joined #ruby
nw has joined #ruby
matti_ has joined #ruby
hackeron has joined #ruby
marwinis1 has joined #ruby
bubbajones has joined #ruby
io_syl_ has joined #ruby
Alasdairr has joined #ruby
ixx has joined #ruby
Astral_ has joined #ruby
predator217 has joined #ruby
Sp4rKy_ has joined #ruby
tmhr has joined #ruby
ixx is now known as Guest53021
corehook has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
radic__ has joined #ruby
wookiehangover_ has joined #ruby
ping_pong has joined #ruby
henn2nk has joined #ruby
Dha has quit [Ping timeout: 250 seconds]
farn_ has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
io_syl has quit [Ping timeout: 276 seconds]
mroth has quit [Ping timeout: 276 seconds]
davidcelis has quit [Ping timeout: 276 seconds]
harrymoreno has quit [Ping timeout: 276 seconds]
charliesome_ is now known as charliesome
harrymoreno_ is now known as harrymoreno
lsc has joined #ruby
davetherat has quit [Ping timeout: 276 seconds]
awwaiid has quit [Ping timeout: 276 seconds]
Guest85414__ has quit [Ping timeout: 276 seconds]
patricksroberts_ has quit [Ping timeout: 276 seconds]
Debaser has quit [Ping timeout: 276 seconds]
bjeanes has quit [Ping timeout: 276 seconds]
Veejay has quit [Ping timeout: 276 seconds]
rgrinberg has quit [Ping timeout: 276 seconds]
timkohrumel has quit [Ping timeout: 276 seconds]
havenwood has quit [Ping timeout: 276 seconds]
icole has quit [Ping timeout: 276 seconds]
radic_ has quit [Ping timeout: 276 seconds]
predator117 has quit [Ping timeout: 276 seconds]
hackeron_ has quit [Ping timeout: 276 seconds]
Zeeraw has quit [Ping timeout: 276 seconds]
ping-pong has quit [Ping timeout: 276 seconds]
ged has quit [Ping timeout: 276 seconds]
guilleiguaran__ has quit [Ping timeout: 276 seconds]
henn1nk has quit [Ping timeout: 276 seconds]
kapowaz has quit [Ping timeout: 276 seconds]
wookiehangover has quit [Ping timeout: 276 seconds]
codex has quit [Ping timeout: 276 seconds]
bubbajoness has quit [Ping timeout: 276 seconds]
Killerkeksdose_ has quit [Ping timeout: 276 seconds]
wookiehangover_ is now known as wookiehangover
nw_ has quit [Ping timeout: 276 seconds]
Alasdairrr has quit [Ping timeout: 276 seconds]
phreax has quit [Ping timeout: 276 seconds]
matti has quit [Ping timeout: 276 seconds]
matti_ is now known as matti
JoeHazzers has quit [Ping timeout: 276 seconds]
marwinism has quit [Ping timeout: 276 seconds]
Hobogrammer_ has quit [Ping timeout: 276 seconds]
jarjar_prime has quit [Ping timeout: 276 seconds]
r0bby has quit [Ping timeout: 276 seconds]
rpgsimmaster has quit [Ping timeout: 276 seconds]
rgrinberg1 has joined #ruby
KRF has quit [Ping timeout: 276 seconds]
redgirl has quit [Ping timeout: 276 seconds]
Coolhand has quit [Ping timeout: 276 seconds]
xybre has quit [Ping timeout: 276 seconds]
farn has quit [Ping timeout: 276 seconds]
wudofyr___ has quit [Ping timeout: 276 seconds]
rwz__ has quit [Ping timeout: 276 seconds]
weeb1e has quit [Ping timeout: 276 seconds]
Guedes has quit [Ping timeout: 276 seconds]
wormwood_ has quit [Ping timeout: 276 seconds]
Guest26539 has quit [Ping timeout: 276 seconds]
lschmidt has quit [Ping timeout: 276 seconds]
t_hash has quit [Ping timeout: 276 seconds]
deavid has quit [Ping timeout: 276 seconds]
Sp4rKy has quit [Ping timeout: 276 seconds]
jayne has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
Debaser has joined #ruby
codex has joined #ruby
hash has joined #ruby
xybre has joined #ruby
bjeanes has joined #ruby
xybre has joined #ruby
xybre has quit [Changing host]
wormwood_ has joined #ruby
davidcelis has joined #ruby
Veejay has joined #ruby
JoeHazzers has joined #ruby
mroth has joined #ruby
Astralum has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
tmhr has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 240 seconds]
zmike has quit [Quit: Выходжу]
abstrusenick has joined #ruby
atno has quit [Quit: Leaving]
wudofyr___ has joined #ruby
awestroke has joined #ruby
dash_ has joined #ruby
cads has quit [Ping timeout: 255 seconds]
LarsSmit has joined #ruby
freerobby has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
tundrax has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
swex_ has joined #ruby
ananthakumaran has quit [Ping timeout: 255 seconds]
Astral__ has joined #ruby
browndawg has quit [Ping timeout: 255 seconds]
obs has joined #ruby
swex has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
cads has joined #ruby
jayne| is now known as jayne
corehook has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
Astral_ has quit [Ping timeout: 264 seconds]
orien has quit [Quit: Computer has gone to sleep.]
fierycatnet has quit [Quit: Leaving]
tonini has joined #ruby
<Godd2>
Im reading the file naming conventions on Ruby Gems and I understand the /lib/gem_name.rb and /test/gem_name_test.rb, but if I have /lib/gem_name/other_file.rb do I make /test/other_file_test.rb or /test/gem_name/other_file.rb ?
<Godd2>
/test/gem_name/other_file_test.rb* on that last one
tundrax has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 240 seconds]
tundrax has joined #ruby
pinage404afk is now known as zz_pinage404afk
zz_pinage404 has joined #ruby
mnaser has quit [Read error: Operation timed out]
harrymoreno has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
tmhr has quit [Ping timeout: 245 seconds]
_Renegade has joined #ruby
orien has joined #ruby
braoru has quit [Ping timeout: 264 seconds]
Soekis has joined #ruby
Zespre has quit [Quit: leaving]
Zespre has joined #ruby
Astral__ has quit [Ping timeout: 248 seconds]
Soeki has quit [Ping timeout: 255 seconds]
Soekis is now known as Soeki
bionhart has quit [Read error: No route to host]
farn_ is now known as farn
bionhart has joined #ruby
harrymoreno has quit [Ping timeout: 245 seconds]
ngoldman has quit [Remote host closed the connection]
harrymoreno has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
ananthakumaran has joined #ruby
nkts has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
doodlas has joined #ruby
nkts has joined #ruby
ngoldman has joined #ruby
<doodlas>
i try to write anonymous function.. this is my code: "square = lambda{ return x*x }" and then "puts(square(3))"
<doodlas>
can someone tell me how I could do this? thanks.
nebrera_ has joined #ruby
mnaser has joined #ruby
<apeiros>
square.call(3)
tjbiddle has joined #ruby
<doodlas>
it give me same error with my code "syntax error, unexpected $end, expecting keyword_end"
harrymoreno_ has joined #ruby
<Hanmac>
square[3] should also work
<doodlas>
in lambda i need to write end?
<apeiros>
doodlas: your code has an error elswhere
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno_ is now known as harrymoreno
Apane has quit [Ping timeout: 256 seconds]
<apeiros>
$end is the end of file. you're opening something somewhere which needs an `end` (keyword_end)
<doodlas>
it give error here puts(square.call(3))
dhruvasagar has quit [Ping timeout: 255 seconds]
mansi has joined #ruby
<apeiros>
i.e. you have either an open if, while, until, do etc.
LarsSmit has quit [Quit: Leaving.]
<doodlas>
pff right.. i forgot to put end on functions
Senjai has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Client Quit]
<doodlas>
i think i also doing something wrong in my lambda expression "square = lambda{ return x*x }"
<doodlas>
give me error wrong number of arguments (1 for 0) (ArgumentError)
johnrlive has joined #ruby
<Hanmac>
lambda{|x| x*x}
<doodlas>
Hanmac: thank you it working
becom33 has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
harrymoreno has quit [Ping timeout: 256 seconds]
gasbakid has joined #ruby
<becom33>
http://pastebin.com/5QmwXEB8 I have a question about Readline auto completion . what if I want to categorize the completion . how can I do it , if I can't do it with Readline is there any other way I can it
johnrlive has quit [Ping timeout: 252 seconds]
harrymoreno has joined #ruby
sayan has joined #ruby
DrCode has quit [Remote host closed the connection]
* becom33
anyone ?
angusigu1ss has quit [Ping timeout: 248 seconds]
alem0lars has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
ELLIOTTCABLE has quit [Remote host closed the connection]
ELLIOTTCABLE has joined #ruby
prophile has quit [Changing host]
prophile has joined #ruby
takezawa has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger__ has joined #ruby
_whitelogger__ has joined #ruby
_whitelogger__ has joined #ruby
_whitelogger___ has joined #ruby
_whitelogger___ has joined #ruby
_whitelogger___ has joined #ruby
_whitelogger___ has joined #ruby
_whitelogger__ has quit [Remote host closed the connection]
_whitelogger has quit [Remote host closed the connection]
_whitelogger___ has quit [Remote host closed the connection]
<doodlas>
does ruby support keyword arguments like python? I mean to call a function like that sum(b=2,a=3)
<doodlas>
is it something like that possible?
jds_ has quit [Read error: Connection timed out]
nebrera_ has quit [Quit: nebrera_]
joonty has quit [Quit: WeeChat 0.3.7]
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has quit [Remote host closed the connection]
jamesaxl has joined #ruby
ngoldman has quit [Remote host closed the connection]
slainer68 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
cougarten has joined #ruby
johnrlive has joined #ruby
jds_ has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
doodlas has quit [Ping timeout: 264 seconds]
marr has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
yashshah has quit [Read error: Connection reset by peer]
icole_ has quit [Remote host closed the connection]
icole has joined #ruby
yashshah has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
braoru has joined #ruby
icole has quit [Ping timeout: 246 seconds]
stillesjo has joined #ruby
pskosinski has joined #ruby
<jagadeesh>
what is difference between Array#size and Array#length?
<joelteon>
the name
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
<jagadeesh>
really? then why tow methods?
ArchBeOS has quit [Ping timeout: 245 seconds]
Spooner has joined #ruby
nalaginrut has quit [Read error: Operation timed out]
<joelteon>
because
<joelteon>
I don't remember
<joelteon>
I guess size is analogous to size for other types
<Hanmac>
jagadeesh: because ruby has different parent languages ... thats why inject and reduce both exist
<jagadeesh>
Hanmac: oh ok. it is always bad to multiple parents :-)
dhruvasagar has joined #ruby
a_a_g has joined #ruby
danslo has quit [Quit: danslo]
Blue_Ice_ is now known as Blue_Ice
freerobby has joined #ruby
jimg has joined #ruby
kayloos has joined #ruby
danslo has joined #ruby
spider-mario has joined #ruby
<Morrolan>
jagadeesh: Hey, I have multiple (two) parents, too!
TMM has quit [Quit: Bye]
alem0lars has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
<jagadeesh>
(Matz, Perl, Smalltalk).length != 2
freerobby has quit [Ping timeout: 276 seconds]
jimg has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
Astralum has quit [Ping timeout: 240 seconds]
Giorgio has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
dhruvasagar has joined #ruby
m8 has joined #ruby
sepp2k has joined #ruby
quest88 has quit [Quit: quest88]
harrymoreno_ has joined #ruby
marcgg_ has quit [Read error: No route to host]
marcgg has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno_ is now known as harrymoreno
jimg has joined #ruby
ntus1017 has quit [Remote host closed the connection]
tmhr has joined #ruby
<Babalau>
how do i re-run the generate scripts for RSpec ?
dhruvasagar has quit [Ping timeout: 246 seconds]
tmhr has quit [Ping timeout: 240 seconds]
sayan has quit [Read error: Connection reset by peer]
orien has joined #ruby
Soekis has joined #ruby
<Morrolan>
I take it you're talking about rspec-rails? Then it'd probably be `rm -r spec/ && rails generate rspec:install`.
<Babalau>
Morrolan: thank you
Soeki has quit [Ping timeout: 276 seconds]
Soekis is now known as Soeki
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 240 seconds]
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
DonRichie has joined #ruby
timkohrumel has joined #ruby
skogis has joined #ruby
marr has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
teddyp1cker has joined #ruby
mansi has joined #ruby
timkohrumel has quit [Ping timeout: 252 seconds]
greenarrow has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
johnrlive has joined #ruby
cowgarden has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
teddyp1cker has quit [Remote host closed the connection]
q__ has joined #ruby
Giorgio has quit [Ping timeout: 252 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
cougarten has quit [Ping timeout: 264 seconds]
paszo2008 has joined #ruby
cowgarden has quit [Ping timeout: 276 seconds]
greenarrow has joined #ruby
sayan has joined #ruby
kayloos has quit [Remote host closed the connection]
freeayu3 has joined #ruby
schaerli has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
freeayu__ has quit [Ping timeout: 255 seconds]
<paszo2008>
hallo i have question how i can scroll or paginate the output ot the ruby console?
tundrax has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
JZTech101 has joined #ruby
schaerli has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
stillesjo has quit [Ping timeout: 264 seconds]
Vadelius has joined #ruby
Vadelius has joined #ruby
Vadelius has quit [Changing host]
hogeo_ has joined #ruby
sleetdrop has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
hogeo has quit [Ping timeout: 255 seconds]
supki_ is now known as supki
<paszo2008>
i meant to see the full stack trace in the console
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Dcore has joined #ruby
tundrax has joined #ruby
gyre008 has joined #ruby
JZTech101 has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 248 seconds]
danshultz has joined #ruby
davetherat has joined #ruby
joshu_ has quit [Quit: Computer has gone to sleep.]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Dcore has quit [Quit: Leaving]
stillesjo has joined #ruby
Vadelius has quit [Quit: Leaving]
a_a_g_0 has joined #ruby
jds_ has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
a_a_g has quit [Ping timeout: 240 seconds]
stillesjo has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
yacks has joined #ruby
mklappstuhl has joined #ruby
orien has joined #ruby
jds_ has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
Soekis has joined #ruby
jude0 has quit [Ping timeout: 260 seconds]
jude0 has joined #ruby
<Spooner>
Use a better console? And/or use pry instead of irb?
Soeki has quit [Ping timeout: 276 seconds]
Soekis is now known as Soeki
robustus has quit [Ping timeout: 248 seconds]
statarb3 has quit [Quit: Leaving]
freeayu3 has quit [Read error: Connection reset by peer]
freeayu3 has joined #ruby
robustus has joined #ruby
jonahR has quit [Quit: jonahR]
droid has joined #ruby
kil0byte has joined #ruby
mansi has joined #ruby
Tarential has quit [Excess Flood]
tundrax has quit [Remote host closed the connection]
Tarential has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
Sherwyn has joined #ruby
obs has quit [Quit: Konversation terminated!]
droid has quit []
droid has joined #ruby
johnrlive has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
danshultz has quit [Remote host closed the connection]
jds_ has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
nkts has quit [Quit: -]
emmanuelux has joined #ruby
kayloos has joined #ruby
joshu has joined #ruby
Spooner has quit [Quit: Leaving]
schaerli has joined #ruby
gmci has quit [Ping timeout: 255 seconds]
jimg has quit [Remote host closed the connection]
orien has joined #ruby
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
chipotle has joined #ruby
harrymoreno_ has joined #ruby
schaerli has quit [Ping timeout: 255 seconds]
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno_ is now known as harrymoreno
_Renegade has quit [Quit: _Renegade]
nerdman has joined #ruby
supaiku has joined #ruby
freerobby has joined #ruby
kayloos has quit [Remote host closed the connection]
supaiku has quit [Client Quit]
supaiku has joined #ruby
droid has quit []
freerobby has quit [Ping timeout: 246 seconds]
_Renegade has joined #ruby
ntus1017 has joined #ruby
droid has joined #ruby
schaerli has joined #ruby
paszo2008 has quit []
paskotyy has joined #ruby
cj3kim has joined #ruby
cougarten has joined #ruby
gyre008 has quit [Remote host closed the connection]
aruntomar has quit [Remote host closed the connection]
jinie is now known as jinie_
Guga_ has joined #ruby
jinie_ is now known as jinie
q__ has quit [Ping timeout: 255 seconds]
Guga_ has quit [Client Quit]
<becom33>
how can we detect two tab keystrokes and one tab keystroke ?
<becom33>
like in auto fill ?
emergion has joined #ruby
jinie is now known as jinie_
cj3kim has quit [Ping timeout: 264 seconds]
<Hanmac>
oO didnt you ask the question before? and you does not tell us what you use
<becom33>
yes I asked it . but I dont think I got an awnser for that
<becom33>
wait Hanmac lemme ask my original question
<becom33>
http://pastebin.com/5QmwXEB8 I have a question about Readline auto completion . what if I want to categorize the completion . how can I do it , if I can't do it with Readline is there any other way I can it
Xeago has quit [Remote host closed the connection]
pmros has joined #ruby
<becom33>
Hanmac, I have given a example on what I want to be done in the paste
yacks has quit [Quit: Leaving]
<pmros>
which is the best option to create powerful and nice list items in rails? active_scaffold?
<pmros>
(hi)
<Hanmac>
pmros: #rubyonrails
<pmros>
(thanks in advance)
<pmros>
ok
<pmros>
sorry
Xeago has joined #ruby
mixel has joined #ruby
solars has joined #ruby
tmhr has joined #ruby
<joshu>
I need some advice. If you have a choice between doing a GET request or a POST request to accomplish the same thing which would you choose? I'm specifically looking at this https://www.tropo.com/docs/rest/starting_session.htm
<joshu>
Is using POST with json request body a better idea?
kirun has joined #ruby
<MrZYX>
one could say your "creating" a new session, so post
<becom33>
anyone for my question
Babalau has quit [Remote host closed the connection]
cantonic has joined #ruby
<becom33>
or give me a alternative solution for this ?
<joshu>
MrZYX thanks. What about the options of using JSON or form-encoded for the POST header?
gmci has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
<MrZYX>
I'd say json, because way easier and more readable
tmhr has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
threesome has joined #ruby
<joshu>
MrZYX great and right now in my testing I'm using a rake task with curl to do this. The idea is going to be to have a ruby app of some sort on Heroku which will create these requests. In that case I take it I want to use a ruby gem or similar instead of curl. Do you have any suggestions on what to use for this?
<MrZYX>
If you're dispatching tons of requests each second typhoeus, otherwise faraday is a common choice
<MrZYX>
but there are tons of http wrappers for ruby, have a look at a few and choose the one with the API you like the most
s_kilk has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<becom33>
come on guys Im still waiting for some kind of solution for this
Soekis has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<MrZYX>
becom33: let me explain IRC for you: You have a problem, you post it, you wait at least 6 hours, eventually someone who had the same problem reads his backlog, eventually he got time to answer and thinks you're polite enough to deserve it. You then get your answer
kayloos has joined #ruby
Guga_ has joined #ruby
marcgg has quit [Read error: No route to host]
<joshu>
MrZYX the number of requests will be low so I'll look at faraday. Thanks for the suggestions and advice ;)
<becom33>
MrZYX, actually I've been asking that question yesterday . u can lookup logs if u have
marcgg has joined #ruby
<becom33>
from *
<Hanmac>
MrZYX: the problem is that becom33 ask the same question over and over again ... i have seen this one four or more times
Soeki has quit [Ping timeout: 248 seconds]
Soekis is now known as Soeki
<MrZYX>
becom33: you're missing the "who had the same problem in the past" clause
s_kilk has quit [Client Quit]
<becom33>
MrZYX, I googled for an awnser .then I came here
d2dchat has quit [Remote host closed the connection]
<MrZYX>
there's zero guarantee somebody actually knows the answer to your problem
<becom33>
i saw bond . I still though I might get somthing out of the channel . since its live
<banister_>
becom33: either way u dont get demanding and
Iszak has joined #ruby
<becom33>
anyways thanks banister_ i'll look up on it again
eka has joined #ruby
jimg has quit [Ping timeout: 240 seconds]
<becom33>
if I got the awnser "there's zero guarantee somebody actually knows the answer to your problem" before I would have moved and check up for a dirrent method than hoping some one might know how to do it
<banister_>
becom33: how the hell would anyone here know whether someone does or does not know the answer to your question?
<banister_>
it's impossible to know
<becom33>
thats the reason I keep asking the question . i don't repeat the question every minit . maybe 1/2 hr or more than that time . by then my question is passed from the screen from other users
dhruvasagar has quit [Ping timeout: 246 seconds]
<Mon_Ouie>
I suppose you can only check if the time between two completions is small enough
mansi has joined #ruby
braoru has quit [Remote host closed the connection]
corehook has joined #ruby
<becom33>
Mon_Ouie, what do u mean two completions ?
<Mon_Ouie>
Two calls to your completion proc
tommyvyo has quit [Quit:]
browndawg has joined #ruby
<becom33>
Mon_Ouie, lemme check that out
Vadelius has joined #ruby
Vadelius has joined #ruby
vadelius_ has joined #ruby
johnrlive has joined #ruby
vadelius_ has quit [Client Quit]
mansi has quit [Ping timeout: 264 seconds]
braoru has joined #ruby
slainer68 has joined #ruby
cowgarden has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
timonv has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
q__ has joined #ruby
cougarten has quit [Ping timeout: 245 seconds]
apeiros has quit []
apeiros has joined #ruby
cowgarden has quit [Ping timeout: 248 seconds]
john2x has left #ruby [#ruby]
slainer68 has quit [Ping timeout: 245 seconds]
eldariof has joined #ruby
browndawg has quit [Quit: Leaving.]
harrymoreno has quit [Ping timeout: 264 seconds]
kleinerdrache has joined #ruby
tonini has joined #ruby
havenn_ has quit [Remote host closed the connection]
harrymoreno has joined #ruby
ravster has joined #ruby
browndawg has joined #ruby
<paskotyy>
hallo how can i read full trace in irb?
<apeiros>
you move your eyes from left to right and from top to bottom?
<apeiros>
potentially scroll your terminal emulation?
<paskotyy>
yes i like to scroll
kofno has joined #ruby
<paskotyy>
like | less in normal terminal
<apeiros>
the default in irb is that it prints the full backtrace
<paskotyy>
so i should change this default ?
<paskotyy>
to less lines?
<paskotyy>
or is there another method
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<paskotyy>
for example to redirect it to a file?
<apeiros>
I don't get where your problem is
vlad_starkov has joined #ruby
verto has joined #ruby
browndawg has quit [Quit: Leaving.]
<paskotyy>
i am getiing an error while workin in irb but not able to see it full
<paskotyy>
i only see the last lines
awestroke has quit [Remote host closed the connection]
q__ has quit [Ping timeout: 245 seconds]
Gugster has joined #ruby
Guga_ has quit [Disconnected by services]
Gugster has quit [Read error: Connection reset by peer]
Guga_ has joined #ruby
Michae___ has quit [Remote host closed the connection]
<Vadelius>
How can I restrict a floats printed amount of decimals?
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
Michae___ has joined #ruby
chandankumar has joined #ruby
BarneyRubble has joined #ruby
<Morrolan>
"%.2f" % 1.235 #=> "1.24"
<MrZYX>
paskotyy: find out how to scroll the output buffer in your terminal emulator
JZTech101 has joined #ruby
<MrZYX>
this isn't ruby related at all
pmros has quit [Remote host closed the connection]
<paskotyy>
MrZYX: ok thx
<Vadelius>
Ignore my ugly code please, just trying to learn :> However. I dont want my outputs with sooo many decimals. But I still wanna keep them floats (to be very precise) Just wanna chop of the puts https://gist.github.com/anonymous/5743433
<BarneyRubble>
Hi all, I got a basic question, the syntax for writin a loop, it is for HAML but I understand it is the same as Ruby, I can write them in JS/PHP etc but no examples I can find are working, anybody got a tiny example of a loop to post?
pmros has joined #ruby
ntus1017 has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
<apeiros>
BarneyRubble: depends a lot on what you loop
<BarneyRubble>
apeiros, just want to echo the same text 10 times to the page -
<MrZYX>
vadelius: puts "Savings after year 1: %.2f Which is a annual interest income of %.2f" % [savings, savings - initialDeposit - montlhyDeposit*12]
<apeiros>
2nd one would fit your "same text 10 times"
<Vadelius>
Thanks MrZYX, ill just sit down and try to grasp it :>
<MrZYX>
vadelius: also if you want to be very precise have a look at bigdecimal stdlib
airlok has quit [Remote host closed the connection]
johnrlive has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
m8 has joined #ruby
motto has quit [Ping timeout: 240 seconds]
<MrZYX>
vadelius: and did you find a loop solution to your code yet?
freerobby has joined #ruby
<Vadelius>
Nope! Been reading about editors for some reason waiting for my Xcode download to finish (im running a shipped version of ruby on my mac) so things like gets.chomp aint even working.. :P
<Vadelius>
Im gonna figure that baby out soon :)
ezotrank has joined #ruby
<MrZYX>
you really should consider installing ruby 2.0
<MrZYX>
learning a new language on a dead version is not the best idea
<MrZYX>
and 1.8 is really dead, like no security updates anymore
<Vadelius>
I will for sure, just waiting for stuff to download :>
vigintas has joined #ruby
<Vadelius>
I have 2.0 on my winPC, just got this yday so.. bit behind
eldariof has quit [Ping timeout: 252 seconds]
a_a_g_0 has quit [Quit: This computer has gone to sleep]
nezumi has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 276 seconds]
airlok has joined #ruby
gildo has joined #ruby
ezotrank has quit [Ping timeout: 245 seconds]
Michae___ has joined #ruby
viszu has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
byprdct has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
pmros has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
zmike has joined #ruby
zmike has quit [Client Quit]
elaptics`away is now known as elaptics
lucianosousa has quit [Quit: lucianosousa]
Ortuna has joined #ruby
zmike has joined #ruby
chipotle has joined #ruby
chipotle has quit [Changing host]
chipotle has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
browndawg has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
browndawg has left #ruby [#ruby]
pmros has joined #ruby
_Renegade has quit [Quit: _Renegade]
vlad_starkov has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
_Renegade has joined #ruby
Dummies_freelanc has joined #ruby
machuga is now known as machuga|away
paskotyy has quit []
chipotle has quit [Remote host closed the connection]
agjacome has joined #ruby
lyanchih has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
Inside has joined #ruby
chipotle has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
tmhr has joined #ruby
braoru has quit [Ping timeout: 276 seconds]
chipotle has quit [Read error: Connection reset by peer]
pmros has quit [Remote host closed the connection]
chipotle has joined #ruby
pmros has joined #ruby
joshu has quit [Quit: Computer has gone to sleep.]
tmhr has quit [Ping timeout: 248 seconds]
enebo has joined #ruby
kayloos has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
airlok has quit [Remote host closed the connection]
Matip has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 264 seconds]
pmros has quit [Ping timeout: 252 seconds]
nezumi has joined #ruby
<Vadelius>
Hey so MrZYX, im delving into this loop now, just a minor question before I get started, is it possible to get a user input to define the var.times do code end
<MrZYX>
sure
jastix has joined #ruby
Soeki has joined #ruby
<MrZYX>
you can read strings from the user with gets
<MrZYX>
and convert strings to numbers with .to_i
<Vadelius>
So using a variable in place of 10 here… 10.times do end
<Vadelius>
is ok?
timonv has quit [Remote host closed the connection]
<MrZYX>
yep
<Vadelius>
Aha, sweet, gonna need some coffee for this!
timonv has joined #ruby
<byprdct>
Morning
arya has joined #ruby
<Inside>
sup
Dummies_freelanc has quit [Ping timeout: 255 seconds]
timonv has quit [Ping timeout: 264 seconds]
kofno has quit [Remote host closed the connection]
Squarepy has joined #ruby
mixel has quit [Quit: mixel]
ToApolytoXaos has quit [Quit: Leaving]
sailias has joined #ruby
nnww has joined #ruby
corehook has quit [Ping timeout: 246 seconds]
jimg has joined #ruby
moshef has joined #ruby
banister_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
fomatin has quit [Quit: Computer has gone to sleep.]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
<moshef>
hi, I'd like to take hash that looks like this {"key.key2.key3" => 1} and turn it into: {"key" => {"key2" => {"key3" => 1}}}
jimg has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
freeayu3 has quit [Remote host closed the connection]
freerobby has joined #ruby
tbrock has joined #ruby
paskotyy has joined #ruby
paskotyy has quit [Client Quit]
droid has quit [Ping timeout: 264 seconds]
takezawa has quit [Remote host closed the connection]
paskotyy has joined #ruby
tbrock has quit [Client Quit]
droid has joined #ruby
airlok has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
jds_ has quit [Remote host closed the connection]
awestroke has joined #ruby
denken_ has quit [Quit: leaving]
jds_ has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
denken has joined #ruby
braoru has joined #ruby
sepp2k has joined #ruby
wallerdev has joined #ruby
<MrZYX>
moshef: {"key.key2.key3" => 1, "key.key4.key5" => 2}.each_with_object({}) {|pair, hsh| k, v = pair; *path, last = k.split('.'); path.inject(hsh) {|hsh, k| hsh[k] ||= {} }[last] = v }
<MrZYX>
I've the feeling there's a smarter way though
<moshef>
MrZYX: thanks man
havenwood has joined #ruby
gildo has quit [Read error: Connection reset by peer]
Dummies_freelanc has left #ruby [#ruby]
ezotrank has joined #ruby
ToApolytoXaos has joined #ruby
sailias has quit [Quit: Leaving.]
nacsurte has joined #ruby
nomenkun has joined #ruby
lucianosousa has joined #ruby
m8 has quit [Read error: Connection reset by peer]
adramalech has joined #ruby
<Vadelius>
Um, so I updated to ruby 2.x.x+ (from shipped 1.8.7) And tried input = gets.chomp and still get this => /Users/vadelius/chomp.rb:2: private method `chomp' called for nil:NilClass (NoMethodError)
<Vadelius>
Ive googled and googled like crazy but I have no idea, most resulsts are years old and the very same way on the same ruby version worked fine on my winpc (osx now)
<MrZYX>
are you sure you're hitting the 2.0 ruby?
<MrZYX>
puts RUBY_VERSION
<Vadelius>
ruby -v in terminal gives me it atleast
<Vadelius>
ah, sec
<Vadelius>
Heh, yeah figured.. (I even asked in #sublimetext) if I had to "tell" sublime what package to use...)
<Vadelius>
Got 1.8.7 returned
adramalech has quit [Client Quit]
_Renegade has quit [Quit: _Renegade]
marcgg has quit [Ping timeout: 248 seconds]
fomatin has joined #ruby
Azulinho has quit [Ping timeout: 256 seconds]
ezotrank has quit [Ping timeout: 248 seconds]
Michae___ has quit [Remote host closed the connection]
dagnachew has joined #ruby
marcgg has joined #ruby
droid has quit [Ping timeout: 264 seconds]
adramalech has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
fwaokda has joined #ruby
alem0lars has quit [Ping timeout: 255 seconds]
BizarreCake has joined #ruby
droid has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.3.9]
gildo has joined #ruby
mansi has joined #ruby
robscomputer_ has joined #ruby
jacobw has quit [Quit: WeeChat 0.3.7]
Neomex has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
angusiguess has joined #ruby
jacobw has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 248 seconds]
nezumi has quit [Ping timeout: 264 seconds]
<Vadelius>
Hmm still getting it with 2.0.0 /Users/vadelius/Documents/savings.rb:3:in `<main>': undefined method `chomp' for nil:NilClass (NoMethodError) :<
<Vadelius>
not exactly the same though but yeah
<havenwood>
vadelius: There isn't a #chomp method on nil: nil.chomp; #=> NoMethodError
ariedler has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
<Vadelius>
You are absolutely right havenwood, did some searching and its definently related to sublime
<Vadelius>
gah
arya_ has joined #ruby
harrymoreno has quit [Ping timeout: 245 seconds]
harrymoreno_ is now known as harrymoreno
apeiros has quit []
arturaz has quit [Remote host closed the connection]
emmanuelux has joined #ruby
hakunin_ is now known as hakunin
Kar- has joined #ruby
vlad_starkov has joined #ruby
pootler_ has joined #ruby
devoldmx has joined #ruby
arya has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
nomenkun has quit [Remote host closed the connection]
becom33 has joined #ruby
becom33 has joined #ruby
airlok has quit [Ping timeout: 240 seconds]
leonidlm has quit [Read error: Operation timed out]
s3m73x has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
pootler_ has quit [Client Quit]
Blizzerand has joined #ruby
pootler_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
seitensei has quit [Quit: Computer has gone to sleep.]
agjacome has quit [Quit: leaving]
rippa has joined #ruby
quest88 has joined #ruby
eldariof has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
Guedes has joined #ruby
Guedes has joined #ruby
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
droid has quit [Ping timeout: 240 seconds]
Apane has joined #ruby
Shadowfoxx has quit []
danslo has quit [Ping timeout: 252 seconds]
jds_ has joined #ruby
citizensinspace has joined #ruby
nomenkun has joined #ruby
razi has quit [Ping timeout: 252 seconds]
lucianosousa has quit [Quit: lucianosousa]
<Vadelius>
Ok MrZYX :> I made a simple loop, input.times do |x| code end but im not sure howto actually make the code work in a loop since the variables and the values change by varied increments
<MrZYX>
it's always the same pattern though
harrymoreno_ has joined #ruby
<Vadelius>
Yeah, I suppose thats true, I guess this means I can probably loop variable creations aswell then
tjbiddle has joined #ruby
harrymoreno has quit [Ping timeout: 255 seconds]
<MrZYX>
you just need to memorize the result of the previous iteration
freerobby has joined #ruby
brennanMKE has quit [Ping timeout: 276 seconds]
dagnachew has quit [Quit: Leaving]
Alina-malina has quit [Ping timeout: 248 seconds]
harrymoreno has joined #ruby
kofno has joined #ruby
harrymoreno_ has quit [Ping timeout: 276 seconds]
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
mansi has joined #ruby
<jagadeesh>
A = Array.new; 1.upto(10){|x| A[x] = x} is ading nil as first element. why?
r0bgleeson has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
<MrZYX>
because arrays are zero indexed and you start with 1
<jagadeesh>
why 1 is not at 0 index?
dash_ has joined #ruby
<jagadeesh>
okies. got it
freerobby has quit [Ping timeout: 245 seconds]
Alina-malina has joined #ruby
<MrZYX>
looks like you want (1..10).to_a
<jagadeesh>
yep. that is smart way
<MrZYX>
or 1.upto(10).to_a
<Hanmac>
or Array.new(10) {|i| i }
<jagadeesh>
A = (1 .. 10).to_a looks better I think
<MrZYX>
why do you assign it to a constant though?
mansi has quit [Ping timeout: 248 seconds]
razi has joined #ruby
<jagadeesh>
s/A/a/ okay?
<MrZYX>
Hanmac: that's 0-9, not 1-10
<MrZYX>
yup
harrymoreno has quit [Ping timeout: 276 seconds]
<Hanmac>
Array.new(10) {|i| i+1 }
harrymoreno has joined #ruby
<jagadeesh>
what is good module to send email? I want to add Cc and Bcc too. I think net/smtp is not providing that
mfridh has quit [Read error: Operation timed out]
<jagadeesh>
and it takes 2 time To:?
timonv has joined #ruby
quest88 has quit [Quit: quest88]
tk_ has quit [Quit: ばいばい]
Michae___ has quit [Remote host closed the connection]
brennanMKE has joined #ruby
Michae___ has joined #ruby
airlok has joined #ruby
airlok has quit [Remote host closed the connection]
nerdman has quit [Quit: leaving]
nomenkun has quit [Remote host closed the connection]
peta_ has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno_ is now known as harrymoreno
Michae___ has quit [Remote host closed the connection]
<Vadelius>
Heh, typod it the first time and just autocompleted rest .D
<Vadelius>
or wait
jbueza has quit [Quit: Leaving.]
<Vadelius>
ah yes
hogeo has joined #ruby
<apeiros>
btw., usually banks use compound interest formula
<Vadelius>
Yeah I was being lazy and couldnt figure out howto incoorporate monthly deposits into it (since banks here calc interest daily)
<Vadelius>
I figured splitting the interest in half is pretty fair
nacsurte has joined #ruby
<Vadelius>
Since itll be 1 deposit with full annual calc, and 1 without, 1 with 11/12 and one with 1/12 yeah you get the point :>
<Vadelius>
(it might be terrible wrong but.. itll had to suffice for this ruby learning experience atleast)
hogeo_ has quit [Ping timeout: 264 seconds]
Opettaja has joined #ruby
quest88 has joined #ruby
adramalech has quit [Ping timeout: 255 seconds]
quest88 has left #ruby [#ruby]
mansi has joined #ruby
<Apane>
Out of mere curiousity -- do most Ruby developers on here focus on open-source for rails? or specifically Ruby software dev?
BizarreCake has quit [Read error: Connection reset by peer]
jkubecki has joined #ruby
ariedler has joined #ruby
<MrZYX>
vadelius: ping me if you want to see my solution that replicates what you've done before without the loop
ravster has quit [Quit: Leaving.]
kofno has quit [Remote host closed the connection]
<Vadelius>
Did this: https://gist.github.com/anonymous/5744300 as close as I could get, not quite sure howto declare the variables and the changes in the scope && outside
<Vadelius>
Hopefully I can understand what you did :>
brennanMKE has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
Dummies_freelanc has joined #ruby
choffstein has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
ccheney2 has joined #ruby
vigintas has joined #ruby
ccheney has quit [Ping timeout: 245 seconds]
choffstein has left #ruby [#ruby]
InsideCommission is now known as Inside
airlok has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
jagadeesh has quit [Quit: leaving]
devoldmx has quit [Remote host closed the connection]
fomatin has joined #ruby
<sam113101>
Morrolan: thanks
RobW_ has joined #ruby
<RobW_>
Hey all. Can anyone recommend a simple ruby image resizing library?
<RobW_>
I'm looking at minimagic, but I don't need most of the features, only scale.
hamakn has joined #ruby
<RobW_>
And I'd like to avoid adding imagemagic as a dependency.
jkubecki has joined #ruby
adramalech has joined #ruby
jds_ has quit [Remote host closed the connection]
tommyvyo has joined #ruby
jimg has joined #ruby
LennyLinux has joined #ruby
jkubecki has quit [Ping timeout: 255 seconds]
cougarten has joined #ruby
<joshu>
I'm writing a ruby script that will be hosted by an online service called Tropo which I've been told uses JRuby 1.6.1. Just curious but does regular ruby differ from Jruby in terms of how the code is executed? Reason I ask is that I had to move my method definitions above any call to them or else I got runtime errors. This is different from how I've experience running scripts using Ruby 2.0.0 on my Mac.
wargasm has joined #ruby
jbueza has quit [Quit: Leaving.]
<heftig>
joshu: minimal testcase?
<adramalech>
that is like C
redgirl has joined #ruby
<adramalech>
you cannot use a method reference if it wasn't defined before use... You see it in C when ANSI flag is used
jimg has quit [Ping timeout: 264 seconds]
<joshu>
heftig please explain I don't understand what you mean
Cyrus has joined #ruby
<heftig>
joshu: please pastebin a minimal sample of code that shows the problem
<joshu>
please note that you can't run this code outside of the Tropo cloud.
freerobby has joined #ruby
<heftig>
joshu: and what's the problem with that code?
<joshu>
so in that gist if I defined my methods below the if statement the code when run in the tropo cloud using JRuby had runtime errors. So as I was asking JRuby which I have no experience seems to work differently from Ruby
<heftig>
it doesn't
<heftig>
you can't call methods before defining them
<heftig>
that's true in MRI and JRuby
<adramalech>
The main rule is that you can only forward-declare classes whose memory layout (and thus member functions and data members) do not need to be known in the file you forward-declare it.
<heftig>
adramalech: we're not talking about C
citizensinspace has joined #ruby
brianpWins has joined #ruby
<joshu>
Sorry but I'm getting even more confused. heftig first you said it doesn't and then it does. So does JRuby require methods to be defined before they are called?
<adramalech>
well don't both jruby and mri use static scoping??
<heftig>
joshu: any ruby does
freerobby has quit [Ping timeout: 245 seconds]
<heftig>
adramalech: sure
<joshu>
heftig that's weird I'm pretty sure I've written Ruby code recently where I defined methods after they are called and have not had any errors…hmm maybe I'm missing something
<Mon_Ouie>
Before they are called yes, but a method that uses the method foo can be defined either before or after foo
jds_ has joined #ruby
cj3kim has joined #ruby
<Mon_Ouie>
What matters is that all methods are defined when you call that method
AlSquirrel has quit [Remote host closed the connection]
<heftig>
adramalech: methods are dispatched dynamically, though
atmosx has joined #ruby
<adramalech>
so no lexical scoping?
<adramalech>
okay
<Mon_Ouie>
Sure variables are scoped lexically
cj3kim has quit [Remote host closed the connection]
phipes has joined #ruby
<adramalech>
but not blocks and methods... they are i am guessing block scoped?
pootler_ has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
Rizzle has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
jds_ has quit [Remote host closed the connection]
ni458103 has joined #ruby
AlSquire has joined #ruby
pootler_ has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
jds_ has joined #ruby
ni458103 has left #ruby [#ruby]
ni458103 has joined #ruby
browndawg has quit [Quit: Leaving.]
[rust] has joined #ruby
cowgarden has joined #ruby
ar has joined #ruby
<ar>
hi
<adramalech>
i had a question about parallel assignments... like a, b = 1, 1 which should be a = 1 and b = 1 right?
alsdjflkasdkfj has joined #ruby
<ar>
String has the try_convert method which tries to call a to_str method on the object passed, which is fine. but Fixnum responds to to_s instead of to_str. is there a proper way to handle that, instead of monkey-patching Fixnum?
supaiku has quit [Quit: Verlassend]
<havenwood>
adramalech: yea, `a, b = 1, 1` results in same as `a = b = 1`
cougarten has quit [Ping timeout: 255 seconds]
juarlex has joined #ruby
jds_ has quit [Ping timeout: 264 seconds]
BSaboia has joined #ruby
Astral_ has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
<apeiros>
note that `a,b = "1", "1"` does not result in the same as `a = b = "1"`
<heftig>
ar: that's not the purpose of try_convert
jkubecki has joined #ruby
<ar>
heftig: then what's the purpose? and how can i try to convert arbitrary objects into strings?
<heftig>
to_s
jastix has quit [Quit: Leaving]
kofno has joined #ruby
<adramalech>
okay so i can declare them the same or is a = b = 1 not allowed in ruby?
ni458103 has quit [Remote host closed the connection]
<heftig>
a = b = 1 is allowed, and is equivalent to b = 1; a = b
Vadelius has joined #ruby
<adramalech>
so instead of being a single assignment in parrallel, a = b = 1 is two assignments?
<adramalech>
just short hand?
tomzx_mac has joined #ruby
<heftig>
yes
vlad_starkov has joined #ruby
<heftig>
it's a = (b = 1)
<adramalech>
ahh i c
<apeiros>
and the value of the expression (b = 1) is 1
jkubecki has quit [Ping timeout: 276 seconds]
Astralum has joined #ruby
<havenwood>
pry
<Vadelius>
I have a semi-vauge question… (I wanted to learn rails) so I started out with some basic ruby (still learning them/it) I figured thatd give me a better understanding of rails. (I basically want to output simple, single-class .rb file sub 100 lines) equivalent to the web for personal use
kayloos has quit [Remote host closed the connection]
<Vadelius>
Atleast thats my "starting" goal, should I just hop into rails? I guess thats the question and also how "hard" is it to publish a rails enviroment based upon a .rb file?
nacsurte has quit [Ping timeout: 264 seconds]
<havenwood>
oops, MT
Astral_ has quit [Ping timeout: 246 seconds]
<havenwood>
vadelius: I don't understand. What is 'web for personal use'? What do you mean by 'rails environment'?
<Hanmac>
vadelius: imo you should learn ruby first so you have a better understanding then you start with rails
F1skr has joined #ruby
<Vadelius>
Hmm.. I have a .rb program. I want to be able give the say send the gets inputs from my browser and get the results (on ze web)
<havenwood>
vadelius: You want a simple single file web app?
<Vadelius>
And this requires nothing, client-side?
AlSquire has quit [Quit: Quitte]
<Vadelius>
(apart from a web-browser...)
Yakko has quit [Remote host closed the connection]
<Morrolan>
When was the last time a website asked you to install something client-sided? :P
<Vadelius>
Java ? :>
alsdjflkasdkfj has quit [Ping timeout: 264 seconds]
<Vadelius>
Flash? :(
<Morrolan>
Sure, but that'd be for the interactive applets, not for the HTTP traffic. :)
mikepack has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<havenwood>
vadelius: Plenty of tutorials on making a simple Sinatra app. Another less common option due it its relative newness is Espresso Framework.
<Morrolan>
I doubt JSON will like empty array items. :)
bashdy has quit [Quit: bashdy]
<sam113101>
so what is it then? this is what google translate sends back
mendel has joined #ruby
mendel has left #ruby [#ruby]
jhn has quit [Ping timeout: 276 seconds]
Davey has joined #ruby
<sam113101>
I added .gsub(/,+/, ',') to it, it works now, lol
ariedler has quit [Remote host closed the connection]
<sam113101>
why is google sending malformed json
eldariof has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
mixel has joined #ruby
ffranz has joined #ruby
jonahR has quit [Quit: jonahR]
<adramalech>
had a question about the class variable, 3d_array, and say I need to create an accessor method... would i just say def self.array { @@3d_array } end ??
iamjarvo has joined #ruby
cj3kim has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
Bry8Star{T2 has joined #ruby
mklappstuhl has joined #ruby
Neomex has quit [Quit: Neomex]
vigintasl has joined #ruby
TJNII has quit [Quit: Because a pickle too small is a gherkin.]
<havenwood>
adramalech: No {}s with def.
thesheff17 has quit [Ping timeout: 264 seconds]
<adramalech>
oh okay so if i one line it i don't have to use the '{' '}'
<heftig>
sam113101: [1,,1] is valid JavaScript, but not valid JSON
<heftig>
sam113101: it's an array with 3 elements, the middle which is empty
<havenwood>
adramalech: def self.array; @@3d_array end
slainer68 has joined #ruby
<havenwood>
adramalech: would syntax error with the {}s
<havenwood>
adramalech: no explicit block with def
airlok has joined #ruby
<havenwood>
adramalech: but yeah, your class var getter looks fine
dmiller has quit [Ping timeout: 245 seconds]
Ortuna has joined #ruby
<havenwood>
i never use class variables, guess i'm just not fancy like that
wesside_ has quit [Quit: I think I heard an ice cream truck..]
malkomalko has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
tmhr has joined #ruby
<adramalech>
ahh okay thanks! so the ';' will tell the interpreter that i am using one line and that a block will follow the signature of the method?
subbyyy has joined #ruby
<adramalech>
i use class variables because i feel that if i am using it once because it will run one and done but i want a class organization
<adramalech>
i am trying to perform a mutli-dimensional array linear algebra operations concurrently... trying to code an example to learn threading in ruby
whowantstolivef1 has joined #ruby
<Vadelius>
So since sublime text apparently cant handle gets.chomp etc, can I get a decent tip on a simple editor or a full blown IDE that can handle that? :p (on OSX)
jbpros_ has joined #ruby
airlok has quit [Ping timeout: 255 seconds]
Jackneill has quit [Ping timeout: 264 seconds]
tmhr has quit [Ping timeout: 246 seconds]
<adramalech>
i use ST3... was wondering how many use ST2/ST3 or like vim/emacs for ruby programming?
<Vadelius>
adramalech can you test; input = gets.chomp and see if it works in ST3? :p
Speed has joined #ruby
<adramalech>
yea i am like if i only have CLI i am totally using VIM... I got away from EMacs when i stopped using LISP for a class...
<adramalech>
sure just using the ruby builder?
<Vadelius>
yeah
aedornm has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 248 seconds]
<havenwood>
Apane: For Rails stuff try #RubyOnRails.
<adramalech>
vadelius: did you have it like inputing a string from argv?
fomatin has quit [Quit: Computer has gone to sleep.]
viszu has quit [Quit: Leaving.]
sepp2k1 has joined #ruby
Michae___ has quit [Remote host closed the connection]
zmike has quit [Quit: Выходжу]
<Apane>
havenwood: will do
sepp2k has quit [Ping timeout: 276 seconds]
airlok has joined #ruby
<Vadelius>
adramalech; no (?)
<Vadelius>
did it work for you?
<Vadelius>
I get this => undefined method `chomp' for nil:NilClass (NoMethodError) (googled for a few hours actually)
<sam113101>
is sublime text 3 out?
<havenwood>
sam113101: nope
<Vadelius>
For purhcasers of st2 afaik
Faris has left #ruby [#ruby]
<havenwood>
sam113101: "Sublime Text 3 is currently in beta. The latest build is 3033."
rgrinberg1 has quit [Quit: WeeChat 0.4.1]
<adramalech>
hmm let me see if i did something wrong didn't want to work
rgrinberg has joined #ruby
<Vadelius>
Same error?
BSaboia has quit [Ping timeout: 246 seconds]
<adramalech>
i am going to see if i can place something into stdin and then grab it and chomp it...maybe it is inputing from standard input that st has issues with
<adramalech>
yes
<Vadelius>
might have to put/print something into console first
<Vadelius>
hmm ok
<adramalech>
yea
vlad_starkov has quit [Remote host closed the connection]
mixel has quit [Quit: mixel]
DrCode has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
Dummies_freelan1 has joined #ruby
<adramalech>
hey vadelius what would be the syntax for putting a string into the stdin buffer in ruby 2.0?
heftig has quit [Quit: Quitting]
DrCode has joined #ruby
<Vadelius>
Heh, i have no idea, im a scrub
<Vadelius>
I tried input = $stdin.read
<adramalech>
well it seems if use STDIN.puts it might work
_Renegade has joined #ruby
dagnachew has joined #ruby
heftig has joined #ruby
fomatin has joined #ruby
freakazoid0223 has joined #ruby
wesside has joined #ruby
generalissimo has quit [Remote host closed the connection]
<atmosx>
anyone else has issues with macosx ruby and codesign?
malkomalko has quit [Remote host closed the connection]
lushious has quit [Remote host closed the connection]
<adramalech>
yea... i guess that is right... well it will help out with my hidden agenda for Linux to take over the world ahahahahahah, one end-user at a time lol..
tmhr has quit [Ping timeout: 264 seconds]
jmartin has left #ruby [#ruby]
<r0bgleeson>
good luck with that :p
atmosx has quit [Read error: Connection reset by peer]
osvico has joined #ruby
twoism has joined #ruby
jonahR has joined #ruby
<citizensinspace>
hey guys..what are words like 'a', 'the', 'and', 'in', 'of' called?
<citizensinspace>
I'm looking for a list of words like that so I can strip them from strings
<yxhuvud>
stop words?
<adramalech>
well you mean gramatically?
<workmad3>
I think they're typically called stop words when doing tokenizing because they're words you stop on
<workmad3>
but that's not a grammatical term, it's a technical one from doing full text indexing... same as stemming :)