algorithm – Next number in this sequence?

11913380, 5567047, 7660549, 10191449, 6811603, 2828842, 6377912, 2498593, 13173285, 13421496, 8748964, 10579395, ?
Which number will follow?

sharepoint designer – Creating a workflow which automatically runs a formula to assign customized number

I have created a list which uses a calculated column to assign a customized change control number. However, whenever a new item is created/saved, the formula is not applied.

It is only when I access through list settings and open the calc column and then save, does the desired outcome display.

I am new to workflows and need help getting started.

cuda – Number of threads and number of processing elements in heterogeneous programming

For example, AMD A10 5800K APU has only 384 processing elements. But in kernel, we assign 2048 local workgroup size (i.e.number of working threads or work items). Each thread runs on processing element. How 2048 threads are processed in parallel on 384 processing elements. Are they working in batch?

beginner – Printing a number from memory in assembly

I’m trying to work up to being able to print the hailstone sequence in assembly. To do that though, I first needed to learn how to actually print a number out using the write system call.

After a few design iterations, I ended up using division to get each digit one at a time by using the remainder. Each remainder gets pushed onto the stack, then the address of the stack is given to the system call to print out.

What I’d like advice on:

  • In a couple places, I have math split out over multiple lines, like:

     sub edx, esp  ; Calculate how many were pushed
     dec edx
    

    It doesn’t seem like it’s possible to combine that into something like sub edx, esp - 0, but if there is a neater way, I’d like to know.

  • This is my first time using div. Is there anything wrong with how I’m using it? Also, is there a sane way of not using div altogether? Apparently it’s stupid slow and should be avoided if possible.

  • Anything else notable. I’m a super-beginner, and this code is quite verbose.

I’m using n to represent the number that I want to print out. In theory though, that number could come from anywhere. It’s just a placeholder for the exercise.

global _start

section .data
    n: dd 123456

section .text
    _start:
        mov ebp, esp  ; So we can tell how many were pushed

        mov ecx, [n]

        .loop:
            mov edx, 0  ; Zeroing out edx for div
            mov eax, ecx  ; Num to be divided
            mov ebx, 10  ; Divide by 10
            div ebx
            mov ecx, eax  ; Quotient

            add edx, '0'
            push edx  ; Remainder

            cmp ecx, 0
            jne .loop

        mov eax, 4  ; Write system call
        mov ebx, 1  ; STDOUT
        mov ecx, esp  ; The string on the stack
        mov edx, ebp
        sub edx, esp  ; Calculate how many were pushed
        dec edx
        int 0x80

        mov eax, 1
        mov ebx, 0
        int 0x80

Assembled and linked using:

nasm numprint2.asm -g -f elf32 -Wall -o numprint2.o
ld numprint2.o -m elf_i386 -o numprint2

how to stop limit number of urls posted

ive set a project to

“stop the project after xxx verifications per url”
under project>options

it has already done multiples of what its supposed to do & just keeps doing more,
its the indexer engine, its done about 1500 in half a day for each project,
 i just want it to do a steady amount & put the rest in the lists for when they are needed,
but apart from turning that engine off completely (which i would have to do for each project)
how do you get it to stay at the levels you have set it to at

project>options
its not 20-30% more -its not going to stop

table – Choose the number of kernels used by ParallelTable

You can launch as many or as few kernels as you like, see LaunchKernels and CloseKernels. Parallel functions will use as many as are currently running.

E.g., LaunchKernels[3] would launch 3 additional kernels. Before you run any parallel commands, simply launch precisely as many as you need. Then automatic launching won’t be triggered anymore.

If you already launched too many, use CloseKernels to close as many as you don’t need.

Is there a way to generate a report in SharePoint showing number of items added to a list/library per day?

If a code based solution is fine then, I would recommend a simple windows task which executes a powershell script exe which would run every morning and calculate the no. of items added to that particular list from “startdate” to “EndDate”. The start date and end date can be calculated based on the current time.

