elective-stereophonic
elective-stereophonic
Show Posts - NxtSwe
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - NxtSwe

Pages: [1]
1
Nxt Projects / NxtTipbot for slack
« on: September 21, 2016, 10:30:36 pm »
Hello,

I recently played with the Slack API and created a NXT tipping bot for the Slack.
It's quite basic in functionality, although it supports sending public tips in NXT, MS Currencies and Assets.



Also some basic commands are available in direct messages



Code is here:
https://github.com/libertyswede/NxtTipbot

Use with caution.

2
Democracy Counts! / Project status?
« on: August 15, 2016, 04:51:55 am »
Question for devlux, what is the status of this project?
  • I have tried to reach devlux through email, but not recieved any reply.
  • None of the democracy counts repo's have been updated since june, https://github.com/democracycounts
  • He has not been online on the forum since june.
Is this project dead?

3
Live stream interview with Tai Zen & Damelon about Ardor:

https://www.youtube.com/watch?v=WfNSWu7_AqU&feature=youtu.be

Here's Tai's thoughts on what was wrong with NXT three months ago: https://nxtforum.org/general-discussion/the-madonna-solution-a-proposal-to-reinvent-nxt-in-2016-to-avoid-extinction/
Will Tai agree that Ardor is NXT's Madonna solution?
I guess we'll have to wait and see.

4
A friend of mine suggested that we should set up an image where most of the steps in the guide is already done. To simplify the process for linux novices.
I'm a linux novice myself, so setting up an image is something I cannot do.

To keep it updated he also suggested some autobuild function, so keeping it updated when new versions of NRS, JRE, etc. comes out it won't be too much work to update the image.
Of course, the preferred option is always to do it yourself, to be certain that no one has tampered with the software, but not everyone is comfortable with all the linux commands and when they see the guide they think it's too much work, etc.

Linux experts, feel free to fill in info with how these things are usually done.
Is it worth having a bounty for this?

edit: modified topic

5
Nxt Plugins / Asset Feeds
« on: June 26, 2016, 11:56:19 am »
Howdy,

I've seen some suggestions about extending the data an asset issuer can give to their asset holders and potential buyers.
Since the core devs are super busy working on 1.9 and Ardor, it will not be a priority for them to include that now.

So I thought I'd make a plugin for now, and if there's interest, maybe the core devs can just snatch it and incorporate it into the core client at a later time.

This is work in progress, and this what I've done so far:


Features:
  • News feed, asset issuer writes something and it pops up here. Stored as a prunable message, so it will be removed after 30'000 blocks (21 days) by default.
  • Logo, stored in the data cloud by asset issuer. This will also be pruned by default.
  • Custom asset info, stored as key + value on the asset issuer account. Stored as account properties and will remain until asset issuer removes them.

Only asset issuer can update this info btw.
Admittedly, front end layout is not my specialty, so there's definitely room for UI improvements. But what do you think of the basic idea?

6
Howdy,

I recently did set up a dev environment in intellij for the nxt core, in order to understand the api a bit better, so I thought I'd share my experience here.
Please note that I'm not a java dev, and it's the first time I am using intellij, so the instructions is a bit basic, but that's the level of java dev I am.
If any real java devs have tips and tricks of how to improve this process, please go ahead and post here.

So, I'm using windows 10, I have JDK 1.8, IntelliJ 2016.1.1 (community edition, the free version) installed also having git installed and know how to use it is something I will assume you already know.
So, here's how I did set it up:
  • git clone https://bitbucket.org/JeanLucPicard/nxt.git
    In my example I've placed it in C:\git\nxt
  • Open up IntelliJ, Create New Project and select Java and 1.8 as Project SDK
  • As for project location, set the root path of your git repoistory, in my case C:\git\nxt and press finish
  • Go to "file\project structure", select the Project tab, and in project compiler output change the C:\git\nxt\out to C:\git\nxt\classes
  • Select the modules tab.
    You should see that the src folder is blue, select the src folder and unselect the "Sources" toggle button.
    Instead, select the java subfolder and select the Sources toggle button, making this folder blue instead.
  • In the same view, select the conf folder and toggle the Resource button
  • Nxt, select the Libraries tab, press the + and choose 'java' in the dropdown and the choose the entire C:\git\nxt\lib folder.
And that's all it took to be able to compile and debug nxt.Nxt class.
Now, it's not complete, I don't get the wallet UI if I browse to http://localhost:7876/ but the server starts, and it is fetching blocks, and calling individual api functions work too, so it is good enough for me at the moment.

7
Nxt General Discussion / What would you do?
« on: April 12, 2016, 06:20:14 pm »
I just had a discussion over Skype with Marc, and one question popped into my mind:

If you had 100M NXT, what would you do?

