google apps script – Duplicate and rename a sheet (only it`s data) at fixed hr and day

every monday I’ve to make a copy of a sheet which is called week_nn, where nn is a progressive number of the current week for that sheet from its beginning. At some point of the day, we have to fix those data to make a history, and so I duplicate the sheet which take the standard name of “copy_of_week_nn_WIP” to “copy_of_week_nn_FRZ”. If possible, I’d like to automathize this with a triggered script (time/day, in this case, every monday), because sometimes it happened if forgot the task and also, because it`s a stupid job…how I could possible do it?

Data space progress – Compilers

Consider a programming language that supports (a) nested subroutine statements with static binding and (b) value-by-reference parameterization
and by name, with corresponding keywords val, var and name in their statement. During the
Execute a code translated from this language the variables are placed
in the execution stack, in activation records containing in order (a)
the access link, (b) the return address, (c) the standard parameters
and (d) the local variables, with the parameters and variables occupying positions in the order shown in the source code.

1: proc main():
2: int r = 1, t = 3, v = -1, s =0 ;
3: proc A(var int r):
4: int w;
5: proc B(val int u; var int z; name int v):
6: int r = v - 1;
7: w = r + s;
8: if u > 0 then B(u - 1, r, z + v);
9: z = r - t + v;
10: end;
11: w = r + t;
12: B(v + t, t, r + w);
13: r = w + t;
14: end;
15: A(v);
16: end;

?) Show with explanation the evolution in the data space during its execution
this program until its completion.

Can someone help me solve this, or at least guide me solving it?

calculus and analysis – Fitting data to a model

I am using the following code with the following data (which I called fn):

data (fn) here: https://pastebin.com/WwANBjNx

fn = {datneg30, datneg10, dat5, dat25, dat40, dat45, dat50, dat55, 
   dat60, dat65, dat70, dat75, dat80, dat85, dat87, dat90, dat92};
Ta = {-30, -10, 5, 25, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 87, 90,
    92};

Tre = 75 + 273.2;
unagednematic = 0.35;


avnem(t_, T_, h22_, k2ref_, C1_, C2_, n2_) :=
  (h22 - unagednematic) (1 - 
     Exp(-( k2ref Exp(
          C1 (T + 273.2 - Tre)/2.3/Abs((C2 + T + 273.2 - Tre))) t^
          n2)))(*Nematic*);

datLC2 = Flatten(
  Table({fn((i))((j, 1)), Ta((i)), fn((i))((j, 3))}, {i, 13, 15}, {j, 
    1, Length(fn((i)))}), 
  1);(*Creates a list of {ta,Ta,LC} from Ta=80C to Ta=87C*)

nlmLC2 = NonlinearModelFit(
  datLC2, {avnem(t, T, h22, k2ref, C1, C2, n2), 0 < h22 < 1.3, 
   0.1 < k2ref < 10, 0 < C1 < C2, 80 > C2 > 0, 
   0.6 < n2 < 1}, {{k2ref, 0.28}, {h22, 1.38}, {C1, 17}, {C2, 
    40}, {n2, 0.75}}, {t, T});

nlmLC2("RSquared")
nlmLC2("BestFitParameters")


fpLC2b = Table(
  nlmLC2(t, Ta((i))), {i, 5, 
   15});(*Reemplace the fitting of nlmLC2 using Ta=40 to Ta=87. Get 
the equation as a function of t only. The 2 at the beginning is the 
index.*)

