Comment by Sergey Ponomarev on How do I install hunspell on windows10?
Modern Windows have WinGet so you can also do winget install hunspell
View ArticleComment by Sergey Ponomarev on Flutter App stuck at "Running Gradle task...
I had a very slow downloading but in the end it worked. I had to wait abut 40 minutes, insanely long.
View ArticleAnswer by Sergey Ponomarev for java.lang.ClassCastException:...
You need to replace this:SourceDataLine.Info dli = new DataLine.Info(Clip.class, ais.getFormat());SourceDataLine sdl = (SourceDataLine)AudioSystem.getLine(dli);With:SourceDataLine.Info dli = new...
View ArticleAnswer by Sergey Ponomarev for Determining File Type from Extension
The URLConnection.getFileNameMap().getContentTypeFor(path) will return a MIME type by a file extension. It also works with URL so it will ignore everything after ? or #.Here is a code sample that...
View ArticleComment by Sergey Ponomarev on Why should we not explicitly assign undefined...
The undefined means a syntax error in your code i.e. access to a not existing variable. It should not be used to describe unitialized value.
View ArticleComment by Sergey Ponomarev on Create Multi User Group with Prosody Server on...
Note that the Prosody doesn't support the muc#roomconfig_roomowners field so remove the line with submitForm.setAnswer("muc#roomconfig_roomowners", owners);
View ArticleComment by Sergey Ponomarev on Is there anyway to detect user inactivity in...
@juckele Sources of the library github.com/jppf-grid/JPPF/tree/master/node/src/java/org/jppf/…
View ArticleComment by Sergey Ponomarev on sudo apt-get install docker-compose-plugin...
FYI it may be already available in repository so try to sudo apt-get install docker-compose
View ArticleComment by Sergey Ponomarev on How to get country code (not ISO code) in Qt
@Storm You can use libphonenumber
View ArticleComment by Sergey Ponomarev on Debian 10 install what is default account and...
in my case it was changeme. I used the Network Install ISO
View ArticleComment by Sergey Ponomarev on Detecting a symlink in Java
@Hakanai You are right, I faced a problem when there was a access denied to a folder so the Files.exists() returned false and then code tried to create the folder
View ArticleComment by Sergey Ponomarev on Goland - generate type definition from JSON...
I used app.quicktype.io Select "Source Type": "JSON schema"
View ArticleComment by Sergey Ponomarev on How to format a MySql CREATE USER statement...
Please note that you should sanitize username valUsername = regexp.MustCompile("[^a-zA-Z0-9_]+").ReplaceAllString(username, "") and escape single quote: valPassword = strings.ReplaceAll(password,...
View ArticleComment by Sergey Ponomarev on How to log queries to database drivers?
I asked devs github.com/go-sql-driver/mysql/issues/1716
View ArticleComment by Sergey Ponomarev on How to escape underscore in the string query...
FYI: the underscore escaping also needed in the GRANT statement dev.mysql.com/doc/refman/8.4/en/grant.html
View ArticleComment by Sergey Ponomarev on WordPress: Softaclous - Could not write the...
check logs in the ~/.softaculous/logs/error_log.log
View ArticleAnswer by Sergey Ponomarev for Return time from a NTP server signed by its...
There is Network Time Security (NTS) but what you need is probably Roughtime https://developers.cloudflare.com/time-services/roughtime/It allows to have a signed time.There is also Time stampprotocol...
View ArticleAnswer by Sergey Ponomarev for Sorting domain names
Here is a sample of sorting domains in Golang:func Test_SortDomain(t *testing.T) { domains := []string{"a.com", "b.com", "a.a.org", "a.org", "b.a.com"} slices.SortFunc(domains, CompareDomain)...
View ArticleAnswer by Sergey Ponomarev for zip non-deterministic result in linux
Sample host to deterministically archive folder to .zip and remove the folder:reproducible_zip() { src_folder=$1 TZ=UTC find . -exec touch --no-dereference -a -m -t 198002010000.00 {} + TZ=UTC zip -q...
View ArticleAnswer by Sergey Ponomarev for How do I verify that an Android apk is signed...
You can do this right on a phone with the App Manager.In a Files long tap on the apk file and press / Options / Open With / App Manager: About. Then on the Signatures tab you'll find a list of all...
View Article