January 26, 2015
On Mon, 26 Jan 2015 03:56:36 +0000, Vladimir Panteleev wrote:

> On Monday, 26 January 2015 at 03:43:53 UTC, ketmar wrote:
>> On Sun, 25 Jan 2015 19:37:00 -0800, H. S. Teoh via Digitalmars-d wrote:
>>
>>> Shouldn't it be expanded by default and collapsed if JS is available?
>>
>> my uneducated guess is that "collapser" is not using jquery, so it was able to successfully collaspe the whole thing. and then "expander" is using jquery, so it failed.
> 
> Actually, we inject a CSS rule based on whether JS is enabled or not. We can't check for jQuery there because its loading is deferred.

and there is no fully working method to check if js is disabled. "noscript" tag is not reliable, 'cause people tend to use all kind of blockers these days, and some of that blockers can be flawed. and then people will complain that "this site is not working with javascript disabled", while js is technically not disabled, but restricted in some way.

sadly, i don't know a good solution to this.

January 26, 2015
On Mon, Jan 26, 2015 at 03:54:10AM +0000, Vladimir Panteleev via Digitalmars-d wrote:
> On Monday, 26 January 2015 at 03:35:03 UTC, Vladimir Panteleev wrote:
> >I see no reason to support such a configuration in principle, but for this particular case, I think the fix will be simple.
> 
> Actually, I take that back. There are good reasons to support such a situation, the biggest of which is that Google CDNs are blocked in China:
> 
> https://issues.dlang.org/show_bug.cgi?id=14004
> 
> https://github.com/D-Programming-Language/dlang.org/pull/847

I think we should just import jquery into the dlang.org repo. External dependencies always end up in these kinds of ugly situations.


T

-- 
MASM = Mana Ada Sistem, Man!
January 26, 2015
On 2015-01-26 08:35, H. S. Teoh via Digitalmars-d wrote:

> I think we should just import jquery into the dlang.org repo. External
> dependencies always end up in these kinds of ugly situations.

The advantage of using a CDN is that browser will most likely already have loaded, in this case jQuery, from another page you already have visited.

-- 
/Jacob Carlborg
January 26, 2015
On Monday, 26 January 2015 at 03:56:37 UTC, Vladimir Panteleev wrote:
> 

Hi.

This thread turned to topics of higher importance than mere cosmetics.

Few miscellaneous thoughts.

Why not create a bugzilla section for website and forum so it is easier to report glitches and enhancement requests in a way that you will quickly see without distraction?  (Andralex posted to general D section in bugzilla, but was black holed till this thread came up).

Secondly, I was browsing old forum messages and got this error.  I am amazed by the lean elegant power of dfeed source code - coming from C, I keep wondering where the rest of it is - but maybe as D matures it is worth the trouble to beautify reports like the following.  (It should say something like "Sorry - that message has been deleted.  Click here to go back to the previous screen).

I thought of making a pull, but I am guessing however I write it at my level of experience will not fit with the gestalt of how you would do things.  Let me know of I am wrong, and will do so next time if I get the chance.

Incidentally, although it is common sense for experienced programmers,  how about linking in the learning D section to suggest that people review the following showcase D projects to learn idiomatic D?  Later, someone with the inclination could add some commentary.  P0nce and others are doing a great job setting out small idiomatic D snippets, but we could do more on explaining how to write larger patterns.

http://forum.dlang.org/post/nchvayzsbrzevvucmmmi

Post not found
web.NotFoundException@web.d(2502): Post not found
----------------
/home/dfeed/DFeed/dfeed(ae.net.http.common.HttpResponse web.WebUI.handleRequest(ae.net.http.common.HttpRequest, ae.net.http.server.HttpServerConnection)+0x1eb0) [0x6c4e28]
/home/dfeed/DFeed/dfeed(void web.WebUI.onRequest(ae.net.http.common.HttpRequest, ae.net.http.server.HttpServerConnection)+0x71) [0x6c29e1]
/home/dfeed/DFeed/dfeed(void ae.net.http.server.HttpServerConnection.processRequest(ae.sys.data.Data[])+0x72) [0x6e759a]
/home/dfeed/DFeed/dfeed(void ae.net.http.server.HttpServerConnection.onNewRequest(ae.sys.data.Data)+0x36a) [0x6e72ca]
/home/dfeed/DFeed/dfeed(void ae.net.asockets.ConnectionAdapter.onReadData(ae.sys.data.Data)+0x8d) [0x6e495d]
/home/dfeed/DFeed/dfeed(void ae.net.asockets.TimeoutAdapter.onReadData(ae.sys.data.Data)+0x8f) [0x6e55c7]
/home/dfeed/DFeed/dfeed(void ae.net.asockets.TcpConnection.onReadable()+0x232) [0x6e2a2a]
/home/dfeed/DFeed/dfeed(void ae.net.asockets.SocketManager.handleEvent(std.socket.SocketSet, std.socket.SocketSet, std.socket.SocketSet)+0xd8) [0x6e1c58]
/home/dfeed/DFeed/dfeed(void ae.net.asockets.SocketManager.loop()+0x52a) [0x6e1ad2]
/home/dfeed/DFeed/dfeed(_Dmain+0x219) [0x634f79]
/home/dfeed/DFeed/dfeed(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0x25) [0x771e99]
/home/dfeed/DFeed/dfeed(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x60) [0x771dfc]
/home/dfeed/DFeed/dfeed(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x36) [0x771e42]
/home/dfeed/DFeed/dfeed(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x60) [0x771dfc]
/home/dfeed/DFeed/dfeed(_d_run_main+0x22a) [0x771d46]
/home/dfeed/DFeed/dfeed(main+0x25) [0x6b2a15]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x3a974320ec5]

