Blogs

How I setup my nvim | Debian 12

I use this preconfigure nvim config: https://github.com/NeuralNine/config-files/blob/master/init.vim
1. Install neovim 

sudo apt install neovim git-core curl

2. Create nvim directory under .config and paste the neovim preconfiguration from NeuralNine to init.vim

/home/username/.config/nvim/init.vim

3. Install nvim plug in directory (https://github.com/junegunn/vim-plug) /home/username/.config/nvim:

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61 + flutter

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61

Solution:

I just update distributionUrl value at android\gradle\wrapper\gradle-wrapper.properties to a gradle compatible with my JDK version (19)

distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip

Error: module java.base does not "opens java.io" to unnamed module @65c2d059 + Flutter

The solution from GitHub has worked for me. It was no need to downgrade Java JDK. Just changed gradle version in gradle-wrapper properties to 7.1.1 (6.x does not support java 16), and adding the following line in gradle.properties:

Debian 11 bullseye drupal local environment

Debian 11 bullseye drupal local environment

Clone the repository into ~/projects/drupal/projectname

** Dump database from production ** 2. Dump database from prod drupal website using drush:

../vendor/drush/drush/drush sql-dump --gzip --result-file=../db_dump_08072023_1102am_latest.sql

3. Copy dump db from local using rsync

rsync --progress username@domainname.com:~/directory/db_dump_08072023_1102am_latest.tar.gz ~/projects/drupal/projectname

* Create mysql user

Debian 11 Bullseye environment

Debian 11 Bullseye

1. After installing the OS, Update the /etc/apt/sources.list

deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

deb http://deb.debian.org/debian-security/ bullseye-security main
deb-src http://deb.debian.org/debian-security/ bullseye-security main

deb http://deb.debian.org/debian bullseye-updates main
deb-src http://deb.debian.org/debian bullseye-updates main

deb http://ftp.hk.debian.org/debian sid main non-free-firmware

2.

Sudo apt update

to update the sources
3.

Using manager to install node version | ReactJS

There is a good manager that will help you with all node versions. It's called nvm(Node version manager).

https://github.com/creationix/nvm

All install guides are on git page. I install it like this.

curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh

bash install_nvm.sh

Check to see if everything installed correctly

nvm --version

Telephony sendsms not working + Unhandled Exception: PlatformException(failed_to_fetch_sms, Flutter Telephony: Error getting SmsManager, null, null) | Flutter

Fix using

installed telephony version 0.1.1
flutter version 2.10.3

Dual wan + Fail over - mikrotik

# may/24/2022 14:35:48 by RouterOS 6.40.4
# software id = W8V4-SIVP
#
# model = RouterBOARD 931-2nD
# serial number = 7CBD08915F53
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface ethernet
set [ find default-name=ether1 ] name=1-Globe
set [ find default-name=ether2 ] name=2-Smart
set [ find default-name=ether3 ] name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=10.0.0.2-10.0.0.254

Pag hindi ka maka connect sa pisowifi ngrok admin | PISOWIFI

Pag hindi ka maka connect sa ngrok admin.

This site can’t be reached xxxx-xxx-176-64-191.ngrok.io’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE

dns ip address
Ibig sabihin nito kailangan niyo palitan ung DNS sa ip settings sa computer/phone mo. Iset niyo lang ang DNS

You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set | flutter

Uploading flutter android sdk 31 version makes an error on google play store.

You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported

android app bundle error

error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree | flutter

memory leak error/warning

This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().

Just add this line of code before calling the setstate.

if (!mounted) {
  return;
}
// your setState here

Paano maka access ng pisowifi online | pisowifi | wifi ng bayan

Steps pano maka access online sa wifi ng bayan vendo:
1. Register ka muna sa ngrok website(https://dashboard.ngrok.com/signup) pra maka kuha ng authentication token
ngrok registration page

2. Once maka login kana sa ngrok, copy niyo ung authentication token sa ngrok account.

Pisowifi ssid palagi nalang naka connecting | PISOWIFI | How to solve

Pag ung pisowifi pag connect mo is naka connecting lang lagi, obtaining IP ADDRESS pag check mo sa settings ng phone mo. Possible problema:
1. Check natin ung USB TO LAN baka nasira or nag malfunction na. Palitan lang natin ng bago and make sure ung bago is tested na working.
usb to lan
2. Pag hindi padin nag work, icheck natin ung utp cable from USB TO LAN (gamitin muna nating ung bago hindi ung luma para maka sigurado tayo na working ung USB TO LAN).

CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate using an letsencrypt-signed webserver | flutter

I have spent so many hours just to figure this out. I use wss(secure) for my django websocket. Ive realized that using firebase and firecamp is working perfectly, but in my flutter app websocket connect it does not work. arggg, spending many hours working this error (I initially dont know why the heck is this).

Adding this piece of code in the main.dart file fix my issue. :)