<slogan>
I created some sample code here of what I'm trying to do
<slogan>
As you can see, since foo2_object is an instance of the Foo2 class, I can call any methods from it. But what if I need to invoke methods of Foo based on some decision made in Foo2?
dorei has quit []
<jhass>
sorry but
<jhass>
?fake
<ruboto>
Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
charliesome has joined #ruby
<jhass>
also
<jhass>
?gist-usage
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<jhass>
mmh, need to improve that on
<jhass>
*one
<noethics>
anyone use vagrant+vim? #vagrant is deaderino
<jhass>
it tries to point out to use the mentioned features ;)
bruno- has quit [Ping timeout: 272 seconds]
Scroff has joined #ruby
<slogan>
Ideally I would paste the real code but it is very lengthy
<CyborgCygnus>
I made a .rb script in notepadd++, when I open it into the Ruby Interpreter it just closes after my user input instead of staying open & displaying a result
sorbo_ has quit []
<jhass>
no worries
<jhass>
slogan: ^ we're used to that
<jhass>
?code CyborgCygnus
<ruboto>
CyborgCygnus, We can't help you without your code, please post it to https://gist.github.com
allomov has quit [Read error: Connection reset by peer]
<slogan>
haha
bricker has quit [Ping timeout: 258 seconds]
<jhass>
one for everything!
<slogan>
also is there any way to hide notifications of people coming in and out?
ruby-lang713 has quit [Ping timeout: 246 seconds]
<jhass>
it's a client feature, I don't use the webclient so no idea ;)
<zenspider>
slogan: your question hints that you're fairly new to objects, yes?
<slogan>
Well I've not done OOP in a while
<jhass>
slogan: look for something mentioning joins/parts
<zenspider>
CyborgCygnus: you're running the code in windows? Via cmd.com I assume... those windows close when the program they're running is over
<zenspider>
to verify that, add `gets` to the end of your script and run again
allomov has joined #ruby
<zenspider>
not ideal, but neither is the env you're running in.
<zenspider>
it'll stick around until you hit return
<slogan>
Thank you. I found the option to hide joins and quits
jwinder has quit [Ping timeout: 272 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MouseTheLuckyDog has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
blandflakes has joined #ruby
sleungcy has joined #ruby
<slogan>
But anyway, it's possible that the example I gave is too vague
<slogan>
hmm
<CyborgCygnus>
zenspider, yeah that works I suppose, thought it would of been better than that. I'm pretty sure I have ruby on my ubuntu 14.04 but it's been a while, is it more friendly in linux?
Papierkorb has joined #ruby
<zenspider>
CyborgCygnus: it's mostly about how you're running. bring up your own cmd.com window and run the script manually and you won't need the gets
<zenspider>
there might be a way to get your editor to run scripts differently, but I can't help there
* zenspider
says the guy who is chatting on IRC in emacs, editing code in emacs, running shells in emacs
blandflakes has quit [Client Quit]
claptor has joined #ruby
<MouseTheLuckyDog>
I have a list, I have a criteria. I want two make two lists. One of elements that meet the criteria, one of elements that do not. I can of course do two selects, but that seems crude.
<slogan>
Anyone given any thought to my code? I'm sure it's just something very fundamental that I've not grasped
<zenspider>
slogan: it's about objects and classes. the desire hints at not knowing OO _or_ not designing your OO models correctly
<jhass>
slogan: and we can't really give suggestions on how to do it correctly without knowing what you're doing
<slogan>
yeah, that's a good point jhass
dopie has joined #ruby
<slogan>
let me see what I can dig up
<zenspider>
slogan: what jhass said, but also: classes (and objects) are boundaries on purpose. if you want to violate those boundaries (I'm assuming I understand your question), then you have a design smell
Scroff has quit [Ping timeout: 252 seconds]
Papierkorb has quit [Read error: Connection reset by peer]
<jhass>
MouseTheLuckyDog: Enumerable#partition
<slogan>
yeah, I'm pretty certain that my code will need to be redesigned
<zenspider>
oh wow... I totally didn't parse MouseTheLuckyDog's question at all. :P
<zenspider>
not sure if I need more coffee, or less
Papierkorb has joined #ruby
<jhass>
since I parsed it, less sleep and more beef with the bundler guys
<MouseTheLuckyDog>
spider, I mispelled to as two maybe that confused you.
<MouseTheLuckyDog>
jhass: Thanks.
<slogan>
I'm going to grab the code I'm working with and remove some unneccesary methods, etc
<slogan>
and see if you can help with that
davedev24_ has quit [Ping timeout: 240 seconds]
Alayde has joined #ruby
Agoldfish378 has joined #ruby
<jhass>
slogan: cool, as said make sure make use of the gist features syntax highlighting and multiple files
fella6s has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<slogan>
yeah I'm still very new to github but I'll try
dgutierr_ has joined #ruby
freerobby has quit [Quit: Leaving.]
davedev24_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
casadei_ has joined #ruby
<slogan>
okay... I see where I can add multiple files
<slogan>
but how do I highlight syntax?
djbkd_ has joined #ruby
<jhass>
either call your files something.rb or use the dropdown next to the filename
<slogan>
Oh yeah
<slogan>
just found the drop down
<slogan>
nice
hmnhf_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
iamvery has quit [Quit: Leaving...]
dwithers has joined #ruby
gf3 has quit [Ping timeout: 250 seconds]
terlar has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
dgutierrez1287 has quit [Ping timeout: 250 seconds]
d[^_^]b has quit [Ping timeout: 250 seconds]
Agoldfish has quit [Ping timeout: 250 seconds]
casadei has quit [Ping timeout: 250 seconds]
rkazak has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 250 seconds]
DarthGandalf has quit [Ping timeout: 250 seconds]
pl1ght has quit [Ping timeout: 250 seconds]
dseitz has quit [Ping timeout: 250 seconds]
hmnhf has quit [Ping timeout: 250 seconds]
fella5s has quit [Ping timeout: 250 seconds]
braincrash has quit [Ping timeout: 250 seconds]
kriskropd has quit [Ping timeout: 250 seconds]
WillAmes has quit [Remote host closed the connection]
terlar has joined #ruby
serivich has quit [Quit: Leaving]
rovnero has quit [Ping timeout: 245 seconds]
fusillicode has joined #ruby
bogdanteleaga has quit [Ping timeout: 256 seconds]
DarthGandalf has joined #ruby
rkazak has joined #ruby
braincrash has joined #ruby
d[^_^]b has joined #ruby
kriskropd has joined #ruby
gf3 has joined #ruby
pontiki has joined #ruby
d[^_^]b has quit [Disconnected by services]
bkxd has quit [Ping timeout: 245 seconds]
poguez_ has joined #ruby
Rickmasta has joined #ruby
leat has joined #ruby
willharrison has joined #ruby
<nickfausnight>
noethics: did anyone answer you? I have a small bit of experience if I can be any help
<noethics>
nickfausnight, no basically i got a "NO IDEA" from both #vbox and #vagrant
RegulationD has joined #ruby
<nickfausnight>
noethics: I'll probably give you the same answer, but I'll give it a shot
d[^_^]b has joined #ruby
<noethics>
nickfausnight, my problem is i can't get vim to copy registers from the guest os to my host
<noethics>
i have clipboard == bidirectional and i have vim support for clipboard and xterm clipboard
<noethics>
i had it working like a couiple weeks ago before i reformatted
<noethics>
but now it's just brokerino
rodfersou has joined #ruby
jpfuentes2 has joined #ruby
<nickfausnight>
noethics: Well I tried
delianid_ has joined #ruby
<noethics>
nickfausnight, you didyer best m8
unreal_ has joined #ruby
<nickfausnight>
It's the thought that count, right?
<noethics>
ye
datanoise has joined #ruby
blue_deref has quit [Quit: bbn]
bogdanteleaga has joined #ruby
d[^_^]b has quit [Disconnected by services]
<zenspider>
is vim running in the guest or host?
delianides has quit [Ping timeout: 264 seconds]
unreal has quit [Ping timeout: 245 seconds]
<noethics>
guest
<noethics>
zenspider, ^
[H]unt3r has quit [Quit: Leaving]
gf3_ has joined #ruby
CloCkWeRX has joined #ruby
dopieee has joined #ruby
amclain has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
d[^_^]b has joined #ruby
cmisenas has quit [Quit: cmisenas]
LMity has quit [Ping timeout: 264 seconds]
<noethics>
it would be working if i set it up with vim ssh from my host i guess but that's not how i've been doing it
<CyborgCygnus>
how did that person above workout how to not show joined or quitting messages?
WillAmes has joined #ruby
gf3 has quit [Ping timeout: 250 seconds]
gf3_ is now known as gf3
podman has quit [Quit: Connection closed for inactivity]
<jhass>
CyborgCygnus: through looking, it's client specific
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
tibig has joined #ruby
datanoise has quit [Ping timeout: 255 seconds]
dopie has quit [Ping timeout: 265 seconds]
<noethics>
real men write router firmware to drop irc quit and join messages
<jhass>
heh, I like my smart filter
<noethics>
jk ssl would ruin your day
GriffinHeart has joined #ruby
<bnagy>
top marks for unneccesarily sexist language though
<jhass>
yeah, it always reminds me that DANE is still not a widely used thing :/
duderonomy has joined #ruby
<noethics>
bnagy, it's a figure or speech don't get your panties in a knot
joneshf-laptop has joined #ruby
<bnagy>
two for two!
<noethics>
;)
rodfersou has quit [Quit: leaving]
swgillespie has joined #ruby
<bnagy>
fwiw "it's a figure of speak" is not a justification
<bnagy>
I think you'll find that "nigger in the woodpile" isn't much used these days
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
frem has quit [Quit: Connection closed for inactivity]
<noethics>
bnagy, thanks for the words of wisdom, i can always count on you to spew some shit we both know i already know and don't care about
fgo has joined #ruby
<jhass>
please, I don't want to remove both of you
<bnagy>
no charge.
goodcodeguy has joined #ruby
<noethics>
jhass, he's my bro from go-nuts
<noethics>
he just likes riding me
sigden has quit [Ping timeout: 265 seconds]
<jhass>
cool, then you have a place for it ;)
yfeldblum has quit [Ping timeout: 256 seconds]
<bnagy>
I actually honestly do think that cutting out sexist language makes irc more welcoming
<bnagy>
that fact that it was you is just a bonus, tbh
<jhass>
indeed, but skipping lengthy meta discussions about it does too
<jhass>
especially if they happen in the tone you use
oo_ has quit [Ping timeout: 244 seconds]
<jhass>
(referring to both)
<slogan>
eh I'll go back to my code later...I'm pretty sure it's just an issue with inheritance
* slogan
relaxes and drinks iced tea
fujimura has joined #ruby
<jhass>
good choice too
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noethics>
bnagy, you should see this test i wrote
<noethics>
you'd puke
jpfuentes2 has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
jfarmer has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jfarmer has joined #ruby
delianid_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fujimura has quit [Ping timeout: 255 seconds]
Brozo has joined #ruby
dgutierr_ has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 272 seconds]
n008f4g_ has quit [Ping timeout: 272 seconds]
joaomdmoura has joined #ruby
dgutierrez1287 has joined #ruby
x0f has joined #ruby
Hobogrammer has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
<Aeyrix>
pipework: n e?
<Aeyrix>
Only pinging you because we discussed this pre-nyquil last time.
oo_ has quit [Ping timeout: 255 seconds]
<Aeyrix>
So I have an issue with a sinatra app I wrote not cleaning up tempfiles it makes.
<Aeyrix>
Line 32 I create the tempfile as `temp_file`, but it never gets cleaned up despite `temp_file.unlink` on line 42, before the end of the response.
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<noethics>
Aeyrix, do you not separate your routes into separate files
<Aeyrix>
noethics: Not when the grand sum of lines is 81.
<noethics>
tru
<Aeyrix>
Pointless abstraction for the sake of absolutely nothing.
d[^_^]b has joined #ruby
<noethics>
i just curious cause ive never written web coad in ruby
michael_mbp has quit [Excess Flood]
mrmargolis has quit [Remote host closed the connection]
<Aeyrix>
o
<_cake>
I have this java server I run from a jar file and I want to use ruby as a container for it, is there any way I could have ruby read the output and give input instead of a windows cmd?
havenwood has joined #ruby
michael_mbp has joined #ruby
Agoldfish378 has quit [Quit: G'Bye]
<noethics>
just wondering why would you use ruby as a container for java
<noethics>
instead of theother way around
<bnagy>
_cake: take a look at Open3
<_cake>
ruby is the webserver
<noethics>
o
<_cake>
I'll take a look, bnagy
CyborgCygnus has quit [Read error: Connection reset by peer]
<_cake>
ruby is a web ui for the server**
<bnagy>
_cake: if you need to keep it open and feed it input then probably popen3 or something
<_cake>
awesome, thanks bnagy
<noethics>
mmk i would not "wrap" java in ruby though
oo_ has quit [Ping timeout: 255 seconds]
<noethics>
if the java thing is a server just boot it and use rpc or some type of network protocol to communicate with it
iamjarvo has joined #ruby
Brozo has quit [Remote host closed the connection]
<bnagy>
_cake: a much nicer option depending how the server is written is to use JRuby then you might be able to just use java objects etc straight from the jar
iamjarvo has quit [Max SendQ exceeded]
<noethics>
^
<_cake>
I'm making a webui for a minecraft server. bnagy, that isn't really much of an option
<Aeyrix>
_cake: gross
<_cake>
popen3 seems to be what I was looking for, though. thanks!
iamjarvo has joined #ruby
<Aeyrix>
Stop stop stop stop stopstop
<_cake>
lol Aeyrix
<Aeyrix>
stopstopstopstopstotpsotpsotp
iamjarvo has quit [Max SendQ exceeded]
<Aeyrix>
stop.gif
<Aeyrix>
stop.avi
<_cake>
:)
<Aeyrix>
Don't wrap it for a control panel.
<noethics>
ya if youre wrapping it yer doing it mega wrong
<_cake>
rcon might be what I'll do instead
<Aeyrix>
Yes.
iamjarvo has joined #ruby
<_cake>
lol
<Aeyrix>
RCON + sockets.
Brozo has joined #ruby
<_cake>
I still need to get the server terminal to show on the page
<_cake>
sooo
<Aeyrix>
So what, you're going to wrap and manage stdin and stdout?
<_cake>
only for a single webpage that lets you see the server commandline
<_cake>
other than that, I'm using rcon
<Aeyrix>
tbh
<Aeyrix>
I'd
<Aeyrix>
write a wrapper ap
<Aeyrix>
app *
<Aeyrix>
that wraps and parses stdout and can input to stdin
<_cake>
open3?
<Aeyrix>
then has sockets
<noethics>
basically what i would do is init the java shit from ruby but be careful that it's not a fork of your ruby process
<Aeyrix>
and your web page communicates with sockets
slogan has quit [Quit: Page closed]
dain_ has quit [Ping timeout: 272 seconds]
<noethics>
and then grab the stdout
<_cake>
I'm not sure how open3 handles the threads
<noethics>
but still that's bad
<Aeyrix>
_cake: lol threads and java
<Aeyrix>
lol threads and mc
<_cake>
oh god
<_cake>
I'll throw something together and cross my fingers
<noethics>
what i would probably do
<noethics>
_cake, are you running it on linux
<_cake>
I need to leave a desktop running in my house too
t_ has quit [Read error: Connection reset by peer]
<_cake>
noethics, it's ruby, does it matter?
mrmargolis has joined #ruby
j4cknewt has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 265 seconds]
<noethics>
well kinda cos if you want to multiplex the terminal
<noethics>
then theres a few ways to do it
<_cake>
open3
<noethics>
gl m8
allcentury has quit [Ping timeout: 256 seconds]
<_cake>
java -jar server.jar is the same on windows and linux
<_cake>
thanks m8
<noethics>
i was saying you could use unix sockets
<_cake>
oh
<noethics>
and pipe stdout to your sock file
<noethics>
then read it on le ruby end
<_cake>
does that allow streams?
<_cake>
:O
<bnagy>
_cake: you might find javaw better on windows btw
datanoise has joined #ruby
<_cake>
yeah
<_cake>
probably
willharrison has joined #ruby
sigden has joined #ruby
<noethics>
you could do it without unix sockets even
<_cake>
but the more shells I have open, the more leet I look
<noethics>
you know in java how you can redirect stdout easily
<_cake>
popen3?
<_cake>
??
<noethics>
if you want your mc server as a child process of your web server then go f'rit
<noethics>
sounds fuckin bad though
<_cake>
:)
<_cake>
if it doesn't work, I'll do it again differently
<_cake>
the whole concept is a bad idea
<noethics>
its gonna work its just gonna be bad
<_cake>
^
<noethics>
im gonna dos ur web server
<noethics>
and crash your mc server
<_cake>
b-but.. how
<_cake>
:c
<noethics>
jk ily, but seriously that's such a bad idea
<_cake>
why if my webserver is only accessible via vpn
<_cake>
bad idea is my middle name
<_cake>
not really
<_cake>
you're one to talk, noethics
<noethics>
what youre doing is objectively bad
jenrzzz has joined #ruby
<_cake>
unethical even?
<noethics>
no
<_cake>
lol
<_cake>
yeah
<_cake>
I know
bootstrappm has left #ruby [#ruby]
oo_ has joined #ruby
<_cake>
hi oo_
<noethics>
_cake, is this just a random mc server youre hosting?
<_cake>
pretty much
<noethics>
you didnt write it or anything
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_cake>
nope
<_cake>
vanilla server
<noethics>
ok carry on then
<sevenseacat>
hello
<_cake>
hi sevenseacat
t_ has joined #ruby
<_cake>
such a large channel
<_cake>
I wonder how many people are idling
<sevenseacat>
whats the haps in this here channel
<Aeyrix>
_cake: Most are asleep atm.
<Aeyrix>
Just the Aussies awake.
GriffinHeart has quit [Remote host closed the connection]
<havenwood>
party! \o |o/ \O/
<_cake>
it's 9pm here in texas
<_cake>
you're saying developers go to sleep at 8/
<_cake>
?
<Aeyrix>
Yes.
<Aeyrix>
I do.
<noethics>
8 am
<_cake>
^
Spami has quit [Quit: This computer has gone to sleep]
<noethics>
i wrote possibly the worst code ever written today
<shevy>
learn ruby the hard way was written not by a rubyist but by a pythonist
<Aeyrix>
Uh
<Aeyrix>
no
<metallicrwr>
Aeyrix: because I will later code bindings way late in a year or so
<Aeyrix>
Zed Shaw was a rubyist until he discovered he hated Rails.
<Aeyrix>
He wrote Mongrel.
<noethics>
what's a rubyist
<shevy>
yeah the traitor left
<Aeyrix>
Among other things.
<Aeyrix>
>traitor
<shevy>
and you promote him
hoelzro has joined #ruby
<Aeyrix>
And you wonder why
<shevy>
so what?
<Aeyrix>
Shaw hates you
<shevy>
and who cares why?
<Aeyrix>
idk you probably
<Aeyrix>
>traitor
<Aeyrix>
m8
<bnagy>
Aeyrix: a lot of the ruby in hardway is not idiomatic
<shevy>
you encourage him to pick up bad habits
<noethics>
shevy, your fanboy is leaking
<shevy>
noethics explain
<bnagy>
in fact it's pythonic :)
<Aeyrix>
Balderdash.
<noethics>
shevy, calling osmeone who switched from rails/ruby or whatever a "traitor"
<Aeyrix>
noethics: lol
<shevy>
noethics yeah - he helps ruby how precisely?
<bnagy>
in any case, hardway is a good beginner recommendation because the structure is good
<noethics>
shevy, calling someone who prefers python or something a "not rubyist" and discrediting his work on ruby
<Aeyrix>
bnagy: But for an absolute beginner do you disagree that it's a solid grounding material?
<shevy>
noethics after drama queening it up
<Aeyrix>
Ah, you don't. Okay. :)
<noethics>
what does it matter how he helps ruby
<shevy>
noethics yep, precisely - he is a python guy by heart; look at his coding style
<Aeyrix>
Fuck me, I link a book and everyone pisses their pants.
<sevenseacat>
lol
<Aeyrix>
metallicrwr: What are you doing, what are you intending to do?
<sevenseacat>
let's get this under control. no-one is a 'traitor'
tuelz1 has quit [Ping timeout: 265 seconds]
dgutierrez1287 has joined #ruby
<bnagy>
Aeyrix: I already recommended it above :P
<Aeyrix>
I know Java, and I know Ruby.
<Aeyrix>
bnagy: Oh, alright. :D
claw has joined #ruby
<metallicrwr>
Aeyrix: I'm trying to learn programming to one day write a nanokernel. Right now I'm trying out Haiku (OS) and GNU Hurd
mark[oz] has joined #ruby
<noethics>
kek
claw_ has quit [Ping timeout: 256 seconds]
<Aeyrix>
Okay so I've worked with operating systems at, well, an operating system level for years
<Aeyrix>
but what the hell is a nanokernel
<Aeyrix>
is that like a microkernel but smaller?
<bnagy>
WAIT NOBODY SAY ANYTHING
<bnagy>
... let me go get popcorn brb
dudedudeman has joined #ruby
<metallicrwr>
yes Aeyrix
<Aeyrix>
Oh, okay.
<Aeyrix>
If you want to do that, learn C.
<Aeyrix>
Or Rust.
<noethics>
rust
<baweaver>
Aeyrix: You don't know what a nanokernel is?
<Aeyrix>
baweaver: It sounded like a buzzword tbh.
deric_skibotn has quit [Ping timeout: 246 seconds]
nhhagen has joined #ruby
<noethics>
Aeyrix, wow how noob r u didnt even no whats a nano kernel m8?
<baweaver>
Next thing you'll tell me you don't know what a picokernel is
<metallicrwr>
Aeyrix: my hypothesis is I must get started somewhere
<metallicrwr>
C is not for beginners, I don't think
<Aeyrix>
Yes it is.
<sevenseacat>
can we stop the trolling now
<noethics>
ruby is harder than C
<baweaver>
depends on what they're beginning in
<sevenseacat>
please.
<shevy>
noethics why
<Aeyrix>
sevenseacat: Nobody is trolling.
<Aeyrix>
Calm down, your j hass is leaking.
<baweaver>
sevenseacat: sorry about that
ramfjord has quit [Ping timeout: 265 seconds]
<noethics>
shevy, cause types arent a thing, the syntax isnt as intuitive as C languages, sideffects may be a huge problem in ruby but not in C
<metallicrwr>
then erm...which book do I need to learn to learn C as my first language? The people in ##c keep on linking me to K&R and I don't want K&R
stardiviner has joined #ruby
<sevenseacat>
'wow how noob r u' is trolling, yes.
<Aeyrix>
metallicrwr: Is there a C in Action? I forget.
<shevy>
noethics total crap - ruby syntax is about a million times simpler than C
<Aeyrix>
sevenseacat: It was @ me.
lkba_ has joined #ruby
<shevy>
Aeyrix and your reference to jhass is cheap
lkba has quit [Read error: Connection reset by peer]
<sevenseacat>
so let's just keep the ad hominem attacks away, and you can discuss whatever.
<Aeyrix>
*shrugs*
<noethics>
uh brevity != simplicity
<Aeyrix>
sevenseacat: zzzzzzzzz
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has quit [Quit: tjbiddle]
<noethics>
ruby is a sick language i just wouldn't want my kid learning it first
<shevy>
well you can always write more verbose ruby code too :)
Spami has quit [Quit: This computer has gone to sleep]
<Aeyrix>
C isn't hard.
jhooker has quit [Read error: Connection reset by peer]
<shevy>
I guess that is why perl, python, php and ruby became popular
<Aeyrix>
"C isn't popular."
<Aeyrix>
- shevy, 2015
jhooker has joined #ruby
<shevy>
ah because people who use these languages, automatically know or use C?
dudedudeman has quit [Ping timeout: 256 seconds]
<Aeyrix>
You know what
<Aeyrix>
I give up.
<Aeyrix>
Sorry, metallicrwr.
<Aeyrix>
I tried to help but apparently I'm just wrong.
stardiviner has quit [Ping timeout: 245 seconds]
<shevy>
metallicrwr got lots of different opinions in so far
simi has quit [Ping timeout: 272 seconds]
<baweaver>
Funny how sore some people can get over opinions
<noethics>
just learn haskell and report your learnings back here in a few days
<shevy>
he is already destined to go to C anyway
<noethics>
i haven't heard a good argument for learning ruby first
<shevy>
e. g. his nanokernel reference
<Aeyrix>
... wat
<Aeyrix>
shevy: are you just predetermined to disagree with me?
<noethics>
just lots of reasons not to
<Aeyrix>
like
<Aeyrix>
you're saying "oh C isn't for beginners don't do it"
<shevy>
Aeyrix it is his use case
<Aeyrix>
and now "oh but he's gonna go to C anyway"
<bnagy>
C is not for beginners
<Aeyrix>
[ twitching intensifies ]
willharrison has joined #ruby
<noethics>
C is like .. you're gonna have a bad time for a bit but when it clicks you won the internet
<noethics>
with ruby you'll be like ya i think im doing this right
<Aeyrix>
This channel makes me want to go back to writing Python.
Trynemjoel has quit [Quit: Quitting]
kinduff has joined #ruby
<shevy>
nobody recommended python to metallicrwr so far though
<noethics>
python is oldmeta
<Aeyrix>
Because I never got there, I was too busy arguing with *you* about stupid semantics.
<bnagy>
python is a good teaching language :`(
<Aeyrix>
Python is a good teaching language only because of its use in academia.
<bnagy>
ruby isn't _bad_ though
adefa has quit [Ping timeout: 265 seconds]
<noethics>
by that logic go with haskell
<noethics>
:D
starfox_sf has joined #ruby
<bnagy>
there are a lot more things about python that make it good for teaching
<Aeyrix>
I'd seriously venture that if Ruby could compete with things like ScyPy and NumPy, it'd be taught a lot more frequently.
<noethics>
i think so too
mark[oz] has joined #ruby
<Aeyrix>
What, like its complete lack of syntactic hinting?
<bnagy>
using the language is quite separate from using it for teaching
<Aeyrix>
"Where does this block end? Who knows! Better follow the indenting."
<noethics>
rofl
jpfuentes2 has quit [Read error: Connection reset by peer]
<Aeyrix>
Do you know how hard it is to implement a code folding processor for Python?
<Aeyrix>
You can't just look for } or 'end'.
<bnagy>
cool story. Irrelevant.
<Aeyrix>
That alone says something about Python.
<shevy>
didn't guido once write that if he were to redo python, he'd get rid of the mandatory indent?
<noethics>
i dont see how any weakly typed language wins out on a strongly typed language for learning
<Aeyrix>
shevy: IIRC yes.
<bnagy>
I hate python, btw, I'm just saying it's a good teaching language
<Aeyrix>
bnagy: I both agree and disagree.
<bnagy>
you can do functional, OO, it has explicit self (ew) to make receivers clear, it enforces formatting
<shevy>
bnagy I like the ew there
<noethics>
bnagy, youre go is showing
<bnagy>
and you don't have to worry about the memory model yet
<noethics>
your
<Aeyrix>
I agree because it's a high level language. I disagree because its formatting conventions are something that was guaranteed to have come up after a bender.
jpfuentes2 has joined #ruby
<Aeyrix>
selfselfselfselfselfself.self
<Aeyrix>
__init__
<Aeyrix>
mandatory indenting
<Aeyrix>
gross
<noethics>
how does not worrying about the memory model equate to learning good coding practises
Trynemjoel has joined #ruby
<bnagy>
it's too much detail too soon
braincrash has quit [Quit: bye bye]
<bnagy>
there are, actually, people with PhDs in this stuff, you know it's not like everyone just makes up CS education as they go along
<noethics>
it's like yeah let's just get this coad running, who cares about how inefficient it is vs. damn im getting segfaults all day i might have to actually learn how computers work
mark[oz] has quit [Remote host closed the connection]
<shevy>
well, it's an additional layer of complexity when you have to worry about segfaults
<Aeyrix>
noethics: Programming 101 students couldn't even approach caring about efficiency unless it's an assignment scope criterion.
<noethics>
Aeyrix, yeah who's fault is that
<Aeyrix>
That said, the programming 101 course at my university teaches C.
<noethics>
RUBYIST PROPAGANDA
<Aeyrix>
So that's why I fail to see how C isn't a beginner's language.
<shevy>
they could switch to java :>
mark[oz] has joined #ruby
<Aeyrix>
Java's ok.
<noethics>
i think java is dope for learning too
<bnagy>
java is the overwhelming choice :(
<shevy>
guess so... I just dislike it's verbosity
<Aeyrix>
I don't mind it.
<Aeyrix>
But I can totally see how some people would hate it.
<baweaver>
I have a near pathological hatred of Java
<shevy>
baweaver haha :D
<noethics>
the verbosity is a non-issue with good vim macros or just any ide
<baweaver>
Why?
<baweaver>
Hadoop
<bnagy>
hahaha
<baweaver>
noethics: that's crap for a reason.
<baweaver>
Why not just get rid of the verbosity period?
<noethics>
java taught me how to abuse boilerplate
<bnagy>
Hadoop! Solve problems you only wish you had, as inefficiently as possible!
<baweaver>
macros are a bad patch to a worse problem
<noethics>
baweaver, not sure i agree
<baweaver>
Can they be used well? Yes
<noethics>
the ONLY reason people hate on java is the verbosity
<shevy>
noethics and XML for ant-based projects!
<baweaver>
noethics: bull
<bnagy>
that's not the only reason
<noethics>
no one uses ant
<noethics>
gradle is numeta
<noethics>
or the "community is stale"
mrsolo_ has quit [Quit: This computer has gone to sleep]
<noethics>
tell that to jclouds
<noethics>
cassandra, hadoop
<shevy>
https://ant.apache.org/manual/using.html look at the beauty! <script ... >task1.setFoo("bar");</script> now your java will become even more verbose than before
hahuang65 has joined #ruby
<noethics>
shevy, yeah no one uses ant
<baweaver>
XML, Maven, OO to a fault, No functional concepts, design pattern hell, folder nightmares, I can go on for a while
<noethics>
people use gradle
<noethics>
baweaver, java has lambdas
<noethics>
XML isn't a thing anymore
<baweaver>
J8 has a basterdized version, yes.
dudedudeman has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<baweaver>
noethics: Work enterprise
<noethics>
OO to a fault is just some rhetoric i think
<baweaver>
It is
<noethics>
design pattern hell, or "training for the real world"
vikaton has quit []
<noethics>
folder nightmares aka who uses folders
rubie has joined #ruby
<noethics>
the package system is among the best imo
mark[oz] has quit [Remote host closed the connection]
<baweaver>
You must be quite fortunate then. Hadoop is a spawn of satan and I'll be glad never to touch it again
<noethics>
i think it's actually cool to hate java
<noethics>
baweaver, have you ever even used java, be honest
<baweaver>
....did you not read any of that?
<noethics>
used it as in actually written a full codebase
<nickfausnight>
I've heard about fizzbuzz being used in programming interviews but I've never actually met anyone who's actually been asked in an interview to solve it. I'm calling conspiracy
TommyTheKid has quit [Read error: Connection reset by peer]
mark[oz] has joined #ruby
<baweaver>
Hadoop, yes
Alayde has quit [Ping timeout: 265 seconds]
<baweaver>
as well as various other rest services with Jersey, Dagger, Solr, HBase, and a number of other fun ones.
tuelz1 has quit [Ping timeout: 265 seconds]
<baweaver>
nickfausnight: I've seen it used before
<noethics>
hbase is among the most performant dbs
<metallicrwr>
Aeyrix: can you give me a link to a PDF book that's not learn ruby the hard way?
<baweaver>
hbase I don't mind
n80 has joined #ruby
<Aeyrix>
Any book at random, or a specific book?
<baweaver>
hadoop was horrid
<metallicrwr>
Aeyrix: any book at random as long as its for beginners
<noethics>
baweaver, unless you have someone looking over your shoulder you could always use jruby :3
<baweaver>
considering linking to illegal downloads is frowned upon on channel
mark[oz] has quit [Remote host closed the connection]
<baweaver>
Tried
<baweaver>
Also rewrote the entire thing two times in Scala and Clojure respectively to make a point
TommyTheKid has joined #ruby
<noethics>
baweaver, most enterprise is all scala now
<baweaver>
Nope, has to be Java. People only know Java, and no one wants to waste time learning
<noethics>
for like, nuschool java implementors
<noethics>
plus you can integrate scala with java easily
<baweaver>
Scala I can stand.
<noethics>
at no cost
<baweaver>
All the cool kids use Frege though
<metallicrwr>
baweaver: if its copyrighted so I can't have it I'll go to the book store tomorrow if you suggest a good beginners book
<baweaver>
(Haskell on JVM)
mrmargolis has quit [Remote host closed the connection]
<noethics>
when someone tells me they use haskell i just say oh nice i use lua
<shevy>
metallicrwr hmm I don't think it is available free but we live in the torrent age :P I bought it back then as paper hardcopy because I love traditional books
<noethics>
honestly the only thing i do now is audio books
<noethics>
aint no one got time for reading
fgo has joined #ruby
Guest71779 has quit [Changing host]
Guest71779 has joined #ruby
<noethics>
though it's rare to find good programming audiobooks
Guest71779 is now known as nitrix
last_staff has joined #ruby
<noethics>
as you can't really follow along with code examples
LMity has joined #ruby
<shevy>
well in fairness, people still read a lot these days, just that the medium changed. like people in the past sitting in a cafeteria, drinking coffee and reading the newspaper
<baweaver>
I read like a madman. Safari books online is a gold mine
<shevy>
nowadays they use their tiny smartphones
<noethics>
sometimes im skeptical though
<noethics>
a lot of people say they read a lot
<noethics>
it's like wellll do you reaaally or are you just saying that
<noethics>
reading reddit and 4chan doesnt count
<shevy>
haha
webguynow has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
tuelz2 has quit [Ping timeout: 264 seconds]
claptor has quit [Quit: this channel is bakas]
claptor has joined #ruby
<baweaver>
I have to learn on the fly for a lot of things anymore
veduardo has quit [Ping timeout: 256 seconds]
<shevy>
new programming languages?
<baweaver>
on occasion
<baweaver>
like I learned Spark this last weekend to present on it in front of the senior developers here
<shevy>
cool
<baweaver>
Already knew a handful of Scala so wasn't hard
gianlucadv has joined #ruby
<shevy>
"With SPARK 2014, contracts are added to the code to provide additional information regarding what a subprogram actually does."
sleungcy has quit [Quit: Connection closed for inactivity]
<shevy>
ohhh
<shevy>
thought you were resurrecting Ada
yfeldblum has joined #ruby
e1nh4nd3r has quit [Ping timeout: 240 seconds]
<shevy>
well, that spark-apache syntax indeed looks pythonic
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
I already wondered why you would be using "procedure Increment (X : in out Counter_Type)"
maquilas has joined #ruby
<maquilas>
I have this small project I'm working on, and I found that I need to generate provable fair random numbers from a given string seed, so whoever enters the seed will get the exact same number any ideas of how to do this? if it's code it'll be awesome to have it in Ruby, or if it's from online site it'll be awesome if there's an API for it.
pepelui has joined #ruby
vdamewood has joined #ruby
freerobby has joined #ruby
darkf has joined #ruby
<bnagy>
maquilas: is there any security sensitivity to the output?
jenrzzz has quit [Ping timeout: 250 seconds]
<bnagy>
like, is it bad if I can look at some of the numbers and then predict all future numbers from then on, for example?
<maquilas>
bnagy, Yes
<bnagy>
ok then you want a CSPRNG, don't use the ruby builtin or you'll die
mark[oz] has joined #ruby
<bnagy>
how secure are we talking? Good enough for government work or "my billion dollar casino relies on this" ?
ramfjord has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
mark[oz] has quit [Remote host closed the connection]
<bnagy>
you can feed a good block cipher like AES 128 with the PKDF result from the password
<maquilas>
bnagy, No where near billion dollars :P but let's just say secure enough for a smallish "casino"
<bnagy>
it's still only as good as the password, but using scrypt or something will slow down attempts to brute force the seed
<ruboto>
shevy # => undefined method `blank?' for "abc":String (NoMethodError) ...check link for more (https://eval.in/375329)
<harlen>
is datamapper really still alive and worth learning?
olegtc has joined #ruby
doctorly has joined #ruby
noethics has quit [Remote host closed the connection]
<harlen>
used it throwing something quick together in grape. nothing complex. but seems lacking in activity/updates. i wonder if there are better choices for fast/minimal?
noethics has joined #ruby
revath1 has joined #ruby
<shevy>
tenderlove is so funny
<shevy>
"My mind spins off in to thoughts like ?I wonder how RSpec works??, and ?I wonder what my cat is doing??"
x0f has joined #ruby
northfurr has joined #ruby
maquilas has quit [Ping timeout: 272 seconds]
balazs has quit [Remote host closed the connection]
stardiviner has joined #ruby
revath has quit [Ping timeout: 265 seconds]
hasB4K has joined #ruby
hasB4K has joined #ruby
simi has joined #ruby
randomizer has joined #ruby
doctorly has quit [Quit: Lost terminal]
olegtc has quit [Ping timeout: 272 seconds]
jpstokes has quit [Remote host closed the connection]
Cache_Money has joined #ruby
mark[oz] has quit [Remote host closed the connection]
car has quit [Ping timeout: 258 seconds]
A205B064 has joined #ruby
mark06 has joined #ruby
mark[oz] has joined #ruby
doctorly has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
atomi has quit [Quit: new scripts brb]
doctorly has quit [Client Quit]
sigden has quit [Ping timeout: 245 seconds]
atomi has joined #ruby
bkxd has joined #ruby
afrianska has quit [Ping timeout: 276 seconds]
ur5us has quit [Remote host closed the connection]
<TripleK>
If your work allows gun related stuff then yes
<TripleK>
It's not porn or anything gory
djbkd_ has joined #ruby
mrsolo has joined #ruby
<sevenseacat>
so how does it relate to ruby?
<TripleK>
Maybe it could be improved in rails? :)
<sevenseacat>
not a good answer.
djbkd has quit [Remote host closed the connection]
<sevenseacat>
please don't advertise here anymore.
jack_rabbit has joined #ruby
amclain has quit [Quit: Leaving]
<TripleK>
I'm not advertising
<TripleK>
Please look up the definition of advertising
<TripleK>
:)
dgutierrez1287 has quit [Ping timeout: 258 seconds]
<Aeyrix>
mods = btfo
<sevenseacat>
you're not here in an attempt to get us to look at your site?
<sevenseacat>
I'm tired and grumpy and not in the mood for word games.
<TripleK>
I'm here to get judged on the site for its aesthetics and user experience
<sevenseacat>
so, not related to ruby at all
<sevenseacat>
don't advertise here anymore.
<TripleK>
I don't care if you buy something or not... I am not here to sell anyone anything
bkxd has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
bkxd has joined #ruby
<TripleK>
It is related to ruby in the sense that maybe it could be improved in rails. But you're a bit arrogant and somewhat birdbrained to not realize this
greenbagels has quit [Quit: Leaving]
<sevenseacat>
TripleK: don't be rude.
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TripleK>
I came here for an honest opinion and you're being nothing but disrespectful
adefa has joined #ruby
<Aeyrix>
>trying this hard
hmnhf_ has quit [Quit: Konversation terminated!]
<sevenseacat>
if I was being disrepectful, I would have banned you the moment you posted your URL. I simply asked you not to do that.
<sevenseacat>
I even said please!
<harlen>
i looked at your site and it has nothing to do with ruby at all. go on. kick. :)
<Aeyrix>
#ruby in a nutshell.
<Aeyrix>
:^)
kenndel has quit [Ping timeout: 272 seconds]
twinklehood has joined #ruby
hal_9000_ has quit [Ping timeout: 272 seconds]
tubuliferous_ has quit [Ping timeout: 276 seconds]
<sevenseacat>
Aeyrix: you started this.
<Aeyrix>
wtf
starfox_sf has quit [Quit: leaving]
psy_ has joined #ruby
<harlen>
by asking if it was work safe?
<Aeyrix>
Apparently so.
<harlen>
fair call, the domainame sounds like it could be some kind of prophylactic
HotCoder is now known as HotCooter
ta has quit [Remote host closed the connection]
adefa has quit [Ping timeout: 250 seconds]
HotCooter is now known as BadBoy20
* harlen
backs away from the grumpy sevenseacat.
<sevenseacat>
don't call for mod attention if you don't want mods to pay attention.
<shevy>
harlen cats have razor-sharp claws, you should not mess with them
Soda has quit [Remote host closed the connection]
davedev24_ has quit []
twinklehood has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
mark[oz] has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
mark[oz] has joined #ruby
multi_io has quit [Ping timeout: 244 seconds]
rubie has joined #ruby
<certainty>
moin
<sevenseacat>
certainty: bonan matenon
multi_io has joined #ruby
<certainty>
sevenseacat: good morning to you too
<sevenseacat>
:)
jack_rabbit has quit [Ping timeout: 256 seconds]
Tobarja has quit [Quit: Connection closed for inactivity]
Channel6 has quit [Quit: Leaving]
hal_9000_ has joined #ruby
Akagi201 has joined #ruby
revath has joined #ruby
* certainty
has watched an older talk of sandi metz yesterday. "Less". I'm always amazed about how clear cut her thoughts are.
Brozo has quit [Remote host closed the connection]
TripleK has quit [Ping timeout: 246 seconds]
afrianska has joined #ruby
Brozo has joined #ruby
revath1 has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
Brozo has quit [Remote host closed the connection]
djbkd has joined #ruby
affenhoden has quit [Quit: leaving]
chinmay_dd has joined #ruby
Brozo has joined #ruby
codecop has joined #ruby
bayed has joined #ruby
randomizer has joined #ruby
blue_deref has quit [Quit: bbn]
djbkd has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
abuzze has joined #ruby
ahmetkapikiran has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
existensil has quit [Ping timeout: 276 seconds]
random has quit [Ping timeout: 264 seconds]
existensil has joined #ruby
allomov has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
A205B064 has joined #ruby
_ixti_ has quit [Read error: Connection reset by peer]
afrianska has quit [Ping timeout: 256 seconds]
crus has joined #ruby
RegulationD has joined #ruby
_ht has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crus` has quit [Ping timeout: 276 seconds]
mrsolo has joined #ruby
mengu has quit [Ping timeout: 258 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
ogpastaling has joined #ruby
revath1 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
revath has quit [Ping timeout: 250 seconds]
datanoise has quit [Ping timeout: 272 seconds]
afrianska has joined #ruby
ogpastaling has quit [Ping timeout: 265 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
houhoulis has quit [Remote host closed the connection]
choke has joined #ruby
sleungcy has joined #ruby
fujimura has quit [Remote host closed the connection]
XThief has joined #ruby
Obfuscate has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
hal_9000_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
fluter has quit [Ping timeout: 265 seconds]
revath has joined #ruby
fluter has joined #ruby
simi has quit [Ping timeout: 265 seconds]
hal_9000_ has joined #ruby
postmodern has joined #ruby
rubie has quit [Remote host closed the connection]
Scroff has joined #ruby
jespada has quit [Quit: Leaving]
fluter has quit [Max SendQ exceeded]
revath1 has quit [Ping timeout: 256 seconds]
mdz_ has joined #ruby
bigmac_ has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
choke has quit [Ping timeout: 255 seconds]
bigmac_ has joined #ruby
fluter has joined #ruby
mdz_ has quit [Ping timeout: 264 seconds]
afrianska has quit [Ping timeout: 265 seconds]
Obfuscate has joined #ruby
mark[oz] has quit [Remote host closed the connection]
msgodf has joined #ruby
allomov has joined #ruby
starfox_sf has joined #ruby
mark[oz] has joined #ruby
Musashi007 has joined #ruby
IanVorn has joined #ruby
djbkd has quit [Remote host closed the connection]
gauke has joined #ruby
pyo_ has joined #ruby
IanVorn has quit [Client Quit]
skade has joined #ruby
cryptarium has joined #ruby
Scroff has quit [Ping timeout: 272 seconds]
afrianska has joined #ruby
fabrice31 has joined #ruby
northfurr has quit [Quit: northfurr]
sleungcy has quit []
sleungcy has joined #ruby
twinklehood has joined #ruby
sleungcy has quit [Client Quit]
sleungcy has joined #ruby
Ilyes512 has joined #ruby
sleungcy has quit [Client Quit]
sleungcy has joined #ruby
datanoise has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
vire has joined #ruby
fp- has joined #ruby
charliesome has quit [Quit: zzz]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mc_fail has joined #ruby
LMity has quit [Ping timeout: 245 seconds]
bkxd has quit [Ping timeout: 258 seconds]
Brozo has quit [Quit: Leaving...]
lkba has joined #ruby
mark[oz] has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
tmoor has quit [Remote host closed the connection]
lkba_ has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
rdark has joined #ruby
nhhagen has joined #ruby
afrianska has quit [Ping timeout: 246 seconds]
rkazak has quit [Quit: Sleep.....ing....]
datanoise has quit [Ping timeout: 264 seconds]
Mallikarjuna has joined #ruby
<Mallikarjuna>
hi
timonv has joined #ruby
mc_fail has quit [Ping timeout: 265 seconds]
GriffinHeart has joined #ruby
ta has joined #ruby
afrianska has joined #ruby
mc_fail has joined #ruby
allomov has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
psy_ has quit [Ping timeout: 276 seconds]
allomov has joined #ruby
fp- has left #ruby ["Be back later ..."]
psy_ has joined #ruby
aganov has joined #ruby
tibig has quit [Ping timeout: 252 seconds]
hanmac has quit [Ping timeout: 256 seconds]
Iskarlar has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Pupeno has quit [Quit: Leaving...]
baweaver has quit [Remote host closed the connection]
micmus has joined #ruby
Iskarlar has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
<nickfausnight>
Hey Mallikarjuna
Iskarlar has joined #ruby
<Mallikarjuna>
hii
bkxd has joined #ruby
<sandelius>
In AR I delete associated rows like this AccessToken.where(user_id: self.id).destroy_all is there something similar in Sequel?
watchtheblur has quit [Ping timeout: 244 seconds]
vdamewood has quit [Quit: Life beckons.]
afrianska has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
mengu has joined #ruby
hanmac has joined #ruby
fujimura has joined #ruby
jpfuentes2 has joined #ruby
dumdedum has joined #ruby
kerunaru has joined #ruby
Pathfinder has joined #ruby
tubuliferous_ has joined #ruby
fujimura has quit [Read error: Connection reset by peer]
fujimura_ has joined #ruby
tvw has joined #ruby
rubie has joined #ruby
nhhagen has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
sn4p3 has joined #ruby
aeontech has quit [Quit: aeontech]
tubuliferous_ has quit [Ping timeout: 265 seconds]
nhhagen has joined #ruby
haxrbyte has joined #ruby
<maloik>
morning!
nedp has quit [Ping timeout: 240 seconds]
rubie has quit [Ping timeout: 265 seconds]
iamninja has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<maloik>
sandelius: I don't use Sequel myself, but looking at their wiki it should be easy to figure out :-) should be something like posts = DB[:posts].where(...).delete
<sandelius>
maloik found it but thx.
GriffinHeart has quit [Remote host closed the connection]
revath has left #ruby [#ruby]
Mon_Ouie has joined #ruby
k3asd` has joined #ruby
mister_solo has joined #ruby
joneshf-laptop has quit [Read error: No route to host]
bruno- has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
livathinos has joined #ruby
jgt has joined #ruby
ndrei has joined #ruby
sn4p3 has quit [Ping timeout: 272 seconds]
krz has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 276 seconds]
iamninja has joined #ruby
Langlands has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
pepelui has quit [Quit: Leaving.]
mikecmpbll has joined #ruby
GriffinHeart has joined #ruby
_seanc_ has quit [Quit: _seanc_]
starfox_sf has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
Scroff has joined #ruby
chussenot has joined #ruby
oo_ has joined #ruby
michael_mbp has joined #ruby
Brozo has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SalexW has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
joonty has joined #ruby
yfeldblum has joined #ruby
angus has joined #ruby
Scroff has quit [Remote host closed the connection]
c0m0 has joined #ruby
simi has joined #ruby
arup_r has joined #ruby
RegulationD has joined #ruby
tomkadwill has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Scroff has joined #ruby
hubcaps has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
aeontech has joined #ruby
Igorshp has joined #ruby
wquebit has joined #ruby
GriffinHeart has joined #ruby
ur5us has joined #ruby
CloCkWeRX1 has joined #ruby
tomkadwill has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
RegulationD has quit [Ping timeout: 255 seconds]
chthon has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
leat has quit [Remote host closed the connection]
chussenot has joined #ruby
leat has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
Palmer11 has quit [Quit: Palmer11]
charliesome has joined #ruby
j4cknewt has quit [Remote host closed the connection]
rbowlby has joined #ruby
AlphaAtom has joined #ruby
Scrofff has joined #ruby
yeticry has joined #ruby
aapole has joined #ruby
Brozo has quit [Quit: Leaving...]
Scroff has quit [Ping timeout: 240 seconds]
ahmetkapikiran has joined #ruby
Zai00 has joined #ruby
kurtec has joined #ruby
pyo_ has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
iamninja has quit [Read error: Connection reset by peer]
terlar has quit [Ping timeout: 240 seconds]
leat has quit [Ping timeout: 264 seconds]
Bertg has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bertg has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
<Diabolik>
modules should only have behavioural methods, whereas classes should have data input/output
<Diabolik>
is that correct?
leat has joined #ruby
leat has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Igorshp has joined #ruby
oo_ has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
leat has joined #ruby
Igorshp has joined #ruby
michael_mbp has joined #ruby
<jhass>
I guess one could have that standpoint, but I don't think it's useful as a dogma
<bnagy>
modules are bags of code, classes are templates for objects that have state
<bnagy>
so if you find yourself putting ivars in your modules or having classes with nothing but class methods then maybe reconsider your path
<jhass>
true, as a rule of thumb. I'd argue that sometimes it is useful to have a module that depends on state/data of the class it's included into and even modifies it, though I'd probably go through methods the class needs to provide, not ivars
<Diabolik>
i still don't understand why this doesn't iterate to infinity
<jhass>
notice how in the second example only 2 and 4 is printed
<jhass>
whereas in the first 6 is printed too
<jhass>
in the first example the map runs through the entire collection, the second example changes runs the entire pipeline for each element individually
Pathfinder has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
<jhass>
s/changes //
<Diabolik>
ah
<Diabolik>
i understand
<Diabolik>
thanks jhass
<jhass>
yw
leat has quit [Remote host closed the connection]
leat has joined #ruby
chinmay_dd has joined #ruby
arup_r has quit [Remote host closed the connection]
mc_fail has quit [Ping timeout: 255 seconds]
DexterLB has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
Musashi007 has quit [Quit: Musashi007]
DEA7TH_ has joined #ruby
chinmay_dd has quit [Ping timeout: 240 seconds]
revath1 has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
ledestin has quit [Read error: Connection reset by peer]
chthon has quit [Quit: Ex-Chat]
sandstrom has joined #ruby
zipace has quit [Ping timeout: 244 seconds]
roberto2 has joined #ruby
wquebit has quit [Quit: Page closed]
Mallikarjuna has quit [Quit: Page closed]
mikecmpbll has joined #ruby
<roberto2>
ciaooo
Igorshp has quit [Remote host closed the connection]
roberto2 has quit [Client Quit]
aapole has quit [Ping timeout: 272 seconds]
roberto2 has joined #ruby
roberto2 has quit [Client Quit]
sleungcy has quit [Quit: Connection closed for inactivity]
Igorshp has quit [Remote host closed the connection]
revath1 has quit [Ping timeout: 244 seconds]
adefa has joined #ruby
arup_r has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
A205B064 has quit [Ping timeout: 276 seconds]
tubuliferous_ has quit [Ping timeout: 264 seconds]
edwinvdgraaf has joined #ruby
nonparfumee has joined #ruby
jpfuente_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Read error: Connection reset by peer]
adefa has quit [Ping timeout: 258 seconds]
CloCkWeRX has joined #ruby
aeontech has quit [Quit: aeontech]
fujimura_ has quit [Remote host closed the connection]
<jgt>
Today is a Beautiful Day to Ruby.
<adaedra>
tbf, yesterday was also one.
<jgt>
oh, I so agree
<jgt>
Sadly, yesterday I mostly JavaScripted and Scalad.
edwinvdg_ has joined #ruby
<adaedra>
It happens
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has joined #ruby
josh has joined #ruby
edwinvdgraaf has quit [Ping timeout: 258 seconds]
josh is now known as Guest80980
brain_shim has quit [Ping timeout: 256 seconds]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kurtec has quit [Ping timeout: 272 seconds]
Scroff has joined #ruby
noname has quit [Ping timeout: 256 seconds]
SalexW has quit []
noname1 has quit [Ping timeout: 265 seconds]
hectortrope has joined #ruby
starfox_sf has joined #ruby
Scroff_ has joined #ruby
postmodern has quit [Quit: Leaving]
nonparfumee has joined #ruby
fujimura has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
Scroff has quit [Ping timeout: 256 seconds]
Scrofff has quit [Ping timeout: 264 seconds]
lapideviridi has joined #ruby
leat has quit [Remote host closed the connection]
tomkadwill has joined #ruby
Lapide has joined #ruby
leat has joined #ruby
starfox_sf has quit [Ping timeout: 245 seconds]
tomkadwill has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Lapide has quit [Client Quit]
ponga has joined #ruby
oo_ has joined #ruby
lapide_viridi has quit [Ping timeout: 272 seconds]
lapideviridi has quit [Ping timeout: 245 seconds]
nhhagen has quit [Remote host closed the connection]
platzhirsch has joined #ruby
axl_ has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
DexterLB has joined #ruby
charliesome has quit [Quit: zzz]
lapide_viridi has joined #ruby
huddy has joined #ruby
noname1 has joined #ruby
charliesome has joined #ruby
haraoka has quit [Ping timeout: 244 seconds]
leat has quit [Remote host closed the connection]
noname has joined #ruby
leat has joined #ruby
pikos has joined #ruby
datanoise has joined #ruby
nhhagen has joined #ruby
RegulationD has joined #ruby
olistik has joined #ruby
olegtc has joined #ruby
randomizer has quit [Ping timeout: 250 seconds]
stamina has joined #ruby
chinmay_dd has joined #ruby
mister_s_ has joined #ruby
tmadsen has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
datanoise has quit [Ping timeout: 244 seconds]
tmadsen has left #ruby [#ruby]
mengu has joined #ruby
mister_solo has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
axl_ has quit [Remote host closed the connection]
lapide_viridi has quit [Quit: Leaving]
ledestin has joined #ruby
livathinos has quit [Ping timeout: 276 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
Sevelia has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
caitlinb has joined #ruby
Zai00 has quit [Quit: Zai00]
<caitlinb>
Hello. I have a ruby in /opt/splat/embedded/bin/ruby which i can install gems into with /opt/splat/embedded/bin/ruby. I have another linux host on which i don’t want to install a system ruby or any compilers. I’m looking for a method to wrap up the now compiled ruby to install on the other host. Is that something I can do?
senayar has joined #ruby
senayar has joined #ruby
<caitlinb>
i’ve looked at rake and gem-compiler nether of which seem to do what i expect
GriffinHeart has joined #ruby
Jandre has quit [Ping timeout: 272 seconds]
<jhass>
if you have the same dynamic library versions on the target you should be able to copy that over
<jhass>
else look into setting up something like traveling ruby
<jhass>
oh, assuming /opt/splat/embedded contains ruby and nothing else I guess
yardenbar has joined #ruby
leat has joined #ruby
<caitlinb>
it’s someone else’s ruby app
nhhagen has quit [Remote host closed the connection]
<caitlinb>
sensu, fwiw
zotherstupidguy has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
toretore has joined #ruby
haxrbyte has joined #ruby
leat has joined #ruby
edwinvdgraaf has joined #ruby
jenrzzz has joined #ruby
Musashi007 has joined #ruby
haxrbyte has quit [Read error: No route to host]
haxrbyte has joined #ruby
centrx has joined #ruby
zotherstupidguy has quit [Client Quit]
skyrocker has joined #ruby
Sevelia has joined #ruby
zotherstupidguy has joined #ruby
skyrocker has left #ruby [#ruby]
mister_s_ has quit [Quit: So long, and thanks for all the fish!]
jeeves555 has joined #ruby
Rickmasta has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
troyready has quit [Ping timeout: 264 seconds]
mister_solo has joined #ruby
edwinvdg_ has joined #ruby
DexterLB has quit [Ping timeout: 240 seconds]
nofxx_ has quit [Ping timeout: 264 seconds]
Akagi201 has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
troyready has joined #ruby
leat has quit [Remote host closed the connection]
Sevelia has quit [Ping timeout: 276 seconds]
Ilyes512 has joined #ruby
leat has joined #ruby
mike___1234 has quit [Ping timeout: 244 seconds]
mike___1234 has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
FernandoBasso has joined #ruby
AlphaAtom has joined #ruby
tmadsen has joined #ruby
sandelius has joined #ruby
maxshelley has joined #ruby
Ariadeno has joined #ruby
sdothum has joined #ruby
ndrei has joined #ruby
FernandoBasso has quit [Client Quit]
sdothum has quit [Client Quit]
haxrbyte has joined #ruby
chipotles has joined #ruby
FernandoBasso has joined #ruby
sdothum has joined #ruby
nhhagen has joined #ruby
TinkerTyper has quit [Ping timeout: 272 seconds]
senayar has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
sdothum has quit [Client Quit]
<izzol>
I see that since ruby 2.1 I can use: private def {name}
<apeiros>
yupp
<izzol>
but it's better to use in the end of the class (private :method_one, :method_two)
fabrice31 has quit [Remote host closed the connection]
<izzol>
or the new way? ;-)
haxrbyte has quit [Client Quit]
<izzol>
the first one sounds like a java
<universa1>
izzol: i personaly like: public methods private; all private methods following; end # end of class
<apeiros>
private *names is backwards compatible. besides that, they're equivalent
nhhagen has joined #ruby
<centrx>
right, using the section method I would think is best
<apeiros>
i.e. it's only a style question
<canton7>
private *names does mean you need to visit 2 places in code to see if a method is private or not, which imo is a bad thing
<centrx>
but I don't use private
<centrx>
Developers should be on top of it!
<universa1>
whaaaaaaaaat?
<apeiros>
I use private, knowing that there's #send
<apeiros>
anybody who uses a private method knows that they're on their own. that the signature may change any time.
poguez_ has quit [Quit: Connection closed for inactivity]
<apeiros>
a public method is a promise: I will do my best to keep that public method compatible.
allcentury has joined #ruby
sdothum has joined #ruby
t_ has quit [Read error: Connection reset by peer]
mister_s_ has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
<izzol>
ok :)
<jgt>
can Rake tasks be expressed in a single line?
<universa1>
jgt: yes.
<universa1>
does it make sense? no.
<jgt>
universa1: how?
scripore has joined #ruby
<jgt>
and how can you say it doesn’t make sense if you have absolutely zero context?
<jhass>
jgt: sed s/\n/;/
<universa1>
task :foo; raise "i'm doing something stupid"; end
t_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<universa1>
jgt: ohh oneliners in 99% of the cases make no sense...
<jgt>
“There are no stupid questions, only a guy on IRC being a prick.”
mister_solo has quit [Ping timeout: 256 seconds]
<universa1>
just because it is one line, it is not better to read, ...
<apeiros>
jgt: watch your language
<universa1>
jgt: then provide context?
vikaton has joined #ruby
<jgt>
my task delegates to a class that does that actual work
<jgt>
since classes are easier to test
yqt has joined #ruby
<universa1>
jgt: so? what is the benefit of a oneliner rake task instead of a 3 line rake task?
<jgt>
and the task only creates an instance of a class and provides a filename to construct it with
leat has quit [Remote host closed the connection]
<jgt>
the benefit becomes obvious when there are about 100 of these task
<jgt>
s/task/tasks/
<jhass>
jgt: look at how Rake::TestTask is built
<universa1>
well your code probably has other problems, if you have 100 tasks... ...but again, no way to tell actually, since no context ;)
senayar has quit [Remote host closed the connection]
<jhass>
I'd go for that approach, you'll likely be able to package it up into a base class/module
<jgt>
universa1: you’re absolutely right
<universa1>
jhass: yeah, sounds like something reasonable
chussenot has quit [Quit: chussenot]
<jgt>
jhass: thanks
phutchins has joined #ruby
darkf_ has joined #ruby
darkf_ has quit [Changing host]
darkf_ has joined #ruby
jacaho0 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcaho has quit [Ping timeout: 256 seconds]
jeeves555 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
segfalt has quit [Quit: segfalt]
nhhagen has quit [Remote host closed the connection]
DexterLB has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat has joined #ruby
mdz_ has joined #ruby
fujimura has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
ringarin has quit [Read error: Connection reset by peer]
leat has joined #ruby
rodfersou has joined #ruby
mdz_ has quit [Ping timeout: 244 seconds]
mengu has quit [Remote host closed the connection]
fujimura has joined #ruby
nfk|laptop has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
nfk has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
fujimura has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
neanderslob has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
<jhass>
that could be a fun gem actually, some DSL on top of rake that defines tasks that do nothing but delegate to a class, class FooTask; include RakeClassTask; default_name :foo; default_namespace :bar; default_dependencies :baz; body do |params| ... end; end; Rakefile: RakeClassTask.define_all; or FooTask.define(:another_name => :other_deps); tests: expect { FooTask.new.body }.to fail
Rickmasta has joined #ruby
DEA7TH_ has quit [Ping timeout: 265 seconds]
nhhagen has joined #ruby
sandstrom has joined #ruby
leat has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
SShrike has joined #ruby
hagabaka has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
leat has joined #ruby
darkf_ is now known as darkf
MasterPiece has joined #ruby
<ljarvis>
fun you say
RoryHughes has quit [Ping timeout: 265 seconds]
teotwaki has quit [Ping timeout: 265 seconds]
nhhagen has joined #ruby
RoryHughes has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
SShrike has quit [Quit: WeeChat 1.2]
iooner has quit [Ping timeout: 265 seconds]
iooner has joined #ruby
adefa has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
teotwaki has joined #ruby
joneshf-laptop has quit [Ping timeout: 264 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
ur5us has quit [Remote host closed the connection]
xxneolithicxx has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
t_ has joined #ruby
Scroff has quit [Ping timeout: 250 seconds]
starfox_sf has quit [Ping timeout: 265 seconds]
ahmetkapikiran has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Scroff has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackoperat has quit [Remote host closed the connection]
senayar has joined #ruby
Scrofff has quit [Ping timeout: 272 seconds]
veleno has joined #ruby
leat has quit [Ping timeout: 272 seconds]
<veleno>
hi. what is the suggested way to access a MySQL database with Ruby? is RDBI the most up-to-date library ? we used to rely on dbd-mysql but it seems to be abandoned since 5 years now...
mister_s_ has quit [Quit: So long, and thanks for all the fish!]
DoubleMalt has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
leat has joined #ruby
mister_solo has joined #ruby
FernandoBasso has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
nvll1 is now known as nvll
Mon_Ouie has quit [Ping timeout: 250 seconds]
jhooker has joined #ruby
rovnero has joined #ruby
fujimura has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
delianides has quit [Ping timeout: 252 seconds]
serivich has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
allcentury has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
Zai00 has joined #ruby
fujimura has quit [Ping timeout: 240 seconds]
frank_o has joined #ruby
[k- has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
nhhagen has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
DoubleMalt has joined #ruby
chussenot has joined #ruby
mister_solo has quit [Ping timeout: 272 seconds]
maxshelley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
victorkohl has joined #ruby
allcentury has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
nhhagen has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sirrr has quit [Quit: Leaving]
_blizzy_ has joined #ruby
Sirrr has joined #ruby
rubie has quit [Remote host closed the connection]
randomizer has quit [Read error: Connection reset by peer]
nickfausnight has quit [Quit: Connection closed for inactivity]
jwaldrip_ has joined #ruby
krz has joined #ruby
n80 has joined #ruby
pikos has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
Flemzord has joined #ruby
nhhagen has quit [Remote host closed the connection]
<Flemzord>
Hello
<Darkwater>
hi
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Flemzord>
I have a communication problem between gem and ruby. I install my gem via gem install ruby gold said she did not install. However I can see my gem with gem list, have you any idea?
<Flemzord>
I am French, not good in English :(
scripore has quit [Quit: This computer has gone to sleep]
jwaldrip_ has quit [Ping timeout: 258 seconds]
scripore has joined #ruby
<jhass>
Flemzord: ruby -v vs gem env, which ruby versions are reported?
<veleno>
though it modifies the class of the object, not the single object. right ?
<bnagy>
no
malconis has joined #ruby
<bnagy>
well.. it doesn't modify A if that's what you mean
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<bnagy>
it modified what mostly people call the singleton class of small-a the instance
dorei has joined #ruby
<bnagy>
which is just a kind of fake class that hangs around so you can do exactly this kind of stuff to it
datanoise has joined #ruby
<bnagy>
well fake class is a baad phrase, ignore that :)
riotjones has quit [Quit: Leaving...]
zz_Outlastsheep is now known as Outlastsheep
<veleno>
ok i see. thanks for the explanation. in this sense then, it seems to be safe and exactly what I need to speed up the porting to a new lib without changing code everywhere
<veleno>
or at least to quickly test it
quimrstorres has quit [Remote host closed the connection]
someword has quit [Quit: Leaving.]
<bnagy>
veleno: you can also monkey-patch A if that makes more sense
<bnagy>
you can re-open A in your own code and add your new method, now all new instances _will_ have it
zipace has joined #ruby
zipace has joined #ruby
msnyon has joined #ruby
<bnagy>
we have a million ways to screw with other people's code at runtime ;)
<tuelz2>
if I'm reading correctly you just want to send a message to do when someone sends it to run? Why not just define so to send messages to run?
mujou has joined #ruby
<tuelz2>
or I think I said that backwards, but yeah basically what bnagy is suggesting with 'monkey patching'
CloCkWeRX has joined #ruby
<tuelz2>
although if this is long term - I would say refactoring now is your best option. It's never going to get easier to refactor
datanoise has quit [Ping timeout: 246 seconds]
tjbiddle has joined #ruby
dudedudeman has joined #ruby
allomov has joined #ruby
sankaber has quit [Ping timeout: 244 seconds]
Zenebatos has joined #ruby
Zenebatos has quit [Max SendQ exceeded]
nhhagen has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
livathinos has joined #ruby
d[^_^]b has quit [Disconnected by services]
mary5030 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
Zenebatos has joined #ruby
Zenebatos has quit [Max SendQ exceeded]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
angus has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
arup_r has quit [Remote host closed the connection]
leafybasil has joined #ruby
ereslibre has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
mrmargolis has quit [Remote host closed the connection]
Zenebatos has joined #ruby
Zenebatos has quit [Max SendQ exceeded]
leafybasil has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 244 seconds]
d[^_^]b has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
mrmargolis has joined #ruby
yqt has joined #ruby
sigden has joined #ruby
senayar has quit [Remote host closed the connection]
sktkbk has joined #ruby
I has joined #ruby
tagrudev has quit [Remote host closed the connection]
asuka has left #ruby ["WeeChat 1.1.1"]
tomkadwill has quit [Remote host closed the connection]
I is now known as Guest1526
jenrzzz has quit [Ping timeout: 240 seconds]
nhhagen has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
mrsolo has joined #ruby
fujimura has joined #ruby
ahmetkapikiran has joined #ruby
wqubit has quit [Quit: wqubit]
fujimura has quit [Remote host closed the connection]
varunwachaspati has quit [Quit: Leaving]
varunwachaspati has joined #ruby
charliesome has joined #ruby
ferr has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
but3k4 has joined #ruby
sktkbk has quit [Ping timeout: 252 seconds]
iamninja has quit [Read error: Connection reset by peer]
Zenebatos has joined #ruby
Zenebatos has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
iamninja has joined #ruby
byprdct has joined #ruby
senayar has joined #ruby
n80 has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
nonparfumee has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
datanoise has joined #ruby
sigden has quit [Ping timeout: 272 seconds]
Zenebatos has joined #ruby
Zenebatos has quit [Max SendQ exceeded]
Agoldfish has joined #ruby
sktkbk has joined #ruby
<bmurt>
anyone have a suggestion on debugging a redis connection issue?
griffindy has joined #ruby
<dudedudeman>
morning, rubyists
<bmurt>
im still new to ruby and redis gem
tmadsen has left #ruby [#ruby]
<bmurt>
but im ending up with: redis = Redis.new(:host => "172.16.128.36", :port => 6379) followed by a redis.connected? returns false
nhhagen has joined #ruby
<bmurt>
telnet to that ip/port works
failshell has joined #ruby
iamjarvo has joined #ruby
d[^_^]b has quit [Disconnected by services]
nickfausnight has joined #ruby
lapide_viridi has joined #ruby
nhhagen has quit [Remote host closed the connection]
varunwachaspati has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
kinduff has joined #ruby
whippythellama has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
bricker has quit [Ping timeout: 255 seconds]
jpfuentes2 has joined #ruby
scripore has joined #ruby
balazs has quit [Remote host closed the connection]
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
adefa has joined #ruby
tennis_ has joined #ruby
mase-chatter has quit [Quit: Leaving]
mase-chatter has joined #ruby
meph has joined #ruby
quimrstorres has joined #ruby
tubuliferous_ has quit [Ping timeout: 245 seconds]
<dudedudeman>
if i have a an array of numbers in a random order, how could i print them out in descending/ascending order?
serivich has quit [Ping timeout: 244 seconds]
<havenwood>
dudedudeman: sort em
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
rippa has joined #ruby
XThief has joined #ruby
scripore has quit [Client Quit]
ixti has joined #ruby
<Andriamanitra>
.sort
fabrice31_ has joined #ruby
<dudedudeman>
ah, mmk
allomov has quit [Remote host closed the connection]
tennis_ has quit [Remote host closed the connection]
ogpastaling has joined #ruby
<dudedudeman>
one more silly question
rkazak has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
tennis_ has joined #ruby
<dudedudeman>
let's say i need to .sort that array, and then .to_s it, which one comes first? I'm thinking the .sort happens first, then the .to_s?
adefa has quit [Ping timeout: 250 seconds]
<apeiros>
dudedudeman: yupp
<apeiros>
otherwise you'd call .sort on a string
<apeiros>
and string doesn't have .sort
_seanc_ has joined #ruby
symm- has joined #ruby
quimrstorres has quit [Ping timeout: 265 seconds]
ahmetkapikiran has joined #ruby
<havenwood>
dudedudeman: Do you mean #to_s the Array itself or its elements?
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
<dudedudeman>
hmm. it's elements
fabrice31 has quit [Ping timeout: 272 seconds]
<dudedudeman>
actually, no. the array itself
timonv has joined #ruby
KoolKidzKlub has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
Ilyes512 has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
but3k4_ has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
pyo_ has quit []
lordkryss has joined #ruby
d[^_^]b has joined #ruby
segfalt has quit [Quit: segfalt]
d[^_^]b has quit [Disconnected by services]
segfalt has joined #ruby
aapole has joined #ruby
d10n-work has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
nonparfumee has joined #ruby
d[^_^]b has joined #ruby
<yorickpeterse>
jebus this channel is way too active
fabrice31 has joined #ruby
d[^_^]b has quit [Disconnected by services]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kinduff has quit [Ping timeout: 272 seconds]
<yorickpeterse>
690-something unread messages
tennis_ has quit [Remote host closed the connection]
tennis_ has joined #ruby
claw has quit [Ping timeout: 252 seconds]
dfinninger has quit [Remote host closed the connection]
claw_ has joined #ruby
quimrstorres has joined #ruby
Endretoft has joined #ruby
d[^_^]b has joined #ruby
<yorickpeterse>
also hai
KoolKidzKlub has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
d[^_^]b has quit [Disconnected by services]
<Endretoft>
d
Endretoft is now known as Master44
fujimura has joined #ruby
<hanmac1>
shevy i didnt noticed at once ... but this channel is OVER 1000! ;P
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has quit [Quit: Leaving]
<Master44>
yes this channel its best
<Master44>
learnyou that ;P
ebbflowgo has joined #ruby
juanpaucar has quit [Remote host closed the connection]
Guest87627 has quit [Ping timeout: 272 seconds]
d[^_^]b has joined #ruby
tkuchiki has joined #ruby
k3asd`_ has joined #ruby
juanpaucar has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
j4cknewt has joined #ruby
starfox_sf has joined #ruby
d[^_^]b has quit [Disconnected by services]
charliesome has quit [Quit: zzz]
quimrstorres has quit [Ping timeout: 265 seconds]
mrsolo has joined #ruby
fujimura has quit [Ping timeout: 245 seconds]
k3asd` has quit [Ping timeout: 240 seconds]
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
Master44 has quit [Quit: Lost terminal]
Kricir has quit [Remote host closed the connection]
fantazo has joined #ruby
Iskarlar has joined #ruby
darkf has quit [Quit: Leaving]
d[^_^]b has joined #ruby
Kricir has joined #ruby
d[^_^]b has quit [Disconnected by services]
casadei_ has joined #ruby
Kricir has quit [Remote host closed the connection]
sigden has joined #ruby
starfox_sf has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
Kricir has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
casadei has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
davedev2_ has joined #ruby
d[^_^]b has joined #ruby
balazs has joined #ruby
d[^_^]b has quit [Disconnected by services]
jgpawletko has joined #ruby
sandstrom has joined #ruby
Kricir has joined #ruby
but3k4_ has quit [Read error: Connection reset by peer]
allomov has joined #ruby
Torrieri has quit [Quit: Be back later ...]
gambl0re has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
but3k4 has joined #ruby
intinig has quit [Remote host closed the connection]
d[^_^]b has joined #ruby
livathinos has quit []
d[^_^]b has quit [Disconnected by services]
cmisenas has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d[^_^]b has joined #ruby
XThief has quit [Quit: XThief]
d[^_^]b has quit [Disconnected by services]
_seanc_ has quit [Quit: _seanc_]
scripore has joined #ruby
hectortrope has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
jeeves555 has joined #ruby
k3asd`_ has quit [Quit: leaving]
ringarin has joined #ruby
livathinos has joined #ruby
d[^_^]b has joined #ruby
k3asd` has joined #ruby
dfinninger has joined #ruby
d[^_^]b has quit [Disconnected by services]
Kricir has quit [Remote host closed the connection]
Cache_Money has joined #ruby
TinkerTyper has quit [Ping timeout: 265 seconds]
TinkerTyper has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
aganov has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
balazs has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
<shevy>
hanmac1 yeah, jhass killed off #ruby-lang
livathinos has quit []
<twinklehood>
quit
twinklehood has quit [Quit: Lost terminal]
mrmargol_ has quit [Ping timeout: 244 seconds]
<shevy>
rescue
<hanmac1>
w00t ? ;P jhass got #ruby-lang trolled to much?
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
dhjondoh has quit [Quit: dhjondoh]
<jhass>
hanmac1: I just wanted a 1k users chan for Ruby ;)
jeeves555 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has joined #ruby
krz has joined #ruby
atomical has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
mrmargolis has joined #ruby
revoohc has joined #ruby
d[^_^]b has joined #ruby
<_blizzy_>
oh, I never posted the gem I made. it's call hyoka. It allows you to eval code in multiple languages using eval_in https://github.com/NotBlizzard/hyoka
doctorly has joined #ruby
d[^_^]b has quit [Disconnected by services]
XThief has joined #ruby
rcvalle has joined #ruby
atomical_ has quit [Ping timeout: 248 seconds]
spyderman4g63 has quit [Remote host closed the connection]
rocknrol_ has joined #ruby
<jhass>
_blizzy_: you should move the LANG and URL constants into your gems namespace
<_blizzy_>
jhass, oh, ok.
<jhass>
_blizzy_: if not -> unless
rocknrollmarc has quit [Read error: Connection reset by peer]
<goseek>
Yeah, it's still saying 'implicit conversion of Hash into integer. I'm going to paste this to gist if anyone wants to take a little more look at it to point out where I'm being blind
djbkd has quit [Remote host closed the connection]
d[^_^]b has quit [Disconnected by services]
paulcsmith has quit [Quit: Be back later ...]
balazs_ has joined #ruby
XThief has joined #ruby
aeontech has quit [Quit: aeontech]
Sirrr has quit [Quit: Leaving]
<eam>
goseek: including the error text makes it very easy to troubleshoot (it'll have a line number)
vickleton has joined #ruby
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
<eam>
you can "add another file" to your gist with the error output
<goseek>
One sec
n80 has joined #ruby
XThief has quit [Client Quit]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* jhass
bets on the array of hashes that wants to be a single hash
lkba has quit [Ping timeout: 265 seconds]
dfinninger has quit [Remote host closed the connection]
d[^_^]b has quit [Disconnected by services]
mdz_ has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
d[^_^]b has joined #ruby
aeontech has joined #ruby
<existensil>
indeed. Map#next_scene tries to treat @@scenes as a hash when its an array
sktkbk has quit [Quit: This computer has gone to sleep]
failshell has quit [Remote host closed the connection]
sarkyniin has joined #ruby
balazs_ has quit [Ping timeout: 265 seconds]
mdz_ has quit [Remote host closed the connection]
d[^_^]b has quit [Disconnected by services]
<goseek>
updated gist with error
ghr has joined #ruby
d[^_^]b has joined #ruby
<jhass>
from random_room_initialize_xp1.rb:87:in `next_scene' confirms it
<jhass>
that's the line you should look at
veleno has joined #ruby
<jhass>
and as said reconsider the datastructure you use for @@scenes
aapole has joined #ruby
paulcsmith has joined #ruby
<goseek>
Alright, I'll try changing that back to a hash
d[^_^]b has quit [Disconnected by services]
<veleno>
hello. would anyone suggest how to port this simple line of ruby code that uses the old ruby/dbi lib to the newer Sequel https://gist.github.com/vschiavoni/323ee854bd18a1af34df ? i’, not sure about how to translate the easily translate the ‘options’ hashmap
<goseek>
it was a hash but then I couldn't figure out how to reject :finished and :death and then sample what was left
<existensil>
also reconsider how you are looking up values in that data structure. @@scenes[@start_scene] is what #opening_scene does and that doesn't make any sense given that @start_scene is a value, not a key
Hijiri has quit [Quit: WeeChat 1.0.1]
d[^_^]b has joined #ruby
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
<goseek>
I appreciate everyone's input - I'm going to keep working on this
juanpaucar has quit [Remote host closed the connection]
<jhass>
goseek: Hash#each yields an array, [key, value]
<goseek>
For anyone interested, I'm taking on a documented journey into 1,000 hours of Ruby on Rails. I keep detailed study logs. If you write tutorials, it might be useful to you. I'll be posting what I'm struggling with
<existensil>
goseek: if @@scenes is a hash, then @@scenes.keys.reject{|scene| [:death, :finished].member?(scene) }.sample
tibig has joined #ruby
<existensil>
no need for an array
d[^_^]b has quit [Disconnected by services]
someword1 has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
<existensil>
this would also work: @@scenes.reject{|scene, value| [:death, :finished].member?(scene) }.sample
d[^_^]b has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
__butch__ has quit [Remote host closed the connection]
__butch__ has joined #ruby
troyready has quit [Ping timeout: 255 seconds]
__butch__ has quit [Client Quit]
d[^_^]b has quit [Disconnected by services]
someword has quit [Ping timeout: 272 seconds]
jackjackdripper has joined #ruby
skade has joined #ruby
ramfjord has joined #ruby
d[^_^]b has joined #ruby
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
goseek: if you got it to work and want a style review ping back, Zed's style unfortunately is stuck somewhere between 2008 and Python
bosma_ has joined #ruby
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
bosma has quit [Ping timeout: 244 seconds]
<goseek>
I've been trying to get this to work for about three days but I'm not going to give up. When I get it or something like it working, I'll come back and ask you guys how I could have done it cleaner
platzhirsch has quit [Quit: Leaving.]
blueOxigen has quit [Ping timeout: 244 seconds]
balazs_ has joined #ruby
troyready has joined #ruby
__butch__ has joined #ruby
d[^_^]b has quit [Disconnected by services]
<goseek>
thanks everyone
<dfockler>
jhass: that's my new favorite description of a programming style
<havenwood>
goseek: Good idea, this is a good place to get a code review! :)
MasterPiece has quit [Remote host closed the connection]
d[^_^]b has joined #ruby
Zai00 has quit [Quit: Zai00]
<goseek>
Is Zed ever on here?
tomkadwill has quit [Remote host closed the connection]
mockra has quit []
<jhass>
I'd be surprised
__butch__ has quit [Client Quit]
d[^_^]b has quit [Disconnected by services]
__butch__ has joined #ruby
d[^_^]b has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
bosma_ is now known as bosma
<goseek>
Thanks again, I'm out of here.
goseek has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.0.1]
djbkd has joined #ruby
mbeasley has joined #ruby
d[^_^]b has quit [Disconnected by services]
jgt has joined #ruby
mbeasley has left #ruby [#ruby]
d[^_^]b has joined #ruby
Scrofff has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
Torrieri has quit [Quit: Be back later ...]
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
mikecmpbll has joined #ruby
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
langland_ has quit [Ping timeout: 256 seconds]
rdark has quit [Quit: leaving]
n008f4g_ has quit [Ping timeout: 255 seconds]
d[^_^]b has quit [Disconnected by services]
mrsolo has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
d[^_^]b has joined #ruby
mister_solo has joined #ruby
mister_solo has quit [Client Quit]
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
OtterCoder has quit [Quit: No Ping reply in 180 seconds.]
Porfa has joined #ruby
<Porfa>
hello guys!
d[^_^]b has quit [Disconnected by services]
lordkryss has quit [Quit: Connection closed for inactivity]
n80 has quit [Quit: n80]
casadei_ has quit [Remote host closed the connection]
<Porfa>
I'm looking for a gem to help me out sorting a email list i have.. i found the email_veracity gem but it hasn't been updated in a while… I'm wondering if anyone can point me to a better gem :)
d[^_^]b has joined #ruby
OtterCoder has joined #ruby
Langlands has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
<jhass>
Mail::Address from the mail gem perhaps?
d[^_^]b has quit [Disconnected by services]
Musashi007 has joined #ruby
d[^_^]b has joined #ruby
yekta has joined #ruby
leat has quit [Remote host closed the connection]
failshell has joined #ruby
spyderman4g63 has joined #ruby
x1337807_ has joined #ruby
troyready has quit [Ping timeout: 256 seconds]
joaomdmoura has joined #ruby
x1337807_ has quit [Max SendQ exceeded]
d[^_^]b has quit [Disconnected by services]
<yekta>
Hello, can someone help me debug why every ruby command I’m running is taking forever? I’m in a vagrant VM and I run `bundle exec rake -T --trace` and after a few minutes of thinking it finally comes back with the rake tasks. This is true so far for Ruby 2.1.0, 2.1.2, 2.1.6, 2.2.2.
leat has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
x1337807_ has joined #ruby
d[^_^]b has joined #ruby
DEA7TH has joined #ruby
sanguisdex has joined #ruby
OtterCoder has left #ruby [#ruby]
<yekta>
(oh, I’m usinv rbenv too)
<jhass>
yekta: what happens if you hit Ctrl+C during that period? Do you get a backtrace?
quimrstorres has quit [Remote host closed the connection]
nb_bez___ has quit [Quit: Connection closed for inactivity]
_djbkd has quit [Ping timeout: 276 seconds]
casadei has joined #ruby
d[^_^]b has quit [Disconnected by services]
troyready has joined #ruby
quimrstorres has joined #ruby
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d[^_^]b has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
Guest1526 has joined #ruby
dionysus69 has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
<dfockler>
frank_o: you're back!
ghr has joined #ruby
soraher has quit [Quit: Tiarra 0.1+svn-39192: SIGTERM received; exit]
<frank_o>
hey dfockler !
<frank_o>
i am indeed. forgot to mention yesterday that this is a background job
Porfa has quit [Ping timeout: 256 seconds]
d[^_^]b has quit [Disconnected by services]
7YUAAGZZH has quit [Remote host closed the connection]
<dfockler>
so you are returning index before the job finishes
iamjarvo has joined #ruby
senayar has joined #ruby
d[^_^]b has joined #ruby
<frank_o>
yep
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
dfinninger has quit [Ping timeout: 256 seconds]
ta has joined #ruby
zipace has quit [Ping timeout: 244 seconds]
d[^_^]b has quit [Disconnected by services]
rbowlby has joined #ruby
d[^_^]b has joined #ruby
uri_ has joined #ruby
<dfockler>
so in the index, your Affiliate.set_items_loaded function won't work right
<dfockler>
well it will, but nothing will be loaded yet
kies has joined #ruby
cryptarium_ has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
kinduff_ has quit [Ping timeout: 256 seconds]
<frank_o>
true.. not sure what to do here, asked around and people seemed to recommend weird 3rd party services like www.pubnub.com and www.pusher.com..
d[^_^]b has quit [Disconnected by services]
d[^_^]b has joined #ruby
balazs has joined #ruby
cryptarium has quit [Ping timeout: 265 seconds]
sarkyniin has joined #ruby
<dfockler>
you should be able to just poll using javascript until the job is completed
d[^_^]b has quit [Disconnected by services]
<dfockler>
and have a loading animation or something on your page
someword has quit [Quit: Leaving.]
d[^_^]b has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<frank_o>
hmm..
<frank_o>
that makes a lot of sense actually..
<dfockler>
just have your fetch method insert the items into the database when it finishes
d[^_^]b has quit [Disconnected by services]
sktkbk has joined #ruby
VinnyBoy has joined #ruby
d[^_^]b has joined #ruby
edwinvdgraaf has joined #ruby
<dfockler>
then when it finally adds items, the check_items_loaded route will return the values
edwinvdgraaf has quit [Remote host closed the connection]
kirun has joined #ruby
baweaver has quit [Remote host closed the connection]
VinnyBoy has left #ruby [#ruby]
sorah has joined #ruby
d[^_^]b has quit [Disconnected by services]
iamjarvo has joined #ruby
d[^_^]b has joined #ruby
symm- has left #ruby ["Leaving..."]
symm- has joined #ruby
<frank_o>
dfockler: ill give it a go! but it gets a bit tricky i guess since it's supposed to return random items each time..
micmus has joined #ruby
d[^_^]b has quit [Disconnected by services]
Maria has joined #ruby
<dfockler>
on each page load or each poll?
allcentury has quit [Ping timeout: 265 seconds]
huddy has quit [Quit: Connection closed for inactivity]
<frank_o>
each page load yeah
duderonomy has joined #ruby
jgt has joined #ruby
pengin has quit [Remote host closed the connection]
<dfockler>
well you can just have your Affiliate.find method have random values
<dfockler>
or if there is like a sample function
doodleha_ has joined #ruby
someword has joined #ruby
<frank_o>
maybe yeah..
joaomdmoura has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
cmisenas has quit [Ping timeout: 256 seconds]
<frank_o>
ill look into it and keep y'all posted
<frank_o>
thanks a lot dfockler !
<dfockler>
frank_o: cool, I had the same issue, you'll figure it out eventually
scripore has quit [Quit: This computer has gone to sleep]
baroquebobcat has joined #ruby
skandi has joined #ruby
<frank_o>
yep :D
scripore has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
skade has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
someword has quit [Client Quit]
<dudedudeman>
>> i = [8,1,10,2,7,9,6,3,4,5] print "#{i.sort.join(" ")} test"
<ruboto>
dudedudeman # => /tmp/execpad-2f5b6acf55cc/source-2f5b6acf55cc:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/375731)
Maria has quit [Quit: Page closed]
djbkd has quit [Remote host closed the connection]
<dudedudeman>
i clearly don't know how to use ruboto lol
<havenwood>
dudedudeman: a semicolon after your Array
<dudedudeman>
that's what i was expecting. so, ok. i have that, but when i do a .reverse on that instead of the .sort, it doesn't sort or reverse my array for me
<dudedudeman>
ah! a ;. word
dfinninger has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
cmisenas has joined #ruby
<dudedudeman>
>> i = [8,1,10,2,7,9,6,3,4,5]; print "#{i.reverse.join(" ")} test"
denver has quit [Remote host closed the connection]
whippythellama has joined #ruby
x1337807x has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mase-chatter has quit [Quit: Leaving]
quimrstorres has quit [Remote host closed the connection]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Torrieri has quit [Quit: Be back later ...]
hubcaps has joined #ruby
hubcaps has joined #ruby
hahuang65 has joined #ruby
Soda has joined #ruby
quimrstorres has joined #ruby
frank_o has joined #ruby
victorkohl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has joined #ruby
anytimebutnow has quit [Remote host closed the connection]
<shevy>
balazs I don't know, it is not a common style because very often you could use your gem directly to handle that
<shevy>
the way you wrote it reminds me a lot of perl code
podman has joined #ruby
pikos has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
<shevy>
like displaying usage instructions; I typically have that at least in a method, usually even as part of the main object (or main namespace)
zdman135 has joined #ruby
__butch__ has quit [Remote host closed the connection]
hubcaps has quit [Ping timeout: 272 seconds]
_seanc_ has quit [Quit: _seanc_]
frank_o has quit [Ping timeout: 265 seconds]
troyready has quit [Ping timeout: 265 seconds]
uri_ has joined #ruby
chinmay_dd has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
gambl0re has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
Soda has quit [Remote host closed the connection]
Outlastsheep is now known as zz_Outlastsheep
mdz_ has joined #ruby
jackjackdripper1 has joined #ruby
nonparfumee has joined #ruby
jackjackdripper has quit [Ping timeout: 255 seconds]
pikos has joined #ruby
troyready has joined #ruby
yqt has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
kinduff has joined #ruby
kinduff_ has joined #ruby
jgt has joined #ruby
balazs has quit [Remote host closed the connection]
n80 has quit [Read error: Connection reset by peer]
ghr has joined #ruby
<slash_nick>
when referring to a method... is there any difference in how you'd refer to a class method #foo (def self.foo) versus an instance method #foo (def foo)???... Are both methods referred to as #foo ? lol
<shevy>
I think only # are referred to as the instance methods
<havenwood>
slash_nick: ::foo versus #foo
<havenwood>
slash_nick: class and instance
<slash_nick>
awesome... i've wondered that in a few cases lately
djbkd has quit [Remote host closed the connection]
allcentury has joined #ruby
<eam>
which is weird because instance::foo works fine
djbkd has joined #ruby
dionysus69 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
sktkbk has quit [Quit: This computer has gone to sleep]
<eam>
>> class Foo; def bar; "yup" end; end; x = Foo.new; x::bar
d10n-work has quit [Quit: Connection closed for inactivity]
TinkerTyper has joined #ruby
<havenwood>
slash_nick: that's just a comment
solussd has joined #ruby
<havenwood>
x#comment here
<slash_nick>
havenwood: just adding to eam's comment on how ::class_method_here is a bit weird
solussd has left #ruby [#ruby]
<havenwood>
slash_nick: ah
timonv has joined #ruby
olistik has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenndel has joined #ruby
lxsameer has joined #ruby
rodfersou has quit [Quit: leaving]
chinmay_dd has quit []
danman has quit [Quit: danman]
meph has quit [Quit: Leaving.]
LMity has quit [Ping timeout: 264 seconds]
dorei has quit [Remote host closed the connection]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorei has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pikos has quit [Remote host closed the connection]
veleno has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
HotCoder has joined #ruby
n80 has quit [Read error: Connection reset by peer]
dblessing has quit [Ping timeout: 246 seconds]
quimrstorres has quit [Remote host closed the connection]
dnlbyl has joined #ruby
quimrstorres has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
nickfausnight has quit [Quit: Connection closed for inactivity]
<dudedudeman>
do you guys remember me talking about the company that was looking for a unicorn yesterday?
iamjarvo has joined #ruby
<dudedudeman>
they want to set up an interview....
fabrice31 has joined #ruby
affenhoden has joined #ruby
quimrstorres has quit [Remote host closed the connection]
shock_one has joined #ruby
Zai00 has joined #ruby
quimrstorres has joined #ruby
lele is now known as Guest24
danman has joined #ruby
<zotherstupidguy>
dudedudeman i dont know unicorn, can i still apply?
<dudedudeman>
zotherstupidguy: go for it, because i almost don't want to
<jhass>
I only played through the ponycorns game, am I still qualified?
<zotherstupidguy>
is unicorn really fast?
aapole has joined #ruby
<dudedudeman>
you guys ask good questions
<zotherstupidguy>
Unicorn is designed to only serve fast clients either on the local host or a fast LAN. See the PHILOSOPHY and DESIGN documents for more details regarding this.
<jhass>
well, why do we still have pumas but nobody ever saw a unicorn?
dzejrou has quit [Read error: Connection reset by peer]
tuelz2 has joined #ruby
<zotherstupidguy>
i think between us 4 we can interview the guy conducting the interview on why he choose unicorn
<dudedudeman>
basically, they want an entry level ruby dev to move their C/COBOL program to ruby/rails, and also do network/devops work, as well as facetime with clients, with being on call on some weekends for tech support for their application. it's in the medical sector
baweaver has joined #ruby
Kricir has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
pikos has joined #ruby
* zotherstupidguy
thinking of nurses!
deric_skibotn has quit [Ping timeout: 264 seconds]
sktkbk has joined #ruby
n80 has joined #ruby
OtterCoder has joined #ruby
joaomdmoura has joined #ruby
Zai00 has quit [Quit: Zai00]
<dudedudeman>
zotherstupidguy: that's not a bad thing i guess
Zai00 has joined #ruby
<miah>
i used to work in the medical sector. it was all researchers. i did work in a wet lab; but that was due to lack of space. i didnt do anything like that. but sometimes i couldnt use the counter top because people were setting gels
deric_skibotn has joined #ruby
<zotherstupidguy>
nurses are awesome
<miah>
why are you stuck on nurses?
<dudedudeman>
apparently they have a consultant they used who is in charge of deciding whether or not the candidates they interview are worthy
dfockler has quit [Remote host closed the connection]
<jrxiii>
hey, looking for some clarity regarding the OpenSSL module. My code errors “unknown algorithm” every so often and upon closer inspection, I notice that OpenSSL::Cipher.ciphers occasionally becomes empty (even though when I start the code it is full of the proper ciphers) What’s happening? where should I check for solutions?
<zotherstupidguy>
miah relax
<miah>
i am relaxed
Zai00 has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
<shevy>
relax more!
mdz_ has quit [Remote host closed the connection]
Zai00 has joined #ruby
<miah>
i could, but then i wouldnt be very productive at work today
arooni-mobile has quit [Remote host closed the connection]
ag4ve has joined #ruby
Hijiri has joined #ruby
<jrxiii>
so now I’m wondering if there’s a common way that you can test the openssl features for a given ruby installation
<dudedudeman>
oh shoot! havenwood with the killer save!
<jrxiii>
Anybody?
<shevy>
or let me rephrase - where does the music originate?
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
shevy: in your head
jhooker has quit [Ping timeout: 276 seconds]
<zotherstupidguy>
thats in your heaaad, zombiee
uri_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 256 seconds]
n80 has joined #ruby
<zotherstupidguy>
The Cranberries - Zombie
<jrxiii>
ok, i can take a hint #ruby, my question is too hard for this room
<jrxiii>
later kiddies
jrxiii has quit [Quit: jrxiii]
b_hoffman has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
<shevy>
poor guy
b_hoffman has quit [Client Quit]
<zotherstupidguy>
he was seeking thetenderlovve
<shevy>
aren't we all
<zotherstupidguy>
lol
Reichswehreid has left #ruby [#ruby]
b_hoffman has joined #ruby
<shevy>
there is something weird with ext/openssl though
b_hoffman has left #ruby [#ruby]
<shevy>
it works if I recompile from scratch, then the bindings openssl works for me.
<shevy>
but when I go to ext/openssl and do it manually, it does not
<shevy>
it works with ext/readline though, so I am confused
decoponio has quit [Quit: Leaving...]
<zotherstupidguy>
security is too advanced for me, so i just dont care
failshell has quit [Remote host closed the connection]
davidhq has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rdar has quit [Quit: Leaving]
_ht has quit [Quit: Konversation terminated!]
baweaver has quit [Remote host closed the connection]
Torrieri has joined #ruby
Torrieri has joined #ruby
polysics has joined #ruby
Olipro_ has joined #ruby
Olipro_ is now known as Guest27039
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
gloscombe_ has joined #ruby
gloscombe_ has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_seanc__ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
kinduff_ has quit [Ping timeout: 264 seconds]
WajidKagzi has joined #ruby
iamjarvo has joined #ruby
kinduff has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
lxsameer has quit [Ping timeout: 258 seconds]
yekta has quit [Quit: yekta]
dblessing has joined #ruby
_seanc_ has quit [Ping timeout: 256 seconds]
_seanc__ is now known as _seanc_
mdz_ has joined #ruby
mdz_ has quit [Remote host closed the connection]
FernandoBasso has quit [Ping timeout: 245 seconds]
FernandoBasso has joined #ruby
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has quit [Quit: bbn]
allomov has quit [Remote host closed the connection]
dp has joined #ruby
serivich has quit [Ping timeout: 258 seconds]
doctorly has quit [Ping timeout: 272 seconds]
allomov has joined #ruby
tomkadwill has joined #ruby
balazs has joined #ruby
dp has quit [Client Quit]
tomkadwill has quit [Remote host closed the connection]
mdw has joined #ruby
doctorly has joined #ruby
mdz_ has joined #ruby
mdz_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
dionysus69 has joined #ruby
balazs has quit [Ping timeout: 272 seconds]
starfox_sf has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
workmad3 has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby
ramfjord has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
cschneid has joined #ruby
zendrix has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
jenrzzz_ has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
Rickmasta has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
tomkadwill has joined #ruby
bantic has joined #ruby
skade has joined #ruby
yalue has quit [Quit: return 0;]
jenrzzz has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0/20150511103303]]
revoohc has quit [Quit: revoohc]
fujimura has joined #ruby
<bricker>
"You're Hired!"
<adaedra>
Who?
pikos has quit []
leat has quit [Ping timeout: 272 seconds]
<jhass>
adaedra: that's why we hide joins/parts ;)
baweaver has joined #ruby
tomeara has joined #ruby
tomeara has quit [Client Quit]
Iskarlar has joined #ruby
Rapier- has quit [Quit: (null)]
leat has joined #ruby
<slash_nick>
+quits
<adaedra>
jhass: True. It's too bad no one invented scrolling yet, that could allow me to read the last messages and see that the question still stands.
<jgt>
Woah it’s Avdi coming to us live from his balcony
<sweeper>
weirdos
<zenspider>
just looking for volunteers/victims for my latest changes to enhanced-ruby-mode
northfurr has quit [Quit: northfurr]
<ludico8>
sweeper tnks! Im going to read about it!
<avdi>
zenspider: I'm a big fan of that mode
<dudedudeman>
avdi, want some coffee?
<baweaver>
I just remembered you were an active emacs user avdi
Timba-as has quit [Quit: Be back later ...]
<zenspider>
avdi: orly. I thought only jeg and I used it. :)
<dudedudeman>
jgt: i know their offices are here in DFW, and they wanted someoen who worked mostly in the office, but could work from home a few days a week if needed/desired
momomomomo has quit [Ping timeout: 245 seconds]
<avdi>
zenspider: The Rogues were pretty much all-Emacs for a while
tuelz2 has quit [Ping timeout: 258 seconds]
momomomomo_ has joined #ruby
<zenspider>
I just pushed some changes to fix up movement across "sexps" and fix indentation to %w content
<shevy>
dudedudeman DFW?
northfurr has joined #ruby
<jgt>
dudedudeman: Ah ok. Thanks anyway :)
<zenspider>
shevy: airport code iirc. DC ?
<avdi>
zenspider: so what you are saying is you read my mind and fixed the things that bugged me
<shevy>
aha
<zenspider>
avdi: I live to serve, my lord
<dudedudeman>
shevy: dallas ft worth!
senayar has joined #ruby
senayar has joined #ruby
<zenspider>
ah. or that one :)
<dudedudeman>
jgt: no problem! if i find out anything different, i'll pop in her and holler
<dudedudeman>
zenspider: we're better than DC :P
<jgt>
I have never been to Texas
shock_one has quit [Remote host closed the connection]
<dudedudeman>
it's hot. and currently, it's wet
<jgt>
but apparently Buffy Tyler is from Texas, and I had a big crush on her when I was 12
<sweeper>
my coworkers are mostly in dfw
<dudedudeman>
sweeper: rubyists?
<baweaver>
Come to the Bay Area. It's cool and definitely dry right now
<zenspider>
I severely dislike texas, but _anything_ is better than DC based on my experiences
<sweeper>
dudedudeman: slowly turning into golangists, but yes :P
dionysus69 has joined #ruby
<dudedudeman>
zenspider: dallas, and maybe austin, are the only two places in texas i'd live
<dudedudeman>
both have good ruby communities
<zenspider>
avdi: please feel free to file issues against it. I'm trying to get the unit tests up to par but I need to know where to focus
<avdi>
zenspider: the definition of sexps was my biggest pain point. If you ever watch a RubyTapas episode, though, there's a decent chance you'll see enh-ruby in the modeline
kirun has quit [Quit: Client exiting]
<sweeper>
austin is apparently weird?
<jgt>
sweeper: and they want to keep it that way
<shevy>
hehe
<zenspider>
my grandparents and dad were from corpus
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
toretore has quit [Quit: This computer has gone to sleep]
<jgt>
zenspider: is that short for Corpus Christi?
<avdi>
zenspider: I've been meaning to thank you for the mode. ruby-mode's peculiar indentation and inability to understand, well, Ruby had been getting on my nerves for years
<jgt>
because coincidentally, that’s what today is called
<zenspider>
avdi: so now C-M-f and C-M-b should jump completely over methods/classes/whatever
veduardo has joined #ruby
phizzbuzz has quit [Ping timeout: 256 seconds]
danman has quit [Quit: danman]
iamjarvo has joined #ruby
<avdi>
zenspider: where's it at - I forget if I got it off melpa or somewhere else
<zenspider>
it still seems to have problems inside a method, with parts of a call, esp args vs block
iamjarvo has quit [Max SendQ exceeded]
<zenspider>
I push to melpa and melpa-stable
<avdi>
ok, cool
<zenspider>
tho some of my latest commits aren't on the latter
<zenspider>
yeh
<avdi>
will check it out
<zenspider>
yet
iamjarvo has joined #ruby
n80 has quit [Read error: Connection reset by peer]
<zenspider>
jgt: "what today is called"? yes, corpus christi
<dudedudeman>
(corpus is in texas)
<dudedudeman>
and man. you guys just introduced me to mepla. should not have looked at that
<avdi>
zenspider: I think JEG2 switched to enh-ruby a while back as well
<zenspider>
avdi: iirc, he's the reason why I switched
Rickmasta has joined #ruby
<zenspider>
tho it looks like ruby-mode has been massively hacked on since I switched... it does a LOT more now
badhatter has quit [Read error: Connection reset by peer]
<jgt>
today is a religious holiday in most European countries, and this particular holiday is called ‘Corpus Christi’
<dudedudeman>
jgt: ha, that's true! I have a friend in germany who posted about that
<zenspider>
ah. interesting. yes, there is a city with the same name in texas near the gulf
yfeldblum has quit [Remote host closed the connection]
sktkbk has quit [Quit: Leaving]
badhatter has joined #ruby
freerobby has joined #ruby
sarkyniin has quit [Remote host closed the connection]
<jgt>
which is why I wasn’t working today. Instead I walked along the beach for four hours, listening to 1984 on audiobook.
<jgt>
everyone says 1984 is about government’s invasion of privacy, but a large portion of the book is about one man’s love for sex and coffee.
<zenspider>
avdi: so... poke and figure out the NEXT biggest thing to bug you and file an issue
<zenspider>
I'm trying to get this thing flushed out
mrmargolis has quit [Remote host closed the connection]
<zenspider>
jgt: coffee is just a metaphor :P
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndroidLoverInSF has quit [Ping timeout: 258 seconds]
deric_skibotn has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
hinbody has joined #ruby
<avdi>
zenspider: will do!
x1337807x has joined #ruby
<dudedudeman>
i sometimes wonder if i should take a deep look at emacs
<zenspider>
thanks!
<dudedudeman>
then i start googling, get easily confused, and end up running away back in to my corner
<zenspider>
dudedudeman: no reason not to
<zenspider>
what OS are you on?
<dudedudeman>
all of them. lol
<baweaver>
Spacemacs :D
* baweaver
ducks
vdamewood has joined #ruby
<jgt>
the reason not to would be if you don’t already do vim
* jgt
dons flamesuit
ruby-lang563 has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
<zenspider>
dudedudeman: if you're currently on osx, you already have emacs
<jgt>
dudedudeman: and vim!
<dudedudeman>
zenspider: i use a hackintosh at home(osx on a dell business laptop. works great for the $150 i paid for it) I have a linux machine at work(non-programming job. for now..). i use cloud9 to code at home and at work when i have down time, so i don't have to cart around a computer
<zenspider>
bring up a terminal, `emacs`, then type "C-h t" to start the tutorial
<zenspider>
on linux I'd recommend installing `emacs-nox` for plain terminal emacs
<ruby-lang563>
how would I add a seconds field?
<zenspider>
unless you already have its gui deps
<ruby-lang563>
instead of just HH:MM, HH:MM:SS
quimrstorres has joined #ruby
<baweaver>
I use Vim because I started out as a SysAdmin in headless environments, so I'm faster in it. Not much sense in learning a new editor
leat has quit [Ping timeout: 265 seconds]
<zenspider>
ruby-lang563: so you're just adding the offset to the existing values?
kinduff has quit [Ping timeout: 265 seconds]
j4cknewt has quit [Remote host closed the connection]
<dudedudeman>
i currently use vim, sublimetext, cloud9, whatever is just readily available
<ruby-lang563>
exactly
<zenspider>
baweaver: I totally disagree.
hinbody has quit [Client Quit]
crazydiamond has joined #ruby
<jgt>
I haven’t used emacs, but I don’t see the appeal. Everything is chords. One of the best parts of Vim is avoiding chords.
<dudedudeman>
zenspider: thanks, i'm going to check that out. i might as well take a run or two at it
<baweaver>
zenspider: that being said, it's not like I don't still poke about different languages / editors anyways if for no other reason than curiousity.
<zenspider>
devs, esp devs that need to interact with many other devs, should be at least minimally conversant in a number of editors
last_staff has quit [Quit: last_staff]
AndroidLoverInSF has joined #ruby
<dudedudeman>
jgt: chords? like, multiple button combos at a a time? (studied music in college, so chords mean several things to me. lol)
<baweaver>
I tend to use Sublime when pairing, less likely to incite my partner to physical violence to my person :D
<jgt>
dudedudeman: yeah, exactly. Also, I was a professional musician before doing programming.
<jgt>
so the metaphor is the same
<dudedudeman>
ah, awesome! I did music, switched to doing live audio for years, and now here i am. lol
<hal_9000_>
funny you mention chords - i’ve been thinking of trying the Twiddler
quimrstorres has quit [Remote host closed the connection]
<zenspider>
you two should contribute to the music theory gem
quimrstorres has joined #ruby
<jgt>
baweaver: funny you mention pairing; my team tend to prefer vim for pairing because it’s so much faster
phizzbuzz has joined #ruby
<zenspider>
good talk on it at MWRC this year
<bougyman>
I pair with one guy who maps ; to :.
<bougyman>
it fucks me all up
<bougyman>
(vim)
<hal_9000_>
zenspider: btw are you into elixir at all?
<ruby-lang563>
zenspider, what do you think?
<dudedudeman>
music theory gem!?
<jgt>
bougyman: that is total heresy
* dudedudeman
off to google that
<zenspider>
hal_9000_: I haven't touched elixir yet
veduardo has quit [Ping timeout: 258 seconds]
<ruby-lang563>
how might I add a seconds field?
<baweaver>
Pianist and Guitar player myself.
<zenspider>
lemme make sure I have the right name
<bougyman>
guitar here, too
<bougyman>
lots of ruby guitarists, i've noticed.
<hal_9000_>
trumpet here, studied keyboard + guitar a little
<zenspider>
yeah. music_theory
DrBojingle has joined #ruby
<baweaver>
ruby-lang563: Seems like a hacky solution honestly. I'd make constants for each unit and use that for inc/dec or just bite the bullet and get ActiveSupport's time handling libs
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<jgt>
I played the drums, for I am but a simple monkey.
<baweaver>
Some Trumpet here
paulcsmith has quit [Quit: Be back later ...]
<jgt>
still studied jazz harmony at school…
c355E3B has quit [Quit: Connection closed for inactivity]
<zenspider>
ruby-lang563: I think your code is pretty hacky. Bypassing using real types when it can. EG, the Time class defines `+` so you can add an offset in seconds. It has a method for formatting itself to strings in any format you want.
tuelz2 has joined #ruby
senayar has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
<ruby-lang563>
sorry, i'm a total newb; i didn't write this
baroquebobcat has joined #ruby
<ruby-lang563>
someone wrote it for me
enebo has quit [Quit: enebo]
<zenspider>
that said, you'd need to expand your regexp to match seconds, then do the same type of unit math for the seconds field.
<baweaver>
someone is a perl programmer ;)
<jgt>
on vim, if you catch anyone remapping : ; or , slap them on the fingers with a ruler
<hal_9000_>
lol, i remap capslock to nothing on my mac
<bougyman>
i do have capslock as ctrl
<jgt>
capslock is an excellent candidate for <esc>
<hal_9000_>
lots of people do that, yes
<bougyman>
but that's sanity, since I use stumpwm as my wm
ndrei has quit [Ping timeout: 256 seconds]
<dudedudeman>
man, i have been hemming and hawing about doing that
<ruby-lang563>
so something like this: $_.gsub!(/(\d\d):(\d\d):(\d\d)/) do
<baweaver>
ctrl for me (TMUX)
<dudedudeman>
but i currently don't even use a vimrc...
<zenspider>
I never got used to using control on home row, even when working on a sun3 kbd
<dudedudeman>
please don't hate me
<bougyman>
1: it takes some getting used to and 2: you start going crazy when you use someone else'd capslock-mapped 'puter.
allcentury has quit [Ping timeout: 258 seconds]
<baweaver>
ruby-lang563: I wouldn't
<bougyman>
by now i've finally gotten used to going back and forth, but I have to make a mental switch.
<dfockler>
just this conversation is making my pinkies hurt
<dfockler>
what a weird name for fingers 'pinkies'
<shevy>
it's cute
<hal_9000_>
i bet no one here has used a twiddler?
<shevy>
much cuter than "thumb"
<bougyman>
and I also carry a noppoo choco keyboard around with me everywhere now. which has a hardware capslock->ctrl switch
<bougyman>
very very handy
<baweaver>
ruby-lang563: Make functions that return the right offset value for Hours, Minutes, and Seconds
<baweaver>
then add it to the Time value
<jgt>
dudedudeman: start building one
<baweaver>
that regex is straight perl hackery and will be very difficult to maintain
<jgt>
dudedudeman: but don’t just copy hundreds of lines from someone else
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fujimura has joined #ruby
<dudedudeman>
jgt: regarding .vimrc's, i have at least experience/learned that much. i had some lines of one for a while, but now that i currently do dev work on three different computers, i just haven't bother making it a localized/centralized thing. i should
<jgt>
dudedudeman: start with something like vim-sensible, then listen to your body in your day to day work. When you find something awkward/painful, either learn a better way or add to the vimrc