May 31, 2013
On Friday, 31 May 2013 at 17:47:18 UTC, David Gileadi wrote:
> On 5/31/13 10:26 AM, Andrei Alexandrescu wrote:
>> ... I'm a bit weary of ...
>
> I keep seeing people use this phrase; shouldn't it be "wary"?
>
> Not meaning to pick on you, Andrei; it's just that this time was the tipping point for the editor in me to kick in :)

I always thought people using "weary" were making some sort of joke I wasn't getting.....
May 31, 2013
On Friday, 31 May 2013 at 17:26:16 UTC, Andrei Alexandrescu wrote:
> Thanks. I'm a bit weary of adding Java as a requirement for building. Is that a legitimate concern?

I would add it as a separate make target, which is not needed for building the website, but is ran before uploading it to dlang.org. This way, website contributors won't need Java just to test their changes.
May 31, 2013
On Friday, 31 May 2013 at 17:12:11 UTC, Andrei Alexandrescu wrote:
> Hello,
>
>
> I've been looking through the logs and it looks like the top files in bytes transferred yesterday (even with the deluge of downloads) were a number of Javascript, HTML, and CSS files.
>
> There are programs to reduce the size of such files called "minifiers". Should we use some? If so, what would the experts recommend? We'd need ideally some command line utility that we can deploy easily and integrate with the build process. Alternatively, an online service could fit the bill, too.
>
>
> Thanks for your insights,
>
> Andrei

