Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Gary Willoughby via Digitalmars-d-announce

On Tuesday, 2 December 2014 at 21:41:28 UTC, Vladimir Panteleev
wrote:
Enter DCaptcha, a question-answer challenge tailored for D 
programmers. Its goals are to challenge posters of 
suspicious-looking content with questions that should be easy 
to answer to D programmers, and impossible for non-technical 
people with no incentive to learn or research stuff (i.e. 
spammers). DCaptcha is already in use on the D wiki 
(wiki.dlang.org), with great success - DCaptcha's debut cut the 
short-lived explosion in wiki spam to zero.


I think this is a bad idea because developers new to the language
will be turned away. Also i think a lot of these 'easy' questions
are just too hard. I've tried the demo and found it fustrating
that i need a few trys to get them right.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 08:24:46 UTC, Gary Willoughby 
wrote:

On Tuesday, 2 December 2014 at 21:41:28 UTC, Vladimir Panteleev
wrote:
Enter DCaptcha, a question-answer challenge tailored for D 
programmers. Its goals are to challenge posters of 
suspicious-looking content with questions that should be easy 
to answer to D programmers, and impossible for non-technical 
people with no incentive to learn or research stuff (i.e. 
spammers). DCaptcha is already in use on the D wiki 
(wiki.dlang.org), with great success - DCaptcha's debut cut 
the short-lived explosion in wiki spam to zero.


I think this is a bad idea because developers new to the 
language
will be turned away. Also i think a lot of these 'easy' 
questions

are just too hard. I've tried the demo and found it fustrating
that i need a few trys to get them right.


Got it. But we're not going back to reCAPTCHA either. I'm tired 
of deleting spam by hand.


Please suggest some ideas (or better, send pull requests).


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Gary Willoughby via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 08:28:25 UTC, Vladimir Panteleev 
wrote:
Got it. But we're not going back to reCAPTCHA either. I'm tired 
of deleting spam by hand.


Please suggest some ideas (or better, send pull requests).


I got fed up of having spam on an old blog so i implemented a 
simple question, click on Darth Vader. Then i had lots of little 
images of film icons and would not post anything until Darth 
Vader was correctly selected. This sounds simple but the order of 
the images was randomised to stop bots and humans didn't seem to 
get it. Also if the wrong icon was selected, i presented a 
countdown on the page of 2 minutes letting them know this is a 
anti-spam measure and they can't post until the timer reached 
zero. Anyone managing to post spam to the blog was IP logged and 
always redirected to the countdown (once redirected and once the 
countdown reached zero it always reset forever to make it 
extremely frustrating for them). Yes you have to put in the 
effort to log IP's but i found there were very few persistent 
spammers. It honestly stopped all spam on my old blog.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 07:46:42 UTC, Brad Anderson 
wrote:

I could add links to DPaste and the #d IRC channel.


Both good ideas.


Done. You can see this here:

http://forum.dlang.org/reply/qpfcqedcbkipjllnk...@forum.dlang.org

(just click Send)

If it's that low than I'm not worried about it anymore. The 
captcha was just very familiar to me before you fixed the IP 
address problem.


It was caused by a bug, not some heuristic false positive... I'd 
have fixed it if I knew about it.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 08:51:13 UTC, Gary Willoughby 
wrote:
On Wednesday, 3 December 2014 at 08:28:25 UTC, Vladimir 
Panteleev wrote:
Got it. But we're not going back to reCAPTCHA either. I'm 
tired of deleting spam by hand.


Please suggest some ideas (or better, send pull requests).


I got fed up of having spam on an old blog so i implemented a 
simple question, click on Darth Vader. Then i had lots of 
little images of film icons and would not post anything until 
Darth Vader was correctly selected. This sounds simple but the 
order of the images was randomised to stop bots and humans 
didn't seem to get it. Also if the wrong icon was selected, i 
presented a countdown on the page of 2 minutes letting them 
know this is a anti-spam measure and they can't post until the 
timer reached zero. Anyone managing to post spam to the blog 
was IP logged and always redirected to the countdown (once 
redirected and once the countdown reached zero it always reset 
forever to make it extremely frustrating for them). Yes you 
have to put in the effort to log IP's but i found there were 
very few persistent spammers. It honestly stopped all spam on 
my old blog.


