Author

Topic: NXT :: descendant of Bitcoin - Updated Information - page 2065. (Read 2761645 times)

legendary
Activity: 1470
Merit: 1004
even sent some coins through the app, from grandpa to trixie, using the raspberry pi server.

man now its time to double down and buy some more of this

Wow, that is seriously awesome.
full member
Activity: 238
Merit: 100
Hm, that gave me an idea, I am now testing openjdk-7-jre-headless package on a 512 mb vps

That's what I'm using on my node. It works, but eventually the heap will be full due to leaks. On a 512M, you should keep the max number of connections low.

Haven't tried the Oracle SE VM yet. I'll have a go at that later.

I never thought about testing it.
We have to make it run smooth on 512 Mb, and if -headless JRE helps with garbage collection better, then it should be the default java install for NXT. I'll update my guide with that info, after a few hours of testing.

Nice work please keep us vps managers posted on whats best
full member
Activity: 143
Merit: 100
yes it is a really problem i hope developer can solve it. several my aliases transactions have done and the record is listed in the account. but i cant find any alias in my account. it seems just the transaction not happpened but the fee is gone.

all the aliases show in the account, good team,so quick.

thx for the confirmation tillou.

I would be perfect if the aliases are shown in alphabetical order
sr. member
Activity: 336
Merit: 250
AKA jefdiesel
even sent some coins through the app, from grandpa to trixie, using the raspberry pi server.

man now its time to double down and buy some more of this
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX

Thank you ferment! I will have a try and dig it though I'm not familiar with Ruby.


Feel free to PM if you need me to decode idiomatic ruby syntax in there. I tried to keep it straightforward.
sr. member
Activity: 336
Merit: 250
AKA jefdiesel
Nxt Android client update

 So cool!

 I made a wallet for my 2 year old daughter, you can send her nxt to "trixie"

 and one for my father in-law "richardrutowicz"  

 Awesome and easy

 and just for geekyness running off raspnxt.hopto.org


legendary
Activity: 1470
Merit: 1004
Jean Luc Picard of the USS Enterprise....  Cheesy  I had to do it...it was just too tempting

Edit: USS Nxterprise boldly go where no Crypto has gone before.
In a hindsight, I have really picked up an appropriate pseudonym. I never imagined I will make the progress from a forum Newbie to a Captain that fast.

I hereby appoint CfB as my First Officer.

Now that the USS NRS Enterprise has been making successful test flights, we have to get ready for our first trip outside the solar system, scheduled for Jan 03.

I am now proof-reading the code for any visible bugs. The memory leak has been fixed and I hope version 0.4.8 should have lower memory consumption and not require periodic restart. Next, there are some minor thread safety bugs I noticed that I will fix. I can also think of some optimization in the peer networking code, right now we create a lot of temporary byte[] and char[] that put extra load on the garbage collector and increase the memory usage too, but this is not urgent.

I need to do some refactoring of the code, because now everything is in one huge file. The parts that are to remain closed source will have to be factored out, as much as possible, in separate classes, so that they can be distributed in compiled form, still allowing one to work on the base open source part without having the complete source.

I also need to pick up a repository where we should host the source code, and prepare it for the Jan 03 launch. Probably github, but I need to investigate the alternatives.


Good to have you on board!  I highly recommend Github as a repository, well known and respected with the largest user base.  Keep up the good work.
member
Activity: 98
Merit: 10
Morning all

 messing with this android app https://nextcoin.org/index.php/topic,797.0.html

 Says that we can enable aliases as our account? sweet. I updated "jef" to point to my account number, and when I added account "jef" it instantly pointed to my account number and showed my balance.

 FTW this is great.

 

that sure beats long cryptic bitcoin addresses Smiley
sr. member
Activity: 336
Merit: 250
AKA jefdiesel
Morning all

 messing with this android app https://nextcoin.org/index.php/topic,797.0.html

 Says that we can enable aliases as our account? sweet. I updated "jef" to point to my account number, and when I added account "jef" it instantly pointed to my account number and showed my balance.

 FTW this is great.

 it looks like you can actually send me coins to "jef" from the app.. if anyone else wants to try, send me your alias in the app and I will send you some coins

full member
Activity: 238
Merit: 100
All:

in the logo voting thread, a candidate very similar to Namecoin's logo appears to be winning

This is QBTC's candidate



And namecoin looks like this:


Please take a look at all candidates and vote what you think will best represent NXT.  The voted logo will begin to be used on all our sites:  www, info, wiki, forums, etc.
member
Activity: 98
Merit: 10
Hm, that gave me an idea, I am now testing openjdk-7-jre-headless package on a 512 mb vps

That's what I'm using on my node. It works, but eventually the heap will be full due to leaks. On a 512M, you should keep the max number of connections low.

