Tuesday, August 09, 2022

finding an electrician is hard in glasgow

 took me 1 month to find a decent electrician in Glasgow and this morning they came 3 guys :) I had only 3 light switches problem, I think one guy was like trainer and other 2 were interns :) anyway they worked 20 minutes and find out my problem is about old fueses. I did not know I have new fuses for heaters and old fuses for other appliences.

anyway he wired the old fuse and switches started working. now waiting for bill. he said next week they can replace this old box and do the ICR test. probably that will take 600. and today bill I am expecting 80. being a electrician in glasgow is very good job, they are hard to find.

Friday, August 05, 2022

graalvm run js from node

first install all requirements 

gu install nodejs 

gu install native-image 

gu rebuild-images libpolyglot 

then run 

node --native --polyglot -e 'var array = Polyglot.eval("ruby", "[1,2,42,4]"); console.log(array[2]);'

 

 

 

https://www.graalvm.org/22.2/reference-manual/js/NodeJS/

 

 

 

 

 

 

 

 

 

odd string diff

 https://leetcode.com/problems/odd-string-difference/ Beats 19.92% of users with Java   class Solution { public String oddString ( S...