Element dynamically created by Ajax doesn't work
Event binding on dynamically created elements?
Compare nullable types in Linq to Sql I have a Category entity which has a Nullable ParentId field. When the method below is executing and the categoryId is null, the result seems null however there are categories which has null ParentId value.  What is the problem in here, what am I missing?  public IEnumerable&lt;ICategory&gt; GetSubCategories(long? categoryId) {     var subCategories = this.Repository.Categories.Where(c =&gt; c.ParentId == categoryId)         .ToList().Cast&lt;ICategory&gt;();      return subCategories; }   By the way, when I change the condition to (c.ParentId == null),  result seems normal. How do I summon a named mob? In Java Edition, I can name a mob by using NBT tags like this: /summon zombie ~ ~ ~ {CustomName:'{&quot;text&quot;:&quot;TheUndead&quot;}'}  But in Bedrock Edition, I've heard NBT is not accessible from commands. What can I do to summon a mob with a custom name tag using the /summon command? How to bond two different internet connections I have two internet connection, each with 4mbps bandwidth. I want to join/merge both of them to get 8mbps speed, both routers have WLAN and LAN capability.    How to Double my speed using two routers? Can I bond two connections in Windows and double my internet connection speed? Any download manager that accepts two internet connection to download? How to do volumetric lighting for a forest scene? I have scene that looks like this:   And I want to add volumetric lighting to it so that light forms a rays of light when it go through the trees like on this example that I found in youtube:   But the problem is that all of these tutorials show how to make this lighting coming from windows, but when I try to replicate it in my forest scene it looks like big ugly fog with cubical shape. Also the light is coming from the back of the camera (as you can see) and there are some spots that needs this special lighting (like places where light goes through trees) and some that don't (like big bright are on the bottom left corner) so I can't just add a giant cube to all of the scene. In the inbox of the app, there is no way to differentiate between comments and answers as is in the global inbox of the website.  Could this be added? Is there a significant difference between "rock" and "stone"? I found this pretty good small research, but I am still concerned about "regular usage" in life, say, when I am talking in the office, especially because of this comment:     To me: Stone is something you can pick up with one hand (for   throwing). A rock takes two hands. List all files in all subfolders Asking users to accept answer when they comment that it answers their question I've had a couple of answers today where the OP indicated via a comment that I solved their problem, but the question wasn't upvoted or accepted.  In both cases the person probably wasn't able to upvote since they were new, but they could have accepted my answer. I felt a little guilty asking them to accept the answer, but since it solved their problem I felt that it would help others who stumbled on the question trying to solve their own problem to know that my solution really was the answer. Is asking the OP to accept your answer when they've said that it solved their problem a reasonable thing to do or does that feel like nagging for reputation? How can I "group by" and sum a column in excel? I'm trying to figure out how to "group by" values in an Excel spreadsheet.  Given the following example (this is an inventory sheet I use at my restaurant:)    At the far right of the spreadsheet there is a column named Cost of Goods Sold.  I would like to be able to come up with a total COGS figure for each Category.  Is this possible in excel? Moreover, I'd like to do it in a separate worksheet so that the first worksheet (what is pictured) isn't affected.  Any ideas?  Thanks! Insert only half a pdf page I'd like to include papers of mine which can easily be done with the pdfpages packages:  \usepackage{pdfpages} \includepdf[pages=-]{mypaper.pdf}   However, my thesis has an A5 format. Which means that each page is "half" an A4 page. Basically, I'd like two include each PDF page on two pages, like illustrated below:    While I found how to rotate the PDF using the angle parameter, I did not find how to split it... For about 2 days I'm trying to configure Ubuntu so that I can send an email, but when I type in:  echo "Subject: sendmail test" | sendmail -v my@email.com   I'll get:  postdrop: warning: unable to look up public/pickup: No such file or directory Mail Delivery Status Report will be mailed to &lt;andreigbr&gt;.   Even if I change my@email with mine, the inbox will be empty. Can somebody help me, please? I watched about 5 tutorial about how to send an email fom the command line but still doesn't work. There are several ideas on hard determinism, but the core seems to be that in an interconnected existence, there can be no "actions" (free will), but only "reactions" (determinism). An action of free will would have to be a separate entity outside of existence, so we'd say it can't occur.   Now fast forward to Joe Schmo the robbing/murdering/rapist.  Joe wasn't born in some infinite bliss utopia, then decided one day to invent the concept of scumbaggery.  He's a product of an incomprehensible number of variables - maybe some are apparent like his dad was a violent alcoholic or whatever, but most likely it's far more complicated than that.    So that's fine - I get all that - but if that's the case, then how can you ethically deal with people like that?  You can't hardly let them do what they please at the expense of society, but then how can you get medieval on them when they're basically riding a wave?  I think that's a big reason why people fight concepts of determinism that mitigate or eradicate the concept of free will - now everyone has a license to do what they want and how can you punish them, it's not their fault!  How would/could/should you consolidate hard determinism with responding to criminal acts? Using C++ library in C code How can I find the right lens cap for my lens? I own a Nikon D3000 Camera with the AF-S 18-55mm VR Kit Lens. Last week I lost the lens cap and now I want to buy a new one.  But when I went to , I got confused with the different ranges of lens names —  LC-62, LC-78, etc.  My concern is what if I order one lens cap and it won't fit correctly on my lens?  If you guys have an D3000, can you please let me know how to find the correct lens cap names? Negative pressure Comparing SVM and logistic regression Can someone please give me some intuition as to when to choose either SVM or LR? I want to understand the intuition behind what is the difference between the optimization criteria of learning the hyperplane of the two, where the respective aims are as follows:     SVM: Try to maximize the margin between the closest support vectors LR: Maximize the posterior class probability    Let's consider the linear feature space for both SVM and LR.  Some differences I know of already:   SVM is deterministic (but we can use Platts model for probability score) while LR is probabilistic. For the kernel space, SVM is faster (stores just support vectors) My kids are playing Minecraft on 2 PCs, creative mode.  They are connected by the way of one of them starts a single player game on the other one than joins that game over the LAN.  Can I, using Minecraft PE on my iPad, join their game as well? This is an old problem that deserves a bugfix, but it's getting beyond a joke now and I can't seem to work around it.  I keep getting the dreaded failed To download extra data files error in relation to ttf-mscorefonts-installer:    Repeatedly asking it to try again doesn't help, additionally, repeatedly trying-  sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/* sudo apt-get --purge --reinstall install ttf-mscorefonts-installer   Isn't working either.  I just get at least one 404 error from one of the sourceforge links that stops it working-  Reading package lists... Done Building dependency tree        Reading state information... Done 0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 20 not to upgrade. Need to get 0 B/29.5 kB of archives. After this operation, 0 B of additional disk space will be used. Preconfiguring packages ... (Reading database ... 352049 files and directories currently installed.) Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ... mscorefonts-eula license has already been accepted Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) over (3.4+nmu1ubuntu2) ... Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ... Processing triggers for update-notifier-common (3.168.2) ... ttf-mscorefonts-installer: processing... ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB] Fetched 198 kB in 0s (339 kB/s)                                                 W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe [554 kB] Fetched 554 kB in 0s (575 kB/s)                                                 W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arial32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe Get:1 http://downloads.sourceforge.net/corefonts/arialb32.exe [168 kB] Fetched 168 kB in 0s (306 kB/s)                                                 W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arialb32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/comic32.exe Err:1 http://downloads.sourceforge.net/corefonts/comic32.exe   404  Not Found W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/comic32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) E: Failed to fetch https://netix.dl.sourceforge.net/project/corefonts/the fonts/final/comic32.exe  404  Not Found  E: Download Failed Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...   The specific point at which it fails to download changed - it seems to be a sourceforge reliability problem, but this has now been going on weeks and results in annoying popups as above all the time.  How do we get this fixed and/or how can I work around it for now. How to "unpivot" or "reverse pivot" in Excel? I have data that looks like this:  Id | Loc1 | Loc2 | Loc3 | Loc4 ---+------+------+------+----- 1  | NY   | CA   | TX   | IL 2  | WA   | OR   | NH   | RI   And I want to convert it to this:  Id | LocNum | Loc ---+--------+---- 1  |   1    | NY 1  |   2    | CA 1  |   3    | TX 1  |   4    | IL 2  |   1    | WA 2  |   2    | OR 2  |   3    | NH 2  |   4    | RI   What's the easiest way to do this in Excel 2007? Please help me to answer the following problem:  Let $f(x)=x^3-3x-5\in\mathbb{Q}[x]$  Thanks