ghostpl_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
rorra has joined #ruby
beginner has quit [Quit: Leaving]
<jhass>
it should, form-urlencoded afaik
davedev2_ has quit [Ping timeout: 272 seconds]
einarj has quit [Remote host closed the connection]
juanpablo___ has joined #ruby
zorak8 has joined #ruby
Sid05 has joined #ruby
davedev24_ has joined #ruby
SOLDIERz_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
oo_ has joined #ruby
agrinb has joined #ruby
Yzguy_ has joined #ruby
mois3x has quit [Quit: mois3x]
tvon has joined #ruby
tvon has quit [Client Quit]
sngeth has joined #ruby
mois3x has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
mois3x has quit [Client Quit]
rbennacer has joined #ruby
SOLDIERz_ has quit [Ping timeout: 246 seconds]
<jhass>
morenoh149: if you just can't figure out, http://mitmproxy.org/ can help a lot to verify what's going on
VBlizzard is now known as _blizzy_
juanpablo___ has quit [Ping timeout: 245 seconds]
<jhass>
the reverse proxy mode is the easiest
silkfox has joined #ruby
bruno- has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<morenoh149>
jhass: pretty sure the params are urlencoded and delivered in the body. The other possiblity is that they are delivered as query params. Still looking into it
<jhass>
that would be unexpected, yeah
<jhass>
urlencoded in the body it should be
agrinb has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
<morenoh149>
yep that's how it works :)
deric_skibotn has joined #ruby
Ankhers has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
ki0 has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
duncannz has joined #ruby
DerisiveLogic has quit [Ping timeout: 252 seconds]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
steve-la has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beef-wellington has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
silkfox has quit [Ping timeout: 265 seconds]
Wolland_ has quit []
justin_pdx has quit [Quit: justin_pdx]
zorak8 has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
zorak8 has joined #ruby
NoNMaDDeN has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
Jiyuhen has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
<HOrangeJewce>
Hi, can I call sort on Time objects?
<HOrangeJewce>
so if I have a hash containing a set of key, value pairs where all the values are Time objects I'm wondering if I can call hash.values.sort
razieliyo has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
tvon has joined #ruby
<jhass>
!try
<helpa>
Why don't you try it and find out for yourself?
d10n-work has quit [Quit: Connection closed for inactivity]
KramerC has quit [Ping timeout: 264 seconds]
relix has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
KramerC has joined #ruby
echevemaster has quit [Remote host closed the connection]
iamninja has joined #ruby
iamninja has quit [Client Quit]
juanpaucar has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
lulzmachine has joined #ruby
sngeth has joined #ruby
krz has joined #ruby
hmsimha has quit [Read error: Connection reset by peer]
CorySimmons has joined #ruby
hmsimha has joined #ruby
apeiros__ has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
markholmes has quit [Quit: So it goes.]
sngeth has quit [Ping timeout: 246 seconds]
hmsimha has quit [Read error: Connection reset by peer]
triangles has joined #ruby
hmsimha has joined #ruby
tubuliferous has joined #ruby
triangles3 has quit [Ping timeout: 252 seconds]
juanpablo___ has joined #ruby
krisquigley has joined #ruby
adriancb has joined #ruby
hakunin has joined #ruby
The_Phoenix has joined #ruby
apeiros__ has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 255 seconds]
krisquigley has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
craigp has joined #ruby
tagrudev has joined #ruby
adriancb has quit [Ping timeout: 256 seconds]
IrishGringo has joined #ruby
yfeldblum has joined #ruby
agrinb has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
duncannz has quit [Remote host closed the connection]
wicope has joined #ruby
sinkensabe has joined #ruby
SOLDIERz_ has joined #ruby
codegate has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
armyriad has quit [Ping timeout: 252 seconds]
CorySimmons has quit [Quit: Bye!]
arup_r has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 272 seconds]
ismaelga has joined #ruby
neanderslob has quit [Remote host closed the connection]
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
arup_r has joined #ruby
lemur has quit [Remote host closed the connection]
neanderslob has joined #ruby
yfeldblu_ has joined #ruby
jenrzzz has joined #ruby
ptrrr has joined #ruby
ismaelga has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
starless has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 256 seconds]
narcan has joined #ruby
SouL_ has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
triangles2 has joined #ruby
<stoddart>
hi everybody
stoddart has left #ruby [#ruby]
anti-freeze has joined #ruby
triangles has quit [Ping timeout: 246 seconds]
Pisuke has quit [Read error: Connection reset by peer]
anarang has joined #ruby
bal has joined #ruby
neanderslob has quit [Remote host closed the connection]
<certainty>
moin
emilkarl has joined #ruby
neanderslob has joined #ruby
emilkarl has quit [Client Quit]
Dakuan has joined #ruby
<shevy>
code code code
sinkensabe has quit [Remote host closed the connection]
<certainty>
i wish i could
sinkensabe has joined #ruby
Willd has left #ruby [#ruby]
Hirzu_ has joined #ruby
bronson has quit [Remote host closed the connection]
<flughafen>
sup guys
oo_ has quit [Remote host closed the connection]
agrinb has joined #ruby
wottam has joined #ruby
wottam has quit [Client Quit]
IrishGringo has quit [Ping timeout: 265 seconds]
triangles3 has joined #ruby
foooobear has joined #ruby
brandly has joined #ruby
<certainty>
yow flughafen
<flughafen>
cowabunga dudes
ramfjord has joined #ruby
Guest24 is now known as lele
Macaveli has joined #ruby
Hirzu has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
<certainty>
damn looking at my agenda doesn't make me happy
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
triangles2 has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 245 seconds]
MyMind has joined #ruby
oo_ has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
craigp has quit [Remote host closed the connection]
pentanol has quit [Quit: leaving]
stylo has joined #ruby
<shevy>
certainty quit man
stylo_ has quit [Ping timeout: 240 seconds]
<certainty>
shevy: well i probably will some day
ghr has quit [Ping timeout: 252 seconds]
<shevy>
but with drama
<shevy>
eat some onions so you have tears in your eyes before talking
hs366 has joined #ruby
craigp has joined #ruby
<certainty>
shevy: hah
emilkarl has joined #ruby
* flughafen
is going to be writing a lot more python
* certainty
wants to be writing alot more haskell, but i wont. That makes me sad
armyriad has joined #ruby
* flughafen
thinks it's funny you mentioned haskell, as I discovered this weekend how much cabal sucks
<certainty>
flughafen: heh, cabal hell
tchebb has quit [Ping timeout: 255 seconds]
<flughafen>
certainty: i use xmonad
<certainty>
on nixos haskell gets more fun
amundj has joined #ruby
<certainty>
flughafen: me too
tchebb has joined #ruby
<flughafen>
but due to cabal hell i'll be switching to i3
bim has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
<certainty>
flughafen: i've never had problems with xmonad i must admit. I don't build it myself though
yfeldblu_ has joined #ruby
Dakuan has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
<flughafen>
certainty: well, you have to build it yourself unless you're not using any kind of config file?
hmsimha has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
hmsimha has joined #ruby
epistrephein has joined #ruby
<certainty>
flughafen: i meant i don't build the dependencies with cabal. I compile my xmonad conf and use the xmonad components within it of course. I don't manage that with cabal. i just use xmonad --recompile if i change things
<flughafen>
ah
<flughafen>
right
<flughafen>
so do i, but i still manged the dependencies with cabal
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
<flughafen>
i think it's changed a little bit but previously the opensuse xmonad/haskel repos were weird, and out of date
bim has quit [Ping timeout: 245 seconds]
<flughafen>
so i used cabal which worked fine to first install things
havenwood has quit [Remote host closed the connection]
relix has joined #ruby
<flughafen>
but all of a sudden i can't --recompile (i haven't touched cabal since I installed it)
<flughafen>
then i tried to update it so i could do it, and now it's in such a crappy place i'm going to give up on it
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty>
flughafen: hmm that's a shame. you should just fix it :)
<shevy>
but my eyes seem to have it easier with a dark background
beef-wellington has joined #ruby
<flughafen>
but, i guess the saying goes once you go black... you save on energy costs.
<shevy>
lol
<shevy>
you save even more without a computer
craigp has joined #ruby
<ponga>
shevy: i also find dark background way more comfortable for my eyes, its universal?
jeromelanteri has quit [Ping timeout: 252 seconds]
<ponga>
i hate websites with white background
lulzmachine has quit [Quit: lulzmachine]
blackmesa has joined #ruby
apeiros_ has joined #ruby
<certainty>
dark backgrounds are definitely better for your eyes if you happen to look at them alot
<gr33n7007h>
flughafen: whats that font in vim?
ramfjord has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 255 seconds]
<flughafen>
ummmmmm
craigp has quit [Ping timeout: 252 seconds]
<flughafen>
it's either envycoder, terminux, or dejavu, or montecarlo
<certainty>
did you try source code pro?
NoNMaDDeN has joined #ruby
martinbmadsen has joined #ruby
elfuego has quit [Quit: elfuego]
<flughafen>
no
rhg135 is now known as rhg135|zzz
<flughafen>
do you use it/
ki0 has joined #ruby
ki0_ has joined #ruby
einarj has joined #ruby
<gr33n7007h>
flughafen: cheers, it was terminuz
<flughafen>
terminus*
<flughafen>
yeah
<certainty>
flughafen: yes. i'm happy with it. probably the best font i've used so far
martinbmadsen has quit [Ping timeout: 255 seconds]
<flughafen>
it's in the opensuse repo weirdly
NoNMaDDeN has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ki0 has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
techsethi has joined #ruby
tmtwd has quit [Remote host closed the connection]
danjordan has joined #ruby
agrinb has joined #ruby
dumdedum has joined #ruby
jeromelanteri has joined #ruby
terlar has joined #ruby
craigp has joined #ruby
sandelius has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
strixd has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
juanpaucar has joined #ruby
bronson has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
ghr has joined #ruby
spiderbyte has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
triangles2 has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
livathinos has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
juanpaucar has quit [Ping timeout: 264 seconds]
thebastl has joined #ruby
gr33n7007h has quit [Quit: WeeChat 0.3.8]
thebastl has quit [Remote host closed the connection]
triangles3 has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
krisquigley has joined #ruby
jenrzzz has joined #ruby
selu has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
juanpablo___ has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Remote host closed the connection]
stylo has quit [Quit: ChatZilla 0.9.91-rdmsoft [XULRunner 32.0.3/20140923175406]]
krisquigley has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
varunwachaspati has joined #ruby
arup_r has quit [Remote host closed the connection]
isoxtb has joined #ruby
Takle has joined #ruby
gr33n7007h has joined #ruby
jenrzzz has joined #ruby
mikecmpbll has quit [Quit: ciao.]
AlexRussia has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 265 seconds]
nii2361 has quit [Ping timeout: 245 seconds]
DouweM has joined #ruby
jonr22 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Cust0sL1men has joined #ruby
iteratorP has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 256 seconds]
djellemah has joined #ruby
iteratorP has joined #ruby
msgodf has joined #ruby
<undeadaedra>
Hello
DerisiveLogic has quit [Ping timeout: 264 seconds]
sevenseacat has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<SebastianThorn>
im building a class where i have alot of methods, should i split these into files? Most methods comes in sets of 3 or 4 (get/set/add/delete).
<apeiros_>
SebastianThorn: no
<apeiros_>
SebastianThorn: keep classes in one file. but maybe your class has an identity crisis and does too much - i.e. maybe you should split your class up in more classes
<SebastianThorn>
apeiros_: ok
martinbmadsen has joined #ruby
<SebastianThorn>
the methods are API-calls, a total of something about 5000 of them, im not planning on impelemting all of them. But i would like to easely extend for when i need to
ghostpl_ has joined #ruby
<jhass>
sounds like something I'd generate
<apeiros_>
sounds like something I'd do dynamically
arup_r has joined #ruby
<SebastianThorn>
for starters i dont nee many of them, and i had some trouble generating
<SebastianThorn>
ok
ghr has joined #ruby
<apeiros_>
5000 methods certainly is too much for a class
<apeiros_>
above 50 is usually an indicator that your class does too much
<SebastianThorn>
apeiros_: ok
<apeiros_>
you cross that threshold by a factor 100 :)
<undeadaedra>
what, it’s not the Ruby way to put a lot of methods in a class ? :p
<apeiros_>
undeadaedra: no, it's not. even if some core classes are huge.
Zai00 has joined #ruby
<SebastianThorn>
well, then ill look more at generating the classes from the xsd's :) thanks
<apeiros_>
SOAP?
Dakuan has joined #ruby
agrinb has joined #ruby
<apeiros_>
there are libraries which can work with wsdl, afaik
martinbmadsen has quit [Ping timeout: 246 seconds]
<SebastianThorn>
yes
<jhass>
savon seems most popular there iirc
<SebastianThorn>
well, then wsdl only has 4 operations, only one is used.
<apeiros_>
you mean the wsdl doesn't describe the API?
<SebastianThorn>
in this operation, another xml-file is encapuled
<jhass>
here's one for you to look at, not too exciting I know
lkba has quit [Ping timeout: 256 seconds]
vivekananda has joined #ruby
<jhass>
like with the regular class of an object, you can add methods to it, since no two objects share the same singleton class, those methods are unique to that object
arup_r has quit [Ping timeout: 245 seconds]
<undeadaedra>
So all strings have one singleton string, but their own, right?
<jhass>
all objects really
jenrzzz has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 272 seconds]
<livcd>
jhass: sorry was busy...i know just "the basics"
<jhass>
maybe somebody else should restate what I just said, looks like I didn't express that well or something
* wasamasa
doesn't know about the perlisms in ruby either
<gurnoorinder>
@jhass thanks.
ChoiKyuSang has quit [Ping timeout: 245 seconds]
<gurnoorinder>
i think i got it
<gregf_>
gurnoorinder: all that jhass said ;). unshift adds the path to the start of the path(dunno why, as how did it manage to find the current script :/).
LekeFly has joined #ruby
<gurnoorinder>
alright
blackmesa has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<jhass>
gregf_: __FILE__ just holds it, or since 1.9.3 is EOL we can start using __dir__ now
<gregf_>
have you worked on any other language? java/c#, perl, python
livathin_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
Dr3amc0d3r is now known as dr3amc0d3r
bim has quit [Remote host closed the connection]
dr3amc0d3r is now known as Dr3amc0d3r
bronson has joined #ruby
juanpaucar has joined #ruby
senayar has quit [Remote host closed the connection]
bim has joined #ruby
plashchynski has joined #ruby
<gurnoorinder>
I have a small question:
<gurnoorinder>
before moving on to rails how much ruby expertise should one have
<undeadaedra>
I’d say it depends on how far on your rails use you want to go
<undeadaedra>
You can have things done with basic knowledge of Ruby, as Rails already does all the magic
<undeadaedra>
But you’ll be limited when you’ll want to drill down even a bit when doing more advanced, not planned by Rails things
juanpaucar has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 240 seconds]
a5i has joined #ruby
<jhass>
that said I see people using rails without a clue about what's Ruby and what's Rails in what they're doing
<jhass>
so you can expand both fronts at the same time
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
basiclaser has joined #ruby
zotherstupidguy has joined #ruby
<gurnoorinder>
alright. i have done couple of tutorials already on ruby
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
<gurnoorinder>
@jhass: codecademy, lean ruby the hard way, try ruby and nor doing lynda.com's ruby essential training
<gurnoorinder>
but somehow i do not feel confident
krisquigley has joined #ruby
adriancb has joined #ruby
<jhass>
maybe you're the type of person where that feeling just won't go away, just dive in ;)
<jhass>
nobody expects anybody to start perfect
<jokester>
i'm from the same type of person
<apeiros_>
hi, I'm nobody
<gurnoorinder>
i was planning on reading a book : programming ruby
<jhass>
Hi nobody
doodlehaus has joined #ruby
<undeadaedra>
Hi nobody
<jokester>
yes, that's a fine book
<jhass>
gurnoorinder: did you do any of your own project ideas in ruby yet? wrote any scripts?
<jokester>
it's also fine if you want to write sth before finishes the book
plashchynski has quit [Quit: plashchynski]
bronson has joined #ruby
<livcd>
what are the cases when to use super ? from what i understand super is used to call a superclass of a current class
<livcd>
basically...where/when would i want to use it ?
avril14th has joined #ruby
LekeFly has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
juanpablo___ has quit [Ping timeout: 272 seconds]
<jhass>
livcd: when you overwrite a method in a child class and still need behavior from the original in the parent
krisquigley has quit [Ping timeout: 244 seconds]
<livcd>
ok fair enough
<gurnoorinder>
@jhass: not the projects but i have practiced lots of scripts
adriancb has quit [Ping timeout: 256 seconds]
<jhass>
livcd: or in other words, now that you know what it does, you'll probably notice when you need it, don't worry too much
<jhass>
gurnoorinder: then it's time to stop reading and diving into a project you'd like to do
<gurnoorinder>
okay.
<jhass>
I think you got enough of the basics to learn what's missing on demand
<gurnoorinder>
suggest any sample project.
<workmad3>
livcd: also be aware that 'super' and 'super()' are very different
<gurnoorinder>
that i can do
<jhass>
nothing on your wishlist?
<gurnoorinder>
i have few for ruby on rails. nothing for only ruby to be honest
varunwachaspati has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
<jhass>
nothing you do on a regular basis that you could (partly) automate using Ruby?
<livcd>
workmad3: what's the difference ?
<gurnoorinder>
alright. got it.
<jhass>
gurnoorinder: well, I already said it's okay to dive into rails at this point ;)
<gurnoorinder>
that's actually a very nice idea.
<workmad3>
livcd: 'super' calls the superclass method with the original arguments, 'super()' calls it with no arguments
<gurnoorinder>
alright Jhass. thanks mate.
<livcd>
workmad3: i am retard i just did not thought about it thoroughly :-)
bronson has quit [Ping timeout: 244 seconds]
<livcd>
how obvious
<jhass>
livcd: I wouldn't say it's obvious actually
<workmad3>
livcd: it's obvious... except that it's completely not obvious considering that it's contrary to how ruby normally treats methods
<workmad3>
livcd: congratulations on falling victim to hindsight bias ;)
<livcd>
jhass: yes but it just poped on my mind right now that i have actually read about it before
<apeiros_>
workmad3, livcd: note that even super() still passes on blocks
<livcd>
going for lunch :-)
<apeiros_>
if you also want to suppress that, you need super(&nil)
<livcd>
thankgs guys you are awsome
<workmad3>
apeiros_: how fun :)
<apeiros_>
and yes, totally unobvious :-/
<apeiros_>
I'd prefer to have an `arguments` keyword à la JS
<certainty>
apeiros_: i had fun with that one
<apeiros_>
certainty: yeah, me too. cost me ~30min of my life. that sucker.
<workmad3>
heh
<certainty>
apeiros_: i guess it was more in my case. i suspected the error somewhere else.
<workmad3>
apeiros_: oh, I also recall that if you do 'def foo(&blk); blk = proc{something_else}; super; end' then it calls the superclass with the original block, not your reassigned one
<apeiros_>
certainty: I'm a blitzdebugger ;-)
<workmad3>
super - breaking people's minds since 0.1
<jhass>
eh well, blk really is just a local variable at that point, nothing special about it
<workmad3>
jhass: reassigning any other parameter passes on the new value
<apeiros_>
hoh! I need to put that on my business card.
<apeiros_>
"hi. I'm XY, blitzdebugger."
<jhass>
workmad3: really? ugh, that's where it's unexpected for me :D
<certainty>
apeiros_: hehe, nice skill
<workmad3>
jhass: yeah... you expect one or the other... not both :D
Takle has joined #ruby
<jhass>
I'll just put super on my list of banned keywords
hectortrope has joined #ruby
<jhass>
Module#super_method here I come!
<workmad3>
jhass: I'll use it... but only if I'm wrapping a method up and keeping the same interface
<zotherstupidguy>
hectortrope, as a noob you need to understand the difference between the application UI(user interface) and the application logic, interface can be css and javascript magic or desktop C++ lib. but logic is just simply code.
knut has joined #ruby
<hectortrope_>
hey zother r u insulting me?
<zotherstupidguy>
so when you ask something like chess online app, you are mixing a lot in one sentence
knut is now known as Guest22920
<zotherstupidguy>
hectortrope: no no no no, my apologies
Guest22920 is now known as knutmithut_
SOLDIERz__ has quit [Quit: Be back later ...]
<zotherstupidguy>
i am just saying that to make it clear
<hectortrope_>
zother I am not botherd about UI I am othered about backend
<zotherstupidguy>
friendly person here!
<hectortrope_>
ok
hectortrope_ has left #ruby [#ruby]
<jhass>
zotherstupidguy: just ban noob from your list of valid words ;)
agrinb has joined #ruby
hectortrope has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 245 seconds]
<knutmithut_>
hey, is there any existing scheduler, that delays the queued jobs when pause? e.g. rufus-scheduler saves fixed timestamps for his jobs and when resumed executes all jobs that are overdue
<zotherstupidguy>
great, the backend is usually important and easy to do, best to hack it first then try to introduce some test-driven development
<hanmac1>
it also might do a difference if you only connect two users between an api or if you try also to add AI enemies
<zotherstupidguy>
jhass: got it :)
senayar has quit [Read error: Connection reset by peer]
hectortrope has joined #ruby
<zotherstupidguy>
hectortrope: you might like to check codeschool videos for ruby
<hectortrope>
any link please?
<zotherstupidguy>
and try to think about a simpler game, chess isn't really that simple unless you find a ruby chess engine!
<hectortrope>
zother there are so many opensource engines
<hanmac1>
zotherstupidguy: apropos backend logic, i for my next project try to make an "engine" for RealTimeStategyGames like AgeOfEmpires for Ruby ...
<zotherstupidguy>
hanmac1 ?
<hectortrope>
hanmac1 I have great ideas for great developers but I am poor developer
<jhass>
hectortrope: start with one anyway
<zotherstupidguy>
hectortrope, the most important lesson is to tackle small problems, or you will get no where!
<zotherstupidguy>
its a lot harder than you think :)
<avril14th>
does anyone know which method RubyMine sends to an object to inspect its value in the debugger (hint: it's not #inspect)
<jhass>
hectortrope: success is not important, a project that motivates you is
<hectortrope>
Yes
agrinb has quit [Ping timeout: 256 seconds]
<hectortrope>
Thanks guys
<zotherstupidguy>
ur welcome, thats what irc is for :)
tvon has quit [Quit: leaving]
<hectortrope>
Right now I am working somewhere with other irelavant field, I need to plan in such a way build my own website to earn like chess or someother
MrSamuel has quit [Ping timeout: 240 seconds]
<zotherstupidguy>
complete a video series for ruby and try to make it solid (no UI or anything, just code and tests) then start from there
reinaldob has joined #ruby
rodfersou has joined #ruby
phutchins has joined #ruby
mhib has joined #ruby
<hectortrope>
gone? ok bye
MrSamuel has joined #ruby
Zai00 has quit [Quit: Zai00]
lolmaus has quit [Remote host closed the connection]
workmad3 has quit [Quit: Lost terminal]
lolmaus has joined #ruby
oo__ has quit [Remote host closed the connection]
bruno- has joined #ruby
sdothum has joined #ruby
DouweM has joined #ruby
Dakuan has quit [Remote host closed the connection]
Dakuan has joined #ruby
bayed has joined #ruby
RegulationD has joined #ruby
lkba_ has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
avril14th has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
Dakuan has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
MrSamuel has quit [Ping timeout: 256 seconds]
<zotherstupidguy>
hectortrope ?
lkba has quit [Ping timeout: 264 seconds]
isoxtb has quit [Remote host closed the connection]
MrSamuel has joined #ruby
rodfersou has quit [Remote host closed the connection]
workmad3 has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
avril14th has joined #ruby
d10n-work has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
oo_ has joined #ruby
bronson has joined #ruby
oo_ has quit [Remote host closed the connection]
rkgudboy has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
oo_ has joined #ruby
sigurding has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 252 seconds]
rkgudboy has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
MrSamuel has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
rkgudboy has quit [Read error: Connection reset by peer]
davedev24_ has quit [Remote host closed the connection]
MrSamuel has joined #ruby
MasterNayru has joined #ruby
lordkryss has joined #ruby
gurnoorinder has left #ruby [#ruby]
MasterNayru has quit [Client Quit]
beef-wellington has joined #ruby
MasterNayru has joined #ruby
ldnunes has joined #ruby
davedev24_ has joined #ruby
norc has joined #ruby
Soda has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
banister has joined #ruby
willharrison has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<norc>
Hi. Is the order of key/value pairs in a Hash guaranteed to be in insertion order (or specification order if I initialize using {a: 1, b: 2} in Ruby 2.2.1 ?
SouL_ has quit [Read error: Connection reset by peer]
SouL has joined #ruby
SouL has quit [Read error: Connection reset by peer]
<hanmac1>
norc: yes
<certainty>
norc: yes
<workmad3>
norc: yes, but if you rely on it you're mis-using a hash
<norc>
Alright thank you.
beef-wellington has quit [Ping timeout: 256 seconds]
MrSamuel has quit [Ping timeout: 255 seconds]
jeromelanteri has quit [Ping timeout: 246 seconds]
hmnhf has joined #ruby
Azure has joined #ruby
Akuma has joined #ruby
brb3 has joined #ruby
elfuego has quit [Quit: elfuego]
rsavage has joined #ruby
<norc>
workmad3: Im wondering whether I would ask that question if I didnt want to rely on it. :D
MrSamuel has joined #ruby
oo_ has quit [Remote host closed the connection]
<workmad3>
norc: it could be an intellectual curiosity
<jhass>
norc: we're just informing you that it's a code smell ;)
User458764 has joined #ruby
<norc>
workmad3: In a difference place I might get axed for asking questions about the underlying implementation, stoned for not respecting the blind faith coders put on their specification. ;)
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectortrope has left #ruby [#ruby]
techsethi has quit [Quit: techsethi]
NoNMaDDeN has quit [Ping timeout: 252 seconds]
slackbotgz1 has quit [Remote host closed the connection]
MrSamuel has quit [Ping timeout: 264 seconds]
slackbotgz has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
techsethi_ has joined #ruby
neanderslob has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 245 seconds]
dropp has joined #ruby
<dropp>
hey
MrSamuel has joined #ruby
<jhass>
hi
SouL has joined #ruby
jespada has joined #ruby
fabrice31 has joined #ruby
codecop has joined #ruby
agrinb has joined #ruby
Rephiax has quit [Ping timeout: 244 seconds]
withnale has quit [Ping timeout: 246 seconds]
livathinos has joined #ruby
Takle has quit [Remote host closed the connection]
_tpavel has joined #ruby
jimms has quit [Remote host closed the connection]
withnale has joined #ruby
MrSamuel has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 244 seconds]
krz has joined #ruby
rkgudboy has joined #ruby
<livcd>
jhass: do you have any resource for useful patterns in ruby/rails?
<jhass>
no
bim has quit [Remote host closed the connection]
<jhass>
I think of patterns as something to recognize and to have names for things to talk to about with other developers
bim has joined #ruby
<workmad3>
jhass: do you have any guns I can point at my foot and fire repeatedly?
<livcd>
okay :-)
<jhass>
not as pre-made solutions to problems
<livcd>
workmad3: yes that's what i wanted to ask for :D
<jhass>
workmad3: I think I can get some
jokester has quit [Quit: nirvana]
<workmad3>
\o/
<jhass>
workmad3: just involves an airplane ticket to the right region of our beloved planet
juanpaucar has joined #ruby
_ixti_ has quit [Ping timeout: 240 seconds]
fenak has joined #ruby
aclearman037 has joined #ruby
<jhass>
livcd: so IMO patterns help to maybe go the last step, but should emerge naturally
jokester has joined #ruby
Takle has joined #ruby
yfeldblu_ has quit [Ping timeout: 265 seconds]
_tpavel has quit [Ping timeout: 246 seconds]
bim has quit [Remote host closed the connection]
<workmad3>
jhass: I find they can also be useful to short-circuit a design thought-process by allowing me to recognise general shapes of problems and solutions without having previously encountered that situation myself
lnx has joined #ruby
<workmad3>
jhass: but I agree that they're not fully-formed solutions, and that their use requires care
dropp_ has joined #ruby
iyan has left #ruby [#ruby]
<certainty>
also they make nice wall paper for the office
slackbotgz has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
<jhass>
well, that's sort of in my definition of "last step", what I was getting at is to approach them as something you recognize, not actively seek to use
MrSamuel has joined #ruby
slackbotgz has joined #ruby
_ixti_ has joined #ruby
<certainty>
btw. if i'm lookin for patterns that solve my problem, am i doing pattern matching to find the correct one?
<workmad3>
(e.g. in order to prime that aspect, I'll read through something a pattern catalogue and read the descriptions, but not put any effort into memorising them, so that I prime the pattern matching aspects of my brain without consciously memorising all the details)
fabrice31 has joined #ruby
AnxiousGarlic has joined #ruby
<workmad3>
*something like a
ev_ has quit [Ping timeout: 250 seconds]
<jhass>
yeah exactly
juanpaucar has quit [Ping timeout: 255 seconds]
doodleha_ has joined #ruby
dropp has quit [Ping timeout: 246 seconds]
<certainty>
also two devs showing their knowledge on design patterns, have a pattern match?
AnxiousGarlic has quit [Read error: Connection reset by peer]
<workmad3>
certainty: that's more the two devs using the patterns as a pattern language to invoke shared understanding (sometimes referred to as 'communication') ;)
bim has joined #ruby
<workmad3>
certainty: although there probably is a fair amount of pattern matching involved in any form of shared understanding
anarang has quit [Quit: Leaving]
anarang has joined #ruby
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
tvw has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
krisquigley has joined #ruby
bim has joined #ruby
Zai00 has joined #ruby
marr has joined #ruby
bruno- has joined #ruby
Sid05 has joined #ruby
sngeth has joined #ruby
doodleha_ has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 255 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
MasterNayru_ has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
davidhq has joined #ruby
startupality has joined #ruby
gfawcettpq has joined #ruby
MasterNayru has quit [Ping timeout: 256 seconds]
MrSamuel has quit [Quit: MrSamuel]
bruno- has quit [Ping timeout: 240 seconds]
_tpavel has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
<hs366>
how do i have a auto-completion : suppose i want to get read some argument and it's an option to a command
<apeiros_>
hs366: autocompletion where? on the command line within your app?
nii2361 has quit [Ping timeout: 256 seconds]
aganov has quit [Remote host closed the connection]
zenith_ has quit [Remote host closed the connection]
sngeth has joined #ruby
rkgudboy has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 252 seconds]
zenith_ has joined #ruby
Aswebb_ has joined #ruby
nii2361 has quit [Ping timeout: 252 seconds]
sevenseacat has joined #ruby
revoohc has joined #ruby
GambitK has joined #ruby
<a5i>
jhass, add " passenger_debug_log_file passlog.log" to the server block ?
banister has joined #ruby
banister is now known as banisterfiend
piotrj has joined #ruby
<jhass>
probably a full path
<jhass>
I don't use passenger, I'm just able to read docs
dANO_ has joined #ruby
<jhass>
a5i: and then don't forget to set a higher log level
<GambitK>
I'm getting an error(ciflib.rb:91:in `<main>': undefined method `new' for nil:NilClass (NoMethodError)) on creating an instance of a class on this code(http://pastie.org/10032868), I can't find whats wrong
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crueber has joined #ruby
<jhass>
a5i: I mean the error message
<a5i>
jhass, seems the err is
<a5i>
This web application process is being run as user 'nobody' and group 'nogroup' and must be able to access its application root directory '/root/cubaa'. However, the parent directory '/root' has wrong permissions, thereby preventing this process from accessing its application root directory. Please fix the permissions of the directory '/root' first.
<jhass>
yes
<jhass>
I see no value in restating the same thing?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
only thing I could add is that /root might not be the best place for the app after all ;)
<a5i>
where is the best place? :P
techsethi_ has quit [Quit: techsethi_]
dANO_ has quit []
knutmithut_ has quit [Ping timeout: 246 seconds]
<jhass>
something that you can safely own to nobody:nogroup (or another user you pick to run passenger as)
<jhass>
roots $HOME is not so nice for that
<jhass>
depending on your OS typical places are /var/www and /srv/http
<a5i>
/var/www/ ?
<a5i>
ah
sngeth_ has quit [Ping timeout: 250 seconds]
<a5i>
thank god this is over with
<a5i>
i hope
<apeiros_>
_INA__AN [EOFLTR] 6/12
<apeiros_>
jhass: B
chinmay_dd has joined #ruby
<jhass>
_INA__AN [EOFLTRB] 7/12
<apeiros_>
jhass: S
<jhass>
_INAS_AN [EOFLTRB] 7/12
<sevenseacat>
this is an obvious one
<jhass>
yeah
<apeiros_>
it is? =(
<jhass>
took the channel way too long, I'm disappointed
<undeadaedra>
something INAS something AN
<apeiros_>
I guess I suck at hangman
Takle has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
hmnhf has quit [Ping timeout: 250 seconds]
plashchynski has quit [Read error: Connection reset by peer]
<jhass>
apeiros_: I also think the version with A speaks nicer actually
<apeiros_>
undeadaedra: a special snow flake of a swan
<apeiros_>
jhass: funny, I think the opposite
<havenwood>
only the king eats swans!
mikepack has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<apeiros_>
shevy: mission failed. you have to start anew.
tjohnson has joined #ruby
dinhani has joined #ruby
dinhani has left #ruby [#ruby]
ojacobson_ has joined #ruby
mib_mib has joined #ruby
<shevy>
guys we can't be playing hangman here
<shevy>
people think we aren't using ruby
sinkensabe has quit [Remote host closed the connection]
<jhass>
maybe I'm a bot written in Ruby?
<apeiros_>
shevy: I bet jhass is running the game using ruby!
sinkensabe has joined #ruby
<mib_mib>
hi all - working with google docs api requires oauth2 - although the oauth 'dance' seems to require going to a URL ? Is this really necessary?
joonty has quit [Quit: joonty]
Dakuan has quit [Remote host closed the connection]
<undeadaedra>
Hangman.new.play
<jhass>
mib_mib: yes
DerisiveLogic has joined #ruby
<jhass>
you need a browser, as said as it is
larsam has quit [Ping timeout: 255 seconds]
<hs366>
>> hangman
<eval-in_>
hs366 => undefined local variable or method `hangman' for main:Object (NameError) ... (https://eval.in/301192)
<hs366>
lol
<jhass>
mib_mib: though many APIs allow tokens as a substitute, for example Githubs
<jhass>
never looked into Googles
<undeadaedra>
>> require ’hangman’
DouweM has quit [Read error: Connection reset by peer]
werelivinginthef has quit [Remote host closed the connection]
<hanmac1>
undeadaedra: N
<undeadaedra>
__N___N [E]
spiderbyte has joined #ruby
<jhass>
undeadaedra: T
spicerack has joined #ruby
spicerack has quit [Changing host]
spicerack has joined #ruby
<undeadaedra>
__N___N [ET]
<jhass>
hanmac1: mmh, I think entl works only in german though :P
zenith_ has quit [Remote host closed the connection]
bim has joined #ruby
<hanmac1>
jhass: most other languages does have N too ;P
<undeadaedra>
They do?
piotrj has quit [Read error: Connection reset by peer]
a5i has quit []
piotrj has joined #ruby
<hanmac1>
undeadaedra: A
<undeadaedra>
_AN__AN [ET]
craigp_ has joined #ruby
<jhass>
undeadaedra: S
hmnhf has joined #ruby
sandelius has joined #ruby
<undeadaedra>
_AN__AN [ETS]
sepp2k has joined #ruby
hs366 has quit [Quit: Leaving]
wm3|away has quit [Quit: Lost terminal]
jespada has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
SouL has quit [Remote host closed the connection]
davedev24_ has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
hectortrope has quit [Ping timeout: 246 seconds]
_tpavel has quit [Ping timeout: 264 seconds]
SouL has joined #ruby
<hanmac1>
undeadaedra: L
<undeadaedra>
Heh, ##hangman is registered but unused.
davedev24_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<undeadaedra>
_AN__AN [ETSL]
davedev24_ has joined #ruby
<jhass>
lol
<jhass>
undeadaedra: H
<undeadaedra>
HAN__AN [ETSL]
josephleon has joined #ruby
DerisiveLogic has quit [Ping timeout: 245 seconds]
<shevy>
now it is easy
jespada has joined #ruby
craigp_ has quit [Ping timeout: 252 seconds]
werelivinginthef has joined #ruby
christiandsg has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Quit: Leaving]
<jhass>
shevy: don't leave'em hanging then!
<apeiros_>
undeadaedra: M
<undeadaedra>
HAN_MAN [ETSL]
<apeiros_>
somehow there's not enough space to fit DY
<mib_mib>
jhass: so my app just needs to periodically update the google doc, it stores the short lived token and periodically refreshes it, it should be fine?
<jhass>
mib_mib: as said, didn't look into the google API myself. The browser is usually needed to do the initial authentication dance
OrbitalKitten has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
apeiros_ what is a handyman man
HOrangeJewce has joined #ruby
nii2361 has joined #ruby
<shevy>
we could play german hangman
gaboesquivel has quit [Remote host closed the connection]
willharrison has joined #ruby
<shevy>
got a word with 41 characters
<undeadaedra>
I already have problems with english hangman, so german one...
<shevy>
yes
<shevy>
we have accents too
<shevy>
so more choice
<undeadaedra>
Ich bin nich sicher, dass es eine gute Idee ist.
ndrei has joined #ruby
zotherstupidguy has joined #ruby
rhg135|zzz is now known as RightHoofGone
gokul has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<shevy>
then we need unusual words
<shevy>
_____
kblake has joined #ruby
<jhass>
shevy: V
josephleon has quit [Quit: Leaving...]
<shevy>
_____ [V] (1/12)
<hanmac1>
shevy: E
<shevy>
_____ [VE] (2/12)
nii2361 has quit [Ping timeout: 245 seconds]
gaboesquivel has joined #ruby
<undeadaedra>
7962624 possible letter combinations.
<undeadaedra>
shevy: A
<shevy>
_____ [VEA] (3/12)
zenith_ has joined #ruby
aclearman037 has joined #ruby
soc42 has joined #ruby
wald0 has joined #ruby
RightHoofGone is now known as rhg135
msgodf has quit [Remote host closed the connection]
rhllor has joined #ruby
michael_mbp has quit [Excess Flood]
msgodf has joined #ruby
<avril14th>
jhass is the perfect example that you don't need algos when you have cheap hands doing the loops
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephleon has joined #ruby
<shevy>
jhass has cheap hands?
<jhass>
avril14th: mh, if you say so
bim has quit [Remote host closed the connection]
* jhass
pretends to not code a hangman plugin for his IRC bot
yourwebdevguy has joined #ruby
<shevy>
I have cheap shoes!
SegFaultAX has quit [Excess Flood]
<avril14th>
some raised millions with that techniques :)
<shevy>
undeadaedra guess again before I forget the word
yourwebdevguy has quit [Max SendQ exceeded]
SegFaultAX has joined #ruby
<undeadaedra>
shevy: U?
mistermocha has quit [Remote host closed the connection]
<shevy>
damn
michael_mbp has joined #ruby
<undeadaedra>
give me the word by mp, so I can remember it for you ;)
<undeadaedra>
pm*
yourwebdevguy has joined #ruby
<shevy>
moment need to find out what to change when a match occurs
eighthbit has joined #ruby
mistermocha has joined #ruby
josephleon has quit [Client Quit]
plashchynski has quit [Ping timeout: 245 seconds]
<shevy>
__U__ [VEAU] (3/12)
<undeadaedra>
\o/
<shevy>
ARE YOU SAYING 'O'
<undeadaedra>
NO
zenith__ has joined #ruby
<shevy>
it's easy now anyway
<undeadaedra>
I let other play
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has quit [Remote host closed the connection]
<shevy>
haha
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pushpak has joined #ruby
Dakuan has joined #ruby
ixti has joined #ruby
Crazy_Atheist has quit [Ping timeout: 265 seconds]
<undeadaedra>
Let’s say S
plashchynski has joined #ruby
norc has quit [Ping timeout: 246 seconds]
<shevy>
damn
<shevy>
I don't like you anymore
zenith_ has quit [Ping timeout: 264 seconds]
<shevy>
S_U__ [VEAUS] (3/12)
jimms has joined #ruby
_maes_ has joined #ruby
Crazy_Atheist has joined #ruby
_ixti_ has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
<DefV>
shevy: H?
<shevy>
S_U__ [VEAUSH] (4/12)
hanmac1 has quit [Quit: Leaving.]
<DefV>
T?
<shevy>
S_U__ [VEAUSHT] (5/12)
baroquebobcat has joined #ruby
<shevy>
keep on DefV I like it!
<DefV>
I? O?
meschi has joined #ruby
<shevy>
hey
<shevy>
not all in one... what is next?
<undeadaedra>
Don’t hang him like that
<undeadaedra>
K
<shevy>
S_U__ [VEAUSHTK] (6/12)
bean has quit [Ping timeout: 272 seconds]
bim has joined #ruby
sngeth_ has joined #ruby
<undeadaedra>
L
ojacobson has joined #ruby
_shrine has joined #ruby
amundj has quit [Ping timeout: 265 seconds]
<shevy>
S_U__ [VEAUSHTK] (7/12)
<shevy>
oops
<shevy>
S_U__ [VEAUSHTKL] (7/12)
christiandsg has joined #ruby
_cake has quit [Ping timeout: 264 seconds]
tubbo has joined #ruby
tubbo has left #ruby ["outie 5000"]
Limix has joined #ruby
<undeadaedra>
though one, eh
paulfm has quit [Quit: Zzzzz...]
senayar has quit [Remote host closed the connection]
<apeiros_>
shevy: M
tier has quit [Remote host closed the connection]
sngeth_ has quit [Ping timeout: 244 seconds]
<shevy>
S_U__ [VEAUSHTKLM] (8/12)
tvw has joined #ruby
<undeadaedra>
D
<apeiros_>
oooh, I would have bet it was SMURF
snath has quit [Ping timeout: 250 seconds]
<shevy>
S_U__ [VEAUSHTKLMD] (9/12)
ojacobson_ has quit [Ping timeout: 264 seconds]
GaryOak_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
slap_stick has joined #ruby
<shevy>
soon over undeadaedra!
slap_stick has quit [Max SendQ exceeded]
<undeadaedra>
F
<shevy>
S_U__ [VEAUSHTKLMDF] (10/12)
<shevy>
undeadaedra one more, come on
<undeadaedra>
ok, R
triangles has joined #ruby
<shevy>
S_U__ [VEAUSHTKLMDFR] (11/12)
<shevy>
and the last undeadaedra!!!
josephleon has joined #ruby
<undeadaedra>
no, I let someone else
mloveless has joined #ruby
<SebastianThorn>
I
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shevy>
damn
<shevy>
S_UI_ [VEAUSHTKLMDFRI] (11/12)
Nahra has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<u6ydu665>
I mainly use Python and C++. That's the biggest commercial segment as well... Why is Ruby so unpopular in Europe?
slackbotgz has joined #ruby
ghr has joined #ruby
<undeadaedra>
It is?
<u6ydu665>
At least in my shithole place :P
<u6ydu665>
Where are you guys from?
<shevy>
u6ydu665 lots of people here on #ruby are from europe. Where are you from?
<shevy>
austria, vienna
phale has joined #ruby
<u6ydu665>
Poland ;_;
<u6ydu665>
We mostly code in Python
<u6ydu665>
When it comes to webdev
<u6ydu665>
lol
<shevy>
jhass, hanmac, certainty and several others are from germany
<shevy>
apeiros is from switzerland
<phale>
good grief
<u6ydu665>
What do you mean?
<u6ydu665>
;p
<shevy>
undeadaedra is from france
<undeadaedra>
Am I?
<shevy>
yeah
max96at|off is now known as max96at
piotrj has quit [Remote host closed the connection]
lyuben_ has quit [Quit: This computer has gone to sleep]
<u6ydu665>
I know how the Germans do webdev.... TYPO3 'nuff said...
<u6ydu665>
lol
<shevy>
isn't that php?
avahey has joined #ruby
<undeadaedra>
no one does PHP
<u6ydu665>
It is... And it's full of shit
riotjone_ has quit [Remote host closed the connection]
<phale>
I'm from the tropical area of America
<shevy>
well it is php after all
lyuben_ has joined #ruby
Pupeno has joined #ruby
<phale>
I was born and raised by weirdly shaped monkeys.
<undeadaedra>
'MURICA
<shevy>
phale you are from canada?
<phale>
yes
<u6ydu665>
FUCK YEAH AMERICA
<phale>
no
<u6ydu665>
lol
<phale>
i'm not from america
<undeadaedra>
non
<phale>
i dont have autism
<phale>
sorry
<u6ydu665>
phale: What do you refer to?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<phale>
nothing
<undeadaedra>
let’s be nice to americans.
bigmac has quit [Ping timeout: 246 seconds]
<u6ydu665>
Alright
<phale>
then stop boastnig
<phale>
boasting*
<u6ydu665>
Hey, I have nothing against the autistic people...
User458764 has joined #ruby
lemur has joined #ruby
<phale>
i do
mloveles_ has joined #ruby
<u6ydu665>
WTF
<u6ydu665>
Why?
<undeadaedra>
:˚
mloveless has quit [Ping timeout: 240 seconds]
<phale>
because they're annoying
deric_skibotn has joined #ruby
<u6ydu665>
Hey, there is no need for hate... Really...
bigmac has joined #ruby
<undeadaedra>
Er
<u6ydu665>
I know people who are WAY MORE annoying
<u6ydu665>
lol
<phale>
me too
<undeadaedra>
Let’s go back to the initial topic, shall we?
<phale>
right
<u6ydu665>
Sure
<phale>
as I was saying
<phale>
ruby is a highly bloated language
<havenwood>
phale: That's really uncalled for and unwelcome.
<phale>
sorry i rustled your bojangles
<u6ydu665>
How is it bloated?
<phale>
you know why
<u6ydu665>
Some facts, if you please
<phale>
there are some methods that do the same thing
<phale>
and still exist in current ruby versions
<u6ydu665>
I want to learn... Oh...
<phale>
there's no need for that though
<u6ydu665>
So, it's inconsistent...
<undeadaedra>
u6ydu665: there are many resources for that on the internet, are you looking for something in particular?
<avril14th>
is there a %x() writing that generates an array of bigdecimals?
phale has left #ruby ["Leaving"]
slap_stick has joined #ruby
hectortrope has joined #ruby
rbennacer has quit [Remote host closed the connection]
<u6ydu665>
I have done my research, really... I just want to listen to the people, who deal with the language on a daily basis...
lyuben_ has quit [Ping timeout: 265 seconds]
<undeadaedra>
It’s a nice language
werelivinginthef has quit [Remote host closed the connection]
<havenwood>
phale: Insulting or demeaning certain groups of Rubyists is malignant. We want to make people feel welcome. Keep your neurotyical-supremacist attitude to yourself.
<alphaatom>
He's gone, clearly not getting the reaction he wanted.
<DEA7TH>
i've heard that Ruby is much better than Python for a Bash replacement. Which is neat because Bash is awful if you're going to write more than one line of code at a time.
werelivinginthef has joined #ruby
<u6ydu665>
havenwood, aren't you an Aspie?
agarie has quit [Remote host closed the connection]
<undeadaedra>
DEA7TH: bash is nice for some small tasks, but really get out of control
<undeadaedra>
quickly*
jgt2 has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<undeadaedra>
u6ydu665: personally, I like the wide array of libraries and good stdlib
sngeth_ has joined #ruby
<u6ydu665>
Any good Ruby-based tools and applications?
lemur has quit [Remote host closed the connection]
nii2361 has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
<undeadaedra>
As examples or for a precise need?
hmsimha has quit [Read error: Connection reset by peer]
Limix has quit [Quit: Limix]
hmsimha has joined #ruby
<u6ydu665>
Something useful and well-known?
<u6ydu665>
I only know of the origami stuff
<u6ydu665>
For the PDF disassembly :P
<u6ydu665>
And the Ruby On Rails...
<havenwood>
u6ydu665: Prawn is a nice gem for making PDFs.
<undeadaedra>
The most known thing in Ruby is Rails, yes
<undeadaedra>
Redmine is a popular Ruby application
<jsrn>
I believe the metasploit framework for penetration testing is heavily ruby based
<u6ydu665>
Oh, I see
<jsrn>
That's pretty big
<undeadaedra>
iirc, Puppet uses ruby too
<hectortrope>
metasploit written on ruby??
<hectortrope>
really?
<hectortrope>
Puppet ruby Yes
yqt has quit [Ping timeout: 265 seconds]
<jsrn>
hectortrope: I dunno about the core, but a lot of the modules/exploits themselves are ruby
<hectortrope>
what is iirc?
<hectortrope>
ok jsrn
<undeadaedra>
homebrew, the Mac OS-package manager is in Ruby
<jsrn>
if I recall correctly
<undeadaedra>
iirc = if i remember correctly
sngeth_ has quit [Ping timeout: 246 seconds]
<undeadaedra>
iirc ;)
<shevy>
we must make an universal package manager
timonv has quit [Ping timeout: 256 seconds]
<hectortrope>
ruby and python both are great and very useful for those who use them
<hectortrope>
but all are complex compared to python and ruby
nii2361 has quit [Ping timeout: 245 seconds]
dinhani has joined #ruby
<shevy>
ruby is quite complex too
<hectortrope>
I don't think so
<wasamasa>
^
<shevy>
havenwood showed me some trick not long ago
<wasamasa>
hectortrope: write me a ruby parser then
werelivinginthef has quit [Remote host closed the connection]
<undeadaedra>
wasamasa: writing a parser is complex for all languages
<shevy>
if I could just remember it :(
<hectortrope>
wasamasa I can't but ruby is very easy like python
<wasamasa>
undeadaedra: nope
rbennacer has joined #ruby
<havenwood>
u6ydu665: Adhearsion is a nice open source telephony framework in Ruby. Puppet and Chef for devops. There are really too many popular gems to list.
<wasamasa>
undeadaedra: ever heard of brainfuck?
<wasamasa>
undeadaedra: or lisp?
<undeadaedra>
brainfuck, seriously.
agarie has joined #ruby
<wasamasa>
undeadaedra: even java is easier to parse than ruby
<wasamasa>
yes, seriously
thumpba has joined #ruby
<hectortrope>
wasama I have a problem can u solve in ruby??
werelivinginthef has joined #ruby
DouweM has quit [Quit: Leaving...]
<hectortrope>
same parsing from xml files
Eiam has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lulzmachine_ has quit [Quit: lulzmachine_]
<wasamasa>
use nokogiri
<undeadaedra>
^
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
it's fast and there's a pretty good cheatsheet for it
Eiam has quit [Remote host closed the connection]
<wasamasa>
only downside of it is that building it can become problematic
<kyle__>
hectortrope: I inherited an existing chef-install, that isn't exactly used (or at all) like chef was intended, so I'm probbably the worst possible resource. That said, the official training stuff here is good https://learn.chef.io/screencasts/chef-lab/
danjordan has quit [Quit: danjordan]
RegulationD has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 264 seconds]
tier has joined #ruby
Dakuan has joined #ruby
<hectortrope>
Thanks havenwood and kyle
<hectortrope>
is it free kyle?
wallerdev has joined #ruby
<green-big-frog>
does anyone know if I can let/make configatron read settings out of a second file?
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
<hectortrope>
I am using vagrant on windows, can I use that lab??
shredding has quit [Ping timeout: 245 seconds]
hmnhf has quit [Ping timeout: 255 seconds]
krandi has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
<hectortrope>
busy guys??
zeeraw has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
josephleon has quit [Quit: Leaving...]
olivier_bK has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
agarie has joined #ruby
plashchynski has joined #ruby
apeiros_ has joined #ruby
tier has quit [Read error: Connection reset by peer]
<jsrn>
hectortrope: Just guessing, but I don't see why not
tier has joined #ruby
replay has joined #ruby
<hectortrope>
havenwood I have a question Can we ever build a website like chesscube.com using something like roda
<hectortrope>
jsrn
GumBall has joined #ruby
<havenwood>
hectortrope: Sure. Though you'll find you need JavaScript or something that compiles to it like Opal or Coffeescript for the browser. It appears that site uses Flash/ActiveScript.
tubuliferous has joined #ruby
<hectortrope>
havenwood Yes it uses flash
joonty has quit [Quit: joonty]
GumBall has left #ruby [#ruby]
u6ydu665 has left #ruby [#ruby]
User458764 has joined #ruby
<havenwood>
<headius>
nice
shazaum has quit [Quit: Leaving]
mikepack has joined #ruby
<hectortrope>
bye guys Need to go
ki0_ has quit [Ping timeout: 250 seconds]
hectortrope has quit [Quit: Page closed]
Darryl___ has joined #ruby
milesmatthias has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
<milesmatthias>
Hi all. I integrated a rails app with a new API and I'm pretty new at abstracting that out into a gem-worthy client. Does anyone have some advice or resources on best practices/idioms for ruby api client gems?
christiandsg has joined #ruby
dcas has joined #ruby
graydot has joined #ruby
lyuben_ has joined #ruby
<jhass>
milesmatthias: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Apocalypse has quit [Ping timeout: 245 seconds]
Rarikon has quit [Ping timeout: 245 seconds]
christiandsg has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
<milesmatthias>
jhass: sure.
danman has joined #ruby
The_Phoenix has joined #ruby
<milesmatthias>
btw all, I'm cross posting this between #ruby and #rubyonrails, since it pertains to both subjects and some people may not be in both.
zotherstupidguy has quit [Ping timeout: 252 seconds]
mjuszczak has joined #ruby
<atomiccc>
milesmatthias: please don't kill me
<havenwood>
milesmatthias: What are you using as your HTTP client? Anything in particular you're wondering about or just seeking general advice?
zotherstupidguy has joined #ruby
<havenwood>
milesmatthias: It partially depends on what you're doing. A lot of folk swear by Faraday, with it's common interface to adapters and Rack middleware approach.
<milesmatthias>
havenwood: RestClient. More general advice on patterns. For example, what's the best pattern for switching between development and production endpoint/api keys within the state of the client?
<milesmatthias>
havenwood: err, not even switching, but declaring initially and then scoping.
mikepack has quit [Remote host closed the connection]
<havenwood>
frog|OFF: Typically one claims copyright in the LICENSE, then the license. You've just got the license.
JimmyNeutron has quit [Read error: Connection reset by peer]
<benlieb>
how can I ask `gem` to print out where it has installed a gem after gem install?
<havenwood>
benlieb: gem which gem-name
strixd has quit [Quit: 500]
jottr has quit [Ping timeout: 256 seconds]
<benlieb>
havenwood: that would go through the lookup chain...
<benlieb>
which may or may not be where it just installed it, right?
riotjones has joined #ruby
<havenwood>
benlieb: You are presumably using the same `gem` executable for the install and which, no?
<havenwood>
milesmatthias: looking
yqt has joined #ruby
hoylemd has joined #ruby
<hoylemd>
Hey, has anyone been able to get syntastic to use rubocop effectively?
bigmac has joined #ruby
Cust0sL1men has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
zenith__ has quit [Ping timeout: 252 seconds]
<havenwood>
benlieb: You can look at `gem --debug install gem-name` if you don't believe what `gem` is telling you.
basiclaser has quit [Quit: Connection closed for inactivity]
tvw has quit []
lulzmachine has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
senayar has quit []
dinhani has quit [Ping timeout: 255 seconds]
monsieurp has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 256 seconds]
nfk|laptop has joined #ruby
last_staff has joined #ruby
ramfjord has joined #ruby
zotherstupidguy has joined #ruby
Pupeno has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
ramfjord has quit [Client Quit]
ramfjord has joined #ruby
OrbitalKitten has quit [Client Quit]
mhib has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 246 seconds]
psy has joined #ruby
zeeraw has joined #ruby
<havenwood>
milesmatthias: Just a nit aside, but I think it might be nice instead of `is_dev` to: attr_reader :dev; alias_method :dev?, :dev
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
tgunr has joined #ruby
JimmyNeutron has joined #ruby
<milesmatthias>
havenwood: thanks, I can update that.
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
milesmatthias: Maybe consider keyword arguments instead of those long option Hashes. Hmm, what's the best way to make that pretty..?
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
milesmatthias: But yeah, I don't have any concrete suggestions. I'll yell if anything comes to me.
<elfuego>
when doing blank? check on objects before using them, is it best practice to return false or nil if the object is invalid?
mikepack has joined #ruby
rhllor has quit [Quit: rhllor]
<milesmatthias>
havenwood: okay, thanks. Do you see what I mean about a central spot for holding which endpoint we should be talking to? Having a central logger is another example of that.
<havenwood>
milesmatthias: I'd add a SynapseClient::VERSION in: synapse_client/lib/synapse_client/version.rb
<milesmatthias>
havenwood: yup, need to do that too.
zotherstupidguy has quit [Ping timeout: 246 seconds]
monsieurp has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenith_ has joined #ruby
terlar has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
krisquigley has joined #ruby
rhllor has joined #ruby
zotherstupidguy has joined #ruby
<havenwood>
milesmatthias: Yeah, extracting those things cleanly and making nice interfaces should take some careful meditation.
DouweM has quit [Read error: Connection reset by peer]
Earthnail has joined #ruby
towski_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<milesmatthias>
havenwood: I've tried looking at other ruby client gems (stripe, parse, etc.) but they're pretty complex, so I was trying to find some introduction level advice.
<Earthnail>
is there a progress bar library out there that allows me to update multiple progresses from N threads (N is a known number) in N lines on the terminal?
<ramfjord>
Earthnail: such a progress bar would have to use something like ncurses
<ramfjord>
the normal one just uses carriage returns I believe
<ramfjord>
which is only possible for 1 line
<Earthnail>
ramfjord: I'd be fine with that dependency if it's necessary
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
Takle has joined #ruby
baweaver has joined #ruby
<palosterud>
@havenwood, thx I'm looking at grape and rails-api right now. Have been using sinatra earlier on but not for api so I don't know how well it works
RegulationD has joined #ruby
Zai00 has quit [Quit: Zai00]
<havenwood>
palosterud: It works well. Roda is delicious. Check it out.
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lulzmachine_ has joined #ruby
lulzmachine has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
dinhani has joined #ruby
shadoi1 has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
razrunelord has joined #ruby
zotherstupidguy has quit [Ping timeout: 252 seconds]
dcas has quit [Ping timeout: 264 seconds]
shadoi1 has quit [Client Quit]
dc has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
shadoi1 has joined #ruby
zenith_ has quit [Ping timeout: 252 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
tcrypt has joined #ruby
DerisiveLogic has quit [Ping timeout: 240 seconds]
zenith_ has joined #ruby
NoNMaDDeN has joined #ruby
christiandsg has joined #ruby
bigmac has quit [Ping timeout: 252 seconds]
adamjleonard has joined #ruby
Crazy_Atheist has quit [Ping timeout: 246 seconds]
DouweM has quit [Read error: Connection reset by peer]
<elfuego>
i’m trying to write a unit test to checkif a method was called, but its failing with call times of 0, code snippet is here http://www.codeshare.io/X78Ed
gaboesquivel has quit []
DouweM has joined #ruby
mikepack has quit [Remote host closed the connection]
rhllor has quit [Read error: Connection reset by peer]
<helpa>
shevy: "Best" and "better" are subjective. Try to use a different term.
ptrrr has joined #ruby
<jhass>
gotta love that bot :P
<shevy>
would you think it to be cooler if the - is replaced by a | or a , ?
<TheNet>
,
<jhass>
cooler is german, isn't it?
<shevy>
according to leo there is no word match for "cooler" in german http://dict.leo.org/#/search=cooler&searchLoc=0&resultOrder=basic&multiwordShowSingle=on
<TheNet>
| is more of a separator for completely individual components imo
<shevy>
TheNet hmm
agarie has quit [Remote host closed the connection]
<rubie>
http://pastebin.com/9PkdhCvt heres what i have so far but i know i can improve on how to create new nodes, not sure how
<helpa>
Hi rubie. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<wallerdev>
i dont think people really care if you know the existing functions of a language as much as they care you understand the concepts of writing algorithms
<baweaver>
>> 'one two three'.split.map(&:reverse).join(' ')
<wallerdev>
lol have you guys never had an interview? or are you guys just so cool that you tell your interviewer that you're too good to solve it how they want
<baweaver>
an algorithm by definition is a method of getting a to b
graydot has joined #ruby
<baweaver>
Worked for me quite well
<most_wanted>
can anyone tell me why if ref.nil? then ref.value end
AndyBotwin has joined #ruby
<most_wanted>
ref value gernerates nil pointer error
AndyBotwin has quit [Changing host]
AndyBotwin has joined #ruby
<baweaver>
most_wanted: show code in a gist if you can, needs a bit more context
segv is now known as batman_
<baweaver>
error at least
batman_ is now known as segv
<eam>
wallerdev: for interviews I just talk about thought leadership
<wallerdev>
anyway my point is, for loops are much more flexible haha
basiclaser has quit [Quit: Connection closed for inactivity]
<undeadaedra>
>> ref = Struct.new(:value).new(4); if ref.nil? then ref.value end
<baweaver>
wallerdev: I show the right way for it, then I delve into the nonsensicals
<wallerdev>
and interviews ive been in tend to add to the problem as you work on it, and if you start with something like each_with_index etc you end up not being able to solve it elegantly without changing to a while loop
<baweaver>
you want the inverse
<undeadaedra>
>> ref = Struct.new(:value).new(4); ref and ref.value
zachrab has quit [Remote host closed the connection]
_br_ has joined #ruby
<baweaver>
most_wanted: I can take a look at it later tonight
failshell has quit [Ping timeout: 256 seconds]
zachrab has joined #ruby
<eam>
don't think I have it anymore, was for an ICFP involving ant AI (and I didn't do much of it)
zoo-zed has quit [Client Quit]
plashchynski has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Ping timeout: 245 seconds]
ldnunes has quit [Quit: Leaving]
lolmaus has quit [Quit: Konversation terminated!]
lucianosousa has quit [Ping timeout: 252 seconds]
lucianosousa_ is now known as lucianosousa
<GaryOak_>
I want to make SimAnts with boids and some FSM
<GaryOak_>
and have them build an ant farm
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<GaryOak_>
eam: that sounds rad
ndrei has quit [Ping timeout: 250 seconds]
most_wanted has quit [Quit: Page closed]
triangles3 has joined #ruby
iamjarvo has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
elaptics_away is now known as elaptics
piotrj has joined #ruby
triangles2 has quit [Ping timeout: 255 seconds]
jerius has quit [Ping timeout: 244 seconds]
Altonymous has joined #ruby
krisquigley has joined #ruby
baweaver has quit [Remote host closed the connection]
claw has quit [Ping timeout: 245 seconds]
MasterNayru_ has joined #ruby
threh has joined #ruby
MasterNayru has quit [Read error: Connection reset by peer]
Morkel has quit [Quit: Morkel]
<Altonymous>
I have 2 tab delimited files with 3 columns each. The first two columns contain the same data (except 1 file might have more some different records than the other and visa-versa). The 3rd column is what’s unique to the file. I’d like to create an array of the combined data.. so if fileA has “1, 2, 123” and fileB has “1, 2, 456”, I’d like to end up with “1, 2, 123, 456” 3rd column being from fileA and 4th being from
<Altonymous>
fileB. If the record only exists in one of the files the other value should be set to a default, for this purpose say 0.
<Altonymous>
I can’t for the life of me think of the most effecient way to do this…
claw has joined #ruby
baweaver has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<shevy>
GaryOak_ in ruby?
jottr has joined #ruby
<shevy>
I loved simants... I am not sure if I learned something but I think I did
GnuYawk has joined #ruby
jenrzzz has joined #ruby
brb3 has quit [Quit: <.<]
krisquigley has quit [Ping timeout: 272 seconds]
<GaryOak_>
shevy: yeah!
<GaryOak_>
Then they can use celluloid and make distributed ants
relix has joined #ruby
NoNMaDDeN has joined #ruby
<GaryOak_>
spread them out over a cluster, ant cluster
<GaryOak_>
then upload the ants to the cloud, cloud ants
yfeldblum has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 245 seconds]
<undeadaedra>
Comments are rather explicit
MasterNayru has joined #ruby
<undeadaedra>
... at least I think they are, I don’t understand them ._.
IrishGringo has quit [Ping timeout: 265 seconds]
gr33n7007h has quit [Quit: WeeChat 0.3.8]
bronson has joined #ruby
<GaryOak_>
Put the ants on a graph!
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<undeadaedra>
what is this?
<undeadaedra>
a program for ANTS?
SwimmingDolphin has joined #ruby
<GaryOak_>
haha
<colorados>
seems yes
doodlehaus has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 246 seconds]
MasterNayru has quit [Client Quit]
sngeth has quit [Ping timeout: 264 seconds]
<Altonymous>
This is the only way I can think of to do it.. [fileA, fileB].transpose.map { |(k1,k2,v1), (_,_,v2)| [k1,k2,v1,v2] } I don’t know if there’s a more performant way though
shevy has quit [Ping timeout: 252 seconds]
morenoh149 has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 246 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pengin has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
nii2361 has joined #ruby
sevvie has joined #ruby
serivich has joined #ruby
pengin has joined #ruby
SouL has quit [Ping timeout: 240 seconds]
EvanGuru has quit [Remote host closed the connection]
ev_ has joined #ruby
jlast has quit [Remote host closed the connection]
bronson has joined #ruby
nii2361 has quit [Ping timeout: 240 seconds]
drocsid has joined #ruby
jlast has joined #ruby
morenoh149 has joined #ruby
piotrj has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 272 seconds]
elfuego has quit [Quit: elfuego]
davidhq has joined #ruby
threh has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby
jespada has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
hcnewsom has quit [Quit: hcnewsom]
jenrzzz has joined #ruby
baweaver has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
enebo has quit [Quit: enebo]
altamic has quit [Quit: altamic]
jlast has quit [Ping timeout: 264 seconds]
Dakuan has joined #ruby
threh has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
sgambino has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
sngeth has joined #ruby
Sid05 has joined #ruby
piotrj has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 245 seconds]
<shevy>
sometimes it is best to rewrite from scratch
Dakuan has quit [Ping timeout: 265 seconds]
<drocsid>
I'm using some inline ruby in a puppet module. I don't really know the language well. Seems like I'm trying to do something simple: psuedocode : if true; return va1 else; return val2. Here's my attempt: http://pastie.org/10033803
hcnewsom has joined #ruby
<drocsid>
Can somebody help me to understand what's wrong?
<jhass>
drocsid: get rid of the { }
Sid05 has quit [Client Quit]
Sid05 has joined #ruby
jgt3 has joined #ruby
Sid05 has quit [Client Quit]
jespada has quit [Ping timeout: 264 seconds]
<jhass>
also match = @fqdn.match(/us3sm2[a-z]+([0-9]+)r([0-9]{2})(.comp.prod.local)?/); if match; match[1]; else; 0; end (with ; being newlines)
workmad3 has joined #ruby
<jhass>
drocsid: tryruby.org might be worth the 20 minutes ;)
sankaber has joined #ruby
shanlar- has quit [Ping timeout: 264 seconds]
<drocsid>
jhass: ok, I should probably do that.
<drocsid>
jhass: thanks, thought ruby used { } for some reason
<jhass>
it does for two common things, but not for if statements ;)
<undeadaedra>
two?
<undeadaedra>
I have do; end
<undeadaedra>
What’s the other?
<jhass>
well, two and a half if I didn't miss anything
<jhass>
hash
<undeadaedra>
of course
<undeadaedra>
2obvious4me
jespada has joined #ruby
jottr has joined #ruby
threh has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<apeiros_>
hash literals, %-literals, blocks - did I miss something?
mikepack has quit [Remote host closed the connection]
<jhass>
"#{string} interpolation" was my "and half" ;P
pengin has joined #ruby
threh has joined #ruby
<apeiros_>
ah, right. so three things. one of them being two halfs :)
iamjarvo has joined #ruby
<apeiros_>
is it just me or did removing AR from rails become less annoying? only 4 places I have to edit now.
jottr has quit [Ping timeout: 252 seconds]
jimms has quit []
sepp2k has quit [Quit: Konversation terminated!]
<undeadaedra>
rails -O ?
<undeadaedra>
rails new -O ?*
baweaver has quit []
<apeiros_>
undeadaedra: from an existing rails project
<undeadaedra>
ah
<undeadaedra>
this is another story
<apeiros_>
but yes, that option exists for a while I think. didn't know it had that short-cut, though :)
hmnhf has joined #ruby
<undeadaedra>
-G is for no git, -O for no AR, -T for no tests
<undeadaedra>
(I just created a project, so I remember :p )
pengin has quit [Remote host closed the connection]
ojacobson has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 256 seconds]
sngeth has quit [Ping timeout: 256 seconds]
pengin has joined #ruby
threh has quit [Ping timeout: 265 seconds]
reinaldob has joined #ruby
replay has quit [Remote host closed the connection]
replay has joined #ruby
shanlar has joined #ruby
jgt4 has joined #ruby
nfk has quit [Quit: yawn]
jgt3 has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Ping timeout: 256 seconds]
spider-mario has quit [Remote host closed the connection]
replay has quit [Ping timeout: 244 seconds]
jespada has quit [Ping timeout: 256 seconds]
morenoh149 has quit [Ping timeout: 250 seconds]
hmnhf has quit [Quit: Konversation terminated!]
hmnhf has joined #ruby
jobewan has quit [Quit: Leaving]
_maes_ has quit [Ping timeout: 265 seconds]
keen___ has joined #ruby
pengin has quit [Remote host closed the connection]
rhllor has quit [Quit: rhllor]
keen__ has quit [Ping timeout: 252 seconds]
pengin has joined #ruby
icebourg has quit []
codecop has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
christiandsg has joined #ruby
ptrrr has quit [Quit: ptrrr]
lucianosousa has quit [Quit: lucianosousa]
reinaldob has quit [Remote host closed the connection]
jgt has joined #ruby
Peter___ has joined #ruby
plashchynski has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
paradoja has quit [Ping timeout: 255 seconds]
christiandsg has quit [Ping timeout: 252 seconds]
duncannz has quit [Max SendQ exceeded]
jgt4 has quit [Ping timeout: 246 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
arescorpio has joined #ruby
lkba has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
danman has quit [Quit: danman]
pengin has joined #ruby
bradleyprice has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 252 seconds]
Ankhers has joined #ruby
smcquaid has joined #ruby
karmatr0n has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smcquaid has quit [Client Quit]
PNDPO has joined #ruby
PNDPO has left #ruby [#ruby]
wicope has quit [Remote host closed the connection]
jenrzzz has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
lordkryss has joined #ruby
krisquigley has joined #ruby
jlast has joined #ruby
reinaldob has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jgt has quit [Ping timeout: 252 seconds]
n_blownapart has joined #ruby
baweaver has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
SegFaultAX has quit [Excess Flood]
jlast has quit [Ping timeout: 250 seconds]
krisquigley has quit [Ping timeout: 265 seconds]
SegFaultAX has joined #ruby
SegFaultAX has quit [Changing host]
SegFaultAX has joined #ruby
jgt has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
d10n-work has quit [Quit: Connection closed for inactivity]
jxpx777 has quit [Quit: Leaving...]
einarj has quit [Remote host closed the connection]
zacts has quit [Quit: Lost terminal]
nii2361 has joined #ruby
Takle has quit [Remote host closed the connection]
baweaver_ has joined #ruby
Limix has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
baweaver_ has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 245 seconds]
baweaver_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
spiderbyte has quit [Quit: WeeChat 1.0.1]
baweaver has quit [Read error: Connection reset by peer]
nii2361 has quit [Ping timeout: 245 seconds]
neanderslob has quit [Remote host closed the connection]
jusmyth has quit [Quit: Leaving.]
n_blownapart has quit []
Sawbones has joined #ruby
eat_multi has quit [Ping timeout: 246 seconds]
ki0 has quit [Remote host closed the connection]
martinbmadsen has joined #ruby
max96at is now known as max96at|off
jottr has joined #ruby
nemesit|znc has quit [Ping timeout: 272 seconds]
lucianosousa has joined #ruby
nemesit|znc has joined #ruby
neanderslob has joined #ruby
a1fa has joined #ruby
<a1fa>
what does csv[3][3] do in CSV gem? 3rd row, 3rd column?
jgt1 has joined #ruby
jgt has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 246 seconds]
neanderslob has quit [Remote host closed the connection]
apeiros_ has joined #ruby
GambitK has joined #ruby
<GambitK>
how do I make JSON.parse return a hash, is returning an array by default
jottr has quit [Ping timeout: 245 seconds]
Apocalypse has quit [Ping timeout: 255 seconds]
eat_multi has joined #ruby
<Radar>
a1fa: impossible to know without context
<Radar>
GambitK: Parse a JSON object and not an array of JSON objects.
triangles2 has joined #ruby
adriancb has joined #ruby
zachrab has quit [Remote host closed the connection]
<wallerdev>
.gsub(/][/, '')
zachrab has joined #ruby
<wallerdev>
lol
leafybasil has quit [Ping timeout: 245 seconds]
Apocalypse has joined #ruby
Apocalypse has joined #ruby
<GambitK>
Radar: I'm getting it from a response.body from an application, this is what's sending: {"tags"=>["suspicious", "rdata"], "firsttime"=>"2015-03-12T06:49:39Z", "id"=>"ecfc279764196b80283c90ceedfbe5c78489a1cb54796e24c31ac8f2b7608640", "related"=>"05afbd68e280d9682ec4bdffee124ea5bcb355cc628f9ef227c251248bdd62c0", "protocol"=>6, "otype"=>"fqdn", "provider"=>"spamhaus.org", "portlist"=>nil, "observable
commmmodo has joined #ruby
<Radar>
GambitK: !gist
<helpa>
GambitK: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
commmmodo has left #ruby [#ruby]
triangles has quit [Ping timeout: 246 seconds]
olivier_bK has quit [Ping timeout: 272 seconds]
triangles3 has joined #ruby
leafybasil has joined #ruby
<a1fa>
Radar: csv.parse
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
tmi has quit [Ping timeout: 256 seconds]
DrShoggoth has quit [Quit: Leaving]
<a1fa>
csv = CSV.parse(file)
slackbotgz has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<Radar>
a1fa: Still missing so much context.
<Radar>
what is the file?
slackbotgz has joined #ruby
<a1fa>
a comma separated value
zmyrgel has quit [Ping timeout: 265 seconds]
jlast has quit [Remote host closed the connection]
triangles2 has quit [Ping timeout: 272 seconds]
Aswebb_ has joined #ruby
<Radar>
Sigh
<Radar>
I am not going to play 20 questions with you today. Goodbye.
pengin has quit [Remote host closed the connection]
<Radar>
If you're not willing to give me straight answers just please go away.
reinaldob has quit [Remote host closed the connection]
<Radar>
I can't help you thenm.
<GambitK>
GambitK: puts result
Armand is now known as Guest99640
<GambitK>
Radar: :(
emacer has joined #ruby
Yzguy_ has joined #ruby
<Radar>
GambitK: You're showing me a Hash and Ruby claims it's an Array. Ruby isn't lying here.
jusmyth has joined #ruby
<emacer>
hi, I'm having trouble with bundle exec. I'm trying to run a backup job for openproject (written in rails), and I don't know how to get bundle exec to not throw errors. I installed via apt, and the ruby install is in a /opt/openproject/vendor directory. What do I need to do to set up my environment properly?
deric_skibotn has joined #ruby
<havenwood>
emacer: What are you running and what errors are you getting? Gist it.
<GambitK>
Radar: maybe a one dimensional array?
<Radar>
GambitK: nope
Ankhers has quit [Ping timeout: 255 seconds]
<jhass>
emacer: also how are you running the app itself?
<Radar>
GambitK: I can't help you here because I can't see the problem happening for myself.
triangles has joined #ruby
<emacer>
jhass, an /etc/init.d/ script included, which is "magic" because it looks like it should just recursively call itself (well, all 5 of them do)
<emacer>
havenwood, `ruby_21` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :ruby_20, :mri, :mri_18, :mri_19, :mri_20, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19,
<emacer>
:mingw_20]
<GambitK>
Radar: yes, it returns a one dimensional array, if i print result[0] i get the json object
<Radar>
GambitK: Ohhhh passing it to puts must be passing the array to puts.
<Radar>
GambitK: This is why I use p results instead ;)
jgt1 has joined #ruby
<havenwood>
emacer: gem update bundler
<emacer>
havenwood, so I got past that by putting it in my PATH, but it just gives me different errors, like: /opt/openproject-ce/vendor/bundle/ruby/2.1.0/bin/bundle:23:in `load': cannot load such file -- /usr/share/rubygems-integration/1.9.1/gems/bundler-1.3.5/bin/bundle (LoadError)
<jhass>
emacer: that sounds like your bundler version is old. remove the package and sudo gem install bundler
<Radar>
emacer: What OS?
<emacer>
havenwood, the bundler I have to use wasn't installed system-wide