Thirdly: I get the sense that the search features in the old digitalmars web front end are slightly more powerful than at dlang.org.  And it is easier to browse by year etc.  Could we add to list to match them / provide the standard set of features that google groups offers ?


Laeeth
January 26, 2015
On Monday, 26 January 2015 at 09:08:26 UTC, Jacob Carlborg wrote:
> On 2015-01-26 08:35, H. S. Teoh via Digitalmars-d wrote:
>
>> I think we should just import jquery into the dlang.org repo. External
>> dependencies always end up in these kinds of ugly situations.
>
> The advantage of using a CDN is that browser will most likely already have loaded, in this case jQuery, from another page you already have visited.

Two thoughts.

1. You could have a special handling for China and other countries that ban google.

2. See here: http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go
January 26, 2015
On Monday, 26 January 2015 at 18:41:09 UTC, Laeeth Isharc wrote:
> Why not create a bugzilla section for website and forum so it is easier to report glitches and enhancement requests in a way that you will quickly see without distraction?

Bugzilla has a "Website" component.

> It should say something like "Sorry - that message has been deleted.

That link doesn't look valid. A Message-ID should have an @ character.

> http://forum.dlang.org/post/nchvayzsbrzevvucmmmi

You are probably looking for:
http://forum.dlang.org/post/nchvayzsbrzevvucmmmi@forum.dlang.org

> web.NotFoundException@web.d(2502): Post not found

This is due to temporarily building DFeed in debug mode, to diagnose a bug. Fixed now.
January 26, 2015
On Monday, 26 January 2015 at 18:46:58 UTC, Laeeth Isharc wrote:
> On Monday, 26 January 2015 at 09:08:26 UTC, Jacob Carlborg wrote:
>> On 2015-01-26 08:35, H. S. Teoh via Digitalmars-d wrote:
>>
>>> I think we should just import jquery into the dlang.org repo. External
>>> dependencies always end up in these kinds of ugly situations.
>>
>> The advantage of using a CDN is that browser will most likely already have loaded, in this case jQuery, from another page you already have visited.
>
> Two thoughts.
>
> 1. You could have a special handling for China and other countries that ban google.
>
> 2. See here: http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go

https://github.com/D-Programming-Language/dlang.org/pull/847
January 26, 2015
On Monday, 26 January 2015 at 20:08:44 UTC, Vladimir Panteleev wrote:
> On Monday, 26 January 2015 at 18:41:09 UTC, Laeeth Isharc wrote:
>> Why not create a bugzilla section for website and forum so it is easier to report glitches and enhancement requests in a way that you will quickly see without distraction?
>
> Bugzilla has a "Website" component.
>
>> It should say something like "Sorry - that message has been deleted.
>
> That link doesn't look valid. A Message-ID should have an @ character.
>
>> http://forum.dlang.org/post/nchvayzsbrzevvucmmmi
>
> You are probably looking for:
> http://forum.dlang.org/post/nchvayzsbrzevvucmmmi@forum.dlang.org
>
>> web.NotFoundException@web.d(2502): Post not found
>
> This is due to temporarily building DFeed in debug mode, to diagnose a bug. Fixed now.

Thanks.
1 2 3
Next ›   Last »