I'm seeing a very large variation of IPs here. The humans seem to 
be connecting through a botnet, or a large open proxy directory.


125 IPs banned so far on the forum, for all the good that did. I 
suppose I could now clear the banlist, so that any future 
visitors happening to have those IPs are not turned away.


For my personal blog, the Anti-spam plugin (with no additional 
configuration) seems to work fine for now, but it relies on its 
relative obscurity. No canned solution would be suitable for an 
active forum, it's too high-profile of a target.


Re: dsource.org moved

2014-12-03 Thread Dejan Lekic via Digitalmars-d-announce

I think DSource should not be shut down, but instead modernised
and open for new D-based projects. We, old D programmers, just
love DSource! :)


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Martin Krejcirik via Digitalmars-d-announce
For an idea of what sort of questions DCaptcha asks, you can 
demo it on the following page, so you don't have to clutter the


I think all code fragments should have just one exact answer 
(like number or single word) a any programmer without specific D 
knowledge should be able to answer them correctly. Asking for D 
feature names in not good IMHO.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Kagamin via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 00:56:12 UTC, Brad Anderson 
wrote:

Maybe make the ones on d.learn extremely simple.

---
What does the follow program print?

void main()
{
import std.stdio : writeln;
writeln(foo);
}
---

No algorithms, no math. Just extremely basic stuff. Nobody, not 
even our weirdly efficient resident furniture spam bot is going 
to take the time to write a bot to answer a question like that.


Bots don't write bots, lol.

I think, a little math doesn't hurt.

void main()
{
int a, b=2;
a++;
a = a+b+1;
writeln(foo,a);
}


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Jacob Carlborg via Digitalmars-d-announce

On 2014-12-03 14:02, Martin Krejcirik wrote:


Asking for D feature names in not good IMHO.


I agree. I try the demo at got a question about what this feature is called:

auto u = new class M {};

Exactly what is referred to here? The type inference or the anonymous 
class? The answer is anonymous class.


--
/Jacob Carlborg


Re: dsource.org moved

2014-12-03 Thread Kiith-Sa via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 06:39:34 UTC, Vladimir Panteleev 
wrote:

On Tuesday, 2 December 2014 at 23:02:32 UTC, Kiith-Sa wrote:
On Tuesday, 2 December 2014 at 22:20:29 UTC, Vladimir 
Panteleev wrote:

DSource in the headlines? In 2014? Shocking, I know.

Since Brad is no longer an active D user, and the website has 
had spotty uptime lately, I've offered to take over the 
hosting and any maintenance.


Although opinions exist that the site should simply be shut 
down, I think archiving it would be a better approach. The 
website has historical relevance to the D community, and 
might be required to get ancient D code running again. For 
example, we could make things read-only and make it obvious 
on every project page that we don't go to DSource any more. 
I can't exactly undertake a large redesign, but we can 
discuss our options.


Planet D (planet.dsource.org) is moved as well, and should 
continue to operate merrily. If your D blog's not there, let 
me know!


My blog is not there, but it's not pure D blog:

defenestrate.eu
defenestrate.eu/rss.html


Any way you can provide an RSS or ATOM feed for just the posts 
tagged D?


Don't know any way other than maybe modifying the generator I'm 
using, but I don't have the time to do that in near future (I 
know little about how RSS works/web dev in general so I'd have to 
spend some time learning that too).


I'm using a static site generator (Tinkerer) based on 
Sphinx/ReStructuredText (think Markdown on steroids), so the blog 
is actually a static site.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Brad Anderson via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 09:00:25 UTC, Vladimir Panteleev 
wrote:
On Wednesday, 3 December 2014 at 07:46:42 UTC, Brad Anderson 
wrote:

I could add links to DPaste and the #d IRC channel.


Both good ideas.


Done. You can see this here:

