Bitcoin Forum
June 21, 2024, 08:03:53 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 [184] 185 186 187 188 189 190 191 192 193 194 195 »
3661  Bitcoin / Bitcoin Discussion / Re: aljazeera reporter trying to do a story on Bitcoin on: May 31, 2011, 03:37:13 AM
I've sent him some info to get them started (basics: white paper, trade data, Wiki articles/calculators on mining, list of merchants, 'weusecoins.com', etc).

Better to just leave mining out.

+1

Unfortunately, verification is crucial to the system.  Oh, and if they've heard of bitcoin, they've heard of mining.  Go into detail on verification and difficulty, but gloss over the coinbase transaction as a trivial reward.
3662  Bitcoin / Project Development / Re: LinuxCoin A lightweight Debian based OS with everything ready to go. on: May 31, 2011, 03:26:45 AM
Further notes on persistence and automatic startup.

I found it much easier to boot the CD, plug the drive in, and partition it there.  You can also set up the ext4 filesystem at this step.  Set the type of partition 1 to "C".  Then move it back to the windows box to format.

If you are using unetbootin, save yourself a lot of hassle by opening syslinux.cfg with WordPad and adding "persistent" to the end of the first append line (under label unetbootindefault).

The autostart is in /home/user/.config/autostart/auto.desktop

Code: (auto.desktop)
[Desktop Entry]
Encoding=UTF-8
Name=coin
Exec=lxterminal --command "/home/user/shell_script.sh"
Terminal=true

Keep in mind that this won't run as root, so you'll have to diddle the permissions and/or use setuid on the shell script that it runs.

A couple of my miners are 50 miles away from my home, so I just finished setting all of this up, along with a watchdog to reboot the boxes as needed.  I figured since I had to figure a bunch of this out the hard way, I'd write this post while it was still fresh in my mind.  Hope it helps someone.
3663  Bitcoin / Mining software (miners) / Re: Flexible mining proxy on: May 31, 2011, 03:15:21 AM
It'll take some work to adapt to your location.  Oh, and this is not pretty.

First file is a PHP script that runs out of cron every 10 minutes.  Second file is a BASH CGI that lives on another box.  If your flex proxy can see the PDU directly, you can cut out the middle man and either use snmpget() and snmpsend() PHP functions, if you have them, or exec the binaries directly.

My worker IDs are 3 and 4, so I plugged them into ports 3 and 4 on the PDU.  That isn't necessary, unless you are OCD like me.  The arg to the CGI is pasted directly onto the end of the OID passed to SNMP, which in this case is the outlet number on the strip.  Oh, and you should totally add some input checking to the CGI, because as it is now, you are asking to get pwn3d by executing attacker-supplied variables.

Search for __ (double underlines), those are things that you need to change.

Tested and working on a APC 885-1890 (1U, 8 outlet, 15Amp, 120v).  Yours may differ.  Thank god I was able to find the OIDs for SNMP, I wasn't looking forward to writing an expect script to navigate the telnet menu.

Code: (cron_job)
#!/bin/php
<?php

$restart_3
=TRUE;
$restart_4=TRUE;

$con=mysql_connect("__HOST__","__USER__","__PASS__");
mysql_select_db("__DATABASE__",$con);

$q="SELECT DISTINCT worker_id FROM work_data WHERE time_requested  > (NOW() - INTERVAL 15 MINUTE)";

$r=mysql_query($q);
if(
0!=mysql_errno())echo mysql_error()."\n";
while(
$row=mysql_fetch_assoc($r)){
 if(
3==$row['worker_id'])$restart_3=FALSE;
 if(
4==$row['worker_id'])$restart_4=FALSE;
// echo $row['worker_id']."\n";
}

if(
$restart_3){
// echo "Restarting 3\n";
 
$junk=file("http://__CGI_HOST__/cgi-bin/apc_restart.cgi?3");
}
if(
$restart_4){
// echo "Restarting 4\n";
 
$junk=file("http://__CGI__HOST__/cgi-bin/apc_restart.cgi?4");
}

?>


