www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - run.dlang.io: =?UTF-8?B?4oCcU2hvcnRlbuKAnQ==?= button not working

reply Ogi <ogion.art gmail.com> writes:
Perhaps some script is missing?
Nov 05 2019
next sibling parent user5678 <user5678 1234.de> writes:
On Tuesday, 5 November 2019 at 18:13:45 UTC, Ogi wrote:
 Perhaps some script is missing?
confirmed, maybe open an issue on GH, I believe it's the same repo as as the dlang-tour
Nov 05 2019
prev sibling parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Tuesday, 5 November 2019 at 18:13:45 UTC, Ogi wrote:
 Perhaps some script is missing?
I strongly recommend using the Export Gist button, followed by Import Gist, as it's a technically superior way of sharing a code snippet. The URL shortening works by URL encoding the source code and then passing it to a URL-shortening service. There are at least 2 problems with that: 1. There are limitations on the length of the URL and in general encoding large data is ugly. 2. There are no guarantees that the URL-shortening service will persist the URLs indefinitely. Gists are superior method because: 1. Anyone with a GitHub account can create them. 2. The source code stored in one gist can be much greater than what can be reasonably URL-encoded. 3. Gists supported versioning. 4. Gists support multiple files. At the moment this functionality is not available on Dlang Tour / run.dlang.io, but I plan to implement it in the future. That said, I am considering changing the Shorten button to use gists under the hood. If people want to further shorten the links, of course this is fine by me, and they can use any third-party service and browser extension to do that.
Nov 06 2019
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Wednesday, 6 November 2019 at 11:47:58 UTC, Petar Kirov 
[ZombineDev] wrote:
 [snip]

 I strongly recommend using the Export Gist button, followed by 
 Import Gist, as it's a technically superior way of sharing a 
 code snippet.

 [snip]
I cannot view gists at work.
Nov 06 2019
parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Wednesday, 6 November 2019 at 12:33:03 UTC, jmh530 wrote:
 On Wednesday, 6 November 2019 at 11:47:58 UTC, Petar Kirov 
 [ZombineDev] wrote:
 [snip]

 I strongly recommend using the Export Gist button, followed by 
 Import Gist, as it's a technically superior way of sharing a 
 code snippet.

 [snip]
I cannot view gists at work.
That is strange. Why is that?
Nov 06 2019
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Wednesday, 6 November 2019 at 13:08:40 UTC, Petar Kirov 
[ZombineDev] wrote:
 [snip]

 That is strange. Why is that?
gist.github.com is blocked as a File Storage/File Sharing site, even though www.github.com isn't. There's a lot of stuff I can't do on my work PC. I'm basically blocked from uploading anything anywhere outside of the network unless it is through the company's email server. For instance, I can't add an attachment to an email on gmail without explicit permission.
Nov 06 2019
parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Wednesday, 6 November 2019 at 14:44:03 UTC, jmh530 wrote:
 On Wednesday, 6 November 2019 at 13:08:40 UTC, Petar Kirov 
 [ZombineDev] wrote:
 [snip]

 That is strange. Why is that?
gist.github.com is blocked as a File Storage/File Sharing site, even though www.github.com isn't. There's a lot of stuff I can't do on my work PC. I'm basically blocked from uploading anything anywhere outside of the network unless it is through the company's email server. For instance, I can't add an attachment to an email on gmail without explicit permission.
That's unfortunate for you in general, but it shouldn't be a problem with run.dlang.io if all the communication with gist.github.com is done server-side.
Nov 06 2019
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Wednesday, 6 November 2019 at 16:13:59 UTC, Petar Kirov 
[ZombineDev] wrote:
 [snip]

 That's unfortunate for you in general, but it shouldn't be a 
 problem with run.dlang.io if all the communication with 
 gist.github.com is done server-side.
Just to be clear, one particular use case of mine for the shorten is that I can write up something on run.dlang.org at home, email the shortened link to myself, and then copy that into run.dlang.org at work. You're arguing that instead I should be able to export the gist, send it to myself, and then import gist when I get to work. If so, then I'm ok with that. Just a small change. Is the export gist also not working?
Nov 06 2019
parent reply lempiji <lempiji gmail.com> writes:
On Wednesday, 6 November 2019 at 18:35:39 UTC, jmh530 wrote:
 Is the export gist also not working?
