Catatan

Tunjukkan catatan dari 2023

Project : TrainScheduler JDBC MySQL using Eclipse

Imej
 Development notes only C:\Users\Nurahlee\eclipse-workspace\TrainScheduler JTable How to Create the JTable Header Eclipse in Java - https://www.youtube.com/watch?v=_SP0Y7XN6Sk

Troubleshoot C# Error WMI

Other Alternative https://wiki.idera.com/plugins/servlet/mobile?contentId=2338650487#content/view/2338650487 Please refer this link from Chatgpt https://chat.openai.com/share/5f03de60-fe58-4d7a-b6c1-bad689fa1472

Delete service Windows 10

Imej
  Command to type : > sc delete ServiceName Refer - https://www.howtogeek.com/1294/how-to-delete-a-windows-service/#:~:text=To%20delete%20a%20service%20on,ServiceName%22%20to%20delete%20the%20service.

WMI Control Configuration for Err: Access Denied

Imej
 Cannot connect to the ManagementScope via C#. Access denied Solution from ChatGpt If you're encountering an "Access Denied" error while trying to connect to a `ManagementScope` in C#, it's likely a permissions issue. Here are some steps you can take to troubleshoot and resolve the problem: 1. **Run as Administrator:**    Ensure that your C# application is running with administrative privileges. Right-click on your executable and choose "Run as Administrator." 2. **Check User Permissions:**    Verify that the user running the C# application has the necessary permissions to access the WMI (Windows Management Instrumentation) resources on the target machine. The user might need administrative privileges or specific WMI permissions. 3. **Firewall and Antivirus:**    Disable your firewall or antivirus temporarily to see if they are causing the issue. Sometimes, security software can block WMI connections. 4. **DCOM Configuration:**    Check the DCOM (Distributed

PHP OCI SQL Command

Imej
  To show list table in the database > SELECT table_name from all_tables where owner = 'WEBUSER'; To describe structure in table >  describe webuser.books; ff

PHP Oracle using XAMPP

Imej
  Refer this video :  https://www.youtube.com/watch?v=_CNM6ie-PwQ Oracle Instant Client Downloads for Microsoft Windows https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html PHP Pecl extension https://pecl.php.net/package/oci8/3.2.1/windows Command to create new user webuser

Java Multithreading

Imej
  CREATE UI Create your first Java GUI using Eclipse IDE 2021 - https://www.youtube.com/watch?v=4sVJuH0NdSw Solution for Error:This package java. awt. * is not accessible in Eclipse. - https://www.youtube.com/watch?v=ROoRWVjgPO4 Java Eclipse GUI Tutorial 23 # Show System Date and Time in JFrame ( Dynamic Clock ) https://www.youtube.com/watch?v=tpQAslXjNKU

Laravel RBA using middleware

  Refer to Chatgpt https://chat.openai.com/share/9489242f-f2da-454e-ae3b-67a10036542e In Laravel, middleware is a way to filter HTTP requests entering your application. Middleware can be assigned to routes to perform various tasks before or after the request enters the controller. To create middleware for user and admin roles, you can follow these steps: 1. **Create Middleware:**    You can create middleware using the following Artisan command:    ```bash    php artisan make:middleware CheckRole    ```    This will generate a `CheckRole` middleware class in the `App\Http\Middleware` directory. 2. **Modify the Middleware:**    Open the `CheckRole` middleware class (`App\Http\Middleware\CheckRole.php`) and implement the logic to check the user role. Here's a simple example:    ```php    <?php    namespace App\Http\Middleware;    use Closure;    use Illuminate\Support\Facades\Auth;    class CheckRole    {        public function handle($request, Closure $next, $role)        {      

Arduino change config alternative

Imej
Just note untuk diri sendiri.. Untuk buat dynamic update bin file untuk arduino GDU.. boleh guna FTP Server.. Insert satu config file yg kita boleh ubah variable dia.. so after ubah variable.. kita akan restart RTU tu. Select board Select board Export compiled binary Compiling sketch Done Compiling Show sketch folder Copy the bin file Bootloader

Best photo enhancer

  1. cutout.pro https://www.cutout.pro/photo-enhancer-sharpener-upscaler/upload https://www.cutout.pro/remove-background/upload

Multihomed Windows Server

Imej
  Multihomed Windows Server 2012R2 splitting network traffic on both interfaces -  https://serverfault.com/questions/1016239/multihomed-windows-server-2012r2-splitting-network-traffic-on-both-interfaces Chatgpt :  https://chat.openai.com/share/ecb917f3-0132-43c5-9866-56a802a42d12 Configure ECMP what happen when i bridged 2 different network port that connect to 2 different switch huawei and cisco in the server network configuration ? Bridging two different network ports that connect to two different switches, one Huawei and one Cisco, in a server network configuration can be done, but it's essential to understand the potential implications and challenges involved. Here's what happens when you bridge these ports: 1. Layer 2 Bridging: When you bridge the two network ports, you are essentially creating a single broadcast domain. This means that devices connected to both switches will be in the same Layer 2 network, and they can communicate with each other as if they were on the sa

git init for existing git project

Imej
Can I connect git if I downloaded the code as zip? Reference : https://stackoverflow.com/a/56179702 TL;DR short version relevant commands: git init git remote add origin git@github.com:somecompany/some-repo.git git add . git pull origin master Full story: I was having trouble cloning the repo so I eventually downloaded and expanded the zip instead. I did  git init  after which  git status  showed: On branch master No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore .rspec .ruby-version ...(all the directories of the project)... nothing added to commit but untracked files present (use "git add" to track) Then I added the origin with  git remote add origin git@github.com:somecompany/some-repo.git I did a  git fetch  which got the remote's branches info. When I did  git pull origin master  it said: From github.com:somecompany/some-repo * branch master -> FETCH_HEAD