<centrx>
jglover, -I on the command line, or append to LOAD_PATH
<centrx>
jglover, $LOAD_PATH rather (variable inside Ruby)
flowerhack has quit [Quit: Connection closed for inactivity]
zz_karupanerura is now known as karupanerura
<jglover>
centrx: hmm can't get it to work
<jglover>
i'm very new to ruby
<jglover>
so if I went to a directory say "HelloWorld/" how would i do that?
xuisc is now known as xuisce
xuisce is now known as xuisc
<bnagy>
use require_relative
GaryOak_ has quit [Ping timeout: 265 seconds]
<bnagy>
that is what it's for. Messing with the load path is ugly.
<jglover>
bnagy: for class we're supposed to create just a simple gem
<jglover>
and no gems I can find have require_relate
<jglover>
relative
<jglover>
how does that work?
<bnagy>
eh?
<bnagy>
almost all gems should have require_relative :S
<bnagy>
anything written post 1.9 world anyway
Vovko has joined #ruby
<jglover>
bnagy: [#ruby] bnagy: so I've been looking through
<jglover>
woops sorry
<jglover>
<jglover>
ugh
<benzrf|oppressed>
lol
<jglover>
well im trying to paste the active record code
<jglover>
not working
adron is now known as Adran
<jglover>
soryr github link
<jglover>
anyways, it doesn't have require_relative
tkuchiki has quit [Remote host closed the connection]
<bnagy>
AR is not a good example of.. pretty much anything
<jglover>
haha ok then.
havenwood has joined #ruby
<jglover>
so requie relative is ok in gems?
Salve has joined #ruby
<bnagy>
the best super basic walkthrough of a simple gem is in learn ruby the hard way imho
ScalaClient has quit [Ping timeout: 252 seconds]
dapz has quit [Ping timeout: 240 seconds]
<bnagy>
because it uses no tools, no bundler, no viral crap etc
oso96_2000 is now known as oso|away
<jglover>
bnagy: perfect. ill look at it now. thanks
YamakasY_ has quit [Ping timeout: 264 seconds]
andrewlio has quit [Quit: Leaving.]
<bnagy>
he has a lot of non-idiomatic ruby in some of the exercises, though, so it has some issues to use as your sole guide
mjuszczak has joined #ruby
mojjojo has quit [Quit: mojjojo]
pinage404 has quit [Ping timeout: 244 seconds]
jglover has quit [Quit: Lost terminal]
monkegjinni has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
Shidash has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
sski has joined #ruby
monkegjinni has joined #ruby
<bnagy>
anyway, the load path is a shared resource ( everything in the interpreter ), your gem should be polite and not mess with it - you know where your own stuff is, so just require_relative 'lib/blah'
sepp2k has quit [Read error: Connection reset by peer]
Salve has quit [Ping timeout: 264 seconds]
duggiefresh has joined #ruby
<bnagy>
haha
mehlah has quit [Quit: Leaving...]
Voodoofish430 has joined #ruby
sepp2k has joined #ruby
bthesorceror has joined #ruby
Voodoofish4301 has joined #ruby
sski has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Ping timeout: 253 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
zachallett has quit [Remote host closed the connection]
bthesorceror has quit [Client Quit]
Fridurmus has joined #ruby
not_a_guest has quit [Quit: Connection closed for inactivity]
Voodoofish430 has quit [Ping timeout: 240 seconds]
<Fridurmus>
Is there a good way to get 2.1.1 running on Windows?
<havenwood>
Fridurmus: ruby-installer will presumably be releasing a new version now that 2.1.1 is out
<havenwood>
Fridurmus: 2.1.0 had a blocking bug or two for ruby-installer but they were resolved in 2.1.1
Vovko has quit [Remote host closed the connection]
pwh has joined #ruby
ffranz has joined #ruby
yosafbridge has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
sumark has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
lolmaus has joined #ruby
sumark has joined #ruby
markisonfire has quit [Quit: markisonfire]
<gr33n7007h>
bnagy, if finally works b='F0:1C:13:E4:7F:96'.split(/:/).map{|n| n.to_i(16)}.reverse;s=Socket.new(31,1,3);saddr=[31,0,*b,6,0].pack("C*");s.connect(saddr)
sdouglas has quit [Remote host closed the connection]
<havenwood>
FifthWall: i believe you can build ruby-installer with 2.1.1 yourself for now, but a binary should be forthcoming
<benzrf|oppressed>
gr33n7007h: why are you using /:/ instead of ':'
lmickh has quit [Remote host closed the connection]
yubrew has quit [Remote host closed the connection]
<invinceable>
how do i create a multi-word hash value? person = {'Lead Owner': nil}
sparrovv has quit [Remote host closed the connection]
<gr33n7007h>
benzrf|oppressed, no reason just choice I suppose
<invinceable>
{owner: nil} works, but when i try to put it into quotations doesn't work.
<invinceable>
what gives?
<havenwood>
invinceable: person = {:'Lead Owner' => nil}
<invinceable>
havenwood: ah needs to go before. thank you.
codabrink has quit [Ping timeout: 240 seconds]
itadder has quit [Ping timeout: 240 seconds]
<havenwood>
invinceable: yeah, 1.9+ syntax doesn't work with with a stringified symbol
tylersmith has quit [Remote host closed the connection]
shevy has joined #ruby
<invinceable>
havenwood: gotcha, thank you. using 2.1 and loving it so far. came from php
kitak has joined #ruby
<havenwood>
invinceable: nice, welcome!!
<benzrf|oppressed>
invinceable: the general syntax for hashes is {key => value}
tylersmith has joined #ruby
<benzrf|oppressed>
invinceable: {foo: bar} is a special sugar for {:foo => bar}
lw has quit [Quit: s]
Voodoofish4301 has quit [Ping timeout: 240 seconds]
<bnagy>
gr33n7007h: well done!
<invinceable>
benzrf|oppressed: ahhh really? ok whoops. i've been using {foo:bar} for the last few days. will change that now.
Voodoofish430 has joined #ruby
<gr33n7007h>
bnagy, that's what perseverance leads to :)
yosafbridge has joined #ruby
tjr9898 has joined #ruby
<bnagy>
if you're going to do a lot with raw binary you might want to look at bindata
<benzrf|oppressed>
invinceable: nothing wrong with foo: baroquebobcat
<benzrf|oppressed>
*foo: bar
<bnagy>
it is pretty awesome for avoiding pack insanity
<benzrf|oppressed>
it's just not what you use for anything other than symbols
meatherly has quit [Read error: Connection reset by peer]
w1zeman1p has quit [Remote host closed the connection]
<gr33n7007h>
bnagy, I'll look into it thanks
<invinceable>
benzrf|oppressed: got it, thanks.
<benzrf|oppressed>
:)
pierre1_ has quit [Ping timeout: 244 seconds]
<invinceable>
havenwood: and thanks! loving it so far.
tkuchiki has joined #ruby
<gr33n7007h>
bnagy, RubyPanther thanks again for pointing me in the right direction :D
tylersmi_ has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<bnagy>
no probs
Celm has quit [Remote host closed the connection]
meatherly has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Kneferilis has quit [Read error: Connection reset by peer]
shevy has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
itadder_ has joined #ruby
twiceaday has joined #ruby
<itadder_>
hi any reason you know why cs50 edx havard course choose not to use ruby
<itadder_>
instead went with C
invinceable has quit [Ping timeout: 240 seconds]
<shevy>
test
<jack_rabbit>
itadder_, probably tradition.
<itadder_>
oh
<havenwood>
itadder_: a more conservative choice
<itadder_>
he pretty funny also
<itadder_>
I like how they created a VM applaince just for that class
<itadder_>
all the tool are already set up for you
<jack_rabbit>
itadder_, although its a little more difficult to do properly, it really introduces many fewer ideas than a language like ruby.
<itadder_>
just need to use it in vmware and yoru done
<itadder_>
oh
<itadder_>
but for a newbie like me it has a lot of syntax
<jack_rabbit>
C is really a very simple language. Ruby is not.
sski has joined #ruby
mforrester has quit [Quit: Leaving]
<jack_rabbit>
Syntax aside. :)
<itadder_>
unlike ruby one liners
<itadder_>
oh wow
tongcx has joined #ruby
<itadder_>
well c is not object orinated or is it
Hobogrammer has quit [Ping timeout: 252 seconds]
<tongcx>
what's usage of json web token?
<jack_rabbit>
Well. C is object oriented in a sense.
<jack_rabbit>
It just doesn't have syntactic constructs for polymorphism or inheritance, etc.
<bnagy>
uh
<itadder_>
but it easier to teach ruby I assume Ic clound be wrong
<bnagy>
wat
tjr9898 has quit [Remote host closed the connection]
flowerhack has joined #ruby
<benzrf|oppressed>
c is much simpler than RubyPanther
<benzrf|oppressed>
*ruby
<benzrf|oppressed>
c is a very simple language
<benzrf|oppressed>
tongcx: context?
<itadder_>
oh I always thought c was more complex to code in
<tongcx>
benzrf|oppressed: authentification
<itadder_>
because of syntax
<xuisc>
hey havenwood
<shevy>
itadder_ yes, programmers must know C else they are incompetent
<xuisc>
itadder_:
robustus has quit [Ping timeout: 244 seconds]
<xuisc>
hey shevy
yxhuvud has quit [Ping timeout: 252 seconds]
<xuisc>
shevy: Im that guy thats going to start learning ruby
<jack_rabbit>
itadder_, it's difficult to code correctly, but the language itself is not very complicated.
<itadder_>
ahh which is why that famous course is teaching c to 101 people
<xuisc>
we talked a few weeks ago or a mont hago
<xuisc>
:)
<itadder_>
jack_rabbit: ahh
<xuisc>
I like how ruby looks so far
<itadder_>
and ruby is coded in C right jack_rabbit
<itadder_>
yea
<jack_rabbit>
itadder_, probably.
<bnagy>
MRI is in C
<jack_rabbit>
itadder_, C is also coded in C.
<itadder_>
hahahah
<jack_rabbit>
So is unix and linux.
<itadder_>
and windows
<benzrf|oppressed>
and X and most GNU stuff
<itadder_>
I heard windows was coded in freebsd in C a
<jack_rabbit>
itadder_, well, part of linux.
<jack_rabbit>
itadder_, well, part of *windows8
<jack_rabbit>
*
<jack_rabbit>
damn.
<centrx>
itadder_, C is a good way of teaching how the computer really works. Higher-level languages cover up a lot of it.
<jack_rabbit>
itadder_, the NT kernel is mostly C, but most everything else is C++.
<itadder_>
centrx: yea that guy from cs50 class is trying to teach the student how computer works
Steve445 has joined #ruby
<itadder_>
.net c++ is not so great
<itadder_>
for some reason I am bias against .net
robustus has joined #ruby
<itadder_>
at work every .net upgrade breaks something
<itadder_>
but I guess the same can be said about ruby
<jack_rabbit>
I'd prefer .net to java if it had multi-platform support.
<xuisc>
hey centrx
<itadder_>
I thought c# was multi-platofrm
<itadder_>
it offers web services
<Steve445>
Hey any of you guys use GitHub or GitLab at work?
<xuisc>
Steve445: nope Im learning it
<jack_rabbit>
itadder_, C might not be the best language to teach in a 101 class, but it's probably there because of legacy.
<xuisc>
#github can help
<Steve445>
Anyone use GH or GL to manage projects?
<Steve445>
issue queues, milestones etc
<itadder_>
oh
<itadder_>
do you think ruby would be best lang
crystal77 has quit [Quit: Computer has gone to sleep.]
<itadder_>
or maybe schemes
<tongcx>
another thing is that i didn't see much keypair based authentification in any framework
kllyy_ has quit [Read error: Connection reset by peer]
<itadder_>
I do not recall c++ and I took it in college,
amclain has joined #ruby
<Steve445>
you often see Java or Python being taught as well
<tongcx>
but that should be pretty secure and easy to follow
<tongcx>
just wonder why
<itadder_>
I took c++, java, java script, Assembly in college and visual basic but I don't recall them
<Steve445>
C, when the prof has not updated their slides in "forever"
kllyy has joined #ruby
<itadder_>
my school thought c++
amclain has quit [Client Quit]
<itadder_>
but the following year they switched to java
shevy has quit [Ping timeout: 252 seconds]
Fridurmus has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
jetblack has joined #ruby
CpuID has joined #ruby
<itadder_>
for my IT major I had to take visual basic and java and assembly also
<benzrf|oppressed>
VB?
<benzrf|oppressed>
:I
<itadder_>
this was 10 years ago
<itadder_>
2001
<itadder_>
acutally 2005
<itadder_>
opps
<jack_rabbit>
They still teach assembly
<itadder_>
but still
<itadder_>
they did
<Steve445>
Vb6 is a great lang to teach on
<centrx>
I think C is the best language to teach in an intro class, for students who are interested.
<benzrf|oppressed>
Steve445: u wot m8
<itadder_>
My professor I think was from india or iran
<jack_rabbit>
itadder_, no, I'm saying they're still teaching assembly today.
<itadder_>
oh
<jack_rabbit>
itadder_, it's good stuff to know.
mehlah has joined #ruby
pierre1_ has joined #ruby
echevemaster has quit [Quit: Leaving]
<itadder_>
I don't recall anything
<benzrf|oppressed>
centrx: i believe and will continue to believe that python is the one true first language
<centrx>
Schools use other languages to "attract" students to the major, or witless non-majors.
crystal77 has joined #ruby
<havenwood>
benzrf|oppressed: s/python/ruby
<itadder_>
the math deparment requried us in caclulus 1 and 2 to do some homework in matlab
<benzrf|oppressed>
havenwood: nope
axsuul has quit [Read error: Connection reset by peer]
<benzrf|oppressed>
python lets you do basic imperative/procedural stuff
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf|oppressed>
and has simpler semantics and syntax v RubyPanther
<benzrf|oppressed>
*ruby
<itadder_>
which was to produce some graph and source code... I am not sure what the code did, I just got help from a friend andchanged the variables
<itadder_>
I was bad
<benzrf|oppressed>
also, ruby requires you to be all objecty and idiomatic code needs you to use blocks
axsuul has joined #ruby
<benzrf|oppressed>
it's too much to teach all at once imo
grzywacz has quit [Ping timeout: 265 seconds]
axsuul has quit [Read error: Connection reset by peer]
<droptone>
#RoR is slow right now, any of you Ruby experts happen to work with Devise and Rails 4?
<jack_rabbit>
I've never cared for matlab.
<itadder_>
and you also need to teach rails I guess in the 102 class
axsuul has joined #ruby
sdouglas has joined #ruby
<itadder_>
I don't see thepoint of paying so much money for college, when a lot of classes esp for COMP SCI are free on coursera or edx
<itadder_>
jack_rabbit: nor did I, but I want to learn is r-lang
<Steve445>
itadder_ thats recent change
<benzrf|oppressed>
droptone: ill look!
<droptone>
my hero.
<jack_rabbit>
itadder_, never heard of it.
<itadder_>
to bad you only get a cert not a real degree unless you pay for it
<jack_rabbit>
oh, wait!
<itadder_>
it a stats lang
<jack_rabbit>
R, yeah!
Voodoofish430 has quit [Quit: Leaving.]
<benzrf|oppressed>
droptone: i dont know rails oops
<droptone>
So, backstory, that's my simple Rails 3.2.x custom routes in Devise code that works fine, except it appears Rails 4 checks for duplicate routes and errors out if they exist
<itadder_>
I think it the open source version of something like matlab
<jack_rabbit>
itadder_, I've looked at it. Didn't care much for it either.
<droptone>
haha, ok, thanks just the same.
crystal77 has quit [Client Quit]
<jack_rabbit>
itadder_, too domain-specific for my liking.
bluehavana_ has joined #ruby
magicrails has quit [Quit: magicrails]
<itadder_>
yea
mehlah has quit [Client Quit]
<itadder_>
the only two lang I know some what are ruby and powershell
<itadder_>
I am so lazy
<jack_rabbit>
powershell sucks.
<jack_rabbit>
(IMO)
<itadder_>
LOL
<itadder_>
well I have no choose at work
<jack_rabbit>
:)
<itadder_>
it beats vb script
<jack_rabbit>
well, just by a bit.
<Steve445>
Ok, so ya, looking for people that use GitHub or GitLab at work or on projects where they would track their time that they worked on projects
necrotic_ has quit [Remote host closed the connection]
<jack_rabbit>
itadder_, I used to work exclusively on windows, maintaining a bunch of old vbscript server maintainance stuff.
<itadder_>
oh unlucky you
<itadder_>
I want to get out of that world
<jack_rabbit>
itadder_, I tried to interface new powershell stuff with old vbscript stuff, and it was a pain in the ass.
<itadder_>
windows scares me
<xuisc>
itadder_: heh
<jack_rabbit>
itadder_, yeah. Just move to linux.
<xuisc>
me too
<itadder_>
I have a ex coworker who is a great friend
<itadder_>
he a PRO at powershell
<jack_rabbit>
itadder_, I moved to linux like 5 years ago, and it's wonderful.
<itadder_>
He also has this memory like no one else
<itadder_>
he can speed read and learn something in hour
<itadder_>
one
<itadder_>
jack_rabbit: I bet
magicrails has joined #ruby
<jack_rabbit>
itadder_, are you on linux at home?
<itadder_>
I like powershell but it not as good as ruby
<itadder_>
:)
<itadder_>
well I use mac osx
<jack_rabbit>
:) well you can learn bash then.
<itadder_>
i ALWAYS been a apple fan
<jack_rabbit>
bash scripting is UGLY.
<itadder_>
I have zsh
<jack_rabbit>
but it's way better than anything on windows.
<itadder_>
yea sure is
<jack_rabbit>
itadder_, same thing. zsh is a little nicer.
<BeingUntoDeath>
can someone point me how to get out of console in ruby? in VS i used windowsformapps to make a window... wondering how to do someone similar in ruby.
<itadder_>
someone ported powershell to unix
<itadder_>
did you know that
mehlah has joined #ruby
<itadder_>
but the projects been dead for years
<Steve445>
CTRL + C
<havenwood>
pash
<itadder_>
yes pash, but havenwood it dead
<jack_rabbit>
BeingUntoDeath, CTRL+C or CTRL+D
<havenwood>
itadder_: it seems alive
<itadder_>
I heard that google admins use ruby to manager thier end user macs
<jack_rabbit>
Huh. Does it use Mono or something? I thought powershell relied a lot on .net.
<BeingUntoDeath>
i mean how to create a separate pane outside of the cmd.exe that i'm running my .rb in, like a window that i can put buttons in, etc.
<havenwood>
jack_rabbit: written in C#, yes mono
pierre1_ has quit [Quit: Leaving]
<itadder_>
what about WMI classes
<itadder_>
thier no WMI in unix
<jack_rabbit>
indeed.
<itadder_>
is thier a good ruby interpertor for IOS for my iphone
Zunonia_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<itadder_>
many times in the buss or walking somwhere I would like to test some code I learned and tinker with it,but IOS is locked down I can't get to a tty session
<centrx>
itadder_, JRuby compiles Ruby into JVM bytecode. MRI is still interpreted even if it is written in C.
<centrx>
itadder_, Also there are other advantages to JRuby like true multithreading
<BeingUntoDeath>
right there with you <xuisc>
<jack_rabbit>
itadder_, right. It's a tradeoff. If you want to program native code, you can probably make it faster than something on the JVM. If you want to program ruby, you can use jRuby to leverage the JVM's awesomeness.
alexju has joined #ruby
<havenwood>
and of the non-Java langs on the JVM, JRuby really shines with invoke dynamic etc
<itadder_>
plus jvm has a lot of security issues and gnu gcc not as much
<jack_rabbit>
well... That's not quite true.
<itadder_>
oh
vlad_starkov has joined #ruby
<havenwood>
Clojure doesn't have anything like JRuby invoke dynamic support.
<jack_rabbit>
gcc is perfectly happy to compile security-hole-ridden code for you.
<xuisc>
BeingUntoDeath: thanks
<xuisc>
:)
<xuisc>
I love RUby
<xuisc>
its the future and much freindlier according to my freind at Google
<jack_rabbit>
havenwood, clojure is already dynamic.
<xuisc>
Im learning it
<havenwood>
jack_rabbit: it would get performance benefits from leveraging invoke dynamic
<jack_rabbit>
havenwood, that's probably very true. :) Right now I think it uses a lot of reflection.
<havenwood>
jack_rabbit: also, JRuby research in the Truffle direction is very interesting
blackmesa has quit [Ping timeout: 264 seconds]
<havenwood>
jack_rabbit: but <3 clojure :)
<jack_rabbit>
:)
<jack_rabbit>
Hopefully the JVM will add proper TCO soon.
<havenwood>
mm
<BeingUntoDeath>
can someone help me with this? I'm wondering how to open a form or window with ruby...
<havenwood>
BeingUntoDeath: form or window? whatcha mean?
<BeingUntoDeath>
i heard there can be problems with ruby and windows...
<centrx>
BeingUntoDeath, Try Ruby Shoes ?
<BeingUntoDeath>
like how with C# in VS you just reference windowsformapplication
<BeingUntoDeath>
which is where you put components
<BeingUntoDeath>
thank you very much guys. :)
<xuisc>
thaks again guys
<xuisc>
:)
<xuisc>
BeingUntoDeath: I'll start Ruby later thsis week or tommrow
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<BeingUntoDeath>
yeah? i've been coding for... four days.
<BeingUntoDeath>
lol.
Salve has joined #ruby
<BeingUntoDeath>
used easymode on DW for webdev back in the day... wasted 4yrs getting a BS in psych.. and now i realize... IT is where i should have been going all along.
<BeingUntoDeath>
and i agree, ruby is nice...
vlad_starkov has quit [Ping timeout: 244 seconds]
<jack_rabbit>
if you want to make money, there's a lot to be made in technology.
petey has joined #ruby
<godd2>
It's not totally wasted, having a degree gets you in doors in general.
<havenwood>
godd2: agreed, not worthless
senayar has quit []
<BeingUntoDeath>
^^^ thanks.
<BeingUntoDeath>
lets hope not.
<havenwood>
godd2: even if not in CS :O
<godd2>
ESPECIALLY if it's not CS :P
<havenwood>
godd2: :)
<havenwood>
srsly
<BeingUntoDeath>
gonna shadow a guy who does mobile dev with ruby... hopefully get a job with him once i learn it.
<havenwood>
BeingUntoDeath: MobiRuby or RubyMotion?
<havenwood>
BeingUntoDeath: or webapps?
<BeingUntoDeath>
NO idea, what do you mean?
<godd2>
BeingUntoDeath: don't forget, learning programming takes a lifetime :)
St_Marx has quit [Ping timeout: 245 seconds]
<havenwood>
BeingUntoDeath: Oh, those are ways to do mobile apps in iOS/Android in Ruby, i was just curious.
<BeingUntoDeath>
godd2: i realize that, lol. sucks to hear when you put it that way.. i just need enough basics for a job.
rickruby has joined #ruby
<BeingUntoDeath>
havenwood: excellent, thank you. i will look into what they use so i can use tthe same. very helpful.
<godd2>
BeingUntoDeath: also, if you're a visual learner, Lynda.com has some amazing Ruby and Ruby on Rails video tutorials
<BeingUntoDeath>
so why do I need Jruby or JDK to do windows forms? are there alternatives to this?
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
BeingUntoDeath: You don't need to, you could use a different version of shoes or not use shoes at all. It is just a well-supported way.
<BeingUntoDeath>
and are there forms you can open with ruby that don't require this.. as in, maybe they're not "windows" forms?
<BeingUntoDeath>
i see!
bluepojo__ has joined #ruby
<xuisc>
hey BeingUntoDeath maybe we can learn from each other
<xuisc>
:)
<xuisc>
Im new and your new
<xuisc>
:P
<godd2>
pair programming ftw
<BeingUntoDeath>
sure thing brother. noobs unite.
<BeingUntoDeath>
good thing these guys are so helpful. :)
<xuisc>
haha
<xuisc>
sure
<xuisc>
nice to meet ya
<godd2>
as long as you don't ask us about models, views, and controllers, we're usually pretty nice
whowantstolivefo has quit [Read error: Connection reset by peer]
<xuisc>
godd2: pretty sure as a starter I wont :)
<havenwood>
godd2: #RubyOnRails OMGWTFBBQ!!!
<xuisc>
I just love ruby for some reason :P
<xuisc>
the name and its Japanese
whowantstolivefo has joined #ruby
<BeingUntoDeath>
i don't get that godd2... lol. hope i don't on accident!
<BeingUntoDeath>
that's not what i'm asking about with these forms is it?
<godd2>
BeingUntoDeath: don't worry, if you do, it will be on purpose :0
flowerhack has quit [Remote host closed the connection]
<BeingUntoDeath>
ahh! ;) i see.
bluepojo has quit [Ping timeout: 265 seconds]
v0n has joined #ruby
<BeingUntoDeath>
so if not JDK or JRuby, Shoes, etc... what other ways are there to open a new form outside of the console with ruby? is there a simple answer for this?
<BeingUntoDeath>
i'd like to take my code out of console and do some degree of design...
<b1nd>
How do I create a ruby array to do something like this, because I see several examples online where they have, bar.each do |foo|; puts foo.url; puts foo.title;
Steve445 has quit [Read error: Connection reset by peer]
<benzrf|oppressed>
o
sarmiena_ has quit [Quit: sarmiena_]
jlast has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
<b1nd>
however, I do not see how they instate that object
terrellt has quit [Ping timeout: 265 seconds]
terrellt has joined #ruby
ukd1 has joined #ruby
danshultz has quit [Remote host closed the connection]
kenndel_ has joined #ruby
Steve445 has joined #ruby
<benzrf|oppressed>
uh huh
freerobby has joined #ruby
<benzrf|oppressed>
oh
<benzrf|oppressed>
why not just use a hash though?
<benzrf|oppressed>
it might be a struct
danshultz has joined #ruby
ukd1 has quit [Client Quit]
ninegrid has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
<b1nd>
basically, I have some url/titles how can i store them/
ninegrid has joined #ruby
<benzrf|oppressed>
use a struct or somethin
<benzrf|oppressed>
or even
<benzrf|oppressed>
a hash??
kenndel has quit [Ping timeout: 265 seconds]
<centrx>
*gasp*
jonno11 has joined #ruby
fgo has quit [Remote host closed the connection]
flowerhack has joined #ruby
<b1nd>
example please
fgo has joined #ruby
Celm has joined #ruby
<benzrf|oppressed>
info = {:url => something, :title => something_else}
<benzrf|oppressed>
or {url: something, title: something_else} for short
sdouglas has quit [Remote host closed the connection]
<godd2>
of course, if you want it to be so that you can say foo.url instead of foo[:url], then you ahve to make a class, or as benzrf|oppressed said, a struct (which is quick and dirty special kind of class)
danshultz has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
andy4thehuynh has quit [Ping timeout: 240 seconds]
bbloom has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Salve has joined #ruby
freezey has quit [Remote host closed the connection]
Mongey has quit [Read error: Connection reset by peer]
Vovko has joined #ruby
Mongey has joined #ruby
sski has joined #ruby
jaimef has quit [Excess Flood]
CreativeEmbassy has joined #ruby
kobain has quit [Ping timeout: 264 seconds]
jaimef has joined #ruby
etqqkoiflwhb_ has joined #ruby
jetblack has quit [Ping timeout: 265 seconds]
Salve has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
crucify_me has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
ankushio has joined #ruby
speakingcode has quit [Ping timeout: 252 seconds]
ankushio has quit [Client Quit]
michaeldeol has joined #ruby
multi_io_ has quit [Read error: Operation timed out]
radic has quit [Ping timeout: 244 seconds]
freezey has joined #ruby
sambao21 has joined #ruby
Celm has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jonr22 has quit [Remote host closed the connection]
xaq has quit [Remote host closed the connection]
jonr22 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
radic has joined #ruby
multi_io has joined #ruby
agent_white has quit [Quit: brb]
Mongey has quit [Read error: Connection reset by peer]
<BeingUntoDeath>
toretore: thank you!
timonv has joined #ruby
aspires has joined #ruby
lw has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
mlpinit has joined #ruby
m104 has quit [Quit: brb]
lw has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
Xiti` has joined #ruby
freezey has quit [Remote host closed the connection]
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
Vovko has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
scttnlsn has quit [Ping timeout: 240 seconds]
Bosox20051 has joined #ruby
lachesis has quit [Ping timeout: 245 seconds]
scttnlsn has joined #ruby
yubrew has joined #ruby
sski has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
duythinht has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
braincrash has joined #ruby
kitak has joined #ruby
fgo has joined #ruby
lachesis has joined #ruby
jlast has joined #ruby
stkowski has quit [Quit: stkowski]
yubrew has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
xaq has joined #ruby
sdouglas has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
multi_io has quit [Ping timeout: 265 seconds]
Deele has quit [Ping timeout: 264 seconds]
multi_io has joined #ruby
alexju has quit [Remote host closed the connection]
xaq has quit [Ping timeout: 244 seconds]
etqqkoiflwhb__ has joined #ruby
vlad_starkov has joined #ruby
etqqkoiflwhb_ has quit [Read error: Connection reset by peer]
jjbohn has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
JasmeetQA has joined #ruby
sdouglas has joined #ruby
iamdoo2 has joined #ruby
pontiki has joined #ruby
<pontiki>
hi folks
linkdiddy has quit [Quit: linkdiddy]
saarinen has quit [Quit: saarinen]
petey has quit [Remote host closed the connection]
sarmiena_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
petey has joined #ruby
yasushi has joined #ruby
stupidystupid has joined #ruby
<stupidystupid>
Hey guys ... I am doing a ruby school... I am abit stuck on something, it's in Sinatra, can anyone help with that?
decoponio has joined #ruby
petey has quit [Ping timeout: 252 seconds]
obbo has joined #ruby
<obbo>
hello. what's a good way to go about getting an array of dates for the start and end of each week of a year? for instance: [ [2014-03-09, 2014-03-15] ] for this week, starting on sunday?
nari has joined #ruby
philcrissman has joined #ruby
etqqkoiflwhb___ has joined #ruby
yokel has quit [Read error: Operation timed out]
Muz has quit [Read error: Operation timed out]
Muz has joined #ruby
yokel has joined #ruby
echevemaster has quit [Quit: Leaving]
etqqkoiflwhb__ has quit [Ping timeout: 252 seconds]
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
sensen has quit [Ping timeout: 240 seconds]
philcrissman has quit [Ping timeout: 264 seconds]
aspires has quit []
linojon has quit [Quit: linojon]
aspires has joined #ruby
Salve has joined #ruby
eri_ has joined #ruby
<eri_>
hi
<stupidystupid>
hi!!
<eri_>
somebody here can help me to install ruby on debian
<eri_>
?
browndawg has quit [Ping timeout: 240 seconds]
godd2 has quit [Ping timeout: 245 seconds]
yokel has quit [Ping timeout: 240 seconds]
sensen has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
<nso95>
eri_: Google can
okinomo has joined #ruby
<eri_>
yes i do man
zcreative has quit [Quit: Computer has gone to sleep.]
<eri_>
hahaha
JasmeetQA has joined #ruby
dapz has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
<eri_>
if i come here its becose google cant do
yokel has joined #ruby
obbo has quit [Quit: Page closed]
bkparso has joined #ruby
Slavox is now known as Slavox|AFK
Salve has quit [Ping timeout: 265 seconds]
<eri_>
or im look like stupid cuz im come here and ask for help?? nso95 ??
<nso95>
eri_: stupid? no.
<eri_>
ok
<nso95>
but we can't help you any more than a tutorial you find
sski has quit [Remote host closed the connection]
<eri_>
if somebody can help me im try to install ruby on debian
yacks has quit [Quit: Leaving]
etqqkoiflwhb___ has quit [Quit: Computer has gone to sleep.]
<eri_>
nso95: this is your opinion
sski has joined #ruby
<nso95>
The majority opinion
<eri_>
if you cant maybe somebody can
Axsuul_ has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
<eri_>
wow i think the people make this channels to support
hobodave has joined #ruby
<eri_>
or this is the idea of this
<eri_>
but you talk for the majory
axsuul has quit [Read error: Connection reset by peer]
<eri_>
right now your are here for nothing
<eri_>
have a good night
yokel has quit [Ping timeout: 264 seconds]
eri_ has quit [Quit: leaving]
cover has quit [Remote host closed the connection]
Solnse has quit [Quit: Leaving.]
yokel has joined #ruby
sski has quit [Ping timeout: 264 seconds]
sski has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
sparrovv has joined #ruby
Dreamer3 has joined #ruby
okinomo has quit [Quit: Lost terminal]
SCommette has quit [Quit: SCommette]
Celm has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 244 seconds]
evenix has joined #ruby
Dreamer3__ has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 264 seconds]
juarlex has joined #ruby
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Sushruth has joined #ruby
yokel has joined #ruby
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
pierre1_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
sparrovv has quit [Ping timeout: 264 seconds]
Dreamer3 has joined #ruby
Dreamer3__ has quit [Read error: Connection reset by peer]
kate_r has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
mlpinit has joined #ruby
evenix has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
Celm has joined #ruby
kitak has quit [Remote host closed the connection]
yubrew has joined #ruby
yasushi has quit [Remote host closed the connection]
Dreamer3__ has joined #ruby
meatherly has quit [Remote host closed the connection]
nisstyre has joined #ruby
Dreamer3__ has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
Dreamer3__ has joined #ruby
mlpinit has quit [Ping timeout: 265 seconds]
jaimef has joined #ruby
bkparso has quit [Quit: bkparso]
Celm has quit [Client Quit]
Dreamer3__ has quit [Max SendQ exceeded]
yubrew has quit [Ping timeout: 240 seconds]
yokel has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
yokel has joined #ruby
kitak has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
Red_Onyx has quit [Quit: Leaving]
Dreamer3__ has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
Axsuul_ has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Read error: Connection reset by peer]
etqqkoiflwhb___ has joined #ruby
jlast has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
mary5030 has joined #ruby
yokel has joined #ruby
Jetchisel has joined #ruby
Es0teric has quit [Ping timeout: 244 seconds]
jlast has quit [Ping timeout: 244 seconds]
Zaratustra has quit [Ping timeout: 245 seconds]
<BeingUntoDeath>
do you install a gem through interactive ruby? as in "gem install shoes". i get undefined variable error
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fuhgeddaboudit has joined #ruby
Zaratustra has joined #ruby
Es0teric has joined #ruby
rickruby has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
aagdbl has joined #ruby
Es0teric has quit [Max SendQ exceeded]
nso95 has left #ruby [#ruby]
kukyakya has joined #ruby
Es0teric has joined #ruby
browndawg has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
yokel has joined #ruby
Es0teric has quit [Max SendQ exceeded]
JasmeetQA has joined #ruby
Es0teric has joined #ruby
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fuhgeddaboudit has quit [Client Quit]
tjr9898 has joined #ruby
<bnagy>
don't do it from irb, just from the command prompt
tjr9898__ has quit [Ping timeout: 265 seconds]
e4xit has quit [Ping timeout: 240 seconds]
rihbyne has joined #ruby
aagdbl has quit [Quit: Leaving.]
<rihbyne>
hello anyone there
sdouglas has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
<rihbyne>
hello I have got ruby version 2.0.0p353. I am trying to install a package using ruby gems gives unknownhost error
sdouglas has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
xuisc has quit []
Es0teric has quit [Ping timeout: 252 seconds]
Sushruth is now known as fafa
fafa is now known as fafa94
yokel has joined #ruby
browndawg has left #ruby [#ruby]
freerobby has joined #ruby
kate_r has quit [Ping timeout: 264 seconds]
aspires has quit []
sdouglas has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
<rihbyne>
hello anyone there
flowerhack has quit [Remote host closed the connection]
sdouglas has joined #ruby
dapz has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<BeingUntoDeath>
rihbyne: much like my problem...!
<rihbyne>
BeingUntoDeath: you have solutions
<rihbyne>
I dont use ruby btw
Fyyr13_ has quit [Quit: Leaving...]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<rihbyne>
but I need to for a pakage.
mary5030 has quit [Remote host closed the connection]
robertjpayne has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
funburn has joined #ruby
Es0teric has joined #ruby
yokel has joined #ruby
browndawg has joined #ruby
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
alexju has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
gigetoo has quit [Ping timeout: 244 seconds]
yokel has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 245 seconds]
Salve has joined #ruby
rubyduby has joined #ruby
yokel has joined #ruby
gigetoo has joined #ruby
timonv has joined #ruby
caveat- has joined #ruby
mcus has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<robertjpayne>
While ruby is running is it possible to get the path to the stdlib gems?
freerobby has quit [Read error: Connection reset by peer]
tjr9898 has quit []
freerobby1 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
<hermanmu_>
robertjpayne: try "$LOAD_PATH"
davedev2_ has quit [Remote host closed the connection]
<hermanmu_>
robertjpayne: $LOAD_PATH is an array of paths to be searched
makara has joined #ruby
freerobby1 has quit [Ping timeout: 265 seconds]
<robertjpayne>
thanks got it!
kitak has quit [Remote host closed the connection]
aagdbl has quit [Quit: Leaving.]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yubrew has joined #ruby
yfeldblum has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
<rubyduby>
for noobs, like to grasp the basic concepts of ruby. which books are good?
<arubin>
rubyduby: Are you new to programming or new to Ruby?
<rubyduby>
i am new to programming.
yokel has joined #ruby
arietis has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
yubrew has quit [Read error: Operation timed out]
<arubin>
I am not sure.
<rubyduby>
well, any material which can cover basic concepts thoroughly.
<rubyduby>
ok, thank you.. well i have read it, i know some basic concepts, but some concepts were difficult to grasp, so i was hoping for another good refrence to look onto... thanks btw.
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hermanmu_ has quit [Remote host closed the connection]
ndrei has joined #ruby
hermanmunster has joined #ruby
nfk has joined #ruby
yubrew has joined #ruby
kevinykc_ has joined #ruby
funburn has quit [Quit: funburn]
Al__ has quit [Quit: Al__]
JasmeetQA has quit [Quit: Leaving.]
rickruby has quit [Ping timeout: 252 seconds]
JasmeetQA has joined #ruby
kevinykchan has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
kitak has joined #ruby
kate_r has quit [Ping timeout: 269 seconds]
hermanmunster has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
MedDev has joined #ruby
MedDev has left #ruby ["Leaving"]
stkowski has joined #ruby
timonv has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
relix has joined #ruby
tungd has quit [Read error: Connection reset by peer]
ayaz has joined #ruby
ayaz has quit [Max SendQ exceeded]
apeiros has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
rdark has joined #ruby
ayaz has joined #ruby
ayaz has quit [Max SendQ exceeded]
meatherly has joined #ruby
bal has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xsdg has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
blaxter has joined #ruby
fgo has quit [Remote host closed the connection]
dapz has joined #ruby
Hobogrammer has quit [Remote host closed the connection]
rihbyne has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit []
jlast has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
lazyguru has quit [Ping timeout: 252 seconds]
FL1SK has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
shevy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 264 seconds]
tonni has quit [Read error: Connection reset by peer]
Sushruth has joined #ruby
jph98 has joined #ruby
fafa94 has quit [Ping timeout: 240 seconds]
gomix has quit [Ping timeout: 252 seconds]
mlpinit has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
mlpinit has quit [Ping timeout: 265 seconds]
shevy has quit [Ping timeout: 240 seconds]
Merks has joined #ruby
Slavox|AFK is now known as Slavox
shevy has joined #ruby
tonni has joined #ruby
Kneferilis has joined #ruby
etqqkoiflwhb___ has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 265 seconds]
etqqkoiflwhb___ has joined #ruby
toastynerd has joined #ruby
klue has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sski has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 265 seconds]
sski has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
m1lt0n has joined #ruby
shevy has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
sski has quit [Ping timeout: 264 seconds]
tonni has quit [Ping timeout: 265 seconds]
Salve has joined #ruby
Speed has joined #ruby
yubrew has joined #ruby
kevinykc_ has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
jaxxstorm has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
jph98 has quit [Quit: jph98]
S0da has quit [Remote host closed the connection]
freerobby has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
sameerynho has joined #ruby
toastynerd has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
stkowski has quit [Quit: stkowski]
Xeago has joined #ruby
ndrei has joined #ruby
tonni has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 240 seconds]
supersym has quit [Quit: WeeChat 0.4.3]
tonni has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
CpuID has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
fgo has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
Slavox is now known as Slavox|AFK
binw_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 244 seconds]
tonni has joined #ruby
LiohAu has joined #ruby
binw has joined #ruby
leonidlm has joined #ruby
yeboot has left #ruby ["k"]
mikecmpbll has joined #ruby
Fridurmus has joined #ruby
dweeb_ has joined #ruby
glosoli has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
ahawkins has joined #ruby
<kukyakya>
How do i prevent #eval or #load from corrupting global variables?
amclain has quit [Quit: Leaving]
CpuID has joined #ruby
jlast has joined #ruby
senayar has joined #ruby
tvw has quit []
jprovazn has joined #ruby
sski has joined #ruby
rodayo has joined #ruby
roolo has quit [Quit: Leaving...]
jlast has quit [Ping timeout: 244 seconds]
JasmeetQA has quit [Quit: Leaving.]
charliesome has joined #ruby
<rodayo>
This is something that I came up with in my head...suppose that I call one of class B's functions from class A. Is there a way for class B to check what type the caller is and then access one of its properties?
<rodayo>
I'm asking if there's a technical programming term for that feature
mikecmpbll has quit [Quit: i've nodded off.]
browndawg has quit [Quit: Leaving.]
francisfish has joined #ruby
<canton7>
'dirty', 'horrible', and 'don't do this' come to mind :)
mlpinit has joined #ruby
tonni has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
JohnBat26 has joined #ruby
sski has quit [Ping timeout: 240 seconds]
petey has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
einarj has joined #ruby
etqqkoiflwhb___ has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 240 seconds]
etqqkoiflwhb___ has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
petey has quit [Ping timeout: 252 seconds]
Slavox|AFK is now known as Slavox
claymore has joined #ruby
meatherly has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
einarj has quit [Ping timeout: 240 seconds]
etqqkoiflwhb___ has quit [Client Quit]
<BeingUntoDeath>
does shoes work for you guys? I'm getting "Sorry, this gem currently does nothing. Team shoes is working on it." etc
<BeingUntoDeath>
if not, can you recommend a GUI framework?
sk87 has joined #ruby
jespada has joined #ruby
Slavox is now known as Slavox|AFK
Slavox|AFK is now known as Slavox
andrewlio has joined #ruby
heftig has joined #ruby
abk has joined #ruby
yubrew has joined #ruby
mikecmpbll has joined #ruby
bluenemo has joined #ruby
einarj has joined #ruby
sdouglas has joined #ruby
nouitfvf has quit [Read error: Connection reset by peer]
nouitfvf has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
ahawkins has quit [Read error: Connection reset by peer]
sdouglas has quit [Ping timeout: 240 seconds]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
yfeldblu_ has joined #ruby
Salve has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
shime has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
freerobby has joined #ruby
timonv has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
rdark has quit [Quit: leaving]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
Slavox is now known as Slavox|AFK
tonni has joined #ruby
lazyguru has joined #ruby
timonv has quit [Read error: Operation timed out]
freerobby has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
fgo has quit [Remote host closed the connection]
klaut has joined #ruby
ahawkins has joined #ruby
bluepojo has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
bluepojo__ has quit [Ping timeout: 265 seconds]
rodayo has quit [Quit: Page closed]
jpierre03 has quit [Ping timeout: 244 seconds]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
jpierre03 has joined #ruby
hamakn has joined #ruby
blackmesa has joined #ruby
Fridurmus has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
mikecmpbll has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
matchaw has joined #ruby
matchaw_ has quit [Ping timeout: 264 seconds]
riking_ has quit [Changing host]
riking_ has joined #ruby
riking_ is now known as Riking
HiroshiWatanabe has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
YamakasY has joined #ruby
dapz has quit [Read error: No route to host]
Al__ has joined #ruby
DaniG2k has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
jlast has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
_root has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
rococo has joined #ruby
_root has quit [Client Quit]
jlast has quit [Ping timeout: 244 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
HiroshiWatanabe has quit [Read error: Connection reset by peer]
pierre1_ has joined #ruby
fgo has joined #ruby
`ph8 has joined #ruby
Thanatermesis has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mlpinit has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
linduxed has quit [Quit: WeeChat 0.4.2]
Squarepy has joined #ruby
kevinykchan has joined #ruby
`ph8 has quit [Changing host]
`ph8 has joined #ruby
gaussblurinc has joined #ruby
<gaussblurinc>
hi! is this code normal? raise "parameter is not an Array" unless param.is_a?(Array) ?
linduxed has joined #ruby
vlad_starkov has joined #ruby
obs has joined #ruby
alexju has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 264 seconds]
Adrao has joined #ruby
juarlex has quit [Ping timeout: 252 seconds]
<crome>
gaussblurinc: in an ideal world you dont test for type but for interface
<crome>
it doesnt really matter if param is an array as long as it has #each or whatever you want on it
etqqkoiflwhb___ has joined #ruby
HiroshiWatanabe has joined #ruby
yubrew has joined #ruby
sk87 has joined #ruby
vlad_starkov has quit []
<popl>
In an ideal world all the cops have wooden legs and the trees are full of fruit.
<popl>
alas
<crome>
one can always try
yubrew has quit [Read error: Operation timed out]
etqqkoiflwhb____ has joined #ruby
stupidystupid has joined #ruby
etqqkoiflwhb___ has quit [Ping timeout: 264 seconds]
fgo has quit [Remote host closed the connection]
HiroshiWatanabe has quit [Remote host closed the connection]
meatherly has joined #ruby
HiroshiWatanabe has joined #ruby
dzhulk has joined #ruby
HiroshiWatanabe has quit [Read error: Connection reset by peer]
TMM has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
sdouglas has joined #ruby
HiroshiWatanabe has joined #ruby
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 265 seconds]
meatherly has quit [Ping timeout: 240 seconds]
glosoli has joined #ruby
Salve has joined #ruby
HiroshiWatanabe has quit [Read error: Connection reset by peer]
quatron has joined #ruby
ayaz has joined #ruby
HiroshiWatanabe has joined #ruby
Merks has quit [Remote host closed the connection]
freerobby has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
AlSquire has joined #ruby
ndrei has quit [Quit: Lost terminal]
Salve has quit [Ping timeout: 252 seconds]
kayloos has joined #ruby
yfeldblum has joined #ruby
kaspernj has joined #ruby
ikaros has joined #ruby
ndrei has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
Zunonia_ has quit [Quit: Computer has gone to sleep.]
Merks has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
nomenkun has joined #ruby
bigkevmcd has joined #ruby
oneawayman has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
<gaussblurinc>
puts "all files have been already removed!" and return if array.empty? - why this code doesn't work as it should?
poguez has quit [Quit: Connection closed for inactivity]
ringaring has joined #ruby
<bnagy>
it does
pfg has joined #ruby
<gaussblurinc>
bnagy: not, it doesn't. it only print message
<bnagy>
that's what it should do?
lkba has joined #ruby
<gaussblurinc>
puts "all files have been already removed!" and return if array.empty?
postmodern has quit [Quit: Leaving]
workmad3 has quit [Quit: Reconnecting]
<gaussblurinc>
puts "can't print this message"
<bnagy>
ohhh you mean 'why doesn't this do what I thought it would do'
workmad3 has joined #ruby
mehlah has joined #ruby
<gaussblurinc>
bnagy: yes :)
<bnagy>
because just write your code properly instead of trying to do silly oneliners
tvw has joined #ruby
<workmad3>
bnagy: but oneliners are *fun*!!!
<bnagy>
and binds weirdly
kevinykchan has quit [Quit: Computer has gone to sleep.]
<bnagy>
so and PLUS postfix if is just asking for a headache
fgo has joined #ruby
<gaussblurinc>
bnagy: I think that this is legacy of language not a "sugar"
meatherly has joined #ruby
<bnagy>
if whatever \n do\n stuff\n end
<workmad3>
gaussblurinc: 'puts' will always return nil
lkba has quit [Ping timeout: 240 seconds]
rdark has joined #ruby
<workmad3>
gaussblurinc: and then 'and' has massively lower binding, so your line 'puts "all files have been already removed!" and return if array.empty?' is '(puts "all files have been already removed!") and (return if array.empty?)' (and shows why oneliners aren't a beginner thing and can cause confusion ;) )
predator217 has quit [Ping timeout: 252 seconds]
guilleiguaran has quit [Quit: Connection closed for inactivity]
Merks has quit []
<bnagy>
my explanation was shorter
<workmad3>
gaussblurinc: that would then be '(nil) and (return if array.empty?)', and the 'and' will then always short-circuit (nil and anything is false) so the result is a line that will always print and never return
<workmad3>
bnagy: your explanation missed that even if the 'if' applied to the entire line, it would *still* never return because 'puts' returns nil ;)
meatherly has quit [Ping timeout: 244 seconds]
lazyguru has quit [Ping timeout: 252 seconds]
<bnagy>
well to be fair my explanation was more or less 'just don't do that'
<workmad3>
bnagy: true :)
dzhulk has left #ruby [#ruby]
<bnagy>
but I am full of beer and sumo
<bnagy>
and should be in bed
<bnagy>
o/
<workmad3>
bnagy: nn ;)
<gaussblurinc>
bnagy: goodnight :)
shime has quit [Ping timeout: 240 seconds]
himsin has joined #ruby
glosoli has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
predator117 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
W0rmDr1nk has quit [Read error: Operation timed out]
<nkts>
Hi, who could me hint how to convert ruby hash to java properties config like stucture?
charliesome has joined #ruby
jlast has joined #ruby
popl has quit [Read error: Operation timed out]
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
e4xit has joined #ruby
<etqqkoiflwhb____>
nkts: config like structure?
Platini has quit [Read error: Operation timed out]
lazyguru has joined #ruby
<etqqkoiflwhb____>
do you want something like config.key instead of config['key']
BeingUntoDeath has quit [Ping timeout: 240 seconds]
dgfdgf has joined #ruby
shredding has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
dgfdgf is now known as `MArceLL`
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
Salve has joined #ruby
kate_r has joined #ruby
kitak has quit [Remote host closed the connection]
aagdbl has joined #ruby
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
freerobby has joined #ruby
francisfish has joined #ruby
pfg has joined #ruby
DrForr_ has left #ruby [#ruby]
aagdbl1 has quit [Ping timeout: 240 seconds]
<etqqkoiflwhb____>
https://gist.github.com/anonymous/9480735, I'm writing a module with some helpers for carrier wave, writing a spec for it, is the explicit use of subject to refer to the host class an acceptable convention?
Salve has quit [Ping timeout: 269 seconds]
freerobby has quit [Ping timeout: 240 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
kennym has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
camilasan has quit [Read error: Connection reset by peer]
pierre1_ has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
ItSANgo_ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
camilasan has joined #ruby
predator117 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
etqqkoiflwhb____ has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
camilasan has joined #ruby
abdulsattar has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
codeitagile has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
sparrovv has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sk87 has quit [Client Quit]
sparrovv has quit [Remote host closed the connection]
camilasan has joined #ruby
browndawg has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
sparrovv has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
nomenkun has quit [Quit: Leaving...]
camilasan has joined #ruby
abdulsattar has quit [Quit: leaving]
meatherly has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
chrisseaton has quit []
camilasa_ has quit [Read error: Connection reset by peer]
etqqkoiflwhb_ has joined #ruby
camilasan has joined #ruby
sameerynho has quit [Quit: Leaving]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has quit [Read error: Connection reset by peer]
razibog has joined #ruby
camilasan has joined #ruby
aagdbl has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has quit [Ping timeout: 244 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
magicrails has joined #ruby
gaussblurinc has joined #ruby
lyanchih has quit [Quit: lyanchih]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
abdulsattar has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
mourest has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Billy2 has joined #ruby
predator117 has joined #ruby
aagdbl has joined #ruby
abk has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
lemonsparrow has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
jlast has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
razibog has quit [Quit: Leaving.]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
puppeh has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
pu22l3r_ has quit [Remote host closed the connection]
shime has joined #ruby
<puppeh>
does anyone knows how can I use a debugger (e.g. 'binding.pry') on a unicorn worker?
gneral has joined #ruby
<gneral>
hi
camilasan has joined #ruby
kayloos has quit [Remote host closed the connection]
kennym has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
sensen has quit [Quit: leaving]
danshultz has joined #ruby
kennym has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
jackneill has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
abdulsattar is now known as codingtales
marcgg_ has left #ruby [#ruby]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
shime has quit [Quit: Lost terminal]
camilasan has quit [Read error: Connection reset by peer]
pr0ggie has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
predator117 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
Zaratustra has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
codingtales has quit [Quit: leaving]
codeitagile has quit [Remote host closed the connection]
Squarepy_ has joined #ruby
Megtastique has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
foredoomed has joined #ruby
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has joined #ruby
LexicalScope has joined #ruby
abdulsattar has joined #ruby
fgo has quit [Remote host closed the connection]
jimmyy has quit []
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
fgo has joined #ruby
lolmaus has joined #ruby
abdulsattar has quit [Client Quit]
abdulsattar has joined #ruby
larissa has joined #ruby
grzywacz has joined #ruby
lyanchih has joined #ruby
HiroshiWatanabe has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
sailias has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
senayar_ has joined #ruby
Squarepy_ has quit [Quit: Leaving]
sailias has quit [Ping timeout: 240 seconds]
Squarepy_ has joined #ruby
lxsameer has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 240 seconds]
Squarepy__ has joined #ruby
Squarepy__ has quit [Read error: Connection reset by peer]
Salve has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
Squarepy has quit [Quit: Leaving]
Squarepy_ is now known as Squarepy
freerobby has joined #ruby
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
abk has joined #ruby
mostlybadfly has joined #ruby
Vovko has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
rickruby has quit [Ping timeout: 240 seconds]
abk has quit [Max SendQ exceeded]
freerobby has quit [Ping timeout: 244 seconds]
abk has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
etqqkoiflwhb_ has quit [Remote host closed the connection]
abk has quit [Max SendQ exceeded]
abk has joined #ruby
abk has quit [Max SendQ exceeded]
abk has joined #ruby
jetblack has joined #ruby
abk has quit [Max SendQ exceeded]
IceyEC has joined #ruby
sparrovv has quit [Remote host closed the connection]
predator117 has joined #ruby
abdulsattar has quit [Ping timeout: 244 seconds]
shredding has quit [Quit: shredding]
shevy has joined #ruby
rdark has quit [Read error: Operation timed out]
sk87 has joined #ruby
meatherly has joined #ruby
m1lt0n has quit [Quit: Lost terminal]
tagrudev has quit [Quit: Me = Awesome]
m1lt0n has joined #ruby
jkamenik has joined #ruby
rdark has joined #ruby
eka has joined #ruby
bal has quit [Quit: bal]
meatherly has quit [Ping timeout: 240 seconds]
Polysics has joined #ruby
Vovko has quit [Ping timeout: 265 seconds]
bal has joined #ruby
<Polysics>
hello! is there any gem that will turn "2007" into "two thousand seven" and "1937" into "nineteen thirty seven"?
oneawayman has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
<Polysics>
or 1907 into nineteen oh seven
<Polysics>
basically, the year pronounciation
tagrudev has joined #ruby
<Polysics>
I am not even sure 1907 is like that in English :P
arietis has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
ferr has joined #ruby
browndawg has joined #ruby
Speed has quit [Ping timeout: 265 seconds]
ferr has left #ruby [#ruby]
ferr has joined #ruby
peterellisjones has quit [Quit: Leaving.]
S0da has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
lw has quit [Quit: s]
peterellisjones has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mjs2600 has joined #ruby
duggiefresh has joined #ruby
rdark has joined #ruby
mary5030 has quit [Remote host closed the connection]
arietis has joined #ruby
<shevy>
dunno
mary5030 has joined #ruby
perlsyntax has joined #ruby
<shevy>
I always thought it would be "nineteenhundred - seven"
petey has joined #ruby
karupanerura is now known as zz_karupanerura
<Polysics>
me too, but I come from Italy :)
banister has joined #ruby
duggiefresh has quit [Ping timeout: 265 seconds]
mjs2600 has quit [Remote host closed the connection]
yacks has joined #ruby
nateberkopec has quit [Quit: Leaving...]
scottradcliff has joined #ruby
mavcunha has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
shredding has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
rails426 has joined #ruby
arb_ has quit [Remote host closed the connection]
bal has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
absolutezeroff has joined #ruby
the_hack has quit [Quit: Computer has gone to sleep.]
bal has joined #ruby
jeregrine has joined #ruby
Mongey is now known as Mongey-away
Mongey-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has quit [Remote host closed the connection]
yubrew has joined #ruby
sski has joined #ruby
etqqkoiflwhb has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
chris_thomson has joined #ruby
sski has quit [Ping timeout: 264 seconds]
Xeago_ has joined #ruby
workmad3 is now known as wm3|lunch
ta9to has joined #ruby
james_d_h has joined #ruby
Xeago__ has joined #ruby
rococo has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
Xeago_ has quit [Ping timeout: 264 seconds]
klue has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
CreativeEmbassy has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zeropx has quit [Ping timeout: 240 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
vpretzel has joined #ruby
zeropx has joined #ruby
browndawg has left #ruby [#ruby]
AlexRussia has joined #ruby
no0code has joined #ruby
Vovko has joined #ruby
Xeago__ has quit [Ping timeout: 244 seconds]
Aryasam has joined #ruby
sambao21 has joined #ruby
fgo has joined #ruby
zachallett has joined #ruby
chris_thomson has quit [Quit: Zzz...]
cover has joined #ruby
no0code has quit [Quit: Lost terminal]
hermanmunster has joined #ruby
kevinykchan has joined #ruby
chipotle has quit [Quit: cya]
chipotle has joined #ruby
tonni has quit [Remote host closed the connection]
sparrovv has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 242 seconds]
sk87 has joined #ruby
Advocation has joined #ruby
dik_dak has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
rihbyne has joined #ruby
slowcon has joined #ruby
stringoO has joined #ruby
etqqkoiflwhb has joined #ruby
phantomtiger has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jprovazn has quit [Quit: Leaving]
abk has joined #ruby
mengu has quit [Remote host closed the connection]
jprovazn has joined #ruby
Vovko has quit [Remote host closed the connection]
paulfm has joined #ruby
magicrails has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
Vovko has joined #ruby
Mongey has joined #ruby
mary5030 has joined #ruby
ta9to has quit [Quit: WeeChat 0.4.3]
relix has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
Gooder has joined #ruby
kevind has joined #ruby
duggiefresh has joined #ruby
zz_jrhorn424 is now known as jrhorn424
mengu has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
<Advocation>
I have a load of JSON files that make up an old database - I'm trying parse them and build them up to import them into my DB. Is there any way I can get foreign records through their ID? For example, a house table and a rooms table, a with a link table between them..
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
_tpavel has joined #ruby
Gooder` has joined #ruby
Gooder` has quit [Remote host closed the connection]
Gooder has quit [Client Quit]
_tpavel has quit [Client Quit]
chiel has joined #ruby
chiel has quit [Client Quit]
chiel has joined #ruby
<dawkirst>
perhaps a stupid question, but where in a ruby app do I require my gems?
alexju has joined #ruby
tonni has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
oneawayman has joined #ruby
ValicekB has quit []
bigkevmcd has joined #ruby
AlexRussia has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
codabrink has joined #ruby
yasushi has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
bathula has joined #ruby
tungd has joined #ruby
stupidystupid has joined #ruby
tonni has quit [Client Quit]
mikecmpbll has quit [Quit: i've nodded off.]
_tpavel has joined #ruby
<apeiros>
dawkirst: in the files where you use them
petey has quit [Remote host closed the connection]
<apeiros>
as all other requires too
stupidystupid has quit [Client Quit]
<apeiros>
Advocation: json has no concept of "records" or "ids", or "primary keys" and "foreign keys"
AlexRussia has joined #ruby
petey has joined #ruby
<dawkirst>
apeiros, ok, thanks. So if I have lib/foo/... and lib/foo.rb, I don't require them in foo.rb, right?
dEPy has joined #ruby
<apeiros>
Advocation: so if you want to do such references, you must build the necessary structures and methods yourself
the_hack has joined #ruby
nateberkopec has joined #ruby
<apeiros>
dawkirst: if you don't use it in foo.rb itself, then I wouldn't
IceDragon has joined #ruby
<Advocation>
apeiros: ok, do you know of any gems that can make this easier?
<dawkirst>
apeiros, ok, thanks
<apeiros>
Advocation: sqlite - read it into an in-memory db
<apeiros>
alternatively I don't see any reason not to use just plain ruby.
<apeiros>
map your json to proper classes.
<Advocation>
apeiros: yeah, that's what I'm doing.. just wondering if there was a better way :)
<apeiros>
too generic to tell
<Advocation>
ok
<Advocation>
thanks :)
Mongey_ has joined #ruby
<apeiros>
but you can look on ruby-toolbox.com for tools around json and/or data transformation
wm3|lunch is now known as workmad3
jlast has joined #ruby
Speed has joined #ruby
petey has quit [Ping timeout: 269 seconds]
<dawkirst>
apeiros, so my problem is this: I have a file where I do `require 'data_mapper'` and in the same file I also need to do `require 'json'`, upon which a `Gem::LoadError: json found in multiple gems: json, json_pure` error is raised
the_hack has quit [Client Quit]
sk87 has joined #ruby
jobewan has joined #ruby
<apeiros>
dawkirst: that's a problem which is actually unrelated to your question
<apeiros>
you have more than one gem which could satisfy your require
ValicekB has joined #ruby
<dawkirst>
apeiros, meaning that in my require I need to be more specific?
Mongey has quit [Ping timeout: 264 seconds]
<apeiros>
your options: a) use bundler, b) uninstall one of the gems, c) explicitly activate one of the gems, using Kernel#gem method
<apeiros>
there may be more options. I'd use a) or b).
<apeiros>
c) forces the user of your code to use a specific json gem which he/she maybe doesn't want to use.
<shevy>
anyone of you using .ljust and .rjust a lot?
<dawkirst>
apeiros, ok, so does bundler-exec implicitly does c ) for me?
<apeiros>
dawkirst: yes
<apeiros>
bundler isolates your app to only use the gems you specified in the Gemfile
<dawkirst>
apeiros, so much makes sense now, thanks :)
<apeiros>
yw
mikecmpbll has joined #ruby
tkilani has joined #ruby
petey has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<tkilani>
hi people, I wanted to get old rss feeds from hackaday.com and wanted to know if there is some kind of parser / crawler api in ruby that would go though the site and I publishes them as rss feeds. A kind of rss proxy
klue has joined #ruby
lxsameer has joined #ruby
Solnse has joined #ruby
phantasm66 has joined #ruby
sparrovv has quit [Remote host closed the connection]
ndrei has joined #ruby
doodlehaus has joined #ruby
Mongey_ has quit [Read error: Connection reset by peer]
Mongey has joined #ruby
rihbyne has quit [Quit: Konversation terminated!]
jackneill has quit [Quit: WeeChat 0.4.3]
aryaching has joined #ruby
jackneill has joined #ruby
guilleiguaran has joined #ruby
end_guy has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
_bart has joined #ruby
Mongey has quit [Client Quit]
kayloos has joined #ruby
freerobby has joined #ruby
kaspernj has quit [Remote host closed the connection]
_bart has quit [Quit: leaving]
npearson has joined #ruby
ocx has joined #ruby
npearson has quit [Remote host closed the connection]
_bart has joined #ruby
npearson has joined #ruby
momigi has joined #ruby
rails426 has quit []
<_bart>
Hi all
<shevy>
bart!
<shevy>
how is homer
ItSANgo_ has quit [Quit: Leaving...]
danshultz has joined #ruby
<ocx>
hi all, i have a headless system that has an internet connection and can surf the web, i have users that do not have web access, only access to this headless system via web interface, now i want users to be able to surf the internet via this headless system (like a proxy) but mainly they would login to the headless system via webinterface send requests to a url ex: www.google.com , headless would fetch the results and show them in a new
sdouglas has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
<ocx>
how can i do that in ruby? where should i start
sdouglas has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ocx>
kind of a proxy functionality but that is web driven with results fetched in html to the users
lw has joined #ruby
arb_ has joined #ruby
Mongey has joined #ruby
evenix has joined #ruby
sdouglas_ has joined #ruby
<_bart>
shevy: he's alright, around somewhere
sdouglas has quit [Ping timeout: 240 seconds]
grzywacz has quit [Ping timeout: 240 seconds]
<_bart>
Does the name Bart also appear in America? I wonder how common Bart is in other countries.
<shevy>
I only ever heard if in the simpsons movies
ItSANgo has joined #ruby
momigi has quit [Remote host closed the connection]
tobiasvl has quit [Remote host closed the connection]
Gooder has joined #ruby
tvl has joined #ruby
rails426 has joined #ruby
tvl is now known as tobiasvl
mikecmpbll has quit [Quit: i've nodded off.]
mary5030 has joined #ruby
rails426 has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
rails426 has joined #ruby
npearson_ has joined #ruby
sk87 has joined #ruby
danshultz has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
jtza8 has joined #ruby
ringaring has quit [Quit: Leaving]
fgo has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
Gooder has joined #ruby
<jtza8>
Is there a difference between ARGV and $*?
Ziarkaen has quit [Remote host closed the connection]
npearson has quit [Ping timeout: 240 seconds]
pcarrier has joined #ruby
<apeiros>
$ ruby -e 'p ARGV.equal?($*)'
<apeiros>
true
<apeiros>
jtza8: ^ ruby says no
SCommette has joined #ruby
<shevy>
$* looks so ugly
<jtza8>
Just wondered whether $* might be deprecated.
<shevy>
I think matz will retain it for legacy reasons and golfing, it's 2 chars shorter than ARGV after all!
ce_afk is now known as cescalante
senayar_ has quit [Remote host closed the connection]
<jtza8>
Thanks for clearing that up.
danshultz has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
senayar has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
peterellisjones has quit [Quit: Leaving.]
phansch has quit [Quit: WeeChat 0.4.2]
iceden has joined #ruby
himsin has quit [Quit: himsin]
gnephiak has joined #ruby
zB0hs has joined #ruby
jprovazn has quit [Quit: Leaving]
deadlock_ has quit [Ping timeout: 265 seconds]
y_gick has joined #ruby
mjs2600 has joined #ruby
<y_gick>
I am starting programming in ruby with neurogami.com/content/neurogami-10_minutes_to_your_first_Ruby_app ...
<y_gick>
and I have really no idea of the "handlers subdirectory" where I have to put html.rb
kevinykchan has quit [Read error: Connection reset by peer]
no0code has joined #ruby
jprovazn has joined #ruby
mjs2600_ has joined #ruby
mjs2600 has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
* y_gick
got the idea
browndawg has joined #ruby
Polysics has left #ruby [#ruby]
<shevy>
y_gick as far as ruby is concerned, just put the .rb files where a require to them will work
mansi_ has joined #ruby
<y_gick>
shevy: yes
<shevy>
if you put them into the ruby SITE_DIR path, require 'name' alone would work (or, if it is in a subdirectory there, require 'subdir/name) would)
<shevy>
in rack you could do this as a middleware, a filter between the external www world, and the internal stuff you present to them through that middleware "app"
<shevy>
you should get a clear idea what specifically you want to result though. I would recommend to write a few classes that handle the different tasks
yfeldblum has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
aagdbl has quit [Client Quit]
<ocx>
shevy: ok so i get the response of juretta.com in |f| in html format that can be then displayed in a new wiindow for the user browser?
anarang has quit [Quit: Leaving]
danshultz has joined #ruby
e4xit has quit [Read error: Connection reset by peer]
Mongey has joined #ruby
<shevy>
ocx well you need to split up the tasks first
lachesis has joined #ruby
_bart has left #ruby [#ruby]
_bart has joined #ruby
e4xit has joined #ruby
<shevy>
you want to give back the string (html is a string) to your user
deadlock_ has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
<shevy>
in rack you can do this via the response callback... I forgot the format... an array with 3 elements it is, one should be the string
grayWolf has joined #ruby
<shevy>
I dunno what you mean with "a new window for the user browser"
<shevy>
do you mean a redirect?
abdulsattar has joined #ruby
<shevy>
if so you could generate a static html page and redirect to it. I am sure there are a million more ways to solve it, only you know what you really want
snath has quit [Ping timeout: 244 seconds]
ikawnoclast has quit [Ping timeout: 244 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
sparrovv has joined #ruby
agarie has joined #ruby
lmickh has joined #ruby
Speed has quit [Ping timeout: 244 seconds]
bathula has left #ruby [#ruby]
grayWolf is now known as Speed
Symbiosisz has quit [Remote host closed the connection]
ikawnoclast has joined #ruby
<ocx>
shevy: ok i have this headless system that connects to the internet, i need to authenticate it to a hotspot system so i am trying to do so by using another client that is a pc to authenticate the headless system to the hotspot
<shevy>
sounds quite complicated :D
kevind_ has joined #ruby
no0code has quit [Quit: leaving]
poguez has joined #ruby
geggam has joined #ruby
kevind has quit [Ping timeout: 240 seconds]
kevind_ is now known as kevind
tylersmith has joined #ruby
sparrovv has quit [Remote host closed the connection]
<ocx>
shevy: this open-uri is similar to curl righT
<shevy>
kinda but curl should be much more advanced in the options it gives you
<shevy>
open-uri is more like a basic building block
robertjpayne has quit [Remote host closed the connection]
sparrovv has joined #ruby
havenwood has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kevinykchan has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
rdark has quit [Quit: Lost terminal]
sdouglas has joined #ruby
momigi has joined #ruby
deadlock_ has joined #ruby
Mongey_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
rdark has joined #ruby
lachesis has quit [Ping timeout: 245 seconds]
camilasa_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
camilasan has joined #ruby
Mongey_ has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
lachesis has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
speakingcode-wor has joined #ruby
Mongey has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<speakingcode-wor>
is there a process documented to update documentation on ruby-doc.org or whatever its source is?
camilasan has joined #ruby
<speakingcode-wor>
ah nm, found it. documenting-ruby.org
<havenwood>
speakingcode-wor: yup, oh you got the link ;)
rihbyne has joined #ruby
meatherly has joined #ruby
aspires has joined #ruby
<rihbyne>
hello people
<speakingcode-wor>
yeah. so on the enummerable doc, for the any? method, it doesn't state that for hashes it will pass key, value to the provided block - i guess that should have been more obvious to me, but it should be documented for the sake of newcommers IMO
<rihbyne>
my host is fedora 20 and system ruby is 2.0.0p353 gems 2.2
<rihbyne>
I am trying to install a package called 'gollum'
<workmad3>
rihbyne: you don't install packages with gems... the gem needs to compile some internal stuff against a library you need to install with your package manager
aspires has joined #ruby
<workmad3>
rihbyne: the error message from gem told you exactly what package was missing (icu... see the *great* *big* *section* *surrounded* *by* *stars*!!!)
fgo has joined #ruby
cover has quit [Ping timeout: 265 seconds]
<workmad3>
rihbyne: so then you go out and google how to install that package for your distro ;)
abdulsattar has quit [Ping timeout: 240 seconds]
<speakingcode-wor>
when you pass a hash to a method, if you put the explicit cury braces, you usually have to put the whole hash in parenthesis so it doesn't get confused if you're passing a hash as a method param, or appending a block to the method call, magicrails
<havenwood>
rihbyne: yeah, looks like just `icu` like everyone says, but good that you have `ruby-devel` installed
<magicrails>
yeah
<magicrails>
your right
tagrudev has quit [Remote host closed the connection]
<magicrails>
i just removed the curly braces
lw has joined #ruby
<rihbyne>
havenwood: icu too I have it installed :)
<havenwood>
moar blocks!
arietis has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
armyriad has joined #ruby
yubrew has joined #ruby
tonni has joined #ruby
mikepack has joined #ruby
shaunbak_ has joined #ruby
pyrac has joined #ruby
mengu has quit []
Es0teric has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
Muhammad_ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
bahar has joined #ruby
sambao21 has joined #ruby
Muhammad_ has quit [Client Quit]
bal has quit [Ping timeout: 269 seconds]
Gooder has quit [Ping timeout: 265 seconds]
nomenkun has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Ping timeout: 245 seconds]
Solnse has quit [Remote host closed the connection]
Beoran has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Quit: Leaving]
moeSeth_ has joined #ruby
acrussell has joined #ruby
geopet has joined #ruby
bal has joined #ruby
IceDragon has joined #ruby
bal1 has joined #ruby
visof has quit [Ping timeout: 241 seconds]
heftig has quit [Quit: Quitting]
ndrei has joined #ruby
Beoran_ has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
DrShoggoth has joined #ruby
b00stfr3ak has joined #ruby
bal1 has quit [Client Quit]
mjs2600 has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<gaussblurinc>
If I know the rindex (index of last symbol occurence), how should I split string in two parts? (biggest part - left, smallest - right) ?
aryaching has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
_Rahul_Roy_ has joined #ruby
bal1 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
bal has quit [Ping timeout: 265 seconds]
rihbyne has quit [Ping timeout: 265 seconds]
Mongey_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
IceDragon_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
shaileshg has joined #ruby
UserNameInvalid has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
cover has joined #ruby
thesheff17 has joined #ruby
ndrei has joined #ruby
IceDragon has quit [Ping timeout: 269 seconds]
chrisramon has joined #ruby
kaspergrubbe has joined #ruby
deadlock has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
Mongey_ is now known as Mongey
hfp`away is now known as hfp
tvw has quit [Read error: Operation timed out]
<Morrolan>
Excluding the separator? Something like `s = 'abc|def|gh'; tmp = s.split('|'); [tmp[0..-2].join, tmp.last]` probably.
abdulsattar has joined #ruby
<Morrolan>
If you want to include the separator, get the index where you want to split, and then something à la [s[0...index], s[index..-1]] I guess.
lw has quit [Quit: s]
<gaussblurinc>
index = element.rindex('/') path = element[0,index] name = element[index+1,element.length]
arietis has joined #ruby
mjs2600 has joined #ruby
<Morrolan>
Need to use '..' within the brackets, not a comma.
bahar has quit [Ping timeout: 240 seconds]
Beoran_ has joined #ruby
zarul has quit [Ping timeout: 265 seconds]
<apeiros>
Morrolan: wrong
Beoran has joined #ruby
danshultz has quit [Remote host closed the connection]
<Morrolan>
Oh, it accepts either?
<apeiros>
it's different
<apeiros>
[start_offset..end_offset] vs. [start, length]
<Morrolan>
Ah.
danshultz has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
hamakn has quit [Remote host closed the connection]
<apeiros>
so technically he goes out of bounds in his second one. but since ruby doesn't mind…
zarul has joined #ruby
bahar has joined #ruby
<Morrolan>
Mhm, and his first one will work since he starts at the beginning of the string, but would bite him in the arse otherwise.
<shaileshg>
Hi, anyone here.. i have a table modelling related query in rails..
duggiefresh has quit [Remote host closed the connection]
lw has joined #ruby
<shaileshg>
I have a user which can create multiple kind of transactions such as send, request, buy and sell
<shaileshg>
However, he also wants to see his transactions history in which case I want to pull all his transactions (irrespective of type) and show it to him
<shaileshg>
should I create a polymorphic relationship between transactions and send, request, buy, sell tables?
<shaileshg>
or is there any alternative to it
<shaileshg>
?
axl_ has joined #ruby
phansch has joined #ruby
mjs2600_ has joined #ruby
mjs2600 has quit [Ping timeout: 244 seconds]
danshultz has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
magicrails has quit [Quit: magicrails]
tkilani has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
Hobogrammer has quit [Ping timeout: 264 seconds]
xuisc has joined #ruby
xuisc has joined #ruby
xuisc has quit [Changing host]
yasushi has joined #ruby
mlpinit has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
<shevy>
eeks rails to #rubyonrails pls man
crystal77 has quit [Quit: Computer has gone to sleep.]
Mongey_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
nvrch has quit [Quit: nvrch]
foredoomed has quit [Remote host closed the connection]
gazarsgo has joined #ruby
Voodoofish4301 has joined #ruby
<shaileshg>
shevy: i put it on #rubyonrails, but no one is answering there.. maybe not enough active people
mikepack_ has joined #ruby
<shevy>
the ratio of people who know rails there is still better than here
<shevy>
here you have to ask workmad3 ;-)
centrx has joined #ruby
mikecmpbll has joined #ruby
duggiefresh has joined #ruby
dik_dak has quit [Ping timeout: 241 seconds]
sdouglas has quit [Remote host closed the connection]
dik_dak has joined #ruby
tvw has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
mansi_ has quit [Remote host closed the connection]
rippa has joined #ruby
mansi_ has joined #ruby
Mongey_ is now known as Mongey
sk87 has joined #ruby
mjs2600_ has quit [Remote host closed the connection]
razrunelord has joined #ruby
fijimunkii has joined #ruby
pyrac has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
_bart has quit [Ping timeout: 252 seconds]
mansi__ has joined #ruby
GaryOak has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
lemonsparrow has joined #ruby
mansi__ has quit [Remote host closed the connection]
mansi_ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
mjs2600 has joined #ruby
kevinykchan has joined #ruby
tylersmith has quit [Remote host closed the connection]
Mongey has quit [Read error: Connection reset by peer]
rihbyne has joined #ruby
tylersmith has joined #ruby
_HolyCow has joined #ruby
Mongey has joined #ruby
nvrch has joined #ruby
mansi_ has quit [Ping timeout: 240 seconds]
mlpinit_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlpinit_ has quit [Remote host closed the connection]
Mongey_ has joined #ruby
tylersmith has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
mlpinit_ has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
bal1 has quit [Quit: bal1]
mikecmpbll has quit [Quit: i've nodded off.]
Mongey has quit [Ping timeout: 240 seconds]
aspires has quit []
einarj has quit [Remote host closed the connection]
aspires has joined #ruby
ahawkins has quit [Remote host closed the connection]
rihbyne has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
apeiros has quit [Remote host closed the connection]
petey has joined #ruby
Voodoofish4301 has quit [Ping timeout: 253 seconds]
apeiros has joined #ruby
aganov has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
mlpinit has joined #ruby
ziyadb_ has quit [Quit: Connection closed for inactivity]
MrPopinjay has joined #ruby
axl_ has quit [Quit: axl_]
shaunbak_ has quit [Remote host closed the connection]
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
yasushi has quit [Remote host closed the connection]
TigerWolf has quit [Ping timeout: 240 seconds]
rihbyne has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
circuit has joined #ruby
jack_rabbit has joined #ruby
mlpinit_ has quit [Ping timeout: 244 seconds]
circuit has quit [Client Quit]
marcdel has quit []
lxsameer has quit [Quit: Leaving]
circuit has joined #ruby
jhass|off is now known as jhass
Schmidt has joined #ruby
arb_ has joined #ruby
mojjojo has quit [Read error: Connection reset by peer]
arb_ has quit [Client Quit]
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
IceDragon_ has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 265 seconds]
blaxter has quit [Quit: foo]
chrisseaton has joined #ruby
toastynerd has joined #ruby
banister has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
yfeldblum has joined #ruby
kaspergrubbe has joined #ruby
Es0teric has joined #ruby
banister has quit [Client Quit]
endless_walrus has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
fraterlaetus has joined #ruby
IceDragon has joined #ruby
Avahey_ has joined #ruby
oneawayman has quit [Read error: Connection reset by peer]
oneawayman has joined #ruby
axl_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
abdulsattar has quit [Ping timeout: 269 seconds]
camilasan has quit []
ebetancourt has joined #ruby
mattmcclure has joined #ruby
lemonsparrow has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
Xeago has quit [Remote host closed the connection]
pcarrier has quit [Quit: Connection closed for inactivity]
Voodoofish4301 has joined #ruby
_bart has joined #ruby
francisfish has quit [Remote host closed the connection]
<nhmood>
is it possible to use a conditional assignment operator ( a ||= b) with a hash reference
Xeago has joined #ruby
<nhmood>
ie: myHash[:mykey] ||= something
<havenwood>
nhmood: sure
Spami has joined #ruby
Voodoofish430 has quit [Ping timeout: 252 seconds]
<nhmood>
everytime I try I get a undefined local variable myHash
<havenwood>
nhmood: is `myHash` undefined?
mikepack_ has quit [Remote host closed the connection]
<nhmood>
yes, i assumed that the use of ||= was for "lazy" assignments
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<nhmood>
where it would create the var if it was undefined
<nhmood>
is that not the case with hashes?
Xeago_ has joined #ruby
francisfish has joined #ruby
<nhmood>
or did i completely misunderstand ||=
<havenwood>
nhmood: it would create the key, but not the Hash
pwh has quit []
larissa has quit [Quit: Leaving]
<nhmood>
so there is no way around having a myHash = {} assignment somewhere
<havenwood>
nhmood: no point on ||= with a hash key though
<centrx>
nhmood, There is, but it would require some more context on what you're doing.
mikepack has joined #ruby
MattStra_ has joined #ruby
gazarsgo has left #ruby [#ruby]
gaussblurinc has quit [Quit: Leaving.]
rickruby has joined #ruby
<jhass>
nhmood: a ||= b is just a quick way to write a || a = b
Mongey_ has quit [Read error: Connection reset by peer]
<workmad3>
shevy: ;)
einarj has joined #ruby
ndrei has joined #ruby
hamakn has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
paulfm has quit []
Mongey has joined #ruby
<Scriptonaut>
hmm
felixjet has quit [Ping timeout: 264 seconds]
<Scriptonaut>
the "+y and "*y isn't working
<Scriptonaut>
neither is the *yy
tylersmith has joined #ruby
<Scriptonaut>
it says "yanked", but it's not going into my clipboard
saarinen has quit [Client Quit]
paulfm has joined #ruby
nomenkun has quit [Ping timeout: 241 seconds]
dcfedde has joined #ruby
rh1n0 has joined #ruby
crystal77 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<nhmood>
are there any conventions for naming variables differently based on whether they are local vars vs passed in args or anything like that?
ashevaile has joined #ruby
Eiam has joined #ruby
mary5030 has joined #ruby
npearson has quit [Ping timeout: 244 seconds]
Gooder has joined #ruby
saarinen has joined #ruby
ce_afk is now known as cescalante
<centrx>
nhmood, Not that I've seen, no
tyranja is now known as tyranjoff
hamakn has quit [Ping timeout: 244 seconds]
<centrx>
nhmood, The best naming convention is to say what it is/contains
nanoyak has joined #ruby
<workmad3>
centrx: I prefer to name based on how something is used (the role it plays) rather than what it contains :)
<shevy>
nhmood the best variable is _
Xeago_ has quit [Remote host closed the connection]
<nhmood>
shevy: ??
Xeago has joined #ruby
<shevy>
nhmood _ = ''
cloud|nix has joined #ruby
cloud|nix has quit [Client Quit]
<workmad3>
shevy: be nice :P
<shevy>
_ << 'Hello'
<shevy>
_ << ' World!'
MattStra_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
npearson has joined #ruby
<nhmood>
lolol
apeiros has joined #ruby
joelteon has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 244 seconds]
oneawaymann has joined #ruby
MattStratton has joined #ruby
Gooder has quit [Ping timeout: 240 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
magoo_ has quit [Quit: WeeChat 0.4.2]
magoo has joined #ruby
mikecmpbll has joined #ruby
mjs2600 has quit [Remote host closed the connection]
peterellisjones has joined #ruby
Xeago has joined #ruby
arb_ has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
<Scriptonaut>
hey guys, so I can't copy/paste through the clipboard in vim cuz I'm over ssh. But I have my code, could somebody tell me why my get parameters are neither nil or empty ?
toastynerd has quit [Remote host closed the connection]
<Scriptonaut>
ah, there we go
<Scriptonaut>
ty
einarj has quit [Remote host closed the connection]
<workmad3>
Scriptonaut: either that, or when you're assigning your variables from params, do 'params[key].first'
abk has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr_red has quit [Max SendQ exceeded]
noname001 has joined #ruby
yfeldblum has joined #ruby
UserNameInvalid has joined #ruby
mr_red has joined #ruby
yfeldblu_ has joined #ruby
browndawg has left #ruby [#ruby]
sputnik1_ is now known as sputnik13net
kobain has joined #ruby
mr_red has quit [Max SendQ exceeded]
kevind has quit [Quit: kevind]
<Scriptonaut>
got it working thanks
mr_red has joined #ruby
<Scriptonaut>
you guys know why url.sub("&", "?") isn't working?
<workmad3>
Scriptonaut: did you unescape the URL yet?
Mongey has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yacks has quit [Quit: Leaving]
<Scriptonaut>
oh my bad, I needed sub!
abk has joined #ruby
<Scriptonaut>
I haven't worked in ruby for a year or so
rh1n0 has quit [Quit: im out!]
Mongey has joined #ruby
arb_ has quit []
michaeldeol has joined #ruby
abk has quit [Max SendQ exceeded]
nvrch has quit [Quit: nvrch]
gnephiak has quit [Quit: Konversation terminated!]
abk has joined #ruby
grzywacz has joined #ruby
ctp has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
rickruby has joined #ruby
Xeago has joined #ruby
npearson_ has quit [Ping timeout: 240 seconds]
npearson has joined #ruby
glosoli has joined #ruby
saarinen has quit [Quit: saarinen]
jrhe has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
afex has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<ashevaile>
i'm interested in setting up an app with can can, and authorize namespaces. docs indicate this needs some massaging -- has anyone else done this?
npearson has quit [Remote host closed the connection]
<ashevaile>
am i heading for...disaster...?
sk87 has joined #ruby
paulfm has quit []
<soahccc>
ashevaile: What do you mean by namespaces here? Like you're allowed to login there and there but not here?
Speed has joined #ruby
paulfm has joined #ruby
GaryOak__ has joined #ruby
<ashevaile>
soahccc: you're on the right track. i'd have an 'admin' namespace, and then a 'user' namespace
sk87 has quit [Client Quit]
saarinen has joined #ruby
<ashevaile>
soahccc: and then access would be controlled accordingly. users with 'admin' roles can see 'admin' namespace resources, but 'user' roles could not
f0ster has joined #ruby
<ashevaile>
there's this:
farn has quit [Read error: Connection reset by peer]
MattStratton has quit [Read error: Operation timed out]
<ashevaile>
though i didn't want to abstract my app controller that much unless it's really worth it
<f0ster>
How can I tell if an instantiation (child, inherited) of an object has a method on it ?
<centrx>
f0ster, #respond_to?
Mon_Ouie has quit [Read error: Connection reset by peer]
<yxhuvud>
f0ster: what centrx said, but the way you phrase the question makes me question that you are thinking about your problem in a well thought through way
Mon_Ouie has joined #ruby
<f0ster>
like i have different types of error classes that inherit from a parent, and i need to see if my error object has a method on it, if i just try to even check.. object.method.blank? it errors
<soahccc>
ashevaile: So role based. well there is cantango if you want devise but otherwise it isn't really complex. The overhead in the controller is always the same, if you're doing role based or user based permissions
<slash_nick>
I just want to avoid seeing #methods.include? again ;)
<RubyPanther>
ashevaile: I use acl9 which is really an RBAC but it is called an acl (which is funny because there are a bunch of ACLs that call themselves RBAC)
<f0ster>
centrx: yeah that works.. sorry i couldnt find the documentation at first for respond_to
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
Gadgetoid_ has joined #ruby
chrisja has joined #ruby
rezzack has quit [Quit: Leaving.]
jaimef has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
fridim__ has joined #ruby
Sushruth_ has quit [Quit: Leaving]
Gadgetoid_ is now known as Gadgetoid
<joelteon>
in my /etc/hosts file, I have "127.0.0.1 myapp.dev". if I run a server on 127.0.0.1:8081, I can't reach it using Net::HTTP.get(URI.parse("myapp.dev:8081")) but I can if I use 127.0.0.1:8081 instead. why is that?
jlast has quit [Remote host closed the connection]
sarmiena_ has joined #ruby
Mongey has joined #ruby
<joelteon>
(also if I telnet to myapp.dev 8081, that works fine)
Megtastique has joined #ruby
jlast has joined #ruby
TMM has quit [Quit: Ex-Chat]
<f0ster>
slash_nick: can't find it :p, but I believe you
sdouglas has quit [Ping timeout: 240 seconds]
<slash_nick>
f0ster: what do you mean?
vlad_starkov has quit [Remote host closed the connection]
<f0ster>
serached the git repo for ruby/ruby and respond_to doesn't show any c code
npearson has joined #ruby
jlast_ has joined #ruby
<f0ster>
oh maybe because github's search sucks.. respond_to doesnt match respond_to?
vlad_starkov has joined #ruby
jlast has quit [Read error: Connection reset by peer]
bricker has joined #ruby
toastynerd has joined #ruby
Shidash has joined #ruby
x1337807x has joined #ruby
peterhu has quit [Quit: leaving]
iliketurtles has joined #ruby
peterhu has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
freezey has quit [Remote host closed the connection]
<slash_nick>
f0ster: did you not read the source at the link is ent you?
Gadgetoid has quit [Read error: Operation timed out]
<ashevaile>
soahccc: i think that approach is the secret sauce -- seems like the way to go for this project
akemrir has joined #ruby
<ashevaile>
soahccc: really like the way it fits together. thanks for the suggestion!
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx>
f0ster does not know how to use URLs or Google.
magladroth has joined #ruby
bahar has joined #ruby
<soahccc>
ashevaile: no problem. I like the approach to have a top controller for every namespace… we have Frontend < Application, Backend < Application, Account < Frontend, and so forth
decoponio has quit [Quit: Leaving...]
jackneill has quit [Read error: Connection reset by peer]
jackneill has joined #ruby
Al___ has quit [Quit: Al___]
toastynerd has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
gberger has joined #ruby
kaspergrubbe has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
banister has joined #ruby
<slash_nick>
centrx: we should start a mechanical turk for "googling things"
<slash_nick>
whatcha wanna know, i can google that for you
vlad_starkov has quit [Remote host closed the connection]
sambao21 has joined #ruby
jaimef has quit [Excess Flood]
Tamae has joined #ruby
rickruby has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
abdulsattar has joined #ruby
<ctruett>
Oh wow... well what I have already works guys. Thanks anyways.
sputnik13net has quit [Ping timeout: 240 seconds]
sambao21 has quit [Client Quit]
mary5030 has joined #ruby
newbie1r has joined #ruby
jaimef has joined #ruby
<shinobi_one>
juhoh: your super class should not have to access a subclass variable, if this is the case, can you pass it in through the constructor to the super class?
rails426 has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
nowthatsamatt has joined #ruby
sputnik1_ has joined #ruby
rihbyne has quit [Quit: Konversation terminated!]
<dyreshark>
^ or if every subclass is required to have this value, then you could create a method that all subclasses need to override in the superclass
<juhoh>
I was thinking about passing subclasses class var @@tablename to superclass
<juhoh>
for a simple ORM
<juhoh>
.all being class method
heftig has joined #ruby
ikaros has quit [Quit: Ex-Chat]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar_ has joined #ruby
mehlah has quit [Quit: Leaving...]
shevy has joined #ruby
Xeago has joined #ruby
magicrails has quit [Quit: magicrails]
saarinen has joined #ruby
<juhoh>
I'd like to have .all, .find and friends in the superclass and just simply pass the table name from subclasses to the superclass
<juhoh>
"pass"
CaptainJet has joined #ruby
scottradcliff has quit [Quit: Page closed]
smathieu has joined #ruby
theRoUS has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
jprovazn has joined #ruby
toastynerd has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 244 seconds]
binaryplease has joined #ruby
magicrails has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
jlebrech has quit [Quit: Konversation terminated!]
binaryplease has quit [Client Quit]
binaryplease has joined #ruby
senayar_ has quit [Ping timeout: 265 seconds]
Speed has quit [Ping timeout: 265 seconds]
akemrir has quit [Quit: WeeChat 0.4.3]
shadoi1 has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
Xeago_ has joined #ruby
theRoUS has joined #ruby
failshell has quit [Remote host closed the connection]
endash has quit [Read error: No route to host]
sambao21 has joined #ruby
jprovazn has quit [Client Quit]
momomomomo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rails426_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
failshell has joined #ruby
rails426 has quit [Ping timeout: 265 seconds]
sambao21 has quit [Client Quit]
arb_ has joined #ruby
toastynerd has joined #ruby
arb_ has quit [Client Quit]
tonni_ has joined #ruby
CorySimmons has quit [Quit: Bye!]
Xeago_ has quit [Ping timeout: 240 seconds]
endash has joined #ruby
<juhoh>
hah, thinking too hardly for this problem
Speed has joined #ruby
<juhoh>
self. thank you
Gooder has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
kaspergrubbe has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
Es0teric has quit [Remote host closed the connection]
<juhoh>
not that pretty, but works and got rid of the class var
rickruby has quit [Remote host closed the connection]
Es0teric has joined #ruby
rickruby has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
Speed has quit [Ping timeout: 264 seconds]
Hobogrammer_ has joined #ruby
Gooder has quit [Ping timeout: 264 seconds]
sdouglas has joined #ruby
<centrx>
juhoh, If you are using ActiveSupport, it has cattr_accessor
tvw has quit []
AlSquire has quit [Quit: This computer has gone to sleep]
<juhoh>
nope, just making a simple wrapper for a few sql queries
Hobogrammer has quit [Ping timeout: 240 seconds]
rickruby has quit [Ping timeout: 265 seconds]
<juhoh>
nothing fancier than that. and the whole point is to do it from scratch
saarinen has joined #ruby
saarinen has quit [Client Quit]
binaryplease has quit [Quit: WeeChat 0.4.3]
rickruby has joined #ruby
<shevy>
cattr_accessor makes an accessor for a class method?
jlast_ has quit [Remote host closed the connection]
nouitfvf has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
crystal77 has joined #ruby
<juhoh>
ofc that attr_accessor from my example can be introduced in the superclass, and should be attr_reader instead
senayar has joined #ruby
mansi__ has quit [Ping timeout: 265 seconds]
<yxhuvud>
shevy: cattr_accessor generates accessors for @@-variables.
sdouglas has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
smathieu has quit [Remote host closed the connection]
banister has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
smathieu has joined #ruby
duggiefresh has joined #ruby
rickruby has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
mansi_ has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
yinkum has left #ruby [#ruby]
saarinen_ has joined #ruby
dkamioka has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
fuzzyhorns1 has joined #ruby
fuzzyhorns1 has left #ruby [#ruby]
saarinen has quit [Read error: Connection reset by peer]
saarinen_ is now known as saarinen
lw has joined #ruby
ktosiek has joined #ruby
arb_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
lw has quit [Client Quit]
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
kevinykchan has quit [Quit: Computer has gone to sleep.]
nateberkopec has quit [Ping timeout: 240 seconds]
arb_ has quit [Remote host closed the connection]
shevy has joined #ruby
francisfish has joined #ruby
Mongey has joined #ruby
endash has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics`away
mansi_ has quit [Read error: Connection reset by peer]
Slavox is now known as Slavox|AFK
jlast has joined #ruby
mansi_ has joined #ruby
Gadgetoid has quit [Read error: Operation timed out]
Mongey has quit [Client Quit]
simplyaubs has joined #ruby
mikepack has joined #ruby
virginus has joined #ruby
mansi__ has joined #ruby
nomenkun has joined #ruby
chrisramon has joined #ruby
<shevy>
how to conveniently find out
<shevy>
date in +2 hours to now
arietis has joined #ruby
<shevy>
hmm found it
<shevy>
I will simply convert into seconds. Time.now + 2 * 60 * 60
dawkirst has joined #ruby
aspires has joined #ruby
arietis has quit [Client Quit]
sdouglas has joined #ruby
sparrovv has joined #ruby
Mongey has joined #ruby
endash has joined #ruby
nateberkopec has joined #ruby
mansi__ has quit [Read error: Connection reset by peer]
mansi__ has joined #ruby
mansi__ has quit [Remote host closed the connection]
mansi_ has quit [Ping timeout: 264 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Remote host closed the connection]
jtza8 has quit [Remote host closed the connection]
<centrx>
shevy, Date has a day base
ashevaile has quit [Quit: ashevaile]
<centrx>
shevy, You ask about date and then use Time!? Which planet.
cina has quit [Quit: leaving]
mansi_ has joined #ruby
goganchic has joined #ruby
Gadgetoid has joined #ruby
virginus has quit [Remote host closed the connection]
lw has joined #ruby
npearson has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
kaspergr_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<CreativeEmbassy>
what's the accepted way to write log messages when killing a process?
Platini has left #ruby [#ruby]
<CreativeEmbassy>
because I'm getting that "log writing failed. can't be called from trap context" message
<CreativeEmbassy>
I assume from the Logger class
npearson has joined #ruby
relix has joined #ruby
<shevy>
yeah, Time for the win
<shevy>
the method names are annoying though
<shevy>
.hour .min .sec
<shevy>
I tried ... .hours .minutes .seconds
<shevy>
:(
CpuID has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
juhoh has left #ruby [#ruby]
fgo has joined #ruby
nari has quit [Ping timeout: 252 seconds]
Platini has joined #ruby
Mongey has joined #ruby
xuisc is now known as xuisce
stevepm has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
jenskarlsen has quit [Quit: jenskarlsen]
Gooder has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
zcreative has joined #ruby
hiyosi has quit [Ping timeout: 265 seconds]
lw has quit [Quit: s]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gyvrocket has joined #ruby
Mongey is now known as Mongey-away
ndrei has joined #ruby
randomnick_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
Mongey-away has quit [Client Quit]
nomenkun has joined #ruby
rickruby has joined #ruby
sputnik1_ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
jenskarlsen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mourest has quit [Read error: Connection reset by peer]
hobodav__ has joined #ruby
cumshot has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
<cumshot>
hi
Gooder has quit [Ping timeout: 244 seconds]
xuisce has quit []
xuisce has joined #ruby
circuit has quit [Read error: Operation timed out]
dangerousdave has quit [Write error: Connection reset by peer]
michaeldeol has joined #ruby
<jenskarlsen>
hey
dangerousdave has joined #ruby
<jenskarlsen>
interesting name
<cumshot>
thx
Mongey has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
sparrovv has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 252 seconds]
<shinobi_one>
>.>
Macaveli has quit [Remote host closed the connection]
chrisseaton has quit []
duggiefresh has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
duggiefresh has joined #ruby
Al__ has quit [Quit: Al__]
xuisce is now known as uxfi
uxfi is now known as xuisce
alexherbo2 has joined #ruby
lw has joined #ruby
optiz0r_ has joined #ruby
moted has quit [Read error: Operation timed out]
moted has joined #ruby
<optiz0r_>
evening all. I'm not sure if I'm running into a ruby problem or a rhel one. I have the json gem installed in $GEM_PATH/json-1.4.6 (such that json.rb is $GEM_PATH/json-1.4.6/lib/json.rb), and yet "ruby -rrubygems -rjson -e ''" returns the LoadError. Running strace I see a stat on $GEM_PATH/json-1.4.6, but not on the lib dir. Setting RUBYLIB explicitly fixes, but that seems like the wrong approach.
St_Marx has quit [Read error: Connection reset by peer]
gyvrocket has quit [Remote host closed the connection]
foredoomed has joined #ruby
St_Marx has joined #ruby
<optiz0r_>
ruby and the json gem were installed with native rhel packages, nothing funky
nifty has joined #ruby
sparrovv has quit [Remote host closed the connection]
St_Marx has quit [Read error: Connection reset by peer]
kckdent has joined #ruby
St_Marx has joined #ruby
rezzack has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oneawayman has joined #ruby
kirun has joined #ruby
xaq has joined #ruby
<shevy>
what does "gem env" show optiz0r_ and what is GEM_PATH set to
Advocation has quit [Quit: Advocation]
oneawaymann has quit [Ping timeout: 269 seconds]
chrisseaton has joined #ruby
<optiz0r_>
/usr/lib/ruby/gems/1.8
Hanmac has joined #ruby
hobodav__ has quit [Quit: Computer has gone to sleep.]
<optiz0r_>
I shorthanded $GEM_PATH above for /usr/lib/ruby/gems/1.8/gems
gfunc has quit [Remote host closed the connection]
kckdent has quit [Remote host closed the connection]
Mongey has joined #ruby
foredoomed has quit [Ping timeout: 252 seconds]
rsahae has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
philcrissman has joined #ruby
Mongey has quit [Client Quit]
CorySimmons has joined #ruby
freezey has quit [Remote host closed the connection]
<optiz0r_>
gem list also shows json as being installed (actually twice, 1.4.6 and 1.8.1)
<shevy>
so the real location of all your gems must be:
<shevy>
/usr/lib/ruby/gems/1.8/gems/
<shevy>
and there must be json-1.8.1/ dir and json-1.4.6/ dir
kaspergrubbe has joined #ruby
goganchic has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
<optiz0r_>
yes indeed. it's my dev box that has both versions installed. all the prod boxes I've looked at only have 1.4.6. all have the same GEM_PATHS which omits the trailing /gems
freerobby has quit [Quit: Leaving.]
Mongey has joined #ruby
<shevy>
I can't quite see an error there so far
rsahae has left #ruby [#ruby]
chrisseaton has quit []
kaspergr_ has quit [Ping timeout: 244 seconds]
<shevy>
in irb, can you require json?
phantomtiger has joined #ruby
<shevy>
if you don't mind hack solutions, you could symlink this dir into your ruby SITE_DIR directory :)
kaspergrubbe has quit [Ping timeout: 265 seconds]
<shevy>
I did this via all my custom ruby files that are not in a gem
whatasunnyday has joined #ruby
Mongey has quit [Client Quit]
<shevy>
require 'x/foo.rb' where x is a symlink to my main local ruby repository
koell has joined #ruby
Hobogrammer has joined #ruby
<optiz0r_>
not keen on bodging it, since this would have to be rolled out across prod servers and supported indefinitely
<shevy>
ah yes, I forgot that you have to do this on more than one machine
<shevy>
I don't use rhel packages myself though, and ruby + json works perfectly fine for me
<optiz0r_>
mm, it works fine on my gentoo workstation too
sepp2k has joined #ruby
Notte has joined #ruby
Hobogrammer_ has quit [Ping timeout: 240 seconds]
rsahae_ has joined #ruby
toastynerd has joined #ruby
epochwolf is now known as [epochwolf]
bilbo_swaggins has joined #ruby
alex88 has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
alex88 has quit [Client Quit]
<optiz0r_>
similar paths involved on that host too
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
pwh has joined #ruby
jasonwebster has joined #ruby
Salve_ has quit []
rsahae_ has left #ruby [#ruby]
dkamioka has joined #ruby
toastyne_ has joined #ruby
michaeldeol has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
<shevy>
perhaps rhel patched the gem
pwh has quit [Remote host closed the connection]
alvaro_o has joined #ruby
sambao21 has joined #ruby
rootshift has joined #ruby
toastynerd has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
arb_ has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
Jetchisel has joined #ruby
jasonwebster has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Quit: zzzzz…..]
chrisramon has quit [Quit: chrisramon]
razibog has joined #ruby
Mongey has joined #ruby
fluxxed has joined #ruby
lw_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
glosoli has joined #ruby
freerobby has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
chrisseaton has joined #ruby
michaeldeol has joined #ruby
jackneill has quit [Quit: WeeChat 0.4.3]
bahar has joined #ruby
lw has quit [Ping timeout: 264 seconds]
einarj has joined #ruby
timonv has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
arb_ has quit []
Notte has quit []
<AlexRussia>
Hey, people, what + in ruby for newbie?
sdouglas has quit [Remote host closed the connection]
endash has quit [Read error: No route to host]
Foo3 has quit [Remote host closed the connection]
CameSeveralTimes is now known as ICame
aspires has joined #ruby
sdouglas has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
<bilbo_swaggins>
ICame: trolling on IRC? unpossible.
<failshell>
do you guys have a gem to recommend to parse/write a simple foo = bar type of config?
<ICame>
trying 2 decide wots a good nick....
evenix has quit [Remote host closed the connection]
ferr has quit [Quit: Leaving.]
<bilbo_swaggins>
failshell: like a hashmap?
rickruby has quit [Remote host closed the connection]
<bilbo_swaggins>
how about JSON, YAML or XML?
ICame is now known as iCame
endash has joined #ruby
monkegjinni has joined #ruby
<failshell>
no just foo = bar type of configs
fgo has quit [Ping timeout: 240 seconds]
iCame is now known as Apple_iCame
<bilbo_swaggins>
I don't know what you mean
rickruby has joined #ruby
<bilbo_swaggins>
just like a plaintext file with variable assignments?
<mnemon>
failshell: just read lines and split on = ?
Apple_iCame is now known as Apple_iCame5
<bilbo_swaggins>
you could load up a file like that and parse it with the ruby interpreter
boom has joined #ruby
<bilbo_swaggins>
you don't need to do anything special
<Apple_iCame5>
perfect.....
boom is now known as Guest70128
tyranjoff is now known as tyranja
<optiz0r_>
shevy: o.O ruby -rrubygems -rjson fails, but ruby -rrubygems -e 'require "json"' works fine. bizarre
<bilbo_swaggins>
just require an .rb file that has nothing but declarations
goleldar has joined #ruby
axl_ has quit [Quit: axl_]
sdouglas has quit [Ping timeout: 265 seconds]
itadder has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
<Guest70128>
word
danshultz has joined #ruby
renklaf has joined #ruby
rickruby has quit [Ping timeout: 252 seconds]
skaflem has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
sdouglas has joined #ruby
havenwood has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Apple_iCame5 is now known as Apple_iJizz
sparrovv has joined #ruby
panchiniak has joined #ruby
shadoi1 has quit [Quit: Leaving.]
Guest70128 has quit [Quit: Leaving]
danshultz has quit [Ping timeout: 240 seconds]
bilbo_swaggins has quit [Quit: Leaving]
Apple_iJizz has quit []
jkamenik has quit [Quit: Leaving.]
<panchiniak>
Hi. I'm getting "process still alive after 90 seconds (ChildProcess::TimeoutError)" for my ruby cucumber script, when it is called from a my apache webserver. It goes perfect when called directly from the shell. Any help on that?
havenwood has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
theleft has joined #ruby
shadoi1 has joined #ruby
pr0ggie has quit [Ping timeout: 240 seconds]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
kenneth has joined #ruby
ejzena has joined #ruby
Jetchisel has quit [Ping timeout: 256 seconds]
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
CorySimmons has quit [Quit: Zzz...]
momomomomo has joined #ruby
CorySimmons has joined #ruby
<theleft>
You will have to create a new file object in write mode and pass the file object to the write method of the document object -- can someone translate this into english for me
<theleft>
i know how to load xml document text from a file in irb and parse the xml text in to a document with REXML
<theleft>
but beyond that i have no idea how to do this
pr0ggie has joined #ruby
rickruby has joined #ruby
<theleft>
obviously this is with an xml file
postmodern has joined #ruby
oneawayman has quit [Ping timeout: 244 seconds]
ejzena has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<theleft>
actually i think i will be ok. i'm gonna try just writing to a new file. seems ok
nfk has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
<shevy>
ok so we now have two different syntaxes for the same thing
<shevy>
great :P
<shevy>
it still has not solved your problem though, or?
<tcurdt>
shevy: true :)
trhodes_ has joined #ruby
Hanmac has joined #ruby
<shevy>
well
kenneth_ has joined #ruby
linduxed has joined #ruby
xxpor has joined #ruby
braincrash has joined #ruby
smathieu has joined #ruby
zrl has joined #ruby
mikepack has joined #ruby
kapowaz_ has joined #ruby
elektronaut has joined #ruby
jlast has joined #ruby
kalleth has joined #ruby
renklaf has joined #ruby
troyready has joined #ruby
oz has joined #ruby
fayimora has joined #ruby
momigi has joined #ruby
rickenharp_ has joined #ruby
mansi has joined #ruby
Thanatermesis has joined #ruby
hoelzro_ has joined #ruby
mnms_ has joined #ruby
xyon has joined #ruby
olivier_bK has joined #ruby
phrozen77 has joined #ruby
jonathanwallace has joined #ruby
Slavox|AFK has joined #ruby
gyre007___ has joined #ruby
ndrei has joined #ruby
zeropx has joined #ruby
polydius has joined #ruby
Lewix has joined #ruby
rootshift has joined #ruby
vcoinminer__ has joined #ruby
acrussell has joined #ruby
ws2k3__ has joined #ruby
Mon_Ouie has joined #ruby
nighter has joined #ruby
maloik_ has joined #ruby
jaimef has joined #ruby
chrisja has joined #ruby
dazeddev_ has joined #ruby
GaryOak__ has joined #ruby
flowerhack has joined #ruby
nateberkopec has joined #ruby
halfie_ has joined #ruby
quatron has joined #ruby
crazysim has joined #ruby
jamto11_ has joined #ruby
petey has joined #ruby
cover has joined #ruby
ec_ has joined #ruby
dawkirst has joined #ruby
uxp has joined #ruby
vjt has joined #ruby
robmozart has joined #ruby
mikecmpbll has joined #ruby
23LAAONJ1 has joined #ruby
LBRapid has joined #ruby
tris- has joined #ruby
asuka has joined #ruby
mr_red has joined #ruby
phantasm66 has joined #ruby
charliesome has joined #ruby
npearson has joined #ruby
f0ster has joined #ruby
alol has joined #ruby
Mongey-away has joined #ruby
Pricey has joined #ruby
alexju has joined #ruby
weaksauce has joined #ruby
yxhuvud has joined #ruby
dnyy has joined #ruby
ceej has joined #ruby
yosafbridge has joined #ruby
Billy2 has joined #ruby
caveat- has joined #ruby
JohnBat26 has joined #ruby
devdazed has joined #ruby
Muz has joined #ruby
multi_io has joined #ruby
v0n has joined #ruby
RubyPanther has joined #ruby
Elico has joined #ruby
vt102 has joined #ruby
sputnik13 has joined #ruby
monsieurp has joined #ruby
`ph8 has joined #ruby
kenndel_ has joined #ruby
Asher has joined #ruby
micah` has joined #ruby
UForgotten has joined #ruby
nhmood has joined #ruby
dev___ has joined #ruby
23LAAKZHW has joined #ruby
zeroXten has joined #ruby
yo61 has joined #ruby
adambeynon has joined #ruby
jokke has joined #ruby
ada2358_ has joined #ruby
colour has joined #ruby
malcolmva has joined #ruby
Guest97036 has joined #ruby
go|dfish has joined #ruby
Nyyx has joined #ruby
Norrin has joined #ruby
niv has joined #ruby
charles81 has joined #ruby
hanikazmi has joined #ruby
gsvolt has joined #ruby
Freijo has joined #ruby
lectrick_ has joined #ruby
FDj has joined #ruby
Gate has joined #ruby
Guest60001 has joined #ruby
weeb1e has joined #ruby
sawtooth has joined #ruby
Davedo has joined #ruby
benatkin has joined #ruby
d-snp has joined #ruby
existensil has joined #ruby
PhilK has joined #ruby
rurban__ has joined #ruby
dandrade_ has joined #ruby
lepht has joined #ruby
juni0r has joined #ruby
ggherdov_ has joined #ruby
iml has joined #ruby
michaelchum has joined #ruby
wykydtron has joined #ruby
kloeri has joined #ruby
brandon__ has joined #ruby
TripleDES has joined #ruby
Guest85414______ has joined #ruby
nuck has joined #ruby
cjk101010 has joined #ruby
mtlatif__ has joined #ruby
jrunning____ has joined #ruby
awarner has joined #ruby
Soulcutter has joined #ruby
mroth has joined #ruby
ji0n has joined #ruby
jinie_ has joined #ruby
soahccc has joined #ruby
ddd has joined #ruby
DylanJ has joined #ruby
zellio has joined #ruby
tommyblu` has joined #ruby
aboudreault has joined #ruby
bauruine has joined #ruby
Authenticator has joined #ruby
idoru has joined #ruby
shaileshg has joined #ruby
SegFaultAX has joined #ruby
vaicine has joined #ruby
<shevy>
then something else must happen to conclude that "site" is not known despite you having defined it before
shaileshg has joined #ruby
lele has joined #ruby
machty_ has joined #ruby
<tcurdt>
I just cannot see how
kobain has quit [Ping timeout: 252 seconds]
kenneth has quit [Ping timeout: 248 seconds]
culturelabs_ is now known as culturelabs
hobodave has quit [Read error: Operation timed out]
eka has joined #ruby
<shevy>
but plain ruby code works fine
diegoviola has quit [Quit: WeeChat 0.4.3]
ec_ has quit [Max SendQ exceeded]
caveat- has quit [Max SendQ exceeded]
halfie_ has quit [Changing host]
halfie_ has joined #ruby
<shevy>
so it must be part of that class, or a superclass of it
joelroa has joined #ruby
MrJoshua has joined #ruby
Jakee`__ has joined #ruby
halfie_ is now known as halfie
flagg0204 has joined #ruby
panchiniak has quit [Quit: Leaving]
machty_ is now known as machty
<shinobi_one>
drawing a blank trying to explain a cool way to a friend of using blocks in ruby without him saying "why don't you just write a method for that", anyone have a decent example? haha
jimmyy has quit []
<toretore>
each
caveat- has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
gyre007___ is now known as gyre007__
gwb3 has joined #ruby
kevind has joined #ruby
<shinobi_one>
he comes from python so he'll just say why not use `for foo in bar` and iterate that way
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_HolyCow has joined #ruby
kobain has joined #ruby
txdv has joined #ruby
bogeyd6 has joined #ruby
Mongey-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mongey has joined #ruby
ferr has quit [Quit: Leaving.]
ec has joined #ruby
kaspergr_ has quit [Ping timeout: 252 seconds]
y_gick has joined #ruby
<shevy>
shinobi_one well
<shevy>
shinobi_one blocks are optional
vcoinminer__ is now known as vcoinminer_
<shevy>
shinobi_one you can use a method, sure, but you can also ON TOP OF THAT use blocks
Kamilion has joined #ruby
matchaw has joined #ruby
mattmcclure has joined #ruby
<shinobi_one>
^ that's what i was trying to explain, but couldn't come up with a sexy example
phantomtiger has quit [Quit: phantomtiger]
segmond has joined #ruby
<shevy>
well ruby offers a lot but you don't always need it
Beoran has joined #ruby
<shevy>
like @@foo
zaargy has joined #ruby
npearson has quit [Remote host closed the connection]
<shevy>
it's a different philosophy to python
xaq has joined #ruby
froy has joined #ruby
gneral has joined #ruby
<shevy>
there was a cool quote from a python project, let me find it and give it to your friend:
<shevy>
> One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.?
<shinobi_one>
shevy: what is your point about @@? class variables?
<shevy>
> Things have improved in recent releases, but this can still be frustrating as in Python there should ideally be one right way to do something.
heftig has quit [Quit: Quitting]
Xiti` has joined #ruby
CpuID2 has joined #ruby
S0da has joined #ruby
<shevy>
> However, this can also be a real benefit because it gives you lots of flexibility and control over the libraries.
freezey has quit [Remote host closed the connection]
heftig has joined #ruby
<shevy>
so here you have a team of python hackers acknowledging that flexibility is a good thing
<shevy>
shinobi_one, dunno, I think @@ are super useless
alvaro_o has joined #ruby
philcrissman has joined #ruby
<shinobi_one>
as in class variables are super useless? or the syntax?
bbloom has joined #ruby
schbetsy has left #ruby [#ruby]
<shevy>
both!
<shinobi_one>
huh
<shevy>
shinobi_one can you give a necessary example of where they are absolutely required?
<shinobi_one>
let's see
<shevy>
shinobi_one a good example for blocks is something like: File.new {}
yano has joined #ruby
IceDragon has joined #ruby
<shevy>
I think in python you may have to manually call .close()
<shevy>
but I am not absolutely sure
<shinobi_one>
shevy: python has `with open("filename.txt", "w") as f:`
ebetancourt has joined #ruby
<shinobi_one>
where it intelligently closes
koell has quit [Ping timeout: 265 seconds]
<shevy>
what the ... is "with"?
Tamae has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
agjacome has joined #ruby
visof has joined #ruby
einarj has quit [Remote host closed the connection]
<shinobi_one>
It's not uncommon I guess in language grammar description
mansi has quit [Remote host closed the connection]
<shevy>
aha ok
<shevy>
I was wondering
<shevy>
it is ugly as hell
mansi has joined #ruby
sdouglas has joined #ruby
aspires has joined #ruby
randomnick_ has joined #ruby
yubrew has joined #ruby
mansi_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
centrx has joined #ruby
<shinobi_one>
I was going to look up some Rails source of block usage when defining methods, but the darn githubs appear to be slow on the internets today
<shevy>
ewwww
<shevy>
rails source
centrx is now known as Guest68835
<shinobi_one>
haha
<shinobi_one>
community driven code ftw?
Guest68835 is now known as cntrx
<Soulcutter>
why look in rails for how to use blocks?
<cntrx>
shinobi_one, Some people are allergic to Rails.
mansi_ has quit [Remote host closed the connection]
<shinobi_one>
I know that.
<shevy>
shinobi_one is it community driven?
<Soulcutter>
def foo(&block) # enjoy :)
<shinobi_one>
Soulcutter: I wasn't looking for how to use blocks.. I was looking for a real world sexy example of them being used.
mansi_ has joined #ruby
<shinobi_one>
Because I'm tired and drawing a blank on a good example.
<shevy>
File.new {}
rsahae has quit [Quit: rsahae]
<shinobi_one>
That wouldn't have my friend saying "explicit is better than implicit"
<shevy>
That is a silly statement to make
<shevy>
as equally silly as it were to say "implicit is better than explicit"
<shinobi_one>
shevy: Do you know any Python programmers?
<Soulcutter>
"orange is better than kittens"
<shevy>
when you want to be terse in your code, being succinct is a good thing
<shevy>
shinobi_one some random crazy ones here; one on #ruby-de who does both ruby and python
<shinobi_one>
shevy: go into your python shell and type `import this`
zeropx has quit [Remote host closed the connection]
<shevy>
the problem is that this is the way how the language is designed
<shevy>
you don't get to have alternatives
<shevy>
whatever a language designer decreed is how it is
<shinobi_one>
shevy: now tell that to a cult following
<shevy>
well python is a functional cult
<shevy>
you must declare self in every method
<shinobi_one>
in a class yes
mansi_ has quit [Read error: Connection reset by peer]
<shevy>
so of course you must say "explicit is better than implicit"
<shevy>
because there is no other way :)
mansi has joined #ruby
<shinobi_one>
it's different when it's the way you're currently living by, or the way to live by ;)
<slash_nick>
how do we know there's no other way?...is it explicitly implied?
<shevy>
I'd wish programming languages would be more easily composable
<shinobi_one>
^ it's implied explicitly
bogeyd6 has quit [Ping timeout: 252 seconds]
<shevy>
slash_nick well you get errors in a programming language if you try to do anything fancy :)
toastynerd has joined #ruby
<shevy>
print "hi python 3!"
mansi has quit [Read error: Connection reset by peer]
<shevy>
SyntaxError: invalid syntax
<shevy>
!!!
<cntrx>
Wow this Python person uses many words to say very little.
<cntrx>
How ironic
lkba has joined #ruby
<shinobi_one>
shevy: requiring parenthesis for print in python 3 only makes sense, what doesn't make sense is they didn't in python 2
<cntrx>
No one is using Python 3
<shinobi_one>
^
<cntrx>
It's been six years
mansi has joined #ruby
chris_thomson has joined #ruby
<shevy>
The summary is that the transition to python3 leaves something for him to be desired - in 2011. He wrote something new about unicode in 2014, I did not yet read it
LiohAu has quit [Quit: LiohAu]
<shevy>
shinobi_one ok why are people still using python 2
<shinobi_one>
shevy: lol i'm not trying to say python 3 is awesome
<shevy>
shinobi_one well I have had real problems with the transition myself
Sammael has joined #ruby
<shevy>
there were a few xorg libraries that required python to compile
<shevy>
and the .py scripts back then were not compatible with python 3, so I had to use python 2
<shinobi_one>
shevy: don't most linux distros come with both python 3 and python 2.7 by default now?
<shinobi_one>
ah
<shevy>
perhaps in 2014
nowthatsamatt has quit [Quit: nowthatsamatt]
<shevy>
this was in 2011 or some such
<shinobi_one>
i haven't played with 3 at all, and i don't plan to unless i have to
<shevy>
it surprised me that an xorg library used python
<shinobi_one>
which i don't forsee in my future any time soon
<shevy>
if they use python, why not perl... or ruby ...
toastynerd has quit [Remote host closed the connection]
jetblack has quit [Ping timeout: 265 seconds]
Mongey is now known as Mongey-away
<shevy>
and why was GNU autoconfigure not enough
<cntrx>
Python is kind of the successor to Perl in Linux distributions
<shinobi_one>
shevy: more people grew accustomed to using python way before ruby
<shevy>
and why did kde switch to cmake
dapz has joined #ruby
Mongey-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
<shevy>
shinobi_one that is fine but most other xorg programs/libraries did not depend on python
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<shevy>
it was some python-generator part ... let me try to find it
zachallett has joined #ruby
<shinobi_one>
shevy: which linux distro were you using that didn't come with python? lol
Mongey has joined #ruby
iliketurtles has joined #ruby
<shevy>
I had python 3
<shinobi_one>
also python was much faster than ruby back in the day
<shinobi_one>
shevy: you should have had python 2 as well
<shevy>
but I dont use python 2!
tcurdt has quit [Quit: bye bye]
<shevy>
it would be the same as forcing people back then to use ruby 1.8 or ruby 1.9.2 or some such
mikepack has quit [Read error: Connection reset by peer]
<shinobi_one>
i don't use perl so nothing on my computer should
<shevy>
hehe
<shinobi_one>
;p
<cntrx>
The Python developers basically told everyone "Don't worry about staying with Python 2"
<shevy>
unless you use dpkg
mikepack has joined #ruby
randomnick_ has quit [Remote host closed the connection]
<cntrx>
"We are going to support Python 2 for at least 8 years"
<cntrx>
So no one did
<cntrx>
Very stupid in my opinion
<shinobi_one>
"We are going to support Python 2 for at least forever, cuz well, fuck."
<cntrx>
Now maybe Python 3 will just die off
<shinobi_one>
Python 4 will be out soon
<shinobi_one>
jk
mary5030 has quit [Remote host closed the connection]
rsahae has joined #ruby
francisfish has quit [Remote host closed the connection]
rsahae has left #ruby [#ruby]
<shinobi_one>
i think a lot of people still love python because they don't expect huge changes, or a large number of them in a short amount of time, like ruby has
<shinobi_one>
what are we on ruby 2.5 already?
<shinobi_one>
;p
geopet has quit []
mary5030 has joined #ruby
<cntrx>
the Python 3 changes aren't even that big
<shinobi_one>
^ true
<cntrx>
They are just a handful of backward-incompatible changes
<cntrx>
It's moronic
<shinobi_one>
Explicit is better than implicit.
<shinobi_one>
>.>
mansi has quit [Remote host closed the connection]
<shinobi_one>
<.<
* slash_nick
upgrades his system python to python 3
<slash_nick>
WHOOPS.
<shevy>
Moronic is better than Fantastic.
<shinobi_one>
slash_nick: lol
<shevy>
shinobi_one, I like the blog entry
<shevy>
"I will use this post to show that from the pure design of the language and standard library why Python 2 the better language for dealing with text and bytes."
<shinobi_one>
Python in Pails, coming soon.
<shevy>
what is pails
<shevy>
is that like phails?
toastynerd has joined #ruby
<shinobi_one>
Who knows
<shinobi_one>
I made it up
<shevy>
Python in Penis.
<slash_nick>
shevy: there's a hole in my pale
maletor has joined #ruby
<shevy>
your pale?
zachallett has quit [Remote host closed the connection]
<slash_nick>
s/pale/pail/
<shevy>
a pale whale
<shinobi_one>
slash_nick: your pale ale?
<shevy>
lol
<shinobi_one>
my pale ale is in a pail
<shevy>
the pale whale drank stale ale
<slash_nick>
pails of pales... please
npearson has quit [Ping timeout: 252 seconds]
<shevy>
tails of tales... tease
<shinobi_one>
tales of tails 4, hot furries gone wild
<shevy>
shinobi_one sometimes I want to change my nick to python and join #python
enebo has quit [Quit: enebo]
<shevy>
but this is not allowed :(
<shinobi_one>
lol
<shinobi_one>
i join #python and hide from dash
kaspergrubbe has joined #ruby
dcfedde has quit [Remote host closed the connection]
<shinobi_one>
it's similar to hiding from Radar
<slash_nick>
The pitiful pangolin was pelted by pails of stale ale 'til his pelt turned pale
mary5030 has quit [Ping timeout: 252 seconds]
dcfedde has joined #ruby
<shinobi_one>
slash_nick: I think it's the pitfiful python
<slash_nick>
wherpsies
<shinobi_one>
Pythons on a Plane
<shinobi_one>
starring Guido
acrussell has quit [Quit: Leaving.]
malcolmva has quit [Ping timeout: 240 seconds]
rails426_ has quit [Ping timeout: 265 seconds]
terrellt has quit [Ping timeout: 240 seconds]
chrisseaton has joined #ruby
stringoO has quit [Quit: stringoO]
whatasunnyday has quit [Quit: whatasunnyday]
ktosiek has quit [Ping timeout: 252 seconds]
jobewan has quit [Remote host closed the connection]
iamjbecker has joined #ruby
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
sdouglas has quit [Remote host closed the connection]
hermanmunster has joined #ruby
sdouglas has joined #ruby
iamjbecker has quit [Remote host closed the connection]
axl_ has joined #ruby
cntrx is now known as centrx
maddddh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjbecker has joined #ruby
phantomtiger has joined #ruby
<GaryOak__>
sir is this whitespace in your carry on?
danshultz has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
mavcunha has quit [Ping timeout: 265 seconds]
<centrx>
Meaningful whitespace is dumb
vlad_starkov has quit [Remote host closed the connection]
<GaryOak__>
meaningless whitespace, even more dumb
<invinceable>
speaking of whitespace, how can i check if a variable is full of whitespace? like " "? it doesn't return true on .blank?
alexherb1 has quit [Quit: WeeChat 0.4.3-dev]
<invinceable>
note i am not interested in seeing if it has whitespace on the beginning or the end, rather to see if all of the characters are whitespace.
<Soulcutter>
invinceable: " ".strip.blank?
<centrx>
invinceable, #blank? does do that
<shinobi_one>
#blank is a String method?
Hobogrammer_ has joined #ruby
sdouglas has quit [Ping timeout: 246 seconds]
<Soulcutter>
I think it's from activesupport
<shinobi_one>
^ It is.
* Soulcutter
shruggles
lachesis has left #ruby ["Leaving"]
<shinobi_one>
invinceable: you want to know if all the characters are whitespace, and that's all?
sparrovv has joined #ruby
<invinceable>
shinobi_one: correct
<Soulcutter>
but it is true that blank? does that (just checked)
<Soulcutter>
shinobi_one: I don't know what invinceable wants here
fgo has joined #ruby
<Soulcutter>
like if he wants to detect whitespace, or ignore it
<shinobi_one>
He wants to see if all of the characters are whitespace, as stated, and as I questioned him.
cgore has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Hobogrammer has quit [Ping timeout: 265 seconds]
alexherbo2 has joined #ruby
<Soulcutter>
but ''.blank? returns true for no whitespace
<GaryOak__>
Soulcutter: blank? is an activesupport function though
<Soulcutter>
I don't know, it seems like the solution is obvious now
<Soulcutter>
' '.trim.empty? then?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shinobi_one>
no need for trim
<Soulcutter>
err strip
<shinobi_one>
or strip
<Soulcutter>
I always mess that up
claymore has quit [Quit: Leaving]
<Soulcutter>
depends on if he has activesupport, but regardless
<shinobi_one>
I'm pretty sure he's working on a Rails app.
<shevy>
" foo ".strip.tease
freezey has joined #ruby
<shinobi_one>
shevy.strip.tease!
<Soulcutter>
shevy: sometimes I like to tap it
jrhorn424 is now known as zz_jrhorn424
<shevy>
lol
<shinobi_one>
Soulcutter: before or after you strip and tease it?
<shevy>
I still have not been able to find a use case for .tap
jarred has joined #ruby
Atw has joined #ruby
mansi has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
<shinobi_one>
shevy: it has limited use cases
jimmyy has joined #ruby
cover has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]
jimmyy has quit [Max SendQ exceeded]
<Soulcutter>
shevy: I think it's to deal with some peoples' aversion to assigning variables or ending a method with a variable reference for the return value
<jarred>
I'm looking for something like Heliotrope (https://github.com/wmorgan/heliotrope) that I won't have to patch up to get it to load (it hasn't been updated in two years and uses iconv/other incompatible stuff). Any ideas?
maddddh has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
mehlah has joined #ruby
CpuID2 has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
mansi has quit [Remote host closed the connection]
CpuID2 has quit [Client Quit]
<centrx>
jarred, Look on Ruby Toolbox
danshultz has quit [Read error: Connection reset by peer]
WormDrink has joined #ruby
mansi has joined #ruby
<centrx>
jarred, I searched for [heliotrope ruby toolbox] and found a possible candidate there
<jarred>
cool, thanks
<b1nd>
If I have a map {href: 'something, title: 'else'};
<shinobi_one>
How far are you from Seattle? I'm sure there's a Ruby users group there.
Megtastique has quit []
maddddh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
<GaryOak__>
seattle.rb is where it's at, but I'm definitely too far from that
jarred has quit [Quit: Leaving.]
<xuisce>
shinobi_one: is there a Ruby users group near DC?
<xuisce>
I'd be glad to meet some fellow ruby coders
powis has quit [K-Lined]
<shinobi_one>
GaryOak__: I would probably go on meetup.com and create a group, then maybe post on the seattle one to see if anyone who is on the list or has attended would like to join you in your area