Emergency method to erease all data off a machine within seconds

Imagine you are carrying highly sensitive information with you, maybe on a mission in a war zone. You get in an ambush and quickly need to erase all the files before they fall in the wrong hands. This has to happen within seconds.

What devices are used for such operations, are there special hard drives which have a physical switch to erase all memory at once? I’m thinking of active storage devices, which lose all information once the power supply is separated. Or is it enough to have the proper software combined with a regular HDD or SSD?

What would be the effects of changing the duration of a round from 6 seconds to 5 seconds?

I’m introducing the following house rule:

A round lasts 5 seconds.

What would be the effects of such a house rule? Would there be any? Would this break the game?

Out of the top of my head, I cannot think of any actions/spells/mechanics that rely on the duration of a round.


Disclaimer: The original question was a bit broader and was closed twice as opinion-based/off-topic.

Why does a round last 6 seconds? [closed]

There are many posts and discussions about what can be achieved during one round, however, to the best of my knowledge there is no explanation as to how/why the number 6 was decided.

The question becomes more interesting considering that all of the RPGs I have played so far also consider each round to last 6 seconds.

I think it’s worth breaking this question into smaller ones:

  1. Who invented the 6-seconds round rule? Is it Gary Gygax?
  2. Why 6 seconds? For example, why not 5 or 7 seconds. In particular, 5 looks nicer and "rounder" to me.
  3. Are there any RPGs in which rounds last shorter or longer? Do they offer any explanation as to why?
  4. Does the game break if you change round duration? Let’s say that I make a house rule that rounds last 5 seconds. What’s going to happen?

p.s.1. I’m not sure which tags are most appropriate here. Please, feel free to suggest any for adding or removing.

p.s.2. I’m taking D&D as the baseline and assuming that all RPGs use the 6-seconds rule, this is why I’ve tagged the post with the dungeons-and-dragons tag.

Does the Message spell truncate messages over 6 seconds long?

The Message spell’s duration is “1 round” (PHB, p. 259) and a round “represents about 6 seconds in the game world.” (PHB, p. 189)

Is a message longer than “about 6 seconds” truncated? Does the caster know it’s been truncated? Does the spell accept the too-long message anyway, or is the caster forced to limit their utterance to 6 seconds to start with?

Is it safe to assume that my computer’s clock will always be synced with actual time within the second or a few seconds at the worst?

Years ago, I was running a service where the moderators were able to do various actions with massive privacy implications if the accounts or contributions were less than a short period of time. I did this by checking the timestamp against the current Unix epoch, allowing for X hours/days. Normally, this worked well.

One day, the server where this was hosted on had been “knocked offline” in the data centre where I was renting it, according to the hosting company. When it came back on again, its clock had been reset to the factory default, which was many years back.

This resulted in all my moderators potentially being able to see every single account’s history and contributions in my service until I came back and noticed the wrong time (which I might not even have done!) and re-synced it. After that, I hardcoded a timestamp into the code which the current time had to be more than or else it would trigger “offline mode”, to avoid any potential disasters like this in the future. I also set up some kind of automatic timekeeping mechanism (in FreeBSD).

You’d think that by now, not only would every single computer be always auto-synced by default with tons of fallback mechanisms to never, ever be in a situation where the clock isn’t perfectly synced with “actual time”, at least down to the second, if not more accurately; it would be impossible or extremely difficult to set the clock to anything but the current actual time, even if you go out of your way to do it.

I can’t remember my Windows computer ever having been out of time for the last “many years”. However, I do important logging of events in my system running on it. Should I just assume that the OS can keep the time at all times? Or should I use some kind of time-syncing service myself? Like some free HTTPS API, where I make a lookup every minute and force the system clock to me whatever it reports? Should I just leave it be and assume that this is “taken care of”/solved?

Making an enemy shoot every few seconds

so I am making a 2d canvas game in Javascript and I want the enemy mobs to shoot a bullet every let’s say 3 seconds. I’m almost done with the code , i made everything i just don’t know how to make the function repeat.

//this is the enemy object  function Enemy(x, y){  this.sprite = enemySprite;  this.x = x;  this.y = y;  this.shooting = function(){     while(enemyBullets <= bulletsPerTick){         var enemybullet = new enemyBullet(this.x , this.y);         enemyBullets.push(enemybullet);//i'm adding the bullet object to an array .     }     for(var i = 0; i<enemyBullets.length;i++){         enemyBullets[i].show();         enemyBullets[i].move();//if there is an element in the array , draw and update the bullet.     } }// i left only the important elements of the object needed to answer my question     //this is the enemy bullet object     function enemyBullet(x, y) {     this.x1 = x;     this.y1 = y;    this.r = 5;     this.show = function ()      ctx.beginPath();     ctx.arc(this.x1, this.y1, this.r, 0, Math.PI * 2);     ctx.fillStyle = "black";     ctx.fill();     ctx.closePath()//drawing the bullet } this.move = function () {     this.x1 = this.x1 - 5;//updating the bullet } 

In my main file , i have a function draw() which is in requestAnimationFrame(draw):

for (var j = 0; j < enemies.length; j++) {             enemies[j].show();//here i spawn the enemy sprite             enemies[j].shooting();//this is the function which adds the bullets to the array , draws them and updates them.         } 

Basically , when i press the start the program now , only one bullet flies and disappears and i want that process to continue over and over again every few seconds , let’s say 3 seconds for example , i tried to add enemies[j].shooting() in an interval and timeout but they are in draw, which is in requestAnimationFrame and it doesn’t seem to work , if anyone have any clue how to help me I want every advice possible. Also if you need more information about the problem , let me know.

SSH link terminates every 20 seconds

I am using a 3rd party software to get an SSH link into my device (remot3.it). I use Putty to SSH. All my other devices work but one device frequently loses SSH connection within 20 seconds but always remains online (I just can’t successfully stay logged in). Each device is on a separate network so I am assuming the router/firewall configuration is causing this. I would appreciate an explanation of what could possibly cause this. Thanks in advance!

5 seconds after no audio – my speaker turns off

I never had this issue on Windows 10 and I just switched to Ubuntu.

When there is no sound, after 5 seconds my speaker acts like if I pulled of the aux cable out the speaker(it hums),

But the moment that I turn on any audio, speaker continues working normally. Even pressing the volume shortcuts(volume up or down) on my keyboard does the trick because it plays the short sound.

Edit for more info: Just installed and updated the Ubuntu 18.04.3 LTS

I am using my motherboard audio jack, in settings it recognizes it as a Line Out – HD-Audio Generic And as a ghetto fix, i can open Youtube video and simply mute it, even though there is no sound playing.

How can I fix this?

Fix audio delay of -0,5 seconds in movie

I can edit my movie in some video editor and perfectly match audio with video, but in that case I would have to re-encode the entire video which would be time consuming. Code like:

ffmpeg -i my_movie.mp4 -c:v copy -c:a aac -af "audio_filter_help_me_guys" fixed_movie.mp4 

would save my time. Or I just have to use video editor such as Kdenlive?

Number of unique visitors staying 30 seconds or more + visiting 2 or more pages

I’ve been asked to report a number based on the number of unique visitors that stay more than 30 seconds AND visit two or more pages.

My plan was to create a custom report or a segment based on these criteria but in both cases I run in to the same problem; pages per session is a metric in Analytics which means I can’t use it as a filter. (at least in standard Google Analyics).

Am I missing something here? These seem like pretty basic variables.