How to Run VB.net Code as an Administrator

Whenever you see this error message

“Cannot open [Windows service name] on computer “

error

you need to run the VB.Net code as an “Administrator”. There are 2 solutions available.

Solution 1: Modifying “app.manifest”

  1. Go to project and select “(Project Name) properties…”
    1
  2. Click on “View UAC Settings”
    2
  3. Find the code “<requestedExecutionLevel level=”asInvoker” uiAccess=”false” />”
    3
  4. Replace the code with “<requestedExecutionLevel level=”requireAdministrator” uiAccess=”false” />”
  5. You will be able to run your sample code now.
  6. Later, when the code is compiled to executable (exe), this VB.Net application will also run as “Administrator”.

 

Source:

 

Solution 2: Running Visual Studio as an “Administrator”

Step 1: Find Visual Studio IDE in program files, for my machine it is located at “C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE”a

Step 2: Right click on “vbexpress.exe” and select “Properties”b

Step 3: Click on “Compatibility”, then check on “Run this program as an administrator” , then click “OK”
c

Step 4: Run the program and it will run as administrator.

Fail to Get MOBITEK S80 to Work in USB port in VirtualBox

This method mentioned in https://www.wintips.org/how-to-setup-usb-on-virtualbox-guest-oracle/  was used to test the USB driver of MOBITEK S80 3G Modem in the virtual machine (Windows Server 2012 64-bit)

After installing Extension Pack in VirtualBox, USB 2.0 and USB 3.0 shown in the USB list

When virtual machine was started, the “Sierra Wireless” device was shown in the list:-

The COM PORT (COM6) appeared in “Device Manager”:-

However, in Hyper Terminal the “AT-OK” test could not be performed because it seems like the Hyper Terminal only catch the physical COM PORT of the MOBITEK S80, but the connection is not actually established with the modem. Nothing can be typed in Hyper Terminal to test the connection.


 

The same problem happens in Linux Mint running in VirtualBox

  • VirtualBox version: 6.1
  • OS in virtual machine: Linux Mint 17 ‘Qiana’ Cinnamon 64-bit

Mobitek S80 that attached to Linux Mint running in VirtualBox can be detected when running the “dmesg | grep tty” command in Linux Mint’s Terminal

But each interface from “ttyUSB0” until “ttyUSB4” which MobitekS80 is attached to cannot be tested with AT command in CuteCom. CuteCom will be frozen when the AT command was entered.

ERROR [HY000] [MySQL][ODBC 5.1 Driver]Host ‘175.xxx.xxx.xx’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’

Problem: when using MOBITEK SMS Engine — Enterprise Edition v. 7.1 with MySQL database server in remote server (Exabytes), this error will appear after 2 days.

MOBITEK® SMS Engine — Enterprise Edition

 

SMS Engine was started on 23-Aug-2019, non-stop, until these error messages were received on 25-Aug-2019, Sunday, 1:41 am

01:42:21 ERROR [08S01] [MySQL][ODBC 5.1 Driver]Lost connection to MySQL server at 'reading initial communication packet', system error: 0
01:42:25 ERROR [HY000] [MySQL][ODBC 5.1 Driver]Host '175.xxx.xxx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
01:42:28 ERROR [HY000] [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '72.xx.xxx.xx' (10055)
ERROR [HY000] [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '72.18.132.28' (10055)

 

Trouble Shooting: The SMS Engine does not hold the database connection. It always close it after every execution of database query otherwise the engine would have failed long time ago.  Any other applications connecting to this database ? This error can also happen when there are too many connections issued to the database. Default concurrent connection for mysql is 151.

 

Conclusion: MOBITEK SMS Engine — Enterprise Edition only uses 1 database connection.

 

List of Problems with Facebook Page

Problem: If the the post with video attached is edited, even though I did not remove the video, the video will be automatically removed.

Solution: none.


Problem:

  1. The default administrator account has problem with uploading video

    and accessing “Video library”
  2. The above 2 errors occurred when used in:-
    1. Opera browser Version:68.0.3618.125 in Asus laptop
    2. Chrome browser Version 83.0.4103.61 (Official Build) (64-bit) in Asus laptop
    3. Chrome browser Version 81.0.4044.138 (Official Build) (32-bit) in  Dell-E6410 laptop
    4. IE 11 in Asus laptop

 

Solution: add another FB account as “Administrator” and able to solve the above roblem — able to access “Video library” and successfully upload video.

 


(T, please add here …)

Demonstration of Automatically Form Filling of “Laporan Harian Pematuhan SOP”

This video demonstration shows how business can automate the report filling of “Laporan Harian Pematuhan SOP”  (https://notification.miti.gov.my) by using AutoHotkey.

 

To find out how you can do the same, please refer to the tutorial …

SOP of Refreshing Windows 8.1 for Asus Zenbook UX303L

  1. Before Windows Refresh, use SyncBack to back up files to Buffalo external HDD.
  2. Run Windows Refresh , USB thumb drive “Windows Recovery” is required in order to refresh.
  3. After Windows Refresh is completed, remove Metro Apps using PowerShell command (https://news.softpedia.com/news/How-to-Remove-All-Pre-Installed-Windows-8-Metro-Apps-328110.shtml) :
    • Get-AppxPackage -AllUsers | Remove-AppxPackage
    • Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage –online
  4. Run Windows Update to update all updates.
    • optional — install “KB 3138615” first if Windows Update stuck
  5. Reinstall drivers and anti-virus software:-
    • Windows Classic Shell;
    • Intel via Intel-Driver-Support-Assistant;
    • NVIDIA via GeForce Experience;
    • Asustek;
    • Webroot
  6. Optional:-
    • create a recovery media (Windows installer) using USB thumb drive;
    • create a password reset key using USB thumb drive;
    • create a back-up of Windows Activation Key.
  7. Run System Image to create a system image of newly refreshed Windows with drivers and anti-virus installed.
  8. Restore files using SyncBack from Buffalo external HDD to “Documents”
  9. Reinstall software as per “Remove Applications.html”

How to Automatically Fill-In Laporan Harian Pematuhan SOP

Quick Guide

  1. Install AutoHotkey (AHK).
  2. Select the script “SOP Daily Report v. 2.0 for 2020-05-21 (demo).ahk”.
  3. Unzip the “SOP Daily Report v. 2.2 for 2020-05-27 (Demo).zip”
  4. Run the script by double clicking on “ahk” file.
  5. Log into https://notification.miti.gov.my
  6. Go to “Laporan Harian Pematuhan SOP”.
  7. Run the hotkey by pressing <CTRL> then <1>,  all fields on that page will be automatically filled in less than 3 seconds.
  8. Finally, manually click “Hantar” to submit the report. Refer to video below for a demonstration …

If you require our service to customise the script or to provide training, please contact us …

 

BEFORE AFTER

Continue reading

How to Ensure that the Customer Has a PayPal Account

Seller protection is very important to prevent charge-back by customer/buyer

 

In order to do so, the customer must have a PayPal account. Otherwise, in the event of charge-back, PayPal will immediately refund the money back to customer.

 

In PayPal setting, disable the PayPal Account Optional feature:-

  1. Click the Settings icon next to “Log out.”
  2. Click My Selling tools.
  3. Click Update beside ‘Website preferences.’
  4. Select ‘Off’ under ‘PayPal Account Optional’ near the bottom of the page.
  5. Click Save.

With this turn off, customer must register an account with PayPal. This is an added security to prevent fraud and it enables seller protection.