Windows 10 pro, version 1903  When viewing files in folder with raw images, I can only see the hour and minutes.  Is there any way to display also the seconds in the date taken?  thanks

This is primarily for Windows 7, but I work in multiple versions and would happy to be able to do it in as many of them as possible.  Currently, when I open Explorer and look at a list of files, the date modified column shows something like:  09/18/2013 10:03  I would like it to display:  09/18/2013 10:03:42  I've tried changing the region and language settings for the short time format from HH:mm to HH:mm:ss, but it says it ignores seconds for that.  Does that mean I'm just out of luck?  And again, I'd like to be able to do this in any other  previous versions of Windows too.  It's useful for me as a developer to be able to see the seconds in a lot of situations.  Minor clarification: I did find , which helped me to improve the file properties display, but I wanted to be able to view the full timestamp for all the files in a folder at once, instead of individually.


Background: I have been DM'ing a table for close to a year where we play around 3 times a month. The majority of my players are new to role-playing games and DnD 5th edition. All of them came to me and asked if I would teach them the game and DM for the table. We first played a level 1-5 campaign where we fought basic enemies, did light dungeon exploring, and interacted with NPCs. At first, they were really engaged and excited about learning their character abilities and the rules of the game. They really wanted to level up fast so they could get more powerful, but I wanted to make sure they could grasp their characters at the current level before adding more complexity too fast. We later changed settings of the campaign and they continued to level their characters, eventually ending at level 9. After a few months, it seemed that all of my players started to forget even the basics of combat and skill checks. Though they still seemed really engaged in the story, they seemed to lose interest in the mechanics of the game. Combat started to take longer, because I'd have to stop and explain their skills and abilities, which in turn makes other less engaged - compounding the problem. When I DM, we typically play theater of the mind, but I bring out a map and miniatures for combats to help players see how many enemies are in play and where everyone is. I find this helps people stay engaged. I really don't use any homebrew rules, though I do sometimes handwave some of the more annoying rules (distance, changing weapons) to keep combat flowing. (e.g. "Am I close enough to attack?" "Sure, you can reach that enemy"). We also have access to all the books on DnDBeyond by sharing with a subscription so access to the rules isn't an issue. What I tried:  When we created characters, I sat down with each of the new players and we talked through each of their classes features, what their 'bread-and-butter' turn in combat should look like and how they can combine their abilities to make some strong plays. I helped my players create cheat-sheets that had their go-to abilities, attacks, and spells to help remind them of what their class and characters are best at doing. I frequently reminded players before our sessions to review their spells and features so they understood them. I would do some post-combat analysis with players that took relatively inefficient turns and suggested ways they could have played that turn differently. If players attempted to take extra actions, or do things against the rules, I would give them simple reminders like, "Remember, you get to take one action, one bonus action, and you get to move" When my players are confused about a rule, I explain it to them, and they seem to understand just fine for the rest of the session. Though, they often forget between sessions and I need to re-explain it the next week  Things even as simple as skill checks will have the players asking, "Wait, how do I do that again?". At this point, I'm getting tired of having to keep track of all of my monsters turns and abilities as well as the players. It's really just too draining to juggle the mechanics for everyone and tell an engaging story. I'm really considering that TTRPGs just aren't the game for these players. How can I better encourage my players to learn the rules and their character's abilities?

Everyone in this story works mostly together. Some work friends and my wife were talking about playing D&D, and I was appointed the DM. I've played the game once 20 years ago, so I've spent the past few months buying the resources and learning as much as I can about the game so I can make it as enjoyable for then as possible, we are yet to have our first session.  But to make it easier so I don't have to teach them literally everything I asked them to read the Basic Rules so they have some idea of what they are in for and the expectations of them and me are.  But they came back with "its too hard to read it, I learn by doing, that's what we have you for".  I'm super pissed by this, I've spent so much time and effort learning this game and they can't be bothered to put any effort in.  My question is should I let them know how much it's annoyed me, and reiterate they need to know stuff, or just ignore it and carry on?


I have a few questions about military hardware, military regulations, and military policies. Is there a site where I can ask such questions?

I have an idea or subject that should have a Q&A, and want to propose a new site. How can I do this?  Related:


If I remember correctly in PoA during the scenes at the Shrieking Shack, Wormtail was able to escape but to transform into his Animagus form he needed a wand.  However, we never see another wizard (McGonagall/Sirius) need to do this.   When is a wand needed for Animagus transformations?  Update due to answers and comments:  In the film he shown to touch his wand to his head.

I have 3 questions about animagus transformation and wands      Does animagus transformation require the use of a wand?   If yes, where does the wand go after the wizard transforms?   Again, if 1 is yes, how did Sirius transform into a dog in Azkaban?     Note that 2 and 3 are invalidated if the answer to 1 is no. If so, is it mentioned anywhere in the books, or can be implied by something in the books, that wand use is not required? I don't think Sirius managing to do it in Azkaban can be used as a proof here, as in Book 3 Wormtail needs a wand to change back into a rat


I got an initial mean $\mu_1$ and std $\sigma_1$ by sampling samples, these samples are generated by an unknown distribution and later I drop these samples. Then I sampled some samples and got the mean $\mu_2$ and std $\sigma_2$ from the new sample and I kept the new samples. So how can I get the new std?   My idea is $(\sigma_1+\sigma_2)/2$ but I think this result is biased.   Another idea is $\mu_3=(\mu_1+\mu_2)/2$, and I reconstruct the previous samples by making an array with all items are $\mu_1$. Then combine the previous samples with the new samples and use the $\mu_3$ to get the $\sigma_3$.  Update: I clarify my question  I want to estimate mean and variance from unknow sample, due to memory cost, I can sample the data and get the mean and variance and then drop these samples, and then I sample data from the distribution and compute the mean and variance of the new samples, before dropping the new sample, I want to estimate the mean and variance of the distribution based on the current mean and variance and that of the previous step.

Suppose I have 2 sets:  Set A: number of items $n= 10$, $\mu = 2.4$ , $\sigma = 0.8$  Set B: number of items $n= 5$, $\mu = 2$, $\sigma = 1.2$  I can find the combined mean ($\mu$) easily, but how am I supposed to find the combined standard deviation?


I want to know if there is a proof for double tension to be present in the string for 6kg mass. Like some mathematical proof , not just saying.

I'm going to provide my argument for why I think the tension in a rope should be twice the force exerted on either side of it.  First, let's consider a different example. Say, there is a person named A and a block in space. A pushes on the block with a force of 100 N. Then, the block will also push A with a force of 100 N by Newton's third law. Now, consider the case where instead of the block, there is a person B who is also pushing on A with a force of 100 N while A is pushing on him. A will experience a force of 100 N because he pushed on B, AND another 100 N because he is being pushed by B. Hence he will experience a force of 200 N. Similarly, B also experiences 200 N of force.  Now, back to the original problem. There are two people A and B in space with a taut rope (no tension currently) in between them. If only A is pulling and B is not, then I agree that the tension is equal to the force A exerts. This situation (in my opinion) becomes analogous to the above if B is also pulling. So, say both of them pull from either side with a force of 100 N. Then the rope at the end of B will pull B with a force of 100 N (this pull is caused by A). By Newton's third law, the rope will experience a pull of 100 N. But B is also pulling his end of the rope with 100 N. Therefore, the tension should be 200 N. Similarly, the end of the rope at A must pull A with 100 N of force (because B is pulling from the other side) and hence experience a force of 100 N itself by Newton's third law plus another 100 N because A is pulling on the rope.  Apparently, the answer is not this (according to my searching on the web). So, could anyone tell me why this reasoning is wrong? Thanks.  EDIT : So apparently people don't agree with my first example, leave alone the second. This is to the downvoters and the upvoters of the highest-rated answer: You all agree that if only A pushes B with a force of 100 N, then A and B both will get pushed by a force of 100 N in opposite directions, right? Then, in the case where B is also pushing with a force of 100 N, it doesn't make sense that the answer would be exactly the same. It doesn't seem right that no matter what B does, B and A will always experience the same force as they would have if B hadn't applied any force.  EDIT 2 : I'm going to provide here a link to a question that I posted:  According to the answer and the comments there, the reason as to why my first example is incorrect is different to the one provided here. So maybe you should all read the answer and the comments provided by the person and reconsider what you think.


I'm a long-time Drupal 7developer, and tried a Drupal 8 install yesterday for evaluation. I installed a bunch of contrib modules. All seems ok, but when I go to the home page, I'm presented with a login screen. I want anonymous users to be able to see the site, how can I allow this? I don't see any settings to force login, and am not using the shield module.

I just installed the Paragraphs module along with all of the other accompanying modules including the demo module. The demo module created the demo page successfully but it also decided to change my site's default front page to the demo page.   When I changed the front page field back to the default null text, anonymous users now see nothing but this login form instead of my former front page. Registered users are sent to their user page, e.g. .  Before installing the demo, my front page showed any articles that were promoted to the front page and had no login screen. Could this be a permissions issue? What might have happened and how can I restore the main page?


Given this string some noise //some more noise Cherry {  something 0  blah 1000  something 120  super { something else }  super { again } } Peach {  apple 1  caramel salted } Banana {  yellow 12  super { very yellow }  super { delicious } } Apple {  red 12 }  How would I capture each fruit AND within a fruit, if a 'super' line is present, group content of their curly braces . I'm not far using this : ^\S\w+\s\{([^}]+)\}  But if you look at the picture below, it is currently stopping at the first '}' instead of grouping the content between curly braces of the 'super' lines  I hope that makes sense . Thank you

