<abnd>
The problem I have is I want a background task in the grain that initiates http requests
<asheesh>
You will typically find it is a small integer like 0 or 1.
<abnd>
and looks like there is no way to get a HackSessionContext without a session id
<abnd>
so that the background process can perform a HTTP GET
<asheesh>
I have the recollection that there is some way to make that work, but I am forgetting what that is.
<asheesh>
Can I ask you to send an email to sandstorm-dev@googlegroups.com to ask there? Or I can email you with an answer if you are willing to let me know your email address.
abnd has left #sandstorm [#sandstorm]
abnd has joined #sandstorm
abnd has left #sandstorm [#sandstorm]
abnd has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
mrdon has quit [Quit: Ex-Chat]
aldeka_limechat has quit [Remote host closed the connection]
wolcen has quit [Ping timeout: 258 seconds]
mclasen has quit [Quit: mclasen]
Jan\ has quit [Read error: Connection reset by peer]
Jan\ has joined #sandstorm
eternaleye has quit [Changing host]
eternaleye has joined #sandstorm
frigginglorious has joined #sandstorm
MaxLeiter has joined #sandstorm
<MaxLeiter>
hey - great service, and im tempted to make a package for The Lounge, but im wondering if its the right kind of app for Sandstorm?
<MaxLeiter>
thelounge.github.io
<MaxLeiter>
it's a self-hosted IRC client
<MaxLeiter>
(think IRCcloud)
ecloud is now known as ecloud_wfh
frigginglorious has quit [Quit: frigginglorious]
gabkdlly has quit [Quit: Ex-Chat]
xet7 has quit [Quit: Leaving]
<asheesh>
Howdy all
<asheesh>
Including MaxLeiter
<asheesh>
So the answer is "Yes but you'll have some difficulties but there is massive demand for this and we can help you get past the platform-related strangenesses"
<MaxLeiter>
yeah i did some research (AKA reading docs) - will be annoying to switch off account-system
<MaxLeiter>
and Lounge can't really generate static html /:
<MaxLeiter>
"Apps can publish static HTML to the world", "Apps can expose an external API for the world", etc :(
dograt_ is now known as dograt
<asheesh>
I am mostly AFK but will be back online in 10 min or so.
<asheesh>
However, it's worth saying that isd works on a different IRC app, so this is all very possible.
<MaxLeiter>
im off in the next ~hour or 2 so don't want to start working on it tonight
<MaxLeiter>
isd?
<asheesh>
Oh, he's a person who is often here but isn't right now, but I didn't notice he's not here right now.
<MaxLeiter>
ah, gotcha
<MaxLeiter>
asheesh - how necessary is generating static html files? is it simply encouraged or required?
<asheesh>
I have a few minutes, although I'm nearly falling asleep so I might vanish and then if so you should consider emailing the general Sandstorm dev list sandstorm-dev@googlegroups.com or me personally as asheesh@sandstorm.io
<asheesh>
The static HTML files thing is a rare feature used by about 10% of apps or fewer. It's for apps that are focused on publishing websites, such as WordPress or Ghost.
<MaxLeiter>
ahh, gotcha
<MaxLeiter>
I prefer IRC, but I might email the group tomorrow / when I start working on it
<MaxLeiter>
thanks
<asheesh>
Great! :)
<asheesh>
You're very welcome! I like IRC a lot too, personally, so I'll be here when I'm awake and not in meetings. :)
<asheesh>
As for outbound connectivity:
<asheesh>
You're going to have to deal with Sandstorm having a different sockets API than the normal system, so you'll need to call Sandstorm API methods rather than using the default connect() from node.
<asheesh>
Or, you will have to use a little TCP proxy inside the grain.
<asheesh>
This is because apps don't have raw Internet access by default. There is a way to ask for raw Internet access, thankfully, so it's totally possible to make this all work.
<asheesh>
There's some info on a past attempt here: https://groups.google.com/forum/#!searchin/sandstorm-dev/the$20lounge%7Csort:relevance/sandstorm-dev/lr_XaO-AFwE/iCNkv00eAQAJ which maybe you already found, but if not, then I figured I should mention it in the possible case that it's useful info.
dagelf has quit [Remote host closed the connection]
<MaxLeiter>
hadnt seen that, thanks
dagelf has joined #sandstorm
<asheesh>
Very welcome, MaxLeiter
xet7_ has joined #sandstorm
xet7_ has quit [Ping timeout: 260 seconds]
<JonTheNiceGuy[m]>
Has anyone taken a look at https://hubzilla.org yet? I'm not sure if it'd be a good fit for Sandstorm or not...
JonTheNiceGuy[m] has quit [Changing host]
JonTheNiceGuy[m] has joined #sandstorm
jemc has quit [Ping timeout: 248 seconds]
davidar has quit [*.net *.split]
coyotebush has quit [*.net *.split]
phildini has quit [*.net *.split]
[d__d] has quit [*.net *.split]
Lionel_Debroux_ has quit [*.net *.split]
Jan\ has quit [*.net *.split]
maurer has quit [*.net *.split]
dcb has quit [*.net *.split]
aundro has quit [*.net *.split]
Tryum has quit [*.net *.split]
mrdomino has quit [*.net *.split]
Salt has quit [*.net *.split]
Guest97644 has quit [*.net *.split]
jagenau has quit [*.net *.split]
patrickod has quit [*.net *.split]
keturn has quit [*.net *.split]
mrshu has quit [*.net *.split]
dlitz_ has quit [*.net *.split]
dagelf has quit [*.net *.split]
tg has quit [*.net *.split]
saneki has quit [*.net *.split]
wew has quit [*.net *.split]
biotim has quit [*.net *.split]
halindrome has quit [*.net *.split]
Na has quit [*.net *.split]
Tek` has quit [*.net *.split]
bemasc_ has quit [*.net *.split]
jparyani has quit [*.net *.split]
Lord has quit [*.net *.split]
Triplefox has quit [*.net *.split]
uppermgmt has quit [*.net *.split]
iangreenleaf has quit [*.net *.split]
ftoad has quit [*.net *.split]
shachaf has quit [*.net *.split]
cmr has quit [*.net *.split]
guido has quit [*.net *.split]
strugee has quit [*.net *.split]
CaptainCalliope_ has quit [*.net *.split]
gillisig1 has quit [*.net *.split]
TimePath[m] has quit [*.net *.split]
gambatte has quit [*.net *.split]
eternaleye has quit [*.net *.split]
HalfEatenPie has quit [*.net *.split]
ptrvldz has quit [*.net *.split]
TC02 has quit [*.net *.split]
gwillen has quit [*.net *.split]
xobs has quit [*.net *.split]
robbt has quit [*.net *.split]
sydney_untangle has quit [*.net *.split]
nwf has quit [*.net *.split]
rafaelmartins has quit [*.net *.split]
GauntletLizard has quit [*.net *.split]
warren has quit [*.net *.split]
gleb has quit [*.net *.split]
digitalcircuit has quit [*.net *.split]
TC01 has quit [*.net *.split]
tdfischer has quit [*.net *.split]
reisi has quit [*.net *.split]
ocdtrekkie has quit [*.net *.split]
larjona has quit [*.net *.split]
mmercer has quit [*.net *.split]
kentonv has quit [*.net *.split]
XgF has quit [*.net *.split]
daemoen has quit [*.net *.split]
russruss has quit [*.net *.split]
kxra has quit [*.net *.split]
aggelos__ has quit [*.net *.split]
niek has quit [*.net *.split]
rolig has quit [*.net *.split]
pdurbin has quit [*.net *.split]
mokomull has quit [*.net *.split]
zarvox has quit [*.net *.split]
JonTheNiceGuy[m] has quit [*.net *.split]
Zertrin_ has quit [*.net *.split]
hunterm__ has quit [*.net *.split]
crw has quit [*.net *.split]
justincormack has quit [*.net *.split]
fkautz has quit [*.net *.split]
bpierre has quit [*.net *.split]
liam has quit [*.net *.split]
asheesh has quit [*.net *.split]
_iwc has quit [*.net *.split]
simonv3_ has quit [*.net *.split]
indiebio has quit [*.net *.split]
esmiurium has quit [*.net *.split]
_citruspi has quit [*.net *.split]
sugarpuff has quit [*.net *.split]
sknebel has quit [*.net *.split]
derf- has quit [*.net *.split]
gillisig has quit [*.net *.split]
MaxLeiter has quit [*.net *.split]
xming has quit [*.net *.split]
mattl has quit [Ping timeout: 256 seconds]
NhanH has quit [Ping timeout: 256 seconds]
_whitelogger has joined #sandstorm
_whitelogger has joined #sandstorm
simonv3_ has joined #sandstorm
_iwc has joined #sandstorm
indiebio has joined #sandstorm
_citruspi has joined #sandstorm
MaxLeiter has joined #sandstorm
esmiurium has joined #sandstorm
xming has joined #sandstorm
NhanH has joined #sandstorm
gillisig has joined #sandstorm
derf- has joined #sandstorm
bpierre has joined #sandstorm
davidar has joined #sandstorm
JonTheNiceGuy[m] has joined #sandstorm
Zertrin_ has joined #sandstorm
coyotebush has joined #sandstorm
phildini has joined #sandstorm
[d__d] has joined #sandstorm
coyotebush has quit [*.net *.split]
phildini has quit [*.net *.split]
[d__d] has quit [*.net *.split]
JonTheNiceGuy[m] has quit [*.net *.split]
Zertrin_ has quit [*.net *.split]
davidar has quit [*.net *.split]
NhanH has quit [*.net *.split]
bpierre has quit [*.net *.split]
_iwc has quit [*.net *.split]
simonv3_ has quit [*.net *.split]
indiebio has quit [*.net *.split]
esmiurium has quit [*.net *.split]
_citruspi has quit [*.net *.split]
derf- has quit [*.net *.split]
gillisig has quit [*.net *.split]
MaxLeiter has quit [*.net *.split]
xming has quit [*.net *.split]
Lionel_Debroux_ has quit [*.net *.split]
Lionel_Debroux_ has joined #sandstorm
NhanH has joined #sandstorm
indiebio has joined #sandstorm
bpierre has joined #sandstorm
esmiurium has joined #sandstorm
_iwc has joined #sandstorm
MaxLeiter has joined #sandstorm
simonv3_ has joined #sandstorm
xming has joined #sandstorm
gillisig has joined #sandstorm
_citruspi has joined #sandstorm
derf- has joined #sandstorm
phildini has joined #sandstorm
[d__d] has joined #sandstorm
coyotebush has joined #sandstorm
davidar has joined #sandstorm
bpierre is now known as 6A4AAA1WT
sknebel has joined #sandstorm
JonTheNiceGuy[m] has joined #sandstorm
sugarpuff has joined #sandstorm
hunterm__ has joined #sandstorm
crw has joined #sandstorm
Zertrin_ has joined #sandstorm
justincormack has joined #sandstorm
liam has joined #sandstorm
asheesh has joined #sandstorm
niek has joined #sandstorm
rolig has joined #sandstorm
pdurbin has joined #sandstorm
mokomull has joined #sandstorm
zarvox has joined #sandstorm
russruss has joined #sandstorm
kxra has joined #sandstorm
aggelos__ has joined #sandstorm
daemoen has joined #sandstorm
preilly has joined #sandstorm
mclasen has joined #sandstorm
M-hrjet has joined #sandstorm
daemoen has quit [Max SendQ exceeded]
mattl has quit [Ping timeout: 258 seconds]
NhanH has quit [Ping timeout: 258 seconds]
preilly is now known as Guest11495
fkautz is now known as Guest55068
daemoen has joined #sandstorm
Guest55068 has joined #sandstorm
Guest55068 has quit [Changing host]
6A4AAA1WT has joined #sandstorm
6A4AAA1WT has quit [Changing host]
sugarpuff has joined #sandstorm
sugarpuff has quit [Changing host]
mattl has joined #sandstorm
NhanH has joined #sandstorm
mclasen has quit [Quit: mclasen]
mclasen has joined #sandstorm
jemc has joined #sandstorm
jemc has quit [Quit: WeeChat 1.4]
jemc has joined #sandstorm
frigginglorious has joined #sandstorm
isd has joined #sandstorm
halindrome has quit [Ping timeout: 268 seconds]
halindrome has joined #sandstorm
ThePurgingPanda has joined #sandstorm
wew has quit [Ping timeout: 268 seconds]
frigginglorious has quit [Quit: frigginglorious]
wolcen has joined #sandstorm
frigginglorious has joined #sandstorm
abnd has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
mclasen has quit [Quit: mclasen]
mclasen has joined #sandstorm
pie_ has joined #sandstorm
frigginglorious has joined #sandstorm
pie_ has quit [Changing host]
pie_ has joined #sandstorm
wolcen has quit [Ping timeout: 252 seconds]
warren has quit [Ping timeout: 248 seconds]
ocdtrekkie has quit [Quit: No Ping reply in 180 seconds.]
ocdtrekkie has joined #sandstorm
warren has joined #sandstorm
wolcen has joined #sandstorm
<simonv3_>
FWIW I think in the context of IRC it also doesn’t necessarily make sense to wipe out the account system. I wonder what people’s thoughts on that are
* asheesh
waves
<asheesh>
"It depends" I guess?
<asheesh>
I presume one would want to be auto-logged-in to thelounge.
<asheesh>
But when using thelounge, I presume one would want to be able to choose a nick on a remote IRC server.
<simonv3_>
yeah, and I don’t know how the log in system works for the lounge atm, but there’s an overall account (which might be sandstorm, and which would store your session) and then there’s what you’re logged in to on IRC.
<simonv3_>
So I guess that makes sense.
<MaxLeiter>
Yeah simon
<MaxLeiter>
Network info isn't related to Lounge account
<asheesh>
FWIW I would auto-create an account for each person that opens the grain, based on X-Sandstorm-User-Id fwiw.
<asheesh>
Oh I already said fwiw.
<asheesh>
Then I would set up a system where it's one pethelounge grain per human who wants thelounge.
<asheesh>
By "set up a system" I mean "work from a mindset"
Telesight has joined #sandstorm
<MaxLeiter>
Yeah it's just that will have to be maintained separately from master
<MaxLeiter>
Maybe could generate an account automatically and pre fill the info?
<simonv3_>
asheesh, fwiw, i’ve been using fwiw way more and I think it’s because of you 😒
<simonv3_>
I’m curious about software that is written taking forks into consideration so that it’s easy to merge things upstream
<simonv3_>
for example - how do you write a master branch that keeps it easy for likely differences in forked branch to still pick things from the master branch. Probably w/ very good git due diligence.
pie_ has quit [Remote host closed the connection]
r4z has joined #sandstorm
<isd>
simonv3_: I'm wondering if something like pijul might make it easier; having something tell you what the actual dependencies between patches are, rather than just the sequence, might help.
<zarvox>
In an ideal world, I recommend upstreaming and enabling Sandstorm-specific behavior at runtime based on an environment variable (SANDSTORM=1)
<zarvox>
if upstream maintainers are unwilling to accept Sandstorm integration patches, then I recommend making minimally-invasive changes that are likely to rebase well
<zarvox>
I imagine upstreams that intend for third parties to extend the codebase would be better served by building extensible interfaces rather than trying to explicitly support fork merging
wew has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 258 seconds]
<isd>
Yeah, probably true in general. The one counterexample I can think of of the top of my head is Nix, where I think a lot of folks have a locally modified fork with their own customizations.
<isd>
But that's a weird case.
<isd>
and I don't think folks tend to have much trouble rebasing/merging there either.
pie_ has joined #sandstorm
mclasen has quit [Quit: mclasen]
CaptainCalliope_ has quit [Ping timeout: 258 seconds]
CaptainCalliope_ has joined #sandstorm
wolcen has quit [Ping timeout: 260 seconds]
<simonv3_>
Yeah, modularizing the actual software itself probably makes most sense