Re: dpaste web site

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d

How about just using a single click recaptcha:

https://www.google.com/recaptcha/intro/index.html



Re: dpaste web site

2015-09-16 Thread nazriel via Digitalmars-d
On Wednesday, 16 September 2015 at 06:52:57 UTC, Ola Fosheim 
Grøstad wrote:

How about just using a single click recaptcha:

https://www.google.com/recaptcha/intro/index.html


Used that before - still was getting spam.

As Vladimir mentioned - it costs 0.001$ to get Captcha solved :)


Re: dpaste web site

2015-09-16 Thread Andrea Fontana via Digitalmars-d

On Wednesday, 16 September 2015 at 13:46:07 UTC, nazriel wrote:
On Wednesday, 16 September 2015 at 06:52:57 UTC, Ola Fosheim 
Grøstad wrote:

How about just using a single click recaptcha:

https://www.google.com/recaptcha/intro/index.html


Used that before - still was getting spam.

As Vladimir mentioned - it costs 0.001$ to get Captcha solved :)


Why don't you try to check some stats over post?

I mean: to check some frequencies of common d keywords/combo like 
"class", "struct", "int", "float", "if(" "while(", "(int ", 
"(float ", etc that are not common in plain english used by 
spammers...





Re: dpaste web site

2015-09-16 Thread John Colvin via Digitalmars-d

On Wednesday, 16 September 2015 at 16:12:03 UTC, Kagamin wrote:
On Wednesday, 16 September 2015 at 13:54:36 UTC, Andrea Fontana 
wrote:
I mean: to check some frequencies of common d keywords/combo 
like "class", "struct", "int", "float", "if(" "while(", "(int 
", "(float ", etc that are not common in plain english used by 
spammers...


Solving dcaptcha costs maybe 1$, so it should solve the problem 
of human spammers (too expensive).


I dunno, I reckon I could solve them in ~5 seconds each, 
especially with practice... At $1/solve it'd be one hell of an 
hourly rate!


Re: dpaste web site

2015-09-16 Thread Kagamin via Digitalmars-d
On Wednesday, 16 September 2015 at 13:54:36 UTC, Andrea Fontana 
wrote:
I mean: to check some frequencies of common d keywords/combo 
like "class", "struct", "int", "float", "if(" "while(", "(int 
", "(float ", etc that are not common in plain english used by 
spammers...


Solving dcaptcha costs maybe 1$, so it should solve the problem 
of human spammers (too expensive).


Re: dpaste web site

2015-09-15 Thread nazriel via Digitalmars-d
On Wednesday, 9 September 2015 at 23:55:27 UTC, Vladimir 
Panteleev wrote:

On Wednesday, 9 September 2015 at 22:59:42 UTC, nazriel wrote:

I really have no idea,
I tried to copy and paste those links and indeed they trigger 
recaptcha...
Not sure if recaptcha is so weak or indeed it is a human 
posting those links %)


It costs 0.1 cent ($0.001) to have a human solve a reCAPTCHA.


I will look into methods used in this forum and vibe.d forum.


For forum.dlang.org and wiki.dlang.org I created DCaptcha, 
which asks a D programming question: 
https://github.com/CyberShadow/dcaptcha


It is only activated if Akismet or other spam detectors report 
"spam". It used to have many questions of various difficulty, 
but currently it only asks 1 type of question. So far this 
blocked 100% of spam.


AFAIK vibe.d forum uses a Bayesian filter which IIRC generally 
works well but had to be tweaked once or twice. This could work 
well for DPaste if it's trained to distinguish D code from 
not-code.


Nice,

I've tried your idea (somehow). Lets see if it helps.

Anyways:
* I've implemented better captcha mechanism + blocking system.
If you fail captcha for 3 times in a row - pasting will be 
disabled for 15 minutes.
* I've fixed registration with GitHub, Facebook and internal 
database (captcha wasn't working there and api keys expired for 
those services)



The next step will be improving Backend itself so I will get rid 
of errors when running examples on main dlang page.


Also @Vladimir, thanks for the pull request regarding examples 
and for making me a "watcher" in dpaste related issues on 
bugzilla.



Best regards,
Damian Ziemba



Re: dpaste web site

2015-09-15 Thread Steven Schveighoffer via Digitalmars-d

On 9/15/15 7:51 PM, nazriel wrote:


Also @Vladimir, thanks for the pull request regarding examples and for
making me a "watcher" in dpaste related issues on bugzilla.


Thank YOU Damian for continuing to work on this, it's very important to 
the D community!


-Steve


Re: dpaste web site

2015-09-09 Thread BBasile via Digitalmars-d

On Wednesday, 9 September 2015 at 04:17:13 UTC, nazriel wrote:

On Sunday, 30 August 2015 at 15:05:41 UTC, BBasile wrote:

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven 
Schveighoffer wrote:

[...]


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Got a little bit behind with D related stuff and auto-updates 
of DMD stopped working for some reason.


That's why we are on 2.065.

Regards,
Damian Ziemba


since mothes 90% of the new content is spam.
http://dpaste.dzfl.pl/pastes?p=8


Ok I've changed algorithm for spam detection
Also tried to remove some of the spam already posted.


There are still some links sent. Either the bot who targets 
DPaste works well or...no i can't believe this actually a human 
being who send this manually ?!


However thx, a lot, i think that the biggest doleance that people 
had was to have an up-to-date compiler.


Re: dpaste web site

2015-09-09 Thread Vladimir Panteleev via Digitalmars-d

On Wednesday, 9 September 2015 at 22:59:42 UTC, nazriel wrote:

I really have no idea,
I tried to copy and paste those links and indeed they trigger 
recaptcha...
Not sure if recaptcha is so weak or indeed it is a human 
posting those links %)