I need a regular expression to select all the text between two outer brackets.  Example: some text(text here(possible text)text(possible text(more text)))end text  Result: (text here(possible text)text(possible text(more text)))


I'm making a tic-tac-toe game and wanted to make a grid, but when i try to change one value in one nested list then it mirrors to the other nested list.  I made what i think two identical lists and one works and the other doesn't, but when i print them, they are identical.  pole = '| |' table = [[pole] * 3] * 3 table_1 = [[pole] * 3, [pole] * 3, [pole] * 3]  print(table) print(table_1)  for row in table:     print(''.join(row)) for row in table_1:     print(''.join(row))  row = int(input('Row: ')) column = int(input('Column: '))  table[row][column] = '|x|' table_1[row][column] = '|x|'   Can someone tell me whats the difference and why that happens?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I'm working on having all the configuration of a project managed by Maven instead of eclipse and I got stuck when I tried to change the Source from there.  This is what I have:    And this is what I want:    How can I modify this using maven?  Thanks

I've inherited a web project (Servlets) which is currently build inside eclipse.  I want to add maven around it. But the project's source directory is not following the maven convention. Instead of being inside src/main/java, it's src/package/name/...  I don't want to change anything right now because they are working at full speed towards a milestone. Can I configure maven to accept src/ as the java source directory ? Thanks


I have a server that hosts a SQL Server 2017 Entreprise Edition database. I changed domain on the server (e.g. attds.mg in fdsqq.mg). The problem is that I can't connect my application to the database. The account I used as a SA administrator for SQL Server does not even work. I checked the SQL Server Configuration Manager, all services were stopped. So I can't connect to my DB. Would someone have a solution to reactivate the services? How could I connect to the database?

What are best practices/important steps when the Windows Server machine hosting SQL Server 2008 R2 is moved to another domain?   What steps definitely/might need to be done for SQL Server before and after the new domain is joined?


I also saw that every point in the universe is the center. So what does it mean that the universe is expanding? It depends on the repository?

I have looked at other questions on this site (e.g. "why does space expansion affect matter") but can't find the answer I am looking for.  So here is my question: One often hears talk of space expanding when we talk about the speed of galaxies relative to ours. Why, if space is expanding, does matter not also expand? If a circle is drawn on balloon (2d plane), and the balloon expands, then the circle also expands. If matter is an object with 3 spatial dimensions, then when those 3 dimensions expand, so should the object.  If that was the case, we wouldn't see the universe as expanding at all, because we would be expanding (spatially) with it.  I have a few potential answers for this, which raise their own problems:   Fundamental particles are 'point sized' objects. They cannot expand because they do not have spatial dimension to begin with. The problem with this is that while the particles would not expand, the space between them would, leading to a point where the 3 non-gravity forces would no longer hold matter together due to distance Fundamental particles are curled up in additional dimensions a la string theory. These dimensions are not expanding. Same problems as 1, with the added problem of being a bit unsatisfying. The answer seems to be (from Marek in the previous question) that the gravitational force is so much weaker than the other forces that large (macro) objects move apart, but small (micro) objects stay together. However, this simple explanation seems to imply that expansion of space is a 'force' that can be overcome by a greater one. That doesn't sound right to me.


I tried to use Python re package to find pattern containing "&" character but failed. I googled about whether "&" is a metacharacter. It seemed that it isn't. Here is my code :  import re if re.match("&a", "adfefwfeadf&adfewf"):     print("find1 '&'") if re.match(r"&a", "adfefwfeadf&adfewf"):     print("find2 '&'") if re.match(r"\&a", "adfefwfeadf&adfewf"):     print("find3 '&'")   Nothing is printed.

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


I've been having this issue with Minecraft. Every time I try to launch it, the game sends me this error message:     Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/client/main/Main : Unsupported major.minor version 52.0       at java.lang.ClassLoader.defineClass1(Native Method)       at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)       at java.lang.ClassLoader.defineClass(ClassLoader.java:621)       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)       at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)       at java.net.URLClassLoader.access$000(URLClassLoader.java:58)       at java.net.URLClassLoader$1.run(URLClassLoader.java:197)       at java.security.AccessController.doPrivileged(Native Method)       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)       at java.lang.ClassLoader.loadClass(ClassLoader.java:247)   I noticed the "unsupported" message in the first line and tried updating my system as well as installing the new Minecraft launcher. The new launcher just doesn't start up at all, so there's no way for me to start Minecraft.  If anyone needs to know, I am running Mac OS X 10.8.  Thanks a lot to anyone who can help me with this!

I am trying to download Minecraft 1.12 but as soon as it starts up and the launcher disappears, it crashes. I tried with a few other snapshots for 1.12 as well. Here is the crash report:  Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/client/main/Main : Unsupported major.minor version 52.0     at java.lang.ClassLoader.defineClass1(Native Method)     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


When I type on Notes.app, it is useful to have clickable email links as follows:    Whenever I click this link, it wants to take me to Mail.app, I don’t have it installed so it shows this message:    I want to use Gmail.app to open these email links, is it possible to change the default app to Gmail?

I want to be able to one-click email links from apps such as Twitter, Safari and Instapaper. Is this possible if I'm using Gmail and not Apple's Mail app?  Do I have to set Gmail as the default mail client? Is this possible?


Here I am not looking for an explanation that uses basic properties that complex exponential function has, such as $e^{z+w}=e^ze^w$ or $e^0=1$ or any other, if this fact can be explained by using those basic properties.  I am seeking for some explanation that has to do with the positions and number of the roots of the truncated exponential function and suppose that we only know how Taylor series for $e^z$ looks like, so in fact I seek for an explanation in which we do not know that complex exponential function has the basic properties it has.  Suppose that we truncate complex exponential function and define a function $e_{k}{(z)}=\sum_{i=0}^{k} \dfrac {z^i}{i!}$.  Because of the fundamental theorem of algebra we have that $e_{k}{(z)}$ has $k$ complex roots so bigger the $k$ the more roots we have.  But when we pass to the limit $\lim_{k\to\infty} e_{k}{(z)}=e^{z}$ somehow all the roots "disappear", and instead of maybe expected an infinite number of roots we have none.     How to explain this?

We know that for every polynomial of $n$.order Fundamental Theorem of Algebra guarantees $n$ complex roots.  Lets consider the complex exponential function $f(z)=\exp(z)$. As $f(z)$ is holomorphic, we are allowed to evaluate the power sum of $f(z)$.  $$f(z)=1+z+\frac{z^2}{2!}+\frac{z^3}{3!}+\cdots$$   We also know that   $$f(z)=\exp(z)=\exp(x+iy)=\exp(x)\exp(iy)=\exp(x)\cdot(\cos(y)+i\sin(y))$$  A zero of this expression would only be possible if $\exp(x)$ or $\cos(y)+i\sin(y)$ or both would vanish. But $\exp(x)>0$ and $|\cos(y)+i\sin(y)|=1$, hence $\exp(z)$ doesn't vanish. As the exponential is fully defined by the powersum with infinite radius of convergence, we can conclude that the powersum, despite of beeing of "polynomial like type" does not have any zeros.  I would be glad if someone could give me an intuitive explanation why the fundamental theorem of algebra is only true for finite polynomials.


I am writing my M.Sc. thesis in biochemistry, which has mathematics. I am new to latex, but I am greatly interested in it. I am watching/reading tutorials but was wondering if the community could recommend a good set of video lectures/pdf to write a document such as a thesis?  Thank you very much for your time!

Which book (free or otherwise) was the most useful to you when you started learning LaTeX?  I am frequently asked this question by friends who want to learn LaTeX, and I recommend the book which got me started, , but I feel that there might be better options around.  Also see .


I already know the difference between "stop doing something" and "stop to do something".  I really don't know what is the difference between "like doing something" and "like to do something".  And is it "gerund" or "present participle"?    This is not a duplicate question. That answer doesn't fit (in my opinion) to this question. Actually, I want to know the difference between saying, for example: "I like to drink soda" and "I like drinking soda", and which is the correct if there is a correct construction.

Are both try to save the file and try saving the file grammatically correct? If so, is there any difference in meaning?


A formula is valid if it is true for all values of its terms. Satisfiability refers to the existence of a combination of values to make the expression true. So in short, a proposition is satisfiable if there is at least one true result in its truth table, valid if all values it returns in the truth table are true.      Even given these definitions it is still not clear to me what sentences are valid or not.    What are some examples of sentences that are valid or (un)satisfiable?

As the title says, What is the difference between validity and satisfiability? Suppose I have a sentence If the sun is made of blue cheese, then cats fly. How do I tell if its valid or satisfiable?


I've heard a lot about websites saved thanks to Google's cached copies of them. Where can I access these cached copies?

I have a URL  which seems broken. I want to view its cached version if cached by Google/any other web caching site.   In Google advanced search is there any special keyword/search directive that I can use to find the cached version of this site. Is there any other site which caches web pages and displays back dated versions of them.


Can't understand what the problem is, the number of whit

I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit?


When wizards are dueling, if they both know how to cast the Killing Curse, then what is the meaning of one being more powerful than the other?  Specifically, we are repeatedly told how powerful Voldemort is. What exactly does this mean? Except for his Horcruxes, he should be no more advantaged in a duel.  PS: This question is not a duplicate. Its essence is that being able to cast a killing curse is the epitome of magical power in duels, and so Voldemort should not have become anybody special.

We know that Avada Kedavra is "unblockable"  Why doesn't everyone use Avada Kedavra then, Molly Weasley vs. Bellatrix for example?   Why didn't they both just cast Avada Kedavra to finish the duel instantly?


