lgierth changed the topic of #ipfs to: go-ipfs v0.4.10 is out! https://dist.ipfs.io/#go-ipfs | Dev chat: #ipfs-dev | IPFS, the InterPlanetary FileSystem: https://github.com/ipfs/ipfs | FAQ: https://git.io/voEh8 | Logs: https://botbot.me/freenode/ipfs/ | Code of Conduct: https://git.io/vVBS0
chase_ has joined #ipfs
chase_ has quit [Client Quit]
chase_ has joined #ipfs
<horrified> file is a list of chunks..?
ygrek has joined #ipfs
<film42424242> horrified: For example each hash from "ipfs refs QmcNvmYWQgzeqkeT5bTUCTggXPhL4gWLEJnAKWtiaCyTGX"
<film42424242> I would think in the MerkleDAG each hash would point to the hash that references the file (the one I pasted above). So I'm not sure how that's traced backwards to each ref.
<film42424242> I think I'm missing something pretty obvious, but can't figure out what that is.
<horrified> wait, how can a chunk know about what file it is a part of?
<horrified> that's like putting a file's hash sum into the file itself - not possible
<Mateon1> That's impossible, like repeatedly break SHA256 impossible
<film42424242> How does the file know its chunks is my question.
<horrified> a block of data can not know what other blocks reference it
<Mateon1> It has a list of hashes
<Mateon1> You can examine it with `ipfs dag get Hash`
<film42424242> Thanks Mateon1 !
<Mateon1> Note that this isn't the exact format, as files and directories use the unixfs format on top of protobuf, while ipfs dag explores IPLD on cbor
<Mateon1> AKA, ipfs dag get | ipfs dag put - will NOT result in the same file
<film42424242> horrified: Yeah, I understand that. I'm just not sure how the data structure is setup. If everything is in a merkle tree, how does the "file hash" know about its chunks.
<Mateon1> The hash itself knows nothing, you have to ask the IPFS network for a block that matches that hash
<film42424242> That is assuming chunks are the leaf nodes here.
<film42424242> Oh gotcha. So I first ask for info about the block containing the hash and someone in the network answers saying, "hey I know the children nodes for this hash" ?
<film42424242> I'm sure this seems like a pretty basic implementation question. For what its worth I was reading in the ipfs/specs repo, but the merkle dag page doesn't get far before the "WIP" message.
<Mateon1> Nope, you get a block that matches that cryptographic hash. In case it's a directory, the block *contains* a reference (more hashes) to all files it contains
<Mateon1> It's a list of pairs of the form "filename", Hash
<Mateon1> Wrapped up in protobuf binary format
<film42424242> Oh gotcha!
<film42424242> Does that cause some issues for things like the wikipedia mirrior on ipfs that has millions of files in one directory?
<Mateon1> Yes, that's why we implemented directory sharding, which splits directories into a HAMT data structure, saved as IPFS blocks
<Mateon1> (Hash Array Mapped Trie)
* film42424242 just had his mind blown
chase_ has quit [Ping timeout: 260 seconds]
<horrified> what does HAMT look like, conceptually?
charley has quit [Remote host closed the connection]
Mateon3 has joined #ipfs
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<Mateon1> I timed out, sorry if I missed anything
<horrified> Mateon1: can you describe in a couple of words what HAMT implementation looks like?
charley has joined #ipfs
<Mateon1> Nope :P
<Mateon1> It's dark magic to me
charley has quit [Remote host closed the connection]
<Magik6k> horrified, It basically splits dirrectory in smaller 'buckets', you can look at it by looking at english wiki mirror for example: `ipfs dag get QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/58wiki/`
<film42424242> ^ That's what I was just looking at.
<film42424242> So it looks like the HAMT turns the hash lookup into a Trie with each "node" partitioned at 256 refs
charley has joined #ipfs
<film42424242> I guess "links" is the correct word.
Milijus has joined #ipfs
cwahlers has quit [Remote host closed the connection]
Milijus has quit [Max SendQ exceeded]
<Mateon1> I really need to catch up with new IPFS code, I haven't looked at it since about the time HAMT became a thing
cwahlers has joined #ipfs
charley has quit [Remote host closed the connection]
<film42424242> Mateon1: horrified: Here's the "insert" code. I found this really helpful: https://github.com/ipfs/go-ipfs/blob/b6eb08506725ba80e625a6098ccf2bb66938936e/unixfs/hamt/hamt.go#L447-L524
<horrified> thx
<film42424242> Thanks for all the help! My knowledge increased like 1000x tonight :)
_whitelogger has joined #ipfs
Oatmeal has quit [Ping timeout: 276 seconds]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ipfs
zpaz has joined #ipfs
ygrek_ has joined #ipfs
ygrek has quit [Ping timeout: 240 seconds]
ygrek_ has quit [Ping timeout: 255 seconds]
ygrek has joined #ipfs
ygrek has quit [Remote host closed the connection]
ygrek has joined #ipfs
ygrek has quit [Remote host closed the connection]
<FritzTheCat[m]> gentoo is for ricers lol
<FritzTheCat[m]> really
ajbouh has joined #ipfs
FritzTheCat[m] has left #ipfs ["User left"]
ajbouh has quit [Quit: ajbouh]
Oatmeal has joined #ipfs
zpaz has quit [Quit: Leaving]
charley has joined #ipfs
charley has quit [Ping timeout: 276 seconds]
droman has quit []
spacebar_ has joined #ipfs
chriscool has joined #ipfs
fredthomsen has joined #ipfs
dimitarvp has quit [Quit: Bye]
anewuser has quit [Quit: anewuser]
<jfmherokiller[m]> ive noticed an interesting issue if you add a directory containing alot of files which are the same the adding process can fail because it tries to access a file piece or a "put-#" file which already has a file handle open
<jfmherokiller[m]> ive noticed an interesting issue if you add a directory containing alot of files which are the same the adding process can fail because it can triy to access a file piece or a "put-#" file which already has a file handle open
<jfmherokiller[m]> ive noticed an interesting issue if you add a directory containing alot of files which are the same the adding process can fail because it can try to access a file piece or a "put-#" file which already has a file handle open
Bombe has quit [Ping timeout: 240 seconds]
ygrek has joined #ipfs
dPow has quit [Remote host closed the connection]
upperdeck has quit [Ping timeout: 240 seconds]
upperdeck has joined #ipfs
dPow has joined #ipfs
_rht has joined #ipfs
upperdeck has quit [Ping timeout: 255 seconds]
Bombe has joined #ipfs
dPow has quit [Remote host closed the connection]
espadrine_ has quit [Ping timeout: 240 seconds]
upperdeck has joined #ipfs
serverlessnomad has joined #ipfs
kaotisk has quit [Read error: Connection reset by peer]
kaotisk has joined #ipfs
chriscool has quit [Ping timeout: 240 seconds]
kaotisk-irc has joined #ipfs
kaotisk has quit [Ping timeout: 240 seconds]
chriscool has joined #ipfs
charley has joined #ipfs
spacebar_ has quit [Quit: spacebar_ pressed ESC]
charley has quit [Ping timeout: 276 seconds]
clownpriest has quit [Ping timeout: 255 seconds]
jaboja has quit [Remote host closed the connection]
<kpcyrd> jfmherokiller[m]: which operating system are you on?
<kpcyrd> that sounds like windows
<jfmherokiller[m]> well i was getting that issue on osx
<jfmherokiller[m]> it was when i was making a backup of bash.org
ygrek has quit [Remote host closed the connection]
<jfmherokiller[m]> also does there exist a simple way to wrap the http services ipfs provides in https?
<jfmherokiller[m]> something like `nc 127.0.0.1 5001 <&1 | nc -l 8001 >&0` but for https?
ygrek has joined #ipfs
_whitelogger has joined #ipfs
<jfmherokiller[m]> well i mainly just want to expose an ssl version for my use on localhost because for whatever reason the ipfs-api js library when used in the browser is being forced to use https
<jfmherokiller[m]> this doesnt happen if i run it from localhost:8080 but if i run it from ipfs.io it fails
<jfmherokiller[m]> this doesnt happen if i run it from localhost:8080 but if i run it from ipfs.io it does
<kpcyrd> jfmherokiller[m]: this is due to browser security reasons, I think there's an RFC by google around trying to define localhost as 127.0.0.1 and therefore declaring it secure, partly because of this
<jfmherokiller[m]> i think i can get around it by using an older version of the library but that library also has bugs
ygrek has quit [Ping timeout: 255 seconds]
saki has joined #ipfs
_whitelogger has joined #ipfs
_whitelogger has joined #ipfs
chriscool has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ipfs
charley has joined #ipfs
<kpcyrd> jfmherokiller[m]: do you mean the node.js client or the browser client?
<jfmherokiller[m]> browser
<jfmherokiller[m]> chrome specificly
<kpcyrd> that is probably not going to work either. your browser is blocking this
<kpcyrd> if you would use http://
<jfmherokiller[m]> well this is what i was trying to get to work
pcctw has joined #ipfs
<jfmherokiller[m]> the torrent part works correctly but when it tries to run ipfs.add it fails because it tries to access https://127.0.0.1:5001
<kpcyrd> that's a fun idea. You can't load active content insecurely from https:// (xhr get/post, scripts, style)
<kpcyrd> you could do some hacks by trying to load an image from http://127.0.0.1:8080/ipfs/something, then let the user click it if it works
<kpcyrd> this links to the same application, but served over http from localhost, which can access http://127.0.0.1:5001
chriscool has joined #ipfs
<kpcyrd> you might even be able to probe the local gateway with onload= and onerror=
<kpcyrd> then redirect directly to itself on the local gateway or display and error with instructions on how to set it up
<kpcyrd> s/and/an/
<jfmherokiller[m]> what i would like to know is that was this thing a recent change?
<jfmherokiller[m]> i mean why do i need to setup a dirty hack to get it to work
<kpcyrd> jfmherokiller[m]: the "block insecure active content" change was a few years ago in chrome and firefox if I recall correctly
<kpcyrd> firefox 23
<kpcyrd> this restriction is for https only, you can do this on http:// without any problems
<jfmherokiller[m]> yea i noticed that
Oatmeal has quit [Ping timeout: 240 seconds]
_rht has quit [Quit: Connection closed for inactivity]
<jfmherokiller[m]> but yea the webapp i linked does work on localhost if anyone wants to mess with it
chriscool has quit [Ping timeout: 248 seconds]
mrpx[m] has joined #ipfs
chase_ has joined #ipfs
ShalokShalom_ has joined #ipfs
ShalokShalom has quit [Ping timeout: 240 seconds]
ShalokShalom_ is now known as ShalokShalom
}ls{ has quit [Quit: real life interrupt]
igorline has joined #ipfs
Oatmeal has joined #ipfs
saki has quit [Quit: saki]
saki has joined #ipfs
saki has quit [Quit: saki]
igorline has quit [Ping timeout: 240 seconds]
rendar has joined #ipfs
mildred has joined #ipfs
charley has quit [Remote host closed the connection]
saki has joined #ipfs
Oatmeal has quit [Quit: Suzie says, "TTFNs!"]
espadrine_ has joined #ipfs
whenisnever has joined #ipfs
charley has joined #ipfs
whenisnever has quit [Ping timeout: 276 seconds]
dignifiedquire has joined #ipfs
charley has quit [Ping timeout: 246 seconds]
robattila256 has quit [Ping timeout: 240 seconds]
redfish has joined #ipfs
chiyosaki has joined #ipfs
saki has quit [Ping timeout: 240 seconds]
chiyosaki is now known as saki
chase_ has quit [Ping timeout: 260 seconds]
igorline has joined #ipfs
igorline has quit [Ping timeout: 248 seconds]
saki has quit [Ping timeout: 246 seconds]
saki has joined #ipfs
lemmi has joined #ipfs
antfoo has quit [Ping timeout: 246 seconds]
ianopolous has quit [Ping timeout: 240 seconds]
dignifiedquire has quit [Quit: Connection closed for inactivity]
ianopolous has joined #ipfs
ianopolous has quit [Ping timeout: 248 seconds]
ianopolous_ has joined #ipfs
ianopolous has joined #ipfs
ianopolous_ has quit [Ping timeout: 240 seconds]
m0ns00n has joined #ipfs
mildred has quit [Ping timeout: 255 seconds]
ansuz has joined #ipfs
saki has quit [Quit: saki]
chriscool has joined #ipfs
karelb has joined #ipfs
<karelb> hello. what is the relationship between filecoin and ipfs
<karelb> is it from the same people? is it meant to be used together?
<karelb> or is it unrelated
<ansuz> you use filecoins to pay for storage on ipfs nodes
<ansuz> it's made by the same people
<karelb> ok. it was not clear to me from filecoin website
<ansuz> fair enough
chpio[m] has left #ipfs ["User left"]
<karelb> how is it setup exactly.... when I pay for the storage, is it cryptographically guaranteed to stay? for what time?
<karelb> theoretically :)
<ansuz> good question, I'm not sure how storage is allocated
chriscool has quit [Ping timeout: 240 seconds]
dimitarvp has joined #ipfs
wmoh has quit [Remote host closed the connection]
onee-chan has joined #ipfs
<onee-chan> hello
chriscool has joined #ipfs
<onee-chan> so I am sending an 2.2gb file over my lan... It's slow, and the stream is constantly halting.
<onee-chan> failed dial attempts to sender all the time.
<onee-chan> I even manually connected with ipfs swarm connect.
<onee-chan> Small files work nice though.
ianopolous_ has joined #ipfs
ianopolous has quit [Ping timeout: 248 seconds]
X-Scale has joined #ipfs
X-Scale has left #ipfs [#ipfs]
<Magik6k> onee-chan, which ipfs version do you use?
<onee-chan> 0.4.10
<onee-chan> the latest one
<Magik6k> hmm, you may try running daemon with --routing=dhtclient
<Magik6k> or upgrading to 0.4.11-pre: https://dist.ipfs.io/go-ipfs/v0.4.11-pre
<onee-chan> the sending or the receiving client?
<Magik6k> receiving
<onee-chan> ok
soesoe has joined #ipfs
<Magik6k> or --routing=none, one of these
anewuser has joined #ipfs
<onee-chan> I tried routn non
soesoe has left #ipfs [#ipfs]
<onee-chan> it was a minor improvement at best
<onee-chan> in the end I tried without any options, and i zipped the .iso file I was sending. that was also a minor improvement...
dimitarvp has quit [Ping timeout: 240 seconds]
<onee-chan> it seems that the DHT doesn't like sending large files that are made up of other large and small files.(googling revealed that to me)
<onee-chan> or bitswap
<onee-chan> And I am writing a paper on how well does IPFS transfer files of relatively small and relatively big files.
<onee-chan> And my experiment is frustrating ATM.
Encrypt has joined #ipfs
<onee-chan> Well it is in Alpha still
<onee-chan> Or maybe NAT or the router is doing something wrong
dimitarvp has joined #ipfs
Encrypt has quit [Quit: Quit]
soesoe has joined #ipfs
soesoe has left #ipfs [#ipfs]
film42424242 has quit [Quit: Page closed]
Anchakor has joined #ipfs
kaotisk has joined #ipfs
anewuser has quit [Ping timeout: 246 seconds]
kaotisk-irc has quit [Ping timeout: 240 seconds]
<Kubuxu> onee-chan: it is hard, there are some tweaks to improve it but currently it is hard
anewuser has joined #ipfs
<onee-chan> well I finished my experiment for now
onee-chan has quit [Quit: leaving]
karelb has left #ipfs ["undefined"]
m10r has joined #ipfs
grumble has quit [Quit: dy]
grumble has joined #ipfs
upperdeck has quit [Ping timeout: 240 seconds]
upperdeck has joined #ipfs
}ls{ has joined #ipfs
maxlath has joined #ipfs
chriscool has quit [Ping timeout: 240 seconds]
jaboja has joined #ipfs
charley has joined #ipfs
airwavez has joined #ipfs
charley has quit [Ping timeout: 246 seconds]
Encrypt has joined #ipfs
erictapen has joined #ipfs
skeuomorf has joined #ipfs
shizy has joined #ipfs
maxlath has quit [Quit: maxlath]
shizy has quit [Ping timeout: 240 seconds]
espadrine_ has quit [Ping timeout: 255 seconds]
erictapen has quit [Ping timeout: 255 seconds]
ilyaigpetrov has joined #ipfs
Caterpillar has joined #ipfs
espadrine_ has joined #ipfs
charley has joined #ipfs
Encrypt has quit [Quit: Quit]
ianopolous_ has quit [Ping timeout: 240 seconds]
ianopolous has joined #ipfs
m10r has quit [Quit: Connection closed for inactivity]
ianopolous has quit [Ping timeout: 240 seconds]
ianopolous has joined #ipfs
airwavez has quit [Quit: Page closed]
anewuser has quit [Quit: anewuser]
espadrine_ is now known as espadrine
chriscool has joined #ipfs
athan has quit [Remote host closed the connection]
rtjure has joined #ipfs
athan has joined #ipfs
MDude has joined #ipfs
clownpriest has joined #ipfs
ajbouh has joined #ipfs
chriscool has quit [Ping timeout: 240 seconds]
erictapen has joined #ipfs
redfish has quit [Remote host closed the connection]
redfish has joined #ipfs
redfish has quit [Remote host closed the connection]
mildred has joined #ipfs
jaboja has quit [Read error: Connection reset by peer]
jaboja has joined #ipfs
rendar has quit [Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!]
ccii1 has quit [Ping timeout: 246 seconds]
redfish has joined #ipfs
ccii has joined #ipfs
Encrypt has joined #ipfs
shizy has joined #ipfs
Oatmeal has joined #ipfs
dignifiedquire has joined #ipfs
clemo has joined #ipfs
erictapen has quit [Ping timeout: 240 seconds]
MaxDeepfield has joined #ipfs
MaxDeepfield has quit [Remote host closed the connection]
robattila256 has joined #ipfs
chriscool has joined #ipfs
kaotisk-irc has joined #ipfs
Guest77562 has quit [Read error: Connection reset by peer]
Lymkwi has joined #ipfs
Lymkwi is now known as Guest26647
kaotisk has quit [Ping timeout: 276 seconds]
chriscool has quit [Ping timeout: 255 seconds]
kaotisk-irc has quit [Read error: No route to host]
kaotisk has joined #ipfs
caveat has joined #ipfs
chriscool has joined #ipfs
clownpriest has quit [Ping timeout: 255 seconds]
spacebar_ has joined #ipfs
charley has quit [Remote host closed the connection]
MDead has joined #ipfs
MDude has quit [Ping timeout: 255 seconds]
MDead is now known as MDude
shizy has quit [Ping timeout: 248 seconds]
shizy has joined #ipfs
whenisnever has joined #ipfs
chriscool has quit [Ping timeout: 240 seconds]
shizy has quit [Ping timeout: 240 seconds]
charley has joined #ipfs
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
lothar_m has quit [Ping timeout: 240 seconds]
ShalokShalom has quit [Remote host closed the connection]
m0ns00n has quit [Quit: quit]
SOO7 has quit [Ping timeout: 240 seconds]
mildred has quit [Ping timeout: 248 seconds]
echoSMILE has joined #ipfs
Encrypt has quit [Quit: Quit]
skeuomorf has quit [Ping timeout: 248 seconds]
whenisnever has quit [Ping timeout: 255 seconds]
jaboja has quit [Ping timeout: 240 seconds]
vivus has joined #ipfs
esilva[m] has joined #ipfs
fredthomsen has quit [Read error: No route to host]
fredthomsen has joined #ipfs
charley has quit [Remote host closed the connection]
charley has joined #ipfs
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon1 has joined #ipfs
charley has quit [Remote host closed the connection]
Jesin has joined #ipfs
espadrine has quit [Ping timeout: 276 seconds]
jaboja has joined #ipfs
kaotisk has quit [Ping timeout: 240 seconds]
cxl000 has quit [Quit: Leaving]
anewuser has joined #ipfs
Jesin has quit [Quit: Leaving]
gully-foyle has joined #ipfs
anewuser has quit [Ping timeout: 240 seconds]
charley has joined #ipfs
dimitarvp has quit [Quit: Bye]
charley has quit [Ping timeout: 246 seconds]
eater has quit [Ping timeout: 264 seconds]
eater has joined #ipfs
Gryffins[m] has joined #ipfs
pcctw has quit [Remote host closed the connection]
charley has joined #ipfs
Bhootrk_ has joined #ipfs
Bhootrk_ has quit [Max SendQ exceeded]