February 15, 2012
"Vladimir Panteleev" <vladimir@thecybershadow.net> wrote in message news:bxpaxijwipktuqxzbrtv@dfeed.kimsufi.thecybershadow.net...
> On Wednesday, 15 February 2012 at 02:11:45 UTC, Nick Sabalausky wrote:
>> One issue I noticed though is that newlines don't seem to work:
>>
>> http://www.semitwist.com/download/img/shots/dforum.png
>
> I've added a fallback CSS property for browsers that don't support CSS 3. Does it look better now?

Perfect on FireFox. Still has the same problem in IE7 (haven't tried it in other IEs), but I can understand if you don't want to support IE7 (not like I normally use IE).


February 15, 2012
"Steven Schveighoffer" <schveiguy@yahoo.com> wrote in message news:op.v9p5j6jaeav7ka@localhost.localdomain...
> On Tue, 14 Feb 2012 17:00:05 -0500, Walter Bright <newshound2@digitalmars.com> wrote:
>
>> http://forum.dlang.org/
>>
>> This should replace the old miserable web interface to the forums.
>>
>> Thanks to Vladimir Panteleev for an awesome job writing this!
>
> The "Forums" link on the left points at http://digitalmars.com/NewsGroup.html for many pages (including dlang.org home page).  Please make this point at the new forum page.
>

That really should stay there, with a prominent link to the forum added to that page. This is just for people who's rather not use a web interface. We don't want to make it *harder* to discover the proper NNTP version.


February 15, 2012
"Nick Sabalausky" <a@a.a> wrote in message news:jhgleu$f1n$1@digitalmars.com...
>
> ...This is just for people who'd rather use a web interface...
>

Fixed.


February 15, 2012
On Wed, 15 Feb 2012 11:09:17 -0500, Nick Sabalausky <a@a.a> wrote:

> "Steven Schveighoffer" <schveiguy@yahoo.com> wrote in message
> news:op.v9p5j6jaeav7ka@localhost.localdomain...
>> On Tue, 14 Feb 2012 17:00:05 -0500, Walter Bright
>> <newshound2@digitalmars.com> wrote:
>>
>>> http://forum.dlang.org/
>>>
>>> This should replace the old miserable web interface to the forums.
>>>
>>> Thanks to Vladimir Panteleev for an awesome job writing this!
>>
>> The "Forums" link on the left points at
>> http://digitalmars.com/NewsGroup.html for many pages (including dlang.org
>> home page).  Please make this point at the new forum page.
>>
>
> That really should stay there, with a prominent link to the forum added to
> that page. This is just for people who's rather use a web interface. We
> don't want to make it *harder* to discover the proper NNTP version.


No, I didn't mean that.  But NNTP is not a forum.  Note that on other pages (notably forum.dlang.org), the "Forums" link goes to forum.dlang.org

I think the right solution is to create a new page for dlang.org that contains information about NNTP joins, add a link to that under the "Community" section labeled "News Groups", and make the "Forums" link go to forum.dlang.org

-Steve
February 15, 2012
"Steven Schveighoffer" <schveiguy@yahoo.com> wrote in message news:op.v9qbmosueav7ka@localhost.localdomain...
>
> No, I didn't mean that.  But NNTP is not a forum.  Note that on other pages (notably forum.dlang.org), the "Forums" link goes to forum.dlang.org
>
> I think the right solution is to create a new page for dlang.org that contains information about NNTP joins, add a link to that under the "Community" section labeled "News Groups", and make the "Forums" link go to forum.dlang.org
>

I see. That makes sence.


February 15, 2012
On Wednesday, 15 February 2012 at 15:19:59 UTC, Jacob Carlborg wrote:
>> I'm wary of magical characters because they may end up in text copied by the user. For example, what if someone posts a code sample that contains a long string of alphanumerics?
>
> It depends on where you paste it. Copying a string containing a zero-width space and pasting it in TextMate results in a visible space. If I instead paste it in TextEdit there's no visible space. I tried a few other applications as well and there was no visible space in those.

Yes, but will the code from our hypothetical example still compile and work as it should?
February 15, 2012
On Wednesday, 15 February 2012 at 15:59:48 UTC, Nick Sabalausky wrote:
> First of all, shrinking the window *should* re-flow the text, not cause it to be too small to read. A shorter line length is *much* better than tiny text.

The problem is that a lot of mail and news software prewrap messages to a certain width. While some standards have appeared that provide reflow information with backwards-compatibility (format=flowed), it doesn't help us much since we can't scale down some messages and rewrap others.
February 15, 2012
On 2012-02-15 16:57, Nick Sabalausky wrote:
> "Ludovic Silvestre"<ludovic.silvestre@gmail.com>  wrote in message
> news:yuepxdfcgjebpkkhjnny@dfeed.kimsufi.thecybershadow.net...
>>
>
> I was wondering why the text seemed to be a completely different size on
> different browsers!
>
>> First of all, I recommend to use % for the body's font-size (which you are
>> already using) and the rest should be set with em. That way, the body
>> font-size will be equal to the browser default font size, and the rest of
>> the page will be based on that size.
>>
>
> Yes. This.
>
>> Another suggestion is using something like this:
>> http://flexknowlogy.learningfield.org/2008/06/26/setting-font-size-proportional-to-window-size/
>>
>> Here is an example of the js code:
>> function updateFontSize(){
>>    msg = document.body.clientWidth;
>>
>>    var font_math = Math.round( 0.012 * msg * 10 );
>>    font_math = font_math<  100 ? 100 : font_math;
>>
>>    $( "body" ).css({
>>        "font-size" : font_math + "%"
>>    });
>> }
>>
>> Use that function on page load and page refresh:
>> $( window ).resize( ... )
>> $( document ).ready( ... )
>>
>
> That's not good (and I don't mean because of the JS - it's always possible
> to have non-JS fallback). This is a classic case of narrowly optimizing for
> one specific metric (ie, getting a consistent words-per-line) instead of
> always keeping an eye on the big picture. The problem this creates is that
> font sizes become too uncontrolled:
>
> First of all, shrinking the window *should* re-flow the text, not cause it
> to be too small to read. A shorter line length is *much* better than tiny
> text.

This site is a great example of a design that reflows when resizing the window: http://upperdog.se/ . It works great on both desktop browsers and mobile devices.

-- 
/Jacob Carlborg
February 15, 2012
On 2012-02-15 18:16, Vladimir Panteleev wrote:
> On Wednesday, 15 February 2012 at 15:19:59 UTC, Jacob Carlborg wrote:
>>> I'm wary of magical characters because they may end up in text copied
>>> by the user. For example, what if someone posts a code sample that
>>> contains a long string of alphanumerics?
>>
>> It depends on where you paste it. Copying a string containing a
>> zero-width space and pasting it in TextMate results in a visible
>> space. If I instead paste it in TextEdit there's no visible space. I
>> tried a few other applications as well and there was no visible space
>> in those.
>
> Yes, but will the code from our hypothetical example still compile and
> work as it should?

I have no idea and it might depend on the text editor you're pasting the code in.

-- 
/Jacob Carlborg
February 15, 2012
On 2012-02-14 23:00, Walter Bright wrote:
> http://forum.dlang.org/
>
> This should replace the old miserable web interface to the forums.
>
> Thanks to Vladimir Panteleev for an awesome job writing this!

I got another idea. When shrinking the window you're removing the menu to the left. It might also be good to remove the gravatar images, at some size, to get some more for the text.

-- 
/Jacob Carlborg