Working through a combinations problem and attempting to output a list with a list of lists as input.  Closest solution that I've found is here:    However, I do not want all combinations between lists, but within each list.  For example  [[1],[2,3],[4,5,6]] -> [[1],[2],[3],[2,3],[4],[5],[6],[4,5],[4,6],             [5,6],[4,5,6]]

I am writing a program in Python, and I realized that a problem I need to solve requires me, given a set S with n elements (|S|=n), to test a function on all possible subsets of a certain order m (i.e. with m number of elements). To use the answer to produce a partial solution, and then try again with the next order m=m+1, until m=n.  I am on my way to write a solution of the form:  def findsubsets(S, m):     subsets = set([])     ...     return subsets   But knowing Python I expected a solution to be already there.  What is the best way to accomplish this?


I am running a LAMP Application installed on one server, happily serving about 1M PI per month. Now I am looking into a potential partnership where my app might serve around 50-80M requests per month.   This is how my architecture looks like:   So images are served from static.domain.com while the application is served by www.domain.com. The API where 90% of the traffic comes from is under a seperate https domain api.domain.com but queries the mysql and solr stack.  Would one root server with 128GB RAM and SSDs in SW-Raid 1 with an Intel® Xeon® E5-1650 v3 Hexa-Core Haswell be able to handle that load? Most request will go against solr and deliver just a json feed, potentially not hitting the "disc".   Is this overkill with 128GB of RAM or will one server not even be able to handel that load? I could also go with 2 servers and load balance. Question is how within this architecture.  Thank you for any hint on this.

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


Let $A$ a semilocal ring and $M_1,M_2,\dots,M_n$ are all of its maximal ideals then the Jacobson radical $rad(A) =M_1M_2\cdots M_n = M_1\cap M_2\cap \cdots \cap M_n$  I tried to use the Chinese Remainder Theorem, How can I solve this?  Thanks for your time and help.

Let $R$ be a commutative ring with $1$ and $M_1,...,M_n$ be distinct maximal ideals in $R$. What I want to show is $M_1\cap\cdots \cap M_n=M_1\cdots M_n$. If I can show that $M_1\cdots M_n$ is radical, then the proof ends since $M_1\cap\cdots\cap M_n=rad(M_1\cdots M_n)$. How can I prove this?


I'm interested in running Skype on a sandbox. I don't want to use a virtual-machine however, since it's overkill just for a program.  I don't need Skype's video or voice capabilities to work, chat only is ok.  So ya, how do I run Skype in a sandbox?

I want to run small untrusted programs, but restrict them from accessing any files outside of their folder, network access, and everything else that they don't really need. What is the simplest way to achieve this?


