Archive for January, 2022

Creating my first electron application

First install NodeJS so that "npm" is in the $PATH.

Next download the debian package from here (and install it via "dpkg -i <deb_package>":

https://www.electronjs.org/fiddle

Then create a directory in your $HOME as "electron" and inside:

npm init (for more details see this: https://www.electronjs.org/docs/v14-x-y/tutorial/quick-start)

and the following file (package.json) will be created:

{
"name": "electron",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^16.0.7"
}
}

Add the line "start": "electron ." in the script key-value pair as shown below:

(so that when we enter "npm start" the following command "electron ." will be executed)

npm install electron@latest (to install electron packages: https://www.electronjs.org/blog/electron-16-0)

From here:

https://www.electronjs.org/docs/latest/tutorial/examples

Create the three files in the electron directory: index.js (renamed from main.js), preload.js and index.html

Modify index.html to make it unique to yours and then enter "npm start", the following screen will popup:

After all the GUI windows created by NodeJS is close, there is still a lot of Electron Fiddle processes:

THis is weird.

How to install FreeBSD using VMware images as provided by FreeBSD?

Now I had install the FreeBSD’s using the VMDK images provided by FreeBSD:

https://download.freebsd.org/ftp/releases/VM-IMAGES/

using the following guidelines provided by VMware (sadly, FreeBSD download page does not provide any guidelines, but you can find these instruction inside the discussion forum):

https://kb.vmware.com/s/article/2010196

After installation, and starting the FreeBSD, you will discover the rootfs is only 5GB large (ignore the 95G freespace, which is added as described below).

How to enlarge it further?

Following up on my previous blog which provided the steps in detail:

https://tthtlc.wordpress.com/2019/12/01/how-to-extend-the-vmdk-filesystem-if-it-is-100-utilized/

I added 95G via the VMWare expand disk option.

Next is the "gpart resize" command, which require the "-i" and geometry specification – these can be found out via "gpart show" command.

Finally after issuing "gpart -i 4 -s 98G -a 4k ada0" I successfully resize the rootfs to 98G:

Next is "growfs /dev/gpt/rootfs" and then checking utilization again:

It is 4% utilized now instead of 100%.

Viola.

Vickblöm

Research scattered with thoughts, ideas, and dreams

Penetration Testing Lab

Offensive Techniques & Methodologies

Astr0baby's not so random thoughts _____ rand() % 100;

@astr0baby on Twitter for fresh randomness

The Data Explorer

playing around with open data to learn some cool stuff about data analysis and the world

Conorsblog

Data | ML | NLP | Python | R

quyv

Just a thought

IFT6266 - H2017 Deep Learning

A Graduate Course Offered at Université de Montréal

Deep Learning IFT6266-H2017 UdeM

Philippe Paradis - My solutions to the image inpainting problem

IFT6266 – H2017 DEEP LEARNING

Pulkit's thoughts on the course project

Thomas Dinsmore's Blog

No man but a blockhead ever wrote except for money -- Samuel Johnson

the morning paper

a random walk through Computer Science research, by Adrian Colyer

The Spectator

Shakir's Machine Learning Blog