Write bash history when connection is terminated abnormally

How can I make sure that my bash history gets written to ~/.bash_history when I am disconnected abnormally?

I work on several remote Linux hosts, and my connection is frequently terminated abnormally. When that happens, my recent bash history is not available when I reconnect. I suspect that the abnormal termination is preventing the bash shell from writing to ~/.bash_history. I can’t control the disconnects, and other than losing my history, the abnormal disconnects don’t cause a problem.

I don’t want to interfere with the normal history mechanism. In other words, I don’t want a hack that messes up the history process. Thanks!

Infinite primes history – Mathematics Stack Exchange

I am little confused with who was the first to modify Euclid’s argument of infinitude of primes from $p_{1}p_{2}…p_{r}+1$ to $p_{1}p_{2}…p_{r}-1$? Some writers say it was E.E. Kummer ,($1878$) (Ref: Ribenoim’s book ‘the new book of prime records’) .Some say it was J. Perrot (Ref: Euclid’s theorem on the infinitude of primes , Romeo mestrovic, page:$9$, $2$nd last line).
Which one is correct? Any help with the reference will be appreciated.

Thanks in advance.

usa – Canadian tourist visa refused because of travel history and personal assets

I am from the Republic of Georgia.

I have a visa refusal from the US Embassy and I included this information in my Canadian visa application. In my Canadian refusal letter, only two sections were marked.

The first one was personal assets; at the time, my travel was suponsored by my father. Now, a lot of things have changed and I have a house, cars and a big company that trades natural methane/ethane gas to different, smaller organizations. I own 50% share of the company.

The second marked section was travel history. I had never been to China, Iran nor any Arabian countries; I had only included refusal information from the US Embassy; this must be the reason for refusal.

This year, I intend to re-apply for a Canadian tourist visa to vacation in August after visiting two European countries.

How do I overcome these refusal problems?

Lately, I have been to Cuba and some Scandinavian countries. I am planning to visit more European countries since Georgian Citizens are no longer required to have a visa to visit Schengen countries.

USA visa refusals (2010, 2012)
Canada visa refusal (2014)

How to get version history in SharePoint 2013?

I made a comments column, enabled “Append changes to existing text”, and enabled “Create a version each time you edit an item in this list?”. How can I retrieve all versions so I can get all comments using JavaScript?

I tried using the following REST API endpoint:

.../_api/web/GetFileByServerRelativeUrl('.../Lists/Announcements_list/381_.000')/versions

But it doesn’t return the comment and the author:

{
d: {
     results: Array(1)
          0:
           CheckInComment: ""
           Created: "2020-06-01T16:41:26Z"
           CreatedBy: {__deferred: {…}}
           ID: 6144
           IsCurrentVersion: false
           Size: 0
           Url: "_vti_history/6144/Lists/Announcements_list/381_.000"
           VersionLabel: "12.0"
           __metadata: {id: ".../_api/SP.FileVersion4f29f152-200e- 
           4773- 
           906a-e4c496699174", uri: ".../_api/SP.FileVersion4f29f152- 
           200e-4773-906a-e4c496699174", type: "SP.FileVersion"}
  }
}

Why is CheckInComment an empty string and why doesn’t it get the CreatedBy value?

magento2.3 – Magento 2.3 – Product images in order history

I want to load max 3 product images in the order history page on customer account.

I currently have a perfectly working code using $objectManager. But because Magento does not recommend to use objectManager, I want to transform this into a module.

How can I transform this code into a module?

Code:

<?php $objectManager = MagentoFrameworkAppObjectManager::getInstance();
            $_product = $objectManager->get('MagentoCatalogModelProduct')->load($itm->getProductId());
            $imageHelper  = $objectManager->get('MagentoCatalogHelperImage');
            $image_url = $imageHelper->init($_product, 'product_page_image_small')->setImageFile($_product->getImage())->resize(160, 160)->getUrl();?>

usa – My Canadian tourist visa got refused because of travel history and personal assets

I am from the Republic of Georgia.

I have a visa refusal from the US Embassy and I included this information in my Canadian visa application. In my Canadian refusal letter, only two sections were marked.

The first one was personal assets; at the time, my travel was suponsored by my father. Now, a lot of things have changed and I have a house, cars and a big company that trades natural methane/ethane gas to different, smaller organizations. I own 50% share of the company.

The second marked section was travel history. I had never been to China, Iran nor any Arabian countries; I had only included refusal information from the US Embassy; this must be the reason for refusal.

This year, I intend to re-apply for a Canadian tourist visa to vacation in August after visiting two European countries.

How do I overcome these refusal problems?

Lately, I have been to Cuba and some Scandinavian countries. I am planning to visit more European countries since Georgian Citizens are no longer required to have a visa to visit Schengen countries.

USA visa refusals (2010, 2012)
Canada visa refusal (2014)

How to get Windows file history to backup files owned by administrator

I have software that creates files, the owner of these files is administrator.

I’m setting up file history to back up this folder. I worked around it by changing the folder& subfolders ownership to users, but any new files the software creates end up belonging to administrators and they won’t be backed up unless I manually change the permissions.

There are two possible fixes that I think might work if someone can give me advice on how to do it?

  1. It looks like the owner of the file-history process is “users” – could the owner of this process be changed to administrator somehow

  2. Is there anything I could otherwise do to change the owner of newly created files from administrator to user?