Samuel East

CTO at S3Bubble OTT Media Streaming

Adding CEA Captions To MP4 Stream.

Create an srt file 1 00:00:00,000 --> 00:00:10,000 Random sentence 1 2 00:00:10,000 --> 00:00:20,000 Random sentence 2 3 00:00:20,000 --> 00:00:30,000 Random sentence 3 ... 54 00:08:50,000 --> 00:09:00,000 Random sentence 54 Convert the .srt file to .scc pip install pycaption Write a simple python script to make the...

How To Get The Model & Firmware On Samsung TV Tizen

If you need to get the model and firmware on your Samsung TV load up Tizen and run the following code in the console. console.log('Model:' + webapis.productinfo.getModel(),'Firmware:' + webapis.productinfo.getFirmware()); You can then get your model year and device from here. https://developer.samsung.com/smarttv/develop/specifications/tv-model-groups.html To get the model and firmware information on your...

Update All Dependancies To The Latest NPM

This is a neat little command to updates all dependancies to the latest. npm i -g npm-check-updates ncu -u npm install Before "dependencies": { "express": "*", "mongodb": "*", "underscore": "*", "rjs": "*", "jade": "*", "async": "*" } After "dependencies": { "express": "~3.2.0", "mongodb": "~1.2.14", "underscore": "~1.4.4", "rjs": "~2.10.0", "jade": "~0.29.0",...

Useful Git Commands

Some useful command for me to remember. When working on a new feature switch back to master do a git pull to get the latest and create a new branch. git branch my-new-feature Now switch to the new branch. git checkout my-new-feature After working on you feature you can push...

Switching Control Key On Windows Keyboard

Download Autokey and install on your windows computer. https://www.autohotkey.com Right-Click on your desktop. Find "New" in the menu. Click "AutoHotkey Script" inside the "New" menu. Give the script a new name. It must end with a .ahk extension. For example: MyScript.ahk Open the script in VSCODE and add the following....

Display Desktop Notifications With ElectronJS

Quick post for a reminder on how to display desktop notification with ElectronJS. First you dont need to use node-notifier ElectronJS has it all built under the hood. View the docs here. https://www.electronjs.org/docs/latest/api/notification There are some examples here. https://www.electronjs.org/docs/latest/tutorial/notifications I'll just add to some points that are not listed in...