<fiatjaf>
I don't see that on the js-api, but on the go-ipfs cli you can do `ipfs files mkdir /whatever` and `ipfs files mv /ipfs/<hash> /whatever/some-filename` and thus have a way of organizing your files (pre-added to ipfs and already identifiable by hashes) in directories.
reit has joined #ipfs
<wickstjo>
lemme test out some things
<wickstjo>
btw, what is the root directory when using these mutable methods
<wickstjo>
I managed to create a directory with the mkdir method, but can't locate it manually
<freeflying>
is there a map shwocase live ipfs node dynamically
notdjdv has joined #ipfs
<kompowiec2[m]>
nice to have doing service with offers similar to craiglist
<kompowiec2[m]>
can work script like osclass?
notdjdv has quit [Ping timeout: 240 seconds]
Taoki has joined #ipfs
<fiatjaf>
wickstjo, I don't know the correct technical names, but it's a virtual filesystem, it is not mounted on your hard drive
<wickstjo>
fiatjaf: ah I think I completely misunderstood how the mutable methods work.
<gratin>
whats the best way to decode it into a java object?
<gratin>
I've tried json but it doesn't seem to work. I think some one said its encoded in base64
lostfile has quit [Client Quit]
<vespertatia>
choose a good base64 serializer java library
<gratin>
i thought the format was json and then I could decode it after json
<gratin>
or do i have to manually parse it
lostfile has joined #ipfs
<gratin>
oh that looks nothing like json
pcardune has joined #ipfs
lostfile has quit []
<vespertatia>
then use json serialization library instead :)
lostfile has joined #ipfs
lostfile has quit [Client Quit]
Formbi[m] has joined #ipfs
lostfile has joined #ipfs
lostfile has quit [Client Quit]
ONI_Ghost has quit [Read error: Connection reset by peer]
lostfile has joined #ipfs
ONI_Ghost has joined #ipfs
ONI_Ghost has quit [Changing host]
ONI_Ghost has joined #ipfs
lostfile has quit [Client Quit]
zopsi has quit [Quit: Oops]
zopsi has joined #ipfs
notdjdv has joined #ipfs
mazeto has joined #ipfs
ulrichard has quit [Remote host closed the connection]
ericxtang has quit [Remote host closed the connection]
Intensity has joined #ipfs
ericxtang has joined #ipfs
ericxtang has quit [Remote host closed the connection]
ericxtang has joined #ipfs
ericxtang has quit [Remote host closed the connection]
PorcoRosso70 has quit [Ping timeout: 260 seconds]
ericxtang has joined #ipfs
ericxtang has quit [Remote host closed the connection]
ericxtan_ has joined #ipfs
Intensity has quit [Changing host]
Intensity has joined #ipfs
xzha has quit [Ping timeout: 240 seconds]
ylp has quit [Quit: Leaving.]
graphene has quit [Remote host closed the connection]
graphene has joined #ipfs
pcardune has quit [Remote host closed the connection]
gchristensen has joined #ipfs
<gchristensen>
hi, what is the process of the ipfs http gateway deciding something doesn't exist, and issuing a 404?
notdjdv has quit [Ping timeout: 260 seconds]
<whyrusleeping>
gchristensen: the gateway shouldnt ever return a 404
<lgierth>
oh it should
<lgierth>
when it's sure the stuff doesn't exist
<whyrusleeping>
lgierth: like what?
<lgierth>
e.g. a non-existing link in a directory
mtodor_ has quit [Remote host closed the connection]
<whyrusleeping>
how could it know a hash doesnt exist?
<whyrusleeping>
ooooh
<whyrusleeping>
right
<whyrusleeping>
it should do that
<lgierth>
or /ipns/foobar.com where there's no dnslink record
mtodor has joined #ipfs
henriquev has joined #ipfs
<gchristensen>
interesting :) thanks
mtodor has quit [Ping timeout: 248 seconds]
JayCarpenter has joined #ipfs
pcardune has joined #ipfs
JayCarpenter has quit [Quit: Page closed]
pcardune has quit [Remote host closed the connection]
pcardune has joined #ipfs
Modding has quit [Quit: Goodbye and thanks for all the fish!]
Modding has joined #ipfs
tombusby has quit [Remote host closed the connection]
tombusby has joined #ipfs
Jesin has quit [Quit: Leaving]
pcardune has quit [Remote host closed the connection]
saki has quit [Ping timeout: 240 seconds]
fazo96 has quit [Quit: Konversation terminated!]
pcardune has joined #ipfs
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
pcardune has quit [Ping timeout: 240 seconds]
JayCarpenter has joined #ipfs
fabianops has joined #ipfs
pcardune has joined #ipfs
ericxtan_ has quit [Remote host closed the connection]
pcardune has quit [Remote host closed the connection]
pcardune has joined #ipfs
JayCarpenter has quit [Quit: Page closed]
ericxtang has joined #ipfs
ericxtang has quit [Ping timeout: 264 seconds]
goiko has quit [Ping timeout: 244 seconds]
drrty has joined #ipfs
ilyaigpetrov has joined #ipfs
jungly has quit [Remote host closed the connection]
saki has joined #ipfs
shizy has joined #ipfs
bomb-on has quit [Quit: SO LONG, SUCKERS!]
Alpha64 has joined #ipfs
MDude has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ipfs
plexigras has quit [Ping timeout: 245 seconds]
ONI_Ghost has quit [Read error: Connection reset by peer]
ONI_Ghost has joined #ipfs
ONI_Ghost has quit [Changing host]
ONI_Ghost has joined #ipfs
MDude has joined #ipfs
pecastro has joined #ipfs
nast has joined #ipfs
NicWow has joined #ipfs
<NicWow>
I have a few questions regarding IPFS Development
gchristensen has left #ipfs ["WeeChat 2.0"]
<NicWow>
1. Can anyone upload a new version of a file with edits? Is there any role system for developers to use?
<NicWow>
2. Is it possible to give attributes and group files to search by?
<NicWow>
A lot of this can be done with development outside of IPFS but what can be done within it?
bomb-on has joined #ipfs
shizy has quit [Ping timeout: 260 seconds]
gratin has quit [Read error: Connection reset by peer]
andrew_ has joined #ipfs
plexigras has joined #ipfs
andrew_ has quit [Remote host closed the connection]
andrew_ has joined #ipfs
lnostdal has quit [Ping timeout: 268 seconds]
<fiatjaf>
1. anyone can _host_ a file and everyone can grab and reference a file that is accessible in the network. there are no uploads, no versions, no role system.
lnostdal has joined #ipfs
<fiatjaf>
NicWow, each file is identified by its hash. files that happen to be equal will have the same hash. a file slightly different has a totally different hash. you can say it's a version if you have a system that tracks these hashes, but from the network perspective they're completely different files.
aalex has joined #ipfs
<aalex>
hello
<aalex>
I'm a software developer learning to use IPFS for a project. I am considering using jsipfs.
<aalex>
Wait - actually, I should probably use go-ipfs, but then I need a software library to interact with IPFS, probably.
<aalex>
Or should I use js-ipfs if most of my code is in JavaScript?
<Swedneck>
i've been thinking about how IPFS is basically a better version of bittorrent (due to the deduplication mostly), is there any way to use IPFS to help torrents?
<Swedneck>
like bridging a torrent to iPFS
<NicWow>
@fiatjaf thx
goiko has joined #ipfs
goiko has quit [Changing host]
goiko has joined #ipfs
The_8472 has quit [Ping timeout: 256 seconds]
<r0kk3rz>
Swedneck: you'd need nodes that can talk both protocols
shizy has joined #ipfs
The_8472 has joined #ipfs
aalex has quit [Ping timeout: 244 seconds]
naicamine[m] has joined #ipfs
aalex has joined #ipfs
nast has quit [Quit: Leaving]
The_8472 has quit [Ping timeout: 240 seconds]
pcardune has quit [Remote host closed the connection]
Alpha64_ has joined #ipfs
The_8472 has joined #ipfs
Alpha64 has quit [Ping timeout: 260 seconds]
mazeto has quit [Ping timeout: 260 seconds]
screensaver has quit [Remote host closed the connection]
screensaver40 has joined #ipfs
<Swedneck>
hmm, and if you have that, would it be possible to make IPFS benefit the torrent in a substantial way?
<fiatjaf>
aalex, there are js-ipfs-api, which I believe is the glue library between a running go-ipfs daemon and an application written in js.
<Swedneck>
thinking a bit more about it, the only benefit i can come up with is making the node automatically mirror the torrent to IPFS and use that as well
<r0kk3rz>
Swedneck: with enough dual protocol nodes maybe
<Swedneck>
at least it'd benefit the people using both ipfs and torrent i guess?
<fiatjaf>
aalex, but perhaps for the v1 of your app you should just use js-ipfs (unless there's already an ipfs daemon running), because it will be much easier
<andrew_>
say i have file a and file b. file b is file a with the addition to one line, will file a and file b share any overlap in chunks that could be served to people requesting file a and file b?
<Swedneck>
actually if we could get IPFS support into torrent clients they could do all this without people even having to do anything
<Swedneck>
that'd be really cool
treethou_ has joined #ipfs
<r0kk3rz>
Swedneck: the topology would be your standard two circle venn diagram, with the overlap being dual protocol nodes
<r0kk3rz>
but effectively they would be seperate swarms
The_8472 has quit [Ping timeout: 256 seconds]
treethou_ has quit [Read error: Connection reset by peer]
treethou_ has joined #ipfs
<Swedneck>
yeah, i think having torrent clients download data from IPFS when adding a torrent would work pretty well though
TUSF has joined #ipfs
<aalex>
fiatjaf, much easier? But with a little fewer features
pcardune has joined #ipfs
ericxtang has joined #ipfs
<r0kk3rz>
Swedneck: they wouldnt though, it'd be more the other way
<Swedneck>
well yeah, i'm presuming someone else already has the data
The_8472 has joined #ipfs
<TUSF>
andrew_: kinda depends on the chunker and size of the file. By default, you get, what, 2kb or 2mb chunks? if it's smaller than that, then neither will share anything.
ericxtang has quit [Ping timeout: 240 seconds]
pcardune has quit [Ping timeout: 264 seconds]
<TUSF>
that said, larger files may at least share all but the last chunk. a smartly designed chunker that's aware of the original file might just reuse the old chunks and insert the difference between 'em.
pcardune has joined #ipfs
<r0kk3rz>
imo its best to encode ipfs aware data structures
AuHau has joined #ipfs
<TUSF>
yeah. For a project, i wanted to distribute a ralational database over IPFS, and used sqlite for that. Unfortunately even minor updates end up creating a new file that shares 0 chunks with the original.
Encrypt has joined #ipfs
<r0kk3rz>
yeah, need something that understands the structure of the file and chunks accordingly, but thats non-trivial
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<TUSF>
I'd use OrbitDB, but pretty sure that acts as a key/value store, and is only implemented in js-ipfs.
<r0kk3rz>
it does
<TUSF>
ultimately, figured it's better to just make my own database out of ipld dag nodes, and have nodes maintain a local database out of it.
<TUSF>
like distributing diffs and updates.
ericxtang has joined #ipfs
<fiatjaf>
aalex, what is your app going to do?
ericxtang has quit [Ping timeout: 240 seconds]
Jesin has joined #ipfs
ericxtang has joined #ipfs
ygrek has joined #ipfs
ericxtang has quit [Ping timeout: 268 seconds]
treethou_ has quit []
Jesin has quit [Quit: Leaving]
PyHedgehog has quit [Quit: Connection closed for inactivity]
ZaZ has joined #ipfs
tsglove has quit [Quit: Leaving]
Jesin has joined #ipfs
shizy has quit [Ping timeout: 248 seconds]
<jamiew>
aalex: you might want https://github.com/ipfs/js-ipfs-api so you can just talk to an IPFS daemon. js-ipfs is a full IPFS node implementation, akin to go-ifps for Golang
<jamiew>
ah sorry backlog just kicked in and saw someone replied the same way
mazeto has joined #ipfs
ONI_Ghost has quit [Read error: Connection reset by peer]
ONI_Ghost has joined #ipfs
ONI_Ghost has joined #ipfs
ONI_Ghost has quit [Changing host]
<Swedneck>
any clue why `ifps_hash="$(ipfs add -Q $screenshot)"` doesn't actually set $ipfs_hash to the outputted hash?
<Swedneck>
$screenshot is the path to a newly taken screenshot
<Swedneck>
oh my god i'm blind, it says ifps_hash
ericxtang has joined #ipfs
<TUSF>
Inter-File Planetary System?
ericxtan_ has joined #ipfs
<Swedneck>
lmao
<Swedneck>
alright, my screenshots are now automatically added to ipfs and the ipfs.io url copied into the clipboard!
ericxtang has quit [Ping timeout: 240 seconds]
chrsch79 has quit [Ping timeout: 240 seconds]
plexigras has quit [Ping timeout: 248 seconds]
stavros has joined #ipfs
<stavros>
hello
<stavros>
how can i blacklist a hash?
<r0kk3rz>
from the gateway?
<stavros>
r0kk3rz, yes
NicWow has quit [Ping timeout: 276 seconds]
<stavros>
my own gateway
Encrypt has quit [Quit: Quit]
<stavros>
what happens if the ipfs.io gateway gets a takedown request?
NicWow has joined #ipfs
mindCrime has quit [Ping timeout: 256 seconds]
Jesin has quit [Quit: Leaving]
<TUSF>
I'm actually not sure how, but ipfs.io does blacklist hashes that get takedown requests.
<TUSF>
(had a couple images on there that got taken down, for example)
<TUSF>
but they don't actually blacklist the hash; they blacklist the url to it, so I'm guessing that they do the actually blacklisting through whatever proxy they put in front of the gateway.
<stavros>
TUSF, ah, I see... I was hoping I could just blacklist the hash...
Steverman has quit [Ping timeout: 255 seconds]
mildred has joined #ipfs
stavros has quit [Quit: Leaving]
mildred_ has joined #ipfs
mildred has quit [Ping timeout: 256 seconds]
mildred_ is now known as mildred
NicWow has quit [Remote host closed the connection]
NicWow has joined #ipfs
ZaZ has quit [Read error: Connection reset by peer]
Alpha64__ has joined #ipfs
Alpha64_ has quit [Ping timeout: 260 seconds]
mazeto has quit [Ping timeout: 240 seconds]
mazeto has joined #ipfs
TUSF has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<fabianops>
that's a very interesting question, how do you blacklist legit illegal / immoral content?
<fabianops>
*by legit i mean, "we all can agree"
mildred has quit [Read error: Connection reset by peer]
Nic_Wow has joined #ipfs
NicWow has quit [Ping timeout: 240 seconds]
pecastro has quit [Ping timeout: 256 seconds]
<Nic_Wow>
@Fabianops you can't
<Nic_Wow>
moral stands vary heavily
<Nic_Wow>
Idk how they plan to combat this
vivus has joined #ipfs
vivus has left #ipfs [#ipfs]
<Nic_Wow>
Abuse may be illegal and immoral but could be very important to a case. IPFS could help preserve it so that it doens't get destroyed.
<Nic_Wow>
Or the Snowden Files. Is it justified?
<Nic_Wow>
Many would say no and many would say yes.
xcm has quit [Read error: Connection reset by peer]
Nic_Wow has left #ipfs ["Leaving"]
TUSF has joined #ipfs
xcm has joined #ipfs
<JCaesar>
Wasnt the idea: in ipfs, the node owner decides. for the gateways, follow whatever DMCA or whatnot requests you get?
Mateon3 has joined #ipfs
Mateon1 has quit [Read error: Connection reset by peer]
Mayeu has quit [Read error: Connection reset by peer]
Mateon3 is now known as Mateon1
<JCaesar>
TUSF: you're right about that, the reverse proxy config with the blocks is somewhere on github.
f0i has joined #ipfs
pelegreno has quit [Ping timeout: 260 seconds]
<JCaesar>
there was talk about having that as an ipfs feature, but nothing more, iirc.
pelegreno has joined #ipfs
graphene has quit [Ping timeout: 260 seconds]
Mayeu has joined #ipfs
sim590 has quit [Ping timeout: 260 seconds]
misuto has quit [Ping timeout: 240 seconds]
misuto has joined #ipfs
sim590 has joined #ipfs
<fabianops>
i see. Well not sure the world is ready for that
<fabianops>
If the nodes have indeed the ability to control what they store then fair game, because it's easy to see nodes opt-in the lv. of censorship they are comfortable with
TUSF has quit [Ping timeout: 268 seconds]
DJ-AN0N has joined #ipfs
<Swedneck>
there definitely shouldn't be anything network-wide IMO
<JCaesar>
if i understood correctly, nodes only store what is pinned or cached, and things only get pinned or cached if they were requested "locally", ie through a http request to the gateway or some api.
<JCaesar>
Swedneck: well, why not? as long as you can opt out easily?
<fabianops>
I'm sure these talks have been had a thousand times, IPFS ppl are some of the smartest out there. Would be interesting to have some of these written somewhere
<Swedneck>
because it sounds like a very slippery slope to censorship
<JCaesar>
fabianops: search, its out there, somewhere in a github issue.
TUSF has joined #ipfs
<TUSF>
Don't think it would even be possible to have a network-wide block at this point. Even if it were, and some sort of centralized blacklist was added, I know some communities would just fork IPFS and remove it.
<JCaesar>
yup. i think what swedneck is afraid of is that there is an opt out list, and its mostly legit, but nobody opts out in the places where it is not.
<Swedneck>
opt in is much better
<Swedneck>
i'm also worried about things that are in a grey area
<JCaesar>
the implementations for these two things are probably not too different, so i suppose this discussion could wait till there is some implementation.
voker57 has quit [Remote host closed the connection]