Is there a command to batch change time zones of files? [closed] - bash

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I recently went to Japan (UTC+9) from the UK, however, when I returned I forgot to change the time zone on my DLSR camera back to GMT. Since the files are now on my Linux machine, is there a way to batch change the time stamps for the pictures I have taken since I came home, so that they're on GMT rather than 9 hours ahead?

I found this, using exiftool:
exiftool "-AllDates+=1:12:28 14:54:32" -verbose *.jpg
to adjust all JPG image dates by adding 1 year, 12 month, 28 days, 14 hours, 54 minutes, 32 seconds
At photo.stackexchange: How to shift EXIF date/time created by time in days, hours, minutes?
So for shifting down all your photos by 9 hours, you could:
exiftool "-AllDates-=09:00:00" /path/to/IMG*.JPG
Then
exiftool '-FileModifyDate<DateTimeOriginal' /path/to/IMG*.JPG
For setting file system date/time from exif infos.

Related

Cron every day at 2PM & 3PM [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm trying to figure out how to set cron to run every day at 2PM & 3PM. Is this correct?
The reason I'm asking is this is for a production server, so I need to be sure.
0 18,19 * * *
As far as I know, it should be:
0 14,15 * * ?
This assumes that you want the CRON to run at 2pm and 3pm (14:00 and 15:00) using the time of the actual server which would fire the CRON expression.
Your suggested CRON is for 6pm and 7pm, which would be correct perhaps if you were running in a timezone 4 hours ahead, but targeting 2pm in an earlier timezone.

How to run a bash code on a certain time and day [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
The code to run a bash code on a certain time is `
anycode| at anytime:anytime
.
But how would you be able to run a code on a certain time and a certain day (e.g 10:00 on Monday).
You can use cron to do this. You need to add record like this:
0 10 * * 1 /path/to/script
0 is for minutes
10 is for hours
first * is for day of month
second * is for month
1 is for day of week (Monday)

Transferring big files with cp command in terminal and see want to see process [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I used the "cp" command to copy and paste a big directory (>300GB) to an external disk.
Now i want to see the process because it is running for almost 12 hours.
I pressed ctrl + t because someone else recommended it. And the output was:
load: 3.10 cmd: cp 2343 uninterruptible 13.31u 1051.85s
What does this output mean?
From the stty(1) page:
The status line consists of the system load average, the
current
rent command name, its process ID, the event the process is waiting on (or the status of
the process), the user and system times, percent cpu, and current memory usage.
Therefore;
System load average is 3.10
The current command running is "cp" with a Process ID of 2343, and it is uninterruptible.
I assume 13.31u means 13 hours of user time, and 1051.85s is the system time. There is no CPU percentage or RAM usage details however.
I'm not sure ctrl + t is the solution you're looking for..

What format does Windows make screenshots in? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
So here I am in quite a pickle.
If you make a screenshot in Windows 7, it is presented to you in .png format. The question is, does Windows first create a bitmap screenshot and then without your explicit consent convert it to .png? Or is it made in .png from the start?
Question no. 2:
Why it uses 24-bit format for the image? And is it 1-byte per colour or do those 24 bits include some kind of transparency?
1: It makes .png right away, and even if it didn't I don't see what difference would it make. Format .png is a raster format(bitmap) itself, very similar to .bmp, the only difference is that is can be compressed, but that doesn't erase any usable data in it.
2: Each color takes 1 byte = 8 bits, one byte for each channel, R(ed), G(reen) and B(lue). That sums up into 3 x 8 = 24 bits(not bytes). You can also add one more channel for transparency, usually called Alpha, which would be the 4th byte and then one pixel will have 32 bits.

Origin of "embarrassingly parallel" phrase [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
For the purposes of history on wikipedia, is anyone familiar with the origin of the phrase "embarrassingly parallel". I've always thought that it may have been coined by a random Google employee who first worked on map-reduce. Does anyone have any concrete info on the origin?
The first use I could find in an advanced Google book search was from an IEEE Computer Society digest published in 1978. The context and the fact that the author had "embarrassingly" in quotes indicates to me that the phrase was not coined here, but had been used before this.
It's decades old, but I first heard it used in reference to graphics rendering. Imagine you're rendering an animated movie: each frame is 2000x1000 pixels, there are 24 frames per second, 60 seconds in a minute, and 100 minutes in the movie. That's almost 300 billion pixels that can all be computed in parallel. That's so parallel that it's embarassing to compute it serially.
Try this search : http://www.google.co.nz/search?rlz=1C1GGLS_enNZ364NZ365&sourceid=chrome&ie=UTF-8&q=etymology+embarrassingly+parallel

Resources