Category Archives: Support

How to Code LibreOffice Basic (VBA) to Automatically Increase Number

Problem: I am using LibreOffice version 4.4, currently I use “drag down method” to automatically increase the number, e.g. LT1, LT2, LT3, …., LT100

How do I achieve the same result using LirbreOffice Basic (VBA)?

 

Solution:

REM ***** BASIC *****
Sub Main

rem define variables
dim document as object
dim dispatcher as object

rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

dim args1(0) as new com.sun.star.beans.PropertyValue
dim args2(0) as new com.sun.star.beans.PropertyValue
dim i as integer 
dim iLT as integer
 rem goto cell "A1"
 args1(0).Name = "ToPoint"
 args1(0).Value = "$A$1"
 dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())
 
 rem loop and insert suffix for "LT" of the item code
 For iLT = 401 to 500
 
 rem loop and insert suffix from "00" until "99" into the item code
 For i = 0 to 99
 
 
 args2(0).Name = "StringName"
 if len(i) = 1 then
 args2(0).Value = "06-st-0888-LT" & iLT & "-0" & i
 else
 args2(0).Value = "06-st-0888-LT" & iLT & "-" & i
 end if
 
 rem to enter the item code into the cell
 dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args2())
 
 rem move down one cell
 dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args1())
 
 Next i
 
 Next iLT
End Sub

How to Code LibreOffice Basic (VBA) to Automatically Increase Number

How to Resize Hard Disk Partition Without 3rd Party Software

Problem: my PC’s partition C drive is full, I need to increase the size or volume of the C drive. I have a lot of space in D drive. I do not have any 3rd party software like Paragon Partition Manager, EaseUS Partition Manager, etc. How do move or allocate free space in D drive to C drive?

 

Solution: you do not need any 3rd party software, Windows 7 and above should able to allocate free space from 1 partition to another (provided both partitions are on the same hard disk). Refer to the steps below …

  1. goto Disk Management
  2. if you wish to increase of the C drive volume, then right click on the partition next to C drive (in this case it is D drive)
  3. right click on D drive, select “Shrink Volume… ” to reduce the size of D drive:-
  4. 01-How to Resize Partition-Shrink the volume of Dright click on C drive, select “Extend Volume…” to increase the size of C drive
    02-How to Resize Partition-Extend the volume of C partition

 

How to Connect to MySQL Server (Host Machine) from VMWare (Virtual Machine)




Problem: I have an application in VMWare that needs to connect to MySQL database server in host machine. Both host machine and virtual machine are on the same server. How do I do it?

 

Solution: refer to the steps below …

  1. In host machine, one has to create a new MySQL User and assign privileges as below in Query prompt via phpMyAdmin or SQL editor:-
    CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
    GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT OPTION;
    CREATE USER 'username'@'%' IDENTIFIED BY 'password';
    GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;
    FLUSH PRIVILEGES;
  2. Once done with all four queries, the virtual machine should able to connect with IP address, user name and password of database’s host machine, e.g.:-
    IP address: 192.168.0.59
    Port: 3306
    User: (username)
    Password: (Password)

Source: http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server

List of Manuals/Guides Revised as at 2016-12-23

Here is a list of manuals or guides that were revised or recently published:-

VB.net Sample Code for MOBITEK SMS API version 9.2 Revised

Visual Basic .Net sample code has been revised to include the following example:-

  • GetMSISDN
  • GetIMSI
  • Voice class

More Information

SMS Rate in Malaysia

Last updated on 29/Sep/2016

OPERATORS PLANS SMS to SAME NETWORK SMS to OTHER NETWORKS SOURCE
Celcom Xpax Turbo 12 sen 12 sen https://www.xpax.com.my/xpaxturbo
Celcom FIRST™ Platinum RM150/month Unlimited SMS Unlimited SMS https://www.celcom.com.my/personal/plans/platinum
Digi Preaid Best 6 sen 12 sen http://new.digi.com.my/prepaid
Digi Preaid LiVE 20 sen; for Buddyz 0 sen 20 sen http://new.digi.com.my/prepaid
Digi Postpaid 80 / 78 / 68 / 48 10 sen 10 sen http://new.digi.com.my/postpaid-plans
Digi Postpaid 28 15 sen 15 sen http://new.digi.com.my/postpaid-plans
Digi Postpaid 128 / 218 Unlimited SMS Unlimited SMS http://new.digi.com.my/postpaid-plans
Maxis Hotlink Hotlink FAST pack 1 sen 12 sen http://www.hotlink.com.my/en/plans/fast.html
Maxis MaxisONE Plan 188 / 158 / 128 / 98 Unlimited SMS Unlimited SMS http://www.maxis.com.my/en/personal/plans/postpaid-plans/maxisone.html
U Mobile Power Prepaid 8 sen 8 sen http://www.u.com.my/prepaid
U Mobile Hero Postpaid P98 / P70 / P50 3 sen 8 sen http://www.u.com.my/postpaid
U Mobile Hero Postpaid U28 5 sen 12 sen http://www.u.com.my/postpaid

Quick Installation Guide for Multiple SMS Engines

Applies to : MOBITEK SMS Engine — Basic Edition version 5.x

For multiple SMS Engines,

  1. Backup your old/current Access database
  2. Uninstall old engine
  3. In the MOBITEK thumb drive, look for the installer “Setup SMS Engine – Basic Edition with 4 engines.exe”
  4. Run the installer, it will install 4 engines but you will only use 2
  5. If you need your old records, then copy and overwrite the Access database; otherwise skip this step
  6. Goto “start”, look for …multiple-sms-engines-01
  7. Configure “SMS Engine 1” for use with modem no. 1
  8. Configure “SMS Engine 2” for use with modem no. 2
  9. If require, you may need to grant permission “full control” to the Access database