Why need to pass jQuery object as parameter to closure?
Why define an anonymous function and pass it jQuery as the argument?
Assign VNC password using script I am using a script to automatically set up a computer. I need to assign a password to the vnc server for the user, which is normally done using the vncserver command. However, it prompts for the user to enter and re-enter their password, neither of which the script is capable of doing. So, how can I set up the VNC password without an interactive prompt?   Thanks. I have a bunch of views/reports built for my client. The reviewers then click download csv for the excel file. They asked if the views could download themselves daily to a folder.  Is that possible? And could you share links or knowledge how to handle this. I have been trying to figure it out.  Note: Right now the user is downloading CSV's from Drupal 7, an install of Moodle 1.9 in a Drupal 6 Shell and Survey Monkey. After they download and combine using Excel, the user creates reports that way for the users we have come to our events. Being a Front-end developer, coding is not my strength. How slow are .NET exceptions? I don't want a discussion about when to and not to throw exceptions. I wish to resolve a simple issue. 99% of the time the argument for not throwing exceptions revolves around them being slow while the other side claims (with benchmark test) that the speed is not the issue. I've read numerous blogs, articles, and posts pertaining one side or the other. So which is it?  Some links from the answers: , , . Does Devil's Fruit power gained depend on how much of it is eaten? Luffy accidentally ate the Gomu-Gomu (Rubber-Rubber) fruit, but was interrupted by Shanks after a few bites. It was too late and Luffy got the Devil's Fruit powers anyway. If he had instead eaten the whole of it, would he have got even more power from the fruit? Reset post score to 0 on migration Dimensions of Scale (Gamma) and Offset (Beta) in Batch Norm While implementing Batch Normalization for a particular layer 'L' with 'n' hidden neurons/units in a Neural Network, we first normalize the Activation values of that layer using their respective Mean and Standard Deviation, and then apply the Scaling and Offset factor as shown:     X-norm = (X - mu)/sd X' = (Y * X-norm) + B       where    mu = mean of X and it is a (n,1) vector          sd = standard deviation of X and it is also a (n,1) vector         X = Activation values of layer 'L' with dimension (n,m) if mini-batch    size = m   X-norm = normalized X with dimension (n,m)   Y = Gamma / Scaling factor   B = Beta / Offset factor   Now my question is, what are the dimensions of Gamma and Beta ? Are they (n,1) vectors or are they (n,m) matrices ? My intuition says that since they somewhat are analogous to the Mean and Standard Deviation, they should be (n,1) vectors. “It can be very cold…” vs “It may be very cold…” It can be very cold in winters.   It may be very cold in winters.   What is the difference between these two sentences?  People say when may is used then it means that it may be cold in winters or it may not be cold in winters. In other words, may means 'not sure'.  So does that mean if can is used then it is 100% sure that it will be cold in winters? How can I Remove .DS_Store files from a Git repository? How can I remove those annoying Mac OS X .DS_Store files from a Git repository? I have a master's degree in International Studies, and a double major with Computer Science from undergrad.  My transcripts suck.  There's no other way to dress it up.  I have pretty good teaching experience, and my GRE scores are awesome, and I suspect my recommendations are as bland as everyone else's.  Basically, to an admissions committee, I suspect I'm the model of a student who is probably smart enough but didn't work hard enough.  I want to do a Ph.D. in Political Science, but the response from my applications is looking pretty grim.  Am I permanently out of the running, or is there something I can do for the next few years which will help to counterbalance my unfavorable GPA? Convert a list to a string in C# After a botched upgrade from Ubuntu 14.04 to Ubuntu 16.04 I had to wipe my system and start all over. This time I decided to go with a much less CPU intensive desktop environment and installed Lubuntu 16.04-1.  My problem: when I run Steam from the menu shortcut it acts like it is doing nothing. However it does show up in the task manager. If I just type steam in the terminal I get the following.  michael@michael-HP-Pavilion-dm1-Notebook-PC:~$ steam Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc /bin/bash: /home/michael/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash) grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc awk: /home/michael/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /lib/x86_64-linux-gnu/libreadline.so.6) Installing breakpad exception handler for appid(steam)/version(1468023329) libGL error: unable to load driver: r600_dri.so libGL error: driver pointer missing libGL error: failed to load driver: r600 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast   Then nothing happens including steam doesn't show up in the task manager. Now I did find the command.  LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam   This does run Steam but it is not a real solution in my eyes. How can I fix it? Python "extend" for a dictionary How many ways are there to select a pair of cards from a standard deck of cards such that one of the cards is red and the other one is black? Suppose that a pair of cards are selected from a standard deck of 52 cards. And since there are 26 black cards and 26 red cards, so I'm wondering if my thinking is right?   ${26!/25! * 26!/25!}$ so it would be ${26*26 = 676}$ Query to find GUID's "not in" null containing subquery returns no results Square of a second derivative is the fourth derivative I have a simple question for you guys, if I have this:  $$\left(\frac{d^2}{{dx}^2}\right)^2$$  Is it equal to this:  $$\frac{d^4}{{dx}^4}$$  Such that if I have an arbitrary function $f(x)$ I can get:  $$\left(\frac{d^2 f(x)}{{dx}^2}\right)^2 = \frac{d^4 f(x)}{{dx}^4}$$  Sorry if it's a pretty simple question, but I was trying to simplify something like this:  $$\left(a \cdot \frac{d^2}{{dx}^2} - f(x)\right)^2 g(x)$$ that's where it came up. If a linear operator has an adjoint operator, it is bounded Solve the second order ODE $(2x^2 + 1)y'' − 4xy' + 4y = 0$ I need help solving this past exam question, the professor posted exam questions with out solutions to last year's exam, I tried reduction of order, however that seemed to complicate things. And then I tried Euler-Cauchy method however I realized that won't work due to the $(2x^2 + 1)y''$.  Given $y_1=x$ is a solution $$(2x^2 + 1)y'' − 4xy' + 4y = 0$$ Find the second solution $y_2$ for equation. Some time ago I closed my front door (rather forcefully) while the deadbolt was sticking out partially.  This loosened the deadbolt, and the top screw no longer held. In addition, it cracked the door on the interior side. I've attached a picture showing the damage.   The door works mainly, though it can be difficult to lock sometimes, especially when the weather gets colder.  I'm currently renting, and will soon be moving out of this house, once I buy a house. I would like to repair this door myself, and I'm hoping I don't have to replace the entire door.  Is this something that can be repaired? If so, how? I realize that a new deadbolt is probably needed, but how can I repair the wood damage around it? First we are told that the Galactic Empire/Federation/Powers-that-be have kept the Earth locked up for being too warlike, but now their help is needed against invaders from another galaxy.  When the aliens land the first thing they meet is a talking bunny.      at the end when humans have accepted to join the fight the alien offers to send ships to transport them. The human leader tells that there is no need...  and the Earth accelerates away.   I must have read this sometime in the mid eighties, so no later than 84 or 85, but the story may be from the sixties or before. If a function $f$ is continuous $\implies$ $|f|$ is continuous.(Answered by Myself) $(i)$ Given a function $f:E \rightarrow \mathbb{R}$ define $|f|:E \rightarrow \mathbb{R}$ by $|f|(x)=|f(x)|$ for $x \in E$ show if $f$ is continuous at $c \in E$ then so is $|f|$.        $(ii)$ Now the converse is not true, find $f$ such that $|f|$ is continuous but $f$ is not.