It costs 0.1 cent ($0.001) to have a human solve a reCAPTCHA.


I will look into methods used in this forum and vibe.d forum.


For forum.dlang.org and wiki.dlang.org I created DCaptcha, which 
asks a D programming question: 
https://github.com/CyberShadow/dcaptcha


It is only activated if Akismet or other spam detectors report 
"spam". It used to have many questions of various difficulty, but 
currently it only asks 1 type of question. So far this blocked 
100% of spam.


AFAIK vibe.d forum uses a Bayesian filter which IIRC generally 
works well but had to be tweaked once or twice. This could work 
well for DPaste if it's trained to distinguish D code from 
not-code.




Re: dpaste web site

2015-09-09 Thread nazriel via Digitalmars-d

On Wednesday, 9 September 2015 at 12:50:17 UTC, BBasile wrote:

On Wednesday, 9 September 2015 at 04:17:13 UTC, nazriel wrote:

On Sunday, 30 August 2015 at 15:05:41 UTC, BBasile wrote:

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:

[...]


since mothes 90% of the new content is spam.
http://dpaste.dzfl.pl/pastes?p=8


Ok I've changed algorithm for spam detection
Also tried to remove some of the spam already posted.


There are still some links sent. Either the bot who targets 
DPaste works well or...no i can't believe this actually a human 
being who send this manually ?!




I really have no idea,
I tried to copy and paste those links and indeed they trigger 
recaptcha...
Not sure if recaptcha is so weak or indeed it is a human posting 
those links %)


I will look into methods used in this forum and vibe.d forum.
They are using some 3rd party spam checking services I think.
Maybe it will be worth a shot.

However thx, a lot, i think that the biggest doleance that 
people had was to have an up-to-date compiler.




Re: dpaste web site

2015-09-08 Thread nazriel via Digitalmars-d

On Sunday, 30 August 2015 at 15:05:41 UTC, BBasile wrote:

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven 
Schveighoffer wrote:

[...]


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Got a little bit behind with D related stuff and auto-updates 
of DMD stopped working for some reason.


That's why we are on 2.065.

Regards,
Damian Ziemba


since mothes 90% of the new content is spam.
http://dpaste.dzfl.pl/pastes?p=8


Ok I've changed algorithm for spam detection
Also tried to remove some of the spam already posted.



Re: dpaste web site

