apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<mechanic> cirwin: thanks
<apeiros_> mechanic: there's no need for the `self.` in self.send
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
<mechanic> apeiros_: no?
<apeiros_> no
<mechanic> send knows what instance of the class called it?
<apeiros_> no. ruby knows what self is right there.
<apeiros_> foo() is always sent to self.
<apeiros_> only obj.foo() is sent to obj.
<mechanic> ok
<mechanic> that is good to know, I removed self. now
<mechanic> thanks
<apeiros_> self.foo() can even be problematic
<apeiros_> as it will not work for private methods
<mechanic> ok
brendan` has joined #ruby
<mechanic> now I need to test all this jazz somehow
<mechanic> :)
<apeiros_> require 'test/unit' - there you go :)
kylemcgill has joined #ruby
khakimov has joined #ruby
ringotwo has quit [Remote host closed the connection]
<mechanic> not rspec/mock?
<apeiros_> meh
cbuxton has quit [Ping timeout: 245 seconds]
Maniacal has quit [Ping timeout: 264 seconds]
<apeiros_> mocking/stubbing/test-doubling is orthogonal to the test-framework
<apeiros_> (meaning you can use about any mocking lib with test-unit just fine too)
QaDeS_ has joined #ruby
fayimora has joined #ruby
blazes816 has quit [Read error: Operation timed out]
<mechanic> ok
<mechanic> I am pretty happy with this send() thing now
josefig has quit [Ping timeout: 248 seconds]
<mechanic> the code looks so much better without all that 'string' blah
stephenjudkins has quit [Quit: stephenjudkins]
stkowski has quit [Quit: stkowski]
codezombie has quit [Ping timeout: 248 seconds]
<apeiros_> mechanic: you can always paste your code and ask for improvements (no promises, though ;-) )
QaDeS has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
davidcelis has quit [Ping timeout: 250 seconds]
Sliker has joined #ruby
<heftig> any opinions on www.rust-lang.org ?
<mechanic> apeiros_: can't paste this code :(
<mechanic> at least not yet
mnaser has quit [Quit: Computer has gone to sleep.]
manizzle has quit [Ping timeout: 246 seconds]
<mechanic> apeiros_: is there any nicer way to access class instance variables from within the class
<mechanic> other than using self. notation?
<apeiros_> @ivar
<apeiros_> heftig: other than 'page loads veeery slowly'?
<heftig> i didn't notice that :p
fayimora_ has joined #ruby
fayimora_ has quit [Read error: Connection reset by peer]
fayimora_ has joined #ruby
fayimora_ has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
adamkittelson has quit [Ping timeout: 265 seconds]
<apeiros_> hm, I guess there's really a type of things for which 'tired' is a pretty prohibitive thing
fayimora_ has joined #ruby
<apeiros_> like properly phrasing your thoughts :-S
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros_> (and investigating new programming language - that said, I think I already heard of rust)
Sliker has quit [Quit: Leaving]
Kesava has joined #ruby
emmanuelux has quit [Ping timeout: 252 seconds]
blazes816 has joined #ruby
itnomad has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
artOfWar has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
bosphorus_ has quit [Remote host closed the connection]
<mechanic> apeiros_: is there a reason why @myvari.update would fail with NilClass
<mechanic> while self.class.myvari would work
invsblduck has quit [Read error: Operation timed out]
<apeiros_> mechanic: yes, self.class is a different object than self. so the ivars differ.
<apeiros_> you said 'access class instance variables from within the class'
<apeiros_> you meant 'access class instance variables from within instances of the class'
<apeiros_> which is why you got an answer that doesn't fit your situation.
<apeiros_> new answer to the corrected question: not really. self.class.accessor is usually the way to go
<mechanic> ok
wpaulson has joined #ruby
linoj has quit [Quit: linoj]
<Paradox> blarod
bambanx has quit [Ping timeout: 255 seconds]
bambanx has joined #ruby
Bosma has quit [Ping timeout: 250 seconds]
emmanuelux has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
bambanx has quit [Ping timeout: 255 seconds]
linoj has joined #ruby
sailias has joined #ruby
jrist is now known as jrist-afk
gtuckerkellogg has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
khakimov has quit [Ping timeout: 245 seconds]
CircleDot has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
CastorShell has joined #ruby
CastorShell has quit [Max SendQ exceeded]
bradhe has joined #ruby
CircleDot has quit [Client Quit]
Bosma has joined #ruby
CircleDot has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
khakimov has joined #ruby
kpshek has joined #ruby
seitensei has quit [Remote host closed the connection]
CircleDot has quit [Max SendQ exceeded]
CircleDot has joined #ruby
xnm has quit [Ping timeout: 246 seconds]
Markvilla has quit [Quit: Markvilla]
dbgster has quit [Quit: dbgster]
maletor has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
cbuxton has joined #ruby
fayimora has joined #ruby
Guest9927 has quit [Remote host closed the connection]
td123 has quit [Read error: Connection reset by peer]
Aaton is now known as Aaton_off
igotnolegs has joined #ruby
maletor has quit [Client Quit]
tds has quit [Quit: tds]
jamesaxl has quit [Read error: Operation timed out]
dkissell has quit [Read error: Connection reset by peer]
td123 has joined #ruby
dkissell has joined #ruby
mengu has quit [Remote host closed the connection]
jduan1981 has quit [Quit: jduan1981]
niku4i has quit [Remote host closed the connection]
straind` has joined #ruby
niku4i has joined #ruby
straind has quit [Ping timeout: 246 seconds]
linoj has quit [Quit: linoj]
Chryson has joined #ruby
straind` has quit [Read error: Connection reset by peer]
quest88 has joined #ruby
niku4i has quit [Ping timeout: 246 seconds]
sailias has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby
werdnativ has joined #ruby
mockra has joined #ruby
headius has quit [Quit: headius]
savage- has quit [Read error: Operation timed out]
linoj has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
kenperkins has joined #ruby
rismoney has joined #ruby
<rismoney> having an issue with escape chars and this particular string-
Targen has joined #ruby
<rismoney> args = "foo" + somestringvar + " " + %q{-lo ^| ForEach-Object { "{0}=={1}" -f $_.Name, $_.Found }}
<rismoney> if i pull the carat out, the | causes an error.
itnomad has quit [Quit: Leaving]
perryh_away is now known as perryh
cbuxton has quit [Quit: Leaving.]
adamkittelson has joined #ruby
ringotwo has joined #ruby
adamkittelson has quit [Remote host closed the connection]
punkrawkR has quit [Read error: Connection reset by peer]
mpereira has quit [Ping timeout: 246 seconds]
classix has joined #ruby
carloslopes has quit [Quit: Leaving.]
Spooner has quit [Ping timeout: 246 seconds]
xaq has quit [Remote host closed the connection]
xaq has joined #ruby
perryh is now known as perry
fayimora_ has joined #ruby
wpaulson has joined #ruby
Enekoos has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
sistematico has joined #ruby
manizzle has joined #ruby
xaq has quit [Ping timeout: 245 seconds]
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
Guest6544 has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
ukd1 is now known as Guest17011
mockra has joined #ruby
linoj has quit [Read error: Connection reset by peer]
<sistematico> Someone help me with Octopress(http://octopress.org)?
brendan` has quit [Remote host closed the connection]
<sistematico> Im trying to install Octopress on Linux Mint (Debian) with Nginx.
<sistematico> Nginx, PHP & PostgreSQL are running, but Ruby + Octopress not running.
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
bolowni has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
slacker_ has joined #ruby
fayimora has joined #ruby
td123 has quit [Ping timeout: 245 seconds]
QaDeS_ has quit [Quit: Ex-Chat]
sailias has joined #ruby
EstanislaoStan has joined #ruby
cpruitt has quit [Quit: cpruitt]
voodoofish430 has quit [Quit: Leaving.]
CheeToS has joined #ruby
mockra has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
<EstanislaoStan> Is there a way to do this without a hash? I'd really like to be able to put the variable I want filled with the string in as an argument, but it doesn't work. I know I can do it with a hash but if I want to puts variable that isn't as convenient. http://pastie.org/4174716
<banisterfiend> EstanislaoStan: what's your question fren
khakimov has quit [Quit: Computer has gone to sleep.]
fayimora has quit [Ping timeout: 264 seconds]
ken_barber1 has quit [Remote host closed the connection]
ken_barber has joined #ruby
<EstanislaoStan> I'm trying to put my variable I want filled with a string as an argument for a method I created. But that doesn't work.
fayimora has joined #ruby
ken_barber has quit [Remote host closed the connection]
<apeiros_> EstanislaoStan: you can't change local variables form another scope
<apeiros_> (and yes, that's a feature)
<apeiros_> EstanislaoStan: that's what return values are there for
<EstanislaoStan> return values?
apok has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
<apeiros_> EstanislaoStan: methods return a value
<apeiros_> either by explicitly calling `return "some value"`, or simply the last evaluated expression
<apeiros_> EstanislaoStan: http://pastie.org/4174751 your code sanitized
Hanmac has quit [Ping timeout: 264 seconds]
ringotwo has joined #ruby
slacker_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
bricker88 has quit [Quit: Leaving.]
davidcelis has joined #ruby
<EstanislaoStan> Oh, ok. Thanks!
bolowni has quit [Quit: bolowni]
<EstanislaoStan> What exactly is array[0..-2] doing? It's a range of some sort, right?
<apeiros_> it returns all elements of the array except the last
fayimora has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 246 seconds]
<davidcelis> EstanislaoStan: array[-1] gives you the last element, so ... what he said
<apeiros_> it's array[from_offset..to_offset], with negative values being equal to array.length+that_value
<apeiros_> so -1 --> array.length-1 --> the last value
cbuxton has joined #ruby
xbayrockx has joined #ruby
manizzle has quit [Quit: Leaving]
manizzle has joined #ruby
<banisterfiend> davidcelis: do you ever use Array#first or Array#last
friskd has quit [Ping timeout: 244 seconds]
radic has quit [Ping timeout: 240 seconds]
<davidcelis> banisterfiend: no
<davidcelis> banisterfiend: that's more characters than array[0] and array[-1]
<banisterfiend> hehe
bolowni has joined #ruby
ciopte7 has joined #ruby
<rismoney> can someone help me with properly use escape chars for a particular string?
<ciopte7> Can anyone help me understand what this problem is asking? http://rubeque.com/problems/pack-template-utf-8
<EstanislaoStan> Thanks everyone!
noganex has quit [Read error: Operation timed out]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
sistematico has quit [Ping timeout: 246 seconds]
noganex has joined #ruby
ringotwo has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
radic has joined #ruby
fayimora has joined #ruby
manizzle has quit [Quit: Leaving]
musicman has joined #ruby
andrewhl has joined #ruby
sailias has joined #ruby
Guest94339 has quit [Ping timeout: 244 seconds]
sistematico has joined #ruby
sistematico has quit [Changing host]
sistematico has joined #ruby
AlbireoX has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
walbert has quit []
sistematico has left #ruby [#ruby]
emmanuelux has quit [Read error: Connection reset by peer]
sailias has quit [Read error: Operation timed out]
Guest17011 has quit [Read error: Connection reset by peer]
Guest61957 has joined #ruby
unixabg has joined #ruby
<unixabg> xclite: Greetings, I found the issue with webrick and the convert jpeg to mpeg as non-root.
theoros is now known as fleoros
<unixabg> It was that when I launched the app as non root the default was via /etc/init.d was to write the ffmpeg log was to /
hunglin has quit [Ping timeout: 244 seconds]
<unixabg> so by changing the default dir for the app via start-stop-daemon to include --chdir /tmp , has corrected the issue.
univers has quit [Remote host closed the connection]
ukd1 has joined #ruby
<unixabg> I just wanted to follow up since I finally figured out the issue.
<unixabg> Thanks.
apeiros_ has quit [Remote host closed the connection]
ukd1 is now known as Guest79795
apok has quit [Quit: apok]
musicman has quit [Remote host closed the connection]
Guest79795 has quit [Read error: Connection reset by peer]
musicman has joined #ruby
ukd1_ has joined #ruby
fbernier has joined #ruby
sailias has joined #ruby
sailias has quit [Client Quit]
ananthakumaran has joined #ruby
cbuxton has quit [Quit: Leaving.]
eywu has quit [Ping timeout: 244 seconds]
davidokner has quit [Ping timeout: 246 seconds]
hemanth has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
hemanth has joined #ruby
fayimora has quit [Client Quit]
zodiac1111 has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
VegetableSpoon has joined #ruby
<EstanislaoStan> What's the best practice for when I have a really long string in my code that extends far to the right? Should I just start on a new line when it gets close to going past the right side of the page?
<cirwin> EstanislaoStan: yeah
<musicman> EstanislaoStan: in Ruby, a \ at the end of the line makes the interpreter ignore the new line, so you can split it up that way.
<EstanislaoStan> musicman, could you show me an example?
banisterfiend has quit [Remote host closed the connection]
<EstanislaoStan> I'm not sure if I can start a new line in the middle of a string that way.
<musicman> puts "this is \
<musicman> an example of a split line."
<davidcelis> i wouldn't construct a string that way; use HEREDOCs
<musicman> those two lines will output a single line. take away the \, and it outputs two lines.
<musicman> at least in 1.9.3
cakehero has joined #ruby
<EstanislaoStan> Ah, thanks musicman. davidcelis, HEREDOCs?
mnaser has joined #ruby
MarcWeber has joined #ruby
<davidcelis> <<-STRING
<davidcelis> then your multi-line string
<davidcelis> STRING
<musicman> That would work too :)
<musicman> I'm out, adios.
musicman has quit [Remote host closed the connection]
seanstickle has joined #ruby
MarcWebe1 has quit [Read error: Operation timed out]
freeayu has joined #ruby
ringotwo has joined #ruby
Rious has quit [Ping timeout: 252 seconds]
zcdny has joined #ruby
<zcdny> anybody know how to flash the current working directory in ruby ?
<zcdny> it creates a file , but it dose not know the file be created in itself processs
fixl has joined #ruby
blazes816 has quit [Quit: Leaving]
mockra has joined #ruby
EstanislaoStan has quit []
savage- has joined #ruby
xbayrockx has quit []
<fowl> zcdny, Dir.pwd
wpaulson has joined #ruby
gtuckerkellogg has joined #ruby
BeLucid_ has joined #ruby
BeLucid has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
<epitron> you should get an award for parsing that question :)
mockra has quit [Remote host closed the connection]
mikepack has joined #ruby
theRoUS has quit [Read error: Connection reset by peer]
hadees_ has joined #ruby
hadees has quit [Ping timeout: 244 seconds]
hadees_ is now known as hadees
hadees has quit [Remote host closed the connection]
<zcdny> my current dir is abc, when i new a file under the abc/a/a.file, and reread the file as the same processs it never close
<zcdny> it dosen't work
<zcdny> can not read the new file
<zcdny> i just want to flash the new dir structure let it knows after creating new file,
thecreators has joined #ruby
theRoUS has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
socrampy has joined #ruby
<socrampy> What would be a good approach to get data (the numbers from the tables) from this site: http://tujugada.com.ar/quiniela_nacional.asp
khakimov has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<seanstickle> socrampy: nokogiri
<seanstickle> And a lot of patience
<seanstickle> Because that is a pretty shitty HTML page
ipoval has joined #ruby
dbgster has joined #ruby
mikepack has quit [Remote host closed the connection]
<socrampy> thats why i come for help, because of the page.. :/ really sucks
<Azure> I have some code that recursively uses hsh#inject to process a large hash (with subhashes), and for whatever reason, I've been getting the dreaded "stack level too deep" error.
<Azure> I can't quite figure out why. :p
<Azure> A recursive tree that I managed to get from the code: http://pastie.org/4175113
ryanf has joined #ruby
<offby1> I don't suppose the hash has a reference to itself in one of its values?
umttumt has joined #ruby
gtuckerkellogg has joined #ruby
Beoran__ has joined #ruby
<fowl> (a = [])[0] = a
randomubuntuguy has joined #ruby
<fowl> that array is what scientists call the higgs boson array, its said to be the origin of all life
<offby1> Oh, I thought it looked familiar.
<davidcelis> the higgs boson doesn't exist bro
<offby1> but it's right there on my screen.
<fowl> offby1, ignore the heretics
* offby1 gestures upwards about seven lines
MarcWebe1 has joined #ruby
Beoran_ has quit [Ping timeout: 240 seconds]
t3hk0d3 has joined #ruby
<Azure> Hm, I don't think so...
MarcWeber has quit [Ping timeout: 245 seconds]
marcosha_ has joined #ruby
t3hk0d3|2 has quit [Ping timeout: 264 seconds]
marcosha_ is now known as marcoshack
<bnagy> Azure: did you try rewriting it with each_with_object ?
randomubuntuguy has quit [Ping timeout: 246 seconds]
<bnagy> don't see offhand why it would help, but you don't appear to need inject
fbernier has quit [Ping timeout: 246 seconds]
<Azure> hm, never thought of that.
ringotwo has quit [Read error: Connection reset by peer]
avandenhoven has joined #ruby
ringotwo has joined #ruby
<bnagy> just swap the variable order and change inject to each_with_object, should be the same code
micsha_ has joined #ruby
andrewhl has quit [Remote host closed the connection]
<micsha_> exit
micsha_ has left #ruby [#ruby]
<bnagy> this isn't the holodeck, dude
<Azure> Aha.
<Azure> Didn't fix it though.
<bnagy> yeah, didn't seem likely
<offby1> Azure: seriously, are you sure the hash doesn't refer to itself?
<Azure> Interestingly enough now though, the error is pointing to the beginning of a proc.
avandenhoven has quit [Quit: avandenhoven]
bambanx has joined #ruby
<Azure> At least I confirmed that it's not my recursive method that is causing it (I think.)
yugui_zzz is now known as yugui
CircleDot has quit [Quit: Leaving]
dbgster has quit [Quit: dbgster]
ringotwo has quit [Remote host closed the connection]
wpaulson_ has joined #ruby
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
Sou|cutter has quit [Ping timeout: 244 seconds]
wpaulson has quit [Ping timeout: 250 seconds]
wpaulson_ is now known as wpaulson
Ethan has quit [Quit: *poof*]
bolowni has quit [Quit: bolowni]
zodiac1111 has quit [Quit: 离开]
cakehero has quit [Quit: Computer has gone to sleep.]
austinbv1 has joined #ruby
marcoshack has quit [Remote host closed the connection]
Tricks has joined #ruby
Siphonblast has joined #ruby
apok has joined #ruby
cirwin has quit [Ping timeout: 240 seconds]
laen_ has joined #ruby
jgill has quit [Quit: jgill]
ipoval has quit [Quit: ipoval]
seanstickle has quit [Quit: seanstickle]
croz has quit []
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
tommyvyo has quit [Ping timeout: 265 seconds]
gtuckerkellogg has joined #ruby
tommyvyo has joined #ruby
yannis has joined #ruby
ryanf has quit [Quit: broken pipes |||]
umttumt has quit [Remote host closed the connection]
zcdny has quit [Quit: Leaving]
Faris has joined #ruby
adeponte has joined #ruby
remmy444 has joined #ruby
tommyvyo has quit [Ping timeout: 244 seconds]
Faris has left #ruby [#ruby]
tommyvyo has joined #ruby
austinbv1 has quit [Ping timeout: 248 seconds]
kaneda has joined #ruby
kaneda is now known as Guest21635
ryanf has joined #ruby
tewecske has joined #ruby
Faris1 has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
quest88 has quit [Quit: quest88]
socrampy has quit [Quit: Page closed]
mvangala_home has quit [Ping timeout: 252 seconds]
sonkei has quit [Quit: WeeChat 0.3.8]
macmartine has quit [Quit: macmartine]
iori has joined #ruby
sonkei has joined #ruby
dankest has joined #ruby
macmartine has joined #ruby
dankest has quit [Client Quit]
anothervenue has joined #ruby
yonggu has joined #ruby
rippa has joined #ruby
cirwin has joined #ruby
sonkei has quit [Quit: WeeChat 0.3.8]
austinbv1 has joined #ruby
yonggu has quit [Remote host closed the connection]
yonggu has joined #ruby
sonkei has joined #ruby
bambanx has quit [Ping timeout: 255 seconds]
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby
umttumt has joined #ruby
cherrypeel has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
Chryson has quit [Quit: Leaving]
havenn has joined #ruby
shadow_fox has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tjko has joined #ruby
freeayu has joined #ruby
otters has quit [Ping timeout: 260 seconds]
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
Hanmac1 is now known as Hanmac
tjko has quit [Quit: Leaving.]
whitedawg has joined #ruby
mohits has joined #ruby
cherrypeel has quit [Quit: Leaving]
shadow_fox has quit [Quit: Leaving.]
austinbv1 has quit [Ping timeout: 240 seconds]
araujo has quit [Quit: Leaving]
trend has joined #ruby
graspee has quit [Quit: leaving]
VegetableSpoon has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 244 seconds]
trend has left #ruby [#ruby]
otters has joined #ruby
TheFuzzball has quit [Ping timeout: 265 seconds]
TheFuzzball has joined #ruby
yugui is now known as yugui_zzz
shadow_fox has joined #ruby
RainbowDashh has joined #ruby
<laen_> I'd like to define my own "+" method on a Class. What's the syntax? Just "def +(obj1,obj2)" ?
<banisterfiend> laen_: no
<banisterfiend> laen_: just def +(obj)
shadow_fox has left #ruby [#ruby]
<banisterfiend> laen_: the first object is implied
<laen_> Excellent, thanks!
ipoval has joined #ruby
<laen_> Oh, that makes sense. Object+Object is actually Object.+(Object).
maletor has joined #ruby
<Hanmac> hihi it will be funny when you try to define the []= method :P
brianpWins has joined #ruby
djdb has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
thecreators has quit [Remote host closed the connection]
jgrevich has joined #ruby
davidokner has joined #ruby
<davidokner> Hi, I'm trying to figure out how to create a main file and a class file and use require to add the class file to my main file.
wvms has quit [Quit: wvms]
Tulak has joined #ruby
<davidokner> I'm using rubymine and created a file called main and another that I told RubyMine was a class file.
<davidokner> I put require "circle" at the top of my main file, but it isn't working
<davidokner> I have a file circle.rb in my project.
iori has quit [Remote host closed the connection]
<cirwin> davidokner: the current directory is not on the PATH by default
<cirwin> so you have to require './circle'
nachtwandler has joined #ruby
<Hanmac> davidokner, is your ruby version 1.9.*?
<Hanmac> if yes you need require_relative
Tulak has quit [Client Quit]
<davidokner> Hanmac: WOW, that worked as soon as I did that. Thanks!
<davidokner> I am using Jruby at the moment latest. I put require "./circle" and it worked
<davidokner> I'm just starting to learn. I'm trying to create some test files to test my memory after using RubyMonk.com
<Hanmac> "./circle" may work too, but if you start your ruby program from an different space it may be getting errors
<davidokner> Are you saying to use single quotes?
<Hanmac> no, i mean you should use require_relative, when its avalable
<davidokner> Oh ok
<banisterfiend> davidokner: be careful about Hanmac though, he sometimes gives useful information but often he's drunk and tells lies to noobs.
<Hanmac> sample ... i have a dir test with file1.rb and file2.rb ... file1 requires file2 with require "./file2" ... if i am in dir test i do ruby file1.rb and all is fine, but when i in the parent dir of test, and there is a file2.rb too, ruby test/file1.rb does not work because it requires the wrong file
Morkel has joined #ruby
freeayu has quit [Quit: 离开]
<davidokner> I switched it to require_relative
<davidokner> The one ruby that is complicated to install on OSX is Iron Ruby.
yonggu has left #ruby [#ruby]
<davidokner> I tried to find instructions for that.
<Hanmac> ... isnt iron ruby only for windows?¿
<davidokner> That were up-to-date so I could just follow it.
<davidokner> Yeah, but there is some mono implementation that lets you do it. I don't know if you can run the program, I don't get it exactly.
havenn has quit [Remote host closed the connection]
<macmartine> davidokner: scrap .net :)
ukd1_ has quit [Ping timeout: 255 seconds]
<davidokner> The Mono Developer IDE is available for windows, OSX, openSUSE, Debian and Ubuntu
<davidokner> And somehow you are supposed to be able to do Iron Ruby in there.
<davidokner> Well if I wanted to program games, which I'm not ready to do I'd do it for .net
nilg has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
<davidokner> I was just curious to see if I could install it.
ukd1 is now known as Guest30599
igotnolegs has quit [Quit: Computer has gone to sleep.]
subbyyy has quit [Quit: Leaving.]
nilg has joined #ruby
<bnagy> wait wat?
<bnagy> I thought IronRuby was a) dead and b) for .net framework
selvakumaran has joined #ruby
Faris1 has left #ruby [#ruby]
CheeToS has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
perry is now known as perryh_away
Guest30599 has quit [Ping timeout: 246 seconds]
Markvilla has joined #ruby
perryh_away is now known as perryh
<davidokner> No IronRuby got switched to open source
<davidokner> I think you can develop Iron Ruby on OSX using the MonoDevelop IDE for OSX
perryh is now known as perry
Markvilla has quit [Client Quit]
<davidokner> The problem is getting mono setup on OSX
<bnagy> and how are you going to run .net apps?
<davidokner> The Mono Runtime lets you run them on OSX
<bnagy> o_0
<davidokner> It is sort of like Java
<davidokner> It doesn't compile it to native
<davidokner> You have to have the code though or it has to be made for Mono I think.
Hanmac has quit [Ping timeout: 246 seconds]
<davidokner> You can't just run a windows program. I'm still trying to understand it
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
flak has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
flak is now known as Guest50786
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<ryanf> bnagy: mono is an implementation of the CLR
davidw has joined #ruby
<ryanf> so theoretically you can compile c# code or whatever against mono instead of normal .net
davidw is now known as Guest28164
<ryanf> I don't know many details but I'm sure there are .net apis that they don't support
artOfWar has quit []
RainbowDashh has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<davidokner> I'd like to know if you compile against the mono API if the windows .net will compile it the rest of the way so it won't be CLI and it will be faster.
<davidokner> I mean mono framework CLR
<bnagy> .net uses an IL
<davidokner> I don't know what .il is
<davidokner> oh found it
<bnagy> it's an intermediate language, like java bytecode I guess
<davidokner> .net -> CLI -> IL
<bnagy> ie any compiler that produces pure IL and you should be fine
<bnagy> as long as the VMs are compatible anyway
<davidokner> CLI should be slower than IL right?
<bnagy> what's CLI?
<davidokner> It would be nice if a software developer could release in CLI and windows would have a CLI to IL automatic compiler that runs during install.
RainbowDashh has quit [Ping timeout: 246 seconds]
<davidokner> The game for example would require you to install .net for windows and then it would compile the CLI to IL during install for better performance if you have windows.
<bnagy> I have no idea what you're talking about anymore
<davidokner> If you could do that, then people might not buy windows as much.
RainbowDashh has joined #ruby
tk___ has joined #ruby
<davidokner> I'm talking about how to run .net programs on any system and how to write Iron Ruby on OSX.
locriani_ has joined #ruby
<bnagy> oh right, the CLR is just what runs .net IL on windows
<bnagy> it's the analog of the jvm
<davidokner> There is a a cross platform runtime called mono that lets you run .net bytecode on other OS's
locriani has quit [Ping timeout: 248 seconds]
<davidokner> yes
nachtwandler has quit [Ping timeout: 265 seconds]
<davidokner> It is CIL, I was wrong about .net -> CLI ->IL
<davidokner> It is just CIL
<davidokner> .net ->CIL ->machine code
<bnagy> no
<bnagy> CLR is the runtime
<bnagy> CLR runs IL and produces native code
hemanth has quit [Read error: Connection reset by peer]
<bnagy> on other platforms, Mono would run the same IL and produce native code
<bnagy> by which I mean machine code
hemanth has joined #ruby
<davidokner> It says CIL, not IL
<davidokner> Common Intermediate Language, instead of Intermediate Language
<bnagy> I don't really give a crap what MS called it
<davidokner> I'm talking about the bytecode either way
<bnagy> Intermediate Language is a standard term
<davidokner> Ok
<davidokner> Iron Ruby -> IL -> Byte Code
<bnagy> no
<davidokner> no?
<bnagy> the IL _is_ bytecode
<bnagy> the IL runs directly on the VM
<davidokner> It says byte code above CIL here: http://en.wikipedia.org/wiki/Common_Language_Runtime
<davidcelis> davidokner: there can be only one
<bnagy> davidcelis: yes, it does, because the IL is bytecode
<davidokner> Oh, sorry I mean machine code
<davidokner> Iron Ruby -> IL -> Machine Code
<davidokner> That is what I meant to say
<bnagy> no
RainbowDashh has quit [Ping timeout: 246 seconds]
<davidcelis> bnagy: wrong david
RainbowDashh has joined #ruby
<bnagy> IL -> a VM (mono / CLR) -> machine code
<davidokner> Right, but I was naming the code levels.
<bnagy> Iron Ruby is a code level? ;)
<davidokner> The particular source code I'm thinking of
<bnagy> HLL -> IL -> machine code, yes
<davidokner> For use with mono
ipoval has quit [Quit: ipoval]
<bnagy> if I were you I'd back jruby
<davidokner> Yeah, I'm more interested in jRuby
<davidokner> I was just wondering about Iron Ruby because of games
<bnagy> although it's hard to know who to hate more out of Oracle and Microsoft
<davidokner> I would just use windows probably
<bnagy> but at least Microsoft can write secure code these days
<davidokner> If I were writing a game I would make it for Windows.
abstrusenick has joined #ruby
<davidokner> I'm find with Bootcamp on mac
<davidokner> fine.
<banisterfiend> bnagy: naggy waggy, can u +1 this (even if u dont use rvm) https://github.com/wayneeseguin/rvm/issues/1034
<bnagy> no?
Tricks has quit [Ping timeout: 245 seconds]
<davidokner> I was thinking that Java would be great for creating apps like you see for smart phones, but for cross platform and downloaded by website URL, instead of app store.
<banisterfiend> bnagy: Yeah.
<bnagy> I have cured myself of rvm, I don't want to get any on me anymore
<bnagy> davidcelis: yeah some smartphone makers think that too
<davidokner> RVM was the only way I could install ruby, even though I didn't want multiple versions.
<davidokner> cRuby that is. For jRuby and MacRuby it is easy
<davidokner> As far as IDE's go. I see Visual Study for Iron Ruby, Xcode for MacRuby and RubyMine for JRuby.
<davidokner> netbeans dropped support.
<davidokner> I could see apps replacing standard websites in a lot of cases using Java platform.
schovi has joined #ruby
<davidokner> Getting away from the Document Object Model.
<davidokner> Unless you are showing a document.
davidokner has left #ruby ["thanks everybody"]
Guest50786 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
abra has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
tvw has joined #ruby
croz has joined #ruby
selvakumaran has quit [Quit: Leaving]
selvakumaran has joined #ruby
thecreators has joined #ruby
<bnagy> davidcelis: shit, sorry, mis-highlighted you AGAIN. :/
nilg has quit [Read error: Operation timed out]
<Hanmac> bnagy it was a highlight for him :P
<bnagy> Oh! HA! Ja zee cherman yoomor!
<bnagy> :D
RainbowDashh has quit [Disconnected by services]
RainbowD_ has joined #ruby
the-newsman has joined #ruby
<the-newsman> hi all
<bnagy> well so much for my morning hobby project, was trying to play with zk, but it's broken :(
RainbowD_ is now known as RainbowDashh
jwang has quit [Quit: Leaving]
<the-newsman> the command require in irb enviroment does not work. any help ?
blacktulip has joined #ruby
<the-newsman> hello ?
croz has quit []
<bnagy> it works
nando has joined #ruby
<sernin> works fine here
<the-newsman> r u addressing me ?
nando is now known as Guest17471
Guest17471 is now known as croz
<bnagy> try require_relative instead (attempted telepathy)
<the-newsman> bnagy i want to know why it does not work
<Hanmac> bnagy, require_relative does not work in irb ... he need require "./file"
<the-newsman> Hanmac i think u r right
ukd1 has joined #ruby
croz has quit [Client Quit]
<the-newsman> i just did require "methods.rb"
<bnagy> orly? huh. Why?
<the-newsman> it did not work
<bnagy> the-newsman: because they took '.' out of the default load path in 1.9
ukd1 is now known as Guest89079
<bnagy> also you don't need the .rb for require, only for load
<the-newsman> also require "methods" does not work
<Hanmac> in the files you should to this: require_relative "methods"
jarray52 has joined #ruby
<Hanmac> but in rib you should do this: require "./methods"
croz has joined #ruby
<Hanmac> i mean irb
<the-newsman> it works now fine
banisterfiend has quit [Remote host closed the connection]
<the-newsman> Hanmac how can i get updated help for the ruby
<Hanmac> what do you mean with "updated help"?
<the-newsman> i mean. i got books for ruby and it does not give suich help
<the-newsman> it gave qrong info like what i learned
jerius has joined #ruby
<sernin> You probably need a book that explicitly covers 1.9
<sernin> if that's your thing.
<the-newsman> i think yes
<the-newsman> but why does not ruby give helpful helping files ?
croz has quit [Client Quit]
banisterfiend has joined #ruby
olrrai has quit [Ping timeout: 246 seconds]
<Hanmac> http://www.ruby-doc.org/ the points there may be helpfull
jerius has quit [Client Quit]
<sernin> Uhm, if you mean in terms of documentation, I think ruby-doc.org and some other useful tools (pry, for example) might help
sepp2k has joined #ruby
Morkel has quit [Quit: Morkel]
jerius has joined #ruby
croz has joined #ruby
mpereira has joined #ruby
jerius has quit [Client Quit]
selvakumaran has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
jerius has joined #ruby
jerius has quit [Client Quit]
mohits has quit [Ping timeout: 246 seconds]
Guest28164 has quit [Ping timeout: 240 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
mohits has joined #ruby
jerius has joined #ruby
williamcotton has quit [Quit: williamcotton]
RainbowDashh has joined #ruby
Faris has joined #ruby
kylemcgill has quit [Remote host closed the connection]
jarray52 has left #ruby [#ruby]
schovi has quit [Remote host closed the connection]
yxhuvud has joined #ruby
manizzle has joined #ruby
jerius has quit [Quit: leaving]
kylemcgill has joined #ruby
jianxioy has joined #ruby
jamesaxl has joined #ruby
CheeToS has joined #ruby
kylemcgill has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 248 seconds]
jerius has joined #ruby
araujo has joined #ruby
perry is now known as perryh_away
monkegjinni has joined #ruby
jerius is now known as jerius_
bier|tp has quit [Read error: Operation timed out]
jerius_ is now known as jerius
mengu has joined #ruby
fixl has quit [Remote host closed the connection]
schovi has joined #ruby
Niamkik has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
snearch has joined #ruby
Ducklings has joined #ruby
Ducklings has left #ruby [#ruby]
zaamkablam has joined #ruby
jerius has quit [Quit: leaving]
zodiac1111 has joined #ruby
jerius has joined #ruby
workmad3 has joined #ruby
Faris has joined #ruby
jacobw has quit [Quit: leaving]
eurbach has joined #ruby
eurbach has left #ruby [#ruby]
williamcotton has joined #ruby
kaspernj has joined #ruby
bier|tp has joined #ruby
savage- has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
djdb has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
kylemcgill has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
dbck has joined #ruby
_axx has quit [Ping timeout: 248 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 250 seconds]
ciopte7 has quit [Quit: ciopte7]
Faris has left #ruby [#ruby]
Hanmac1 is now known as Hanmac
werdnativ has quit [Quit: werdnativ]
schovi has quit [Remote host closed the connection]
ciopte7 has joined #ruby
<shevy> the-newsman for most normal methods, they reside in a specific class. like on Array, Hash and so on. for these, the official docu should list all available methods (with a few exceptions of methods that are redirected and reside in other classes)
dekroning has joined #ruby
schovi has joined #ruby
schovi has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
darthdeus has joined #ruby
<dekroning> hi
maletor has quit [Quit: Computer has gone to sleep.]
tvw has quit [Remote host closed the connection]
maletor has joined #ruby
maletor has quit [Client Quit]
kaspernj has quit [Read error: Operation timed out]
maletor has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby
williamcotton has quit [Quit: williamcotton]
AndChat- has joined #ruby
zaamkablam has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
RainbowDashh has joined #ruby
<shevy> hi dekroning
apok has quit [Quit: apok]
mechanic has quit [Quit: mechanic]
banghouse has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
selvakumaran has joined #ruby
liluo has joined #ruby
ciopte7 has quit [Quit: ciopte7]
kylemcgill has quit [Read error: Connection timed out]
kylemcgill has joined #ruby
selvakumaran has quit [Remote host closed the connection]
qwerxy has joined #ruby
fridim__ has joined #ruby
virunga has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
CheeToS has quit [Ping timeout: 246 seconds]
Occult_ has quit [Quit: Leaving]
maletor has joined #ruby
cirwin has quit [Ping timeout: 246 seconds]
kaspernj has joined #ruby
Jrz has joined #ruby
thecreators has quit [Quit: thecreators]
maletor has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
timonv_ has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
thecreators has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jamesaxl has quit [Ping timeout: 250 seconds]
jerius has quit [Ping timeout: 264 seconds]
bosphorus_ has joined #ruby
Guest28164 has joined #ruby
imami|afk is now known as banseljaj
mvangal__ has joined #ruby
kylemcgill has quit [Read error: Connection timed out]
abstrusenick has quit [Quit: abstrusenick]
kylemcgill has joined #ruby
justinmcp has joined #ruby
arturaz has joined #ruby
moted has quit [Ping timeout: 246 seconds]
QaDeS has joined #ruby
moted has joined #ruby
charliesome has joined #ruby
aruntomar has joined #ruby
randomubuntuguy has joined #ruby
Guest28164 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
Jrz has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mpereira has quit [Ping timeout: 246 seconds]
tomb_ has quit [Quit: Computer has gone to sleep.]
davidw has quit [Read error: Operation timed out]
kylemcgill has quit [Read error: Connection timed out]
jamiemill has joined #ruby
jamiemill has left #ruby [#ruby]
kylemcgill has joined #ruby
ph^ has joined #ruby
randomubuntuguy has quit [Ping timeout: 244 seconds]
randomubuntuguy has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
Guest74504 has quit [Ping timeout: 248 seconds]
crodas has joined #ruby
randomubuntuguy has quit [Ping timeout: 244 seconds]
mksm has joined #ruby
Spooner has joined #ruby
mksm is now known as Guest12946
liluo has quit [Remote host closed the connection]
novochar has quit [Ping timeout: 252 seconds]
novochar has joined #ruby
jerius has joined #ruby
saschagehlich has joined #ruby
Guest89079 has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
dangerousdave has joined #ruby
yonatane has joined #ruby
thone_ has joined #ruby
myth17 has joined #ruby
<yonatane> What's the best practice to respond to password prompt from git?
<yonatane> i mean from a shell command invoked from ruby
aruntomar has quit [Quit: Leaving]
davidw has joined #ruby
davidw is now known as Guest45702
thone has quit [Ping timeout: 252 seconds]
benlangfeld has joined #ruby
benlangfeld has quit [Changing host]
benlangfeld has joined #ruby
freeayu has joined #ruby
kylemcgill has quit [Remote host closed the connection]
execute has joined #ruby
<bnagy> don't use passwords for your git? :)
robotmay has joined #ruby
<Spooner> You mean when you push to github? Need to create a ssh key: https://help.github.com/articles/generating-ssh-keys
vlad_starkov has joined #ruby
ghanima has quit [Quit: Leaving.]
<dekroning> hi shevy
benlangfeld has left #ruby [#ruby]
<apeiros_> bnagy, Spooner: sadly that won't work out if you're in a proxy-ridden work-place where you're forced to use git via https :(
<apeiros_> (it's teh suck)
<Spooner> Use credential helper then
<apeiros_> o0
<Spooner> Although I suppose there is always the _first_ time you need to enter your password.
<apeiros_> what credential helper?
<banisterfiend> shevy: jesus you'er getting more and more retarded as time goes on: http://www.reddit.com/r/programming/comments/vsstl/confessions_of_a_php_addict/c57d3k0
<banisterfiend> incoherent rambling
<banisterfiend> god knows what
Guest45702 has quit [Ping timeout: 246 seconds]
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
azm has quit [Read error: Connection reset by peer]
amberis has joined #ruby
<amberis> euro culturism 2012 !!! vote for me plz!! http://la2portal.lt/invite/index.php?invite=Lukas
amberis has quit [Killed (idoru (Spam is off topic on freenode.))]
<Spooner> apeiros_ My keys (ssh for command line and pageant for Tortoise) magically stopped working recently, so I was looking up how to use https instead (literally now :P)
<bnagy> Spooner: smartgit for windows can use 'normal' ssh keys, btw
<apeiros_> Spooner: aha! 'Good to know: You need git 1.7.10 or newer to use the credential helper' - that explains why I didn't know about it
<apeiros_> Spooner: thanks for pointing that out :)
<bnagy> the interface is a bit scary though
n1x has joined #ruby
<apeiros_> Spooner: hm, looks like it only worked on OSX?
<bnagy> allegedly you can import and convert your SSH keys to ppk, but I couldn't get it to work :/
<dekroning> anyone know how I could instantiate a MiniTest::Unit::TestCase my self, and run the tests? I would like to trigger it manually in my code without using 'minitest/autorun'
<Spooner> apeiros_: There is a windows version of it, apparently, provided by github
<apeiros_> Spooner: and *nix?
<apeiros_> (we have all 3, since we don't force the OS on our devs)
<Spooner> No idea. I need to reinstall my linux VM :)
<apeiros_> ok
<apeiros_> will investigate
<apeiros_> got a starting point. and osx+win is probably already enough
<bnagy> apeiros_: ssl vpn to EC2, route to github through that, use git like god intended :P
<Spooner> bnagy: Might try smartgit, but I'm just trying github for windows. Maybe that will be magic :)
<bnagy> or make your network admins not be retarded
<workmad3> banisterfiend: that's an awesome ramble comment :)
<apeiros_> bnagy: who's that god you're speaking of?
<workmad3> apeiros_: Torvalds
<banisterfiend> workmad3: can u +1 something for me?
<apeiros_> workmad3: I thought his name was linus
<workmad3> apeiros_: Linus Torvalds
<apeiros_> so god is that guy's nickname?
<workmad3> apeiros_: nickname/job title
<bnagy> seriously though, who the hell blocks outbound ssh?
<bnagy> I mean... srsly.
<workmad3> bnagy: paranoid sysadmins that want to be able to see your traffic?
<bnagy> which is why https works?
waltz_ has quit [Remote host closed the connection]
<workmad3> bnagy: or paranoid bastion sysadmins who don't want to allow SSH tunnelling of a connection from inside a network to outside?
<apeiros_> bnagy: I think my workplace blocks *all* traffic that isn't outbound http, https or smtp
<apeiros_> bnagy: and I can even understand the rationale - if you don't have the manpower, you better just close every possible hole.
<bnagy> they allow outbound smtp??
<shevy> banisterfiend still stalking eh?
<apeiros_> bnagy: hm, actually only from their own exchange
<apeiros_> so no, workplace computers are only allowed outbound http/https :)
nari_ has joined #ruby
<banisterfiend> shevy: i just came across it on reddit :) what were you smoking? :)
<bnagy> honestly, that makes zero sense
<apeiros_> shevy has an admirer :D
<bnagy> force everyone to use browser versions of everything, thus maximising the use of the app most likely to be compromised
<workmad3> apeiros_: is that outbound to any other machine, or outbound to things outside your workplace network?
<shevy> banisterfiend, dunno really. hate just flows into my fingers, then I feel better afterwards
<apeiros_> workmad3: outside the workplace network
<apeiros_> within there's only limitations as to what machines you can reach
freeayu has quit [Ping timeout: 244 seconds]
<bnagy> I am so happy I don't do that crap for a living anymore
<apeiros_> i.e. most workplace machines can't reach the db & webservers
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
jamesaxl has joined #ruby
umttumt has quit [Remote host closed the connection]
bashdy has joined #ruby
<Spooner> Wow, "github for windows" is pretty nice and idiotproof :)
iori has joined #ruby
nari_ has quit [Ping timeout: 240 seconds]
<bnagy> does support not-github?
<myth17> has anyone had some prior experience with the ice_cube gem?
venkatk_ has joined #ruby
venkatk_ has quit [Client Quit]
<Spooner> bnagy : I can view other repos, but it can only push to github.
<bnagy> lame
<Spooner> It manages user/password & creates and uploads an ssh key, which makes it a lot lower barrier to entry. It isn't a fully-featured git gui, but what it does do, it seems to do cleanly and well.
<workmad3> Spooner: would it not support non-github push if you set up the SSH key yourself?
<Spooner> No, when I opened a non-github local repo (just for version control; I don't have a private github, so I haven't got it on a remote repo), it just offered to upload it as a new github project. However, I don't have any non-github hosted repos, so maybe it would support that.
bitsar has joined #ruby
ph^ has joined #ruby
ChampS666 has joined #ruby
thecreators has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
<Spooner> http://windows.github.com/ anyway (not sure how new it is; I only just noticed it).
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
JustinCampbell has joined #ruby
<banisterfiend> workmad3: nice comment :)
<workmad3> banisterfiend: I +1'd with a suggestion to automate binstubs with a BUNDLE_BIN directory instead of an intrusive rubygems modification plugin :)
<banisterfiend> yeah, very good :) it's always more effective to add a thought out comment rather than just a +1
<workmad3> banisterfiend: also, I figure that the auto bundle-exec thing has been there for a while now, so offering a solution that is less intrusive to rubygems while still maintaining the behaviour for general users is better than just removing it entirely :)
<workmad3> banisterfiend: about all I can think is that if you're not in the root dir with the bundle bin directory then it won't work where the rubygems-bundler thing will
<workmad3> banisterfiend: but I'm not sure how common a use-case that is personally... I certainly don't try to run my scripts outside of the project root because 90% of the time they won't work anyway :)
abra has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
fayimora has joined #ruby
justinmcp has quit [Remote host closed the connection]
fayimora_ has joined #ruby
arturaz has quit [Remote host closed the connection]
<yonatane> yes, i meant https repository
snearch has quit [Quit: Verlassend]
<yonatane> but since i'm doing this for capistrano i'd like a solution for its current way of working with shell commands
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
mnaser has joined #ruby
djdb has joined #ruby
fridim__ has quit [Ping timeout: 264 seconds]
fayimora has quit [Ping timeout: 246 seconds]
hemanth has quit [Read error: Connection reset by peer]
iocor has joined #ruby
hemanth has joined #ruby
andrewhl has joined #ruby
plastics has joined #ruby
Vendethiel has joined #ruby
yugui_zzz is now known as yugui
n1x has quit [Quit: "time to take REST"]
pk1001100011 has joined #ruby
Manhose has joined #ruby
snearch has joined #ruby
Manhose has quit [Client Quit]
kaspernj has quit [Ping timeout: 248 seconds]
iori has quit [Remote host closed the connection]
suraj_ has joined #ruby
td123 has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
andrewhl has quit [Remote host closed the connection]
whitedawg has quit [Read error: Operation timed out]
<banisterfiend> this is freaking awesome! https://github.com/kyrylo/pry-theme
mnaser has quit [Quit: Computer has gone to sleep.]
<banisterfiend> needs some work, like not storing themes in a retarded place
<banisterfiend> but aside from that it seems cool
RainbowDashh has joined #ruby
seanstickle has joined #ruby
yugui is now known as yugui_zzz
punkrawkR has joined #ruby
MarcWebe1 has quit [Ping timeout: 248 seconds]
schovi has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
TheRealPygo is now known as pygospa
myth17 has quit [Quit: Leaving]
freeayu has joined #ruby
<Tasser> argh, just segfaulted ruby...
<Tasser> any idea how to debug it? gdb stacktrace: http://sprunge.us/AYDJ
<Hanmac> Tasser ... ruby itself doesnt normaly segfault ... it may a extra gem
schovi has quit [Remote host closed the connection]
<Tasser> I load nokogiri and erb
<Hanmac> show me your codes
robotmay has quit [Remote host closed the connection]
<Tasser> I suppose you want the data too? :-)
<Hanmac> hm no, but i want the entire backtrace ... ruby does normaly shows multible error layers
<Tasser> apparently the last iterator, first element
<Tasser> [BUG] Segmentation fault
<Tasser> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<Tasser> [1] 24247 segmentation fault ruby generator.rb
<Tasser> apparently the bug correlates with the map in line 114
<Tasser> if I return nil there, it works
<Tasser> if I don't, it breaks
Markvilla has joined #ruby
<Tasser> and according to my shuffle tests, it doesn't depend on the data, rather the collection step
mengu has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 244 seconds]
bashdy has quit [Quit: bashdy]
davidcelis has quit [Ping timeout: 240 seconds]
<Tasser> WTF.
<Tasser> I can't reproduce it with other data, just the strings from erb cause the segfault
jerius has quit [Quit: leaving]
fleoros is now known as theoros
bashdy has joined #ruby
<Tasser> ... which isn't a C extension
dagnachewa has joined #ruby
bashdy has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
Markvilla has quit [Quit: Markvilla]
<Tasser> apeiros_, help? :-/
sailias has joined #ruby
<Hanmac> so erb is the bad thing :P
<Tasser> the strings produced from erb that is
jamesaxl has joined #ruby
suraj_ is now known as whitedawg
fantazo has quit [Remote host closed the connection]
td123 has quit [Quit: WeeChat 0.3.8]
saschagehlich has quit [Quit: saschagehlich]
mneorr has quit [Quit: WeeChat 0.3.8]
neku has joined #ruby
minijupe has joined #ruby
djdb has quit [Remote host closed the connection]
brendan` has joined #ruby
dagnachewa has quit [Quit: Leaving]
banseljaj is now known as imami|afk
akem has quit [Ping timeout: 246 seconds]
sailias has quit [Ping timeout: 246 seconds]
Tuxist has joined #ruby
Markvilla has joined #ruby
plastics has quit [Ping timeout: 265 seconds]
snearch has quit [Quit: Verlassend]
bitsar has quit [Remote host closed the connection]
Markvilla has quit [Quit: Markvilla]
qwerxy has joined #ruby
heftig has quit [Quit: leaving]
qwerxy has quit [Client Quit]
mengu has joined #ruby
brendan` has quit [Remote host closed the connection]
berkes has joined #ruby
kirun has joined #ruby
subbyyy has joined #ruby
irakli has joined #ruby
Markvilla has joined #ruby
<irakli> hey guys. I'm goin go to make presentation like this -> https://www.destroyallsoftware.com/talks/wat/
<irakli> if you know funny stuff that deserves WAT please help me
<irakli> thanks!
<seanstickle> So, you're copying the presentation?
<seanstickle> Or doing a Ruby clone of it?
<seanstickle> Or what?
<irakli> no I am not copying/cloning
ChampS666 has quit [Ping timeout: 246 seconds]
Tuxist has quit [Remote host closed the connection]
seanstickle has quit [Quit: Nihil sub sole novum]
ph^ has quit [Remote host closed the connection]
seanstickle has joined #ruby
seanstickle has quit [Client Quit]
subbyyy has quit [Quit: Leaving.]
neku is now known as neku|away
gtuckerkellogg has joined #ruby
saschagehlich has joined #ruby
kevinbond has quit [Quit: kevinbond]
graspee has joined #ruby
silentpost has joined #ruby
sbooch has joined #ruby
sbooch has quit [Client Quit]
bashdy has joined #ruby
fbernier has joined #ruby
mickn has joined #ruby
mk03 has joined #ruby
Vendethiel has quit [Ping timeout: 246 seconds]
fbernier has quit [Ping timeout: 246 seconds]
bashdy has quit [Quit: bashdy]
itnomad has joined #ruby
tomb___ has joined #ruby
fbernier has joined #ruby
cakehero has joined #ruby
dbgster has joined #ruby
blacktulip has quit [Remote host closed the connection]
patronus_ has quit [Read error: Connection reset by peer]
mattp_ has quit [Read error: Connection reset by peer]
jfoley has joined #ruby
johnduhart has quit [Quit: No Ping reply in 180 seconds.]
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
_Setsuna_ has quit [Quit: ZNC - http://znc.sourceforge.net]
JodaZ has joined #ruby
affix has quit [Ping timeout: 260 seconds]
mvangal__ has quit [Ping timeout: 244 seconds]
Jb_ has quit [Ping timeout: 248 seconds]
boobah has quit [Ping timeout: 252 seconds]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
abra has quit [Ping timeout: 276 seconds]
boobah has joined #ruby
ub|k has quit [Ping timeout: 246 seconds]
Kwpolska has quit [Ping timeout: 264 seconds]
henn1nk has quit [Ping timeout: 265 seconds]
Jb_ has joined #ruby
Poapfel has quit [Quit: Need a new quit message? Why not Zoidberg?"]
philips has quit [Excess Flood]
ChampS666 has joined #ruby
TheNumb has quit [Ping timeout: 244 seconds]
liluo has joined #ruby
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
liluo has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Jb_ has quit [Ping timeout: 245 seconds]
JodaZ has joined #ruby
kichawa has quit [Ping timeout: 240 seconds]
Sigma00 has quit [Ping timeout: 240 seconds]
philips has joined #ruby
jbpros has quit [Ping timeout: 245 seconds]
johnduhart has joined #ruby
kichawa has joined #ruby
preller has quit [Ping timeout: 246 seconds]
minijupe has quit [Quit: minijupe]
Poapfel has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
jbpros has joined #ruby
mk03 has quit [Remote host closed the connection]
ipoval has joined #ruby
affix has joined #ruby
_Setsuna_ has joined #ruby
patronus has joined #ruby
TheNumb has joined #ruby
henn1nk has joined #ruby
dbgster has quit [Ping timeout: 248 seconds]
Sigma00 has joined #ruby
brendan` has joined #ruby
mattp_ has joined #ruby
chson has quit [Remote host closed the connection]
abra has joined #ruby
ub|k has joined #ruby
preller has joined #ruby
Kwpolska has joined #ruby
dbgster has joined #ruby
Jb_ has joined #ruby
apok has joined #ruby
mpereira has joined #ruby
fbernier has quit [Ping timeout: 264 seconds]
bglusman has joined #ruby
umttumt has joined #ruby
savage- has joined #ruby
<apeiros_> Tasser: wassup?
<apeiros_> ah, segfault? not sure I can be of much help. I can try to reproduce to see whether it's a common issue or only related to your executable
<apeiros_> (or platform)
Markvilla has quit [Quit: Markvilla]
dbck has quit [Ping timeout: 240 seconds]
fayimora has joined #ruby
seanstickle has joined #ruby
dbck has joined #ruby
itnomad has quit [Quit: Leaving]
jfoley has quit [Quit: jfoley]
Guest45702 has joined #ruby
TheVoid has quit [Ping timeout: 245 seconds]
Niamkik has quit [Quit: leaving]
BeLucid_ has quit [Ping timeout: 248 seconds]
Dreamer3 has joined #ruby
kvirani has joined #ruby
kvirani has quit [Remote host closed the connection]
wvms has joined #ruby
liluo has joined #ruby
liluo has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
fayimora has quit [Read error: Connection reset by peer]
execute has quit [Ping timeout: 265 seconds]
fayimora has joined #ruby
freeayu has quit [Quit: 离开]
mnaser has joined #ruby
mickn has quit [Remote host closed the connection]
execute has joined #ruby
neku|away is now known as neku
execute is now known as _axx
Guest45702 has quit [Ping timeout: 244 seconds]
Niamkik has joined #ruby
Niamkik has quit [Excess Flood]
ipoval has quit [Quit: ipoval]
fbernier has joined #ruby
Markvilla has joined #ruby
quest88 has joined #ruby
austinbv1 has joined #ruby
<Spooner> There is a gem called perlin_noise which is required as 'perlin'. I want to make a gem called perlin, but I'm worried that making it required as 'perlin' would cause problems... any best practice there?
<apeiros_> talk to the author on why he messes with his users :-p
<apeiros_> I'd expect a gem called perlin_noise to define a namespace PerlinNoise and be required as either perlinnoise (ruby convention) or perlin_noise (rails convention)
jwang has joined #ruby
<Spooner> Yes, _I_ would expect that too :)
Tulak has joined #ruby
mohits has quit [Ping timeout: 252 seconds]
<apeiros_> that's why - talk to the author. maybe he makes the change.
<Spooner> Amusingly the other gem project is "perlin-noise" and my project is "ruby-perlin"...
<apeiros_> (unlikely, but still worth a try, and you do all users of perlin_noise a favor)
<Spooner> The problem is that no-one in the world would use perlin_noise (pure ruby) over this new gem (C ext)... :$
<Spooner> I'll ask though. Thanks.
fayimora has quit [Ping timeout: 250 seconds]
<apeiros_> Spooner: except jruby users?
<apeiros_> pure-ruby has its advantages
<Spooner> Oh yes, there is that, but then there isn't ambiguity in the name.
<Mon_Ouie> JRuby supports MRI/YARD's C API (at least partially)
<Spooner> Rubinius doesn't though, does it, Mon_Ouie ?
Niamkik has joined #ruby
Niamkik has quit [Excess Flood]
<Mon_Ouie> It did before JRuby
dkissell_ has joined #ruby
fayimora has joined #ruby
neku has quit [Ping timeout: 252 seconds]
dkissell has quit [Ping timeout: 248 seconds]
dkissell_ is now known as dkissell
rasmusth has quit [Ping timeout: 260 seconds]
Ethan has joined #ruby
plastics has joined #ruby
rasmusth has joined #ruby
tomb___ has quit [Quit: Computer has gone to sleep.]
KarlHungus has quit [Read error: Connection reset by peer]
KarlHungus has joined #ruby
zodiac1111 has quit [Ping timeout: 255 seconds]
Niamkik has joined #ruby
wubino has quit [Quit: Leaving]
<Tasser> apeiros_, strings from erb segfault my ruby
qwerxy has joined #ruby
<apeiros_> Tasser: do you have it down to a simple reproducable case? I'd run it here to check whether it segfaults my ruby too…
<apeiros_> also, did you run it in different rubies?
<Tasser> apeiros_, uhm, nope, just the one here
wallerdev has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
minijupe has joined #ruby
<Tasser> apeiros_, ehm, it kind of depends on the code before and after...
mvangala_home has joined #ruby
kevinbond has joined #ruby
mvangal__ has joined #ruby
<apeiros_> o0
<apeiros_> whoops
<apeiros_> meant: :-S
RainbowDashh is now known as TwilightSparkle
TwilightSparkle is now known as TwilightSparklee
tomb___ has joined #ruby
TwilightSparklee is now known as RainbowDashh
fayimora has joined #ruby
mvangala_home has quit [Ping timeout: 246 seconds]
williamcotton has joined #ruby
jeff_sebring has joined #ruby
<Tasser> only before, that is
shevy2 has joined #ruby
<Tasser> err wait, it works now
<Tasser> looks like I did some ugly circular dependencies
shevy has quit [Ping timeout: 265 seconds]
fayimora has quit [Ping timeout: 245 seconds]
MarcWeber has joined #ruby
ukd1 has joined #ruby
ukd1 is now known as Guest22472
andrewhl has joined #ruby
berkes has quit [Ping timeout: 264 seconds]
nowthatsamatt has joined #ruby
fayimora has joined #ruby
nowthatsamatt has left #ruby [#ruby]
friskd has joined #ruby
subbyyy has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
friskd has quit [Remote host closed the connection]
hemanth has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
manizzle has quit [Remote host closed the connection]
akem has joined #ruby
baroquebobcat has joined #ruby
richo has joined #ruby
richo has quit [Changing host]
richo has joined #ruby
Eldariof-ru has joined #ruby
kaneda_ has joined #ruby
Guest21635 has quit [Ping timeout: 252 seconds]
fayimora has quit [Ping timeout: 264 seconds]
berkes has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
kaneda_ has quit [Ping timeout: 240 seconds]
fbernier has quit [Ping timeout: 245 seconds]
Tryke has left #ruby [#ruby]
apok has quit [Quit: apok]
uris has joined #ruby
fangmai has joined #ruby
wallerdev has quit [Quit: wallerdev]
<fangmai> hey guys, what's the difference between Hash.new() and Hash.new([]). I get that the later is an array...but, what's going on?
magz has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Mon_Ouie> The latter isn't an array, it's a hash
<fangmai> yeah...
<Mon_Ouie> A hash where the default value is an array
<fangmai> aaahhhh.
<fangmai> .default value.
<Mon_Ouie> Incidentally, it will always be the *same* array
<Mon_Ouie> So it you do hash[a] << 1; hash[b] will be [1]
anothervenue has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Which probably isn't what you want
<fangmai> yeah, thanks. Was at the end of the about_hashes koan when I ran into it and didn't understand the behavior. thanks.
remmy444 has quit [Remote host closed the connection]
magz has quit [Quit: Leaving]
grantbdev has joined #ruby
anothervenue has joined #ruby
baroquebobcat has joined #ruby
fbernier has joined #ruby
kaneda has joined #ruby
kaneda is now known as Guest81306
workmad3 has quit [Ping timeout: 252 seconds]
savage- has quit [Remote host closed the connection]
RBV has quit [Quit: leaving]
irakli has quit [Quit: leaving]
austinbv1 has quit [Ping timeout: 245 seconds]
Tricks has joined #ruby
khakimov has joined #ruby
cheese1756 has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 248 seconds]
Targen has quit [Ping timeout: 264 seconds]
blazes816 has joined #ruby
maletor has joined #ruby
Squee-D has joined #ruby
nachtwandler has joined #ruby
jfoley has joined #ruby
wallerdev has joined #ruby
blacktulip has joined #ruby
ringotwo has joined #ruby
Guest81306 has quit [Ping timeout: 255 seconds]
blazes816 has quit [Quit: Leaving]
Targen has joined #ruby
mpereira has quit [Ping timeout: 246 seconds]
ibash has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
Guest81306 has joined #ruby
MarcWeber has quit [Ping timeout: 244 seconds]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
kaneda_ has joined #ruby
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
nyuszika7h has quit [Quit: Reconnecting]
zchr has joined #ruby
zchr has quit [Excess Flood]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
grantbdev has quit [Quit: Leaving]
berkes has quit [Quit: Ex-Chat]
zchr has joined #ruby
zchr has quit [Excess Flood]
slicslak has joined #ruby
zchr has joined #ruby
digitalcakestudi has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
qwerxy has quit [Quit: offski]
zchr has joined #ruby
Guest81306 has quit [Ping timeout: 252 seconds]
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
kaneda__ has joined #ruby
zchr has joined #ruby
zchr has quit [Excess Flood]
kaneda_ has quit [Ping timeout: 265 seconds]
minijupe has quit [Quit: minijupe]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
nyuszika7h has joined #ruby
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
gizmore has joined #ruby
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
<gizmore> Is here someone who maintains the gentoo ebuild for mod_ruby? it seems to fail due to a tiny path error
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
slicslak has quit [Ping timeout: 244 seconds]
zchr has joined #ruby
zchr has quit [Excess Flood]
ringotwo has quit [Remote host closed the connection]
twock has quit [Quit: Lost terminal]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
zchr has joined #ruby
zchr has quit [Excess Flood]
<apeiros_> gizmore: I think ged is the mod_ruby maintainer, maybe he knows
Tulak has quit [Quit: Leaving.]
<gizmore> ged: in case you are reading, instaling mod_ruby 1.3.0 on gentoo fails here, due to an absolute path /1.9.1 - http://pastebin.com/CbyrdXs5 thanks in advanve :)
ringotwo has joined #ruby
ringotwo has quit [Remote host closed the connection]
ph^ has joined #ruby
arkiver has joined #ruby
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
cheese1756 has joined #ruby
RainbowDashh has joined #ruby
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
imami|afk is now known as banseljaj
plastics has quit [Ping timeout: 264 seconds]
<Azure> Re: my "stackleveltoodeep" error from yesterday
yannis has quit [Ping timeout: 265 seconds]
<Azure> I pinpointed the problem...ish.
qwerxy has joined #ruby
<Azure> I was calling a couple of lambdas in a hash, and when I took out the first call/lambda, it errored out on the second call/lambda.
ringotwo has joined #ruby
slicslak has joined #ruby
RainbowDashh has quit [Ping timeout: 246 seconds]
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
andrewhl has quit [Ping timeout: 264 seconds]
RainbowDashh has joined #ruby
resure has joined #ruby
qwerxy has quit [Client Quit]
nachtwandler has quit [Ping timeout: 246 seconds]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
<shevy2> the classical lambda bomb
shevy2 is now known as shevy
Chryson has joined #ruby
resure has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
burgestrand has quit [Ping timeout: 244 seconds]
Eldariof-ru has quit []
vitoravelino is now known as vitoravelino`afk
jgrevich has joined #ruby
AlbireoX`Laptop has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
Eldariof-ru has joined #ruby
fbernier has quit [Ping timeout: 246 seconds]
vitoravelino`afk is now known as vitoravelino
mvanga___ has joined #ruby
pooya72 has joined #ruby
ChampS666 has quit [Ping timeout: 265 seconds]
pooya72_ has joined #ruby
<pooya72_> hi everybody. Does anyone know if Shoes supports right to left text formatting?
<pooya72_> As in Arabic/Hebrew
mvangal__ has quit [Ping timeout: 244 seconds]
ianbrandt has quit [Quit: ianbrandt]
pooya72 has quit [Ping timeout: 252 seconds]
pooya72_ is now known as pooya72
<offby1> Azure: I was wondering why you were using lambdas and "call".
ph^ has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
<offby1> that new pointy-arrow syntax makes it look like Perl 6
<Azure> That's what I was using in some earlier code, and I decided to reuse it.
<pooya72> Well, I guess another question. What's an easy to use GUI other than shoes?
<offby1> slippers?
olrrai has joined #ruby
<pooya72> wacka wacka wacka!
<offby1> somehow I doubt I'm the first to make that "joke"
<offby1> call it a crazy hunch
graspee has left #ruby [#ruby]
Squee-D has quit [Quit: The computer fell asleep]
<Azure> Converting them to proper methods doesn't help. Hm.
perryh_away is now known as perryh
<pooya72> offby1: try googling for ruby shoes. it's not a fun experience.
digitalcakestudi has quit [Ping timeout: 244 seconds]
<offby1> already did; found the relevant site instantly ... wasn't painful at all
<offby1> of course I ignored all the links _after_ the relevant site.
Markvilla has quit [Quit: Markvilla]
banghouse has joined #ruby
havenn has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<shevy> pooya72 ruby-gtk in some ways
<shevy> pooya72 shoes died when _why quitted
<pooya72> shevy: I thought other maintainers picked it up?
<shevy> sure
<shevy> I couldn't even get shoes to work
<pooya72> shevy: hence the whole hacety-hack thing
<shevy> it's like an emotionless copy paste
<shevy> I think it would have been better to just leave it the way how _why left it
<shevy> pooya72 ruby-qt works also partially. and ruby-tk, but it's ugly
Markvilla has joined #ruby
<pooya72> shevy: really? Worked fine for me so far.
khakimov has joined #ruby
<pooya72> shevy: yeah, I was trying to teach some kids programming. Shoes was very easy. But english isn't their first language.
<offby1> I suspect that the average rubyiest isn't much interested in writing old-skool GUI apps, and hence the tools are inferior.
brianpWins has quit [Quit: brianpWins]
<pooya72> maybe. I just tried green_shoes. The utf-8 fonts work great, but I guess it's based on GTK+ and so it's but ugly on the mac.
arkiver has quit [Quit: Leaving]
Markvilla has quit [Client Quit]
slicslak has joined #ruby
mohits has joined #ruby
<pooya72> offby1: or maybe most people that want to write serious apps just go native.
<pooya72> serious gui apps.
<offby1> _if_ I wanted to write a serious GUI app, I'd spend a fair amount of time looking for something in ruby/perl/python that would save me from having to go native.
<offby1> that is, if the platform wasn't simply iOS.
fayimora has joined #ruby
fayimora has quit [Client Quit]
tk___ has quit [Quit: ばいばい]
xbigdanx has joined #ruby
<pooya72> offby1: I heard Qt is the best cross platform. There is a port of MacRuby for the iOS.
<pooya72> offby1: rubymotion http://www.rubymotion.com/
<offby1> that sounds familiar.
<offby1> happily I don't deal with GUIs. They make my brain hurt.
<pooya72> offby1: haha.
chrxn has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<pooya72> noob question. I load 'samplefile.rb' but i can't require samplefile. Is there something wrong with my ruby install? version 1.9.3
<xbigdanx> what do you mean you can't require? do you get an error?
kevinbond has quit [Quit: kevinbond]
<pooya72> xbigdanx: yes. I guess it's looking in different place. load works fine.
slicslak has quit [Ping timeout: 265 seconds]
billiamii has quit [Quit: Leaving]
<xbigdanx> have you tried using "require_relative"?
arkiver has joined #ruby
igotnolegs has joined #ruby
* Azure rethinks his original plans.
<pooya72> LoadError: cannot infer basepath
<pooya72> that was for require_relative
Markvilla has joined #ruby
<pooya72> That was when i tried in irb. But when I tried it with ruby sampleapp.rb it worked fine.
<pooya72> so why do I need require_relative instead of just require?
<offby1> probably because the current directory isn't on the load path
CheeToS has joined #ruby
perryh is now known as perryh_away
xbigdanx has quit [Quit: xbigdanx]
<pooya72> so this fixed it $LOAD_PATH.unshift(File.dirname(__FILE__))
fbernier has joined #ruby
<pooya72> thanks guys
<offby1> *nod
Markvilla has quit [Quit: Markvilla]
itz has joined #ruby
ringotwo has quit [Remote host closed the connection]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
<pooya72> just out of curiosity, anyone hear try out haskell?
fangmai has quit [Quit: Page closed]
Guest22472 has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
<davidcelis> no, never heard of "try out haskell"
<davidcelis> that a book? tutorial?
ukd1 is now known as Guest68659
kevinbond has joined #ruby
tjko has joined #ruby
xaq has joined #ruby
Markvilla has joined #ruby
cirwin has joined #ruby
jigfox has joined #ruby
kevinbond has quit [Client Quit]
sp_otaku has joined #ruby
xaq has quit [Remote host closed the connection]
samuelj has joined #ruby
ringotwo has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
<samuelj> Hey guys, getting a really strange error when I've tried to run my sinatra app using datamapper
ibash has quit [Quit: ibash]
<samuelj> dm-validations.rb:33: warning: already initialized constant OrderedHash
Markvilla has quit [Client Quit]
<offby1> I've never used sinatra, but I wonder if somehow that module is getting loaded twice
<itz> if I wanted to read some nice well written ruby what would be a good example?
RainbowDashh has joined #ruby
Guest68659 has quit [Ping timeout: 240 seconds]
<pooya72> davidcells: haha. yeah I ment did has anyone here tried out haskell.
<pooya72> davidcells: did has! typing!
mohits has quit [Read error: Connection reset by peer]
<pooya72> LOUD NOISES!
chrxn has quit [Quit: Computer has gone to sleep.]
mohits has joined #ruby
instahub has joined #ruby
dankest has joined #ruby
davidcelis has quit [Ping timeout: 255 seconds]
instahub has left #ruby [#ruby]
ukd1 has joined #ruby
ukd1 is now known as Guest23131
ringotwo has quit [Read error: Connection reset by peer]
rbanffy has quit [Ping timeout: 252 seconds]
ananthakumaran1 has joined #ruby
richo_ has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
richo has quit [Ping timeout: 260 seconds]
oscardelben has joined #ruby
jgrevich has quit [Quit: jgrevich]
<tjko> haskell is sweet -- a bit of a challenge to pick up though
marcoshack has joined #ruby
locriani_ has quit [Ping timeout: 252 seconds]
Chryson has quit [Quit: Leaving]
arkiver has quit [Ping timeout: 250 seconds]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
uris has quit [Ping timeout: 255 seconds]
jigfox has quit [Ping timeout: 248 seconds]
maahes has quit [Ping timeout: 240 seconds]
chson has joined #ruby
banseljaj is now known as imami|afk
jimeh has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
rdg has joined #ruby
axisys has quit [Quit: Lost terminal]
baroquebobcat has quit [Client Quit]
philips has quit [Excess Flood]
philips has joined #ruby
arkiver has joined #ruby
Eldariof-ru has quit []
khakimov has quit [Quit: Computer has gone to sleep.]
uris has joined #ruby
<offby1> itz: an excellent question :) I'd be mildly curious to learn what you find out.
<offby1> I cannot think offhand of _any_ real code that's clean enough that I'd recommend it for reading
wallerdev has quit [Quit: wallerdev]
banghouse has quit [Remote host closed the connection]
jeff_sebring has quit [Quit: Leaving]
<itz> :)
jeff_sebring has joined #ruby
rdg has quit [Quit: ttfn]
olrrai has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
workmad3 has joined #ruby
Kesavoka has joined #ruby
arkiver has quit [Quit: Leaving]
heftig has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
jimeh has joined #ruby
tjko has quit [Quit: WeeChat 0.3.8]
Kesava has quit [Ping timeout: 265 seconds]
<itz> thanks!
chrxn has joined #ruby
<itz> BTW is there anyway of getting "ri" to display a Gem's README (the one which is index.html when "gem server" is ran)?
maahes has joined #ruby
mikeycgto has quit [Ping timeout: 246 seconds]
<apeiros_> itz: not that I knew. but I think it's included in `gem server`
Markvilla has joined #ruby
gizmore has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
ipoval has joined #ruby
wobr has joined #ruby
marcoshack has quit [Remote host closed the connection]
dr0p has joined #ruby
the-newsman has quit [Ping timeout: 265 seconds]
rbanffy has joined #ruby
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
suraj_ has joined #ruby
uris has quit [Quit: leaving]
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
AlbireoX`Laptop has joined #ruby
baroquebobcat has joined #ruby
marcoshack has joined #ruby
whitedawg has quit [Ping timeout: 246 seconds]
noesis82 has quit [Quit: leaving]
suraj_ has quit [Ping timeout: 246 seconds]
suraj_ has joined #ruby
suraj_ is now known as whitedawg
rbanffy has quit [Ping timeout: 246 seconds]
arkiver has joined #ruby
mohits has quit [Ping timeout: 264 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
timonv_ has quit [Remote host closed the connection]
jd__ has joined #ruby
xubuntu5 has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
ryanair has joined #ruby
blazes816 has joined #ruby
<samuelj> Anyone got any suggestion for how to fix this error? Just started using datamapper and having a ton of issues!
<samuelj> lazy symbol binding failed: Symbol not found: _mysql_init
<samuelj> Referenced from: /Users/sam/.rvm/gems/ruby-1.9.3-p125/gems/do_mysql-0.10.8/lib/do_mysql/do_mysql.bundle
<samuelj> Expected in: flat namespace
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
<offby1> samuelj: I am only guessing, but: perhaps you don't have the mysql libraries installed
mnaser has quit [Client Quit]
rbanffy has joined #ruby
kenichi has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
oponder has joined #ruby
EzeQL has joined #ruby
cakehero has quit [Quit: Leaving...]
<ryanair> I've worked with the socksify gem before to send HTTP connections through a socks proxy. Now I want to send HTTP connections through a socks proxy and then through an HTTP proxy.
rbanffy has quit [Client Quit]
<ryanair> I think I need to change the request generated by Net::HTTP::Get
caveat-_ has quit [Ping timeout: 260 seconds]
<ryanair> but the documentation seems lacking
caveat- has joined #ruby
whitedawg has quit [Quit: Leaving]
chrxn has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chrxn has joined #ruby
<ryanair> any ideas?
jeff_sebring has joined #ruby
hadees has joined #ruby
pooya72 has quit [Quit: pooya72]
Guest23131 has quit [Ping timeout: 246 seconds]
bigkevmcd has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
ukd1 is now known as Guest49255
<samuelj> offby1 blazes816 I just followed the stack overflow instructions, no luck! Still getting the strange error and it installed fine :s
Markvilla has quit [Quit: Markvilla]
cakehero has joined #ruby
_axx has quit [Remote host closed the connection]
wobr has quit [Quit: Leaving.]
nachtwandler has joined #ruby
myth17 has joined #ruby
<myth17> Can anyone explain this weird behavior in ruby/rails : http://stackoverflow.com/questions/11277454/weird-ruby-behavior-in-datetime-to-time-conversion
<myth17> I am totally baffled
oscardelben has quit [Quit: oscardelben]
sepp2k has joined #ruby
Vendethiel has joined #ruby
siefca has joined #ruby
<fowl> myth17, it doesnt make sense, like most things in rails. there is a council of wizards in #rubyonrails that deal with this sort of black magic
<siefca> hi
<siefca> is there a way to dynamically call a method (using its name) but to ensure that method_missing will be called if that method doesn't exists?
<siefca> using method() raises NameError and I would like to avoid eval
<samuelj> is there a way to purge rubygems?
graft has quit [Ping timeout: 272 seconds]
<siefca> is the only way catching NameError and manually calling method_missing?
<fowl> siefca, use send
<siefca> fowl: omg, how could I forget it, it's 5 lines above in the code :D
<siefca> fowl: THX!
graft has joined #ruby
wargasm has joined #ruby
wobr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
savage- has joined #ruby
khakimov has joined #ruby
myth17 has quit [Changing host]
myth17 has joined #ruby
mdhopkins has quit [Quit: mdhopkins]
pureluck has quit [Ping timeout: 265 seconds]
cryptfu has quit [Quit: Leaving]
dbgster has quit [Quit: dbgster]
ph^ has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
pureluck has joined #ruby
ph^ has quit [Remote host closed the connection]
neersighted is now known as neersighted|AFK
CheeToS has quit [Ping timeout: 248 seconds]
RainbowDashh has joined #ruby
savage- has quit [Remote host closed the connection]
Kesavoka has quit [Read error: Connection reset by peer]
Kesavoka has joined #ruby
Ethan has quit [Ping timeout: 264 seconds]
saschagehlich has joined #ruby
pureluck has quit [Ping timeout: 264 seconds]
pureluck has joined #ruby
fbernier has quit [Ping timeout: 264 seconds]
qwerxy has joined #ruby
Guest49255 has quit [Ping timeout: 265 seconds]
pooya72 has joined #ruby
kpshek has quit [Ping timeout: 244 seconds]
Dan-_ has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
VegetableSpoon has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
chrisg has quit [Ping timeout: 272 seconds]
heftig has quit [Quit: leaving]
kevinbond has joined #ruby
dankest has quit [Ping timeout: 246 seconds]
virunga has quit [Read error: Connection reset by peer]
virunga_ has joined #ruby
aces23up has quit []
kevinbond has quit [Client Quit]
Hanmac has quit [Ping timeout: 255 seconds]
heftig has joined #ruby
ringotwo has joined #ruby
chrisg has joined #ruby
chrisg has quit [Changing host]
chrisg has joined #ruby
digitalcakestudi has joined #ruby
blacktulip has quit [Remote host closed the connection]
sp_otaku has quit [Read error: Connection reset by peer]
neersighted|AFK is now known as neersighted
wobr has quit [Quit: Leaving.]
kevinbond has joined #ruby
monkegjinni has quit [Remote host closed the connection]
pureluck has quit [Ping timeout: 244 seconds]
arkiver has quit [Quit: Leaving]
arkiver has joined #ruby
bier has joined #ruby
LyonJT has joined #ruby
sepp2k has quit [Remote host closed the connection]
arkiver has quit [Client Quit]
mvanga___ has quit [Ping timeout: 250 seconds]
MarcWeber has joined #ruby
fahadsadah has quit [Quit: ZNC - http://znc.sourceforge.net]
pureluck has joined #ruby
QaDeS has quit [Quit: Ex-Chat]
havenn has quit [Remote host closed the connection]
wpaulson has joined #ruby
dr0p has quit [Quit: Wychodzi]
balki_ is now known as balki
rippa has quit [Ping timeout: 265 seconds]
cousine has joined #ruby
cousine has quit [Remote host closed the connection]
havenn has joined #ruby
MarcWebe1 has joined #ruby
palmfrond has joined #ruby
<palmfrond> re
<palmfrond> i'm making a portable C library named "Number Machine". i think i've decided to prefix my library's public api with "numbermachine_" and prefix the private external api as "nm_". RFC? (it's a long public api prefix, but it'll avoid conflicts)
<palmfrond> i bother asking in here because i'll layer a ruby implementation on top of it when i'm done and i want my conventions to translate well
MarcWeber has quit [Ping timeout: 245 seconds]
myth17 has quit [Quit: Leaving]
kjellski has joined #ruby
kevinbond has quit [Quit: kevinbond]
pooya72 has quit [Quit: pooya72]
MarcWebe1 has quit [Ping timeout: 246 seconds]
<cirwin> palmfrond: I'd invert the convention — having a long prefix gets very tiring. In ruby you'll put all your functions into a module/class (probably called NumberMachine), so they won't have any prefix directly
wpaulson has quit [Ping timeout: 245 seconds]
kjellski has quit [Client Quit]
<palmfrond> cirwin, that's how i initially had it, but "nm_" being public would be begging for collision no?
quest88 has quit [Quit: quest88]
<cirwin> objective-C libraries use two letter prefixes, and it's pretty rare to get conflicts
<cirwin> for any given other library there's alike a 1/676 chance it'll have the same prefix as you
wpaulson has joined #ruby
<cirwin> and probably a smaller chance that it'll have functions with the same name
qwerxy has quit [Quit: offski]
<heftig> assuming prefixes are evenly distributed
<palmfrond> lol
digitalcakestudi has quit [Ping timeout: 246 seconds]
<palmfrond> and anyway, this is C, not obj-C
<palmfrond> but i'll make a objc framework too later on
<cirwin> palmfrond: they have the same namespacing problems
kjellski has joined #ruby
<palmfrond> yea
pooya72 has joined #ruby
<cirwin> and I'd guess the typical C program uses many fewer libraries than the typical objective-C one
havenn has quit [Remote host closed the connection]
qwerxy has joined #ruby
<palmfrond> true
<palmfrond> hmm
jeff_sebring has quit [Quit: Leaving]
td123 has joined #ruby
BeLucid has joined #ruby
balki_ has joined #ruby
Occult has joined #ruby
balki has quit [Read error: Operation timed out]
<offby1> What is the point of rspec's "let" form? Can I not just create instance variables instead? See https://gist.github.com/3025697 for an example
kenichi has quit [Remote host closed the connection]
havenn has joined #ruby
Niamkik has quit [Quit: leaving]
nachtwandler has quit [Quit: leaving]
<apeiros_> offby1: rspecs main purpose is to invent yet another language for you to learn before you can actually test your software
<offby1> Yes, I realize that it provides laziness
<apeiros_> isn't that GREAT?
<offby1> apeiros_: I suspected as much :)
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
Hanmac has joined #ruby
jianxioy has quit [Quit: leaving]
jamesaxl has joined #ruby
fbernier has joined #ruby
<samuelj> Hey everyone, How come my local gems list is really small, but after running bundle install the list is huge?
palmfrond has left #ruby ["palmfrond waves good bye"]
<samuelj> There seems to be a discrepancy
gmci has quit [Ping timeout: 240 seconds]
<offby1> in rails, at least, there are _two_ files that list gems: a short one which you edit by hand, and in which you mention just the gems you know that you want; and a big one that's automatically generated, and includes every single gem (and their versions), including all the dependencies. Maybe you're mixing the two files up?
<yxhuvud> you can tell bundler to install locally in the directory you are (or somewhere else), but generally bundler does a normal gem installation
advorak has quit [Quit: This computer has gone to sleep]
<samuelj> I'm not working in rails. I've just deleted Gemfile.lock
tfitts has quit [Ping timeout: 245 seconds]
gmci has joined #ruby
wpaulson has quit [Ping timeout: 250 seconds]
wpaulson has joined #ruby
<samuelj> and run bundle install which has reinstalled my dependencies
<apeiros_> rails is unrelated to that
LyonJT has quit [Quit: Leaving...]
emmanuelux has joined #ruby
advorak has joined #ruby
havenn has quit [Remote host closed the connection]
<samuelj> Ok, so I've made a bit of a dunce mistake - there's a diff between gem list local and gem list --local
<samuelj> ha
advorak has quit [Remote host closed the connection]
<shevy> bundle likes to install everything
<shevy> Hanmac is a big fan of bundler
gmci has quit [Ping timeout: 250 seconds]
wpaulson has quit [Ping timeout: 264 seconds]
twock has joined #ruby
wpaulson has joined #ruby
jethrogb has joined #ruby
<jethrogb> is there a short way to pass a method as a block? i feel ruby should be able to do this
<jethrogb> e.g. shorten this:
<jethrogb> [1,2,3].each &method(:print)
fayimora has joined #ruby
MarcWeber has joined #ruby
<jethrogb> or [1,2,3].each { |i| print i }
<jethrogb> i want to type something like [1,2,3].each &print # <- this does NOT work
KindOne has quit [Changing host]
KindOne has joined #ruby
<offby1> jethrogb: I've wondered that too
JustinCampbell has joined #ruby
<apeiros_> puts [1,2,3]
<offby1> ruby's distinction between methods and other kinds of callable things makes me vaguely uneasy
advorak has joined #ruby
<apeiros_> though, not exactly the same
<offby1> not at all
<apeiros_> since print like that will print "123"
saschagehlich has quit [Read error: Connection timed out]
<offby1> that makes one call, and passes an array; jethrogb wants to make many calls
<apeiros_> whereas puts will print "1\n2\n3\n"
<jethrogb> apeiros_: yes, thanks, but this is of course an example and i'm not actually trying to print 123
saschagehlich has joined #ruby
<apeiros_> well then - no, there isn't.
<apeiros_> you can make one.
<apeiros_> also there's some library to facilitate chains in blocks
<apeiros_> anyway, ruby doesn't offer any syntactical way to shorten that.
<jethrogb> ok then
td123 has quit [Quit: WeeChat 0.3.8]
MarcWeber has quit [Ping timeout: 250 seconds]
marcoshack has quit [Remote host closed the connection]
MarcWeber has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
CheeToS has joined #ruby
fayimora has joined #ruby
tfitts has joined #ruby
sailias has joined #ruby
Ethan has joined #ruby
plastics has joined #ruby
kirun has quit [Quit: Client exiting]
virunga_ has quit [Read error: Connection reset by peer]
MarcWeber has quit [Ping timeout: 265 seconds]
MarcWebe1 has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
ebanoid has quit []
apeiros_ has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 265 seconds]
savage- has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
gregorg_taf has joined #ruby
tfitts has quit [Ping timeout: 265 seconds]
zigidias has joined #ruby
vlad_starkov has joined #ruby
pooya72 has quit [Quit: pooya72]
ringotwo has quit [Remote host closed the connection]
khakimov has joined #ruby
advorak has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 264 seconds]
tfitts has joined #ruby
dbck has quit [Quit: Bye!]
TheFuzzball has quit [Quit: Leaving...]
bashdy has joined #ruby
ericcoleman has joined #ruby
Risk has joined #ruby
Risk has left #ruby [#ruby]
<wargasm> test
jethrogb has left #ruby [#ruby]
umttumt has joined #ruby
plastics has quit [Ping timeout: 240 seconds]
jfoley has quit [Quit: jfoley]
<offby1> exam
baroquebobcat has quit [Quit: baroquebobcat]
Foxandxss has joined #ruby
<deryl> failed
chico_chicote has joined #ruby
qwerxy has quit [Quit: offski]
Spooner_ has joined #ruby
Spooner has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
Asher has quit [Quit: Leaving.]
<offby1> derailed
Spooner_ is now known as Spooner
indeterminate has quit [Ping timeout: 265 seconds]
silentpost has quit [Ping timeout: 255 seconds]
Asher has joined #ruby
<shevy> passed
friskd has joined #ruby
GuidovanPossum has joined #ruby
chrisg has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Ping timeout: 246 seconds]
umttumt has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
Bosma has joined #ruby
chrisg has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
subbyyy has joined #ruby
ryanair has quit [Quit: Leaving]
heftig has quit [Quit: leaving]
sailias has quit [Quit: Leaving.]
heftig has joined #ruby
savage- has quit [Remote host closed the connection]
seanstickle has joined #ruby
digitalcakestudi has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
twock has quit [Quit: Lost terminal]
lambdan has quit [Ping timeout: 265 seconds]
<novochar> how do you search an array for a string?
yxhuvud has quit [Ping timeout: 255 seconds]
<novochar> i'm attempting to search a model for an instance of a url
<Asher> array.include?( string )
<novochar> nice
<Asher> for an exact string match
<novochar> current_user.list.items.all.find(params[:link]) didn't do what i expected it to do, it returned all the items from the user's list
baroquebobcat has joined #ruby
gmci has joined #ruby
slicslak has joined #ruby
gtuckerkellogg has joined #ruby
wpaulson has joined #ruby
tfittsy has joined #ruby
lambdan has joined #ruby
mpereira has joined #ruby
<novochar> current_user.list.items.all.include?("name")
<novochar> It returns false
<offby1> this might be more of a rails question
<novochar> okay, is #rubyonrails or #rails preferred?
<offby1> I know #rubyonrails exists; I don't know if #rails does
slicslak has quit [Ping timeout: 244 seconds]
<offby1> ugh. They both exist, and are disjoint.
balki_ is now known as balki
GhettoCode has joined #ruby
tfitts has quit [Ping timeout: 255 seconds]
burgestrand has joined #ruby
novochar has quit [Changing host]
novochar has joined #ruby
VampireTeddyBear has joined #ruby
umttumt has joined #ruby
<VampireTeddyBear> только если вы моете его первым!
raz has joined #ruby
<VampireTeddyBear> Я говорю о киску
<raz> is there a way to append one Proc to another, so they appear as one?
<heftig> raz: create a third proc that first calls one, then the other
<VampireTeddyBear> Я надеюсь, что вы изнасиловали пожарный гидрант
<VampireTeddyBear> nobody speak russian
<raz> VampireTeddyBear: http://www.laserturtle.com/xv1/
<VampireTeddyBear> wow
<VampireTeddyBear> that certainly was
<VampireTeddyBear> well
<VampireTeddyBear> it was wasnt it
<shevy> wow
<shevy> a vampire teddy bear
ringotwo has quit [Remote host closed the connection]
<shevy> what is this thing
oponder has quit [Remote host closed the connection]
Shrink has quit [Ping timeout: 260 seconds]
<VampireTeddyBear> my house is haunted
khakimov has quit [Quit: Computer has gone to sleep.]
<VampireTeddyBear> the ghost smells like blueberry bagels...
croz has quit [Ping timeout: 248 seconds]