Accessing individual dynamic tags in a for loop [closed]

JavaScript beginner here. I have created dynamic tags in JavaScript using a for loop but have trouble accessing individual tags. I want to be able to style these tags as well as checking if a tag is clicked or not, like in html, but in this case, JavaScript.

HTML:

JavaScript: function createImg() { img = document.createElement(“img”); img.src = “bugImage.jpg”; for (i = 0; i < 4; i++) { img[i] = document.createElement(“img”); img[i].src = img.src; document.getElementById(“div1”).appendChild(img[i]); } }

Any help is greatly appreciated!

How to spawn enemy by individual rows, scrolling downward the screen [using 2D DirectX,C]

I’m a beginner to the game development and just started making one 6 months ago. I’m creating a 2D top-down scrolling shooter game using DirectX9 and C Language.(I know it’s an old one to use but have no choice since it’s a school project).

The result I want:

  • The enemies will be scrolled down by endless rows from top until the screen ends

The problem I’m having:

Currently I’ve managed to spawn the enemies in just one single row. I don’t know how to cut and sort them into 8 enemies in each single row. I really need to know the idea to sort this out and hope someone help me figure this out!!

Thank you in advance.

How can I toggle display of individual items in a Show list?

I have several ListLinePlot features I’m overlaying on one image using Show. I’m using the Manipulate function to turn on one at a time, but I’d like to be able to use Manipulate to toggle the individual Show images on/off. Is there any way to create a Manipulate function that would allow this?

plotA = ListLinePlot[{{{-2000, 500}, {-10, 0}, {10, 0}, {2000, 1800}}}, PlotStyle -> Green, PlotRange -> {{-2000, 2000}, {-400, 4000}}, AspectRatio -> Automatic];  plotB = ListLinePlot[{{-800, 4000}, {-300, 200}, {0, 3000}, {300, 200}, {800, 4000}}, PlotRange -> {{-2000, 2000}, {-400, 4000}}, AspectRatio -> Automatic, PlotStyle -> Blue];  plotC = ListLinePlot[{{-1000, 3000}, {-600, 400}, {0, 1600}, {600, 400}, {1000, 3000}}, PlotRange -> {{-2000, 2000}, {-400, 4000}}, AspectRatio -> Automatic, PlotStyle -> Orange];  Show[plotA, plotB, plotC] 

Is there any way to have a Manipulate object that could toggle each of these on/off individually so one, two, all, or none would be displayed by the Show function?

This is the code I’ve been able to work with, but again, I can only show one plot at a time this way.

Manipulate[  Show[a], {{a, plotA, ""}, {plotA -> "plot a", plotB -> "plot b",     plotC -> "plot c"}}] 

How do i protect my game assets as an individual? [duplicate]

This question already has an answer here:

  • Questions on the legal protection of games and their parts (assets, sounds, title) 2 answers
  • How do I protect my game's IP? 2 answers

For my first games, they will be well made, complete, but extremely simple, while i father enough funds to actually fund a game company.

But because I plan on releasing quality content under {insert my name here} Studio (trademark)(c)

and of course all of my games will be superseded by a (c), despite the fact I haven’t even registered anything.

But the real question is, what steps do I need to take to make sure my content does not get stolen while im financially stable enough to file all the paperwork needed to maintain proper copyrights?

I’d also like to release a major title, but I’m scared to, because I know someone is going to try and steal it.

Modeling and managing attack surface around individual finance [on hold]

I want to protect myself from fraud and identity theft.

While there are on the Internet plenty of arbitrary collections of precautionary tips, I want to make rational, fully informed choices to manage the risk that I suffer from financial crime. (I’m not an unusually valuable target for crime; I just want to make responsible choices.)

Essentially, I want to know how my choices will affect the attack surface around my individual finances and crime-relevant information. Having a good model of this attack surface would allow me to answer, for example, these questions:

  • How do I evaluate a bank or credit union for its information security practices?
  • How do I choose among email service providers and email information security practices?
  • What practices around financial transactions minimize this attack surface?

I’m not looking for answers to these questions in particular, but rather how to model the attack surface they are asking about.

So, my question is:

When a security expert wants to model a complex attack surface across multiple institutions and information systems, how does he or she go about doing it? What steps does he or she go through? Can a technically capable but non-expert follow these steps?

Can I copy individual stages of a SharePoint 2013 list-based workflow?

I have a SP 2013 list with a list-based workflow. Next release, I create a new list with the same content type. I want to re-use the list-based workflow but must implement a work-around to do this. I want to simply copy the stages in the first workflow into a new workflow and then associate the new workflow to the new list. It seems to work. Do you know of any issues doing this?

I cannot work with a reusable workflow because that does not recognize the content type fields and in 2013 you cannot successfully base a workflow on a content type.

Thanks, Linda

Delete Individual Items from Recycle Bin

I am using Batch Delete using Powershell.

After batch delete, items are moved to recycle bin. spWeb.RecycleBin.DeleteAll(); will delete all items from recycle bin. Instead, i want to remove only those items which i have batch deleted.

For that, i came across a command spWeb.RecycleBin.Delete(Guid[] ids); but i am missing something while implementing it. As a result i am getting error :

Exception calling "Delete" with "1" argument(s): "Specified argument was out of the range of valid values.Parameter name: ids" 

Following is the PowerShell Code used to achieve the same:

[Guid]$  a = "fcfdc7d3-ef59-4988-b3e9-0ae7184c6c4f" (Sample GUID Present in recycle bin) $  deletions = New-Object Collections.Generic.List[System.Guid]; $  deletions.Add($  a) $  ArchiveWeb.RecycleBin.Delete($  deletions.ToArray()); 

What i am missing here?

How do I grant a SELECT permission to an individual user who’s part of a large group that is explicitly denied?

I have a table SuperSecretData which is currently setup to deny SELECT to everyone in the company by the standard Active Directory account “Domain Users”. But a couple of specific individual users do need to be able to SELECT from it. What’s the proper way to achieve this?

Table Properties - Permissions