http://forum.dlang.org/reply/qpfcqedcbkipjllnk...@forum.dlang.org

(just click Send)

If it's that low than I'm not worried about it anymore. The 
captcha was just very familiar to me before you fixed the IP 
address problem.


It was caused by a bug, not some heuristic false positive... 
I'd have fixed it if I knew about it.


I mentioned it a few times in IRC but you were probably asleep. 
Should have used .note.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Ary Borenszweig via Digitalmars-d-announce

On 12/2/14, 6:41 PM, Vladimir Panteleev wrote:


Enter DCaptcha


I think this could work with just two or three variants of a question. 
Always ask what's the return value of the function.


1. int foo() { return 8 % 3; }

I don't think non-programmers know what that '%' symbol is, but 
programmers of any language would recognize this.


2. int foo() { int x = 8; x++; x++; return x; }

I don't think non-programmers would guess ++ is increment, but 
programmers most probably know it.


3. bool foo() { return 42 != 30 };

I don't think non-programmers know what != is.






Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Wed, 03 Dec 2014 14:47:09 +0100
Jacob Carlborg via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

 On 2014-12-03 14:02, Martin Krejcirik wrote:
 
  Asking for D feature names in not good IMHO.
 
 I agree. I try the demo at got a question about what this feature is called:
 
 auto u = new class M {};
 
 Exactly what is referred to here? The type inference or the anonymous 
 class? The answer is anonymous class.
besides, it's not anonymous, it has a name!


signature.asc
Description: PGP signature


Re: dsource.org moved

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Wed, 03 Dec 2014 09:13:12 +
Dejan Lekic via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

 I think DSource should not be shut down, but instead modernised
 and open for new D-based projects. We, old D programmers, just
 love DSource! :)
the problem with current dsource is that keeps poping up in first
google results. yesterday my mate asked me why we don't have gtk+
bindings for D. i answered just google gtkD, he did it and the first
result was dsource link, which points just to svn repo, w/o docs and
such. this is disaster.


signature.asc
Description: PGP signature


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 20:19:34 UTC, ketmar via 
Digitalmars-d-announce wrote:

On Wed, 03 Dec 2014 14:47:09 +0100
Jacob Carlborg via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:


On 2014-12-03 14:02, Martin Krejcirik wrote:

 Asking for D feature names in not good IMHO.

I agree. I try the demo at got a question about what this 
feature is called:


auto u = new class M {};

Exactly what is referred to here? The type inference or the 
anonymous class? The answer is anonymous class.

besides, it's not anonymous, it has a name!


The type is anonymous.

I agree that this is not a good question :) I'll remove it 
(probably along with the rest of the name this feature ones).


Re: dsource.org moved

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 20:24:05 UTC, ketmar via 
Digitalmars-d-announce wrote:

On Wed, 03 Dec 2014 09:13:12 +
Dejan Lekic via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:


I think DSource should not be shut down, but instead modernised
and open for new D-based projects. We, old D programmers, just
love DSource! :)
the problem with current dsource is that keeps poping up in 
first
google results. yesterday my mate asked me why we don't have 
gtk+
bindings for D. i answered just google gtkD, he did it and 
the first
result was dsource link, which points just to svn repo, w/o 
docs and

such. this is disaster.


Erm, that was due to a misconfiguration from a last-minute 
change. Sorry. Fixed now.


http://www.dsource.org/projects/gtkd/


Re: dsource.org moved

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 20:42:28 UTC, Vladimir Panteleev 
wrote:
On Wednesday, 3 December 2014 at 20:24:05 UTC, ketmar via 
Digitalmars-d-announce wrote:

On Wed, 03 Dec 2014 09:13:12 +
Dejan Lekic via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

I think DSource should not be shut down, but instead 
modernised

and open for new D-based projects. We, old D programmers, just
love DSource! :)
the problem with current dsource is that keeps poping up in 
first
google results. yesterday my mate asked me why we don't have 
gtk+
bindings for D. i answered just google gtkD, he did it and 
the first
result was dsource link, which points just to svn repo, w/o 
docs and

