<shevy>
grieg afterwards try it with only one comparison
horofox_ has quit [Quit: horofox_]
mrmargolis has quit [Remote host closed the connection]
coderhs has joined #ruby
bricker`LA has joined #ruby
tkuchiki has joined #ruby
omosoj has quit [Quit: Leaving]
RowdyChildren is now known as RowdyChild|Away
<grieg>
shevy, p x output is ["1", "2", "3"]. one comparison works
dima_ has quit [Ping timeout: 258 seconds]
<shevy>
ok that is good
lyanchih has joined #ruby
<shevy>
now you know that your array is fine
<shevy>
and that one comparison fails
<shevy>
I would recommend to perhaps use one ()
<shevy>
hmm
<grieg>
tried//
<shevy>
i think that would yield true
<shevy>
then true would be compared with the third
agarie has quit [Quit: Leaving...]
<shevy>
what if you move the third comparison to the next line?
<shevy>
and compare the second position again with the third position in that new line
Azure has quit [Quit: Blue Sky Fish]
Kricir has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
emaxi has joined #ruby
<grieg>
oh i see now. third number is compared with TRUE here indeed. the second line will work, but is there no way to make it in a single line?
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<grieg>
if (x[0].to_i <= x[1].to_i) && ( x[1].to_i<= x[2].to_i) made it :)
<grieg>
thank you man. may i pm u?
jrhe has joined #ruby
noxnoxnox has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
sepp2k has quit [Quit: Leaving.]
apeiros has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
apeiros has joined #ruby
<grieg>
wondering why that code is awful
Kricir has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 240 seconds]
<shevy>
no please write here
<shevy>
PM means I have to select every time I switch focus
Megtastique has quit []
<shevy>
with the mouse
<grieg>
sure. np. why was tha ruby code awful?
mary5030 has joined #ruby
<grieg>
*that
picca has joined #ruby
<shevy>
it looks very atypical
badhatter_ has joined #ruby
<grieg>
not ruby-like?
<shevy>
people rarely ever initialize a local variable to nil
<shevy>
while loop is also rare to see
<shevy>
and it is visually not aesthetic
curls has joined #ruby
<curls>
hey
<shevy>
I will show you my version soon
<grieg>
dayum xD. k i ll be around
Azure has joined #ruby
picca has quit [Client Quit]
badhatter has quit [Ping timeout: 252 seconds]
dkamioka has joined #ruby
tonni_ has joined #ruby
<shevy>
grieg, ok first iteration http://pastie.org/9078514 I am sure it can be made shorter and prettier still but I have to continue working on an alias-opener in ruby now :P
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
ddv has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
sputnik13 has quit [Client Quit]
ghr has joined #ruby
<curls>
i'm really interested in learning ruby
fabrice31 has joined #ruby
<curls>
currently, my ownly knowledge is really of php
<curls>
does anyone know any decent books/tutorials etc, that they could point me to?
<curls>
or roughly a POA for me to begin please?
sambao21 has quit [Quit: Computer has gone to sleep.]
matchaw has quit [Ping timeout: 276 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
toastynerd has quit [Remote host closed the connection]
<benzrf>
why the hell do so many people come to this channel who know php o-o
<benzrf>
curls: first you must empty your brain of everything you think you know
<benzrf>
because php is just the absolute worst
<benzrf>
i mean really wow
<curls>
shouldn't be too hard :o
matcouto has joined #ruby
<benzrf>
srsly php is likemike
<benzrf>
*like
senayar has joined #ruby
<benzrf>
if you took mere badness
<centrx>
whoa
<curls>
i only learnt it out of simplicity/necessity years ago
<centrx>
That was the exact same error you made before
<benzrf>
and raised it to the power of awfulness
<centrx>
benzrf is likemike
<benzrf>
and then took the log of holy shit terrible
ddv has joined #ruby
sambao21 has joined #ruby
<curls>
hmmmm
sambao21 has quit [Read error: Connection reset by peer]
<curls>
i know its not ideal, we are talking a good 5+ years ago!
<benzrf>
kk
sambao21 has joined #ruby
<benzrf>
personally i read the (poignant) guide and then asked buttloads of questions here
<benzrf>
however i had plenty of programming background knowledge
ghr has quit [Ping timeout: 258 seconds]
* curls
googles
fabrice31 has quit [Ping timeout: 276 seconds]
RaptorJesus_ has joined #ruby
RaptorJesus has quit [Disconnected by services]
RaptorJesus_ is now known as RaptorJesus
deens has joined #ruby
davedev24 has joined #ruby
<curls>
hmmm, i like foxes :)
<benzrf>
curls: basically w(p)gtr should give you a feel for RubyPanther
<benzrf>
*ruby
<benzrf>
like the general shape of the mechanics
<benzrf>
then you can harass US for the specifics
<benzrf>
=3
SilkFox has quit [Ping timeout: 246 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
dkamioka has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
<curls>
mkay :) ty
robert__ has joined #ruby
robert__ has quit [Changing host]
robert__ has joined #ruby
<curls>
syntax is uhmmm a lot easier to comprehend, it actually appears a lot more commonsensical!
deens has quit [Ping timeout: 240 seconds]
<benzrf>
indeed!
SidWu has joined #ruby
etqqkoiflwhb has joined #ruby
SidWu has quit [Max SendQ exceeded]
MatthewsFace has quit [Client Quit]
evenix has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
tungd has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
rylev has joined #ruby
mjs2600 has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
robert__ is now known as robert_
jcs222 has quit [Quit: leaving]
<curls>
i need to learn to wrap my head around objects a lil more
hamakn_ has quit [Remote host closed the connection]
<curls>
i guess thats going to be the biggest change per se
davedev24 has quit []
<benzrf>
curls: objects are not so hard
<benzrf>
curls: an object is just something that you can send messages to
DarthGandalf has quit [Ping timeout: 245 seconds]
<benzrf>
a message may be a question or a command
sski has joined #ruby
<benzrf>
so think of 'n.to_i' as sending the to_i message to n
<benzrf>
or
<benzrf>
asking n what it would be if it were an int
estaban has quit [Ping timeout: 252 seconds]
<benzrf>
you are ASKING or TELLING something to the thing itself
Hanmac has quit [Ping timeout: 245 seconds]
<curls>
hmmm ok
<benzrf>
instead of giving the thing to some function
<curls>
and its boxed off in a sense
pontiki has joined #ruby
rylev has quit [Ping timeout: 276 seconds]
<benzrf>
it doesnt matter what n is
<benzrf>
it just matters that n understands what to_i means
xunil has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
<benzrf>
this is the original conception of OOP, from smalltalk
<curls>
uhuh okay
<benzrf>
ruby's object system is very close to smalltalk's btw
<curls>
always shyed away from oop :p
senayar has quit [Remote host closed the connection]
estaban has joined #ruby
chipotle has quit [Quit: cya]
coderhs has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
DarthGandalf has joined #ruby
sambao21 has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
etqqkoiflwhb has joined #ruby
<curls>
And my heart glows bright red under my filmy, translucent skin and they have to administer 10cc of JavaScript to get me to come back. (I respond well to toxins in the blood.) Man, that stuff will kick the peaches right out your gills!"
<curls>
lol...this is really well written, thanks for the suggestion benzrf
eynj has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
JJMalina has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
x77686d has quit [Quit: x77686d]
oo_ has quit [Remote host closed the connection]
hamakn has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
emaxi_ has joined #ruby
iamjarvo has joined #ruby
<benzrf>
why_ is actually jack black irl
oo_ has joined #ruby
JJMalina has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
emaxi has quit [Ping timeout: 276 seconds]
tjr9898_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
grieg has quit [Ping timeout: 240 seconds]
radic has joined #ruby
helpD has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
tjr9898_ has quit [Ping timeout: 258 seconds]
trhodes_ has joined #ruby
gregf has joined #ruby
iamjarvo has quit [Ping timeout: 258 seconds]
coderhs has joined #ruby
<shevy>
who cares
<shevy>
is it important
<shevy>
curls you should try to write scripts in ruby that solve what you need
Es0teric has quit [Read error: Connection reset by peer]
<shevy>
curls you will learn things required as you proceed
kevind has joined #ruby
Es0teric has joined #ruby
<IceDragon>
shevy: Like downloading cute cat pics?
<shevy>
<benzrf> curls: basically w(p)gtr should give you a feel for RubyPanther
<shevy>
^^^ omg
<shevy>
he gives RubyPanther a feel
<shevy>
IceDragon nah, you won't learn much with lolcats
<shevy>
I tried to learn lolcode
<benzrf>
>tfw being shipped by forces beyond my control
<IceDragon>
boohoo :P
pu22l3r has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
zcreative has joined #ruby
danijoo has joined #ruby
psyko666 has quit [Quit: Leaving]
tjr9898_ has joined #ruby
Mongey has joined #ruby
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
<shevy>
yeah benzrf
<shevy>
parents can be annoying
trhodes_ has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
<pontiki>
we thrive on being annoying
Bumptious has quit [Read error: Connection reset by peer]
danijoo has quit [Ping timeout: 252 seconds]
Bumptious has joined #ruby
nisstyre has joined #ruby
lw has joined #ruby
trhodes_ has joined #ruby
Bumptiou_ has joined #ruby
phoo1234567 has quit [Quit: Leaving]
<benzrf>
curls: be sure to ignore what the guide says about 'class methods'
<benzrf>
all methods are the same
<benzrf>
Whatever::foo is the same as Whatever.foo
jcs222 has quit [Quit: leaving]
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
evenix has quit [Remote host closed the connection]
ghr has joined #ruby
evenix has joined #ruby
<_lazarevsky_>
benzrf:
<_lazarevsky_>
I need some help mate
<_lazarevsky_>
u there?
<_lazarevsky_>
I am sure it's something bizarre
tectonic has quit []
Bumptious has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
<_lazarevsky_>
im just so tired that even the obvious is not so obvious..
obs has quit [Quit: Konversation terminated!]
marcdel has quit []
mrmargolis has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<centrx>
It always helps to ask the question
<centrx>
It may even get you the solution
sdouglas has quit [Remote host closed the connection]
marcdel has joined #ruby
etqqkoiflwhb has joined #ruby
sdouglas has joined #ruby
<benzrf>
sup _lazarevsky_
<_lazarevsky_>
centrx: I am in the context of an ApiController
<_lazarevsky_>
I define an instance variable called @temp
<_lazarevsky_>
I have a getter and a setter
<_lazarevsky_>
I know it's redundant but tried everything
danshultz has joined #ruby
<_lazarevsky_>
the value is not being set,..
<_lazarevsky_>
whenever I call get_temp i get nil
<_lazarevsky_>
:((
ghr has quit [Ping timeout: 258 seconds]
evenix has quit [Ping timeout: 245 seconds]
<_lazarevsky_>
can I define instance variables in a controller?
<benzrf>
is this rails
jamto11 has joined #ruby
<_lazarevsky_>
yes
deens has joined #ruby
fgo has joined #ruby
<_lazarevsky_>
oh
<_lazarevsky_>
just hit me!
<_lazarevsky_>
rails creates a new instance of the controller
<_lazarevsky_>
for each request..
sdouglas has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
jason__ has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 258 seconds]
<centrx>
See, all you have to do is ask the question
jamto11 has quit [Ping timeout: 240 seconds]
<centrx>
And it almost answers itself
Lewix has joined #ruby
<_lazarevsky_>
yea
<_lazarevsky_>
peeps, u just got rubberducked!
benzrf is now known as benzrf|offline
<_lazarevsky_>
:P
cj3kim_ has joined #ruby
<pontiki>
qvak
binaryhat has quit [Quit: Leaving]
<shevy>
if it looks like a duck
<shevy>
if it burns like a duck if you put it in an oven
<shevy>
if it swims like a duck
<shevy>
if it talks like a duck
deens has quit [Ping timeout: 252 seconds]
benzrf|offline is now known as benzrf
<shevy>
it's pontiki
<pontiki>
it's all your selfies with the ducklips that have ppl confused, shevy
lw has quit [Quit: s]
<benzrf>
no its benzrf
abra has quit [Ping timeout: 276 seconds]
kenneth has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
danshultz has quit [Remote host closed the connection]
sambao21 has joined #ruby
rylev has joined #ruby
aknagi has quit [Quit: aknagi]
danshultz has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
lw has joined #ruby
curls has quit [Ping timeout: 276 seconds]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
kayloos has joined #ruby
abra has joined #ruby
osvico has quit [Read error: Connection reset by peer]
abra has quit [Max SendQ exceeded]
eyeamaye1 has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
krz has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Avahey_ has quit [Quit: Connection closed for inactivity]
osvico has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
rylev has quit [Ping timeout: 258 seconds]
<eyeamaye1>
how could one define a new class, without using class? i'm looking for something akin to `self.class.send(:define_method, :my_method) {puts "This is my method"}`
danshultz has quit [Ping timeout: 258 seconds]
abra has joined #ruby
<RubyPanther>
you're all so ducky today :)
abra has quit [Max SendQ exceeded]
<benzrf>
eyeamaye1: Foo = Class.new?
<RubyPanther>
eyeamaye1: klass = Class.new
abra has joined #ruby
<eyeamaye1>
ah, that's simple :)
abra has quit [Max SendQ exceeded]
<eyeamaye1>
thanks
dima_ has joined #ruby
affinehat has joined #ruby
<eyeamaye1>
actually though, it's not quite what im looking for. I'm trying to figure out how to create a new class with a message
abra has joined #ruby
abra has quit [Max SendQ exceeded]
kayloos has quit [Ping timeout: 240 seconds]
<RubyPanther>
eyeamaye1: It will turn into a normal class if you later assign it to a const
<pontiki>
eh?
<pontiki>
klass = Class.send(:new) ?
coderhs has joined #ruby
<eyeamaye1>
pontiki, lol, that's more what i mean, any other ways to do it?
<eyeamaye1>
defies everything i've learned about programming
<eyeamaye1>
anywho. you've answered my question RubyPanther, so thank you :)
<pontiki>
then you haven't learned near enough
<pontiki>
you should hop in to haskell now
abra has joined #ruby
<eyeamaye1>
nope
<benzrf>
haskell is a butt
<benzrf>
in that, it is great
<benzrf>
i dont know what i say
* benzrf
yawns
<RubyPanther>
Well, Ruby is the first programming language since FLOW-MATIC to focus on the programmer instead of the machine
<benzrf>
wrongg
<benzrf>
that is such a biased statement omg
<pontiki>
oh, i don't think that's so
<RubyPanther>
Here we go, must be another COBOL fan
affinehat has joined #ruby
<pontiki>
the only "language" that focused on the machine was punching code into the hopper one instruction at a time with switches
<RubyPanther>
Okay, Ruby is the first programming language since FLOW-MATIC to focus on the programmer instead of the machine, unless the human is a mathematician.
<benzrf>
looll
nateberkopec has joined #ruby
<benzrf>
nice one dude
<benzrf>
pretty funny
mrmargolis has quit [Remote host closed the connection]
<pontiki>
ever since we've been able to type human-defined symbols, programming languages have been focused the human
<pontiki>
with obvious throwbacks like brainfuck
<benzrf>
pontiki: dont waste your effort
<benzrf>
RubyPanther is always full of shit
<pontiki>
you call this effort?
blackavr has quit [Quit: blackavr]
Bumptiou_ has quit [Remote host closed the connection]
<RubyPanther>
The machines are designed by human engineers to manage these mathematics-based symbols. So it is natural that there would be symbols.
nopolitica has joined #ruby
mary5030 has quit [Remote host closed the connection]
<RubyPanther>
Without symbols how are you going to communicate with a compiler?
braincrash has quit [Quit: bye bye]
nateberkopec has quit [Ping timeout: 240 seconds]
<RubyPanther>
Ruby reduces the reliance on symbols, and allows structuring code around basic constructs, and the construction of behaviors.
<eyeamaye1>
RubyPanther gets it
fgo_ has joined #ruby
Avahey_ has joined #ruby
freerobby has quit [Quit: Leaving.]
fgo has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
nopolitica has quit [Client Quit]
braincrash has joined #ruby
emaxi_ has quit [Remote host closed the connection]
jason__ has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
aagdbl has joined #ruby
RowdyChild|Away is now known as RowdyChildren
<popl>
s/with.*/\?/ # ftfy
jason__ has quit [Ping timeout: 250 seconds]
tectonic has quit []
mary5030 has joined #ruby
fgo has joined #ruby
etqqkoiflwhb has joined #ruby
Terminus- has quit [Quit: debian says i don't exist]
trhodes_ has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
MrJoshua has joined #ruby
fgo_ has quit [Ping timeout: 276 seconds]
sdouglas has joined #ruby
fabrice31 has joined #ruby
trhodes_ has joined #ruby
emaxi has joined #ruby
phinfonet has quit []
<pontiki>
the machines handle on and off, low voltage and high voltage
<pontiki>
they don't handle symbols
oo_ has quit [Remote host closed the connection]
<pontiki>
symbols are human inventions
<pontiki>
as is the machine
oo_ has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
<pontiki>
but everything above the physical world of the machine is just another layer of abstraction
<pontiki>
and as cs people, we *love* our abstractions
<pontiki>
ruby has some of the best, and most fun, abstractions going
malkomalko has joined #ruby
abra_ has joined #ruby
Likun has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
kevind has quit [Quit: kevind]
pskosinski has quit [Remote host closed the connection]
tacos1de has quit [Write error: Broken pipe]
_lazarevsky_ has quit [Ping timeout: 240 seconds]
abra has quit [Ping timeout: 250 seconds]
linojon has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
svan has left #ruby [#ruby]
cj3kim_ has joined #ruby
omosoj has joined #ruby
emaxi has quit [Remote host closed the connection]
Likun has quit []
kevind has joined #ruby
emaxi has joined #ruby
affinehat is now known as Nakamoto
Bumptious has joined #ruby
Nakamoto is now known as Iamtherealnakamo
SilkFox has joined #ruby
dinasour has joined #ruby
linojon has quit [Client Quit]
RowdyChildren is now known as RowdyChild|Away
<noob101>
question about case and when
ghr has joined #ruby
sdouglas has joined #ruby
<noob101>
this is my code
<InfraRuby>
noob101: hit me
godinez has joined #ruby
<noob101>
case @ammo
etqqkoiflwhb has quit [Ping timeout: 245 seconds]
<InfraRuby>
pastie
<noob101>
when < 0
<InfraRuby>
pastie
<noob101>
Ok.
ntzrmtthihu777 has joined #ruby
<InfraRuby>
and you can't do when < 0
<ntzrmtthihu777>
hey. I notice there is only a ruby 2.0.0 installer for windows; can one compile 2.1.1 source with say the devkit and 2.0.0 installed?
emaxi has quit [Ping timeout: 276 seconds]
<benzrf>
when :negative?.to_proc
<benzrf>
if Fixnum#negative were a thing that is
lw has quit [Quit: s]
x77686d has joined #ruby
Doppp has joined #ruby
Astralum has joined #ruby
coderhs has quit [Ping timeout: 258 seconds]
SilkFox has quit [Ping timeout: 240 seconds]
cj3kim_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
saarinen has quit [Quit: saarinen]
malkomalko has quit []
jrhe has quit [Quit: Connection closed for inactivity]
deens has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Read error: Connection reset by peer]
<noob101>
InfraRuby: my problem is with case/when, I was introduce to it by someone here. I forgot their name, they told me to use case/when instead of if and else to save lines of code.
<ntzrmtthihu777>
shevy: fearless or stupid; not sure which
<noob101>
How can I say if @ammo < 0 when using when with case.
<noob101>
example: when < 0, why can't I use this when I would have case @ammo?
<shevy>
noob101 well in this example I really think you should use if else
<shevy>
but actually you solved it already
<shevy>
with a range
<shevy>
1..12
<shevy>
noob101 your code has gotten shorter
<popl>
what sort of 12-shot-holding-gun reloads one bullet at a time? :)
<ntzrmtthihu777>
popl: hell even a six-shooter has those thingies that insert 6 at once :P
<noob101>
shevy thanks but still, I am trying to practice use with case and when
tkuchiki_ has joined #ruby
<ntzrmtthihu777>
popl: or, depending on the way its put together, you could swap cylinders
<noob101>
and I was hoping that I could do something like when < 0
<noob101>
puts "No more ammo"
<noob101>
etc..
<noob101>
Any suggestions
<popl>
noob101: here's a thought: create a base class like ShootingWeapon and then you can have other classes inherit from it (i.e. Pistol or Shotgun or ZipGun).
<noob101>
popl I just made up a gun
godinez has quit [Quit: Saindo]
ellbot has quit [Ping timeout: 276 seconds]
<popl>
12 in the clip, 1 in the barrel
<noob101>
popl, thanks
<popl>
:)
nateberkopec has joined #ruby
<benzrf>
inheritence is a dumb
lyanchih has quit [Quit: lyanchih]
<benzrf>
nobody should use inheritence
<benzrf>
inheritence is the worst
<popl>
benzrf: Are you high?
<shevy>
noob101 unfortunately case/when is a bit simplistic
<shevy>
noob101 but very useful if you want to use aliases
<benzrf>
popl: im higher than the moon
<popl>
benzrf: how do us mere mortals look from up there?
<popl>
shevy: how do you mean?
<benzrf>
popl: what is this
<benzrf>
an irc channel for ants
<pontiki>
there are times when it makes sense to use case/when instead of if/elsif, but in this case, there's only two branches to worry about. if/else is just *fine*
<popl>
yep
tkuchiki has quit [Ping timeout: 250 seconds]
<popl>
I agree with pontiki.
<popl>
but then again he might want to add other branches later
<popl>
like maybe the gun jams when it's fired or something
<pontiki>
in which case he can change then, again *if it makes sense*
<pontiki>
that would an exception
<pontiki>
:)
<popl>
or different types of ammo
<pontiki>
and that, right there, is classic overengineering
kevind has joined #ruby
<popl>
guns are overengineered
<popl>
I take your point, though.
<pontiki>
"i'll put it in a case statement just on the chance I might want to add another condition in the future, even if i can't think of one now"
<noob101>
I have no idea what aliases are shevy but ok
nateberkopec has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 252 seconds]
<popl>
noob101: in ruby you can alias a method name
<ntzrmtthihu777>
noob101: aliase is giving another name to a method
<pontiki>
man, now you're just confusing things
cj3kim_ has joined #ruby
robustus has joined #ruby
<popl>
alias context_relevant_method_name some_really_long_method_name_that_does_not_make_sense_in_the_current_context
<popl>
pontiki: confusing?
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<popl>
I don't think so.
<pontiki>
to noob101
<pontiki>
as it's got nothing to do with what they're asking about
<popl>
I'm sure noob101 is not an eight year old.
<pontiki>
where in that do you think they'd benefit from using an alias? seriously?
<popl>
as such noob101 probably has the ability to distinguish orthogonal concepts.
<popl>
I don't.
<popl>
It's nice to know that aliases exist, though.
<popl>
pontiki: Are you against the dissemination of knowledge?
<popl>
:P
<pontiki>
are you against the uptake of knowledge at the learner's pace?
<popl>
IRC is an asynchronous medium. I'm not shoving anything down anyone's proverbial throat.
<pontiki>
nor am i
<popl>
At any rate you're the one complaining, not noob101. :P
<pontiki>
well, you have it all in hand, then
<popl>
pontiki: yes, yes I do.
* popl
gives pontiki the nod
michaeldeol has joined #ruby
pu22l3r has joined #ruby
emaxi has joined #ruby
Cache_Money has joined #ruby
brupeb has quit [Remote host closed the connection]
<Cache_Money>
benzrf: that's much cooler. I don't know what I was thinking..
JBreit has left #ruby ["Leaving"]
cj3kim_ has quit [Ping timeout: 240 seconds]
rainmanjam has quit [Remote host closed the connection]
dukz has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
freggles has quit []
lw has quit [Quit: s]
freerobby has joined #ruby
northfurr has quit [Quit: northfurr]
psyko666 has quit [Quit: Leaving]
tkuchiki_ has quit [Remote host closed the connection]
<ntzrmtthihu777>
dammit!
tkuchiki has joined #ruby
psyko666 has joined #ruby
dima_ has joined #ruby
lw has joined #ruby
hedgehog has quit [Ping timeout: 245 seconds]
jamto11 has quit [Ping timeout: 250 seconds]
combusean has joined #ruby
psyko666 has quit [Client Quit]
freerobby has quit [Ping timeout: 252 seconds]
dima_ has quit [Ping timeout: 240 seconds]
<mazzid>
I imagine this is really obvious, but can anybody pint me in the right direction for this. Given an array of arrays, I'd like to get sub-arrays who have a certain value in them.
mary5030 has quit [Remote host closed the connection]
<mazzid>
In perl I'd do something like: grep({ $_->[$keyOfInterest] eq $valueOfInterest } @inputArray);
mary5030 has joined #ruby
eyeamaye1 has quit [Quit: Leaving.]
rylev has joined #ruby
<ntzrmtthihu777>
le sigh. y u no work, ruby 2.1.0?
kayloos has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
<ntzrmtthihu777>
strange thing is I can build the devkit, just not the real deal...
rylev has quit [Ping timeout: 250 seconds]
etqqkoiflwhb has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kayloos has quit [Ping timeout: 245 seconds]
zzzak has joined #ruby
<zzzak>
hi
<zzzak>
do you discuss here job opportunities ?
phansch has joined #ruby
ellbot has joined #ruby
kevind has quit [Quit: kevind]
<mazzid>
answering my own question: Enumerable.find_all
robbyoconnor has joined #ruby
tectonic has joined #ruby
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
SidWu has joined #ruby
etqqkoiflwhb has joined #ruby
nateberkopec has joined #ruby
ellbot has quit [Ping timeout: 276 seconds]
sski has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
sski has joined #ruby
lw has quit [Quit: s]
nateberkopec has quit [Read error: No route to host]
cj3kim__ has quit [Read error: Connection reset by peer]
MissionCritical has quit [Excess Flood]
cover has joined #ruby
robert__ has joined #ruby
robert__ has quit [Changing host]
robert__ has joined #ruby
cj3kim_ has joined #ruby
robert_ has quit [Ping timeout: 258 seconds]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
etqqkoiflwhb__ has joined #ruby
ntzrmtthihu777 has quit [Ping timeout: 258 seconds]
rm__ has quit [Remote host closed the connection]
rm_ has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 276 seconds]
Morkel has joined #ruby
<ntzrmtth1hu777>
why the fuck is windows so damned stupid D:<
etqqkoiflwhb__ has quit [Read error: Connection reset by peer]
etqqkoiflwhb__ has joined #ruby
sdouglas has quit [Remote host closed the connection]
dik_dak has quit [Quit: Leaving]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sdouglas has joined #ruby
Shidash has joined #ruby
cj3kim__ has joined #ruby
rm__ has joined #ruby
rm_ has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
ellbot has joined #ruby
<InfraRuby>
zzzak: what do you want?
Celm has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
cj3kim_ has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 258 seconds]
cover has quit [Remote host closed the connection]
<zzzak>
InfraRuby: I was just wondering if it's forbidden to disuss jobs here ?
mary5030 has joined #ruby
MissionCritical has joined #ruby
larissa has quit [Quit: Leaving]
sdouglas has joined #ruby
ellbot has quit [Ping timeout: 250 seconds]
tagrudev has joined #ruby
zzzak has quit []
phansch has quit [Quit: WeeChat 0.4.2]
evenix has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
evenix has joined #ruby
oo_ has joined #ruby
freerobby has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
evenix has quit [Ping timeout: 276 seconds]
Alina-malina has quit [Ping timeout: 245 seconds]
omosoj has quit [Ping timeout: 250 seconds]
freerobby has quit [Ping timeout: 258 seconds]
Alina-malina has joined #ruby
psyko666 has joined #ruby
tvw has joined #ruby
Xeago has joined #ruby
jprovazn has joined #ruby
eyeamaye1 has quit [Ping timeout: 250 seconds]
zcreative has joined #ruby
Cache_Money has joined #ruby
jlebrech_ has joined #ruby
senayar has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
leslie2 has joined #ruby
tungd has quit [Ping timeout: 252 seconds]
eyeamaye has joined #ruby
Terminus- has joined #ruby
mengu has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
yubrew_ has joined #ruby
<ntzrmtth1hu777>
zzak_: yeah; no one wants to talk about apple
fella6s has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
nateberkopec has joined #ruby
SilverKey has quit [Quit: Cheerio!]
nari has joined #ruby
<zzak_>
wrong zzak i think
ntzrmtth1hu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
ktosiek has joined #ruby
fella5s has quit [Ping timeout: 240 seconds]
emaxi has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
<Terminus->
question, how can i have ~/.gems/ override everything else on the system? it looks like require 'psych' loads /usr/lib/ruby/1.9.1/psych.rb instead of ~/.gem/ruby/1.9.1/gems/psych-2.0.5/lib/psych.rb
emaxi has quit [Ping timeout: 250 seconds]
pacbard has quit [Quit: Connection closed for inactivity]
senayar has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
mac_cosmo has joined #ruby
stephenmac7 has quit [Ping timeout: 264 seconds]
bal has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
helpD has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
Avahey_ has joined #ruby
tjr9898_ has joined #ruby
marr has joined #ruby
yacks has quit [Ping timeout: 250 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
helpD has quit [Ping timeout: 276 seconds]
madcad has joined #ruby
tjr9898_ has quit [Ping timeout: 258 seconds]
klaut has joined #ruby
wallerdev has quit [Quit: wallerdev]
Shidash has quit [Ping timeout: 245 seconds]
m104 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qubit has quit [Ping timeout: 252 seconds]
lmickh has quit [Remote host closed the connection]
obs has joined #ruby
anarang has joined #ruby
oo_ has quit [Remote host closed the connection]
jlebrech_ has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
Nukepuppy has joined #ruby
cj3kim__ has quit [Remote host closed the connection]
fgo has joined #ruby
cj3kim_ has joined #ruby
senayar has quit [Remote host closed the connection]
stephenmac7 has joined #ruby
senayar has joined #ruby
danijoo has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.3]
bricker`LA has joined #ruby
baroquebobcat has joined #ruby
pen has quit [Remote host closed the connection]
ellbot has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
senayar has quit [Ping timeout: 250 seconds]
cj3kim_ has quit [Remote host closed the connection]
danijoo has quit [Ping timeout: 252 seconds]
bal has quit [Quit: bal]
dima_ has joined #ruby
bal has joined #ruby
_justin has joined #ruby
dagobah has joined #ruby
ellbot has quit [Ping timeout: 258 seconds]
ws2k33 has joined #ruby
kith has quit [Quit: kith]
Cache_Money has quit [Quit: Cache_Money]
kith has joined #ruby
ktosiek has quit [Ping timeout: 276 seconds]
qubit has joined #ruby
dima_ has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
combusean has quit [Ping timeout: 245 seconds]
claymore has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
robert__ is now known as robert_
danijoo has joined #ruby
MatthewsFace has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
jamto11 has joined #ruby
freerobby has joined #ruby
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 5 Hours 43 Minutes and 45 Seconds Online.]
ghr has quit [Ping timeout: 258 seconds]
sandelius has joined #ruby
<sandelius>
Anyone have a simple tut for storing multiple gems inside a single repository with a rake task that releases them all?
Nukepuppy has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Ping timeout: 252 seconds]
freerobby has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 250 seconds]
yacks has joined #ruby
jack_rabbit has joined #ruby
amclain has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
<sandelius>
Anyone have a simple tut for storing multiple gems inside a single repository with a rake task that releases them all?
rylev has quit [Remote host closed the connection]
Al__ has joined #ruby
freerobby has joined #ruby
<zorak>
this is factory pattern?
rylev has joined #ruby
<zorak>
im searching in ddg about it
jamto11 has joined #ruby
etqqkoiflwhb__ has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has quit [Remote host closed the connection]
<Hytosys>
nah factory pattern is basically what you’re doing right now but instead of returning :symbols you would return object instances… not particularly necessary
<zorak>
run it and have to change lenght with size
<zorak>
lenght is an String method iirc
<Mon_Ouie>
No, it isn't, but length is. It's also defined in other classes such as Array.
<Hytosys>
Array#size is aliased as Array#length… since ruby 1.8.7 at least!
wm3|away has joined #ruby
deens has quit [Ping timeout: 252 seconds]
<zorak>
im in ruby 1.9 and get this error undefined method `lenght' for [2]:Array
<Hytosys>
try “length” :)
<Hytosys>
typo
<zorak>
ahh
<zorak>
yes
<zorak>
:P
<Hytosys>
but size is good too no problem
jlebrech has joined #ruby
<zorak>
from 13 lines to 7, cool, cool, cool
mengu has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<zorak>
a no, 16 to 7 :P
<Hytosys>
congrats ;)
klaut has joined #ruby
Slarv has quit [Read error: Connection reset by peer]
funburn has quit [Read error: Connection reset by peer]
<Mon_Ouie>
atmosx: I don't know but your condition is definitely wrong as it uses '=' instead of '=='.
bal1 has joined #ruby
funburn has joined #ruby
Symbiosisz has joined #ruby
<atmosx>
omg
<atmosx>
Mon_Ouie: thanks
bal has quit [Ping timeout: 246 seconds]
boostedb has quit [Quit: boostedb]
Heskie has quit []
etqqkoiflwhb____ has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<Mon_Ouie>
Also choosing a filename based on what the user used is probably not very wise. What if they call it '../lets_mess_up_the_directory_structure'?
<tobiasvl>
atmosx: I'd use two spaces for indenting the ruby as well, like you do with the haml
decoponio has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
arturaz has joined #ruby
nateberkopec has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
<atmosx>
tobiasvl: I need to configure vim to do that for me, cause vim use tabs
etqqkoiflwhb___ has quit [Ping timeout: 276 seconds]
<atmosx>
tobiasvl: and I'm used to tabs, except from haml... But I see that 2-spaces convention everywhere, so I guess you have a point
bigkevmcd has joined #ruby
jack_rabbit has joined #ruby
dumdedum has quit [Ping timeout: 276 seconds]
Al__ has quit [Ping timeout: 276 seconds]
zorak has quit [Ping timeout: 240 seconds]
mrmargolis has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
fsdldl has quit [Quit: WeeChat 0.4.3]
BalkM has joined #ruby
klip has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
aagdbl1 has quit [Ping timeout: 258 seconds]
bmalum has quit [Ping timeout: 258 seconds]
mrmargolis has quit [Ping timeout: 258 seconds]
Al__ has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
aaronmcadam has joined #ruby
aagdbl has joined #ruby
<atmosx>
nice works fine now
postmodern has quit [Quit: Leaving]
tgkokk has joined #ruby
MindfulMonk has quit [Ping timeout: 252 seconds]
DouweM has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
pipeep has quit [Ping timeout: 258 seconds]
SevereOverfl0w has quit [Ping timeout: 246 seconds]
yokel has quit [Ping timeout: 245 seconds]
klaut has quit [Remote host closed the connection]
phansch has joined #ruby
timonv has joined #ruby
zorak has joined #ruby
dumdedum has joined #ruby
matchaw has joined #ruby
phansch has quit [Client Quit]
dhruvasagar has quit [Remote host closed the connection]
lyanchih has joined #ruby
InfraRuby has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
jhass|off is now known as jhass
jason__ has joined #ruby
nomenkun has joined #ruby
lyanchih has joined #ruby
fabrice31 has joined #ruby
rylev has quit [Ping timeout: 250 seconds]
funburn has quit [Remote host closed the connection]
jottr has joined #ruby
jason__ has quit [Ping timeout: 276 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
robustus has quit [Ping timeout: 264 seconds]
<flan3002>
I have an object u, printing it from pry outputs #<URL _id: 534bc4fa03f690a26f000002, long_url: nil, number: 0, short_url: nil>, printing url.long_url outputs "pages". How is this possible? u included Mongoid::Document.
twiceday has joined #ruby
<jhass>
that's what u.inspect returns
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
check u.method(:inspect).source_location
gry has left #ruby [#ruby]
robustus has joined #ruby
ponga has quit [Remote host closed the connection]
chipotle has joined #ruby
twiceaday has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
Celm has joined #ruby
<flan3002>
jhass: But why are they different? I can't tell from the source code...
funburn has joined #ruby
<jhass>
check what the long_url method does then
<jhass>
inspect probably uses a different way to obtain the value than the method
ponga has quit [Ping timeout: 245 seconds]
ellbot has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
funburn has left #ruby [#ruby]
wethu has joined #ruby
<flan3002>
jhass: Well, I use attr_accessor to access them.
<jhass>
doesn't change my guess
tgkokk has quit [Ping timeout: 258 seconds]
<flan3002>
Then I don't know what else to check.
etqqkoiflwhb____ has quit [Ping timeout: 250 seconds]
tjr9898 has quit [Remote host closed the connection]
nichtdiebohne has joined #ruby
tjr9898 has joined #ruby
meatherly has quit [Ping timeout: 258 seconds]
niharvey has joined #ruby
Wapitidou has joined #ruby
qba73 has quit [Ping timeout: 276 seconds]
osvico has quit [Ping timeout: 276 seconds]
relix has joined #ruby
mehlah has joined #ruby
etqqkoiflwhb____ has joined #ruby
thomasxie has joined #ruby
Phage has joined #ruby
zachallett has joined #ruby
nateberkopec has joined #ruby
fgo has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
dblessing has joined #ruby
tjr9898_ has joined #ruby
tjr9898 has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
timonv_ has joined #ruby
m0s is now known as m0s^away
mary5030 has joined #ruby
m0s^away is now known as m0s
nateberkopec has quit [Ping timeout: 240 seconds]
Hytosys has quit [Quit: Hytosys]
forcefsck has quit [Quit: Ex-Chat]
jcs222 has quit [Quit: leaving]
timonv has quit [Ping timeout: 276 seconds]
etqqkoiflwhb____ has quit [Quit: Computer has gone to sleep.]
cover has joined #ruby
willb1 has quit [Read error: Operation timed out]
atno has joined #ruby
atno has quit [Remote host closed the connection]
willb1 has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
timgauthier has joined #ruby
chipotle has joined #ruby
* timgauthier
a wild me appears
jhass is now known as jhass|off
codabrink has joined #ruby
<timgauthier>
jhass|off nice :P
atno has joined #ruby
djbender has joined #ruby
<timgauthier>
oh, nm it rendered in my font as hassloff .. i thought you made a clever joke jhass|off
<timgauthier>
join #design
<shevy>
lol
<timgauthier>
woops
<shevy>
join #hot-sex
<timgauthier>
shevy shh
<timgauthier>
whats awesome is i joined ##design somehow instead of just #design
Iamtherealnakamo has quit [Ping timeout: 258 seconds]
<workmad3>
timgauthier: /j #design puts you into ##design
maximski_ has joined #ruby
<timgauthier>
ah i see... whats the difference, why are some rooms double hashed?
<benzrf>
shevy u r entirely 2 nsfw
<benzrf>
god damn
<shevy>
k gej b a e benzrf
<benzrf>
timgauthier: double hash usually indicates an unofficial channel
<timgauthier>
ah
<workmad3>
but not always
<timgauthier>
shevy stop with the gibbrish
<benzrf>
timgauthier: so in particular general topics that couldnt be official usually have a double hash
<shevy>
timgauthier I was communicating with benzrf
<benzrf>
timgauthier: ie ##design or ##programming
<shevy>
<benzrf> shevy u r entirely 2 nsfw <--
<timgauthier>
ah neat
<benzrf>
timgauthier: actually it might be better to think of a single hash as meaning official and double as being the default
<benzrf>
timgauthier: this is largely a freenode distinction fwiw
<shevy>
timgauthier freenode loves the #, galaxynet has a much saner policy in regards to channels
m0s is now known as m0s^away
<workmad3>
shevy: I bet #ruby on galaxynet has much less interesting people in it though ;)
<timgauthier>
but we are not ON galaxy net are we shevy, EXACTLY :P
<timgauthier>
yah i don't even
<shevy>
workmad3 yeah, galaxynet is mostly a chat server really
<benzrf>
freenode is best net <- tru fax
jhass|off is now known as jhass
<shevy>
freenode is for real learning
<workmad3>
90% of my friends are on freenode...
<timgauthier>
it is funny to go to ##design, because designers don't usually understand the IRC's :P
<timgauthier>
soooo its not really going to have anything going on.
mary5030 has quit [Remote host closed the connection]
<shevy>
they got you now timgauthier
<workmad3>
timgauthier: could be code design
<shevy>
so there will be something going on
klaut has joined #ruby
maximski has quit [Ping timeout: 276 seconds]
mary5030 has joined #ruby
tjr9898_ has quit [Read error: Connection reset by peer]
ponga has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<timgauthier>
uh oh
creativeembassy has joined #ruby
ponga has joined #ruby
jrhe has joined #ruby
jhass has quit [Remote host closed the connection]
maximski_ has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
duggiefresh has joined #ruby
yfeldblum has joined #ruby
atno has quit [Remote host closed the connection]
<workmad3>
timgauthier: I only joined #design to see if it would bump over to ##design like I suspected... and I'll probably just lurk there now to see if there's anything interesting happening :)
atno has joined #ruby
jhass|off has joined #ruby
atno has quit [Remote host closed the connection]
jhass|off is now known as jhass
<timgauthier>
indeed
<shevy>
god
atno has joined #ruby
<shevy>
workmad3 channel creeping is scaring the shit outta me
<timgauthier>
well today an app got released for us designer peeps, so that is exciting
<shevy>
what does the app do?
<workmad3>
shevy: it's an app for designers... it probably doesn't *do* anything, it's just shiney
<certainty>
good call
jhass has quit [Client Quit]
<certainty>
just like me
<workmad3>
certainty: dome wax?
<shevy>
lol
<certainty>
:)
Macaveli has quit [Quit: Leaving]
<shevy>
glossy hair (grease)
rylev has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 252 seconds]
<certainty>
workmad3: i'm bold
<workmad3>
shevy: are you suggesting that certainty eats a diet high in marrowbone jelly for a thick, glossy coat?
<certainty>
bald
<certainty>
that's what i use my wax for :p
<workmad3>
certainty: that's what dome wax is :P
rylev has joined #ruby
<timgauthier>
wow, i wasn't really being a bad influence on this channel at all, neat.
ponga has quit [Read error: No route to host]
diegoviola has joined #ruby
pipeep has quit [Ping timeout: 258 seconds]
<workmad3>
timgauthier: pfft, this is a step above our normal monday convos :)
<certainty>
workmad3: damn foreign languages
<timgauthier>
where is the file to edit terminal alias etc again?
SevereOverfl0w has quit [Ping timeout: 252 seconds]
<certainty>
gtg
* certainty
&
<timgauthier>
certainty cya
<workmad3>
timgauthier: ~/.bashrc ?
<workmad3>
certainty: cya
<timgauthier>
thanks
<workmad3>
timgauthier: or do you use zsh? if so, ~/.zshrc
<timgauthier>
yes that was the file i meant
Macaveli has joined #ruby
jhass|off has joined #ruby
fijimunkii has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
sailias has joined #ruby
jhass|off is now known as jhass
doodlehaus has joined #ruby
<workmad3>
timgauthier: potentially (depending on distro and setup) could also be looking at ~/.bash_profile, ~/.profile, /etc/bashrc, /etc/bash_profile and /etc/profile...
<timgauthier>
i keep it simple so i use bash, and by simple i mean i try not to do too much installed stuff. Infact I should systemize my deft environment into some sort of installer so that I can easily install when i get to a new mac, and i should symbolize my bashrc file to dropbox too
<timgauthier>
well actually i need to figure out how, and it was .bash_profile
agjacome has quit [Quit: leaving]
LBRapid has joined #ruby
<shevy>
just gather your personal stuff into another file, and then source that file from .bash* files
<timgauthier>
i don't even.. what?
<workmad3>
shevy: I've got a ~/.zshrc.d and a ~/.profile.d directory for my zsh specific and bash/zsh profile stuff :)
jhass has quit [Client Quit]
<workmad3>
and then just source them in .zshrc and .bashrc
<timgauthier>
too many /'s and stuff, i don't even know what i'm reading
Iamtherealnakamo has joined #ruby
<crome>
wut
<shevy>
I went the simpler route
<shevy>
and don't use zsh at all
<shevy>
:D
<timgauthier>
how do you restart bash to use your new alias?
<crome>
you dont
<workmad3>
timgauthier: source ~/.bashrc
jhass|off has joined #ruby
<workmad3>
timgauthier: or source ~/.bash_profile
jhass|off is now known as jhass
<crome>
or you can just open a new termianl window if you dont like all those "/'s and stuff"
<shevy>
timgauthier make a file with your aliases and just source that file again
<workmad3>
crome: :D
<timgauthier>
what does source do?
<shevy>
it's like load() in ruby!
<workmad3>
timgauthier: sources a file... ;)
<workmad3>
timgauthier: man source
<timgauthier>
ah.. so you just put the file in dropbox, and then all you have to do on a new device is load the source
<workmad3>
drats, it's a builtin...
<workmad3>
so useless man page...
<timgauthier>
and that file could source a bunch of others.. ok
<workmad3>
timgauthier: well, I don't put these in dropbox personally... but you could do that
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<timgauthier>
thats what i use dropbox for really. to sync that kind of unimportant stuff.
<timgauthier>
unimportant as in "Don't care if NSA reads it"
jhass has quit [Remote host closed the connection]
<workmad3>
timgauthier: you may as well just relegate everything to that level of unimportance...
<workmad3>
timgauthier: chances are the NSA has already read it ;)
garndt has joined #ruby
<timgauthier>
boxen is a neat idea, but it looks like its more for companies that use github
<timgauthier>
workmad3 well thats true too. unless y'know i just don't put stuff like that anywhere
<workmad3>
boxen is just a general framework for setting up macs
<workmad3>
it was created by github
<workmad3>
timgauthier: well, as long as you're not one of the crazies with a tinfoil hat ;)
klaut has quit [Remote host closed the connection]
<timgauthier>
yeah but it looks like it uses github as the source, though i guess i could use a public repo of that. Why did github remove the 1 private repo from free accounts :(
antoinelyset has joined #ruby
<crome>
because they like money
klaut has joined #ruby
<timgauthier>
naw no tinfoil workmad3, that makes you an antenna and makes it easier to track you
tjr9898 has quit [Remote host closed the connection]
slavapavlutin has joined #ruby
FxK has joined #ruby
tjr9898 has joined #ruby
jerius has joined #ruby
<timgauthier>
crome true, but a single private repo is basically a "user store". I mean i'm not going to pay you to store stuff i could git store other places privately for free, but a single private repo makes it easy and convenient for a single use space. Then i'd be paying for anything above that.
<shevy>
workmad3 haha "boxen" is german for the sport "boxing"
Chronocity has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
osvico has joined #ruby
<workmad3>
timgauthier: you could always use bitbucket
ellbot has joined #ruby
<antoinelyset>
quit
antoinelyset has quit [Client Quit]
jlast has joined #ruby
<timgauthier>
workmad3 thats what i mean. I mean and if they like money why do free github pages, a single private repo sort of "locks" you in via convenience. "oh I already have a private repo here, might as well use the publics, oh and lets do this client project via a paid private"
klaut has quit [Ping timeout: 245 seconds]
fijimunkii has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
<Hanmac>
workmad3 & shevy (Sound-)Boxen also are a german name for (PC-)Speakers ..
tjr9898 has quit [Ping timeout: 258 seconds]
jerius has quit [Client Quit]
tungd has joined #ruby
mr_snowf1ake has quit [Ping timeout: 258 seconds]
afreidah1 has joined #ruby
pedda has joined #ruby
enebo has joined #ruby
alexju has joined #ruby
ellbot has quit [Ping timeout: 252 seconds]
IcyDragon has joined #ruby
IceDragon has joined #ruby
IcyDragon has quit [Client Quit]
<Cope>
what's the best way to serialise a struct? I want to be able to take a struct which I get in an interactive session, and write it out so I can reuse it else where (actually as canned data)
<j416>
I'm looking for a PDF of O'Reilly Ruby Best Practises by Gregory Brown; This seems broken and I'm not succeeding in compiling it either. Does anyone know where I can get a PDF? https://github.com/sandal/rbp-book/
Squarepy has joined #ruby
Waheedi has quit [Quit: Waheedi]
zegerjan has joined #ruby
rvraghav93 has joined #ruby
dima_ has quit [Ping timeout: 250 seconds]
rudisimo has joined #ruby
chipotle_ has joined #ruby
creativeembassy has quit [Quit: FO SHO]
benzrf is now known as benzrf|offline
iamjarvo has joined #ruby
deens has joined #ruby
arquebus has joined #ruby
Waheedi has joined #ruby
meatherly has joined #ruby
jeregrine has joined #ruby
antoinelyset has joined #ruby
aagdbl has joined #ruby
afreidah1 has joined #ruby
andrewlio has quit [Quit: Leaving.]
chipotle has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
<antoinelyset>
who
aagdbl has quit [Client Quit]
<Cope>
to clarify... it's easy to serialise.. with YAML::dump for example, but when I YAML.parse it, I get a Psych::Nodes::Document... not a Struct
<Devanon>
j416: it-ebooks.info check there
treehug88 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
deens has quit [Ping timeout: 240 seconds]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
fgo has joined #ruby
Guest77325 has joined #ruby
<Guest77325>
http://www.marketglory.com/strategygame/galahad1st for online gamers, if you didn't already, use this link to register on MerketGlory: a free2play financial strategy game where virtual currency can be converted into real money. It starts out slow but in time you can turn a good profit that is if you have the necessary patience to grow a little bit every day :P
Guest77325 has left #ruby [#ruby]
boboc has quit []
jacobat_ has quit [Quit: WeeChat 0.4.0]
doodlehaus has quit [Ping timeout: 252 seconds]
<j416>
Devanon: there it is! awesome, thanks
RubyPanther has joined #ruby
<Devanon>
j416: np :)
oo_ has quit [Remote host closed the connection]
<antoinelyset>
Hi all, I want to test the kind_of an object in a gem but I don't want to have the tested classes required, is it possible ? Is object.class.to_s == "MyUnRequiredClass" a really bad practice ?
chipotle_ has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 276 seconds]
aagdbl has joined #ruby
chipotle has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
zegerjan has quit [Ping timeout: 250 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
glanzi has quit [Remote host closed the connection]
roday has joined #ruby
creativeembassy has joined #ruby
freerobby1 has joined #ruby
Tachoh has left #ruby [#ruby]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
greenarrow has quit [Quit: 500]
grieg has quit [Quit: Leaving]
grieg has joined #ruby
sski has quit [Remote host closed the connection]
jobewan has joined #ruby
<antoinelyset>
any help ?
cover has quit [Ping timeout: 245 seconds]
obscured has joined #ruby
greenarrow has joined #ruby
sski has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
baweaver has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
jhass|off has joined #ruby
picca has joined #ruby
jhass|off is now known as jhass
mvangala has joined #ruby
darkaer has joined #ruby
sski has quit [Ping timeout: 276 seconds]
roday has quit [Quit: Page closed]
<crome>
antoinelyset: what you really want to do is maybe testing for respond_to?
doodleha_ has joined #ruby
doodlehaus has quit [Ping timeout: 250 seconds]
Nukepuppy has joined #ruby
glanzi has joined #ruby
ce_afk is now known as cescalante
ctp has joined #ruby
Fretta has joined #ruby
<antoinelyset>
Yeah I thought about this, duck typing is great. Thanks !
<antoinelyset>
I will go with that*.
doodlehaus has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
flowerhack has joined #ruby
rm_ has joined #ruby
<timgauthier>
does anyone know if there is a room for the middleman app?
<shevy>
perhaps ask in #rack
m104 has joined #ruby
<shevy>
there are some clever idlers there
<shevy>
I mean, people!
<timgauthier>
ok ;)
yfeldblum has joined #ruby
<timgauthier>
would it be a helper to make something that every time i put an image to have a url append/prepend ?
<timgauthier>
i don't even really know what i just asked :P
<antoinelyset>
Me neither.
eka has joined #ruby
<shevy>
haha
<timgauthier>
instead of putting <%= config[:active_class_default] %> in front of every image url y'think i could make that more DRY?
<shevy>
the answer is 42 timgauthier
<timgauthier>
ok thnx!
<shevy>
omg
<shevy>
you are still with those awful tags
<timgauthier>
of course! IT IS MY LIFE1
<timgauthier>
but now they bend to my will!
roday has joined #ruby
<timgauthier>
mostly
<shevy>
so what does config[:active_class_default] give you back
<shevy>
a string?
mrmeeseeks has joined #ruby
evenix has joined #ruby
fgo has joined #ruby
aarkerio has joined #ruby
agarie has joined #ruby
<timgauthier>
well, if i'm in the dev environment '' (empty string) if i'm running build or the dev environment it returns whatever i assign, which in this case is /middleman/ but would change depending where or how i am deploying
doodleha_ has joined #ruby
<shevy>
hmm
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mrnugget has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<timgauthier>
I mean, i don't MIND putting the variable thing in every time, it just would be neat to not have too. It has to also be on any other links within this site. So like linking to another page. I can do relative links for some things and that works, but if i need to go to the about page, /about/ works if you are on a root level page y'know. but middleman doesn't seem to understand if it is under a folder to make the link do the right
<timgauthier>
things for assets.
<timgauthier>
i mean, basically, middleman is doing EXACTLY what i expect it to do.
<timgauthier>
but if i could make it less typing/copypasta
evenix has quit [Ping timeout: 250 seconds]
<antoinelyset>
Can't you change the base url ?
fgo has quit [Ping timeout: 245 seconds]
andrewlio has joined #ruby
gaussblurinc has joined #ruby
<timgauthier>
yes
<timgauthier>
wait what do you mean?
doodlehaus has quit [Ping timeout: 276 seconds]
<timgauthier>
config.baseurl is something i've added/configured
<antoinelyset>
You need to prepend something on each of you url ?
<timgauthier>
i need to prepend something to most of my urls
dik_dak has joined #ruby
<antoinelyset>
Hmmm. Ok so you need an helper or some context/wrapper.
<timgauthier>
wait. i'm just thinking may be i can just put it on all of them.
jottr has quit [Ping timeout: 276 seconds]
<timgauthier>
yeah i was thinking that, i just don't know understand helpers enough yet :D lol
emaxi has joined #ruby
<antoinelyset>
If you can add it to all of them. Just modify the base_url and you're done.
<antoinelyset>
(I've never done a middleman app but I imagine you could)
<timgauthier>
yeah, i still need to be able to have relative links sometimes, for things like "Next" and "Previous" to be simple but all nav/ most image links need to be relative but from the base directory
m104 has quit [Quit: bye]
apeiros_ has quit [Remote host closed the connection]
mengu is now known as fka_
fka_ is now known as mengu
<timgauthier>
well the base_url isn't something defined in middleman
<timgauthier>
i defined that
emaxi_ has quit [Ping timeout: 252 seconds]
mengu has quit []
<timgauthier>
eh, don't worry about it :)
apeiros has joined #ruby
Celm has joined #ruby
nemesit|znc has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
chrisseaton has joined #ruby
rylev has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
Rix has joined #ruby
rylev has joined #ruby
<timgauthier>
oi, its so windy out in germany.. I'm glad i'm in these big stone houses, not sure how well the little stick houses back in canada would feel in this.
kevind has joined #ruby
ponga has quit [Quit: Leaving :)]
nemesit|znc has joined #ruby
cjbottaro has joined #ruby
gaussblurinc1 has joined #ruby
bhertach has joined #ruby
gaussblurinc has left #ruby ["Leaving"]
gaussblurinc1 has left #ruby [#ruby]
<shevy>
yeah
<shevy>
windy
<shevy>
nothing good ever comes out of germany
helpD has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
apeiros has quit [Ping timeout: 258 seconds]
ellbot has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
<timgauthier>
where you live shevy? We'll just Anchlüss it
mvangala has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
popl has quit [Ping timeout: 250 seconds]
<shevy>
timgauthier austria
<timgauthier>
you, then you already did that
<shevy>
timgauthier well we sent him over to germany!
<timgauthier>
:P
<timgauthier>
ok enough
rylev has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
<timgauthier>
going into dangerous territory there
rylev has joined #ruby
freerobby1 has quit [Read error: Connection reset by peer]
tjr9898 has quit [Remote host closed the connection]
freerobby has joined #ruby
mvangala has joined #ruby
omosoj has joined #ruby
psyko666 has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
ellbot has quit [Ping timeout: 276 seconds]
Squarepy has quit [Ping timeout: 245 seconds]
mrmeeseeks has quit [Quit: [BX] The birds kept calling his name, thought Caw]
Stalkr_ has joined #ruby
crystal77 has joined #ruby
SecretAgent has joined #ruby
<bhertach>
anybody here who knows about the rack-ssl-enforcer gem? having a strange problem...
zcreative has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
LekeFly has joined #ruby
banister has joined #ruby
dyoko has joined #ruby
kirun has joined #ruby
darkaer has quit [Quit: darkaer]
jorts has joined #ruby
ixti has joined #ruby
ixti has quit [Read error: Connection reset by peer]
<timgauthier>
I understand my question better.. I want my absolute URLs to have the config.baseurl appended to them, but not relative or fully qualified urls
thomasxie has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
<timgauthier>
aka root relative urls
<workmad3>
timgauthier: a 'fully qualified url' is an absolute url
codezomb has joined #ruby
picca has quit [Client Quit]
anarang has quit [Quit: Leaving]
<workmad3>
timgauthier: what you mean is a relative url with an absolute path ;)
<timgauthier>
sorry, i mean http://example.com as a fully qualified vs /subpage/after/root as a root relative/absolute
<timgauthier>
yes
<codezomb>
has anyone seen issues like this in bundler? Basically, I'm specifying a gem in my gemfile, and that gem has a dependency on another gem. They both get installed, but bundler blows up saying it can't find one of them. The error, plus the two gemspecs are included in this gist https://gist.github.com/codezomb/cee319dde3484ac55156#file-gistfile1-rb
Squarepy has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<workmad3>
timgauthier: not that I'm able to help much with solving your problem... I'm only chiming in with clarifications of your jargon :)
darkaer has joined #ruby
<timgauthier>
thats still ok :)
<codezomb>
it also only blows up on bundle install, or rbenv rehash... Running `bundle` by itself works fine.
jery_ has quit [Ping timeout: 250 seconds]
<benzrf>
codezomb: have u tried deleting ur lockfile
<codezomb>
benzrf: yep, and my entire bundle dir
<timgauthier>
apparently i could be using the asset tags from rails, that would solve the image issues, but not my urls for pages
atmosx has joined #ruby
<jhass>
codezomb: huh, `bundle` should be an alias to `bundle install`
<jhass>
codezomb: please append the .lock to the gist
deens has quit [Ping timeout: 240 seconds]
<workmad3>
codezomb: do you mean when you 'bundle exec' something?
mary5030 has quit [Remote host closed the connection]
<codezomb>
workmad3: no, bundle... works.... bundle install... throws that error.
geggam has joined #ruby
<workmad3>
codezomb: also, that looks like the sort of issue that happens when GEM_HOME isn't in your GEM_PATH...
toastynerd has joined #ruby
BizarreCake has joined #ruby
<codezomb>
jhass: lock attached
<codezomb>
workmad3: looks like neither of those are set in my shell env
<jhass>
okay, I join GEM_HOME/_PATH issues then
noop has joined #ruby
<jhass>
attach gem env and bundle exec gem env
Wapitidou has quit [Quit: WeeChat 0.4.0]
<codezomb>
jhass: updated
keen__ has joined #ruby
bal1 has quit [Quit: bal1]
keen_ has quit [Ping timeout: 240 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
evenix has joined #ruby
<jhass>
okay, is trying to install without the --path option an option for you? if so dump vendor/bundle and .bundle/config and try again
<atmosx>
guys enctype="multipart/form-data" is need only when binary files are uploaded?
mary5030 has quit [Remote host closed the connection]
<atmosx>
in HTML forms
atno has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
apeiros has joined #ruby
andy__ has joined #ruby
mary5030 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
keen__ has quit [Ping timeout: 240 seconds]
atno has joined #ruby
rmorello is now known as rmorello|qq-etl
gaussblurinc has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
megaputer has joined #ruby
atno has quit [Remote host closed the connection]
<atmosx>
never mind
atno has joined #ruby
atno has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
malkomalko has joined #ruby
atno has joined #ruby
madhatter has quit [Ping timeout: 255 seconds]
x77686d has joined #ruby
madhatter has joined #ruby
_sillymarkets has joined #ruby
fieldfirst has quit [Ping timeout: 258 seconds]
<codezomb>
jhass: that blows up with some different errors now. /Users/mike/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/lib/bundler/resolver.rb:228:in `resolve_for_conflict': Bundler could not find compatible versions for gem "activesupport": (Bundler::VersionConflict)
fijimunkii has quit [Read error: Connection reset by peer]
dinosaurs has joined #ruby
fijimunkii has joined #ruby
SCommette has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<codezomb>
even with blowing out the Gemfile.lock
<timgauthier>
shevy wanna see some convoluted link_to erg action? :P
<timgauthier>
erb*
<shevy>
no
<shevy>
erb must die
<timgauthier>
its actually rails
madb055 has quit [Read error: Connection reset by peer]
<timgauthier>
you'll love it man!
<timgauthier>
<%= link_to 'Projects with Active', '/projects.html', {:relative => 'false'}, { :class => ("active" if current_page.data[:active].presence == 'projects')} %>
toastynerd has quit [Remote host closed the connection]
<shevy>
omg
<timgauthier>
haha
<shevy>
why is there <%=
<timgauthier>
because render to html babe
kevinykchan has joined #ruby
<benzrf>
that is an abomination and you should feel bad omg
<timgauthier>
its beautiful
<shevy>
render, ok
<shevy>
you can use ruby code to render any result you want to, too
_justin has joined #ruby
<timgauthier>
i put the relative in there just to make you cry
<shevy>
I could not go past the <%= sorry
lukaszk has joined #ruby
<shevy>
I came from php in the hope to abandon it
<timgauthier>
is there a better way to skip the options to go to the second {} then just an empty {} ? -- link_to 'Projects with Active', '/projects.html', {}, { :class => ("active" if current_page.data[:active].presence == 'projects')} --
sambao21 has quit [Quit: Computer has gone to sleep.]
leslie2 has quit [Quit: Leaving.]
<jhass>
codezomb: I can only guess but I'd say rbenv is to blame or maybe bundler itself. Reach out there (there's #bundler for example)
<codezomb>
jhass: thanks, I thought so but I wanted to start here to make sure I didn't miss anything.
keen__ has joined #ruby
<atmosx>
shevy: you know PHP?
<atmosx>
shevy: oh that's awful :-(
timgauthier has quit [Ping timeout: 240 seconds]
agjacome has quit [Ping timeout: 258 seconds]
timgauthier has joined #ruby
rippa has joined #ruby
carlyle has joined #ruby
andy___ has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
<gaussblurinc1>
atmosx: why so? PHP is just a big platform with good/bad styled libs. knowledge means knowledge and experience.
tungd has quit [Ping timeout: 258 seconds]
<timgauthier>
PHP IS BEST
<timgauthier>
shevy KNOWS!
<shevy>
atmosx, yeah I was writing php code for about 2 years
andy___ has quit [Read error: Connection reset by peer]
<shevy>
it was easier to work with than perl for me
<atmosx>
shevy: I see
meatherl_ has joined #ruby
<atmosx>
gaussblurinc1: I'm kidding but I don't like how it looks like
<shevy>
timgauthier php is truly awful, it can not even be called a programming language, it is more like a melting pot with different cooks
yfeldblum has joined #ruby
<estaban>
1
<shevy>
2
<estaban>
TRUE
tobago has quit [Remote host closed the connection]
andy___ has joined #ruby
s3ri0us has joined #ruby
affinehat has joined #ruby
affinehat has quit [Max SendQ exceeded]
Iamtherealnakamo has quit [Read error: Connection reset by peer]
<shevy>
hehe
<timgauthier>
workmad3, you still watching ##design...
pwh has joined #ruby
<shevy>
atmosx, I am trying to learn R... dat = as.data.frame(matrix(1:12, ncol = 4))
dyoko has quit [Quit: Leaving.]
<shevy>
that does a matrix
meatherly has quit [Ping timeout: 245 seconds]
<shevy>
from 1 to 12
<shevy>
with 4 columns
rm_ has quit [Remote host closed the connection]
manjaro_surf has joined #ruby
rm_ has joined #ruby
malkomalko has quit []
LiohAu has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<benzrf>
1:12?
<benzrf>
isnt that a syntax error o=
lukaszk has left #ruby ["WeeChat 0.4.3-dev"]
keen___ has joined #ruby
<benzrf>
oh thats R
<benzrf>
lol
rm_ has quit [Read error: No route to host]
Shidash has joined #ruby
rm_ has joined #ruby
<banister>
shevy isn't it dat <- ?
<banister>
iirc R uses <- and -> for assignment
oponder has joined #ruby
ahawkins has quit [Remote host closed the connection]
<banister>
5 -> x (assign 5 to x) or x <- 5 (assign 5 to x)
<benzrf>
foo <- bar is sugar for bar >>= \foo ->
<atmosx>
I study matrices in Milan when I was studying economics, I don't remember nothing
<atmosx>
I do remember that some operations were counter-intuitive to me at the beginning
<benzrf>
matrices are just 2d arrays with certain special kinds of ops
<benzrf>
i.e. dot product
kevinykchan has quit [Quit: Computer has gone to sleep.]
<benzrf>
dot product aka matrix mult is kinda weird
<benzrf>
basically u take the cartesian product of rows from the first and columns from the second
<gaussblurinc1>
where can I read about bundle, gems and module distribution?
* atmosx
stops his Sinatra thesis and opens his Rails book
<benzrf>
then you multiply each pair and take the sumark
manjaro_surf has quit [Quit: Leaving]
<benzrf>
*sum
tungd has joined #ruby
keen__ has quit [Ping timeout: 252 seconds]
<benzrf>
you then assemble a new matrix where each sum is positioned at the column and row of its source
manjaro_surf has joined #ruby
Macaveli has quit [Quit: see you in the morning <3]
manjaro_hawaii has joined #ruby
<gaussblurinc1>
atmosx: which book?
<benzrf>
this is useful in grafix cuz you can represent a set of n points as a 3×n matrix
manjaro_hawaii has quit [Remote host closed the connection]
<atmosx>
Agile Web Dev with Rails 4
<atmosx>
gaussblurinc1: why are you asking? :-)
<benzrf>
then dot product will transform each col of coords based on the values of each of em
jottr has joined #ruby
<benzrf>
if your other matrix is n×n
<benzrf>
*3×3
Celm has joined #ruby
<benzrf>
the 3's here assume 3d points
<gaussblurinc1>
atmosx: because you know good one, I am sure, I think I am sure
Bumptiou_ has joined #ruby
Devanon has quit [Quit: WeeChat 0.4.3]
<atmosx>
gaussblurinc1: there's this and the one made by Michael Hartl used by newbes mostly
snath has joined #ruby
nath_schwarz_ has joined #ruby
ImTheRealSatoshi has joined #ruby
maximski has joined #ruby
CorySimmons has joined #ruby
nath_schwarz_ has quit [Client Quit]
Bumptious has quit [Ping timeout: 264 seconds]
nath_schwarz_ has joined #ruby
nath_schwarz_ has quit [Client Quit]
ellbot has joined #ruby
ehc has joined #ruby
_maes_ has joined #ruby
andy__ has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
AirNest has joined #ruby
andy___ has joined #ruby
picca has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
dyoko has joined #ruby
andy___ has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
ellbot has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
andikr has quit [Remote host closed the connection]
lw has joined #ruby
mr_snowf1ake has joined #ruby
aganov has quit [Quit: Leaving]
gaussblurinc1 has quit [Quit: Leaving.]
jprovazn is now known as jprovazn_bbl
<olivier_bK>
i authenticate all of my user with ldap is mutch to write the ldap_connect_script with class or like a module ?
tjr9898 has joined #ruby
sdouglas has joined #ruby
fgo has quit [Remote host closed the connection]
<codezomb>
jhass: yeah, decided to just blow out rbenv, and reinstall. That seemed to clear it up.//
aagdbl has quit [Quit: Connection closed for inactivity]
jespada has joined #ruby
lw has joined #ruby
ninegrid has joined #ruby
slavapavlutin has quit [Ping timeout: 240 seconds]
jayne has quit [Read error: Connection reset by peer]
darkaer has quit [Ping timeout: 245 seconds]
JStoker has quit [Ping timeout: 255 seconds]
obs_ has quit [Quit: Konversation terminated!]
timonv has joined #ruby
jayne has joined #ruby
JStoker has joined #ruby
fijimunkii has quit [Ping timeout: 245 seconds]
Zai00 has quit [Quit: Zai00]
<timgauthier>
well, that was a dumb choice for me to do
zegerjan has quit [Ping timeout: 240 seconds]
mrmargolis has quit [Remote host closed the connection]
emaxi has joined #ruby
ikaros has quit [Quit: Ex-Chat]
<shevy>
timgauthier erb?
<shevy>
yesss
<timgauthier>
no
<timgauthier>
go to the design irc room
<timgauthier>
i forgot, other designers think their job ends when they email the .psd to someone
Bumptious has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
<timgauthier>
i'll never fit in with the cool kids now! I use ERB so shevy won't have me, and i understand the implications of my design so the designers won't have me!
Zai00 has joined #ruby
Zai00 has quit [Client Quit]
roolo has quit [Quit: Leaving...]
sambao21 has quit [Client Quit]
mrmargolis has joined #ruby
jespada has quit [Quit: Leaving]
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has quit [Quit: This computer has gone to sleep]
jottr has quit [Ping timeout: 252 seconds]
<shevy>
don't see it that difficult
<shevy>
abandon your wicked path and all is fine
<shevy>
stop using erb :>
x77686d has joined #ruby
kpshek has joined #ruby
marcux has joined #ruby
<timgauthier>
what is the shorthand to pm someone in irc?
tjr9898_ has quit [Remote host closed the connection]
<shevy>
/kick
<timgauthier>
:P
<timgauthier>
i wish
<shevy>
I too
<shevy>
you do a query
<timgauthier>
global ops would be a dangerous thing for me
<shevy>
so the command is /query
pr00t has quit [Read error: Operation timed out]
sputnik13 has joined #ruby
pr00t has joined #ruby
screen_da_youth has joined #ruby
<shevy>
timgauthier I now believe you that you are new to IRC
<shevy>
real idlers know the IRC commands very well
<timgauthier>
it has been a decade since i idled on IRC in any serious fashion
m0s is now known as m0s^away
CorySimmons has joined #ruby
Spami has joined #ruby
<shevy>
well
<shevy>
I recall on 9/11 2001 I was told on galaxynet about the attack on the WTC
DouweM has quit [Quit: Leaving...]
<shevy>
on mIRC!
<shevy>
it's curious how one is able to recall such days
<LadyRainicorn>
wow
zigomir has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
<shevy>
timgauthier ten years ago, you must have been a mIRCer as well right?
ghr has quit [Ping timeout: 258 seconds]
<timgauthier>
yes
<timgauthier>
i was in grade 9
<shevy>
I have no idea what is grade 9
m0s^away is now known as m0s
<shevy>
unlike it is like in gattaca movie
<shevy>
then you must be crippled
<timgauthier>
and i was about to go to school, and my social studies teacher had no care about what was going on in the world that day, rather tell us about something in history
ce_afk is now known as cescalante
<timgauthier>
so i used a wind up radio in class to listen
<shevy>
haha cool
<timgauthier>
9th grade = 9th year of school
picca has joined #ruby
<shevy>
that's actually better than my story
<timgauthier>
:P
<timgauthier>
I feel old
tungd has quit [Ping timeout: 240 seconds]
<timgauthier>
thanks shevy
<LadyRainicorn>
What age is that?
<shevy>
because you got new information through a radio whereas your old, crappy teacher could only releais old outdated and biased information
<shevy>
perhaps 18-3 ?
<timgauthier>
14 or 15 LadyRainicorn ? i'm 28 this year.
<shevy>
:)
<shevy>
I calculcated correctly!
<timgauthier>
yes
picca has quit [Client Quit]
<timgauthier>
I do that to my german fiancée too, forget to translate for her :P
<shevy>
if one assumed 12grade was final, so 18 (usually; I dont know how long it guys overseas takes you to finish learning :P)
<LadyRainicorn>
18-3?
<shevy>
yeah, age 18 final year, 9th grade vs. 12th grade, -3 difference
<LadyRainicorn>
ah
megaputer has quit [Remote host closed the connection]
* shevy
wins. \o/
<shevy>
give me my present, a pink ponicorn!
sambao21 has joined #ruby
<shevy>
timgauthier how did you end up NOT in canada?
dyoko1 has quit [Quit: Leaving.]
wallerdev_ has joined #ruby
CorySimmons has quit [Quit: Bye!]
picca has joined #ruby
Bumptious has joined #ruby
<timgauthier>
well shevy thats a sort of answer that might just offend some people
wallerdev_ has quit [Client Quit]
<shevy>
good
<shevy>
now you made me extra curious
<timgauthier>
I am a Missionary* who works with a non-profit movement. I took a school in Hawaii and did the practicum in Germany. While here I met my fiancée and felt like this is where I was supposed to stay.
treehug8_ has joined #ruby
davy_ has joined #ruby
<timgauthier>
short answer, God told me, long answer ^
<shevy>
omg hawaii
treehug8_ has quit [Max SendQ exceeded]
<shevy>
you are like moving around
sungai_keruh has joined #ruby
<timgauthier>
now the * means i don't go door to door knocking, or even asking anyone if they wanna know my flavour of religious blieve
<timgauthier>
belief*
<shevy>
let's see how long you'll manage to stay in germany :D
treehug8_ has joined #ruby
davy__ has joined #ruby
davy_ has quit [Read error: Connection reset by peer]
<timgauthier>
I do communications and *design* (unless you ask the real designers then they say i don't design i do programming)
<sungai_keruh>
hi all :)
<shevy>
well the story was fine
* LadyRainicorn
gives shevy a pink ponicorn plushie.
<shevy>
except that you ended in germany, that's something to improve still!
<timgauthier>
and I am wanting to make films about social justice issues that don't suck!
<shevy>
bavaria is exempt from this btw, it's cool
aaronmcadam has quit [Ping timeout: 258 seconds]
picca has quit [Client Quit]
<timgauthier>
shevy :p well I don't have a permanent visa here yet, so you are right about ending in germany
<shevy>
uh
<timgauthier>
bavaria stinks ;)
<shevy>
I thought you are a designer, now you are into movies?
<timgauthier>
i am into a lot of things.
<shevy>
!!!
<shevy>
tobiasvl will agree with me that bavaria has some decent beer
Milly_Bays has quit [Quit: Leaving]
poikon has quit [Remote host closed the connection]
<timgauthier>
no, the Czech has some decent beer ;)
<shevy>
ok well that depends, some designers like when they use blender to make 3D movies
<timgauthier>
bavaria has some funny pants
<shevy>
like toy story, which rocked!
<timgauthier>
haha
<timgauthier>
Do you know who charity water is?
poikon has joined #ruby
<shevy>
yeah, the Czech also have some good beer
<shevy>
yeah
<shevy>
it's water
<timgauthier>
I'm not affiliated with charity water
<shevy>
right?
<timgauthier>
:P ok nm
<shevy>
hehehe
<timgauthier>
we should PM and not bug everyone
<shevy>
no!
klaut has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 276 seconds]
<shevy>
we should bug everyone!
<LadyRainicorn>
Charity water?
<LadyRainicorn>
Yes.
<LadyRainicorn>
#runt
mg^ has joined #ruby
<shevy>
now he PMs me :(
<timgauthier>
yes LadyRainicorn
<shevy>
why did I tell him how to do queries... WHY ...
<LadyRainicorn>
haha
eythorium has quit [Quit: Lost terminal]
<timgauthier>
if you've ever seen anything they do, they do these awesome promo videos that explain things and communicate very well
hl has quit [Ping timeout: 260 seconds]
<LadyRainicorn>
#ruby should be ##social
<timgauthier>
ps shevy i know how to query with textual, i double click your name, the /command was just for someone in a room i'm not in anymore ;)
<timgauthier>
yeah srsly LadyRainicorn
<shevy>
reason I dislike PMs is not because I hate people (I do, but it's not the reason); I have to click 2x, first onto the PM, then back to a channel
cj3kim has joined #ruby
sdwrage has joined #ruby
<shevy>
or I have to hit keyboard twice, but I am a mouse person
<timgauthier>
anyhow, i see those sweet things they do to tell you about their projects and stuff. I want to make films about social justice issues that are like that
<timgauthier>
queries should be inline :| #designproblemhashtag
<shevy>
timgauthier I dont even know what is textual... is that some mac thing?
LadyRainicorn has quit [Read error: Connection reset by peer]
<timgauthier>
yes
Rainicorn has joined #ruby
<timgauthier>
wow Rainicorn
phansch has joined #ruby
<timgauthier>
that jerk of a peer
<shevy>
hey
<shevy>
what happened to LadyRainicorn
<timgauthier>
Radar is /lifeofradar right?
<timgauthier>
statechange shevy
Rainicorn is now known as LadyRainicorn
eythorium has joined #ruby
<shevy>
dunno... I think Radar is either a sinatra dude or a rails dude
<LadyRainicorn>
My wiri
<timgauthier>
yah, its my buddy
<LadyRainicorn>
wifi went out
<timgauthier>
i queried him :P
<shevy>
he helped me on one of those channels
afreidah1 has quit [Ping timeout: 276 seconds]
<timgauthier>
yeah
<shevy>
welcome back LadyRainicorn! may you never again leave here
<timgauthier>
Ryan Bigg
<shevy>
-hotel california
<shevy>
-hotel #ruby
sdouglas has quit [Remote host closed the connection]
<shevy>
timgauthier I wouldn't be able to remember the real names, I only remember your nicks!
<timgauthier>
well thats why i made it easy!
<shevy>
you made it very clever with your nick timgauthier :P
poikon has quit [Ping timeout: 250 seconds]
timgauthier is now known as timstarke
<shevy>
I'll just call you Tim
aaronmcadam has joined #ruby
<timstarke>
i could use my fiancées madien name too
<timgauthier>
wings3d is neat, but it got really complicated to use. I bought something for mac called cheetah3d
creativeembassy has quit [Quit: FO SHO]
<timgauthier>
its similar to cinema4d
<timgauthier>
it can be tough to programmatically think of how a 3d model might need to be
<timgauthier>
heck, it can be hard to sculpt sometimes
dapz has joined #ruby
chipotle has quit [Quit: cya]
<timgauthier>
chipotle left, but... so tastey!
rainmanjam has joined #ruby
carlyle has quit [Remote host closed the connection]
<timgauthier>
ohh, i wonder how middleman handles errors
LadyR is now known as LadyRainicorn
<timgauthier>
it doesn't.. i'll have to make my own solution
AlSquire has quit [Quit: This computer has gone to sleep]
agjacome has quit [Quit: leaving]
ImTheRealSatoshi has quit [Ping timeout: 245 seconds]
<shevy>
well
<timgauthier>
i'm going away for a few minutes, you be ok shevy ?
<shevy>
hopefully
AlSquire has joined #ruby
<shevy>
one never knows when the heart attack will strike
<timgauthier>
haha
ascarter has joined #ruby
<shevy>
I don't necessarily mean to say that I would want to programmatically create a 3D object in all detail with ruby
zachallett has joined #ruby
<timgauthier>
yea
<shevy>
but to like combine basic blocks to get started with something, that could be lateron improved
<shevy>
you know more like a skeleton
einarj has quit [Remote host closed the connection]
<shevy>
but it should visually indicate the further direction
krz has joined #ruby
<timgauthier>
why not use R?
<timgauthier>
they use that to generate medical 3d images
<shevy>
I do have to learn R right now for my next job :(
<shevy>
I am not that far yet hehe
art-solopov has joined #ruby
rvraghav93 has joined #ruby
<timgauthier>
what is your next jorb?
rainmanj_ has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 245 seconds]
mac_cosmo has joined #ruby
<shevy>
related to pharmacy (but also math, which I hate)
<shevy>
I have to go afk for some minutes
Advocation has joined #ruby
<timgauthier>
yeah, the medical field loves R
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
not that surprising.
rylev_ has joined #ruby
<workmad3>
evidence-based medicine needs stats behind it... R is good for stats
phinfonet has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
bluOxigen has joined #ruby
benzrf is now known as benzrf|offline
ghr has joined #ruby
marr has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
rylev_ has quit [Ping timeout: 245 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
tjr9898 has joined #ruby
benzrf|offline is now known as benzrf
cj3kim has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
sandelius has joined #ruby
afreidah1 has joined #ruby
carlyle has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
psyprus has quit [Changing host]
psyprus has joined #ruby
mjs2600 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
havenwood has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
havenwood has joined #ruby
danshultz has joined #ruby
ImTheRealSatoshi has joined #ruby
RowdyChild|Away is now known as RowdyChildren
Es0teric has joined #ruby
dkamioka has joined #ruby
rmorello|qq-etl is now known as rmorello|WA-894
mehlah has quit [Quit: Leaving...]
BuSerD has joined #ruby
ktun has joined #ruby
lw has quit [Quit: s]
mikecmpbll has joined #ruby
ellbot has joined #ruby
reppard has joined #ruby
rakm has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
jameswlane has joined #ruby
senayar has quit [Remote host closed the connection]
thumpba has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
ImTheRealSatoshi has left #ruby [#ruby]
peta_ has joined #ruby
coderhs has quit [Remote host closed the connection]
sepp2k has joined #ruby
<peta_>
hi guys
danno1 has joined #ruby
<timgauthier>
howdy
ellbot has quit [Ping timeout: 240 seconds]
picca has joined #ruby
danno1 has left #ruby [#ruby]
donnoc has joined #ruby
<peta_>
some days passed since my last ruby adventure … question: is there a shorter/more elegant way to do: [1,2,3].each {|e| my_func(el) }
<peta_>
something like e.g. [1,2,3].each(&my_func)
m0s is now known as m0s^away
tjr9898 has quit [Remote host closed the connection]
gemmy_ has joined #ruby
<jhass>
peta_: not really. You could define my_func as def Fixnum.my_func and do .each(&:my_func) or do .each(&method(:my_func)) but I wouldn't recommend either for production code
<jhass>
btw ruby doesn't have functions, only methods
art-solopov- has joined #ruby
<peta_>
okay .. just thought that ruby also has some syntactic sugar for this
<peta_>
thx
FxK has quit [Ping timeout: 240 seconds]
art-solopov has quit [Ping timeout: 240 seconds]
pwh has quit [Ping timeout: 250 seconds]
<LadyRainicorn>
.times, but that starts at 0
AlSquire has quit [Quit: This computer has gone to sleep]
niharvey is now known as niharvey|onsite
<canton7>
peta_, 1.upto(3) as well
Hanmac1 has joined #ruby
tjr9898_ has joined #ruby
horrorvacui has joined #ruby
pushpak has joined #ruby
<xybre>
Also (1..3).each.
noop has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
<xybre>
jhass: Ruby also has functions in the form of procs and lambdas.
top4o has quit [Ping timeout: 250 seconds]
<jhass>
those are more objects wrapping code though
<jhass>
which you can see by the fact that you use a method to invoke them (.call / .())
ktosiek has joined #ruby
thumpba_ has joined #ruby
<LadyRainicorn>
That has always been one of my least favourite Ruby features.
sungai_keruh has quit [Ping timeout: 240 seconds]
<horrorvacui>
What is wrong with it?
kenneth has joined #ruby
mjs2600 has joined #ruby
yubrew_ has quit []
bricker has joined #ruby
art-solopov has joined #ruby
art-solopov has quit [Client Quit]
<LadyRainicorn>
It's inconsistent and it makes passing functions weird.
workmad3 has quit [Ping timeout: 258 seconds]
<LadyRainicorn>
And the syntax isn't great either.
kayloos has joined #ruby
<tobiasvl>
18:33:49 shevy | tobiasvl why do you have gems in /usr/share and /usr/local/share
<tobiasvl>
shevy: very good question
<LadyRainicorn>
Passing a symbol instead of a function just wasn't a good design choice imo.
sdouglas has quit [Remote host closed the connection]
art-solopov- has quit [Ping timeout: 245 seconds]
blueOxigen has joined #ruby
yubrew has joined #ruby
RickestRICK has joined #ruby
thumpba has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Remote host closed the connection]
<shevy>
horrorvacui you will be pleased to hear that benzrf ran a statistic check on the #ruby channel, and determined that you were in top ten contributors to #ruby in the last week
<shevy>
or in other words... you are a damn noisy chatterbox!
pu22l3r has joined #ruby
<shevy>
oh right now that timgauthier is here...
<timgauthier>
not really
<shevy>
benzrf, can you run the check again for this week? pretty please?
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
yeah I thought you are afk timgauthier
<shevy>
I just came back!
alexju has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
<horrorvacui>
Really? Thats strange because I spent a very short amount of time on here last week.
alexju has joined #ruby
<reppard>
mary5030: are you looking for a boolean return or a collection?
noop has joined #ruby
<shevy>
horrorvacui well I think the channel tends to be rather low activity, unfortunately, given there ought to be 938 folks in here :(
SHyx0rmZ has joined #ruby
<mary5030>
no i basically want device that has public ips that are not drac
niftylettuce_ has joined #ruby
<mary5030>
@environment.network_devices.select do |d|
<shevy>
that this does not confuse you is impressive
RickestRICK has quit [Quit: BitchX: it does a body good]
dtcrshr has joined #ruby
<mary5030>
basically return devices that has public ip but that the public ip is not drac
m0s^away is now known as m0s
mrmargolis has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
sungai_keruh has joined #ruby
doodleha_ has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
RowdyChildren is now known as RowdyChild|Away
<reppard>
so for better or worse that looks like it should work
RowdyChild|Away is now known as RowdyChildren
blackavr has quit [Quit: blackavr]
crystal77 has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
maximski has joined #ruby
maximski has quit [Client Quit]
senayar has joined #ruby
mrmargolis has joined #ruby
atmosx has joined #ruby
havenwood has joined #ruby
avril14th has quit [Remote host closed the connection]
jrhe has quit [Quit: Connection closed for inactivity]
doodlehaus has joined #ruby
ponga has quit [Remote host closed the connection]
<jhass>
mary5030: that returns the devices where any ip is public and not drac. Is that exactly what you want? Or do you want the devices where _none_ of the ips is public and not drac?
Es0teric_ has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
chiel has quit [Quit: Lost terminal]
pskosinski has joined #ruby
arubincloud has joined #ruby
helpD has joined #ruby
chiel has joined #ruby
vt102 has joined #ruby
<mary5030>
i want devices that has public ips excluding those public that are drac
andy___ has quit [Read error: Connection reset by peer]
emaxi has quit [Remote host closed the connection]
donnoc has quit [Quit: WeeChat 0.4.3]
donnoc has joined #ruby
zorak has quit [Read error: Connection reset by peer]
<jhass>
okay, you do know that select does not change @environment.network_devices but instead returns a new array of items matching the condition? and you do operate on that return value?
andy__ has joined #ruby
chiel has left #ruby [#ruby]
<mary5030>
yes
senayar has quit [Remote host closed the connection]
Es0teric has quit [Ping timeout: 240 seconds]
<jhass>
then ip.is_public? or ip.is_drac? is returning the wrong value
<mary5030>
so every ip has a flag true/false that is public , drac ...
aaronmcadam has quit [Quit: Leaving...]
TllT has joined #ruby
yfeldblu_ has quit [Ping timeout: 258 seconds]
Squarepy has quit [Ping timeout: 240 seconds]
<mary5030>
i am getting devices that has drac on them
zigomir has joined #ruby
bufferloss has joined #ruby
<mary5030>
i was expecting to only get device that has public but no drac, when run this in console i still get the ones with drac
<bricker>
mary5030: install pry, place `binding.pry` somewhere in the block, figure out the problem in <10 seconds
jcs222 has joined #ruby
ponga has quit [Ping timeout: 252 seconds]
<jhass>
^ or your input data is simply wrong
yfeldblum has joined #ruby
<jhass>
or you don't parse it correctly
dkamioka has quit [Remote host closed the connection]
crystal77 has joined #ruby
dkamioka has joined #ruby
sandelius has joined #ruby
SCommette has quit [Quit: SCommette]
rylev has joined #ruby
Xeago has joined #ruby
Naoe-Kanno has joined #ruby
<shevy>
mary5030 if your own code confuses you, split it out over several lines and make the checks one after the other
tacos1de has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
<mary5030>
thanks guys
dima_ has quit [Remote host closed the connection]
Naoe_Kanno has joined #ruby
aspires has quit []
mrnugget has quit [Quit: mrnugget]
aetaric has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
atmosx has quit [Quit: Lost in trance]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
zigomir has quit [Remote host closed the connection]
dima_ has joined #ruby
Rainicorn has joined #ruby
zigomir has joined #ruby
pen has joined #ruby
sungai_keruh has quit [Quit: Leaving]
dkamioka has quit [Remote host closed the connection]
treehug88 has joined #ruby
Naoe-Kanno has quit [Ping timeout: 250 seconds]
LadyRainicorn has quit [Ping timeout: 240 seconds]
aetaric has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
helpD_ has joined #ruby
x77686d has quit [Quit: x77686d]
mjuszczak has joined #ruby
treehug8_ has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
Bumptious has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 252 seconds]
sailias has quit [Quit: Leaving.]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 250 seconds]
Al___ has quit [Quit: Al___]
Bumptious has joined #ruby
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
chipotle has joined #ruby
Squarepy has joined #ruby
MatthewsFace has joined #ruby
Bumptious has joined #ruby
aspires has joined #ruby
IcyDragon is now known as IceDragon
helpD has quit [Ping timeout: 252 seconds]
jcs222 has quit [Quit: leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit [Client Quit]
zcreative has joined #ruby
pu22l3r_ has joined #ruby
morenoh149 has quit [Ping timeout: 252 seconds]
emaxi has joined #ruby
aspires has joined #ruby
ghr has joined #ruby
Guest86752 has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
aspires has quit [Client Quit]
Sirupsen has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
creativeembassy has joined #ruby
jcs222 has joined #ruby
gigetoo has quit [Remote host closed the connection]
kpshek has quit []
cj3kim_ has joined #ruby
gigetoo has joined #ruby
fannye has quit [Ping timeout: 276 seconds]
omosoj has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
donnoc_ has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
x77686d has joined #ruby
mjs2600 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
donnoc has quit [Ping timeout: 276 seconds]
omosoj has quit [Client Quit]
nichtdiebohne has joined #ruby
timonv has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
ellbot has joined #ruby
omosoj has joined #ruby
sandelius has joined #ruby
mjs2600 has joined #ruby
davy__ has quit [Remote host closed the connection]
ninegrid has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 252 seconds]
toastyne_ has quit [Remote host closed the connection]
aspires has joined #ruby
ninegrid has joined #ruby
FxK has joined #ruby
dorei has quit []
sdouglas has joined #ruby
sdelmore has joined #ruby
danshultz has joined #ruby
ellbot has quit [Ping timeout: 276 seconds]
m0s is now known as m0s^away
aspires has quit [Client Quit]
pel_daniel has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
gbt has quit [Quit: Leaving...]
michaeldeol has joined #ruby
toastynerd has joined #ruby
Devanon has joined #ruby
m0s^away is now known as m0s
sepp2k has joined #ruby
danguita has quit [Quit: WeeChat 0.4.3]
rylev has quit [Remote host closed the connection]
<LadyRainicorn>
Then write your own primality test and use that in lieu of prime?.
Shidash has joined #ruby
<tobiasvl>
omosoj: the problem is that you use x as an index
<LadyRainicorn>
Your method is very un-Rubyesque.
predator117 has joined #ruby
ponga has joined #ruby
<jhass>
tobiasvl: omosoj: there are essentially two conventions for do/end vs {/}: 1) as tobiasvl multiline vs single line 2) use {/} if you care about the return value and do/end if you care about the side effects
<LadyRainicorn>
Are you coming from a C background?
maximski has quit []
Xeago has joined #ruby
<tobiasvl>
jhass: yep, that's worth mentioning. this one is multiline (which I used as the reason) and also we don't care about the return value.
<omosoj>
LadyRainicorn, I'm trying! ... How so? ... No, this is my first earnest effort to learn a prog language in depth.
zorak has joined #ruby
mehlah has joined #ruby
timonv has joined #ruby
<omosoj>
jhass, thank you.
Lightstalker has quit [Ping timeout: 240 seconds]
<LadyRainicorn>
Basically the Ruby way is like what I showed. Your code works very differently from how Ruby usually does.
ryanuber has joined #ruby
lw has quit [Quit: s]
<LadyRainicorn>
I'm kind of surprised you're not coming from C, as that's verysimilar to what is correcr there.
Skelz0r has quit [Ping timeout: 245 seconds]
Lightstalker has joined #ruby
<omosoj>
So the Ruby way is to use all the functions and resources available to create a simple solution?
hl has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
<tobiasvl>
omosoj: if you put the line `puts "#{x}, #{y}"` above your while loop you'll see your problem
<tobiasvl>
x is nil on the last run
<omosoj>
Heh, I'm a little hyper logical so I suppose I tried to break it down into subparts, which I'm guessing is the style of a more low level language like C?
<tobiasvl>
I'm guessing it's because you're changing the array inside the each block
<tobiasvl>
either your array[x] assignment is supposed to be something else or you'll have to find another way to do that
<LadyRainicorn>
The Ruby Way typically values readability, conciseness, and development time.
shashank_rs has joined #ruby
BizarreCake has quit [Ping timeout: 240 seconds]
<LadyRainicorn>
Sometimes at the expense of performance, though I suspectnot in this instance.
sdouglas has quit [Remote host closed the connection]
<LadyRainicorn>
Also the generality of solutions is valued.
sdouglas has joined #ruby
djbkd has quit [Remote host closed the connection]
<omosoj>
tobiasvl, I see what you're saying. Weird, ok.
SCommette has joined #ruby
shredding has quit [Quit: shredding]
centrx has joined #ruby
binaryhat has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
<omosoj>
I'm having a hell of a time solving this problem, lol. But I need to learn the fundamentals anyway so banging my head against my desk is just a part of the process :)
<tobiasvl>
omosoj: hehe, no worries. are you sure you want to set array[x] to 0, and not the actual value you're currently at?
benzrf is now known as benzrf|offline
<tobiasvl>
I won't claim to know this algorithm
<timgauthier>
shevy i'm totally still skyping my Fiancée :O!
<tobiasvl>
omosoj: but if you actually want to do the latter, then use each_with_key instead of each
pipeep has quit [Ping timeout: 258 seconds]
SevereOverfl0w has quit [Ping timeout: 252 seconds]
aspires has quit []
MindfulMonk has quit [Ping timeout: 276 seconds]
<omosoj>
No, setting it to 0 isn't a great idea but it's just what I came up with. Essentially is the problem is to find the greatest prime factor of a number. I started by creating an array with all the factors, and now I want to remove the factors that aren't primes.
djbender has quit [Quit: djbender]
yokel has quit [Ping timeout: 276 seconds]
<omosoj>
I suspect the delete_if function would be helpful here, but I couldn't figure it out.
<jhass>
yep sounds like a job for reject/delete_if or even keep_if/select (select the numbers that are prime)
<tobiasvl>
yeah, but regardless of the removal method: now you're looking at the number x in the array, and if the factor.length of x is not 0, then you set the xth number in the array (not x!) to 0
<kinginky>
anyone have any ideas on "overriding" class methods. i need to extend the behavior of the last() method in Sequel::Model. all of my models inherit from a Base model which inherits from Sequel::Model.. i want to override Sequel::Model's last() behavior in my Base model class
<tobiasvl>
is that the intended behavior y/n
grieg has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
<LadyRainicorn>
kinginky: prepend
<kinginky>
ty Lady
Xeago has joined #ruby
<jhass>
kinginky: class methods are just normal methods defined on the class object. You can simply override them with def self.last
<timgauthier>
can you make a link_to asset helper have a variable (if statement) for the actual url?
Advocation has joined #ruby
<kinginky>
jhass: that doesn't seem to be working though. since my Base model is "virtual" (has no table) Sequel gets mad with me. ill check out prepend
Sirupsen has quit [Ping timeout: 240 seconds]
Briareos1 has quit [Ping timeout: 245 seconds]
<timgauthier>
jhass howdy
eyeamaye1 has quit [Quit: Leaving.]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<omosoj>
tobiasvl, ok, so array[x] = 0 in that context would set the index number to 0, not the value?
<kinginky>
and, perhaps i should be more clear. i dont want to replace the behavior, just to extend it. all i want to is "last || new", essentially
geopet has joined #ruby
Nukepuppy has quit [Ping timeout: 258 seconds]
<tobiasvl>
omosoj: no it sets the value, I'm just wondering if it sets the value _you_ want it to set
<tobiasvl>
but maybe it does, I'm just guessing here
hl has joined #ruby
jonno11 has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<jhass>
kinginky: why do you need to change the behavior? I'd just add a new method, last_or_initialize, to not confuse new devs to my project that know sequel already
blackavr has quit [Quit: blackavr]
<kinginky>
jhass: ill just go that route. not worth the trouble anyway
MattStra_ has joined #ruby
<tobiasvl>
omosoj: after running your code the array is modified thus: run #1: [2, 2]; run #2: [4, 2]; run #3: [5, 2]; run #4: [7, 2]; run #5: [0, 2]; run #6: [0, 2]; run #7: [nil, 2]
<bricker>
timgauthier: woa man don't blame that shit on me!
slavapavlutin has joined #ruby
<newton>
bricker's street cred is on the line now
<timgauthier>
well, you helped me figure out the logic.... I made the evil. Its like a dictator thanking a country for helping him do something evil, when they did something in good faith.
blackavr has joined #ruby
<timgauthier>
and now... i eat food
garndt has quit [Quit: Connection closed for inactivity]
morenoh149 has joined #ruby
ascarter has joined #ruby
<Hanmac1>
timgauthier: didnt you mean #RubyOnRails ?
<timgauthier>
ywes
_musl_ has quit [Quit: WeeChat 0.4.3-dev]
donnoc_ has quit [Quit: WeeChat 0.4.3]
musl has joined #ruby
rm_ has quit [Remote host closed the connection]
donnoc has joined #ruby
aaronmcadam has joined #ruby
rm_ has joined #ruby
Skelz0r has quit [Ping timeout: 240 seconds]
decoponio has quit [Quit: Leaving...]
lw has joined #ruby
jorts has quit [Ping timeout: 240 seconds]
jespada has joined #ruby
jorts has joined #ruby
danshultz has quit [Remote host closed the connection]
blackavr has quit [Quit: blackavr]
danshultz has joined #ruby
lw has quit [Client Quit]
danshultz has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
<crome>
okay, everyone stop using it!
<crome>
oh, wait
<Mon_Ouie>
Well, how would you handle errors in C? It doesn't have an exception mechanism.
omosoj has quit [Ping timeout: 240 seconds]
Poppy has joined #ruby
gregf has joined #ruby
Poppy has quit [Client Quit]
donnoc has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
EthanHuntAgain has joined #ruby
davy__ has joined #ruby
<Hanmac1>
shevy you need to read it different ... it has "only" 6_740 goto statements ;P
helpD_ has quit [Remote host closed the connection]
<DouweM>
exceptions are a lot like goto
davy___ has joined #ruby
<benzrf>
Mon_Ouie: using return codes
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf>
too bad C doesnt have monads to automate passing-upward of return codes :I
<benzrf>
Either monad ftw
<DouweM>
benzrf: can't jump to error handlers without goto/exceptions
sriehl has joined #ruby
<Mon_Ouie>
benzrf: That doesn't solve the problem. They use both gotos and return codes.
cj3kim_ has quit [Ping timeout: 276 seconds]
ponga has joined #ruby
AirNest has quit [Ping timeout: 258 seconds]
s3ri0us is now known as s3ri0us|away
sambao21 has joined #ruby
rvraghav93 has quit [Ping timeout: 258 seconds]
<Mon_Ouie>
The problem is when you need to create resources in a function, then an error occurs. You need to stop the execution but still free the resources you've already created (and only those)
<benzrf>
bbl I:
vlad_starkov has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
x77686d has quit [Quit: x77686d]
davy__ has quit [Ping timeout: 245 seconds]
davy_ has quit [Ping timeout: 276 seconds]
ephemerian has joined #ruby
sambao21 has quit [Client Quit]
reppard has joined #ruby
ponga has quit [Ping timeout: 252 seconds]
afex has joined #ruby
anaeem1 has quit [Remote host closed the connection]
morenoh149 has quit [Ping timeout: 258 seconds]
centrex has joined #ruby
anaeem1 has joined #ruby
jackneill has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
beanHolez has joined #ruby
jprovazn_bbl has quit [Quit: Odcházím]
pu22l3r has joined #ruby
<centrex>
I need some help, I need to write a ruby script that takes certain system logs and directories, and creates a .tgz in a specific structure with all the logs, including any rotated logs. Does anyone have a working example script or suggestions on where to start looking?
<jhass>
centrex: I'd just build the target structure i /tmp and then shell out to tar
x77686d has joined #ruby
<beanHolez>
I have an array of objects, from which I need to select some elements matching a criterion, and move them to the front of the array. What is the cleanest way to do this?
<jhass>
beanHolez: .sort_by or .sort with a block
marcdel has joined #ruby
<beanHolez>
jhass: Can't do that in this case, the rest of the array MUST remain in the order it is in
IceDragon has quit [Ping timeout: 252 seconds]
picca has joined #ruby
kayloos has quit []
michaeldeol has joined #ruby
<beanHolez>
I suppose I could map over the array, deleting the element from within the block, then just unshift + flatten back to the array
deens has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ellbot has joined #ruby
testcore has joined #ruby
m0s^away is now known as m0s
alol_ is now known as alol
FxK has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
nathancahill has joined #ruby
Faris has joined #ruby
bawNg has quit [Quit: No Ping reply in 180 seconds.]
bawNg has joined #ruby
bawNg has quit [Changing host]
bawNg has joined #ruby
tijmencc has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atno has quit [Remote host closed the connection]
mikeric has joined #ruby
ellbot has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
zachallett has quit [Remote host closed the connection]
jottr has joined #ruby
fieldfirst has quit [Ping timeout: 245 seconds]
marcdel has quit []
IceDragon has joined #ruby
noocode has quit [Ping timeout: 246 seconds]
atno has joined #ruby
jaimef has quit [Excess Flood]
atno has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
fortunamajor is now known as weems
weems has quit [Changing host]
weems has joined #ruby
helpD has quit [Remote host closed the connection]
ninegrid has quit [Ping timeout: 250 seconds]
eyeamaye1 has quit [Quit: Leaving.]
ninegrid has joined #ruby
slawrence00 has joined #ruby
Hackbinary has joined #ruby
SevereOverfl0w has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
tijmencc has quit [Quit: tijmencc]
sdouglas has joined #ruby
noocode has joined #ruby
donnoc has quit [Ping timeout: 250 seconds]
jaimef has joined #ruby
slawrence00 has quit [Client Quit]
sailias has quit [Quit: Leaving.]
slawrence00 has joined #ruby
davedev24 has quit []
Wolland has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
deens has joined #ruby
oponder has quit []
lw has joined #ruby
hollyw00d has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
paulfm has quit []
helpD has joined #ruby
ellbot has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<centrex>
I want to copy a file with ruby, using Fileutils.cp but I'm not sure what the best way is to check to see if the file exists first, so it doesn't throw an error
deens has quit [Ping timeout: 245 seconds]
<centrex>
any suggestions?
<jhass>
if the source exists?
veduardo has left #ruby [#ruby]
<centrex>
correct
<timgauthier>
jhass i was going to actually come and say that, since i now know it sort of :P
<centrex>
is that an option to FileUtils.cp or should I just check if the file exists first?
<timgauthier>
if file.exsists? or something?
<jhass>
File.exists?
<timgauthier>
agh i see your question, i'm too new
benweint has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
<Mon_Ouie>
The exception can still happen, as it won't stop anyone from removing the file between your check and you copying it.
<banister>
Mon_Ouie hello frenchman
<Mon_Ouie>
banister: 'alut
Faris has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcux has quit [Quit: marcux]
Faris has joined #ruby
marr has joined #ruby
madhatter has quit [Remote host closed the connection]
FxK has joined #ruby
madhatter has joined #ruby
marcdel has joined #ruby
<timgauthier>
the guys in Rubyonrails seem way more serious then european day time guys in ruby..
ascarter has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ascarter has quit [Max SendQ exceeded]
ninegrid has quit [Ping timeout: 258 seconds]
ascarter has joined #ruby
ninegrid has joined #ruby
ascarter has quit [Max SendQ exceeded]
x77686d has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
danijoo has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
deens has joined #ruby
marcux has joined #ruby
<shevy>
hehe
<shevy>
you notice a culture shock already, don't you?
jason___ has joined #ruby
<timgauthier>
yes
<timgauthier>
i like this place better
<DouweM>
timgauthier: #rubyonrails gets a lot more noobs, so there's always people to help. here, half the time it's just a couple of regulars shooting the shit
<shevy>
now here comes the best part
<shevy>
there are quite plenty of japanese ruby users, but almost none of them actively uses IRC!
<timgauthier>
wow
<timgauthier>
yah, ruby comes from Japan right?
<popl>
DouweM: I don't know. There seems to be a good share of newbies here.
<shevy>
yea
<popl>
Nothing like ##php though.
<timgauthier>
but I've never seen anything in the ruby community that was japanese
<DouweM>
popl: I haven't been in #rubyonrails for a while, but I remember a lot more fresh faces there
<timgauthier>
other then white people using japanese refrences
<DouweM>
popl: in the sense of one-time-help-seekers
RowdyChildren is now known as RowdyChild|Away
<shevy>
haha
<popl>
otaku
<shevy>
I code like a ninja
<DouweM>
this chan has a larger ratio of regular/newbie I think
<timgauthier>
heroku
marcux has quit [Client Quit]
<popl>
DouweM: perhaps
<shevy>
that means I stab others in the back, then take their code and assimilate it
<timgauthier>
hahaha
<timgauthier>
sweet
<popl>
poorly
<popl>
;P
<timgauthier>
you add one gem to your file and suddenly you have tripled your bundle install time
<timgauthier>
wait, there are new users in ##PHP? why would new people wanna use it :|
<timgauthier>
i thought PHP was supposed to be dying, that is why i'm here
<horrorvacui>
PHP is like a large planet, it has a huge gravitational pull.
<popl>
No language that people say is dying is dying.
x1337807x has joined #ruby
lw has quit [Quit: s]
<popl>
That's just their way of saying they think the language sucks.
marcdel_ has joined #ruby
<timgauthier>
ugh, the clang error again... back to stack overflow to my self answer to copy that stupid line
<popl>
Some people have valid reasons, others just believe the FUD.
deens has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
jonno11 has joined #ruby
<shevy>
timgauthier does bundler make you happy?
marcdel has quit [Ping timeout: 250 seconds]
doodlehaus has quit []
<timgauthier>
no
<shevy>
timgauthier php is not dying, but it should. it deserves it
<timgauthier>
not always
robbyoconnor has joined #ruby
<timgauthier>
bundler is neat, does some cool things
jorts has quit [Quit: jorts]
marcdel_ has quit [Client Quit]
lw has joined #ruby
<timgauthier>
actually yeah i like bundler, i dislike clang
<timgauthier>
is there anyway to make the gem file include the extra big to tell CLANG to shush and work anyhow?
emaxi has quit [Remote host closed the connection]
danshultz has joined #ruby
emaxi has joined #ruby
SCommette has joined #ruby
morenoh150 has joined #ruby
iamjarvo has quit [Ping timeout: 258 seconds]
<popl>
shevy: The IRC channel is fucking mental.
<popl>
I don't go there if I can help it.
<havenwood>
i've never been, what's it like?
morenoh149 has quit [Ping timeout: 245 seconds]
JuanDaugherty has joined #ruby
jorts has joined #ruby
<timgauthier>
the php channel?
<popl>
havenwood: whores and wookiees
<havenwood>
hmm, sounds pretty good actually
<timgauthier>
i jusut joined
<timgauthier>
not sure what to do with a wookie whore
davy___ has quit [Remote host closed the connection]
<havenwood>
i guess with facebook switching from php to hack, the php folk lost their most famous user
<shevy>
a spooky whore?
<jhass>
timgauthier: my fix to clang errors usually is export CC=gcc
evenix has quit [Ping timeout: 258 seconds]
kreisys has quit [Quit: Computer has gone to sleep.]
<shevy>
so much clang hate here
<jhass>
I like clang
<timgauthier>
i don't mind clang, i just want it to work
<jhass>
it's actually my default compiler
<timgauthier>
well thats like twitter switching from ruby/rails
emaxi has quit [Ping timeout: 240 seconds]
<timgauthier>
what is hack
<jhass>
I just don't bother fixing projects that depend on gcc to work on clang
danshultz has quit [Ping timeout: 276 seconds]
<shevy>
hack is social php
<timgauthier>
this was nokigri
<timgauthier>
what is social php, and how is that different then normal php
pu22l3r_ has joined #ruby
<havenwood>
timgauthier: Except Twitter still uses Rails, they just stopped doing janky backend stuff with Ruby.
<shevy>
see that is a responsibility for future generations
<shevy>
ugly languages must die
<timgauthier>
when you get a job, you add that workplace as "working at" on FB, and they accept, and then you suddenly have access to the intrabook
<timgauthier>
no i didn't mean php part shevy i meant the using Facebook internally at work part
momomomomo has quit [Quit: momomomomo]
<gre->
i think i invented a new code: http://pastebin.com/ZU7DYwtk don't laugh please... i just read an article on ruby, i need to learn more, if some of you could help me to correct this code (if its understandable) it would be very helpful, thank you.
<shevy>
hey guys, any of you knows if I can install ruby on windows in harddisc d?
zorak has quit [Ping timeout: 276 seconds]
<slash_nick>
timgauthier: Pirch98's PILs, events, remotes, aliases provided my first exposure to scripting.. used mIRC sometimes, but it was way too ugly of a GUI
zigomir has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
mIRC was ugly but very simplistic
<timgauthier>
i was a kid, and i used mIRC to communicate with my gaming friends, and the mod i worked on as a 3d modelling attemptee... i didn't actually care about scripting that much
zigomir has joined #ruby
<havenwood>
gre-: You're currently leaving the file open. Rather than explicitly closing a file it is nice to use a File.open block so it self-closes.
vlad_starkov has joined #ruby
srji has quit [Quit: leaving]
<slash_nick>
those days were fun... /runscript [MASSGREET]
<gre->
havenwood: actually i didn't close it coz server.log is changing every second
<shevy>
so you were that spammer
<gre->
i have to interact with this file
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
gre- with a block it gets very easy File.new { }
pu22l3r_ has quit [Remote host closed the connection]
<slash_nick>
shevy: haha... I was an operator in several channels on DALnet.. I could've gotten away with ascii murder.
<shevy>
lol
benweint has quit [Ping timeout: 265 seconds]
<shevy>
ascii murder
karmatr0n has quit [Ping timeout: 240 seconds]
xiella has quit [Ping timeout: 240 seconds]
<shevy>
what a way to die
<timgauthier>
where the heck is this nm
ninegrid has quit [Ping timeout: 265 seconds]
<timgauthier>
sometimes it is easier to write nm and hit return then backspace
<gre->
but.. is my little program is understandable for you?
sambao21 has quit [Quit: Computer has gone to sleep.]
creativeembassy has quit [Quit: FO SHO]
_sillymarkets has quit [Ping timeout: 240 seconds]
<havenwood>
shevy: File#new doesn't take block like File#open
ninegrid has joined #ruby
picca has joined #ruby
pu22l3r has joined #ruby
srji has joined #ruby
ghr has joined #ruby
<timgauthier>
shevy do you guys have to put impressiums on everything over there?
<shevy>
timgauthier over where?
<timgauthier>
in austria
fflush has quit [Quit: fflush]
<shevy>
timgauthier impressiums?
<gre->
shevy: can you correct me this code pls?
<slash_nick>
Impressum - An Impressum is a legally mandated statement of the ownership and authorship of a document, which must be included in books, newspapers, magazines and websites published in Germany and certain other German-speaking countries, such as Austria and Switzerland.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zigomir has quit [Ping timeout: 252 seconds]
weems has quit [Read error: Connection reset by peer]
Stalkr_ has quit [Read error: Connection reset by peer]
<shevy>
wtf
<timgauthier>
oh, look at that slash
<shevy>
how can he name his file impressium.html
<shevy>
yet in the body he writes "Impressum:"
<havenwood>
gre-: i think you mean `line =~ //`, right? better to: File.open('...') do |file|
<timgauthier>
hahaha he can because you only link it from the footer but yeah
<timgauthier>
look at that picture
<timgauthier>
LOOK AT DEM
<gre->
havenwood: yes sorry, i forgot this
<shevy>
timgauthier yeah, some jurisdiction ruled that you must "identify" your contact data when you run a website
momomomomo has joined #ruby
<timgauthier>
yeah, what do you do for that in english? do you generate a big legal "we are not liable" type thing, or just put the contact info?
<shevy>
usually you put the full legalese in there just to assume that you are covered against idiots being idiots
<shevy>
there are actually lawyers living off on being parasites like that
<shevy>
like "copyright infringement" trolls
shashank_rs has quit [Ping timeout: 258 seconds]
Al__ has joined #ruby
marcdel has quit []
<timgauthier>
yea, i heard there are troll lawyers who will send you a notice saying you are missing your impressum and then send you a bill.
bryanculver has quit [Quit: Connection closed for inactivity]
pu22l3r has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 265 seconds]
<timgauthier>
in canada that would not be legal, and they would be disbarred, but i don't know how europe works with that type of thing
eyeamaye1 has joined #ruby
rudisimo has quit []
shashank_rs has joined #ruby
Wolland has joined #ruby
x1337807x has joined #ruby
<shevy>
europe adopts a lot of US-centric world views, and on top of that added a lot of further bureaucracy
treehug8_ has quit []
senayar has joined #ruby
zorak has joined #ruby
kpshek has quit []
<timgauthier>
sad really
shashank_rs has quit [Client Quit]
<timgauthier>
i don't want to talk about that, it would make me depressed
Solnse has quit [Quit: Leaving.]
senayar has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 258 seconds]
<shevy>
yeah
FL1SK has quit [Read error: Connection reset by peer]
<shevy>
ruby is better than politics and laws
FL1SK has joined #ruby
davy_ has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
ascarter has joined #ruby
<mac_cosmo>
never heard “impressium” is that a typo?
<shevy>
yeah
<shevy>
he wanted to write "impressum"
<mac_cosmo>
:D
<timgauthier>
yea
<shevy>
I dont know why timgauthier copied that error!
<timgauthier>
english is my first language, and i suck at it
<mac_cosmo>
tought, maybe a austrian thing..
Wolland has quit [Remote host closed the connection]
<shevy>
hey
<mac_cosmo>
*an
<shevy>
I'm gonna send the Terminator to you
<timgauthier>
lol
<shevy>
with his styrian accent
afex has joined #ruby
<timgauthier>
don't make me speak saschen
<timgauthier>
did i spell it right this time?
<mac_cosmo>
sächsisch?
<timgauthier>
ja
<shevy>
god
<timgauthier>
hahaha
<shevy>
sächsisch is so awful
<timgauthier>
better then baviarian
<timgauthier>
or austiran
<mac_cosmo>
better?! :D
<timgauthier>
austrian
<timgauthier>
sounds like you are messing up the middles of words
mark_locklear has quit [Ping timeout: 252 seconds]
aspires has quit []
deens has joined #ruby
<timgauthier>
MDR had a programme with an austrian reading something, it was fun to listen too because it sounded complete gibberish. Even my German Fiancée couldn't understand most of it.
<mac_cosmo>
the bavarian dialect is the best of all german dialects
<timgauthier>
nein
gre- has left #ruby [#ruby]
aspires has joined #ruby
<mac_cosmo>
doch!
simono has quit [Read error: Connection reset by peer]
<timgauthier>
Bavarian ist seltsam
<timgauthier>
:P
<timgauthier>
I am living near Zwickau, its all saxony for me
<mac_cosmo>
everytime i leave my bavarian environment, its like going to foreign countries ..
<shevy>
timgauthier bavarian and the austrian dialects are quite close phonetically, much much closer than what is spoken in north germany
omosoj has joined #ruby
<timgauthier>
the documentation for middleman's blogging part is good, except for this one part that isn't working out well, but that is because they want you to just use their scaffold, which i am refusing
<timgauthier>
yes
<timgauthier>
and north germany is... weird, I mean you have Hannover and Hamburg which think they are the centre of Germany, but then you get to the northern Boweren (is that the plural bower?) and wow...
<slash_nick>
mac_cosmo: I wonder if you've read Candide... the Baron's castle is the most magnificent of castles.. his lady the best of all possible Baronesses
<timgauthier>
I hear saschish and i imagine them hanging out with the romans
Wolland has joined #ruby
deens has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<mac_cosmo>
to be honest, i had to look up, what candide is :D
<timgauthier>
ugh i may have to just make a quick side folder to scaffold this crap into :| so glad i can just copy gemfiles!
<slash_nick>
mac_cosmo: it's just got a lot of "this X is the best of all possible Y"... starts off in Westphalia
Faris has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
<shevy>
timgauthier Hamburg has a lot of green areas, i liked that, Hannover had that huge strange design with like the subway underground but right atop of it is this huge connected space that makes the center seem like a big shopping place
<mac_cosmo>
“… der die beste aller möglichen Welten postulierte …”
sdouglas has joined #ruby
<shevy>
it feels like you leave the train and enter a big half-open shopping center
<mac_cosmo>
but they don’t have mac_cosmo.
<timgauthier>
I haven't ever been to hannover, I know people from there though. Hamburg is neat, but I much prefer Dresdin
aspires has quit []
<shevy>
ya, Dresden is cool
<shevy>
except for the damaged buildings :P
aspires has joined #ruby
<timgauthier>
Dresden is my favourite city
<timgauthier>
Which shevy, they've finished Frauen Kirche
<timgauthier>
and I actually didn't see any bombed out ruins, just black everything *shakes fist at spiteful british*
<mac_cosmo>
ever been to nuremberg/nürnberg?
<shevy>
nah, I mean buildings away from there, it seemed as if post wolrd war II damage did not recieve a lot of funding for many many years there
<shevy>
in Dresden
<shevy>
nuremburg is awesome
<timgauthier>
yeah shevy thats because they only started getting money to fix things 20 years ago
<timgauthier>
and no i haven't been to nuremburg yet
<shevy>
I tried to run up the castle non stop and ended up panting like an idiot
<timgauthier>
or berlin :S
<shevy>
yeah timgauthier
Nukepuppy has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy>
no money for eastern germany!
<timgauthier>
the villages in east germany are better off then a lot of the big cities
<shevy>
or they repaired leipzig and had no money for dresden left ;P
<timgauthier>
naw, it isn't that they don't have money, they get west money now, its the whole being under communism and them wanting to destroy everything german
<shevy>
my cousin lives and works there now btw, at a physicist institute (space agencay bla)
<shevy>
*agency
<timgauthier>
leipzig still has some broken stuff too, saw more there then in dresdin
<timgauthier>
cool, in liepzig?
<shevy>
for me it was the other way
<shevy>
leipzig looked to be in better health than dresden
<timgauthier>
yea
<timgauthier>
thats true
<timgauthier>
i think it is an uglier stat though
<shevy>
but dresden is much more beautiful than leipzig
<shevy>
despite its ruins!
<timgauthier>
yup
lolmaus has quit [Read error: Connection reset by peer]
<timgauthier>
went into the court yard in the museum, first time i've felt like i was in europe!
sdouglas has quit [Ping timeout: 258 seconds]
lolmaus has joined #ruby
<shevy>
timgauthier what I loved in nuremburg were those small canals
<timgauthier>
it was stereo typically european, and quite awe inspiring, considering it was a damn courtyard
<timgauthier>
oh?
<shevy>
I thought nuremburg was the coolest town, until I saw similar canals in another town, and I've been there, which since then was my favourite town - treviso http://www.caflorian.it/immagini/treviso5.jpg
<mac_cosmo>
dont forget the castle
<timgauthier>
oh those "canals" are just the river
<timgauthier>
the other city I live in, Erfurt, has those too
<mac_cosmo>
and lebkuchen, and bratwurst
<timgauthier>
its river control to help stop flooding
<timgauthier>
mmm lebkuchen
<shevy>
timgauthier nuremburg is also cool though, look at this, it's like castle built next or even atop of a river! http://goo.gl/FpCJej
tacos1de has quit [Ping timeout: 272 seconds]
<shevy>
never been to Erfurt
<shevy>
but the name alone inspires fear
<shevy>
fear of going there to watch at a "furt"
<shevy>
haha
<timgauthier>
you call that a castle, i call it a manor, or a schloss
<timgauthier>
what does furt mean?
centrex has quit [Ping timeout: 252 seconds]
<shevy>
a Furt is a passage btw, usually over a river, smaller than a bridge usually
<shevy>
a very boring thing
<timgauthier>
I was under the impression it means similar to english "Fjord"
<timgauthier>
a long narrow inlet with steep sides of cliffs
<shevy>
timgauthier at least now you know why Erfurt is an awful name for a town to have haha
<timgauthier>
so yeah a ford? a water crossing
<shevy>
aha
<timgauthier>
yes shevy, well thats what the town was ;)
<slash_nick>
timgauthier: ford is what you likely mean... a river ford is a place where you can cross without a bridge... and fording a river is crossing without a bridge
<shevy>
I actually liked nuremburg more than munich too
<shevy>
Regensburg is also ok, a bit too small though and gets boring soon
<mac_cosmo>
< born and raised in nuremberg, now living in munich
baweaver has quit [Remote host closed the connection]
<timgauthier>
yeah, they had a furt, then a bridge, then they put market carts on that bridge, and then the bridge burned down, then they built a stone bridge, then the stone bridge got buildings on it, and now its a stone bridge with houses on it and a fury next too it that everyone plays in during the summer
<shevy>
see that's the thing with bavarians, they all flock towards munich in the end ;P
<timgauthier>
also the first mention was from a monk in 700 something
<shevy>
chris2 on #ruby-lang is also in munich I think
<mac_cosmo>
but i’m fine with textmate’s copy/paste history
<timgauthier>
me either
<timgauthier>
text mate does copy paste history?
<timgauthier>
textmate2?
mrmargolis has quit [Remote host closed the connection]
dayepa has joined #ruby
<shevy>
dunno
<mac_cosmo>
ctrl + cmd + option + v
<shevy>
come to linux man
Faris has joined #ruby
<mac_cosmo>
textmate 1
<timgauthier>
i'm on unix, close enough :D
Biohazard has quit [Ping timeout: 245 seconds]
<shevy>
come closer
<shevy>
:D
x77686d has quit [Quit: x77686d]
<shevy>
matz uses linux!
<timgauthier>
that... opens evernote :P
<shevy>
though debian
<shevy>
which you should not
Naoe_Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<timgauthier>
os x is like debian
<timgauthier>
WOAH! japanse!
<shevy>
nah
<shevy>
osx is probably saner than debian
<shevy>
it doesn't split up packages all over the place, does it?
<timgauthier>
packages being apps?
centrex has quit [Ping timeout: 245 seconds]
Biohazard has joined #ruby
<shevy>
well
<shevy>
components of the apps
<shevy>
for instancel, -devel usually means header files
<shevy>
or "development files"
<shevy>
or just -dev
<timgauthier>
an app is a container evernote.app is a folder with all of the app's resources, binaries, etc inside
karmatr0n has joined #ruby
<shevy>
I don't even know how osx works
<mac_cosmo>
you dont mess around with packages
<shevy>
what is .app, an archive?
meatherly has quit [Ping timeout: 252 seconds]
<mac_cosmo>
you have osx and your binaries from 3rd party vendors
hollyw00d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
huh
<timgauthier>
but it may create a ~/library/application \support entry that contains configs and user preferences sometimes in a .plist, it also uses that location to cache
<mac_cosmo>
or brew (3rd party package manager)
<timgauthier>
shevy yeah, you just don't touch that stuff really :P
<mac_cosmo>
.app is an directory
<timgauthier>
its very sanitary and clean ;)
<mac_cosmo>
*a directory
<timgauthier>
yup
<shevy>
at least brew is written in ruby
<mac_cosmo>
but transparent for the gui user
<timgauthier>
ruby is included in os x
<shevy>
debian's apt-get/aptitude/dpkg is in perl, perhaps some other language too
geggam has quit [Remote host closed the connection]
<timgauthier>
mac honestly, i love the fact that the gui covers all the ugly bits in mac, but if you want you can dig into stuff
geggam has joined #ruby
<mac_cosmo>
when they click on an *.app directory (app), os x will start the main binary file
<timgauthier>
its more complicated then that mac_cosmo
<timgauthier>
but yea
BuSerD has left #ruby ["/me ≠ here"]
toastynerd has quit [Remote host closed the connection]
<timgauthier>
it loads an index .plist file that contains launch information that then opens the binary and mounts the dir
teenwolf has quit [Ping timeout: 276 seconds]
<DouweM>
mounts it?
<timgauthier>
I KNOW LOTS ABOUT THIS, why? not a freaked clue...
<timgauthier>
into memory
geggam has quit [Remote host closed the connection]
<timgauthier>
not really "mount" but it connects all of the resources, within the dir and any dependancies in the system and library folders
geggam has joined #ruby
<timgauthier>
it has done that since like os 9
<DouweM>
ah right
<timgauthier>
though, it may have changed with sandboxing, there is likely an api now in there
nateberkopec has quit [Quit: Leaving...]
dayepa1 has joined #ruby
<DouweM>
I must say I've never thought about how that actually works. Even though I've done quite a lot of Mac development, the .app has mostly been a black box to em
<DouweM>
*me
crystal77 has joined #ruby
<timgauthier>
and i know that the entire process happens in a way where if you feed a .zip to the system and try to pretend it is a .png and make the system load an image + virus the system says, this image doesn't work and halts the load, stopping the file from executing
<mac_cosmo>
@timgauthier i’m not sure if you need the info.plist
<timgauthier>
yeah, I was apple product certified, but i still don't know why i know that
<shevy>
timgauthier ok say you want to uninstall something, how do you do that?
<shevy>
for instance, ruby
<timgauthier>
mac_cosmo probably not, it likely does a best guess
<mac_cosmo>
name.app/MacOS/name will do, i think
toastynerd has joined #ruby
<timgauthier>
you drag that .app folder into the trash
senayar has quit [Remote host closed the connection]
<shevy>
what about the gems that might have been installed?
ziyadb_ has quit [Quit: Connection closed for inactivity]
<timgauthier>
and if you want to clean up you go to ~/library/application \support/application-name and delete that
<shevy>
i.e. if you install ruby again
<timgauthier>
gems are just folders in there too, so you can delete em
<mac_cosmo>
think like ruby behave a little bit different
<shevy>
ah ok so they reside inside of that ruby.app or whatever the name is
<mac_cosmo>
*think == know
<timgauthier>
command line apps are a bit more difficult, gems you could just clear out their folder etc
<shevy>
I kinda jumped from windows right into linux :\
<timgauthier>
ruby/gems/command line crap are smattered all over the place. they don't change system files, but they do populate your ~/ folder
chrisja has quit [Quit: leaving]
ascarter has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<shevy>
I tried to befriend the BSDs but somehow I never felt they really gave me a serious advantage over linux anywhere
ascarter has quit [Max SendQ exceeded]
<timgauthier>
i'd have to delete the user version of ruby that i have installed, then i'd have to go into the gem folder and the bundle folders and delete those
<mac_cosmo>
you have to separate user-friendly-gui things -> *.app
chipotle has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
x77686d has joined #ruby
miles_ has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
<timgauthier>
yah for ruby stuff shevy linux is identical to mac
<timgauthier>
because once you enter the terminal on os x you are just running unix
<mac_cosmo>
almost yep
momomomomo has quit [Quit: momomomomo]
<timgauthier>
with a wicked awesome window manager
davy_ has quit [Remote host closed the connection]
<mac_cosmo>
have you ever tried to jailbreak an iphone/ipad? its almost the same
<Rylee>
Can anyone see anything wrong with the following line?
Bumptious has quit [Remote host closed the connection]
<timgauthier>
best thing I ever did was have a customer ask if I could run R on an apple to do some statistical analysis things, and i just loaded up google for the command and just ran it in terminal.
miles_ has left #ruby [#ruby]
<mac_cosmo>
the ipad has a nice gui with apps and shit. and then you have ssh and the world of commandline :D
<timgauthier>
He was like a windows user or something, it blew his mind when a window popped up to render out the result for him
Wolland has quit [Remote host closed the connection]
dayepa1 has quit [Quit: dayepa1]
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
idk im not the biggest fan of osx's wm I:
freerobby has quit [Quit: Leaving.]
<benzrf>
no true maximizing??
<benzrf>
im sorry wut
geggam has quit [Remote host closed the connection]
<benzrf>
also, closing all windows != quit?!
<mac_cosmo>
thats one of the best things in mac os
<benzrf>
also, lack of good wm shortcuts
manjaro_surf has quit [Quit: Leaving]
<DouweM>
benzrf: yeah, app != window
SCommette has joined #ruby
Wolland has joined #ruby
<DouweM>
benzrf: and I rarely want to "true maximize" anyway. although that was definitely hard to get used to when switching from windows
<mac_cosmo>
there’s fullscreen support, but i dont know why you would surf the web in fullscreen
<DouweM>
me neither. I've a 27" inch display, you'd be crazy to run anything full screen on that
<DouweM>
except for movies obvs
<shevy>
kiosk users!
<mac_cosmo>
lol :D
Shidash has joined #ruby
<timgauthier>
benzrf it IS true maximizing, it maximizes to the content, what is with people and this obsession of having a window fill a screen?
<DouweM>
I do use Divvy though for tiling
<benzrf>
bahar:
<benzrf>
*bah
<DouweM>
timgauthier: +1
obscured has quit [Quit: leaving]
<benzrf>
w-well
<timgauthier>
also why would i want safari to quit when i close the last tab?
<benzrf>
it's
<benzrf>
it's not floss!
<timgauthier>
how hard is cmd Q if you wanna close your app?
<DouweM>
why would I want Mail to stop fetching mail when I close its window
<DouweM>
Why would I want Chrome to stop downloading files when I close the last tab
<timgauthier>
how does filling your window make it floss?
ghr has joined #ruby
<DouweM>
why would I want iTunes to stop playing when I close its window
<DouweM>
etc etc etc
<DouweM>
the app/window distinction makes perfect sense to me
<timgauthier>
i actually loved the not filling my screen maximize when i switched. blew my mind
<shevy>
you done it guys
<DouweM>
apps can of course self destruct when their last window closes, if staying alive doesn't make sense
<mac_cosmo>
yep
<shevy>
you spoiled benzrf now
<mac_cosmo>
lol :D
<timgauthier>
honestly, imagine safari filling your window full width on a 27-inch iMac.. so much empty space!
<DouweM>
ew
MatthewsFace has quit [Quit: This computer has gone to sleep]
<shevy>
benzrf got overwhelmed with the enthusiasm
<benzrf>
still not FLOSS ;-;
<timgauthier>
but cmd f does what benzrf wants on some apps ;)
<shevy>
see?
<timgauthier>
yes you are correct benzrf
<shevy>
IT IS STILL NOT FLOSS!!!
<timgauthier>
IT IS NOT FLOSS
Slarv has joined #ruby
<timgauthier>
THATS FOR YOUR TEETH SILLY
<shevy>
haha
* TTilus
is gonna apply dental floss
SCommette has quit [Client Quit]
<TTilus>
and then Zzzz
<shevy>
wow
<shevy>
dental floss
<shevy>
open source for your teeth?
<timgauthier>
its not floss, so it actually got finished, all the features work as advertise, and it only does what they felt was valuable to spend time on
<benzrf>
>:(
<timgauthier>
3d print new teeth
eynj has joined #ruby
Senjai`work is now known as Senjai
<timgauthier>
after they fall out from how jaw droopingly awesome the 3 lines of code i've managed to write in the last hour are!
Senjai has quit [Changing host]
Senjai has joined #ruby
<timgauthier>
blog.year_link
<timgauthier>
yup, thats what i wrote
<timgauthier>
actually i copy pasted it
Wolland has quit [Ping timeout: 276 seconds]
<timgauthier>
and i am not sure the syntax for what i am putting after it even!
Es0teric_ has quit [Quit: Computer has gone to sleep.]
<timgauthier>
it worked so who cares!
Slarv has quit [Client Quit]
karmatr0n has quit [Remote host closed the connection]
<mac_cosmo>
holy crap it’s 12:36am
<timgauthier>
yea
Slarv has joined #ruby
<timgauthier>
and i'm still not done one thing from today
<mac_cosmo>
i went home early to get things done
<timgauthier>
hahaha
<timgauthier>
GTD fail?
<mac_cosmo>
not even one line.
ghr has quit [Ping timeout: 252 seconds]
<timgauthier>
its a shame irc doesn't tell you how many lines you typed in a session
<timgauthier>
is that a shared hate, is that why people made handlebars?
MatthewsFace has quit [Client Quit]
ktosiek has quit [Ping timeout: 245 seconds]
FL1SK has quit [Ping timeout: 276 seconds]
Photism2 has joined #ruby
jjbohn has joined #ruby
<shevy>
< is pretty ugly
<timgauthier>
{{ is better?
<shevy>
but < in combination with special notations is worse
<shevy>
oh do you see {php? anything?
agjacome has joined #ruby
<centrx>
<?php
<mac_cosmo>
< < less to type
<timgauthier>
<< is what?
<mac_cosmo>
which is a good thing
<shevy>
<< in ruby is usually append to
<mac_cosmo>
no one said <<
niftylettuce_ has quit [Quit: Connection closed for inactivity]
<timgauthier>
ah mybad ok
<shevy>
timgauthier said it :-)
<mac_cosmo>
< == arrow :D
<shevy>
<?ruby
<shevy>
def foo; puts 'hi!'; end; foo
<shevy>
?>
lw has quit [Quit: s]
jaimef has quit [Excess Flood]
<timgauthier>
yeah <% and <%= is much better
nowthatsamatt has quit [Quit: nowthatsamatt]
<shevy>
ack
<timgauthier>
plus no needing to print crap out (php)
<shevy>
ack
chrisseaton has quit [Ping timeout: 240 seconds]
<timgauthier>
if i could write erb and type {{ i'd be ok
<crome>
I genuinely hate <%=
<shevy>
ack ack
<shevy>
crome! my brother!
<timgauthier>
really? wow
<timgauthier>
interesting
<timgauthier>
what do you use instead?
<mac_cosmo>
lol
<shevy>
what I hate in the typical erb code I see is
toastynerd has quit [Remote host closed the connection]
<timgauthier>
how do you make views
Photism_ has quit [Ping timeout: 240 seconds]
<shevy>
that it isn't just one use of <%=
<crome>
timgauthier: usually haml
<shevy>
literally every line has it
<timgauthier>
shevy that yeah is dumb
jaimef has joined #ruby
<timgauthier>
but sadly .erb does want blocks to be like that
pu22l3r has joined #ruby
marcdel has joined #ruby
<timgauthier>
crome thats cool, HAML is too dense and odd for me
<mac_cosmo>
switched from haml back to erb in the last 2 years :|
<timgauthier>
concise though
<shevy>
:D
Guedes0 has joined #ruby
deens has joined #ruby
<shevy>
mac_cosmo are you at least happy now?
<crome>
it can be odd indeed but I find the strict whitespace based syntax pretty good for markup and layout
<timgauthier>
i'm trying to figure out how to make a link that automatically takes me to the latest blog post...
rmorello|WA-894 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<timgauthier>
i wonder what happens if i append .last too something
<mac_cosmo>
i miss the the automatic indention of haml
<timgauthier>
crome i have my own whitespace considerations i use, lots of it in my editor, gets me into trouble though, so i can't even use sass, has to be scss
<shevy>
timgauthier cant you just pipe it through your custom method
<timgauthier>
what do you mean shevy ?
<shevy>
that method will return a pointer to whatever is the last blog entry
<shevy>
link_to last_blog_entry()
<timgauthier>
yeah i don't really know how, i'm trying to understand how middleman would know
<shevy>
I dont know myself either
mercwithamouth has joined #ruby
<shevy>
I actually find rack insanely complicated
<shevy>
.cgi is so much simpler!
_maes_ has quit [Ping timeout: 252 seconds]
<shevy>
unfortunately it is also very limited
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
i usually figure this functionality out from the pagination, but in middleman that seems to be a very different beast
crystal77 has quit [Quit: Computer has gone to sleep.]
<crome>
shevy: *of course* I dont know all of these but the reason why rack is not that complicated is because all that crap are in nice layered modules
<shevy>
I like that you used the word crap :D
<timgauthier>
closest i get is "A list of all blog articles, sorted by descending date" i guess i could somehow pick from there..
lmickh has quit [Remote host closed the connection]
<timgauthier>
i guess i could do the same hack i did with jekyll at first... just pageant show the first article in full then offset by one and do the rest.
<shevy>
somehow you are back to jekyll again
sdouglas_ has joined #ruby
<timgauthier>
naw, remember, i am translateing jekyll into erb
rylev has quit [Remote host closed the connection]
<timgauthier>
aha! so rubyrific!
<crome>
why would you do such a thing
<timgauthier>
blog.articles.first.url
<timgauthier>
because i'm leaving jekyll to go to middle... i'm not going to explain this again...
<timgauthier>
:P
<shevy>
do you guys ever have this problem:
<crome>
fair enough
<crome>
have fun
<timgauthier>
where a noob comes and asks rails/app specific questions in a room that isn't for those? :P
<shevy>
from $FOO/bla.rb to /Users/foo/bla.rb
<shevy>
?
MatthewsFace has joined #ruby
<timgauthier>
crome i like jekyll a lot, it just doesn't do some things i need, so i'm using middleman now
<timgauthier>
but yeah, i feel so pumped that i figured this out "blog.articles.first.url"
<shevy>
does it not have any docu
<crome>
I was just about to ask
crzrcn has joined #ruby
<shevy>
I mean it could be
<shevy>
blog.cats.mice.dogs
Wolland has joined #ruby
<shevy>
timgauthier be lucky that you work with ruby, I have to read stupid R tutorials and write R code :(
sdouglas has quit [Ping timeout: 276 seconds]
<timgauthier>
haha yeah
<shevy>
and re-learn math, god... I was so happy to forget all of higher math years ago, now I have to relearn it...
<timgauthier>
the amount of excited I am by the fact that this thing does exactly what I expect is ... well its childish
malcolmva has quit [Quit: Leaving]
helpD has quit [Remote host closed the connection]
<timgauthier>
haha, what type of project is it again? pharma? you doing a web thing or an app thing?
malcolmva has joined #ruby
Wolland_ has joined #ruby
<shevy>
dunno really
crystal77 has joined #ruby
<timgauthier>
whenever people in #php ask questions i feel so tempted to say use ruby
Wolland has quit [Read error: Connection reset by peer]
<timgauthier>
i'm at that stage of my conversion
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
it will probably be some boring data mining through terabytes of boring genomes and proteomes datasets
<timgauthier>
i'm still a zealot, but not yet wise enough to know how to use my new found tools only when needed
<timgauthier>
sweet, infomatics!
wald0 has quit [Quit: Lost terminal]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
in february I had to load up a postgresql database with boring data and then wonder how these are all interconnected
<shevy>
from different formats too
<shevy>
but at least I did not have to give statistical analysis or display the shit in any graph
ponga has joined #ruby
<mg^>
sounds like my honors thesis
sdelmore has quit [Quit: Leaving.]
arubincloud has quit []
<mg^>
had to load up a months worth of network samples and analyze various stats about them
workmad3 has joined #ruby
<mg^>
unfortunately I did have to display grapsh
djbkd has quit [Remote host closed the connection]
<mg^>
and write a 50-page paper about them
<shevy>
hehe
lw has quit [Ping timeout: 252 seconds]
<timgauthier>
what was the data?
<timgauthier>
network samples?
snath has quit [Ping timeout: 252 seconds]
<mg^>
specifically BGP updates from various network providers
MatthewsFace has quit [Ping timeout: 276 seconds]
<shevy>
ewww
thrillagorilla has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
<timgauthier>
my friend here did his bachelors in business, his thesis was about increasing ridership on public transit. He got metric craptons of data from various cities in germany, and then made this huge .xls file with it and then copied and pasted stuff into word... They updated all of the data 3 weeks before his paper was due, after no updates for 2 years before that
Al__ has quit [Quit: Al__]
<timgauthier>
it made me sad to watch him going through his thesis changing all of the information.
<timgauthier>
I have never used the ability to link numbers data into pages on mac, but i suspect this is why it exsists
ponga has quit [Ping timeout: 252 seconds]
<crome>
xls!
<timgauthier>
but even then, having such a huge file full of data (like 2 gigs) seems insane...
<benzrf>
bye
<mg^>
I also basically wrote a simulator for the CAM portion of a BGP router that recorded metrics on a per-prefix basis
<timgauthier>
yes, excel
crystal77 has quit [Quit: Computer has gone to sleep.]
<timgauthier>
cya benz
<timgauthier>
benzrf != benz
<mg^>
hah. You and your fancy spreadsheet programs and word processors. I had to use LaTeX and gnuplot :)
benzrf is now known as benzrf|offline
djbkd has joined #ruby
<timgauthier>
mg^ honestly, i think you did it a better way
sdouglas_ has joined #ruby
Wolland_ has quit [Ping timeout: 252 seconds]
<timgauthier>
it may be harder, but when all of your data changes it theoretically could be easier to update the output
m0s is now known as m0s^away
chipotle has quit [Quit: cya]
<mg^>
true
marcdel_ has joined #ruby
charliesome has joined #ruby
mansi has quit [Remote host closed the connection]
pel_daniel has left #ruby [#ruby]
andrewlio has quit [Remote host closed the connection]
<timgauthier>
i've never used laTeX but the idea of it sounds cool
<mg^>
I'd almost kind of like to do it again... I've thought of new metrics I could explore. And I wrote the simulator in *cough* Perl... I'd totally do it in Ruby if I did it again.
<timgauthier>
i'd probably want Markdown with Data Variables though
mansi has joined #ruby
<timgauthier>
do it in ruby, then use ruby to dump most of it into your report ;)
<timgauthier>
make that shit write itself
baweaver has joined #ruby
toastynerd has joined #ruby
funburn has joined #ruby
dima_ has quit [Remote host closed the connection]
<mg^>
I'll tell you one thing about building the paper in LaTeX and gnuplot... it was fun to edit the paper and execute make pdf to make it into the final output.
engel has joined #ruby
<shevy>
hmmm
mac_cosmo_ has joined #ruby
<shevy>
this all does not sound like a lot of fun
geopet has quit []
ukd1 has quit [Quit: Leaving...]
<timgauthier>
yes
marcdel has quit [Ping timeout: 265 seconds]
<timgauthier>
what does LaTeX syntax LOOK like?
emaxi has joined #ruby
<mg^>
well, for me it was a lot of work, and I got a published paper out of it and an B.S. degree with Honors... and then started a career where I pretty already knew everything I needed to know *before* I went to school.
<centrx>
\pagestyle{empty}
mansi has quit [Ping timeout: 240 seconds]
<mg^>
But I got a fancy piece of paper.
mac_cosmo has quit [Ping timeout: 276 seconds]
mac_cosmo_ is now known as mac_cosmo
<timgauthier>
yeah... i never went to post secondary because everyone I know who went said it was a waste of money
kenneth has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<timgauthier>
actually, i didn't go because i couldn't decide what I wanted to be when I grew up
<mg^>
GI Bill paid for it for me, so it was worth doing.
<timgauthier>
but it was easier to not push myself when everyone else was discouraging it
<timgauthier>
yeah thats true mg^
<shevy>
mg^ you didn't want to continue in academia?
<mg^>
the fancy piece of paper also did open doors for a first job. After that it's pretty much been my work product and who I've met since then that have affected my career.
jottr has quit [Ping timeout: 250 seconds]
<mg^>
shevy: well, I might have if I didn't have any job prospects... I don't mind academia. But I had a synner internship between my junior and senior years, which they turned into a part-time job while I finished out my senior year. Then they offered me a full-time position at a pay rate I could not refuse.
davy has joined #ruby
<timgauthier>
synner?
benzrf|offline is now known as benzrf
lkba has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
<mg^>
dunno what that came from
<mg^>
summer
<mg^>
one-key off when my attention was turned away :)
<benzrf>
hmmmmmm ive thought i might want to go into academia
<benzrf>
mg^: tell me whats it like
<mg^>
ahh but I've only touched on it. I'm not qualified to convey more than the little I've participated in.
<mg^>
But my experience was that it was a lot of work, but it's rewarding to see your name come out in a journal. Even more rewarding the first time someone else cites your work in theirs.
<benzrf>
the question is: should i get a phd
<timgauthier>
should you get a phd or should you get paid
<mg^>
If you can get your PhD paid for, then you should consider it
davy has quit [Ping timeout: 250 seconds]
<mg^>
if you have to take out loans for it, and you're not going into a field where you will pay them off quick... then I wouldn't do it
peta_ has quit [Quit: peta_]
jason___ has quit [Remote host closed the connection]
<benzrf>
kk
<benzrf>
i probably enjoy actual programming too much to go into academia
<benzrf>
:y
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
<mg^>
Well, programming is more fun than writing and editing papers for publishing, I can say that.
andy___ has quit [Remote host closed the connection]
SilkFox has joined #ruby
andy__ has joined #ruby
<benzrf>
shit yeah
<mg^>
oddly enough I got a CS degree and didn't end up doing primarily programming
<mg^>
I like programming to make my job better, not programming as the job.
<timgauthier>
oh, deep
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
ghr has joined #ruby
centrex has joined #ruby
centrex has quit [Client Quit]
<timgauthier>
thanks guys for teaching me present? and presence
aspires has quit []
<timgauthier>
i can get rid of stupid ifblocks
andy__ has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
<timgauthier>
wait maybe not, link_to doesn't really have a way to do a presence check inside itself so i'll have to wrap that in an if
SilkFox has quit [Ping timeout: 252 seconds]
locriani has quit [Remote host closed the connection]
RowdyChild|Away is now known as RowdyChildren
jcs222 has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 258 seconds]
locriani has joined #ruby
luckyruby has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
jcs222 has joined #ruby
luckyruby has joined #ruby
Faris has quit [Ping timeout: 250 seconds]
slavapavlutin has quit [Remote host closed the connection]
morenoh153 has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
morenoh152 has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chris_thomson has quit [Quit: Zzz...]
x77686d has quit [Quit: x77686d]
aspires has joined #ruby
<shevy>
hehe
ephemerian has quit [Quit: Leaving.]
njs126 has joined #ruby
ponga_ has joined #ruby
snath has joined #ruby
chris_thomson has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Wolland has joined #ruby
wallerdev_ has joined #ruby
charliesome has joined #ruby
<timgauthier>
if journal/* matches folder and children, how do you match only the children but not the folder?
maroloccio2 has quit [Quit: WeeChat 0.4.3]
<timgauthier>
never mind, i'll just overwrite with frontmatter
agjacome has quit [Quit: Lost terminal]
eyeamaye1 has quit [Quit: Leaving.]
jamto11 has quit [Remote host closed the connection]
Devanon has joined #ruby
deens has joined #ruby
eyeamaye has joined #ruby
moted has quit [Read error: Connection reset by peer]
<shevy>
wat
<shevy>
do you use Dir[] yet?
<shevy>
p Dir['/*']
<shevy>
try that
<shevy>
then compare to
FxK has joined #ruby
<shevy>
p Dir['/**/**']
<shevy>
or something
kevind has quit [Quit: kevind]
ponga_ has quit [Ping timeout: 276 seconds]
ner0x has joined #ruby
srji_ has joined #ruby
MatthewsFace has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
nateberkopec has quit [Quit: Leaving...]
blackmesa has quit [Ping timeout: 240 seconds]
Briareos1 has quit [Remote host closed the connection]
<timgauthier>
mmm irc in bed
moted has joined #ruby
predator217 has joined #ruby
toastynerd has quit [Remote host closed the connection]
srji has quit [Ping timeout: 252 seconds]
<shevy>
lol
<timgauthier>
that... prints out a lot of dirs
deens has quit [Ping timeout: 276 seconds]
<timgauthier>
and /**/** is causing a very slow page load, i suspect that was a lot of children in those folders i opened..
binaryhat has joined #ruby
<timgauthier>
considering it loaded all of my root folders
baroquebobcat has quit [Ping timeout: 240 seconds]
<timgauthier>
is p print in ruby?
<timgauthier>
or setting a drive to load?
picca_ has joined #ruby
<wallerdev_>
p is puts with inspect
<timgauthier>
ah ok
<benzrf>
timgauthier: also
crystal77 has joined #ruby
<benzrf>
timgauthier: it returns the argument
<benzrf>
so you can stick it in the middle of an expr
mikeg has quit [Remote host closed the connection]
<benzrf>
tmyk
picca_ has quit [Client Quit]
<benzrf>
foo.bar * baz not working?
<benzrf>
foo.bar * p(baz)!
jjbohn has joined #ruby
<timgauthier>
what would you return?
morenoh153 has quit [Ping timeout: 250 seconds]
<timgauthier>
the value of (baz)
<wallerdev_>
thats an odd way to do things benzrf lol
<timgauthier>
hello wallerdev_
<wallerdev_>
what if foo is undefined and thats why its not working
predator117 has quit [Ping timeout: 245 seconds]
<Devanon>
benzrf: that is quite interesting :)
<wallerdev_>
just write p baz above haha
<timgauthier>
yup i crashed whatever server middleman is running on :|
<benzrf>
wallerdev_: then youll find out
<timgauthier>
crap... how would i find the process ID for that to go in and kill?
sdouglas_ has quit [Remote host closed the connection]
<benzrf>
the point is u dont have to do something like
<benzrf>
tmp = baz
<benzrf>
p tmp
<benzrf>
foo.bar * tmp
<benzrf>
instead just stick in the p (y)
<benzrf>
>tfw phrasing
kitak_ has joined #ruby
fijimunkii has quit [Quit: Lost terminal]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<timgauthier>
whats the terminal command to kill a process