nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
sepp2k has quit [Quit: Leaving.]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datanoise has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
AndroidLoverInSF has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
dfockler has joined #ruby
claptor has joined #ruby
amystephen has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 276 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
krz has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
Cache_Money has joined #ruby
GGMethos has quit [Quit: WeeChat 1.1.1]
claptor has quit [Client Quit]
dfockler has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 265 seconds]
AndroidLoverInSF has quit [Ping timeout: 276 seconds]
AndroidLoverInSF has joined #ruby
goodcodeguy has joined #ruby
willharrison has joined #ruby
Cache_Money has quit [Client Quit]
jenrzzz has joined #ruby
fujimura has joined #ruby
endash has quit [Quit: endash]
bkxd has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
GGMethos has joined #ruby
workmad3 has joined #ruby
mary5030 has quit [Remote host closed the connection]
arescorpio has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
amclain has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
Gulaangga has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
dgutierrez1287 has joined #ruby
maqueli has left #ruby ["Leaving"]
<Gulaangga>
is it possible to configure rubyzip to not wrap zipped files into a folder?
victorkohl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<existensil>
rubyzip? is that a gem?
<Gulaangga>
yep
<Gulaangga>
is it bad to ask it here?
uri_ has quit [Ping timeout: 256 seconds]
Guest1526 has joined #ruby
<existensil>
maybe someone knows here uses it, but if there is a community around the gem that might be more useful
<existensil>
haven't used it before
jackjackdripper has quit [Quit: Leaving.]
tvw has quit [Ping timeout: 276 seconds]
Guest49569 has quit [Ping timeout: 272 seconds]
pdoherty has quit [Quit: Leaving]
mark[oz] has quit [Remote host closed the connection]
NeverDie_ has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
Jandre has joined #ruby
Jandre is now known as Guest35380
Rickmasta has joined #ruby
<Gulaangga>
haha I'm actually being silly
<Gulaangga>
it's probably OS X unzips it into 2
<Gulaangga>
in folder
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gulaangga has quit []
AndroidLoverInSF has quit [Quit: Leaving]
bricker has joined #ruby
illium has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ogpastaling has joined #ruby
illium has quit [Changing host]
illium has joined #ruby
rubie has quit [Remote host closed the connection]
rushed has joined #ruby
xxneolithicxx has joined #ruby
fabrice31 has joined #ruby
gianlucadv has joined #ruby
rubie has joined #ruby
mary5030 has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
rubie has quit [Read error: Connection reset by peer]
fujimura has quit [Remote host closed the connection]
balazs has joined #ruby
arup_r has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
shock_one has joined #ruby
fujimura_ has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
dopie has joined #ruby
shock_one has quit [Ping timeout: 256 seconds]
illium has quit [Quit: illium]
n80 has joined #ruby
Guest1526 has quit [Ping timeout: 250 seconds]
n80 has quit [Client Quit]
braincra- has quit [Quit: bye bye]
phutchins has joined #ruby
AnoHito has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
bertocode has joined #ruby
towski_ has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 256 seconds]
balazs has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
braincrash has joined #ruby
Brozo has quit [Quit: Leaving...]
ramfjord has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
illium has joined #ruby
illium has quit [Changing host]
illium has joined #ruby
ogpastaling has quit [Remote host closed the connection]
ponga has joined #ruby
Rickmasta has joined #ruby
bmurt has joined #ruby
mrmargolis has quit [Remote host closed the connection]
mfranzwa has joined #ruby
balazs has joined #ruby
nickfausnight has joined #ruby
illium has left #ruby ["Good Bye"]
Brothmars has joined #ruby
fujimura_ has quit [Remote host closed the connection]
BanzaiJoe has joined #ruby
fujimura has joined #ruby
baweaver has joined #ruby
mfranzwa has quit [Quit: mfranzwa]
NeverDie_ is now known as NeverDie
A205B064 has quit [Ping timeout: 246 seconds]
fujimura has quit [Ping timeout: 252 seconds]
tubuliferous_ has joined #ruby
transiency has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mark[oz] has joined #ruby
Spami has joined #ruby
leat has joined #ruby
sleungcy has quit [Quit: Connection closed for inactivity]
mark[oz] has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 244 seconds]
mark[oz] has joined #ruby
jackjackdripper has joined #ruby
m0r0n has quit [Ping timeout: 240 seconds]
bmurt has quit []
jackjackdripper has quit [Client Quit]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has joined #ruby
metallicrwr has joined #ruby
lfox has joined #ruby
Siciala has joined #ruby
justintv90 has joined #ruby
ramfjord has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
someword1 has joined #ruby
charliesome has joined #ruby
gix has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
gianlucadv has quit [Ping timeout: 264 seconds]
ponga has quit [Quit: Leaving...]
someword has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
michas has joined #ruby
charliesome has quit [Client Quit]
frem has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
someword1 has quit [Client Quit]
gix has joined #ruby
shock_one has joined #ruby
<michas>
Hi, using Queue it is easy to send objects from one thread to another. is there a similar way to send objects between processes? (for example connected through tcp.)
laurentide has quit [Ping timeout: 265 seconds]
transiency has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<michas>
looks like cod is something like that.
jackjackdripper has quit [Quit: Leaving.]
iamninja has quit [Read error: Connection reset by peer]
<EllisTAA>
From a programmers (as compared to an engineers) perspective, is it safe to say that REST just means you use GET / POST variables? And a RESTful API means a library that uses GET / POST vars?
<baweaver>
reading now, I'll mention if it's any good.
<baweaver>
First part is decent at least.
amclain has quit [Quit: Leaving]
SOLDIERz has joined #ruby
<shevy>
damn
<shevy>
monads in ruby?
rbowlby has quit [Remote host closed the connection]
<baweaver>
It's possible, just ill advised without some static typing
<zenspider>
shevy: tom stuart gave a really good talk on monads in ruby at gogaruco
<zenspider>
prolly the best I've seen on monads (tho I _am_ biased against, so)
<baweaver>
zenspider: the article references it :P
psy_ has quit [Ping timeout: 276 seconds]
<zenspider>
good. he does REALLY good shit all around
<baweaver>
I'll watch it in a sec
EllisTAA has quit [Quit: EllisTAA]
<baweaver>
reading through the rest of the article first.
adefa has quit [Ping timeout: 276 seconds]
jalcine has joined #ruby
fujimura has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Ping timeout: 276 seconds]
riotjones has joined #ruby
<zenspider>
I thought None/Some came from ML
EllisTAA has joined #ruby
<baweaver>
Scala is basically SML on the JVM
pyo_ has joined #ruby
EllisTAA has quit [Client Quit]
j4cknewt has joined #ruby
balazs has joined #ruby
<zenspider>
interesting. I never got a good feel from it, but I took a course on ML last october and started to appreciate swift more :)
arup_r has joined #ruby
<baweaver>
Giving a pretty lengthy talk on Scala and Spark tomorrow
davedev2_ has joined #ruby
<zenspider>
I'm certainly biased against jvm-based languages simply because of startup costs (and I actually worked on the jvm and don't like the instruction set / architecture... but that's a major digression)
<zenspider>
which spark?
<baweaver>
Apache
davedev24_ has quit [Ping timeout: 256 seconds]
<baweaver>
In my case I have no such luck to avoid it
<baweaver>
So I embrace the lesser evils
<zenspider>
*nod* totally fair
<zenspider>
now that I've done ml, I might not dislike scala... tho I'll never be a fan of static typing
<baweaver>
depends on your experience with it
<zenspider>
*nod*
<baweaver>
Java has a crap system for static typing
<zenspider>
how do they claim to be THAT much faster than hadoop?
<baweaver>
It's lazy
<baweaver>
Hadoop is eager which kills its time
zotherstupidguy has joined #ruby
<baweaver>
also it operates in straight memory
<zenspider>
ah! cheaters. :P
<zenspider>
is your talk going to be available anywhere?
<baweaver>
blog eventually
<zenspider>
cool
<baweaver>
I have the slides, I just need to write up on it
<baweaver>
and remember zenspider, that's just a freaking word count. You should see what it did to ETL pipelines
chussenot has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zipace has quit [Ping timeout: 265 seconds]
GnuYawk has quit [Ping timeout: 240 seconds]
hubcaps has joined #ruby
<zenspider>
baweaver: idgi... the word count example on my url above is MUCH smaller, even in java
<zenspider>
why would someone WANT that?
<baweaver>
The same reason they want to use Java I guess
allomov has joined #ruby
<zenspider>
no! that's a word count! I needs to be BIGGER
<zenspider>
but... it works in this 10 line example...
<zenspider>
NO! BIGGER
<baweaver>
Functional anything is scary
<baweaver>
It needs objects because enterprise and functional is too hard to understand
<baweaver>
that was pretty well the exact reason I got
<Nilium>
Functional programming really isn't all that much different depending on how far on the purity scale you go.
zipace has joined #ruby
zipace has joined #ruby
<baweaver>
even after I rewrote their entire stack over a weekend in both Scala and Clojure (clojure I had just learned) that ended with less than 10% the original code footprint
<baweaver>
Nilium: Java is as anti-fp as you can get in terms of hadoop
<Nilium>
I do all of my Android stuff in Scala for lack of anything better.
<baweaver>
I straight up avoid Java anymore.
<Nilium>
Well, I don't use it for anything other than Android, so it's easy to avoid for me
oo_ has joined #ruby
<Nilium>
Everything I do at work is either Go or node.js (typically trying to replace the latter with the former where I can because I don't like dealing with node.js)
<Nilium>
And most everything I do on my own is either C, C++, Go, or Ruby.
<baweaver>
Most of our stack is Java here, so no choice
gauke has joined #ruby
<Nilium>
Almost all of ours is PHP. Including cron jobs.
<Nilium>
Thankfully, I don't have to touch it.
<Nilium>
At least not normally.
<baweaver>
I've been a tinge evil at $WORK
<Nilium>
The evil I do at work is Go.
<baweaver>
I talked to one of our spark devs and asked why he wasn't using Scala
<Nilium>
'Cause I've never asked anyone if I could use it. I just started sneaking it in. >_>
<baweaver>
He said no one else was, so I responded by saying I'd work on that
fabrice31 has joined #ruby
dudedudeman has quit [Ping timeout: 240 seconds]
<Nilium>
And when it became apparent that the little tools I wrote using Go were doing really well, it was easy to get it in for everything else.
<baweaver>
fast forward 3 weeks and they're all in a frenzy, aforementioned dev is convinced I'm evil, and I'm giving an hour long talk on Scala and FP
<Nilium>
I also switched us to Git, so I'm just plain awful.
<Nilium>
I think I'm supposed to be talking about Git and our new projects and so on tomorrow
Miphix has quit [Quit: Leaving]
<baweaver>
That, and my manager said I need to be respected as the go to and mentor for a subject matter to be considered a senior
<baweaver>
so I manufactured a domain for myself and established myself as the only person who know it
<Nilium>
Well, if you have to game the bureaucracy to shut someone up, so be it.
<baweaver>
Promotion one down, now on to senior level! (Probably'll take a bit longer)
nhhagen has joined #ruby
ramfjord has joined #ruby
sarkyniin has joined #ruby
<Nilium>
I think my title is just "developer" when people interview with me
<Nilium>
I don't know if I have anything more formal than that.
ringarin has joined #ruby
swgillespie has joined #ruby
mrmargolis has joined #ruby
<Nilium>
It's just fun when I'm introduced to new hires or interviewees or anyone else, 'cause it's not really clear what team I'm on
<baweaver>
At least for now I'm mildly obsessed with gaming the ladder
<Nilium>
Plus nobody can really say what it is I do, which makes it even better. "This is Nil, he does.. stuff."
RegulationD has joined #ruby
bayed has joined #ruby
Ox0dea has joined #ruby
Iskarlar has joined #ruby
dudedudeman has joined #ruby
<Ox0dea>
Siciala: Could you clarify the humorous part of Set#flatten_merge?
skade has quit [Quit: Computer has gone to sleep.]
polysics has joined #ruby
oo_ has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
oo_ has joined #ruby
mark[oz] has quit [Remote host closed the connection]
rbowlby has joined #ruby
mrmargolis has quit [Ping timeout: 264 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
fujimura has joined #ruby
charliesome has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding_ has joined #ruby
swgillespie has joined #ruby
ereslibre has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
ereslibre has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
sigurding has quit [Ping timeout: 265 seconds]
sigurding_ is now known as sigurding
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<metallicrwr>
sevenseacat: I'm asking about others because it might be too hard to build that file server
tubuliferous_ has quit [Ping timeout: 245 seconds]
<Voyaya>
sevenseacat, gem install rails
<baweaver>
Then build something you know how to make?
<sevenseacat>
uhhhhh
<sevenseacat>
its not, but whatever
<sevenseacat>
then try `gem install rails --version 4.2.1`
davidhq has joined #ruby
sandstrom has joined #ruby
<metallicrwr>
Gadgetoid: then what do I make? a program that tells how shiny I am?
<baweaver>
sevenseacat: might be in a directory with a lockfile
<metallicrwr>
even that's too hard
<sevenseacat>
baweaver: doesnt matter, theyre using gem, not bundler
<Voyaya>
sevenseacat, I think that worked. So I don't need RVM etc?
shock_one has quit []
<sevenseacat>
Voyaya: i never said that.
<baweaver>
Fair point
<Voyaya>
sevenseacat, What would I need it for? I don't even know what it is.
jhooker has joined #ruby
<sevenseacat>
you can get away with using apt-installed rubies, for a time, but you'll run into problems eventually.
<sevenseacat>
like i said, debian fucked up all its ruby packages.
<Voyaya>
sevenseacat, What if I go with Arch?
<sevenseacat>
then thats not debian based is i
<sevenseacat>
t
<noethics>
anyone wanna fight about linux
<Voyaya>
sevenseacat, No it's not. But will I be good?
<sevenseacat>
do you know how to use arch?
<baweaver>
!try
<baweaver>
drat
<Voyaya>
sevenseacat, I'm linux user for 11 years, of course. I'm new to Ruby and Rails.
blue_deref has quit [Quit: bbn]
<metallicrwr>
baweaver: ok so I have to spawn a thread that will wait for a connection and make another thread for a particular file as a request comes in
<metallicrwr>
but how?
<noethics>
i dont even talk to people who dont use gentoo
bkxd has joined #ruby
<surrounder>
must be lonely at the pub
<sevenseacat>
then you'll probably be good. i have no idea what arch's repos are like in terms of rubies.
<noethics>
what's a pub
<bnagy>
noethics: you need a hobby other than trolling on irc
DrBojingle has quit [Ping timeout: 265 seconds]
<baweaver>
metallicrwr: I don't intend to guide you through this all
<noethics>
bnagy, how is that trolling?
<baweaver>
It's over your head
jack_rabbit has joined #ruby
<baweaver>
and I already gave you another idea.
<Voyaya>
noethics, No sense. Do you even know the reason to use Gentoo?
<noethics>
Voyaya, ya
<metallicrwr>
baweaver: ok
greenbagels has joined #ruby
<Voyaya>
noethics, Give me one reason to use Gentoo over Arch.
<bnagy>
take it outside, kids
<bnagy>
this isn't the place to have slap fights about linux
<noethics>
Voyaya, because you get triple sized balls when you use gentoo
<sevenseacat>
lol
<Voyaya>
Idiot confirmed.
<sevenseacat>
noethics: watch it.
<noethics>
:(
<noethics>
me?
<noethics>
wtf
<sevenseacat>
yes, you.
<noethics>
im sry sevenseacat but i liked your elixir and phoenix code
<noethics>
pls dont band me
<sevenseacat>
good to know. that doesnt excuse you from trolling around here.
<sevenseacat>
so, just watch it.
jhooker has quit [Ping timeout: 252 seconds]
<noethics>
idk how you define trolling but i was clearly kidding
<Ox0dea>
What's with the different representation of an infinite Array that's had a method called on it?
* baweaver
runs for it
<Voyaya>
sevenseacat, So in a book I'm reading, it says to install Rails, just "gem install rails -v 4.2.0" as you said. Is this the original way of installing Rails?
ki0 has joined #ruby
<sevenseacat>
thats the normal way of installing any gem
<sevenseacat>
using the `gem` command
metallicrwr has quit [Quit: WeeChat 1.2]
sarkyniin has quit [Remote host closed the connection]
<sfate>
use bundler for god sake..
<Voyaya>
sevenseacat, Oh ok. It did seem much more complicated when I was watching the other guy installing it. And you mentioned ruby-install, what is that one for?
doctorly has quit [Ping timeout: 255 seconds]
sandelius has joined #ruby
<sevenseacat>
sfate: use bundler for installing rails? what?
livathinos has joined #ruby
<sevenseacat>
ruby-install is for easily installing rubies
<Voyaya>
Too much nonsense today..
<Voyaya>
sevenseacat, Ok thanks :)
solars has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<ponga>
omg its written in japanese how on earth u guys supposed to read this?
sdwrage has quit [Quit: This computer has gone to sleep]
<sevenseacat>
learn japanese, duh. >_>
baweaver has quit [Remote host closed the connection]
<Ox0dea>
Huh, Proc#arity used to be called #argc, apparently.
bruno- has joined #ruby
dumdedum has joined #ruby
<ponga>
* ruby.c(proc_options): argcが0の時にも対応. => works now when argc is 0
<ponga>
hm
<mozzarella>
ッ
Zai00 has joined #ruby
sdwrage has joined #ruby
revath has joined #ruby
<ponga>
it always takes me a while to realise that is smile mozzarella
<ponga>
;p
<shortCircuit__>
there is tranlate.google.com .. why learn japniz when google learnt that for me
<zotherstupidguy>
thats a ri?
<Ox0dea>
Tsu.
<ponga>
that's tsu
<zotherstupidguy>
cool
MatthewsFace has quit [Remote host closed the connection]
<Darkwater>
にほんごはすごい!
<Voyaya>
sevenseacat, Are there any stuff you should keep in mind when installing Rails or am I good to go once installed?
<ponga>
Darkwater, cute
<sevenseacat>
Voyaya: just `gem install rails` and you're good to go.
<zotherstupidguy>
my japanese teacher kicked me out and told i should try easier things, she made join the dancing group of the culture course instead of the language course
<Voyaya>
sevenseacat, Ok great.
<Darkwater>
lol
starfox_sf has quit [Ping timeout: 265 seconds]
<ponga>
zotherstupidguy: please elaborate, i could easily finish a bag of popcorn for that
Hobogrammer_ has joined #ruby
fedexo has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
ghr has joined #ruby
Igorshp has joined #ruby
<ponga>
Darkwater: using only hiragana in japanese is considered cute(linguistics-wise)
<ponga>
believe it or not ;p
vire has joined #ruby
<Ox0dea>
It's indicative of juvenility, no?
LMity has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 264 seconds]
<ponga>
yeah it is
max--1 has joined #ruby
<Ox0dea>
"Jew vanilla tea".
<ponga>
u should add 'no offense' lol
mrsolo has quit [Quit: This computer has gone to sleep]
Hobogrammer has quit [Ping timeout: 256 seconds]
<Darkwater>
かわいいうぐうー(´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`)
kenndel_ has quit [Ping timeout: 244 seconds]
<adaedra>
What are all those people speaking japaneese
<adaedra>
We merged with #ruby-jp ?
<ponga>
that tear is kinda broken and overlaps lines
<mozzarella>
tons of spiders in this house, I should buy a gun
nofxx__ has joined #ruby
ta has joined #ruby
ahmetkapikiran has joined #ruby
<sfate>
flamethrower then
<zotherstupidguy>
jhass whats the other newtwork fo the jp?
<jhass>
zotherstupidguy: see my link?
<zotherstupidguy>
not unless you post it 3 times lol
codecop has quit [Quit: Išeinu]
anisha has joined #ruby
<zotherstupidguy>
ok but whats the irc network?
<jhass>
I could kick you with it as the kick reason, would that work?
<jhass>
common, it's not even written in kanji there
<zotherstupidguy>
jhass please dont, #ruby is my favourite place in the whole wide world
nofxx_ has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Ping timeout: 246 seconds]
<zotherstupidguy>
its #ruby-ja
angus has joined #ruby
<jhass>
and it's a link.. with an URL and it has some more latin letters in front...
mikecmpbll has joined #ruby
revath has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
<zotherstupidguy>
ponga actually i am good friend to the local japan foundation branch(egypt), i even organized welcome and goodbye parties for the officals. i originally joined in because i used to practice Judo and wanted to learn the lang
max--1 has quit [Remote host closed the connection]
IanVorn has joined #ruby
datanoise has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<zotherstupidguy>
ponga jf tought me Go(the board game)
<ljarvis>
morning
leat has quit [Remote host closed the connection]
leat has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
revath has joined #ruby
msgodf has joined #ruby
Ox0dea has left #ruby ["WeeChat 1.3-dev"]
doctorly has joined #ruby
mdz_ has joined #ruby
sfate has quit [Ping timeout: 240 seconds]
rubie has joined #ruby
mdz_ has quit [Ping timeout: 265 seconds]
cryptarium__ has joined #ruby
sandstrom has joined #ruby
CloCkWeRX has joined #ruby
aapole has quit [Ping timeout: 240 seconds]
adefa has joined #ruby
j4cknewt has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 255 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
datanoise has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
Trieste has joined #ruby
Trieste has joined #ruby
chussenot has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
A205B064 has quit [Ping timeout: 264 seconds]
njs126 has quit [Ping timeout: 256 seconds]
zotherstupidguy has quit [Client Quit]
bosma has joined #ruby
quimrstorres has joined #ruby
zotherstupidguy has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
balazs has joined #ruby
spider-mario has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
unclouded has quit [Ping timeout: 256 seconds]
dhjondoh has joined #ruby
balazs has quit [Ping timeout: 255 seconds]
<maloik>
I'm trying to test a rake task and created a spec file with two tests in it. I rake_require in a before(:each), define :environment, and then invoke the task in each test. For some reason, it's only executing the rake task once, as evidenced by the fact that I only enter a pry session once where the binding.pry is inside the rake task. Any clues? https://gist.github.com/hannesfostie/9ad6c6d2688e601d387d
banister has joined #ruby
toretore has joined #ruby
<certainty>
maloik: why don't you extract the tasks functionality into a class and use that in the rake task
greenbagels_ has joined #ruby
mrmargolis has joined #ruby
mdw has joined #ruby
<maloik>
mostly because it was such a tiny task. that said, I'd still love to figure out wth is going on here :D
greenbagels_ has quit [Max SendQ exceeded]
<maloik>
(extracting was the next step cause I have a feeling I'm not going to solve this one)
RegulationD has joined #ruby
<apeiros>
IMO extracting is always the right thing to do
<certainty>
+1
michas has joined #ruby
doctorly has quit [Ping timeout: 244 seconds]
greenbagels has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 245 seconds]
fluter has quit [Read error: Connection timed out]
Akagi201_ has quit [Ping timeout: 258 seconds]
<maloik>
yea I will
seal has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
fluter has joined #ruby
Akagi201 has joined #ruby
<maloik>
is the behavior something that was to be expected though? I really don't understand why it wouldn't invoke it twice
<Aeyrix>
Lol jhass are you referencing that bundler issue every time you commit a bundler version bump?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
serivich has quit [Ping timeout: 258 seconds]
denver has quit [Ping timeout: 276 seconds]
rodfersou has joined #ruby
yfeldblu_ has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
<livcd>
Aeyrix: i imagine when i add @include to a selector it pushes the selector name to a list variable
<livcd>
and then i iterate through that list in my function
denver has joined #ruby
<Aeyrix>
Are you trying to prove SASS turing complete or something?
armyriad has quit [Ping timeout: 256 seconds]
thelastinuit has joined #ruby
jgt1 has joined #ruby
<livcd>
well what i am trying to accomplish is to use the function on a set of selectors which i can target by names
martinma4 has left #ruby [#ruby]
skade has joined #ruby
martinma4 has joined #ruby
<Aeyrix>
Not a sass expert, unfortunately. :(
<Aeyrix>
I use vanilla CSS a lot more.
<livcd>
k np
<livcd>
thx for answer anyway :-)
BLuEGoD has quit [Remote host closed the connection]
<livcd>
maybe i can try to ask inn #less as well
tubuliferous_ has quit [Ping timeout: 265 seconds]
armyriad has joined #ruby
<livcd>
oh there's no less
dgutierrez1287 has quit [Ping timeout: 252 seconds]
martinma4 has left #ruby [#ruby]
jcromartie has joined #ruby
ponga has joined #ruby
olistik has joined #ruby
<Aeyrix>
It might be ##less
ahmetkapikiran has joined #ruby
<zenspider>
rdark: ##mathematica :)
<rdark>
ah yes, those guys
<rdark>
it's more of a CS question, but I'll give them a shot
<rdark>
thanks :)
<zenspider>
what's the q?
oo_ has quit [Remote host closed the connection]
<rdark>
I'm comparing an arbitrary number of arrays against each other by doing a bubble-sort-ish algorithm, and wanted to know how to calculate the efficiency of it
chussenot has quit [Quit: chussenot]
BLuEGoD has joined #ruby
<rdark>
and how to calculate how many iterations would be required for a given number of arrays
platzhirsch has quit [Quit: Leaving.]
oo_ has joined #ruby
chico26ga has joined #ruby
chico26ga has left #ruby [#ruby]
<olistik>
rdark: could you expand this a bit more? "comparing an arbitrary number of arrays against each other by doing a bubble-sort-ish algorithm"
<zenspider>
usually you can just look that type of shit up. they're all gonna be fairly related in performance so you just need to find the flavor of your alg
skade has quit [Quit: Computer has gone to sleep.]
<rdark>
olistik: so I have an arbitrary number of arrays (of hashes), I want to ensure that a given key within every hash is globally unique
<sandelius>
But they all will work for you. Just in different ways
<nini1249>
havenwood I played around with Roda a while ago and it seemed simple but now im kinda lost
<nini1249>
hawenwood I cant even get the sample code from github to work
<havenwood>
nini1249: I'd suggest going through and examining each of the plugins if you haven't already.
denver has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<havenwood>
nini1249: Can't get it to work? What trouble are you running into?
<nini1249>
havenwood I tried to execute the code and the error says undefined method `run' for main:Object (NoMethodError)
<nini1249>
havenwood I guess im not runnign it correctly
<havenwood>
nini1249: What app are you running?
<havenwood>
nini1249: Ah, just the example snippet?
<nini1249>
havenwood The simlpe HelloWorld one from github
<nini1249>
havenwood yep
last_staff has joined #ruby
Miphix has joined #ruby
nini1249 is now known as nini1294
<havenwood>
nini1294: That example is meant to be saved as `rackup.ru` and run with the `rackup` command.
<nini1294>
havenwood, Ahh thanks a lot
<havenwood>
config.ru
<havenwood>
nini1294: config.ru I mean
<havenwood>
nini1294: no prob
<havenwood>
nini1294: It's what provides the `run`.
_ht has quit [Remote host closed the connection]
_ht has joined #ruby
_blizzy_ has joined #ruby
a346 has joined #ruby
vikaton has joined #ruby
chipotle has quit [Quit: cheerio]
SalexW has quit [Ping timeout: 264 seconds]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
dionysus69: we don't have cloaks (yet)
<dionysus69>
jhass Aeyrix : ok thanks :)
<havenwood>
dionysus69: Maybe get a #freenode cloak in the meanwhile. :)
balazs has joined #ruby
<dionysus69>
how ? where should I ask for it ? havenwood some people made me fear security cause I dont have ip covered haha
apofis has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nini1294 has quit [Ping timeout: 244 seconds]
<jhass>
dionysus69: a cloak will only protect you from the most stupid, it's not really a security feature
krz has quit [Quit: WeeChat 1.0.1]
skade has joined #ruby
Iskarlar has joined #ruby
datanoise has joined #ruby
I has joined #ruby
apofis has quit [Read error: Connection reset by peer]
apofis has joined #ruby
I is now known as Guest89982
last_staff has quit [Ping timeout: 255 seconds]
<havenwood>
dionysus69: Just ask in #freenode and they'll set you up.
skade has quit [Client Quit]
<havenwood>
dionysus69: But it doesn't hurt. It's easy to request.
c0m0 has joined #ruby
nini1294 has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
vdamewood has quit [Quit: Life beckons.]
<havenwood>
jhass: It's a shame they disabled sasl-tor.
balazs has quit [Ping timeout: 264 seconds]
<havenwood>
I'd like that back.
<jhass>
yeah
skade has joined #ruby
<Aeyrix>
ILLEGAL
<Aeyrix>
I don't really have a fear of people on IRC.
leat has quit [Ping timeout: 264 seconds]
<jhass>
dionysus69: in other words, if you don't trust your systems enough to be not hacked just because somebody knows their IPs, don't connect them to the internet
<Aeyrix>
jhass: Have you not seen the espernet "purges"?
<dionysus69>
jhass: haha no I am fine I am on ubuntu :P just a precaution in a world of security
<Aeyrix>
o wait you have me on ignore.
mbug has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra>
Too bad!
<Aeyrix>
:(
<olistik>
rdark: about your key search across your arrays
<Aeyrix>
probably deserved it lel
<olistik>
if you can build and maintain a dictionary that keeps track of every key available, then your search should be O(1)
adefa has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<olistik>
but this largely depends on your context
Guest89982 has quit [Quit: This computer has gone to sleep]
nini1249 has joined #ruby
iamjarvo has joined #ruby
sgambino has joined #ruby
nini1249 has quit [Read error: Connection reset by peer]
apofis has quit [Quit: This computer has gone to sleep]
maxshelley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adefa has quit [Ping timeout: 250 seconds]
mdw has quit [Read error: Connection reset by peer]
nini1294 has quit [Ping timeout: 255 seconds]
sigurding has quit [Quit: sigurding]
dionysus69 has quit [Quit: dionysus69]
nini1249 has joined #ruby
nhhagen has quit [Remote host closed the connection]
pepelui has joined #ruby
nini1249 is now known as nini1294
nhhagen has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
webguynow has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chussenot has joined #ruby
e1nh4nd3r has joined #ruby
c355E3B has joined #ruby
dionysus69 has quit [Changing host]
dionysus69 has joined #ruby
IanVorn has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
towski_ has joined #ruby
Iskarlar has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding_ has joined #ruby
apofis has joined #ruby
apofis has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
roolo has joined #ruby
sigurding has quit [Ping timeout: 264 seconds]
sigurding_ is now known as sigurding
apofis has joined #ruby
fabrice31 has joined #ruby
pepelui has quit [Read error: Connection reset by peer]
datanoise has quit [Ping timeout: 245 seconds]
fujimura_ has joined #ruby
sigurding has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
mandarinkin has quit [Ping timeout: 264 seconds]
nickfausnight has quit [Quit: Connection closed for inactivity]
ahmetkapikiran has joined #ruby
roshanavand has quit [Remote host closed the connection]
kil0byte has quit []
dionysus69 has quit [Quit: dionysus69]
fujimura_ has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
AlexRussia has joined #ruby
mister_solo has quit [Ping timeout: 265 seconds]
mandarinkin has joined #ruby
sandelius has quit [Read error: Connection reset by peer]
goodcodeguy has joined #ruby
<daxroc>
Afternoon all
charliesome has joined #ruby
Musashi007 has quit [Quit: Musashi007]
towski_ has quit [Remote host closed the connection]
luluapple has quit [Ping timeout: 272 seconds]
<daxroc>
Anyone know how to use basic auth with geminabox to upload from the cli? I've tried gem inabox pkg/mha-gem.gem --host http://user:pass@192...:9292
Skelz0r_ has quit [Ping timeout: 272 seconds]
Skelz0r has joined #ruby
DaniG2k has quit [Quit: leaving]
nofxx__ has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
sdwrage has joined #ruby
ESpiney has joined #ruby
sankaber has joined #ruby
fabrice31_ has joined #ruby
luluapple has joined #ruby
mandarinkin has quit [Ping timeout: 250 seconds]
CustosLimen has quit [Ping timeout: 244 seconds]
sandelius has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
Zai00 has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
michas has quit [Ping timeout: 256 seconds]
<certainty>
hmm lotusrb looks extremely promising
dorei has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
yalue has joined #ruby
troulouliou_dev has quit [Ping timeout: 272 seconds]
quimrstorres has quit [Remote host closed the connection]
Guest21934 has quit [Changing host]
Guest21934 has joined #ruby
Guest21934 is now known as daynaskully
gigetoo has quit [Ping timeout: 256 seconds]
yqt has joined #ruby
maxshelley has joined #ruby
<zipace>
is there a way to the equivalent of this with open3: someprogram | while read line; dosomethingwith "$line"; done
<zipace>
that is, read a programs output (by line), *while* it is running
<zipace>
pipes, basically
<jhass>
zipace: yup, open3 is the way to go
tubuliferous_ has joined #ruby
apt-get_ has joined #ruby
<zipace>
jhass: and open3 actually supports pipes? so I can do `Open3.open3("foo"){|stdin,stdout,stderr,thr| stdout.each_line{...}}`
<zipace>
because i admit i haven't actually tested that yet
<jhass>
yeah
<zipace>
schweet
gigetoo has joined #ruby
kobain has joined #ruby
[k- has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
sarkyniin has quit [Ping timeout: 250 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
Pisuke has quit [Read error: No route to host]
CustosLimen has joined #ruby
mandarinkin has joined #ruby
michas has joined #ruby
phoo1234567 has joined #ruby
leat has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
unshadow has joined #ruby
stan has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
troulouliou_dev has joined #ruby
adac has joined #ruby
msnyon has joined #ruby
apt-get_ has quit [Remote host closed the connection]
bmurt has joined #ruby
<adac>
having "start_date = 1.week.ago" and "end_date = Time.zone.today" ... how to get back the days in between the two dates? I tried like simply: "end_date - start_date" but that gives me an error: "TypeError: expected numeric"
riotjones has quit [Remote host closed the connection]
langland_ has joined #ruby
rubie has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
OrbitalKitten has joined #ruby
revoohc has joined #ruby
nini1294 has quit [Ping timeout: 276 seconds]
DoubleMalt has quit [Ping timeout: 255 seconds]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
1.week.ago returns a Time I think?
<jhass>
try to_date
Langlands has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
griffindy has joined #ruby
Langlands has joined #ruby
olistik has quit [Remote host closed the connection]
ESpiney has quit [Read error: Connection reset by peer]
<adac>
jhass, to_date works! hwoever I need also to use Time.zone.now
ESpiney has joined #ruby
<jhass>
it has the same method...
I has joined #ruby
<adac>
jhass, you are right, it also works with Time.zone.today
<adac>
thanks a lot!
rubie has quit [Ping timeout: 265 seconds]
I is now known as Guest46677
Rapier- has joined #ruby
<jhass>
adac: note that Time.zone and 1.week.ago are ActiveSupport extensions
byprdct has quit [Read error: Connection reset by peer]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
pdoherty has joined #ruby
endash has joined #ruby
chinmay_dd has quit []
dfinninger has joined #ruby
Iskarlar has joined #ruby
adac has quit [Ping timeout: 246 seconds]
pepperbreath1 has left #ruby [#ruby]
banister has quit [Ping timeout: 244 seconds]
endash has quit [Client Quit]
InternetFriend has joined #ruby
fabrice31_ has joined #ruby
redlegion is now known as RichardNixon
endash has joined #ruby
RichardNixon is now known as redlegion
Spami has joined #ruby
justintv90 has joined #ruby
devSeb has joined #ruby
momomomomo has joined #ruby
cmisenas has joined #ruby
dumdedum has quit [Quit: foo]
adefa has joined #ruby
skade has joined #ruby
ahmetkapikiran has joined #ruby
starfox_sf has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 264 seconds]
vyorkin has quit [Quit: WeeChat 1.1.1]
mfranzwa has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
allomov has quit [Remote host closed the connection]
allomov has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
allomov has quit [Client Quit]
whippythellama has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Agoldfish has joined #ruby
starfox_sf has quit [Ping timeout: 255 seconds]
adefa has quit [Ping timeout: 252 seconds]
bootstrappm has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
lapide_viridi has joined #ruby
nickfausnight has joined #ruby
Fooster has quit [Ping timeout: 276 seconds]
jgpawletko has quit [Quit: jgpawletko]
rodferso1 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
mrsolo has joined #ruby
avat has quit [Quit: Page closed]
dopie has joined #ruby
gauke has quit [Quit: gauke]
Zz4yMYrZX6 has joined #ruby
rodfersou has quit [Ping timeout: 264 seconds]
<waxjar>
Would this be a bad API for a caching system? cache[1] = "foo"; cache[1,2] = ["foo", "bar"] ?
allomov has joined #ruby
mister_solo has quit [Ping timeout: 265 seconds]
_ixti_ has joined #ruby
mrsolo has quit [Client Quit]
<Zz4yMYrZX6>
Hey all, I'm wondering if someone can help me out. I don't know Ruby at all, but I'm trying to modify a script that was written for me and given to me.
<hanmac1>
waxjar: is cache an array, or hash or some of your own objects?
cryptarium has quit [Ping timeout: 245 seconds]
mrmargolis has quit [Remote host closed the connection]
<Zz4yMYrZX6>
The purpose is replace timestamps in a document. right now the script can replace HH:MM, but I need it to replace HH:MM:SS
<jhass>
oh you again
mrsolo has joined #ruby
puppeh has quit [Remote host closed the connection]
<Zz4yMYrZX6>
yes
<Zz4yMYrZX6>
hi
Torrieri has quit [Quit: Be back later ...]
<jhass>
didn't we answer that question already?
cryptarium has joined #ruby
<waxjar>
hanmac1: interface to a Redis server :P i'd like to use MGET/MSET
<Zz4yMYrZX6>
seems like a quick fix, no?
mrmargolis has joined #ruby
Iskarlar has joined #ruby
<Zz4yMYrZX6>
to add the seconds field?
<waxjar>
not sure if I want to abstract this out though, Redis is simple enough
<Zz4yMYrZX6>
i just don't know how to do it
anytimeb_ has joined #ruby
leat has quit [Remote host closed the connection]
<hanmac1>
waxjar: i would like this: but thats just imo cache.update(1 => "foo", 2=> "bar") OR cache.update("foo", "bar")
zipace has joined #ruby
<jhass>
you might go back to reddit tbh and describe your specs properly that time, this channel is more geared towards helping people that are learning and using Ruby, not a "please make me a script for free that does X"
rubie has joined #ruby
leat has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Zz4yMYrZX6>
cool, sorry for the intrustion
<Zz4yMYrZX6>
will do
Zz4yMYrZX6 has left #ruby [#ruby]
anytimebutnow has quit [Ping timeout: 252 seconds]
[H]unt3r has joined #ruby
sigurding has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
darkf has quit [Quit: Leaving]
dfinninger has joined #ruby
bantic has joined #ruby
devSeb has quit [Remote host closed the connection]
withnale_ has quit [Ping timeout: 256 seconds]
sigden has joined #ruby
chinmay_dd has joined #ruby
shortCircuit__ has quit [Quit: Leaving.]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
chinmay_dd has quit [Client Quit]
Juanchito has quit [Quit: Connection closed for inactivity]
caseypatrickdris has quit [Remote host closed the connection]
<shevy>
dumdedum
nish1294 has joined #ruby
apofis has joined #ruby
shellfu has joined #ruby
nini1294 has quit [Ping timeout: 258 seconds]
apofis has quit [Read error: Connection reset by peer]
apofis has joined #ruby
<ruby-lang431>
hello
<jhass>
hi
Cache_Money has joined #ruby
_seanc_ has joined #ruby
Nishant_ has joined #ruby
sigurding has quit [Quit: sigurding]
ahmetkapikiran has joined #ruby
<ruby-lang431>
:)
_seanc_ has quit [Client Quit]
nish1294 has quit [Ping timeout: 272 seconds]
mpistone has joined #ruby
rcvalle has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
fujimura_ has joined #ruby
Channel6 has joined #ruby
<jhass>
ruby-lang431: how's your ruby?
sarkyniin has joined #ruby
roar has joined #ruby
<ruby-lang431>
I am working on a rails project, Just get started.
<ruby-lang431>
Reading books mostly and currently.
leat1 has joined #ruby
leat has quit [Remote host closed the connection]
hanmac1 has left #ruby [#ruby]
fujimura_ has quit [Ping timeout: 258 seconds]
adefa has joined #ruby
allenn has quit [Ping timeout: 272 seconds]
hubcaps has quit [Ping timeout: 246 seconds]
programmerq has quit [Remote host closed the connection]
angus has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bkxd has quit [Ping timeout: 245 seconds]
<ruby-lang431>
Hi
<agent_white>
Heya
programmerq has joined #ruby
mkulke has joined #ruby
tubuliferous_ has joined #ruby
EllisTAA has joined #ruby
lapide_viridi has quit [Quit: Leaving]
justintv90 has quit [Remote host closed the connection]
<bootstrappm>
morning all
<EllisTAA>
MORNING!!
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chussenot has quit [Quit: chussenot]
granthatcher_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
mrmargol_ has joined #ruby
<EllisTAA>
i’m trying to use the ruby twitter gem and i need to have a twitter dev account. while trying to register it is asking for my callback url and in the description of that question it mentions “ OAuth 1.0a applications should explicitly specify their oauth_callback URL on the request token step”. Do I need to register for something else? I’m not sure what an oauth_callback url is
ogpastaling has quit [Read error: Connection reset by peer]
granthatcher has quit [Ping timeout: 264 seconds]
ogpastaling has joined #ruby
balazs has joined #ruby
<sevenseacat>
EllisTAA: where should twitter redirect after authenticating?
intinig has quit [Remote host closed the connection]
<sevenseacat>
thats your callback URL.
<bootstrappm>
^ the cat knows
<EllisTAA>
i dont have one, i just want to tweet from my command line
<bootstrappm>
OAuth is super confusing the first time you encounter it
<agent_white>
ITS DONUT DAY, sevenseacat!!! :D
leat1 has quit [Remote host closed the connection]
<bootstrappm>
then you likely don't need OAuth EllisTAA, OAuth is pretty strictly for web apps
<jhass>
EllisTAA: iirc you supply whatever and catch the redirect you receive
<EllisTAA>
bootstrappm: but i need it to register a twitter developer account
* agent_white
hugs sevenseacat and makes a glaze-dance to the donut gods
bkxd has joined #ruby
mrmargolis has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
<sevenseacat>
EllisTAA: since when? that makes no sense
apofis has quit [Quit: This computer has gone to sleep]
<bootstrappm>
that 3-legged OAuth flow mentioned in the second bullet point is what I was referring to as being for webapps
poguez_ has joined #ruby
caseypatrickdris has joined #ruby
<sevenseacat>
given a dev twitter account is for multiple apps and wont have a single callback URL
<riceandbeans>
yo yo yo
balazs has quit [Ping timeout: 255 seconds]
rkeene has joined #ruby
<riceandbeans>
I want to rewite a for statement with a do
<riceandbeans>
can anyone give me a hand?
ebbflowgo has quit [Ping timeout: 272 seconds]
ebbflowgo_ has joined #ruby
ebbflowgo_ is now known as ebbflowgo
<sevenseacat>
left or right hand?
<jhass>
?anyone
<ruboto>
Just ask your question, if anyone has or can, they will respond.
<riceandbeans>
for i in (0..@array-1)
<riceandbeans>
then I use i like
<riceandbeans>
@otherarray[i]
<sevenseacat>
@array is an integer?
EllisTAA has quit [Quit: EllisTAA]
<riceandbeans>
well, truth be told this is puppet
rkeene has left #ruby [#ruby]
<riceandbeans>
but this is in an erb, so it's ruby
<riceandbeans>
but variables in puppet when localized are 2
<riceandbeans>
@
<havenwood>
riceandbeans: Did you mean? @array.size - 1
<sevenseacat>
in what universe does that answer my question
<riceandbeans>
so ignore the sigil
<havenwood>
>> [] - 1
<ruboto>
havenwood # => no implicit conversion of Fixnum into Array (TypeError) ...check link for more (https://eval.in/376198)
* jhass
waits for a question
allomov has quit [Remote host closed the connection]
<riceandbeans>
ok, well the guy says it worked for him as is...
<riceandbeans>
but this is going to have to run every 30 minutes on thousands of systems...
vire has quit [Ping timeout: 272 seconds]
msgodf has quit [Ping timeout: 258 seconds]
allomov has joined #ruby
<riceandbeans>
I seem to recall having read that things like....
EllisTAA has joined #ruby
<riceandbeans>
foo.each do |i|
<riceandbeans>
bar[i]
<riceandbeans>
end
<jhass>
each_index
<riceandbeans>
have a better optimized thing, so it's faster
* jhass
still waits for a question
<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.
<riceandbeans>
my question is, two part
dualbus has quit [Remote host closed the connection]
<jhass>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
mgorbach has joined #ruby
adefa has quit [Ping timeout: 265 seconds]
EllisTAA has quit [Client Quit]
<riceandbeans>
can I rewrite the for statement as the do statement and will it be faster if instead of for i in 0..whatever if I do foo.each_index do |i|
<havenwood>
riceandbeans: What is foo?
<jhass>
see above
<riceandbeans>
it's an array
* sevenseacat
poinst at gist link
<jhass>
no point in answering this in the abstract
<riceandbeans>
I cannot gist
ghr has quit [Ping timeout: 256 seconds]
<sevenseacat>
thats a shame.
<havenwood>
riceandbeans: The code you showed us makes no sense.
EllisTAA has joined #ruby
<riceandbeans>
my company scans any dns with gist/paste and takes the content and yells at us about anything
<sevenseacat>
lol
<riceandbeans>
regardless of the output they claim it was company data
dualbus has joined #ruby
<jhass>
http://termbin.com/ there, doesn't have "gist" or "paste" in the name
<riceandbeans>
hmmm...idea
allomov has quit [Ping timeout: 252 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Fooster has joined #ruby
<adaedra>
ix.io also works
paulcsmith has quit [Quit: Be back later ...]
tkuchiki has joined #ruby
podman has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
A205B064 has joined #ruby
stamina has joined #ruby
Nishant_ is now known as nini1294
baroquebobcat has joined #ruby
paulcsmith has joined #ruby
e1nh4nd3r has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
EllisTAA has quit [Quit: EllisTAA]
someword has quit [Quit: Leaving.]
Alayde has joined #ruby
serivich has joined #ruby
naftilos76 has quit [Remote host closed the connection]
towski_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
<shevy>
riceandbeans trick your company!
paulcsmith has quit [Ping timeout: 246 seconds]
<riceandbeans>
this server is outside my company, suppose I could elinks it
<riceandbeans>
:P
tkuchiki has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 244 seconds]
<sevenseacat>
i think they just wanted to trick us by not actually posting any code
<podman>
hey guys, is there a good way to get AR to use milliseconds with mysql outside of rails?
<miah>
there is a github api gem too
<jhass>
?crosspost podman
<ruboto>
podman, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
adefa has joined #ruby
<bootstrappm>
you just do: `gem install gist` then `gist filename.rb` and it'll output a url
<podman>
really?
<jhass>
really
<podman>
wow
baweaver has joined #ruby
<havenwood>
podman: That's just irc etiquette.
<riceandbeans>
yeah but if you have 2fa it doesn't work
<podman>
havenwood: I've been using IRC since 1996.
chipotle has joined #ruby
peteykun has quit [Quit: Leaving]
<riceandbeans>
and I don't post things that don't expire
<riceandbeans>
homey don't play that
<podman>
i've never heard of people complaining about asking the same question in multiple channels
scripore has quit [Quit: This computer has gone to sleep]
<sevenseacat>
then you havent been in this channel very long
<sevenseacat>
or #rubyonrails
<podman>
no, i haven't been in #ruby very long, and while that might be a problem for this channel, it's not something i've seen on IRC in general
<jhass>
or crossposting to channels with large userbase unions
<sevenseacat>
this is why you always read a channel's rules before posting :)
<podman>
why not put something about that in the topic?
paydro has joined #ruby
<sevenseacat>
it is.
<sevenseacat>
as part of the rules that you didnt read.
gauke has joined #ruby
ebbflowgo has joined #ruby
metallicrwr has joined #ruby
<jhass>
granted we could prefix the first one with Rules & more
<havenwood>
podman: Anyways, if you let large channels know you're crossposting folk won't waste time answering already-answered questions and can follow parallel discussions.
<podman>
Yeah, I think that would be helpful
dfockler has joined #ruby
momomomomo has quit [Quit: momomomomo]
<podman>
havenwood: maybe it's not wasting time though. what if someone has a better solution, etc
<jhass>
apeiros: ^ watcha think about prefixing the ruby-community.com link with that?
<jhass>
podman: we do not ask to not crosspost, we do ask to inform
<havenwood>
podman: Then the other channels learn of the better solution.
<sevenseacat>
then you tell people you're crossposting and we move on
<podman>
Sure, I just glanced at the message from the bot, but it starts "podman, Please do not crosspost..."
<sevenseacat>
its a very real problem for two channels so closely linked like #ruby and #rubyonrails
<podman>
which was posted a few seconds after i posted and was kind of startling and somewhat hostile
Torrieri has joined #ruby
Torrieri has joined #ruby
<sevenseacat>
sigh
<havenwood>
podman: Where else did you post?
<jhass>
any suggestions to reword it are welcome, you might want to join #ruby-community which we use for discussions around that
<havenwood>
Assuming #rubyonrails?
<sevenseacat>
#rubyonrails
hahuang65 has joined #ruby
<podman>
in #RubyOnRails
<havenwood>
thx
<podman>
they're related channels but they're not the same
<jhass>
I wonder if you even read what people wrote
denver has quit [Remote host closed the connection]
<jhass>
the argument about the channels being related was that it means we see it happen a lot more often
Porfa has quit [Quit: Porfa]
<jhass>
not that it's bad etiquette because of that
<podman>
I'm sorry my opinion about asking the same question in different channels is different that yours. That doesn't mean I didn't read what you wrote
<bootstrappm>
I think we've strayed a bit here ...
<bootstrappm>
podman, you understand the rules?
<sevenseacat>
why so much argument? you now know our channel rules, lets move on
<bootstrappm>
then lets move on
GnuYawk has joined #ruby
<podman>
yep, understand the rules
<jhass>
^ podman if you want to continue to discuss this please join #ruby-community
<havenwood>
There's a #ruby-community channel if anyone wants to discuss improvements to the rules.
<havenwood>
Or ways to make factoids more friendly.
Cache_Money has joined #ruby
<havenwood>
Or TL;DR-proof.
__butch__ has joined #ruby
polysics has quit [Remote host closed the connection]
<podman>
I care much more about getting milliseconds to work than discussing crossposting of questions in IRC channels
mrsolo has joined #ruby
segfalt has quit [Quit: segfalt]
Respek has joined #ruby
<sevenseacat>
lol
<bootstrappm>
podman what method would you like to return milliseconds? or are you talking about logging?
<bootstrappm>
or storing ms in DB?
pdoherty has quit [Quit: Leaving]
mkulke has quit [Quit: Leaving...]
chipotle has quit [Quit: cheerio]
zendrix has joined #ruby
<podman>
I'll restate the original question: I'm using AR with the mysql2 adapter in a project outside or Rails. I'm trying to store milliseconds in DB
hahuang65 has quit [Ping timeout: 250 seconds]
Zai00 has quit [Ping timeout: 256 seconds]
Cache_Money has quit [Read error: Connection reset by peer]
sevenseacat has quit [Quit: Me dun like you no more.]
<podman>
bootstrappm: i tried that. it works well in Rails, but doesn't seem to work outside of it for some reason
<bootstrappm>
the only thing Rails-specific about ^ that answer is where to put time.rb (config/initializers). In a non-Rails project you just have to manually include it with a require
Encapsulation has quit [Quit: Leaving]
byprdct has quit [Max SendQ exceeded]
itisit has joined #ruby
<bootstrappm>
if you tried that I'd suggest including that information with your question podman ;)
Encapsulation has joined #ruby
stamina has quit [Ping timeout: 264 seconds]
<bootstrappm>
well this looks to be from late last year, I doubt AR would have changed the way it handles datetimes + mysql since that time
<itisit>
there is a string "abc.def\n", I want to retrieve "abc" from it, what's the function to truncate it? thanks!
<bootstrappm>
I'd suggest a grep through AR for DATE_FORMATS and see exactly how it uses it
krz has quit [Ping timeout: 264 seconds]
<jhass>
?fake itisit
<ruboto>
itisit, Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
Encapsulation has quit [Read error: Connection reset by peer]
<bootstrappm>
could somebody do that ruboto thing with real code for itisit? /cc jhass
<bootstrappm>
itisit, reason being: I'm not sure what the constant is in the string in your question. Does the period change? Is it always 'abc'? Do you just want the first three letters always or do you want to split on period?
<itisit>
ruboto: a = "abc.def\n", b = a.split('.').first, that works. but if a = "abc\n" how to get "abc"?
jackjackdripper has joined #ruby
<havenwood>
itisit: Show more cases. What are a list of possible inputs?
<jhass>
itisit: real inputs, not made up ones
<bootstrappm>
podman any luck looking for DATE_FORMATS?
<podman>
bootstrappm: doesn't show up anywhere in AR as best I can tell
paydro has left #ruby [#ruby]
<jhass>
activerecord/lib/active_record/integration.rb:11: # Accepts any of the symbols in <tt>Time::DATE_FORMATS</tt>.
<ruboto>
bootstrappm # => "{\"3290\":\"2\",\"3291\":\"3\",\"3292\":\"4\",\"3293\":\"5\",\"3294\":\"6\",\"3295\":\"7\",\"3296\" ...check link for more (https://eval.in/376215)
<shevy>
"This git repo is a fork of git://anongit.freedesktop.org/systemd/systemd with the aim of isolating udev from any particular flavor of system initialization. In this case, the isolation is from systemd."
NullPointer has joined #ruby
<shevy>
resistance is futile
NullPointer is now known as Guest58159
IanVorn has joined #ruby
<shevy>
We will add your biological and technological distinctiveness to our own.
Guest58159 has quit [Client Quit]
<shevy>
hmm... the BORG were not so clever...
paulcsmith has joined #ruby
<shevy>
if they would have known what a train wreck the human species is, they would have never wanted them!
<bootstrappm>
^ that just reminded me, for anybody thats interested in biomedical engineering, they created a full grown rats arm in lab the other day
pietr0 has joined #ruby
<bougyman>
it's not at all futile, shevy
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman>
I can guarantee there will always be one linux without systemd
EllisTAA has joined #ruby
<shevy>
well old ones perhaps?
<shevy>
bootstrappm the frankenstein rat?
<bootstrappm>
what's arch use?
Scroff has quit [Remote host closed the connection]
<shevy>
dunno. jhass knows probably
<shevy>
systemd I guess
MatthewsFace has joined #ruby
<jhass>
yup, second adopter of it after fedora
IanVorn has quit [Client Quit]
<bougyman>
yeah arch moving to systemd made me mad at the time
<bougyman>
but i'm much happier now with voidlinux, so I'm glad arch did it.
<shevy>
hehehe
EllisTAA has quit [Client Quit]
segfalt has joined #ruby
wallerdev has joined #ruby
<jhass>
that's what this is about right? everybody can choose what they like, no need to hate each because of that
<miah>
as a transgender person, much of the 'mrs. garrison' storyline was :/
<shevy>
perhaps they could even use specialized 3D printers one day for scaffolds
paulcsmith has joined #ruby
<bootstrappm>
ahahaha that img
<jhass>
miah: sorry, that's just how south park is though...
<bootstrappm>
miah yeah, southpark tends to be hard on the marginalized
<bootstrappm>
:/
<bootstrappm>
much like family guy
<miah>
indeed
<shevy>
I never watched south park... but I think it had a few famous components... the chewbacca line of defence, as reference to O.J. Simpsons, is from south park I think
<miah>
i do tend to like southpark though
x1337807x has joined #ruby
<jhass>
shevy: yup
serivich has quit [Ping timeout: 244 seconds]
EllisTAA has quit [Client Quit]
x1337807x has quit [Max SendQ exceeded]
sandstrom has joined #ruby
EllisTAA has joined #ruby
x1337807x has joined #ruby
apofis has joined #ruby
x1337807x has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
__butch__ has joined #ruby
metallicrwr has quit [Ping timeout: 246 seconds]
Limix has joined #ruby
EllisTAA has quit [Client Quit]
paulcsmith has quit [Ping timeout: 255 seconds]
apofis has quit [Read error: Connection reset by peer]
apofis has joined #ruby
zendrix has quit [Remote host closed the connection]
IrishGringo has joined #ruby
mberk has joined #ruby
EllisTAA has joined #ruby
zendrix has joined #ruby
<theRoUS>
when creating a gem with a name like 'ruby-foo', how should the internal naming be structured, especially if 'foo' is already namespaced by one or more other gems? Ruby::Foo ? RubyFoo ?
scripore has joined #ruby
<havenwood>
theRoUS: ruby_foo corresponds with RubyFoo and ruby-foo with Ruby::Foo.
porkqpain has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<theRoUS>
i speak a little russian, and i asked a russian acquaintance about it. also, i asked him about an auto reg plate that looked suspiciously Cyrillic: CTEPBA
<miah>
pretty amazing for a movie that doesnt actually exist =)
<theRoUS>
which, again loosely translated, means 'bitch'
<shevy>
Anonymous doomed fighter pilot: "They're all over me.", becomes:
<bootstrappm>
omg that star wars translation is hillaaaaarious
<shevy>
"He is in my behind"
RandyT has joined #ruby
<shevy>
I think they do it on purpose sometimes... but at other times, it really does not seem to be on purpose at all
sandstrom has quit [Quit: My computer has gone to sleep.]
fujimura has quit [Ping timeout: 256 seconds]
EllisTAA has joined #ruby
<shevy>
only yoda makes sense in that translation
<theRoUS>
shevy: my thoughts exactly!
<shevy>
:)
mberk has quit []
<shevy>
it's interesting that this suddenly makes for a more comedic movie than it normally would be
apofis has quit [Quit: This computer has gone to sleep]
psy_ has joined #ruby
<theRoUS>
meh. so a gem for using mklivestatus (for nagios).. should it be ruby-mklivestatus (Ruby::MKLiveStatus) or ruby_mklivestatus (RubyMKLiveStatus) >
* theRoUS
grumbles, edge cases, always with the edge cases
<shevy>
well normally, if you can omit the 'ruby_' part this would be ideal
<shevy>
best would be: name of top-level namespace == name of project
<shevy>
so if you require 'mklivestatus', ideally you would have a main module namespace module Mklivestatus too
EllisTAA has quit [Ping timeout: 276 seconds]
<shevy>
people are lazy, typing RubyMKLiveStatus is so much work
<theRoUS>
there's already a 'mklivestatus' gem and a 'nagios_mklivestatus' one.
<shevy>
yeah that sucks
leafybasil has quit []
<shevy>
I'd wish one could have multiple same-named gems
<theRoUS>
yeah, but namespacing and not tromping on others' work is also important
<shevy>
ok but consider this:
<shevy>
module Configuration
agent_white has quit [Quit: brbtowindows]
<shevy>
I'd only ever want to have a single gem there
sandstrom has joined #ruby
<shevy>
and not be this anyone else's namespace :D
c355E3B has quit [Quit: Connection closed for inactivity]
IrishGringo has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253]]
pandaant has joined #ruby
pepelui has joined #ruby
mc_fail has quit [Ping timeout: 245 seconds]
mdw has joined #ruby
balazs has quit [Ping timeout: 255 seconds]
rubie has quit [Read error: Connection reset by peer]
mc_fail has joined #ruby
b_hoffman has joined #ruby
b_hoffman has quit [Client Quit]
bmurt has quit [Read error: Connection reset by peer]
rubie has joined #ruby
zendrix has joined #ruby
IanVorn has joined #ruby
bmurt has joined #ruby
IanVorn has quit [Max SendQ exceeded]
IanVorn has joined #ruby
affenhoden has joined #ruby
apt-get_ has joined #ruby
EllisTAA has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
sarkyniin has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
edwinvdgraaf has joined #ruby
peterhu has quit [Quit: kernel update]
adac has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
snockerton has quit [Quit: Leaving.]
edwinvdgraaf has quit [Remote host closed the connection]
sepp2k has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
yalue has quit [Read error: Connection reset by peer]
peterhu has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
stamina has joined #ruby
edwinvdgraaf has joined #ruby
x1337807x has joined #ruby
danman has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
mister_solo has joined #ruby
gattuso has joined #ruby
x1337807x has joined #ruby
yfeldblum has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<ruby-lang431>
.
pepelui1 has joined #ruby
mrsolo_ has joined #ruby
x1337807x has joined #ruby
Matthews_ has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3asd` has joined #ruby
pepelui has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
Matthews_ has quit [Remote host closed the connection]
atomical has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
pepelui1 has quit [Client Quit]
Matthews_ has joined #ruby
Soda has quit [Ping timeout: 245 seconds]
MatthewsFace has quit [Read error: Connection reset by peer]
pepelui has joined #ruby
mrsolo has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
leat1 has quit [Ping timeout: 264 seconds]
pepelui has quit [Max SendQ exceeded]
Soda has joined #ruby
pepelui has joined #ruby
pepelui has quit [Max SendQ exceeded]
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
snockerton has joined #ruby
finisherr has joined #ruby
<jhass>
DeBot: :S
<DeBot>
␣␣␣::␣␣␣␣::␣␣␣␣␣␣␣␣␣␣s␣␣ [] 0/12
pengin has quit [Remote host closed the connection]
<baweaver>
DeBot: :A
<DeBot>
␣␣␣::␣␣A␣::␣␣␣␣␣␣␣␣␣as␣␣ [] 0/12
cj has joined #ruby
<cj>
hey folks
<baweaver>
DeBot: :E
<DeBot>
␣e␣::␣␣A␣::␣␣␣␣␣␣␣e␣as␣␣ [] 0/12
lxsameer has joined #ruby
<baweaver>
DeBot: :N
<DeBot>
Ne␣::␣␣A␣::␣␣␣␣␣␣␣e␣as␣␣ [] 0/12
<jhass>
baweaver: pause please
* baweaver
pauses
e1nh4nd3r has quit [Quit: Leaving.]
<baweaver>
cj: question?
leat1 has joined #ruby
IrishGringo has joined #ruby
<cj>
baweaver: typing it :-)
DLSteve has joined #ruby
adac has quit [Ping timeout: 256 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
<baweaver>
jhass is just miffed that I'm winning :P
<eam>
how do I guess
DeBot has left #ruby [#ruby]
<baweaver>
aw
<baweaver>
he killed it
<eam>
It's a Net::IMAP::BodyType??
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
Net::IMAP::BodyTypeBasic?
<cj>
so, I downloaded ruby 2.1.6 (x64) and the mingw dev kit (64-4.7.2-20130224-1432) from rubyinstaller.org/downloads and attempted to follow the instructions at http://github.com/oneclick/rubyinstaller/wiki/Development-Kit, but it refers to a dk.rb file, which doesn't seem to be there...
usandfriends has joined #ruby
usandfriends has left #ruby [#ruby]
<cj>
maybe I'm up one too many directories...
moretti has joined #ruby
zendrix has quit [Remote host closed the connection]
porkqpain has joined #ruby
<cj>
yeah, that's it. FFS. The installer by default suggests ~/Downloads and unpacks it there.
<jhass>
your're welcome!
<baweaver>
quack quack
joaomdmoura has joined #ruby
DeBot has joined #ruby
hahuang65 has joined #ruby
<baweaver>
we make for a good rubber ducky on occasion
<finisherr>
Yeah, i wasn’t looking at the stacktrace close enough
<finisherr>
Need some coffee i think : )
jenrzzz has joined #ruby
ferr has joined #ruby
<tuelz2>
does anyone know where I can find some example code for using activesupport and actionview helpers for showing tiem calculations like you would expect for an auctions remaining time?
<tuelz2>
I can't seem to get any of the modules loaded properly or I'm missing deps or something
polysics has joined #ruby
bigkevmcd has quit [Quit: outta here]
Miphix has quit [Quit: Leaving]
<cj>
tuelz2: error log output?
<jhass>
also might have better luck in #RubyOnrails
IanVorn has joined #ruby
<tuelz2>
jhass: good idea
matt_m has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
IanVorn has quit [Max SendQ exceeded]
nateberkopec has quit [Quit: Leaving...]
baweaver has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.1.1]
<tuelz2>
cj: sorry I got fed up and started writing my own code for it - I'm sure you could help me debug, was just asking for a magic bullet before I started pullinug our hair and debugging code
IanVorn has joined #ruby
baroquebobcat has joined #ruby
havenwood has joined #ruby
banister has joined #ruby
icedp has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
Xiti has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
baweaver has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 264 seconds]
dwn has quit [Ping timeout: 264 seconds]
stamina has quit [Ping timeout: 276 seconds]
dwn has joined #ruby
shellfu has quit [Quit: Page closed]
pocketprotector has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
icedp has joined #ruby
kartouch has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby
gauke has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
Xiti has joined #ruby
x1337807x has joined #ruby
kartouch has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
x1337807x has quit [Max SendQ exceeded]
mrmargolis has joined #ruby
x1337807x has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moretti has quit [Quit: Leaving...]
adefa has quit [Ping timeout: 272 seconds]
mrmargol_ has quit [Read error: Connection reset by peer]
joaomdmoura has quit [Read error: No route to host]
<cj>
tuelz2: no worries. I'm not very good with ruby, but I've been looking for errors in logs my whole life :-)
MouseTheLuckyDog has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
anytimeb_ has quit [Quit: Leaving...]
cmisenas has joined #ruby
jtzero has joined #ruby
jtzero has left #ruby [#ruby]
kies has quit [Ping timeout: 256 seconds]
premera_c has quit [Remote host closed the connection]
<havenwood>
daed: Can you show the code?
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
aryaching_ has joined #ruby
<daed>
havenwood: unfortunately it's probably like 1000 lines of various code and i can't seem to trace precisely where this is coming from, ruby-prof only says "DRbMessage#load called IO#read" and it's hanging there
zendrix has joined #ruby
Brozo has joined #ruby
platzhirsch has joined #ruby
<daed>
IO#read isn't blocking like that in other environments though
mister_solo has quit [Ping timeout: 272 seconds]
aryaching has quit [Ping timeout: 252 seconds]
aryaching_ is now known as aryaching
Blaguvest has joined #ruby
roar has joined #ruby
platzhirsch has left #ruby [#ruby]
fabrice31 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
chipotle has joined #ruby
juanpaucar has joined #ruby
n80 has quit [Quit: n80]
zdman135 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
balazs_ has joined #ruby
dfockler has quit [Remote host closed the connection]
mrmargol_ has quit [Remote host closed the connection]
mrmargolis has joined #ruby
zendrix has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
duderonomy has joined #ruby
snophey has quit [Read error: Connection reset by peer]
<shevy>
dudedudeman I struggle too. But I am naturally lazy, so I tend to write code that is very simple
fujimura has joined #ruby
Pupeno has joined #ruby
<havenwood>
daed: Do you know what it's deserializing when it gets stuck?
fabrice31 has quit [Ping timeout: 272 seconds]
<daed>
havenwood: there are hundreds of drb messages flowing through the processes (about 6+ processes)
<dudedudeman>
shevy: i like to think part of it is because i'm a junior, but i don't want to hang my laruels on that too much
<havenwood>
daed: hmm
<daed>
maybe i'll patch in some logging
dionysus69 has joined #ruby
pietr0 has quit [Quit: pietr0]
<daed>
havenwood: still seems weird that ruby-prof is giving me such a small stack trace
<havenwood>
aye
<shevy>
dudedudeman you'll be much lazier in 10 years man :)
<shevy>
a part of the reason why I write code is so I can be lazy lateron
sandstrom has quit [Quit: My computer has gone to sleep.]
__butch__ has quit [Client Quit]
<shevy>
which testing style is the most fun?
iamjarvo has joined #ruby
baweaver has joined #ruby
someword has joined #ruby
Pupeno has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
doctorly has joined #ruby
<daed>
havenwood: FWIW i used the html callstack printer and it gave me the full callstack
<daed>
drbconn#sendmessage, drbtcpsocket#recv_reply, drbmessage#recv_reply, drbmessage#load and it hands there on IO#read within the load() function
<duderonomy>
I have a need to create a properly formatted XML doc from collection of structured data sets (but sometimes they vary based on version). Then, hopefully, other services can access that data via an API .
Pupeno has joined #ruby
Pupeno has joined #ruby
<duderonomy>
Of course, I am inexperienced in both xml and ruby.
jackjackdripper has quit [Quit: Leaving.]
kadoppe has quit [Ping timeout: 272 seconds]
kies has joined #ruby
n1x has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
<duderonomy>
Has the community innovated past Jim's canonical builder gem?
sandstrom has joined #ruby
kadoppe has joined #ruby
fmcgeough has joined #ruby
snophey has joined #ruby
<duderonomy>
Seems like the place I should start
e1nh4nd3r has joined #ruby
CorySimmons has joined #ruby
Y4Rv1K has quit []
<shevy>
duderonomy first step is I would try to use nokogiri
Y4Rv1K has joined #ruby
<shevy>
have a look at the examples, I think it should allow you to do everything regarded XML
<tenspeed705>
weaksauce: I thought you were referring to the hasbro game.
<tenspeed705>
thanks jhass
<weaksauce>
:)
<Diabolik>
can anyone recommend any resources for ruby algo design
phizzbuzz has quit [Read error: Connection reset by peer]
ajk_ has joined #ruby
GnuYawk has joined #ruby
<weaksauce>
Diabolik in what sense?
<Diabolik>
im struggling with doing some of the tougher codewars stuff
<weaksauce>
how ruby is designed? or how to implement an algorithm in ruby.
<Diabolik>
the latter
ruby-lang938 has joined #ruby
<ruby-lang938>
hello
snsei has joined #ruby
ruby-lang938 has quit [Client Quit]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
zenguy_pc has quit [Read error: No route to host]
<jhass>
12 seconds, had it worse
x1337807x has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Max SendQ exceeded]
EllisTAA has quit [Quit: EllisTAA]
<weaksauce>
Diabolik can you gist an example?
<ajk_>
v = "testing testing\n testing testing" v[/(?<=\\n ).+/] returns nil any idea why? I can get this working in Rubular but not in irb.
x1337807x has joined #ruby
EllisTAA has joined #ruby
pmarreck has joined #ruby
pusewicz has joined #ruby
sandelius has joined #ruby
cmisenas has quit [Ping timeout: 256 seconds]
mrmargolis has quit [Ping timeout: 244 seconds]
<ajk_>
Essentially im trying to grab everything after the \n break
balazs_ has quit [Ping timeout: 265 seconds]
momomomomo has quit [Quit: momomomomo]
krainboltgreene has joined #ruby
harleypig has joined #ruby
vcoinminer has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
im0b has joined #ruby
<finisherr>
When retrieving paginated REST responses from an HTTP API, is it best to iterate through each page and append the results to some object until the next page returns a 404?
avdi has joined #ruby
<havenwood>
ajk_: Single versus double quotes.
alol___ has joined #ruby
jeregrine has joined #ruby
neersighted has joined #ruby
<havenwood>
ajk_: Whether it's a newline or escaped, so actually the characters '\' and 'n'
<weaksauce>
Diabolik think like a computer... how would you do that if you were to do it by hand?
mistermocha has joined #ruby
<Ox0dea>
weaksauce: Computers don't have hands.
n80 has joined #ruby
<weaksauce>
how would you do that if you were handless then?
<weaksauce>
:P
<ajk_>
havenwood: what if im retrieveing the string from an object how do i use single quotes?
fedexo has quit [Ping timeout: 256 seconds]
adambeynon has joined #ruby
zero7 has joined #ruby
hellschreiber has joined #ruby
simplyianm has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
shelling__ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akitada has joined #ruby
relix has joined #ruby
<Diabolik>
weaksauce
<Diabolik>
i get that
<Diabolik>
and i have a page of notes
mrmargolis has joined #ruby
<Diabolik>
but its shit like working out how to capitalize the first letter of each word
<Diabolik>
that i don't know
pizzaops has joined #ruby
gsd has quit [Ping timeout: 264 seconds]
andrewstewart has joined #ruby
<Ox0dea>
Diabolik: Are you behind the Great Firewall?
n1ftyn8 has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
<havenwood>
ajk_: So you don't want to change your regexp to match the data, you want to change the data to match the regexp?
machty has joined #ruby
<havenwood>
ajk_: Maybe I'm missing something but why not use a regexp that matches your data?
dede has joined #ruby
nateberkopec has quit [Quit: Leaving...]
yo61 has joined #ruby
icbm has joined #ruby
Fooster has joined #ruby
phizzbuzz has joined #ruby
<ajk_>
havenwood: so im retrieving my data through nokogiri as a string object however when i try to apply the regex it returns nil, because its evaluating with double quotes, how can i have it evaluate it differently?
maZtah has joined #ruby
n3vtelen has joined #ruby
<havenwood>
ajk_: v[/(?<=\n ).+/]
casadei has quit [Remote host closed the connection]
<ajk_>
i see so i didnt need to escape the new line character
gsd has joined #ruby
<havenwood>
ajk_: Just don't escape the newline in your Regexp, if I'm understanding correctly. Yup
benlakey has joined #ruby
mdz_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lancetw has joined #ruby
<ajk_>
whats strange is it will still eval correctly in rubular.com with the escaped new line
<ajk_>
but not in irb
charles81 has joined #ruby
<ajk_>
i think thats where the confusion was
<Diabolik>
no Ox0dea
<Diabolik>
whty
<Diabolik>
*why
<havenwood>
ajk_: try in irb but with a single quote string, yeah
bcavileer has joined #ruby
<ajk_>
it works now, thank you havenwood
<havenwood>
ajk_: you're welcome
TinkerTyper has joined #ruby
<ajk_>
strange how an online repl could eval correctly though
<ajk_>
and not in irb
balazs_ has joined #ruby
<havenwood>
ajk_: well, i guess they had to pick single or double quotes for the test string
<havenwood>
ajk_: you chose double and they chose single
Zai00 has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
Zai00 has quit [Client Quit]
mrsolo has joined #ruby
preyalone has joined #ruby
crazydiamond has quit [Remote host closed the connection]
_ht has quit [Quit: Konversation terminated!]
rfv has joined #ruby
djbender has joined #ruby
gambl0re has quit [Ping timeout: 272 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skmp has joined #ruby
hahuang65 has joined #ruby
x1337807x has joined #ruby
<havenwood>
ajk_: i guess it'd be nice to show single quotes around the test string on Rubular to be more clear. you could open an issue asking to treat test string as double quotes for escaping.
x1337807x has quit [Max SendQ exceeded]
snsei has quit [Remote host closed the connection]
x1337807x has joined #ruby
roar has quit [Ping timeout: 252 seconds]
moretti has joined #ruby
d10n-work has joined #ruby
stan has quit [Ping timeout: 256 seconds]
<ajk_>
thats a good idea
EllisTAA has quit [Quit: EllisTAA]
prosodyContext has joined #ruby
cstrahan has joined #ruby
relix has joined #ruby
MiracleBlue has joined #ruby
<havenwood>
since Ruby returns double quoted String literals your expectation makes sense to me
baroquebobcat has quit [Quit: baroquebobcat]
hahuang65 has quit [Client Quit]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chrisseaton has joined #ruby
aryaching has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
cmisenas has joined #ruby
baroquebobcat has joined #ruby
EllisTAA has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
>> %q foo
<ruboto>
Ox0dea # => /tmp/execpad-349bd0dcfc34/source-349bd0dcfc34:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/376330)
<Ox0dea>
>> %q foo
<ruboto>
Ox0dea # => /tmp/execpad-b55f31f5ea7c/source-b55f31f5ea7c:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/376331)
countryHick has joined #ruby
<Ox0dea>
Huh?
snockerton1 has quit [Quit: Leaving.]
<zenspider>
what's the question?
<felltir>
%q { foo }
<Ox0dea>
ruboto chomps input.
<felltir>
>> %q { foo }
hahuang65 has joined #ruby
<ruboto>
felltir # => /tmp/execpad-af2d1083fc2f/source-af2d1083fc2f:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/376332)
<ruboto>
felltir # => /tmp/execpad-4ac77cd5f6f8/source-4ac77cd5f6f8:2: warning: string literal in condition ...check link for more (https://eval.in/376337)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
>> % %%%%%% %%%% % %%%%% %%%%
<ruboto>
eam # => /tmp/execpad-87cb1f98db6d/source-87cb1f98db6d:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/376342)
<adaedra>
So many %
fujimura has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
moretti has quit [Remote host closed the connection]
Limix has joined #ruby
adefa has joined #ruby
scripore has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
bmurt has quit []
vikaton has joined #ruby
micmus has quit [Ping timeout: 264 seconds]
Y4Rv1K has quit [Remote host closed the connection]
<jhass>
or the host you're trying to reach has no route towards it, at least from your network
codeitagile has joined #ruby
vikaton has quit []
<Ox0dea>
dfockler: What made you say so?
<jhass>
does it need a reason?
livathinos has joined #ruby
x1337807x has joined #ruby
hoey has joined #ruby
livathinos is now known as livathinos|away
<dfockler>
just refactoring and I made a method a lot nicer
Narzew has joined #ruby
x1337807x has quit [Max SendQ exceeded]
wldcordeiro has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
wallerdev has joined #ruby
x1337807x has joined #ruby
<autrilla>
jhass: mm okay, that doesn't really help me but I appreciate it
<dfockler>
also does anyone end up passing around a bunch of values and then realize you should have an object?
livathinos|away has quit [Client Quit]
<dfockler>
5 years out of school and I'm still learning OOP
balazs has joined #ruby
<eam>
shevy: we all are, really. It's the human condition
<jhass>
autrilla: well, there's nothing we say more without access to the machine you're getting that from and the host it's trying to reach. It's most likely unrelated to any of the ruby stuff
<jhass>
*we can
<ljarvis>
dfockler: they're all objects
workmad3 has joined #ruby
<dfockler>
:P
<autrilla>
I understand. I didn't code this.
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
dorei has quit []
njs126 has quit [Ping timeout: 265 seconds]
frem_ has joined #ruby
tuelz2 has joined #ruby
fusillicode has joined #ruby
<jhass>
yeah, I'm saying it's unlikely an issue in the code but in your system/network configuration
ogpastal_ has joined #ruby
<jhass>
I wish ruby would dump the IPs in these errors though
ogpastal_ has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
ndrei has joined #ruby
ogpastaling has quit [Ping timeout: 258 seconds]
frem_ is now known as frem
hinbody has quit [Quit: leaving]
[H]unt3r has quit []
OrbitalKitten has joined #ruby
<drbrain>
autrilla: ↑ I agree
kies has quit [Ping timeout: 265 seconds]
<autrilla>
I doubt that, I don't even have a firewall
<autrilla>
selinux is permissive... heh
vikaton has joined #ruby
mdz_ has joined #ruby
<eam>
selinux at all can cause odd behavior. I always disable it completely
<workmad3>
autrilla: not having a firewall doesn't mean your network settings are good
mdz_ has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
zendrix has quit [Remote host closed the connection]
jimmybee88 has joined #ruby
<autrilla>
workmad3: why would they be wrong?
<jhass>
and it doesn't mean your ISPs network config is good, or that of the target hosts ISP or any in between
decoponio has joined #ruby
jimmybee88 has left #ruby [#ruby]
<workmad3>
autrilla: because you're getting an error stating that the network is unreachable? :P
<jhass>
all could have a mess in their configs and cause that particular error
<autrilla>
It'd be useful to know what network
<jhass>
the one of the target host
<autrilla>
Yeah, I figured that much.
<workmad3>
jhass: man, I just *love* networks :D
victortyau has quit [Quit: Leaving]
<jhass>
I think a lot of people do, so that's why this inter-network thing happened
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
good thing IRC was forward compatible
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
jhass are you writing much crystal code these days?
<workmad3>
shevy: bah, you missed a great opportunity for implication there :(
<jhass>
hmm, not writing much code at all
<workmad3>
jhass: doing much crystal nowadays?
<workmad3>
^^ see
<jhass>
heh
<shevy>
workmad3 yeah... but this time I really wanted to know if he was writing crystal code!
ghr has joined #ruby
felltir has quit []
<workmad3>
jhass: if I was doing crystal, I would so alias the runtime to 'meth' :D
<workmad3>
(assuming the compiler isn't already called that)
<jhass>
I wonder when somebody will write methhead for Crystal and what it'll do to method headers
zendrix has joined #ruby
<Mon_Ouie>
Just rename the 'def' keyword to 'meth'
<workmad3>
Crystal Methhead - for really f***ing up method headers
dfockler has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
OrbitalKitten has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
<jhass>
I'm also still awaiting the rack port crack
<shevy>
I can do so via direct assignment, or through a method
<shevy>
the problem is that the real module has lots of small methods defined; and I sort of want to say "redirect the output of all those methods, into @string"
<jhass>
we already have like 6 early webframeworks for crystal, doing rack for crystal would actually be good so we can do stuff like binding lwan and idk
<bougyman>
what is crystal?
kstuart has quit [Read error: Connection reset by peer]
<bougyman>
it's a bitch to google, i'll tell you that.
kstuart has joined #ruby
<shevy>
lol
<bougyman>
why do ruby people choose such common names for things?
<bougyman>
anyone remember God ?
<shevy>
crystal lang should help
<jhass>
a programming language
<bougyman>
wth, really.
<dudedudeman>
bougyman: cyrstal is on reddit as well
<shevy>
giving names to things is hard :)
<bougyman>
no it isn't
<bougyman>
just use something that's not a word.
<bougyman>
or an ancient word.
<bougyman>
or a sanskrit word.
<shevy>
oh an ancient word
<bougyman>
c'mon.
pengin has joined #ruby
<workmad3>
def
<shevy>
now we get into the difficult part
<shevy>
latin names!
<shevy>
my gem is called sansori mortus est
<Ox0dea>
shevy: Make @string a StringIO and delegate #puts?
<workmad3>
bougyman: crystal is a different programming language, btw :P
<dudedudeman>
i'd like to write a programming language called shevy
<bougyman>
great fucking name
<shevy>
it makes pandas on the commandline
nibbo has quit [Ping timeout: 256 seconds]
<bougyman>
workmad3: yeah I saw that.
<shevy>
Ox0dea oh... hmm
<workmad3>
0xDEADBEEF
<shevy>
dudedudeman that was already suggested once, I don't remember by who. thankfully it was not accepted
<workmad3>
^ everyone's favourite hex
<Ox0dea>
False.
<bougyman>
I have shitinternet here (on vacation in dominican republic), can I get a few sentence summary of crystal?
<shevy>
crystal is very similar to ruby in syntax style
<bougyman>
luckily irc + znc is frekking bulletproof.
<bougyman>
ah, elixir style?
<workmad3>
bougyman: it's like ruby, but with types and a compiler
vikaton has quit []
<bougyman>
what vm does it run on, or is it AOT ?
<shevy>
but the promise is that you have an easier time interfacing with C, and it is compiled I think rather than interpreted
<bougyman>
an, AOT.
<ytti>
0xf00fc7c8
<dudedudeman>
jhass: what did you change in the topic?
<workmad3>
jhass: did that seem accurate? :)
<bougyman>
cool, will check it out when I return.
<bougyman>
I like exlixir quite a bit.
<bougyman>
the erlang vm is quite nice.
<jhass>
workmad3: pretty much
<shevy>
btw it's funny that during your vacation
<shevy>
you still hang out on #ruby :D
<bougyman>
well but of course.
<bougyman>
i'm just drinking margaritas 10m from the ocean atm
<bougyman>
why not chat a bit?
eggoez has joined #ruby
scripore has joined #ruby
someword has quit [Quit: Leaving.]
<shevy>
Ox0dea I guess I have to familiarize myself with StringIO first
<workmad3>
shevy: it's an IO-like object that wraps around a String
<jhass>
workmad3: bougyman the highlight feature of Crystal is that you rarely have to specify types while being a compiled & statically typed language
freerobby has quit [Quit: Leaving.]
<bougyman>
inferred types are good and bad, I think.
<bougyman>
I'm loving ponylang's capabilities.
<bougyman>
I guess I should call them Capabilities
<shevy>
optional types would be kinda cool
<bougyman>
they're a first class thing
<bougyman>
it's a layer between types and the compiler.
apt-get_ has quit [Ping timeout: 256 seconds]
<jhass>
yeah, pony is deliberately designed to like never specify a type
<bougyman>
which sets rules for what a type can do, and what can be done to it.
<shevy>
what is your pony
<jhass>
crystal compromises to retain much of the Ruby look & feel
<shevy>
did bougyman not say something a few lines above about silly names
<shevy>
feed the pony some crystal!
apt-get_ has joined #ruby
<bougyman>
well, i don't like pony-lang's name much either.
<bougyman>
but ponyc is acceptable
<workmad3>
jhass: looking @ it, types are mostly used in method declarations, right?
Aww is now known as Aww90210
<bougyman>
that's what I named the package in voidlinux
<shevy>
lol
KnownSyntax has quit [Quit: Connection closed for inactivity]
apt-get_ has quit [Client Quit]
<bougyman>
I did like nimrod's name.
<bougyman>
and they had to go and change it
<jhass>
workmad3: that makes things easier to work with as you get compiler errors with your stuff higher up in the trace, but again for a lot of stuff not necessary
<jhass>
stdlib does it a lot because of what I said
<bougyman>
i'm starting to actually believe the hype about ponyc, in that if it compiles, it cannot crash.
<workmad3>
jhass: nah, that's actually making we want to try it some more :D
<jhass>
and not have it error out when it hits the C bindings
allcentury has quit [Ping timeout: 258 seconds]
<bougyman>
a lot of C programmers believe that about their apps, and it's so untrue.
<bougyman>
with ponyc there's a lot more confidence, even at this early age of the lang.
<workmad3>
jhass: ruby-like, but with type annotations in one of the places that research seems to show they're useful!
<shevy>
research shows.... hmm
<workmad3>
and otherwise, mostly optional
Aww90210 is now known as Aww
<jhass>
what I like most is how it trained me to avoid nil even more
<bougyman>
pony doesn't have a null.
<bougyman>
but of course they have a None
vikaton has joined #ruby
<shevy>
nil is bad?
<workmad3>
shevy: in this case, research == multiple repeated studies on code comprehension and task completion speeds with multiple different cohorts covering a wide span of experience levels
<shevy>
None is bad?
<bougyman>
None isn't bad.
<bougyman>
it's very limited in scope, though
<bougyman>
nil is bad.
<bougyman>
tell me you haven't seen a "no method Blah on NilClass" before
<bougyman>
a hundred or so times.
FernandoBasso has quit [Quit: leaving]
<bougyman>
None returns None for any non existing method
<workmad3>
shevy: there have also been some eye-tracking studies under those circumstances that show the first thing people do when going to a method is (unsurprisingly) look at the declaration for an indication of how to call it :D
<ljarvis>
ah yes, null, the billion dollar mistake
vdamewood has joined #ruby
<shevy>
my apps aren't worth a billion dollars yet!
<bougyman>
make None more like /dev/null than /dev/zero
<bougyman>
er it makes
endash has quit [Quit: endash]
<ljarvis>
some/none pattern seems to be very popular and getting moreso with new languages
whippythellama has quit [Quit: whippythellama]
<jhass>
crystals nil defines very few methods, so you can't invoke stuff on it if it's a potential nil
<jhass>
makes you handle the nil cases
Yzguy has joined #ruby
neanderslob has joined #ruby
<ljarvis>
i have enough of that with all of the go code i write
<ljarvis>
:D
geggam has joined #ruby
<havenwood>
mmm
<jhass>
well, it also makes you write code that returns less nils ;)
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<bougyman>
jhass: yeah, that's what i've notice, you just avoid it.
jerematic has joined #ruby
<bougyman>
coding without nils/nulls isn't hard, when it isn't hard.
<geggam>
might be a silly question but im asking anyway... is there anyway to have ruby limit the amount of memory it uses... or do I need to do that with the system ?
griffindy has joined #ruby
<bougyman>
they can't show up unexpectedly, that is.
<bougyman>
only expectedly.
<geggam>
like with the jvm i can allocate memory
dopie has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman>
it's supposed to give you instructions on how to approach a test, but... it just gives me out put like "SESSS"
DEA7TH_ has quit [Ping timeout: 256 seconds]
fujimura has quit [Ping timeout: 255 seconds]
<zenspider>
skip, error, skip, skip, skip
<zenspider>
fix the error, go address the skips (if applicable)
<jhass>
which exercise?
mordocai has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
<zenspider>
the error will have output a message and a backtrace
<zenspider>
find the backtrace part of YOUR code. that's where the problem is
bonhoeffer has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<jhass>
ah right minitest
<jhass>
lol, didn't recognize that
k3asd` has quit [Ping timeout: 272 seconds]
<bonhoeffer>
is there a way to wget a webpage html and show all tags that match <h1></h1>
scripore has joined #ruby
<jhass>
bonhoeffer: combine net/http and nokogiri
CustosLimen has quit [Max SendQ exceeded]
Kortes has joined #ruby
SET001 has quit [Quit: Ex-Chat]
<Ox0dea>
jhass: Opposed on principle to open-uri?
<Kortes>
hey guys
Torrieri has joined #ruby
<jhass>
Ox0dea: I'm mixed, net/http actually does provide simple APIs too
sigden has quit [Ping timeout: 265 seconds]
GnuYawk has quit [Ping timeout: 252 seconds]
<jhass>
so it's a layer of abstraction that hides stuff
d10n-work has quit [Quit: Connection closed for inactivity]
<drbrain>
I'd just use mechanize because it combines net/http and nokogiri pretty nicely
michas has quit [Ping timeout: 250 seconds]
OtterCoder has joined #ruby
al2o3-cr has quit [Ping timeout: 258 seconds]
<bonhoeffer>
jhass will check out
<Kortes>
im making my own method to check if a number is a prime, in it i push a value into an array, is there any way i can make it a recursive method and pass that array ( with all values pushed ) to each call as a lambda?
pengin has quit [Remote host closed the connection]
<Kortes>
so with each new recursive call, i can compare the number with all values that i have pushed into the array?
Azure has joined #ruby
frank_o has joined #ruby
Torrieri has quit [Client Quit]
<centrx>
!code
casadei has quit [Remote host closed the connection]
<jhass>
centrx: !=? ;)
j4cknewt has joined #ruby
<shevy>
Kortes our channel bot centrx wants you to show code on a pastie
CustosLimen has joined #ruby
swgillespie has joined #ruby
enebo has quit [Quit: enebo]
<centrx>
I eat electricity for breakfast
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<shevy>
and cats
<Kortes>
like: if this number passes test 1 , arr << number . then, if number doesnt pass next test, recurse_method(testvar) { arr }
<Kortes>
ok
<jhass>
Kortes: that lambda stuff in your questions sets me off, but ruby is pass by reference if that means anything to you
<dudedudeman>
zenspider: hmm, i get that. i guess it's weird as when I first did this on my personal computer at home, it gave me text/instructions? now i just get the skips and such
<dudedudeman>
and jhass, at this point, it's just the first exercise. i'm just trying to replicate exactly where I was at before installing it on this machien
Twitter297 has joined #ruby
<shevy>
uh oh
<shevy>
dudedudeman is installing something
<dudedudeman>
bro, i break things so easily. it's like, gem install dudedudeman would literally break the world
<shevy>
dudedudeman I should add a gem with that name :)
<dudedudeman>
don't! I wanted to. lol
GnuYawk has joined #ruby
j4cknewt has quit [Ping timeout: 272 seconds]
<miah>
ERROR: Could not find a valid gem 'dudedudeman' (>= 0) in any repository
<miah>
so sad
<frank_o>
Hi! I'm trying to load some items from this external API in the background and save to database. When done, show them to the client using Ajax. But why am I getting `Couldn't find Affiliate with 'id'=` when I specified `find(params[:url])`? https://gist.github.com/dt1973/b57d84bf39a75ea47e9b
<dudedudeman>
huh. there is however, a gem called 'dude'. and i just installed it. and... i have no clue what it is
sankaber has joined #ruby
<dudedudeman>
so there's that
jgt1 has quit [Ping timeout: 256 seconds]
<shevy>
hmm are you sure you have to use a lambda Kortes?
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<frank_o>
dfockler: hope its ok i quoted you in that gist, its just tmp though
<jhass>
^ I think you just meant to pass the primes array along
adefa has joined #ruby
<shevy>
I like your comments:
<zenspider>
dudedudeman: what do you mean by text/instructions ?
<shevy>
end # ?
fabrice31 has joined #ruby
<Twitter297>
free web hosting found with unlimited traffic and php5 enabled for testing scripts, check out free, all those who check out tonight get to keep it indefinately! http://bit.ly/1eU0vaM
<Kortes>
shevy - what other way could i have the varr available to all future recursive calls?
<zenspider>
what part are you doing/running?
Twitter297 has quit [Client Quit]
<jhass>
Kortes: primes=[] in your method definition
Papierkorb has joined #ruby
<jhass>
you don't need to closure, just pass it along
<zenspider>
I wasn't fast enough on the ban
<Kortes>
ahhhhhh!!!!
<Kortes>
as aparameter?
<jhass>
yes
<Kortes>
youre awesome
<Kortes>
thanks
<jhass>
zenspider: funny, I got that host klined for a day
jackjackdripper has quit [Quit: Leaving.]
<dudedudeman>
zenspider: the very first time i worked through the first example, after setting it up, i would run the test, and it would give me a message talking a little bit about the error and such, and like, a pointer on where to look/what to fix next. so as i would complete a failing test, it would move on and tell me something else
jackjackdripper has joined #ruby
zendrix has joined #ruby
seph429 has quit [Ping timeout: 248 seconds]
ghr has joined #ruby
sankaber has quit [Client Quit]
<zenspider>
dudedudeman: exercism? I don't think so...
premera has joined #ruby
<Kortes>
exercism kicks ass
<zenspider>
are you sure you're not confusing it with the ruby koans or something?
<Kortes>
i love that site
yfeldblum has joined #ruby
<dudedudeman>
zenspider: i promise it was exercism. :(
<dudedudeman>
and zenspider, please don't feel like you have to go through a bunch of poking with it for my account.
yfeldblu_ has quit [Ping timeout: 256 seconds]
Kortes has quit []
<dudedudeman>
to hook up the cli to your exercism account, it being exercism, gives you an API key that you plug in with exercism configure --key="api key from site"
<zenspider>
how in the FUCK do you use this thing now?
<zenspider>
dudedudeman: yeah. I can't replicate. sorry.
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mbug has quit [Quit: Leaving]
rubie has quit [Remote host closed the connection]
casadei has joined #ruby
houhoulis has joined #ruby
iamjarvo has joined #ruby
EllisTAA has joined #ruby
rubie has joined #ruby
Sirrr has joined #ruby
dnlbyl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
EllisTAA has quit [Client Quit]
frank_o has quit [Ping timeout: 256 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
jackjackdripper has quit [Quit: Leaving.]
woodruffw has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
frank_o has joined #ruby
Y4Rv1K has joined #ruby
baweaver has joined #ruby
<baweaver>
'evening
casadei has quit [Remote host closed the connection]
Y4Rv1K has quit [Remote host closed the connection]
Y4Rv1K has joined #ruby
_ixti_ has quit [Quit: WeeChat 1.2]
woodruffw has joined #ruby
kinduff has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
porkqpain has quit [Remote host closed the connection]
porkqpain has joined #ruby
_blizzy_ has joined #ruby
arashb has quit [Remote host closed the connection]
EllisTAA has joined #ruby
bertocode has quit [Ping timeout: 265 seconds]
EllisTAA has quit [Client Quit]
<crowell>
hi
pietr0 has quit [Quit: pietr0]
colin_ has joined #ruby
michas has quit [Ping timeout: 272 seconds]
tuelz2 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Narzew has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rubie has quit [Remote host closed the connection]
bantic has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
<colin_>
is there a ruby equivilant to the python timedelta object? I would like to work in time units such as days...
rubie has joined #ruby
<kinduff>
So I'm planning this online service to lookup things. The idea is not important, but what I'm looking for is an advice to start it. I'm going to make a webapp and probably mobile apps too. So I was thinking instead of starting with a web MVP, start writing a REST API that first resolves the problem and creates the infrastructure I'm looking to build. After that, release the versions I want. For example a web app, mobile app, ect.
<kinduff>
Is that a good idea?
mary5030 has joined #ruby
senayar has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<dfockler>
And that's how you get Space Dolphins
<dfockler>
oops wrong channel :P
<baweaver>
colin_: activesupport defines a lot of it from Rails
<baweaver>
kinduff: #RubyOnRails should be able to get you set there
<baweaver>
Rails can make an API very very rapidly.
<baweaver>
as well as defining json responses with jbuilders to take care of alternate clients
<baweaver>
then you can either use Rails views for your web frontend or some type of javascript frontend framework like Angular or Ember
geggam has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
Channel6 has joined #ruby
C1V0 has joined #ruby
scripore has joined #ruby
baweaver has quit [Remote host closed the connection]