Sunday, May 12, 2024

install qscintilla in windows

 In order to install qscintilla we have to compile the code and install. Find the make install output from my windows below

ozkan@HP-ENVY-2021-I7 C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src $ make install C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -f Makefile.Release install make[1]: Entering directory 'C:/Users/ozkan/tmp/QScintilla_src-2.14.1/src' copy /y release\libqscintilla2_qt5.a C:\Qt\5.15.2\mingw81_64\lib\libqscintilla2_qt5.a 1 file(s) copied. copy /y release\qscintilla2_qt5.dll C:\Qt\5.15.2\mingw81_64\lib\qscintilla2_qt5.dll 1 file(s) copied. C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src\Qsci C:\Qt\5.15.2\mingw81_64\include\Qsci C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src\qscintilla_cs.qm C:\Qt\5.15.2\mingw81_64\translations\qscintilla_cs.qm C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src\qscintilla_de.qm C:\Qt\5.15.2\mingw81_64\translations\qscintilla_de.qm C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src\qscintilla_es.qm C:\Qt\5.15.2\mingw81_64\translations\qscintilla_es.qm C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src\qscintilla_fr.qm C:\Qt\5.15.2\mingw81_64\translations\qscintilla_fr.qm C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src\qscintilla_pt_br.qm C:\Qt\5.15.2\mingw81_64\translations\qscintilla_pt_br.qm C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\qsci C:\Qt\5.15.2\mingw81_64\qsci C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -install qinstall C:\Users\ozkan\tmp\QScintilla_src-2.14.1\src\features\qscintilla2.prf C:\Qt\5.15.2\mingw81_64\mkspecs\features\qscintilla2.prf make[1]: Leaving directory 'C:/Users/ozkan/tmp/QScintilla_src-2.14.1/src' took like 10 minutes to compile in my machine. Downloaded from I am surprised in year of 2024 CPP does not have maven repo like structure. compiling the code is soo old now :)

Saturday, May 11, 2024

Tuesday, May 07, 2024

how to show a dialog box in wix


Sometime we may want to show a dialog box to user from installation package, below is an example

<CustomAction Id="ConfirmAndCleanUpOldFolder"
   On Error Resume Next
   Set WshShell = CreateObject("WScript.Shell")
   strProgramData = WshShell.ExpandEnvironmentStrings("%ProgramData%")
   strFolderPath = strProgramData & "\sompath\"
   Set fso = CreateObject("Scripting.FileSystemObject")
   If Session.Property("UILevel") = 4 And fso.FolderExists(strFolderPath) Then
     result = MsgBox("An older version of the data folder exists, which is no longer necessary for the application's operation. Would you like to remove it now ? " & strFolderPath, vbYesNo + vbSystemModal, "Clean up redundant files")
     If result = vbYes Then
       fso.DeleteFolder strFolderPath, True
       If Err.Number <> 0 Then
         MsgBox "Failed to delete folder: " & Err.Description
         Session.Property("OLD_FOLDER_CLEANED") = "yes"
       End If
     End If
   End If
   On Error GoTo 0
and put 
Action="ConfirmAndCleanUpOldFolder" After="InstallInitialize" />

Thursday, September 14, 2023

odd string diff

Beats 19.92%of users with Java
class Solution {
public String oddString(String[] words) {
HashMap<String, String> res = new HashMap();
for (String s : words) {
int[] diff2 = new int[words[0].length() - 1];
extracted(s.toCharArray(), diff2);
res.put(Arrays.toString(diff2), res.getOrDefault(Arrays.toString(diff2),"")+ s);

return res.values().stream()

private void extracted(char[] charArray, int[] diff) {
for (int i = 0; i < charArray.length - 1; i++) {
diff[i] = charArray[i + 1] - charArray[i];


Wednesday, August 16, 2023



finally I have seen working in my local computer, it is kind of a search engine for documents, I was looking for more conversation level bot  which can learn from the conversation and start answering accordingly, why am I searching for this, it is about our jira`s, there are some repeatitive tickets, if I can teach a bot to realize those and solutions, it can answer users directly or can tell me which doc to answer. not bad privateGPT

Saturday, August 05, 2023

span_id and trace_id

 Spring cloud sleuth architecture and use

http keep alive turn off

if I turn http keep alive off then I get db read tomeouts and db pool size becomes not enough, if I increase the pool size and time outs more then web worker threads becoming non responsive, self note never turn off keep alive for rest clients in spring boot

install qscintilla in windows

 In order to install qscintilla we have to compile the code and install. Find the make install output from my windows below ozkan@HP-ENVY...