Show Posts
|
Pages: [1] 2 »
|
Uncle Bob says: Manual testing is immoral. Not only is it high stress, tedious, and error prone; it’s just wrong to turn humans into machines.
|
|
|
Does it matter?
Don't know... Just wondering... I'm not a developer by any stretch of imagination. ![Embarrassed](https://bitcointalk.org/Smileys/default/embarrassed.gif)
|
|
|
I suppose line 5873 if (peer.state == peer.STATE_DISCONNECTED) {should be if (peer.state == Peer.STATE_DISCONNECTED) { ![Huh](https://bitcointalk.org/Smileys/default/huh.gif)
|
|
|
I have multiple voting methods coded for community testing (per utopianfuture's proposal) I just need a way to send and receive API calls in PHP. The below example returns NULL... Suggestions? <?php function get_web_page( $url ) { ... $ch = curl_init($url); ... }
$result = get_web_page('http://node6.mynxt.info:7874/nxt?requestType=getBalance&account=10006970057300228034');
var_dump($result);
?> $ch... Is it a cURL handle or FALSE?
|
|
|
+ 1 NXT == x Vote { x = Func(accountBalance) = polynom * accountBalance}
+ 1 Account == 1 Vote { vote = Func(accountBalance) = 0.5 * accountBalance}
These won't work. They are easily defeated by splitting your wealth over several accounts. Is there a chance of diluting accounts by paying transaction fee for splitting over several accounts?
|
|
|
Its been more than a day that public nodes respond with: for N in {1..100}; do curl --silent "http://node$N.nxtbase.com:7874/nxt?requestType=getState" | python -m json.tool | grep '"lastBlock"'; done "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) Other nodes that accept public request returns, what appears to be a valid lastBlock... However, all public node*.nxtbase.com nodes, for days, still returns same lastBlock 2680262203532249785. ![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif) I'm working on this. They seem to have gotten stuck after the upgrade yesterday. Still stuck... ![Cry](https://bitcointalk.org/Smileys/default/cry.gif)
|
|
|
Its been more than a day that public nodes respond with: for N in {1..100}; do curl --silent "http://node$N.nxtbase.com:7874/nxt?requestType=getState" | python -m json.tool | grep '"lastBlock"'; done "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) Other nodes that accept public request returns, what appears to be a valid lastBlock... However, all public node*.nxtbase.com nodes, for days, still returns same lastBlock 2680262203532249785. ![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif)
|
|
|
Its been more than a day that public nodes respond with: for N in {1..100}; do curl --silent "http://node$N.nxtbase.com:7874/nxt?requestType=getState" | python -m json.tool | grep '"lastBlock"'; done "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", "lastBlock": "2680262203532249785", ![Huh](https://bitcointalk.org/Smileys/default/huh.gif)
|
|
|
Let's see... 0.4.8 was more stable than 0.4.7e, even on 512 Mb. If 0.4.9e is even better, then we're getting where it should be.
The goal is to run NRS on 64 KiB devices. ![Wink](https://bitcointalk.org/Smileys/default/wink.gif) Make Mr. Gosling proud. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif)
|
|
|
can I get some SSH remote command help here? on a box, I can do lynx -dump http://localhost:7874/nxt?requestType=getPeer\&peer=79.102.159.249to see the stats for the 79.102.159.249 peer if it is connected. The results look like this (notice I had to escape the & there): {"platform":"?","application":"NRS","weight":0,"state":1,"announcedAddress":""," downloadedVolume":8758,"version":"0.4.7e","uploadedVolume":12675225}
why can I not use this to do a remote SSH command? root@vps1:~# ssh -i .ssh/vps root@vps1 lynx -dump http://localhost:7874/nxt?requestType=getPeer\&peer=79.102.159.249 {"errorCode":3,"errorDescription":"\"peer\" not specified"} root@vps1:~#
Try: ssh root@vps1 -t -C 'curl "http://localhost:7874/nxt?requestType=getPeer&peer=79.102.159.249"'
More eye pleasing. curl --silent "http://localhost:7874/nxt?requestType=getPeer&peer=79.102.159.249" | python -m json.tool Edit: Added --silent option
|
|
|
Coz it's unknown what MAC address a transaction was sent from.
And nobody ever spoofed a MAC address. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif)
|
|
|
Please consider running a non-proprietary OS... There are many flavours of Linux/BSD that one can easily run live from a CD / USB drive. It is not a panacea for all attack vectors but it is helpful.
|
|
|
In that case you will need a hardware firewall in front from your VPS which are very expensive ( ~$30k ) or you could move to some host that provides anti-ddos firewall protection ( which is also too expensive).
For a DoS attack you don't need those pricey HW firewalls... DoS should be resolved in nxt's code-base and if needed ad-hoc mitigated with simple greping/parsing server logs and applying appropriate iptables rules. For DDoS attacks the bottleneck is the uplink... In case of DDoS having eg. 10 servers on same uplink (same data-center/rack) won't help whatever you place in front of them. I could elaborate on poor's-man/wealthy's-man/our's-way of mitigating DDoS if anyone interested.
|
|
|
![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif) Only 200 aliases... I feel I should have at least twice that. Some are registering hourly,,, some others are not adding though. Could it take more than 24 hours to update? See someone locked in Sakura in all 30 plus ways it can be written ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) Still got an alt of it in 1337 I hope you make a lot of money from it. heh, probably not ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Some aliases I'm very surprised I got. Other fairly obscure ones I'm surprised were already taken. Waiting for the servers to come online as I have another 700 to input. I can see doing 10k atleast... Kinda wish you could batch upload a list of Aliases.... instead of this tedious 1 by 1 shit Happy New Year #!/usr/bin/env bash
#title :nxt_alias_batch_register.sh #description :This script creates nxt aliases from a list in the given file #author :nadrimajstor #date :2014-01-01 #version :0.1 #licence :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 <http://www.gnu.org/licenses/>.
function are_arguments_correct(){ if [[ "$#" -ne 4 || "$1" == "-h" || "$1" == "--help" ]]; then echo "" echo "Usage:" echo " $0 ACCOUNT PASSPHRASE FILE URI" echo "" echo "Example:" echo " $0 23948723498 mY1337PassPhrase alias.txt 'http://www.example.com'" exit 0 fi }
function is_curl_installed(){ if ! hash curl &>/dev/null; then echo -e "\e[1;37mcurl\e[0m - \e[0;31mnot installed\e[0m" echo "try: sudo apt-get install curl" exit 1 fi }
function is_server_running(){ if ! curl --silent -k "$URL/nxt?requestType=getState" &>/dev/null; then echo -e "\e[1;37m$URL\e[0m - \e[0;31mserver not found\e[0m" exit 1 fi }
function is_account_balance_positive(){ local __balance=$(curl --silent -k "$URL/nxt?requestType=getBalance&account=$ACCOUNT" |\ grep 'balance' | tr --delete '{"}' | tr ':,' ' ' | cut -d ' ' -f2 ) if ! [[ "$__balance" -gt 0 ]]; then echo -e "\e[1;37m$ACCOUNT\e[0m - \e[0;31mnot enough funds\e[0m" exit 1 fi }
function does_file_exist(){ if ! [ -r "$FILE" ]; then echo -e "\e[1;37m$FILE\e[0m - \e[0;31mcan not read file\e[0m" exit 1 fi }
function create_alias(){ local ALIAS=$1 local __result=$(curl --silent -k "$URL/nxt?requestType=assignAlias&secretPhrase=$SECRET&alias=$ALIAS&uri=$URI&fee=$FEE&deadline=$DEADLINE") echo -e "\e[1;37m$ALIAS\e[0m - $__result" }
are_arguments_correct $* is_curl_installed
URL="https://localhost:7875" is_server_running
ACCOUNT=$1 is_account_balance_positive
FILE=$3 does_file_exist
SECRET=$2 URI=$4 FEE=1 DEADLINE=1440
for line in $(cat "$FILE"); do create_alias $line done
nxt_alias_batch_register.sh
|
|
|
Hi everyone , regarding the logo of next I’m proposing to major stakeholders big stashes of nxt make one with the help of 99designs.com ,I've made my self there a logo for a project I'm working on at the moment (sorry but I cant show it in public yet, may be in private only, since the project isnt ready) , and I can tell you that all this logos which are made until now on the forums are just junk comparing with the ones that its possible to choose from 99designs ...
... it will cost $1,199 to make a brilliant logo
I can take it on me, just send me NXT/BTC/LTC worth 1,199$ and I can assure you it will be the best logo ever.
u mean one dollar and onehundrednintynine cents right? lol no, one dollar and onehundrednintynine is with a "." not a "," In some countries it is the other way around ![Grin](https://bitcointalk.org/Smileys/default/grin.gif)
|
|
|
Raspberry Pis are a cheap way to stand up lots of new nodes fast to stabilize the network from DDoS attack more so than using them for forging new NXT coins.
I guessed as much - I'm running 3 nodes to do my small part to help... I just wonder if some people will mistakenly buy PIs thinking they are mining machines for NXT - which it is clear they are not and they would have been better increasing their stake... Of course if they want to buy 5 or 10 PIs to help the network that is fine but are they clear it won't help them get more NXT unless someone is paying them to do it of course.They are cheap way to always keep 1 node unlocked without messing with your primary computer. They would also be a cool way to have secure remote access to NXT. Just buy more RPis... Part of the profit goes to RPi Foundation
|
|
|
I have a bunch of dedicated servers, but all at one data center. Is there any benefit from deploying the server code on more than one of the servers?
What would the typical CPU load be? These are compute oriented servers, so not much bandwidth for each, maybe 10mbps.
How much would this help?
James
In case of DoS it will help to spread the load... However in case of DDoS you will fill uplink (if all are on the same uplink)... Hosting provider could help figuring out that one. That is the reason why I offered to operate just one additional node if someone would like to be a sponsor.
|
|
|
War chest update
1. I have received several PMs with offers to help set up public nodes 2. Due to the very high volume of posts, I have not been able to check through every one looking for most suitable/deserving member to disburse the funds. 3. We have another 260K in the fund available for immediate disbursement. So, here's my plan.
Anyone who has a history of setting up nodes and who have a specific plan of action, please post your requirements here and follow up with a PM to me. I'll disburse funds to all legit requests asap.
Conditions:
1. You must describe your specific plan and how much Nxt you need to implement the plan. Eg. I need xx Nxt to set up nn Nodes in these locations by this date.
2. You have to report back to the community after you've implemented your plan.
Thanks.
I could setup more root servers... 24h-36h TTC... And attend them at least two times a day... Server location: Germany - AMD Athlon 64 3700+, 2GB RAM , 100Mbit/s , 20Gbit/s uplink - 625NXT/month
- Intel i7-4770, 32GB RAM, 1Gbit/s, 51Gbit/s uplink - 1350NXT/month
Possible remote hw reset/kvm
|
|
|
Great news. Congratulations. Had you considered revisiting stance on small contract holders with limited access to Affidavit process?
|
|
|
|