Haven't tried the Oracle SE VM yet. I'll have a go at that later.

I never thought about testing it.
We have to make it run smooth on 512 Mb, and if -headless JRE helps with garbage collection better, then it should be the default java install for NXT. I'll update my guide with that info, after a few hours of testing.
full member
Activity: 238
Merit: 100
@Dev Team

Is there any API to find which blocks an account has forged, and how many fees the account got?

Thanks.


You can walk block chain and compare the "generator" of the block against the account number.

Here's some ruby (extracted from my soon to be released ruby client library):
Code:
#!/usr/bin/env ruby

require "rubygems"
require 'json'
require 'httparty'

def get(server, cmd, args={})
  a = args.map { |k,v| "#{k}=#{v}" }.join("&")
  url = "http://#{server}:7874/nxt?requestType=#{cmd}&#{a}"
  JSON.parse(HTTParty.get(URI::escape(url)).body)
end

def get_block(id)
  get("localhost", "getBlock", {"block" => id})
end

account = ARGV[0]

last_block_id = get("localhost", "getState")["lastBlock"]
blocks = {}
fees = 0
while last_block_id
   block = get_block(last_block_id)
   if block["generator"] == account
     fee = block["totalFee"]
     puts "#{last_block_id} - #{fee}"
     fees += fee
   end
   last_block_id = block["previousBlock"]
end

puts "#{account} earned #{fees} nxt."


Save this as "forged.rb" and "chmod +x".
Code:
./forged.rb ACCOUNT


Thank you ferment! I will have a try and dig it though I'm not familiar with Ruby.
full member
Activity: 196
Merit: 100
Hm, that gave me an idea, I am now testing openjdk-7-jre-headless package on a 512 mb vps

That's what I'm using on my node. It works, but eventually the heap will be full due to leaks. On a 512M, you should keep the max number of connections low.

Haven't tried the Oracle SE VM yet. I'll have a go at that later.
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
@Dev Team

Is there any API to find which blocks an account has forged, and how many fees the account got?

Thanks.


You can walk block chain and compare the "generator" of the block against the account number.

Here's some ruby (extracted from my soon to be released ruby client library):
Code:
#!/usr/bin/env ruby

require "rubygems"
require 'json'
require 'httparty'

def get(server, cmd, args={})
  a = args.map { |k,v| "#{k}=#{v}" }.join("&")
  url = "http://#{server}:7874/nxt?requestType=#{cmd}&#{a}"
  JSON.parse(HTTParty.get(URI::escape(url)).body)
end

def get_block(id)
  get("localhost", "getBlock", {"block" => id})
end

account = ARGV[0]

last_block_id = get("localhost", "getState")["lastBlock"]
blocks = {}
fees = 0
while last_block_id
   block = get_block(last_block_id)
   if block["generator"] == account
     fee = block["totalFee"]
     puts "#{last_block_id} - #{fee}"
     fees += fee
   end
   last_block_id = block["previousBlock"]
end

puts "#{account} earned #{fees} nxt."


Save this as "forged.rb" and "chmod +x".
Code:
./forged.rb ACCOUNT
member
Activity: 98
Merit: 10

Seems to work, syncs blocks, doesn't show active peers, how long does it work without having to restart it?

Sometimes when the Pi is fully loaded, it shows active peers some moments later than normal. But it shows them eventually.

The uptime vs error ratio is actually quite high, to my own surprise. I've never seen the server completely die on the Pi. The worst yet was one instance of stuck blocks. Otherwise, the conservative settings seem to mitigate most problems.

Also, RAM usage is sufficiently low. Leakage over time is low, too, likely due to aggressive Embedded JRE grabage collection.

Hm, that gave me an idea, I am now testing openjdk-7-jre-headless package on a 512 mb vps, let's see how long it stays alive even though it's not 0.4.8 yet, where the memory issues are scheduled to be addressed.
legendary
Activity: 2184
Merit: 1000
Nxt already has an android app:

https://nextcoin.org/index.php/topic,797.0.html


someone has shown interest in developing iOS apps.

1) https://nextcoin.org/index.php/topic,1507.msg13960/boardseen.html#new




hero member
Activity: 910
Merit: 1000
A man with a plan. I like it Smiley Thanks to offer your services and congrats to make the team Jean-Luc. Very pleased that some bugs are already resolved. Thanks for that too.
I encourage and support completely all efforts to focus on making existing functionalities super robust, before new ones are added. We go for broad adoption, right?

+10