such. this is disaster.


Erm, that was due to a misconfiguration from a last-minute 
change. Sorry. Fixed now.


Added monitoring so this (at least this particular problem) won't 
happen again :)


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Wed, 03 Dec 2014 20:22:31 +
Vladimir Panteleev via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

 On Wednesday, 3 December 2014 at 20:19:34 UTC, ketmar via 
 Digitalmars-d-announce wrote:
  On Wed, 03 Dec 2014 14:47:09 +0100
  Jacob Carlborg via Digitalmars-d-announce
  digitalmars-d-announce@puremagic.com wrote:
 
  On 2014-12-03 14:02, Martin Krejcirik wrote:
  
   Asking for D feature names in not good IMHO.
  
  I agree. I try the demo at got a question about what this 
  feature is called:
  
  auto u = new class M {};
  
  Exactly what is referred to here? The type inference or the 
  anonymous class? The answer is anonymous class.
  besides, it's not anonymous, it has a name!
 
 The type is anonymous.
so what that M after `class` means then? anonymous with a name,
that's cool! ;-)


signature.asc
Description: PGP signature


Re: dsource.org moved

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Wed, 03 Dec 2014 20:42:27 +
Vladimir Panteleev via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

 On Wednesday, 3 December 2014 at 20:24:05 UTC, ketmar via 
 Digitalmars-d-announce wrote:
  On Wed, 03 Dec 2014 09:13:12 +
  Dejan Lekic via Digitalmars-d-announce
  digitalmars-d-announce@puremagic.com wrote:
 
  I think DSource should not be shut down, but instead modernised
  and open for new D-based projects. We, old D programmers, just
  love DSource! :)
  the problem with current dsource is that keeps poping up in 
  first
  google results. yesterday my mate asked me why we don't have 
  gtk+
  bindings for D. i answered just google gtkD, he did it and 
  the first
  result was dsource link, which points just to svn repo, w/o 
  docs and
  such. this is disaster.
 
 Erm, that was due to a misconfiguration from a last-minute 
 change. Sorry. Fixed now.
thank you. but i mean that dsource.org is still poping up in results
and it contains alot of obsolete projects. some projects was forked
long time ago and their dsource pages weren't updated, some are just
dead. people keep hitting dsource, trying projects and leaving with a
great frustration: ah, nothing is working, what a mess! besides, all
that projects seems dead, so seems D.

i think that the whole dsource site must be shut down and replaced with
a stub (except planetD) to stop this disease. that site was great, but
now it does more harm than good.


signature.asc
Description: PGP signature


Re: dsource.org moved

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Wed, 03 Dec 2014 20:42:27 +
Vladimir Panteleev via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

 On Wednesday, 3 December 2014 at 20:24:05 UTC, ketmar via 
 Digitalmars-d-announce wrote:
  On Wed, 03 Dec 2014 09:13:12 +
  Dejan Lekic via Digitalmars-d-announce
  digitalmars-d-announce@puremagic.com wrote:
 
  I think DSource should not be shut down, but instead modernised
  and open for new D-based projects. We, old D programmers, just
  love DSource! :)
  the problem with current dsource is that keeps poping up in 
  first
  google results. yesterday my mate asked me why we don't have 
  gtk+
  bindings for D. i answered just google gtkD, he did it and 
  the first
  result was dsource link, which points just to svn repo, w/o 
  docs and
  such. this is disaster.
 
 Erm, that was due to a misconfiguration from a last-minute 
 change. Sorry. Fixed now.
ah, there is another post in D.learn, where guy tries to find python-d
and hit dsource instead of bitbucket. kill that dsource monster,
please! it hurts the whole community and it hurts newcomers alot!


signature.asc
Description: PGP signature


Re: dsource.org moved

2014-12-03 Thread Walter Bright via Digitalmars-d-announce

On 12/3/2014 1:32 PM, ketmar via Digitalmars-d-announce wrote:

