I am using the raw module of SQLAlchemy, and not the Flask's version of SQLAlchemy, Flask's version is easier to use than the original as more abstraction has been implemented by Flask. This post is to record how tables can be created. Requirements.txt These python libraries are necessary, for this example I am using Mariadb … Continue reading [python]Create table with SQLAlchemy
Ok I did this to prevent my pc got hacked, my company has a policy that whomever pc is left turned unattended anyone can hack it. And I always forgot to do the super + L, so I decided to do a short cut and put in my menu bar, just a click will lock … Continue reading Creating lock pc shortcut.
This is a personal note for me if I need to install Arch Linux on virtual box again. Arch Linux is unlike Linux Mint, it only comes with a shell after installation you will need to install the software you need by using pacman. Grand reference is to use the Arch Wiki. Live CD There … Continue reading [Linux]Arch Linux installation until xfce desktop
I have made the grub configuration with grub-mkconfig -o /boot/grub/grub.cfg in the arch-chroot environment, after i generated the grub config I exited from the arch-chroot and unmount the /mnt then reboot, Arch could not be booted but instead my console was stucked in grub. this is because I have not downloaded the linux-firmware which includes … Continue reading [Arch Linux]Could not boot to Arch and stuck in grub shell
I first tried the Dragonfly and I felt Dragonfly is not for me, it does not share the same repo as FreeBSD despite it is based on FreeBSD. So I tried the FreeBSD then tried the OpenBSD, and I still like FreeBSD because the installation as compared with OpenBSD is friendlier and more automatic than … Continue reading [FreeBSD] Installation and setting up
So on my XFCE i cannot click on shutdown or restart, both buttons are greyed out. So I check the information with this command pkg info -D xfce4-session which gives this information. So I created a new rule file known as shutdown.rules and put the following contents inside the file. there is no need to … Continue reading [FreeBSD]Grey out shutdown and restart button in XFCE
Dragonfly is a FreeBSD distribution, the installation wizard is the command line type of menu, I had a feeling of nostalgic, I am a Windows and Linux user on modern Linux desktop distribution especially those forked from Debian or Ubuntu have very intuitive and attractive installation wizard which even tries to dynamically detect the hardware … Continue reading [FreeBSD]Installing Dragonfly BSD