Author

Topic: [DVC]DevCoin - Official Thread - Moderated - page 270. (Read 1058949 times)

full member
Activity: 232
Merit: 104
In the spirit of my understanding of Open Source, what follows is the script that handles incoming emails at http://trollkeep.com/forum/ . As it is not deemed eligible for a bounty until code is changed in the SMF code to allow outgoing emails to non-registered forum entities it is given as a labor of love and a test to see how much cooperation is to be found in this community.

Code:

#!/usr/bin/php -q

//                    GNU GENERAL PUBLIC LICENSE
//                       Version 3, 29 June 2007

//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.

//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.

//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see .
//
//    novacadian - Jan. 6, 2014

//DB access info
// Replace below value with the access name for the Database eg. "admin"
$dbuser 'MySQL User Name';
// Replace below value with the password for the Database eg. "password"
$dbpass 'MySQL Password';
// Replace below value with the database name for the Database eg. "smf_DB"
$dbname 'MySQL Database';
// Replace below value with the location the Database eg. "localhost"
$dbhost 'MySQL Location';

$from "";
$subject "";
$message "";
$to "";
$headers "";
$MaxSizeInKB 1024;
$email "";

// Open STDIN
$fp fopen("php://stdin""r");
if (!
$fp)
{
        echo 
"Nothing in Standard In!";
        
fclose($fp);
        exit();
}

//  MaxSizeInKB should be adjusted if a larger size is desired.
if ($MaxSizeInKB == -1)
{
        while (!
feof($fp))
        {
                
$email .= fread($fp1024);
        }
}
else
{
        while (!
feof($fp) && $i_limit $MaxSizeInKB)
        {
                
$email .= fread($fp1024);
                
$i_limit++;
        }
}
// Close STDIN
fclose($fp);
// Break STDIN's input into workable parts.
$lines explode("\n"$email);

// Flag used to terminate below for loop.
$parseheaders true;
// Move through the input from STDIN parsing needed data
for ($i=0$i count($lines); $i++)
{
        if (
$parseheaders)
        {
                
$headers .= $lines[$i]."\n";
                if (
preg_match("/^From: (.*)/"$lines[$i], $values))
                {
                        
$from $values[1];
                        
$words explode(" "$from);
                        for (
$x=0$x count($words); $x++)
                        {
                                
$pos strpos($words[$x], "@");
                                if (
$pos == TRUE)
                                {
                                        
$tmp_words str_replace ('>'''str_replace('<'''$words[$x]));
                                        list(
$froma$fromb) = explode('@'$tmp_words);
                                }
                        }
                }
                if (
preg_match("/^Subject: (.*)/"$lines[$i], $values))
                {
                        
$subject $values[1];
                }
                if (
preg_match("/^To: (.*)/"$lines[$i], $values))
                {
                        
$to $values[1];
                }
        }
        else
        {
                
$message .= $lines[$i]."\n";
        }
        if (
trim($lines[$i])=="")
        {
                
$parseheaders false;
        }
}

//Below will get Member Name the email is addressed to so as to check against the SFM database.
$to str_replace ('>'''str_replace('<'''$to));
list(
$toa$tob) = explode('@'$to);
// Place the email address of sender at the bottom of the PM
$message.="\n\n===========================================================\nThis message was sent from: ".$tmp_words;

//Open the DB
$db mysql_connect('localhost','dbuser','$dbpass') or die("Database error");
mysql_select_db($dbname$db);

//Get the MemberID of the receiver of the email.
$query1 sprintf("select id_member from smf_members where member_name='$toa'");
$result mysql_query($query1);
$row mysql_fetch_row($result);
$memberid=$row[0];

//Check for the MemberID of the sender of the email
$query2 sprintf("select id_member from smf_members where member_name='$froma'");
$result mysql_query($query2);
$row mysql_fetch_row($result);
$frommemberid=$row[0];

//If no match is found have it send from Mailman. The Mailman account should be created in SMF. It happened
//to be instance 4 on the developmental site.
if ($frommemberid == FALSE) {$frommemberid=4;}