thank you. but i mean that dsource.org is still poping up in results
and it contains alot of obsolete projects. some projects was forked
long time ago and their dsource pages weren't updated, some are just
dead. people keep hitting dsource, trying projects and leaving with a
great frustration: ah, nothing is working, what a mess! besides, all
that projects seems dead, so seems D.

i think that the whole dsource site must be shut down and replaced with
a stub (except planetD) to stop this disease. that site was great, but
now it does more harm than good.


Makes sense.



Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 21:26:19 UTC, ketmar via 
Digitalmars-d-announce wrote:

On Wed, 03 Dec 2014 20:22:31 +
Vladimir Panteleev via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

On Wednesday, 3 December 2014 at 20:19:34 UTC, ketmar via 
Digitalmars-d-announce wrote:

 On Wed, 03 Dec 2014 14:47:09 +0100
 Jacob Carlborg via Digitalmars-d-announce
 digitalmars-d-announce@puremagic.com wrote:
 auto u = new class M {};
 
 Exactly what is referred to here? The type inference or the 
 anonymous class? The answer is anonymous class.

 besides, it's not anonymous, it has a name!

The type is anonymous.
so what that M after `class` means then? anonymous with a 
name,

that's cool! ;-)


That's the name of the parent class :)


Re: dsource.org moved

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 21:37:33 UTC, ketmar via 
Digitalmars-d-announce wrote:

On Wed, 03 Dec 2014 20:42:27 +
Vladimir Panteleev via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

On Wednesday, 3 December 2014 at 20:24:05 UTC, ketmar via 
Digitalmars-d-announce wrote:

 On Wed, 03 Dec 2014 09:13:12 +
 Dejan Lekic via Digitalmars-d-announce
 digitalmars-d-announce@puremagic.com wrote:

 I think DSource should not be shut down, but instead 
 modernised
 and open for new D-based projects. We, old D programmers, 
 just

 love DSource! :)
 the problem with current dsource is that keeps poping up in 
 first
 google results. yesterday my mate asked me why we don't have 
 gtk+
 bindings for D. i answered just google gtkD, he did it and 
 the first
 result was dsource link, which points just to svn repo, w/o 
 docs and

 such. this is disaster.

Erm, that was due to a misconfiguration from a last-minute 
change. Sorry. Fixed now.
ah, there is another post in D.learn, where guy tries to find 
python-d

and hit dsource instead of bitbucket. kill that dsource monster,
please! it hurts the whole community and it hurts newcomers 
alot!


Violence is not the answer.

I'll look into adding a warning banner to the site template.


Re: dsource.org moved

2014-12-03 Thread ponce via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 21:32:27 UTC, ketmar via 
Digitalmars-d-announce wrote:


i think that the whole dsource site must be shut down and 
replaced with
a stub (except planetD) to stop this disease. that site was 
great, but

now it does more harm than good.


Alternatively: use robots.txt and don't let Google index that.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread MattCoder via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 13:02:35 UTC, Martin Krejcirik 
wrote:
I think all code fragments should have just one exact answer 
(like number or single word) a any programmer without specific 
D knowledge should be able to answer them correctly. Asking for 
D feature names in not good IMHO.


I agree.

Matheus.



Re: dsource.org moved

2014-12-03 Thread Vladimir Panteleev via Digitalmars-d-announce

On Wednesday, 3 December 2014 at 22:48:50 UTC, ponce wrote:
On Wednesday, 3 December 2014 at 21:32:27 UTC, ketmar via 
Digitalmars-d-announce wrote:


i think that the whole dsource site must be shut down and 
replaced with
a stub (except planetD) to stop this disease. that site was 
great, but

now it does more harm than good.


Alternatively: use robots.txt and don't let Google index that.


This will not help: clawling != indexing, and robots.txt only 
stops crawling. robots.txt will not prevent a site from appearing 
in Google search results, and it will not help in lowering a 
site's search popularity. All it'll do is prevent Google from 
showing snippets of Dsource pages, and indexing links from 
DSource.


The existing search result ratings for DSource are because of all 
the existing links to it, and not so much because of the content 
on DSource.


Re: dsource.org moved

