I have a routing.yml file which has the following path:  path: '/downloads/{path_dir}'  it works fine when the url is /downloads/diana for example.  but when the url is /downloads/diana/cast then it says "page not found"  . How can i make this work an unlimited amount of subdirectories?

According to the , a route defined as below should trigger the specified controller for both /hello/bob and /hello/bob/bobby:  _hello:   path:     /hello/{names}   defaults: { _controller: \Drupal\mymodule\Controller\Main::Controller }   requirements:     _access: 'TRUE'     names: .+   In the case of a request to /hello/bob/bobby the {names} param would be "bob/bobby" (slash intact) and it would be up to the controller to break that down into multiple variables or to leave it as a single string. The trick to that is the altered regex (".+") used to filter that {names} param.  This  also implies that custom regex can be used to allow slashes in a route param (at least in Symfony 2).  If I try this against Drupal 8.0.0-beta15 it does not work and the specified controller is only triggered for a request to /hello/bob. However, I can confirm that this used to work in previous betas (I think up until ~beta13).  Has something changed in the way Drupal integrates with the Symfony routing component that would explain this? Perhaps there is an alternate way to accomplish the passing of slashes in routing params? I know there is a  in core, but I'm not sure if that could explain things.  I also know that route subscribers are available to manage dynamic route structures. However the case I am working on requires an almost infinite combination/number of dynamic parameters at the end of a base path (but which are trivial to parse in my controller). I'm also trying to avoid query strings (e.g. /hello?names[]=bob&names[]=bobby) for this case.  Mainly I'm just confused as to the disconnect with the Symfony documentation, which seems to state that this should be possible.    Additional Notes  After posting this question I discovered this discussion in the D8 core queues: . It seems to conclude that "menu tail" support (which is essentially what I am after) will officially be dropped in D8. That discussion ended 3 years ago and so I can only guess that some of the more generalized implementation specifics were not fully realized until recently (~beta13). This may explain why I've only now noticed this change.  I'm guessing that Drupal (not Symfony) is now generating a 404 response based on the raw slash-delimited request before any of the Symfony-specific routing logic further dissects the route (and it's param-specific regex, etc.). If this is the case it could explain why technique above stopped working. I am still wondering however if there are alternative ways to deal with this need that avoid using query params and custom route subscribers.


i query database and mapping it to class MyDataClass myDataClass = myDataDao.findMyDataByAccountNumber(accountNumber);  and i map it to other class like this MyOtherDataclass myOtherDataClass = new MyOtherDataClass(); myOtherDataClass.setBirthDate(myDataClass.getBirthDate().toString);  i know the myDataClass.getBirthDate() is null because birthdate value in my database is null. if i insert value to birthdate in database, then its normal, everything works. but if it has no value, instead of throw java.lang.NullPointerException: null, i want to set it to null in json i expect the result in json like this { AccountNumber: "12313", BlaBla: "blabla", BirthDate: null, }  =========================================================================== Found out the problem. i use .toString() on myOtherDataClass.getBirthDate().toString() so it throws null pointer.because birthDate in myDataClass is null. sorry that's my bad. solved using myOtherDataClass.setBirthDate(myDataClass.getBirthDate() != null ? myDataClass.getBirthDate().toString() : null);

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


How would one calculate the average for the following measurements:   1.22 +/- 0.05 1.21 +/- 0.05 1.21 +/- 0.05  I understand how to calculate the average of a set of numbers, but I don't know what do with these uncertainty values.

The following is taken from a practice GRE question:     Two experimental techniques determine the    mass of an object to be $11\pm 1\, \mathrm{kg}$ and $10\pm 2\, \mathrm{kg}$.    These two measurements can be combined to    give a weighted average. What is the uncertainty of the weighted average?   What's the correct procedure to find the uncertainty of the average?  I know what the correct answer is (because of the answer key), but I do not know how to obtain this answer.


I ma having an uneasiness about the use of the preposition of and from. I decided to ask when I saw . So that, am I correct to understand, according to , and , when of is used, we refer to the direct cause such as cancer, heavy headache (if there were such thing). But when from is used, we refer to the (rather) indirect cause, such as poverty, weather condition (which is to me questionable.) Am I correct to understand this in this way?

Why can't I say “She died from drinking 18 cans of Coca-Cola”? Instead, the correct sentence would be “She died of drinking 18 cans of Coca-Cola”. Why does that happen?


I want to use SVM using 10-fold cross-validation (CV). My code is as follows:  svm.model <- svm(train.d, y=train.l,                  type='C-classification',                  cross=kfold,                  kernel=kernel)   I know that in k-fold CV, k different models are trained. Which of those k models is the final svm.model? Is it the trained model with maximum accuracy?

I have some data and I want to build a model (say a linear regression model) out of this data. In a next step, I want to apply Leave-One-Out Cross-Validation (LOOCV) on the model so see how good it performs.  If I understood LOOCV right, I build a new model for each of my samples (the test set) using every sample except this sample (the training set). Then I use the model to predict the test set and calculate the errors $(\text{predicted} - \text{actual})$.  In a next step I aggregate all the errors generated using a chosen function, for example mean squared error. I can use these values to judge on the quality (or goodness of fit) of the model.  Question: Which model is the model these quality-values apply for, so which model should I choose if I find the metrics generated from LOOCV appropriate for my case? LOOCV looked at $n$ different models (where $n$ is the sample size); which one is the model I should choose?   Is it the model which uses all the samples? This model was never calculated during the LOOCV process! Is it the model which has the least error?


I want to register a domain for my hosted website and hosted e-mail. I am concerned that if i provide personal info my data will be used by spammers, identity thieves. or other attackers.  I don't want to disclose personal info even to domain registrant. What should i do? Should I just provide fake info into registration form? Or what else?

As you are all most likely aware already all domain registrars ask for your personal information.   Such personal information includes:   Forename and surname Address information Email address Telephone number   Personal information via WHOIS  Depending on the domain type such as  or  this information may become immediately available after the registration of the domain via a simple whois. If you do not want that (and in most cases you certainly don't) they offer a service where you can remove this information from the whois service but of course hiding your personal information adds yearly costs to the domain  purchase.  What happens if I use fake details when registering a domain?


I am trying to concatenate multiple users into a singular string. Here is an example of my database:  dbo.Users  | UserId | AccountId | Title | FirstName | LastName | | 1234   | 1001      | Mr    | John      | Banks    |    | 1235   | 1001      | Mrs   | Georgia   | Banks    | | 1236   | 1002      | Mr    | Chris     | Aims     | | 1237   | 1002      | Mrs   | Caroline  | Hole     |   dbo.Account  | AccountId | SignUpDate | LastLoginDate | | 1001      | 20/08/2017 | 13/06/2018    | | 1002      | 20/08/2017 | 13/06/2018    |   I want to be able to get these users in a string like this:  Account 1001:  Mr J & Mrs G Banks  Account 1002: Mr C Aims & Mrs C Hole   Can anyone make any suggestions?   EDIT:   The accounts may only have a maximum of 2 users The accounts may have a singular user The accounts may have any of the following titles:  Miss, Mr, Mrs, Ms, Dr, Prof, Major, Bishop, Rev, Sir, Dame, Lord, Capt, Lady The accounts should show Title Initial & Title Initial for matching last names The accounts should show Title Initial LastName & Title Initial LastName for non-matching last names

How do I get:  id       Name       Value 1          A          4 1          B          8 2          C          9   to  id          Column 1          A:4, B:8 2          C:9


At this point, there are many Stack Exchanges, and overlap in topic is inevitable. For example,  and  both talk about quantum mechanics. (Similar examples exist in databases, programming, etc.)  Question migration works very well when a question is posted to a site, but another SE site is probably a better "fit."  But there are obviously many cases where more than one SE community has good fit. For example,  clearly fits both chemistry and physics communities. Moreover, it would probably benefit from contributions from multiple viewpoints.  So I'm proposing a new feature. Rather than simple migration, perhaps another option would be to link or share questions on more than one SE site. The question and answers would show up on both sites, and there would be some information box indicating that the question was linked.  Badges and reputation points would be given based on the site used to access the question (i.e., the URL). It's just a way to encourage multiple viewpoints on interesting questions and will likely drive more traffic to these questions.

Sometimes a question can be on-topic for one site, but more likely to get answers from a different community, for example:   In this case the question is on-topic for Ask Different and perhaps off-topic for Electrical Engineering. However it's likely to have more understanding and knowledge and get better answers in Electrical Engineering since it's about the Arduino. Many variants of this example case also exist where the question is on-topic on both sites or somehow sits in the middle, etc.  Something very similar to my suggestion below has been asked before:  however I have incorporated the feedback to that suggestion into my suggestion so that it avoids the problems detailed there and hopefully makes it work better for the asker, answerers, and the communities and moderators of both sites.  The suggestion:  When positing such a question you would post it on the site where it's more on-topic (Primary site) and select an option to create a proxy on another site (Secondary site), you would choose the other site and at the same time pick the tags from the other site.   Posting this question would NOT create the question on the secondary site as well, it would create a proxy-object for the question and tag it with the correct tags. The primary site would post the question immediately as normal, but on the secondary site the proxy-question would need to be be moderated and approved before the proxy object becomes widely visible. When browsing the secondary site, users would only see proxy-questions for questions held on sites on which they already have an account (There could be a user setting to show proxies from all sites if desired). When clicking on a proxy-question you would be taken to the primary site in a new tab (the question is only in one place). Answers would only be posted on the primary site. Proxy questions could be visually distinguished from normal questions by various means: using different colours/style, an icon or obvious 'proxy' tag, putting them in a separate section, etc.   This idea of using proxy-questions may also help to solve a few other cross-site issues. For example when closing off-topic questions, moderators may also be able to convert the question into a proxy-object of a duplicate question on another site (I've seen suggestions around this too).


I need to create a cylinder, cut in half, with a hole cut out of it. I'm very new to Blender, and I'm sure that there are many ways to achieve the same thing, but I used a boolean modifier to remove the hole from the cylinder. The problem is that in the shape that I have, after selecting smooth shading, there are some unwanted diagonal lines above and below the hole that you may be able to see in the image.   My question is, is there a more efficient way to do this without a Boolean modifier? I have heard that Boolean modifiers are not a great tool as they can result in 'bad topology' so I would appreciate it if someone could suggest a better way to do this. I would also like to know if it is possible to have the smooth shading without these strange lines around the hole.  Thanks!

I would like to add an edge loop around each one of these windows and are not 100% sure on the best way to do it even after watching some videos.  If someone could point me in the right direction that would be great. Thanks.


Is there a website which hosts many free animations that can be used in blender? Many websites confuse each other with models (technically is model, but animated).    For example:    Thank you

Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the .  Just write in the appropriate answer/section. If you have concerns, questions, post a  question, so we don't clutter the comments, but you can link your meta question from the comments.  Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on  if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc.  Learning             Assets    (also see: )   Reference Images/Blueprints (also see: )    Tools    (also see: )      Other   Special Interest ()     Also see the .


I need to prove the theorem above and I'm stuck. What I tried: Assume $p=3k+1$ with integer $k$ This means $p \equiv 1 \,\text{mod}\, \Rightarrow \left(\frac{1}{3} \right) = \left(\frac{p}{3} \right)$ Then I tried to use quadratic reciprocity: $\left(\frac{1}{3} \right)\cdot \left(\frac{3}{p} \right)$ but there can be multiple options for that product, $\left(\frac{1}{3} \right)$ is $1$, but if $k=2$, we get $p=7$ which is congruent to $3 \,\text{mod}\, 4$, but if we take $k=4$ we get $p=17$ which is congruent to $1 \,\text{mod}\, 4$. Thank you for your time! I looked for dublicates but couldn't find any.

How would I prove that $-3$ is a quadratic residue mod an odd prime larger than $3$ if and only if $p$ is of the form of $6n+1$?  The last thing we covered in class last night was Euler criterion where it has a quadratic residue if $a^{(p-1)/2}\equiv -1\pmod p$.  I think he might have been thinking he was getting farther than he did?  I just don't know where to go from this.


I'm using a Ubuntu VM. Very recently I upgraded the system from Ubuntu 15.04 to 16.04. While installing ./vmware-tools.pl, I get the following line:  Searching for a valid kernel header path... The path "" is not a valid path to the 4.4.0-116-generic kernel headers.   I've been looking at two other solutions online [ and ] but none seem to work.   My main goal is to have Copy/Paste enabled from the Host Machine. It did work for Ubuntu 15.04, it is not working now that I upgraded. Changing Settings in the VM does not seem to be enough.

I installed my Ubuntu in vmware, no I need install vmware tools, I got error:  Searching for a valid kernel header path... The path "" is not valid. Would you like to change it?[yes]  In CentOS, I run the following commands to resolve this issue: yum install gcc-c++ yum install kernel-devel yum install kernel-headers yum -y update kernel  But I don't know how to do in Ubuntu. I have tried the following commands but nothing changed sudo apt-get update  sudo-get install build-essential linux-header-$(uname -r) sudo ./vmware-uninstall-tools.pl sudo ./vmware-config-tools.pl sudo ./vmware-install.pl  Issue Changed: Ran sudo ./vmware-uninstall-tools.pl  and deleted the folder of /etc/vmware-tools then I ran  sudo ./vmware-install.pl  Now I can successfully install vmware-tools. After restart, I can see the folder /mnt/hgfs, but can't see my shared folder.


I've been assigned a new task at my company to rewrite one of applications to Mac OSX. I just started learning about OSX programming and it looks like the native language of Mac OSX is Objective C.  Therefor I've a question - is Objective C the preferred way to write OSX applications? And also does anyone know if there are alternatives to Objective C? (I'm already familiar with C and C++.)

I've become very comfortable in the world of pointer-free, garbage-collected programming languages. Now I have to write a small Mac component. I've been learning Objective-C, but as I confront the possibility of dangling pointers and the need to manage retain counts, I feel disheartened.  I know that Objective-C now has garbage collection but this only works with Leopard. My component must work with Tiger, too.  I need to access some Cocoa libraries not available to Java, so that rules out my usual weapon of choice.  What are my alternatives? Especially with no explicit pointers and automatic garbage collection.


There are a lot of people/websites/organizations that I want to include in the acknowledgement section of my master thesis. I think it does not look good if I name all of them in sequence with a brief explanation.   Would a numbered or bullet list or even a table be acceptable for this purpose? Do you know some useful template?

I'm at the stage in writing my dissertation where most of the substantive aspects are finished and the only tasks left are more or less administrative. However, one thing that I've been avoiding is writing the "Acknowledgements" section. Obviously I will thank my supervisor, committee members, other faculty and staff that have played a meaningful role in my education, other students who have been friends and co-workers, my close friends, and my family (in that order!), but I'm struggling with how to approach it. Does anyone have advice or hot tips about what to do or not do that they'd be willing to share? Is it possible to make it meaningful without sounding contrived or pedantic or disingenuous? Do I go with the standard disclaimer about how any errors that remain after getting all that wonderful help and support are mine alone...? Thanks!


I recently asked a question which was given no answer. Only some edits and comments. the next day in the title a [on hold] was written. I didn`t understand what does it mean by [on hold]. I don't know weather it is right place to ask this question.

Questions can be closed or marked as duplicates.  What does it mean for a question to be "closed"? What does it mean for a question to be marked as a "duplicate"? Who can close a question? What are the reasons for closing a question ? Is closure the end of the road for a question? When are closed questions eligible for deletion?   Related        For more information, see "" in the .


Michio Kaku, famous theoretical physicist claims to be one of the founders of string field theory and to have contributed a equation that's "no bigger than your thumb" that ties general relativity and quantum field theory together. What is this equation I keep hearing about and why is it important?

When Michio Kaku talks about science he often likes to refer to string theory and  to his equation which looks like this (not sure if wrote right): $$L = \Phi^\dagger[i\partial_{\tau}-H]\Phi + \Phi^{\dagger} \ast \Phi \ast\Phi .$$ It appears to me like some field theory Lagrangian with an interacting and a free part but I have no idea what it actually describes.   Can all of string theory really be summarised in this equation? Can someone give a brief description?


I have some older code to maintain and I am worried about SQL injections, but I cannot use PDO. I would like instead to have a top level PHP function to examine $_GET and $_POST and stop the script if anything suspicious is found.  What would be a good function to write at this point? For example, I could start with that:  $flag = 0; $req = array_merge($_GET, $_POST); foreach ($req as $rx) {     if (strpos(strtolower($rx), 'drop ') !== false)         $flag = 1;     if (htmlspecialchars($rx,ENT_QUOTES) !== $rx)         $flag = 1; .... }   Thanks.

Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags?


I want to match the FROM part in a query string. I've a working regular expression but I think it can be bether.    FROM(?P<FROM>.+)((?=GROUP|LIMIT))|FROM(?P<FROM2>.+)   My first expression was:  FROM(?P<FROM>.+)((?=GROUP|LIMIT))   But this doesn't match the follow FROM value     SELECT * FROM Table1 t1 JOIN Table2 AS t2   The output should be: group 'FROM': Table1 t1 JOIN Table2 AS t2 I tried this, but doesn't work either.  FROM(?P<FROM>.+)((?=GROUP|LIMIT)|$)   The above regex matches but it also matches the string 'GROUP BY t1.id'.

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


How do I connect from a Win7 PC via local LAN to a Ubuntu Dektop 16.04.01 PC's command line window using only software that comes on the original installation DVDs?   Edit: Did a Full rephrase of the question, because answers so far showed that the question was not understood as I intended. This is not about anything I can download from the web an put to these machines somehow, e.g. SSH or anything. There are enough other answers that address those as linked in the first answer. So its not a duplicate. Its about can I achieve it with what is on the original DVD only. As its an ubuntu forum, answers may skip the windows side, of course.

I just installed Ubuntu. How do I set it up to allow me to ssh into it?  Right now I get "ssh: connect to host x.x.x.x port 22: Operation timed out".


I have a druid with the ability to cast level 5 spells. If I multi-class this druid to be a level 1 cleric, In theory, I should be able to read and use any cleric scrolls. But in the DMG (page 200) it says  If the spell is on your class's spell list but of a higher level than you can normally cast, you must make an ability check using your spellcasting ability to determine whether you cast it successfully. The DC equals 10 + spell's level. On a failed check, the spell disappears from the scroll with no other effect.  Now here is the conundrum, If I were to use a level 5 cleric scroll (like ) Since I can normally cast level 5 spells, (even some cleric spells because of my druid circle) Would I have to make this check because I am a level 1 cleric, or do the rules mean what they literally say here, that as long as the spell is not above a level which I can normally cast, I do not have to make the check. Is there a further clarifying rule about this I am missing or is this just something inherently vague that the DM would have to decide?

I am aware that, to use a Spell Scroll, you must have the related spell on (at least one of) your spell list(s). Then, if you have the spell slot to cast it, you succeed automatically; else, you must make an ability check in order to cast it (failure resulting in the scroll being wasted).  Consider this example : A Cleric 5 / Wizard 4 finds a Raise Dead Spell Scroll. The spell is on the Cleric List, but is a fifth level spell. Considering that the cleric-wizard has fifth level slots, but can only pick up to third level cleric spells, would he have to make the ability check to successfully cast the Raise Dead in the Spell Scroll, or would he succeed automatically ?


Hey all I am stuck I don't know what video format I need to do to export as mp4 in blender animation

Even when I start a brand new file in Blender, I only get four video output file options: AVI raw, AVI JPEG, Frame Server, FFMpeg Video.  I am running version 2.78.5 (I'm using the beta so that I can use denoising.  How can I get access to all the other video outputs other people have? Like this:


When I try to install anything through apt-get or synaptic I keep on getting this output  ... Fetched 23.6 MB in 1min 10s (336 kB/s)                                          debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up libc6:i386 (2.15-0ubuntu10.3) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing libc6:i386 (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of libtinfo5:i386:  libtinfo5:i386 depends on libc6 (>= 2.4); however:   Package libc6:i386 is not configured yet. dpkg: error processing libtinfo5:i386 (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  libc6:i386  libtinfo5:i386 E: Sub-process /usr/bin/dpkg returned an error code (1)   What could be the problem, and how can I fix it?

I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error:  root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done Building dependency tree Reading state information... Done flashybrid is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up flashybrid (0.15+nmu2) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing flashybrid (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: flashybrid E: Sub-process /usr/bin/dpkg returned an error code (1)   I also tried this one to find what is already using that file:  root@user-desktop:/home/user# lsof | grep /var/cache/debconf/config.dat lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/user/.gvfs Output information may be incomplete. dpkg-prec 4672 root 4rW REG 8,6 39658 1697827 /var/cache/debconf/config.dat   But I don't know how to fix this.


Is there a proof that any number of the form $a_1.a_2\overline{a_3}$ where we are contatenating them and they are all finite sequences of digits is rational?  Regards.

I am trying to figure out how to prove that all rational numbers are either terminating decimal or repeating decimal numerals, but I am having a great difficulty in doing so. Any help will be greatly appreciated.


I want to solve the diophantine equation $y^2+y=x^3-1$.  I thought about writing it as $(y-\omega)(y-\overline{\omega})=x^3$, where $\omega=(-1+i\sqrt{3})/2$. If we prove that $y-\omega$ and $y-\overline{\omega}$ are relatively prime in $\mathbb{Z}[\omega]$, then it follows that there is $u\in\{\pm 1,\pm \omega,\pm\omega^2\}$ and $a,b\in\mathbb{Z}$ such that $$y-\omega=u(a+b\omega)^3=u(a^3+b^3-3ab^2+3ab(a-b)\omega).$$ I think we may be able to solve it by considering all the possible $a,b$ for a given $u$.  We two cases:   Case 1: $u=\pm 1$. This case is impossible since we would have $1=\pm 3ab(a-b)$ as an equality of integers. Case 2: $u=\pm \omega$. Here we have that $a^3+b^3-3a^2b=\pm 1$ and $y=\mp 3ab(a-b)$. I don't know what to do.   To sum up, I would like to know how to prove that $y-\omega$ and $y-\overline{\omega}$ are relatively prime in $\mathbb{Z}[\omega]$ and how to deal with case 2.

The only solutions that I know of till now are $(x,y) = (1,1) \space , (19,7)$. We can note that: $$x^2-x+1 = y^3 \implies (2x-1)^2 = 4y^3-3$$ Thus, if odd prime $p \mid y$, then $(2x-1)^2 \equiv -3 \pmod{p}$ and thus, $-3$ is a quadratic residue. This implies that $p \equiv 1 \pmod{6}$ .  How can we further proceed into this problem?  Note: As mentioned in one of the links in the comments, if we instead replace $x$ by $x+1$, we get $x^2+x+1 = y^3$. Thus, the solutions for this is $(x,y) = (0,1) \space, (18,7)$.


I know that this question is similar to asking whether "Dementors" in Harry Potter can laugh or smile, but still, in the canon do the Sith ever laugh, maybe at least smile? Do they understand jokes and do they have a sense of humor?

After Force-choking Director Krennic, Darth Vader makes the comment      Be careful not to choke on your aspirations, Director.   This comment displays a sense of humor that seems entirely out of character for him. Is it ever explained in-universe?


I've installed the latest release of JDK with NetBeans on Ubuntu. When I attempt to execute a .jar file from the terminal with java -jar Minecraft.jar, this is outputted:  The program 'java' cannot be found in the following packages:  * default-jre  * gcj-5-jre-headless  * openjdk-8-jre-headless  * gcj-4.8-jre-headless  * gcj-4.9-jre-headless  * openjdk-9-jre-headless Try: sudo apt install <selected package>   What are possible fixes to this issue?

I installed sun-java6-jdk.  I need to find its home directory. JAVA_HOME must point to a JDK installation, not JRE.


Today the commands in the terminal start with "public-docking-hg-2434:~ userName$"  What is this public-docking-hg? Why did it suddenly appear?

My computer name in System Preferences > Sharing is set to "archos", but is showing as "iphone" on Terminal. It just started doing this after I loaded Xcode for doing iPhone development: Last login: Mon Nov  7 14:46:55 on ttys001 iphone:~ travis$   Any ideas what could be causing this?


I often end up issuing complex commands over ssh; these commands involve piping to awk or perl one-lines, and as a result contain single quotes and $'s.  I have neither been able to figure out a hard and fast rule to do the quoting properly, nor found a good reference for it.  For instance, consider the following:  # what I'd run locally: CMD='pgrep -fl java | grep -i datanode | awk '{print $1}' # this works with ssh $host "$CMD": CMD='pgrep -fl java | grep -i datanode | awk '"'"'{print $1}'"'"   (Note the extra quotes in the awk statement.)  But how do I get this to work with, e.g. ssh $host "sudo su user -c '$CMD'"?  Is there a general recipe for managing quotes in such scenarios?..


How to find Ubuntu which is already installed, I have dual operating system in my COMPUTER as per windows XP and Ubuntu, a few day ago I have formatted my computer & install win 7 operating system, but I have formatted C: drive only (win xp on c: drive) but not uninstall Ubuntu, now I start computer but I can not find Ubuntu which is already installed!! I have not more idea for Ubuntu, please anyone tell me how I can find Ubuntu in my computer, My computer only show windows 7 operating system.

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


I would like to know what kind of algorithm Blender uses in motion tracking?

Just curious, how or what algorithm does blender use to calculate the solve error in camera tracking. A quantitative explanation would be great.


So, I just got a new lenovo Y510p with windows 8 on it by default. I had read up about UEFI and all that, and was ready to go when it arrived today. I first tried disabling UEFI so I could install 12.04 64 bit because I wanted a stable version. It was a black screen on the installer so I googled it and enabled nomodeset to fix the problem. 12.04 installed fine, but now when I try to boot normally its a black screen again. I assumed it was the same problem so I googled how to enable nomodeset outside of the installer. I found three methods people were saying,  that says to replace quiet splash with nomodeset in GRUB,  which seems to say to replace quiet splash with nomodeset and link it with $vt_handoff with an underscore, and  which shows adding nomodeset to the end of the linux /boot line. All of these methods I tried on 12.04 and 13.04 (with UEFI reenabled) to no avail. However, on two of the methods I did get a list of checks showing if different things pass or fail on which the "generic graphic drivers" or something along those lines showed a fail. Anything I can do here??

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


i am Newbie in iOS Development. I want to set a custom font to my Label. For that, I add my Font.ttf file in my project and add it to info.plist File "Fonts provided by application" My Font Name. Also I check in my Project Build Phases "Copy Bundle Resources" that contain my Font.ttf name but label font are not change please give me solution for it.  Code for it like as  [cell.headLabel setFont:[UIFont fontWithName:@"RobotoCondensed-Bold" size:10.0f]];

I would like to have an app include a custom font for rendering text, load it, and then use it with standard UIKit elements like UILabel. Is this possible?


I am attaching a motor to a atmega32 chip. I want to build an H-birdge but before doing that, I want to control the motor using the chip. I bought few NPN Transistors from RadioShack.  I have 5V running though the breadboard. I attached Vcc to the Collector, Base to the Pin, and Emitter to the motor. And other wire of motor is hooked up to Ground. Unfortunately,  the power coming out of the transistor is too low, the motor is barely moving (As oppose when I hook up my motor straight to 5V). What is wrong? Do I need a different transistor or is my setup wrong? If it is the transistor, can you please recommend me the right one, I am not too good at those.   Thanks in advance!

I am attaching a motor to an ATmega32 chip. I want to build an H-bridge but before doing that, I want to control the motor using the chip. I bought few NPN Transistors from RadioShack. I have 5V running though the breadboard. I attached Vcc to the Collector, Base to the Pin, and Emitter to the motor. And other wire of motor is hooked up to Ground. Unfortunately, the power coming out of the transistor is too low, the motor is barely moving (As opposed to when I hook up my motor straight to 5V). What is wrong? Do I need a different transistor or is my setup wrong? If it is the transistor, can you please recommend the right one, I am not too good at those.


Determine for which values of p that the series $\sum_{n=2}^{\infty}\frac{1}{n(ln(n))^p}$ converges. Let's first discuss some strategy. I noticed that using the function $\frac{1}{n^p}$ I can set up a limit comparison test, since both of the sums are greater than 0. I can proceed with $\lim_{n \to \infty}\frac{\frac{1}{n(ln(n))^p}}{\frac{1}{n^p}}$. Would this work? Also there are different cases, where the limit could be 0, or some real number, or it could diverge. But, we know that $\sum_{n=0}^{\infty}\frac{1}{n^p}$ will always converge when $p \geq 1$, so that's always there. Another way of approaching this would be to write the series as $\frac{(ln(n))^{-p}}{n} \implies \frac{-(ln(n))^p}{n}$ and use the limit comparison test. Plz help?

Find the values of $p$ for which the series $\sum_{n=2}^\infty \frac{1}{n(\ln n)^p}$ is convergent. I know that the $p$-series $\sum_{n=1}^\infty \frac{1}{n^p}$ is convergent if $p>1$ and divergent if $p\leq1$. So with the series in question, I can't just say "when $p>1$" right? Because the denominator is $n(\ln n)^p$ not just $n^p$ as the formula states. So how should I go about tackling this problem? I know that doing a u-sub for $\ln n$ would work because $du$ would equals $\frac{dn}{n}$ but what would I do with the $p$? Thanks for the help.


I need to show that $\sqrt[7]{2}\not\in\mathbb{Q}(\sqrt[7]{3})$ but I have no idea how to do it. I've tried to reason with the extension degrees but I haven't got any satisfactory result. Could someone help me? Thanks in advance.

Let $p,q,r$ be prime integers with $q\neq r$. Let $\sqrt[p]q$ denote any root of $x^p-q$ and $\sqrt[p]r$ denote any root of $x^p-r$. Please show that $\mathbb{Q}(\sqrt[p]q)\neq\mathbb{Q}(\sqrt[p]r)$.  By Eisenstein we know the two polynomials are irreducible and so they are minimal polynomials and both have degree $p$.


using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;  public class AttemptCounter : MonoBehaviour {      public Text AttemptText;     public int Attempts = 1;     public int AddAttempts = 1;      public void AddAttempt()     {         Attempts = Attempts + AddAttempts;         AttemptText.text = ("Attempts: " + Attempts.ToString(""));         Attempts = PlayerPrefs.GetInt ("Attempts");         PlayerPrefs.GetInt ("Attempts");     }      void Update()     {         AttemptText.text = ("Attempts: " + Attempts.ToString(""));         PlayerPrefs.SetInt ("Attempts", Attempts);     } }   I Am Trying To Add a Attempts System In My Game, Every time a user will restart a level the game will add one attempt, however because when restarting the level it uses the code  SceneManager.LoadScene (SceneManager.GetActiveScene ().name);  It doesnt save the int meaning that its keeping the attempt counter on 1, can anyone help, Thanks.

I am developing my first 2D game in Unity and I have come across what seems an important question.  How do I handle data between scenes?  There seems to be different answers to this:   Someone mention using , while other people told me this should be used to store other things like screen brightness and so on. Someone told me that the best way was to make sure to write everything into a savegame everytime that I changed scenes, and to make sure that when the new scene loads, get the info from the savegame again. This seemed to me wasteful in performance. Was I wrong? The other solution, which is the one I have implemented so far is to have a global game object that isn't destroyed between scenes, handling all the data between scenes. So when the game starts, I load a Start Scene where this object is loaded. After this ends, it loads the first real game scene, usually a main menu.   This is my implementation:  using UnityEngine; using UnityEngine.UI; using System.Collections;  public class GameController : MonoBehaviour {      // Make global     public static GameController Instance {         get;         set;     }      void Awake () {         DontDestroyOnLoad (transform.gameObject);         Instance = this;     }      void Start() {         //Load first game scene (probably main menu)         Application.LoadLevel(2);     }      // Data persisted between scenes     public int exp = 0;     public int armor = 0;     public int weapon = 0;     //... }   This object can be handled on my other classes like this:  private GameController gameController = GameController.Instance;   While this has worked so far, it presents me with one big problem: If I want to load directly a scene, let's say for instance the final level of the game, I can't load it directly, since that scene does not contain this global game object.  Am I handling this problem the wrong way? Are there better practices for this kind of challenge? I would love to hear your opinions, thoughts and suggestions on this issue.  Thanks


this code $\mathcal{Y}$ generates this symbol by default on overleaf    is this font called Computer Modern, designed by Donald Knuth?  is there a way to find out which font I am using on overleaf?

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


Based on the question in post above, most people suggested that "parameterized query" is the best solution to avoid the sql injection.   Below is my code by using the sql injection  public DataSet checkemp(string user) {     strsql = "SELECT * from employee where employeeid = @userid";     SqlConnection con = new SqlConnection(connectionString);     SqlDataAdapter da = new SqlDataAdapter(strsql, connectionString);     da.SelectCommand.Parameters.Add("@userid", SqlDbType.VarChar, 50).Value = user;         // pretend the user name is "Micheal"     con.Open();     DataSet ds = new DataSet();     da.Fill(ds);     con.Close();     con.Dispose();     return ds; }   During the debugging, I can only get the query "SELECT * from employee where employeeid = @userid" if I point on "strsql" label, but not "SELECT * from employee where employeeid = 'Micheal'.  Any solution suggested to solve this question and make it most efficiency? thanks everyone!

I have the following code:  Using cmd As SqlCommand = Connection.CreateCommand     cmd.CommandText = "UPDATE someTable SET Value = @Value"     cmd.CommandText &= " WHERE Id = @Id"     cmd.Parameters.AddWithValue("@Id", 1234)     cmd.Parameters.AddWithValue("@Value", "myValue")     cmd.ExecuteNonQuery End Using   I wonder if there is any way to get the final SQL statment as a String, which should look like this:  UPDATE someTable SET Value = "myValue" WHERE Id = 1234   If anyone wonders why I would do this:   for logging (failed) statements for having the possibility to copy & paste it to the Enterprise Manager for testing purposes


I need to install programs in multiple computers but I can't use Internet. There's a way to install programs from USB? (I have only one computer connected)

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


Currently tying to keep my code within an object, I would like to convert the contents of a click event into a method but not overly sure how this is done. The current code looks like this:  Current JS  init: function(){              var _this = this,                 slides_li = _this.els.slides.children(),                 large = 260,                 small = 60;              // Hover             slides_li.on('mouseover', function(){                 $(this).stop(true, true).animate({ opacity: 1 }, 300);             }).on('mouseout', function(){                 $(this).stop(true, true).animate({ opacity: .8 }, 300)             });              // Click handlers             slides_li.on('click', function(){   // Would like to move this code into its own method toggle_slides() ??                  $('.active', _this.els.slides).not(this).animate({                     width: small                 }, 300).removeClass('active');                 // animate the clicked one                  if ( !$(this).hasClass('active') ){                     $(this).animate({                         width: large                     }, 300).addClass('active');                 }                             });                          }   but I would like the code to look like this but I know I'm missing a few key things plus this obviously doesn't mean the clicked event:  JS  init: function(){              var _this = this,                 slides_li = _this.els.slides.children(),                 large = 260,                 small = 60;              // Hover             slides_li.on('mouseover', function(){                 $(this).stop(true, true).animate({ opacity: 1 }, 300);             }).on('mouseout', function(){                 $(this).stop(true, true).animate({ opacity: .8 }, 300)             });              // Click handlers             slides_li.on('click', function(){                 toggle_slides(); //pass in this?             });                          },         toggle_slides: function(){ // add argument for this?                $('.active', _this.els.slides).not(this).animate({                     width: small                 }, 300).removeClass('active');                 // animate the clicked one                  if ( !$(this).hasClass('active') ){                     $(this).animate({                         width: large                     }, 300).addClass('active');                 }                         }   Can anyone offer some advice on how to make this work?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


Is there a way to use commands to take the Motion data from one entity and merge it onto another? I want to let another entities move in unison with the player. Just copying the Motion tag does not work, because the X and Z motion seems to always be 0.

Okay, so I've been searching all over the internet for an explanation of data modify ever since I heard Sethbling passively mention it in one of his videos. The only  thing I could find on it was the wiki and the update log for the 1.14 snapshot. So, I checked these, and they hardly explained it at all. I can get /data modify block 123 20 123... and that's as far as I get.  Minecraft wiki does not at all define clearly what  is (the thing meant to go after coords), nor does it specify what each operation does to what. Operations include (without explanation, and excluding set (which it does explain)): append, insert, merge, and prepend. Then, it has from|value as the next option, which aren't explained either. After this, it just has block/entity and coords/id. So, I know the format (mostly), but I haven't the slightest idea what any of it means. And nothing I've seen on the internet even mentions the command save for Minecraft wiki itself.  Please explain if you know what data modify is. Thanks!


This keybinding is very irritating because it is very close to the copy-command Ctrl+C. Partially, the problem can be explained by my keyboard layout Dvorak such that the browser may consider the keybinds as CTRL+I.  How can you disable the CTRL+SHIFT+C binding in Google Chrome?

How can I disable the Keyboard Shortcut ctrl+shift+c in Google Chrome to bring up the Developer Tools console?  I find myself trying to copy+paste content from the browser and mistakenly typing ctrl+shift+c when I really want to do ctrl+c instead.  How can I disable the current keyboard binding or change ctrl+shift+c to do the same as ctrl+c in Google Chrome?


I would like to have plants, rocks, sticks and other debris scattered randomly on the ground in my scene, but I don't want to have to place it all there by hand. Is there an easy way to do this in Blender?

How can I make a number of objects (or copies of one object) sit "snugly" on an irregular surface - like trees or rocks on irregular ground?  I once came across a tutorial that covered this but I cannot find it again.  The only thing I can think of is to create a "pseudo object" whose vertices represent the desired relative target locations then use retopologize to make the "pseudo object" vertices conform to the surface of the irregular target object and, finally, use dupliverts to place the added objects.


If we have Einstein's field equation $$R_{\mu\nu} - \frac{1}{2}g_{\mu\nu}R=kT_{\mu\nu}$$ could we generalize it to $$R_{\mu\nu} - \frac{1}{2}m_{\mu\nu}R=kS_{\mu\nu}$$ where $S_{\mu\nu}$ is the source of the curvature and $m_{\mu\nu}=\eta_{\mu\nu}+f_{\mu\nu}$ where $f_{\mu\nu}$ is the perturbation caused by the force. Could we write one of these equations for each force, solve the equation for $f_{\mu\nu}$, sum up all of the $f_{\mu\nu}$ into one perturbation and add it to $\eta_{\mu\nu}$ to get one metric $g_{\mu\nu}$. For example, since the electromagnetic field is extremely similar to the gravitational field, we could solve for the acceleration and find Poisson's equation. Using Einstein's "derivation" of general relativity one could find that $$R_{\mu\nu} - \frac{1}{2}g_{\mu\nu}R=\frac{2q}{m\epsilon_0 c^2}Q_{\mu\nu}$$ Where $$g_{\mu\nu}=\eta_{\mu\nu}+A_{\mu\nu}$$ $A_{\mu\nu}$ is the electromagnetic pertubation and $$Q_{00}=\rho_Q$$ $$Q_{ij}=\frac{1}{c}v^i v^j\rho_Q$$ $$Q_{i0}=\frac{\vec{J}}{c}$$ and $\rho_Q$ is the charge density These are all the components since the tensor is symmetric. With this you can derive Maxwell's equations. But is this a valid approach, to describing how electromagnetism curves space-time? There is a related question  but this is about describing the forces using a Yang-Mills approach i.e. a curvature in the connection. In this question I am excluding gauge curvature and only talking about space time curvature.

After reading many questions, like   and , I wonder:   Is it possible to consider the other fundamental forces too, the electroweak interaction and the strong interaction or ultimately the unification of these, to be fictitious forces like gravity in the framework of general relativity?   If we want a final unification of all fundamental forces, hasn't this feature of gravity to become a feature of the other forces as well?


Because I have a group that acts unpredictably, I stay away from laying out the whole adventure - let alone the campaign - beforehand. Instead I write each new session as a response to their actions in the previous one.   This is a problem when I can't predict the speed they will progress through events. Sometimes a session I expected to take five hours only takes two because I was out of material (I'm surprisingly bad at coming up with things on the fly), while other times it takes three sessions to get through what I thought was one session worth of material. Combat and freeform decision-making scenes are especially unpredictable.  How can I estimate how fast a group of players will go through a section of adventure, to facilitate a more appropriate amount of preparation? I've run into this problem in systems as diverse as World of Darkness, D&D, and Shadowrun.

Obviously you need to have some high level idea of what's going on in the world around the players, and where you are heading with the story, but in an ongoing game at some point players will be players and will head off in a different direction to what you planned.  How far ahead should you be planning to minimise or eliminate being caught off guard, but also try to minimise the amount of 'wasted content' you come up with but never gets used?


Straight to the point.  First, this is . This is specifically about the presented age of Anakin’s “Force Ghost” and I am not seeking deep evidence of age-ism in any way; just evidence of age of the character being a motivating factor.  Now, I have read all of the reasoning I have been able to consume on why Anakin’s “Force Ghost” was changed from Sebastian Shaw to Hayden Christen at the end of Return of the Jedi but none seems to address an issue I see: Was age a primary motivating factor in redoing the “Force Ghost” from being an older version of Anakin versus a younger version of Anakin.  Darth Vader is old and decrepit and evil… But Anakin Skywalker is young and brave and beautiful… Seems quite patronizing and even makes his redemption at the end of Return of the Jedi seem fake. He found good in him when he was Darth Vader and saw the Emperor killing his son and turned on the Emperor to save the future.  To me, Luke being young and his father being old—and a ghost—makes sense. Luke never fully went “dark” and his father is the one who ultimately ensured he would stay in light. Yes, Anakin was Darth Vader for a good chunk of his adult life… But still… The ending where Luke see’s his father as some kid who is younger than him? It’s just odd.  Was age a role in George Lucas’s desire to do this so Anakin would look young and cool to the merchandise buying youth of today?  More details.  This question and answer thread was spurred by this recent question:      And this question and answer thread:      First the first question about recognition is quite fair: Seeing a young man appear out of nowhere after watching an old Darth Vader die is just cognitively hard to understand unless you have watched the prequels.  And the second question was simply about changing Anakin’s head to make his appearance as a “Force Ghost” more consistent with the prequels.  But this question is something different about this whole Sebastian Shaw versus Hayden Christensen switcheroo: Was any of this based on simple audience pandering towards age? Meaning, George Lucas clearly geared the prequels towards kids—far more than the original trilogy—but to me this Anakin “Force Ghost” thing really irks me.  I mean, I understand the bass-ackwards logic that Anakin was only a Jedi for a certain period of his life and then became Sith in the later part of it. But to me it seems the story of redemption is actually lost. Vader/Anakin could not fight age or the decay of his already dysfunctional body. And in an act of love for his son, he killed a great source of evil that destroyed his life, family and threatened to destroy the future. To me, in the end… When Darth Vader was unmasked as an old, dying man that old dying man was redeemed. His spirit as a Jedi was validated by that final act. Thus his  “Force Ghost” being old makes sense.  UPDATE: FWIW, Star Wars concept  that messed around with the concept of what Anakin’s “Force Ghost” was meant to represent in The Force Awakens:       ‘When you light a candle, you also cast a shadow.’ That inspired me to   propose, for the first time, that Anakin’s ghost could come back […]   If we see Anakin Skywalker, because he does flow back and forth   between Darth Vader and Anakin, let’s see him as a character with a   dark and light side. The reason Luke is this whole new entity is   because he was the first to acknowledge his own dark side — that it   was not separate from him.   The ideas were ultimately discarded, but to me it shows that they idea that young Anakin is simply the “good” version because that is before he turned “bad” is actually not as solid an idea as some would imply. They just wanted a teen-heartthrob young guy to tie the concepts of the prequels to the original trilogy.

At the end of "Return of the Jedi" Anakin's head was replaced with the head of Hayden Christensen.   question asks when this was done, but what were Lucas' reasons for doing this?  All of the original Star Wars fans would surely be disappointed (as they were).  There is indeed proof that only the head on the ghost was changed, which makes it all the more ridiculous.    It seems that every time they release Star Wars on a new media they change something.  Why doesn’t it stay the same?


I'm trying to run a simple helloworld.py example for pygtk on Ubuntu 14, this is my Ubuntu version info:  This is my ubuntu version: Distributor ID: Ubuntu Description:    Ubuntu 14.10 Release:    14.10 Codename:   utopic   I have both Py2 and Py3 installed (Python2.7 and Python3.4), through Ubuntu package manager, but I want to run pygtk with python3.  Now I try to run the pygtk sample, and I get:  $ python3 helloworld.py  Traceback (most recent call last):   File "helloworld.py", line 2, in <module>     import pygtk ImportError: No module named 'pygtk'   Ok, so pygtk module is missing, so I try to install it using pip:  $ sudo pip3 install pygtk Collecting pygtk   Using cached pygtk-2.24.0.tar.bz2     ********************************************************************     * Building PyGTK using distutils is only supported on windows. *     * To build PyGTK in a supported way, read the INSTALL file.    *     ********************************************************************     Complete output from command python setup.py egg_info:     ********************************************************************      * Building PyGTK using distutils is only supported on windows. *      * To build PyGTK in a supported way, read the INSTALL file.    *      ********************************************************************      ----------------------------------------     Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4xuy8p4h/pygtk   The confusing part is, the pygtk site tell me:       PyGTK is included in most Linux distributions (including Debian,   Fedora, Ubuntu, Opensuse,  Gentoo, Mandrake, Redhat, SUSE...); the   source code can also be downloaded and compiled  from the links below.   Where and how is pygtk installed in my Ubuntu system, and what's the issue with all the errors I'm getting. Or is it that I need to build pygtk from source?  EDIT:  The other confusing part is the message about distutils; is pip part of distutils, so the message is telling me that pygtk cannot be installed using pip on systems other than Windows (probably it is and that's why the message is  generated, but one can't be too sure), or is it that pip not part of distutils, in which case pip CAN be used to install pygtk?! (Why do I need to trace the history of packages and their name changes and which scripts/tools belong to which packages just to understard an error message!)

I'm new to Linux but not to app development. I come from a RealBasic on a Mac background.   I've accepted that I need to learn a new language to develop for Linux (since RB won't run on 64 bit distros and is a cloed proprietary language) but I want to make sure I pick the right one.   I've been looking at Python and was all set to go until I read that PyGTK is becoming obsolete with the introduction of GTK 3. Is this true? The Ubuntu developer website stills seems to recommend it with Glade for the UI but I want to make sure that I don't learn something that's on the way out!


Trying to replace all a's in the string ignoring the case.  str = "All a's will be replaced"; str.replace(/a/gi, 'Aa');   As expected, the above line of code produces Aall Aa's will be replAaced   But,  regExp = new RegExp('/a/gi'); str.replace(regExp, 'Aa');   the above line with the use of RegExp pattern produces original string All a's will be replaced  How to achieve expected result?

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


So, after an install of Xubuntu, my grub loader has 3 things, Xubuntu and then 2 Windows 8 Loaders How can I fix this?

My system has 2 OS: Win 7 x64 and Ubuntu 12.10. I'm getting 2 Windows boot options: "on dev/sda1" and "on dev/sda2". What does this mean? What implications does this have for my continued Windows usage and for when I may remove the Ubuntu installation later?  Longer: I was running just Win 7 x64, then installed Ubuntu 12.10 along side it. Was trying to boot back to Windows 7 only to get a "disc reading error." Booted back to Ubuntu, grabbed boot-repair, then used mbr repair in boot-repair. System could then boot back to Windows but in fact always did so directly, i.e. always by-passed Ubuntu. Then I used the Ubuntu LiveCD to get boot-repair and used the "Recommended" repair option. Now everything works normally except for the issue described here. Both Windows options in Grub boot to the same Win installation I had previously.  p.s. Running "sudo update-grub" maintains both the Windows options.


I need to insert +30.000 field values in one of my client site for 1 content type only. I can not use the standard way (node_load, change, node_save) because when I save node this start a series of events and actions.   So, can I insert my values directly to the db table ? Or is there an other way ?   M.

I've got around 70k nodes of specified type on my site. I need to run an update on them. Some operations and setting one field to desired value. node_save is really slow and it causes crashes (too long callstack mayby). Is there faster way to write info on this one particular field?  There was field_attach_update mentioned in one post, but it isn't much faster.  EDIT: There is quite complex view built on this node type, but is not working on this field which I want to update.


I have seen in page 627 (Exercise 1) of Taheri's book: Function spaces and partial differential equations that if $n\geq2$, then $W^{1,n}(\mathbb{R}^n)$ does not embed into $L^\infty(\mathbb{R}^n)$. But, can we say when $n=1$? Is there any not bounded function in $W^{1,1}(\mathbb{R})$?

Are all Sobolev functions in $W^{1,p}(\mathbb{R})$ essentially bounded?  Could any one tell me is this correct or give me an example of a function which belongs to $W^{1,p}(\mathbb{R})$ but is not essentially bounded?


At school I was told "Never use a LED without a resistor (before or after the LED)!".  Why is that?  If I have a 2V LED why can't I simply use a 2V power supply?  Why should I choose a 3V (for example) power supply and put a resistor in front?  And how to calculate the resistor value?

I'm having a bit of trouble understanding currrent limiting resistors in simple LED circuits. I know that I can determine the optimal resistor like so:  \$\displaystyle R=\frac{V_{s}-V_{f}}{I_{f}}\$  But I'm having a hard time understanding how this one value modifies the voltage and the current to the correct values for the LED. For example, if my calcuations for a super bright blue LED (with \$V_{f}\$ being 3.0-3.4 V and \$I_{f}\$ being 80 mA, and a voltage source of 5 V) gives me 25 ohms (using the lower bound of the forward voltage), that's fine. So the current throughout should be 80 mA and the voltage drop for the resistor and LED should be 2 and 3 volts, respectively.  But what if I used a 100 ohm resistor instead? Or any other value—how would I calculate the voltage drops and current? Would I assume one of them stays the same?


I am trying to change the color of the <lightning-output-field> in LWC using CSS but it doesn't work. I am able to change the background color though. Is there any workaround for this? I don't seem to find any documentation online. Please find my html and css.  HTML  <template>        <lightning-record-view-form object-api-name="Invoice__c" record-id={recordId}>           <lightning-output-field field-name="Name" class="baby"> </lightning-output-field>           <lightning-output-field field-name="Total_Amount__c"></lightning-output-field>           <lightning-output-field field-name="Password__c"></lightning-output-field>       </lightning-record-view-form>  </template>   CSS  .baby {    background-color:lightblue;    color: red; }   Output:

How can I change the colors of lightning-button?  I tried doing this in my css:  .my-button {     background-color: #14a6bc;     color: #ffffff; }   and applying that class to my <lightning-button> and removing the variant but I still get the base colors? I am trying to use these examples:


IDE : IntelliJ I just clicked on the "clear" in the unstash window by mistake and lost a huge stash. Is there any way to get them back?  (Why is the question getting voted down when none of the solutions that people suggested helped me to recover from my problem. Is one suppose to ask only pedantic and pedagogical questions? )

I frequently use git stash and git stash pop to save and restore changes in my working tree. Yesterday I had some changes in my working tree that I had stashed and popped, and then I made more changes to my working tree. I'd like to go back and review yesterday's stashed changes, but git stash pop appears to remove all references to the associated commit.  I know that if I use git stash then .git/refs/stash contains the reference of the commit used to create the stash. And .git/logs/refs/stash contains the whole stash. But those references are gone after git stash pop. I know that the commit is still in my repository somewhere, but I don't know what it was.  Is there an easy way to recover yesterday's stash commit reference?  Note that this isn't critical for me today because I have daily backups and can go back to yesterday's working tree to get my changes. I'm asking because there must be an easier way!


What is the time complexity of standard queue operations such as push_back and pop_front provided by std::queue in C++ STL? It is not mentioned in the documentation.

Apparently ;-) the standard containers provide some form of guarantees.  What type of guarantees and what exactly are the differences between the different types of container?  Working from  (about ) I have come up with this:  Container Types: ================ Container:     Forward Container         Reverse Container             Random Access Container     Sequence         Front Insert Sequence         Back  Insert Sequence     Associative Container         Simple   Associative Container         Pair     Associative Container         Sorted   Associative Container         Multiple Associative Container  Container Types mapped to Standard Containers =============================================  std::vector:    Sequence    Back        Sequence                    Forward/Reverse/Random Container std::deque:     Sequence    Front/Back  Sequence                    Forward/Reverse/Random Container std::list:      Sequence    Front/Back  Sequence                    Forward/Reverse Container std::set:       Sorted/Simple/Unique    Associative Container       Forward Container std::map:       Sorted/Pair/Unique      Associative Container       Forward Container std::multiset:  Sorted/Simple/Multiple  Associative Container       Forward Container std::multimap:  Sorted/Pair/Multiple    Associative Container       Forward Container   Container Guarantees: =====================                                                                                Simp                                                                                or                           For   Rev  Rand        Front  Back  Assoc        Sort   Mult                     Cont: Cont: Cont Cont: Sequ: Sequ:  Sequ: Cont:        Cont:  Cont: Copy    Const:      O(n) Fill    Const:                             O(n) begin()             O(1) end()               O(1) rbegin()                        O(1) rend()                          O(1) front()                                    O(1) push_front()                                     O(1) pop_front()                                      O(1) push_back()                                             O(1) pop_back()                                              O(1) Insert()                                                                          O(ln(n)) Insert: fill                               O(n) Insert: range                              O(n)                                   O(kln(n)+n) size()              O(n) swap()              O(1) erase key                                                     O(ln(n)) erase element                                                 O(1) erase range                                                   O(ln(n)+S) count()                                                       O(log(n)+k) find()                                                        O(ln(n)) equal range                                                   O(ln(n)) Lower Bound/Upper Bound                                                    O(ln(n)) Equality                  O(n) InEquality                O(n) Element Access                       O(1)


Code  \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath, amsthm, amssymb} \begin{document} $\ker(A)$ works!  $\ran(A)$ does not work. \end{document}   How can you have the Ran(A) in the math mode?

Mathematical operators, such as function names, should be set in roman type, not italics. Latex already has commands for some operators, including \max, \min, and \log.  How can I define additional such commands?


In my controller I retrieve a list of products along with an image name, then scale the image down to the size needed by the view.  The images are now in memory, ready to be written to the response stream.  I know the client will send a response for each image but I have no idea how to hook into it to provide the image.  View code:      @foreach (var product in Model.Products)     {        @product.Name        <img src="@product.Thumbnail"/>        Priced From $@product.LowestPrice     }   Controller:      model.Products =        DataContext.Products.Where(p => p.Category.Name             .Equals(id)).Select(m => new ProductListItem                 {                    Name = m.Name,                    Thumbnail = ImageResizer.Resize(m.Image, 75, 100, <normally I put the output stream here>),                    LowestPrice = SqlFunctions.StringConvert( m.PriceSet.Prices.Min(p =>p.Price1))                 }     );   Where ImageResizer.Resize() signature is  Resize(string imageName, int width, int height, Stream outputStream)   So my question I think should be- what do I put in for the image name and how do I listen for requests for each image that can be written to the stream?

Can I create a Controller that simply returns an image asset?  I would like to route this logic through a controller, whenever a URL such as the following is requested:  www.mywebsite.com/resource/image/topbanner   The controller will look up topbanner.png and send that image directly back to the client.  I've seen examples of this where you have to create a View - I don't want to use a View. I want to do it all with just the Controller.  Is this possible?


I have Google searched this many times, but I only get "how to make a mobile version of your website" and such. I want to know if I am able to use my Android phone to write code/script and view the results. If so, how would I go about it?

I have a pretty long commute to work and own an android phone. I figure it would be nice to do some simple programming on the way. I'm not picky on which language to code on. I usually have an internet connection on the train.  I've been looking through the android market but haven't found any apps that offer a "development environment" or an editor with a compiler. Is any development ON the Android possible? Does an app for this exist?


I have just finished watching Star Trek: Next Generation and Voyager they seemed to be in the same timeline and fit together.   I have now started on ST:Discovery.  The timeline doesn't make much sense to me because in *Voyager they had insane shield technology that Janeway's future self gave to Voyager before their return.  So my guess is that Discovery is prior in the timeline. Is my confusion because I haven't yet seen Deep Space Nine?

The series Star Trek: Discovery, due to be released in early 2017, will be the first new Star Trek series since Enterprise. According to :      Set to premiere on CBS in January 2017 before moving to All Access,   the series will introduce new characters to the Star Trek franchise,   and will not be related to the 2016 film Star Trek Beyond.   The same article mentions that it will take place in the original timeline.   Has there been any confirmation of what year the series is set in? Is it before or after Star Trek: Beyond?


I need help with some questions regarding the normal random vector. Suppose that I have a random vector that follows a multivariate normal distribution $$ \boldsymbol{X} = \begin{bmatrix} X_1 \\ X_2 \\ X_3 \end{bmatrix} \sim \mathcal{N}_3 \left( \begin{bmatrix} \mu_1 \\ \mu_2 \\ \mu_3 \end{bmatrix}, \begin{bmatrix} \sigma_{11} & \sigma_{12} & \sigma_{13} \\ \sigma_{21} & \sigma_{22} & \sigma_{23} \\ \sigma_{31} & \sigma_{32} & \sigma_{33} \end{bmatrix} \right) $$ Now, for some reason, I can observe $X_1 = x_1$. I know that the sub-vector $\begin{bmatrix} X_2 \\ X_3 \end{bmatrix} \sim \mathcal{N}_2 \left( \begin{bmatrix} \mu_2 \\ \mu_3 \end{bmatrix}, \begin{bmatrix}  \sigma_{22} & \sigma_{23} \\  \sigma_{32} & \sigma_{33} \end{bmatrix} \right)$, but I wonder if it is the case that $$ \boldsymbol{X} \ \mid X_1 = x_1 \quad \text{or} \quad \begin{bmatrix} x_1 \\ X_2 \\ X_3 \end{bmatrix} \sim \mathcal{N}_3 \left( \begin{bmatrix} x_1 \\ \mu_2 \\ \mu_3 \end{bmatrix}, \begin{bmatrix} 0 & 0 & 0 \\ 0 & \sigma_{22} & \sigma_{23} \\ 0 & \sigma_{32} & \sigma_{33} \end{bmatrix} \right) \quad ? $$ That would be my first question. Another question would be, with the same normal random vector $\boldsymbol{X}$, I know that any linear combination of the components of $\boldsymbol{X}$ is also normally distributed. Specifically, $$ a_1 X_1 + a_2 X_2 + a_3 X_3 \sim \mathcal{N}_1 \left( \begin{bmatrix} a_1 & a_2 & a_3 \end{bmatrix} \begin{bmatrix} \mu_1 \\ \mu_2 \\ \mu_3 \end{bmatrix}, \begin{bmatrix} a_1 & a_2 & a_3 \end{bmatrix} \begin{bmatrix} \sigma_{11} & \sigma_{12} & \sigma_{13} \\ \sigma_{21} & \sigma_{22} & \sigma_{23} \\ \sigma_{31} & \sigma_{32} & \sigma_{33} \end{bmatrix} \begin{bmatrix} a_1 \\ a_2 \\ a_3 \end{bmatrix}  \right) $$ Now, again, I can observe $X_1 = x_1$, and I wonder what the distribution $\boldsymbol{X} \ \mid X_1 = x_1 \quad \text{or} \quad \begin{bmatrix} x_1 \\ X_2 \\ X_3 \end{bmatrix}$ is. I think this is related to my first question. Please give me some insights if you can. Thank you so much.

We have a multivariate normal vector ${\boldsymbol Y} \sim \mathcal{N}(\boldsymbol\mu, \Sigma)$. Consider partitioning $\boldsymbol\mu$ and ${\boldsymbol Y}$ into  $$\boldsymbol\mu = \begin{bmatrix}  \boldsymbol\mu_1 \\  \boldsymbol\mu_2 \end{bmatrix} $$ $${\boldsymbol Y}=\begin{bmatrix}{\boldsymbol y}_1 \\  {\boldsymbol y}_2 \end{bmatrix}$$  with a similar partition of $\Sigma$ into $$  \begin{bmatrix} \Sigma_{11} & \Sigma_{12}\\ \Sigma_{21} & \Sigma_{22} \end{bmatrix} $$ Then, $({\boldsymbol y}_1|{\boldsymbol y}_2={\boldsymbol a})$, the conditional distribution of the first partition given the second, is  $\mathcal{N}(\overline{\boldsymbol\mu},\overline{\Sigma})$, with mean $$ \overline{\boldsymbol\mu}=\boldsymbol\mu_1+\Sigma_{12}{\Sigma_{22}}^{-1}({\boldsymbol a}-\boldsymbol\mu_2) $$ and covariance matrix $$ \overline{\Sigma}=\Sigma_{11}-\Sigma_{12}{\Sigma_{22}}^{-1}\Sigma_{21}$$  Actually these results are provided in Wikipedia too, but I have no idea how the $\overline{\boldsymbol\mu}$ and $\overline{\Sigma}$ is derived. These results are crucial, since they are important statistical formula for deriving Kalman filters. Would anyone provide me a derivation steps of deriving $\overline{\boldsymbol\mu}$ and $\overline{\Sigma}$ ? Thank you very much!


I have an ASP.Net page that will be hosted on a couple different servers, and I want to get the URL of the page (or even better:  the site where the page is hosted) as a string for use in the code-behind.  Any ideas?

I need to be able to get at the full URL of the page I am on from a user control.  Is it just a matter of concatenating a bunch of Request variables together?  If so which ones? Or is there a more simpiler way?


Previously , however all of the answers are wrong -- including the chosen one. So, let's try it again. (I've specified the Ubuntu version number at the top to indicate the newness of this one). I'm coming at this as someone who has just installed Ubuntu and truly wants the latest version of Chromium. Currently, the most recent version of Chromium is Version 30. PPAs that don't work and should not be suggested:  ppa:a-v-shkop/chromium As of writing, this PPA only supports  and . It hasn't been updated in three months.   As of writing, this PPA only supports . This PPA is so outdated  that I've submitted a .   As of writing, this PPA only supports . It hasn't been updated in 11 months.

Is there an easier way to install Chromium than what is described ?  Furthermore, is there an easier way to stay up to date with current Chromium releases rather than having to re-build Chromium each release? (a script which automatically grabs and installs the latest build possibly?).  Related:


I heard that the K Desktop Environment Plasma Desktop 5 is out. I want to try it out on my Ubuntu 14.04 computer (not Kubuntu).  I am aware that Project Neon no longer exists. Can anyone tell me a PPA that still works?  EDIT: This is actually a dupicate question of .

KDE Plasma 5 is hitting release candidate now: .  How can I install plasma 5 in Ubuntu 14.04.


I know that de Broglie proposed that all matter exhibit wave particle duality and that they have a wave associated with them which he called matter wave. But are matter wave and wave function of a particle the same thing? If yes, how? And if no, what is the difference between a matter wave and a wave function?

Is there any mathematical relationship between matter wave (or de Broglie wave) and wave function?  Also, does each type of particle (e.g. photon, electron, positron etc.) have its own unique wave function?


How did Einstein derive his most famous equation: $$E=mc^2$$  Is the above equation a special case of  $$E^2=m^2c^4+p^2c^2$$ Its derivation? What is the difference between them?

I have been having trouble distinguishing these two equations and figuring out which one is correct.  I have watched a video that says that $E^2=(mc^2)^2+(pc)^2$ is correct, but I do not know why.  It says that $E=mc^2$ is the equation for objects that are not moving and that$ E^2=(mc^2)^2+(pc)^2$is for objects that are moving.  Here is the link to the video:


I need to randomly generate a 8-digit number (from 00000000 to 99999999) so I used an srand() function, but when I run it, happens to be that the max number of digits is five (ex. 31567). I changed 'int' with 'double' in order to get the 8 digits, but an error message (  invalid operands of types 'int' and 'double' to binary'operator%'  ) appears. Looking forward a code that could help me use double variables, found out some examples, the problem is that when I try to run 'em, my compiler (Dev C++ 5.7.1) sends a c++0x_warning.h (  This file requires compiler and library support for the \ISO C++ 2011 standard. This support is currently experimental, and must be \enabled with the -std=c++11 or -std=gnu++11 compiler options.  ). I don't know what to do at this point. This is the code I've been using (the one which prints only 5 digits): #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<cstdlib> #include<time.h> #include<iostream> #include<locale.h> int main(int argc, char *argv[]) {     setlocale(LC_ALL, "");     using namespace std;     int num=0, cant=1, cont=0, bot=00000000, top=99999999;     /*Aquí se incluyen todas las variables que se utilizarán en la función random para generar un folio.*/         srand(time(NULL));         while(cont<cant)         /*Generará una cantidad de ocho dígitos aleatoriamente que servirá como folio.*/         {             num=bot+rand()%((top+1)-bot);             /*La cantidad irá desde el 00000000 hasta el 99999999 de manera aleatoria*/             cout<<"\n\n Utilice el folio que se muestra a continuación para recoger su orden: "<<num;             cont++;         }     getch();     return 0; }

I need to generate random numbers within a specified interval, [max;min].  Also, the random numbers should be uniformly distributed over the interval, not located to a particular point.  Currenly I am generating as:  for(int i=0; i<6; i++) {     DWORD random = rand()%(max-min+1) + min; }   From my tests, random numbers are generated around one point only.  Example min = 3604607; max = 7654607;   Random numbers generated:  3631594 3609293 3630000 3628441 3636376 3621404   From answers below: OK, RAND_MAX is 32767. I am on C++ Windows platform. Is there any other method to generate random numbers with a uniform distribution?


Looking at the definition for compactness, i.e. "every open cover has a finite subcover", it seems like $[0,1]$ wouldn't be compact, since you can't construct a cover with a finite subcover that fills the bounded space.  This is obviously wrong because of Heine-Borel. Any counter-examples?

Let $[a,b]\subseteq \mathbb R$. As we know, it is compact. This is a very important result. However, the proof for the result may be not familar to us. Here I want to collect the ways to prove $[a,b]$ is compact.   Thanks for your help and any link.


For example, "Apple schmapple" to mean "I scoff at your Apple product".

Has English adopted any common morphemes from any "exotic"-type languages?  By that, I'm trying to exclude our most frequent borrowings; i.e. French, Latin, and Greek, from which nearly all our suffixes and prefixes are borrowed — endings like -ance, -ette,  -ience, -ium, -ology, and innumerable more.  (Prefixes would be for example, anti-, circ-, princ-)  However, once you escape those big 3, I find it gets a lot harder; I personally can't think of any off the top of my head.  Can anyone else?


I personally don't like GNOME so just wanted to know if 17.10 is a GNOME-only version or if there is a non-GNOME version.      I'm currently using Ubuntu 17.04.

This question exists as it fills a specific criterion.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will likely be closed per the . More information on the .   What kind of desktop environments or shells are there for Ubuntu users to install?  Please list a desktop environment or shell for each:   a description on why you like or suggest it (features, performance, etc.). a good screenshot, preferably of it running on Ubuntu and showing off some of its features. the minimal requirement for it to be usable, If there's any setting to lower it's requirement (Like kde's low-fat profile); how to enable the said setting some instructions on how to set it up if in the repositories, please provide a software centre link


I've got an Asp.net Core app which is meant to be run on both Linux and Windows. There are some sensitive data hardcoded in the app's code (e.g. license decrypt key). I can use a resharper (dotPeek for exapmle) to decompile the dll and get the date. How can I prevent my app secrets from being accessed by decompilation?

Obfuscation is one way, but it can't protect from breaking the piracy protection security of the application. How do I make sure that the application is not tampered with, and how do I make sure that the registration mechanism can't be reverse engineered?  Also it is possible to convert a C# application to native code, and  is too costly.  C# provides lot of features, and is the ideal language for my code, so writing the whole codebase again in C++ is out of the question.  Secure certificates can be easily removed from the signed assemblies in .NET.


The code block on a phone or tablet is only black/white.   Update: example The code in the following link will have syntax color highlight in desktop browser.    Here is the image of the mobile view.

On Chrome on Android, code blocks on the mobile site have no syntax highlighting, are not a monospaced font, and words are wrapped.  Mobile site on mobile browser:    Desktop site on mobile browser:    Inline code has the same issue, it isn't a monospaced font.  It has been this way for as long as I can remember. Wouldn't be surprised if this is a dupe.


I have been trying to make a minigame and I need custom npc's I need them to have a name, trades and infinite trades(they never run out).  Here is the command I have been using:  /summon Villager ~ ~3 ~ {Profession:3,Career:1,CarrierLevel:100{Offers:{Recipes:[{buy:{id:"minecraft:iron_ingot",Count:5},maxUses:9999999,sell:{id:"gold_ingot",Count:1}},{buy:{id:"minecraft:barrier",Count:1},sell:{id:"minecraft:barrier",Count:1}}]},CustomName:"John Smith",CustomNameVisible:100   but it says:  [14:12:38] Data tag parsing failed: Expected '}' but got '{' at: ...ession:3,Career:1,CarrierLevel:100{<--[HERE]   How should I fix it?

I've been at this for almost two hours and no one seems to have the same problem as I and I doubt this will be solved but I'll try anyway.  this is the code  /tellraw @p ["Would you like to teleport?",{"text":"Yes","color":"green","bold":"true","clickEvent":{"action":"run_command","value":"/tp @p ~ ~4 ~ "},"hoverEvent":{"action":"show_text","value":{"text":"Confirm"}},{"text":"No","color":"red","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p{"text":"Come back when you want to teleport"}"}}}]   this part is fine  /tellraw @p ["Would you like to teleport?",{"text":"Yes","color":"green","bold":"true","clickEvent":{"action":"run_command","value":"/tp @p ~ ~4 ~ "},"hoverEvent":{"action":"show_text","value":{"text":"Confirm"}}   it's just when I add this  ,{"text":"No","color":"red","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p{"text":"Come back when you want to teleport"}"}}}]   Minecraft gives me the error:     Invalid JSON at line 1 column 203   I've tried to space it out and figure out what column 203 is but I can't, I don't know what I did. Anyone got any ideas?


I used the software RecordMyDesktop with these settings   zero compression  capture full in each square quality in video and audio 100%   My records have low quality and some parts show in squaters with pixels    How can I get better quality records?

How can I record my screen on Ubuntu?   The app I'm looking for has ideally all of these features:   Can record in a format that can be played back easily on any platform and/or accepted by YouTube or another popular video site Can record just a window (instead of the whole screen), possibly selecting it with a mouse click Can start recording after a configurable delay (e.g., I launch the app and have time to do arrangements to my desktop/window before actual recording starts)


Hi I am new to photography with DSLR and trying to find my footing with various lenses.   The subjects that interest me are   night sky  cityscape (day and night)  buildings  portraits (including full body sometimes)  children in action  family portraits   I recently bought Canon EOS Rebel T5i with 18-55mm f/3.5-5.6 kit lens. However, I have gathered that  to really learn photography, I should use prime lenses. For this purpose I have shortlisted the following lenses   Canon EF 85mm f/1.8 USM Medium Telephoto Autofocus Lens Canon EF 28mm f/1.8 USM Wide Angle Lens   I am looking for any feedback on these lenses in context to what I am looking to use them for. I am also torn between the 28mm and the 24mm f/2.8.

I have a beginner photographer and I have spent a lot of time learning the basics (exposures, lenses, focal lengths, crop factor etc). It's all good except I'm not so sure when I need to buy lenses of different focal lengths.   With a short focal length (a lens like ), I can still use it to take landscape. It doesn't mean I can't take photo of things that are far away from me. So unless I need magnification why would I need any other lens?   Also, I read that for portrait lens I really want focal length of 80-85mm but again wouldn't I be perfectly fine to take portraits with the lens above?


I was trying to migrate my own question (finally deleted it and reposted) to Programmers only to find out, that when I select Closing > Off-Topic > Migration there is no Programmers on the list and the list itself is limited to only five strange sites:   Strange (at least for me), because:   None of the selected pages seems to fit my question. There aren't many popular SE website on the list (maybe except second -- Super User). I haven't been ever using three (last) out of five suggested.   What decides, which sites will appear on this list? Why there is only five, not all of them. And finally -- how to migrate a question to a site, that is no listed there?

Earlier, I voted to close  as off-topic.  The question has since been closed.  There is an , but it didn't show up in the list when I selected "off-topic".  The options were:   Meta Stack Overflow Server Fault Super User Webmasters Programmers   Questions:   Should Wordpress appear in this list? Are there any other sites that should appear in the list?   Should all non-beta sites appear in that list by default?


I'm wondering how to select between "to infinitive or -ing" in sentence properly.  Your invoice has been modified [to reflect vs reflecting in] the change to this month's order  In this sentence, right answer is "to reflect". But I'm wondering why "reflecting in" cannot be selected.  What if just "reflecting (without "in")"? this can be right answer in that sentence?  I would thank you for your help.  This is a whole paragrah.  Dear Mr.Mulgrew,  As you requested over the phone on 5 November, we checked the monthly order of food supplies you submitted through our Web site on 2 November. As you had noted, the order did indeed include ten jars of mayonnaise more than you had specified. As a result, on 8 November, we addressed this issue, which we acknowledge was our fault. On that date, we deducted ten units from your order. Your invoice has been modified [to reflect vs reflecting in] the change to this month's order, and this has been enclosed with this letter. Please accept our apologies for the error. Your item should arrive by 15 November as you requested.

A person gave me an answer on English.SE and I commented:     Thank you for taking your time writing this wonderful answer!   Now, looking at the sentence in retrospect, even though I am not a native English speaker (duh, otherwise I wouldn't be asking a question on ELL.SE), I find the sentence a bit odd.  To get my point across, let me rephrase the sentence:     Thank you for taking your time to write this wonderful answer!   With my relatively little knowledge and understanding of English, I feel that using 'writing' (as I did in the original sentence) emphasizes the very process of writing the answer, whereas using 'to write' emphasizes the mere fact that an answer has been given, and a wonderful one at that.  This is exactly why I feel the original sentence is a little bit awkward and the second, revised one would have been more apt.  Am I correct or are the quoted sentences virtually synonymous?


I'm often using Stack Overflow and other Stack Exchange sites. I'm waiting for an app for Windows Phone. When do you plan to create one?

I have recently seen your official application on Google Play. And it is really nice and useful. Do you plan application for Windows Phone(7.8, 8) ?  Update:  Also, after reading most of your comments and answers, we can see that the  main reason in your opinion is "smaller audience" of Windows Phone. But, in my opinion:  "Let's take it from a different point of view. The users of Stack Exchange are generally developers or IT specs and so on. And the users of this app on mobile platforms will be developers mostly. And in my opinion the market share stats in the smartphone market wouldn't be same if we filter the result where job is programmer. I hope, I can explain what I mean."


I would like to create a jar file including some files from a non-java project and then have Maven be aware of the file, so I can define dependencies on it and so on.   Is there a way to "mavenize" an existing jar, or create a "maven jar" from some files, so that I can easily (in script) define its artifactId, versionId and other information?

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development. I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: "In addition to my defined dependencies, include any jars that are in /lib too." It seems like this ought to be simple, but if it is, I am missing something. Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.


I just upgraded to Windows 10 and now I can't seem to download my pictures to my computer.   I downloaded the device so it's recognizing it but when I go to the action center it says to tap to decide what to do with the device but when I tap it, it goes away and doesn't do anything.  It's sounding like I might need a patch to be compatible, please Help

I had recently upgraded to windows 10 and now Windows and Lightroom don't "see" the photos on my D5100. I am able to transfer them to the PC through viewNX but this is not a pleasant solution.  When I go to the folder where the photos should be while using Windows Exploror, the folder is void even if the card is shown to have a certain space full. When I right click and try to do "import photos and videos" it just says no photos to import, same stuff in lightroom. NX works fine. How can I solve this?


I have seen the phrase "What hath alienators wrought" in the name of an article. Searching throught the web I learned that "hath" is the version of "has" in old English, but in the singular case (mostly used in the phrase "What hath God wrought", I guess it's biblical). Therefore, I am guessing that the phrase "What hath alienators wrought" is wrong and should be "What have alienators wrought".  Can someone tell me if I'm correct in my guessing or nor, and why? Thanks.

What happened to them, and how were they once used? Straining my mind to sound archaic, I came up with the following:     Dost thou thinkest thou can escape thy sins?   and     Bringeth me mine armor and favorite sword.   I’d like to use these suffixes intelligently, so my questions are: how are ‑est and ‑eth properly appellated in conjugations, and  when and why did they disappear?


When the capacity of main memory is 2 GB what could be the largest program that can be accessed by the processor with the support of a 32 bits address bus?

How many memory addresses can we get with a 32-bit processor and 1gb ram and how many with a 64-bit processor?  I think that it's something like this:  1GB of ram divided by 32bits or divided by 4? to get the number of memory addresses?  But i'm not sure. That's why i'm asking.  I red on wikipedia that 1 memory addresses is 32bits wide or 4 octets (1 octet = 8 bits), compared to 64bit a processor where 1 memory addresses or 1 integer is 64bits wide or 8 octets. But don't know if i understood it correctly either.


I click on the 'Map network drive' button on my server's 'Computer'.  There is a line asking for the 'folder' or essentially the network drive location.  I have another server running on the IP 10.132.2.98.  I can map a network drive to the address '\10.132.2.98\myfolder', but I get an error when I try mapping the drive to '\10.132.2.98'.  Is there a way where I can map my entire hard drive on the second server?

In Windows XP I can very easily map a network drive to the root of my NAS server. I browse to it in Explorer (\\192.168.1.70), choose "Map Network Drive", then choose the drive letter.  In Windows Vista, mapping the root of a server doesn't seem possible. I have to go "Map Network Drive" from 'Computer', then enter the address, but it will only let me map to specific shares (sub-folders off of the server root) and NOT to the server root share.   Since my NAS has built-in shares (music, photo, video, etc.) then I would have to have drive letters for all of these, which I absolutely don't want.  Why can I easily map a network drive to the server root in Windows XP, but not in Vista? Is there something fundamentally different in the networking across the two OS's? Or do I need to do things a different way?


I'm looking for something similar to list.index(value) that works for numpy arrays. I think that numpy.where might do the trick, but I don't understand how it works, exactly. Could someone please explain   a) what this means   and b) whether or not it works like list.index(value) but with numpy arrays.  This is the article from the documentation:     numpy.where(condition[, x, y])       Return elements, either from x or y,  depending on condition.   If only condition is given, return condition.nonzero().      Parameters:    condition : array_like, bool       When True, yield x,  otherwise yield y.       x, y : array_like, optional       Values from which to  choose. x and y need to have the same shape as   condition.    Returns:      out : ndarray or tuple of ndarrays       If both x and y are specified, the  output array contains elements of   x where condition is True, and  elements from y elsewhere. If only   condition is given, return the  tuple condition.nonzero(), the indices   where condition is True. See  also nonzero, choose      Notes    If x and y are given and input arrays are 1-D, where is   equivalent to:    [xv if c else yv for (c,xv,yv) in   zip(condition,x,y)]

I know there is a method for a Python list to return the first index of something:  >>> l = [1, 2, 3] >>> l.index(2) 1   Is there something like that for NumPy arrays?