Yes. It looks like a DNS lookup error has occurred on the server side. (HTTP status 500) I think that the DNS of the web server is in an abnormal state. Maybe restarting is effective. ```json {"statusMessage":"Failed to lookup host 'is.gd'.","statusDebugMessage":"object.Exception ../../../.dub/packages/vibe-core-1.7.0/vibe-core/source/ ibe/core/net.d(71): Failed to lookup host 'is.gd'.\n----------------\n??:? [0x8d0d45]\n??:? [0x8f5e8a]\n??:? [0x8dc30d]\nexception.d:516 [0x46da05]\nexception.d:436 [0x416985]\nnet.d:71 [0x71370d]\nnet.d:32 [0x713295]\nclient.d:693 [0x60a20c]\nclient.d:610 [0x608048]\nclient.d:582 [0x605e1f]\nclient.d:85 [0x605397]\nclient.d:75 [0x60516b]\napiv1.d:131 [0x40538a]\nrest.d:1527 [0x4c3e09]\nrest.d:1527 [0x4c320c]\nrouter.d:218 [0x61ef7e]\nrouter.d:674 [0x621633]\nrouter.d:607 [0x61ece6]\nrouter.d:211 [0x61eb0d]\nserver.d:2284 [0x6270bf]\nserver.d:247 [0x6255f6]\nserver.d:239 [0x624dd6]\nserver.d:2040 [0x62fb11]\ntask.d:655 [0x7251f4]\ntask.d:673 [0x722b81]\ntask.d:399 [0x722395]\n??:? [0x8d3751]"} ```
Nov 09 2019
parent reply John Colvin <john.loughran.colvin gmail.com> writes:
On Sunday, 10 November 2019 at 04:34:48 UTC, lempiji wrote:
 On Wednesday, 6 November 2019 at 18:35:39 UTC, jmh530 wrote:
 Is the export gist also not working?
Yes. It looks like a DNS lookup error has occurred on the server side. (HTTP status 500) I think that the DNS of the web server is in an abnormal state. Maybe restarting is effective. ```json {"statusMessage":"Failed to lookup host 'is.gd'.","statusDebugMessage":"object.Exception ../../../.dub/packages/vibe-core-1.7.0/vibe-core/source/ ibe/core/net.d(71): Failed to lookup host 'is.gd'.\n----------------\n??:? [0x8d0d45]\n??:? [0x8f5e8a]\n??:? [0x8dc30d]\nexception.d:516 [0x46da05]\nexception.d:436 [0x416985]\nnet.d:71 [0x71370d]\nnet.d:32 [0x713295]\nclient.d:693 [0x60a20c]\nclient.d:610 [0x608048]\nclient.d:582 [0x605e1f]\nclient.d:85 [0x605397]\nclient.d:75 [0x60516b]\napiv1.d:131 [0x40538a]\nrest.d:1527 [0x4c3e09]\nrest.d:1527 [0x4c320c]\nrouter.d:218 [0x61ef7e]\nrouter.d:674 [0x621633]\nrouter.d:607 [0x61ece6]\nrouter.d:211 [0x61eb0d]\nserver.d:2284 [0x6270bf]\nserver.d:247 [0x6255f6]\nserver.d:239 [0x624dd6]\nserver.d:2040 [0x62fb11]\ntask.d:655 [0x7251f4]\ntask.d:673 [0x722b81]\ntask.d:399 [0x722395]\n??:? [0x8d3751]"} ```
The shorten and export gist buttons still seem to be broken
Apr 24
next sibling parent jmh530 <john.michael.hall gmail.com> writes:
On Friday, 24 April 2020 at 19:51:25 UTC, John Colvin wrote:
 [snip]

 The shorten and export gist buttons still seem to be broken
I had some issues with run.dlang.org recently and consolidated them into [1]. Basically, if you add a dependency, then any compiler flags seems to be ignored. Something to be aware of... [1] https://github.com/dlang-tour/core/issues/748
Apr 24
prev sibling parent reply Anonymouse <zorael gmail.com> writes:
On Friday, 24 April 2020 at 19:51:25 UTC, John Colvin wrote:
 The shorten and export gist buttons still seem to be broken
Yes, https://github.com/dlang-tour/core/issues/739
Apr 24
parent reply FeepingCreature <feepingcreature gmail.com> writes:
On Friday, 24 April 2020 at 21:01:01 UTC, Anonymouse wrote:
 On Friday, 24 April 2020 at 19:51:25 UTC, John Colvin wrote:
 The shorten and export gist buttons still seem to be broken