Code: (bash_cgi)
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo ""
echo "<html>"
echo "<head><title>APC restart</title></head>"
echo "<body>"
snmpset -v1 -c __WRITE_COMMUNITY__ __PDU_IP__ .1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.$QUERY_STRING i 3
echo "<br>"
snmpget -v1 -c __READ_COMMUNITY__ __PDU_IP__ .1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.$QUERY_STRING
echo "<br>"
echo "</body>"
echo "</html>"
3664  Bitcoin / Mining software (miners) / Re: Flexible mining proxy on: May 31, 2011, 02:37:13 AM
I custom build PHP and Apache (and openssl, and mod_ssl, and mm, and mysql, and...).  Wrote a script for it many, many years ago.

I did have to add --with-pdo-mysql to the file that stores my PHP config options to get this working.
3665  Bitcoin / Mining software (miners) / Re: Flexible mining proxy on: May 31, 2011, 02:29:55 AM
I'm running the proxy on Slackware.  Slackware 10.2, no less.

Works great with BTC Guild, Deepbit, Eligius, a local bitcoind (last resort), and a local pushpool (for testing, that was a much bigger hassle to build on Slack).  Works great with poclbm and phoenix, but tends to cause DiabloMiner to get hung.

Just finished setting up a cron job to SNMP-diddle an APC networked PDU to reboot my boxes if they ever go more than 15 minutes without a work request.
3666  Bitcoin / Bitcoin Discussion / Re: Early speculators' reward on: May 31, 2011, 02:15:14 AM
If someone starts a new block chain, what's going to keep some big miners from switching to it for a few days and taking a couple thousand coins for themselves?

I mean aside from the pointlessness of it all.
3667  Bitcoin / Development & Technical Discussion / Re: will the whole system stop working if all mining machines stop working? on: May 31, 2011, 02:05:06 AM
I'm not sure you know how a network works.