2014-12-03 Thread Walter Bright via Digitalmars-d-announce

On 12/3/2014 2:42 PM, Vladimir Panteleev wrote:

Violence is not the answer.

I'll look into adding a warning banner to the site template.


Alternatively, replace the pages in dsource with forwarding pages. The page 
forwarded to can have two links - one to the original page, the other to the 
modern one.


Re: dsource.org moved

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Wed, 03 Dec 2014 23:26:41 +
Vladimir Panteleev via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

 The existing search result ratings for DSource are because of all 
 the existing links to it, and not so much because of the content 
 on DSource.
that's why it should be replaced with stub. google ranking algos knows
about sites without content and will lower such sites even if they are
linked from alot of other sites.

btw, stub can contain email which authors of the hosted projects can use
to get their sources if necessary. but i doubt that anyone will use it.


signature.asc
Description: PGP signature


Re: dsource.org moved

2014-12-03 Thread Kapps via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 23:26:42 UTC, Vladimir Panteleev 
wrote:
This will not help: clawling != indexing, and robots.txt only 
stops crawling. robots.txt will not prevent a site from 
appearing in Google search results, and it will not help in 
lowering a site's search popularity. All it'll do is prevent 
Google from showing snippets of Dsource pages, and indexing 
links from DSource.


The existing search result ratings for DSource are because of 
all the existing links to it, and not so much because of the 
content on DSource.


