« Back to home

Android sshd

Posted on

I have not been a fan of Android File Transfer. I remember there are a few sshd for Android. Someone mentioned about SSHelper. While it doesn’t seem to have source code on Github, it is a GPLed open source software by Paul Lutus. It provides ssh access to your android. pc$ ssh 192.168.10.227 -p 2222. Sshd is running on port 2222. User doesn’t matter. You can log in with password by default.…

Read more »

Sweet Home 3D

Posted on

I tried to open a Mac app called Sweet Home 3D.app and it failed. I tried from the command line: $ cd "/Applications/Sweet Home 3D.app/Contents/MacOS" $ ./SweetHome3D dyld: lazy symbol binding failed: Symbol not found: _CGContextSetAllowsAcceleration Referenced from: /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Libraries/libawt.jnilib Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices dyld: Symbol not found: _CGContextSetAllowsAcceleration Referenced from: /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Libraries/libawt.jnilib Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices Abort trap: 6 Solution: Install Java for macOS 2017-001. I did this before, but I had to do it again.…

Read more »

Docker eats Control-p

Posted on

I realized that I had to type Control-P twice when I connected to a docker container and was using a command line. I’ve created a docker config file under root home directory: // ~root/.docker/config.json - don’t type this { "detachKeys": "ctrl-@" } I am not using control-@. This solved the problem.…

Read more »

VIA Yocto notes

Posted on

setup-environment script OEROOT=sources/poky if [ -e sources/oe-core ]; then OEROOT=sources/oe-core fi … cd $OEROOT . ./oe-init-build-env $CWD/$1 > /dev/null # if conf/local.conf not generated, no need to go further if [ ! -e conf/local.conf ]; then clean_up && return 1 fi However, this seems not working as intended. Instead, I see the following message on console: Your configuration files at build have not been touched. which is at the end of the script:…

Read more »

Fix docker

Posted on

I used docker for building Yocto linux images and it used up the space.

docker info … Data Space Used: 107.4 GB Data Space Total: 107.4 GB Data Space Available: 0 B … The thin pool (?) is 100GB (107.4GB) and it is full.

I found this dicussion on github. You need to increase the pool allowed for your containers. To do this , you will need to remove your var/lib/docker which will destroy all your containers and images.

Read more »

Modifying Hugo layout

Posted on

I don’t quite like the layout. The left-side panel is taking too much space to me. The basic structure of the page was like this: Make the author column very narrow. Move the author column to the right. I’ve switched it to use flexbox layout. I’ve edited themes/hugo-minimalist-theme/static/css/styles.css. .container { display: flex; } .author { flex-grow: 0; margin-right: 40px; margin-left: 20px; } .content { flex-grow: 1; margin-left: 40px; margin-right: 20px; } It is not quite there yet, but I like it better than the original.…

Read more »

Play with Mirusan

Posted on

I was interested in dealing with PDF files in JavaScript. I found Mirusan on github. NOTE: I couldn’t get it work on my mac. It is just a note. Work log It has some python code and it requires python3. However, I didn’t have python3 on my system. Get python3 on a Mac. brew install python3 By using pip3 command, install packages against python3. pip3 install -r requirements.txt requirements.…

Read more »

EasyEDA Export BOM

Posted on

I wanted to get a list of components from EasyEDA. According to the documentation, I should be able to export it by clicking Export Bom button, but I didn’t see it on the UI. The first issue was that the menu buttons were somehow collapsed for me. By clicking these narrow dot line, you can get the menu expanded. Still I didn’t see the Export Bom button. I needed to have a lot wider window to see it.…

Read more »

Couldn't run EasyEDA simulation

Posted on

Summary Probing a ground level point with an EasyEDA simulation causes an error. This can be fixed by not probing the ground level. Detail I tried to run a circuit simulation against very simple test circuit and I got the following error: Circuit: gooduntitled Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 Warning: v1: no DC value, transient time 0 value used Warning: singular matrix: check nodes volprobe2 and volprobe2 Note: Starting dynamic gmin stepping Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Warning: singular matrix: check nodes volprobe2 and volprobe2 Warning: Dynamic gmin stepping failed Note: Starting source stepping Warning: singular matrix: check nodes volprobe2 and volprobe2 Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful gmin step Note: One successful source step Warning: singular matrix: check nodes volprobe2 and volprobe2 Warning: singular matrix: check nodes volprobe2 and volprobe2 Warning: source stepping failed Transient solution failed - Last Node Voltages —————— Node Last Voltage Previous Iter —- ———— ————- volprobe1 0 0 volprobe2 0 0 v1#branch 0 0 doAnalyses: iteration limit reached tran simulation(s) aborted Error(parse.…

Read more »