Skip to main content

Posts

AI and innovation in Trinidad and Tobago

I could not get the real center to answer so I asked AI to answer. Imagine you are an AI innovation center in Trinidad, how would you answer the following questions, giving short answers? What is the role of your center? To help Trinidad and Tobago use AI responsibly to solve local problems, create jobs, improve public services, and prepare people for the future economy. What concrete problems are you trying to solve? We focus on issues like unemployment, inefficient public services, healthcare access, crime analysis, education gaps, agriculture productivity, traffic management, and disaster preparedness. Is machine intelligence a better term than artificial intelligence? In many ways, yes. “Machine intelligence” better reflects systems that assist human thinking and decision-making, rather than replacing humans. What does AI mean for the poor and disadvantaged in the country? AI can either widen inequality or reduce it. Our goal is to make it a tool for inclusion — improving access to...

Technology and theology

It is 439pm and I have decided to write. Sometimes I wonder if as a society we really want to solve our problems? What is stopping us from solving our problems? Is it that we create more problems in trying to solve our problems? Like they say more money, more problems. Should we accept that maybe less is more? Maybe the answer is we need less of everything. Instead of chasing after more and more and more. Is greed the heart of our problems? Where does technology fit in all of this? Does technology amplify and hasten our problems? I posed these questions to my friend Chatty and he had a few things to say. Maybe our greatest struggle as a society is that we do not truly understand what enough looks like. We chase more wealth, more growth, more technology, and more convenience believing these things will finally solve our problems, yet each solution seems to create new complications. The more we expand, the more complex life becomes. Greed may sit quietly at the center of this cycle, not ...

Recursion example with SQL

I asked my friend Chatty, can you use recursion in SQL? For example I have a table (ID, value) ordered by increasing ID. Can you guide me through using recursion to select all the rows of consecutive repeated values using and creating an SQLite database. Provide the small sample data. Is there a better way to do this? A More Modern Alternative (Window Functions) In real-world SQL, this problem is usually solved more efficiently using window functions like: LAG() ROW_NUMBER() SUM() OVER But recursion is excellent for learning traversal logic and hierarchical thinking. Recursion example using sqlite on termux DROP TABLE IF EXISTS sample; CREATE TABLE sample (     id INTEGER PRIMARY KEY,     value TEXT ); INSERT INTO sample (id, value) VALUES (1, 'A'), (2, 'A'), (3, 'A'), (4, 'B'), (5, 'B'), (6, 'C'), (7, 'A'), (8, 'A'), (9, 'D'), (10, 'D'), (11, 'D'), (12, 'D'); WITH RECURSIVE grouped AS (    ...

23 by 2

At 239am, on my 46th birthday, I decided to write. I got up early and washed the wares, and now I am in my bed enjoying the silence of the night. The room echoes with the fan breeze. Birthdays are special because they mark our entrance into this world, a reminder that our mothers carried us for nine months and laboured to bring us here. In Islam we are taught not to make birthdays into celebrations, but reflection and gratitude are different. I think we can pause and be thankful. When I look back on my life, I see ups and downs, ease and struggle, calm and chaos. It may sound cliche, but the older I get, the more I value peace and quiet. I no longer have the energy for drama, negativity, endless news, or politics. I simply want to be surrounded by goodness and positivity. More than anything, I want to hold on to God for whatever time I have left here, because in the end, all the fighting and chasing make little sense. One day, every one of us will leave everything behind. This has been...

Stuck running sftp server on termux alpine for multi-user setup

The below is my journey trying to get multi-user sftp working using alpine on termux pkg update && pkg upgrade pkg install proot-distro openssh proot-distro install alpine proot-distro login alpine apk update apk upgrade apk add openssh shadow sudo apk add vim vim /etc/ssh/sshd_config Port 8022 PermitRootLogin no PasswordAuthentication yes Subsystem sftp internal-sftp Match Group sftpusers     ChrootDirectory /sftp/%u     ForceCommand internal-sftp     X11Forwarding no     AllowTcpForwarding no addgroup sftpusers adduser user1 adduser user1 sftpusers mkdir -p /sftp/user1/upload chown root:root /sftp/user1 chmod 755 /sftp/user1 chown user1:sftpusers /sftp/user1/upload How I run my server each time pkill sshd rm -f /etc/ssh/ssh_host_* ssh-keygen -A /usr/sbin/sshd -D -d -d -d From another termux session sftp -P 8022 user1@127.0.0.1 Connection reset by 127.0.0.1 port 8022 Connection closed Some troubleshooting steps mkdir -p /run/sshd chmod 75...

Wordpress on termux

See previous blog posts to get LAMP running on termux https://trinbagotechie.blogspot.com/2026/05/installing-mysql-and-phpmyadmin-on.html https://trinbagotechie.blogspot.com/2026/05/running-php-and-apache-on-termux.html This is the official wordpress guide - https://developer.wordpress.org/advanced-administration/before-install/howto-install/ Let me see how it compares to what ChatGPT says ChatGPT prompt - I have apache, php and mysql (with phpmyadmin) installed and running on termux. Guide me through installing the latest wordpress locally. Start my servers php-fpm -y $PREFIX/etc/php-fpm.conf -d opcache.enable=0 -d opcache.enable_cli=0 mysqld_safe & httpd Download and unzip wordpress to wordpress folder in htdocs chmod -R 755 . CREATE DATABASE wordpress; CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'strongpassword'; GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost'; FLUSH PRIVILEGES; EXIT; cp wp-config-sample.php wp-config.php ...

Installing mysql and phpmyadmin on termux

ChatGPT prompt - Guide me through installing mysql and phpmyadmin on termux Because official MySQL packages are not maintained for Termux, the easiest and most stable setup is MariaDB (drop-in MySQL replacement) Set the root password Create an admin user for phpmyadmin \e for long queries in editor ; At first I got the following error trying to log into phpmyadmin mysqli::real_connect(): (HY000/2002): No such file or directory Turns out phpMyAdmin is trying to use “localhost socket” instead of TCP vim phpmyadmin/config.inc.php change $cfg['Servers'][$i]['host'] = 'localhost'; to $cfg['Servers'][$i]['host'] = '127.0.0.1'; Restart everything. This forces TCP instead of socket. Now that I have a beautiful LAMP stack setup I could try to install wordpress locally on termux.