//Get a random number to place into id_pm_head so that id_pm can be looked up.
$tmp_id_pm_head=rand(1,500000);

//Place info in smf_personal_messages
$query3 sprintf("insert into smf_personal_messages (id_pm_head,id_member_from,from_name,subject,body) values
    (
$tmp_id_pm_head,$frommemberid,'$froma','$subject','$message')");

//Look up id_pm using the random number as key
$query4 sprintf("select id_pm from smf_personal_messages where id_pm_head=$tmp_id_pm_head");
$results =  mysql_query($query4);
$row mysql_fetch_row($results);
$id_pm=$row[0];

//Change id_pm_head to match id_pm
$query5 sprintf("update smf_personal_messages set id_pm_head=$id_pm where id_pm=$id_pm");
$result =  mysql_query($query5);

//Place info in smf_pm_recipients
$query6 sprintf("insert into smf_pm_recipients (id_pm,id_member,is_new,is_read) values ($id_pm,$memberid,1,0)");
$result mysql_query($query6);
//Close database
mysql_close($db);

// EOF

// If the write to the DB fails it would be a good idea to catch the email in caughtemails.txt to have a
// backup until the script is deemed bullet proof.
//$file = 'caughtemails.txt';
//$content.="\nFrom:".$from."\n";
//$content.="\nTo:".$to."\n";
//$content.="\nSubject:".$subject."\n";
//$content.="\nMessage:".$message."\n";
//$content.="\nTo MemberName:".$toa."\n";
//$content.="To MemberID:".$memberid."\n";
//$content.="\nFrom Name:".$froma."\n";
//$content.="From MemberID:".$frommemberid."\n";
//$content.="Sender Email:".$tmp_words."\n";
//$content.="\n\n==============================================\n\n";
//file_put_contents($file, $content);


?>


- Nova

[Edit: Had DB name hard coded.]

[Edit: This script does no longer meet the criteria of the project as far as the challenge–response that is requited by step 2. That is now being worked on and will be released once complete. - Jan 9, 2014]
hero member
Activity: 935
Merit: 1015
Good morning all!  I woke up to an unexpected surprise of a large DVC deposit that I have no idea who its from nor what its for.  If it was an accidental transaction, the sender can PM me with the exact amount sent so that I know they are the rightful owner and I will return it.  Thanks.  It was sent to the address in my signature.

I got one, too. I suspect it's about the issue below.

..
Notabot would stop selling his devcoins, and send all but 5 million back to people at the end of December, and then send all but 5 million back at the end of the round 30 payment at the end of January. For a year, round 31 to round 42 inclusive, a third of his earnings would be sent back.

Indeed that's what it's from. Notabot decided to not hold back 5 million as I recommended, he sent all his 20 million devcoins. I then sent it in turn in proportion to the current account 31 file. The payments are currently at:
https://raw.github.com/Unthinkingbit/charity/master/payment.csv

but that file changes once in a while so it's not a permanent record. The block record is permanent, and the transactions are in the following blocks:
http://darkgamex.ch:2751/block/d9ff14adbc1f8cf78e7f4c8690aa215f2bf1fb53bbb7f04dfea13c82c0821941
http://darkgamex.ch:2751/block/6f8c79db2d47849aae2fb0839d03ea0b45a6cca9e292ac52c1b99c960536f2c3
http://darkgamex.ch:2751/block/6376ded227406452c84b4218814c53522f3a1d4b70e0f5c25f2723840509f250

The next and last payment will be at the end of this payment round, about Jan 28, 2014.
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
Look I understand what you want to say, but...

“Understanding is the first step to acceptance...”


― J.K. Rowling, Harry Potter and the Goblet of Fire

lol, damn I wanted to get in a philosophical debate with you, and you try to disarm me with this harry potter one liner.

 Grin
full member
Activity: 232
Merit: 104
Look I understand what you want to say, but...

“Understanding is the first step to acceptance...”


― J.K. Rowling, Harry Potter and the Goblet of Fire
full member
Activity: 232
Merit: 104
So you suggest that competition is wrong?

No. Just not the general idea behind Open Source.

You somehow seem to apply that the programmers can't be customers themselves?

The "... or choose not to..." was intended to remove that notion.

- Nova
newbie
Activity: 55
Merit: 0
Hi , i know all you guys are working hard to promote devcoin and i think your doing a great job .
sure devcoin is going to have a good year this year .The problem so far as i see it ...not just with devcoin , but all the cryptocurrenceys in general including bitcoin: is there is nothing much out there to spend it on.!
 speculation seems to be the only reason to get involved.
i have been thinking of ways that could make devcoin more attractive and products that everyone needs on a daily basis that could be purchased with devcoin to get a jump up on all the other currencies out there.. i am in the uk and the product i have come up with is mobile phone credit.
when you buy a ten pound  top up voucher from a conveinance store the store owner makes 40 pence no doubt the payment processing teminal also makes about 60p so you only realy get nine pounds of airtime for your your ten. there are websites that you can use to top up anyones phone not just your own just buy simply entering their number. therfore if it is possible to buy airtime direct or wholesale direct from the phone networks and sell top up vouchers accepting devcoin by cutting the middle men out it should be possible to sell ten pounds credit for nine pounds which would be very attractive . the cryptocurency comming in for this service of course could also be sold on again at a mark up to keep it turning over and at the same time get a lot of atention to devcoin by word of mouth ebay advertizing ect. i have attempted to make a  demo website using a webbuilder as i am not a techie just to show the idea. not sure if i should post it here as i dont want to tout bussiness in here and kicked off.
i would like to get involved more somehow as i think devcoin is the only cryptocurrency that has a very long term future because its not just about making the money it,s about the people behind it and getting a fair share of work put in . none of the others do this so it really is a no brainer
looking forward to your thoughts any feedback. happy new year to all jason t
Hi. Don't know how that's done with mobile credit and accounts but it's a good idea, particularly for the younger demographic and particularly if there's some price or transaction advantage. I don't see any harm in showing a demo of a devcoin businees here Smiley - instead your biggest risk is if it's a good idea it might be copied and implemented before you're done, alternatively maybe someone with the skillset could help? I'm also in the UK and completely selfishly a local version of the giftcard enterprise would get regular business from me.

robcop: http://faucet.d.evco.in/

Thank you for your feedback, at the moment this is just an idea to help raise awareness of devcoin as no mobile network accepts cryptocurrency for pay as you go phone credit. also not just young people, but many that use pay as you go do do because they do not have access to a banking account to set up a contract with a provider. any of these people can set up a crypto account and those that have one already would find phone credit a usefull product to spend there coin on . just saying you can now top up your phone on any uk network using devcoin should get some attention. even if the site accepts other currencys also. to prevent copycats doing a better job and stealing the idea i have made a demo website that charges no fees or commision. juas accepting tips if you like the service just to see if there is any interest in the idea. buying airtime at a discount later could make it profitable and then switch to only accepting devcoin when there are some funds in the account and it is a little more known . any help or feedback is much appreciated. jasont   wwwcryptocredit.co.uk  and cryptocreditphones.com
legendary
Activity: 1484
Merit: 1007
spreadcoin.info

I want to add, that open source does not per definition create cooperation.
Simply making something open source does not imply or guarantee whatsoever that a cooperation will develop.
There is no proof for that.
Cooperation is driven by other factors.
Open Source does merely facilitate access to everybody, but it doesn't handle or influence the motivation of the developers in any form!

If you cannot see a cooperative spirit in releasing code which encourages others to add, modify and use at their will then so be it. Let`s just call it non-competitive or non-capitalistic by definition.

- Nova

Merely releasing code does not encourage others to do anything in particular. You apply a causality that simply doesn't exist.

Furthermore you apply that cooperation can't be competitive?

I can imagine many open source projects where a (friendly) competition between forks emerges, and it makes sense this way.
If one fork has a giant innovation leap, the other fork might just give up their own plans, and not feel like losers, because the innovation is good for everyone. Everyone would realize a paradigm shift and adjust and not feel like a loser.
That's why competition is not a bad thing.

If you take all competition and all capitalism out of the calculation, you create a very artificial environment, because you would have to coercively prevent others from competing and making a buck out of open source if they voluntarily choose to do so.


Look I understand what you want to say, but in my eyes opensource is not married to cooperation, and open source can just as well be competitive and capitalistic, so I just try to understand why you purposely aim to limit the possibilities of the "open source market" ?
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
Why is capitalism bad?

It is not my intention to suggest that capitalism is bad. However if is competition by definition; while Open Source is cooperation by definition. What may be wrong is that the present Bounty System is being shaped by the former instead of the later.

I am just trying to understand. It is important for me to be able to judge how other devcoiners think.

So you suggest that competition is wrong?

Also, I am an (anarcho)capitalist who can program, so your argument is invalid?  Cool

How about "...who can't program, or choose not to...."? You get the idea. Projects that people want are being made Bounties. Either they cannot do it or choose not to. The projects are not coming from the coders but from them unable or not wanting to do it themselves. That just does feel right to my Open Source way of thinking. Only one opinion though, don`t take it personal or anything.

- Nova

I think this is not the case. I am a selfemployed programmer, and many of my customers are programmers themselves.
You somehow seem to apply that the programmers can't be customers themselves?
legendary
Activity: 1988
Merit: 1007
About a week ago, plagiarism was found in the articles of Notabot (Fheenix on devtome). It was just after the receiver files were made, so it was too late to regenerate the files. I talked with Notabot, and it turned out he hired a writer who was copying text. He was really sorry about it and wanted to quit. It was many articles, about 220,000 words worth, at an average of 300,000 devcoins per share, it's about 66 million devcoins. Notabot then deleted all those articles from devtome. Notabot was also selling his devcoins, so he has few left and full restitution is impossible. I judged that his repentance was sincere, and so I suggested a way to atone, following in spirit:
http://www.devtome.com/doku.php?id=conditional_forgiveness

Notabot would stop selling his devcoins, and send all but 5 million back to people at the end of December, and then send all but 5 million back at the end of the round 30 payment at the end of January. For a year, round 31 to round 42 inclusive, a third of his earnings would be sent back.

This might seem like an easy way off, because this will not pay back all the devcoins. However, it is much harder and more expensive than simply quitting.

I think this a reasonable atonement, however if a majority of admins don't want this then it's off.
This was never clear to me. What is meant by "back to people?" Were these devcoins to be repaid in future rounds to the receivers in those rounds, or re-distributed to the other receivers in past rounds? What period of time did this occur over?

UTB is going to be paying them back based on proportional shares. I don't know over what period though.
full member
Activity: 232
Merit: 104

I want to add, that open source does not per definition create cooperation.
Simply making something open source does not imply or guarantee whatsoever that a cooperation will develop.
There is no proof for that.
Cooperation is driven by other factors.
Open Source does merely facilitate access to everybody, but it doesn't handle or influence the motivation of the developers in any form!

If you cannot see a cooperative spirit in releasing code which encourages others to add, modify and use at their will then so be it. Let`s just call it non-competitive or non-capitalistic by definition.

- Nova
full member
Activity: 232
Merit: 104
Why is capitalism bad?

It is not my intention to suggest that capitalism is bad. However it is competition by definition; while Open Source is cooperation by definition. What may be wrong is that the present Bounty System is being shaped by the former instead of the later.

Also, I am an (anarcho)capitalist who can program, so your argument is invalid?  Cool

How about "...who can't program, or choose not to...."? You get the idea. Projects that people want are being made Bounties. Either they cannot do it or choose not to. The projects are not coming from the coders but from them unable or not wanting to do it themselves. That just does feel right to my Open Source way of thinking. Only one opinion though, don`t take it personal or anything.

- Nova

[Edit : typo]
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
It doesn't have to work the way that I'm describing here; I just believe that if it does, devcoins and http://devtome.com in particular will become much more valuable much more quickly. It's a more capitalist way of doing things.

There can be little argument that Capitalism is competition by definition, while Open Source is cooperation by definition. It is becoming more obvious the Bounty System is being shaped by the Capitalist mindset not the Open Source cooperative one.

The Bounty System, if what is being sold here on this thread is true, needs to me more programmer centric rather than end user centric.

Let's flip things on it's head with an example approach...

Say the programmer codes a program and then posts it to the project/Bounty site to be voted on to see if it should be added to that cycle's shares. Perhaps it could remain on the list to be voted upon until it receives enough votes to take it off the list. If it does not get enough votes it does not receive any shares and if it does get enough votes it does.

It could also be voted as to how many shares it should get. Then it is not capitalist driven but coder driven. The same Open Source will make it to the market regardless of it getting a share split or not. There is no less risk to the programmer than the Bounty System's present form in my opinion.

If Capitalists, that cannot program, want a program then they can dig into their DevCoin Wallets and pay programmers to do it. Of course all such requests would be released to Open Source because that is the whole concept behind DevCoins right?

That would be an example of flipping the Bounty System on it's head and putting it in the hands of Open Source programmers and out of the hands of Capitalists who can't program.

- Nova

[Edit: typos]

In my opinion capitalism is the only thing capable of creating real competition that encourages a fast innovation cycle.

Why is capitalism bad?

Also, I am an (anarcho)capitalist who can program, so your argument is invalid?  Cool


I want to add, that open source does not per definition create cooperation.
Simply making something open source does not imply or guarantee whatsoever that a cooperation will develop.
There is no proof for that.
Cooperation is driven by other factors.
Open Source does merely facilitate access to everybody, but it doesn't handle or influence the motivation of the developers in any form!
full member
Activity: 232
Merit: 104
It doesn't have to work the way that I'm describing here; I just believe that if it does, devcoins and http://devtome.com in particular will become much more valuable much more quickly. It's a more capitalist way of doing things.

There can be little argument that Capitalism is competition by definition, while Open Source is cooperation by definition. It is becoming more obvious the Bounty System is being shaped by the Capitalist mindset not the Open Source cooperative one.

The Bounty System, if what is being sold here on this thread is true, needs to me more programmer centric rather than end user centric.

Let's flip things on it's head with an example approach...

Say the programmer codes a program and then posts it to the project/Bounty site to be voted on to see if it should be added to that cycle's shares. Perhaps it could remain on the list to be voted upon until it receives enough votes to take it off the list. If it does not get enough votes it does not receive any shares and if it does get enough votes it does.

It could also be voted as to how many shares it should get. Then it is not capitalist driven but coder driven. The same Open Source will make it to the market regardless of it getting a share split or not. There is no less risk to the programmer than the Bounty System's present form in my opinion.

If Capitalists, that cannot program, want a program then they can dig into their DevCoin Wallets and pay programmers to do it. Of course all such requests would be released to Open Source because that is the whole concept behind DevCoins right?

That would be an example of flipping the Bounty System on it's head and putting it in the hands of Open Source programmers and out of the hands of Capitalists who can't program.

- Nova

[Edit: typos]
hero member
Activity: 826
Merit: 508
About a week ago, plagiarism was found in the articles of Notabot (Fheenix on devtome). It was just after the receiver files were made, so it was too late to regenerate the files. I talked with Notabot, and it turned out he hired a writer who was copying text. He was really sorry about it and wanted to quit. It was many articles, about 220,000 words worth, at an average of 300,000 devcoins per share, it's about 66 million devcoins. Notabot then deleted all those articles from devtome. Notabot was also selling his devcoins, so he has few left and full restitution is impossible. I judged that his repentance was sincere, and so I suggested a way to atone, following in spirit:
http://www.devtome.com/doku.php?id=conditional_forgiveness

Notabot would stop selling his devcoins, and send all but 5 million back to people at the end of December, and then send all but 5 million back at the end of the round 30 payment at the end of January. For a year, round 31 to round 42 inclusive, a third of his earnings would be sent back.

This might seem like an easy way off, because this will not pay back all the devcoins. However, it is much harder and more expensive than simply quitting.

I think this a reasonable atonement, however if a majority of admins don't want this then it's off.
This was never clear to me. What is meant by "back to people?" Were these devcoins to be repaid in future rounds to the receivers in those rounds, or re-distributed to the other receivers in past rounds? What period of time did this occur over?
hero member
Activity: 720
Merit: 500
I'm new to devtome, but I did notice that you had numerous warnings on the devtome warning txt in the charity file.  I don't know if that affected your word count or not.
Cheers. Giftculturewriting is a new admin on devtome and looks they haven't been added to the 'ok' list for editing. I'll ask UTB to add if he hasn't already.

Just for everybody's info, there's a time gap between end of a round and start of generation payout to ensure all issues are resolved. So there won't be undeserved losses.

Edit: A lot of those 'warnings' were because we're going through and categorising. Everybody should really be capable of doing that themselves, and it's a (small) factor in earnings, so would be greatly appreciated and sensible to go through all articles, add appropriate category, and even list them in that place. That way we can spend more time focusing on any more problematic issues, articles by older fly-by-nights, better organising things etc. Ta
http://devtome.com/doku.php?id=earn_devcoins_by_writing#category
member
Activity: 218
Merit: 10
I just had a look at the csv_file for round 31 and saw that I do not have any shares anymore for Devtome. However, after 1 share in round 30, I had built up about 6 shares (I think) for round 31 for Devtome writing.

Has something gone wrong with parsing or am I missing something?

http://d.evco.in/charity/devtome_31.csv

The receiver and account files show you as having a total of 7 shares so far for 31.

Those 7 shares are for Testing Sidhujag Client (1 share) and Investment Plan (6 shares). The shares for Word Count are missing.

I'm new to devtome, but I did notice that you had numerous warnings on the devtome warning txt in the charity file.  I don't know if that affected your word count or not.
member
Activity: 70
Merit: 10
I just had a look at the csv_file for round 31 and saw that I do not have any shares anymore for Devtome. However, after 1 share in round 30, I had built up about 6 shares (I think) for round 31 for Devtome writing.

Has something gone wrong with parsing or am I missing something?

http://d.evco.in/charity/devtome_31.csv

The receiver and account files show you as having a total of 7 shares so far for 31.

Those 7 shares are for Testing Sidhujag Client (1 share) and Investment Plan (6 shares). The shares for Word Count are missing.

Ahhh ok sorry Sad.
hero member
Activity: 596
Merit: 500
Kissmyweb.com is delighted to offer webdesign services for Devcoin (and Bitcoin)



Kissmyweb.com is not a new business, we have been around for 8 years - we are not a big business, "we" are me and a group of freelance awesome guys who do custom code when I need it - and we are not a complicated business, you deal with the person working on your site directly.

I also write copy if needed, (separate from Kissmyweb.com) and accept devcoins as payment.
Super! I'll add your site to devcoin.org under the Spend DVC section - I'm finishing up the next round of updates now.
legendary
Activity: 3108
Merit: 1531
yes
I just had a look at the csv_file for round 31 and saw that I do not have any shares anymore for Devtome. However, after 1 share in round 30, I had built up about 6 shares (I think) for round 31 for Devtome writing.

Has something gone wrong with parsing or am I missing something?

http://d.evco.in/charity/devtome_31.csv

The receiver and account files show you as having a total of 7 shares so far for 31.

Those 7 shares are for Testing Sidhujag Client (1 share) and Investment Plan (6 shares). The shares for Word Count are missing.
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
Kissmyweb.com is delighted to offer webdesign services for Devcoin (and Bitcoin)



Kissmyweb.com is not a new business, we have been around for 8 years - we are not a big business, "we" are me and a group of freelance awesome guys who do custom code when I need it - and we are not a complicated business, you deal with the person working on your site directly.

I also write copy if needed, (separate from Kissmyweb.com) and accept devcoins as payment.
Awesome.

I admire every selfemployed freelancer who accepts cryptocoins. I want to do that myself sometime in the future... but I have to prepare a few things before I can.
Jump to: