What methods do wikis use for merging concurrent edits?

If two users edit the same wiki topic, what methods have been used in wikis (or in similar collaborative editing software) to merge the second user's edits with the first? I'd like a solution...

run command/script when lock/unlock windows station?

I have Windows 7 pro at work. My problem is I keep on forgetting to clock in/clock out (using the intranet timesheet system). Is there a way to run a script or command to automatically open the...

I just discovered why all ASP.Net websites are slow, and I am trying to work out what to do about it

I just discovered that every request in an ASP.Net web application gets a Session lock at the beginning of a request, and then releases it at the end of the request! In case the implications of...

Implementing a thread queue/wait, how?

I have a timer calling a function every 15 minutes, this function counts the amount of lines in my DGV and starts a thread for each lines (of yet another function), said thread parse a web page...

How do you handle pthread_mutex_unlock failures?

Assuming a thread successfully calls pthread_mutex_lock, is it still possible that a call to pthread_mutex_unlock in that same thread will fail? If so, can you actually do something about it...

Setting contentOffset programmatically triggers scrollViewDidScroll

I've got a a few UIScrollView on a page. You can scroll them independently or lock them together and scroll them as one. The problem occurs when they are locked. I use UIScrollViewDelegate and...

Heap optimized for (but not limited to) single-threaded usage

I use a custom heap implementation in one of my projects. It consists of two major parts: Fixed size-block heap. I.e. a heap that allocates blocks of a specific size only. It allocates larger...

Properly using C# lock in web application

I have a helper class which reads a big XML document and generates a list of c# objects. I work with these objects quite a lot, so i thought the best way of doing this would be to save them in...

Documentation for Lock.__enter__() and Condition.__enter__()

I'm trying to find where the __enter__ and __exit__ methods of threading objects are documented for Python 2.7. The main documentation page on the topic has nothing of sort. Is this documented at...

AWS - Disconnected : No supported authentication methods available (server sent :publickey)

SSH to my AWS server just broke for both Putty and Filezilla. I'm making some effort for this post to be a comprehensive troubleshooting list, so if you share links to other stack overflow pages,...

Prevent page reload on back button (use cache). Or scroll user back down. (Issue on, at least, iPhone)

Is is possible to prevent a page from being reloaded when a user clicks the browser back button? Or at least make sure that the page is scrolled down like it was before? My webpage shows a list of...

Gemfile.lock contains merge conflicts

I just ran git push origin master and got this error after trying to run rails s: Your Gemfile.lock contains merge conflicts. Run `git checkout HEAD -- Gemfile.lock` first to get a clean...

Stalled and pending ajax requests by JQuery in Chrome

Once in a while, my Ajax calls (via JQuery 1.8) in my application are stuck with status "pending" for a long time (sometimes up to 17 minutes). I've googled it and all possible solutions didn't...

Is it always unsafe when I call a non-async-safe function from a signal handler?

I am just figuring out whether I can call a non-async-safe function in a signal handler. Quotes from Linux man page signal(7): If a signal interrupts the execution of an unsafe function, and...

Could not open mysql.plugin table. Some plugins may be not loaded

I have an issue with MySQL. When I'm trying to start it, that gives me an error message, which is 2015-12-10 10:52:31 13f4 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED....

webkit mobile input zoom disable still zooming when adding width attribute

Plenty of posts on how to disable autozoom on focused input fields. My solution is the 'font-size:16px;' and appropriate meta viewport setings to prevent page zoom. However, in my example, when...

What does intrinsic lock actually mean for a Java class?

In order to properly understand the issues and solutions for concurrency in Java, I was going through the official Java tutorial. In one of the pages they defined Intrinsic Locks and...

Does restarting a PC clear the browser cache?

I have an old application running on locked-down PCs which are used as wall displays. They all point to a URL using IE11 to get a web page view. The problem is, when the Web Page updates, even if...

Cannot restart the MySQL Docker container, gives errors like `Can't open the mysql.plugin table` and `Table 'mysql.user' doesn't exist`

After running out of space on the server, it seems that the file of Docker MySQL got corrupted. When trying to relaunch mysql:5.6 container I get the error [ERROR] Fatal error: Can't open and lock...

MVC public folder htaccess is not working

I recently moved my index.php (the file that handles routing) and CSS, JavaScript, and font assets to a public/ folder. I only want items in this public/ folder to be accessible for security...

Modal Bootstrap / Multiple modal on one-page / modal-open Class

I've got a serious issue with modal from Bootstrap. When I open a modal box in my website, there's absolutly no problem (the modal-open class is correctly added on the body) the modal is correct,...

How do I authenticate against an Active Directory group in ASP.NET Core application without log in?

I'm currently building an intranet application and am now looking to lock it down to members of a particular Active Directory group and if the user is not a member of this group, an error page is...

React Idle Timer with BrowserRouter

I'm attempting to use the React Idle Timer to go to a lock screen after 15 minutes. The problem I am having is redirecting the page. I am using electron with react and the react BrowserRouter....

Forbidden, you don't have permission to access this resource

I am trying to create a site called sitb in ubuntu using apach2. I create a html file and saved it in a created siteb folder in var/www but when I load the site it just says Forbidden, you don't...

Nextjs deployed on Vercel = blank page

I managed to deploy my Nextjs app (whith getStaticProps + i18n + firebase) on Vercel. But i get a blank screen. Here's the log: Status: 200 Duration: 8.18ms Memory Used: 111 MB I tried...

Azure AD B2C custom policy not returning account lockout error (50053)

I was testing AD B2C smart lockout feature following this link. My current smart lockout settings: The sign-ins log showed that the account I used for testing is successfully locked: However, in...

How to resolve Gemfile.lock contains merge conflicts (running `git checkout HEAD -- Gemfile.lock` does not work)

I got an error message after I ran bundle install in my ruby on rails app, the error message was: Your Gemfile.lock contains merge conflicts. Run `git checkout HEAD -- Gemfile.lock` first to get a...

Security is not added to Swagger from Open API generator

I am working on a new project in my team and we are implementing an API following the API first methodology. We are using openapi-generator-maven-plugin to generate our API from an yml file of...

How to get a variable from JavaScript to ColdFusion

I'm currently working on one issue and I need some help. I'm working on HTML code that fills in special machine labels. It is a kind of web page on where people fill in the number of lines and...

c++ - Flaky atomic lock.. but why?

Question solved: see the edit. x86_64, Linux, gcc 11.1, gnu++20. Before using const std::lock_guard <mutex> lock( mut ); I wanted to give a go to my own implementation of multithreading lock, to...