Then it can send out an email or generate an excel or anything that you want to do.

If you have access to the server. Consider a timer job .

ids – What happens if a sender changes the TCP window size over multiple packets that have the same ACK number?

I’m currently doing research on evasion attacks that seek to bypass a Deep-learning based Network Intrusion Detection System.

In order to achieve this, I need to know what the constraints are for the TCP window size field in the TCP packet header. Imagine a client has just sent the last TCP-ACK packet to a server in order to complete the 3-way handshake. He then immediately proceeds to send a GET request to the server (these 2 packets are thus sent one after the other, and contain the same ACK-number).

What happens if the TCP window size in the TCP-ACK packet does not match the window size in the TCP packet containing the GET request? Will the receiver simply observe the last value for the window size that he obtained? Or will there be a violation in the TCP protocol in any way? You can assume that the change in window size is very small, and will not cause the buffer to be full.

More generally, if the client sends N uninterrupted packets (e.g. a heavy-load POST request), can he change the window size in each packet header without repercussions?

notifications – How do I see number of or icon for unread messages?

My device: I use Android 9 on samsung galaxy s9.

Background: I believe there was a feature before (or maybe currently still, but I turned it off) about showing number of unread messages on apps like whatsapp, viber or the SMS app (and i guess gmail or facebook) or at the very least there’s some kind of dot or something on a corner of the icon of such an app that indicates there exists at least 1 unread message (so the dot is an alternative to a specific number of unread messages).

My situation: I do not have such number or dot on icons on apps on my device. If I get a message on whatsapp or viber or regular SMS but say I have to install some updates and so my phone has to turn off or restart, then the notification of this message is gone.

Question: How do I see number or existence of unread messages on icons of apps such as viber and whatsapp and the SMS app?

I have tried looking this up, but

  1. I wasn’t able to find any articles specifically on Android 9 and Samsung Galaxy S9.

  2. The solutions proposed in articles I’ve found on Android 9 but a different phone or on different versions of Android have not worked for me.

  3. I’ve tried looking up some apps on the play store, but I haven’t downloaded any because of the reviews.

Why is the winding number of a surface locally constant?

Given a smooth closed surface $Ssubseteqmathbb R^3$, we can define its winding number around some point $pinmathbb R^3setminus S$ as $$omega_S(p):=frac1{4pi}int_Sfrac{langle x-p,nu_S(x)rangle}{|x-p|^3}dS(x),$$ where $nu_Scolon Stomathbb S^2$ is the unit normal vector field of $S$. I would like to show that $omega_Scolonmathbb R^3setminus Stomathbb R$ is locally constant (which I think to be true based on the properties of the standard winding number $omega_gamma(p)=frac1{2pi}int_gammafrac{dz}{z-p}$ of a loop $gammacolon Itomathbb C$ around a point $pinmathbb Csetminusgamma$).

I read somewhere (can’t find it anymore) that my claim is trivial, because the “solid angle differential” $$dOmega_p=frac{langle x-p,nu_S(x)rangle}{|x-p|^3}dS$$ is closed. However, if $dOmega_p$ was closed, then Stokes’ theorem tells me that $$omega_S(p)=int_SdOmega_p=int_{partial V}dOmega_p=int_Vd(dOmega_p)=0,$$ even if $S$ encloses $pinmathbb R^3setminus S$.

My next attempt was to show that all partial derivatives of $omega_S$ vanish everywhere. And now, I’m stuck at
$$frac{partialomega_S}{partial p_i}(p)=frac1{4pi}int_Sbiggl(frac3{|x-p|^2}frac{langle x-p,nu_S(x)rangle}{|x-p|^3}(x_i-p_i)-frac1{|x-p|^3}nu_{S,i}(x)biggr)dS(x),$$ which doesn’t look like it will get me anywhere.

Is $omega_S$ actually locally constant? And how would I go about showing it?