Search content
Sort by

Showing 20 of 27 results by nadrimajstor
Post
Topic
Board Announcements (Altcoins)
Re: NXT :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 27/01/2014, 19:34:25 UTC
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?

Code:
  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?
Post
Topic
Board Announcements (Altcoins)
Re: NXT :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 26/01/2014, 16:23:04 UTC
Post
Topic
Board Announcements (Altcoins)
Re: NXT :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 26/01/2014, 16:19:53 UTC
+ 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?
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 05/01/2014, 04:09:36 UTC
Its been more than a day that public nodes respond with:
Code:
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
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


 I'm working on this. They seem to have gotten stuck after the upgrade yesterday.
Still stuck...  Cry
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 04/01/2014, 13:14:04 UTC
Its been more than a day that public nodes respond with:
Code:
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
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
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 04/01/2014, 01:53:49 UTC
Its been more than a day that public nodes respond with:
Code:
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
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 02/01/2014, 16:35:15 UTC
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
Make Mr. Gosling proud.  Grin
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 02/01/2014, 01:25:37 UTC
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.249
to 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):
Code:
{"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?

Code:
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:
Code:
ssh root@vps1 -t -C 'curl "http://localhost:7874/nxt?requestType=getPeer&peer=79.102.159.249"'

More eye pleasing.
Code:
curl --silent "http://localhost:7874/nxt?requestType=getPeer&peer=79.102.159.249"  | python -m json.tool

Edit: Added --silent option
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 01/01/2014, 20:27:01 UTC
Coz it's unknown what MAC address a transaction was sent from.
And nobody ever spoofed a MAC address.  Grin
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 01/01/2014, 20:21:58 UTC
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.
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 01/01/2014, 18:00:31 UTC
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.
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 01/01/2014, 04:26:26 UTC
Undecided 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 Still got an alt of it in 1337

I hope you make a lot of money from it.
heh, probably not Smiley
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
Code:
#!/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 .

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
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 28/12/2013, 21:24:42 UTC
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
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 27/12/2013, 01:21:41 UTC

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  Smiley
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 25/12/2013, 21:50:41 UTC
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.
Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
nadrimajstor
on 25/12/2013, 19:37:36 UTC
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
Post
Topic
Board Services
Re: Gigamining / Teramining
by
nadrimajstor
on 16/07/2013, 19:16:52 UTC
Great news. Congratulations.
Had you considered revisiting stance on small contract holders with limited access to Affidavit process?
Post
Topic
Board Services
Re: Gigamining / Teramining
by
nadrimajstor
on 17/04/2013, 22:38:39 UTC
As my government is finally started to show some progress in effort to become EU member, there is a plan to soon have local notaries, meaning that the price of getting affidavit should become reasonable (at least reasonable for me). However, as I missed this deadline
Quote
VPS will keep the claims process open for another three months through May 23, 2013.
What path could we take now?  Undecided
Post
Topic
Board Services
Re: Gigamining / Teramining
by
nadrimajstor
on 28/03/2013, 01:42:17 UTC
To be fair, to put a a scammer label on somebody you need to have intention as a starting point.
In the case of gigamining I don't see clear intention.
However, James did change the rules and I'll have to wait before I made my final judgment about him.  Undecided
Post
Topic
Board Services
Re: Gigamining / Teramining
by
nadrimajstor
on 21/03/2013, 22:03:21 UTC
Regarding FinCEN paper http://www.fincen.gov/statutes_regs/guidance/html/FIN-2013-G001.html

I assume that there will be no change in the rules because it will not be fair to others who went trough affidavit process.  Undecided

As claim process will end soon, it is obvious that I will not going to make it (not that I don't want to - but for me US Embassy is far away, both in terms of distance and money).

James, what will happen now with my shares and dividends?