The “ICT KNOWLEDGE BASE” is an initiative by the Maldives Computer Society to provide ICT professionals with a contemporary repository of ICT information. Articles to the KB are contributed by our members and is aimed at sharing information that our members come across as they go about in their professional duties.
ICT Knowledge Base
Knowledge Base Categories
Latest KB Items
Count Lines of Code and files in a folder using PowerShell
To get total line count in all files in a folder and its subfolders using Windows PowerShell: Open PowerShell in Administrative Mode Run code below, with the file types you want to count (dir -include *.php,*.js,*.css,*.html -recurse | select-string .).Count To count all files in a folder and its subfolders using Windows PowerShell: Open PowerShell in Administrative Mode Run code below, with the correct folder (Get-ChildItem “C:\FOLDER_PATH” -force -recurse).Count
Setting up Google Analytics for your website
Create and sign into your Google Analytics account. Select the ADMIN tab Select an account from the drop-down menu in the ACCOUNT column. Select a property from the drop-down menu in the PROPERTY column. Under PROPERTY, click Tracking Info > Tracking Code. This is your website tracking code. Example Tracking ID: UA-75533524-3 Place the Javascript Tracking Code inside the <head></head> tags of your web page. Verify the tracking code is working: Once you have successfully installed Analytics tracking, it may take up to 24 hours for data such as traffic referral information, user characteristics, and browsing information to appear in your reports. However, you can check your web tracking code setup immediately by going to REPORTING > Real Time.
Cleaning Installer folder in Windows 10
When applications are installed and updated on the Windows Operating System a hidden directory “c:\Windows\Installer” is used to store the installer (.msi) files and the patch (.msp) files. Generally these files are important as during updating, patching or uninstalling software it will use the .msi/.msp files. If you blanketly delete all the files in this folder, you will find yourself needing to rebuild windows. Over time as your computer is patched and patched again, these installer files become outdated and orphaned. They are no longer required, but they can take up many gigabytes of space on your hard disk. PatchCleaner PatchCleaner identifies these redundant/orphaned files and allows you to either: (Recommended) Move them to another location. If you want to play it safe, just move them to another location, and you can always copy them back. Delete them. PatchCleaner may on some machines be detected as Malware, this is however not the case. Download Patch Cleaner
Dhiraagu service short codes
To activate “Call Forwarding” on landlines On the landline handset dial: *21*RECIEVINGNUMBER# example: *21*7779331# To cancel call forwarding on landlines On the landline handset dial: #21*# To activate “Call Waiting” service on mobile phones Dial: *43# To receive Mobile “Internet Settings” by sms Send a blank SMS to 222