Categories
Mastering Development

How to play and seek fragmented MP4 audio using MSE SourceBuffer?

I am trying for quite some time now to be able to play an audio track on Chrome, Firefox, Safari, etc. but I keep hitting brick walls. My problem is currently that I am just not able to seek within a fragmented MP4 (or MP3). At the moment I am converting audio files such as […]

Categories
Mastering Development

Add matching values from one array to an array of original object

I have a users list like the following: [ { user: a, email: a.com, events: [] }, { user: b, email: b.com events: [] } ] And an events list: [ { user: a, start: 2020-01-01 end: 2020-01-02 }, { user: a, start: 2020-02-01 end: 2020-02-02 }, { user: b, start: 2020-03-01 end: 2020-03-02 }, […]

Categories
Cryptocurrency Ethereum Mastering Development

Transaction error thrown with Vyper smart contract in MetaMask

I am trying to troubleshoot a problem I’m having with a crowdsale contract (written in Vyper). The contract compiles fine, and I can deploy the contract to Rinkeby without any problems, however when I call the buyTokens function (below), MetaMask gives me the error "Transaction error: exception thrown in contract code". I looked online for […]

Categories
Mastering Development

Fullcalendar does not display the events

I cannot display the events in the fullcalendar, I am using vue and vuex to develop a laravel nova compoment with a modal window, I already try in some many ways but without success. I hope anyone can help me. my store is this: import Vuex from ‘vuex’; Nova.booting((Vue, router, store) => { Vue.component(‘fullcalendar’, require(‘./components/Tool’)) […]

Categories
Cryptocurrency Ethereum Mastering Development

quorum private transaction is giving error “Transaction has been reverted by the EVM”

In my project, I have created a 3 node quorum network using quorum-maker. I am calling my smart contract method from web3js. Public transactions are working fine but private transactions are always reverted by EVM. contract.methods.myMethod().send({ from: sendEtherAddress, gas: 3000000, privateFor: [publickey] }) Error: Transaction has been reverted by the EVM: { "blockHash": "0x60530ed0a29d140eb5f2303169be9faf8152966612e47acb07ba91409e28e973", "blockNumber": […]

Categories
Mastering Development

Opentok publisher.publishVideo() function is not working on ionic Cordova App on Mobile Devices

i have created an ionic application where i am using opentok api to implement video call. everything is working fine. i implement the functionality to turn On and Turn Off Camera by using publisher.publishVideo() function, the same way i implemented mute and unmute functionality of microphone by using publisher.publishAudio(). the problem is publishAudio() is working […]

Categories
Mastering Development

Logstash: is it possible to somehow add a field with a date difference of two or more log lines?

The question is as follows, I upload logs to elasticsearch using filebeat and logstash. "03.08.2020 10:56:38","Event LClick","Type Menu","t=0","beg" "03.08.2020 10:56:38","Event LClick","Type Menu","Detail Impale","t=109","end" "03.08.2020 10:56:40","Event LClick","t=1981","beg" "03.08.2020 10:56:40","Event LClick","t=2090","end" "03.08.2020 10:56:41","Event LClick","Type ToolBar","t=3026","beg" "03.08.2020 10:56:44","Event FormActivate","Name SomeName","t=5444" "03.08.2020 10:56:43","Event LClick","Type ToolBar","Detail Test","t=4477","end" These are logs of actions performed by users in web forms. Each action […]

Categories
CMS Mastering Development Wordpress

Can’t Access The Dashboard Functions

I just changed the theme of my website https://stammer.in but after changing the theme some functions from my Dashboard are missing. I can only Acess Post, Media, Pages, Comments, Events, Profile, Tools and WPBakery Page Builder. I can’t access to other functions like appearance, settings etc. Nor I can access to the visual composer to […]

Categories
Mastering Development Software

OOD vs MVC; Live Objects vs Everything in Database

How to make memory-efficient code, but still have all the possible code nicely encapsulated ? I have a feeling that the OO (object oriented) approach is more intuitive and the code is nicely organized and encapsulated, but it can use a lot of memory, because there are usually many live object instances in the memory. […]

Categories
Mastering Development Software

OOD vs MVC; Live Objects vs Everything in Database

How to make memory-efficient code, but still have all the possible code nicely encapsulated ? I have a feeling that the OO (object oriented) approach is more intuitive and the code is nicely organized and encapsulated, but it can use a lot of memory, because there are usually many live object instances in the memory. […]