What about using the noindex meta tag 
(https://support.google.com/webmasters/answer/93710)?


Re: dsource.org moved

2014-12-03 Thread via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 23:26:42 UTC, Vladimir Panteleev 
wrote:
The existing search result ratings for DSource are because of 
all the existing links to it, and not so much because of the 
content on DSource.


The site owner has some control using webmaster tools:

https://support.google.com/webmasters/topic/1724262?hl=enref_topic=3309469

Btw, downloads.dlang.org should specify robots.txt and 
dlang.org/downloads.html should consider specifying 
noindex/nofollow on links.


https://support.google.com/webmasters/answer/79812?hl=en


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Faux Amis via Digitalmars-d-announce

This has to be a joke!

I couldn't answer a single question:


What is the name of the D language syntax feature illustrated in the following 
fragment of D code?

string a = x5095 f9 95d723c2;

Seems like hex to me


What is the name of the D language syntax feature illustrated in the following 
fragment of D code?

/+ t = w * g; /+ t = 47; +/ +/

Those look like comments to me


What is the name of the D language syntax feature illustrated in the following 
fragment of D code?

auto h = new class C {};
Ah, finally one I understand. Wait, you want the name? No clue, have to 
look it up.



What will be the return value of the following function?

int b()
{
  return iota(29).reduce!max;
}

iota.. yeah I have heard of it, never used it though.

CAPTCHAs: Simple for humans, difficult for computer; Or the other way 
around apparently.




On Tue 02/12/2014 22:41, Vladimir Panteleev wrote:

I'm sure you all are as tired of the occasional spam that hits these
lists as I was deleting it. (Mailing list users in particular, I guess,
since we can't delete an email once it was sent out.) Most of the spam
was coming in through the forum, so I suppose I was responsible for
[not] keeping it out.

Although forum.dlang.org has had a spam check and used reCAPTCHA since
it was announced, it is only somewhat effective against fully-automated
bots - it is powerless against humans paid to post spamverts on forums
web-wide, which is what the current spam economy seems to be gravitating
towards.

Enter DCaptcha, a question-answer challenge tailored for D programmers.
Its goals are to challenge posters of suspicious-looking content with
questions that should be easy to answer to D programmers, and impossible
for non-technical people with no incentive to learn or research stuff
(i.e. spammers). DCaptcha is already in use on the D wiki
(wiki.dlang.org), with great success - DCaptcha's debut cut the
short-lived explosion in wiki spam to zero.

For an idea of what sort of questions DCaptcha asks, you can demo it on
the following page, so you don't have to clutter the forum with test posts:

http://wiki.dlang.org/extensions/DCaptcha/demo.php

Source code:

https://github.com/CyberShadow/dcaptcha

Pull requests for more challenges are welcome. You can find some goals
for new challenges at the top of dcaptcha.d.

Previous discussion (w.r.t. the D wiki):

http://forum.dlang.org/post/tpflbvlfutjwyvqmo...@forum.dlang.org




Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread MattCoder via Digitalmars-d-announce
On Tuesday, 2 December 2014 at 21:41:28 UTC, Vladimir Panteleev 
wrote:
Although forum.dlang.org has had a spam check and used 
reCAPTCHA since it was announced, it is only somewhat effective 
against fully-automated bots - it is powerless against humans 
paid to post spamverts on forums web-wide, which is what the 
current spam economy seems to be gravitating towards.


Coincidence? :)

http://googleonlinesecurity.blogspot.com.br/2014/12/are-you-robot-introducing-no-captcha.html

Matheus.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Mike via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 19:42:39 UTC, Ary Borenszweig 
wrote:

On 12/2/14, 6:41 PM, Vladimir Panteleev wrote:


Enter DCaptcha


I think this could work with just two or three variants of a 
question. Always ask what's the return value of the function.


1. int foo() { return 8 % 3; }

I don't think non-programmers know what that '%' symbol is, but 
programmers of any language would recognize this.


2. int foo() { int x = 8; x++; x++; return x; }

I don't think non-programmers would guess ++ is increment, but 
programmers most probably know it.


3. bool foo() { return 42 != 30 };

I don't think non-programmers know what != is.


I had to maintain a technical forum last year that was getting 
spammed like crazy.  I added the question how many bits are in a 
byte?, and the spam vanished.  Based on that experience, I think 
the bar can be set very low.


I prefer something like the examples above.  Honestly, I don't 
know what the names of many syntax features are, but I usually 
know how to use and interpret them.  But, one positive side 
effect of this is that if I ever do get challenged with a what 
is the name of this feature? question, I will finally be 
motivated to go look it up.


Mike


Re: Help getting DWT for D2 using phobos

2014-12-03 Thread Olagsfark via Digitalmars-d-announce

On Saturday, 29 November 2014 at 12:24:36 UTC, Gary Willoughby
wrote:


Get the source from here:
https://github.com/d-widget-toolkit/dwt

Read the readme on that page and follow the instructions. The 
source is contained in sub modules so you need checkout with 
git (recursively) *not* download the zip.


Thanks for the help gary, i guess i'll have to install git.


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Thu, 04 Dec 2014 04:02:46 +
Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com
wrote:

 I had to maintain a technical forum last year that was getting 
 spammed like crazy.  I added the question how many bits are in a 
 byte?
six. am i failed?


signature.asc
Description: PGP signature


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Rikki Cattermole via Digitalmars-d-announce

On 4/12/2014 8:13 p.m., ketmar via Digitalmars-d-announce wrote:

On Thu, 04 Dec 2014 04:02:46 +
Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com
wrote:


I had to maintain a technical forum last year that was getting
spammed like crazy.  I added the question how many bits are in a
byte?

six. am i failed?


Google is your friend.

https://www.google.co.nz/webhp?sourceid=chrome-instantion=1espv=2ie=UTF-8#q=1+byte+to+bits



Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Jacob Carlborg via Digitalmars-d-announce

On 2014-12-03 23:39, Vladimir Panteleev wrote:


That's the name of the parent class :)


Or interface, if I recall correctly.

--
/Jacob Carlborg


Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread ketmar via Digitalmars-d-announce
On Thu, 04 Dec 2014 20:31:47 +1300
Rikki Cattermole via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

 On 4/12/2014 8:13 p.m., ketmar via Digitalmars-d-announce wrote:
  On Thu, 04 Dec 2014 04:02:46 +
  Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com
  wrote:
 
  I had to maintain a technical forum last year that was getting
  spammed like crazy.  I added the question how many bits are in a
  byte?
  six. am i failed?
 
 Google is your friend.
why not Knuth? Knuth is my friend, and MIX byte is of 6 bits.


signature.asc
Description: PGP signature