Show(LogLinearPlot({fpLC2b}, {t, 0.001, 10000}, 
  PlotStyle -> {Directive(Purple), Directive(Darker(Yellow)), 
    Directive(Orange)}), 
 ListLogLinearPlot(Table(fn((i))((All, {1, 5})), {i, 5, 15}), 
  PlotMarkers -> {Automatic, 13}, AspectRatio -> 1 , 
  PlotLegends -> 
   Placed({40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 87}, {0.14, 
     0.66})), Frame -> True, PlotRange -> {All, {0, 1.4}}, 
 Axes -> False, AspectRatio -> 1, FrameStyle -> Directive(Black, 13), 
 FrameLabel -> {Style("!(*SubscriptBox((t), (a))) / s", 16), 
   Style("(CapitalDelta)H Liquid crystal 
(!(*SuperscriptBox((Jg), (-1))))", 16)})

How can I fit the data to the model of the code (e.g, h22 - unagednematic) (1 - Exp(-( k2ref Exp( C1 (T + 273.2 - Tre)/2.3/Abs((C2 + T + 273.2 - Tre))) t^n2))))?

I am getting a very bad fitting as the figure show and I know the model should be able to describe the data:

enter image description here

data recovery – Recover deleted (by windows) Android photos

I’ve accidentally deleted an android folder containing some photos using my Windows laptop. I’ve already tried a bunch of recovery apps but none of them show the deleted photos (they do show photos deleted using the phone).

Is there any way to recover those photos?

design – What is the most suitable data structure for IPv4 addresses with intersecting ranges?

Mostly in all routers and operating systems the Longest Prefix Match algorithm is used for searching the trie of IPv4 addresses.
Packet filters like Iptables don’t need some special data structure for finding IPv4 addresses.

I need to implement some data structure, where I could efficiently (log(N)) find IPv4 addresses, which are specified in firewall rules. But there could also be IPv4 address ranges. These ranges could be intersected and have exclusions (exclude one range or IP from another one). But I thing exclusions could be resolved in time of constructing (deploying) data structure.
So the Longest Prefix Match doesn’t fit.
I was considering the Interval Tree but I’m not sure that this is the most effective way.

P.S. inserting and deleting is not a big problem but it would be good to be also log(N)

windows 10 – Does data recovery of file depends on its extension?

A file is basically data on a physical file system and a reference on logical file system. The file name including its extension is part of the logical layer. Once a file is removed from this layer, the physical blocks (now without a reference from the logical layer) are marked as available. In this stage, the contents of the file are still readable until it gets overwritten with another file, but the name and extension are gone.

Therefore, data recovery of a removed file depends more on the data format than the extension. Some formats are, unless the file was fragmented, easier to recognize by clear and strictly defined beginnings and endings. Some examples include:

  • JPEG images (and derived formats) are sequences of segments, each beginning and most ending with a marker, like 0xFFD8 Start Of Image and 0xFFD9 End of Image.
  • A ZIP archive consist of file entries and ends with a central directory referencing these files. It is like a small file system within a single file.
  • TAR archives have a 512 byte header for each file followed by the file rounded up to multiple of 512 bytes and padded (typically with zeroes).
  • From text files, e.g., XML is easy to recognize, as it may start with <?xml and consists of root element and child elements, each having a defined ending.
  • Modern Microsoft Office files a.k.a. Office Open XML files are ZIP packed XML-based documents.

As these files are that recognizable, they are faster to recover. The time depends on how many formats there has to be defined, recognized and analyzed. E.g., if you know you are only after JPEG images you can narrow this process down to JPEG markers.

security – Recovering Data from Android 10 (Forgotten PIN)

Long story short: I have forgotten the PIN to my Android device, as it wasn’t being used for a while.

Steps that I have tried/am trying/planning to try:

1. Brute forcing – I have been trying to brute force using another Android as a rubber ducky (via Nethunter) But for some reason, despite using the right kernel and everything, I couldn’t enable HID support, so it’s still under trials.

2. I tried force enabling “Use fingerprint to unlock at first boot”, and could unlock the screen, but of course, the data was still encrypted. But this did help me tweak helpful settings like: “Automatically unlock when correct PIN is entered” A question in mind here, is: Would enabling this feature, indirectly mean, bypassing the time limitations on entry of wrong PINs?

3. TWRP brute forcing – I have tried the tool by timvisee: apbf. But it has it’s limitations and also, again, (maybe I’m not doing it right) TWRP starts entering PINs via terminal BUT it does so even if the code is not running in PC. Refer: https://github.com/timvisee/apbf

4. Most complicated way – I have not tried this in a right way, but I believe, by extracting the hash and salt (somehow), I could recover the PIN. In short, there is a loophole in the FBE (File Based Encryption) implementation, but again, I don’t know the how-to’s. Refer: https://bits-please.blogspot.com/2016/06/extracting-qualcomms-keymaster-keys.html?m=1 (Obsolete for Android 10)!

Edit: Since I now know about CVE-2016-2431, I guess the required info can’t be extracted by the old process. But again, I would like to know if there is a way to do it in Android 10

5. Making an image file – I have also thought of creating a raw image file of the /data partition in order to, either:
(i) Decrypt the partition later by
using tools like hashcat (don’t
know exactly how) or
(ii) Downgrade the Android to a
lower version in order to decrypt
it (again, don’t know if it would
work).
(This won’t work)

Information about Android:
Device: RMX1921
ROM: CUSTOM – ResurrectionRemix
Android Version: Q/10
ROOT STATUS: Rooted (USB Debugging enabled)

That’s all the information I can give right now, and if you could throw any light, I would be very grateful.

Lastly, we have working methods for lower Android versions, so I believe there is a working way for higher Android versions

Thank you all, in advance!

P.S. – I am willing to try all the possible ways, in order to save my data ✌🏼

plotting – How can I label a table of histograms with the names of the data symbols, not the data themselves?

How can I label a table of histograms with the names of the data symbols, not the data themselves?

If I want to make a table of plots with each plot labeled with the name of the function it plots, this is simple:

f[x_] := x; g[x_] := x^2;
Table[Plot[p[x], {x, -1, 1}, PlotLabel -> p], {p, {f, g}}]

However, if I want to do the same for Histogram, I have not figured out how. I have tried various combinations using ToString, Hold, HoldForm, and Unevaluated, as well as ChartLabels. For example,

l = RandomReal[{0, 1}, 20]; m = RandomReal[{0, 1}, 20];
Table[Histogram[p, PlotLabel -> p], {p, {l, m}}]

does not work, as the labels are the values of l and m, not the strings l and m.

The same question applies to the format analogous to

Plot[#[x], {x, -1, 1}, PlotLabel -> #] & /@ {f, g}

which works for Plot but not for Histogram.

I will write for you any article you need consisting of 500 unique words and free of anything in bot for $5

I will write for you any article you need consisting of 500 unique words and free of anything in bot

write Unique And SEO Optimize Article up to 500 Words

I will write a High Quality, Targeted content that benefits the reader and that will be appreciated by search engines. Effective CONTENT is the key for success of your website. You will have a Unique SEO content, which is 500-700 words in length.

FEATURES

– Unique Content

-Research Before Writing

-Fast Turnaround

– Unlimited Revision

.

data recovery – Question on accessing salvaged Ubuntu boot drive

Not a power user, so this may be a very stupid question. My ever-trusty decade-plus old (probably closer to 15 than 10) Ubuntu desktop died. Used it for web browsing and email only. Dead-dead so I assume either a MOBO or a PSU failure. Frankly not worth fixing. For a temp fix I found a windows 10 mini that I purchased last year as a backup to my Windows laptop (wanted it as we went to remote desktops when Covid hit). Am I correct in assuming the easiest way to access this is to slap it in an external SATA enclosure and dual-load Ubuntu onto the mini? Last time I tried something like that many moons ago Windows did not even see the drive. Unfortunately I have been lax in backups and my last 6mo of emails are still in there (Thunderbird). Everything else I really do not care about. This is just for a temporary fix until I buy a new dedicated mini for Ubuntu email/web browsing (prefer to keep the Win10 for emergencies per the original purchase).

Thank you.