Questions tagged [sequential]

1) Any of various questions about a succession of elements arranged in a series, usually with numeric identifiers or numeric indexing; 2) Implementation questions about sequential neural networks.

Overview

  • Any of various questions about a succession of elements arranged in a series, usually with numeric identifiers or numeric indexing.

  • Implementation questions about sequential neural networks.

930 questions
5
votes
4 answers

Rxjs Returns first result of two observables run sequentially

I need to run sequentially two observables and returns the result of the first observable only. The second observable needs the first to be completed before running. I found a workaround but I'm not satisfied. You can test it here : plunker…
Karine
  • 581
  • 1
  • 6
  • 20
5
votes
2 answers

How can I reverse numbers in a vector ONLY if they are sequential?

So, if the input is a vector such as v <- (1, 2, 3, 7, 2, 8, 9) The output would be (3, 2, 1, 7, 2, 9, 8) I have tried using nested for and if loops with the condition as an is.sorted function, but have not had any success.
tdm
  • 131
  • 5
5
votes
1 answer

Running multiple ant builds sequentially from batch file

I'm trying to find a way to run multiple Ant builds sequentially from the command line. I do not have the ability to edit the build files directly. Here is what I have: @echo off cd c:\my\first\buildfile\dir ant -buildfile build1.xml target1…
DerStrom8
  • 1,311
  • 2
  • 23
  • 45
5
votes
9 answers

java -> System.gc(); Does this call opens a new Thread or not?

For example I such a code ... get some memory and lose all the pointers to that memory so that System.gc(); can collect it. call System.gc(); do some other tasks; Here does the "do some other tasks;" and "System.gc();" works in paralel or does the…
ogzylz
  • 1,345
  • 2
  • 12
  • 13
5
votes
3 answers

R: How to find non-sequential elements in an array

I have an array with several numbers in it and I don't know beforehand what the numbers will be. I would like to separate out those numbers in the array which are not sequential to the previous number (in addition to the first number in the…
Mike
  • 1,049
  • 5
  • 20
  • 46
5
votes
1 answer

How to use when then to send file upload sequentially in a function that is also a deferred promise?

I intend to upload an array of files using jQuery. This intention is wrapped in a function called uploadFilesUsingAjax(); var uploadFilesPromise = uploadFilesUsingAjax(); $.when(uploadFilesPromise).done(function (uploadFilesAjaxResult) { //…
Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
5
votes
2 answers

Sequential programming language?

What exactly is behind the notion of "sequential programming language" ? I couldn't find a proper / deep description for that. I clearly see what a sequential algorithm is, but a programming language. Sequential could be opposed to procedural,…
Gauthier Boaglio
  • 10,054
  • 5
  • 48
  • 85
5
votes
3 answers

FFMPEG - How to Extract Frames As Images While Removing Sequentially Duplicate Frames

Is there any way (via script or preferably some parameter in calling ffmpeg that I missed) to extract frames from an avi file and ignore sequentially duplicate frames, thus being able to go through the pictures looking only at the deltas/changes? I…
Michael Nelson
  • 131
  • 2
  • 6
5
votes
1 answer

Seek time vs Sequential read

Let's assume that on a hard drive I have some very large data file of a sequence of characters: ABRDZ.... My question is as follows, if the head is positioned at the beginning of the file, and I need 5 characters every 1000 positions interval,…
DED
  • 143
  • 11
4
votes
6 answers

Sequence n-3,…,n+3 for pagination without going negative

I need to create a sequence of numbers for pagination links, this sequence needs to be 7 numbers in length and start 3 numbers before the given number and end 3 numbers after the given number so if the current page was 17 the sequence would be, 14,…
Udders
  • 6,914
  • 24
  • 102
  • 194
4
votes
1 answer

run gitlab jobs sequentially

I have two simple stages. (build and test). And I want jobs in the pipeline to run sequentially. Actually, I want when I run the test job, it doesn't run until the build job was passed completely. My gitlab file: stages: - build - test build: …
rezza72
  • 127
  • 1
  • 11
4
votes
2 answers

How to run multiple python scripts using single python(.py) script

I have written multiple python scripts that are to be run sequentially to achieve a goal. i.e: my-directory/ a1.py, xyz.py, abc.py, ...., an.py All these scripts are in the same directory and now I want to write a single script that can run all…
Eisha Tir Raazia
  • 327
  • 3
  • 11
4
votes
2 answers

Execute test sequentially with Xunit in dotnet core

I want to run my tests sequentially as they change the same database and may affect one another. I have tried many solutions on the internet but none of them works for me. These solutions are described in the link "Execute unit tests serially…
4
votes
2 answers

Memory Models and Singletons in C++

in a lecture about parallel programming, we were told this old thread-safe pattern for singletons in C++ should not be used anymore: class A { public: static A* instance() { if (!m_instance) { std::lock_guard
Maxbit
  • 439
  • 5
  • 12
4
votes
3 answers

fade in list items sequentially with jQuery

I'm building a portfolio page that has a list of different projects (in an unordered list). On page load I want to have each "li" to fade in, one after another. I have achieved this like so: var eT = 0; $('.everything').hide().each(function()…
Jonathan Miller
  • 1,786
  • 1
  • 16
  • 26