case insensitive Pos

Is there any comparable function like Pos that is not case-sensitive in D2010 (unicode)? I know I can use Pos(AnsiUpperCase(FindString), AnsiUpperCase(SourceString)) but that adds a lot of...

Efficient way to remove ALL whitespace from String?

I'm calling a REST API and am receiving an XML response back. It returns a list of a workspace names, and I'm writing a quick IsExistingWorkspace() method. Since all workspaces consist of...

Java security: how to clear/zero-out memory associated with an object? (And/or ensure that is the only instance/copy of a particular variable)

I'm in a discussion at work over how to secure sensitive information (e.g. passwords) stored in a Java program. Per security requirements, memory containing sensitive information is cleared, e.g....

File paths in Windows environment not case sensitive?

Is it safe to assume that Windows local and network file paths are NOT case sensitive?

Admin page on django is broken

I've set up a django project with an admin page. It worked perfectly for the first couple weeks of development, didn't use the admin page for a while, and when I came back to it, the admin page...

Django admin does not login properly with custom User model

I upgraded an app I had on Django 1.4.5 to Django 1.5 and just finished migrating over to a custom User model. When I login to my app, using my own authentication form, with my superuser...

How do you override the database collation in a query when using Sybase?

For example when using a SQL server database that has a default collation of case insensitive I can override that collation in a query to get a case sensitive comparison like so: SELECT * FROM...

QuickFix C++ how do I turn on SSL?

I have an application using the java QuickFix library. I am trying to port it to C++. The problem is that the java version of the library seems to send the data over an SSL connection, while the...

How do I make this character counter be insensitive to case?

I wrote this little code to count occurrences of words in a text: string=input("Paste text here: ") word=input("Type word to count: ") string.count(word) x=string.count(word) print (x) The...

Why Get-ItemProperty is case insensitive but Set-ItemProperty is case sensitive?

I was trying to set IIS properties for my DefaultAppPool via PowerShell and I end up with a really curious case: Get-ItemProperty is case insensitive. Set-ItemProperty is case sensitive. Does...

Check if a string exists in an array case insensitively

Declaration: let listArray = ["kashif"] let word = "kashif" then this contains(listArray, word) Returns true but if declaration is: let word = "Kashif" then it returns false because...

Doctrine parameter to create lower-case tables?

Doctrine creates tables with names similar to the entities, using the same case. The problem is, of course, that some systems or environements have different settings, which may lead to issues...

Can't log in to admin site in Django

I was working through the polls tutorial and everything was fine until I tried to log in to the admin site; it just said "Please enter the correct username and password for a staff account. Note...

Error during SonarQube Scanner execution with SCM provider autodetection failed

I am using sonar swift plugin and setup sonar in osx.I am using sonar 6.1 , sonar-runner 2.8 and backelite-sonar-swift-plugin-0.2.4.jar file. After run ./run-sonar-swift.sh it gives following...

How Exactly Does Ansible Parse Boolean Variables?

In Ansible, there are several places where variables can be defined: in the inventory, in a playbook, in variable files, etc. Can anyone explain the following observations that I have made? When...

Cannot find module create-react-app/script/start.js

something has changed in my program structure and due to its complexity i cannot exactly point where the problem. Ever since my application crushed and no longer working i have tried different...

Visual Studio Code: Select each occurrence of word (case sensitive)

I know that Ctrl+Shift+L is used to select all the instances of word/selection, but is there a case sensitive version of this command?

How to add case insensitive sorting in react table?

By default, react table sorting is case sensitive. In order to make it insensitive we have to write a custom sort function. I like this answer from...

ASP.NET Core Application Insights 400 ModelState Details

I'm trying to work out if it's possible to see the detail of why a 400 error occurred within an application. I think knowing the property that doesn't have a value would allow for better targeting...

Measuring the diameter pictures of holes in metal parts, photographed with telecentric, monochrome camera with opencv

Setup: Camera: Blackfly S Mono 20.0 MP Lens: Opto telecentric lens TC23080 Lights: 16 green LEDS Python: 3.7.3 openCV: 4.0+ Sorry for the image links, but one image is around 20MB, also did not...

how does ZGC do concurrent mark without using write barrier?

recently I read some articles about ZGC. eg. https://dinfuehr.github.io/blog/a-first-look-into-zgc/ And it said there is no write-barrier in ZGC. Both reading and writing in the heap is extremely...

The images on my GitHub page are not loading

I am currently working on the Google Homepage assignment with the Odin Project. I finished the code and committed all of the files to my google-homepage GitHub repository and then uploaded to the...

Can't login to django admin account after creating super user

I created a project in django and the first thing I want to do is to create a superuser for admin account and then proceed with the django project but the problem is after creating a superuser...

The replace_ending function replaces the old string in a sentence with the new string, but only if the sentence ends with the old string

The replace_ending function replaces the old string in a sentence with the new string, but only if the sentence ends with the old string. If there is more than one occurrence of the old string in...

Multiprocessing memory leak, processes that stay around forever

I'm trying to solve a multiprocessing memory leak and am trying to fully understand where the problem is. My architecture is looking for the following: A main process that delegates tasks to a...

Unity InputField string comparison not working

I'm making a game where the user inputs a code, and if the code is correct, it opens a door. So, I made a InputField where the user inputs his answer and then I take his answer and compare it in...

Jest + @testing-library/react throws error on a .mjs file from [dom-accessibility-api] library

I'm new to using Jest + @testing-library/react, and on my first attempt, I'm getting an error on a third-party library (probably used by the react-testing-library), which I'm not sure how to...

django-auth-ldap: LDAPS causes the first login attempt to fail

I have configured django-auth-ldap with with the ldap protocol (unencrypted) to authenticate against an Active Directory instance, and it works. The problem is when I attempt to connect via...

Please enter the correct Email and password for a staff account. Note that both fields may be case-sensitive

I complete makemigrations and migrate then create a superuser. After this http://127.0.0.1:8000/admin i try to log in then show this error *Please enter the correct Email and password for a...

case sensitive sorting in javascript, where all capital letters come before all lowercase letters

I need to sort two strings in a way that capital letters come first, even for different letters, for example: Cat comes before ant CD comes before Cd Can I use localCompare to sort like...