i have a bit of an issue. I live in a 2 story house and I'd like to run 2 ethernet cables down to the first floor from my room. The issue is that when I drilled the hole, i drilled it diagonally through the joist and it eventually punctured my family room wall. Would it be alright to drill a hole in the joist from the bottom hole that would eventually meet the puncture hole halfway and create an opening for the cables?  Or would that destroy the structural integrity of the joist?  The drawing depicts a side view of the joist and drywall. The red is the wood joist. The purple is the diagonal puncture I foolishly made. And the blue is the hole I'm thinking about making. But I need advice on if it's the best option. I don't want my room crumbling..
I just bought a new house and I'm looking to run some cables. One of the areas I would like to run it to would require drilling through a 2x10 sistered joist. Realizing that going through the joist should be a last resort, if the hole is 1/4" and in the middle of one of the joists will this weaken the integrity?  I have seen lots of articles about drilling through the depth of a joist, but very few regarding drilling vertically.
.NET offers a generic list container whose performance is almost identical (see Performance of Arrays vs. Lists question). However they are quite different in initialization.   Arrays are very easy to initialize with a default value, and by definition they already have certain size:  string[] Ar = new string[10];   Which allows one to safely assign random items, say:  Ar[5]="hello";   with list things are more tricky. I can see two ways of doing the same initialization, neither of which is what you would call elegant:  List&lt;string&gt; L = new List&lt;string&gt;(10); for (int i=0;i&lt;10;i++) L.Add(null);   or  string[] Ar = new string[10]; List&lt;string&gt; L = new List&lt;string&gt;(Ar);   What would be a cleaner way?  EDIT: The answers so far refer to capacity, which is something else than pre-populating a list. For example, on a list just created with a capacity of 10, one cannot do L[2]="somevalue"  EDIT 2: People wonder why I want to use lists this way, as it is not the way they are intended to be used. I can see two reasons:   One could quite convincingly argue that lists are the "next generation" arrays, adding flexibility with almost no penalty. Therefore one should use them by default. I'm pointing out they might not be as easy to initialize. What I'm currently writing is a base class offering default functionality as part of a bigger framework. In the default functionality I offer, the size of the List is known in advanced and therefore I could have used an array. However, I want to offer any base class the chance to dynamically extend it and therefore I opt for a list. GDAL HDF4 Driver on Linux System I'm running code that works with MODIS HDF4 datasets on a Debian Linux distribution.  I am also running this code on a Windows machine.  On both the Windows and the Linux machines, I have the most recent GDAL version (gdal 1.11.1, np19py27_1), however on the Linux machine, GDAL doesn't seem to recognize HDF4 Drivers... it won't load or process any of the HDF4 datasets that are easily processed on the Windows machine (unfortunately this machine doesn't have enough space to run the full code).  Has anyone else encountered this problem?  Do I need to install an additional module on the Linux system? This question is from PDE by Evans, 1st edition, Chapter 5, Problem 14. It has been posted  previously, however, I cannot quite put all the information together from the responses there. Hopefully you can help me now. The problem is as follows:     Let $U$ be bounded with a $C^1$ boundary. Show that a ''typical''   function $u \in L^p(U) \ (1 \leq p &lt; \infty)$ does not have a trace on   $\partial U$. More precisely, prove there does not exist a bounded   linear operator      \begin{equation} T:L^p(U) \to L^p(\partial U) \end{equation}      such that $Tu = \left. u \right|_{\partial U}$ whenever $u \in C(\overline{U}) \cap L^p(U)$.   So what we're trying to find is a bounded sequence of functions that go to infinity at the boundary, correct? Because then $Tu = \left. u \right|_{\partial U}$ is undefined.  I like the idea of using the $\mathrm{dist}(x, \partial U)$ function to do this. I was thinking about defining the function  \begin{equation} u(x) = \frac{1}{\mathrm{dist}(x,\partial U)}, \end{equation}  which must be in $L^p(U)$ since $U$ is bounded (hence integral of $\varepsilon$ over $U$ is finite, right?). But this function is not continuous at the boundary, and so $u \notin C(\overline{U})$. Can this be modified somehow?  Another option is to use that the boundary is $C^1$. So for each $x^0 \in \partial U$ there exists an $r &gt; 0$ and a $C^1$ function $\gamma : \mathbb{R}^{n-1} \to \mathbb{R}$ such that $U \cap B(x^0,r) = \{ x \in B(x^0,r) \ | \ x_n &gt; \gamma(x_1,\ldots, x_n) \}$. So around every point on the boundary we can find a ball where the n'th coordinate is greater than the $C^1$ function $\gamma$. How can we use this? Reading a Set in PostLoad on JPA/Hibernate MySQL: "UPDATE command denied to user ''@'localhost'" NOTE: Signing up or Logging in via OpenID is no longer officially supported from any of our sites. Currently,  is still on the internet, but we are in the process of completely removing it.    Stack Overflow was an early and strong supporter of . We built our sign up/log in flow around it. We were idealistic and had , but these hopes weren't realized. Over the years people have wondered if  is . We've had to remove support as OpenID providers  or .  The time has come to part ways. The reality is OpenID support has created a ton of complexity in our codebase and the number of users actively using OpenID simply don't justify that cost. Users have spoken with their actions. You prefer Google, Facebook and Stack Exchange (aka email/PW) based account auth.     Of our 9,813,747 accounts around one-tenth of a percent are actively using OpenID (defined as having visited a site in the past 12 months). If you include all the inactive accounts it is still less than 2.9% of all accounts.  So, what is the plan?   DONE - Remove the ability to create a new account with most OpenID providers DONE - Add the ability to  DONE - Convert Launchpad (used on  ) to OAuth DONE - Remove creating new accounts with Steam from  (Steam removed support for OAuth. Only 454 accounts that use Steam have visited Arqade in the past 6 months.) DONE - We will email all users that rely on deprecated OpenID credentials and request that they  DONE - Run an announcement banner for any user who signs in with deprecated OpenID credentials urging them to  DONE - End support for logging in via OpenID  In progress - Remove  (note: only 0.2% of authorized sites in the last year have been non-Stack Exchange sites.)   Obviously, if your account relies on OpenID, then make life easy and go now and .   If you've forgotten what you credentials you use to login, then  to refresh your memory. If you don't see one of the three account types shown in the image below (Google, Facebook or Stack Exchange) then click the "add more logins" button to add one of them to your account.    Remember, SE OpenID accounts are really email/pw accounts handled through complicated OpenID code path. They will be migrated to a simpler email/pw only code path as a part of this change. No extra work required on your part. How do I restore iPhone 6s stuck on connect to iTunes screen/Apple logo I'm not really sure how, but after I woke up today, my phone was just displaying the loading spinner and doesn't start up anymore. It's weird because my phone turned off last night and suspecting that it was probably out of charge, I thought charging it overnight would fix the problem.   So, my iPhone is currently stuck on the iTunes/Apple Logo loop. When I put it into DFU/Recovery Mode and connect it to iTunes, it isn't able to restore it. It keeps throwing "Network Connection Problems" -- it downloads iOS 10 for a bit and suddenly stops downloading, throwing the error. I've also tried downloading a custom .ipsw from  but it seems that the file is corrupted whenever iTunes tries to unpack it.   Any thoughts on how I could go about fixing this?   Note - I don't have a jailbroken iPhone. The product of a normal and Rademacher variables, independent from each other Let $X\sim N(0,1)$ and let $Z$ be a random variable independent of $X$ such that:  \begin{equation} \Pr(Z=z) = \begin{cases} \frac{1}{2} &amp; \mbox{if $z = -1$ or $z=1$}, \\ \\ 0 &amp; \mbox{otherwise}. \end{cases} \end{equation}   Define $Y = ZX$. Show that $Y \sim N(0,1)$. Determine $\operatorname{Cor}(X,Y)$. Are $X$ and $Y$ independent?   Progress:  I'm basically stuck at the beginning. I got as far as $P(ZX &lt; y) = P(Z &lt; y/X)$, which I'm not even sure is correct. I'm also not clear on what it means by defining $Y = ZX$ - does it mean I need to state the probability density function or something? And how do I show that $Y \sim N(0,1)$? As the title say, I want to prove that  $C_c^{\infty}(\mathbb R^n)$ is dense in $W^{k,p}(\mathbb R^n)$  i.e.  $\displaystyle{ W^{k,p} (\mathbb R^n) = W_0^{k,p}(\mathbb R^n)  \quad (\star)}$. In a book I found that in order to prove it, we need the following claim:  Claim: Let $\displaystyle{\zeta \in C^{\infty} ([0, \infty)) }$ such that $\zeta (t)  =1 $ for $ t \leq 1 $ and $\displaystyle{ \zeta (t) =0 }$ for $ t \geq 2$. For $R&gt;0$ and  $x \in \mathbb R^n$ define $\displaystyle{ \eta_R (x) = \zeta \left( \frac{|x|}{R} \right)}$. If $ \displaystyle{ u \in W^{k,p} ( \mathbb R^n) }$ with $1 \leq p &lt; \infty $ then, $\displaystyle{ \eta_R u \to u }$ in $W^{k,p}(\mathbb R^n) $ as $ R \to \infty$.  If I prove the claim then the $(\star)$ follows using mollifiers. But unfortuently I have stuck, with the proof of the claim.  Any ideas? Why is no root pass needed to access MariaDB after upgrade to Ubuntu 16.04? What are the differences between executing shell scripts using "source file.sh", "./file.sh", "sh file.sh", ". ./file.sh"? Have a look at the code:  #!/bin/bash read -p "Eneter 1 for UID and 2 for LOGNAME" choice if [ $choice -eq 1 ] then         read -p "Enter UID:  " uid         logname=`cat /etc/passwd | grep $uid | cut -f1 -d:` else         read -p "Enter Logname:  " logname fi not=`ps -au$logname | grep -c bash` echo  "The number of terminals opened by $logname are $not"   This code is used to find out the number of terminals opened by a user on the same PC. Now there are two users logged on, say x and y. I am currently logged in as y and there are 3 terminals open in user x. If I execute this code in y using different ways as mentioned above the results are :  $ ./file.sh The number of terminals opened by x are 3  $ bash file.sh The number of terminals opened by x are 5  $ sh file.sh The number of terminals opened by x are 3  $ source file.sh The number of terminals opened by x are 4  $ . ./file.sh The number of terminals opened by x are 4   Note: I passed 1 and uid 1000 to all these executables.  Now can you please explain the differences among all these? Flows/Processes, Version Control and CI I've started using Processes and Flows and am really excited about these features -- but am still wrapping my mind about how to manage them in Version Control (which I use) and Continuous Integration (which I don't yet... but am trying to work in that direction). The underlying challenge is that each time a process or flow is edited, the metadata file is renamed to reflect its update version, e.g. MyFlow-1.flow, MyFlow-2.flow, etc. The Challenge for Version Control If each version of the flow has its own file name, this makes it more complicated to track changes to flows.  It seems like there could be two strategies here:  Rename the files to remove the version number.  I'd need a script to run through my src folder pre-commit, and remove the number so that my file name is always MyFlow.flow.  This is an annoying extra step, but makes version control simpler.  On the other hand, it probably makes deployment much harder.  Track each file in version control with its original name.  We'd need to be diligent about deleting MyFlow-1 in the commit where we add MyFlow-2 so that git would recognize this as a rename/move and show helpful diffs.  Otherwise, the whole file appears to change with every change, which makes version control rather less useful.   The Challenge for Deployment/Continuous Integration From my experiments so far, once a flow has been activated in a given environment, the metadata file can't be deployed again (either it is currently active, or has been active in the past and superseded). That means that I need to prevent my previous flow versions from being included in a deployment package (either by not tracking them at all, or by using a script to delete earlier versions).  I also need some way to determine whether the current version (in my repo) should be included in the deployment payload for a given environment or not. I could imagine a script that (1) downloads flows from the target environment, and removes *.flow files from the payload if they already exist in the target environment, but that feels complicated.  And it's even harder if I've removed the version numbers from my flow files. Are you using flows in VS or CI?  How are you managing these issues? Note:  I'm not sure whether VC and CI should be one question or two - depends on how integrated the strategy for dealing with these two challenges.  If you think these should be separate questions, comment and I'll re-post. Is there an Extended Backus–Naur form (EBNF) that covers all of English? An idempotent operator is compact if and only if it is of finite rank I have End Date column and I want to add 14 Days on it auto when created, can I do it by workflow? Can I do it via jQuery. If yes how? if no how I can do it? How do you get the caret position in a &lt;textarea&gt; using JavaScript?  For example: This is| a text  This should return 7.  How would you get it to return the strings surrounding the cursor / selection?  E.g.: 'This is', '', ' a text'.  If the word “is” is highlighted, then it would return 'This ', 'is', ' a text'. Implicit Differentiation Help I have to use implicit differentiation to find $\frac{dy}{dx}$ given:  $$x^2 \cos(y) + \sin(2y) = xy$$  I don't even know where to begin, I missed the class where we went over implicit differentiation, and because of that, I am completely stuck.   Thank you everyone.  Edit: I don't know how to make the equation look all nice and whatnot, so sorry about that Simultaneous collaborative editing of a LaTeX file Will Stack Overflow's engine be (someday, or ever) open sourced? How do I make the Messages that are sent to me stop going to my Mac?