The site currently isn't configured to serve gzip / deflate compressed content. Fixing this will lower bandwidth usage in a much more significant way than serving minified files would. I think mod_deflate is used for this in Apache.
May 31, 2013
On Friday, 31 May 2013 at 17:26:16 UTC, Andrei Alexandrescu wrote:
> On 5/31/13 1:17 PM, w0rp wrote:
>> I recommend YUI Compressor. http://yui.github.io/yuicompressor/ I use it
>> for compressing JavaScript and CSS at my job, and it works very well.
>> (It's also part of a Maven build script at my job, which is also cool.)
>> If you use it, I recommend --nomunge --preserve-semi
>> --disable-optimizations so it doesn't do any JavaScript fiddling beyond
>> just minification.
>
> Thanks. I'm a bit weary of adding Java as a requirement for building. Is that a legitimate concern?
>
> Andrei

Well, some requirement must be added as I'm unaware of good minifiers that do not require a runtime. But I would always go with Node.js instead of Java.

IMHO these days to be serious web developer you must have Node.js installed, as NPM modules have become de facto standard for distributing libraries and utilities for web development.

For Node.js minifiers I recommend uglify.js (https://github.com/mishoo/UglifyJS2) for JavaScript and clean-css (https://github.com/GoalSmashers/clean-css) for CSS.

And for server configuration take a look at https://github.com/h5bp/server-configs
May 31, 2013
On 5/31/13 1:47 PM, David Gileadi wrote:
> On 5/31/13 10:26 AM, Andrei Alexandrescu wrote:
>> ... I'm a bit weary of ...
>
> I keep seeing people use this phrase; shouldn't it be "wary"?

500K hits:

https://www.google.com/#safe=off&output=search&sclient=psy-ab&q=%22i%27ve+been+weary+of%22&oq=%22i%27ve+been+weary+of%22&gs_l=hp.3...1121.4371.0.4641.20.18.0.0.0.0.265.4023.0j1j17.18.0...0.0...1c.1.15.psy-ab.OCbo1VhH_1U&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.47244034,d.bGE&fp=1c945b72c868c039&biw=1436&bih=813

4.33M hits:

https://www.google.com/#safe=off&sclient=psy-ab&q=%22i%27ve+been+wary+of%22&oq=%22i%27ve+been+wary+of%22&gs_l=hp.3...5710.5710.1.5944.1.1.0.0.0.0.215.215.2-1.1.0...0.0...1c.1.15.psy-ab.q0Jhcs6ZPJ4&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.47244034,d.bGE&fp=1c945b72c868c039&biw=1436&bih=813

Guess you're right!

> Not meaning to pick on you, Andrei; it's just that this time was the
> tipping point for the editor in me to kick in :)

On the contrary I love being corrected.


Andrei
May 31, 2013
On 5/31/13 1:50 PM, Adam D. Ruppe wrote:
> I'd just upload a file.html.gz (gzip file.html on your own computer) and
> then try to go to dlang.org/file.html

It downloaded the file with name file.html. When opened with an editor, it showed the garbled compressed content.

> It might just work. If that doesn't, rename file.html.gz to file.html
> and again try it, if it just works, add gzip to your build process then
> upload.

This displays the same garbled compressed content straight in the browser.

> If it doesn't just work, and .htaccess is enabled, try adding this to
> your .htaccess file and then try again:
[snip]

Tried, broke the directory. I recall our admin has disabled .htaccess.


Andrei
May 31, 2013
On Fri, 31 May 2013 15:43:51 -0400, Andrei Alexandrescu <SeeWebsiteForEmail@erdani.org> wrote:

> On 5/31/13 1:47 PM, David Gileadi wrote:
>> On 5/31/13 10:26 AM, Andrei Alexandrescu wrote:
>>> ... I'm a bit weary of ...
>>
>> I keep seeing people use this phrase; shouldn't it be "wary"?
>
> 500K hits:
>
> https://www.google.com/#safe=off&output=search&sclient=psy-ab&q=%22i%27ve+been+weary+of%22&oq=%22i%27ve+been+weary+of%22&gs_l=hp.3...1121.4371.0.4641.20.18.0.0.0.0.265.4023.0j1j17.18.0...0.0...1c.1.15.psy-ab.OCbo1VhH_1U&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.47244034,d.bGE&fp=1c945b72c868c039&biw=1436&bih=813
>
> 4.33M hits:
>
> https://www.google.com/#safe=off&sclient=psy-ab&q=%22i%27ve+been+wary+of%22&oq=%22i%27ve+been+wary+of%22&gs_l=hp.3...5710.5710.1.5944.1.1.0.0.0.0.215.215.2-1.1.0...0.0...1c.1.15.psy-ab.q0Jhcs6ZPJ4&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.47244034,d.bGE&fp=1c945b72c868c039&biw=1436&bih=813
>
> Guess you're right!

Actually, weary is not the correct term in this context at all, even if it doesn't win a google popularity contest ;)

http://grammarstars.blogspot.com/2007/11/wearyleerywary-query.html

-Steve
May 31, 2013
On Friday, 31 May 2013 at 19:51:29 UTC, Andrei Alexandrescu wrote:
>
> Tried, broke the directory. I recall our admin has disabled .htaccess.
>
>
> Andrei

Which hosting company do you guys use? Disabling .htaccess seems too unprofessional..

Anyway, I was under impression that dlang.org is hosted from some dedicated server.
May 31, 2013
On 5/31/2013 10:47 AM, David Gileadi wrote:
> On 5/31/13 10:26 AM, Andrei Alexandrescu wrote:
>> ... I'm a bit weary of ...
>
> I keep seeing people use this phrase; shouldn't it be "wary"?
>
> Not meaning to pick on you, Andrei; it's just that this time was the tipping
> point for the editor in me to kick in :)

Weawy? Why awe you wagging on Awndway?
May 31, 2013
On Fri, 31 May 2013 15:43:51 -0400
Andrei Alexandrescu <SeeWebsiteForEmail@erdani.org> wrote:

> On 5/31/13 1:47 PM, David Gileadi wrote:
> 
> > Not meaning to pick on you, Andrei; it's just that this time was the tipping point for the editor in me to kick in :)
> 
> On the contrary I love being corrected.
> 

No you don't.

(Couldn't resist ;) )