My code stops automatically and I am not getting the cause behind it. So I need to add the log file in order to capture the exception message and save it in text document format in my machine.  public void objInsurityTimer_Elapsed(object sender, ElapsedEventArgs e)     {         try         {             if (IsTimeActive())             {                 clsTextComparison clsCallTextComaprison = new clsTextComparison();                 clsCallTextComaprison.GetActivityLog();              }             clsInsurityWorkFlow.GetInstance().ProcessXML();             clsInsurityWorkFlow.DestroyInstance();         }         catch (Exception )         {          }   Please let me know what to write in the Catch part in order to get the log file in text format and it to save it in my machine folder.

In java world you have log4j and a a pretty decent logging framework, is there anything like that for C#/.NET?


Questions all around the network do not get Related Questions anymore, for several hours.  Examples from around the network:        This is not a duplicate of  since that explains the normal caching that causes them to not initially show up until a few minutes (or at most an hour) later; these examples are all a few hours old and the related questions still haven't shown up, so it's clearly a bug.  Can this please be fixed?

I've been noticing quite often lately that the list of Related questions to the right of the screen doesn't always show up, or it takes a while (say, fifteen minutes or more) to do so.  that (at the moment) has no Related list showing up for me, even though the question is over 5 hours old.  Is the appearance of the Related list a function of the posts views? Or could it be that questions which are not adequately tagged (like the example above with only a [matlab] tag) are hard to create a Related list for?  EDIT:  ...and now a Related list just appeared for the sample question I linked to above. I feel a potential [status-norepro] in my future. But it wasn't there before, I swear! The one-armed man must have done it!


Can anyone suss out the interpretation of beta here:  D.log(gdp) = alpha + beta(log(military expenditure %)   Where D.log(gdp) = growth of GDP (first difference of log(GDP)   Would it be:  A 1% point increase in military expenditure is associated with a beta% point change in the growth of GDP?   OR  A 1% increase in military expenditure is associated with a beta % change in the growth of GDP?  OR neither?  N.B. Also what implication does the underlying variable military expenditure have being a %, wouldn't that make the interpretation a percentage point?   Thanks  Labib

I'm wondering if it makes a difference in interpretation whether only the dependent, both the dependent and independent, or only the independent variables are log transformed.  Consider the case of  log(DV) = Intercept + B1*IV + Error    I can interpret the IV as the percent increase but how does this change when I have   log(DV) = Intercept + B1*log(IV) + Error   or when I have   DV = Intercept + B1*log(IV) + Error   ?


I have created two probit models with a sample size of 10000 in both. However, when I print the summary of these models, the standard error seems extremely high, 6.29e. What could be the reason for this, and does this mean the coefficient of that independent variable is also wrong. Here are the summary tables. PS: I only used these two independent variables because I am testing the effect of these variables. ============================================================================== Dep. Variable:                      y   No. Observations:                 9413 Model:                         Probit   Df Residuals:                     9412 Method:                           MLE   Df Model:                            0 Date:                Sat, 30 Jan 2021   Pseudo R-squ.:                 0.04258 Time:                        10:41:23   Log-Likelihood:                -6067.9 converged:                       True   LL-Null:                       -6337.8 Covariance Type:            nonrobust   LLR p-value:                       nan ==============================================================================                  coef    std err          z      P>|z|      [0.025      0.975] ------------------------------------------------------------------------------ x1             0.0018   6.27e-05     28.368      0.000       0.002       0.002 ==============================================================================```  ```                          Probit Regression Results                            ============================================================================== Dep. Variable:                      y   No. Observations:                 9888 Model:                         Probit   Df Residuals:                     9887 Method:                           MLE   Df Model:                            0 Date:                Sat, 30 Jan 2021   Pseudo R-squ.:                 0.03962 Time:                        13:33:44   Log-Likelihood:                -6225.9 converged:                       True   LL-Null:                       -6482.7 Covariance Type:            nonrobust   LLR p-value:                       nan ==============================================================================                  coef    std err          z      P>|z|      [0.025      0.975] ------------------------------------------------------------------------------ x1             0.0020   6.18e-05     32.747      0.000       0.002       0.002 ==============================================================================


I tried to install Open JRE 8 following  but it gives an error. This is what happens when I do it.  # apt-get install openjdk-8-jre   Reading package lists... Done   Building dependency tree   Reading state information... Done   openjdk-8-jre is already the newest version (8u151-b12-0ubuntu0.16.04.2).   0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   1 not fully installed or removed.   After this operation, 0 B of additional disk space will be used.   Do you want to continue? [Y/n] y   Setting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ...   Downloading Oracle Java 7...   --2018-02-10 02:37:00--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz   Resolving download.oracle.com (download.oracle.com)... 23.45.100.92   Connecting to download.oracle.com (download.oracle.com)|23.45.100.92|:80... connected.   HTTP request sent, awaiting response... 302 Moved Temporarily   Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz [following]   --2018-02-10 02:37:00--  https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz   Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.109.81.24, 2a02:26f0:10:290::2d3e, 2a02:26f0:10:294::2d3e   Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.109.81.24|:443... connected.   HTTP request sent, awaiting response... 302 Moved Temporarily   Location: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1518226740_e8a44114a192afe1bcec53b144358538 [following]   --2018-02-10 02:37:00--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1518226740_e8a44114a192afe1bcec53b144358538   Connecting to download.oracle.com (download.oracle.com)|23.45.100.92|:80... connected.   HTTP request sent, awaiting response... 404 Not Found   2018-02-10 02:37:02 ERROR 404: Not Found.   download failed   Oracle JDK 7 is NOT installed.   dpkg: error processing package oracle-java7-installer (--configure):    subprocess installed post-installation script returned error exit status 1   Errors were encountered while processing:    oracle-java7-installer   E: Sub-process /usr/bin/dpkg returned an error code (1)

I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions.   I also want to switch between Java 7 and 8 to update a project I am working on. I am a new Ubuntu user, so be very specific.  added: 12/31/2017  gero@4790k:~$  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.3 LTS Release:        16.04 Codename:       xenial   When I try to use:  gero@4790k:~$ sudo apt-get install openjdk-7-jdk Reading package lists... Done Building dependency tree Reading state information... Done Package openjdk-7-jdk is a virtual package provided by:   oracle-java9-installer 9.0.1-1~webupd8~0   oracle-java8-installer 8u151-1~webupd8~0   oracle-java7-installer 7u80+7u60arm-0~webupd8~1 You should explicitly select one to install.  E: Package 'openjdk-7-jdk' has no installation candidate   I don't even know how to select the the java installer 7u80.  Or if you can tell me how to install jdk-7u80-linux-x64.tar.gz or jdk-7u80-linux-x64.rpm .


For any $v \in \Bbb{R}^n$, $$ A = vv^T+\lambda I$$ show A is symmetric and A has eigenvalue $\lambda$ and $||v||^2 + \lambda$ I was also given the hint to consider eigenvectors $v$ and $w$ where $w \in span(v)^\bot$ Not sure where to start, any help is appreciated

This question aims to create an ""  of numerous questions that ask about determinants of specific matrices (I may have missed a few):              The general question of this type is  Let $A$ be a square matrix of rank$~1$, let $I$ the identity matrix of the same size, and $\lambda$ a scalar. What is the determinant of $A+\lambda I$?  A clearly very closely related question is  What is the characteristic polynomial of a matrix $A$ of rank$~1$?


How does the code  work with Ctrl + K? I am new to Stack Overflow.   I can't get it with Ctrl + K. I  press space button for 4 times in each line I post.

How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .


For example when i run gui text editor and input simple text. Is this the way to have the hardware done this; gui text editor > shell > kernel? The main question I want to ask is when we perform any operation on the system, this process  always transferred over the shell to the kernel ? What confused me was the diagram below.  According to this diagram, whether the user uses a shell directly or runs any tool, all processes always seem to transfer over the shell to the kernel. Or is the shell just a tool, just like other tools? So the shell's task is to give commands and manage the system? The sharpest question is, can the linux system and other tools in it, especially gui-based tools, continue to be used without shell? What exactly is the shell and what importance in the linux system?

For example, if I change the sound volume by the ubuntu desktop widget, I think it will issue some commands to the shell or run a script.  Is it possible to see what it runs?


I’ve just missed the Aviation.SE voting because I only normally use the iOS app and the notification didn’t come through to the app, yet it’s there when viewing through the website.  Is this a bug? If not can we make it a feature request?  iOS app notifications - missing election notification      Website notifications - has election notification       App Version: 1.6.6.2 Device: iPhone 5s (Global) OS Version: Version 11.0.2 (Build 15A421)

The SE app currently only shows some inbox items:   Answers Comments Chats   When I see those I assume I'm all caught up, but it turns out there are more on the web which aren't displayed in the app:   Bounty expiration Elections Edits on your own posts Maybe others?   I was about to tag this  but realized it's probably intentional.  I imagine the reason for not showing them is because they're not something you can act on from within the app. Bounties can't be offered or awarded1 and elections can't be voted on.  But then again chats can't be replied to either. Badge descriptions can't be viewed (on the Achievements side). Selecting those launches the browser. Why then shouldn't bounties or elections launch the browser too? Hiding them just means I'll miss it if I haven't visited in browser recently.  1 Though accepting answers does award the bounty


I want to get the P-value of two randomly distributed observations x and y, for example :  > set.seed(0) > x <- rnorm(1000, 3, 2) > y <- rnorm(2000, 4, 3)   or:  > set.seed(0) > x <- rexp(50, 10) > y <- rexp(100, 11)   let's say that T is my test-statistic defined as mean(x) - mean(y) = 0 (this is H0), the P-value is then defined as : p-value = P[T>T_observed | H0 holds]. I tried doing this :  > z <- c(x,y) # if H0 holds then x and y are distributed with the same distribution > f <- function(x) ecdf(z) # this will get the distribution of z (x and y)   then to calculate the p-value i tried this:  > T <- replicate(10000, mean(sample(z,1000,TRUE))-mean(sample(z,2000,TRUE)))  # this is  supposed to get the null distribution of mean(x) - mean(y) > f(quantile(T,0.05)) # calculating the p-value for a significance of 5%   obviously this doesn't seem to work, what am i missing ?

i want to calculate the p-value of a statistics test using R. I'm aware of the existing function t.test(x) but what i want to do is to determine the p value through monte carlo simulations. Therefore i defined this code:  mean.test <- function(x, y, B=10000, alternative=c("two.sided","less","greater")) {  p.value <- 0 alternative <- match.arg(alternative)  s<-replicate(B, (mean(sample(c(x,y), B, replace=TRUE))-mean(sample(c(x,y),  B, replace=TRUE)))) # random samples of test statistics t <- mean(x) - mean(y) #teststatistics t     p.value <- 2 * (1- pnorm(mean(s)))   #try to calculate p value   data.name <- deparse(substitute(c(x,y))) names(t) <- "difference in means" zero <- 0 names(zero) <- "difference in means" return(structure(list(statistic = t, p.value = p.value, method = "mean test", data.name = data.name, observed = c(x,y), alternative = alternative, null.value = zero), class = "htest")) }   When running   > set.seed(0) > mean.test(rnorm(1000,3,2),rnorm(2000,4,3))   this is supposed to return       mean test data: c(rnorm(1000, 3, 2), rnorm(2000, 4, 3)) difference in means = -1.0967, p-value < 2.2e-16 alternative hypothesis: true difference in means is not equal to 0   this return this though:          mean test  data:  c(rnorm(1000, 3, 2), rnorm(2000, 4, 3))  difference in means = -1.0967, p-value = 0.9999  alternative hypothesis: true difference in means is not equal to 0   What's the error ?


According to this  on Facebook's Haystack:     "Because of how the NAS appliances manage directory metadata, placing   thousands of ﬁles in a directory was extremely inefﬁcient as the   directory’s blockmap was too large to be cached effectively by the   appliance. Consequently it was common to incur more than 10 disk   operations to retrieve a single image. After reducing directory sizes   to hundreds of images per directory, the resulting system would still   generally incur 3 disk operations to fetch an image: one to read the   directory metadata into memory, a second to load the inode into   memory, and a third to read the ﬁle contents."   I had assumed the filesystem directory metadata & inode would always be cached in RAM by the OS and a file read would usually require just 1 disk IO.   Is this "multiple disk IO's to read a single file" problem outlined in that paper unique to NAS appliances, or does Linux have the same problem too?  I'm planning to run a Linux server for serving images. Any way I can minimize the number of disk IO - ideally making sure the OS caches all the directory & inode data in RAM and each file reads would only require no more than 1 disk IO?


We have a database structure like the one shown in the (very simplified) diagram below:    As you can see, there is a table Categories, holding data like this:  Id Description 1  Car 2  Truck   The table VehicleParts holds the data that correlates which vehicle has which part.  My question  How can I guarantee that one row in the VehicleParts table does not reference a Version of a Car and a Part of a Truck or vice versa?

I have following database design (by => foreign key constraints are depicted):   Company[id] CompanyRealm[id, company_id=>Company.id]many2many  Project[id, company_id=>Company.id] ProjectRealm[id, project_id=>Project.id, company_realm_id=>CompanyRealm.id]many2many   Problem is that provided database design allows inconsistent data. For example:   Company1(id=1) Company2(id=2) CompanyRealm(id=11, company_id=1) Project(id=33, company_id=2) ProjectRealm(id=44, project_id=33, company_realm_id=11)   (Company can have many Realms, Project belong to Company and  may concern any number of company's Realms)  ProjectRealm refers to two different companies:   Company1 (via CompanyRealm); and Company2 (via Project).    Is something wrong with my DB design? If yes - which prescriptions are violated? If no - how to prevent incorrect data insertion (via constraint? trigger with exception?)


I'm flying from Los Angeles to London with one stop at Vancouver International Airport to change planes in the same flight. I have both current Spanish passport and ESTA.  Do I need to apply for visa to connect through Canada without exiting the airport?

I know that in the US foreigners must have a US visa if they have a connection in the US, even if they fly from a different country to a different country. That is because in the US you have to go through passport control regardless of your final destination.  What is the situation in Canada? Does a person who would need a visa to enter Canada need a visa to connect through Canada without exiting the airport?


New user to GIS and to QGis but experienced data user.  I have shapefiles for a state legislative districts.  I have a set of individual voter records that I have geocoded.  What I'd like to do is create a map where the color wheel displays the number of voters per legislative district.  I'm not quite sure how I'll do the join (or even if I should use a join).  I know this is probably basic and I'm asking the question wrong but guidance appreciated.

I have a layer of georeferenced points, and a layer of vectorized borders. Is there a way I can use QGIS to calculate how many points fall within each area of the borders layer?


Find all the solutions $(x,y,z)$ $\in \Bbb Z^+$ such that $(x+1)^y-x^z=1$.  This is an old problem from a math olympiad in Venezuela, in the year 2000.  I don't know how to start solving this kind of problem, and i didn't found any solution yet in internet, i only found the problem.  The only thing i tried was to manipulate the equation: $$(x+1)^y-x^z=1$$ $$(x+1)^y=1+x^z$$  and after that maybe use the Binomial theorem, but i think it doesn't work.  Edit: It's trivial that $y=z=1$ makes infinite solutions for any value of $x$, but what happens to $x,y,z \gt 1$ ?  Any hints?.

I want to know if there is another way to solve the equation:  $$(x+1)^y-x^z=1$$  for positive integers $x,y,z$ greater than $1$ without using the Catalan identity. Does exist? By now I only know that $x\mid y$.


Find $\displaystyle\lim_{n\to\infty} \Bigl(1+\dfrac{1}{n}\Bigr)^{n^2}\cdot\dfrac{1}{e^n}$   We have: $$ \lim_{n\to\infty} \Bigl(1+\dfrac{1}{n}\Bigr)^{n^2}\cdot\dfrac{1}{e^n}= \lim_{n\to\infty}\dfrac{e^{n^2\ln\bigl(1+\frac{1}{n}\bigr)}}{e^n}= \lim_{n\to\infty} e^{n^2\ln\bigl(1+\frac{1}{n}\bigr)-n} $$  Then I have no idea. Can anyone help me please?

How to solve the following limit question? $$\lim_{n\to\infty}\frac{1}{e^n}\Bigl(1+\frac1n\Bigr)^{n^2}$$  Thanks a lot.


public static void main(String[] args) {     Integer i = new Integer(0);     int[] arr = {1};     p1(i);     p2(arr);     System.out.println(i);     System.out.println(arr[0]); }   public static void p1(Integer i) {     i = 2; }  public static void p2(int[] i) {     i[0] = 2; }   //output: 0, 2  How can I change the value of i like I change the value of arr?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


The LG Optimus Exceed ships with KitKat 4.4.2. Will that automatically update to Lollipop, or would I need to root the phone?

Android 5.0 (Lollipop) was officially announced on October 15th, 2014.  You can review the high-level changes at the  and the announcement on the official .  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 5.0, either officially or unofficially, if ever?  See also:


From the James Stewart Essential Calculus Early Transcendentals Second Edition textbook I have the given problem:  $$a_n=\frac{(-3)^n}{n!}$$  I did the following absolute convergence procedure, because I treated the problem as the following: Theorem 6 If $ \lim_\limits{n \to \infty}\rvert a_n \lvert = 0$, $\ \therefore \ $ $\lim_\limits{n \to \infty} a_n = 0$ $$\lim_\limits{n \to \infty} \frac{(-1)^n (3)^n}{n!}$$ I then then proceeded to do the following, in accordance to the theorem, and the way which I manipulated the sequence. \begin{align} \lim_\limits{n \to \infty} \vert \frac{(-1)^n (3)^n}{n!} \vert \\ \lim_\limits{n \to \infty} \frac{ (3)^n}{n!} \end{align} Here is where I get a bit lost because of the intuition behind the problem, I graphed this as function, and determined the limit equals 0, but I am trying to determine it analytically. I went to Symbolab, and it says that numerator is undefined, and that its denominator is infinity, thus it being 0. But this is how I view the problem. My Work $$\lim_\limits{n \to \infty} \frac{ (3)^n}{n!}$$ $$\frac{3^\infty}{\infty!}$$ My thoughts were that the $3^\infty = \infty$, thus being $$\frac{\infty}{\infty}$$. Is there something I am missing, because L^Hopital's rule is not applicable here. How do I analytically get at the problem?

Why is     $$\lim_{n \to \infty} \frac{2^n}{n!}=0\text{ ?}$$   Can we generalize it to any exponent $x \in \Bbb R$? This is to say, is     $$\lim_{n \to \infty} \frac{x^n}{n!}=0\text{ ?}$$     This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


I'm working using Ubuntu 14.0. I installed VirtualBox and  Windows 7 installed on it.   When I run Windows, the desktop is small and the rest is just grey. Changing screen resolution helped a bit, but still I can't maximise the window with Windows 7 (when I do it, the size of the part with Windows 7 reaches its maximum size and the border around it resizes).  How can I fix it?

I've recently installed Ubuntu on Oracle's Virtualbox.  Now I want to install the guest additions.  I started up my Ubuntu guest OS, clicked "Devices" and chose "Install Guest Additions". Nothing happened, and I don't see the CD icon on my desktop.  How can I make this work?


try {     MailMessage mail = new MailMessage();      SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");      mail.From = new MailAddress("senttoemailaddress@gmail.com");     mail.To.Add("senttoemailaddress@gmail.com");     mail.Subject = "Test Mail";     mail.Body = "This is for testing SMTP mail from GMAIL";      SmtpServer.Port = 587;      SmtpServer.Credentials = new System.Net.NetworkCredential("emailaddress.test@gmail.com", "passW0ord");      SmtpServer.EnableSsl = true;      SmtpServer.Send(mail);      MessageBox.Show("mail Send"); } catch (Exception ex) {     MessageBox.Show(ex.ToString()); }   I'm trying to run the above code to automatically send emails, the code executes up until it reaches smtpServer.send(mail) then it just stops, the email address that I use is valid and the password is valid.

Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show.   Is it possible to do it?


An employee of US Company posted at Bangalore.  The salary is credited by US company after Deduction of tax as per US laws then credited to the Bank  account in India.  Employee is resident because of residing in India more than 180 days.  How to claim credit of tax paid in foreign country when accounting periods are different? Where I have to disclose in the return(i.e.ITR 1) the taxes already deducted by US entity when I am going to file return in India?

I am an Indian Resident working for a US Company as an employee. The work location is Bangalore, India. The salary is credited by US company after Deduction of tax as per US laws then credited to the Bank  account in India. I am in India for more than 180 days and I guess I would be treated as Resident Indian [and not "Non-Resident Indian"] How should I claim credit of tax paid in US when accounting periods for US are calander year Jan to Dec and in India are April first year to March Next year. Where should I disclose the taxes already deducted by US company and paid to IRS when I am filing Returns in India. I believe dual tax avoidance should allow me a tax credit?


What is proper way to prove $2^n + 3 \ge n^2$, for all integer $n$ greater than $0$ , using mathematical induction? This is what I had tried:   $n = 1; 1 + 3 \geq 1; 4 \geq 1$ OK Precondition $n = k; 2^{(k + 1)} + 3 \geq (k + 1)^2$ $2 \times 2 ^ k + 3 \geq k^2 + 2k + 1$ but nothing comes out of it. Thank You in advance

I am a CS undergrad and I'm studying for the finals in college and I saw this question in an exercise list:     Prove, using mathematical induction, that $2^n > n^2$ for all integer n greater than $4$   So I started:  Base case: $n = 5$ (the problem states "$n$ greater than $4$", so let's pick the first integer that matches)  $2^5 > 5^2 \implies 32 > 25$ - ok!  Now, Inductive Step:  $2^{n+1} > (n+1)^2$  now expanding  $2 * 2^n > n^2 + 2n + 1$  Well, I can't go on, I don't know how to finish this proof. Could anyone help me with this one?  Also, I know that the statement (inductive hypothesis) is true. Simply, I'll have a number to an exponent $n$ twice, next to $n$ squared and $2n$ (which could be seen as quadratic and linear functions) which "grows" much lower than the exponential one. It could be easily "proved by example" with any $n$ greater than $4$.  I want to know how to prove it algebraically , so my professor does not freak out.  thanks in advance.


start=True def funcA():    if(start):        #doSomething     else:        start=False   this leads 'starts' to  an unresolved reference  Is there a way to change 'start' to False inside funcA ?

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I have a list containing six lists  lst = [     ['2.2.5', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All'],     ['2.2.6', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All'],     ['2.2.5', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App'],     ['2.2.6', '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App'],     ['2.2.5', '/usr/local/share/dotnet/shared/Microsoft.NETCore.App'],     ['2.2.6', '/usr/local/share/dotnet/shared/Microsoft.NETCore.App'] ]   and I am trying to convert this into  {     "2.2.5": ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.5',               '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.5',               '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.5'],     "2.2.6": ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.6',               '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.6',               '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.6'] }   So far this is what I did:  to_dict = {key[0]: [value[1] + '/' + value[0] for value in lst] for key in lst}   This returns   {'2.2.5': ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.6'],  '2.2.6': ['/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.6',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.5',            '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.2.6']}   The inner loop adds everything from the index 1 from lst. How should I add values appropriate to its key?

I have a list of tuples like this:  [ ('a', 1), ('a', 2), ('a', 3), ('b', 1), ('b', 2), ('c', 1), ]   I want to iterate through this keying by the first item, so, for example, I could print something like this:  a 1 2 3 b 1 2 c 1   How would I go about doing this without keeping an item to track whether the first item is the same as I loop around the tuples? This feels rather messy (plus I have to sort the list to start with)...


I don't know if it's possible,   I would like start a bash script without pipe which write everything to a file and at the same time see the output on the terminal.  So I know how to do that with this command :   ls -l |& tee test.log   How can I create this file directly from a line in my script and not using a pipe ?

In a bash script, how can I redirect all standard outputs to a log file and tee the output on the screen using exec ?  log_file="$HOME/logs/install.txt-`date +'%Y-%m-%d_%H-%M-%S'`" [ -f "$log_file" ] || touch "$log_file" exec 1>> $log_file 2>&1   This code redirect all the log to the log file but not to the screen .


I have a Samsung galaxy Y device. It's running Gingerbread stock rom, and I want to upgrade this to Jellybean. Is there any custom rom for Galaxy Y?

There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also:


I understand that this question has been asked before (here:  ).  I understand why the matrix has a maximum number of $\frac{n^2-n}{2}$, but why is the number of unique elements of the matrix equal to the dimension? What am I missing here? Thank you.  Edit: I don't know why this has been marked as duplicate as it explicitely states that I'm looking for clarification on this particular question.

Let $\textbf A$ denote the space of symmetric $(n\times n)$ matrices over the field $\mathbb K$, and $\textbf B$ the space of skew-symmetric $(n\times n)$ matrices over the field $\mathbb K$. Then $\dim (\textbf A)=n(n+1)/2$ and $\dim (\textbf B)=n(n-1)/2$.   Short question: is there any short explanation (maybe with combinatorics) why this statement is true?  EDIT: $\dim$ refers to linear spaces.


I have a model of a large city, where every house or cityblock is an object. I can manually pick each object and export them, but it is very tedious since there can be thousands of objects, and i would like to do this generally.  Does there exist such a tool in blender or anywhere else, that can take a large grouped scene and export the objects (Houses and the like) individually with some form of naming convention?  Thank you.

I have a scene containing parts of a modular tileset to be used in the game. I want to export every object into separate files, and in every file object is moved to default (0, 0, 0) position.  How can I do this?


I'm trying to write a systemd service that both starts at boot time and can be used during a user session using the "sudo systemctl restart" command.  However, when using this command I need to be able to pass different parameters such as "-x" or "-h" or whatever the program of this service may use.  e.g.  sudo systemctl restart myservice -v   this command above would show the version info returned by myservice.  So, I would like, when using a specific parameter, to open a terminal and launch a command, then that console session staying open until I close it.  Below is a sample of what I expect to do:  [Unit] Description=myprog ConditionFileExecutable=/opt/mystuff/myprog  [Service] Type=pneshot ExecStart=/opt/mystuff/myprog -r ExecStop=/opt/mystuff/myprog -x ExecRestart=/opt/mystuff/myprog ????  // this is where I need the parameter TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes  [Install] After=NetworkManager.service   I've spent hours and hours searching on the systemd man pages as well as on multilple Linux forums but until now, I've not been able to find the syntax to do it.  So, could anyone knowing systemd scripts explain what's the correct syntax to pass a parameter to the ExecRestart command.  TIA for your time and advice.  Cheers. Fnux.

I have an  and I've created my own service. The configuration service at /etc/systemd/system/myservice.service looks like this:  [Unit] Description=My Daemon  [Service] ExecStart=/bin/myforegroundcmd  [Install] WantedBy=multi-user.target   Now I want to have an environment variable set for the /bin/myforegroundcmd. How do I do that?


I have a laptop without CD/DVD came with Windows 10 installed. Windows can be re-installed from within the Windows, but what if I want to change my HDD or hardware failure or temporarily installing standalone linux (not dual boot)?  How can I create a bootable USB from which I can re-install my original Windows?  Note that I don't have an ISO file, just the original Windows installed on my laptop.  My question is simple, I just want to have an external backup to restore my Windows installation without relying on the main HDD.

I've been using Windows 10 for a couple of month now (joined the Insider Preview).  Now my hard drive started ticking so I've bought a new SSD and I want to move the windows installation to the new hard drive, which has been connected to the computer (unpartitioned). I don't mind and I even prefer reinstalling it over again.   Since I have the free version of Windows 10 pro, can I still reinstall it anew? Does the windows 10 installation offer disk management and partition like the older Windows installations used to? How should I reinstall Winodws 10 x64 the easiest but still remain on free mode?


When I try to use the Automatic Weights option to parent my mesh to the Rig how come it deforms the meshes left arm?

Here is the .  Picture:   It's nothing special but I cant figure out why I get problems rigging this mesh. It would be important and a great Help! Thanks for reading and I know there are a lot of guides answering this question but I tried all and it doesn't seem to work.


While using the Unity desktop under 17.04 I used CompizConfig to allow window tiling with keyboard shortcuts.  The feature I most liked and relied on was the ability to tile windows to the 4 corners, left or right, top or bottom with keyboard shortcuts (I adjust mine to be ctrl + super + [1 - 9]) where each of the numbers placed a window in a tile position similar to the placement of the number on a 3 x 3 number pad.  So, ctrl + super + 1 would place a window in the bottom left corner, ctrl + super + 8 would place a window on the top half of the screen, ctrl + super + 6 would place a window on the right half of the screen, etc.  Is there a way to get this functionality in GNOME? Either through using CompizConfig somehow or by using another GNOME extension?

With Compiz in Unity, I could press Ctrl+Alt+6 to place a window on the right-half of the screen, Ctrl+Alt+4 to place it on the left half, Ctrl+Alt+7 to place it in the top left quarter of the screen, and so on. Is there something similar in Gnome-Shell?


In the following sentences:   I can move quicker than she can. She moves quickly, but I can move quicker still. Between us, I move quickest. Between us, I move quicker. I am even quicker than she.   I am apparently trying to modify the verb "move" with the adjectives "quicker" and "quickest".    It seems to me that I have been speaking like this all my life, but just now I've been told that adjectives may not modify verbs, and that these sentences are grammatical garbage.  Yet, when it comes to:  I can move quicker than she can.  vs  I can move more quickly than she can.  The first sentence sounds just as good as the second, to me, at least.  Cannot the word "quicker" serve as both adjective and adverb?

I know that some adjectives (such as easy & short) can be used as adverbs in some situations, but when can this happen and what adjectives does this apply to?  This definitely works: "He stopped short" But does this?: "He fell pretty hard"


I do not want the button of print in the hard copy when printed.      <html>     <head>      <title>New Page 1</title>      </head>     <body>      <p>         This is just a paragraph fellas. I do not want the print button in the hard copy.      </p>     <input type="button" value="print" onclick="window.print()" />     </body> </html>   Also if there is a site which explains the proper use of how to print a hard copy of a particular section of a page, please provide the reference also. Thank you.

I have a link on my webpage to print the webpage. However, the link is also visible in the printout itself.  Is there javascript or HTML code which would hide the link button when I click the print link?  Example:   "Good Evening"  Print (click Here To Print)   I want to hide this "Print" label when it prints the text "Good Evening". The "Print" label should not show on the printout itself.


I would like to find some directories via  find /path/to/a/dir -type d  -links 2    and then for each pathname found by find,  assumed to be stored in variable pathname, I would like to   stow -d "$(dirname "$pathname")" -t /home/t/bin "$(basename "$pathname")"    How can I combine the above with find -exec, something similar to:  find /path/to/a/dir -type d  -links 2 -exec stow -d "$(dirname \{\})" -t /home/t/bin "$(basename \{\})" \;   I think it doesn't work because the shell performs the command substitutions before running find, and no pathname is found yet to replace \{\} in the command substitutions.  Thanks.

I was just trying to list all directories and files under current directory and also write if they are file or directory with the following command:  find -exec echo `echo {} : ;if [ -f {} ]; then echo file; else echo directory;fi` \;   I know it is a silly command, I can use other things like -type f or -type d, but I want to learn why that piece of code did not work as I expected. It just prints directory to all of them. For example while output of find is:  . ./dir ./dir/file   output of my code is :  . : directory ./dir : directory ./dir/file : directory   And output of   echo `echo dir/file : ;if [ -f dir/file ]; then echo file; else echo directory;fi`   is  dir/file : file   I am working on Ubuntu 14.10 and using find (GNU findutils) 4.4.2


I just got the Epiphany hat, but it had a weird description:    Seeing this, I went to the hat list on the Winter Bash page to see if this was just a secret hat with a different description since these descriptions are the unlocking requirements except for secret hats (but generally it's "this is a secret hat")    So I decided to click on it here, and the weird text has appeared again:    I get the feeling this is another language, but why is this hat doing this?

Continuing the tradition of asking for the meanings of .  Hats like  can be deciphered easily as related to . However, hats like  are difficult to .   bluefeet has already mentioned about the number-only hats .   Hence the question is: can we have a list of what inspired each of the (secret and non-secret) hats?


I've come back to Ubuntu;  I'm on Dual boot (Windows 10/Ubuntu 18.04) on a SSD with no swap partition. I have a problem. While Windows boot time is just a matter of 3-5s, Ubuntu takes 30-40s.   I've runsystemd-analyze blame and systemd-analyze critical-chain and this is what I got:    Any idea of what is going on (why these services are taking so much time to run)?

I have been checking some systemd-analyze outputs and I actually don't have a crucial problem with my boot time but just wondering whether I can decrease it further. I'd like to mention that I'm using an SSD and Ubuntu is my only OS.  systemd-analyze Startup finished in 5.450s (firmware) + 565ms (loader) + 2.632s (kernel) + 10.086s (userspace) = 18.734s  graphical.target reached after 10.071s in userspace   systemd-analyze blame           6.607s NetworkManager-wait-online.service           5.660s fwupd.service           5.042s bolt.service           4.134s plymouth-quit-wait.service           1.579s dev-sda2.device           1.552s systemd-backlight@backlight:intel_backlight.service           1.367s plymouth-read-write.service           1.211s snapd.service            903ms systemd-logind.service            572ms systemd-journald.service            555ms dev-loop9.device            523ms dev-loop6.device            515ms man-db.service            499ms dev-loop8.device            478ms dev-loop5.device            472ms dev-loop13.device            448ms dev-loop7.device            441ms dev-loop11.device            438ms dev-loop10.device            432ms dev-loop12.device            415ms udisks2.service            406ms dev-loop14.device            319ms snap-gnome\x2d3\x2d28\x2d1804-71.mount   graphical.target @10.071s └─multi-user.target @10.071s   └─kerneloops.service @10.042s +27ms     └─network-online.target @10.032s       └─NetworkManager-wait-online.service @3.422s +6.607s         └─NetworkManager.service @3.224s +186ms           └─dbus.service @3.218s             └─basic.target @3.211s               └─sockets.target @3.211s                 └─snapd.socket @3.208s +2ms                   └─sysinit.target @3.205s                     └─systemd-backlight@backlight:intel_backlight.service @1.468s +1.552s                       └─system-systemd\x2dbacklight.slice @1.467s                         └─system.slice @212ms                           └─-.slice @212ms


This is my flow chart. I need this picture to draw in Tikz

I feel intimidated in learning TikZ. I was wondering if there are some nice materials (or just your replies) at different level:   for providing big picture, which is important to beginners to not lose direction during learning. for comprehensive reference.   Examples are important, but only examples are not always clear for understanding the big picture and organization.


Is there any API in java that takes to inputs as 2 coordinates and takes a snap shot of screen marked by that co-ordinates? I want to API to return IMAGE format.

Simple as the title states: Can you use only Java commands to take a screenshot and save it?  Or, do I need to use an OS specific program to take the screenshot and then grab it off the clipboard?


The , states:     Since $d$ is relatively prime to $φ(n)$, it has a multiplicative inverse $e$ in the ring of integers modulo $φ(n)$   This quote presumes that every element in a reduced residue system (modulo n) has a multiplicative inverse (modulo n). Could you please help me prove this fact or provide some intuition?   Beginner-friendly please (preferably no abstract algebra).

I think the following is true:  If $q$ is coprime to $a$ then $a\mid (nq-1)$ for some $n\in\mathbb Z$.  I have started to first reducing $n\in\mathbb Z$ to $n\in\{1,\ldots,a-1\}$ and then considering all the cases $q = ka + j$ for $j=1,2,3,\ldots,a-1$. I stopped at $j=3$ and found that this is kinda messy. Does anyone have an elegant proof for this (maybe using some results from number theory)?  [Note: question has been generalized from prime $q\nmid a$ to $\,q$ coprime to $a$]


I have Python 3.2 on a windows 7 operating system. The other day I thought that it would be convenient to add a link to create a new .py file in the right hand click "new" menu. I had worked with the registry before and looked up how to add an item to the "new" menu, but when I got to the registry under HKEY_CLASSES_ROOT the .py extension key was not there. I only know how to add something to the "new" menu using the extension key. I searched the web, but could not come up with any other ways. Python works perfectly fine, and I don't want to mess anything up by adding the extension key. So here are my questions:  Will I mess up python or something else by adding a .py key?( I know it is dangerous to work with the registry, that is why I am looking for a safe solution) If not how can I go about doing this?  OR  Is there a different way to add "create a new python file" to the "new" menu? If so how can I do it?  OR  If the only way is very complicated should I forget about it?  Thank you in advance.  P.S I originally posted on Stack Overflow that they told me to move it over here.

When I right click anywhere I get an option to add a new file with a specified extension. I would like to add some custom files into this menu, so I can right click and create a new PHP file for instance.  How can I do this?


I'm running 14.04 on a new XPS 13. In order to support the newer hardware, I'm running a mainline 3.19 kernel.   Hibernate resume has been iffy with the entire 3.19 kernel line, but recently (3.19.5) pm-hibernate no longer works at all. The screen will either a) switch off momentarily, then back on with all inputs frozen or b) switch off entirely, and fail to resume upon power on (despite displaying the correct resume-from-uuid message).  I have enough swap space (and it has worked in the past), I have checked that the uuid is being correctly referenced, and nothing seems particularly amiss in /var/log/pm-suspend.log (last 200 lines here: )  Thanks for your help.

I searched everywhere and while there are guides none say what to do if a step wont work, so this isn't a duplicate as far as I know. If it is I'll take this down but PLEASE read the full question first.  I used .  So I do sudo pm-hibernate and then my screen goes to the hibernate screen say:     snap-shoting   snapshot done   writing(or something like that)____0%   and then hangs there forever. My swap is seen and is 9GB, I have 6GB RAM. It is a dual boot with Windows 7.


As a summary: I wanted to install the latest SCilab, which is not available in the Software centre. I downloaded the tar.gz file from the website. I then followed the instructions from response 7 here . This didn't work for me.  So I removed the file (I think), and extracted the file a different way and ran the program from there.  Okay, so I downloaded Scilab from their website as a tar.gz file.  I then copied the file to /opt:   sudo cp [download name].tar.gz /opt/   I then extraced the file and deleted the tar.gz file:   sudo tar -xvf [download name].tar.gz sudo rm -rf [download name].tar.gz   I found the folder. It was called Scilab-5.4.1. I think the next step changes the "access" settings, and so I changed it as follows:   sudo chmod 770 Scilab-5.4.1/   So this is owner and group permission to read, write and execute.  I then tried the symbolic link thing:   sudo ln -s /opt/Scilab-5.4.1/ /usr/bin/scilab   After this, I tried different ways to run the programme from the terminal, but to no avail. I then looked for the Scilab folder, which I found in opt. I tried to delete the folder "Windows-style" (send to recycling bin) but it wouldn't let me. I also tried purge from the terminal but it couldn't find the programme. I then used:   sudo rm -r /opt/Scilab-5.4.1   The folder disappeared. After this, I downloaded the file again, and transferred it to opt in the process:   sudo tar xzvf [download name].tar.gz -C /opt/   I then went to the folder (in terminal):   cd /opt/scilab-5.4.1   And opened Scilab:   ./bin/scilab   This seems to work. However, there is a Scilab programme logo in the launcher (Unity), but it disappears on closing the programme and there is no logo in the recently used programmes section in the dash.   I want to know that was there an error in my installing process done in the previous unsuccessful install, since I can't find the Scilab logo anywhere ?   Why first method didn't work but the second, simpler method, seemed to work okay (I can at least open the programme) ?   (The final peculiar thing is my "history" in the terminal: using the up-arrow to navigate to previous commands, the history suggests I didn't use rm -r, even though I am almost certain I did.)

Firstly, I saw topics such as 'How to install manually a software...' but it did not solve my problem. I've downloaded Scilab 5.4.1 from the official website and I extracted the .tar.gz file into:  /home/scilab-5.4.1  I then tried the commands below, but they gave several errors:  $ cd scalib-5.4.1 $ configure        @1 $ make             @2 $ make install     @3   these gave the following messages in the terminal:  @1: configure: command not found @2: make: *** No targets specified and no makefile found.  Stop. @3: make: *** No rule to make target `install'.  Stop.   I tried following commands:  $ cd scilab-5.4.1 $ cd bin $ scilab   which gave the message:  The program 'scilab' is currently not installed.  You can install it by typing: sudo apt-get install scilab


I have always made my pages "by hand". just coding them, a bit of javascript here and there. And because I like to experiment with designs, i use a lot of popup divs, which means i use "display:none" tags for those divs. I've been told that this could be hurting my searchability. The pages have been online for a long time. does anyone have some advice on this? Someone has been mentioned that I will have difficulty with SEO and that I need to use a CMS like wordpress. what do you think my next move should be? Is there something in my CSS I can change, or do I go the CMS route? thanks!

I've heard many times that it's bad to use display: none for SEO reasons, as it could be an attempt to push in irrelevant popular keywords. A few questions:   Is that still received wisdom? Does it make a difference if you're only hiding a single word, or perhaps a single character? If you should avoid any use of it, what are the preferred techniques for hiding (in situations where you need it to become visible again on certain conditions)?   Some references I've found so far:       If you're straight-out using CSS to hide text, don't be surprised if that is called spam. I'm not saying that mouseovers or DHTML text or have-a-logo-but-also-have-text is spam; I answered that last one at a conference when I said "imagine how it would look to a visitor, a competitor, or someone checking out a spam report. If you show your company's name and it's Expo Markers instead of an Expo Markers logo, you should be fine. If the text you decide to show is 'Expo Markers cheap online discount buy online Expo Markers sale ...' then I would be more cautious, because that can look bad."   And  on the same article     We can flag text that appears to be hidden using CSS at Google. To date we have not algorithmically removed sites for doing that. We try hard to avoid throwing babies out with bathwater.   Eric Enge      The legitimate use of this technique is so prevalent that I would rarely expect search engines to penalize a site for using the display: none attribute. It’s just very difficult to implement an algorithm that could truly ferret out whether the particular use of display: none is meant to deceive the search engines or not.


If you check my  you will notice that I finally scored over 100 points on the C tag, and that was a couple of hours ago.   I understand that is the only requirement to earn a bronze C tag badge. Am I wrong?   If not, how long do I have to wait to be awarded with the badge?  Thank you.

Do badges get calculated in real time, or do they get calculated by an external service? How long does it take for a badge to be awarded, once its requirements are met?  Does Stack Overflow use any external services to do things, like maintenance, e-mailing or badge calculation?


I want to know an easy to justify logical method of finding the topologies or at least to show that there are 26 topologies on the set. Will greatly appreciate your help.

I have the set $$X = \{1, 2, 3\}$$  and I want to figure out how many different topologies I can get from the set $X$  so what I have done is assumed that the empty set and the whole set are in $T$  and that any union of elements will satisfy, $X \in T$, as well as any intersection of elements.  therefore all possibilities will be considered topologies.  so after I assume this, my answer I acheived was a simple $3!*3! + \emptyset = 37$.  Leading me to the fact that I believe there are 37 different topologies possibel from this set $X$.  Any help, disccrestions, criticims, or corrections would be great, i only have 75% confidence in this result.   thanks in advance


I am trying to plot a few different graphs in R^3, one being a string with a loop in in R^3 which I have managed to do. The plot I am struggling on is how can I represent different types of knots (in closed intervals [0,1]) in a plot in R^3 by using functions? This is as far as I have gotten in my attempt to try to produce a trefoil knot: \begin{tikzpicture}   \begin{axis}   \addplot3[variable=t,mesh,domain=0:1]    ({(0.8*cos(deg(3*t)))/(1-(0.6)*sin(deg(2*t)))},{ (0.8*sin(deg(3*t)))/(1-(0.6)*sin(deg(2*t)))}, {(1.08*cos(deg(2*t)))/(1-0.6*sin(deg(2*t)))});   \end{axis}   \end{tikzpicture}  But clearly it does not do what I had pictured (produce a knot). Thank you!

When I use the parametric equations (according to Wikipedia) to plot a trefoil knot: x(t)=sint+2sin2t  y(t)=cost−2cos2t  z(t)=−sin3t  I get a plot that looks very different from the   This is my code: \begin{tikzpicture} \begin{axis} \addplot3[variable=t,mesh,domain=-2*pi:2*pi] ({sin(deg(t))+2*sin(deg(2*t))},{cos(deg(t))-2*cos(deg(2*t))}, {-1*sin(deg(3*t))}); \end{axis} \end{tikzpicture}  How can I create a nice plot of a trefoil knot? Thank you!


In the first book of Harry Potter, it is revealed that Snape was not trying to curse Harry's broom; he was trying to save him. But we also learn that Professor Quirrell was behind it the whole time, with Voldemort living behind his turban. Voldemort probably knew everything happening around Quirrell, so why didn't he punish Snape for betraying him and helping Harry?

I read something online that got me thinking about this. Why didn't Voldemort suspect Snape had defected from the Death Eaters and was now working for Dumbledore during the events of *Philosopher's Stone?  Voldemort was possessing Quirrell's body and his head was protruding from the back of Quirrell's - in other words, Voldemort was with Quirrell constantly during the events of Philosopher's Stone, presumably overhearing whatever Quirrell himself heard.   Snape cornered Quirrell more than once (Halloween, when Quirrell let the troll in, and the night Harry broke into the Restricted Section over the Christmas holidays to look for information on Nicholas Flamel) and openly threatened him against working for Voldemort and pressuring him to declare his loyalties to Dumbledore. This obviously revealed Snape's loyalty to Dumbledore to Quirrell, and presumably Voldemort, and I can't think of a reason why Voldemort wouldn't have been able to hear Snape strong-arming Quirrell perfectly clearly.   Why didn't Voldemort attempt to make contact with Snape during Philosopher's Stone? After all, Snape was supposedly Voldemort's most faithful servant. How is it Voldemort didn't suspect Snape was working for Dumbledore and didn't orchestrate a move against him? Snape wasn't even pretending to be a double agent during Philosopher's Stone, so why Voldemort didn't kill Snape as soon as he was physically able, or have Quirrell attempt to kill him, is unclear.  So yes, why didn't Voldemort suspect Snape as a double agent during the events of Philosopher's Stone?


I just accidently deleted an Interesting Tag when trying to click on the Tag.  I then readded it, but it put it at the end of the list.  Since I click on it a lot to bring up questions in that tag, it's now a tad inconvenient.  Could we be given the ability to order our Interesting Tags?  Another alternative would be an undo button for Interesting Tag deletion.

I have many tags marked as "interesting" and others as "ignored". (I use Java at work, I'm a Cocoa guy by night, any anything dealing with Windows/.NET/C# simply doesn't apply to me.) When tags are added to the list in the right navbar, they appear in the order in which they were added. There are several problems with this:   It can be difficult to visually locate a tag quickly, unless you have memorized its location. The tags appear as the same gray boxes like everywhere on SO, but with a small "x" afterward, and they wrap based on size. This tends to leave a ragged right margin and wasted space. Ordering based on when the tag was added is not always the most intuitive default. Various users might prefer to view them alphabetically, by popularity, recent activity, etc.   It would be nice to introduce a tabbed interface to switch between various orderings, and remember the value in the cookie, profile, etc. Coupled with this, perhaps users could specify a custom ordering that works best for them? (Currently the workaround is to copy all the tag names, remove them all, and re-add them in the desired order, but this is obviously annoying.)  Thoughts?


I  have  an element but ı need to go there with scroll  how can ı do ıt wıthout scrolling how can ı clıck it?

The Scroll element in the page is actually a div with scroll bound to it. Here is the HTML snippet.  <div class="slimScrollBar" style="background: none repeat scroll 0% 0%  rgb(137, 137, 137); width: 12px; position: absolute; border-radius: 0px; z-index: 99; right: 1px; top: -13px; opacity: 0.6; height: 224.835px; display: block;"/>    I have tried with the following code, but it didn't  work out  WebElement scrollArea = driver.findElement(By.cssSelector("div.slimScrollBar")); JavascriptExecutor js = (JavascriptExecutor) driver;  js.executeScript("arguments[0].scrollTop = arguments[1];",scrollArea, 250);  Thread.sleep(1000);    Help is appreciated!


I was refused a visa to visit the UK today and i was planning in reapplying very soon cause i had already booked a ticket   The decision they made include *i have refused your application for a visit visa because i am not satisfied that you meet the requirements of paragraphs V4.2- V4.10 of appendix V because  (1) you have applied for a visa to visit the UK for 2months and 29days.you state you are a student and that a person will sponsors your visit.Although you have provided his documentation, i must also consider your own personal circumstances in Nigeria.  (2)i noted that you have not provided any documentation or information to demonstrate how you are supported financially in Nigeria .furthermore, the study documentation you provided is only a letter of offer and does not demonstrate your ongoing studies.   You also appear to have no dependents and you have not demonstrate that you have any assets in Nigeria or elsewhere   4.for this above reasons, i am not satisfied you have shown that, on the balance of probabilities, your ties to Nigeria or elsewhere are such that you are leaving the UK at the end of your proposed visit. I am not satisfied that you are genuinely seeking entry as a visitor or intend to leave the UK at the end of your visit. Paragraph V 4.2 (a) (c) of the immigration.     Please need someone to explain better before i reapply

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


My name is Mahdi Vojoudi and Im from Iran .When I choosed persian calendar for my Ubuntu I found some misspelling .I will be so happy if I can help Ubuntu developers  to correct this .I can translate the words from english to persian for making Ubuntu better .

I am familiar with reporting bugs on launchpad, but have no idea on how to report a bug in the translation.   Should I file it against the package that contains this bug, or should I report it as a but in some translation-project? How to make sure the translators team will get notified? What information should I include in such a bug report?


My  collects concept definitions from around the web. It knows how to extract the basic definition and make it accessible inside a predefined 'topic'. I always mention the source of the original webpage alongside the extracted definition. Google Search Console mark these pages as 'excluded' and the only ones that of included are pages that extracted from Wikipedia. Why are those pages not being included in Google Search Console?

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


Well I am looking for examples of slides presentations.  I also want know how to get a pack  that is missing to get when I use texmaker.   Tanx

I used to work as a consultant and have been spoiled with nice looking slides. For instance, being able to create slides that have 2, 3, or 4 graphs (perfectly positioned and with nice headers!) at the click of a mouse button via macros.  Similarly, there are many other kinds of word slides that had multiple columns, etc. that would be nice to recreate as well as objects like "main point" boxes at the bottom that summarize a main point and ways to add a transparent highlight to any part of the screen.  Is this kind of functionality far beyond anything that LaTeX presentations can do or is there an archive somewhere of code for making more intricate presentations?


I know it corresponds to a downvoted answer deleted, but I have no idea where on the network it is.  (And then it disappears.)  This is a duplicate of  but I want it mentioned separately because it's not just a different count to what's displayed.  Perhaps a solution could be a tooltip that just mentions all network sites with changed reputations in the last seven days, just to give us a hint where to look.

"Good morning.  Here is something awesome that you got last night!", said the Top Bar:    "21?  That must be two answer upvotes and, um, an answer that I downvoted that was deleted?", I thought.  Ok, let's look at the details and find out:    The +20 on my egrep answer is new and I've seen the other Achievements on the list, so where did the extra +1 come from?  In order to avoid confusion, the recent reputation changes in the dropdown should add up to the number in the notification.      I suspect this particular case is a bug.  Assuming the +1 is a downvote reversed by an answer deletion, I could see the argument for excluding it from the Achievements dropdown.  After all, it's not exactly something you accomplished.  Except it kinda is.  Part of the reason for downvoting is to  low-quality content.  The ultimate sign that such content was deemed beneath community standards is when it gets deleted.  I'm not sure that we should , but putting a note in your achievements in such cases seems like it would reinforce positive (albeit negative) behaviour.  This question is a feature request that rep gains from deleted downvotes be listed in the Achievements dialog, without getting into broader issues of displaying other activity on deleted posts such as those discussed in .  Thus, this is not intended to completely address the issue of the Achievements sum not adding up, but is intended to help encourage good community moderation by appropriate downvoting of low-quality content.


sudo apt-get install php5    doesn't work (no such package...), however, changing php5 to php5.6 works.  Any ideas? Thanks!

so I've recently installed my first Ubuntu, to be precise, a daily build of 16.04, on my new laptop since the hardware was to new for 15.10. Now I'm in the process of setting it up and I want to install php5 and some extensions.  When I execute sudo apt-get install libapache2-mod-php5 I get the error message that there is no installation package available for php5 and libapache2.  The error message is in german, so I doubt that this would help, but anyways here it is. :-) E: For package »libapache2-mod-php5« existiert kein Installationskandidat.  Do I need to add a apt-get repository? Or what am I doing wrong?


I have been trying one of the Project Euler challenges but I have gotten stuck with an annoying problem.   double sum = 0; string numbers = "3710728753390210279...."  foreach (int item in numbers) sum += item;  Console.WriteLine(sum); Console.ReadLine();   When I run this code it doesn't split each number how I expect it to e.g. the first number 3 will instead be 51 and the second number 7 will be 55. I don't understand where it gets these numbers from.   Thanks in advance.

I have a char in c#:  char foo = '2';   Now I want to get the 2 into an int.  I find that Convert.ToInt32 returns the actual decimal value of the char and not the number 2.  The following will work:  int bar = Convert.ToInt32(new string(foo, 1));   int.parse only works on strings as well.    Is there no native function in C# to go from a char to int without making it a string?  I know this is trivial but it just seems odd that there's nothing native to directly make the conversion.


Jabba the Hutt did a couple of things to Princess Leia, that seem rather unusual for the giant worm-like creature that he is, namely:   Make her wear a metal bikini. Kiss her   Given these two things, what was the full nature of the relationship between them? Specifically, did Jabba make Leia perform some sort of sexual acts with him, or was there something else going on?  From "" we know that a reason for the way Leia was displayed might have to do with a) status and b) Jabba being considered a pervert by some of his fellow Hutt. But this doesn't answer if went any further than this.

Jabba the Hutt kept scantily clad humanoid slaves.  Jabba even tried to kiss Leia.  But IIRC Hutts are hermaphrodites and of course should by all biological reasoning not be attracted to creatures of a specific sex (don't recall sexy dudes hanging around) with radically different body design.  So do Hutts find humanoid females hot, and if so why?  Or do they just do this for status and to show off to the largely humanoid populations that surround them?