I would also encourage to improve and simplify the 'how to get started' procedures for newbies: Installation, configuration (editing an xml file? we don't expect every Nxt'er to be an IT'er as well, right?), creating startup files depending of platform (Win, linux, iOS, ...), starting the server (On windows it should be a background service with an automatic start @boot time instead of a manual started cmd window IMO), how to choose a safe enough private key (passphrase), generating a public key (account nb), asking, earning, getting or buying some nxt's on whatever exchange (a separate procedure in itself) and then use the Nxt blockchain explorer (great tool nexern) to check your (or another's) account and transactions. It makes no sense to explain to people how they can make a payment, if they don't have at least some Nxt on their own account, does it?
Although I'm an IT'er and have experience with multiple languages, java and others, I don't consider myself a java specialist and certainly not a cryptographer. But I'm still willing to help somewhere, although I'm not sure with what or how. I would consider to help based on suggestions?

Many things could be done with the Windows/Mac Clients which are developed. People want to install apps.

iOS and Android development should be treated alike. So much happens mobile today...
full member
Activity: 238
Merit: 100
@Dev Team

Is there any API to find which blocks an account has forged, and how many fees the account got?

Thanks.
full member
Activity: 266
Merit: 100
NXT is the future
Another article of interest http://www.coindesk.com/goldman-sachs-director-board-bitcoin-startup-circle/
Many big whales are into digital currency right now. They don't even know what is coming in the form of the Nxt network. The good thing about these news is that it indicates digital currency and decentralized network are here for a long haul.

I am thankful for all the effort the developers have put into this venture. But I suspect some of you can't even imagine how potentially big  all of these things are going to get. It is going to be chaotic. More efforts are needed.    

+1 said it before.

Pin
member
Activity: 94
Merit: 10
Jean Luc Picard of the USS Enterprise....  Cheesy  I had to do it...it was just too tempting

Edit: USS Nxterprise boldly go where no Crypto has gone before.
In a hindsight, I have really picked up an appropriate pseudonym. I never imagined I will make the progress from a forum Newbie to a Captain that fast.

I hereby appoint CfB as my First Officer.

Now that the USS NRS Enterprise has been making successful test flights, we have to get ready for our first trip outside the solar system, scheduled for Jan 03.

I am now proof-reading the code for any visible bugs. The memory leak has been fixed and I hope version 0.4.8 should have lower memory consumption and not require periodic restart. Next, there are some minor thread safety bugs I noticed that I will fix. I can also think of some optimization in the peer networking code, right now we create a lot of temporary byte[] and char[] that put extra load on the garbage collector and increase the memory usage too, but this is not urgent.

I need to do some refactoring of the code, because now everything is in one huge file. The parts that are to remain closed source will have to be factored out, as much as possible, in separate classes, so that they can be distributed in compiled form, still allowing one to work on the base open source part without having the complete source.

I also need to pick up a repository where we should host the source code, and prepare it for the Jan 03 launch. Probably github, but I need to investigate the alternatives.


A man with a plan. I like it Smiley Thanks to offer your services and congrats to make the team Jean-Luc. Very pleased that some bugs are already resolved. Thanks for that too.
I encourage and support completely all efforts to focus on making existing functionalities super robust, before new ones are added. We go for broad adoption, right?
Problems and difficulties myself and so many others experienced, and reported here on the forum, could scare new Nxt'ers away easily. All efforts to try to avoid that, are well spent IMO. And being target of attacks is not the only potential difficulty we and newbies will experience I suppose.

I would also encourage to improve and simplify the 'how to get started' procedures for newbies: Installation, configuration (editing an xml file? we don't expect every Nxt'er to be an IT'er as well, right?), creating startup files depending of platform (Win, linux, iOS, ...), starting the server (On windows it should be a background service with an automatic start @boot time instead of a manual started cmd window IMO), how to choose a safe enough private key (passphrase), generating a public key (account nb), asking, earning, getting or buying some nxt's on whatever exchange (a separate procedure in itself) and then use the Nxt blockchain explorer (great tool nexern) to check your (or another's) account and transactions. It makes no sense to explain to people how they can make a payment, if they don't have at least some Nxt on their own account, does it?
Although I'm an IT'er and have experience with multiple languages, java and others, I don't consider myself a java specialist and certainly not a cryptographer. But I'm still willing to help somewhere, although I'm not sure with what or how. I would consider to help based on suggestions?

P.S. This morning I had  +20.000 orphaned blocks and a script error message in the client running on Win7/Firefox: "Script: https://localhost:7875/orpanedBlocks.html"
Stopped the server, overwritten both .nxt files with the (old) ones from the 0.4.7e download, updated the WellKnown list with the latest posted here and restarted the server. When I reopened the client, I got another script error: "Script: https://localhost:7875/recentBlocks.html:200". Pushed F5 and since then all is ok (for now).

I suggest an attempt should be made to improve the self-recovering capability of the network. I don't know the technical details to make specific recommendations though. I hope somebody else has an idea (and shares it Wink)

Sorry for the long story  Wink, but keep up the good work
Jump to: