Window 10 automatically deleting my data

Window 10 automatically deletes my files such as pictures, videos, important documents and continues to happen to me again and again. I did a lot of research but I did not find any appropriate answer that could solve my problem.

The Finder window does not update when files are created

I run code that creates files in a directory. I have an open search window for this directory and when the file is created, the directory does not display it. It seems not to refresh properly.

I can find the file using Spotlight and it shows its way to the right place. Even opening a new search window does not solve this problem. When I open the file from Spotlight in the preview, click on the file name at the top, and then click on the directory that contains it, the viewer window will then show that the file. The timestamp of the added date indicates the exact time that the code indicated that it was finished and that the file had been created.

Is there a way to fix that?

postgresql – Filters sorted overlays with window functions

I have the following data set:

int layer
tstzrange period

I want to select all the periods (of any layer) that do not overlap with a period of the lower layer. In other words, a period of layer 1 eliminates a period of layer 2, in case they overlap.

We can assume that two periods of a single layer will never overlap.

This can be easily written with the following nested loop that basically performs an anti-join:

choose a period
of t as t1
where does not exist
select 1
of t as t2
where t2.layer <t1.layer and
t2.period && t1.period

Can this also be written via window functions?

For what it's worth, I've studied similar questions here on DBA, and in most answers, the window function offset () is used to know if there is a previous overlapping period. This makes sense if you can simply order the lines based on the start time of the period. However, I believe that in this question we have to order by diaper, period. To sort only by period would be an error, because for example a period of 10:00 at 12:00 in layer 2 should be considered after a period of 11:00 at 1:00 p.m. in layer 1. However, once we sort by diaper, period, two consecutive lines are probably / not necessarily more related, so I do not see how offset () can then be applied. I can not find an application for offset () or other functions of the window to solve the problem.

postgresql – Enhance the query by using window functions

I have a table with the following columns:

int layer
tstzrange period

I want to select all periods (of any layer) that do not overlap with a period of a lower layer.

I've currently solved it with a simple nested loop anti-seal:

select *
of t as t1
where does not exist
select 1
of t as t2
where t2.layer <t1.layer and
t2.period && t1.period

It works, and the performance is good, but not great. The complexity is fundamentally n x n, so that performance may become bad for larger ensembles.

So I was wondering if this could be rewritten as a window function? I think it could improve performance because I expect more complexity. n x m, or m is the number of expected output lines.

I've already written queries using window functions in which the window was based on equality = operator (against an identifier (or such)), but I do not see how the window functions can be applied here. Is it possible to use the overlap && operator in the functions of the window?

applescript – Automatically open a terminal window and launch a command, robustly

I am looking for a way to automatically open a new window and execute a command there.

I had used to do that with AppleScript, in a way similar to this one:

tell the application "Terminal"
make a script ("an-order")
end say

Julia's official distribution opens the terminal windows in the same way.

However, if is configured to run a command at startup (a convenient method often recommended for defining a new shell without changing the login shell globally), this method simply fails.

Is there a robust method that works even when an alternative shell is used?

enter the description of the image here

linux – How to cast the contents of a window into a video file with GStreamer

I'm looking for the right settings to stream the contents of a window into a file under Linux with GStreamer.

Here's what I've

gst-launch-1.0 ximagesrc xid = 0x03c00006 
! videoconvert
! x264enc tune = zerolatency bitrate = 500 predefined speeds = super fast 
! file location = ~ / Videos / window.mp4

It does something, but the output file is very small and seems broken.

macos – Mojave Window Manager Slower than older versions of OSX?

I recently bought a new Air Retina Macbook, and with it the new version of OSX. Previously, I used a 2012 Macbook Pro Retina, working (I think) in High Sierra.

Although, in most cases, this new laptop seems faster, it seems that it is falling behind when opening new windows and tabs in applications where it is managed by the window manager. native.

For example: Finder, Terminal, Safari all have tabs and slow-open windows, and their performance seems to be deteriorating in proportion to the number of open windows / tabs in the world.

In contrast, Chrome and VS Code seem to implement their own window / tab management and always open new tabs / windows very quickly.

It makes me crazy. I am convinced that this does not result from applications that I am running or configuration settings specific to my configuration.

Any suggestions before giving up OSX for Ubuntu?

ssms – Exploring an object in the table by dragging and dropping in the problem of the Sql Server Management Studio 18.1 query window

I recently installed SSMS 18.1 and I encounter a problem when I try to drag table names from the Object Browser to the query window. For example, I write a query and I do not want to type the name of the table. I would drag the table into the query editor and the name would be there.

This is the error I get: "An exception was encountered, this may be caused by an extension".

Any help would be appreciated.

applescript – A script checking the presence of applications with an open window asks "Where is Electron" in Electron applications

I have a script that prints package identifiers for all applications with open windows. When an Electron application is open (for example, VSCode), the script asks "Where is Electron" and displays all applications in the Applications folder, with the exception of Electron applications. How to fix this behavior?

The code:

set offers on {}
tell the application "system events"
define names to get the name of each process whose visible is true
end say
repeat with name in the names
set sets on sets and the identifier of the name of the application
end of repeating

keyboard – The application selector to switch to the most recent window not working with multiple screens / spaces

First of all, I know that I can do it with a third-party application like Contexts. But I would like to do it with the native macOS application switch.

How to reproduce the "bug"

  • Monitor 1
    • Space 1: Safari (not full screen)
    • Space 2: Xcode window # 1 (not full screen)
  • Monitor 2
    • Space 1: Xcode window # 2 (not full screen)

You are in the monitor 1 / space 2, then with CMD-TAB you select Safari, as expected, the new active space is monitor 1 / space 1.
Now you want to go to your last Xcode window, so with CMD-TAB you select Xcode.

  • Current behavior: The new layout is monitor 1 with space 1 and monitor 2 with space 1. The active space is monitor 2 with space 1.
  • Predictable behavior: Monitor 1 with space 2 and monitor 2 with space 1. The active space is monitor 1 with space 2.


Does anybody know why the application switch will not let me go to the most recent window of Xcode?

Thank you!