- Press CTRL + F9
- Inside the braces, type: {displaybarcode”your-website.domain”qr\q3}
- Press ALT + F9 to generate the QR code
Amir Hoshang Kioumars
“No problem can be solved from the same level of consciousness that created it.” Albert Einstein (1879-1955)
Saturday, 3 January 2026
Generate QR Code in MS Word
Thursday, 4 December 2025
Google Form using App Script
- Create a Google Sheet with the following headers: First Name, Last Name, DoB
- Create a Google Form with the exact headers as Google Sheet headers: First Name, Last Name, DoB
- In Google Form, create an App Script Trigger as follows - this code will link the data in the Form to the created Google Sheet:
function onFormSubmit(event){record_array = []var form = FormApp.openById('Form Id in Edit Mode'); // Form IDvar formResponses = form.getResponses();var formCount = formResponses.length;// get the latest form responsevar formResponse = formResponses[formCount - 1];var itemResponses = formResponse.getItemResponses();for (var j = 0; j < itemResponses.length; j++) {var itemResponse = itemResponses[j];var title = itemResponse.getItem().getTitle();var answer = itemResponse.getResponse();Logger.log(title);Logger.log(answer);record_array.push(answer);}AddRecord(record_array[0], record_array[1], record_array[2]);}function AddRecord(first_name, last_name, dob) {var url = 'https://'; //URL OF GOOGLE SHEET;var ss= SpreadsheetApp.openByUrl(url);var dataSheet = ss.getSheetByName("Sheet1");dataSheet.appendRow([first_name, last_name, dob, new Date()]);}
Using JS in GoogleSheets
function func()
{
{
// sheet initial
var app= SpreadsheetApp;
var activeSheet = app.getActiveSpreadsheet().getActiveSheet();
var app= SpreadsheetApp;
var activeSheet = app.getActiveSpreadsheet().getActiveSheet();
// get value
var cell = activeSheet.getRange(row, col).getValue();
var cell = activeSheet.getRange(row, col).getValue();
// set value
activeSheet.getRange(row, col).setValue(cell);
activeSheet.getRange(row, col).setValue(cell);
// console log
Logger.log (cell);
}
Logger.log (cell);
}
Tuesday, 25 November 2025
NU1101 Errors in Blazor Projects
These NU1101 errors in your Blazor project suggest that the required NuGet packages aren't being found in the configured sources. To resolve this, Update NuGet Package Sources in Visual Studio:
- Go to Tools > Options > NuGet Package Manager > Package Sources
- Add or enable the official NuGet source:
- Name: nuget.org
- Source: https://api.nuget.org/v3/index.json
Wednesday, 22 October 2025
Connect PowerBI to SQL Server - TrustServerCertificate
Under the server that Power BI installed,
- Go to System Properties -> Advanced -> Environment Variables
- Add this Variable Name PBI_SQL_TRUSTED_SERVERS
- Set the Variable Value to the servers that are trying to reach out to this Power BI box
- Restart the machine
Sunday, 21 September 2025
Setup Windows Local Account without the Internet
During the Windows setup,
- On the WiFi screen, press SHIFT + F10 or FN + SHIFT + F10
- This will open the command prompt window with administrator rights
- Type: start ms-cxh:localonly and hit Enter
Thursday, 3 July 2025
Analysis Service in Power BI Report Server
We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly... link
Subscribe to:
Comments (Atom)
Generate QR Code in MS Word
Press CTRL + F9 Inside the braces, type: {displaybarcode”your-website.domain”qr\q3} Press ALT + F9 to generate the QR code
-
//convert BASE64 string to Byte{} array function base64ToArrayBuffer(base64) { var binaryString = window.atob(base64); var binar...
-
var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter(); htmlToPdf.PageFooterHtml = @"<div style='text-align:right; font-s...
-
Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated...