Using jQuery functions on javascript generated DOM elements
Event binding on dynamically created elements?
Easiest way to alternate row colors in PHP/HTML? Here's a PHP example of mine. Can anyone find a shorter/easier way to do this?  &lt;? foreach($posts as $post){?&gt;     &lt;div class="&lt;?=($c++%2==1)?‘odd’:NULL?&gt;"&gt;         &lt;?=$post?&gt;     &lt;/div&gt; &lt;? }?&gt;  &lt;style&gt;     .odd{background-color:red;} &lt;/style&gt;   Examples in other languages would be fun to see as well. What will reduce my rendertime? What would reduce the render time? Should I get a better GPU or more RAM? How can one prove the statement $$\lim_{x\to 0}\frac{\sin x}x=1$$ without using the Taylor series of $\sin$, $\cos$ and $\tan$? Best would be a geometrical solution.  This is homework. In my math class, we are about to prove that $\sin$ is continuous. We found out, that proving the above statement is enough for proving the continuity of $\sin$, but I can't find out how. Any help is appreciated. I have a WinForms app that I am trying to make full screen (somewhat like what VS does in full screen mode).  Currently I am setting FormBorderStyle to None and WindowState to Maximized which gives me a little more space, but it doesn't cover over the taskbar if it is visible.  What do I need to do to use that space as well?  For bonus points, is there something I can do to make my MenuStrip autohide to give up that space as well? Is there a way to have Cycles skip rendering alpha? If I wanted to create an animation, each frame would have several seconds of rendering a completely transparent part, which adds up obviously. Is there a way to eliminate this waste of time? I need to use the setting Disable tiled raster layer exports from the GUI in my Python code, but I can't seem to find it.  exporter = QgsLayoutExporter(layout)     exporter.exportToPdf(path, QgsLayoutExporter.PdfExportSettings())   How can I do this? US tourism/business visa from non-resident country I applied for multiple visas before (not US visa), but all of them were from my residence country. In all of these cases, I can get official paper which support my evidence (bank statement, letter which states I am employed with high salary, marriage certificate, security clearance, ...).  It is the same question as , but I am not residing; I have a business visa.  case-specific details: I am from Egypt, I have business visa for Ireland. While in Ireland, I want to apply for US business visa.  Why not to apply from Egypt? Because the waiting time is too long (75 days). The waiting time in Ireland in only 18 days. Both visits (Ireland, US) are short visits (3 weeks for each). How to delete an element from an array in C# Lets say I have this array,  int[] numbers = {1, 3, 4, 9, 2};   How can I delete an element by "name"? , lets say number 4?  Even ArrayList didn't help to delete?  string strNumbers = " 1, 3, 4, 9, 2"; ArrayList numbers = new ArrayList(strNumbers.Split(new char[] { ',' })); numbers.RemoveAt(numbers.IndexOf(4)); foreach (var n in numbers) {     Response.Write(n); } Data extension values in the "Update Contact" activity in Journey Builder I'm looking for a way to use fields from a data extension (that is the entry source for a journey) in the "Update Contact" activity.  I want to create a sort of log in a different data extension. Let's say I have a sourceDEthat is used by the journey and a journeylogDE where I would like to write the email of contact that's currently in the journey.  What should I write in the value field to get a value from the currently used record in the sourceDE?  I tried {{Contact.Attribute.sourceDE.email}}, but it did not return any values.   I would appreciate it if you could give me any tips how to fix this issue. Need help with a work around I need to take the 'Office' display of the 'Created By' column and display the first 5 digits of it so that my flows can run a conditional check on it. The reason is that Microsoft flows has all the 'Created By' dynamic contents besides 'Office'.  I figured simple enough I'll just do a calculated column on the SharePoint list. Then I find out that 'Created By' cannot be used in calculated columns.   So I figured I'll have my PowerApp write the Users 'Office' as a default to a field when submitting a form and calculate it off that column. Unfortunately PowerApps only has User().FullName, Email, and Image.   I have pretty much exhausted the options for a workaround that my knowledge will allow. Hopefully someone might have some ideas. When I double-click on a script in Nautilus in order to run it, the script opens in my text editor with no option to do so.  Using Nautilus, how do I run executable text files and/or scripts? Overstaying Schengen Visa for 1 day I was in Germany last September, my visa said I had 14 days to stay in the Schengen area.  When I was leaving back for Egypt the passport control officer noticed that I was leaving on the 15th day. I didn't even realise that as I had written previously in my visa application that I was staying for 15 days and the embassy in Cairo had my complete airline ticket with specific dates.  Anyway the officer just filed a report on the incident but didn't stamp my passport with my exit date from the Schengen area.  Do any of you guys know if that would make it harder for me to be granted a visa in the future? So I'm trying to prove the following two inequalities: $$\frac{\sqrt{n}}{2} \leq \phi(n) \leq n.$$ The upper bound we get from simply noting that $\phi(n) = n \prod_{p | n}\left( 1 - \frac{1}{p}\right)$ and the fact that $(1 - \frac{1}{p}) \leq 1$. But how can we get the lower bound? I tried using the same expression for $\phi(n)$ but it seems to not really give me the inequality. Can you help? Getting command-not-found working under zsh Do I add quotes around my thoughts? He staggered in, late as usual, his hair this way and his collar the other. His socks were as mismatched as were his principles. I thought to myself, here comes yet another disastrous sales meeting.  It seems to me too much to write :     I thought to myself 'Here comes yet another disastrous sales meeting'.   The Authorised Version deliberately did away with punctuated speech, retaining only the capital to indicate the beginning of a quote but leaving out quotation marks.  Can I therefore do the same in common writing, for my thoughts ?     I thought to myself, Here comes yet another disastrous sales meeting.   I cannot find another question on EL&amp;U which covers this. How to secure my laptop so that hacking by physical access is not possible? I messed up my system earlier, I was greeted with a black screen, when booting in to Ubuntu. When I started up my laptop, I selected the recovery option from the grub menu, and chose fallback at root terminal. I saw that I was able to use the add user command, with it, I probably could use to create a privileged user on my machine.   Isn't that a security issue?  One could have stolen my laptop and at startup chose recovery and add another user, I'm fudged then. Including my data.  Come to think of it, even if you somehow remove that entry, one could boot from a live-CD, get a chroot up and running and then add another user, with the right privileges that allows it to see all my data.   If I set the BIOS to boot at my HD only, no USB, CD/DVD, Network startup, and set a BIOS password, it still wouldn't matter, because you'd still have that grub recovery startup entry.  I am fairly certain that someone from China, Russia can't hack my Ubuntu Trusty Tahr, from the network, because it's secure like that. But, if one has physical access to my - your - machine, then, well, that's why I'm asking this question. How can I secure my machine so that hacking through physical access is not possible?    Bug Report: "Put me in touch with whomever created it"? He created it.  Put me in touch with him.   So which is correct and why:   Put me in touch with whomever created it. Put me in touch with whoever created it. Having the derivative be an operator How to read and write into file using JavaScript? Can anybody give some sample code to read and write a file using JavaScript? Which spells or abilities are affected by things that care about targeting? Note: this is intended to be a canonical question about whether or not a spell or ability targets so there are multiple sub-questions.   Can Hexproof or Shroud save my creature from ? What about a  that was cast for it's Overload cost? Does shroud prevent me from using the Monstrosity ability of a creature, or from giving it more counters with Proliferate? Can I cast an Aura Enchantment on one of my creatures with Shroud, or an opponent's creature with Hexproof? Or can I use the Equip ability to attach an equipment to one of my creatures with Shroud? Will 's ability trigger when my opponent plays ? And will I have to sacrifice my  if my opponent casts ? Will Shroud or Hexproof prevent an opponent from choosing me with 's ability? Will Hexproof keep one of my creatures from being affected by ? If an Aura or Equipment is attached to a creature with Hexproof, does the Hexproof protect the attached permanent?