<yo9>
the "http" endpoint needs to have a name and an owner
<yo9>
apotheon: how do you put/get stuff into ipfs?
<apotheon>
Yeah, but if your project is just the software part of a mirroring and gateway service then other people could use your (presumably copyfree licensed) project to pop up mirror/gateway stuff all over.
<apotheon>
Getting stuff into IPFS requires the IPFS software itself. You have to run a node and either load it in yourself or mirror it from someone else's node.
<apotheon>
As far as I know, go-ipfs and . . . whatever the JavaScript version is called . . . are the most production-ready implementations.
<yo9>
hum
<yo9>
makes sense
<apotheon>
hmm
<yo9>
maybe leverage something like mega?
<apotheon>
I suppose you could work on a Ruby implementation (or contribute to one if there's one in progress already).
<apotheon>
I'm not sure I know what "mega" means in this context.
<yo9>
mega used to be a file drop
<yo9>
now entirely encrypted on client side, which means it hosts stuff they cant know
<apotheon>
another project idea: something like Heroku, with the same ease of deployment for Ruby web applications, but with the command line tools being Ruby and more portable, and not run by Salesforce
<apotheon>
Oh, I guess that'd be for the file dead drop service idea.
<apotheon>
I thought you were still talking about the IPFS mirror/gateway.
<yo9>
damn, I been out of this community for too long.. didnt know Salesforce owns Heroku now
<apotheon>
One thing that annoys me about Heroku is that you need either a separate hosting service for files (e.g. AWS) or to spend far too much money on file hosting for your application.
<apotheon>
. . . because Heroku paid add-ons are sometimes ridiculously expensive compared to off-Heroku alternatives.
<yo9>
so to be clear I was thinking to mirror ipfs (based on some search/filter) to mega (which is an http endpoint with client-side encryption)
<apotheon>
Salesforce bought Heroku a few years ago.
<yo9>
didn't know
<apotheon>
Oh, that's a different idea than I expected.
yokel has quit [Ping timeout: 260 seconds]
<yo9>
I want to outsource the http part
<apotheon>
gotcha
<yo9>
I like the project
<yo9>
if you would scan for something interesting, what would you be looking for?
<yo9>
again, not sure how ipfs works
<apotheon>
It's a bit abstract.
<apotheon>
I'm afraid I don't have time right now to try to explain it. I'm about to turn in for the night.
<yo9>
you inspired a soul my friend
<yo9>
go to your dreams
yokel has joined #ruby
<apotheon>
You could look at pinata.cloud for an example of a freemium mirroring service (kinda like how GitHub is freemium, sort), by the way.
<apotheon>
yo9: I'd like to talk to you more later, if you're interested in exploring it.
<apotheon>
I'm barely at all knowledgeable about IPFS myself. I've played around with it a little.
<yo9>
send me a msg when you
<yo9>
're back
<apotheon>
yo9: Before I go, I'll give you a link to an image I pinned on pinata. Hang on while I get its URI.
powerhouse has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
powerhouse has joined #ruby
yokel has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
powerhouse has quit [Remote host closed the connection]
powerhouse has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Jonathan_ has joined #ruby
yokel has joined #ruby
Jonathan_ has quit [Remote host closed the connection]
powerhouse has quit [Remote host closed the connection]
powerhouse has joined #ruby
powerhouse has quit [Remote host closed the connection]
powerhouse has joined #ruby
akemhp has joined #ruby
xco has joined #ruby
Jonathan_ has joined #ruby
Jonathan_ has quit [Max SendQ exceeded]
yokel has quit [Ping timeout: 240 seconds]
Jonathan_ has joined #ruby
Jonathan_ has quit [Remote host closed the connection]
yokel has joined #ruby
powerhouse has quit [Remote host closed the connection]
powerhouse has joined #ruby
dfucci has joined #ruby
carbone5 has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jonathan_ has joined #ruby
xco has joined #ruby
Jonathan_ has quit [Remote host closed the connection]
BenDover has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
titanbiscuit has quit [Ping timeout: 258 seconds]
titanbiscuit has joined #ruby
yokel has joined #ruby
schne1der has joined #ruby
davispuh has joined #ruby
leitz has quit [Quit: Leaving]
yokel has quit [Ping timeout: 258 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
imode has joined #ruby
carbone5 has quit [Quit: carbone5]
yokel has joined #ruby
Jonathan_ has joined #ruby
Jonathan_ has quit [Max SendQ exceeded]
yokel has quit [Ping timeout: 258 seconds]
yokel has joined #ruby
carbone5 has joined #ruby
schne1der has quit [Ping timeout: 244 seconds]
weaksauce has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
entel has quit [Ping timeout: 240 seconds]
Rudd0 has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
entel has joined #ruby
blender has joined #ruby
blender_ has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 246 seconds]
<xco>
perhaps there's a way to cycle through an array randomly
<xco>
Ruby has a.cycle { |x| puts x } which cycles through the array in order
<xco>
a = some array
<xco>
how can i cycle through an array randomly? if this is possible. i don't want to build my own data structures
TCZ has joined #ruby
<apotheon>
a.shuffle.cycle
yokel has joined #ruby
<apotheon>
It'd be the same randomized order over and over again, though.
<apotheon>
If you want it differently random every time, that'd be something else.
<xco>
yeah i want it to be different order after every cycle
<apotheon>
I think that's kinda against the point of "cycle".
<xco>
apotheon i can understand that. if it was a different order each time it wouldn't truly be a cycle then
<apotheon>
[1].cycle { puts a.shuffle }
<apotheon>
there you go
<apotheon>
cheating
<apotheon>
I mean, if you're going to do something that doesn't fit the concept of the function, you might as well go all the way.
yokel has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
<apotheon>
s/function/method/
ctOS has joined #ruby
<xco>
apotheon ha. nifty
<xco>
apotheon thanks
pacuna has joined #ruby
howdoi has joined #ruby
SuperLag has joined #ruby
<apotheon>
xco: welcome
<apotheon>
Just remember that too much cleverness is bad in code, and there are probably better ways to do that.
<apotheon>
A lot of cleverness comes from someone wanting to use what's in the person's head in nonstandard ways to accomplish something without having to work at it.
<apotheon>
. . . rather than figuring out a better way.
<apotheon>
anyway, off to take a walk
<xco>
apotheon sure. thank you :)
<apotheon>
my pleasure
yokel has joined #ruby
blobsson has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
jokester has quit [Read error: Connection reset by peer]
yokel has quit [Ping timeout: 240 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
yokel has joined #ruby
iamnix has joined #ruby
carbone5 has quit [Quit: carbone5]
carbone5 has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
iamnix has quit [Ping timeout: 258 seconds]
carbone5 has quit [Client Quit]
carbone5 has joined #ruby
yokel has joined #ruby
jenrzzz has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
carbone5 has quit [Quit: carbone5]
akemhp has quit [Ping timeout: 240 seconds]
lunarkitty7 has joined #ruby
yokel has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pacuna has quit [Ping timeout: 244 seconds]
yokel has quit [Ping timeout: 244 seconds]
factormystic has quit [Read error: Connection reset by peer]
redlegion has quit [Ping timeout: 272 seconds]
factormystic has joined #ruby
redlegion has joined #ruby
yokel has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
drincruz has joined #ruby
carbone5 has joined #ruby
carbone5 has quit [Client Quit]
akemhp has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
TCZ has quit [Quit: Leaving]
ctOS has quit [Quit: Connection closed for inactivity]
Jonathan_ has joined #ruby
sjd has joined #ruby
Jonathan_ has quit [Remote host closed the connection]
ellcs has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
xco has joined #ruby
pwnd_sfw has quit [Remote host closed the connection]
Rudd0 has joined #ruby
sjd has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
xco has quit [Ping timeout: 240 seconds]
zxq2 has joined #ruby
<zxq2>
if i have an object and i want to detemine where a method is defined, e.g. in the class i instanatiated or one of the classes it inherits from (or mixes in), how do i do it? is there a way aside from Method#source_location?
<ruby[bot]>
Grios: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com