There has been a lot of talk of ICO, inflation, donation, etc. but very little about what we would actually do with the money if we get them.
Should we hire developers? If so, what would they do?
Should we do more marketing? If so, who would be the target group?
Anything else?

Let's just pretend for a second that we have funds, what would you like to see done?

8
Assets Board / See invisible dividends
« on: June 15, 2015, 10:32:01 am »
Hi,

I've created a plugin that will show the native dividend transaction AKA, "invisible dividend".
More info here: https://nxtforum.org/nxt-plugins/dividend-plugin/

9
Nxt Plugins / Dividend plugin
« on: June 15, 2015, 10:08:13 am »
Dividend plugin

Features
  • Show recieved NXT dividend transactions (the core type, not those payed by Dividend+)
  • Phased transactions safe
  • Shows full history (all dividend payments) to current accout

How to download?
Download link: https://github.com/libertyswede/dividend-plugin/archive/v1.01.zip
Unzip, and move the "dividend" folder to your nxt\html\ui\plugins - folder.

About
Have you ever wondered if you recieved any dividend from your assets?
Have you ever known that the asset has payed out a dividend, but you are not sure how much you got?
Then this plugin is for you!
It will show all dividend payments recieved by the current logged in account, and a summary showing the count & sum of all recieved dividend payments.

Version History
  • v1.01, Added summary box and minor fixes
  • v1.0, Initial release


It will need to process current accounts entire asset trade & asset transfer history to calculate number of shares at any given height.
So for some heavy trading users loading the list can take a minute or two from logging in to the client.
As an example, loading an account with 23'000 asset transfers took ~40 seconds on my local machine.

Please note that this plugin will only show the native dividend transaction (type=2, subtype=6), and NOT the ones payed by Dividends+ from MGW/superNET.

10
Nxt Plugins / Dividen payments
« on: May 10, 2015, 08:41:14 pm »
Dividend payments - a plugin for looking up specific dividend transactions.

The purpose of this plugin is for asset issuer (and others) to look up specific dividend transactions and see who received it, and how much each account got, etc. You will need to input a transaction id and it will find and the details about that dividend transaction.
Note, this will only show the NXT built in dividend transaction type. Not the ones sent with Dividend+.

There's an updated list of dividend transaction ids here: https://nxtforum.org/assets-board/record-of-invisible-dividends-(sticky-requested)/msg164261/#msg164261 (poke me if it hasn't been updated for a while).

Download: https://github.com/libertyswede/dividend_payout/releases/download/v0.1/dividend_payout.zip

Installation instructions:
  • Download the file dividend_payout.zip
  • Exctract the dividend_payout folder and place it in your nxt\html\ui\plugins - folder
  • Done!
This plugin could potentially steal all your funds. If you don't trust me, don't download this plugin! The same applies to all plugins!
If you're a developer, it's less than 200 lines of javascript code, so it shouldn't be too hard to verify that I'm not doing anything fishy.

Let me know if there are any problems.

The ui here is not ideal if you own a couple assets and just want to know when you get more funds.
I am working on that as well, it's a separate project and will result in a separate plugin.



11
Nothing in this world can take the place of persistence. Talent will not: nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not: the world is full of educated derelicts. Persistence and determination alone are omnipotent.
- Calvin Coolidge

The NXT community is full of people who are too stubborn to realize it's a scam, even though you are being told just that every single day. You keep on releasing new versions of a software that according to most other crypto enthusiasts should just seize to exist. Your Facebook articles get around 2 likes, and you still don't get the point.
Some of you might be geniuses, some well educated, but in the end, what will win the fight is percistence.

Keep it up!
I just bought more.

12
API discussion / NxtLib - a typed .NET API wrapper for NXT
« on: February 09, 2015, 10:52:05 pm »
Howdy folks,

If you are using C# (or VB.NET), I've made a library that makes the json api into typed .NET objects.
It currently supports all json api functions in NRS 1.10.2 and supports .NET Framework 4.0 & 4.5 as well as .NET Platform Standard 1.3.

Supported features:
  • All 245 api functions found in Nxt core client API, with typed request/responses.
    More info on how to find the functions here.
  • Support for local signing of transactions, without having your secret phrase leave your local application.
    Sample program can be found here.
  • Support for local message encryption/decryption/compression/decompression, with full compability with NRS messages.
    Sample program can be found here.
  • Support for local token generation and decoding.
  • A Password Generator, with support for variable bit strength (128 is default). The same logic and dictionary as NRS is being used.

NxtLib makes writing code and debugging a lot easier, when it turns this:
Code: [Select]
{
  "unconfirmedBalanceNQT":"1102137300400",
  "guaranteedBalanceNQT":"1102137300400",
  "effectiveBalanceNXT":11021,
  "forgedBalanceNQT":"1800000000",
  "balanceNQT":"1102137300400",
  "requestProcessingTime":1
}

... into this:


