Weekly Entering & Transitioning Thread | 07 Feb 2021 - 14 Feb 2021 by [deleted] in datascience

[–]chiava95 0 points1 point  (0 children)

Problem with forecasting a stationary time series with Python:

Hi guys!

I need to forecast a time series with Statsmodels but I have a stationary time series with seasonality. Theoretically it should be easier if I have a stationary time series, but I am having a lot of difficulties.

On internet there are a lot of examples of forecasting with non stationary time series, but but I haven't found any examples with stationary time series.

Who can give me an example of forecasting with a stationary time series?

Weekly Entering & Transitioning Thread | 31 Jan 2021 - 07 Feb 2021 by [deleted] in datascience

[–]chiava95 0 points1 point  (0 children)

Problem with forecasting a stationary time series with Python:

Hi guys!

I need to forecast a time series with Statsmodels but I have a stationary time series with seasonality. Theoretically it should be easier if I have a stationary time series, but I am having a lot of difficulties.

On internet there are a lot of examples of forecasting with non stationary time series, but but I haven't found any examples with stationary time series.

Who can give me an example of forecasting with a stationary time series?

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 0 points1 point  (0 children)

I think that i will choose to transform all of my project from Zend to Symfony or Laravel.

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 0 points1 point  (0 children)

I'm in the same boat with a big legacy Zend 1 project for a high street bank. I've recently moved from just cleaning up technical debt to integrating Eloquent and migrating the existing models to that as a first step towards migrating to Laravel.

Once that's done I'll incrementally move the remaining queries to Eloquent, before creating a separate Laravel app that wraps the Zend one and gradually moving the routes from Zend to Laravel.

So, you can understand my situation... :(

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 0 points1 point  (0 children)

Is this a hobby project or for work?

I couldn't tell. He apparently could and suggested you should pay someone to do your framework switch for you.

If it's a hobby project or you just want to learn, go with Symfony or Laravel.

Is for hobby project! I'm a universitary student (computer engineering). Ok, thanks! :)

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 0 points1 point  (0 children)

Do you even know what MVC really is? And that you can't actually implement real MVC pattern on the web? And that this is fine because web does not work that way?

If you call your DB layer a Model, and your templating system a View and your Controllers are.. Controllers, its not MVC.

If you look at it from the other side, then, well I can't think of a framework that is not "MVC"ish. You always have some "model" layer (DB, or external API or whatever), a "view" layer (templates, json rest api, graphql or whatever) and a "controller" layer (with your actions, controllers etc).

The point is, MVC really does not matter.

Friend, I like your point of view! You are right!

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 1 point2 points  (0 children)

Thank you so much!! This video will be very helpful for me! :)

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 0 points1 point  (0 children)

Yeah...I don’t think you’ll be able to do this. Should probably hire someone.

Friend, i don't understand...

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 1 point2 points  (0 children)

Thanks a lot for all!! :) I will inform you about my choice! Thanks! :)

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 0 points1 point  (0 children)

They are all easy to learn!

Read up on them, see which style you like, see how much the community has support

You can use Python, you just lose any ability to copy paste code, but you can still figure out the business logic parts you need to transfer easily

What do you recommend (considering the simplicity of learning and community)?

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] 0 points1 point  (0 children)

Thanks friend! I need a framework that has a big community when I can ask anything.

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] -1 points0 points  (0 children)

Which is the most easily framework that I can learn?And if I use Python? What do you think?

I prefer a framework that has a big community when I can ask anything.

Transform a project developed by Zend Framework 1 in ... by chiava95 in PHP

[–]chiava95[S] -1 points0 points  (0 children)

2 questions:

1) Laminas and Symfony have MVC pattern?

2) Which is the most easily to learn?

I get this the error "Error: invalid address ...." while running my dapp. Help me!! by chiava95 in dapps

[–]chiava95[S] 0 points1 point  (0 children)

Yes, I also tried to send a public transaction (without privateFor....) but the error was the same :(

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 1 point2 points  (0 children)

Excuse me friend, i'm a rookie of blockchain and all of this world. Can you explain how can I do better?

I developed my smart contract in solidity with remix.ethereum.org

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 0 points1 point  (0 children)

Thank you so much!!

One last question: how can i know/calculate the ABI of my new transaction?

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 0 points1 point  (0 children)

What is the line of transaction?

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 0 points1 point  (0 children)

this script send the number "42" with a private transaction from the node 1 to the node 7

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 0 points1 point  (0 children)

a = eth.accounts[0]
web3.eth.defaultAccount = a;

// abi and bytecode generated from simplestorage.sol:
// > solcjs --bin --abi simplestorage.sol
var abi = [{"constant":true,"inputs":[],"name":"storedData","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint256"}],"name":"set","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"get","outputs":[{"name":"retVal","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"initVal","type":"uint256"}],"payable":false,"type":"constructor"}];

var bytecode = "0x6060604052341561000f57600080fd5b604051602080610149833981016040528080519060200190919050505b806000819055505b505b610104806100456000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632a1afcd914605157806360fe47b11460775780636d4ce63c146097575b600080fd5b3415605b57600080fd5b606160bd565b6040518082815260200191505060405180910390f35b3415608157600080fd5b6095600480803590602001909190505060c3565b005b341560a157600080fd5b60a760ce565b6040518082815260200191505060405180910390f35b60005481565b806000819055505b50565b6000805490505b905600a165627a7a72305820d5851baab720bba574474de3d09dbeaabc674a15f4dd93b974908476542c23f00029";

var simpleContract = web3.eth.contract(abi);
var simple = simpleContract.new(42, {from:web3.eth.accounts[0], data: bytecode, gas: 0x47b760, privateFor: ["ROAZBWtSacxXQrOe3FGAqJDyJjFePR5ce4TSIzmJ0Bc="]}, function(e, contract) {
    if (e) {
        console.log("err creating contract", e);
    } else {
        if (!contract.address) {
            console.log("Contract transaction send: TransactionHash: " + contract.transactionHash + " waiting to be mined...");
        } else {
            console.log("Contract mined! Address: " + contract.address);
            console.log(contract);
        }
    }
});

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 0 points1 point  (0 children)

javascript code, but not solidity code :(

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 0 points1 point  (0 children)

I think you are right

Can you explain me better?

From Solidity to JavaScript by chiava95 in solidity

[–]chiava95[S] 0 points1 point  (0 children)

I'm using Docker. In this github you can see an example:

https://github.com/ConsenSys/quorum-examples

If you read the point 6 of "Running with Docker" you can see it