Posts

Firebird 5.0 - configuration file & Rename Service Name

Image
 firebird.conf Edit Registry & Restart PC
Image
 BDE Setting Solve the error "Insufficient memory for this operations."

How to pay bonuses before salary payments

Image
Kindly ensure that bonuses are incorporated into the monthly payroll along with salaries to facilitate accurate computation of statutory contributions. Including bonuses separately may result in incorrect contribution calculations. It is imperative that all payments, including bonuses, be integrated into the monthly payroll, as contributions are required to be settled within the specific month.  These are the steps to follow to calculate net bonus amounts to pay bonuses before salary payments:    1. Enable BONUS in Payroll Period  2.  Choose the payroll period and enter the bonus amount for the employee. 3. Payroll Calculation for Period "3" 4. Print your pay slip for BONUS 5.  Create pay file to bank 6. Example. Transfer this amount to Employee's bank account. After deduct PCB & EPF. 7. This is your typical monthly pay slip (Period 2) 8.  At the end of the month, you are required to submit a total amount of RM 4271 (Bonus 3600.05 + 670.95) to LHDN.

To Enable IIS HTTPS on your website

Image
  1. Go to " https://www.win-acme.com/ " Download WIN-ACME  2. In IIS, create a self-signed certificate. 3. In IIS, find your sites. click "Bindings..." Add https and hostname. Choose "MyCert" as your SSL certificate" 4. Unzip and copy to a new folder 5. Run "wacs.exe" as administrator,  Press "A" then press "Y", fill in your email address if request. 6. Choose the correct SSL certificate in IIS Bindings
Image
How to hide password in web.config file   C:\Windows\Microsoft.NET\Framework64\v4.0.30319> aspnet_regiis -pe "connectionStrings" -app "/Web" -prov "RsaProtectedConfigurationProvider" The command will convert your text in <connectionStrings> into

ASP.Net Upload, Paste and Save Image to Database (Binary)

Image
1. Image name = " SketchSrc1 " 2. Add a HiddenField to store image string ("hf...")    <asp:HiddenField ID="hf SketchSrc1 " runat="server" Value="" /> 3. Add an Image component ("img...") <asp:Image ID="img SketchSrc1 " runat="server" CssClass="img-thumbnail" ImageUrl="~/Images/NoImage.png"  Width="260px" Height="260px" Style="max-width: 300px; min-height: 100px; max-height: 600px" /> 4. Add "Upload", "Clear" and "Paste" button for new image ("file...", "clear...") <div>     <div id="divImgEd1" runat="server" visible="true">         <input type="file" accept=".jpg, .jpeg" name="image1" id="file SketchSrc1 "             onchange="loadFile(' SketchSrc1 ', event)" style="display: none;">

Service Install Command

 MyService.exe /install /silent To uninstall the service application you open a command prompt and type:   MyService.exe /uninstall