I would like to know if C# has a way of defining strongly-typed nested jagged arrays without using object[].   Something like:   var nested = new {1, 2, {3, {4, 5}, 6}, 7};   I would like to have a nested array of int.  Consider this array below: [[1, 2, [3]], 4, [5], [[[6]]]]  This is how I've done it:  var myNestedJagged = new object[] {     new object[]     {         1, 2, new object[] {3}     },     4,     new object[] {5},     new object[] {new object[] {new object[] {6}}} };
I was looking for a tree or graph data structure in C# but I guess there isn't one provided.  explains a bit about why.  Is there a convenient library which is commonly used to provide this functionality?  Perhaps through a strategy pattern to solve the issues presented in the article.  I feel a bit silly implementing my own tree, just as I would implementing my own ArrayList.     I just want a generic tree which can be unbalanced.  Think of a directory tree.  C5 looks nifty, but their tree structures seem to be implemented as balanced red-black trees better suited to search than representing a hierarchy of nodes.
Converting mxd to earlier version using ArcPy? How does Cypher exit/enter the Matrix without an operator? In The Matrix, Cypher enters the Matrix to speak with the Agents, then leaves again. We never see if he has an operator, and as he kills Tank and Dozer you might assume he doesn't have one.  If he didn't have an operator how does he jack in/out of the Matrix? How do you find the directory of a command? I am trying to invite my son (IOS Pocket Edition) to my realms server (mac osx).   I keep getting the response "Could Not Invite The Provided Name" when I try to invite him. His name is all regular characters with no spaces . . . just letters and numbers.  Are the two game types incompatible, and if they are Is it possible to create the same type of 24/7 available server that is only open to him and other invitees like the OSX realms?   Thanks in advance for any clarification. Determinant of a rank $1$ update of a scalar matrix, or characteristic polynomial of a rank $1$ matrix I’m currently working on a solar powered boat with a modest sized team of people. For our competition we are only allowed to have 3 12v batteries on board but we are allowed to have up to 52v at any point in our setup. We are hoping to kick up the speed of our outboard motor for the sprint portion of the completion and are looking into using a boost converter for this.   After doing a little research I’m a bit confused about how they fundamentally work. From what I can tell they take in a voltage and current and put out a higher voltage with a lower current with some level of efficiency. But it seems to be independent from the load( in this case the motor) which doesn’t make much sense to me because I thought the current would be determined by whatever my load is. How do loads actually interact with boost converters?( The simpler the better.)  For reference we are using the Saietta 119r motor system and I’m considering using the MPS MPQ3425 boost converter. No custom off topic message when flagging on SO I have less than 3000 rep on StackOverflow. Now that the new closing changes are live, I cannot supply a custom off topic message:    I can enter a custom off topic flag message without issue here on meta, though it only has three canned off topic reasons, rather than five.  I'm not sure if this is the same for users with enough rep to vote to close directly, but the lack of a custom message eliminates the ability to use the correct flag reason in some cases.  For example, I wanted to flag , which is simply off topic on SO. However, I can't use a custom message, and none of the canned ones are appropriate.    appears to be the most up to date official information on custom reasons, and indicates that they are remaining in play for now.  supports that.  If this is by design, how should I flag such questions? This is not a case worth bothering the mods over, so I don't want to use a custom diamond attention flag. What can I do to give the players the same feel their characters would have about wilderness travel? I find that in a lot of our group's games, traveling long distances through wilderness is too easy.  In real life, it's quite arduous traveling overland.  No one who's just walked a hundred miles is eager to repeat the trip.  But here's the problem -- for the players, it's trivial to travel a long way.  You just say "then we walk over the Groblick Hills to Dorridge", and you get there.  The players find it easy, but there's no way the characters would be eager to set out on a long stretch across the wilderness.  What can I do to give the players the same feel their characters would have about wilderness travel?  One thing I'd like to avoid (if possible) is to just make it perilous by throwing in a bunch of fantasy monster encounters.  Imagine some hobbits off in Gondor -- sure, they'd love to go home to the Shire, but it's mighty tempting to stay an extra day in the inn before setting off on the journey. I'm trying to display models that have shading drawn or baked directly on the textures, but I can't figure out how to disable Blender's default scene lighting. If there are no lights in the scene, everything is black, but I want to see the textured objects fully bright. How do I disable the lighting?  NOTE: Just before posting this, I found the "Shadeless" material property, which does more or less what I want. However, is there a way to globally toggle the default lighting? The following code  number=1 if [[ $number =~ [0-9] ]] then   echo matched fi   works. If I try to use quotes in the regex, however, it stops:  number=1 if [[ $number =~ "[0-9]" ]] then   echo matched fi   I tried "\[0-9\]", too. What am I missing?  Funnily enough,  suggests this should work.  Bash version 3.2.39. How to simulate a rope? I'm trying to simulate a rope (that later might get pulled on the ends*) that interacts with some obstacles. So far I created a plane as the floor and a cube as an obstacle, and activated "collision" in the physics menu for both of them.   *(In the end the goal is simulating a .)  For modelling the rope, I tried using a long cylinder with enough subdivisions, and activate "cloth" in the physics menu. This resulted in the cylinder collapsing like a sleeve of a sweater, but I would like the cross section to remain roughly circular. Is there a way to directly avoid this?   Another approach I tried now was just using a a line made up of vertices and edges (with the idea of later adding modifiers to give it a thickness), but this just fell through all the collision objects as it has no faces. Is there good way to do this? Why draw blood from veins rather than arteries? Why draw blood from veins rather than arteries? Is it more convenient or safer? Random number generation and probability Initializing C# auto-properties How can I balance uniformity of style files against modularity? I'm using Windows/TeXworks/MiKTeX, and I would like to have one style file I can use anywhere in any document in my top-level folder. If I want to add a new command or renew an old one, I'd like that to be available in all documents recursively contained in my top-level folder. I have a very hierarchical structure to my top-level folder. So this would seem to point to having a single file that TeXworks knows about. Could I add a path in Preferences -> Typesetting -> Paths for TeX and related programs? I've tried that, possibly superficially, without any success. Adding the correct folder to the Windows PATH variable doesn't seem to do the trick, either.   On the other hand, suppose I want to send someone a TeX file? It would be nice in such circumstances to be able to have the style file in the same folder as the TeX file. If I do that, how could I ensure that it's always up-to-date? Is there a script available somewhere that could take my master style file and push it down to all pre-existing lower-level locations?   Just to reiterate: I want uniformity of my style files in my very hierarchical folder structure. However, I would also like modularity, in that each folder is self-contained. How can I achieve that?  Also, out of curiosity, since I may acquire a Linux computer soon, how would I do this in, say, *ubuntu with TeXlive? a) Let $a&gt;0$ and the sequence $x_n$ fulfills $x_1&gt;0$ and $x_{n+1}=\frac{1}{2}(x_n + \frac{a}{x_n})$ for $n \in \mathbb N$. Show that $x_n \rightarrow \sqrt a$ when $n\rightarrow \infty$. I have done it in two ways, but I guess I'm not allowed to use the first one and the second one is incomplete. Can someone please help me?  We already know $x_n \rightarrow \sqrt a$, so we do another step of the iteration and see that $x_{n+1} = \sqrt a$.  Using limit, $x_n \rightarrow x, x_{n+1} \rightarrow x$ (this is the part I think it's incomplete, don't I have to show $x_{n+1} \rightarrow x$, how?), we have that   $$x = \frac x 2 (1 + \frac a {x^2}) \Rightarrow 1 = a/x^2 \Rightarrow x = \sqrt a$$ b) Let the sequence $x_n$ be defined as $x_{n+1}= 1 + \frac 1 {x_n} (n \in \mathbb N), x_1=1$. Show that it converges and calculate its limit. &quot;Tip: Show that sequences $x_{2n}$ and $x_{2n+1}$ monotone convergent to the limit.&quot; I didn't understand the tip, how can this help me? Does it make a difference if the number is odd or even? Thanks in advance! Attribution alignment and order should be consistent with the website Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example:  int[] terms;  for(int runs = 0; runs &lt; 400; runs++) {     terms[] = runs; }   For those who have used PHP, here's what I'm trying to do in C#:  $arr = array(); for ($i = 0; $i &lt; 10; $i++) {     $arr[] = $i; } resizable serial console window? When using the serial console of my system I always end up with $COLUMNS=80 and $LINES=24.  While I can change these variables manually it is somewhat annoying to do this any time when the client side terminal window has been resized.  Usually I'm connecting to the console using screen /dev/mytty baudrate.  Changing the $TERM environment variable to "screen" or "xterm" does not help.  Will I need to call getty with some of those instead of vt100?  Needless to say that all of this works fine, when I connect to the same machine using ssh. I found several plugins (like  and ) to get the ability to attach a picture to a WP user. But these plugins are not maintained any more.  Since there's apparently no plugin that does it today, is there an easy way to do it manually?