2015-09-03 Thread ZombineDev via Digitalmars-d

On Monday, 31 August 2015 at 12:22:24 UTC, nazriel wrote:

Anyways, dmd is up to 2.068.


That's great! Thank you very much.


Open sourcing will take little bit more time.


Open sourcing would be awesome!


Re: dpaste web site

2015-09-03 Thread ixid via Digitalmars-d
On Monday, 31 August 2015 at 22:24:22 UTC, Steven Schveighoffer 
wrote:

On 8/31/15 8:22 AM, nazriel wrote:



Anyways, dmd is up to 2.068.


Awesome, thank you very much! Any chance the git version could 
be updated as well? Still seems to be old (2013).



Open sourcing will take little bit more time.

Auto-update script is updated too.
Thanks Martin!


Seconded!

-Steve


Further to this thread. I believe this has been updated to the 
latest DMD but the weather code sample on the front page is still 
killed.




Re: dpaste web site

2015-09-03 Thread nazriel via Digitalmars-d
On Monday, 31 August 2015 at 22:24:22 UTC, Steven Schveighoffer 
wrote:

On 8/31/15 8:22 AM, nazriel wrote:



Anyways, dmd is up to 2.068.


Awesome, thank you very much! Any chance the git version could 
be updated as well? Still seems to be old (2013).


Consider it done ;)
(I should fix it tomorrow)




Open sourcing will take little bit more time.

Auto-update script is updated too.
Thanks Martin!


Seconded!

-Steve




Re: dpaste web site

2015-09-03 Thread nazriel via Digitalmars-d

On Thursday, 3 September 2015 at 15:59:16 UTC, ixid wrote:
On Monday, 31 August 2015 at 22:24:22 UTC, Steven Schveighoffer 
wrote:

On 8/31/15 8:22 AM, nazriel wrote:



Anyways, dmd is up to 2.068.


Awesome, thank you very much! Any chance the git version could 
be updated as well? Still seems to be old (2013).



Open sourcing will take little bit more time.

Auto-update script is updated too.
Thanks Martin!


Seconded!

-Steve


Further to this thread. I believe this has been updated to the 
latest DMD but the weather code sample on the front page is 
still killed.


This is due to the constrainer of the container dpaste is running 
in.


I will try to get in touch with Vladimir to discuss alternatives 
to UserModeLinux because it is the problem currently.


Once we move to something more performant and less restrictive 
(LXC, Docker, some SELinux stuff, Qemu?) - we should be fine with 
all errors.


Best regards,
Damian Ziemba


Re: dpaste web site

2015-08-31 Thread BBasile via Digitalmars-d

On Monday, 31 August 2015 at 12:22:24 UTC, nazriel wrote:

On Sunday, 30 August 2015 at 15:05:41 UTC, BBasile wrote:

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven 
Schveighoffer wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this 
and can we get it updated? It's going to start hurting us 
pretty severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Got a little bit behind with D related stuff and auto-updates 
of DMD stopped working for some reason.


That's why we are on 2.065.

Regards,
Damian Ziemba


since mothes 90% of the new content is spam.
http://dpaste.dzfl.pl/pastes?p=8


Looks like the recaptcha isn't working too well.

I will try to look into this soon.

Anyways, dmd is up to 2.068.

Open sourcing will take little bit more time.

Auto-update script is updated too.
Thanks Martin!

Regards,
Damian Ziemba


Thx.
This fixes indirectly a problem with one of the sample on the 
homepage.
Does cleaning the spam could be automated  ? for example test if 
each line of a paste is an URL ? Also statistic on D keywords 
within a paste with a threshold, etc these kinds of stuffs.


Re: dpaste web site

2015-08-31 Thread Steven Schveighoffer via Digitalmars-d

On 8/31/15 8:22 AM, nazriel wrote:



Anyways, dmd is up to 2.068.


Awesome, thank you very much! Any chance the git version could be 
updated as well? Still seems to be old (2013).



Open sourcing will take little bit more time.

Auto-update script is updated too.
Thanks Martin!


Seconded!

-Steve