Each node accepts a message (if it doesn't already have it) from one peer, and offers it to all other peers.  If they also don't have it, they will accept it and repeat, spreading the message far and wide.

In the case of a near-partition, where one single node is the conduit that links both halves of the network, the network still operates normally.  A message from one half will spread normally until it reaches a peer of the conduit node.  The conduit node will then accept it, and pass it to the other half, where it will again, spread normally, until it has saturated the entire network.

Observe that each node, including the conduit, is getting and potentially passing each message.  Message traffic is no greater at the conduit node than at any other.  The conduit node will have slightly greater upload traffic, in both directions.

Also, keep in mind that network traffic is tiny.  The last 20 blocks on the explorer total 367 kB, and were spread over 3.5 hours.  That is a data rate of about 300 bits per second, slow enough that you could have read it out loud.  If traffic expanded by about a million times, it would start to get close to being too much for a 56k modem.
3668  Bitcoin / Development & Technical Discussion / Re: Pool shutdown attack on: May 31, 2011, 01:55:25 AM
No one has any idea where the error bars on the hash rate graphs should be.  On the 1 day line, they will be astronomically huge (not to mention the 8 hour window, lol).  Like several times the width of the plotted channel huge.

DO NOT MAKE ASSUMPTIONS BASED ON THOSE GRAPHS.  They are estimates, not measurements.
3669  Bitcoin / Mining / Re: FPGA mining for fun and profit on: May 31, 2011, 01:50:42 AM
http://www.edaboard.com/thread115517.htm

That discussion is a couple of years old.

Also see this PDF, also a bit old:  http://www-ee.ccny.cuny.edu/www/web/xchen/StructuredASIC.pdf
3670  Bitcoin / Development & Technical Discussion / Re: will the whole system stop working if all mining machines stop working? on: May 30, 2011, 10:17:27 PM
What makes you think this?

Remember, we aren't talking about one node that all 1 billion chinese people are using.  We are talking about a node passing transactions and blocks between the two otherwise partitioned networks.  The traffic just isn't very big.

Yes, but it'll also be the only route to all the IP addresses not in China, so all of those requests will go through it.

Even if somebody has their own connection (using say a satellite dish) to the external internet, and decides to use it purely for bitcoin (unlikely  Roll Eyes ) the government can probably find them easily and remove their connection to the Chinese internet.

Yes, but it still sees the same number of transactions and blocks, which is all of them.
3671  Bitcoin / Development & Technical Discussion / Re: will the whole system stop working if all mining machines stop working? on: May 30, 2011, 08:28:31 PM
It would only take a single interested party to maintain the connection between the two halves, and it would only be a trickle of data.  I doubt that even China could prevent it.

If there were only one party linking the web in China to the web everywhere else, it would be way too expensive or congested for bitcoin to use. If it were open to general use it would probably get DDOSed and go down.

What makes you think this?

Remember, we aren't talking about one node that all 1 billion chinese people are using.  We are talking about a node passing transactions and blocks between the two otherwise partitioned networks.  The traffic just isn't very big.
3672  Bitcoin / Development & Technical Discussion / Re: will the whole system stop working if all mining machines stop working? on: May 30, 2011, 06:35:17 PM
what if the whole internet was departed into two separated parts?

As I know, the Chinese government may be going to block its domestic internet from other world, to build a so called Chiternet, so that they can control the press\pulic voice.

So the Bitcoin will developed into two independent sysytem, one in China, and one in the freedom world. Then one day, the Bitcoin left in China became the ostrich in Australia??

It would only take a single interested party to maintain the connection between the two halves, and it would only be a trickle of data.  I doubt that even China could prevent it.
3673  Bitcoin / Mining / Re: Next Best GPU? on: May 30, 2011, 07:36:33 AM
Is it really so hard to make a spreadsheet and plug the hash speed and price numbers into it?  Why can no one ever seem to figure out how to do these simple calculations?
3674  Bitcoin / Bitcoin Discussion / Re: Does CPU mining contribute anything to bitcoin network or economy? on: May 30, 2011, 07:31:11 AM
Think about sifting for gold in a river.  Are you working?  Sure.  Are you personally creating value?  Not exactly, you are just holding a sieve in a river.  The value came before you ever stepped into the water, but noone else was there to catch it.

Yes, you are creating value.  You are changing nature into a state more useful to humanity.  That is essentially what value is.
3675  Bitcoin / Mining / Re: Pools down & total computation speed up - what does this mean? on: May 30, 2011, 02:27:22 AM
kjj, fair enough.

sipa's charts do give you/us longer period and much more accurate estimation. Why would anyone concentrate so much on that green, short term line which jumps all around the place and why people do not treat it as noise is beyond me.

Because they are under the mistaken belief that the green line represents some actual measured thing.
3676  Economy / Economics / Re: Beware of the deflation monster!!!1 (not really..) on: May 30, 2011, 02:19:33 AM
The problem with inflation, is that if you ask 5 different economists to define it, you'll get 13 different answers.
3677  Bitcoin / Development & Technical Discussion / Re: An estimate of fpga performance on: May 30, 2011, 01:37:54 AM
$300
3678  Bitcoin / Mining / Re: Pools down & total computation speed up - what does this mean? on: May 30, 2011, 12:56:52 AM
kjj, Network hashing power can be estimated very accurately using statistical methods by measuring how many blocks are solved during a period of time. It is just "websites" you've mentioned are doing rather poor job.

applecart, Anonymous must not be very fond of anyone approaching 50% of bitcoin hashing threshold. I would say they are too relaxed and 25-30% is not that good either.


Over a long period of time, the estimates can be pretty accurate, yes.  Over short times, not even close.
3679  Bitcoin / Mining / Re: Pools down & total computation speed up - what does this mean? on: May 30, 2011, 12:40:10 AM
There is no way to measure hashing power globally.  The numbers you see on websites and in those charts are just estimates.
3680  Bitcoin / Development & Technical Discussion / Re: Pool shutdown attack on: May 28, 2011, 11:07:53 PM
This is trivial to counter:  just promote the flexible mining proxy.
Pages: « 1 ... 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 [184] 185 186 187 188 189 190 191 192 193 194 195 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!