<guilund>
IceDragon: ill be serving from amazon S3, to reduce server costs
<IceDragon>
site/users/<email>/stuff
tcstar has joined #ruby
<guilund>
a user can have more than one site
<IceDragon>
well I don't have much experience with web stuff ;x so I can't really say
jameshyde has joined #ruby
mjburgess has joined #ruby
ahawkins has joined #ruby
fijimunkii has quit [Ping timeout: 265 seconds]
zxd has joined #ruby
<shevy>
hmmmm
snath has quit [Ping timeout: 252 seconds]
<shevy>
IceDragon what are you actually using ruby for?
danshultz has quit [Ping timeout: 260 seconds]
hadees has quit [Quit: hadees]
Landshark753 has joined #ruby
Kricir has quit [Remote host closed the connection]
jmo has quit [Ping timeout: 272 seconds]
<IceDragon>
For my own projects? games and console tools, and to download the latest stuff from various manga sites
<IceDragon>
outside? Web and Games
<IceDragon>
;x
dapz has quit [Ping timeout: 252 seconds]
<esing>
Is there a way to return an error as exit message? With abort(var) I can return only a string
shadoi has quit [Quit: Leaving.]
<esing>
Um
<esing>
s\error\array
jameshyde has quit [Ping timeout: 245 seconds]
Virtualize has joined #ruby
<IceDragon>
you could try print-ing the method before closing?
<IceDragon>
*message
ahawkins has quit [Ping timeout: 252 seconds]
zxd has quit [Ping timeout: 260 seconds]
rm_ has joined #ruby
Hanmac1 has joined #ruby
brtdv has quit [Remote host closed the connection]
cfoch has joined #ruby
brtdv has joined #ruby
michy has quit [Quit: michy]
FifthWork has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cow_ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
rm_ has quit [Ping timeout: 272 seconds]
<cfoch>
what is the command "gem" for?
<shevy>
esing I think as for return values, you can return only integers. you could however print out a message before, or use raise()
<shevy>
I mean something like exit(42)
<shevy>
cfoch you can install addons/ruby packages with gem
<shevy>
also output some environment values... "gem env" ... "gem list" and remote search from the commandline
<cfoch>
I mean the method gem
<shevy>
a gem called "method"?
<cfoch>
gem 'rails', '4.0.2'
<cfoch>
for example
<shevy>
hmm
<shevy>
that is in one of those things used by bundler or?
tannerburson has quit [Quit: tannerburson]
<shevy>
I think it tries to download and use that specific version
bentonrr_ has quit [Remote host closed the connection]
jmo has joined #ruby
<shevy>
in a Gemfile
<shevy>
gem 'uglifier', '>= 1.3.0'
<shevy>
gem 'turbolinks'
<shevy>
apparently the second argument is optional
tylersmi_ has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
digifiv5e has quit [Quit: quit]
ehc has quit [Quit: ehc]
blackmesa has quit [Remote host closed the connection]
shedd has joined #ruby
<cfoch>
what's the channel for Ruby On Rails?
<shevy>
the /j #rubyonrails
zumba_addict has joined #ruby
jmo has quit [Ping timeout: 272 seconds]
<zumba_addict>
hi folks, i'm very new to ruby. I think we are using ruby for our development. When I start our application, I run rackup. This is Ruby right?
pwestlund is now known as pwestlund_away
baroquebobcat has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<zumba_addict>
it's because, I would like to know how I can implement this to my rackup. It's from our Apache server. http://pastebin.com/yg5Z1tbb
phipes has joined #ruby
dpswireless has quit [Remote host closed the connection]
figgleberry has quit [Ping timeout: 272 seconds]
tylersmith has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Client Quit]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
baroquebobcat has joined #ruby
nfk has quit [Quit: yawn]
Dedensyde has joined #ruby
lmickh has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
simoz10 has quit [Read error: Connection reset by peer]
butblack has joined #ruby
simoz10 has joined #ruby
b00stfr3ak has quit [Ping timeout: 252 seconds]
mansi_ has joined #ruby
VTLob has quit [Quit: VTLob]
threesome has quit [Read error: Operation timed out]
jmo has joined #ruby
Dedensyde has quit [Remote host closed the connection]
meoblast001 has quit [Ping timeout: 260 seconds]
blarghmatey_ has joined #ruby
Kar- has joined #ruby
predator217 has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
tjaco has quit [Ping timeout: 272 seconds]
huttan has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
guilund has quit [Read error: Operation timed out]
brugidou_ has quit [Read error: Operation timed out]
Kar- has quit [Ping timeout: 245 seconds]
<shevy>
zumba_addict I think rackup is rack
<zumba_addict>
k
<shevy>
dont think many people here use rack directly. perhaps more people use it on #RubyOnRails channel
brugidou has joined #ruby
klaut has quit [Remote host closed the connection]
<apeiros>
zumba_addict: yes, rackup is part of rack, which is written in ruby
<zumba_addict>
got it
nateberkopec has joined #ruby
<zumba_addict>
i posted a link above and I was wondering if I can configure rack with those kind of settings
<apeiros>
you'd write a rack middleware
<apeiros>
I'm sorry, but that's not something I can explain in a line or two - you'll have to learn a bit about ruby & rack
_honning_ has quit [Ping timeout: 272 seconds]
robustus has quit [Ping timeout: 245 seconds]
<zumba_addict>
got it
bentonrr has joined #ruby
nobitanobi has quit [Ping timeout: 246 seconds]
michy has joined #ruby
simoz11 has joined #ruby
robustus has joined #ruby
simoz10 has quit [Ping timeout: 272 seconds]
kewubenduben has quit [Ping timeout: 264 seconds]
<michy>
can someone tell me how to remove lines from the $LOAD_PATH?
nobitanobi has joined #ruby
kc8qvp_ has quit [Quit: leaving]
cow_ has quit [Remote host closed the connection]
kraalquid has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
lukec has quit [Quit: lukec]
flubba has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
<apeiros>
michy: it's an ordinary array
flubba has joined #ruby
<michy>
well, it's my first month with ruby :-) I'll look up how to remove elements from an array.
<michy>
thanks for pointing me in a good direction
brtdv has quit []
cj3kim_ has quit [Remote host closed the connection]
<shevy>
"alias's behavior changes depending on its scope and can be quite unpredictable at times."
joes___ has joined #ruby
<shevy>
somehow I end up using alias all the time :(
<shevy>
alias_method is too long to type!!!
<shevy>
the _ is worth like +3 keystrokes
<shevy>
AND there is a , too
cj3kim_ has quit [Ping timeout: 252 seconds]
<shevy>
benzrf I found the xkcd kinda cool because it's true :)
blarghmatey___ has joined #ruby
<shevy>
I am haskell free!
blarghmatey_ has quit [Ping timeout: 252 seconds]
<xybre>
Hmm, alias_method is also a C function that calls alias.
* xybre
wonders if anyone wants to install a "small" tiling window manager that includes over 500MB of libraries..
agent_white has quit [Quit: brb]
<shevy>
xybre hehehe
phipes has joined #ruby
<shevy>
well
<shevy>
I grant it all that people would want to install at least one programming language
<shevy>
be it java php perl ruby python...
<shevy>
but rarely more than one
<shevy>
on windows most probably would end up with java then
<shevy>
the linux folks will probably have almost all of that by default available
tt1187 has quit [Ping timeout: 246 seconds]
<benzrf>
xybre: it is a small tiling window manager
diegoviola has quit [Quit: WeeChat 0.4.2]
<benzrf>
the libraries are for the language it is in
<benzrf>
you may as well say that sinatra is not small because it has buttloads of libraries
<xybre>
Ruby is only 83 MB including everything, so over 500MB seems like a lot.
<benzrf>
bahar:
<benzrf>
*bah
<benzrf>
since when has half a gig been a lot?
<xybre>
Bahar!
<benzrf>
:D
<bahar>
yo?
<benzrf>
anyway, if you didn't have haskell already installed, then you don't DESERVE to use xmonad
<benzrf>
B)
<xybre>
bahar: sorry, I was amused by the tab-complete typoe :)
<benzrf>
anybody who can't tell me the type of (>>=) can just GET OUT
mjburgess has joined #ruby
<xybre>
I used to install GHC on my machines, but then I never used it and stopped.
ahawkins has joined #ruby
tkuchiki has joined #ruby
<benzrf>
fie
bentonrr has joined #ruby
matchaw has quit [Read error: Connection reset by peer]
Bira has joined #ruby
colonolGron has joined #ruby
Virtualize has quit [Quit: Leaving...]
colonolGron has quit [Client Quit]
esing has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
ahawkins has quit [Ping timeout: 272 seconds]
mehlah has quit [Quit: Leaving...]
rm_ has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
<benzrf>
i'm writing a game
<xybre>
tic tac toe is great
<benzrf>
if I want to separate display and input logic from internal logic, what approach should I user258467 ?
<benzrf>
*use
<benzrf>
should I write a module for displayable sprites and then mix it into the main logic class?
<RubyPanther>
500MB was a lot in the 90s when it meant the X Window System implementation was going to need 3 days to compile
<RubyPanther>
benzrf: yes
<benzrf>
yes, but not nowadays :)
ace_striker has quit [Ping timeout: 272 seconds]
<xybre>
lol, sure, mix in all the things, great plan
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawe has quit [Quit: leaving]
troyready has quit [Ping timeout: 272 seconds]
<RubyPanther>
Sure, these days you can compile a window system in half a day. Considering the differences in system speed, I'd say GUI code quality has only decreased by 50%
rm_ has quit [Ping timeout: 245 seconds]
<benzrf>
would it be acceptable to keep the display mixin entirely in its own file and have it extend the sprite class from the display logic file?
<benzrf>
or is that just overthinking separation
<benzrf>
i feel like i always end up overengineering and overarchitecting large projects
<benzrf>
and end up with more code than I need that's harder to work with
<benzrf>
well, medium projects realy :)
<benzrf>
*really
larissa has quit [Quit: Leaving]
<RubyPanther>
benzrf: don't worry about which files stuff lives in until it gets underfoot, just make sure you have the class/mixin tree you want to have
phipes has quit [Remote host closed the connection]
ambushsabre has quit [Quit: rip]
<benzrf>
I guess im asking more about whether it's ok to modify the class from where im declaring the mixin instead of mixing it in when the class is created
matchaw has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<benzrf>
is that a good or bad idea/
<shevy>
wat
<benzrf>
i.e.
<benzrf>
class Sprite
<benzrf>
# business logic
<benzrf>
end
<benzrf>
# somewher else
<benzrf>
module SpriteDisplay
<benzrf>
# display logic
<benzrf>
end
Virtualize has joined #ruby
<benzrf>
class Sprite
<benzrf>
include SpriteDisplay
<benzrf>
end
<apeiros>
dude
<benzrf>
or I guess I could just reopen it there instead of using a mixin
<apeiros>
use a pastebin
Monie has joined #ruby
<benzrf>
sorry <_>
<shevy>
just solve the problem at hand as directly as possible
<benzrf>
habit
phipes has joined #ruby
<benzrf>
shevy: how agile of you
<shevy>
I love eliminating code
<shevy>
I am the shevinator
Sthebig has joined #ruby
<benzrf>
im the overthinkinator
<shevy>
abstractions will get purged
<benzrf>
oh noooo
<benzrf>
not my abstractions
<shevy>
benzrf, have you finally created a gem?
<benzrf>
Nahra:
<benzrf>
*nah
<benzrf>
but if I ever finish this project i might make it into one
<shevy>
hehehe
Jetchisel has joined #ruby
<benzrf>
it's going to be an engine for zelda-likes
<shevy>
that's like saying
<shevy>
it will never happen
<shevy>
:(
<RubyPanther>
benzrf: Except instead of SpriteDisplay it would called Displayable or some nonsense
<benzrf>
Rydekull: mhm
<shevy>
and 2014 only just started
dseitz has joined #ruby
<benzrf>
*rubypanther
baroquebobcat has quit [Quit: baroquebobcat]
<benzrf>
the idea will be that you can have a zip file with spritesheets and a little bit of ruby code to define the tiles and sprites you want
<benzrf>
then you can draw the dungeon in ascii
<shevy>
lol
<benzrf>
and it will load it and it will be playable
<RubyPanther>
I made a gem once, sometimes I even remember to include it in my projects
<shevy>
RubyPanther you were using ruby even before me
<benzrf>
like zelda romhacking but less hacking and more just designing
<shevy>
you are like the oldest cat in the channel
<shevy>
man
<RubyPanther>
Only since 04
<shevy>
make a gem benzrf
<benzrf>
RubyPanther: dang thats like when i start programming
<benzrf>
or something
<shevy>
call it "beautiful zelda"
<benzrf>
im calling it 'legend'
<RubyPanther>
I got interested in 99 when Larry Wall was talking about Ruby on the radio, but there were no English docs yet
<benzrf>
since 'zelda' already is used
<shevy>
RubyPanther yeah I think that was before me
<benzrf>
and thats the other part of the na,e
<benzrf>
:b
<shevy>
1999 omg benzrf was not even born then
<benzrf>
lies
<shevy>
well close
<benzrf>
i was born in 1997 you oaf
<shevy>
see
<shevy>
the first two years don't count as you were not PRODUCTIVE anyway
<benzrf>
RubyPanther: what is this 'radio' you speak of
<shevy>
hehe
<benzrf>
is it like radio waves
<shevy>
I actually miss the old telephones :(
shedd has joined #ruby
<shevy>
fat and clunky is kinda neat
<shevy>
you could even throw it across in a room and it could seriously hurt other people
<RubyPanther>
benzrf: I tried to remember exactly what it was, but I couldn't find the interview in the wayback machine, and it was too long ago for there to be a bootleg on tpb
kitak has quit [Remote host closed the connection]
<benzrf>
man i have a hard enough time figuring out the dates of things that happened a year ago
gja has joined #ruby
mklappstuhl has joined #ruby
kitak_ has joined #ruby
<benzrf>
ill realize that ill probably never be able to figure out the precise date that I first wrote a program on my own
<RubyPanther>
It was actually a "realmedia" from some local radio station's tech segment, and Larry Wall said, (I think) "if you want to do everything with object oriented programming, then Ruby is a better language than Perl"
<benzrf>
and then ill realize that a piece of information was irretrevably lost
tonni has quit [Read error: Connection reset by peer]
mzemel has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
which freaks me out a little since i use the internet all day and am completely used to things that are lost being merely forgotten
tonni has joined #ruby
<benzrf>
i realized the other day that my automatic impulse when thinking about things that I once did or used to know is to think 'oh well of course I can find out all of the details if I just dig a little deeper'
ambushsabre has joined #ruby
<benzrf>
even though RL does not work that way all the time
joes___ has quit [Quit: Page closed]
<benzrf>
im just waiting on brain uploading, then ill be in my natural habitat
<RubyPanther>
That's why I have 500+ tabs open in FF, if I forget to read all the stuff I wanted to read, and I don't remember to think of it again, then my opportunity to learn those things will be lost or delayed.
<benzrf>
I know
<RubyPanther>
I'm not sure it is actually working, but at least FF lazy-loads the tabs
<benzrf>
its how tvtropes traps you
<RubyPanther>
Thankfully it is other stuff than that
shedd has quit [Ping timeout: 272 seconds]
<benzrf>
the last time I was on tvtropes I actually managed to escape without losing any tabs to forces other than ^W
<benzrf>
was v proud of myself
mklappstuhl has quit [Ping timeout: 252 seconds]
gja has quit [Quit: This computer has gone to sleep]
zeropx has quit [Quit: has left the room … Or did he?]
<benzrf>
hmm, can mixins extend other mixins ?
blarghmatey___ has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 260 seconds]
<shevy>
benzrf just keep old entries or changelogs in some of your files, like "Project started: 1999" and make backups
<benzrf>
what
<benzrf>
is that supposed to be a replacement for a vcs or something
Landshark753 has joined #ruby
jakeq has joined #ruby
Landshark753 has quit [Client Quit]
Kar- has joined #ruby
geggam has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
clamstar has joined #ruby
aspires has quit []
croaky has quit [Ping timeout: 252 seconds]
Ataraxzy has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
Tamal has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
Kar- has quit [Ping timeout: 260 seconds]
ambushsabre has quit [Quit: rip]
falood has joined #ruby
joaoh82 has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
ckrailo_ is now known as ckrailo
ambushsabre has joined #ruby
jameshyde has quit [Quit: Leaving.]
ambushsabre has quit [Client Quit]
cfoch has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
jmimi has quit [Quit: Leaving.]
aquarhead has joined #ruby
<RubyPanther>
benzrf: mixins shouldn't worry about what else is mixed in, but it is normal to stack capabilities. All a mixin worries about is what methods does it rely on, and what methods does it provide. eg, quack.
benzrf has quit [Quit: fp rules oop drools woooooop]
Soda has quit [Killed (holmes.freenode.net (Nickname regained by services))]
Guest82881 has joined #ruby
kraalquid has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
ckinni has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
tannerburson has quit [Quit: tannerburson]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
croaky has joined #ruby
jameshyde has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
<jakeq>
are ruby blocks the same as lambdas?
<jakeq>
more or less?
CaptainJet has quit []
<apeiros>
similar
Sthebig has quit [Ping timeout: 240 seconds]
<Jamo>
afaik lambdas are evaluated when called - bloks not
<Jamo>
but i might be partially wrong...
<apeiros>
Jamo: um, blocks are also evaluated when called.
<jakeq>
Jamo oh? they are evaluated before passing them/
<apeiros>
jakeq: no. blocks are not evaluated when passed. the method invokes the block.
digital-ghost has quit [Remote host closed the connection]
<Jamo>
ok, thanks for correction. :)
<jakeq>
so what is the main difference between the two? I am not really getting when I should use one or the other
baroquebobcat has quit [Quit: baroquebobcat]
JorDunn has joined #ruby
ambushsabre has quit [Quit: rip]
<iliketurtles>
whats the rails library that causes weird behavior on hash? like making hash[:key] and hash.key and hash["key"] all return the same
<apeiros>
jakeq: ruby has two methods, lambda {} and proc {}. those create closures. rubys blocks are convenience for passing a proc to a method.
Sthebig has joined #ruby
Sthebig has joined #ruby
Sthebig has quit [Changing host]
ahawkins has joined #ruby
<apeiros>
lambda and proc are quite similar, but they differ in how they accept arguments (lambda tests them like a method does) and how some flow-control statements like return work.
Landshark753 has joined #ruby
baroquebobcat has joined #ruby
<jakeq>
I see, thanks. I am quite familiar with lambdas from other languages, so it's blocks that I'm not really getting. I'll try to read more on them
<apeiros>
jakeq: well, would you understand: `foo = proc { …somecode… }; some_method(foo)`?
ahawkins has quit [Ping timeout: 245 seconds]
<jakeq>
no actually. I am very fresh. back to reading =)
<jakeq>
but to try to guess, it looks like an anonymous procedure with zero arguments to me
<apeiros>
well, I assumed you would be able to understand it from your other languages.
rm_ has joined #ruby
<jakeq>
passed to some_method which accepts a metho
<jakeq>
method
<apeiros>
yes
<apeiros>
foo.call would invoke the code
<jakeq>
that part I get
psyl0n has joined #ruby
<apeiros>
now without assigning it to a variable you could write it as: `some_method(proc { … })`
<apeiros>
and ruby makes that a bit more convenient: `some_method { … }`
<jakeq>
ok.. still looks like plain lambda to me though
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros>
depending on your definition, it is
<jakeq>
lambda with zero arguments?
<apeiros>
I assumed you meant rubys `lambda` at first. and it differs from that a bit.
Mars has joined #ruby
<jakeq>
can it capture variables in scope?
<apeiros>
well, blocks don't do arity checks
<apeiros>
yes
<apeiros>
it's a closure.
Mars is now known as Guest37379
<apeiros>
and can take arguments: some_method { |arg1, arg2| … }
<apeiros>
popl: you could consider it to be sugar, yes. but it's specially handled.
<jakeq>
how doesn't it do arity checks if it accepts arguments?
charliesome has joined #ruby
<apeiros>
popl, jakeq: you can only pass one block to a ruby method. it's not passed as a normal argument, so with `def foo(arg1)` it won't end up in arg1
<popl>
right
<jakeq>
ah i see
rien has quit [Ping timeout: 245 seconds]
rm_ has quit [Ping timeout: 260 seconds]
<apeiros>
you can capture it in a variable using & syntax: def foo(&block_arg)
<apeiros>
if you don't need it in a variable, you can invoke the block via the keyword `yield`
<jakeq>
so one would use it when callback is optional?
<apeiros>
"it"?
figgleberry has joined #ruby
<jakeq>
blocks as opposed to lambdas
<apeiros>
you use blocks if you only need one callback
burlyscudd has quit [Quit: Leaving.]
<apeiros>
as their syntax is more convenient.
<jakeq>
ok got it
<apeiros>
you can convert anything which responds to to_proc to a block on the caller side: foo = proc { …somecode… }; some_method(&foo)
<apeiros>
note the &foo
Guest37379 has quit [Ping timeout: 272 seconds]
<jakeq>
yes
<apeiros>
without it, a normal object (an instance of Proc) would be passed as normal argument
<apeiros>
with it, it's converted to a block and treated in the special way as mentioned before (available via yield, only available in a variable via &blockarg argument declaration)
<apeiros>
hth
<jakeq>
it did, appreciate itappreciate it
<jakeq>
so much that i accidentall repeated it =)
<apeiros>
popl: and why I'd consider it sugar: in ruby you can do e.g. `people.sort_by(proc { |person| person.first_name })`, but `people.sort_by { |person| person.first_name }` is nicer
Hanmac has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
Hanmac1 has quit [Ping timeout: 272 seconds]
shedd has joined #ruby
mklappstuhl has joined #ruby
<popl>
It definitely seems more succinct.
bentonrr has quit [Remote host closed the connection]
tylersmith has joined #ruby
ambushsabre has joined #ruby
cj3kim_ has joined #ruby
ambushsabre has quit [Client Quit]
Hanmac1 has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
<popl>
Although I could see the argument for using the longhand (potentially missing {} on a quick scan through some code, for instance).
magoo has joined #ruby
aquarhead has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
croaky has quit [Ping timeout: 272 seconds]
shedd has quit [Ping timeout: 265 seconds]
mklappstuhl has quit [Ping timeout: 272 seconds]
aquarhead has quit [Client Quit]
LostMonk_ has quit [Ping timeout: 264 seconds]
dogweather has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Excess Flood]
<popl>
apeiros: Thanks for the lesson.
<apeiros>
yw
<apeiros>
bedtime
<apeiros>
(4h ago already actually…)
* apeiros
off, n8
robbyoconnor has joined #ruby
<popl>
toodles
cj3kim_ has quit [Read error: Connection reset by peer]
jimmyy has quit []
cj3kim_ has joined #ruby
Kar- has joined #ruby
<RubyPanther>
plruby.c:1264:36: error: dereferencing pointer to incomplete type
<RubyPanther>
The joys of a new Ruby version :)
geggam has joined #ruby
radic has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby
radic has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
grep_away is now known as grep_awesome
Kar- has quit [Ping timeout: 272 seconds]
eyckelboom has quit [Read error: Operation timed out]
Takumo has quit [Ping timeout: 252 seconds]
<shevy>
you noob!
danshultz has joined #ruby
canton7 has quit [Ping timeout: 272 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
drPoggs has quit [Ping timeout: 245 seconds]
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby
jameshyde has quit [Quit: Leaving.]
amclain has joined #ruby
cj3kim_ has joined #ruby
terlar_ has quit [Ping timeout: 245 seconds]
TwinkleHood has quit [Remote host closed the connection]
Drakevr has quit [Ping timeout: 260 seconds]
TwinkleHood has joined #ruby
Rydekull has quit [Ping timeout: 245 seconds]
drPoggs has joined #ruby
terlar has joined #ruby
eyckelboom has joined #ruby
Takumo has joined #ruby
mneorr has joined #ruby
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
tacos1de has quit [Remote host closed the connection]
dogweather has joined #ruby
Rydekull has joined #ruby
ayaz has quit [Ping timeout: 264 seconds]
ayaz has joined #ruby
rien has joined #ruby
ayaz is now known as Guest5077
_whitelogger_ has joined #ruby
drPoggs has joined #ruby
ppppp has joined #ruby
Dwarf has joined #ruby
clamstar has joined #ruby
croaky has joined #ruby
devyn has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<Hanmac>
Cysioland: what is your ruby version? what does IO::method(:foreach).source_location return?
<Cysioland>
Hanmac, Ruby 2.1.0
<Cysioland>
Hanmac, nil
<Hanmac>
hm that should be correct
dubey has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
<dubey>
Hello
<Hanmac>
hm it works for me ...
<Cysioland>
Hanmac, personally I think that Ruby is wery weird
phansch has quit [Quit: Leaving]
danshultz has joined #ruby
<Cysioland>
Hanmac, should I "unrescue" that exception and see detailed message?
phansch has joined #ruby
<Hanmac>
yeah you can try that
<dubey>
I am trying to install snorby on linux but got stucked when saw this error :
<dubey>
"An error occurred while installing delayed_job_data_mapper (1.0.0.rc), and
<dubey>
Bundler cannot continue."
<dubey>
ArgumentError: wrong number of arguments (1 for 0)
toastynerd has quit [Ping timeout: 272 seconds]
<Hanmac>
dubey: #bundler
lukeholder has joined #ruby
JuanDaugherty has joined #ruby
<Cysioland>
Hanmac, I had problem with assigningto array, I'll fix it. Thanks
fractastical has quit [Quit: fractastical]
<apeiros>
Cysioland: @@questions[] =
<Cysioland>
apeiros, yup
<apeiros>
yeah… was just going to say that your problem description was wrong
<Cysioland>
apeiros, am I doing it wrong?
<apeiros>
yes
danshultz has quit [Ping timeout: 252 seconds]
<Cysioland>
apeiros, then how to do it right?
<apeiros>
if @@questions is an array and you want to append, use <<
<apeiros>
note that ruby is not php and does not confuse hashtables and arrays
robertjpayne has joined #ruby
<robertjpayne>
Does anyone know of a good generic validation gem? Prefer not to be ActiveModel.. need the commons, type, length, regexp etc..
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
Cysioland: also you most likely want to avoid @@class_vars
<Hanmac>
apeiros: you missed the crash today morning ... nearly 800 was kicked out of the channel and only 26 remain ;D
<Cysioland>
apeiros, why?
allsystemsarego has joined #ruby
Kar- has joined #ruby
<apeiros>
Hanmac: the net-split?
<Hanmac>
yeah
<Hanmac>
it was fun to watch
<apeiros>
Cysioland: because they have some oddities in how they work which even most longer-term rubyists don't really know/understand.
* apeiros
afk
<JuanDaugherty>
I'm picking up with Ruby after a while, any reason I should want 2 instead of 1.9?
<JuanDaugherty>
or not
Drakevr has quit [Changing host]
Drakevr has joined #ruby
Kar- has quit [Ping timeout: 246 seconds]
closer has quit [Ping timeout: 256 seconds]
Blaze_Boy has joined #ruby
dzan has quit [Remote host closed the connection]
Blaze_Boy has quit [Client Quit]
JuanDaugherty has quit [Quit: Exit IRC/Hiberate]
Blaze_Boy has joined #ruby
JuanDaugherty has joined #ruby
Bish has quit [Excess Flood]
wykydtron has quit [Excess Flood]
Blaze_Boy has quit [Client Quit]
<JuanDaugherty>
hopefully didn't miss a response
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
mneorr has joined #ruby
closer has joined #ruby
psyl0n has joined #ruby
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
<Hanmac>
JuanDaugherty: it should not be a problem, you could also directly jump to 2.1 ruby ... there are not many differences in the existing api between 1.9 and 2.0
sakb has joined #ruby
nannes has joined #ruby
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
<nannes>
hey
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
gja has joined #ruby
<mnemon>
'lo
gja has joined #ruby
gja has quit [Changing host]
Bish has joined #ruby
Cysioland has left #ruby ["I can't stand you, jerks!"]
postmodern has joined #ruby
wykydtron has joined #ruby
<nannes>
I don't understand why my "bundler" is trying to install everything into /var/lib/gems/
<nannes>
instead of installing everything locally
wykydtron has quit [Excess Flood]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
<JuanDaugherty>
Harmac, ty! So current rails and most gem pkgs will work well with 2.1?
cow_ has joined #ruby
Bish has quit [Excess Flood]
wykydtron has joined #ruby
<Hanmac>
JuanDaugherty: i dont know about rails but most of the others that work with 2.0 should work with 2.1 too
jidar has left #ruby [#ruby]
coderhs has joined #ruby
<JuanDaugherty>
Harmac, hmm
<Hanmac>
if you need rails, be happy that you are not forced to use 1.8 or lower
coderhs has quit [Remote host closed the connection]
* JuanDaugherty
is not forced to do nuthin
<JuanDaugherty>
:)
dubey has quit [Quit: Leaving]
wykydtron has quit [Excess Flood]
mneorr has quit [Ping timeout: 272 seconds]
<JuanDaugherty>
nobody, except maybe the market a lil bit, is directing me to use ruby
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
dzan has joined #ruby
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
mneorr has joined #ruby
<JuanDaugherty>
I was gonna use a PHP REST pkg but barfed that up
phansch has quit [Remote host closed the connection]
sepp2k has joined #ruby
<JuanDaugherty>
in WP no less
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
<JuanDaugherty>
<- imagine chunks hurled.
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
Bish has joined #ruby
Bish has quit [Excess Flood]
<JuanDaugherty>
k, so 1.9 it is I guess
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
tylersmith has joined #ruby
kung has quit [Read error: Connection reset by peer]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
kung has joined #ruby
<nannes>
Hey guys! :D I don't understand why my "bundler" is trying to install everything into /var/lib/gems/
<nannes>
instead of installing everything locally
Gu_______ has joined #ruby
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
shedd has joined #ruby
<nannes>
Hey guys! :D I don't understand why my "bundler" is trying to install everything into /var/lib/gems/
<nannes>
instead of installing everything locally
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
<JuanDaugherty>
by which you mean on a per user basis?
wykydtron has joined #ruby
Bish has joined #ruby
wykydtron has quit [Excess Flood]
mneorr has quit [Ping timeout: 252 seconds]
Gu_______ has quit [Remote host closed the connection]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
Bish has quit [Excess Flood]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
<nannes>
JuanDaugherty: exactly
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
gja has quit [Quit: This computer has gone to sleep]
dogweather has quit []
brtdv has joined #ruby
wykydtron has joined #ruby
tomyx has quit [Quit: leaving]
wykydtron has quit [Excess Flood]
tylersmith has quit [Ping timeout: 272 seconds]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
mojjojo has quit [Quit: mojjojo]
LadyRainicorn has joined #ruby
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
wykydtron has joined #ruby
wykydtron has quit [Excess Flood]
shedd has quit [Ping timeout: 260 seconds]
browndawg1 has quit [Quit: Leaving.]
wykydtron has joined #ruby
Bish has joined #ruby
<JuanDaugherty>
yeah, that's contrary to the ruby ethos/aesthic
<JuanDaugherty>
*aesthetic
<JuanDaugherty>
as I understand it
<JuanDaugherty>
haskell is only thing I can think of right now that defaults to that but there is surely a way in ruby as well
Vivekananda has quit [Remote host closed the connection]
brtdv has joined #ruby
<JuanDaugherty>
Harmac, interesting kind of thinking that, or maybe not
<JuanDaugherty>
was hoping it would be a deeper cut
sakb has quit [Quit: Ex-Chat]
<JuanDaugherty>
bikeshedding abstractions oder
ahawkins has quit [Ping timeout: 245 seconds]
<JuanDaugherty>
it doesn't matter if the many deride you if you have righteous claim to superiority in some sense
max96at has joined #ruby
<JuanDaugherty>
in some good solid way. Ruby and haskell both have that but in very different ways.
fractastical has joined #ruby
brennanMKE has joined #ruby
wald0 has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
gasbakid has joined #ruby
wald0 has joined #ruby
psyl0n has quit []
psyl0n has joined #ruby
toastynerd has joined #ruby
nannes is now known as papafrancesco
nobuoka has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
nobuoka has quit [Client Quit]
psyl0n has quit [Remote host closed the connection]
danshultz has joined #ruby
fractastical has quit [Quit: fractastical]
moses has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 260 seconds]
johnyboy6000 has joined #ruby
sinm has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
mengu__ has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
carraroj has quit [Ping timeout: 246 seconds]
mengu has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
VTLob has joined #ruby
cbetta_afk is now known as cbetta
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
20WAASSPQ has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
[_aeris_] is now known as _aeris_
Brando753 has quit [Read error: Connection reset by peer]
Guest34107 is now known as farn
cj3kim has joined #ruby
sharms has joined #ruby
<gizmore>
Days without PHP: 7 :)
soobus has quit [Ping timeout: 272 seconds]
<gizmore>
or better: t :no_php, :days => 7
arietis has joined #ruby
Loaft has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
Lo^76 has joined #ruby
timonv has joined #ruby
butblack has joined #ruby
canton7 has joined #ruby
cj3kim has quit [Ping timeout: 272 seconds]
Yayo has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
Hien has joined #ruby
jwalk has joined #ruby
Loaft has quit [Ping timeout: 252 seconds]
olivier_bK has joined #ruby
Czupa has joined #ruby
JPascal has quit [Ping timeout: 246 seconds]
ae-r has joined #ruby
ae-r has quit [Client Quit]
Kricir has joined #ruby
Brando753 has joined #ruby
razibog has quit [Ping timeout: 252 seconds]
Kar- has joined #ruby
jwalk has quit [Ping timeout: 260 seconds]
Kar- has quit [Ping timeout: 245 seconds]
cbetta is now known as cbetta_afk
ahawkins has joined #ruby
papafrancesco has quit [Read error: Connection reset by peer]
rubyracer has joined #ruby
cbetta_afk is now known as cbetta
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahawkins has quit [Ping timeout: 245 seconds]
Baluse has joined #ruby
<Baluse>
is 15hours per day work too much ?
OdNairy has joined #ruby
rdevilla has quit [Ping timeout: 245 seconds]
flubba has joined #ruby
<Hanmac>
Baluse depends, how do you get paid for that? ;D if its more than 3xtimes than 8hours i would think about that
rdevilla has joined #ruby
lkba has joined #ruby
flubba has quit [Ping timeout: 246 seconds]
fijimunkii has joined #ruby
mojjojo has quit [Quit: mojjojo]
phansch has quit [Remote host closed the connection]
shedd has joined #ruby
johnyboy6000 has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
mansi has joined #ruby
mojjojo has joined #ruby
toastynerd has joined #ruby
kaldrenon has joined #ruby
dzan has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has quit [Quit: Computer has gone to sleep.]
wjimenez5271 has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
TDJACR has quit [Ping timeout: 245 seconds]
toastynerd has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
nannes has joined #ruby
kaldrenon has quit [Ping timeout: 245 seconds]
teoric has joined #ruby
aryaching has joined #ruby
threesome has joined #ruby
charliesome has joined #ruby
brennanMKE has joined #ruby
cow_ has quit []
zxd has joined #ruby
TDJACR has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
mengu__ has quit []
Bira has joined #ruby
zxd has quit [Ping timeout: 260 seconds]
shime has quit [Ping timeout: 245 seconds]
kalrover has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
jmo has quit [Ping timeout: 265 seconds]
jkhwan has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
sepp2k1 has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
gasbakid has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 260 seconds]
Lo^76 has quit [Ping timeout: 245 seconds]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
mneorr has joined #ruby
colonolGron has joined #ruby
danshultz has joined #ruby
rubyracer has quit [Read error: Connection reset by peer]
<shevy>
Baluse depends on the payment, also what and why you wanna do that
<shevy>
and what kind of work
<shevy>
but 15 hours per day, * 5 in a week, 75 hours week
<shevy>
sounds like a lot
<JuanDaugherty>
Baluse never indicated it was wage labor
Czupa has quit [Ping timeout: 272 seconds]
mneorr has quit [Ping timeout: 260 seconds]
Loaft has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
<JuanDaugherty>
on a sustained basis unlikely that it would be, aside from the usual horror/monster situations
krz has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
butblack has quit [Quit: butblack]
browndawg has joined #ruby
Deele has joined #ruby
rubyracer has joined #ruby
lyanchih has joined #ruby
shime has joined #ruby
Kar- has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
<JuanDaugherty>
nannes, looks like you want rvm
hiall has joined #ruby
Jetchisel has joined #ruby
mojjojo has quit [Quit: mojjojo]
Kar- has quit [Ping timeout: 245 seconds]
<nannes>
JuanDaugherty: How in the world ... answer a question asked 3 hours ago, just suddenly, after you've discussed about other issues in the while?
<nannes>
xD xD xD
<JuanDaugherty>
:)
Bira has joined #ruby
ahawkins has joined #ruby
mattk has quit [Ping timeout: 246 seconds]
teoric has quit [Quit: WeeChat 0.4.1]
shredding has quit [Quit: shredding]
vlad_starkov has joined #ruby
shime_ has joined #ruby
soobus has joined #ruby
ahawkins has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
Brolen has joined #ruby
shime has quit [Ping timeout: 272 seconds]
fijimunkii has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
whitman has quit [Remote host closed the connection]
nannes is now known as papafrancesco
fijimunkii has joined #ruby
caldwell has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
shedd has joined #ruby
mansi has joined #ruby
toastynerd has joined #ruby
shredding has joined #ruby
krzkrz has joined #ruby
doodlehaus has joined #ruby
shedd has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
toastynerd has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 260 seconds]
predator217 has quit [Remote host closed the connection]
L8D has joined #ruby
predator117 has joined #ruby
Hanmac1 has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
browndawg has quit [Quit: Leaving.]
krzkrz has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
L8D has quit [Ping timeout: 246 seconds]
<shevy>
JuanDaugherty he never indicated it was high payment either
matchaw has quit [Remote host closed the connection]
<rob_>
im new to active record (sans rails) and im not sure what ive done wrong
<DouweM>
rob_: A Network class expectes a "networks" table, plural. Same for all the others.
<rob_>
DouweM: ahh, thanks..
<DouweM>
rob_: And as AR is part of Rails, you may get better help over on #RubyOnRails, even if you're not using the rest of the stack
<ddd>
tables are plural (you're dealing witha collection of things. the things rae described singularly by the model
<rob_>
DouweM: thanks for the advice!
<DouweM>
rob_: also, if your Switch belongs_to a Network, it needs a :network_id attribute
Kar- has quit [Ping timeout: 245 seconds]
<rob_>
DouweM: oh, is that not done automatically?
<ddd>
t.references :network in switch's migration will fix that. (you can also use t.belong_to :network in the migration as well.
JuanDaugherty has quit [Remote host closed the connection]
Galgorth has joined #ruby
<DouweM>
rob_: the Model classes describe the underlying database, they don't define it
<ddd>
might be easier conceptually to use the 2nd one.
ahawkins has joined #ruby
<Galgorth>
How do I shut down the gem server after I've run it in terminal?
<DouweM>
and indeed, t.references/t.belongs_to :network create the network_id field
<rob_>
ddd: ah, i've done the latter..
<ddd>
and actually without adding *any* variables to your model, your model will ahve variables. those variables will be those defined in the model
<rob_>
ddd: when defining the classes, right?
<rob_>
ddd: in the example i pasted i have the belong_to stuff
<DouweM>
ddd: in the schema definition
<ddd>
rob_: that works too, just i've found many folks uncertain on which to use, find using the t.belongs_to when using AR
<DouweM>
whoops
<DouweM>
rob_: in the schema definition
<ddd>
rob_: no the migration
jxf has joined #ruby
<DouweM>
rob_: the models don't automagically create columns in the db
<rob_>
whats the difference between the migration and the schema definition?
nfk has joined #ruby
jameshyde has quit [Quit: Leaving.]
<ddd>
i haven't looked at the link, was just addressing what i saw in your comments
<DouweM>
migration is fine too
<DouweM>
I thought you thought belongs_to in the model would be enough
<rob_>
ok im a bit confused.. i have belongs_to in each class that related to teh schema ive defined
<ddd>
rob migrations are the little files you use to make the schema when using the rails stack (and AR). you can just as easily write the db schema by hand if you know sql.
<DouweM>
rob_: I don't see the foreign keys in the schema
Speed has joined #ruby
<rob_>
DouweM: you see them in the class definitions right? they need to exist in the schema too?
danshultz has joined #ruby
shredding has joined #ruby
<DouweM>
rob_: Right
<ddd>
i didn't look at the link you provided so i don't know which you did. (Most using AR add in a migration generator gem to get the same thing you'd have when using the entire rails stack, thats why i keep referring to migrations rather than the schema directly)
<DouweM>
rob_: The model doesn't automagically add the foreign keys in the db
<rob_>
ddd: you're confusing me :)
<DouweM>
rob_: I mean, it does the values for individual rows, but it doesnt' add the columns
<ddd>
rob_: my apologies not inteded
<rob_>
DouweM: ok
<rob_>
thanks for the advice dudes
ahawkins has quit [Ping timeout: 246 seconds]
TheDick has joined #ruby
Kricir has joined #ruby
crypt1d has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
AlSquire has joined #ruby
vlad_starkov has joined #ruby
dagen has quit []
shedd has joined #ruby
dagen has joined #ruby
toastynerd has joined #ruby
dagen has quit [Client Quit]
mansi_ has joined #ruby
hakanensari has joined #ruby
dagen has joined #ruby
dagen has quit [Client Quit]
dagen has joined #ruby
dagen has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
sec^nd has quit [Ping timeout: 240 seconds]
shedd has quit [Ping timeout: 245 seconds]
toastynerd has quit [Ping timeout: 272 seconds]
mansi_ has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
phansch has joined #ruby
sec^nd has joined #ruby
ckinni has joined #ruby
chihhsin has quit [Read error: Connection reset by peer]
Kricir has quit []
mklappstuhl has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
Brolen has quit [Quit: Brolen]
crypt1d has quit []
soobus has quit [Ping timeout: 260 seconds]
crypt1d has joined #ruby
crypt1d has quit [Client Quit]
Al__ has joined #ruby
Brolen has joined #ruby
ayaz_ is now known as ayaz
ayaz has quit [Changing host]
ayaz has joined #ruby
ambushsabre has quit [Quit: rip]
gasbakid_ has joined #ruby
flame_ has joined #ruby
gasbakid has quit [Ping timeout: 252 seconds]
gasbakid_ has quit [Read error: Connection reset by peer]
gasbakid has joined #ruby
ambushsabre has joined #ruby
Zespre has joined #ruby
Advocation has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
crypt1d has joined #ruby
dorei has quit [Ping timeout: 260 seconds]
gja has joined #ruby
otherj has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
centipedefarmer has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<ferr>
I need the program to quit only if you type 3 times in a row
mklappstuhl has quit [Read error: Connection reset by peer]
cdelo has quit [Ping timeout: 260 seconds]
<canton7>
do you mean "if you type BYE 3 times in a row"?
<ferr>
yes
Speed has joined #ruby
<canton7>
what you pastied works?
<ferr>
yes
TomRone has joined #ruby
<canton7>
so what's the question?
geggam has joined #ruby
BuSerD is now known as BuSerD_away
<ferr>
at first instead of the second if statement I used elsif, so I doubted
* canton7
is very confused
arietis has joined #ruby
<ferr>
as far as I consider elsif statement is checked only if the first condition is false?
Al__ has joined #ruby
<canton7>
you're saying that you did use the wrong logic, but now you're using the right logic, but you don't know whether it's the right logic, dispite the fact that it works?
<canton7>
that's right
<ferr>
ok
<ferr>
that was the question and thank you for your help
figgleberry has quit [Ping timeout: 246 seconds]
Seich has joined #ruby
krzkrz has joined #ruby
Seich has quit [Read error: Connection reset by peer]
Seich has joined #ruby
EngierkO has joined #ruby
pzula has quit [Ping timeout: 245 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has quit [Read error: Connection reset by peer]
LadyRainicorn has quit [Quit: Bye]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
mkevin has joined #ruby
brennanMKE has joined #ruby
Brolen has quit [Quit: Brolen]
BuSerD_away is now known as BuSerD
krzkrz has quit [Quit: WeeChat 0.4.2]
krz has joined #ruby
krz has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
plotter has joined #ruby
mkevin has left #ruby [#ruby]
falkn0r has joined #ruby
xcfox has joined #ruby
mklappstuhl has joined #ruby
* filo3sofie
unlike RMGC
brennanMKE has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
hakanensari has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Al__ has quit [Quit: Al__]
mansi has quit [Remote host closed the connection]
nannes is now known as lamadunnadelcari
<shevy>
hehe
lamadunnadelcari is now known as LaMadunnADDERRRR
rubyracer has joined #ruby
<shevy>
canton7 do you sometimes feel that you can survive #ruby only with a lot of beer?
mneorr has quit [Ping timeout: 260 seconds]
Landshark753 has joined #ruby
rankine has joined #ruby
joaosa has joined #ruby
mary5030 has joined #ruby
fantazo has joined #ruby
baroquebobcat has joined #ruby
LaMadunnADDERRRR is now known as nannes
dann_ has joined #ruby
zcreative has joined #ruby
dapz has quit [Ping timeout: 272 seconds]
ferr has quit [Ping timeout: 252 seconds]
_honning_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Kar- has joined #ruby
Megtastique has quit []
baroquebobcat has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
Kar- has quit [Ping timeout: 246 seconds]
charliesome has quit [Ping timeout: 260 seconds]
nannes has quit [Quit: Leaving.]
ahawkins has joined #ruby
mansi has joined #ruby
charliesome has joined #ruby
<dann_>
when you call a method that takes arguments (string, &block), you still have to separate the arguments with a comma, right?
<dann_>
like: thing "test", do..end
abra has quit [Ping timeout: 245 seconds]
abra has joined #ruby
ahawkins has quit [Ping timeout: 272 seconds]
chihhsin has joined #ruby
Advocation has quit [Quit: Advocation]
<kure>
Yo guys, I was thinking on making a gem with an executable 'www'
Seich has quit [Quit: Computer has gone to sleep.]
<kure>
Been researching and couldnt find another executable that clashes with this name
Galgorth has quit [Quit: Galgorth]
<kure>
Do you guys remember any other program with that executable?
Sthebig has quit [Ping timeout: 245 seconds]
MartinR has joined #ruby
Advocation has joined #ruby
MartinR is now known as Guest60527
<Hanmac>
dann_ use () not , at this point
<dann_>
thing("test") do..end ?
doodlehaus has joined #ruby
<Hanmac>
yes
<dann_>
ah thanks
doodlehaus has quit [Client Quit]
yacks has quit [Quit: Leaving]
olivier_bK has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
<dann_>
but it's pretty basic, so you often need to build a framework around it
smathieu has joined #ruby
aryaching has left #ruby [#ruby]
butblack has quit [Quit: butblack]
aryaching has joined #ruby
<dann_>
before dungeon, I was working on another game called "orkid" and it got to a point where I realized I hadn't structured the code well, that it was full of harcode stuff, etcetera
<dann_>
So I stopped trying to fix it or rebuild it
Brolen has quit [Quit: Brolen]
gja has quit [Quit: This computer has gone to sleep]
ambushsabre has joined #ruby
ahawkins has joined #ruby
smathieu has quit [Ping timeout: 264 seconds]
<banister>
dann_ do you use texplay
<dann_>
i don't think I did in orkid
<dann_>
and I'm not using it now, either
<dann_>
why?
Landshark753 has joined #ruby
<banister>
dann_ cos it's my girl
mansi has quit [Remote host closed the connection]
<dann_>
do you name all your daughters after ruby gems
mansi has joined #ruby
<dann_>
checked github, I've never used texplay
<pontiki>
that'd be just plain silly
ahawkins has quit [Ping timeout: 272 seconds]
<pontiki>
i've named mine after linux packages
<shevy>
lol
<shevy>
pontiki didn't know there was a linux package called "orcish brute"
<pontiki>
i wish i had
<pontiki>
that's the perfect name for a girl child
speakingcode has joined #ruby
<pontiki>
any girl named "Orcish Brute" would have to grow up strong
hackeron has quit [Read error: No route to host]
inimit has joined #ruby
inimit has quit [Client Quit]
<Hanmac1>
i worked with gosu before, than i found a better 2D lib with cooler effects (also with particle engine and other stuff)
goganchic has joined #ruby
hackeron has joined #ruby
inimit has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
<shevy>
wat is that
<shevy>
and why is it better
<shevy>
Hanmac1 does not write much in the year 2014 :(
inimit is now known as eclipse-
shredding has quit [Quit: shredding]
<Hanmac1>
hey! i already make a few commits in 2014
lifespent has joined #ruby
asteve has joined #ruby
<shevy>
I mean write on IRC!
lifespent has left #ruby [#ruby]
* dann_
publishes fully licenced fanfiction through IRC
<pontiki>
isn't this all fan fiction?
skaflem has quit [Quit: Leaving]
<dann_>
yes. none of us are real, and we are all fans of something
<dann_>
welcome to #ruby
<pontiki>
:D
wjimenez5271 has joined #ruby
<pontiki>
50 shades of ruby
<dann_>
voted least effective programming manual ever
LexicalScope has joined #ruby
Mars has joined #ruby
Mars is now known as Guest68932
teddyp1cker has joined #ruby
<Hanmac1>
pontiki: "5o gems of ruby"
<Hanmac1>
50
VTLob has quit [Quit: VTLob]
<eclipse->
haha
horrror has quit [Quit: horrror]
<eclipse->
50 shades on zen ;P
<eclipse->
it is japanese afterall
kate_r has quit [Ping timeout: 245 seconds]
havenwood has quit []
<waxjar>
im switching to javascript if any of those over come out
<waxjar>
*ever
<dann_>
waxjar im pretty sure there's a "javascript bondage fetish for dummies" book out there
<benzrf>
it allows for fast general type inference]
brtdv has quit []
<yazdmich>
benzrf: im on windows, and need to be able to move everything to an external drive when im done
eclipse- has quit [Quit: eclipse-]
<benzrf>
yazdmich: so use vim
<benzrf>
vim vim vim
<benzrf>
[vim]
<benzrf>
anyway the correct answer is, put vbox on the stick and install lubuntu on vbox
Kidron has joined #ruby
<benzrf>
then you will have a full system that is portable !
<yazdmich>
benzrf: seriously not helping
<benzrf>
ok, seriously?
<benzrf>
vim!
<txdv>
still not impressed by php
<txdv>
php core lib is a mess
<benzrf>
it is floss, therefore it has a windows buil
<benzrf>
d
<shevy>
indeed, php is faster than ruby
<benzrf>
txdv: good lord it is
<benzrf>
i heard that the php binary does not use ASTs but runs it line by line
<txdv>
i don't like a lot of core lib api decisions in ruby
<txdv>
but php has created the ugliest core lib ever
<shevy>
but it is faster
<benzrf>
and to think that i once loved it
<benzrf>
;-;
digifiv5e has joined #ruby
<shevy>
mruby must turn the tide
<txdv>
who cares
<txdv>
my ruby bot doesn't care, my quad core server running a lousy bot doesn't care
digifiv5e is now known as Guest90805
<txdv>
php is still a web programming language
<shevy>
and fast
<shevy>
:-)
<shevy>
PERHAPS I SHOULD MOVE BACK TO PHP
<txdv>
fast? no. faster maybe
<benzrf>
supybot is excellent
<benzrf>
but in python
<shevy>
benzrf what do you say to that
croaky has quit [Ping timeout: 272 seconds]
<benzrf>
maybe you can use unholy
<txdv>
if you compare ruby to c on that site you have a difference of 300x
Megtastique has quit []
zegerjan has joined #ruby
<txdv>
but ruby got faster
<txdv>
it used to be worse
aryaching has quit [Ping timeout: 260 seconds]
decoponio has quit [Quit: Leaving...]
<RubyPanther>
It is all fake, it is all lies. Ruby isn't used that way. No, you don't implement expensive, tight, low level algorithms in Ruby. "In Ruby" you use a C lib. And the Ruby parts dealing with business logic of an application shouldn't be slow at all.
Mars has joined #ruby
Mars is now known as Guest10592
<txdv>
yes
<txdv>
you can use regex for fast parsing stuff /s
<RubyPanther>
How do you benchmark how happy I am writing Ruby?
spyderma_ has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
<benzrf>
measure your face
<benzrf>
and count how often you scream in fury
<shevy>
lol
<shevy>
you guys are nuts
<benzrf>
do not forget to take angry keyboard mashing into account
<RubyPanther>
PHP should be fast because it does very little. Apache SSI is probably even faster.
<benzrf>
i do that like 2/3 as much in ruby as in python
<shevy>
wat
<benzrf>
one convention ive noticed that I like in ruby
<shevy>
but you wrote more python code in your life benzrf
<benzrf>
is designing APIs that will accept a variety of inputs
<benzrf>
shevy: per day i mean
<benzrf>
like maybe you have a fancy web request API.
<benzrf>
in java youd have to spend 5 lines making a request object before invoking it
estebanrules has joined #ruby
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
in a bad python library youd waste 1 or 2
Guest10592 has quit [Ping timeout: 272 seconds]
<benzrf>
in ruby, the call can take either the fancy request object OR just a URL
<benzrf>
which is something I like a lot
mattk has joined #ruby
mikeser has quit [Remote host closed the connection]
<RubyPanther>
Overloaded ducks are awesome.
<benzrf>
strings or IO objects instead of one or the other
<RubyPanther>
Grab a bird from your flock and stuff it in a method, no problem
<benzrf>
woot
Megtastique has joined #ruby
<benzrf>
what if it looks like a duck and quacks like a duck but is actually a GOOSE though
<estebanrules>
can anyone recommend a good project for an intermediate level ruby programmer?
<benzrf>
estebanrules: make a website
<RubyPanther>
We don't care what it "actually" is
<benzrf>
RubyPanther: i know
<benzrf>
i was making a bad joke
<benzrf>
=D
<shevy>
estebanrules write a large gem project
Faris has joined #ruby
<benzrf>
ignore shevy make website
Megtastique has quit [Client Quit]
<RubyPanther>
estebanrules: get postgres PL/Ruby working with pg 9.x and Ruby 2
<RubyPanther>
The bugs are all in C, though
<estebanrules>
hmmm well I'm not looking to make anything with Rails, just Ruby.
Barrin6 has joined #ruby
<estebanrules>
RubyPanther: Not sure if I can do that ;)
mojjojo has joined #ruby
<estebanrules>
though I do know C
<RubyPanther>
You don't need rails for a website, you can do it right out of the stdlib
bean has joined #ruby
<estebanrules>
oh cool
<shevy>
estebanrules excellent
<estebanrules>
let me look at the stdlib
Faris has quit [Client Quit]
<shevy>
C hackers need to write awesome useful bindings
<benzrf>
bean: legumes
<estebanrules>
and figure something out
crypt1d has quit [Changing host]
crypt1d has joined #ruby
Kidron has quit [Quit: Kidron]
<shevy>
the stdlib in regards to www work sucks
flame_ has joined #ruby
<estebanrules>
yeah I haven't seriously coded in C for a few years but I know it very well
<shevy>
but you could make the cgi better
<benzrf>
in python we have flask which is a bit like sinatra but it is not sinatra
<benzrf>
it is good though
<estebanrules>
I was thinking of making some kind of simple network client or server also
<benzrf>
estebanrules: make something that YOU would use
<benzrf>
maybe then other people will use it
fractastical has joined #ruby
<benzrf>
think about things in your daily computer-using life that bug you
<RubyPanther>
A great project would be to watch Uncle Bob's 2011 "Architecture: The Lost Years" video and write a framework-framework that follows his Interactor diagram
<benzrf>
find something you can fix
<estebanrules>
benzrf: I'm familiar with Python and Flask. I'm done with Python though, at least for now. The fragmentation between 207 and 3.3 pisses me off.
<shevy>
:)
<benzrf>
:[
<shevy>
see benzrf
Kidron has joined #ruby
<shevy>
benzrf, python devours itself and then its own children!
<benzrf>
but python will be switching from eggs to wheels
<shevy>
rectangular wheels
<estebanrules>
benzrf, shevy, RubyPanther: thanks for the advice
<benzrf>
yus
<benzrf>
i was bugged by the suckiness of tracking webcomics I like through a folder in my bookmarks
<benzrf>
so i made a website to do that
<benzrf>
simple
<RubyPanther>
There is also Camping, the web framework in 4k
<estebanrules>
I read a very good article recently on HN about why python is #@$@ed up at the moment
<benzrf>
screw camping sinatra rules
<benzrf>
woot woot
<estebanrules>
the author suggested a "python 2.9" solution
bean has quit [Client Quit]
<benzrf>
you sure it wasnt 2.6
<benzrf>
*w.8
<benzrf>
ugh
<shevy>
estebanrules do you remember the URL?
hakanensari has joined #ruby
<benzrf>
was it the one where they backport all of the 3 stuff to 2.8 as future impots
<benzrf>
*imports
<estebanrules>
I'll find it give me one minute
<benzrf>
then add warnings when you dont use em
<benzrf>
RubyPanther: i still say FP is great for many kinds of abstraction
<benzrf>
and bottom-up design rule
<benzrf>
s
<shevy>
I always code bottom up!
<benzrf>
fug yeah bottom up
<shevy>
like LEGO building bricks
<benzrf>
haskell is AMAZIN at bottom up programming
<shevy>
I want to reach the state of where I dont have to think while coding
<RubyPanther>
design from the top down, build from the bottom up
<benzrf>
you can write a bunch of little functions that seem useful and then immediately connect them however you like
<benzrf>
like i wrote a sokoban game in ruby once and I just wrote a bunch of functions to figure out directions and load world state and save it to and from ascii
<benzrf>
then i just wrote like 20 lines of code to use those functions to simulate a full game
mary5030 has quit [Remote host closed the connection]
<benzrf>
*run not simulate
<benzrf>
*in haskell not ruby
<benzrf>
guh
<benzrf>
didnt need the state monad once B)
<benzrf>
also in haskell operators are just functions whose names contain only symbols
<benzrf>
so thats p cool
Wolland has quit [Remote host closed the connection]
<estebanrules>
shevy here is the article. this sums up my feelings on python perfectly. http://goo.gl/8M0szn
<estebanrules>
I'm not a python-hater, I loved coding in it for a long time. Then I started coding in Ruby and realized it was a lot more fun, and less of a headache.
vlad_starkov has quit [Remote host closed the connection]
<benzrf>
yeap
<shevy>
thanks estebanrules
<estebanrules>
no problem
<RubyPanther>
free online classes are often in python, it has a tolerable level of surprise but I have to lean on the docs a bit. Probably more surprising than baby C
<yazdmich>
estebanrules: um just starting to learn ruby from a python and Turing (pascal-like) background, any tips?
hakanensari has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
croaky has joined #ruby
<yazdmich>
s/um/im/
<estebanrules>
I would recommend taking the online class at rubylearning
<estebanrules>
Its $80 but its well worth it
siwica has quit [Read error: Operation timed out]
<estebanrules>
or I would do Ruby The Hard Way
<shevy>
wait
<yazdmich>
no disposable income (in highschool), im trying the codecademy ruby stream
<shevy>
yazdmich, you are also coming from a python background?
<yazdmich>
shevy: Python 3 and OpenTuring
Advocation has joined #ruby
<benzrf>
yazdmich: ruby is like python except objects work different and also theres blocks and the syntax is different and also lots of other stuff is changed
coca_rails has quit [Remote host closed the connection]
<shevy>
benzrf, look, the world is coming to an end
<shevy>
lol benzrf
<shevy>
that was the funniest comparison I ever read
<shevy>
"ruby is like python except that it is not"
jameshyde has joined #ruby
<benzrf>
well other than the things i said ruby is totally like python
<shevy>
estebanrules the biggest difference is not in syntax but in the philosophy
<benzrf>
friggin timtowtdi
<estebanrules>
I live in NYC and attend a lot of hacker meetups, SO many people are "going over to the dark side" (switching to Ruby ;))
Bumptiou_ has joined #ruby
<yazdmich>
shevy: "more than one way to do it"?
<shevy>
well, there is more than one way also means that you try to find a better way
<estebanrules>
shevy: yes, I've definitely picked up on that to an extent
<benzrf>
zen of python rules wooo
<shevy>
yazdmich I mean things like explicit self vs. implicit self for instance. I think a OOP language should not need to be told where or what self is
<estebanrules>
but as I said I'm an intermediate level ruby prgrammer I have a lot to learn
<pontiki>
i'm curious how python is like ruby
<benzrf>
one thing ive found about python v ruby is
<shevy>
pontiki syntax is partially very similar
<estebanrules>
pontiki - syntax
siwica has joined #ruby
<benzrf>
if there is a potentially slightly useful feature that could plausibly work in multiple ways and potentially cause confusion
<benzrf>
python will disallow it entirely
<shevy>
:(
<benzrf>
and ruby will welcome it with open arms
<pontiki>
they both use . for message sending?
<yazdmich>
i honestly hate PEP guidelines and how overzealous so many python devs are
<shevy>
benzrf, I think you don't like guido
<estebanrules>
Ruby handles classes and objects about 1000000000x better than python
<benzrf>
fuck guido
<shevy>
guido speaks better english than matz!!!
<benzrf>
on what I just mentioned
<benzrf>
for example
<popl>
yazdmich: Arguably, other language zealots are just as dogmatic.
rm__ has quit [Remote host closed the connection]
<benzrf>
in python, you cannot put more positional arguments after a *splat
<shevy>
yes yes I get it, you can't forgive him for disliking functional programming
<benzrf>
in ruby, you can
<estebanrules>
and learning Ruby gave me a truly clear understanding of OOP. But again, that's me.
rm_ has joined #ruby
<shevy>
estebanrules ok but it depends on how you define OOP
<estebanrules>
also strings are immutable
<txdv>
true oop, not the shabby one like in c++
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
ruby does not have i.e. strict private public separation. one used to be able to invoke all methods through .send
<popl>
The One True OOP. :P
<benzrf>
proper oop
<benzrf>
aka poop
<estebanrules>
shevy, I guess I would define OOP as the kind of OOP in smalltalk
mneorr has quit [Remote host closed the connection]
skulker has joined #ruby
<benzrf>
def foo=
<RubyPanther>
return is generally used in complicated if/else structures that aren't extracted to methods and where explicit behavior is valued over carefully massaged command stacking
<benzrf>
well
<benzrf>
whatever
<benzrf>
i missed an arg there
ahawkins has quit [Ping timeout: 272 seconds]
<benzrf>
yazdmich: saying 'foo.bar = baz' is actually calling the method 'bar=' on the object
<benzrf>
so you can have that without a bar method
mneorr has joined #ruby
<benzrf>
and a bar method without bar=
<RubyPanther>
eg, a brutish wtf
<shevy>
estebanrules interesting read. I just wonder, if he advocates a 2.8 release, why should people switch to 3.x then? they will just keep on using 2.8 or stay with 2.7 (when they think that the warnings suck too much)
crypt1d has quit [Remote host closed the connection]
<RubyPanther>
This is why 1.8 being dead is a good thing.
<benzrf>
yazdmich: ruby has some nice shortcuts
<benzrf>
you can do this:
<benzrf>
class FooHolder
<shevy>
RubyPanther I still love 1.8
<benzrf>
attr_accessor :foo
<benzrf>
end
<shevy>
the times without encoding
<benzrf>
yazdmich: the 'attr_accessor' method automatically adds a method called 'foo' that returns the value of @foo, and one called foo= that sets @foo
<benzrf>
yazdmich: since that is a common pattern, it saves a lot of typing
<benzrf>
:)
<benzrf>
yazdmich: when you call a method without a dot, it calls it on self
<benzrf>
yazdmich: so 'puts "wat"' is really 'self.puts "wat"'
<benzrf>
more or less
* Hanmac
smells that 1.8 tries to crawl out of the grave again ... i need my NUL-Pointer gun
<benzrf>
private methods can only be called the first way, but w/e
<RubyPanther>
When we were young and ignorant and thought that all bytes must be either ASCII or Japanese
<benzrf>
yazdmich: inside a class block but outside of method definitions, self is set to the class being declared
<shevy>
benzrf I think you overwhelmed yazdmich
<benzrf>
yazdmich: so 'attr_accessor' is being called on the class
mneorr_ has joined #ruby
<benzrf>
all classes have the method 'attr_accessor' to create getter and setter methods
<shevy>
benzrf you need to feed little bit information, not BOMBARD them with all info from the www compressed in one tiny spot
VesQ has quit [Ping timeout: 246 seconds]
<benzrf>
bah
mneorr has quit [Read error: Connection reset by peer]
<shevy>
he already fell asleep!
<benzrf>
im a ranter ;-;
<estebanrules>
shevy - I wish I had an exact answer, but I think his idea is that people who use 2.7 switch to 2.8 because on 2.8 everything would be back-ported from 3.x, and then they will eventually switch to 3.x, so 2.9 is a temporary measure to make the transition easier. It probably won't happen but it's the best solution I've seen proposed so far
<yazdmich>
im still here
<benzrf>
its in my blood
Jetchisel has joined #ruby
<shevy>
:-)
<benzrf>
yazdmich: are you overwhelmed
<benzrf>
or does this make sense
<benzrf>
;p
<yazdmich>
a bit
<benzrf>
alright
coca_rails has joined #ruby
<benzrf>
in ruby, methods are entirely separate from variables
<shevy>
estebanrules I see
<benzrf>
which is entirely different from python, where functions are variables
<RubyPanther>
@shevy.send(:"whelm=", :over)
<yazdmich>
can you put it in a paste if that isn't much work? (once you finish this all
<benzrf>
ehh
<benzrf>
:D
<estebanrules>
I'm having a bit of trouble with blocks in Ruby actually
<shevy>
hahaha pwned you benzrf
croaky has quit [Ping timeout: 272 seconds]
<Hanmac>
benzrf: in you you can store methods into variables
<RubyPanther>
Right, everything is an object. Except variables, which are generic containers.
<estebanrules>
not always, but when passed in to methods
<shevy>
benzrf that's why you need to focus only on one or two snippets
<benzrf>
yazdmich: the other huge thing in ruby are blocks
<shevy>
estebanrules define "trouble" in this context
<benzrf>
yazdmich: do you know how you can pass functions into other functions in py?
<shevy>
syntax error?
<yazdmich>
yes?
<benzrf>
yazdmich: in ruby you can do that for all methods as an extra magic arg using special syntax like this:
<benzrf>
[1, 2, 3].map {|n| n + 1}
<estebanrules>
shevy - that I don't fully their usage, specifically when they are passed in to methods
<benzrf>
yazdmich: '{|n| n + 1}' is a blok
<benzrf>
*block
<benzrf>
yazdmich: it is an anonymous function
<txdv>
blocks are awesome
<Hanmac>
>> s="abcd"; [1,2,3].map(&s.method(:[]))
<yazdmich>
so like a python lambda?
<benzrf>
yep
<benzrf>
yazdmich: it gets passed to the map method, which then runs it on each element
<yazdmich>
is map a list iterator?
<txdv>
blocks are on the same awesomeness level like trains
<Hanmac>
did someone killed the bot again?
<benzrf>
yazdmich: hm?
<estebanrules>
Unfortunately I have to logoff at the moment, but I'll be back later, and probably be hanging out here quite a bit. Thanks for the suggestions folks.
Brolen has joined #ruby
mzemel has joined #ruby
<benzrf>
yazdmich: in ruby you rarely write for loop
<benzrf>
s
FnX has joined #ruby
<benzrf>
yazdmich: you almost always use 'each' or 'map' or something
<txdv>
did ... kill
<benzrf>
yazdmich: and put your loop code in a block
<RubyPanther>
for loops are just syntactic sugar in Ruby, they are #each blocks by the time they get run
<benzrf>
for i in [1, 2, 3]
<benzrf>
puts i
<benzrf>
end
<benzrf>
becomes
<benzrf>
[1, 2, 3].each do |i|
<benzrf>
puts i
<benzrf>
end
<shevy>
yazdmich it's easier if you think of objects as containers. like a backpack. so you ask the backpack: backpack.each # and this is the iteration, you work one element after the other. of course there are other methods available directly, like .find or .grep
<RubyPanther>
which is why not to use them because your error backtrace will say #each
<benzrf>
yazdmich: {} and do..end are the same in blocks
<yazdmich>
ahh
<Hanmac>
benzrf: did you know that for c in "abc".each_char; puts c ; end is valid and working ruby too? ;P
<benzrf>
Hanmac: yes
rankine has quit [Ping timeout: 272 seconds]
<shevy>
yazdmich yeah, that may be confusing at first, there are some syntax things that are used for different meanings... {} is a hash, but also used for blocks. but {} for blocks is like do/end, but do/end is not for a hash
<yazdmich>
so im guessing ruby puts more emphasis on fp
<benzrf>
yeah
<benzrf>
youll be tossing around blocks like crazy B)
<yazdmich>
is there an equivilent to list comprehensions?
<txdv>
blocks are fantastic
<shevy>
yazdmich sometimes the design in ruby can be confusing
<RubyPanther>
Ruby supports basic fp concepts, but Ruby all the emphasis is on OOP
<txdv>
is there a compiled version of ruby?
<benzrf>
yazdmich: just use map ;p
<shevy>
like, you can avoid subclassing and just use modules mixed in
<RubyPanther>
txdv: yes, mRuby
<benzrf>
yazdmich: btw each is different from map in that each returns the original list
<benzrf>
yazdmich: while map returns the results of the functions
<benzrf>
*block my bad
nisstyre has quit [Quit: Leaving]
<Hanmac>
txdv: isnt MRI Ruby also compiled??
<txdv>
no
<shevy>
no, faeries dance instead
<benzrf>
yazdmich: so use map for collecting the results, and each for loops where you dont care about the result
mojjojo has quit [Quit: mojjojo]
<popl>
shevy: faeries don't exist
<yazdmich>
ok
<popl>
shevy: neither does Santa Claus
kotk has quit [Read error: Connection reset by peer]
<Hanmac>
ahh you hate it because it is not java right? ;D
<shevy>
please ask in public channel #ruby FnX. if you need output on the wee through ruby, you can just put it into a .cgi file or use sinatra/rails/ramaze
<shevy>
*web
<shevy>
not wee
<Hanmac>
FnX: depends, ruby has many methods "p" or "puts" or "print" or many many other
<txdv>
o yeah, the vm which doesn't even support generics
TheDick has left #ruby [#ruby]
<yazdmich>
benzrf: i know how fanatic about Vim you are, but lets say im on a windows system where i don't have the ability to install programs/edit the registry, but i can run EXEs from anywhere in my user folder, and i can't leave traces in appdata, what is my best choice for an IDE/text editor+ruby interpreter
<shevy>
yazdmich perhaps notepad++
* Hanmac
wonders what "virtual machine" does have to do if ruby itself is compiled or not oO
<yazdmich>
shevy: how would i run/debug?
<RubyPanther>
It is very generic because from C all your Ruby objects are VALUE
<shevy>
yazdmich no idea! I dont use any of these myself, I use bluefish 1.0.7 installed on linux
<shevy>
yazdmich on windows, I try to use notepad++ though
<shevy>
but I rarely use windows these days
<RubyPanther>
If you need to know more... just ask the object about itself.
phansch has quit [Quit: Leaving]
derebos has quit [Ping timeout: 272 seconds]
<RubyPanther>
If you write your Ruby as a C extension it is compiled already
goganchic has quit []
reset has quit [Quit: Leaving...]
mneorr_ has quit [Remote host closed the connection]
<yazdmich>
i could just use Vim on my VPS, but i don't have access to SSH wherever i go (such as school)
<FnX>
[Hanmac] ok, the equivalence could be p 5 > 4, but for example if ineed to use the method called "defined?" how is possible without if and end?
<yazdmich>
i think i've seen a dedicated firewall server in one of the server racks
<benzrf>
B)
Wolland has joined #ruby
<yazdmich>
benzrf: what about running/debugging?
<Hanmac>
txdv WEB? are you sure you are in the right channel?? my ruby programs are all binary without extension and my ruby scripts are all .rb files ... there is no .sh and should not because that would be the WRONG extension
<Hanmac>
RubyPanther: i writes automatic type converter for his C extensions ... with that its very very easy to cast C++*Pointer <-> Ruby VALUE ... (wrap(cptr) and unwrap<CPPTye*>(rvalue))
<shevy>
FnX for instance: x = true; p defined? x
shredding has quit [Quit: shredding]
<txdv>
i bet your god compiles them for you too
ckinni has joined #ruby
maletor has joined #ruby
rm_ has joined #ruby
<yazdmich>
An error occurred in the application and your page could not be served. Please try again in a few moments.
<RubyPanther>
Yeah, exactly! wrap wrap wrap wrap wrap, that is the sound of Ruby being written in C. That's why I switched from Perl. Over there from C it was constantly, glue, glue, glue, glue, glue... my fingers just couldn't take the buildup.
<benzrf>
RubyPanther: monads are simple and help with all dat wrapping and unwrapping boilerplate
<Jamo>
btw, jruby is kinda portable - as long as you have Java installed - you can run jruby without installing it
<benzrf>
also functors
Sthebig has quit [Ping timeout: 240 seconds]
<benzrf>
and applicatives
<RubyPanther>
benzrf: No, that would just be one more thing I'd have to wrap. ;)
<benzrf>
u wot m8
<shevy>
there you go yazdmich!
<benzrf>
case f m of
<benzrf>
Nothing -> Nothing
mengu has quit [Remote host closed the connection]
<shevy>
yazdmich, use jruby + redcar all on the USB stick
<benzrf>
oh wait
<benzrf>
case m of
<benzrf>
Nothing -> Nothing
<benzrf>
Just v -> f v
<benzrf>
becomes
<benzrf>
m >>= f
<RubyPanther>
I'm using a JRuby-based setup on my tablet, because I can't get MRI to compile on android (yet!) :(
<benzrf>
MONADS
<txdv>
you what
<shevy>
benzrf haskell is weird
<popl>
'weird'
<benzrf>
it is nor
<benzrf>
*not
<benzrf>
ruby is the one who is weird
<shevy>
all those fancy things like >>=
<popl>
shevy: You believe in faeries.
<popl>
>>= is not that fancy
<benzrf>
all those fancy things like '.new'
<shevy>
popl 3 characters!
<benzrf>
shevy 4 characters!
<shevy>
but I am not a programming language
<shevy>
(yet...)
LadyRainicorn has quit [Ping timeout: 272 seconds]
choobie has joined #ruby
<popl>
shevy: You're not Turing complete!
<shevy>
also the ghc download is like 100 mb
<benzrf>
shevy: look how simple
<benzrf>
(>>=) :: Monad m => m a -> (a -> m b) -> m b
<RubyPanther>
I used to have to write scheme code, so I'd just write code generators in Perl. There are huge advantages to fp, for example, for situations where I need to write a language without learning how to use it.
<benzrf>
04:42 < RubyPanther> I used to have to write scheme code, so I'd just write code generators in Perl. There are huge advantages to fp, for example, for situations where I need to write a language without learning how to use it.
<benzrf>
oops
<benzrf>
what i MEANT to say:
<benzrf>
(>>=) :: Monad m => m a -> (a -> m b) -> m b
<benzrf>
return :: Monad m => a -> m a
<benzrf>
^those 2 = ALL THERE IS TO MONADS
<benzrf>
goodness
<shevy>
the more and more benzrf shows from haskell
<benzrf>
oh wait
<benzrf>
also the monad laws
<benzrf>
my bad
<shevy>
the less and less eager I am to want to learn it
croaky has joined #ruby
<benzrf>
-wink-
<benzrf>
shevy: it is hyper awesome at bottom up programming
<benzrf>
so much
<RubyPanther>
You end up with most of that just from OOP and ducktyping, no need to resort to fp if that is what you're aiming at
<_aeris_>
yep, and private take a name in parameter
<_aeris_>
before, you can do
brunops has joined #ruby
<_aeris_>
private :foo
<shevy>
_aeris_ yeah but you don't return a name to private() or?
<shevy>
private(:foo)
<_aeris_>
yep, so in this case since 2.1.0, def return a sym, private take a sym
<_aeris_>
so « private def foo; end » is totally valid
<Hanmac>
shevy it was reported my be? i didnt know that ... ;P
<shevy>
Hanmac you said you suggested this
zegerjan has quit [Ping timeout: 260 seconds]
<_aeris_>
in my source, don't know why ruby fail on the do with private
<Hanmac>
i recommended it too, but i was not the initialisator
<_aeris_>
it's stranger because the {} version is valid
<Hanmac>
_aeris_: another reason why i do not trust do...end ;P
ericmathison has joined #ruby
<benzrf>
_aeris_: youre french?
<RubyPanther>
I did try to read a translation of Leibniz's The Monadology but I couldn't sit through it without stopping to yell at it
<_aeris_>
benzrf > yep
<benzrf>
o:
<benzrf>
RubyPanther: monads are simply a way to chain functions that take a regular value and return a value with context
<benzrf>
THE END
jwest has quit [Quit: WeeChat 0.4.1]
<benzrf>
[not really]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
<_aeris_>
benzrf > why ?
<RubyPanther>
Sure, but we do that with state instead of fake-state, that's why we use an OO language like Ruby.
<benzrf>
RubyPanther: it is not as useful
<benzrf>
well no
<benzrf>
what i mean to say is that monads do stuff besides that
<benzrf>
chaining em is not just useful for preserving state
jwest has joined #ruby
<benzrf>
it's also convenient for things like dealing with type wrapping and unwrapping automatically
<txdv>
chaining is awesome
<txdv>
chainsaw the children
<benzrf>
:[
WritEOnlY has joined #ruby
<RubyPanther>
I would say the paradigm that is repeated and chosen has proven value, and the one that has been intentionally passed up by most experts is probably as _____ as they say it is.
<benzrf>
_aeris_: you used french quotes
<_aeris_>
bepo powered :D
<benzrf>
RubyPanther: since when are monads passed up by most experts
<RubyPanther>
fp is passed up. Intentionally. In favor of OO and Procedural
wsirc_2031 has joined #ruby
<benzrf>
Hanmac:
<benzrf>
*ha
<WritEOnlY>
--> ruby installed on a nas using optware, installing 1.9.1 as well as 1.1.1.1 rubygems, yet when I try to run I get this error -
pzula has quit [Ping timeout: 272 seconds]
brunops has quit [Ping timeout: 245 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
<benzrf>
RubyPanther: in the future i will try harder to disregard your opinion
<benzrf>
dont worry
<shevy>
that's a weird version for rubygems WritEOnlY
maletor has quit [Quit: Computer has gone to sleep.]
jameshyde has joined #ruby
<shevy>
I think benzrf and RubyPanther are friends
<RubyPanther>
Instead, we have objects that accept ducks, follow an interface declared only by convention, and return themselves, or at least a similar duck
<ddd>
RubyPanther: but inside the rage man! inside the rage!
<ddd>
benzrf: ah, i see the goof now
ericmathison has quit [Quit: leaving]
<RubyPanther>
lol not sure that is an effective method, but it is a start
mary5030 has quit [Ping timeout: 245 seconds]
shedd has quit [Remote host closed the connection]
<ddd>
hehe
ahawkins has joined #ruby
sambao21 has joined #ruby
<ddd>
in my wacky head i was thinking he transforms into nick inside the rage where i wipe him out so would that be a permanent ignore while enraged, or digital murder :) though he is resurrected on the other side
<ddd>
wow, way to turn a damned method into a religious discussion, bro, way to go!
ahawkins_ has joined #ruby
<shevy>
lol
<shevy>
way to pick it up ddd ;)
<ddd>
i'll stop while i'm behind :)
<ddd>
hehe
jwalk has quit [Ping timeout: 272 seconds]
jwalk has joined #ruby
dpswireless has quit [Ping timeout: 264 seconds]
pzula has joined #ruby
<RubyPanther>
It sounds like some kind of Ruby MOO
<ddd>
<grin>
petey has quit [Remote host closed the connection]
pskosinski_ has quit [Remote host closed the connection]
<ddd>
you just had to put that one out there didnt' you. now I got the When You Wish Upon A Star running rampant through my currently thought-empty head.
pskosinski has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 246 seconds]
<ddd>
do you know how *loud* that crap echoes in here?
grep_away is now known as grep_awesome
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
<shevy>
what the hell is going on
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
spyderman4g63 has quit [Remote host closed the connection]
<ddd>
shevy: I'm bored so I asked RubyPanther to entertain me for a bit
pskosinski has joined #ruby
<ddd>
RubyPanther: rofl
<ddd>
ass! ;)
<ddd>
shevy: i'm bored but not seeming to raise the energy levels to work on adding pundit to my project just yet.
spyderman4g63 has joined #ruby
<RubyPanther>
http://stuff.rubypanther.com/ulibka.html This is the best flash programming example I ever found, it is Russian from the 90s. My Bulgarian pen pal sent it to me back in the day.
<ddd>
RubyPanther: actually thats not half bad
<RubyPanther>
ddd: I stole it from some punk band, I forget who it is
<ddd>
whjat does that flash say?
<RubyPanther>
ulibka isn't a video, every single sprite is individually programmed. That is an actual real flash animation, not just a video container
<ddd>
now thats of interest
Rainicorn has joined #ruby
<RubyPanther>
it is a cartoon music video for a Russian song about making people happy over the internet
<ddd>
someone was more bored than I am hehe
petey has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
<ddd>
there's no sound to it, just the words with a pulsing down arrow pointing at :)))
spyderman4g63 has quit [Remote host closed the connection]
tjaco has joined #ruby
<WritEOnlY>
sorry, had to afk wife got here
<RubyPanther>
some modern flash players start the audio before the video, so you have to wait for the audio to get to the end before starting it
<RubyPanther>
It should start when you click the emoticon
<ddd>
oh. think my flash blocker screwed that up then. i just temp whitelisted
<ddd>
ahh there we go
<WritEOnlY>
did anyone have a chance to look at my issue? If not that's cool.
<RubyPanther>
Note that in Eastern Europe a smiley like :))) means you're more happy
<ddd>
ahh gotcha
<ddd>
hehe even my 7yo likes it
spyderman4g63 has joined #ruby
<ddd>
WritEOnlY: i didn't. i'm just bullshitting around for the moment. i've never attempted cross platform work. (you're doing something on arm it looks like) so i'm a waste of space at the moment :)
<WritEOnlY>
(/opt/bin/gem: line 8: require: command not found) anyone know why i would get a series of lines like this with ruby 1.9.1 installed with rubygems_1.1.1-1_arm
<WritEOnlY>
ddd it's all good
<WritEOnlY>
it's a weird request
ambushsabre has quit [Quit: rip]
ambushsabre has joined #ruby
<ddd>
gist the file contents. i'll peek
brennanMKE has quit [Read error: Connection reset by peer]
<RubyPanther>
I spent a whole week trying to get 1.9 on ARM and failed
vlad_starkov has quit [Remote host closed the connection]
lewix has joined #ruby
<ddd>
some people enjoy pain
<matti>
C Ruby <3
<matti>
API is so convenient.
<matti>
RubyPanther: Experiment with mruby ;]
vlad_starkov has joined #ruby
<ddd>
haha, somehow i knew matti would ;)
<RubyPanther>
yeah, and because my non-Ruby stuff is in C, and it is less pain to use the native interface to android than to wrap all my 3rd party C libs for Java
<matti>
ddd: \o/
hellome has quit [Read error: Connection reset by peer]
<ddd>
matti: how ya doin? :)
<matti>
ddd: Not bad, not great. In limbo ;]
<matti>
ddd: You?
hellome has joined #ruby
<RubyPanther>
matti: Yeah, I have it compiling, but... there are no libs :o
<txdv>
what libs do you need
benzrf has joined #ruby
tylersmith has joined #ruby
<benzrf>
hi, how can I tell if two ranges overlap?
<benzrf>
i.e.
<ddd>
about the same. trying to work on a rails app and pick up the framework. really wishing i didn't want to so bad. i find it more fun just writing ruby scripts
<benzrf>
(1..5).overlap(3..8) # => true
<matti>
ddd: :)
<benzrf>
should be commutative, of course
cbetta is now known as cbetta_afk
Hanmac1 has quit [Ping timeout: 245 seconds]
jameshyde has joined #ruby
<ddd>
matti: back to school in 9 days, so not much time to pick it up in
coca_rails has quit [Remote host closed the connection]
<benzrf>
RubyPanther: is your cat named tofu
tjaco has quit [Read error: Connection reset by peer]
fantazo has quit [Quit: Verlassend]
drumusician has joined #ruby
<RubyPanther>
Tofu expired, unfortunately
<RubyPanther>
She was a stray I took, yeah
<RubyPanther>
took in
<benzrf>
:[
mzemel has joined #ruby
fixl has joined #ruby
Vivekananda has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
nateberkopec has quit [Quit: Leaving...]
m7a has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
m7a has left #ruby [#ruby]
ahawkins_ has quit [Ping timeout: 260 seconds]
shedd has joined #ruby
stryek has joined #ruby
aspires has joined #ruby
spider-mario has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
coca_rails has joined #ruby
DouweM has joined #ruby
lkba has joined #ruby
toastynerd has quit [Ping timeout: 272 seconds]
skulker has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
ellbot has joined #ruby
<ellbot>
I'm working on my first gem, anyone have spare time to give it a once over just to see if there are any glaring issues?
<ellbot>
it's still relatively small
sharms has quit [Ping timeout: 240 seconds]
colonolGron has joined #ruby
<Jamo>
yea, i can take a look
Vivekananda has joined #ruby
<txdv>
thats what she...
rubyracer has quit [Quit: Konversation terminated!]
aspires has quit []
pskosinski has quit [Remote host closed the connection]
grep_awesome is now known as grep_away
sambao21 has quit [Quit: Computer has gone to sleep.]
lfox has joined #ruby
iamjarvo_ has joined #ruby
sharms has joined #ruby
Kidron has quit [Quit: Kidron]
aspires has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
colonolGron has quit [Quit: leaving]
atal421 has joined #ruby
yarou has joined #ruby
yarou has quit [Changing host]
yarou has joined #ruby
camilasan has quit [Ping timeout: 272 seconds]
<atal421>
what's the name of that gem that tells you which of your files gets updated the most?
<ellbot>
codeclimate?
iamjarvo has quit [Ping timeout: 265 seconds]
kitak has quit [Remote host closed the connection]
<atal421>
it's a gem, not a service. i think ben orenstein talked about it in one of his talks but i can't remember if it was him or from some place else
zeade1 has joined #ruby
jmo has joined #ruby
simoz12 has quit [Ping timeout: 272 seconds]
Megtastique has joined #ruby
zeade has quit [Ping timeout: 245 seconds]
falkn0r has quit [Remote host closed the connection]
pskosinski has joined #ruby
tectonic has joined #ruby
ip`` has joined #ruby
<benzrf>
hmm
<benzrf>
if I'm going to be representing directions in my code, should I create a new class with useful stuff as directions or should I write method that take a symbol?
<benzrf>
I mean id like to be able to just write symbol literals