Re: dpaste web site

2015-08-31 Thread nazriel via Digitalmars-d

On Sunday, 30 August 2015 at 15:05:41 UTC, BBasile wrote:

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven 
Schveighoffer wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this 
and can we get it updated? It's going to start hurting us 
pretty severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Got a little bit behind with D related stuff and auto-updates 
of DMD stopped working for some reason.


That's why we are on 2.065.

Regards,
Damian Ziemba


since mothes 90% of the new content is spam.
http://dpaste.dzfl.pl/pastes?p=8


Looks like the recaptcha isn't working too well.

I will try to look into this soon.

Anyways, dmd is up to 2.068.

Open sourcing will take little bit more time.

Auto-update script is updated too.
Thanks Martin!

Regards,
Damian Ziemba





Re: dpaste web site

2015-08-30 Thread BBasile via Digitalmars-d

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven 
Schveighoffer wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this and 
can we get it updated? It's going to start hurting us pretty 
severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Got a little bit behind with D related stuff and auto-updates 
of DMD stopped working for some reason.


That's why we are on 2.065.

Regards,
Damian Ziemba


since mothes 90% of the new content is spam.
http://dpaste.dzfl.pl/pastes?p=8


Re: dpaste web site

2015-08-26 Thread wobbles via Digitalmars-d

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven 
Schveighoffer wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this and 
can we get it updated? It's going to start hurting us pretty 
severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Got a little bit behind with D related stuff and auto-updates 
of DMD stopped working for some reason.


That's why we are on 2.065.

Regards,
Damian Ziemba


Probably stopped working because the downloads section of the 
website changed around that time iirc.

Thanks for working on it!


Re: dpaste web site

2015-08-26 Thread Martin Nowak via Digitalmars-d

On Wednesday, 26 August 2015 at 05:54:44 UTC, nazriel wrote:
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven 
Schveighoffer wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this and 
can we get it updated? It's going to start hurting us pretty 
severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Nice

Got a little bit behind with D related stuff and auto-updates 
of DMD stopped working for some reason.


There is an API now to get the latest version.
http://ftp.digitalmars.com/LATEST

And you can get the necessary package generically via
http://downloads.dlang.org/releases/2.x/$LATEST/dmd.$LATEST.linux.zip.


Re: dpaste web site

2015-08-25 Thread nazriel via Digitalmars-d
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven Schveighoffer 
wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this and 
can we get it updated? It's going to start hurting us pretty 
severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


I will work on it.

Should be fixed before weekend.

I will also open source dpaste frontend and backend so such 
problems can be avoided in the future.


Got a little bit behind with D related stuff and auto-updates of 
DMD stopped working for some reason.


That's why we are on 2.065.

Regards,
Damian Ziemba


Re: dpaste web site

2015-08-20 Thread Mike via Digitalmars-d
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven Schveighoffer 
wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this and 
can we get it updated? It's going to start hurting us pretty 
severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


It's hosted by Vladamir, but currently not maintained by anyone 
as far as I can tell.  If you email Vladamir he'll give you the 
necessary details you need to work on.  I gave it a try in an 
attempt to add a more recent compiler, but I really couldn't make 
sense of the implementation, and had to throw in the towel.


Mike


Re: dpaste web site

2015-08-20 Thread rsw0x via Digitalmars-d
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven Schveighoffer 
wrote:
dpaste.dzfl.pl is severely out of date. Who maintains this and 
can we get it updated? It's going to start hurting us pretty 
severely if we use it as our go-to site for pasting 
compiled-and-run d snippets, but it's only at version 2.065.


-Steve


Tried Wandbox?
http://melpon.org/wandbox/permlink/5d1KzyiEo6Wpuggw


dpaste web site

2015-08-20 Thread Steven Schveighoffer via Digitalmars-d
dpaste.dzfl.pl is severely out of date. Who maintains this and can we 
get it updated? It's going to start hurting us pretty severely if we use 
it as our go-to site for pasting compiled-and-run d snippets, but it's 
only at version 2.065.


-Steve