handbrake Roku

Jul 2, 02:56 AM

handbrake-roku-480p30—framerate-23-point-976 — 2024-07-12

May be EASIER to install Jellyfin on roku & PC than trying to convert

vlc to convert vid to Roku media


select Video - H264 + mp3 (mp4) option, save as (dot)mp4 file (thought it was h265 option...)

ctrl-J views: h-264 option

VLC command line example:

“c:Program Files (x86)VideoLANVLCvlc.exe” “c:UsersmarkDesktopogv-conversionmediaFilesamericanogvphoneticVideo6-vowel.ogv” -I dummy

—sout=

#transcode{vcodec=VP80,vb=2000,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:

std{access=file{no-overwrite}

,mux=webm

,dst=‘C:/Users/mark/Desktop/ogv-conversion/mediaFiles/american/webm/phoneticVideo/6-vowel.webm’}

vlc://quit

Mark Edwards

,

---

MariaDB installing specific versions

Nov 16, 10:20 AM

to install a specific MariaDB version:

curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s — —mariadb-server-version=“mariadb-10.5.22” ;
dnf -y install wget;
wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup ;
chmod +x mariadb_repo_setup ;

./mariadb_repo_setup —mariadb-server-version=“mariadb-10.5.22” ;

/usr/bin/dnf —assumeyes install mariadb-server ;

systemctl start mariadb.service ;
systemctl enable mariadb.service ;

https://mariadb.com/kb/en/mariadb-package-repository-setup-and-usage/

https://www.dbi-services.com/blog/how-to-install-a-specific-version-of-mariadb/

Mark Edwards

,

---

json web tokens (JWT)

Oct 9, 04:17 AM

export JWT_SECRET_KEY=ABCD ; ## command line!

const jwt = require(“jsonwebtoken”);

const makeToken = (email) => { const expirationDate = new Date(); expirationDate.setHours(new Date().getHours() + 1); return jwt.sign({ email, expirationDate }, process.env.JWT_SECRET_KEY);
};

const myPublicToken=makeToken(‘mark@edwardsmark.com’);

console.log ( jwt.verify( myPublicToken, process.env.JWT_SECRET_KEY) );

Mark Edwards

,

---

smart html elements grid notes

Aug 18, 08:42 AM

https://www.htmlelements.com/docs/grid-cell-edit/

editor:
{ label: ‘Product’, dataField: ‘productName’, width: 150
, editor: ‘textArea’

, editor: ‘numberInput’
, editor: ‘textArea’
, editor: ‘input’
, editor: ‘autoComplete’
, editor: ‘dropDownList’

label: ‘Date’, dataField: ‘date’, cellsFormat: ‘d’, editor: { template: ‘dateInput’, min: new Date(2022, 5, 1), max: new Date(2022, 10, 1) } editor: ‘timeInput’

Mark Edwards

,

---

Disable CORS policy on chrome

Aug 14, 01:38 PM

method one:
For Windows:
Open the start menu
Type windows+R or open "Run"
Execute the following command:
   chrome.exe --user-data-dir="C://Chrome dev session" --disable-web-security
from: https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

method two:

- RIGHT-CLICK the lock symbol immediately left of the URL
- click “GEAR Site settings” (bottom option)
- scroll down to “Insecure content” (seventh from bottom)
- change “Block” to “Allow”

Mark Edwards

,

---

« Older Newer »

Manage