apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
<ruzu> !network
<DannIsHere> Network: irc.freenode.net
<DannIsHere> Channel: #ruby
qubit has joined #ruby
<apeiros_> ruzu: please test your bot in your own channel or pm
GlenK has quit [Quit: leaving]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
The_8472` has quit []
miskander has quit [Quit: miskander]
workmad3 has quit [Ping timeout: 265 seconds]
lenovodroid has quit [Ping timeout: 248 seconds]
miskander has joined #ruby
nomenkun has quit [Remote host closed the connection]
rmillerx has joined #ruby
rmillerx has quit [Client Quit]
Xeago has quit [Ping timeout: 265 seconds]
Goles has joined #ruby
maycon_ has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
Jake232 has joined #ruby
<Dann2> It is MY bot
<Dann2> And sure, why not :)
DannIsHere has quit [Read error: Connection reset by peer]
Umren has quit [Read error: Connection reset by peer]
<Dann2> join #botwise then
breakingthings has quit []
<shevy> hmm guys, anyone got an easy idea
<shevy> when I run GNU autoconfigure from a program, I'd like to run this via ruby
<Dann2> loop do
<shevy> I want to colourize the output based on some rules, for .gsub
Dann2 has quit [Remote host closed the connection]
Dann1 has joined #ruby
<shevy> hmm
<shevy> the problem is, result = `./configure` would wait
<shevy> until the configure has finished
Dann1 has quit [Remote host closed the connection]
<shevy> and then the variable result will be one huge string
Dann1 has joined #ruby
<shevy> I could colourize that very string, of course, but I dont want to wait for configure to have finished, before I start colourizing it
<shevy> If I would use this:
<shevy> result = system './configure'
<shevy> then I get line-by-line results, but I have no idea how I should colourize that (i.e. insert ANSII escape sequences into that string)
<Dann1> what result exactly do you receive?
<shevy> Dann1 the string has things like:
Russell^^_ has quit [Quit: Russell^^_]
<shevy> "checking for a BSD-compatible install... /usr/bin/install -c\n"
<shevy> "checking whether build environment is sane...\n"
<Dann1> Ah
<Dann1> In separated strings?
<shevy> mostly I just want red colours for fail/warnings, and some fancy colours for a few other keywords
<shevy> Dann1, well it is one long string containing the \n
<shevy> the various newlines
<Dann1> damn
ChampS666 has quit [Ping timeout: 276 seconds]
stevechiagozie has joined #ruby
<Dann1> wait
<Dann1> if that is a one string
<Dann1> and is outputted at the end
<Dann1> then it is likely that the string is only accessible at the end
punkrawkR^Home has quit [Read error: Connection reset by peer]
<shevy> hehe
tem has joined #ruby
<tem> I have done something to my ruby install, and I can't figure out how or what I've done.
lewis1711 has joined #ruby
horofox has quit [Quit: horofox]
<Dann1> reinstall maybe?
<Dann1> :P
RagingDave has quit [Quit: Ex-Chat]
<lewis1711> I don't get it modules. is every method insde of them supposed to be defined "def self.method_name..." in order to make them usable?
<tem> 'suddenly' when I try to use rails command line things, I get this odd error message "You're running a version of ruby with no Readline support"
<shevy> tem and what problems do you face
Driscoll has joined #ruby
<shevy> tem then you have a ruby without readline support
<shevy> let me guess - you use debian?
<havenn> tem: what OS/distro?
<Dann1> tem then update
<tem> ubuntu
<tem> it was working an hour ago
<shevy> yes, this is the same
<tem> and I don't /think/ I've changed anything
<shevy> they love to annoy users
<tem> doing gem install 'rb-readline' did nothing
<tem> also doing rvm pkg install readline
<shevy> there is an apt-get way to install the ruby addons surely
<tem> and then rvm reinstall all --force
R0tat0r has quit [Quit: Verlassend]
<shevy> aha, so you also use rvm
<tem> also did nothing
<shevy> then you aren't in ubuntu-country anymore
pskosinski has quit [Quit: Learn Life's Little Lessons]
<shevy> my guess is that you lacked the readline dev package
<tem> but adding gem 'rb-readline' to my gemfile fixed it
<havenn> tem: libreadline-dev
<shevy> if you install rvm, it can only compile the readline bindings if the header files (in libreadline-dev) were available
<tem> so I should apt-get libreadline-dev?
lewis1711 has left #ruby [#ruby]
<havenn> tem: check out chruby list of required packages for Ubuntu (or type rvm requirements)
<havenn> tem: yes
<tem> any idea why this would have changed on me?
<mpfundstein> maybe u got hacked
<tem> it's a vm
<shevy> tem depends which rubies you used
<shevy> ubuntu main ruby should be at /usr/bin/ruby*
pskosinski has joined #ruby
<shevy> RVM installs into your $HOME dir somewhere into .rvm there
<Dann1> lack of grammar and the word 'hack' or any variation of it in the same sentence can bring no good.
<havenn> tem: What do you get with?: rvm current
<tem> ruby-1.9.3-p362
mockra has quit [Remote host closed the connection]
<havenn> tem: oh, i forgot to link the ubuntu requirements - here they are (though rvm requirements should say the same thing): https://github.com/postmodern/chruby/wiki/MRI
<ddd> apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
<havenn> ^
<ddd> for jruby: curl g++ openjdk-6-jre-headless for jruby-head: ant openjdk-6-jdk
ryanf has quit [Read error: Connection reset by peer]
<ddd> add those that is
<tem> but why would this change?
<havenn> openjdk-7-jdk
<tem> I had ruby installed and was having no problems
<ddd> havenn: ehh, 6 works too
<havenn> ddd: 7 is a bigger number :P
<ddd> tem: not a clue
<ddd> havenn: lol
f0ster has quit [Read error: Connection reset by peer]
<headius> 7 is one better than 6!!!
wroathe_ has quit [Ping timeout: 264 seconds]
<ddd> NO U!
<ddd> ;)
<ddd> how was the holidays, headius?
<headius> Not bad, except for the last day or two of being sick :-P
g0bl1n has quit [Quit: Ex-Chat]
<ddd> yick :/
Coeus has joined #ruby
hamfz_ has quit [Ping timeout: 260 seconds]
breakingthings has joined #ruby
h4mz1d has quit [Ping timeout: 272 seconds]
jaywastaken has quit [Remote host closed the connection]
griffindy has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
huoxito has quit [Ping timeout: 272 seconds]
asteve has quit [Quit: Computer has gone to sleep.]
<shevy> kick
<shevy> tem nah, you must have done something
zeade has quit [Quit: Leaving.]
<shevy> perhaps you used some other rvm command before
<Dann1> So I'm building an IRC bot in ruby, and I have the following commands so far:
<Dann1> !network, !bacon, !muffin
<tem> the only thing I can figure is I rebooted the vm
<tem> and something odd must have happened then
Dann2 has joined #ruby
asteve has joined #ruby
asteve has quit [Changing host]
asteve has joined #ruby
<apeiros_> howdy headius
Pip has quit [Ping timeout: 264 seconds]
<headius> hi there
<apeiros_> got jruby to run on the ds411 NAS :)
<apeiros_> with the embedded jvm, as you suggested
<headius> hah nice!
<apeiros_> invoking it is a bit fiddly at the moment, though :-/
<apeiros_> (I have to use the .jar and invoke it via /some/longish/path/java -jar path/to/jruby.jar)
<apeiros_> will probably take a look at it the next week-end :)
Dann1 has quit [Ping timeout: 255 seconds]
<headius> yeah, sounds about right
<apeiros_> oh, but if you have some tips regarding performance, that'd be welcome
<apeiros_> startup time of jruby is ~20s
<apeiros_> and execution is about ~10% slower than a MRI 1.9.1, I believe it should be able to outperform that…
zeade has joined #ruby
zeade has left #ruby [#ruby]
<headius> what hardware is that?
jds has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
dlsa has joined #ruby
jds has quit [Ping timeout: 252 seconds]
mpfundstein has quit [Ping timeout: 252 seconds]
<dlsa> I am trying to translate active record
landho has joined #ruby
<breakingthings> dlsa sounds painful.
<dlsa> I have a hierarchy of model objects
<dlsa> I can supply translations for the attributes of the base class, but in the subclass I want a different translation
dv_ has quit [Ping timeout: 245 seconds]
<dlsa> can it be done ?
clooth has quit [Quit: clooth]
andrewhl has quit [Remote host closed the connection]
mockra has joined #ruby
maletor has joined #ruby
Driscoll has quit [Quit: Lost terminal]
benlieb has joined #ruby
centipedefarmer has joined #ruby
ryanf has joined #ruby
nomenkun has joined #ruby
_nitti has joined #ruby
dv_ has joined #ruby
maletor has quit [Client Quit]
pmros has quit [Ping timeout: 272 seconds]
_nitti_ has joined #ruby
medik has quit [Quit: Leaving]
asteve has quit [Quit: Computer has gone to sleep.]
centipedefarmer has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 272 seconds]
graft has joined #ruby
<tem> I have made a mess.
<tem> about to nuke this whole vm and start over
tommyvyo has quit [Quit: Computer has gone to sleep.]
pskosinski has left #ruby ["Learn Life's Little Lessons"]
whitedawg has joined #ruby
<apeiros_> headius: it's an 1.6GHz ARMv5
<apeiros_> with 512MB RAM (atm about 450MB free RAM)
nomenkun has quit [Ping timeout: 256 seconds]
speakingcode-wor has quit [Ping timeout: 260 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros_> >> Marvell Kirkwood mv6282 1.6Ghz ARM (Marvell ARMADA 300); 16-bit@DDR3, 512MB of RAM
<eval-in> apeiros_: Output: "/tmp/execpad-47968d23cd10/source-47968d23cd10:1: syntax error, unexpected tCONSTANT, expecting $end\nMarvell Kirkwood mv6282 1.6Ghz ARM (Marvell ARMADA 300)\t; 1...\n ^\n" (http://eval.in/6020)
<apeiros_> aw eval-in, shut up :-p
quest88 has joined #ruby
bigmac has quit [Remote host closed the connection]
sent-hil has joined #ruby
Xeago has joined #ruby
sent-hil is now known as Guest36525
<breakingthings> >> puts "ur mom"
<eval-in> breakingthings: Output: "ur mom\n" (http://eval.in/6021)
Norrin has quit [Ping timeout: 260 seconds]
centipedefarmer has joined #ruby
Norrin has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
busybox42 has joined #ruby
Dann2 has quit [Quit: Dann2]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
matthewm has joined #ruby
matthewm has quit [Client Quit]
miskander has quit [Quit: miskander]
samphippen has quit [Quit: Computer has gone to sleep.]
xyzodiac has joined #ruby
<breakingthings> so… what happens when a gem dies
<breakingthings> and it just sits there taking up a perfectly good name
Guest36525 has quit [Remote host closed the connection]
davidokner has left #ruby [#ruby]
elico has quit [Ping timeout: 255 seconds]
<tem> as a unix noob, what does the 'source /home/user/.rvm/scripts/rvm' command do?
<tem> also, do I need to put it in my .bash_profile or is just running it the once good enough?
_nitti_ has quit [Remote host closed the connection]
<tem> oh, it looks like rvm put something in my bash_profile already
<Kovensky> "source" is a bashism to "interpret the commands in <<file>> as if they were in this file"
<RubyPanther> tem: it runs the code in the current shell
<RubyPanther> whereas normally you would run code in a sub-shell
whitedawg has quit [Quit: Leaving.]
<tem> and that script loads rvm into the current shell
<RubyPanther> right
<tem> so running it in a subshell would do you no good
<tem> thannks!
<ddd> unless you're also executing something in that subshell as well
<tem> *nod*
<ddd> and need access to rvm in that subshell (but don't wish to load it in the parent shell)
h4mz1d has joined #ruby
hamfz_ has joined #ruby
Kuifje has quit [Ping timeout: 255 seconds]
mockra has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
emocakes has quit [Quit: emocakes]
main has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
baphled has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
Goles has quit [Quit: Out.]
hippyphysicist has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
dlsa has quit [Ping timeout: 255 seconds]
mockra_ has joined #ruby
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
Virunga has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
nomenkun has joined #ruby
Hanmac1 has joined #ruby
lolcathost has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
chussenot has joined #ruby
dlsa has joined #ruby
ijverig has joined #ruby
nomenkun has quit [Ping timeout: 276 seconds]
Nisstyre-laptop has joined #ruby
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
lolcathost has joined #ruby
busybox42 has quit [Quit: leaving]
havenn has quit [Remote host closed the connection]
busybox42 has joined #ruby
havenn has joined #ruby
benlieb has quit [Quit: benlieb]
mengu_ has quit [Quit: Leaving]
pkrnj has joined #ruby
jacktrick has joined #ruby
havenn has quit [Ping timeout: 248 seconds]
DaZ has quit [Ping timeout: 255 seconds]
<tem> dear god it takes so long to install documentation for ruby gems
Liothen has joined #ruby
karl________ has quit [Ping timeout: 245 seconds]
Playground has joined #ruby
lolcathost has quit [Read error: Connection reset by peer]
bwlang has left #ruby [#ruby]
bwlang has joined #ruby
adeponte has joined #ruby
<shevy> tem yeah but I think there is a switch to disable that
<shevy> if you dont need the documentation anyway
<cirwin> tem: echo "gem: --no-ri --no-rdoc" > ~/.gemrc
adeponte has quit [Remote host closed the connection]
<tem> brilliant, thanks
<tem> I /always/ forget to provide the switch when installing gems
<cirwin> yeah
Playground has quit [Client Quit]
<tem> remember once it's too late
adeponte has joined #ruby
<cirwin> any solution that relies on human memory is a broken solution
<tem> will that play nice with rvm?
DaZ has joined #ruby
<cirwin> yup
<shevy> that's a nice quote cirwin
<tem> agree
<Kovensky> hmm
_nitti has joined #ruby
key has joined #ruby
<Kovensky> are constants in ruby (ALL_CAPS variables) only evaluated once or are they evaluated each time a file is required?
<key> does ruby have a command line program on osx where i can do like ./parseruby <some code here>
<key> then it poops out the return value
<key> all right from my shell
<key> without entering into "irb"
shevy has quit [Ping timeout: 240 seconds]
ryannielson has joined #ruby
highdeserthero has joined #ruby
<apeiros_> key: ruby -e 'p <somecodehere>'
<key> ah thanks apeiros_
jbw has quit [Ping timeout: 272 seconds]
<key> why is its format like that?
<key> that you have to do a p to print the result
<key> it should know input is coming via stdin so poop via stdout
<apeiros_> because otherwise it'd be hard to tell it not to print
<key> yea true
<apeiros_> you can always create an alias…
_nitti has quit [Remote host closed the connection]
highdeserthero has left #ruby [#ruby]
<key> are you guys hard for ruby 2? it's been 7 years
<apeiros_> e.g. `alias eval_ruby=ruby -ryaml -rpp -rwhatever -e 'p eval(ARGV[0])'`
jwang has quit [Ping timeout: 240 seconds]
_nitti has joined #ruby
speakingcode-wor has joined #ruby
agarie has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
_nitti has quit [Remote host closed the connection]
lolcathost has joined #ruby
key has left #ruby ["..."]
_nitti has joined #ruby
lolcathost has quit [Client Quit]
bwlang has left #ruby [#ruby]
havenn has joined #ruby
shevy has joined #ruby
hybris has quit [Quit: hybris]
lolcathost has joined #ruby
jbw has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
joshman_ has joined #ruby
jds has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
joshman_ has quit [Ping timeout: 255 seconds]
miskander has joined #ruby
miskander has quit [Client Quit]
cousine has quit [Remote host closed the connection]
_nitti has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
jds has quit [Ping timeout: 276 seconds]
chussenot has quit [Quit: chussenot]
moshee has quit [Ping timeout: 255 seconds]
_nitti has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has joined #ruby
Guest____ has joined #ruby
Gooder has joined #ruby
joofsh has joined #ruby
BoomCow has joined #ruby
cbosh has quit [Ping timeout: 255 seconds]
slainer68 has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
jacktrick has quit [Quit: Leaving]
Gooder` has joined #ruby
CaptainKnots has quit [Client Quit]
dv_ has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
CaptainKnots has joined #ruby
mockra_ has quit [Remote host closed the connection]
Gooder has quit [Read error: Connection reset by peer]
dv_ has joined #ruby
joofsh has joined #ruby
adeponte has joined #ruby
havenn has joined #ruby
sailias has quit [Quit: Leaving.]
cbosh has joined #ruby
headius has quit [Quit: headius]
niklasb has quit [Ping timeout: 265 seconds]
bwlang has joined #ruby
headius has joined #ruby
havenn has quit [Ping timeout: 272 seconds]
g0bl1n has joined #ruby
adeponte has quit [Remote host closed the connection]
Guest____ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
apeiros_ has quit [Remote host closed the connection]
thatRD has quit [Ping timeout: 260 seconds]
bwlang has left #ruby [#ruby]
bwlang has joined #ruby
adeponte has joined #ruby
frogstarr78 has quit [Remote host closed the connection]
thatRD has joined #ruby
delinquentme has joined #ruby
slainer68 has joined #ruby
wroathe has joined #ruby
<delinquentme> in a method ... ( nm if this is a long answer ) but basically you're calling a method once ... shouldn't all the input vars be instance vars??
<swarley> what
hamfz_ has quit [Ping timeout: 272 seconds]
h4mz1d has quit [Ping timeout: 272 seconds]
subbyyy has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
subbyyy has quit [Client Quit]
Saffronique has joined #ruby
subbyyy has joined #ruby
h4mz1d has joined #ruby
hamfz_ has joined #ruby
hack has joined #ruby
rburton- has joined #ruby
slainer68 has quit [Ping timeout: 276 seconds]
griffindy has quit [Quit: Computer has gone to sleep.]
subbyyy has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
ryannielson has quit [Quit: ryannielson]
drago757 has joined #ruby
aapzak has quit [Ping timeout: 255 seconds]
<delinquentme> is this a reliable way to reorder the date? "11/30/2012".split("/").reverse.join("-")
<swarley> As long as you're only expecting strings like that, yes.
havenn has joined #ruby
aapzak has joined #ruby
n1x has joined #ruby
icole has joined #ruby
asteve has joined #ruby
Saffronique has quit [Quit: restart]
yacks has joined #ruby
havenn has quit [Remote host closed the connection]
BoomCow has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby
jacktrick has joined #ruby
Saffronique has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
breakingthings has quit []
nomenkun has joined #ruby
havenn has quit [Ping timeout: 272 seconds]
benlieb has joined #ruby
BoomCow has joined #ruby
joofsh has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 272 seconds]
havenn has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
artnez has joined #ruby
hack is now known as megha
mockra has joined #ruby
Playground has joined #ruby
lolcathost has quit [Read error: Connection reset by peer]
Saffronique has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
Saffronique has joined #ruby
sorbo_ has joined #ruby
adeponte has quit [Remote host closed the connection]
Saffronique has quit [Ping timeout: 252 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
noc` has joined #ruby
Saffronique has joined #ruby
wroathe has quit [Ping timeout: 246 seconds]
wroathe has joined #ruby
DaZ has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
<Kovensky> hmm, this celluloid thingy looks interesting
g0bl1n has quit [Quit: Ex-Chat]
radic has quit [Disconnected by services]
radic_ has joined #ruby
wroathe has quit [Ping timeout: 255 seconds]
DaZ has joined #ruby
browndawg has quit [Quit: Leaving.]
DylanJ has left #ruby [#ruby]
baroquebobcat has joined #ruby
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
yshh has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
yshh has joined #ruby
S1kx has quit [Quit: Leaving]
slainer68 has joined #ruby
xyzodiac has joined #ruby
kurioscreative has joined #ruby
kurioscreative has quit [Client Quit]
crackfu has quit [Ping timeout: 248 seconds]
sailias has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
sailias has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
ehlu has quit [Quit: WeeChat 0.3.8]
adeponte has quit [Remote host closed the connection]
jacktrick has quit [Quit: Leaving]
TheFuzzball has joined #ruby
tommyvyo has joined #ruby
Playground has quit [Read error: Connection reset by peer]
BoomCow has joined #ruby
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
S1kx has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
<danneu> delinquentme: of course, if you wanted something more robust, you'd parse it with Ruby stdlib or another lib (like Chronic) and then reoutput it.
<danneu> which is what i would do. it's only slightly less trivial
<delinquentme> danneu, in regards to the date reordering?
<danneu> delinquentme: yeah
adeponte has joined #ruby
<RubyPanther> delinquentme: it isn't very reliable because US and Australian formats swap the month and day. If you use a lib function, then you can more easily and clearly account for that sort of thing.
PragCypher has quit [Quit: Leaving]
<delinquentme> with the additional input of whos date format you're using
<Kovensky> you mean "US" and "rest of the world"
<RubyPanther> Also then somebody can look at the code, without seeing the input, and know which is the month and day fields. If you just reverse, they have puzzle that out.
<delinquentme> or a geography or something
<danneu> It's also more readable to parse it and then reoutput it. Intention is clear.
<Kovensky> everyone should just adopt japanese gregorian dates: year年month月day日
<Kovensky> or ISO 8601 <_<
<RubyPanther> No, actually, the standard most of the world is using now is year-month-day, the one he's converting to
<sorbo_> you mean MURRRKA and THEM SOCIALISTS
adeponte has quit [Remote host closed the connection]
<Kovensky> Y-m-d is ISO 8601
saispo has quit [Ping timeout: 260 seconds]
<danneu> Y-m-d or d-m-Y? nonsense. "m d, Y". murica
* Kovensky writes dates in Y-m-d whenever he can get away with it
<Kovensky> exceptions are forms that have tiny spaces for day/month and a long space for year
ehlu has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
<RubyPanther> European dates can be distinguished by being d.m.y as opposed to m/d/y and d/m/y, which is why it is mostly US and AU that are confused
Guest9041 has quit [Ping timeout: 276 seconds]
_nitti has joined #ruby
Guest9041 has joined #ruby
browndawg has joined #ruby
mockra has joined #ruby
<RubyPanther> Thai dates are D/M/Y but are easily identified by the Buddhist calendar which is 543 years ahead. Although software that makes that assumption will become obsolete in a few hundred years.
Takehiro has joined #ruby
Bry8Star_ has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
mockra has quit [Read error: Operation timed out]
Saffronique has quit [Quit: logging]
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
_nitti has quit [Remote host closed the connection]
Bry8Star has joined #ruby
Bry8Star_ has quit [Ping timeout: 276 seconds]
jduan1981 has quit [Read error: Connection reset by peer]
<shevy> do you guys tend to write more classes or more modules?
jduan1981 has joined #ruby
<shevy> RubyPanther i prefer dd.mm.yyyy, yyy.mm.dd is ok too. but I absolutely hate mm.dd.yy ... that one just doesnt make sense... it goes middle-minor-max ... the other two are at least logical... minor-middle-max or max-middle-minor
tommyvyo_ has joined #ruby
<wmoxam> shevy: I like yyyy.mm.dd because it easily sortable
<Kovensky> big-endian dates ftw
<shevy> as long as its not mm.dd.yyy
<shevy> what is a big indian date
<shevy> a date with a large indian girl?
<Kovensky> no, a date that's written with the "big end first"
<Kovensky> just follow https://en.wikipedia.org/wiki/ISO_8601 and be happy
<swarley> wmoxam; what are the files ?
alex20032 has joined #ruby
<alex20032> Hi
<alex20032> Was wondering, does ruby use identation for block of code like python?
<swarley> No, you don't need to indent
<swarley> it uses {} in some places, and do ... end in others
<shevy> alex20032 ruby is pretty much indent-free
<swarley> control structures (if, unless) use end as a terminator
<shevy> if you want to, you can go crazy and write everything with different indent
<alex20032> What binding of popular library is available on ruby?
<swarley> Curl
<swarley> LLVM
<alex20032> i know that SDL, and libzip and surely also QT
<shevy> alex20032 to a large degree, ruby-gnome
saispo has joined #ruby
<swarley> There are far too many bindings to name
<swarley> It's really not that hard to adapt bindings for use in ruby
<shevy> a machine could name them all swarley :>
<swarley> well yes
<swarley> it's called google
<shevy> admit it... you are not a machine swarley!
<swarley> I'm not :(
<swarley> To err is human
<shevy> yeah
<shevy> to err
<shevy> and to drink beer
lolcathost has joined #ruby
<swarley> lolcathost; suck your what
<swarley> * lolcathost (~suckmy@.....
<sorbo_> alex20032: FYI, Ruby idiom is two-space indent for clarity (e.g. in method bodies), even though Ruby itself doesn't care about indentation.
TheFuzzball has quit [Quit: Leaving...]
<swarley> here's a vim line that rubyists use
<swarley> # vim: set ts=4 sts=2 sw=2 et:
Coeus has quit [Quit: WeeChat 0.3.9.2]
<swarley> tab stops at 2 spaces, expand tabs to spaces, shift width 2
<reactormonk> ts=4?
<swarley> tab stop
<swarley> that's hard tab
<cirwin> ts=8 alwaays
<swarley> Apparently you're not supposed to change the ts
<swarley> I always just used ts=2 but apparently that's wrong
jonahR has joined #ruby
<cirwin> swarley: doesn't matter too much providing you have expandtab
<alex20032> well, normally, i do my identation in C and java
saispo has quit [Ping timeout: 260 seconds]
<alex20032> but i just dont like when compiler/interpreter interprete/compile differently because of identation
<swarley> it's harder to read if you use a mixture of tabs and spaces, and more unpredictable with tabs
<swarley> Nope, ruby could care less about your alignment
<swarley> couldn't
<swarley> *
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<alex20032> i prefer having syntaxic rule to follow than identation
jonahR has quit [Remote host closed the connection]
<shevy> alex20032 "indentation" please :(
<alex20032> like {}
<RubyPanther> emacs ruby-mode should give you 2 spaces with no tab chars by default
<RubyPanther> Matz had the wisdom to define a correct answer for this early on. ;)
<sorbo_> One of the few "correct" answers in Ruby, IMO
<shevy> hehe
* Kovensky likes 4 spaces :(
<lolcathost> swarley: Sorry, I was not paying attention. It's just my hostname.
<sorbo_> alex20032: You'll find Ruby usually gives you a bunch of ways to accomplish any given task and lets you do your own thing
<RubyPanther> Ruby has lots of "correct" answers, but the wrong answers are usually permitted. ;)
<sorbo_> Which I like a lot.
<sorbo_> RubyPanther: Yeah, that's a better way of putting it.
<alex20032> i prefer ruby over python already
<shevy> Kovensky, as long as it is not tab, that is ok, but there is one thing in favour of 2 spaces in addition to that - you can put more stuff into a line (if you still want to limit the length, i.e. 80 chars / line)
<Kovensky> <alex20032> i know that SDL, and libzip and surely also QT <-- QT has no bindings to any language, and all the bindings that get made are eventually abandoned
<Kovensky> PySide is the only one I know of that hasn't been abandoned (yet)
<alex20032> better to teach OO, and also, its more serius, no space indentation for block of code...
<sorbo_> alex20032: Haha yeah, I had that realization a bit ago too
<shevy> yeah it is tough
<RubyPanther> Unlike Perl, we attach moral value to correct techniques even while refusing to prevent incorrect or blasphemous techniques.
<shevy> ruby-qt is not in a super active state as far as I know
<swarley> I think ruby-gnome was dropped, wasn't it?
<aedorn> QtBindings is still being maintained when needed.
<RubyPanther> Yeah, everybody uses Gtk
<shevy> not dropped, but much less active than ~3 years ago swarley
<shevy> I think the mobile sector is slowly killing those traditional GUIs, at least the language bindings :(
<alex20032> i am opening a programming club at my college...
<alex20032> and i was checking which language i will try to promote
slainer68 has joined #ruby
<shevy> including a bit of striptease while coding?
<swarley> Ruby is definitely a readable one
<alex20032> C, Java and Ruby are the language i will promote
<swarley> Good for beginners
<sorbo_> Agree with C and Ruby. Java hurts my soul.
<swarley> ^
<shevy> java is too verbose
<swarley> Java is just camel case and line noise
<alex20032> too verbose?
<shevy> hmm is java more verbose than c#?
<alex20032> C is too vcerbose...
<shevy> yeah alex20032
<alex20032> in C, you have to redefine everything
<RubyPanther> You can use C on android if you're willing to write a light wrapper in Java
<shevy> C can be very short
<swarley> I can do thinks faster in C than java lol
<swarley> things*
<Kovensky> the only reason I can think of to use Java is for coding to android
<alex20032> but java is more portable
<shevy> public void service(final ServletRequest request, final ServletResponse response)
<Kovensky> technically you could use other JVM-targeting languages but idk if they have proper Dalvik support
<sorbo_> The JVM is great. Java, not so much.
<swarley> Which is why we have jruby
<sorbo_> I really like Clojure and have been meaning to learn more of it.
<swarley> hopefully it gets faster soon
tommyvyo_ has quit [Quit: http://thomasvendetta.com]
<alex20032> well, i think java is still better than C#
saispo has joined #ruby
<Kovensky> now I think you hit your head somewhere :)
<swarley> fancy is a fun language
* Kovensky runs
<swarley> It uses rubinius as a base, and has direct access to ruby
<Kovensky> I hear people have been nerding over Elixir lately
jonahR has joined #ruby
<alex20032> but does every librairie is supported under jruby?
<Kovensky> which is a ruby-lookalike that runs in the Erlang virtual machine
<swarley> No, I had to take away JRuby from my supported dist in my gem i just added
nixmaniack has joined #ruby
jonahR has quit [Remote host closed the connection]
<swarley> because Readline wouldn't cooperate
<swarley> Every other version I threw at it passed
<headius> what was wrong with readline?
<swarley> The input/output wouldn't switch
<swarley> Readline.input = File.open('foo')
<headius> 1.9 input= stuff?
<headius> ah
slainer68 has quit [Ping timeout: 240 seconds]
<swarley> It was JRuby in 1.9 mode though, so I had hope
<headius> yeah, I haven't found a way to support that with our readline lib :-\
<alex20032> Well, but java is so widely used, so its always good to know java, we never know when we can come accross java source...
<alex20032> And java is great to teach OO
<swarley> I hate when people ask me to look at their Java
<swarley> It always makes me nervous
<shevy> alex20032 but it is very verbose
<swarley> Because it's just so hard to read
<alex20032> well, still better than visual basic...
<Kovensky> <Kovensky> :java:
<Kovensky> <Kobun> BasicListenerRequestVisitorContextClientAdaptor
<swarley> ≪ swarley ≫ Java is just camel case and line noise
<alex20032> (well, i already saw a line of VB, to declare a variable... so long)
n1x has quit [Ping timeout: 248 seconds]
<Kovensky> Dim variable
<Kovensky> why do I know this
* Kovensky facedesks
<alex20032> dim variable as integer VS int variable;
<alex20032> 4 word VS 2 word
<Kovensky> yeah, that's because of .net extensions
<RubyPanther> Camel-boilers on a plate
<alex20032> in my next session, they will teach VB...
<swarley> Go is an alright language
<alex20032> i dont want to learn that horrible language...
<sorbo_> Go is what C++ _should_ have been.
<alex20032> Haskell is a great language
<sorbo_> ^
<sorbo_> +1 for Haskell
<RubyPanther> I took VB in the 90s. My advice, heckle the prof as much as you can because it is the only way you're going to get entertainment out of that.
<sorbo_> Though it hurts your brain at first, especially if you're used to OO.
<swarley> Haskell is great if you don't have your head stuck in non functional programmng
<swarley> I love haskell, but I can't use it to save my ife
<swarley> life*
<Kovensky> and if your head is stuck, reading Higher Order Perl can certainly help soften the concepts
<sorbo_> Yeah
<sorbo_> Haskell might not be great to start with though.
<alex20032> Well, i still think that Java is great to teach programming, especially OO
<Kovensky> Java was my first programming language and I think that's a terrible idea
<alex20032> Maybe counter productive because too much verbose... but great learning tool
<swarley> personally, I think Java OO is too much
<RubyPanther> The one time I had to do functional programming, I just wrote a Perl script to generate it. That is one of the great things about functional programming, it is very easy to generate even when you don't think in it.
<sorbo_> I don't know. The first language I seriously studied was Java, and that killed my love of programming for like... three years.
<sorbo_> That might just be me though.
<Kovensky> ruby OO would be better
<swarley> There are so many keywords that go into a class
<shevy> sorbo_ hahaha you poor man
<sorbo_> Agree w/Kovensky.
<Kovensky> what I find interesting is, almost all OO literature speaks of objects using Smalltalk terminology
<shevy> sorbo_ I was somewhat luckier, I started with LPC and perl
<Kovensky> but almost all of them are talking about Simula-like languages... which are entirely unlike Smalltalk
<Kovensky> such as C++ and derived
<swarley> I started with C++/Java and floated to perl and then ruby
<sorbo_> shevy: Haha you chose more wisely than I did
<shevy> I was more productive with PHP than with perl though :(
<Kovensky> ruby is smalltalk-like
<sorbo_> Oh man. PHP makes me so sad.
<shevy> but ruby kind of obsoleted all of perl, LPC and php
<RubyPanther> If you think starting with Java is bad, how about MS-BASIC, on a ROM.
<shevy> yeah sorbo_ ... but the web-focus is a good philosophy
<sorbo_> RubyPanther: Ouch.
<sorbo_> shevy: True, but for that I would gravitate toward JS. Which is broken in its own crazy ways, so that's probably personal bias.
<alex20032> Well, but i promote C to teach programming concept, like what exaclty is a linked list, an array, time to access element, and C is simple (simple syntax), but we wont do any big project in C
<RubyPanther> And if you think you can write hangman in under 2k, you better be good at golf.
<swarley> Enum.map([1,2,3], fn(x) -> x * 2 end) #=> [2,4,6]
<swarley> ooooo I like that
<alex20032> Its too easy to write bad C++ code
<alex20032> so we wont use C++
<sorbo_> Kovensky: +1
<shevy> sorbo_ hmm what I dont like about javascript is that it is kind of browser-only
<alex20032> Its alway good to have a language that is fast to write and interpreted (ruby)
<sorbo_> shevy: Yeah. It's getting better, slowly but surely
<Kovensky> <shevy> sorbo_ hmm what I dont like about javascript is that it is kind of browser-only <-- people that don't accept that is the case came up with node.js
<swarley> LOL
<swarley> a = a
<swarley> Wat
<alex20032> But we need a language, that can be fast enough to be used to write game, emulator and other...
<shevy> lol
<sorbo_> => nil
<sorbo_> Wat
<RubyPanther> C is important, you don't have to be good but almost everybody will need to interact with some library bindings eventually
<shevy> alex20032 C
<shevy> alex20032 also, we need more C folks
<alex20032> the language we will use for most of our project
<Kovensky> alex20032: I'd suggest sticking to C or using C#
<shevy> those who master C can easily master Java too
<Kovensky> alex20032: C# + XNA also lets you write stuff for the x360 if you feel so inclined
<shevy> hmm but XNA hates linux :(
<Kovensky> though then you're kinda stuck in microsoft-land
<sorbo_> I guess you can offer Java if you want, but I'd be happy with just C and Ruby.
<alex20032> well, we want to be cross platform, so only cross platform language and librairy
<Kovensky> it is possible to make your game work with both XNA and monogame though
<shevy> C should work on windows too
wroathe has joined #ruby
<sorbo_> If you want to be a dick you can teach them like... four flavors of assembler.
<sorbo_> And Brainfuck.
<sorbo_> Your club might disband quickly if you do that though. : (
<swarley> {} + []
<swarley> 0
<shevy> alex20032 teach them ruby first, they can use it everywhere and like it more than either of C or Java :)
<swarley> WAT
<Kovensky> https://github.com/mono/MonoGame#readme <-- "MonoGame is an OpenSource, OpenGL implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, MacOS, Linux and soon PlayStation Suite and Windows Metro, all reusing their existing XNA code that runs on Xbox 360 or Windows Phone 7."
<sorbo_> swarley: Hahaha
<shevy> swarley yeah that is a big wtf
<swarley> {} + {}
<swarley> NaN
<swarley> WAT
<shevy> Kovensky, aha interesting
<sorbo_> I love how it makes addition look non-commutative
<alex20032> Anyone here know if Ruby can be used as scripting language like lua? I mean, embeded some ruby in a C program, or java or whatever...
<Kovensky> alex20032: mruby
<swarley> Yeah
<shevy> alex20032 not as easily as lua. but one day, mruby will
<sorbo_> Well, _technically_ {} + {} is NaN
<shevy> alex20032, https://github.com/mruby/mruby you can see matz, the creator of ruby there... his last commit, 20 hours ago
<swarley> LOL
<Kovensky> I always crack up at the Ruby Rhod image
<shevy> he must be sleeping right now :P
<swarley> "wat" - 1
<swarley> NaN
<shevy> ruby rhod image?
<swarley> WATMAN
<sorbo_> Shine bright like a Watman
<alex20032> because if we write game, we could use ruby as our scripting language for mod and quest and other...
lateau has quit [Remote host closed the connection]
<havenn> alex20032: You can embed mruby in Lua! https://github.com/RyanScottLewis/lua-mruby
BoomCow has quit [Quit: This computer has gone to sleep]
mercwithamouth has quit [Ping timeout: 265 seconds]
<shevy> omg
<shevy> you can embed mruby in lua?
<swarley> [] + []
<swarley> ""
<swarley> OF COURSE
<shevy> what is the point? I mean, cant one just use mruby instead?
<alex20032> Well, since i am starting the programming club, and i am currently the only one with programming experience, and the main goal of the programming club is that even people that dont know programming can join and learn, i will teach programming
<shevy> Kovensky lol
<alex20032> but i wont do a big course
<shevy> alex20032 you should start with ruby, they can learn how to build and use methods
<alex20032> only the basic
DrCode_ has joined #ruby
<shevy> that is useful for every programming language
<shevy> input-output
<shevy> I dont know many programming languages without that
<sorbo_> Yeah, I'd start them on Ruby and lead them to C.
<shevy> perhaps haskell... it's only for the twisted mind
tommyvyo_ has joined #ruby
saispo has quit [Ping timeout: 260 seconds]
<shevy> yeah what sorbo_ wrote
<sorbo_> If you're some kind of Java wizard and you think you can teach it to them in a beginner-friendly and fun way, go for it
<sorbo_> But in my experience, that's hard to do
<Kovensky> or, if you feel like upholding tradition, start with SICP :)
<sorbo_> And a lot of people don't come to Java easily
<Kovensky> and if your clubmembers know english, have them watch sussman's lectures
<alex20032> The advantage of java, is even if its not a fully compiled language (its byte code after all), its faster than interpreted language, like python or ruby, altought there are implementation ofruby and python in JVM... its still not enough supported, not enough librairie
DrCode has quit [Ping timeout: 276 seconds]
headius has quit [Quit: headius]
DrCode_ is now known as DrCode
<Kovensky> both ruby and python are actually "hybrid": they *are* compiled, but only at execution time
<Kovensky> same for perl
<alex20032> interpreted language will not be powerful enough for game more complexe than asteroid and snake, but java will be fast enough for what we will do, also java have many librairie available
<swarley> wrong
<alex20032> but i think i will first teach C, then ruby, then Java
<swarley> I've seen a 3D game in ruby lol.
<Kovensky> but yes, ruby's performance issues are well-known, and ruby probably won't do for anything too CPU-intensive
<Kovensky> specially if you use MRI
robbyoconnor has joined #ruby
<sorbo_> Eh. Ruby's slow, but I don't think it would be prohibitively slow for most of what you'd be using it for.
<X-Jester> yeah, ruby isnt too bad
<alex20032> I wont make them C guru, but enough for them to understand that accessing an element in an array is constant, accessing an element in a linked list is linear... well, be albe to understan the big O
<swarley> Yeah teaching to program shouldn't cover a game more complicated than astroids lo
<sorbo_> I think even Big O notation is a little much for an intro. Though certainly they'll need to understand it later on if they want to be professional programmers
<Kovensky> sorbo_: yes, ruby performance improved a lot with YARV
<alex20032> Well, i wont teach more than asteroid, but after, we will do project once everyone will be alright to program on their own
<alex20032> and our project will last for 2-4 month each
<alex20032> and maybe even more
<Kovensky> sorbo_: it's still slower compared to perl on perl's home ground (string processing)
<sorbo_> Kovensky: Yeah, that's true. There are a lot of confounding factors in that analysis, but I think it's useful when demonstrating that Ruby is not unusably slow
<sorbo_> Which a lot of people seem to gather from the oft-repeated "Ruby is n times slower than x language"
tommyvyo_ has quit [Quit: http://thomasvendetta.com]
<alex20032> well, i wont cover the whole Big O, but just to be able to tell if constant or linear on simple thing, and be able to do some search on google to find the right algorithm for the right situation, be able to ask to ourself, do i speed on accessing element, on removing element, on searching element or on adding element
<swarley> Man
<swarley> elixir is going to make me nerd in my pants
<Kovensky> this is awesome
sayan has joined #ruby
<alex20032> when we need to know where we need speed, wikipedia list of ... sorting algorithm will tell us the right algorithm to use
IceDragon has quit [Quit: Space~~~]
<alex20032> But well, like i said, i wont teach everything in detail, it will be a fast introduction
<swarley> Kovensky; yeah i saw that a while ago
<Kovensky> http://www.youtube.com/watch?v=zcSFIUiMgAs#t=165s <-- demonstration of a prerelease version of Regexp::Debugger
<swarley> I made RxpBuilder because of that lol.
lateau has joined #ruby
saispo has joined #ruby
<cirwin> sorbo_: ruby clearly is horrifically slow, nearly 20 times slower than javascript :p
<Kovensky> Regexp::Debugger is the only debugger I've seen so far that actually supports perl / oniguruma regexps
<Kovensky> almost everything else I've seen uses PCRE, and the ones that don't use javascript regexps (which are probably PCRE); PCRE, ironically, is NOT perl-compatible
<sorbo_> cirwin: Yes, but in my experience, that's not going to make a huge difference because there will be performance bottlenecks elsewhere.
<sorbo_> And while I have a soft spot in my heart for JS, I'd rather write 1000 lines of Ruby than 1000 lines of JavaScript.
<cirwin> for sure :)
* Kovensky would rather write 1000 lines of ruby than 20 lines of javascript
<sorbo_> Haha
mockra has joined #ruby
<Kovensky> if I ever have to write in-browser code, hopefully I can use something like coffeescript
pkrnj has quit [Quit: Computer has gone to sleep.]
<Kovensky> which hides a lot of the pain of javascript
<Kovensky> the problem is, in case anything goes wrong, you're then treated to a javascript code dump and then you have to figure out what in coffeescript caused it
megha has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
lateau has quit [Remote host closed the connection]
<swarley> D:
16WABIVDL has joined #ruby
headius has joined #ruby
tommyvyo_ has joined #ruby
<shevy> lol
<shevy> I think the very fact that there exists a syntax-sugar language for another programming language
<shevy> is really really really an awkward thing to see
<sorbo_> Yeah, and really
mockra has quit [Ping timeout: 264 seconds]
<sorbo_> The JS syntax isn't the issue for me
<sorbo_> It's basically all the stuff in GB's "Wat" screencast
<Kovensky> and ==
<Kovensky> and ===
<shevy> I think that languages are better designed if there is one person in charge
<shevy> or perhaps two, if I have to think of C
<sorbo_> Yeah, agree
<sorbo_> I think Haskell is the only design-by-committee that worked out reasonably well
<swarley> I'm excited for elixir
MattRb has quit [Quit: MattRb]
<sorbo_> And I guess the JS var keyword is kind of annoying
<Kovensky> shevy: two at first, but C was mostly developed along unix, and there were like 4 or 5 people poking it
<Kovensky> sorbo_: also, javascript was designed by a single person
<Kovensky> (as much as "design" can be applied to javascript)
<swarley> It was originally called Mocha
<Kovensky> brendan eich
<swarley> and then LiveScript
<shevy> hmm
<alex20032> Also, we have a problem, reason why we have to use java... at my college, its windows that is installed on college computer, and we dont have admin right, and cant install C compiler or python itnerpreter or ruby interpreter. Fortunately, there is some computer with virtual machine, so for learning purpose we will use virtual machine and linux. Computer at college already have eclipse and everything needed for java development, so af
friskd has joined #ruby
<shevy> windows is written in C++ or?
<Kovensky> <sorbo_> I think Haskell is the only design-by-committee that worked out reasonably well <-- Rust is looking quite promising as well
<shevy> alex20032 why cant you install anything? cant you access a user home dir on windows?
<swarley> shevy, C
<Kovensky> alex20032: avoid writing very long lines, IRC doesn't like that
<shevy> swarley hmm reall? ok
<swarley> I believe so
<shevy> *really
TheFuzzball has joined #ruby
<swarley> They might have changed since NT
<sorbo_> Kovensky: Yeah, truth re: JS & Rust
charliesome has joined #ruby
<swarley> the low level things are actually harder to do in C++
<alex20032> well, when we log out, everything we had in desktop and in my document is gone
hamfz_ has quit [Ping timeout: 272 seconds]
h4mz1d has quit [Ping timeout: 272 seconds]
<alex20032> and we dont have admin right, so we cant install
<alex20032> we have user account, and we have a place on the network where each user has 50 mB
<Kovensky> active directory domain with non-persistent userdata
<sorbo_> alex20032: Can you ask your university to install C / Python / Ruby / what have you on a handful of computer lab machines for your programming club?
madwilliamflint has quit [Ping timeout: 248 seconds]
<alex20032> I will try, but since the club is new (will be official in few week), we still cant really do pressure
MattRb has joined #ruby
<Kovensky> well, if the club will be uni-endorsed, they probably should give you (limited?) admin rights to the club computers
MattRb has quit [Client Quit]
headius has quit [Quit: headius]
<alex20032> no, they cant
<alex20032> its not the club computer, but the computer in a random local
<Kovensky> oic
<alex20032> we will try to have a local in the computer science section
<Kovensky> ...for some reason I just remembered my middle school tried teaching clipper to its 7th graders
<Kovensky> (yes, that clipper)
<sorbo_> Haha really?
<Kovensky> yep
<sorbo_> Mine taught Logo, but it was an after school thing taught by one of my friends' dad.
<Kovensky> they had generic "informatics" class that mostly had people learn how to use word and excel
<Kovensky> as a change of pace they decided to teach clipper
<alex20032> and its not university, but college...
<Kovensky> though they didn't really have enough time to actually get to clipper
<alex20032> most people here are like 18-23 year old
<sorbo_> alex20032: I'm in the US, where university == college. What do you mean by "college"?
<Kovensky> IIRC we had like one or two classes actually using clipper before it ended
danneu has quit [Ping timeout: 252 seconds]
<sorbo_> High school?
<alex20032> cegep
<alex20032> canada
<alex20032> quebec
<Kovensky> before they were all using "pseudocode"
<Kovensky> oh yeah, reminds me, absolutely, do not EVER, push for pseudocode
<alex20032> We have primary, 1th to 6th, after, there is secondary, from secodnary 1 to secondary 5
<alex20032> after its either 2 year pre university at college
karupanerura has quit [Excess Flood]
<Kovensky> pseudocode should not EVER be any goal or mandatory step for doing anything
<alex20032> or its 3 year at college in a specific domain
<sorbo_> Ah ok.
<alex20032> then after university
karupanerura has joined #ruby
<sorbo_> Yeah, agree with Kovensky. Teaching pseudocode doesn't help anyone.
<Kovensky> http://www.apoioinformatica.inf.br/a-linguagem-do-visualg <-- this is an interpreted translated-to-portuguese version of pascal
<alex20032> After few month, i will try to do pressure to recycle a old computer that will be dedicated to the club, where we will run a server
<Kovensky> every introductory programming lecture I've had in university had lecturers forcing people to use that
<sorbo_> Well, maybe it does. I never found it useful, though.
<Kovensky> even when writing in paper
pkrnj has joined #ruby
maletor has joined #ruby
<Kovensky> sorbo_: pseudocode is spontaneous, not something you must write, nor must it follow some arbitrary meaningless syntax
<alex20032> running apache, with django, ruby on rail and mod php and mysql and postgresql, so everyone will be able to do something
MattRb has joined #ruby
megha has joined #ruby
pkrnj has quit [Client Quit]
icole has quit [Remote host closed the connection]
<Kovensky> e.g. there's absolutely nothing wrong with writing down a step-by-step algorithm to calculate matrix determinants
<Kovensky> and doing some dry-runs of it on paper+pencil to make sure it behaves as you want
<Kovensky> there is, however, *everything* wrong with said step-by-step instructions being written in a formal *meaningless* grammar that will only get in the way of your thinking and that you will have to later translate into real code anyway
<sorbo_> Yep.
<sorbo_> I write personal pseudocode when thinking through things, but any kind of "defined" pseudocode is a waste of time and brain sapce.
<sorbo_> *space
<sorbo_> Why not use that to learn actual syntax?
<sorbo_> Ugh.
<alex20032> But well, we wont do complicated game either, we will go more complicated than asteroid, but not too much... we will surely do RPG like final fantasy (of course, like old final fantasy on NES and SNES, in 2d with tile engine), game like the old zelda or zelda on gmaeboy... with side scrolling, but only 2d game
<Kovensky> (I used the matrix determinant example because I remember spending my algebra class on determinants writing down on my notebook an algorithm to calculate those =p)
drago757 has quit [Quit: drago757]
<Kovensky> (as in writing down something I could later translate to the computer, instead of the for-human instructions of laplace's algorithm)
<sorbo_> Yeah, makes sense
<sorbo_> Curse you No Starch Press
<sorbo_> Why are your books so awesome
<sorbo_> This is why I have no money
ehlu has quit [Remote host closed the connection]
megha has quit [Read error: Operation timed out]
sayan has quit [Ping timeout: 272 seconds]
<Kovensky> lol
<Kovensky> tech books are always so expensive :(
<sorbo_> Truth :(
tommyvyo_ has quit [Quit: http://thomasvendetta.com]
saispo has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
<alex20032> Well, someone said earlier that mri is slow...
<alex20032> then what should we use?
16WABIVDL has quit [Remote host closed the connection]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
lateau has joined #ruby
<Kovensky> ruby 1.9+ is fine :)
<Kovensky> stay away from 1.8
<Kovensky> I hear good things about Rubinius performance but I haven't used it myself
Norrin has quit [Ping timeout: 245 seconds]
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
bedouin has quit [Ping timeout: 260 seconds]
Norrin has joined #ruby
danneu has joined #ruby
schwap has quit [Ping timeout: 255 seconds]
lateau has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
sorbo_ has left #ruby [#ruby]
aytch has joined #ruby
<alex20032> well, jruby look perfect to embed ruby inside java, to use ruby as our scripting language
<alex20032> also, jruby from what i read is faster than mri
tommyvyo has quit [Quit: Computer has gone to sleep.]
megha has joined #ruby
saispo has joined #ruby
<alex20032> well, what do you guy think about scala?
<alex20032> is it good, or too much verbose?
<Kovensky> I haven't used it but I hear it's pretty cool
<Kovensky> almost everything you can find that targets the JVM and is not Java is almost always decent
bedouin has joined #ruby
<alex20032> But for the moment, i will only teach C... i wont teach a language i dont know enough (and since i am pretty new to ruby...)
schwap has joined #ruby
<Kovensky> getting started through C is good, specially if you can explain the more complex concepts of other languages in terms of C
robustus has quit [Ping timeout: 276 seconds]
<Kovensky> e.g. explaining references as "magic pointers" makes more sense than pointers being... uh... not references =p
<alex20032> Well, if people understand what is a pointer, then they will understand what is reference
<Kovensky> but not the other way around
<Kovensky> it's also good to know the flat memory model and the stack
wroathe has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
diegok has quit [Read error: Operation timed out]
<Kovensky> (my C lecturer at uni did *not* know the stack and happily corrupted it all the time through out-of-bounds access...... but he was saved by the bound guards compilers puts around stack-allocated arrays when building on Debug mode)
<danneu> scala is great. but the problem with the jvm ecosystem compared to ruby isn't syntax imo but the build step.
speakingcode-wor has quit [Ping timeout: 252 seconds]
<Kovensky> some more sadness from over here: lecturers use Dev-C++ and iterate through arrays from i = 1 to i <= length
diegok has joined #ruby
aapzak has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
aapzak has joined #ruby
<alex20032> Well, i wont go into exotic language either...
<alex20032> Scala is the limit
<alex20032> flat memory model?
lolcathost has quit [Read error: Connection reset by peer]
<alex20032> just not familiar with term
lolcathost has joined #ruby
JohnBat26 has joined #ruby
andrewhl has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 260 seconds]
lolcathost has quit [Client Quit]
lolcathost has joined #ruby
pdtpatrick has quit [Remote host closed the connection]
nixmaniack has quit [Ping timeout: 252 seconds]
adeponte has joined #ruby
mockra has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
elico has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
<Kovensky> it's what all modern computers use
<Kovensky> as opposed to segmented memory, like the 16-bit intel CPUs
<Kovensky> and some other funky stuff
<Kovensky> (basically, the idea that memory is really just one giant array)
* Kovensky sleeps, almost 5am
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
tommyvyo has joined #ruby
lolcathost has joined #ruby
adeponte has quit [Remote host closed the connection]
atadesk has joined #ruby
<swarley> does anyone happen to know where elixir stands on the shootouts?
Axsuul has quit [Ping timeout: 240 seconds]
lateau has joined #ruby
crackfu has joined #ruby
lateau has quit [Remote host closed the connection]
lateau` has joined #ruby
ananthakumaran1 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Ping timeout: 252 seconds]
TomRone has quit [Ping timeout: 255 seconds]
lateau` has quit [Remote host closed the connection]
lateau` has joined #ruby
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
icole has joined #ruby
Hanmac1 is now known as Hanmac
lateau` has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
lateau` has joined #ruby
cantonic_ has joined #ruby
crackfu has quit [Ping timeout: 240 seconds]
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
generalissimo has joined #ruby
nixmaniack has joined #ruby
icole has quit [Ping timeout: 276 seconds]
lateau` has quit [Remote host closed the connection]
_hemanth_ has joined #ruby
lateau has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
_hemanth_ has joined #ruby
mahmoudimus has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
lolcathost has quit [Ping timeout: 272 seconds]
horofox has joined #ruby
lolcathost has joined #ruby
horofox has quit [Client Quit]
vlad_starkov has joined #ruby
cirwin has quit [Quit: Leaving.]
speakingcode-wor has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
bluOxigen has joined #ruby
delinquentme has quit [Ping timeout: 260 seconds]
generalissimo has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
nomenkun has joined #ruby
toekutr has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
<havenn> aytch: Found a forth one, just got it converted to pdf: http://www.scribd.com/doc/119153889/You
<havenn> fourth**
nomenkun has quit [Ping timeout: 272 seconds]
<aytch> nice
<aytch> how'd they solve for that?
<havenn> aytch: Hrm?
jduan1981 has quit [Quit: jduan1981]
<aytch> There was some discussion about meanings in deliberate types
<aytch> typos*
x-men1 has joined #ruby
x-men1 has left #ruby [#ruby]
lateau has quit [Remote host closed the connection]
mockra has joined #ruby
lateau has joined #ruby
kiyoura has quit [Read error: Connection reset by peer]
<havenn> aytch: Oh, I just found it without solving any riddles. It was YOU was listed under /SPOOL.
mockra has quit [Read error: Operation timed out]
lateau has quit [Remote host closed the connection]
MattRb has quit [Quit: MattRb]
lateau has joined #ruby
rakl has quit [Quit: sleeping]
<aytch> interesting. When you view whytheluckystiff.net with mucommander, it shows nothing at all
<RubyPanther> oh how exciting!
templaedhel has joined #ruby
<havenn> :D
<templaedhel> Hey guys, I just tweaked some code examples we have in our API, but non of our team are ruby devs, and I'd love it if someone here could take a look.
<havenn> templaedhel: Can you paste a Gist or something of the code?
<templaedhel> Yep, throwing it up right now
rakl has joined #ruby
lenovodroid has quit [Ping timeout: 272 seconds]
lkba has quit [Quit: Bye]
<RubyPanther> templaedhel: All I see is a blank greenish page. I recommend pastie.org or gist.github.com
ebouchut has joined #ruby
<templaedhel> Strange, I usually like the syntax highlighting on hastebin better, but here it is as a gist https://gist.github.com/4466121
<havenn> templaedhel: The comment for #Delete isn't in all caps like the others. :P
<havenn> templaedhel: Whadya change?
<templaedhel> havenn Added Put and Delete methods
<templaedhel> But it's been awhile since I created the other two, so if there are any suggestions you have for any, let me know
whowantstolivef1 has joined #ruby
lateau has quit [Remote host closed the connection]
<Paradox> lel
lateau has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
lateau has quit [Remote host closed the connection]
jwang has joined #ruby
Takehiro has joined #ruby
slainer68 has joined #ruby
lateau has joined #ruby
toekutr has quit [Remote host closed the connection]
raz has joined #ruby
workmad3 has joined #ruby
lateau has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
lateau has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
adeponte has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
<RubyPanther> everyone is here in the future, and everything, even whytheluckystiff.net and everyoneishereinthefuture.com (warning: flashing lights)
lateau has quit [Remote host closed the connection]
akemrir has joined #ruby
lateau has joined #ruby
<RubyPanther> future on
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
<Paradox> ?
lateau has quit [Remote host closed the connection]
eka has joined #ruby
lateau has joined #ruby
Xeago has joined #ruby
<RubyPanther> Do you have little futuristic wheelchairs for broken-down transistor radios?
hotovson has joined #ruby
lateau has quit [Remote host closed the connection]
<aytch> oh wow - I've never seen everyoneishereinthefuture.com
snafoo has joined #ruby
lateau has joined #ruby
Xeago has quit [Remote host closed the connection]
<RubyPanther> whytheluckystiff.net has a header Server: GitHub.com apparently the domain is at github
<RubyPanther> hopefully there are some more Easter eggs :)
<aytch> yeah, that's what the A record pointed to in DNS
tk__ has joined #ruby
Jackneill has quit [Remote host closed the connection]
Vivid_ has joined #ruby
JohnBat26 has quit [Ping timeout: 276 seconds]
foohey has quit [Remote host closed the connection]
Guest25886 has joined #ruby
foohey has joined #ruby
foohey has quit [Changing host]
foohey has joined #ruby
Umren has joined #ruby
mockra has joined #ruby
arturaz has joined #ruby
koshii has quit [Read error: Connection reset by peer]
mockra has quit [Ping timeout: 255 seconds]
nemesit has joined #ruby
arietis has joined #ruby
Neomex has joined #ruby
rubyman has joined #ruby
<rubyman> goodmorning
<rubyman> can someone explain what I'm doing wrong here
<rubyman> gender = m if gender = m sal = "Sir" else sal = "Ms." end def greeting puts sal end greeting
<rubyman> I keep getting an era undefined local variable or method `m' for #<Context:0xc3c6c0>
<aytch> gender = "m"
<havenn> rubyman: Change the m in your code to 'm' or :m would work.
<aytch> I believe it's trying to use m as a variable
<rubyman> (ruby):2: warning: found = in conditional, should be == undefined local variable or method `sal' for #<Context:0xc3c6c0>
<rubyman> gender = "m" if gender = "m" sal = "Sir" else
<havenn> rubyman: if gender ==
<havenn> rubyman: one = assigns, two == compares
<rubyman> soooo
<rubyman> gender = "m" if gender == m sal = "Sir"
<rubyman> undefined local variable or method `sal' for #<Context:0xc3c6c0>
workmad3 has quit [Ping timeout: 264 seconds]
Yayo has quit [Read error: Connection reset by peer]
<havenn> rubyman: gender = 'm'; sal = 'Sir' if gender == m
Loaft has joined #ruby
<havenn> == 'm'
<rubyman> thanks havenn gotit that part works
<rubyman> I'm getting an undefined local variable for sal now
<rubyman> gender = "m" if gender == "m" sal = "Sir" else sal = "Ms" end
<rubyman> puts sal
<rubyman> returns Sir
<rubyman> but if I add
emocakes has joined #ruby
<rubyman> def greeting puts sal end greeting
<rubyman> i get
<rubyman> undefined local variable or method `sal' for #<Context:0xc3c6c0>
<Hanmac> your local variable is in the wrong context ... an method can not access them
<havenn> make sal an instance variable, like @sal
<rubyman> Cool! Works!
<rubyman> My frist lesson on instance variables!
templaedhel has quit [Quit: Leaving...]
Banistergalaxy has quit [Ping timeout: 256 seconds]
<rubyman> thanks all!
<aytch> There's an alternate way of doing it, I think. It works in irb.
atadesk has quit [Quit: Leaving.]
Banistergalaxy has joined #ruby
<rubyman> aytch I like that. Thanks!
<aytch> My pleasure!
dangerousdave has joined #ruby
havenn has quit [Remote host closed the connection]
adambeynon has joined #ruby
bnagy has quit [Quit: leaving]
<Paradox> roobie :D
<aytch> as were we all at some point
<aytch> ...I still am
tommyvyo has quit [Quit: Computer has gone to sleep.]
Guest9041 has quit [Read error: Connection reset by peer]
Guest9041 has joined #ruby
MattRb has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
tommyvyo has joined #ruby
clooth has joined #ruby
adeponte has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
becom33 has joined #ruby
MattRb has quit [Quit: MattRb]
main has joined #ruby
<becom33> Im doing a get request trough jquery and I want put the return html content to a dialog box
<becom33> shit wrong channel
Banistergalaxy has quit [Ping timeout: 272 seconds]
ebouchut has joined #ruby
Banistergalaxy has joined #ruby
ChampS666 has joined #ruby
mockra has joined #ruby
ebouchut has quit [Ping timeout: 276 seconds]
ebouchut has joined #ruby
Gooder` has quit [Remote host closed the connection]
wermel has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
mockra has quit [Ping timeout: 246 seconds]
arturaz has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
Pip has joined #ruby
subbyyy has joined #ruby
cantonic has quit [Quit: cantonic]
itnomad has joined #ruby
Virunga has joined #ruby
saispo has quit [Ping timeout: 260 seconds]
Elhu has joined #ruby
koshii has joined #ruby
apeiros_ has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
TheEmpty has joined #ruby
megha has quit [Ping timeout: 252 seconds]
koshii has quit [Ping timeout: 255 seconds]
<aytch> Would it be heresy to rewrite _why's documentation and guides to use modern code samples?
cantonic has joined #ruby
wermel has quit [Remote host closed the connection]
<banister`sleep> aytch: as long as you're not trying to emulate his sense of humor, that shit is embarrassing to watch (ppl have tried it before and they fail in the filthiest way)
<aytch> Nah, I just want to rewrite the code itself
<aytch> As a newbie, it's hard to follow the original guides with outdated code that doesn't work
slainer68 has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
nimred has quit [Quit: leaving]
ananthakumaran has joined #ruby
nimred has joined #ruby
megha has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
nimred has quit [Client Quit]
nimred has joined #ruby
ananthakumaran1 has quit [Ping timeout: 255 seconds]
jds has joined #ruby
JeanMertz has joined #ruby
saispo has joined #ruby
Pip has quit [Ping timeout: 255 seconds]
apeiros_ has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
Pip has joined #ruby
saispo has quit [Ping timeout: 260 seconds]
picca_ has joined #ruby
picca_ is now known as picca
ebouchut has joined #ruby
apeiros has joined #ruby
browndawg has quit [Quit: Leaving.]
lolcathost has quit [Read error: Operation timed out]
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
wallerdev has quit [Quit: wallerdev]
mockra has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
skepti has joined #ruby
climberrs has joined #ruby
Virunga has quit [Remote host closed the connection]
lolcathost has joined #ruby
speakingcode-wor is now known as speakingcode
samuel02 has joined #ruby
koshii has joined #ruby
climberrs has quit [Quit: Verlassend]
braoru has joined #ruby
woolite64 has quit [Ping timeout: 248 seconds]
r0bby has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
r0bby_ has joined #ruby
amaya_the has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
robbyoconnor has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
matchaw__ has quit [Read error: Connection reset by peer]
RagingDave has joined #ruby
skepti has quit [Quit: Leaving]
r0bby has quit [Ping timeout: 272 seconds]
slainer68 has joined #ruby
Virunga has joined #ruby
Neomex has quit [Quit: Neomex]
hotovson has quit [Remote host closed the connection]
r0bby_ has quit [Read error: Connection reset by peer]
slainer68 has quit [Read error: Operation timed out]
billy_ran_away has quit [Ping timeout: 276 seconds]
hamed_r has joined #ruby
saispo has joined #ruby
mame0 has quit [Ping timeout: 248 seconds]
saispo has quit [Ping timeout: 260 seconds]
<amaya_the> :)
blaxter has joined #ruby
yshh has quit [Remote host closed the connection]
browndawg has joined #ruby
_46bit has quit [Quit: Leaving.]
elico has quit [Ping timeout: 248 seconds]
lolcathost has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
Spami has joined #ruby
elico has joined #ruby
AlbireoX has quit [Remote host closed the connection]
elico has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
hukl has joined #ruby
mercwithamouth has joined #ruby
elico has joined #ruby
pmros has joined #ruby
Guest25886 has quit [Quit: Guest25886]
<pmros> do you know if you can precompile code in ruby 2.0, like rubinuis or jruby?
nemesit has quit [Ping timeout: 272 seconds]
ebouchut has joined #ruby
Neomex has joined #ruby
mame0 has joined #ruby
Neomex has quit [Client Quit]
skepti has joined #ruby
samphippen has joined #ruby
lolcathost has joined #ruby
Jackneill has joined #ruby
chussenot has joined #ruby
nemesit has joined #ruby
akemrir has quit [Quit: WeeChat 0.3.9.2]
elico has quit [Ping timeout: 272 seconds]
elico has joined #ruby
hotovson has joined #ruby
mengu has joined #ruby
mockra has joined #ruby
zarubin has joined #ruby
<Pip> Most people learn Ruby because of Rails programming, right?
emmanuelux has joined #ruby
zarubin has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
cousine has joined #ruby
Virunga has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 264 seconds]
saispo has joined #ruby
asteve has joined #ruby
cantonic has quit [Quit: cantonic]
skepti has quit [Quit: Leaving]
skepti has joined #ruby
saispo has quit [Ping timeout: 260 seconds]
koshii has quit [Ping timeout: 240 seconds]
dbck has joined #ruby
skepti has quit [Client Quit]
robbyoconnor has quit [Read error: Connection reset by peer]
elico has quit [Ping timeout: 256 seconds]
brendan- has joined #ruby
punkrawkR^Home has joined #ruby
pskosinski has joined #ruby
mmokrysz has joined #ruby
mmokrysz is now known as _46bit
cantonic has joined #ruby
cousine has quit [Remote host closed the connection]
rvmeier has joined #ruby
<pmros> Pip, maybe
<pmros> but ruby is more than Rails
<pmros> I think rails is good and bad for ruby world
<pmros> sometimes rails eclipse ruby
<pmros> *eclipses
_46bit has left #ruby [#ruby]
slainer68 has joined #ruby
Vivid_ has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 276 seconds]
Russell^^ has joined #ruby
picca has left #ruby ["Textual IRC Client: www.textualapp.com"]
allsystemsarego has joined #ruby
asteve has quit [Changing host]
asteve has joined #ruby
DrCode has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
dave has joined #ruby
dave is now known as Guest13889
artnez has quit [Quit: artnez]
Guest13889 has quit [Client Quit]
horofox has joined #ruby
skepti has joined #ruby
sepp2k has joined #ruby
bwlang has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 272 seconds]
nixmaniack has quit [Quit: ""]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
lolcathost has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
Takehiro has quit [Read error: Connection reset by peer]
gener1c has quit [Remote host closed the connection]
skepti has quit [Remote host closed the connection]
subbyyy has joined #ruby
Takehiro has joined #ruby
rakl has quit [Quit: sleeping]
blaxter has quit [Quit: foo]
jds has quit [Remote host closed the connection]
saispo has joined #ruby
jds has joined #ruby
TomRone has joined #ruby
koshii has joined #ruby
mockra has joined #ruby
skepti has joined #ruby
classix has quit [Ping timeout: 260 seconds]
TheFuzzball has joined #ruby
<pmros> _why's site is back up (whytheluckystiff.net)
<pmros> will _why come back?
Hanmac has quit [Read error: Connection reset by peer]
koshii has quit [Ping timeout: 240 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
mockra has quit [Ping timeout: 248 seconds]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
robbyoconnor has joined #ruby
lolcathost has joined #ruby
billy_ran_away has joined #ruby
rubyman has quit [Quit: Page closed]
koshii has joined #ruby
alexander__ has joined #ruby
yonahw has quit [Quit: WeeChat 0.3.7]
nemesit has quit [Quit: Leaving...]
alexander__ has left #ruby [#ruby]
root has joined #ruby
root is now known as Guest97344
<Guest97344> hello
<Guest97344> getting error while installing locatunnel through gem please help http://dpaste.com/hold/866035/
lkba has joined #ruby
Guest97344 is now known as Sail
<Sail> getting error while installing locatunnel through gem please help http://dpaste.com/hold/866035/
|Monie| has joined #ruby
saispo has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
Jamone has quit [Ping timeout: 255 seconds]
elaptics`away is now known as elaptics
DrCode has quit [Quit: ZNC - http://znc.in]
niklasb has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
DrCode has joined #ruby
Myconix has quit [Ping timeout: 260 seconds]
Sail has quit [Quit: leaving]
pmros has quit [Ping timeout: 272 seconds]
slainer68 has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
horrror has quit [Quit: horrror]
Dann1 has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
solidoodlesuppor has joined #ruby
Takehiro has joined #ruby
clooth has quit [Quit: clooth]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
lolcathost has joined #ruby
pmros has joined #ruby
xemu has joined #ruby
skepti_ has joined #ruby
nicobrevin has joined #ruby
nanothief has quit [Ping timeout: 260 seconds]
skepti has quit [Remote host closed the connection]
skepti_ has quit [Remote host closed the connection]
skepti has joined #ruby
Virunga has joined #ruby
nyuszika7h has quit [Ping timeout: 245 seconds]
jds has quit [Remote host closed the connection]
nyuszika7h has joined #ruby
beiter has joined #ruby
DaZ_ has joined #ruby
DaZ has quit [Ping timeout: 248 seconds]
DaZ_ is now known as DaZ
koshii has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ale` has joined #ruby
adambeynon has quit [Ping timeout: 240 seconds]
Dann2 has joined #ruby
mockra has joined #ruby
jds has joined #ruby
mrmist has quit [Remote host closed the connection]
Dann1 has quit [Ping timeout: 256 seconds]
clooth has joined #ruby
skep has joined #ruby
skep has quit [Read error: Connection reset by peer]
<ale`> Hi, in the process of learning ruby I am coding a simple Rpn calculator. Could someone give me some advice about my coding style? I would like to do things "the ruby way" :-) The code is at https://gist.github.com/4467556
mockra has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
Vivid_ has joined #ruby
Dann2 has quit [Ping timeout: 256 seconds]
<banister`sleep> ale`: not too bad
hamed_r has quit [Quit: Leaving]
griffindy has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
nemesit has joined #ruby
landho has quit [Ping timeout: 272 seconds]
<yxhuvud> ale: there are a few inconsistencies when it comes to formatting and indentation.
<yxhuvud> personally I'd not use @@variables (and instead use constants or instance variables on the class itself), but I suppose that is a matter of taste
timonv has joined #ruby
<workmad3> yxhuvud: there is a difference in behaviour betweer class vars and class ivars
<workmad3> yxhuvud: so it's not entirely down to just taste :)
kzar has joined #ruby
<yxhuvud> workmad3: yes, but usually the difference is unwanted.
timonv has quit [Remote host closed the connection]
<kzar> Anyone used whiskey_disk to deploy to a server running rvm? I can't get the combo to play nicely on debian
<workmad3> yxhuvud: well, I tend to find that what is normally desired is the behaviour of class ivars rather than class vars :)
<workmad3> ale`: str[(1..str.length - 2)] <-- it's not particularly clear why you're doing this btw
sayan_ has joined #ruby
<yxhuvud> I'd probably also write defop(:neg) { |x| -x } as defop :neg { |x| -x }. You have a nice declarative DSL there and might as well make it as clean as possible.
timonv has joined #ruby
tk__ has quit [Quit: ばいばい]
DrCode has quit [Remote host closed the connection]
<yxhuvud> or hmm. Would that have to be do .. end to get the block to associate correctly with the method? never mind then :)
<workmad3> ale`: if the codebase grew much more, I'd personally be tempted to split the DSL methods into a separate file (and maybe into a separate module to make it clear there's a divide there)
dkd has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
sayan_ has quit [Client Quit]
lateau has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
_nitti has joined #ruby
cajone has joined #ruby
Nisstyre-laptop has joined #ruby
TheEmpty_ has joined #ruby
rvmeier has quit [Quit: Leaving]
pcarrier has quit []
mercwithamouth has quit [Ping timeout: 240 seconds]
thone has joined #ruby
TheEmpty has quit [Ping timeout: 272 seconds]
Myconix has joined #ruby
lateau has joined #ruby
thone_ has quit [Ping timeout: 260 seconds]
DrCode has quit [Ping timeout: 276 seconds]
DrCode has joined #ruby
jds has quit [Remote host closed the connection]
mpfundstein has joined #ruby
jds has joined #ruby
Astralum has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
jds has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
skep has joined #ruby
Pip has quit [Quit: Leaving]
browndawg has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
timonv has quit [Read error: Operation timed out]
dagnachew has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
Xeago has joined #ruby
skepti has quit [Read error: Connection reset by peer]
browndawg has quit [Client Quit]
beiter has quit [Quit: beiter]
mockra has joined #ruby
lesnik_ has joined #ruby
<lesnik_> Hi!
<lesnik_> I would like to create a gem which after install will be available from console, just like for example rails.
<lesnik_> can you give me a hint how to do this?
<mpfundstein> you would have to link to /usr/bin or /usr/local/bin of your app and put a shebang in front so that linnux knows it has to use ruby to interpret it
TerabyteST has joined #ruby
<mpfundstein> for examle rails will probably be somewhere in /usr/bin or /usr/locals/bin
<mpfundstein> when you then run rails, linux looks there if it can find a process named rails and execute it
<banister`sleep> lesnik_: learn about the executable option on the gemspec
<banister`sleep> mpfundstein: it's not as complicated as that
<banister`sleep> lesnik_: let me link you pry's gemspec
Elhu has joined #ruby
<banister`sleep> lesnik_: then you just have to put a ruby file (without an extension, typically) in bin/ directory of yoru gem: https://github.com/pry/pry/blob/master/bin/pry
<shevy> hmm is there no hash.reverse? that makes all values into keys and all keys into values??
mockra has quit [Ping timeout: 276 seconds]
xAndy is now known as xandy
<lesnik_> thank you
<skep> lesnik_: take a look at https://github.com/mdub/clamp if you want to build a fancy pant CLI utility
Xeago has quit [Read error: Connection reset by peer]
Elhu has quit [Client Quit]
timonv has joined #ruby
<banister`sleep> shevy: Hash[hash.to_a.map { |k, v| [v, k] }]
<lesnik_> skep: thanks, will check this
gener1c has joined #ruby
gener1c has joined #ruby
gener1c has quit [Changing host]
maycon_ has quit [Changing host]
maycon_ has joined #ruby
maycon_ is now known as maycon
<TerabyteST> hello
<TerabyteST> a.merge| { status: 'error', errorMessage: "Couldn't find a Playlist with ID '#{params[:id]}'!" }
<TerabyteST> ArgumentError: wrong number of arguments(0 for 1)
<TerabyteST> what could be wrong here?
<TerabyteST> (i'm a newbie)
<nmeum> is there a better way to check if a string includes multiple patterns? For instance a better way to do this: if my_string.include? "foo" || my_string.include? "bar" || my_string.include? "baz"
Elhu has joined #ruby
<TerabyteST> i'm not sure but maybe you could use a regex
<nmeum> hm
<nmeum> I would prefer not to do this
<TerabyteST> i see
<skep> shevy: try my_hash.invert
<banister`sleep> skep: nice find
<banister`sleep> didnt know about that
<TerabyteST> hmm
<TerabyteST> the error i get now is
<TerabyteST> a.merge! { status: 'error', errorMessage: "Couldn't find a Playlist with ID test" }
<TerabyteST> SyntaxError: unexpected ',', expecting '}'
Jake232 has joined #ruby
<banister`sleep> nmeum: ["foo", "bar", "baz"].any? { |v| my_string.include?(v) }
<TerabyteST> a
timonv has quit [Remote host closed the connection]
<TerabyteST> oops
<nmeum> banister`sleep: isn
<nmeum> oops
<TerabyteST> ah, apparently I had to wrap it in parenthesis
swex_ has joined #ruby
swex has quit [Ping timeout: 240 seconds]
jds has joined #ruby
niklasb has joined #ruby
horrror has joined #ruby
<TerabyteST> is it a good idea to merge two arrays with
<TerabyteST> [1,2]|[3,4]
dsabanin has joined #ruby
<TerabyteST> actually I'd need that to modify the first one
horrror has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 260 seconds]
lesnik_ has quit [Ping timeout: 240 seconds]
<TerabyteST> how would i do that?
c3vin has joined #ruby
<canton7> terabytest, yeah, it's interpreted as a block otherwise. You could do a.merge!(status: 'error', ...), and ruby will infer the hash...
<c3vin> can anyone assit with ruby in cygwin?
<TerabyteST> canton7: ah great
<c3vin> /usr/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
<c3vin> You have to install development tools first.
<canton7> c3vin, and have you installed development tools?
<c3vin> not yet
<canton7> try it ;) it'll help
<c3vin> trying to figure out how to best do that in cygwin
<c3vin> link?
<c3vin> i'm working in windows with cygwin
<c3vin> btw :)
<canton7> https://github.com/oneclick/rubyinstaller/wiki/development-kit probably. not sure if there's a link more related to cygwin
<c3vin> ty canton7
<wmoxam> c3vin: why cygwin?
<canton7> terabytest, what exactly is your question? you, well, modify the first one ;)
<TerabyteST> I think I was looking for Array#concat
<TerabyteST> which seems to modify the object it's called on
browndawg has joined #ruby
<TerabyteST> i basically need to add the contents of an array into another one to form one big array
<canton7> terabytest, there's also #push and #<<
alvaro_o__ has joined #ruby
<TerabyteST> wouldn't #push create an array into the array?
<TerabyteST> [19] pry(main)> [1,2].push [3,4]
<TerabyteST> => [1, 2, [3, 4]]
<shevy> skep whoa
<TerabyteST> like that
<canton7> [1, 2].push(*[3, 4])
blaxter has joined #ruby
<shevy> skep you saved me a few lines of code with that, thanks!
<banister`sleep> terabytest: btw, with pry you culd have just gone: gist -i 19
<skep> shevy: np :)
<banister`sleep> terabytest: it'll give you the url of the gist can u can paste that here
Elhu has quit [Quit: Computer has gone to sleep.]
<TerabyteST> banister`sleep: that's awesome :D
<canton7> terabytest, although #concat is neater here I'll agree
<banister`sleep> terabytest: yeah, u can also gist a range of input lines with: gist -i 1...10
<banister`sleep> terabytest: or gist methods with: gist -m YourClass#your_method
<banister`sleep> etc
<TerabyteST> pretty cool
<TerabyteST> gonna use it in the future
<wmoxam> c3vin: fyi if you don't have any other requirement to use cygwin, then using pik on windows is the way top go if you want to setup a ruby dev env on windows
chussenot has quit [Quit: chussenot]
AndChat| has joined #ruby
Xeago has joined #ruby
jds__ has joined #ruby
alvaro_o_ has quit [Ping timeout: 264 seconds]
<wmoxam> c3vin: you can get it with http://rubyinstaller.org
jds has quit [Ping timeout: 248 seconds]
thisirs has joined #ruby
<TerabyteST> a-ha I think I did it!
<TerabyteST> by the way what I'm doing is concatenate multiple pages of json results from the Youtube API
<c3vin> wmoxam, pik?
<c3vin> hmm
Banistergalaxy has quit [Ping timeout: 264 seconds]
<c3vin> I'm trying to get vagrant + veewee up and running
Nisstyre-laptop has quit [Quit: Leaving]
slainer68 has joined #ruby
dwnichols has joined #ruby
<TerabyteST> ruby is so addicting
<TerabyteST> i should be doing homework right now :(
<TerabyteST> I can't put it down
niklasb has quit [Ping timeout: 252 seconds]
lolcathost has quit [Ping timeout: 255 seconds]
dsabanin has quit [Quit: Leaving...]
slainer68 has quit [Ping timeout: 264 seconds]
jds__ has quit [Remote host closed the connection]
dsabanin has joined #ruby
r0bby has joined #ruby
Dann1 has joined #ruby
dnyy has quit [Remote host closed the connection]
dagnachew has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 272 seconds]
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
_nitti_ has joined #ruby
larissa has joined #ruby
dlsa has quit [Quit: Leaving.]
lenovodroid has joined #ruby
megha has quit [Quit: WeeChat 0.3.9.2]
hack has joined #ruby
Elhu has joined #ruby
hack is now known as Guest17317
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
arturaz has joined #ruby
eroomde has joined #ruby
DrCode has quit [Remote host closed the connection]
classix has joined #ruby
DrCode has joined #ruby
banister`sleep has quit [Ping timeout: 272 seconds]
<mpfundstein> haha very good
mrdtt has joined #ruby
deadlytoah has joined #ruby
_nitti_ has quit [Ping timeout: 240 seconds]
<TerabyteST> :)
Guest17317 is now known as hack
<TerabyteST> it's gonna be a thing to explore youtube playlists
hack has quit [Changing host]
hack has joined #ruby
cid404 has joined #ruby
ale` has quit [Remote host closed the connection]
ale` has joined #ruby
DrCode has quit [Remote host closed the connection]
<ale`> yxhuvud, workmad3: sorry for the delay, and thanks for your comments! About the str[(1..str.length - 2)], I am expecting the arrays to be input as '(1,2,3,4)', so I am chopping off the parens before parsing the comma-separated values. I didn't like that piece of code either, is there any better way to do that?
<apeiros> str[(1..str.length - 2)] --> str[1..-3]
Xeago has quit [Remote host closed the connection]
<apeiros> ale`: your input is '(<digit>,…)' and you want the digits?
<apeiros> .scan(/\d+/) is what I'd do then
mockra has joined #ruby
r0bby_ has joined #ruby
<ale`> apeiros: might as well be Floats, or Complex numbers if you add them
nomenkun has joined #ruby
hack has quit [Quit: WeeChat 0.3.9.2]
pencilcheck has joined #ruby
Choobie has joined #ruby
hack has joined #ruby
<apeiros> k
<Norrin> what's the difference between the core library api and the standard library api?
<Norrin> or rather, why a distinction between the two?
hmans has joined #ruby
<Hanmac> Norrin: stdlib need to be required
Elhu has quit [Quit: Computer has gone to sleep.]
<Norrin> i see
pskosinski has quit [Quit: Learn Life's Little Lessons]
<Norrin> Hanmac, thank you!
banister`sleep has joined #ruby
<ale`> apeiros: the "parser" is crap, it wouldn't event work for arrays inside arrays.. It's basically a lexer pretending to be a parser
DrCode has joined #ruby
pen has quit [Ping timeout: 248 seconds]
r0bby has quit [Ping timeout: 256 seconds]
jds has joined #ruby
mockra has quit [Ping timeout: 240 seconds]
<shevy> hmm am I the only one to dislike the class vs. module distinction? I have a bunch of constants, in a class... now I realize, I need to make them a module, so that I can include a bunch of constants, in order to avoid namespacing those constants :(
<arturaz> shevy, probably
<arturaz> mixing in classes does not make sense
postmodern has quit [Quit: Leaving]
<Norrin> right
blacktulip has joined #ruby
<Norrin> in other C based languages, you wouldn't be mixing-in a class, you'd be including a header, and the constants wouldn't really be part of a class
<Norrin> that question might have helped me understand mixing-in a little better though
<shevy> yeah
<shevy> well I guess I kind of have to put all constants into a module
IceDragon has joined #ruby
braoru has quit [Ping timeout: 255 seconds]
koshii has joined #ruby
<amaya_the> hi guys
mercwithamouth has quit [Ping timeout: 276 seconds]
<IceDragon> hello
<amaya_the> Are you happy with programming?
dsabanin has quit [Quit: Leaving...]
<IceDragon> yus
<amaya_the> There are always problems.
<IceDragon> indeed
<IceDragon> and many ways to solve them :)
<arturaz> if you use some languages you have less problems than with other
<arturaz> ;)
<IceDragon> true
<IceDragon> some are better for a particular job vs others
<arturaz> yup
jds has quit [Ping timeout: 260 seconds]
<shevy> amaya_the I am happy with the creative part of programming, fixing bugs sucks
<skep> what he said :)
<IceDragon> the most fun part, is when you look back at your old code, and say "damn I sucked..."
<amaya_the> shevy : yeah
<shevy> IceDragon :(
baphled has joined #ruby
<shevy> in some situations it comes down to style
<shevy> like 2 space vs 4 space vs tab
koshii has quit [Ping timeout: 240 seconds]
dsabanin has joined #ruby
<shevy> in other situations it is preference
apeiros has quit [Remote host closed the connection]
<shevy> I like to have methods like run() or reset() for my objects
<Dann1> tab indent is faster
<amaya_the> Some times I feel sick with logical thinking.
<IceDragon> I prefer spaces.
koshii has joined #ruby
<amaya_the> I am not a bot.
<shevy> Dann1 I used to use tabs too, then I realized that I mix comments with tabbed code, that was bad
<shevy> amaya_the then use creative thinking
<arturaz> amaya_the, if programming doesn't make you happy - don't do it
<shevy> you have the routine patterns available to solve a task anyway, that is how a machine can think. but as a human you can also think lateral about a problem
sayan has quit [Read error: Connection reset by peer]
<amaya_the> I feel happy when I make some progress.
hotovson has quit [Remote host closed the connection]
_nitti has joined #ruby
koshii has quit [Ping timeout: 252 seconds]
<arturaz> amaya_the, are you just starting?
<amaya_the> No
Rydefalk has quit [Read error: Connection reset by peer]
<arturaz> amaya_the, what frustrates you most?
Rydefalk has joined #ruby
<amaya_the> To understand codes.
<arturaz> huh?
matchaw_ has joined #ruby
<amaya_the> I want to make some creative game function ,but I must understand the codes very well.
<arturaz> amaya_the, what do you mean by "the codes"?
<arturaz> the source code?
<amaya_the> a ruby script system.
<amaya_the> This system define the logical functions of the game.
Daman has quit [Quit: u]
slainer68 has joined #ruby
maletor has joined #ruby
matchaw___ has joined #ruby
atno has quit [Read error: Connection reset by peer]
matchaw_ has quit [Ping timeout: 272 seconds]
Elhu has joined #ruby
dkd has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 276 seconds]
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
<shevy> amaya_the you write this yourself or you look at someone else's code
ijverig has quit [Quit: ijverig]
lenovodroid has quit [Ping timeout: 260 seconds]
<shevy> this was supposed to be a question :)
AndChat| has quit [Ping timeout: 240 seconds]
ijverig has joined #ruby
ijverig has quit [Excess Flood]
<shevy> it can be extremely hard to understand code written by someone else
<amaya_the> shevy : thank you .
braoru has joined #ruby
baroquebobcat has joined #ruby
<Dann1> Remember kids, always comment your code!
<Hanmac> shevy thats also true is someone else is yourself from the past :D
Banistergalaxy has joined #ruby
<shevy> Hanmac in some ways
<shevy> it depends on how difficult some code is
vlad_starkov has joined #ruby
<shevy> if it uses lots of eval's and send and method_missing and hooks and whatnot
<shevy> or $bla's
<shevy> and thousand of procs
vlad_sta_ has joined #ruby
cirwin has joined #ruby
deadlytoah has quit [Ping timeout: 246 seconds]
templaedhel has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
vlad_st__ has joined #ruby
workmad3 has joined #ruby
vlad_sta_ has quit [Ping timeout: 276 seconds]
_nitti_ has joined #ruby
delinquentme has joined #ruby
zodiak has quit [Read error: Connection reset by peer]
_nitti_ has quit [Remote host closed the connection]
zv470 has joined #ruby
zodiak has joined #ruby
<IceDragon> Dann1: And don't over comment on every little detail
dsabanin has quit [Quit: Leaving...]
_nitti_ has joined #ruby
<Dann1> You know what I mean.
<IceDragon> 40 lines of comment to 3 lines of code: wth?
<Dann1> Don't comment to the point where more than 15% of your code is comments
<Dann1> Icedragon: ASCII art
<IceDragon> :O I do a bit of ASCII art
<IceDragon> But its never in my code
<IceDragon> Only in the README
vlad_st__ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby
fir_ed has quit [Ping timeout: 272 seconds]
pac1 has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
_nitti_ has quit [Ping timeout: 272 seconds]
TheFuzzball has joined #ruby
pskosinski has joined #ruby
tvw has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
<Dann1> Well
atno has joined #ruby
<Dann1> For things like one-file code snippets
<Dann1> I find ASCII art at the top usually
kayloos has joined #ruby
catphish has joined #ruby
<IceDragon> derp
thisirs has quit [Remote host closed the connection]
<IceDragon> snippets for me usually evolve into large code bases
tommyvyo has joined #ruby
jslowe has joined #ruby
sepp2k1 has joined #ruby
eroomde has left #ruby [#ruby]
thisirs has joined #ruby
<Dann1> I usually forget my snippets
sepp2k has quit [Ping timeout: 260 seconds]
Iszak has joined #ruby
<Dann1> Then when I need them, I have to rebuild them
<Dann1> It's annoying, but
<Dann1> They come out better at the second time.
Grieg has quit [Quit: laterz! :D]
mockra has joined #ruby
<IceDragon> I'm actually missing a very good snippet...
blaxter has quit [Quit: foo]
<Dann1> What for?
<IceDragon> It was a Array#sync_sort
<IceDragon> >_> I dont remember exactly how it worked
<IceDragon> but the guy I did it for, said it worked perfectly
mengu_ has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
eldariof has joined #ruby
<IceDragon> I think it sorted the target array based on the source array
mengu has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 248 seconds]
_46bit has joined #ruby
IcyDragon has joined #ruby
mpfundstein has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
amaya_the has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]]
r3nrut has joined #ruby
gener1c has quit [Ping timeout: 240 seconds]
Pip has joined #ruby
dbck has quit [Quit: Be back later]
<r3nrut> morning
<Pip> [1,2,3][3] => ?
<IcyDragon> nil
<IcyDragon> >> puts [1, 2, 3][3]
<eval-in> IcyDragon: Output: "\n" (http://eval.in/6047)
<Pip> a = [1,2,3] a[3] => ?
<IcyDragon> nil
<Pip> That's not true
<IcyDragon> >> a = [1, 2, 3]; print a[3]
gener1c has joined #ruby
<eval-in> IcyDragon: Output: "" (http://eval.in/6048)
<IcyDragon> >_>
<Hanmac> >> a = [1, 2, 3]; p a[3]
<eval-in> Hanmac: Output: "nil\n" (http://eval.in/6049)
<Pip> Okay, sorry
<Pip> So puts a[3] => ?
<IcyDragon> >> a = [1, 2, 3]; puts a[3].inspect
<eval-in> IcyDragon: Output: "nil\n" (http://eval.in/6050)
<Hanmac> it its nil, but puts calls the to_s method and nil.to_s is ""
<IcyDragon> :O pretty much p
templaedhel has quit [Quit: Leaving...]
timonv has joined #ruby
mrmist has joined #ruby
<r3nrut> why are you trying to print index 3 when it's not there?
<IcyDragon> >> a = [1, 2, 3]; p a[3].last
<eval-in> IcyDragon: Output: "/tmp/execpad-7af4481f51dd/source-7af4481f51dd:1:in `<main>': undefined method `last' for nil:NilClass (NoMethodError)\n" (http://eval.in/6051)
<IcyDragon> >> a = [1, 2, 3]; p a.last
<eval-in> IcyDragon: Output: "3\n" (http://eval.in/6052)
<IcyDragon> :x
pmros has quit [Quit: Konversation terminated!]
tommyvyo has quit [Quit: Computer has gone to sleep.]
gener1c has quit [Ping timeout: 248 seconds]
Vert has quit [Remote host closed the connection]
gener1c has joined #ruby
<r3nrut> if you don't want to the output to be =>nil you gotta make the value an object. like var = a.last
andrewhl has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
<r3nrut> >> a = [1,2,3,]; b = a.last
<eval-in> r3nrut: Output: "" (http://eval.in/6053)
baphled has joined #ruby
<Pip> a.inspect[0] => ?
<Pip> :D
jonahR has joined #ruby
<IcyDragon> first character from the inspect string
<IcyDragon> >> p [1, 2, 3].inspect[0]
<eval-in> IcyDragon: Output: "\"[\"\n" (http://eval.in/6054)
chrishunt has joined #ruby
<r3nrut> b.inpsect
<Pip> "fasdfas'.to_i => ?
cid404 has quit [Quit: cid404]
<r3nrut> >> a = [1,2,3]; b = a.last b.inspect
<eval-in> r3nrut: Output: "/tmp/execpad-56b6b188deb5/source-56b6b188deb5:1:in `last': can't convert String into Integer (TypeError)\n\tfrom /tmp/execpad-56b6b188deb5/source-56b6b188deb5:1:in `<main>'\n" (http://eval.in/6055)
<TerabyteST> wow, an entire playlist from the youtube api is like 600kb
<canton7> >> a = [1,2,3]; b = a.last; b.inspect
<eval-in> canton7: Output: "" (http://eval.in/6056)
<r3nrut> wtf
atadesk has joined #ruby
<TerabyteST> oh cool, eval-in biot
<TerabyteST> bot*
<TerabyteST> >> 1 + 2
<eval-in> terabytest: Output: "" (http://eval.in/6059)
<TerabyteST> :(
<canton7> >> p 1 + 2
<eval-in> canton7: Output: "3\n" (http://eval.in/6060)
<TerabyteST> heh
chrishunt has quit [Client Quit]
tvw has quit [Remote host closed the connection]
<canton7> got there in the end!
apeiros_ has joined #ruby
<arturaz> >> [1,2,3,4].reverse
<eval-in> arturaz: Output: "" (http://eval.in/6061)
<TerabyteST> i know the guy who made eval-in :D
<Dann1> We need a bot to output Ruby code we feed it.
<TerabyteST> what do you mean?
<TerabyteST> p 'hello world!'*2
<TerabyteST> oops
<TerabyteST> >>p 'Hello world!'*2
<eval-in> terabytest: Output: "\"Hello world!Hello world!\"\n" (http://eval.in/6062)
<Dann1> Like:
<Dann1> !r <ruby>
<TerabyteST> and what would it do?
<Dann1> Obviously, it would have to be rate-limited
<Dann1> It would print the output if the input is valid Ruby
<Pip> '3 apples'.to_i => ?
<TerabyteST> oh
<canton7> Dann1, I think there was something like that in the past
graspee has joined #ruby
<canton7> Pip, is that a question?
ebouchut has joined #ruby
<IcyDragon> 0
<IcyDragon> >> p '3 Apples'.to_i
<eval-in> IcyDragon: Output: "3\n" (http://eval.in/6063)
<IcyDragon> :x
<IcyDragon> YOUR CRAPPING ME
<Pip> canton7, Not really
<r3nrut> gotta prevent people from dropping in infinite loops though
<Dann1> Exactly
<Dann1> I said:
apeiros_ has quit [Ping timeout: 256 seconds]
<Dann1> 'Obviously, it would have to be rate-limited'
<r3nrut> :p right
<IcyDragon> >> p RUBY_VERSION
<eval-in> IcyDragon: Output: "\"1.9.3\"\n" (http://eval.in/6064)
<IcyDragon> >_>
<Pip> What does p do?
<graspee> open up irb or pry and find out
<Dann1> I think this sort of bot would have to completely block 'loop'
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<Dann1> Unrelated: http://esolangs.org/wiki/ORK
<Pip> print method without understanding escape ?
<canton7> Dann1, seems a little bit unfair to block 'loop', which might have a perfectly valid 'break' after 2 iterations :P Execution timer methinks
MattRb has joined #ruby
<canton7> `p obj` writes `obj.inspect` to stdout
Hanmac has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
Bottesque has joined #ruby
mercwithamouth has joined #ruby
<Pip> Module Kernel is the Ruby core?
baroquebobcat has quit [Quit: baroquebobcat]
timonv has quit [Remote host closed the connection]
<Hanmac> Pip look into www.ruby-doc.org
<canton7> it's not quite that simple...
<Dann1> Yes Bottesque finally connected
<Dann1> Also: Obviously, it would have to be rate-limited
<Dann1> Woops
vlad_sta_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<Dann1> My keyboard refuses to use Ctrl+C
Dann1 has quit [Quit: Dann1]
<graspee> that's weird. do control and c both work on their own?
bluOxigen has quit [Ping timeout: 260 seconds]
<IcyDragon> check your Shortcuts
Dann1 has joined #ruby
<Dann1> Hehe
nazty has quit [Ping timeout: 260 seconds]
hack is now known as megha
<Dann1> Apparently Bottesque can still log the messages she's in after I leave
<Dann1> I'm checking the Shortcuts now
vlad_starkov has joined #ruby
<Dann1> Yup
<Dann1> Yes now it works
<IcyDragon> :)
<Dann1> Thanks :D
<IcyDragon> :P I had similar problems with my linux
horrror has joined #ruby
<horrror> Hello guys
<horrror> Does anybody have an experience with neo4j.rb gem ?
<Dann1> The 'e[<number>m' things aren't working, can't seem to figure out why
<canton7> Dann1, that's 'cos you're using windows cmd
<canton7> and those are shell escape codes
<Dann1> Ah
<Dann1> Damn
tvw has joined #ruby
<IcyDragon> its painful I know
<canton7> win32console allows you to use them iirc, and does a very hacky fix
<canton7> but you need to include that gem in your app, etc etc
<Dann1> I know
<Dann1> I did
bluOxigen has joined #ruby
<canton7> ooh, ansicon seems to be the replacement
blueOxigen has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Dann1> Ideas?
maycon has quit [Quit: Saindo]
horrror has quit [Client Quit]
wroathe has joined #ruby
Bottesque has quit [Read error: Connection reset by peer]
<canton7> Dann1, you haven't included WIn32::Console::ANSI ?
Dreamer3 has quit [Ping timeout: 252 seconds]
elico has joined #ruby
Bottesque has joined #ruby
<IcyDragon> Any ideas why opengl would be crapping out errors like this: wrong ELF class: ELFCLASS32
bluOxigen has quit [Ping timeout: 252 seconds]
r3nrut has quit [Ping timeout: 248 seconds]
Dreamer3 has joined #ruby
Bottesque has quit [Read error: Connection reset by peer]
Bottesque has joined #ruby
<cirwin> IcyDragon: it sounds like it's loading the 32bit .so file instead of the 64bit one
medik has joined #ruby
<IcyDragon> I'm running a Multilib sys.
<IcyDragon> >: I want it to load the 64bit ones!
itnomad has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Remote host closed the connection]
<TerabyteST> File.open snapshot_path, 'w' { |file| file.write string_json } if settings.development?
<TerabyteST> so beautiful
ebouchut has quit [Quit: This computer has gone to sleep]
<TerabyteST> wait it doesn't work lol
<Hanmac> terabytest: what about File.write(snapshot_path, string_json) if settings.development?
tommyvyo has quit [Quit: Computer has gone to sleep.]
<apeiros_> File.wr…
<apeiros_> haaaaanmaaaaaac!
<TerabyteST> does that exist? awesome
<IcyDragon> ninja'd
ananthakumaran has quit [Quit: Leaving.]
<swarley> ermahgerd
<Hanmac> IcyDragon: how did you try to load the opengl lib? maybe you picked the wrong path?
<TerabyteST> yay it worked
<IcyDragon> :O I just installed the ruby-opengl2 gem
<IcyDragon> and tried one of the tests
<Dann1> !bacon
<Bottesque> HAIL BACON SUCKAS
<Dann1> Well atleast my front-end works.
<IcyDragon> :O BACON?
<IcyDragon> Can I haz?
<Dann1> Now to dedicate countles hours to bac- YES
crackfu has joined #ruby
WilfredTheGreat has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
elico has quit [Ping timeout: 265 seconds]
MattRb has quit [Quit: MattRb]
maletor has quit [Quit: Computer has gone to sleep.]
ebouchut has joined #ruby
<alex20032> Hi, is there is someone here that was online like 13 hour ago?
<graspee> i remember having real trouble getting an opengl gem to work. i tried quite a few and ended up finding one that had been updated by some guy or other on his personal website
<graspee> which did work
<Dann1> Uhm
<Dann1> I'm getting annoyed so..
maletor has joined #ruby
<Dann1> How do I use a .iso in a VM?
<Dann1> https://join.me/717-195-051 Look at me screen
r3nrut has joined #ruby
cantonic has quit [Ping timeout: 248 seconds]
<emocakes> put that porn away Dann1
mockra has joined #ruby
n00b_dust has joined #ruby
<Dann1> lol
lolcathost has joined #ruby
n00b_dust has left #ruby [#ruby]
<Dann1> mouse shortcuts ftw
hmans has quit [Quit: Linkinus - http://linkinus.com]
<emocakes> sorry cant help
<emocakes> you play league of legends
<xargoon> this copy of windows is not genuine?
<IcyDragon> Dann1: just mount it on one of the virtual drives
<Dann1> Ahh
<emocakes> pokemon?!
<emocakes> and yah, its easy dann1
<Dann1> Uhh
<emocakes> have you googled it?
<Dann1> Nope
<Dann1> Didn't even bother
<emocakes> ..
mrdtt has quit [Quit: mrdtt]
<IcyDragon> Go into your VMs Settings, Storage
<IcyDragon> add a IDE controller (DVD Rom or something)
<IcyDragon> :O And then select stuff
headius has joined #ruby
jduan1981 has joined #ruby
<Dann1> Alright, I think I got this now
<IcyDragon> Hanmac: I've edited the Rakefiles to point to my 64bit libs and now recompiling to see what happens
snearch has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
<Hanmac> icyDragon imo it should not be needed .... i think there must me something wrong with that lib
<IcyDragon> my libs are located in /usr/lib/ rather than /usr/local/lib
<IcyDragon> and now it works :)
<IcyDragon> and now it core dumps...
<IcyDragon> >_> I'm screwed...
<Dann1> Meanwhile the ubuntu image is being redownloaded for the third time, I'd like to know if !bacon is enough food in the command set for Bottesque.
pskosinski has quit [Quit: Learn Life's Little Lessons]
mpfundstein has joined #ruby
<IcyDragon> !cookies
<IcyDragon> you need cookies man
<IcyDragon> >_>
<Dann1> Okay, anything else?
apeiros_ has quit [Remote host closed the connection]
<Muz> Does your bot actually do anything useful or interesting?
<Dann1> Nope
<Dann1> It's purpose is to avoid doing that
<Dann1> Otherwise, chat users would spam it
<canton7> >> p 1 + 2
<eval-in> canton7: Output: "3\n" (http://eval.in/6065)
<canton7> cool, they're not both responding to the same trigger :P
daslicious has joined #ruby
<TerabyteST> :D
<canton7> the #git bot has a ton of triggers, and it's incredibly useful and never spammed
<TerabyteST> sinatra + coffeescript
<canton7> cool!
<IcyDragon> :)
<TerabyteST> i'm not sure i'm doing the sinatra part completely right
<TerabyteST> i'm still a newbie to ruby
<IcyDragon> Hanmac: any suggestions, its still linking the 32bit libs
x82_nicole has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
jekotia has joined #ruby
<Hanmac> icyDragon when you do gem isnstall, what version does it pick?
<Pip> I love Ruby, don't you?
<IcyDragon> not sure.
<Pip> Let's hear it for Java?
<IcyDragon> :O I'll try reinstalling see what takes place
<Pip> <crickets chirp in the distance>
Tomasso has joined #ruby
<Hanmac> IcyDragon or do "gem list"
<IcyDragon> ruby-opengl2 (0.60.6)
<Pip> Is Apple computer the best platform to develop in Ruby?
<IcyDragon> no
<IcyDragon> >_> Linux is
<IcyDragon> iBrick
<Pip> stop what from what?
<IcyDragon> Apple stuff makes good door stoppers :D
apeiros_ has joined #ruby
huoxito has joined #ruby
<Pip> That's why I don't have an apple computer
<IcyDragon> >NoBrainer.new
<Pip> lol
<Pip> Good
<ddd> macs are just as good for developing on as Linux is. The only platform with serious issues is Windows and that has to do with path naming conventions, line ending storage, and occasionally the filesystem type.
gener1c has quit [Remote host closed the connection]
<IcyDragon> hi NTFS
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
megha has quit [Ping timeout: 272 seconds]
pskosinski has joined #ruby
yale has quit [Read error: Connection reset by peer]
yale has joined #ruby
AllStruck has quit [Read error: Operation timed out]
pskosinski has quit [Client Quit]
AllStruck has joined #ruby
r3nrut has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
Astral has joined #ruby
aef has quit [Remote host closed the connection]
Astral is now known as Guest6444
Guest6444 is now known as Astralum
blacktulip has quit [Remote host closed the connection]
pskosinski has joined #ruby
<yfeldblum> ddd, lack of fork
baphled has quit [Ping timeout: 276 seconds]
r0bby_ has quit [Ping timeout: 272 seconds]
<Hanmac> icyDragon it seems that some of the gems that build it is broken but i cant find where
blacktulip has joined #ruby
<IcyDragon> damn
<IcyDragon> >Only regret on Linux...
toekutr has joined #ruby
Choobie has quit [Read error: Operation timed out]
<IcyDragon> I'll keep tinkering around with it until I get a firm build
lesnik_ has joined #ruby
<Dann1> IY
<Dann1> Yesssssss
<Dann1> Ubuntu VM is working, suckas
<IcyDragon> I find that "offensive"
* IcyDragon pouts
<Dann1> Aww, sorry
kiyoura has joined #ruby
banister`sleep has quit [Remote host closed the connection]
<Dann1> I didn't mean to hurt your cold, giant, reptilian feelings.
<mpfundstein> ddd: true, the mac terminal has all features you have on linux. only drawback is sometimes that apple changed the structure of some stuff a bit. but cron, ssh, nfs, etc are all working awesomely.
banisterfiend has joined #ruby
atadesk has quit [Quit: Leaving.]
<IcyDragon> banisterfiend: fix ma broken codes!
Guest53544 has joined #ruby
<ddd> not much is changed. (I've run Linux for years, and my main 'desktop' is a MBP. Everything I've learned on both (well 99%) easily transitions from one to the other. haven't run into much thats platform specific or thats caused me to be unable to work, develop, hell even play
Guest53544 has quit [Max SendQ exceeded]
<nmeum> How do I kill a programm which was started with IO.popen from my script? E.g: How do I kill something I started like this: IO.popen("someprogramm", "w") { [...] }
Guest53544 has joined #ruby
workmad3 has joined #ruby
Elhu has joined #ruby
megha has joined #ruby
nemesit has quit [Quit: Leaving...]
<Muz> nmeum: IO.popen(args) { |io| #stuff; io.close }
alexspeller has joined #ruby
<Muz> Or you can call .pid on the IO object and then reference that from elsewhere to kill it
snearch has quit [Quit: Verlassend]
Morkel has joined #ruby
browndawg has quit [Quit: Leaving.]
alex20032 has quit [Ping timeout: 245 seconds]
<nmeum> Muz: if I append .pid to the previously mentioned code then I get something like "IOError: closed stream"
<Muz> You need to call it within the block, referencing whatever you named the item within the ||
speakingcode has quit [Ping timeout: 272 seconds]
<Muz> AFter the brackets, it'll be done evaluating and close already.
<Muz> IO.popen("someprogramm", "w") { |io| io.pid; [...] }
ebouchut has quit [Quit: This computer has gone to sleep]
<nmeum> Muz: ahhh, thank you sir
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
Bottesque has quit [Read error: Connection reset by peer]
Bottesque has joined #ruby
jds has joined #ruby
Choobie has joined #ruby
Daman has joined #ruby
Daman has joined #ruby
Daman has quit [Changing host]
ddd has quit [Quit: Leaving.]
ddd has joined #ruby
Morkel_ has joined #ruby
Alenah has quit [Excess Flood]
<nmeum> Muz: I tried both methods but the programm still shows up in 'ps fux' even 5 minutes after the script execution
Alenah has joined #ruby
Alenah has quit [Excess Flood]
tommyvyo has joined #ruby
QKO has quit [Ping timeout: 255 seconds]
baroquebobcat has joined #ruby
baphled has joined #ruby
tommyvyo has quit [Client Quit]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
baroquebobcat has quit [Client Quit]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
Alenah has joined #ruby
Alenah has quit [Excess Flood]
QKO has joined #ruby
<Muz> nmeum: what's the actual code you're executing in the block? OR what's the smallest code sample that you can do that isolates this behaviour that you'd be willing to share?
Bottesque has quit [Read error: Connection reset by peer]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
<RubyPanther> windows may suck, but for Ruby I'm not sure what difference it makes if that is what you're used to using as a dev platform. I know this... I can write Ruby extensions in C, on Linux, and they compile and work fine on windows without me doing anything special or knowing anything about dev on windows.
Alenah has joined #ruby
Alenah has quit [Excess Flood]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
<nmeum> Muz: basically it pipes data to xclip in order to xcopy the content of the data variable to the x11 clipboard
<RubyPanther> I actually think macs are where there are the most problems, based entirely on questions people ask on irc, because of all the cases where there is the wrong version of some library, and you have to install it a different way.
Alenah has joined #ruby
Alenah has quit [Excess Flood]
Iszak has quit []
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
r3nrut has joined #ruby
Alenah has joined #ruby
Alenah has quit [Excess Flood]
macmartine has joined #ruby
esdf has joined #ruby
Alenah has joined #ruby
Alenah has quit [Excess Flood]
lesnik_ has quit [Ping timeout: 246 seconds]
Alenah has joined #ruby
<IcyDragon> Hanmac: after digging around GitHub I found a working build, https://github.com/metanest/ruby-opengl
Alenah has quit [Excess Flood]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
<IcyDragon> '~';
Alenah has joined #ruby
Alenah has quit [Excess Flood]
mockra has joined #ruby
Alenah has joined #ruby
Alenah has quit [Excess Flood]
<esdf> hey guys, I made this script, http://sprunge.us/OAEO?rb, to parse this file, http://sprunge.us/DcEZ?json. I've tried doing the following in bash and made it work, but I'd really like to do it in ruby, so my question is: how do I ping the %<host_address> in that array, get a ping from it and store it to array ?
Elhu has quit [Quit: Computer has gone to sleep.]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
<Hanmac> IcyDragon: you are looking for that repo: https://github.com/pbosetti/ruby-opengl
<IcyDragon> esdf: why not just use 'json' ?
<esdf> IcyDragon: for what?
<IcyDragon> to load the json file.
<esdf> IcyDragon: I am, in ruby
<IcyDragon> Hanmac: Thats the exact one I had at first
<IcyDragon> require 'json'
<esdf> yes
<IcyDragon> :O JSON.load(File.read("your_json.json")) #=> a Hash of some kind
becom33 has quit [Quit: Leaving]
<IcyDragon> ;x scary one liner...
Spami has quit [Quit: This computer has gone to sleep]
<esdf> :D I had some help with it :D
DrCode has quit [Ping timeout: 276 seconds]
<IcyDragon> it looks scary :x
<nmeum> Muz: did you looked at the three lines of code already?
<esdf> but yeah, how do I ping $<host_address> and insert that ping back into array and output it with whole array?
<Kovensky> hmm
<Kovensky> is there a way, in ruby, to have a capturing group match multiple times
<Kovensky> and save the result of all matches
DrCode has joined #ruby
<Kovensky> sth like %- in perl
<arturaz> irb(main):001:0> "foo bar baz".scan /(\w+)/
<arturaz> => [["foo"], ["bar"], ["baz"]]
<arturaz> like this?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Elhu has joined #ruby
generalissimo has joined #ruby
will has joined #ruby
jds has quit [Remote host closed the connection]
will is now known as Guest80915
skepti has joined #ruby
catphish has left #ruby ["Leaving"]
Takehiro has quit [Remote host closed the connection]
<Kovensky> almost; except the regexp I want to match is something more like /(\w)+/
<Kovensky> with .match, only the last match is saved
<Kovensky> so in that string it'd be "z"
alex20032 has joined #ruby
<Kovensky> err, it'd be "o"
<alex20032> Hey does anyone here know good programming community?
<Kovensky> instead of the potentially useful ["f", "o", "o"]
emmanuelux has quit [Remote host closed the connection]
<IcyDragon> esdf: http://pastie.org/5632146 # :O
<esdf> oO IcyDragon
<workmad3> Kovensky: try str.scan(/\w/)
<esdf> ty, tried it?
<IcyDragon> the second element in the array is the hash with all the information
<IcyDragon> :O nope
<esdf> hmm but does that ping %<host_address> ?
<IcyDragon> :P I dont do web stuff so I dont know "how to"
<Kovensky> workmad3: the actual regexp is not nearly as simple :)
<esdf> ah IcyDragon :D
<Kovensky> /^:(?<host>[^ ]+) (?<code>\d+) (?<target>[^ ]+) (?:(?<info>[^ :]+) )*:(?<data>[^\xD\xA]*)(?:\xD\xA?)?$/ <-- enjoy
<Kovensky> this is meant to match IRC "code" messages
<Kovensky> e.g.
viuo has joined #ruby
<Kovensky> :server 005 Kovensky WALLCHOPS WATCH=128 WATCHOPTS=A SILENCE=15 MODES=12 CHANTYPES=#~ PREFIX=(qaohv)~&@%+ CHANMODES=beI,kfL,lj,psmntirRcOAQKVCuzNSMTGZ NETWORK=SojuGarden CASEMAPPING=ascii EXTBAN=~,qjncrR ELIST=MNUCT STATUSMSG=~&@%+ :are supported by this server
Jackneill has quit [Quit: Leaving]
skepti has quit [Client Quit]
<workmad3> Kovensky: wel, if you're gonna use insane regexps, you're gonna have trouble :P
<X-Jester> man, it's almost impossible to keep something compatible with all the irc protcol changes
BoomCow has joined #ruby
<Kovensky> it works but after the matching m[:info] is blank
Guest80915 has quit [Quit: Leaving]
<Kovensky> instead of being able to put all the (?<info>) matches inside an array
r3nrut has quit [Ping timeout: 255 seconds]
<Kovensky> so I'd get m[:info] as ["WALLCHOPS", "WATCH=128", "WATCHOPTS=A", ...]
will_ has joined #ruby
_46bit has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
will_ has quit [Read error: Connection reset by peer]
erichmenge_ has joined #ruby
davidcel- has joined #ruby
<viuo> hi does anyone know any cool use cases of extending ruby or rails with c ?
emmanuelux has joined #ruby
<workmad3> Kovensky: I personally wouldn't try to tokenize like that in a regex
atyz has joined #ruby
<workmad3> Kovensky: I'd pull out everything that's in the 'info section' (for want of a better name) and then process that separately, rather than try to do it in a single step
Nisstyre has joined #ruby
<workmad3> Kovensky: because otherwise you'll end up with incomprehensible, unmaintainable regexs that look like crap
moos3 has joined #ruby
<Kovensky> yeah, I could do that (my code actually doesn't care about the contents of that line), but it just sounded like something that made sense and should Just Work
<Kovensky> or at least could Just Work
r3nrut has joined #ruby
<workmad3> nah, it wouldn't 'just work' with regex
<workmad3> because you're trying to do something that's closer to full-on parsing
<Kovensky> not really; it's still a regular grammar
<Kovensky> and is well within regexp capabilities of doing that
<Kovensky> e.g. perl and %-
gyre008 has joined #ruby
DarkFoxDK has quit [Read error: Operation timed out]
rcsheets has quit [Read error: Operation timed out]
Musfuut has quit [Read error: Operation timed out]
Spaceghost|cloud has quit [Read error: Operation timed out]
whitequark has quit [Read error: Operation timed out]
patricksroberts_ has quit [Read error: Operation timed out]
Nanuq has quit [Read error: Operation timed out]
Guest25886 has joined #ruby
tekacs has quit [Read error: Operation timed out]
<workmad3> it's been a while since I've had to deal with determining if something's a regular grammar or not, so I'll take your word on it :) but that doesn't make it automatically easy to do with regex though... and what you have is already getting into incomprehensible regex (and likely needs to be more complex to work, or have a couple of levels)
NimeshNeema has quit [Ping timeout: 252 seconds]
kenneth has joined #ruby
DarkFoxDK has joined #ruby
erichmenge has quit [Quit: Arrivederci!]
erichmenge_ is now known as erichmenge
<Kovensky> hmm nvm, I misunderstood %- :(
kenneth has quit [Remote host closed the connection]
Nanuq has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
Musfuut has joined #ruby
<Kovensky> %- works on e.g. /(?<a>a)(?<a>a)/
<Kovensky> instead of /(?<a>a){2}/
jduan1981 has joined #ruby
Musfuut is now known as Guest73945
whitequark has joined #ruby
tekacs has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
erichmenge has quit [Quit: Arrivederci!]
NimeshNeema has joined #ruby
erichmenge has joined #ruby
jblack has joined #ruby
slainer68 has quit [Remote host closed the connection]
s7ry93r has quit [Ping timeout: 272 seconds]
subbyyy has quit [Ping timeout: 260 seconds]
akl_ has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Iszak has joined #ruby
bluOxigen has joined #ruby
ebouchut has joined #ruby
<ruzu> woah... gangam style hit over 1.1 billion views... madness
jaygen has quit [Read error: Connection reset by peer]
lesnik_ has joined #ruby
DarkFoxDK has quit [Read error: Operation timed out]
Nanuq has quit [Read error: Operation timed out]
Guest73945 has quit [Read error: Operation timed out]
jaygen has joined #ruby
jblack has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
fir_ed has joined #ruby
Xeago has joined #ruby
DarkFoxDK has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
maletor has joined #ruby
Nanuq has joined #ruby
jonahR has quit [Quit: jonahR]
jduan1981 has quit [Quit: jduan1981]
Guest73945 has joined #ruby
Elhu has joined #ruby
mmokrysz has joined #ruby
mmokrysz is now known as _46bit
tvw has quit [Ping timeout: 260 seconds]
s7ry93r has joined #ruby
JohnBat26 has joined #ruby
fir_ed has quit [Ping timeout: 272 seconds]
iPhoneMRZ has joined #ruby
tenmilestereo has joined #ruby
nemesit has joined #ruby
Takehiro has joined #ruby
iPhoneMRZ has quit [Client Quit]
Guedes0 has joined #ruby
_nitti has joined #ruby
Guedes0 is now known as Guedes
toekutr has quit [Remote host closed the connection]
Guedes has quit [Changing host]
Guedes has joined #ruby
icole has joined #ruby
Guedes0 has joined #ruby
AndIrc_3 has joined #ruby
nicobrevin has quit [Ping timeout: 248 seconds]
toekutr has joined #ruby
dsabanin has joined #ruby
pavilionXP has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
dsabanin has quit [Client Quit]
Takehiro has quit [Read error: No route to host]
johnmilton has joined #ruby
miskander has joined #ruby
miskander has quit [Client Quit]
stevechiagozie has joined #ruby
akl_ has quit [Ping timeout: 240 seconds]
pavilionXP has quit [Read error: Connection reset by peer]
jblack has joined #ruby
fir_ed has joined #ruby
Takehiro has joined #ruby
braoru has quit [Remote host closed the connection]
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
iPhoneMRZ has joined #ruby
workmad3 has quit [Read error: Operation timed out]
atno has quit [Read error: Connection reset by peer]
<delinquentme> getting ruby to pause at the command line till I hit enter?
emmanuel__ has joined #ruby
emmanuel__ has quit [Read error: Connection reset by peer]
<alex20032> simply try to get user input
Elhu has quit [Quit: Computer has gone to sleep.]
graspee has quit [Quit: Lost terminal]
nemesit|osx has joined #ruby
<alex20032> for example, a readline or readchar
nemesit has quit [Ping timeout: 240 seconds]
<alex20032> there should be something like that in ruby
<alex20032> you dont need to store the result...
emmanuelux has quit [Ping timeout: 255 seconds]
pooriaazimi has joined #ruby
<apeiros_> to gets
Spaceghost|cloud has joined #ruby
Takehiro has quit [Remote host closed the connection]
_46bit has left #ruby [#ruby]
rakl has joined #ruby
slainer68 has joined #ruby
akl_ has joined #ruby
jeffreybaird has joined #ruby
jduan1981 has joined #ruby
fir_ed has quit [Ping timeout: 240 seconds]
BoomCow has quit [Quit: This computer has gone to sleep]
lesnik_ has quit [Ping timeout: 276 seconds]
h4mz1d has joined #ruby
Exilepilot has joined #ruby
Spooner has joined #ruby
BoomCow has joined #ruby
Guest25886 has quit [Quit: Guest25886]
nazty has joined #ruby
quest88 has quit [Quit: quest88]
jduan1981 has quit [Client Quit]
Mon_Ouie has joined #ruby
Spooner has quit [Quit: Leaving]
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Elhu has joined #ruby
jerius has joined #ruby
_46bit has joined #ruby
rakl has quit [Quit: sleeping]
Exilepilot has left #ruby ["Leaving"]
subbyyy has joined #ruby
jerius has quit [Client Quit]
_46bit has left #ruby [#ruby]
otherj has joined #ruby
iaj has quit [Ping timeout: 240 seconds]
jds has joined #ruby
iaj has joined #ruby
Pip has quit [Read error: Operation timed out]
timonv has joined #ruby
Pip has joined #ruby
pooriaazimi has quit [Quit: pooriaazimi]
jds has quit [Ping timeout: 260 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
medik has quit [Quit: medik]
ryanf has joined #ruby
Vivid_ has quit [Remote host closed the connection]
bastl has quit [Ping timeout: 255 seconds]
otherj has quit [Quit: otherj]
itnomad has joined #ruby
jonahR has joined #ruby
icole has joined #ruby
atno has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
[Neurotic] has joined #ruby
mockra has joined #ruby
main has quit [Read error: Operation timed out]
BoomCow has quit [Quit: This computer has gone to sleep]
tenmilestereo has quit [Quit: Leaving]
workmad3 has joined #ruby
Rym has joined #ruby
pavilionXP has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
matchaw___ has quit [Ping timeout: 272 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sepp2k has joined #ruby
Whoop has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
BoomCow has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
alexspeller has quit [Remote host closed the connection]
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
bluOxigen has quit [Ping timeout: 255 seconds]
jblack_ has joined #ruby
s7ry93r has quit [Quit: s7ry93r]
workmad3 has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
johnmilton has quit [Quit: Leaving]
matchaw has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
Takehiro has quit [Ping timeout: 246 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
johnmilton has joined #ruby
<delinquentme> easy way to test if a string represents an integer value?
miskander has joined #ruby
<alex20032> Well, check every character in that string
<alex20032> and if that character is not 0-9, then automatically say its not a integer
jblack has joined #ruby
jonahR has quit [Quit: jonahR]
icole has quit [Remote host closed the connection]
BoomCow has quit [Quit: This computer has gone to sleep]
JWM2 has joined #ruby
main has joined #ruby
jds has joined #ruby
<delinquentme> alex20032, that sounds like a regex operation ... gotta be a simpler way
banisterfiend has quit [Remote host closed the connection]
jonahR has joined #ruby
banisterfiend has joined #ruby
alexspeller has joined #ruby
rellin has joined #ruby
jcrawford has quit [Excess Flood]
jblack_ has quit [Ping timeout: 255 seconds]
<alex20032> regex?
Elhu has joined #ruby
<akl_> def is_number?
<akl_> true if Float(self) rescue false
<akl_> end
timonv has joined #ruby
<delinquentme> the thing is I've got the integer as a string ... but I need to verify that that string actually evals as an int of the same value
<Hanmac> what about other, non 0-9 digets?
<aytch> Couldn't you declare integer(x) and catch for exception?
<banisterfiend> delinquentme: str.to_i.to_s == str
horofox has quit [Quit: horofox]
_huoxito has joined #ruby
<akl_> regexp for integer maybe like this: ^[-+]?[0-9]+$
<Hanmac> banisterfiend:Integer() can do stuff, to_i cant do
jcrawford has joined #ruby
<Hanmac> akl_ you could use /[[:digit:]]/
BoomCow has joined #ruby
<delinquentme> banisterfiend, +1
<Hanmac> >> p /[[:digit:]]/.match("\u06F2")
<eval-in> Hanmac: Output: "#<MatchData \"\u06F2\">\n" (http://eval.in/6067)
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<delinquentme> SO good.
<delinquentme> lol ... " and now you have two problems "
<apeiros_> akl_: don't use ^$, use \A\z
<apeiros_> ^$ is about start/end of *line*, not *string*
<akl_> oh, thanks
<akl_> delinquentme> joke about regexps? :)
jonahR has quit [Quit: jonahR]
<Hanmac> >> p Integer("0x1a")
<eval-in> Hanmac: Output: "26\n" (http://eval.in/6068)
<delinquentme> akl_, ja haha something like that
stkowski has joined #ruby
<Hanmac> >> p "0x1a".to_i
<eval-in> Hanmac: Output: "0\n" (http://eval.in/6069)
Morkel has quit [Quit: Morkel]
nemesit|osx has quit [Quit: Leaving...]
ryannielson has joined #ruby
timonv has quit [Remote host closed the connection]
<aytch> seems the simplest way is to use the respond_to method.
matchaw has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
<Hanmac> aytch ... and how do you think does it solv your problem?
<aytch> x.respond_to?(:integer?)
<aytch> if it's not an integer, it responds false
<aytch> if it is an integer, it responds true
jankly has joined #ruby
<Hanmac> there is not such a method
digitalcakestudi has joined #ruby
<aytch> Then I must have no idea what I'm doing, because I'm using irb
rakl has joined #ruby
butblack has joined #ruby
<Hanmac> but it does not help him because he need to check it on a string
<aytch> ohhh, I missed that part
digitalcakestudi has quit [Client Quit]
<banisterfiend> Hanmac: wanna watch a movie?
<Hanmac> no i need to fall asleep
JohnBat26 has quit [Ping timeout: 248 seconds]
<aytch> well, I did find the other night that if you run .to_i on alphanumerics, it returns 0, unless your string is an integer, in which case it returns the integer itself
alexspeller has quit [Remote host closed the connection]
<Hanmac> aytch to_i does not help you if you have a string like this: "0x1a"
bigmac has joined #ruby
jduan1981 has joined #ruby
<aytch> True. I'm a newbie, just trying to think about the problem.
alexspeller has joined #ruby
Xeago has quit [Remote host closed the connection]
<banisterfiend> Hanmac: isn't it only around 10:40 for you?
jonahR has joined #ruby
<Hanmac> no its 22:40 .. and i need to stand up tomorrow at 05:10
<dwnichols> delinquentme, im pretty sure regex is the best solution
freakazoid0223 has joined #ruby
JWM2 has quit [Remote host closed the connection]
emmanuelux has joined #ruby
<dwnichols> to_i solutions will give you bad results if you try things such as "0213g".to_i
<dwnichols> if you have a string that you need to test is an integer and only an integer, regex like /^-?(0|[1-9]([0-9]*))?$/ is best.
jonahR has quit [Client Quit]
<delinquentme> dwnichols, wanna see the final solution? args[4].to_f.to_s == args[4]
<delinquentme> beautifully simple
<Hanmac> dwnochols you could also use [[:digit:]] :P
<delinquentme> SO I'm at the point where I'd like to run this process ... and in the output logs ... have something like:
<delinquentme> "submitting job #142 -- OK!"
<delinquentme> and have the OK populate in the same line ... after I get back a verification on the submission
<dwnichols> delinquentme, if you can guarantee your string is properly formed, your solution may work.
<delinquentme> is this difficult
nemesit has joined #ruby
patricksroberts_ has joined #ruby
rcsheets has joined #ruby
Vivid has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
stevechiagozie has joined #ruby
mpfundstein has quit [Ping timeout: 264 seconds]
skep has quit [Quit: Leaving]
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
alexspeller has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
Vivid has quit [Remote host closed the connection]
Elhu has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
runygeorge has joined #ruby
<runygeorge> hi, Im trying to grasp what it needed for building a authentication for a client side app but with a ruby on rails or sinatra backend. I want to build it myself in ruby.
<runygeorge> If I make a normal authentication service and get a session id, could I pass it along every request? and just check on that?
<aytch> Hartl's tutorial has a very good example of that, runygeorge
<runygeorge> or how is heavy client side app solved authentication wise
thisirs has quit [Read error: Connection reset by peer]
<runygeorge> aytch: ok cool will look that up
<runygeorge> aytch: do you know the concepts of it?
<runygeorge> tokens?
<runygeorge> aytch: do you have url?
<aytch> Chapters 6-8, I believe
stevechiagozie has quit [Quit: Computer has gone to sleep.]
ryannielson has quit [Quit: ryannielson]
tchebb is now known as thempaa
thempaa is now known as tchebb
Dann1 has quit [Quit: Dann1]
medik has joined #ruby
eldariof has quit []
nicobrevin has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
dnyy has joined #ruby
jimeh has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lemimi has joined #ruby
wendallsan has joined #ruby
_nitti has joined #ruby
nicobrevin has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby
h4mz1d has quit [Ping timeout: 276 seconds]
joofsh has joined #ruby
ner0x has joined #ruby
rakl has quit [Quit: sleeping]
<runygeorge> thanks aytch
snuskig has joined #ruby
Dreamer3 has quit [Ping timeout: 252 seconds]
dnyy has quit [Ping timeout: 260 seconds]
runygeorge has quit [Quit: Page closed]
Dreamer3 has joined #ruby
miskander has quit [Quit: miskander]
yfeldblum has quit [Ping timeout: 260 seconds]
arturaz has quit [Remote host closed the connection]
billy_ran_away has quit [Ping timeout: 260 seconds]
BoomCow has joined #ruby
AlbireoX has joined #ruby
arietis has joined #ruby
jonahR has quit [Ping timeout: 265 seconds]
atyz has quit [Quit: Linkinus - http://linkinus.com]
billy_ran_away has joined #ruby
JWM2 has joined #ruby
kaen has quit [Read error: Connection reset by peer]
masterkaen has joined #ruby
brendan- has quit [Remote host closed the connection]
lemimi has quit [Ping timeout: 272 seconds]
d2dchat has joined #ruby
brendan- has joined #ruby
d2dchat has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
lolcathost has quit [Ping timeout: 265 seconds]
|Monie| has quit [Quit: Quit]
koshii has joined #ruby
Monie has joined #ruby
subbyyy has quit [Ping timeout: 255 seconds]
icole has joined #ruby
subbyyy has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
JWM2 has quit [Quit: JWM2]
lolcathost has joined #ruby
k3VB6u4d has left #ruby [#ruby]
workmad3 has joined #ruby
horofox has joined #ruby
dnyy has joined #ruby
BoomCow has joined #ruby
andrewhl has quit [Remote host closed the connection]
masterkaen has quit [Changing host]
masterkaen has joined #ruby
ChampS666 has quit [Ping timeout: 260 seconds]
masterkaen is now known as kaen
icole has quit [Ping timeout: 276 seconds]
clooth has quit [Quit: clooth]
quest88 has joined #ruby
d2dchat has joined #ruby
griffindy has joined #ruby
matchaw has quit [Ping timeout: 272 seconds]
megha has quit [Read error: Operation timed out]
d2dchat has quit [Remote host closed the connection]
pdtpatrick has joined #ruby
subbyyy has quit [Ping timeout: 272 seconds]
baphled has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Takehiro has joined #ruby
stkowski has quit [Quit: stkowski]
dnyy has quit [Remote host closed the connection]
yfeldblum has joined #ruby
wendallsan has quit [Remote host closed the connection]
jonahR has joined #ruby
samphippen is now known as _
_ is now known as Guest50534
Guest50534 is now known as samphippen
Takehiro has quit [Ping timeout: 252 seconds]
_nitti has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
jds has quit [Remote host closed the connection]
s7ry93r has joined #ruby
subbyyy has joined #ruby
Spooner has joined #ruby
rakl has joined #ruby
codezombie has joined #ruby
mockra has quit [Remote host closed the connection]
jimeh has quit [Quit: Computer has gone to sleep.]
xandy is now known as xAndy
Jamone has joined #ruby
pacbard has joined #ruby
megha has joined #ruby
horofox has quit [Quit: horofox]
Monie has quit [Ping timeout: 255 seconds]
macmartine has joined #ruby
alanp has quit [Read error: Operation timed out]
alanp has joined #ruby
JWM2 has joined #ruby
_alejandro has joined #ruby
w400z has joined #ruby
_nitti has joined #ruby
JWM2 has quit [Client Quit]
snuskig has quit [Quit: leaving]
_46bit has joined #ruby
stonevil has quit [Ping timeout: 260 seconds]
jimeh has joined #ruby
pmros has joined #ruby
stonevil has joined #ruby
Loaft has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
WilfredTheGreat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
_nitti has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mengu_ has quit [Quit: Leaving]
pmros has quit [Quit: Konversation terminated!]
nemesit has quit [Quit: Leaving...]
akl_ has quit [Ping timeout: 260 seconds]
mockra has joined #ruby
w400z has quit []
workmad3 has quit [Ping timeout: 252 seconds]
freakazoid0223 has quit [Quit: Leaving]
hukl has quit [Quit: Linkinus - http://linkinus.com]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
gabrielrotbart has joined #ruby
Beoran__ has joined #ruby
lolcathost has quit [Read error: Operation timed out]
<Kovensky> why can't I call private methods on self :(
<Kovensky> self.some_private_method doesn't work; some_private_method works
<banisterfiend> Kovensky: just the way it is ;) you can only invoke private methods with an implied receiver (with the exception of setters)
Xeago has quit [Remote host closed the connection]
crackfu has quit [Ping timeout: 240 seconds]
butblack has quit [Quit: butblack]
Beoran_ has quit [Ping timeout: 272 seconds]
TerabyteST has quit [Quit: terabytest]
x82_nicole has quit [Quit: Computer has gone to sleep.]
lolcathost has joined #ruby
koshii has quit [Read error: Connection reset by peer]
joshcheek has joined #ruby
joshcheek has left #ruby [#ruby]
clooth has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
miskander has joined #ruby
miskander has quit [Client Quit]
serhart1 has joined #ruby
allsystemsarego has quit [Quit: Leaving]
miskander has joined #ruby
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
Xeago has joined #ruby
zigidias has quit [Ping timeout: 256 seconds]
pcarrier has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
Iszak has quit []
piotr_ has joined #ruby
_alejandro has quit [Remote host closed the connection]
RagingDave has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
serhart1 has quit [Ping timeout: 252 seconds]
RagingDave has joined #ruby
lateau has quit [Ping timeout: 255 seconds]
woolite64 has joined #ruby
mahmoudimus has quit [Client Quit]
main has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
_nitti has joined #ruby
_46bit is now known as mmokrysz
mmokrysz is now known as _46bit
fir_ed has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
samuel02 has quit [Remote host closed the connection]
tommyvyo has joined #ruby
JeanMertz has quit []
griffindy has joined #ruby
landho has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
h4mz1d has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]