windows 10 – Default file format for capture and sketch

The tool "Snip and Sketch" of Windows 10 seems to save by default in JPG format, while the "Capture" tool is replaced by default (at least for me) by default in PNG, which is often a best choice for screen captures.

Snip and Sketch remembers my favorite directory for backup, but is there a way to remember my favorite file type?

sharepoint online – Masterpage is not updated after changes to an HTML file

We have migrated a collection of On-Prem sites to SharePoint Online. Now, when I try to update the masterpage .html file using designer, the corresponding .master file is not updated.

This happens for the migrated master page as well as for the new master page that I created in the migrated SPO site collection.

Help?

command line – How to write an argument to a file?

I'm trying to write content to a file while modifying some values ​​that will be passed through the arguments.

I followed this answer
Creating a file with content in Shell scripts

cat> filename << - "EOF"
File contents
More Content
EOF

So, let's say when I run the script like this:

./script Abraham

and I want to write something like:

Hello Abraham
More content, etc ...

I come from a Javascript background, so I was trying something like:

`Hello $ {1}, etc ...`

but what I was getting inside the file was:

Hello 1 $
More content, etc ...

because do not let me set the variable of the argument. So, how can I accomplish that? Thank you in advance.

raw – How to obtain focal length data from proprietary file formats (CR2, ARW, etc.)?

I am looking for a way to read the equivalent EXIF ​​data (focal length, camera brand, etc.) from RAW file formats, preferably in javascript. I've been able to read EXIF ​​from JPG, but there do not seem to be any libraries for RAW formats.

