<shevy>
"Delorean is a really cool date/time library. Apart from having a sweet name [...] It's sort of like moment in javascript, except I laugh every time I import it."
<ozjin>
mk thats a legitimately good one
<shevy>
snowballstemmer ... dare anyone complaint about ruby gem names again
bigmac has quit [Ping timeout: 256 seconds]
<shevy>
*complain
devoldmx has quit [Ping timeout: 265 seconds]
<shevy>
fuzzywuzzy :\ :/
mary5030 has joined #ruby
<shevy>
I conclude my analysis - the peculiarity of odd names persist in other programming languages as well.
poguez_ has quit [Quit: Connection closed for inactivity]
ferz_ has quit [Quit: Leaving]
apxm has joined #ruby
athinggoingon has joined #ruby
dfinninger has quit [Remote host closed the connection]
annath has joined #ruby
apxm has left #ruby [#ruby]
<annath>
Hey all, I have a potentially dumb question. Why does the .first method, when called on a hash, return an array of the key and value instead of just the value? It took me a minute to figure out why first was returning something other than what I was expecting, and just wanted some insight into that, if anyone has any.
<annath>
Also, the ruby doc page for a Hash doesn't actually list a .first method. Which method am I calling exactly? (Enumerable.first ?)
<baweaver>
Probably. Most of the Enumerable methods return arrays instead of hashes, first just so happens to be one of those odd methods.
<baweaver>
reject and select behave like you'd expect
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaeron has quit [Quit: Leaving.]
<bootstrappm>
annath I'd say because in a Hash the first key isn't predictable (i.e. its not 0 as it is in an array). A hash is by definition key => value, both values are important
segfalt has joined #ruby
<bootstrappm>
I'm surprised it has a first method, though, Hash's are also supposed to be unordered and without an order there's no first
<shevy>
I'd say because a hash stores key-value pairs always, so if one were to apply something such as [0] on it, the first pair should be returned
<annath>
bootstrappm that's a good point, I didn't think about the unordered nature of it
hydrozen has joined #ruby
annath has quit [Read error: Connection reset by peer]
Swappticon has joined #ruby
Rollabunna has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
I thought hashes are ordered these days?
<Coraline>
I thought that hashes maintain insertion order now.
<baweaver>
it does, iirc
<havenwood>
"Hashes enumerate their values in the order that the corresponding keys were inserted."
<baweaver>
Neutral, though I'd prefer people keep any type of commentary to content instead of at a person.
<baweaver>
whether or not they're in channel.
<Ox0dea>
Hardtail: Best would be to conceive of a project you would personally find utility and joy in using and completing and climb that side of the mountain.
<baweaver>
gossiping about a person on irc feels slimy
<Ox0dea>
Let's keep blowing a one-off jest out of proportion.
<Ox0dea>
Much good shall surely come of this venture.
<Hardtail>
Ox0dea hmm thanks, I have been working with Rails for about 5 months now but I want to really get more experience with pure Ruby.
<ozjin>
yeah i love, he shits on DHH one minute and then writes a python book the next
<ozjin>
its hysterical
iamninja has joined #ruby
* baweaver
sighs
<Ox0dea>
In my ideal world, dmr would've been alive to respond to Zed's critique.
<Ox0dea>
Of course, he very likely would never have stooped to such a level.
gix has joined #ruby
Meow-J has joined #ruby
<Ox0dea>
> Look on me, ye mighty, and eat shit.
<Ox0dea>
People who say such things deserve any shade thrown in their general direction, I feel.
<shevy>
who is dmr?
<Ox0dea>
Dennis Ritchie.
IrishGringo has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
<shevy>
Hardtail one thing that always helps is to publish a gem; for a project, you could try to create a simple game. that should keep you busy for some weeks even if it's only in your spare time
iamninja has quit [Ping timeout: 260 seconds]
<Hardtail>
shevy I would be interested in that but I have not done much research into graphic engines for Ruby...perhaps I should..
baweaver has quit [Remote host closed the connection]
juanpablo____ has joined #ruby
devoldmx has joined #ruby
ReK2 has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
CBX has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<Ox0dea>
ozjin: It seemed for a moment as if Task::Kensho was both a collection of great modules as well as a Koan-like introduction to each.
devoldmx_ has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
VeryBewitching has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
arescorpio has joined #ruby
bigredboots has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
bigredboots has joined #ruby
mleung has quit [Quit: mleung]
Pupeno has joined #ruby
dfinninger has quit [Remote host closed the connection]
devoldmx_ has quit [Remote host closed the connection]
howdoi has joined #ruby
mike___1234 has quit [Ping timeout: 264 seconds]
Pupeno has quit [Ping timeout: 246 seconds]
ozjin has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
<shevy>
Hardtail there is gosu https://www.libgosu.org/ - you could also make use of qt/kde gtk/gnome for simple games, I once wrote minesweeper in ruby-gnome (I managed to break a few things and didn't fix them)
redneo has joined #ruby
bigredboots has quit [Remote host closed the connection]
CBX has quit [Quit: Leaving]
bigredboots has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
shevy: If you want retro adventures, you should learn a BASIC.
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
drikerf has quit [Client Quit]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
Swappticon has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
failshell has joined #ruby
<shevy>
but I'd have to use numbers and goto!
minotep has joined #ruby
aaeron has quit [Quit: Leaving.]
<Ox0dea>
Yeah!
dopie has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
failshell has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
Rakunh0 has joined #ruby
aaeron has joined #ruby
postmodern has joined #ruby
theery has joined #ruby
mrod has joined #ruby
pranny has quit [Remote host closed the connection]
mrod is now known as mrodrigues
axsuul has joined #ruby
minotep has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<mrodrigues>
I'm collecting timestamped data in minute-wide buckets. I want to call a method to pull data for a given minute off of a queue and process it. I can't figure out how to run code on the minute, only every 60 seconds, but not necessarily on the minute itself.
dgutierrez1287 has joined #ruby
Ox0dea has quit [Read error: No route to host]
baroquebobcat has joined #ruby
aaeron has quit [Quit: Leaving.]
Ox0dea has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<eam_>
mrodrigues: you want an event to fire every 60 seconds, but not necessarily on :00?
baroquebobcat has quit [Read error: Connection reset by peer]
dopie has joined #ruby
<mrodrigues>
Sorry, that was confusing. I want to fire just after the completion of a minute on the clock. 1:01, 2:01, 3:01.
charliesome has joined #ruby
baroquebobcat has joined #ruby
<eam_>
get the current time, sleep until the time you want to wake up
dgutierrez1287 has quit [Ping timeout: 268 seconds]
<Ox0dea>
mrodrigues: `sleep until Time.now.sec.zero?; while sleep(60); ...; end`
<[k->
what if there was a leap second?
<eam_>
oh boy
eam_ is now known as eam
<Aeyrix>
That would be handled by your operating system and the app wouldn't notice.
<eam>
Aeyrix: not true
<Aeyrix>
This is discrete time, not continuous time, It won't make a difference.
<eam>
Time.now.sec will change accordingly to the leap second
<eam>
it's visible via time_t
<[k->
while sleep(60)
<Aeyrix>
Oh I didn't see sleep(60)
<Aeyrix>
ok yeah
<eam>
what's more, it may also skew event timeouts vs system time
<eam>
select/sleep vs gettimeofday()
<eam>
we ran into a bug caused by that last leap second
<eam>
(in almost exactly this scenario)
<Aeyrix>
Write your software better.
<Aeyrix>
:^)
<eam>
haha, not my authorship -- I'm just there to debug
<Aeyrix>
In all seriousness, I can't think of anything off the top of my head within Ruby that accomodates for leap seconds.
<Aeyrix>
You would basically have to sleep(1) repeatedly
<eam>
nothing does, it's unhandled at pretty much every level of the stack
<Aeyrix>
and match against current time
<Aeyrix>
but even then
<Aeyrix>
long term
<Aeyrix>
(looooong term)
<mrodrigues>
I basically want cron's * * * * * in Ruby
<Aeyrix>
you'd start to deviate
<Aeyrix>
Why not just use cron?
<Radar>
because cron is oldskool
<eam>
mrodrigues: cron works as Ox0dea described
<Aeyrix>
Except it also works properly in the event of a leap second.
<eam>
Aeyrix: are you certain?
<mrodrigues>
i tried Ox0dea but it doesn't seem to work. My code never ran
<Aeyrix>
eam: Checking.
<Aeyrix>
eam: IIRC yes.
tkuchiki has quit [Remote host closed the connection]
<eam>
Aeyrix: I bet it doesn't -- and probably has never been tested
<eam>
seeing as how we've never had a backwards leap second
<mrodrigues>
I'd like to avoid depending on cron
<Ox0dea>
mrodrigues: Putting the sleep at the top of the loop means the first iteration won't run until a minute has passed.
<eam>
every leap second a significant chunk of software fails
<eam>
I remember in 2005 when most of the internet went offline due to a leap second
<Aeyrix>
>be working on time sensitive code
<Aeyrix>
>don't be time sensitive
<eam>
we had 90k servers crash that day, in sync, across the globe
jonr22_ has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr2219 has quit [Ping timeout: 244 seconds]
psteyn has joined #ruby
jonr2219 has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
jonr22 has quit [Ping timeout: 244 seconds]
Ketchy has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
axsuul has joined #ruby
<Ox0dea>
ozjin: The compliment is much appreciated.
<ozjin>
cant fault anyone for being thorough
firstdayonthejob has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
greenarrow has joined #ruby
jonr2219 has quit [Ping timeout: 244 seconds]
jonr2219 has joined #ruby
ordepdev has joined #ruby
last_staff has joined #ruby
skade has joined #ruby
farn has joined #ruby
jonr22_ has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
leat has quit [Ping timeout: 268 seconds]
krz has quit [Quit: WeeChat 1.2]
AlphaAtom has joined #ruby
ohaibbq has quit [Remote host closed the connection]
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
devoldmx has joined #ruby
jonr2219 has quit [Ping timeout: 244 seconds]
ta has joined #ruby
majjoha has joined #ruby
AxonetBE has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22_ has quit [Ping timeout: 244 seconds]
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
jonr22 has joined #ruby
leat has joined #ruby
ordepdev has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 268 seconds]
majjoha has quit [Ping timeout: 268 seconds]
firstdayonthejob has joined #ruby
jonr22_ has joined #ruby
krz has joined #ruby
jonr2219 has quit [Ping timeout: 244 seconds]
jonr2219 has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
niemcu has joined #ruby
tkuchiki has joined #ruby
niemcu has quit [Client Quit]
iloverubynoob has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
iloverubynoob has left #ruby [#ruby]
jonr22 has joined #ruby
jonr22_ has quit [Ping timeout: 246 seconds]
leat has quit [Remote host closed the connection]
grenierm has quit [Quit: grenierm]
jonr2219 has joined #ruby
leat has joined #ruby
niemcu has joined #ruby
jonr22_ has joined #ruby
Ox0dea has quit [Read error: No route to host]
niemcu has quit [Client Quit]
jonr22 has quit [Ping timeout: 246 seconds]
niemcu has joined #ruby
Ox0dea has joined #ruby
iloverubynoob has joined #ruby
pontiki has quit [Quit: Lost terminal]
iloverubynoob has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
ndrei has joined #ruby
pecpec has joined #ruby
towski_ has joined #ruby
jonr22 has joined #ruby
Synthbread has quit [Ping timeout: 244 seconds]
towski_ has quit [Remote host closed the connection]
jonr2219 has quit [Ping timeout: 246 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
jonr2219 has joined #ruby
jonr22_ has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
wldcordeiro has quit [Quit: Leaving because reasons...]
wldcordeiro has joined #ruby
watsy has quit [Ping timeout: 255 seconds]
jonr22_ has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
wldcordeiro has quit [Client Quit]
wldcordeiro has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
jonr2219 has joined #ruby
jonr22_ has quit [Ping timeout: 246 seconds]
terlar has joined #ruby
futilegames has quit [Quit: futilegames]
krz has quit [Quit: WeeChat 1.2]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22_ has joined #ruby
juanpablo____ has joined #ruby
rubie has joined #ruby
wldcordeiro has quit [Quit: Leaving because reasons...]
jonr22 has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
eGGsha is now known as eGGshke
jonr22_ has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
oo_ has quit [Remote host closed the connection]
jonr2219 has joined #ruby
oo_ has joined #ruby
juanpablo____ has quit [Ping timeout: 265 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr2219 has quit [Read error: Connection reset by peer]
choke has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
khebbie has quit [Read error: No route to host]
khebbie_ has joined #ruby
jonr22 has joined #ruby
lkba_ has quit [Ping timeout: 246 seconds]
eGGshke is now known as eGGsha
rubie has quit [Remote host closed the connection]
codecop has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
jonr22_ has joined #ruby
jonr2219 has quit [Ping timeout: 246 seconds]
rdark has joined #ruby
jonr22_ has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jonr22 has quit [Ping timeout: 246 seconds]
dopie has quit [Quit: This computer has gone to sleep]
opensource_ninja has joined #ruby
ruurd has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
nofxx has quit [Ping timeout: 272 seconds]
chipotle has joined #ruby
Iskarlar has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
dumdedum has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
G has joined #ruby
jonr2219 has joined #ruby
rehat has quit [Remote host closed the connection]
opensource_ninja has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
sagittarian has joined #ruby
rdark has joined #ruby
ponga has joined #ruby
jonr22_ has joined #ruby
senayar has joined #ruby
mooe has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
<maloik>
I have a method that runs a command and captures the output. When it matches my pattern I want it to retry the entire method up to 3 times, and raise an error on the 4th. What's a good way to test such a method?
<jhass>
does the DB updates for you and makes sure to rectify and what not
towski_ has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
<maloik>
well damn that's pretty cool, I don't think that existed when we started this feature
k3asd` has joined #ruby
<maloik>
and as far as OSS frontends go, I wish we could somehow release this, but it's pretty tailored to our needs... there's so many things I'd change but oh well
<jhass>
yeah figured
cannedbeef has joined #ruby
<cannedbeef>
what is the what.cd equivalent to learn programming?
jonr2219 has joined #ruby
<Ox0dea>
cannedbeef: Explain what.cd for those who do not wish to register?
<cannedbeef>
Ox0dea:what.cd is a music tracker that has some of the highest quality music content on the internet as well as one of the largest libraries
Hounddog has joined #ruby
<tobiasvl>
cannedbeef: then what do you mean by a what.cd equivalent to learn programming?
<jhass>
chris pine's learn to program has a free online version, without even having to pirate it
<cannedbeef>
well what.cd is arguably the best torrent tracker for music out there
<Ox0dea>
Smells like ?ot.
<jhass>
are you just here to spam it?
<cannedbeef>
i was wondering if there was an equivalent for programming
<jhass>
you said that 3 times now
nitrix has quit [Ping timeout: 268 seconds]
<tobiasvl>
cannedbeef: but what does it MEAN? torrent tracker for learning programming?
<maloik>
could be me but I don't see the link between that at all
leat has quit [Ping timeout: 246 seconds]
<tobiasvl>
what are you looking for
<maloik>
so it's probably spam
<jhass>
tobiasvl: they want pirated copies of books and what not
<jhass>
or just spam what.cd, not sure yet
<tobiasvl>
maloik jhass: doubt it's spam, what.cd isn't open for the public I think
<cannedbeef>
like a torrent tracker that has quality content for programmers and people that wish to learn programming
platzhirsch has joined #ruby
<cannedbeef>
what.cd is a really hard site to get in... you have to study and pass an interview or have a friend who can invite you
<atmosx>
cannedbeef: isn't that thing illegal or something?
<cannedbeef>
not really
<atmosx>
cannedbeef: I'm not talking about the protocol, I'm talking about the content.
<maloik>
wait so you're looking for an invite only community for programmers?
<cannedbeef>
in the uk it's not illegal and freenode is hosted in the uk
<jhass>
depends on where you live, but that's really getting ?ot now
<jhass>
cannedbeef: wrong
<cannedbeef>
it's illegal in the us but it's not illegal in canada
<cannedbeef>
atmosx:i would love to pay the poor programmers who write books, but right now i need knowledge and i'm poor... i used to pay for stuff when i had money, but now i need to find a job and get settled first
<cannedbeef>
i won't be making money without knowledge
jonr22 has quit [Ping timeout: 244 seconds]
<jhass>
cannedbeef: how is it I learned programming without ever paying anything. There are plentiful of free resources online
<jhass>
you didn't even try
tkremer has joined #ruby
patrick_star has joined #ruby
<cannedbeef>
are you making 6 figures a year at least?
<cannedbeef>
jhass:
<jhass>
still studying
<sebyx07>
cannedbeef: what do you want to learn ?
tkremer has quit [Client Quit]
<jhass>
but I mean there's even big campaigns like https://code.org/
<jhass>
it's not like these are hard to find
<cannedbeef>
i would like to learn ruby and ruby on rails and css javascript html and then swift
<cannedbeef>
after i learn programming i want to learn ui design
<atmosx>
cannedbeef: truth to be told, there are way too many programming books available for free nowadays.
tkremer has joined #ruby
<cannedbeef>
what if i want to supplement my learning with professional videos?
Guest41791 has joined #ruby
tkremer has quit [Client Quit]
<bubuntu_>
also the non free are available for free
<bubuntu_>
if you search hard enough
<atmosx>
cannedbeef: I see a new book every 5 days on HN. And the latest ones are high quality, technical texts available for free. The 'problem' is that these books need 'study' not just 'reading', so I guess most people just add them to their collection and never read them :-)
<atmosx>
bubuntu_: all I'm saying is that you don't *need* to buy books about programming if you have a computer and internet connection. Or about math or anything. There are already too many available if you wnat ot learn. Once you reach a junior programmer level, you work and you can buy anything you like.
<jhass>
read some blogs and whatnot, seek for things you have to invest in instead of trying to get spoonfed everything
<jhass>
or you will fail anyhow
<atmosx>
cannedbeef: yeah, viewing videos is fine.
<atmosx>
railscasts saved some time when I first used nokogiri.
joonty has joined #ruby
<cannedbeef>
getting the right information and not struggling through trivial things is not the same thing as being spoonfed jhass
Koshian is now known as Koshian
tkremer has joined #ruby
<jhass>
trivial things are all explained in completely free and open resources
<cannedbeef>
okay stop trolling now
faces has quit [Ping timeout: 244 seconds]
face has joined #ruby
benlovell has quit [Client Quit]
maloik has quit [Ping timeout: 240 seconds]
<[k->
* the roles reverse (presumably?) *
moeabdol has joined #ruby
<Ox0dea>
Gals, we have, like, three bites of troll food left.
<sebyx07>
ok, start with html. you can even use w3school for that, after learn a bit of css(because u want to be a programmer not a artist) also from w3. you will get the hang of them in 1 week or so(you will master them in 4 months). then you can learn ruby, but without rails, learn to make simple programs and gems, after you can learn a bit of metaprogramming to get why rails works, this will take 3 months and you will be good in 1-2 years. after you can start rails, get
<cannedbeef>
no jhass has been trolling me ever since i asked about private trackers to learn programming
<cannedbeef>
sebyx07:i want to be an artist that knows programming
<crayfishx>
Is there a gemspec command to popualate default config files under /etc from a rubygem?
<jhass>
crayfishx: not aware of any, sounds fishy anyhow
<crayfishx>
jhass: where would the recommended place be then?
<Ox0dea>
yorickpeterse: "mornin g"?
<apeiros>
cannedbeef: I doubt jhass is trolling you.
<cannedbeef>
apeiros:jhass is not only trolling me
athinggoingon has quit [Ping timeout: 240 seconds]
<cannedbeef>
he's trolling other users too
<jhass>
crayfishx: tell the user to update their config in your readme and/or post install message I guess
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
<cannedbeef>
but i don't get why he's an op if he's going to be a troll
tkremer has quit [Ping timeout: 256 seconds]
moeabdol has quit [Client Quit]
<crayfishx>
ok
opensource_ninja has quit [Ping timeout: 240 seconds]
<jhass>
Ox0dea: better than "mornin G+" I guess
<yorickpeterse>
Ox0dea: yes
moeabdol has joined #ruby
<[k->
off by one space error
Rurik has joined #ruby
<wasamasa>
cannedbeef: all ebook trackers suck btw
<Ox0dea>
wasamasa: bookz is pretty great.
<wasamasa>
Ox0dea: which is not a tracker
<Ox0dea>
You're right.
<wasamasa>
and yeah, I got more out of it than the trackers combined I've got into
<wasamasa>
which is saddening, but eh
<wasamasa>
not like downloading gigabytes of books is going to turn you into a rockstar programmer :D
<cannedbeef>
what are some screencasts you'd recommend for the beginner for learning ruby and learning rails?
<apeiros>
cannedbeef: reading the gist of it I'd say the following: we don't appreciate free sharing links for paid resources here.
<cannedbeef>
it's not the books, but their content and their ability to explain it in an approachable manner
<apeiros>
cannedbeef: there's enough material for free (as intended by the owner/author) around
<wasamasa>
yup
<cannedbeef>
the rockstar programmer understands the content and is able to explain it in an easy manner
* wasamasa
dies
<cannedbeef>
none of what you guys are saying is helping me
<Ox0dea>
?guys cannedbeef
<ruboto>
cannedbeef, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<cannedbeef>
i'm not really understanding a lot of the things written there
<maloik>
needs a bit of cleanup still but you get the idea :-)
rubie has quit [Ping timeout: 265 seconds]
<wasamasa>
cannedbeef: TIAS is a common way of finding that out
<cannedbeef>
what do my aunts have to do with anything wasamasa?
Lrrr_ has quit [Client Quit]
<[k->
> is that a course
<cannedbeef>
this community needs improvement
<wasamasa>
lol
<cannedbeef>
it's very hostile to beginners
<cannedbeef>
and toxic
<[k->
you are hostile to others
<jhass>
maloik: how about .and_return(*[[[soa_messgae]]*PowerDNSRectifyWorker::ALLOWED_RETRIES-1, [nsec_message]]) ?
<wasamasa>
"Wie man in den Wald hineinruft, so schallt es heraus."
<maloik>
ha, is that how that works... must've misunderstood you earlier then
<cannedbeef>
now we have nazis... why are the ops ignoring this antisemitic crap?
<maloik>
let me check
<jhass>
maloik: mmh, missing splat but you get the point
<maloik>
yep
SCHAAP137 has joined #ruby
sevenseacat has joined #ruby
<apeiros>
cannedbeef: this community does not react well to people who pull out the troll card on first occasion and don't seem to do any work themselves
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<SCHAAP137>
hi, i want to buy a good book to learn Ruby thoroughly; what books can you recommend me?
<[k->
apeiros: you still haven't finished ?books :(
<apeiros>
SCHAAP137: if you come across more interesting books, please do tell. we'd love to include them in our list.
<SCHAAP137>
"Learn Ruby the Hard Way" sounds good
<cannedbeef>
apeiros:this community trolls people who don't understand where to start and instead of helping out they troll newcomers and say antisemitic stuff on top of all of it
<wasamasa>
cannedbeef: you could at least be a more interesting troll, but eh
<Ox0dea>
(How does it still have voice?)
<bnagy>
antisemitic whatnow??
<apeiros>
cannedbeef: please do tell where there has been antisemitism
<cannedbeef>
bnagy:look at what wasamasa wrote
<choke>
I'm a late comer to the channel... we have trolls? I've always wanted to pet a troll...
<[k->
cannedbeef: we give you back what you give to us
<jhass>
SCHAAP137: Zed's Ruby style is a bit crufty though, make sure to read a styleguide or two if you go with that one
<apeiros>
cannedbeef: I'm not searching the backlog. please copy & paste the relevant line.
<bnagy>
cannedbeef: uh, what about it?
<SCHAAP137>
will take that into account, jhass, thanks
codecop has quit [Remote host closed the connection]
jalljo has joined #ruby
G has quit [Quit: leaving]
leat has joined #ruby
dhjondoh has joined #ruby
radgeRayden has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
radgeRayden has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
eGGsha is now known as eGGshke
zlogan has joined #ruby
Exponential has joined #ruby
Mon_Ouie has joined #ruby
eGGshke is now known as eGGsha
khebbie has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
aario has joined #ruby
leafybasil has joined #ruby
ruby-lang924 has quit [Ping timeout: 246 seconds]
<aario>
Hi All. When I run bundle install it tries to fetch 'http://rubygems/' without .org extension. Till now such thing is not indexed in Google all around the world! Any idea how can I fix this? Thanks in advance.
xcesariox has joined #ruby
<Ox0dea>
aario: Check your Gemfile. :P
Rurik has joined #ruby
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
arup_r has joined #ruby
Queeniebee has joined #ruby
majjoha has quit [Ping timeout: 252 seconds]
<jhass>
the source line in particular
tvw has joined #ruby
<jhass>
aario: figured it out?
Rickmasta has joined #ruby
allcentury has joined #ruby
Umeaboy has quit [Quit: Leaving]
patrick_star has joined #ruby
jalljo has quit [Ping timeout: 250 seconds]
vmatiyko has joined #ruby
tesuji has joined #ruby
merlinp has joined #ruby
charliesome has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
petersaints has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
konsolebox has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
chills42 has joined #ruby
dhjondoh has joined #ruby
<aario>
Hi jhass
<aario>
thanks for reply
<aario>
was out for launch
<aario>
where is this Germfile?
<aario>
Gemfile *
<aario>
found it
<aario>
Thanks a lot :-)
snoobydoo has joined #ruby
devoldmx has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
<snoobydoo>
Hi all! I'm trying to use the twitter gem to get followers, friends and a bunch of data which makes too many requests and I end up hitting the rate limit. How do I go about pulling such large data?
majjoha has joined #ruby
<snoobydoo>
I'm using cursor. It still hits the rate limit. Whats the best practice usually? Should I use cursors and store it in the db and poll for updates? Or is there a simpler way to do it?
<jhass>
_aeris_: note class Foo; def self.foo; @foo; end; def foo; @foo; end; end; are two entirely different @foo's
<apeiros>
_aeris_: ^ ivars work just fine on classes
<_aeris_>
i don’t because i dont want a new instance for each instance :P
<apeiros>
and they're local to the *class*. class variables are not.
<apeiros>
_aeris_: see example above. that's not the case.
<_aeris_>
i need a « global » variable, accessible and shared from any instances
<_aeris_>
so not instance variable
<apeiros>
_aeris_: you did not read the example. do it.
<_aeris_>
oh, i miss your example, i look it :)
<shevy>
_aeris_ you can store @ivars on a class level, and access them (query/set) through methods on the class level as well, so there is barely any real need for global variables
<_aeris_>
hum, ok, i understand :)
yosafbridge has joined #ruby
leat has quit [Remote host closed the connection]
JDiPierro has joined #ruby
leat has joined #ruby
auzty has quit [Quit: Leaving]
<_aeris_>
and how i can access the class ivar from an instance, without introspection ?
<_aeris_>
(somthing similar to @@ and @)
<jhass>
self.class.foo
<[k->
does this ivar need to change?
<yxhuvud>
jhass: that assumes accessor methods though.
<_aeris_>
jhass > no way to access it without accessor ?
<_aeris_>
[k- > normaly not, but not sure at this time :P
Coldblackice has joined #ruby
<jhass>
either you need an accessor or instance_variable_get
<[k->
apeiros: have you added that nick > to your regex?
<_aeris_>
ok
<jhass>
if it doesn't need to change just define a constant
blueOxigen has joined #ruby
<apeiros>
[k-: no
<apeiros>
[k-: but it'd trigger due to "nick "
bluOxigen has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
<_aeris_>
jhass > can’t easily define a constant on a class_eval :'(
<lacrymology>
sevenseacat: will that give me a second set of executables, or will it replace?
<sevenseacat>
second set. remove the old set.
charliesome has joined #ruby
startupality has quit [Quit: startupality]
ebbflowgo has quit [Quit: ebbflowgo]
UtkarshRay has joined #ruby
<shevy>
lacrymology 'mkmf' normally comes included by default if you compile ruby from source; debian-based distributions have removed mkmf and put it into a separate package e. g. the ruby-dev one, so when you should do install that ruby-dev package, mkmf should then be available
joonty has joined #ruby
skade has quit [Ping timeout: 246 seconds]
dorei has joined #ruby
claw has quit [Ping timeout: 268 seconds]
terlar has joined #ruby
rbennacer has joined #ruby
shadeslayer has quit [Ping timeout: 244 seconds]
skade has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
G has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haraoka has joined #ruby
shadeslayer has joined #ruby
k3asd` has joined #ruby
<_aeris_>
thanks for the help, apeiros, jhass & ruboto :)
<apeiros>
?botsnack
<ruboto>
nomnomnomnom
<shevy>
this is the fattest bot on freenode
joonty has quit [Quit: joonty]
roxtrongo has joined #ruby
<jhass>
lacrymology: I believe you can use update-alternatives to make the second set the default without removing 1.9
failshell has joined #ruby
but3k4 has joined #ruby
[k-_ has joined #ruby
sebyx07 has joined #ruby
fgo has joined #ruby
zeroDivisible has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Balzrael has joined #ruby
ddarkpassenger has joined #ruby
Respek has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby
segfalt has joined #ruby
pawnbox has quit [Remote host closed the connection]
meatherly has joined #ruby
<Balzrael>
anybody here?
<sevenseacat>
no.
<lacrymology>
jhass: I think you're right
<shevy>
ohhh Balzrael is here! where is belzebub!
Queeniebee has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
<Balzrael>
who knows, probably lost
chills42 has quit [Remote host closed the connection]
hinbody has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has quit [Ping timeout: 264 seconds]
Chau has joined #ruby
devoldmx has joined #ruby
decoponio has joined #ruby
s00pcan has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
Rurik has quit [Ping timeout: 244 seconds]
mrityunjay has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
konsolebox has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 244 seconds]
<certainty>
shevy: i thought you were belzebub
segfalt has quit [Quit: segfalt]
bruno- has joined #ruby
<shevy>
I am way too nice
<certainty>
true story
kgirthofer has quit [Remote host closed the connection]
Iskarlar has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
devoldmx_ has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Respek has quit [Client Quit]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
morenoh149 has joined #ruby
fostertheweb has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
jonelf has joined #ruby
Respek has joined #ruby
Respek has quit [Client Quit]
bronson has joined #ruby
ta has joined #ruby
NeverDie has quit [Max SendQ exceeded]
Iskarlar has joined #ruby
linuxboy_ has quit [Quit: Leaving...]
morenoh149 has quit [Ping timeout: 256 seconds]
NeverDie has joined #ruby
voibhniu is now known as goncalo
darkhex has joined #ruby
sybs has joined #ruby
casadei_ has joined #ruby
jweissman has joined #ruby
jweissman is now known as jdubs
bronson has quit [Ping timeout: 244 seconds]
Zai00 has quit [Quit: Zai00]
majjoha has quit [Ping timeout: 260 seconds]
freezevee has quit [Remote host closed the connection]
dede has joined #ruby
aganov has quit [Remote host closed the connection]
juanpablo____ has joined #ruby
jonr22 has joined #ruby
Igorshp has joined #ruby
dopamean_ has joined #ruby
hashrocket has joined #ruby
claw has quit [Ping timeout: 260 seconds]
tonios57 has joined #ruby
ta has quit [Remote host closed the connection]
jdubs has quit [Ping timeout: 265 seconds]
ndrei has quit [Read error: No route to host]
St1gma has joined #ruby
blue_deref has joined #ruby
Gerak_ has joined #ruby
juanpablo____ has quit [Ping timeout: 244 seconds]
poli has joined #ruby
mary5030 has quit [Remote host closed the connection]
arup_r has quit []
mary5030 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jas02 has quit [Quit: jas02]
CustosLimen has quit [Ping timeout: 240 seconds]
sebyx07 has left #ruby [#ruby]
tonios57_ has joined #ruby
Respek has joined #ruby
tonios57 has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 268 seconds]
UtkarshRay has joined #ruby
CustosLimen has joined #ruby
Caius has quit [Quit: ""]
Caius has joined #ruby
ozjin has quit [Ping timeout: 252 seconds]
Zai00 has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
Guest50 has joined #ruby
juanpablo____ has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
jonr22 has quit []
programmerq has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
wldcordeiro has joined #ruby
roxtrongo has joined #ruby
sybs has quit [Ping timeout: 244 seconds]
Porfa has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
ruby-lang231 has joined #ruby
ruby-lang231 has quit [Client Quit]
average has quit [Remote host closed the connection]
tenderlo_ has quit [Quit: Leaving...]
<CustosL1men>
hi
tenderlove has joined #ruby
<CustosL1men>
cant gem somehow cache source files
<CustosL1men>
so I dont have to keep re-downloading them
roxtrongo has quit [Ping timeout: 240 seconds]
jdubs has joined #ruby
<apeiros>
why would you redownload them in the first place?
<CustosL1men>
apeiros, cos I might upgrade ruby
<havenwood>
CustosL1men: Yeah, there's a gem cache. You can restore all your gems to pristine condition from the cache for example with: gem pristine gem_name_here
<CustosL1men>
apeiros, or be using rvm or something
<allcentury>
Hi all - I'm trying to turn a string into something that is only alphanumeric. So far I've come up with this: Base64.encode64("zNq3_ch5uH7dum7xTnvU").unpack("H*").first
chouhoul_ has quit [Read error: Connection reset by peer]
nhhagen has quit [Remote host closed the connection]
<allcentury>
How do I go in the opposite direction?
<havenwood>
jhass: It was a while ago, I'd love to finish that.
Kallis has joined #ruby
nonparity has joined #ruby
Kallis has quit [Max SendQ exceeded]
<havenwood>
jhass: It'd probably be much more useful than the Ruby version which is much slower than the very nice C extension.
NeverDie has joined #ruby
<jhass>
yeah it should be something we can eventually get very close to C speed
meatherly has joined #ruby
psy_ has joined #ruby
jgt1 has joined #ruby
<havenwood>
jhass: Then make a Ruby gem with the Crystal extension. \o/
acke has joined #ruby
eightfold has joined #ruby
kfpratt has joined #ruby
psy_ has quit [Max SendQ exceeded]
Chau has quit [Quit: Leaving]
<Papierkorb>
wow, crystal(-lang) is already a package for pacman in 'community' :)
sdfgsdfg has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 250 seconds]
Muimi has joined #ruby
psy_ has joined #ruby
ledestin has joined #ruby
<platzhirsch>
Well apparently I became the troll, because I started about NSA surveillance and now everyone says I am wearing a tinfoil and believe in conspiracy theories lol
<Muimi>
I noticed "gems" was installed by default with Ruby as of version 1.9 or so (we're on ~2.2 now).
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies has joined #ruby
<jhass>
Papierkorb: yup, got that in a good week a ago <3
<Papierkorb>
jhass: Thank you, though quite some people had to vote too
Silox| has quit [Quit: Connection closed for inactivity]
kies has quit [Read error: Connection reset by peer]
<Muimi>
So, do I need to re-install gems? The guide assumptions at guide.rubyonrails.org/getting_started.html says "RubyGems packaging system, which is installed..."
<Muimi>
It just seems a little redundant
<Papierkorb>
jhass: Is crystal 'interesting', or somehow broken? Is there some web-thing for it already? And, where can I read more about it?
<jhass>
Papierkorb: if we're honest the votes are not too relevant. Interest by a TU is much more and we had that ;)
<jhass>
Papierkorb: http:/crystal-lang.org, there are about half a dozen projects toying with webframeworks by now, yeah
jlebrech has joined #ruby
OrbitalKitten has joined #ruby
<yorickpeterse>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<Papierkorb>
jhass: heh, good one :) Whatever, I don't care how it was done, in the end, I care that it has been done :)
<yorickpeterse>
ᕕ(ᐛ)ᕗ
<jlebrech>
how do you upload a file with excon?
apipkin has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
morenoh149 has joined #ruby
fgo has joined #ruby
jgt1 has quit [Ping timeout: 264 seconds]
nhhagen has quit [Remote host closed the connection]
<apipkin>
gem 'github-pages'` but running `bundle install` doesn't actually install `github-pages`. When I do `gem list` I do not see the gem available. Am I running the wrong commands?
Alayde has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
<ljarvis>
apipkin: does `bundle show` show it?
rippa has joined #ruby
yqt has joined #ruby
morenoh149 has quit [Ping timeout: 250 seconds]
<apipkin>
@ljarvis That returns: Gems included by the bundle: Could not find jekyll-coffeescript-1.0.1 in any of the sources
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekleog has quit [Ping timeout: 244 seconds]
theery has joined #ruby
<jhass>
apipkin: I think you're not in the right folder or didn't save the file
baroquebobcat has joined #ruby
n0xff has quit [Ping timeout: 255 seconds]
darkf has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
joonty has quit [Quit: joonty]
<PaulePanter>
Hi. Is there a way to write
<PaulePanter>
if params[:a] || params[:b] || params[:c] z.a = params[:a] if params[:a] z.b = params[:b] if params[:b] z.c = params[:c] if params[:c]
Virgolang_ has quit [Ping timeout: 246 seconds]
<apipkin>
Oh look at that! @jhass I wasn't in the right folder some how I was seeing what was expected in the file but something weird was going on. Restarted terminal and reran it and now it's working in the right folder. Thanks!
pecpec has quit [Remote host closed the connection]
yardenbar has joined #ruby
roxtrong_ has joined #ruby
pietr0 has joined #ruby
mikecmpbll has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Iskarlar has joined #ruby
KensoDev has joined #ruby
nfk has joined #ruby
kurtec has joined #ruby
acke has joined #ruby
kurtec has quit [Client Quit]
roxtrongo has quit [Ping timeout: 265 seconds]
n008f4g_ has joined #ruby
shmilan has joined #ruby
KensoDev_ has joined #ruby
toretore has joined #ruby
Zai00 has quit [Quit: Zai00]
jlebrech has joined #ruby
Zai00 has joined #ruby
dawkirst has joined #ruby
<jlebrech>
how can I upload a StringIO with excon?
ruby-lang973 has left #ruby [#ruby]
andrewf_ has joined #ruby
postmodern has joined #ruby
KensoDev has quit [Ping timeout: 256 seconds]
andrewf_ is now known as Guest68695
skade has joined #ruby
quaristice has joined #ruby
shlomocomputer has joined #ruby
skade has quit [Client Quit]
hanmac has joined #ruby
_blizzy_ has joined #ruby
firstdayonthejob has quit [Read error: Connection reset by peer]
<shlomocomputer>
What is the rationale for Ruby not making while and for loops have their own block scope?
Jackneill has joined #ruby
<Papierkorb>
shlomocomputer: it would be uneccessary syntax complexity to have for a frowned upon language feature
<jhass>
also there are plentiful of usually preferred alternatives that do
<jhass>
while true -> loop do
ksteck has joined #ruby
<jhass>
for i in ... -> (...).each do |i|
<jhass>
more complex stuff -> Enumerable
<shlomocomputer>
Papierkorb: I Google'd why it was frowned upon. The main thing I could find (besides "not idiomatic" etc.) was precisely that it doesn't confer its own scope
<shlomocomputer>
thus, chicken and egg
<Papierkorb>
shlomocomputer: for especially is just not how you write ruby
roxtrongo has joined #ruby
<Sou|cutter>
I think a better question is why they're included in the language at all
<shlomocomputer>
Sou|cutter: Sure
lsmola has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
rubie has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 244 seconds]
<Ox0dea>
Sou|cutter: You think Ruby shouldn't have `while`?
freerobby has quit [Quit: Leaving.]
c0m0 has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<Sou|cutter>
more for
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
rubie has joined #ruby
roxtrong_ has quit [Ping timeout: 250 seconds]
morenoh149 has quit [Ping timeout: 260 seconds]
mjs2600 has joined #ruby
shmilan has quit [Quit: Leaving]
<Ox0dea>
jlebrech: I trust you don't want to write the StringIO to disk, but do you mind if the upload is chunked?
mrityunjay has joined #ruby
DroidBurgundy has quit [Ping timeout: 250 seconds]
sargas has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 250 seconds]
pecpec has joined #ruby
<jlebrech>
Ox0dea: it shouldn't have to be chunked as I know the files will be small.
_blizzy_ has joined #ruby
David27 has quit [Remote host closed the connection]
badfish129 has quit [Quit: badfish129]
<Ox0dea>
So write them to /tmp and be done with the thing. :P
IrishGringo has quit [Ping timeout: 246 seconds]
<Sou|cutter>
Ox0dea: loop/break could replace while
<Ox0dea>
Sou|cutter: Sure, but it would feel unnatural.
<Sou|cutter>
as it should?
<Ox0dea>
Why?
wallerdev has quit [Quit: wallerdev]
pecpec has quit [Remote host closed the connection]
<Ox0dea>
Dynamic termination conditions are very common.
<Sou|cutter>
It's subjective I guess
<Ox0dea>
What is?
Guest68695 has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
<Sou|cutter>
the opinion that it should feel unnatural. Also the opinion that it does feel unnatural FWIW
davedev24 has joined #ruby
<craysiii>
how else am i supposed to write a bf interpreter in 1 line
firstdayonthejob has joined #ruby
tkuchiki has joined #ruby
<Ox0dea>
craysiii: I wanna see.
<jlebrech>
Ox0dea: I think it because StringIO has no filename.
<craysiii>
now i gotta dig lol, it was in C++ though.
<Ox0dea>
jlebrech: Yes, StringIO lives in memory.
<craysiii>
but i was thinking of trying it in ruby
<Ox0dea>
jlebrech: You can just do `File.write('/tmp/foo', sio.string)` and pass '/tmp/foo' into Excon.
<jlebrech>
Ox0dea: that's why my upload is complaning about a missing file (the api means filename but it's dumb)
<Ox0dea>
craysiii: I have little doubt it could be done in a single #reduce.
Hounddog has quit [Read error: Connection reset by peer]
<jlebrech>
Ox0dea: or a TempFile
<Ox0dea>
jlebrech: The difference here being?
<Ox0dea>
Do you have a bunch of these that need guaranteed unique filenames?
<jlebrech>
nope, they are only ever 3 filenames
aamador has joined #ruby
jalljo has quit [Changing host]
jalljo has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
shlomocomputer has quit [Quit: Ex-Chat]
<jlebrech>
Ox0dea: yeah can't go to tempfile unless I hash or prepend with userids
ruurd_ has quit [Quit: ZZZzzz…]
<Ox0dea>
jlebrech: Huh? TempFile just does the naming for you once you give it a seed.
kirun has joined #ruby
sepp2k has quit [Quit: Leaving.]
devoldmx has joined #ruby
mrityunjay has quit [Ping timeout: 246 seconds]
<jlebrech>
Ox0dea: oh ok
dawkirst has quit [Remote host closed the connection]
<Ox0dea>
jlebrech: Are you tied to Excon?
yqt has quit [Ping timeout: 250 seconds]
<jlebrech>
Ox0dea: not really, i'm trying unirest as we speak
DCameronMauch has joined #ruby
ruurd has joined #ruby
bigredboots has joined #ruby
izhak has joined #ruby
OrbitalKitten has joined #ruby
<izhak>
Hi, guys! Sorry, maybe this is off topic, but don't know where to ask: How do I run resque without rails/
devoldmx has quit [Ping timeout: 244 seconds]
<jlebrech>
Ox0dea: my problem might be a api specific issue. It want's a uuid for something
DCameronMauch has quit [Client Quit]
badfish129 has joined #ruby
dawkirst has joined #ruby
aaeron has joined #ruby
<jlebrech>
Ox0dea: thanks for the help
<Ox0dea>
jlebrech: Sure thing. Did you get it sorted, then?
chouhoul_ has joined #ruby
<jlebrech>
not really, but I think it's more to do with the api not giving me the correct error messages
chouhoulis has quit [Ping timeout: 265 seconds]
skade has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
bb010g has quit [Quit: Connection closed for inactivity]
iateadonut has quit [Quit: Leaving.]
Rakunh0 has joined #ruby
UtkarshRay has quit [Quit: Leaving]
fgo has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
skade has quit [Client Quit]
Musashi007 has joined #ruby
esauOp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
jamesaxl has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
rdark has quit [Quit: leaving]
fgo has quit [Ping timeout: 246 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
clarkenciel has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
ta has joined #ruby
nhhagen has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
fantazo has joined #ruby
rakm has joined #ruby
MrFjords has joined #ruby
aaeron has quit [Quit: Leaving.]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
bigredboots has quit [Remote host closed the connection]
ruby-lang525 has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigredboots has joined #ruby
bigredboots has quit [Remote host closed the connection]
bigredboots has joined #ruby
ruurd has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
denisemccoy has joined #ruby
clarkenciel has joined #ruby
ruby-lang525 has quit [Ping timeout: 246 seconds]
samukasmk has quit [Ping timeout: 250 seconds]
pecpec has joined #ruby
dawkirst has quit [Remote host closed the connection]
firstdayonthejob has quit [Read error: Connection reset by peer]
fostertheweb has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat1 has quit [Remote host closed the connection]
baweaver has joined #ruby
izhak has quit [Quit: Page closed]
leat1 has joined #ruby
samukasmk has joined #ruby
ebbflowgo has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<patrick_star>
How can I compile haml and coffescript to host in on regular html hosting (for example on github pages)?
Igorshp has joined #ruby
KensoDev has joined #ruby
<patrick_star>
Rails is overkill.
bb010g has joined #ruby
<patrick_star>
Sinatra also looks like overkill.
icole has joined #ruby
dmmoody has joined #ruby
<Ox0dea>
patrick_star: Both of those ship with executables.
ruurd has joined #ruby
IrishGringo has joined #ruby
<patrick_star>
Ox0dea: I'm too lazy to write shell script that will compile haml/coffee files :)
<Ox0dea>
Then you get to use a framework. :P
<patrick_star>
I'l looking at Jekyll. But it will take too much time to learn it.
<patrick_star>
May be 2 or 3 hours.
ebbflowgo has quit [Client Quit]
<jhass>
patrick_star: another popular alternative is middleman
<jhass>
patrick_star: but google static page generator, there are hundreds by now
nhhagen has joined #ruby
KensoDev_ has quit [Ping timeout: 256 seconds]
<patrick_star>
Thanks. I will take a look at middleman.
<patrick_star>
middleman or jekyll should do a job.
aaeron has joined #ruby
ranchodev has joined #ruby
dh64 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has joined #ruby
paulcsmith has joined #ruby
leat1 has quit [Remote host closed the connection]
pecpec has quit [Remote host closed the connection]
maletor has quit [Client Quit]
maletor has joined #ruby
rodferso1 has joined #ruby
hololeap has joined #ruby
_blizzy_ has quit [Ping timeout: 250 seconds]
rodfersou has quit [Ping timeout: 252 seconds]
kent\n has quit [Ping timeout: 246 seconds]
mprelude has joined #ruby
CustosLimen has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samukasmk_ has joined #ruby
OrbitalKitten has joined #ruby
acke has quit [Remote host closed the connection]
oldbay has joined #ruby
samukasmk_ has quit [Remote host closed the connection]
samukasmk_ has joined #ruby
havenwood has joined #ruby
allomov has joined #ruby
jackjackdripper has joined #ruby
Respek has joined #ruby
claw has quit [Ping timeout: 252 seconds]
acke has joined #ruby
choke has joined #ruby
NightMonkey has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
acke has quit [Remote host closed the connection]
wolfsoul has joined #ruby
kgirthofer has joined #ruby
al2o3-cr has joined #ruby
hostess_ is now known as hostess
acke has joined #ruby
cannedbeef has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
<cannedbeef>
anyone else having a problem running exercism in windows powershell?
<cannedbeef>
i'm getting this error
<cannedbeef>
The term 'exercism' is not recognized as the name
<tubbo>
patrick_star: middleman is pretty awesome
yqt has joined #ruby
jmignault has quit [Quit: Errands]
jweissman has joined #ruby
jweissman has quit [Client Quit]
Zai00 has joined #ruby
<patrick_star>
tubbo: Yep, I'm looking at it right now. Cool thing :)
<apeiros>
cannedbeef: not a windows user, so limited knowledge. maybe the exercism executable is not in %PATH (at least I think that's how windows names the variable where it searches for executables)
<cannedbeef>
according to this it does it automatically
baweaver has quit [Remote host closed the connection]
bluetuna has quit [Quit: Page closed]
gambl0re has joined #ruby
`mrspock has joined #ruby
pecpec has joined #ruby
rehat has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
samukasmk has quit [Ping timeout: 244 seconds]
samukasmk has joined #ruby
garethrees has joined #ruby
vickleton has joined #ruby
samukasmk_ has quit [Ping timeout: 272 seconds]
morenoh149 has joined #ruby
wolfsoul has quit [Quit: Leaving]
claw has joined #ruby
d5sx43 has joined #ruby
polishdub has joined #ruby
Corki has joined #ruby
fgo has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
Eiam has joined #ruby
leat2 has joined #ruby
dmmoody has quit []
samukasmk_ has joined #ruby
leat1 has quit [Ping timeout: 240 seconds]
Lovich has joined #ruby
<Lovich>
hey guys
VeryBewitching has joined #ruby
<Lovich>
any of you guys here to help
<Lovich>
guys?
<pragmatism>
Nope, no one here Lovich
claw has quit [Ping timeout: 252 seconds]
<pragmatism>
We're pretty much all here to help.
<pragmatism>
What's up?
<cannedbeef>
what do you need help with?
<Lovich>
guys
<Lovich>
you guys
<pragmatism>
Yes
noethics has joined #ruby
<pragmatism>
yes Lovich
dawkirst has quit [Remote host closed the connection]
<cannedbeef>
just don't come in the evening because that's when trolls come on including ops who are trolls
<Lovich>
you guys are here to help, this is my understanding
<pragmatism>
Haha just less trolls during the day. Still some assholes.
<Ox0dea>
*fewer
<Ox0dea>
<3
<pragmatism>
thanks :)
<Lovich>
do i understand correctly
<Lovich>
that you guys
<Lovich>
are here to help
<pragmatism>
omg
<pragmatism>
Just ask a question.
<Lovich>
thanks guy
<pragmatism>
Yes, some of us like helping people.
<pragmatism>
So ask a question and let's get going.
<VeryBewitching>
G'day folks.
<Lovich>
hey guy
badfish129 has quit [Quit: badfish129]
<Lovich>
alright so if you guys wouldnt mind helping me figure something out
<Ox0dea>
Lovich: Girl, please.
fgo has quit [Ping timeout: 272 seconds]
<Lovich>
relax man
<Ox0dea>
Calm down, little lady.
<Ox0dea>
First day on the Interwebs?
greymeister has joined #ruby
<Lovich>
hey relax, we are all guys here
<Corki>
yorickpeterse: hey dude :) heard your podcast last week about Oga, pretty cool talk
<Lovich>
no need to be rude
<Ox0dea>
Lovich: You and I are not guys, sugarpuff.
<Ox0dea>
It's okay to love yourself for what you are.
<Lovich>
you're just one of the guys
<Lovich>
like me
<Lovich>
now will you help or not
<VeryBewitching>
It's arrogant to assume that all individuals seeking knowledge are men.
<Ox0dea>
"Arrogant" is putting it kindly.
<Lovich>
s/arrogant/accurate
<slash_nick>
Lovich: no one can help you if you don't share your question
<Lovich>
ok i will
<Lovich>
so guys....
<Coraline>
Wow
<Ox0dea>
Coraline: Please ban?
wldcordeiro has quit [Remote host closed the connection]
<Ox0dea>
Noisy misogyny is noisy.
<drbrain>
!ban Lovich
<Lovich>
what
kappy has quit [Quit: leaving]
<Lovich>
rude
<platzhirsch>
DFTT ;)
<Coraline>
!ban Lovich !T 1 "We're not all guys."
paulcsmith_ has joined #ruby
Lovich was banned on #ruby by ChanServ [Lovich!*@*]
Lovich was kicked from #ruby by ChanServ [Banned: "We're not all guys."]
wldcordeiro has joined #ruby
<Ox0dea>
Danke.
<drbrain>
thanks Coraline
paulcsmith has quit [Ping timeout: 246 seconds]
<slash_nick>
"and some of can do THIS"
* slash_nick
kicks
kadoppe has quit [Ping timeout: 244 seconds]
rodferso1 is now known as rodfersou
sshuff|gone is now known as sshuff
niemcu has quit [Ping timeout: 240 seconds]
angrywombat has joined #ruby
<platzhirsch>
Really looked like Lovich was looking for a reaction
<Mon_Ouie>
Looks like the default unit is minutes
<Coraline>
He got a reaction.
<chris2>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<chris2>
ah good, i remembered correctly
majjoha has quit [Quit: WeeChat 1.2]
leat2 has quit [Ping timeout: 252 seconds]
ruurd has quit [Quit: ZZZzzz…]
rakm has joined #ruby
ruurd has joined #ruby
kadoppe has joined #ruby
Lovich has joined #ruby
<Lovich>
sorry guys
<Lovich>
ill behave
luksaur has quit [Ping timeout: 264 seconds]
leat2 has joined #ruby
rakm has quit [Client Quit]
<Coraline>
Again with the guys
* wasamasa
rolls eyes
<drbrain>
winning no friends
rakm has joined #ruby
<Lovich>
Coraline: who told you that you could speak
<havenwood>
!ban Lovich !T 1d trolling
Lovich was banned on #ruby by ChanServ [Lovich!*@*]
Lovich was kicked from #ruby by ChanServ [Banned: trolling]
IrishGringo has quit [Ping timeout: 244 seconds]
<Coraline>
Thanks havenwood.
wldcordeiro has quit [Remote host closed the connection]
<havenwood>
de nada
<yorickpeterse>
who the f pinged me?
<Corki>
Guys is one of these words which will probably be included in the Oxford dictionary in the future as a gender-neutral noun
<yorickpeterse>
oh, Corki did
<Coraline>
Corki, take it to ruby-offtopic
<yorickpeterse>
hrmpf, I need to change my highlight color
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d5sx43 has quit [Quit: Leaving...]
<yorickpeterse>
Corki: glad you liked the podcast
Corki_ has joined #ruby
<Corki_>
sorry got disconnected
nhhagen has quit [Remote host closed the connection]
<Corki_>
Coraline: Take it to ruby-offtopic, please
not_corki has joined #ruby
nhhagen has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse>
wut
jgt1 has joined #ruby
<Corki_>
yorickpeterse: yeah, had some great insights
<not_corki>
just wanted to ask why someone has to take it to offtopic but yorickpeterse doesn't
gambl0re has quit []
<not_corki>
any ideas, guys?
esauOp has joined #ruby
<Corki_>
Not sure what yorick has to do with that :)
<yorickpeterse>
not_corki: because we were referring to a Ruby podcast
<yorickpeterse>
not_corki: I also suggest you 1) stop evading bans 2) behave as asked
<not_corki>
you were told to take it to offtopic, then yorickpeterse chimed in about his highlight color
<yorickpeterse>
or 3) leave
<not_corki>
isn't that offtopic?
wldcordeiro has joined #ruby
<havenwood>
That reminds me I need to listen to the rest of that podcast.
<havenwood>
!mute not_corki
<slash_nick>
not_corki: yorickpeterse doesn't because he's not trying to have a lengthy discussion about his hilight colors...
Corki has quit [Ping timeout: 246 seconds]
<yorickpeterse>
havenwood: might wanna require reg for the next 30 min
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen_ has joined #ruby
nhhagen has quit [Remote host closed the connection]
<platzhirsch>
To me it's new that there's a big obligation to keep off-topic out in #ruby anyway, unless there's a lot of Ruby discussions going on
<yorickpeterse>
platzhirsch: for short/brief stuff it's fine IIRC
symbol has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
wldcordeiro has quit [Remote host closed the connection]
<slash_nick>
platzhirsch: i think that lately there's been more folks wanting to debate, argue, or just to act out by defying rules they don't agree with
majjoha has quit [Client Quit]
mhenrixon_afk is now known as mhenrixon
<platzhirsch>
debating for the sake of flaming up stuff ;)
firstdayonthejob has quit [Read error: Connection reset by peer]
dstarh has joined #ruby
* wasamasa
wonders when that person will invade #ruby-offtopic
majjoha has joined #ruby
<atmosx>
aloha
<yorickpeterse>
they tend to do, e.g. one did last night
<Ox0dea>
slash_nick: *rules with which they don't agree
<Ox0dea>
Ending sentences with prepositions offends me deeply.
<slash_nick>
Ox0dea: let's take this to OT :P
<atmosx>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<atmosx>
?ot Ox0dea
<ruboto>
Ox0dea, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<atmosx>
haha :-P
<eam>
when kids act up some people blame the kids, some people blame the parents
<atmosx>
eam: I'm still a kid.
No_One is now known as ZeeNoodleyGamer
<eam>
aren't we all
jatb has quit [Remote host closed the connection]
Respek has joined #ruby
<Ox0dea>
eam: "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
paulcsmith_ has quit [Quit: Be back later ...]
<Ox0dea>
That is, some people blame the laws of physics.
robbyoconnor has quit [Ping timeout: 244 seconds]
<Papierkorb>
Please take it to offtopic, people over there are only playing hangman D:
yardenbar has quit [Quit: Leaving]
<eam>
I'd rather not interrupt hangman =/
<yorickpeterse>
take it to ruby-offtopic-offtopic :P
<Corki_>
meta-off topic
<eam>
we could discuss ruby, hasn't happened much since these other agendas started mixing things up
<eam>
what kind of ruby have you all rubied today?
<Corki_>
yorickpeterse: when will Oga be able to process JSON?
claw has joined #ruby
wldcordeiro has joined #ruby
<slash_nick>
eam: i was about to say... the true offenders seem to respect the sanctity of #ruby-offtopic and the hangman matches it hosts
<yorickpeterse>
Corki_: lol, never
<Corki_>
?
<yorickpeterse>
also no plans for XSLT
chichikov has joined #ruby
chichikov has left #ruby [#ruby]
<slash_nick>
eam: i'm rubying with sass and css today... not many rubies in my ruby today
<Corki_>
mhm
luksaur has joined #ruby
<Corki_>
hasn't XML been deprecated in favor of JSON?
<Papierkorb>
XML and JSON are for completely different things, and both have their place ..
<VeryBewitching>
Corki_: I wouldn't agree with that, if you're speaking generally.
<Corki_>
I thought Oga is a legacy parser
dfinninger has joined #ruby
<Corki_>
well not officially of course
<Corki_>
because it's a different standard
<Corki_>
but community-accepted-wise
<yorickpeterse>
An industry preferring X over Y doesn't deprecate Y
<yorickpeterse>
I don't see websites moving to JSON in the next 100 years
barhum2013 has joined #ruby
<VeryBewitching>
yorickpeterse: QML may be a thing though.
<yorickpeterse>
Not sure how widely adopted that is outside Qt
<Papierkorb>
Corki_: It's more like that many structures previously in XML are better put as JSON. XML is better though for recursive structures where you don't know the elements type (and the type is important).
<VeryBewitching>
yorickpeterse: It's still young, it's easy to embed support for in a browser.
<yorickpeterse>
Ox0dea: haha wtf
not_corki has quit [Quit: Page closed]
<yorickpeterse>
then again mame does some pretty wack things
<Papierkorb>
VeryBewitching: you'd think!
<Ox0dea>
yorickpeterse: That's yhara.
robotic_arms has joined #ruby
<Ox0dea>
But mame does have two entries in that repo.
gambl0re has joined #ruby
<Papierkorb>
VeryBewitching: I know of two QML to browser projects, and both suck
vickleton has quit [Quit: Ex-Chat]
leat2 has quit [Remote host closed the connection]
<yorickpeterse>
Ox0dea: ah
<eam>
Ox0dea: this is some pretty good ruby
<Papierkorb>
not to mention they haven't been updated in years
<barhum2013>
Hello Everyone, I am teaching some people how to code in ruby and rails. I am wondering if I should introduce db’s along with rails or should I introduce them in before when I will be teaching just ruby and using a connector like ‘pg’?
<Ox0dea>
The apostrophe goes where the letters have gone missing.
<robotic_arms>
isn't this getting a little offtopic guys?
<Ox0dea>
robotic_arms: Hungry?
<VeryBewitching>
robotic_arms: It is, I digress.
firstdayonthejob has joined #ruby
<robotic_arms>
well have fun
<havenwood>
!ban robotic_arms !T 1h ban evasion
robotic_arms was banned on #ruby by ChanServ [robotic_arms!*@*]
robotic_arms was kicked from #ruby by ChanServ [Banned: ban evasion]
esauOp has quit [Read error: Connection reset by peer]
<Corki_>
yorickpeterse: anyway, good stuff and good luck with the JSON problem
symbol has left #ruby ["WeeChat 1.1"]
esauOp has joined #ruby
<Papierkorb>
VeryBewitching: Quite some tea will have been drunk by the time that browser will become viable. I'd also like to build pages in QML, but meh
<VeryBewitching>
Papierkorb: Can I query so I'm not flooding #ruby?
<Papierkorb>
I don't know though if the world really needs yet another webkit render window
<Papierkorb>
VeryBewitching: yup
<yorickpeterse>
havenwood: +b *@64.121.17.196
<yorickpeterse>
They keep connecting from the same IP anyway
poguez_ has joined #ruby
* yorickpeterse
cracks whip
<jhass>
yorickpeterse: already did
<havenwood>
yorickpeterse: Yeah, they didn't bother hiding evasion - but claimed innocence of course.
phutchins has quit [Ping timeout: 264 seconds]
<yorickpeterse>
Ah
jamesaxl has joined #ruby
<yorickpeterse>
oh heh, missed that jhass
<platzhirsch>
I wasn't active for over a year in #ruby, can't remember if there used to be less or more trolls
<platzhirsch>
I am defo suprised to see 1,1k active users
<platzhirsch>
we were down to 800-900 back then
baweaver has joined #ruby
<jhass>
yeah we merged #ruby-lang in
esauOp has quit [Client Quit]
<platzhirsch>
No!
<jhass>
so everything kinda focused here
<platzhirsch>
oh gosh
<platzhirsch>
yes, finally
<jhass>
also building up some community and stuff, enforcing rules and what not
<jhass>
things tend to attract the idiots
Aria has quit [Ping timeout: 255 seconds]
ksteck has quit [Read error: Connection reset by peer]
<platzhirsch>
still 200 less than #go-nuts, grr
cannedbeef has quit [Quit: Page closed]
samukasmk_ has quit [Ping timeout: 256 seconds]
<yorickpeterse>
we wouldn't be able to handle such scale
<yorickpeterse>
it's #ruby after all
<yorickpeterse>
ᕕ(ᐛ)ᕗ
<platzhirsch>
maybe with shelling out to Scala
<platzhirsch>
ha.. hahaha
<platzhirsch>
-_-
leat2 has quit [Remote host closed the connection]
fostertheweb has joined #ruby
leat2 has joined #ruby
samukasmk has quit [Ping timeout: 272 seconds]
<yorickpeterse>
sounds almost like that's something you have experience with
paulcsmith_ has joined #ruby
dionysus69 has joined #ruby
samukasmk has joined #ruby
<platzhirsch>
no :) I only shell out for bash
<platzhirsch>
everything else better be API'ed
samukasmk_ has joined #ruby
renanoronfle has joined #ruby
cgrieger^away has quit [Ping timeout: 240 seconds]
rubie has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 250 seconds]
Corki_ has quit []
paulcsmith_ has quit [Ping timeout: 264 seconds]
SimplySeth has joined #ruby
<nofxx>
yorickpeterse, woa, rosetta stone that... what is it?
dfockler has quit [Remote host closed the connection]
shadeslayer has joined #ruby
badfish129 has joined #ruby
devoldmx has joined #ruby
Porfa has joined #ruby
oldbay has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat2 has quit [Remote host closed the connection]
<jhass>
require "yaml"
leat2 has joined #ruby
allomov has quit [Remote host closed the connection]
<yorickpeterse>
nofxx: not sure if I'm following, what about rosetta stone?
<SimplySeth>
jhass: doh! .... thank you *embarassed
Porfa has quit [Client Quit]
<jhass>
yw
<atmosx>
my aquarium is awesome
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gigetoo has joined #ruby
failshell has joined #ruby
<slash_nick>
atmosx: ?ot
<atmosx>
hahaha
dasher00 has quit [Ping timeout: 268 seconds]
Porfa has joined #ruby
<atmosx>
slash_nick: you have a syntax error
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 240 seconds]
<slash_nick>
atmosx: i was thinking permissions
<atmosx>
nah it works fine
<failshell>
im running 'bundle install --path /home/user/.gem' and it installs my gems under /home/user/.gem/1.9.1/gems. so that doesnt work. if i move what's under 1.9.1 to /home/user/.gem then all of a sudden my gems are available. why does it do that?
<atmosx>
?ot slash_nick
<ruboto>
slash_nick, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<eam>
persimmons?
<atmosx>
failshell: who does what?
<atmosx>
failshell: bundle doesn't do anything, it's your PATH="" tha matters.
<slash_nick>
eam: scuppernongs?
codecop has quit [Remote host closed the connection]
<failshell>
my GEM_HOME is set to /home/user/.gem
<eam>
slash_nick: TIL scuppernongs
Muimi has quit [Quit: Leaving.]
<nofxx>
yorickpeterse, those glyphs you wrote ᕕ(ᐛ)ᕗ
firstdayonthejob has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
firstdayonthejob has joined #ruby
<slash_nick>
eam: there's even a trick to eating them (for maximal enjoyment)... bite a hole in the skin, and squeeze the inner parts through into your mouth (really soft)... separate and spit out seeds. now eat the skin by itself (really crunchy).
dfinninger has quit [Ping timeout: 246 seconds]
<eam>
where can I order some
fgo has joined #ruby
DLSteve has quit [Ping timeout: 255 seconds]
<Ox0dea>
The Lemonade Stand used to have grapes.
<Ox0dea>
Then he waddled away.
shinnya has joined #ruby
<slash_nick>
eam: once had a vine in my yard... scuppernongs.com is a thing
<eam>
I have some vines, but of california varieties
<eam>
sounds like those don't grow well out here
kent\n has quit [Ping timeout: 246 seconds]
<slash_nick>
scuppernongs.com says The SCUPPERNONG is North Carolina's STATE FRUIT.
<nofxx>
eam, thing is, you need to dig at *least* 5mts
<nofxx>
to make a good vineyard
<eam>
mts?
<nofxx>
yup... grapes never stop growing roots. Hence the older makes the better wines
<nofxx>
and they live around 300 years btw
dawkirst has joined #ruby
<eam>
what's a mts?
luksaur has quit [Ping timeout: 246 seconds]
<nofxx>
plural of meter
<eam>
ah. I don't make wine, I just have some table grapes. I used to have wine grapes but they're awful for anything but wine
<DCameronMauch>
have a true Ruby ninja queston: Is there a way I can create a FFI::Library module using a file handle or string with the actual C shared library inside it, and NOT a filename?
<DCameronMauch>
I don't want to write the code to a temp file first just to read it back in
m8 has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
<Ox0dea>
DCameronMauch: StringIO?
<DCameronMauch>
not following
<Ox0dea>
Yeah, never mind.
naftilos76 has quit [Ping timeout: 244 seconds]
<lianj>
DCameronMauch: you want to compile c code and attach it using ffi?
<DCameronMauch>
yeah, I have compiled some Go as a shared C library, and appended it to the Ruby file after an __END__, which I can then access as the file handle DATA
<DCameronMauch>
I know this is crazy
<DCameronMauch>
but this is my limitation - it has to be one single file
<lianj>
yea, its crazy :P
* imperator
looks at ffi_lib
<lianj>
i doubt it will work, pretty sure libffi only takes a fd as load param, not even ruby fault there
pecpec has quit [Remote host closed the connection]
<Ox0dea>
DCameronMauch: You could've used rubyinline if you hadn't gone over to the Gophers.
momomomomo has joined #ruby
OrbitalKitten has quit [Ping timeout: 272 seconds]
<lianj>
using a tmpfile isn't to bad for your nutcase example though :P
duncannz has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 246 seconds]
noethics has quit [Quit: Leaving]
mary5030 has joined #ruby
<lianj>
you appended 3MB of go binary after __END__? :p
<DCameronMauch>
yep
pecpec has joined #ruby
<DCameronMauch>
well, 1.24MB
mary5030 has quit [Remote host closed the connection]
m8 has quit [Max SendQ exceeded]
<Ox0dea>
Do you solemnly swear that you're up to no good?
JamesDH has joined #ruby
<lianj>
hehe is that a real use case or just poc tinkering?
<DCameronMauch>
it is a real use case
mary5030 has joined #ruby
<DCameronMauch>
but due to various reasons, I can
<DCameronMauch>
can't get specific
<lianj>
uh so secrect
<DCameronMauch>
just trying to get this ruby going faster
<DCameronMauch>
and been learning Go
<lianj>
why not simply have it in a seperate file and source it via ffi from there?
vikaton has quit [Quit: Connection closed for inactivity]
<DCameronMauch>
I can't explain - but it's not an option
<DCameronMauch>
this whole thing would have been trivial if I could
nhhagen_ has quit [Remote host closed the connection]
<Ox0dea>
/proc/self/maps is a very interesting file.
_blizzy_ has joined #ruby
<lianj>
Created 5 months ago
<lianj>
don't even want to know the reasoning for it
<DCameronMauch>
holy crap, that is scary
jenrzzz has joined #ruby
rubie has joined #ruby
OrbitalKitten has joined #ruby
ascarter has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shadoi has joined #ruby
<lianj>
can't think of a reason why you can't write it to a file and source it from there (instead of via __DATA__)
<Ox0dea>
It's because he's being naughty.
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lianj>
or is it embedded mruby and you don't have a fs
<lianj>
:D
zlogan has joined #ruby
davedev24 has quit []
rbennacer has quit [Remote host closed the connection]
_blizzy_ has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
ldnunes has quit [Quit: Leaving]
<DCameronMauch>
I am explicitly not allowed to access the file system
jefus has left #ruby ["Leaving"]
Musashi007 has joined #ruby
cjk101010 has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
zlogan has quit [Ping timeout: 250 seconds]
nhhagen has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
k3asd` has joined #ruby
k3asd` has quit [Changing host]
k3asd` has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
prefixed has joined #ruby
DCameronMauch has quit [Quit: Leaving...]
fostertheweb has joined #ruby
cjk101010 has joined #ruby
<prefixed>
hi. whats the best way to recursively apply permissions to files in a directory using ruby?
<lianj>
FileUtils.chown_R
barhum2013 has quit [Quit: barhum2013]
David27 has joined #ruby
weaksauce has joined #ruby
<prefixed>
that's exciting
barhum2013 has joined #ruby
samukasmk_ has quit [Ping timeout: 244 seconds]
ordepdev has joined #ruby
snockerton1 has quit [Quit: Leaving.]
paulcsmith_ has joined #ruby
fostertheweb has quit [Client Quit]
<Ox0dea>
I wonder if he was trying to trick somebody into thinking Ruby is faster than it is...
<lianj>
hehe
samukasmk has quit [Ping timeout: 260 seconds]
bootstrappm has joined #ruby
paulcsmith_ has quit [Read error: Connection reset by peer]
<lianj>
sadly it didn't come to ruby vs go discussion
paulcsmith_ has joined #ruby
<bootstrappm>
morning all
FernandoBasso has joined #ruby
ordepdev has quit [Remote host closed the connection]
choke has joined #ruby
* imperator
assumed it was for packaging/deployment reasons
denisemccoy has quit [Remote host closed the connection]
samukasmk has joined #ruby
blue_deref has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
acke has quit [Remote host closed the connection]
samukasmk_ has joined #ruby
AlphaAtom has joined #ruby
bronson has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
jgpawletko has quit [Quit: jgpawletko]
AlphaAtom has joined #ruby
denisemccoy has joined #ruby
fostertheweb has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fostertheweb has quit [Client Quit]
<baweaver>
at a certain point I just say hire a consultant if it's so off-limits.
samukasmk__ has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
<Ox0dea>
That it doesn't accept an IO is a bit leaky, it must be said.
samuk483 has joined #ruby
Rickmasta has joined #ruby
renderful has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigbadbear has quit [Ping timeout: 246 seconds]
Rakunh0 has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
Zai00 has quit [Quit: Zai00]
freerobby has quit [Quit: Leaving.]
renderfu_ has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
rakm has joined #ruby
samukasmk_ has quit [Ping timeout: 240 seconds]
niko has quit [Ping timeout: 610 seconds]
iamvery has joined #ruby
renderfu_ has joined #ruby
Jackneill has quit [Ping timeout: 244 seconds]
samuk483 has quit [Ping timeout: 240 seconds]
samukasmk__ has quit [Ping timeout: 240 seconds]
samukasmk has quit [Ping timeout: 260 seconds]
aaeron has quit [Quit: Leaving.]
renderful has quit [Ping timeout: 255 seconds]
Rickmast_ has joined #ruby
aaeron has joined #ruby
Rickmasta has quit [Ping timeout: 265 seconds]
devoldmx has joined #ruby
kappy has quit [Quit: leaving]
nhhagen has quit [Remote host closed the connection]
kappy has joined #ruby
denisemccoy has quit [Remote host closed the connection]
iamvery has quit [Remote host closed the connection]
<imperator>
Ox0dea, time for a PR :)
<Ox0dea>
imperator: DL is no longer in the standard library.
<Ox0dea>
Could do for Fiddle, I suppose, but encodings are involved.
<imperator>
oh, i was thinking this whole time he was talking about FFI
ghr has joined #ruby
<Ox0dea>
Oh, right. I derped.
allcentury has quit [Ping timeout: 264 seconds]
<Ox0dea>
They all end up calling dl_open(), so the issue is broadly applicable.
devoldmx has quit [Ping timeout: 255 seconds]
s00pcan_ has joined #ruby
rehat has joined #ruby
denisemccoy has joined #ruby
segfalt has joined #ruby
nik0 has joined #ruby
iamvery has joined #ruby
apt-get has quit [Remote host closed the connection]
jgpawletko has joined #ruby
eightfold has quit [Quit: eightfold]
jgpawletko has quit [Client Quit]
tkuchiki has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<lianj>
Ox0dea: imperator: both use simply dlopen from libc
jonelf has quit [Ping timeout: 246 seconds]
<lianj>
was looking at its source and am still dizzy
jatb has joined #ruby
<lianj>
oh nevermind Ox0dea already said that
<Ox0dea>
Right, so the wrapper would have to create a tempfile in any case.
<lianj>
ya
iamvery has quit [Ping timeout: 240 seconds]
momomomomo has quit [Ping timeout: 246 seconds]
k3asd` has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
<imperator>
well, you could get the name from a handle, but that would lead back to the ruby source file i assume, and that would include the non-binary bits
fgo has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
kappy has quit [Quit: leaving]
victortyau has quit [Quit: Leaving]
k3asd` has joined #ruby
atomical has joined #ruby
Rickmast_ has quit [Ping timeout: 250 seconds]
kappy has joined #ruby
jamesaxl|2 has joined #ruby
NeverDie has joined #ruby
<Ox0dea>
I wonder at the justification for making dlopen() take a filename.
<Ox0dea>
It's just so much less versatile.
<imperator>
wonder if mmap is the answer
<imperator>
somehow, someway
St1gma has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
NeverDie has quit [Client Quit]
ngscheurich has quit [Ping timeout: 256 seconds]
kobain has joined #ruby
Kallis has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
Kallis has quit [Max SendQ exceeded]
platzhirsch has quit [Ping timeout: 246 seconds]
jgt1 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
<imperator>
from the man page: dlopen() examines the mach-o file specified by path.
<imperator>
mach-o, mach-o file!
renderful has joined #ruby
<imperator>
i gotta be, a macho-o file
<lianj>
thats darwin dlopen
JohnBat26 has quit [Ping timeout: 272 seconds]
<Ox0dea>
imperator: I don't see how mapped memory could be used as a path, but that's an interesting digression.
<Ox0dea>
Some sort of URI scheme for poking around in memory.
<Ox0dea>
Or, as is more pertinent here, treating a block of memory as a file.
<Ox0dea>
Dat ~3150% increase in version number doe.
arooni-mobile has joined #ruby
zeroDivisible has joined #ruby
allcentury has joined #ruby
<lianj>
is ___DATA__ data encoded by the same encoding as the file? so he would run into issues anyways when if he didn't set the whole file to binary/us-ascii encoding
zeroDivisible has quit [Client Quit]
Rickmasta has joined #ruby
Igorshp has quit [Remote host closed the connection]
morenoh149 has joined #ruby
<lianj>
hm or not, if he just passes it along. anyhows putting 1MB as __DATA__ can't be a good idea
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jayne_ is now known as jayne
havenwood has joined #ruby
hinbody has quit [Quit: leaving]
zeroDivisible has joined #ruby
ebbflowgo has joined #ruby
wldcordeiro has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pyon is now known as turnstile
tubuliferous_ has joined #ruby
Rollabunna has quit [Read error: No route to host]
Rollabunna has joined #ruby
shiver32 has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
craysiii has quit [Remote host closed the connection]
pragmatism has quit [Ping timeout: 244 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]