<lgierth>
you should be able to give it just an empty json object
<lgierth>
i think i've done that once
<kevina>
what is an empty json object?
<somatronicon[m]>
{}
<kevina>
'ipfs config Swarm.NatPortMap --json {}' fails, it gives me, Error: failed to set config value: Wrong config type, expected bool (maybe use --json?)
<lgierth>
yeah just Swarm
<kevina>
that not quite what I want will, delete the entire group, but I guess its good enough for the tests
<somatronicon[m]>
Perhaps you need to enclose the {} in quotes or escape them? Maybe your shell is playing games with you? :D
<kevina>
lgierth: 'ipfs config Swarm --json {}' didn't delete the entry from the config file but instead reset the group to the defaults
<kevina>
whyrusleeping: ^, and shows another problem because Swarm.NatPortMap became false
<whyrusleeping>
look again at my last comment
<kevina>
????
<somatronicon[m]>
That sounds about right, quotes :D
<kevina>
ipfs config Swarm.NatPortMap --json '{}' = Error: failed to set config value: Wrong config type, expected bool (maybe use --json?)
wrouesnel has quit [Ping timeout: 246 seconds]
wrouesnel has joined #ipfs
jonnycrunch has quit [Quit: jonnycrunch]
<whyrusleeping>
...
<whyrusleeping>
my suggestion 20 minutes ago was: "ipfs config Swarm --json '{whatever shoul dbe there}'"
<whyrusleeping>
and "whatever should be there" is something like '{"AddrFilters": null, "DisableBandwidthMetrics": false}'
<whyrusleeping>
that *should* set the contents of the swarm field to just that value
ligi has joined #ipfs
ligi has joined #ipfs
ligi has quit [Changing host]
<whyrusleeping>
i can try it out in a few, on my phone at the moment
<kevina>
okay, I will push my partial code in a few also
<kevina>
okay on branch: kevina/nat-discovery-config
<kevina>
trying your suggestion
<kevina>
whyrusleeping: it's not working for me, please try it out I used: ipfs config Swarm --json '{"AddrFilters": null, "DisableBandwidthMetrics": false}'
<kevina>
and then looked at the config file manually and saw this line: "NatPortMap": false
shizy has joined #ipfs
<kevina>
I think the problem is the serialization dumps the go Config struct and doesn't work directly with the JSON
gmcabrita has quit [Quit: Connection closed for inactivity]
<whyrusleeping>
mmmm
<kevina>
whyrusleeping: not sure how to get NatPortMap to default to true in this case
<whyrusleeping>
okay, lets just use grep and sed
<whyrusleeping>
grep -v out the NatPortMap line
<whyrusleeping>
then use sed to replace the DisableBandwithMetrics line with the same line plus a comma
<whyrusleeping>
er, minus a comma
<whyrusleeping>
Or!
<whyrusleeping>
easier
<whyrusleeping>
replace NatPortMap with FooBarBAz
<whyrusleeping>
via sed
<whyrusleeping>
that should have the same effect
mguentner has quit [Quit: WeeChat 1.7]
<kevina>
okay, will do, but I am concerned that the default of NatPortMap can be reset to false
<kevina>
also it seams "ipfs config Swarm.NatPortMap" is working on the Json file directly, so I can't test that once read in it will default to False
<kevina>
When I do "ipfs config Swarm.NatPortMap" I get `Error: Failed to get config value: "Swarm key has no attributes"`, not what I wanted
<kevina>
whyrusleeping: ^
arpu has quit [Ping timeout: 240 seconds]
mguentner has joined #ipfs
<whyrusleeping>
kevina: no, thats fine
<whyrusleeping>
thats what you want
<whyrusleeping>
its not there
<kevina>
that wasn't what I was trying to test. I was trying to test that if the config value is not there the default will be "true".
<whyrusleeping>
though it would be difficult to test that its actually defaulting to true
<whyrusleeping>
right
* whyrusleeping
thinks
skeuomorf has joined #ipfs
<whyrusleeping>
kevina: set some other random key after running the sed
<whyrusleeping>
youre right that reading the config reads directly from the json
<whyrusleeping>
but on writing, call the same load method that were using to set the default
<whyrusleeping>
and then write it back to disk afterwards
mguentner has quit [Read error: Connection reset by peer]
mguentner has joined #ipfs
<kevina>
whyrusleeping: okay, but that seams fragile in that it is depending on an implementation detail
seagreen has quit [Ping timeout: 264 seconds]
arpu has joined #ipfs
<whyrusleeping>
kevina: eh, if the implementation details change, then the tests will break and we can fix it
<whyrusleeping>
make a comment about the issue
<kevina>
whyrusleeping: no problem, will do
ygrek has quit [Ping timeout: 256 seconds]
<kevina>
will have p.r. ready in a bit
dimitarvp has quit [Quit: Bye]
seagreen has joined #ipfs
akkad has quit [Excess Flood]
akkad has joined #ipfs
<lgierth>
!pin QmWPu18o29wdKf8e3Qr8YQiuoQAcQqNavfibpj2eCZSFro iptb v1.1.6 with -ws
<kevina>
whyrusleeping: I am running into some additional problems in making sure the default for NatPortMap is always set to true, its late, so I will pick this up tommorow
<kevina>
whyrusleeping: good night
<whyrusleeping>
kevina: sounds good, good night!
ligi has quit [Quit: leaving]
appa has quit [Quit: WeeChat 0.4.2]
chris6131 has quit [Quit: Leaving.]
_whitelogger has joined #ipfs
jedahan has joined #ipfs
tmg has joined #ipfs
ianopolous has quit [Read error: Connection reset by peer]
ianopolous has joined #ipfs
gully-foyle has quit [Quit: Leaving]
infinity0 has joined #ipfs
Caterpillar has joined #ipfs
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robattila256 has joined #ipfs
zabirauf has joined #ipfs
akkad has quit [Excess Flood]
akkad has joined #ipfs
Aranjedeath has quit [Quit: Three sheets to the wind]
monkhood has quit [Ping timeout: 240 seconds]
monkhood has joined #ipfs
zabirauf has quit [Remote host closed the connection]
zabirauf has joined #ipfs
wallacoloo_____ has joined #ipfs
zabirauf has quit [Ping timeout: 240 seconds]
<whyrusleeping>
i'm making a standalone binary that just runs a dht
<whyrusleeping>
the idea is to try and run a bunch of them on machines with public IPs
<whyrusleeping>
it will help the network out a lot
<Stskeeps>
whyrusleeping: smells like something that might be good to provide as a docker container or the likes, so people can volunteer to run them and have them auto-upgrade or something
zabirauf has joined #ipfs
skeuomorf has quit [Ping timeout: 240 seconds]
<whyrusleeping>
Stskeeps: yeah, thats a great idea
<whyrusleeping>
I'll be sure to make a docker container for it :)
<whyrusleeping>
how would you do auto upgrading?
ShalokShalom_ has joined #ipfs
<Stskeeps>
whyrusleeping: not sure on the 'how' but in general it's a good thing if there's not a lot of ancient version nodes hanging about
zabirauf has quit [Remote host closed the connection]
<daviddias>
flyingzumwalt: I am, thank you for the ping!
sulkypine[m] has joined #ipfs
jkilpatr has quit [Quit: Leaving]
bwerthmann has joined #ipfs
jkilpatr has joined #ipfs
Boomerang has quit [Quit: Lost terminal]
kthnnlg has quit [Remote host closed the connection]
maxlath has quit [Remote host closed the connection]
maxlath has joined #ipfs
ygrek has quit [Ping timeout: 260 seconds]
s_kunk has joined #ipfs
cemerick has joined #ipfs
kobajagi has joined #ipfs
kobajagi has quit [Remote host closed the connection]
ShalokShalom has joined #ipfs
realisation has joined #ipfs
Guest174360[m] has joined #ipfs
Guest174360[m] has left #ipfs [#ipfs]
notorioushanz[m] has joined #ipfs
ygrek has joined #ipfs
gmoro has quit [Ping timeout: 240 seconds]
maxlath has quit [Ping timeout: 256 seconds]
Jesin has quit [Quit: Leaving]
Jesin has joined #ipfs
<musicmatze>
good evening! I have a fundamental question on IPFS - If I understand correctly, one can only build javascript websites, as the complete website application runs in the browser - so there is no way of building an application in ... for example, cpp, haskell etc... except if it gets cross-compiled to JS - am I right with this?
<lgierth>
yes
<whyrusleeping>
wait, hold on
<whyrusleeping>
musicmatze: are you asking "can i build an application that uses ipfs in other languages" ?
<lgierth>
you can still make requests to regular servers, it just won't be a pure-ipfs app
<whyrusleeping>
or are you asking "can i write a browser app in other languages" ?
<whyrusleeping>
Because you can definitely write desktop apps that use ipfs
jkilpatr has quit [Quit: Leaving]
<musicmatze>
whyrusleeping: yes and no. Take orbit as example. The application is served through IPFS but runs only in the browser... But as it runs only in the browser, it is JS and that's it... so I cannot distribute my app with IPFS which uses IPFS but is not programmed in JS or compiled to JS
jkilpatr has joined #ipfs
maxlath has joined #ipfs
<whyrusleeping>
musicmatze: that depends on how you want your app to be run
<whyrusleeping>
the distributed with ipfs and 'uses ipfs' are two separate things actually
roadcrap has joined #ipfs
jkilpatr has quit [Ping timeout: 240 seconds]
Guest173654[m] has joined #ipfs
sulkypine[m] has left #ipfs ["User left"]
<musicmatze>
whyrusleeping: what do you mean by "how you want your app to be run"? What would be the "ways" an app could be run?
<musicmatze>
As soon as it isn't a browser application, it must be installed by the user before using, right?
<whyrusleeping>
i could double click a binary i downloaded
<musicmatze>
that's what I would like to avoid...
<musicmatze>
so, basically a "web app"
<whyrusleeping>
right, so your actual question is "Can i run apps in other languages in the browser" ?
<whyrusleeping>
nothing at all to do with ipfs
<musicmatze>
for example a forum, a social network or a wiki
<musicmatze>
hm... okay.
<musicmatze>
Ah, okay... yes... there was my mistake while thinking about this...
<cblgh>
musicmatze: look into web assembly that's coming now
<whyrusleeping>
so, yeah, at this point you do have to (unfortunately) write javascript to get browser apps working
<whyrusleeping>
but yeah, cblgh raises a good point
<cblgh>
that'll allow you to build (web) stuff in other languages
<pawn>
Sorry bout that. I don't know how to stay online indefinitely, or at least log messages when not online..
<whyrusleeping>
It should provide a little info, at least from the command line perspective
<whyrusleeping>
pawn: You could use irccloud (they have a small monthly fee to run irc for you) or if you have your own server somewhere you can do what i do and run weechat on it
<pawn>
Awesome! Thank you
<whyrusleeping>
then connect using weechats web interface
<pawn>
whyrusleeping: I feel like there needs to be a better solution to IRC for 2017
<whyrusleeping>
We're working on it :)
<whyrusleeping>
IRC is generally used by people who really value open protocols
<whyrusleeping>
and the problem is that, of all the open protocol systems, IRC is one of the easiest to use
<pawn>
Orbit aside. I'm thinking a Nodejs server that you can run on your VPS (or any always on machine) that connects to IRC and then a web client or Electron client that can connect to such a server
<whyrusleeping>
(matrix is very good too)
<whyrusleeping>
pawn: oh, thats basically what i do
<whyrusleeping>
I run weechat on my server
<whyrusleeping>
and use glowing-bear.org to connect to it
antiantonym has joined #ipfs
<pawn>
whyrusleeping: what kind of server?
<whyrusleeping>
its a ramnode box i prepaid for a long time
<cblgh>
definitely more portable than my current vr rig lmao
<cblgh>
i just got a used macbook air for a couple hundred so that i can sit wherever and do some ipfs-related dev
<cblgh>
very much looking forward to clearing out my schedule and digging into it and releasing the first few projects & dapps
antiantonym has joined #ipfs
<musicmatze>
Hi. can everybody in here tell the pinbot to pin something?
Encrypt has quit [Quit: Quit]
<whyrusleeping>
I can, depends what it is
<whyrusleeping>
cblgh: awesome :)
<whyrusleeping>
cblgh: also, on the laptop setup, i love being able to have my same exact workspace wherever i am
<whyrusleeping>
but having it be *better* at home
<cblgh>
oh yeah for sure
john2 has quit [Ping timeout: 260 seconds]
silotis has quit [Remote host closed the connection]
<cblgh>
whenever i have to dev on a new computer that's like a couple of hours making everything juust right, and then dev can commence
<musicmatze>
whyrusleeping: okay... I just checked in the git repository of git, nixpkgs and I'm about to check in the kernel git repository... (takes 14 hrs) ... do you think that'll do?
<whyrusleeping>
whoa
<whyrusleeping>
ummm
<whyrusleeping>
pinbot does not have space for that
<whyrusleeping>
its more for small things, code deps, etc
<musicmatze>
cblgh: Try NixOS! I reinstalled my thinkpad like two weeks ago by copying some files and hitting "nixos-rebuild switch" - and then rsyncing /home and everything was fine and completely set up.
<musicmatze>
whyrusleeping: ah, okay
<whyrusleeping>
file an issue on ipfs/archives
galois_dmz has quit []
<whyrusleeping>
we discuss pinning large datasets there
<musicmatze>
well, I have a VM in my university cloud that has 50 GB space available (actually two VMs with 50GB space each) ... I think I will provide that space for as long as I can for IPFS
<whyrusleeping>
:)
<musicmatze>
should be about 6 months I guess... I try to use cachewarmer but I'm not sure whether it works right now
silotis has joined #ipfs
<whyrusleeping>
its been a while since i've seen any activity on that thing
galois_dmz has joined #ipfs
rendar has quit [Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!]
wallacoloo_____ has quit [Quit: wallacoloo_____]
<musicmatze>
:-(
<musicmatze>
then I'll continue to check in git repositories of famous projects :-)
ashark has quit [Ping timeout: 246 seconds]
dimitarvp has quit [Ping timeout: 240 seconds]
<whyrusleeping>
lol
<whyrusleeping>
keep up the good work
<whyrusleeping>
though, in the relatively near future
<flyingzumwalt>
!pin QmSQrcwi93ampynAQsjy4DC6biqAoBZdAGWugvyi472a3Y Part 2 of Docs Sprint Planning Call (Video)
<pinbot>
now pinning on 8 nodes
<musicmatze>
I implemented a distributed issue tracker which works with git as backend and I'm in the process of rewriting the POC (bash) in Rust - and it works really well ... that'd intrgrated with IPFS and a github clone with IPFS would give you awesome powers in regards of distributing your stuff and having everything in git and so on ...
<flyingzumwalt>
musicmatze++
<tidux[m]>
Is this a bad thing when running repo conversions?