Thursday, May 29, 2025

Facebook custom "friend list"

Facebook has feature to create and maintain custom "friend list". The purpose of 'friend list" is to share with spesific list of friends.


For example, you have friend lists contain

1. list of college 

2. list of family

3. list of gamer

4. list of office friends

5. etc


By default, when you add a new friend or accepting a new friend, he/she will be member of "Friend" list. You can not remove a member from "Friend" list.


A friend can be member from some list. For example Mr Foo can member of gamer and college.


When we post something, there are 5 targeted audience:

1. public : to view worldwide

2. friends : only facebooker that is your friend.

3. friends except... : only facebooker that is your friend without some friends that you excluded.

4. only me : only you (to keep personal)

5. see more : where you can pick custom list. Only one list you can select.


To create custom "friend list" (on PC)

1. sign in using pc 

2. from your feed, Friend -> see more.

3. Custom list -> create list

4. fill the name of list and confirm.

5. you can start to fill the custom list.



How to put/remove a friend in custom list on android

1. search your friend and open his/her profile.

2. tap "Friends" -> "Edit friend list

3. select/check friend list to add friend. you select/check more then one. for example, you check game and college. or you can remove a friend from list friend vy unselect/uncheck it.

4. click back button to save it.


when you need, to post something for specifif friend, change audience from public/friends to see more, then select list friend you prefered.


tips:

it is hard to maintain friend list if member so big, ie more then 100. we suggest:

1. create friend list only for spesific purpose that required privacy. for example family, office, college, etc.

2. when you add/accept your spesific friend,  immediately put he/she into your list friend.


Wednesday, May 28, 2025

How to search and fix broken link in your blogspot

Blogspot indexing stopped when your pages have broken link

You can use external online tool to find out where is broken link. 

There are 2 online tool available for free
  1. 1. https://www.deadlinkchecker.com/ -> faster
  2. 2. https://www.brokenlinkcheck.com -> slower


put your root url e.q. https://dedetoknotes.blogspot.com.

Put your root url e.q. https://dedetoknotes.blogspot.com, and click search. Fill captcha code is required. 

After waiting for some times, the web will show you which link are broken. 

In other browser, sign in into your blogspot. Find a key workd which the link was broken.

For example link reported broken was https://github.com/dedetok/fail2ban-to-mysql/blob/gh-pages/mlocaldb.conf. You can find in blogspot search "fail2ban to mysql".

Repeat to search and fix manually the broken link. You can ask the web tool to researching broken link.

NOTE:

Do not put any active url link into your page! Just inform the url, not linked it.

Friday, May 9, 2025

Netbeans 25 with JDK 17 add MariaDB Connector/J 3.5 into Project

Netbeans 25 can be download from https://www.apache.org/dyn/closer.lua/netbeans/netbeans/25/netbeans-25-bin.zip. Extract it, it will create folder netbeans. 

On debian, to run netbeans:

[home_user]\netbeans/bin/netbeans

On window, to run netbeans (windows 64):

[folder]\netbeans\bin\netbeans64.exe

Note: on windows, if you want to clean install remove/delete folder C:\Users\[username]\AppData\Roaming\NetBeans\[any_previous].

Download mariadb-java-client-3.5.3.jar from https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector/ and choose mariadb-java-client-3.5.3.jar.

Add mariadb-java-client-3.5.3.jar into project

  1. create a New Project -> Java with maven -> Java application
  2. in tab Files under your project, create folder libjar
  3. copy mariadb-java-client-3.5.3.jar
  4. in Project -> your project, right click on Dependencies, Add Dependency:
    Group ID: org.mariadb.jdbc
    Artifact ID: mariadb-java-client
    Version: 3.5.3
  5. Scope: Runtime
  6. done. 