So, if you are a .NET developer, try it out and let me know if there's any problems.

Links and stuff:
Github: https://github.com/libertyswede/NxtLib
Nuget: https://www.nuget.org/packages/NxtLib
Youtube #1: https://www.youtube.com/watch?v=jc8BqEKIRjg (video of how to check balance and send nxt using C# and NxtLib)
Youtube #2: https://www.youtube.com/watch?v=_H_xbLSSGkY (showing the local signing features in NxtLib)

13
Monetary System / NxtAcademy crowdfunding
« on: February 04, 2015, 06:24:32 pm »
I've tried to wrap my head around all the details regarding a EXCHANGEABLE / RESERVABLE currency, but I just don't seem to get it.  :'(
Here's the important data about NxtAcademy's MS currency:

Code: [Select]
{
    "initialSupply": "100",
    "currentReservePerUnitNQT": "3400000000",
    "types": [
        "EXCHANGEABLE",
        "RESERVABLE"
    ],
    "minReservePerUnitNQT": "50000000000",
    "currentSupply": "100",
    "issuanceHeight": 370000,
    "reserveSupply": "1000",
    "decimals": 0,
    "currency": "10799769034008917597",
    "maxSupply": "1000",
}

What does it mean when "currentSupply" is set to 100, while "reserveSupply" is 1000?
Does it mean 100 unites are currently under the control of salsacz, and the founders get to divide the remaining 900?

nope, because 900 coins will be released for at least 500 units. Only if 900 units will be bought, then it will be 1 unit per 1 coin.

So, if the founders buys 900 "units", there will be 1 "coin" per "unit".
minReservePerUnit is 500NXT, so 900 x 500 = 450,000NXT, but I've read that minimum amount to be raised is 500,000NXT.

 ???

As you can see, I'm very confused and I've probably gotten most info backwards. If any kind soul with MS knowledge could explain this for me I'd appreciate it.
Thanx!

14
General / Strange check in NRS code
« on: July 28, 2014, 09:17:38 pm »
Hi,

I'm not sure if there's a better place for this topic, but it's regarding the NRS code.
The code in TransactionType.java, for alias assignment type looks like this:

Code: [Select]
void loadAttachment(TransactionImpl transaction, ByteBuffer buffer) throws NxtException.ValidationException {
  int aliasLength = buffer.get();
  if (aliasLength > 3 * Constants.MAX_ALIAS_LENGTH) {
    throw new NxtException.ValidationException("Max alias length exceeded");
  }
  byte[] alias = new byte[aliasLength];
  buffer.get(alias);
  int uriLength = buffer.getShort();
  if (uriLength > 3 * Constants.MAX_ALIAS_URI_LENGTH) {
    throw new NxtException.ValidationException("Max alias URI length exceeded");
  }
  ...

Those two if-statments does not make any sense to me. Why do we multiply the value by 3?
We're using UTF-8 encoding which only takes one byte per char.
And since aliasLength is a byte (max value 255) and Constants.MAX_ALIAS_LENGTH is 100, aliasLength will never exceed 3 * Constants.MAX_ALIAS_LENGTH (300) as it is larger than maximum value for a byte. So it seems like it's impossible to get a validationexception in the first if statement.

Again, if there's a better way to get core dev's attention, let me know.
Cheers!

15
General / Question about source code and GuaranteedBalance
« on: June 27, 2014, 12:05:15 pm »
Hi,

I've been investigating the nxt core the last couple weeks, my mission is to understand it.
I've come to a stop in the Account class, and more specifically how we handle GuaranteedBalance.

In a nutshell, here's what my test does:

1) Account.addToBalanceNQT(100) Adds 100 NQT on block height 2
2) Account.addToBalanceNQT(50) Adds 50 NQT  on block height 1 (simulating a block pop off).
3) Account.getGuaranteedBalanceNQT(0) Fetches guaranteed balance for 0 confirmations, using block height 1.

I would expect to get 50 back, but I get 0.
Is this a bug, or is this expected behavior?

PS. I have created a simple isolated test case for this. But I am unable to post the link here.
PM me if you want the link, it's a single java-file where I've extracted the relevant code.

16
Introduce Yourself / Howdy from Sweden
« on: June 24, 2014, 09:02:17 pm »
Howdy,

I'm a 32 year old dad of 1 (soon 2) kids, working full time as C# developer in Stockholm (Sweden).
I've been busting my ass off last couple weeks trying to migrate NXT core from Java --> C# during evenings and nights, mostly for fun and learning how things really work under the hood. We'll see if I ever reach the finish line though, it's a lot of code :)

I've grown tired of the mining hype in bitcoin world and must say I enjoy the forging functionality of NXT!
Even though I only own a tiny fraction of them myself :)

Good to be here!

Pages: [1]
elective-stereophonic
elective-stereophonic
assembly
assembly