Yes, https://github.com/dlang-tour/core/issues/739
Who is even responsible for this server? Are they alive? Has anybody checked their apartment? ;)
Apr 30
parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Thursday, 30 April 2020 at 12:57:20 UTC, FeepingCreature wrote:
 On Friday, 24 April 2020 at 21:01:01 UTC, Anonymouse wrote:
 On Friday, 24 April 2020 at 19:51:25 UTC, John Colvin wrote:
 The shorten and export gist buttons still seem to be broken
Yes, https://github.com/dlang-tour/core/issues/739
Who is even responsible for this server? Are they alive? Has anybody checked their apartment? ;)
We're alive and well, thanks for asking :) Sadly, all of us are busy. It would if help other community members could try to narrow down the problem by replicating the docker setup locally.
Apr 30
parent reply Arine <arine1283798123 gmail.com> writes:
On Thursday, 30 April 2020 at 14:38:52 UTC, Petar Kirov 
[ZombineDev] wrote:
 On Thursday, 30 April 2020 at 12:57:20 UTC, FeepingCreature 
 wrote:
 On Friday, 24 April 2020 at 21:01:01 UTC, Anonymouse wrote:
 On Friday, 24 April 2020 at 19:51:25 UTC, John Colvin wrote:
 The shorten and export gist buttons still seem to be broken
Yes, https://github.com/dlang-tour/core/issues/739
Who is even responsible for this server? Are they alive? Has anybody checked their apartment? ;)
We're alive and well, thanks for asking :) Sadly, all of us are busy. It would if help other community members could try to narrow down the problem by replicating the docker setup locally.
If you want to upload the docker image I'll be happy to look into it for you.
Apr 30
parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Thursday, 30 April 2020 at 16:32:35 UTC, Arine wrote:
 On Thursday, 30 April 2020 at 14:38:52 UTC, Petar Kirov 
 [ZombineDev] wrote:
 On Thursday, 30 April 2020 at 12:57:20 UTC, FeepingCreature 
 wrote:
 On Friday, 24 April 2020 at 21:01:01 UTC, Anonymouse wrote:
 On Friday, 24 April 2020 at 19:51:25 UTC, John Colvin wrote:
 The shorten and export gist buttons still seem to be broken
Yes, https://github.com/dlang-tour/core/issues/739
Who is even responsible for this server? Are they alive? Has anybody checked their apartment? ;)
We're alive and well, thanks for asking :) Sadly, all of us are busy. It would if help other community members could try to narrow down the problem by replicating the docker setup locally.
If you want to upload the docker image I'll be happy to look into it for you.
Thanks for offering your help! You can find everything here: Frontend and API backend: https://github.com/dlang-tour/core https://hub.docker.com/r/dlangtour/core/tags Executor: https://github.com/dlang-tour/core-exec https://hub.docker.com/r/dlangtour/core-exec/tags
Apr 30
parent Arine <arine1283798123 gmail.com> writes:
On Thursday, 30 April 2020 at 20:56:21 UTC, Petar Kirov 
[ZombineDev] wrote:
 On Thursday, 30 April 2020 at 16:32:35 UTC, Arine wrote:
 On Thursday, 30 April 2020 at 14:38:52 UTC, Petar Kirov 
 [ZombineDev] wrote:
 On Thursday, 30 April 2020 at 12:57:20 UTC, FeepingCreature 
 wrote:
 On Friday, 24 April 2020 at 21:01:01 UTC, Anonymouse wrote:
 On Friday, 24 April 2020 at 19:51:25 UTC, John Colvin wrote:
 The shorten and export gist buttons still seem to be broken
Yes, https://github.com/dlang-tour/core/issues/739
Who is even responsible for this server? Are they alive? Has anybody checked their apartment? ;)
We're alive and well, thanks for asking :) Sadly, all of us are busy. It would if help other community members could try to narrow down the problem by replicating the docker setup locally.
If you want to upload the docker image I'll be happy to look into it for you.
Thanks for offering your help! You can find everything here: Frontend and API backend: https://github.com/dlang-tour/core https://hub.docker.com/r/dlangtour/core/tags Executor: https://github.com/dlang-tour/core-exec https://hub.docker.com/r/dlangtour/core-exec/tags
It fails to lookup the address is.gd. This appears to be because dlang-tour is built to be "static" but doesn't use musl libc. So the C network libraries don't appear to be functioning correctly as busybox doesn't have glibc. Simple solution is to build without `dub -c static`and use a different image, like ubuntu instead of busybox. Otherwise you'd need to build dlang-tour with musl libc, I tried looking into it. Between LDC2, dub, and vibe.d with their varying levels of support, it isn't immediately possible.
May 01