Run your database and test your project by editing your java files:

    public static void main(String[] args) throws SQLException, ClassNotFoundException {
        // TODO Auto-generated method stub
        String muser = "
my_user";
        String mpass = "
my_password";
        String murl = "jdbc:mariadb://localhost:3306/
my_database_name";
        Class.forName("org.mariadb.jdbc.Driver");
        Connection connection = DriverManager.getConnection(murl, muser, mpass);
        System.out.println("ok");
    }

Add mariadb to Services:

  1. to add mariadb connector j, go to Services -> Right Click Databases -> New Connection.
  2. Select MariaDB (MySQL-compatible).
  3. select jar file.
  4. next.
  5. fill/adjust username, password and database name.
  6. test connection.
  7. if successfull, next.
  8. leave default connection info and finish.

You can manage your mariadb database from Service.

Thursday, May 8, 2025

Eclipse 2025-03 (4.35.0) with JDK 17 add MariaDB Connector/J 3.5 into Project

Download mariadb-java-client-3.5.3.jar from https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector/ 

Open eclipse:

  1. create folder lib
  2. copy mariadb-java-client-3.5.3.jar into [workspace_root]/myca/lib/
  3. open project properties -> Build Path -> Configure Build Path
  4. go to tab Libraries and click Classpath -> Add External JARS, i.e. [Workspace_root]/myca/lib/mariadb-java-client-3.5.3.jar 
  5. apply and close

To test mariadb-client without without Eclipse, write TesCon.java using any editor:

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.SQLException;

public class TesCon {

    public static void main(String[] args) throws SQLException, ClassNotFoundException {
        // TODO Auto-generated method stub
        String muser = "
my_user";
        String mpass = "
my_password";
        String murl = "jdbc:mariadb://localhost:3306/
my_database_name";
        Class.forName("org.mariadb.jdbc.Driver");
        Connection connection = DriverManager.getConnection(murl, muser, mpass);
        System.out.println("ok");
    }

}

Run from command line/terminal

$> javac TesCon.java

$> java -cp ./:./mariadb-java-client-3.5.3.jar TesCon

window:

D:\>javac TesCon.java

D:\>java -cp .\;.\mariadb-java-client-3.5.3.jar TesCon

In Eclipse:

  1. create a new Java Project
  2. optional: create package
  3. add a Class with Name TesCon.java
  4. copy paste the code above. If you create a package, replace all after "package [your_package];"
  5. run project
Every major release eclipse, adding external jar, especially j connector, into eclipse is very painful. Loading mariadb connector j using eclipse is Fail.

Wednesday, May 7, 2025

Cara membeli sim card perdana by.u dan cara aktivasinya

Buat akun https://www.byu.id/v2. Anda dapat menggunakan no HP operator apapun, akun Gmail atau akun email lainnya. Data ini akan digunakan saat aktivasi. Selain melalui web, pembuatan akun dapat dilakukan melalui aplikasi android ataupun apple.

Pesan kartu dengan memilih nomor yang anda inginkan. Kartu akan dikirim ke alamat anda. Kartu akan expired setelah 30 hari pemesanan.

Setelah kartu diterima, kartu perlu di aktivasi. di paket tersedia serial number sim.

Untuk aktivasi, anda tidak perlu menggunakan kartu baru tersebut. Gunakan internet lain yang lebih sudah jalan.
Langkah aktivasi:

    install aplikasi by.u melalui android play store atau apple store.
    login menggunakan data yang anda gunakan saat membeli kartu sim di awal.
    pilih aktivasi kartu.
    masukan data serial number sim, nik dan no KK.
    ikuti proses sampai aktivasi berhasil.

Bila aktivasi kartu selesai, kartu siap dimasukan/dipindahkan ke handphone lain untuk digunakan. Secara default, anda memiliki paket 3GB untuk 30 hari.

opsional: membuat apn by.u di android
1. buka setting, cari Mobile Network
2. akan muncul Telkomsel di slot yang terpasanh by.u.
3. pilih Access Point Names.
4. bila APN belum ada, tambahkan APN baru. isikan data berikut, biarkan yang lain default/kosong.
     Name: byu
     APN: byu
5. aktifkan APN by.u.