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
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
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
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
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
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
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
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
parent 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