Order of Higher Order Components (HOC) matters

I’ve just learned the hard way that order of calling Higher Order Components (HOC) matters and can lead to hard to debug errors. I’ve used the Redux and React Router Dom. Started with Redux so I had component like so:

import react, {Component} from 'react'
import connect from 'react-redux/lib/connect/connect';

class Home extends Component {
    // ... chopped for brevity

export default connect(mapStateToProps)(Home);

Continue reading

Storyline 360 custom volume control

Today I was asked by my colleague at work to help her out with fixing problem with custom volume control. She was using StoryLine 2 solution from this page but on Storyline 360. Following is the script from the SL2 solution:

var player = GetPlayer();
var volumeCount = player.GetVar('volumeCount')

Continue reading

Acer Aspire 7535, power on but not booting

I had for some time problem with my Acer Aspire 7535 laptop that it wasn’t turning on. The power light was on, the fan was working but nothing else. It was helping to turn off-turn off cycle and usually after 10-15mins it was starting to boot. Recently it “died” completely and as I needed laptop ASAP I’ve bought another one and putting faulty aside. After holiday my wife rushed me to do something with it “fix it or bin it”, so I’ve searched and nothing worked, then I’ve recalled that after successful boot the laptop had time/date not updated which gave me an idea to replace bios battery. I’ve looked at the acer laptop manual, I’ve found how to disassemble it and replaced flat battery. After doing this laptop started to work again:)

No beep, power-on indicator turns on and LCD is blank. – check bios battery 🙂