I have consulted this resource and I know the files "tags" (http://lclevy.free.fr/cr2/), but I do not know how to read them with javascript.

Any help is greatly appreciated!

How can I reduce the MASTER log file in SQL Server 2008?

The first question that will come to the mind of many readers is this: "Why is the log of your master database so big that you plan to reduce it?" If user tables were accidentally placed in the master and caused the log file to grow, they must be deleted.

If, for any reason, the master log file has become excessively large and there is now space available, you can reduce it, just like any other database log file. Control should already be in simple recovery mode, so you should not need to change it.

USE the master
GO
DBCC SHRINKFILE (N & # 39 ;, MOM, 0, TRUNCATEONLY)
GO

You might want to resize it afterwards if it is reduced to less than a few MB. You do not know what is the default, but I'm looking at a newer version of SQL Server, which is 3 MB Therefore, anything in this range should suffice.

website – How to design a web application to dynamically update a table from a file

I would like to develop a web page that will have a dynamically updated table from different files on different servers.
So in order to keep the details of the environment, we need a web page with different names and versions of applications in a table.
Each time the code is deposited on a server, the version of the version is written to a file. I have to somehow automate the choice of this version and update it in a column of this web page (because several applications are on a single page)
What is the best way to approach this? I'm designing this job now, is there a better way to do it?
which programming languages ​​or scripts can I use to achieve?

git – How to disable previews of certain file extensions in GitExtension?

My git repository contains a lot of binary files, and people sometimes tend to mistakenly look for the file name and open the file preview, which slows down the old computers we use. Very few KBs are loaded, but it would still be nice if I could disable it.

Is there a way to disable this?

Thank you!

Why does not application.xml work as a configuration file for a Spring-Boot application?

I play with the Spring-Boot initializer and I found something that I do not quite understand.

I've created a brand new project with just the web addiction and add a single bean with @Configuration and @ImportResource annotations.

@Configuration
@ImportResource ({"classpath *: application.xml"})
Public class CollectionConfig {

I then add an empty xml beans file – application.xml:




When I run the application, I get the error:
Caused by: org.xml.sax.SAXParseException: The "beans" element of the document, must match the "null" DOCTYPE root.

However change the name of the file application.xml to any other name such as applicationContext.xml or myBeansInAFile.xml causes the application to start normally.

I can not find any other application.xml file in the class path of the default spring-boot-web application. Is it perhaps a reserved word? I feel that I am missing something fundamental here, but I can find no reference to that.

Basically, I'm trying to understand why using an XML file named application.xml is not allowed in the spring.

bash – Sets the default command to execute for a specific file extension (Linux Mint)

I've created a bash file that converts .heic and .heif images to .jpg format. I have it set to run this bash file by making the .sh program the default program to use for this type of file in the "Open With" section of the context menu. However, it now runs this script for any type of unknown file. How can I configure it for only .heic and .heif files?

io – Python Several programmers running simultaneously on the same file

I am forced to write the log of several programs in the same text file. I thought that I needed a locking mechanism, but then I wrote a single multiple thread and they all seem to write in the same text file without a problem. missing something?

def abc1Thread ():
Portal of importation
print ("----------------- abc1-Thread --------------------")
g = open ("testFile", "a")
cnt = 0
f1 = open ("A.txt", "a")
while (true):
cnt = cnt + 1
if cnt == 10: pause
print ("abc1Thread: cnt ->", cnt + 1)
f1.write ("abc1Thread: cnt ->" + str (cnt) + " n")

print ("close the file handle:" + str (f1))
f1.close ()

def abc2Thread ():
Portal of importation
print ("----------------- abc2-Thread --------------------")
cnt = 0
f2 = open ("A.txt", "a")
while (true):
cnt = cnt + 1
if cnt == 10: pause
print ("abc2Thread: cnt ->", cnt)
f2.write ("abc2cThread: cnt ->" + str (cnt) + " n")

print ("close the file handle:" + str (f2))
f2.close ()

def abc3Thread ():
Portal of importation
print ("----------------- abc3-Thread --------------------")
cnt = 0
f2 = open ("A.txt", "a")
while (true):
cnt = cnt + 1
if cnt == 10: pause
print ("abc3Thread: cnt ->", cnt)
f2.write ("abc3cThread: cnt ->" + str (cnt) + " n")

print ("close the file descriptor:" + str (f2))
f2.close ()
def abc4Thread ():
Portal of importation
print ("----------------- abc4-Thread --------------------")
cnt = 0
f2 = open ("A.txt", "a")
while (true):
cnt = cnt + 1
if cnt == 10: pause
print ("abc4Thread: cnt ->", cnt)
f2.write ("abc4cThread: cnt ->" + str (cnt) + " n")

print ("close the file descriptor:" + str (f2))
f2.close ()
def abc5Thread ():
Portal of importation
print ("----------------- abc5-Thread --------------------")
cnt = 0
f2 = open ("A.txt", "a")
while (true):
cnt = cnt + 1
if cnt == 10: pause
print ("abc5Thread: cnt ->", cnt)
f2.write ("abc5cThread: cnt ->" + str (cnt) + " n")

print ("close the file descriptor:" + str (f2))
f2.close ()

def fileWriteShare ():
thrd1 = threading.Thread (target = abc1Thread, args =[])
thrd2 = threading.Thread (target = abc2Thread, args =[])
thrd3 = threading.Thread (target = abc3Thread, args =[])
thrd4 = threading.Thread (target = abc4Thread, args =[])
thrd5 = threading.Thread (target = abc5Thread, args =[])
thrd1.start ()
thrd2.start ()
thrd3.start ()
thrd4.start ()
thrd5.start ()

The result of the test file is:

abc2cThread: cnt -> 1
abc2cThread: cnt -> 2
abc2cThread: cnt -> 3
abc2cThread: cnt -> 4
abc2cThread: cnt -> 5
abc2cThread: cnt -> 6
abc2cThread: cnt -> 7
abc2cThread: cnt -> 8
abc2cThread: cnt -> 9
abc5cThread: cnt -> 1
abc5cThread: cnt -> 2
abc5cThread: cnt -> 3
abc5cThread: cnt -> 4
abc5cThread: cnt -> 5
abc5cThread: cnt -> 6
abc5cThread: cnt -> 7
abc5cThread: cnt -> 8
abc5cThread: cnt -> 9
abc1Thread: cnt -> 1
abc1Thread: cnt -> 2
abc1Thread: cnt -> 3
abc1Thread: cnt -> 4
abc1Thread: cnt -> 5
abc1Thread: cnt -> 6
abc1Thread: cnt -> 7
abc1Thread: cnt -> 8
abc1Thread: cnt -> 9
t -> 9

If all these threads can write to the same file without problems, then why do I need a lock? Note that in my requirement I do not have any threads I have multiple programs writing in the same file