Can I get into a top 50 school with a bachelors degree from an unknown state college?

I went to a relatively unknown state college for my Bachelor's degree.  I've been working in the field for about 5 years now, but I'm interested in going back for a PhD.   Would it be nearly impossible to get into say, MIT or Carnegie Mellon given where my Bachelor's degree is from?  Also, how much does work experience account for in the selection process? For example work related patents or product development work.  Edit  Some of this question is duplicated see   I would like to focus more on how relevant work experience can aid in the selection process.


Display an image from an external database

I created new image database on localhost (other than Drupal original database) that has images in one column. Then I installed the Views Database Connector module; I could integrate it with Drupal to display the content of the new image database. I can easily see columns like name, email, phone number stored in this new image database as string of characters, which are all text columns. When it comes to display an image from the external database, I am stuck. I tried saving images in two formats.  As URL linked to the path of the image file As a BLOB  In the first case, I see the URL; in the second case, I see a string of characters. How do I make the Views module understand that this field is an image it should display as image and not as text?


After having had , I came to wonder what bionic-updates actually was but could not find any documentation.  What is this distribution for? Is this some kind of "testing but not quite" for bionic?


Why does Meta Stack Exchange have reputation?

On the per-site-metas, users don't have a reputation score different from their score on the site (so a user's meta.stackoverflow reputation is just their Stack Overflow reputation). But meta.stackexchange has no base site, so it just has its own reputation score. But why?  The recurring theme on meta is that votes on meta mean different things. Most relevantly, feature request voting is completely different:     On posts tagged feature-request, voting indicates agreement or disagreement with the proposed change rather than just the quality or usefulness of the post itself.   Reputation by its very nature is using gamification to create incentives. On most of the sites this incentive is clear: have users contribute quality content. On meta, it's less clear. A user who submits an unpopular feature request on meta gets the double frustration of having their request denied and losing a bunch of reputation in the process. Additionally, given how the site-specific-metas work in terms of reputation, I'm left wondering whether meta was ever supposed to have reputation in the first place.  So what is the intended incentive of reputation on meta? Is discouraging users from submitting unpopular feature requests by design or an oversight?  Note: This question is not about functionality. I understand that privileges are unlocked with reputation, but that could easily be done via a Stack Exchange-wide reputation rather than a meta-specific one. This question is just about the incentives that reputation on meta creates.


How do I get np.where to return only the spot the for loop is on? (Python)

I've created a virtual chessboard with 64 spaces formed as a nested array. I'm trying to go through each spot and check if the value of the spot is zero. I'm using np.where to get the indexes of the spot, however eventually np.where starts to return multiple values which throws an error. How can I get it to return ONLY the indexes of the spot that I am currently on?     while chessboard[result[0], result[1]] != 0:     for row in chessboard:         for spot in row:             if spot == 0:                 location = np.where(chessboard == spot)                 print(location)                 for move in possible_moves:                     if (location[0] + move[0]) < 0 or (location[1] + move[1]) < 0 or (location[0] + move[0]) > 7 or (location[1] + move[1]) > 7:                         continue                     else:                         chessboard_updated[location[0] + move[0], location[1] + move[1]] = 0      chessboard = chessboard_updated     counter += 1  Eventually I get the error ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()  because location  returns (array([5, 6, 7], dtype=int32), array([1, 2, 0], dtype=int32))  it returns 5,6,7 instead of just 1 value Thank you.


Can a 65W adapter slowing my 95W dell laptop?

My highly configured Dell Latitude E6410 laptop has become extremely slow, even for browsing or multitasking for the past 14 months. I thought it was because of Windows, so I tried fresh installations of win7, 8.1 and 10 - Still didn't solve the issue. But it was amazingly fast when it was new. The laptop originally came with a 95w power adapter, which I lost, and using a 65w adapter. Could this be causing the trouble? Machine also seems to overheat quickly.  Full specs  Core i5 2.5 ghz  8gb 1600 mhz  Nvidia M3100 graphics chipset  SSD 256GB


I keep reading about  ('PPAs') and people answer questions with a link to a PPA. What's the best way to use these?     There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience, an index of each is below.


How to find $\lim_{x \to \infty} [x]/x$?

Find the limit  $$\lim_{x\to \infty } \ \frac {[x]}{x}.$$  Does $[x]$ means greatest integer in this case?


why alert is display in jquery while comparing the values of two variable?

Hi can you please tell me why aleert is display when I am comparing the values   a is undefined  and b is  null .how they are equal ?   var a var b=null; //value of a alert(a); // alert(b) if(a==b){alert('test');}  alert(typeof(a));  alert(typeof(b));


How to obtain verbatim text in a footnote?

I want to employ a \verb command in a footnote. But, when I run pdflatex on  \documentclass{article}  \begin{document}  I want this.\footnote{\verb|But, it does not work!|}  \end{document}   I get this:  ! LaTeX Error: \verb illegal in command argument.   How can I do what I am after? (I know that I could just use \footnote{\texttt{But, I lose the semantic mark-up.}})


How can I delete a file which filename has non-printing characters

I somehow managed to create a file that doesn't seem to have a filename. I found some information regarding how to get more details of the file in the following   However, I tried some of the suggestions listed and can't seem to delete the file. I'm not sure what I did to create it, but it happened while trying to copy an xml file.   Some info on the file is as follows;  > ls -lb total 296 -rw-r--r--   1 voyager  endeavor  137627 Jan 12 12:49 \177  > file * :               XML document  > ls -i  417777      I tried to find using the inum switch and then pipe that to rm as that seemed like the most foolproof way of getting rid of it. However, the example given at the bottom of the thread linked below failed for me. Example was:  > find -inum 41777 -exec ls -al {} \; find: illegal option -- i find: [-H | -L] path-list predicate-list   so I tried using the path list first like the following, but that didn't work either:  > find . -inum 41777 -exec ls -al {} \;   I'm not sure what the non-printable character \177 is or how I can pass that to an rm command, but I really want to make sure I don't mess up any other files/directories in my attempt to delete this file.


Can I use an Emergency Passport as proof of identification within Schengen before travelling back to the UK?

I am a British national living in Spain and my passport is either lost or stolen. I noticed this two days ago when I was intending to take a trip to Salzburg. As it happens, I managed to travel using my UK Driver's Licence. I think a severe mistake was made, as was pointed out to me in Austria, but as they were Schengen Countries, apparently all that is needed is a proof of identity, not a 'travel document'.  My question, therefore, is this. I have business trips over the next three weeks taking me from Spain to Germany, Czech Republic, Austria, and Italy, then back to Germany, and then to the UK. If I obtain an Emergency Passport from the Consulate here in Barcelona, would this be valid as an identity document within Schengen, before I eventually 'cash it in', so to speak, as a travel document when I make my trip from Germany to the UK?  I am hoping so, as I don't fancy my chances of getting back to the UK in time to secure an appointment for a fast-track passport. I am going to call the consulate tomorrow, but would appreciate any advice or prior experience.


Is there a standard and aesthetically pleasing way to typeset a unix command inline. For example, I may want to refer to 'ls' as I do in this sentence.


Show every prime ideal in $\mathbb{Z}$ is of form $\langle p\rangle$ where $p$ is prime.

An ideal $P$ is called a prime ideal if whenever $ab\in P$ we have either $a \in P$ or $b \in P$.  I am confused about how to connect the definition with with $\langle p\rangle$.


Terrible logistic model gives perfect results?

So I'm playing around with logistic regression in R, using the mtcars dataset, and I decide to create a logistic regression model on the 'am' parameter (that is manual or automatic transmission for those of you familiar with the mtcars-dataset).  Call: glm(formula = am ~ mpg + qsec + wt, family = binomial, data = mtcars)  Deviance Residuals:         Min          1Q      Median          3Q         Max   -4.484e-05  -2.100e-08  -2.100e-08   2.100e-08   5.163e-05    Coefficients:              Estimate Std. Error z value Pr(>|z|) (Intercept)    924.89  883764.07   0.001    0.999 mpg             20.65   18004.32   0.001    0.999 qsec           -55.75   32172.52  -0.002    0.999 wt            -111.33  103183.48  -0.001    0.999  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 4.3230e+01  on 31  degrees of freedom Residual deviance: 6.2903e-09  on 28  degrees of freedom AIC: 8  Number of Fisher Scoring iterations: 25   Now, at first sight this looks like a terrible regression, right? The standard errors are HUGE, the z-values are all close to zero and the corresponding probabilities are all close to one. HOWEVER, the residual deviance is extremely small!   I decide to check how well the model does as a classification model by running:  pred <- predict(logit_fit, data.frame(qsec = mtcars$qsec, wt = mtcars$wt, mpg = mtcars$mpg), type = "response") # Make a prediction of the probabilities on our data mtcars$pred_r <- round(pred, 0) # Round probabilities to closest 0 or 1 table(mtcars$am, mtcars$pred_r) # Check if results of classification is any good.   Indeed, the model perfectly predicts the data:       0  1   0 19  0   1  0 13   Have I completely misunderstood how to interpret model data? Am I overfitting massively or what's going on here? What's going on?


When a trigger requires you to sacrifice something, can you sacrifice said something using something else?

Let's say  enters the battlefield under my control. The card states that when it comes into play I must sacrifice a land. Can I in response to its ETB ability sacrifice a land using say ? When Glacial Chasm entered, a land was sacrificed. Is this allowed, and more to the point: is Glacial Chasm's ETB requirement met in this scenario?


Scrypt KDF cipher (scrypt CLI) - known vulnerabilities and cryptanalysis?

There is a scrypt cipher that is used for example by some cryptos like LItecoin for their mining algorithm.   I never heard of scrypt. I know eg SHA-256 which is well analyzed and considered as secure until now.     Any known cryptanalysis for scrypt / vulnerabilities? is scrypt considered in the community as a secure (comparable to sha256) cipher? How collision-resistant is it? Is it easily breakable by quantum computing attacks?


Yes, I know this has been asked a lot. But, it confuses me, since the results on google for this search show different methods (listed below)  $(document).ready(function() {     if ($('#DivID').length){         alert('Found with Length');     }      if ($('#DivID').length > 0 ) {         alert('Found with Length bigger then Zero');     }      if ($('#DivID') != null ) {         alert('Found with Not Null');     } });   Which one of the 3 is the correct way to check if the div exists?  EDIT: It's a pitty to see that people do not want to learn what is the better approach from the three different methods. This question is not actually on "How to check if a div exists" but it's about which method is better, and, if someone could explain, why it it better?


Simplest way to increment a date in PHP?

Say I have a string coming in, "2007-02-28", what's the simplest code I could write to turn that into "2007-03-01"? Right now I'm just using strtotime(), then adding 24*60*60, then using date(), but just wondering if there is a cleaner, simpler, or more clever way of doing it.


Difference between Present perfect and Present perfect continuous sentences

I have two sentences below, what the difference between them? Which sentence imply now I still work in construction industry?     I have worked in construction industry for years   and     I have been working in construction industry for years


Why couldn't Doctor Strange stop Thanos on Titan?

After re-watching the Tony vs Thanos scene again, a thought came to mind and made me wonder. At no point did Doctor Strange ever pause time and simply deal with Thanos and proceed further. This would have obviously been the easy way out. Or at least whilst paused, he could have used the sling ring to cut Thanos' head off. I do note about the many different outcomes that he saw, but I still see this as a possibility.


How can I round to two decimal places in Java?

`public class CheckVowelsDigits {  public static void main(String[] args) {     Scanner sc = new Scanner(System.in);     System.out.print("Enter a String: ");     String string = sc.next();     int numOfVowels = 0;     int numOfDigits = 0;     string = string.toLowerCase();     for (int i=0;i<string.length();i++){        char letter = string.charAt(i);        switch(letter){            case 'a':             case 'e':            case 'i':            case 'o':            case 'u': numOfVowels++; break;        }        if (letter >='0' && letter <='9')           numOfDigits++;     }     double perVowels = (numOfVowels*1.0/string.length())*100.0;     double perDigits = (numOfDigits*1.0/string.length())*100.0;      System.out.println("Number of vowels: " + numOfVowels + " (" + perVowels + "%)");     System.out.println("Number of digits: " + numOfDigits + " (" + perDigits + "%)"); } }`   OUTPUT   Enter a String: test12345  Number of vowels: 1 (11.11111111111111%)  Number of digits: 5 (55.55555555555556%)  BUT I NEED  Number of vowels: 1 (11.11%)  Number of digits: 5 (55.56%)


Why is graphene the only (stable) 2D sheet structure?

I know that Carbon molecules can form different structures depending on how they bond with each other: graphite, diamond, graphene and fullerene.  As far as I understand, graphene is just a "sheet" of carbon atoms, 1-atom thick.  Can't all atoms (not only Carbon) be arranged in such a way?  What is it that dictates the shapes of the possible structures of atoms/molecules? I.e. why are those four carbon structures famous but no one ever hears about, say, Aluminium or Oxygen?


Dead centering (vertically and horizontally) css-only tabs

I really need your help with this,  Presently, given the current html and css markup below, it puts the tabs close to the top of the users screen. How can the markup be modified below such that I can arrange for it to be dead-centered (centered both vertically and horizontally) instead?  Here's an example of the fiddle:   Here's the markup:  <!DOCTYPE html>

        <input type="radio" id="tab-1" name="tab-group-1" checked>        Tab One

Stuff for Tab One

        <input type="radio" id="tab-2" name="tab-group-1">        Tab Two

Stuff for Tab Two

        <input type="radio" id="tab-3" name="tab-group-1">        Tab Three

Stuff for Tab Three


How can I sepearate objects into individual files?

I started modeling a rifle, and I also did a sight with it.  The thing is: I want to make both the sight and the rifle into 2 individual files. Is there a way I can do this?


#include <stdio.h>  int main() {   int i=2;    if(i==3,4)   {        printf("If block");   }   else   {       printf("Else block");   }    return 0; }  Why is this code returning "If block" ?``


How to install Ubuntu on HP Envy m6 notebook

I downloaded the link from the Ubuntu website for 16.04 LTS but that didn't seem to do anything for me. What am I missing? I'm a real novice here so do I need to download it on a disk or USB drive or can I download it straight to my laptop?


Trying to make an Array list of objects but app crashes with a null pointer exeption

I have class Product:  public class Product {      private String name;      public Product(String name) {          this.name = name;      }      public String getName() {          return name;      }  }   Then in MainActivity:  ArrayList<Product> products; .... protected void onCreate(Bundle savedInstanceState) {     .....      for (int i = 1; i < 15; i++){         products.add(new Product(Integer.toString(i)));     } }   After compiling and building App crashes and give such error code:     java.lang.RuntimeException: Unable to start activity   ComponentInfo{panchenko.ivan.canteen_application/panchenko.ivan.canteen_application.MainActivity}:   java.lang.NullPointerException: Attempt to invoke virtual method   'boolean java.util.ArrayList.add(java.lang.Object)' on a null object   reference   I don't have any ideas what goes wrong.


Show that the rank of $A+B$ is no more than the sum of the ranks of $A$ and $B$

Let $k$ and $n$ be positive integers and let $F$ be a field. For matrices $A,B \in M_{k\times n} (F)$, show that the rank of $A+B$ is no more than the sum of the ranks of $A$ and $B$ I believe this question is addressed , but to be honest I don't quite understand the explanations given. Can someone possibly help with a more detailed explanation?


I want to start a pendingIntent when user click on a notification sent from one app to the other

I want to start a pendingIntent from a notification i send from App A = Admin to App B = users. I want to know if it possible to open a pendingIntent immediately a user or admin receives a notification(from each end)?  My App crashes when i try to open a notification sent from admin to user app and vice versa but I am using the same method below in both apps. What am i doing wrong?  NB :  it is just a chat and suggestion app and it works like any other chat application.      // sending notification to devices with versions below Oreo(android 8.0)     private void sendNotification(RemoteMessage remoteMessage) {          String user  = remoteMessage.getData().get("user");         String icon = remoteMessage.getData().get("icon");         String title = remoteMessage.getData().get("title");         String body = remoteMessage.getData().get("body");          RemoteMessage.Notification notification = remoteMessage.getNotification();         // creating a pendingIntent for notification         int j = Integer.parseInt(user.replaceAll("[\\D]",""));         Intent intent = new Intent(this,MessageActivity.class);         Bundle bundle = new Bundle();         bundle.putString("userid",user);         intent.putExtras(bundle);         intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);         PendingIntent pendingIntent = PendingIntent.getActivity(this,j,intent,PendingIntent.FLAG_ONE_SHOT);          //  notification sound uri         Uri defaultSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);         // creating an instance of Notification builder and setting its properties         NotificationCompat.Builder builder = new NotificationCompat.Builder(this)                 .setSmallIcon(R.mipmap.app_logo_round)                 .setContentTitle(title)                 .setContentText(body)                 .setAutoCancel(false)                 .setSound(defaultSound)                 .setVibrate(new long[]{1000,1000,1000})                 .setWhen(System.currentTimeMillis());                 .setContentIntent(pendingIntent);   // creating an instance of Notification Manager         NotificationManager nm = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);          int i = 0;         if(j > 0){             i = j;         }          // starting the notification         nm.notify(i,builder.build());   }   What I want to achieve is to be able to open app from notification if an admin sends a message which comes with a notification to the user and vice versa.


Icon that visualizes hiding/showing empty columns?

What would be the right icon for a toolbar button that triggers the following functionality in a spreadsheet application?   Toggle the visibility of all columns of the current sheet that currently don't contain any data (i.e. that are completely empty except for their column header).   Background: The user might have a row filter active that greatly reduces the number of rows shown. Usually, the filtered sheet view consists of just 30 or so rows (with the original data set containing hundreds of rows).   Often, the user filters in a way that the visible rows share the same empty columns. So after filtering, he might end up with a huge (50 columns+) sheet displaying 30 rows with most of the columns being completely empty.


I'm having some periodic issues running a particular application, XBMC. If I use XBMC regularly I don't seem to have any issues but if I leave it unattended for more than about 12 hours I need to reboot to get it working again.  I know a scheduled reboot is NOT the answer but until I can figure out the problem I need to schedule a reboot each morning so my wife can use it if I'm away and it doesn't get thrown out the window :)  Any takers?


How to substitute 'single' apostrophes to "double" apostrophes with sed

trying to substitute single apostrophes to doubles. But cant get it right.  sed 's/'/"/'


a multiplicative map mapping a commutative ring to a commutative ring preserves identity

Let $R$ be a commutative ring with $1_{R}$ and $R'$ be a commutative ring but do not assume that $R'$ has a multiplicative identity. Let f be a map mapping R to $R'$ be a nonzero map that satisfies $f(xy)=f(x)f(y)$ for all $x, y$ in $R$. Assume that $R'$ has no zero divisors. How to show that f($1_{R}$) is the multiplicative identity in $R'$?  I know how to prove it if we assume $R'$ to have a multiplicative identity, but now I don't know how to do this...  Thank you very much for your help!


In a follow up of  it was suggested to use \seq_use:Nn to display the content of a sequence. It works really nice but it concatenates the items with a given separator (like join in Python). Is there a way to loop through the elements and do something with each of them?


proving that a function from $\Bbb R^2$ to $\Bbb R^2$ is surjective

Let $f: \Bbb R^2 \to \Bbb R^2$ be a continuous function such that $|f(x) - x| < 2017 \space$ $\forall$ $x\in \Bbb R^2$. prove that $f$ is surjective.     please help me prove this statement. thank you very much.


Shutdown Windows 10 truly for a dual booting system

It seems that "Shut down" in Windows 10 actually means "Shut down and hibernate". This has caused my NTFS partitions cannot be automatically loaded on Linux (Ubuntu 16.04) on my dual-booting laptop. There will be an error message basically saying   Unable to access “My Drive”  Error mounting /dev/sdb4 at /media/D Center: Command-line `mount -t "ntfs" -o  "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb4" "/media/D Center"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option   After a "hard" shutdown by pressing Shift while clicking on "Shut down", Windows actually shuts down, and the NTFS partitions can then be automatically mounted by Linux in another bootup. This issue only occurs recently after my upgrade of the Windows OS and BIOS.  My question is the following: is there any way to make the "Shut down" on the menu as the truly/hard shutdown by default? Thanks!


How to Overcome Partitions On Flash that can not be removed, as a result of using the software "Startup disk Creator"?

At first I wanted to make me into a bootable Linux flash LTS 16.04, After the installation process is finished I want to restore my flash as before. when I checked, it turned my flash partitioned for making bootable "startup disk creator".    when I want to delete the partition had made an error.      Error Formatting Volume: This partition cannot be modified because it contains a partition table; please reinitialize layout of the whole   device. (udisks-error-quark, 11)   and when I want to delete partitions also occurred error:  Eror Deleting Volume: Error deleting partition /dev/sdb1: Command-line `parted --script "/dev/sdb" "rm 1"' exited with non-zero exit status 1: Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. (udisks-error-quark, 0)   What should I do?


Can I mount the root (system) filesystem as writable in Big Sur?

After updating to big sur, I can no longer mount the root as writable (even with SIP disabled): sudo mount -uw / mount_apfs: volume could not be mounted: Permission denied mount: / failed with 66  How can I fix this?


How to clear Firefox search box terms after submission?

There didn't seem to be anything relevant in about:config.


Inbox notification when a favourite question has new activity

I rarely visit my own profile to look at favourite questions with new activity. I'd like to have inbox notifications for this.  Apparently , but later removed again.        Can this be reimplemented? If not, why was it removed?


What are the differences between doing something in a period and doing something within a period? Are there any other differences between in and Within in other contexts?


If one travels in a spaceship at speed V, the time elapsed for the traveller relative to an observer on earth is dilated by,  $$ t' = t(1 - v^2/c^2)^{1/2} $$  Does this mean that a space traveller, who gradually accelerated to a speed very close to the speed of light can then travel 10 billion light years in a few minutes?  Relative to the travelling observer, does this mean that effectively there is no speed limit? Even though this can be translated as a space contraction, what difference does that make - the traveller effectively travelled 10 billion light years in say 6 minutes - meaning an effective speed of 100 billion light years per hour (876 trillion times the speed of light).   Does this mean that time travel into the future is possible? Would it be possible for a traveller making a round trip away and back to earth to travel to the year 3000 in 5 years?


Limit of a recursive sequence $a_{n+1}=\frac{1}{2}\left(a_n + \frac{5}{a_n}\right)$

A sequence is given by $a_{n+1}=\dfrac{1}{2}\left(a_n + \dfrac{5}{a_n}\right)$ for each integer $n \geq 0$.  Does the limit of $a_n$ as $n$ goes to infinity equal $\sqrt{5}$ for $a_0 =2$?  What if $a_0=3$?


just discussion what tool is the best for monitoring Linux servers? I have experience with Zabbix, Icinga and Kibana, but is it some better monitoring tool where is possible to have all-in-one solution? Requirements:  with web interface simple easy to config rich for config, or possibility to use your own bash scripts, for example if I want monitor pg_stat_activity and have output from some own sql nice to look (I mean for example monitor graph of CPU have points, and when you click on this point (peak), it shows for example 5 processes from top command related to cpuload, mem in some popup or in text on some side of the graph no host agent install needed (for example like zabbix), just connection via RSA SSH and collect data, simple  What's your favourite? UPDATE It is very nice to see that somebody asked about that before, of course I found it, BUT there is no all-in-one app (monitor system, collecting logs and web interface) and opensource/free. If somebody want give -1 to this question, please read it carefuly first. Thanks.


This is making me go nuts. Whenever I'm trying to go to the numpad view, instead of going into the 2D and showing only 2 axis, it's trying to show and think about the depth of the third axis. This is how it should look:  This is how it looks instead:  Please help me, it has been bothering me for a while but I can't even find anywhere how to fix this (oh also the background isn't full of cubes either.. :(


Move item to folder when added/edited (SP2013 or O365)

How to move item to folder automatically when it has been added or edited in a library? The folder is in the same library. The correct folder will be defined by metadata. This should happen automatically when the item has been added or edited. The listitem Id should be preserved. No server-side code should be deployed.  Can this be done using workflows (SP2010/SP2013)? If not then what would be the other options?


Math symbols (bm) appear duplicate/on top of themselves

In a recent document I'm working on, when using certain math symbols they are duplicated over themselves:    This happens exclusively when I use \bm{}. It happens in inline math, equations, and aligns. Has anyone else seen this happen?  Here are the relevant packages I'm using  \usepackage{amsmath,amssymb,amsfonts} \usepackage{bm}   And also the documentclass from .  \documentclass{aes2e}   EDIT: Here is a MWE  \begin{equation}     \text{bm: }\bm{x}\quad\text{boldsymbol: } \boldsymbol{x}\quad\text{regular:} x \end{equation}     Edit 2: Thanks to everyone for your help, this is indeed a duplicate question. After searching through the journal of interest it appears that nobody uses \bm or even \boldsymbol, but instead they use \mathbf. This leaves me with a bit of a problem for bold symbols as the duplication still happens, even with \pmb. My current solution is from  which suggests switching to CM for greek symbols, but it looks less bold than Times.


What traits are available in the game, and what does each of them do?

There seems to be a good amount of traits in this game, and some of them don't have description that actually lets you know what that trait does.  For the sake of proper answer write down all traits available in the game, their description, and their effect.


How many normal subgroups does a non-abelian group $G$ of order $ 21$

How many normal subgroups does a non-abelian group $G$ of order $21$ have other than the identity subgroup $\{e\}$ and $G$?  1) 0  2) 1  3) 3  4) 7  I think option 1 is incorrect because every group of order 1 to 59 is not simple. Hence group of order 21 has atleast one normal subgroup.   Now from the Sylow's theorem we get there has one subgroup of order 7 and one subgroup of order 3 or 7 subgroup of order 3. Since 3 and 7 are primes then any group of order 3 and 7 is cyclic. hence normal. I think I am wrong some where but I am unable to locket the point. please help me to choose the right answer.


I would like to know whether the private static final long serialVersionUID actually matters when creating a custom exception. What does it do? How much do I need it? Can I just do public class MyException extends RuntimeException {     public MyException () { super(); } }  or do I need the serial version UID? Or the argumented constructor?


How do I check an iOS device's battery health?

I am looking for a way to check the current health of a battery for iOS devices, similar to how  works for OS X.   How can I check the battery health for an iOS device?


How to check if file is empty or it has only blank characters?

This will notify us if the file is empty:  [[ ! -s $file ]] && echo "hello there I am empty file !!!"   But how to check if a file has blank spaces (spaces or tabs)?   empty file can include empty spaces / TAB


Split a string on multiple multi-char delimeters in C++

How can I split a string on multiple multi-character delimiters?  I want a function like vector<string> split_string(string input, vector<string> delims)  For example, split_string("foo+bar  := baz",{"+"," ",":="}) = {"foo","+","bar"," "," ",":="," ","baz"}


How can I see the "implementation" of protected commands such as \LaTeX?

After reading another question relating to how to see definitions of commands, I tried:  \documentclass{article} \begin{document} \show\LaTeX \end{document}   But this shows me in my logfile:  \LaTeX=macro: \protect \LaTeX   I just want to see where the \LaTeX command deep down somewhere finally says "OK, make the 'L' big, then make a little raised 'a,' then ..."


Extracting vector containing the elements of the main diagonal of a matrix

Is there any mathematical operation that would extract the elements of the main diagonal as a vector? i.e. multiply it by certain vectors or something like that. I'm using this in the context of linear systems.  In the specific case I'm looking at I have a relationship between the elements of three vectors as follows:  $ \bf{a} = \begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \\ a_{4} \end{bmatrix} $ , $ \bf{b} = \begin{bmatrix} b_{1} \\ b_{2} \\ b_{3} \\ b_{4} \end{bmatrix} $ , and $ \bf{c} = \begin{bmatrix} c_{1} \\ c_{2} \\ c_{3} \\ c_{4} \end{bmatrix} $  I also know that: $c_{i} = a_{i}b_{i} $ for $i \in [1, 4]$  Now I want to express this relationship as a vector equation. I understand that $\bf{a} \bf{b}^\top$ would give a square matrix with the elements of $\bf{c}$ on its main diagonal, but is there anyway to extract them as a vector?  EDIT: Let me clarify a bit. If I multiply $\bf{a}$ by $\bf{b}^\top$ I get the following matrix:  $\bf{a} \bf{b}^\top = \begin{bmatrix} \bf{a_1b_1} && a_1b_2 && a_1b_3 && a_1b_4 \\ a_2b_1 && \bf{a_2b_2} && a_2b_3 && a_2b_4 \\ a_3b_1 && a_3b_2 && \bf{a_3b_3} && a_3b_4 \\ a_4b_1 && a_4b_2 && a_4b_3 && \bf{a_4b_4}  \end{bmatrix} $  The elements which have been made bold are the ones I'm interested in extracting as a vector. This vector would be $\bf{c}$.  If I multiply this by the all-ones vector, as some of the answers have suggested, I would get:  $\bf{a} \bf{b}^\top \bf{1}= \begin{bmatrix} \bf{a_1b_1} && a_1b_2 && a_1b_3 && a_1b_4 \\ a_2b_1 && \bf{a_2b_2} && a_2b_3 && a_2b_4 \\ a_3b_1 && a_3b_2 && \bf{a_3b_3} && a_3b_4 \\ a_4b_1 && a_4b_2 && a_4b_3 && \bf{a_4b_4}  \end{bmatrix} \begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix} = \begin{bmatrix} a_1b_1 + a_1b_2 + a_1b_3 + a_1b_4 \\ a_2b_1 + a_2b_2 + a_2b_3 + a_2b_4 \\ a_3b_1 + a_3b_2 + a_3b_3 + a_3b_4 \\ a_4b_1 + a_4b_2 + a_4b_3 + a_4b_4  \end{bmatrix}$  Which is not the vector I'm looking for (it isn't equal to $\bf{c}$).  EDIT 2: Multiplying by the $\bf{1}$ vector would obviously work if all off diagonal elements become zero. So if anyone knows of a way to do that without modifying the elements of the main diagonal that would also answer my question.  EDIT 3: The other question pointed out in the comments area is essentially the same and I have received similar answers but I was hoping for a simpler solution. I haven't marked it as duplicate to allow people to contribute in the future.  I was hoping for a solution that would be linear in $\bf{b}$ which I would substitute in place of $\bf{c}$ into the equation I'm trying to solve. In that case $\bf{b}$ would be my only unknown and I would be able to get an algebraic solution.


In many pieces of literature, light is said to travel like a "wave". Does this mean the light literally propagates through space like a wave as in up and down and so on or does light move linearly through space? Also, if it move linearly, why do we say photons are a wave then?


How to add New Excel Worksheet in the Right Click New context menu?

OS - Windows 7 (32-bit) Office Version - 2013 Standard  Whenever I right click on a blank space in a folder, I see option to create a New Folder / New Word Document etc, but am not able to see a New Excel Workbook option. How can I get the option?


Figure reference \ref{fig:result} renders as ?? in PDF

I have an article with the following figure (there are 2 small charts near each other, horizontally):  \begin{figure}[h]   \centering   \includegraphics{left-graph}   \includegraphics{right-graph}   \caption{My caption}\label{mylabel} \end{figure}   I reference the figure with:  Figure~\ref{fig:result} shows bla-bla-bla.   The rendered PDF shows ?? instead of the figure number. I tried with the reference occurring both before and after the figure (in the LaTeX source), but it didn't make a difference.  The relevant packages I'm using are below (those removed are for titling).  \usepackage[english]{babel} \usepackage{graphicx} \usepackage[letterpaper]{geometry} \geometry{top=1.0in, bottom=1.0in, left=1.5in, right=1.0in} \usepackage{flafter} % make sure figures do not appear before their text \usepackage{sidecap} % use side captions for floats \usepackage{subfig} % subfloats   I'm not sure what's wrong here, advice is appreciated. I'm using MiKTeX 2.8.  Thank you!


I recently made a large batch of mixed vegetable pickles (cucumber, onion, carrot, peppers, cauliflower, garlic) with a brine of 1 cup white vinegar to 3 cups water and 1/4 cup salt. I used a clean, not sterile method, and didn't process the jars. Ten days later some of the jars are cloudy, and some of the lids are fizzing.  I've pickled a lot in the past, sometimes using a water bath to process and sometimes not. This time I skipped the step thinking the acidity would be enough to prevent nasty things like botulism.  I'm belatedly researching and learning the difference between fermented pickles and vinegar pickles. I had simply assumed the process was similar and adding vinegar would keep it safer by increasing the acidity.   My question now is, will the high acidity and high salt (works out to 1 tablespoon per cup of brine) prevent botulism from growing and keep them safe to eat (as long as they don't smell bad)?   Reading about fermented pickles, I see that cloudiness is a good sign. Can the cloudiness be lacto-fermentation, or would the vinegar disrupt that process?   Another thing that might explain the cloudiness is the iodized salt (I didn't have access to pickling salt).  I want to experiment with fermentation and would definitely do things differently next time, but for now, I'm just wondering if I can salvage anything, and what would be a clear indication that they're unsafe and I should throw out the lot.


Is modding Xbox 360 games difficult or dangerous to the game/system/saved files?

I'm a huge fan of visual mods but I often only see mods done by PC gamers and not console gamers.   I've heard that in order to mod a console game all you need to do is download the mod onto a USB and stick that into your console. Is it really that easy?  I ask if it is difficult because i've never seen Xbox gamers use visual mods that make the game look cool/more interesting. I've only seen players mod or hack the game for online purposes.   Which brings me to my next question,   If modding isn't (or even if it is) difficult to do on an Xbox 360 can it be dangerous to the game or the system itself?


How does Thanos know how to use the Infinity Stones he only just acquired?

This a question about how he knows how to use each of them and one in particular, the Time Stone.  I say the Time Stone, because this is the only Stone we are really given any information on how hard a Stone it is to use. So it is not just "pick it up and you can bend time". You actually have to train and study to use it and I am guessing if it is not close by, trial and error (as with most training won't cut it).  In Doctor Strange we see a conversation with Mordo on how hard it is to actually use the Time Stone.  The only hint we get that Thanos may already have the knowledge is in this scene:                                     Stark, you're not the only one cursed with knowledge   So, we know Thanos may have a great knowledge base, but is there anything on how he knows how to use the Infinity Stones?  Is there an in- or out-of-universe explanation on how Thanos was able to use the Stones he only just acquired, considering how hard they were to control?


How to connect and disconnect to a network manually in terminal?

Since the network manager is troubling me so much I want to replace it (possibly wicd orNM from ppa:volanin).  I do not know how to connect and disconnect to the network through the terminal without using network manager.  I would like a command-line way of managing the network.


"He stayed here only for two days." or "He stayed here for only two days."? To me, both questions make sense. I would like to know whether both of them are grammatically correct and carry the same meaning?


How do I establish 'wireless internet connection sharing' via ethernet to Raspberry pi

I have searched this subject in great detail and still not able to connect my raspberry pi to the web via Ethernet.   I have no problems making ssh contacts with the pi.   I used this video as a start    Its Not working.   I'm running ubuntu 15.10  So how do I get my pi connected to the web using Ethernet from my computer?


Evaluating a triple integral by converting using change of variables

I have the double integral:  $$ \int_0^1 \int_0^{1-x} e^{\frac {y}{(x+y)}} \;dy\; dx $$  Ignore any difficulty this integral may have at the origin.  I was given a hint to simplify the exponent by taking it as a chunk. I thus set $v=\frac{y}{(x+y)}$, but am not sure what to do for you and go from there?  Can someone please help? Thanks!


Prove that $\gcd(n! + 1, 3n! + 1) = 1$, $\forall n \in \mathbb{N}$, $n \geq 2$.

I tried to prove this by induction but I got stuck, this is what I've got.  Base case: $n = 2$. $\gcd(2! + 1, 3*3!+1) = gcd(3, 7) = 1.$  Inductive step: assuming for $n = k$ that $\gcd(k!+1, 3k!+1) = 1$ holds. Let $n = k + 1$. We have to prove that $\gcd((k+1)! + 1, 3(k+1)!+1) = 1.$  From assumption we get that:  $\gcd(k!+1, 3k!+1) = 1$  Multiplying this by $k + 1$ we get:  $(k + 1) * \gcd(k!+1, 3k!+1) = k + 1$  Subtracting k from both sides:  $(k + 1) * \gcd(k!+1, 3k!+1) - k = 1$  Now $k+1$ can enter the gcd and we have:  $\gcd((k +1)! + (k + 1), 3(k + 1)! + (k + 1)) - k = 1$  Now I dont know where to proceed from here.


How to write a cycle pro all files *.py except a.py?  for i in *.py && !(a.py); do      python3 $i done


Update manager for 14.04 tries to load updates 15.04

I run 14.04 and recently downloaded an iso file of 15.04 to install for a friend. Since then, update Manager tries to install updates for 15.04 and tells me to insert a CD. How can I correct this? Thanks


On the relationship between $\text{SL}_2(5)$ and $A_5$

I have two questions.   What is the quickest way to see from scratch that $\text{SL}_2(5)/\{\pm I\}$ is isomorphic to the alternating group $A_5$? Does $\text{SL}_2(5)$ have any subgroups isomorphic to $A_5$?


Does Damage Resistance count twice for different types of damage?

The Rune Priest in my group grants DR4 to anybody next to him. Not a problem. But then, my players heard me say: "He swings his axe against the paladin of Khalmyr and: 15 damage plus 8 cold damage."  That was all it took for the Rune Priest (who was feeling useless until the cleric stopped playing with us) to say: "Sooo... Does the DR I grant count twice? 'Cause it is 15 from the axe and 8 from the cold, right?"  And I seriously didn't know. If does make sense, though. Because if they had used a potion of resistance, it would only count against the extra damage.  So... What is the correct way?


I have written the following command grep -irl "->something"  into my terminal. I get the following grep: unknown option -- > Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information.  It appears to me that the - character is being interpreted incorrectly. Is there a fix for this?


Traveling with a new passport and valid US Visa on a damaged old passport?

Unfortunately, my passport had suffered water damage during my stay in the US because of which I had to apply and get a new one.   Since my old passport contains a valid US visa, the indian embassy stamped "Passport CANCELLED. Valid visa within this passport NOT CANCELLED" on the biographical information pages and sent back both the passports to my address. I'm supposed to carry both the old and new passport along with me whenever I travel in and out of the US.  Is there anything I should be worried about while re-entry? Please help with your suggestions.


The menu with options for Sapling Tree Gen creation is no longer available

I using Blender 2.78 and this add-on: Add Curve: Sapling Tree Gen  Problem: add-on menu is disappeared.  I created tree and clicked Undo button to cancel action , but the menu dissapered. Turned into new menu Operator.  Before  After (dissapered menu is marked red. This is my problem.)   Any problem solution? I'm very sad.


Directing page from get usertype string error java

i already have this in my program:    The box says that i have logged in as "Admin - Administrator", Note that "Admin is the username that stored in the database" and "Administrator is the usertype that stored in the database"  Here is my code that shows that "Admin - Administrator":  user = result.getString("Username"); userType = result.getString("UserType");  _userInformation.setUser(user); _userInformation.setUserType(userType);  _infoBox.ShowMessageBox("Welcome \n You Have Logged in as : \n" + _userInformation.getUser() + " - " + _userInformation.getUserType() + " ! ", "Welcome" , 1);   However, when i tried to direct the page based on the usertype, it gave me nothing (the page didn't directed or the program stop at the image that shown at the above), here is my code after user click the ok button in that messagebox:  if (_userInformation.getUserType() == "Administrator") {     this.dispose();      _adminChoices.setVisible(true); }   When i trace the _userInformation.getUserType(), it gave me this:    Could you guys help me? Thanks!


What is the difference of sudo bash and sudo command in bash file?

I would like to append some commands to ${HOME}/.bashrc file.  I made a script to do it.  # file name : setup_bash bashrc_path="${HOME}/.bashrc" comment="test" sudo echo "${comment}" >> "${bashrc_path}"   and run it by  bash setup_bash   And it results in an error.  setup_bash: line 19: /home/user/.bashrc: Permission denied   line 19 is at (sudo echo ...).  Next I tried the following code,  sudo bash setup_bash   It results in success.  What is the difference of them? Please teach me it.


$\max\{a,b\} = \frac12(a+b+|a-b|)$ and $\min\{a,b\} = \frac12(a+b-|a-b|)$  how would you go about solving this?  I started with suppose $a \leq b$  Also, show min{a,b,c} = min{min{a,b},c}.  How would I go about showing that?


Noether's theorem usually considers coordinate/field transformations which leave the Lagrangian invariant up to a divergence term, i.e.  $$\mathcal{L} \rightarrow \mathcal{L} + \partial_{\mu}f^{\mu}$$  However there is a more general class of transformations which leave the equations of motion invariant, and that is a divergence term along with an overall scaling:  $$\mathcal{L} \rightarrow \alpha\mathcal{L} + \partial_{\mu}f^{\mu}$$  but Noether's theorem does not seem to deal with these types of symmetries, which are exhibited by, for example, the Klein-Gordon Lagrangian:  $$\mathcal{L} = \frac{1}{2}\partial_{\mu}\phi\partial^{\mu}\phi - \frac{1}{2}m^2\phi^2$$  under the transformation $\phi \rightarrow \alpha\phi$ (giving $\mathcal{L} \rightarrow \alpha^2\mathcal{L}$).    The action similarly transforms as $S \rightarrow \alpha^2 S$.  I feel this is important to emphasize as there are cases in which the Lagrangian scales by a factor but the action remains strictly invariant.  This is not the case here, as the action scales by $\alpha^2$ but the equations of motion and extrema of the action are invariant, which is ultimately the only physical thing that matters.    Is there a generalization to Noether's theorem for these "scaling-type" symmetries?  I.e. is there a conserved quantity/current arising from scale invariance?


What would be the requirement to learn matrix mechanics?  More specifically, what math do I need?  Can anyone recommend me a book that covers all maths needed for matrix mechanics?


How should I calculate $\int_0^\infty e^{-\frac{1}{2}(x^2+a^2/x^2)}\,dx$

$$\int_0^\infty e^{-\frac{1}{2}(x^2+a^2/x^2)}\,dx$$  I even know the answer but indefinite integral is much more complicated than answer. The answer, according to Wolfram is $\sqrt{\pi/2}\,e^{-a}$.


can we call visualforce page from lighting web component

is there any way to open a visual force page from lighting web component. I have already tried this thing, but that is not working for me.  this[NavigationMixin.Navigate]({              type: 'standard__webPage',                 attributes: {                     url: '/apex/Vf page name '                 }         });


Identify Sci-Fi story in which time-traveler creates new religion

I'm trying to remember the name of a short story in which a criminal was being prosecuted for a crime by a zealous prosecutor.  Somehow, the criminal is able to travel back in time and reshape society, perhaps by forming a new religious order.  By the time he arrives back at the present, the laws are such that even though the prosecutor and criminal are the same people, roles are reversed, and it is now the prosecutor who is the criminal and is convicted.  In my recollection this was by Asimov but I can't find any of his stories that match.


Limit on Android version on an Android device

I'm trying to make changes to the Android framework as a part of a project. As ambitious as it sounds, I want to flash a Nexus S with an Android 5 image. Can this be done, or is there a limit to the Android version supported by a device?


Syntax highlighting in an HTML presentation

example shows how to produce PDF slides with syntax highlighting of source code. The example uses beamer and (presumably) pdflatex.     example shows syntax coloring for HTML output using htlatex. It's an unpleasant kludge   it precludes calling pdflatex on the same LaTeX file one must experiment to find what ectt-1000 maps to one defines colors for css categories, not for code syntax categories   but it works.  The following code revisits this problem and asks to do better.  \documentclass{article} \usepackage{color} \usepackage{listings} \usepackage[T1]{fontenc}  \lstset{     basicstyle=\ttfamily,     language=C++,     keywordstyle=\rmfamily\bfseries,     commentstyle=\sffamily, }  \begin{document}  \Css{div.lstlisting .ectt-1000 {font-family: monospace;color:blue}} \Css{div.lstlisting .ecss-1000 {font-family: monospace;color:green}} \Css{div.lstlisting .ecbx-1000 {font-family: monospace;color:red}}  \section*{Inserting source code} \begin{lstlisting} #include<stdio.h> #include<iostream> // A comment int main(void) {     printf("Hello World\n");     return 0; } \end{lstlisting}  \end{document}   Now commenting out the \Css lines and running pdflatex gives one output    and processing with htlatex gives another.    Can you suggest a way to make this kludge more usable by   correlating the two "blue" colors—even though ultimately one is defined in LaTeX's color package and the other in HTML, making the \Css definitions point to colors through syntax category, making it possible to process the file with pdflatex while writing/for debugging (htlatex is considerably slower)   ?


I am having an issue with a Null Pointer Exception, but I can't figure out what the issue is. Here is my code in a doPost:  HttpSession session = request.getSession(); session.setAttribute("product", product); url = "/login.jsp";   // create product list and store it in the session String path = getServletContext().getRealPath("/WEB-INF/products.txt"); ArrayList<Product> products = ProductIO.selectProducts(path); session.setAttribute("products", products);  // forward request and response objects to specified URL getServletContext().getRequestDispatcher(url).forward(request, response);   Here is the code from my ProductIO class:  private static ArrayList<Product> products = null;   public static ArrayList<Product> selectProducts(String filename) {     products = new ArrayList<Product>();     File file = new File(filename);     try {             if(file.exists())             {                 BufferedReader in                         = new BufferedReader(                                 new FileReader(file));                  String line = in.readLine();                 while (line != null) {                     StringTokenizer t = new StringTokenizer(line, "|");                     if (t.countTokens() >= 3) {                         String code = t.nextToken();                         String description = t.nextToken();                         String priceAsString = t.nextToken();                         double price = Double.parseDouble(priceAsString);                          Product p = new Product();                         p.setCode(code);                         p.setDescription(description);                         p.setPrice(price);                          products.add(p);                     }                     line = in.readLine();                 }                 in.close();             }         return products;     } catch (IOException e) {         System.out.println(e);         return null;     } }   I get the error with the line "ArrayList products = ProductIO.selectProducts(path);" but I cannot figure out why that doesn't work, since I took it directly from an example that I learned.  Here are the errors that I am getting:  java.lang.NullPointerException at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1838) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at java.lang.Double.valueOf(Double.java:502) at murach.business.ProductManagementServlet.doPost(ProductManagementServlet.java:140) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)


If the series $\sum_0^\infty a_n$ converges, then so does $\sum_1^\infty \frac{\sqrt{a_n}}{n} $

Problem:      Suppose that for every $n\in\mathbb{N}$, $a_n\in\mathbb{R}$ and $a_n\ge 0$. Given that   $$\sum_0^\infty a_n$$   converges, show that    $$\sum_1^\infty \frac{\sqrt{a_n}}{n} $$   converges.   Source: Rudin, Principles of Mathematical Analysis, Chapter 3, Exercise 7.


Failed to build EVDI installink displaylink drivers (even though already in 16.04)

I am having a similar problem to  (when installing a Dell Adapter DA100)  as in fact my output is   sudo ./displaylink-driver-1.3.54.run  [sudo] password di myname:  Verifying archive integrity... All good. Uncompressing DisplayLink Linux Driver 1.3.54  100%   DisplayLink Linux Software 1.3.54 install script called: install Distribution discovered: Ubuntu 16.04.2 LTS Installing Configuring EVDI DKMS module Registering EVDI kernel module with DKMS Building EVDI kernel module with DKMS ERROR (code 3): Failed to build evdi/1.3.54. Consult /var/lib/dkms/evdi/1.3.54/build/make.log for details..   and the funny thing is that I cannot access the make.log file. If I try to cd there I get denied access in the build folder where the make.log file should be. As you can see from above my Ubuntu is 16.04.2 so I guess I don't need to upgrade the OS.


Using Side-by-Side assemblies to load the x64 or x32 version of a DLL

We have two versions of a managed C++ assembly, one for x86 and one for x64.  This assembly is called by a .net application complied for AnyCPU.  We are deploying our code via a file copy install, and would like to continue to do so.  Is it possible to use a Side-by-Side assembly manifest to loading a x86 or x64 assembly respectively when an application is dynamically selecting it's processor architecture?  Or is there another way to get this done in a file copy deployment (e.g. not using the GAC)?


How to require root privilege to run command or alias?

On Ubuntu 14.04 LTS  I would like to force certain terminal commands to run as root - or at least require the user password - to execute.  For instance, poweroff requires sudo while gnome-session-quit --logout (which I have aliased as logout) does not.  How could I require sudo when running logout or any other command of my choosing?


I want to calculate Vo by Thevenin's theorem. First I removed the RL(1k)    Now I have to calculate Vth. Can I say that Vth is 6V? or Vth=6V + voltage through 2k?  If both these options are wrong, then tell me any law or procedure to find Vth?


If A and B are n×n matrices, then |A+B^T |=|A^T+B|

If $A$ and $B$ are $n×n$ matrices, then $|A+B^T|=|A^T+B|$ can I prove that it's t/f without giving a value to the matrices?


Create user ID `root` to force `gedit` to create user configuration file

When using sudo powers and calling gedit the top level menu with File Edit View Search Tools Documents Help is missing.  If I create user ID root and sign in once and call gedit will it create the necessary user configuration files that might fix this?  Will this also make the annoying error messages go away whenever I use sudo, gksu or pkexec as a regular user with elevated privileges togedit ?  Will there be other benefits with Nautilus and other Gnome derivative Ubuntu applications?  NOTE: by sudo powers you can google pkexec gedit 3.5k hits, gksu gedit 40k hits or sudo gedit 500k hits. I'm in the minority using the first method but I believe it will become the standard in Ubuntu 17.04.    June 12, 2017 Update Here are a list of errors you get when using pkexec gedit:  (gedit:13003): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files  ** (gedit:13003): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported  ** (gedit:13003): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported  ** (gedit:13003): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported   On this  there is a commitment to fix these distracting messages as of June 5, 2017. No indication is given for when the fix will be upstream nor if the functionality will be implemented or the error messages will simply disappear.  Note the bug report was filed over a year ago and over that time it only effects 18 people.


I need to prove that, it's clearly obvius, but i dont know how to prove that:  $$ \lim_{n\to \infty}n^\frac 1n = 1 $$


Limsup of a sequence is greater then the limsup of a subsequence?

Consider a sequence of real numbers $\{a_n\}_n$. Let $\{a_{n_j}\}_j$ be a subsequence of $\{a_n\}_n$. Suppose I have shown that $\limsup_{j \rightarrow \infty} a_{n_j}=L$ with $|L|<\infty$. Is it true that $\limsup_{n \rightarrow \infty} a_{n}\geq L$?


Showing that isotropy groups are submanifolds

Let $G$ be a Lie group acting smoothly on a manifold $M$. Then, for each $p \in M$, it is obvious that the isotropy group $G_p = \{ g \in G : gp=p\}$ is a closed subgroup of $G$. A standard theorem () about Lie groups tells you that closed subgroups are (embedded) submanifolds, so this is true in particular of the isotropy group $G_p$. I must confess, however, that for me this theorem is really more of a "fact". The proof looks a little complicated, and I have never gone through it. So, I would like to know     Question: Is there a way to see that $G_p$ is a submanifold more directly, i.e. can this be shown with less work than it takes to prove the more general statement about closed subgroups?


Prove that $\lim_{n\to\infty} \frac{a^{1/n} - 1}{1/n} = \ln a$

Let $a>1$. If someone could give me an extended prove of that result using only sequence sequences, I would really appreciate it. Thanks in advance.


A way for "new users" to ask about their post specifically

We currently require that new users have 5+ reputation to participate in meta support discussions (bugs, feedback, governance, etc). This is primarily because the use case for meta is not intrinsically obvious, so we require a modicum of "experience" with the site before jumping into it.   But that blocks new users with legitimate questions about their own posts.  Setting aside any arguments about new-users-are-evil-and-suck-the-life-out-of-our-community, I would like to propose a very specific path for new users to ask about their own question provisionally.  Instead of blocking a new user with this message:     You must have at least 5 reputation on <site> to ask a question on meta.   We can change this to:     You must have at least 5 reputation on <site> to post on meta, but you may ask a question about your own post specifically.      Link to your post:                                                                                ask about this post   cancel    The system will check whether the linked question provided belongs to the author. . The user can then proceed with the post provided they leave the template (below) intact:     Title                                                                                <!--Do not remove-->   <!--Note: Questions not about your post will be deleted-->      I have a question about the post:       <!-- Your question below: -->         Not only is this a great and gentle introduction to the proper use of meta, but it stands to help new users just when they need it most (learning to use the community).   Of course this doesn't 100% guarantee that someone won't get it wrong on occasion. But this is an awful lot of in-your-face guidance without simply telling people "read our FAQ" (which they never do). And if a user manages to step over all that guidance and still manages to misuse meta, I have no compunction about summarily removing a question they should never have posted.   But this just-in-time learning is a very effective way of learning a new site in a gentle and thoughtful way. If this is abused more often than not, it is easy to disable. But it's better than assuming clueless newbie every time.


Is it possible to truncate AES output and keep uniqueness (no decryption needed)?

I would like to hash numbers less than 1000000000, so generally they could be stored on 30 bits. The aim is to obtain numbers that are not reversible, so my initial plan was to use SHA256 (with some salt). However, I would like to keep the output as short as possible, but I want to be sure that there are no collisions. Hash functions do not guarantee me that-- especially when I truncate their output. Probably I could check if there are collisions for my numbers, but maybe there is some better way?  Is it possible to reduce the size of the output of AES and keep uniqueness-- assuming that I don't need to decrypt and it is even desired to not be able to do so? Maybe divide each output into four parts and XOR all of them to get a 32-bit output?


How can I calculate magnification ratio I get by reversing a lens?

I am looking for a way to mathematically determine the maximum magnification ratio that is possible/practical to achieve by reverse mounting a non-macro lens, prior to purchasing the lens.     See related questions:


Chinese typing in mac, keeping the same line spacing as English document

Following instructions from  , I can type Chinese in TexShop, the characters shows properly in PDF file.  What I did is replacing   \documentclass[10pt]{article}   with   % !TEX program = XeLaTeX % !TEX encoding = UTF-8 Unicode \documentclass[UTF8,nofonts,10pt]{ctexart} \setCJKmainfont[BoldFont=FandolSong-Bold.otf,ItalicFont=FandolKai-Regular.otf]{FandolSong-Regular.otf} \setCJKsansfont[BoldFont=FandolHei-Bold.otf]{FandolHei-Regular.otf} \setCJKmonofont{FandolFang-Regular.otf}   However, after changing the tex file header, the line spacing becomes bigger.  Before    After     Edit according to request from comments:  The part generating the paragraph is like this:   \noindent Let $E/F$ be a field extension, $\alpha \in E$. The {\bf minimal polynomial} of $\alpha$ is the monic polynomial of least degree among all polynomials in $F[x]$ having $\alpha$ as a root; it exists when $\alpha$ is algebraic over $F$, that is, when $f(\alpha) = 0$ for some non-zero polynomial $f(x) \in F[x]$.  最小多项式   The whole tex file is as below (I copied the header from somewhere else, not really understand every line)  % !TEX program = XeLaTeX % !TEX encoding = UTF-8 Unicode \documentclass[UTF8,nofonts,10pt]{ctexart} \setCJKmainfont[BoldFont=FandolSong-Bold.otf,ItalicFont=FandolKai-Regular.otf]{FandolSong-Regular.otf} \setCJKsansfont[BoldFont=FandolHei-Bold.otf]{FandolHei-Regular.otf} \setCJKmonofont{FandolFang-Regular.otf}  \usepackage{amsfonts,amssymb,amsmath,amsthm,epsfig,latexsym} \newcommand{\nc}{\newcommand} \def\nr{\par \noindent}  \theoremstyle{plain} \newtheorem{theorem}{Theorem} \newtheorem{lemma}{Lemma} \newtheorem{definition}{Definition} \newtheorem{prop}{Proposition} \newtheorem{corollary}{Corollary} \newtheorem{remark}{Remark}  % This is FULLPAGE.STY by H.Partl, Version 2 as of 15 Dec 1988. % Document Style Option to fill the paper just like Plain TeX. \typeout{Style Option FULLPAGE Version 2 as of 15 Dec 1988}  \topmargin 0pt \advance \topmargin by -\headheight \advance \topmargin by -\headsep  \textheight 8.9in  \oddsidemargin 0pt \evensidemargin \oddsidemargin \marginparwidth 0.5in  \textwidth 6.5in % For users of A4 paper: The above values are suited for american 8.5x11in % paper. If your output driver performs a conversion for A4 paper, keep % those values. If your output driver conforms to the TeX standard (1in/1in), % then you should add the following commands to center the text on A4 paper:  % \advance\hoffset by -3mm  % A4 is narrower. % \advance\voffset by  8mm  % A4 is taller.  \begin{document}  \noindent Let $E/F$ be a field extension, $\alpha \in E$. The {\bf minimal polynomial} of $\alpha$ is the monic polynomial of least degree among all polynomials in $F[x]$ having $\alpha$ as a root; it exists when $\alpha$ is algebraic over $F$, that is, when $f(\alpha) = 0$ for some non-zero polynomial $f(x) \in F[x]$.  最小多项式  \end{document}


Question is self explanatory; integration of the above (I tried a substitution of $\sin(x)=u$ after getting the integral of $\sin(101x)\cdot \sin^{99}x$.


I was trying to do some fastboot commands on my Galaxy devices (Galaxy S4, 9515, 4Tab4), I start with fastboot devices and I am getting nothing (after adb reboot bootloader), is there any problem with samsung devices?


Science Fiction novel set in Britain, with a group called Ests or Ents

This has been driving me crazy for months! I hope someone remembers this.  It was probably but not definitely a YA book, though probably not called that at the time. It was Science Fiction. It was AT LEAST pre-1988, and read (and probably published) in the UK. It might have been from Penguin, not sure. It was not a very thick book, the paperback was maybe 1 centimeter thick.  The following details may have some mistakes - it's about 30 years since I read this.  It was set in a future Britain (not the UK, from what I recall).  The hero, a male, was either about to, or had just reached maturity, and was expected to start adulthood. He was part of the privileged elite who ran Britain an educated clique called the Ests or Ents (unless that name was for the revolutionaries), and his father was a significant member of that group/the government (perhaps even the leader), who expected great things from him (and obedience).  Instead he runs off and meets with the revolutionaries (who are losing), and perhaps falls in love with one, after overcoming their initial distrust. The revolutionaries were not part of the ruling group, though some may once have been. I think he tries to tell the revolutionaries that he can persuade his father to do something, perhaps go easy on them or make peace.  At some point the hero breaks into his parents' house (maybe through a skylight?), where I think he meets his father (unexpectedly sitting in a chair waiting for him?). I seem to recall he expects his mother to be there and wants to talk to her. I'm pretty sure the father tells him it's been a trick, they've been tracking him and he has betrayed the revolutionaries (and his mother is not in the house). His father expects him to rejoin the clique and forget all this nonsense. I think that at the end of that meeting guards move towards the house to catch him (and possibly any revolutionaries who came with him, I don't remember).  In the end the hero returns to some sort of camp or guard post, either under guard or to do something for the revolutionaries, and meets his father. I think the father pulls a pistol on the hero and threatens to shoot him, or maybe his revolutionary girlfriend, but somehow the hero ends up holding the pistol on his father, and I think he shoots him, to his father's surprise.  A few other details; I think the hero (and maybe the government) was based in Cambridge or Oxford. I think there was a wall or defensive perimeter around the city that the hero goes through, out into the wild countryside. I think the father's house was out in the countryside, though that seems unlikely, so maybe it's just in a wooded area within the perimeter.  Oh, and I think the cover had a futuristic car on it that looked a bit like the Lotus Esprit from James Bond (The Spy Who Loved Me).  I really hope someone can help identify that!


Since we upgraded to WSS 3.0, I have an issue with the list webpart on the default.aspx page.  If I go to Edit page, add web part - list or library, the view used on the default.aspx is incorrect. It is missing the column 'modified' that shows the date. When I click on the web part header to proceed to the AllItems.aspx page, the view is correct.  I've created a new view, set is as the default view, but this only applies on the AllItems.aspx pages. When adding the webpart to the default.aspx page, the view is not used. The webpart is always in 'current view'. Changing this to the newly created view then makes it show all columns specified in the view I created.  Does anyone know what view is used when the webpart is first added to the page default.aspx? Or, to ask another way, which view is the webparts 'current view' based on?  I can change the view manually each time I add a webpart, but I'd like it to reflect the correct view at the time of adding it to the page.  Kind regards, Geert


For what values $s$ does $\int_{0}^{\infty} \frac{\sin x}{x^s}dx$ converge?  Solution says $0<s<2$.  Any ideas?


If $k$ is odd, then $(k-1)k(k+1)$ is divisible by $24$

How would I show this? I tried letting $k=2n+1$ for some $n\in\mathbb{Z}$, then   $$(k-1)k(k+1) = 4n(2n + 1)(n+1).$$    I have shown that $4n(n+1)$ is divisible by $8$... but am unsure of how to get the $3$ factor there.


Load external php library in custom module

I’ve read a lot of topic on this but i can’t figure why it is not working for me.  I’ve built a custom module. It is working fine since return $output; in my controller class is working : I can see in front-end a page with my custom html.  I’ve written a script outside Drupal in order to test. Basically, i connect to a webervice and retrieve all the datas. It’s working fine.  Now, i want to execute that script inside the controller class.  I need to load an external php library to instantiate an object.  In my test php file (outside Drupal) a simple require_once is working.  require_once('nusoap.php');   But it is not working in my controller class.  So, i’ve activated the library module and do :  $path = libraries_get_path('nusoap') . DRUPAL_ROOT . '/modules/contrib/webservices_tr/webservices_dc/src/Controller/nusoap.php';  require($path);   It’s still not working.   Error message indiquactes :     Error: Class 'Drupal\webservices_dc\nusoap_client' not found   I’m sur the file path is correct because if i do this, i can see the content of the file.  echo file_get_contents(DRUPAL_ROOT . '/modules/contrib/webservices_tr/webservices_dc/src/Controller/nusoap.php'); die();   I’ve also tried this :  in nusoap.php (where there is the class i need to include),    namespace Drupal\webservices_dc;   and in module controller class :  use Drupal\webservices_dc\nusoap_client;   But it is still not working.  Finally, i’ve copied the content of the external php library inside the module controller and it is working.  So i’m nearly sure the issue is related to the loading of that external library.  What is the correct way to load external php library (and wait it is fully loaded) in order to use it in a custom module ?


New domain vs Subdomain vs new Folder for each new project

If I have a domain like http://example.com/ which would be the best to use for every new project I create. Would it be a subdomain http://exampleprojectname.example.com/ or a new domain http://exampleprojectname.com/ or a new folder http://example.com/exampleprojectname. Which one would be the best and good for seo.


I use  assertEquals(String, String)   in a JUnit test. Netbeans (or is it Maven?) suggest that I add an import of one of:  org.junit.assert.assertEquals junit.framework.assert.assertEquals junit.framework.testcase.assertEquals   Which one should I use and why?  Edit:  As compared to the question  this question lists three possible imports as compared to two for the other question.


I would like to move to 18.04 LTS, can someone clarify me how to please? 16.04 installed Thanx


How to transform the face of an object in a texture?

I have below a cube type object that has very sharp faces. These faces contain 3 different colors (3 different types of purple) and I want to know if there is a way to transform these faces in a 2D texture so I could then delete the sharp faces and add the texture to a flat face, without loosing the aspect and forms of the colors. Is there a way to do that?


Sequence of positive integers such that their reciprocals are in arithmetic progression

Let $m_1 < m_2 < \ldots < m_k$ be $k$ distinct positive integers such that their reciprocals $\dfrac{1}{m_i}$ are in arithmetic progression.    Show that $k < m_1 + 2$. Give an example of such a sequence of length $k$ for any positive integer $k$.   Any kind of help would be appreciated. 😊


two functions are uniformly continuous on some interval I and each is bounded on I then their product is also uniformly continuous on I .

prove that if two real valued  functions are uniformly continuous on some interval $I$  and each is bounded on $I$ then their product $f\cdot g=f(x)\cdot g(x)$ is also uniformly continuous on $I$ . Is boundedness of each function  on $I$ is  necessary for the product


On opening a site feed, sorting options are available for questions.    These however, are not available after entering a search query.    It should be possible to sort search results just like in the site feed.  Version: 0.1.36


How do i figure out the user name on a laptop I bought

I changed the password but I don't know how to do the username


Is there a slang word or idiom for someone who borrows money from friends or relatives and never (or rarely) pays them back?

Edit - My question doesn't refer to bank loans or credit card accounts.  Nor does it refer to getting things out of other people's generosity. It is specifically about money and the putative duplicate doesn't address that. If there is no specific word for someone who never pays back his debts, then the answer here should be "there is no specific word for that".   I'm looking for a slang word or idiom for a person who borrows small amounts from friends or relatives (say US$ 50-200) and never pays them back. Usually this kind of person has low-income or is jobless. He is irresponsible, he knows he won't be able to pay his debts but doesn't care. (Perhaps because he knows nobody will be taking him to court because of US$20 or 50.)     "I wouldn't lend him one cent. Everybody knows he's a ........."


Unable to run Sublime Text 3 on Ubuntu 18.10

I've just installed a fresh copy of Ubuntu 18.10 on my system. I updated the OS via sudo apt-get update and sudo apt-get upgrade commands. After that I installed Google Chrome.  These are the only things I've done prior to installing the Sublime Text 3 text editor .  I obtained the install commands from Sublime Text's download web page. Then I proceeded to install the editor using them.  wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - sudo apt-get install apt-transport-https echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo apt-get update sudo apt-get install sublime-text   The installation completed without any hiccups, but when I try to launch the application, it fails to do so.    You can see on the taskbar that the application is starting up, and the mouse pointer shows the loading animation (that doesn't show up on the screenshot though), but Sublime Text 3 doesn't start.  I don't get any errors or anything. I've even rechecked if I was missing any dependencies via terminal, and checked for updates and upgrades one more time, but nothing was missing. I've tried googling the issue, but haven't found anything.  EDIT: The solution to this issue, which I've tested on multiple PCs (that worked on all of them), is executing this command:  sudo apt-get install libgtk2.0-0


I've got two cursors on my screen on recent upgrade from 17.04 to 17.10

I have a Wacom Bamboo tablet and a Bluetooth mouse (I prefer to use only the Wacom), and annoyingly, it seems the cursors work independently, one for each device, but my Wacom cursor seems to disappear when using it. I have tried disabling the mouse by removing the batteries and sensor (didn't work), installing a new Wacom driver or Cinnamon Graphics Tablet driver but still two cursors. I suspect it may be my graphics driver...my graphics card is a ATI Radeon HD 5450, and I cannot seem to find the proprietary drivers. I did not have this problem on 17.04. Any help would be greatly appreciated. Thanks in advance!


How do I set point density node for smoke?

I’m trying to make this animation , I’m using particles from an emitter to create the smoke and force fields to give them the direction I want .   The problem is I’d like to shade the smoke as it was very much heated in the center , where the particles flows is , so it looks pretty much like a lighting bolt .   I knew of a function named voxel data in the textures that would allow to achieve this result , but I can’t find it in the new version of blender . Does anyone know what I should do , once I got the smoke from the particles emitter ?


iOS App, version 1.0.1.  Edit → Close → Off topic because… → Belongs on another site…  Crash!  I'm a moderator on the site — maybe that's a contributing factor.  It is 100% reproducible on all questions I have tried on both the main site and meta site.  This bug is distinct from .


can pokeballs capture items such as rice balls

i was re watching episode 25 of the original Pokemon series and while ash threw a ball at manky, manky threw a rice ball back and the rice ball was captured just like a Pokemon but opened when it landed in ash's hands. from what i know, poke balls can capture nothing but Pokemon and it doesn't react to anything but Pokemon. so how does this work?


Fluent and Query Expression — Is there any benefit(s) of one over other?

LINQ is one of the greatest improvements to .NET since generics and it saves me tons of time, and lines of code.  However, the fluent syntax seems to come much more natural to me than the query expression syntax.  var title = entries.Where(e => e.Approved)     .OrderBy(e => e.Rating).Select(e => e.Title)     .FirstOrDefault();  var query = (from e in entries              where e.Approved              orderby e.Rating              select e.Title).FirstOrDefault();   Is there any difference between the two or is there any particular benefit of one over other?


How are REST urls protected?  For example I have a GET URL like https://localhost/8080/user. It will give a list of user. How can I protect this info if someone is accessing it?


Let $f \in C [a,b]$ such that $\forall x\exists y$ such that $|f(y)| \leq \frac{1}{2}|f(x)|$. Prove that $\exists c\in [a,b]$ such that $f(c) = 0$.

$$f\in C[a,b] $$If given that for every $x\in[a,b]\text{ there exists } y\in[a,b]$ such that: $$|f(y)| \le \frac{1}{2}|f(x)| $$ Prove that there exists $ c\in[a,b]$ such that :   $$f(c)=0$$  What I've done so far : We will build a sequence in this way: $$\text{take } x_1\in[a,b]$$ for this $x_1$ there exists $y_1$ such that $ |f(y_1)|\le\frac{1}{2}|f(x_1)|$ $$\text{now $y_1$ will be our $x_2$, } y_1=x_2 $$ we will go on by doing this: $$\text{take } x_n\in[a,b]$$ for this $x_n$ there exists $y_n$ such that $ |f(y_n)|\le\frac{1}{2}|f(x_n)|\le \frac{1}{2^{n}}|f(x_1)|$  I know that this is the only way to prove it but can't seem to get on from here.. any help?


I bought some "pineapple" post caps made of treated pine. When they arrived, I was taken aback to see, rather than an overall greenish tinge, splotches and patches of green. I tried to attach a photo but can't--something about needing "at least 10 reputation to post images"?!? I realize it'd be a lot easier if you could see a photo, but can anyone advise what went wrong? As my plan has been to leave these unstained, I will probably have to send them back-- unless someone knows how to "fix" this problem? Does anyone know of a company etc that sells a similar--hopefully better treated--product? I've had a hard time finding pineapple post caps like this, but I just don't think I can use these in their present condition.


dpkg always failing, complaining about missing package name

I'm running Ubuntu 14.04 from a liveUSB due to a problem with my HDD. Today I was trying to install Steam, but the installation failed every time. Some testing later, I noticed every installation of anything at all fails now, because of dpkg throwing the following error:  dpkg: error: parsing file '/var/lib/dpkg/available' near line 31:  missing package name E: Sub-process /usr/bin/dpkg returned an error code (2)   I also can't seem to manage to uninstall and reinstall dpkg, but that may just be my poor Linux skillz.  Any ideas why this is happening, and how to fix it?


Unexpected behaviour of interval shooting with Nikon D5100

I want to do some star trail and time lapse shoots this weekend and I have for the first time been looking into the interval shooting option on the Nikon D5100. I already understood that the interval time needs to be longer than the shutter speed so as a test I set the shutter speed to 30 seconds and the interval setting to 32 seconds. I said I wanted 3 shots.  I activated it and it took the first 30 second exposure, then seemed to sit around for another 30 seconds before taking a 2nd 30 second exposure and then decided it was done.  What I had hoped for was 3 x 30 second exposures with a 2 second gap between them. What have I done wrong to end up with such a big delay between exposures and then not even getting the requested number of shots?


I need to evaluate the following:  $$\int_0^1 \dfrac{x}{1+x^3}dx$$  I've managed to get it down to this:  $$-\int_0^1 \dfrac{1}{x+1}dx + \int_0^1 \dfrac{x-1}{x^2-x+1}dx$$  but now I can't integrate the 2nd integral :(   Any hints/tips?  Thanks


Do resistors limit voltage, or reduce it?

I have been very confused with resistors because I have not found a great, although simple explanation about if resistors reduce or limit voltage. Also, I want a explinaton on why you subtract Vf from V when finding the right resistor for a LED. I get that V=IR, but I don't get how to get the resistor value. I take (V-Vf)=I*R, that means that if I want to get 5v to 3.3v@25mA, I take 1.7=0.025*r, meaning that the resistor would REDUCE VOLTAGE by 1.7 volts, correct? Thanks! *Feel free to make any comments and questions, this is quite vague.


Examples:   Yes Siree Bob Bob's your uncle   Who is bob and where did he/she come from?


I want to write:    and give error:   When I put   \textit${x_{min}}$   It also error


Finding the probability distribution of the sum of geometric distributions?

X and Y are both geometric distributions with success p. What it the Pr(X+Y=n)  Would I use a convolution with a sum for this? Do I need to define a third random variable?


Careers 2.0 Search Function: Why is Joel Score not included as a search filter?

Right now, for job seekers in Career 2.0,  it looks like they can choose the following  filters:   what where distance (use slider) 20 miles      Only telecommute jobs Only jobs offering relocation     I am aware that companies can opt to not reveal their Joel Test Score in the posting, but for those that do, it would be nice if this was available as a filtering option for job seekers.  Was this debated previously and I missed it?   The Joel Test Score is something I have not seen anywhere else on the web. As I contemplate my next career move, it is something I would definitely take into account. In fact, I would probably give a Joel test result more weight than any of the other current search filters, because it gives a lot of clues as what my quality of work life would be like at that company as well as the company culture.   In the Search section, how hard would it be to add a checkbox with label like "JoelTest Publicized" to the list?


Vim regex to replace zero or one spaces at the end of a line with two spaces

I want to change all lines in a file with zero or one space at the end to end with exactly two spaces (to force line breaks when the file is parsed with markdown).  I've done it in Sublime Text with the following find and replace regexes:  Find:    (\S)[ ]?\n Replace: \1  \n   But out of interest, I wanted to try and do the same substitution in vim.  I tried the above but it found no matches. So I tried  :%s/\(\S\)[ ]\?\n/\1  \n/g   and it places weird characters all through the file.  On its own, /\(\S\)[ ]\?\n finds all the correct line endings.


Do any OS X apps ease Search and Replace across multiple files?

I'm looking for an OS X tool which allows me to search and replace a search string in multiple files. The requirements are the following:   Search and Replace Search by regular expression Search across multiple files Search across nested directory structures Replace expression can use values from the search (Regular Expression) The tool has an easy to use user interface Preferably free   I know that some text editors like BBEdit have this functionality, but I would prefer a lightweight tool that doesn't require me to open the files for editing first.  If there aren't any tools to match these requirements, I would also consider a command line alternative. I know that perl and sed support something like this - a solution that I can define either as a Bash alias or function would be welcome in this case.


Keep my 3d player from jumping if he's not on the Ground

I'm making a 3d game, and I have only made games in 2D before, but i have used blender before too.  My player can now walk and jump, but he is not limited to only jumping of the ground.  In 2D, you separated ground objects in a collision layer, and in the jump method you add an if statement like this  if(myCollider.IsTouchingLayers(LayerMask.GetMask("climbing"))) {     //do the stuff }   Apparently this is designed for 2d only.   How do I do this in 3d?


When i open the terminal and type      su XXXXX    where terminal open in the name of XXXXX , it ask for password and switched. Am i not already there in the first place when i opened the terminal? So What is the differences between terminal open in the first place and terminal open after I switch to same as open in first? I do not seems to find any differences here. When i type exit it exits and bring me where i am before. Am i always in same place or different? If i am on same place why switching account happen ?


Probability mass function with variable probability?

I would like to calculate the probability of a certain result coming out at least 'x' times in 'n' attempts when the probability of result varies on every attempt; all attempts are independent events.  I found that I can use PMF when I have the same probability for every event, e.g. probability of 3 tails in 5 coin tosses. But there the probability is 50% (If we use a fair coin) for all events. When the probability changes on each attempt I'm lost.  Let's say that the probabilities of outcomes in 5 events are: 30% in the first, 35% in the second, 50% in the third, 42% for the fourth, and 25% in the fifth. What are the probabilities of it happening at least 1 in the 5, what are the probability of 2 of the 5, 3/5, 4/5 and 5/5?  I don't need the probability of the hypothetical case I'm using here as example just the formula for calculate this kind of probability or the name of this kind of thing so I can search it.


Can some explain how Regex engine works when it tries match    ^4$ to 749\n486\n4    I am mean how Regex engine parse string While performing match


What's the fastest way of writing 1s to a hard disk?

I'm currently writing 1s to a file using the following:  tr '\0' '\377' < /dev/zero > /dev/sdb   But this is a really slow method when I want to fill a 500GB disk. Is there a quicker way?


What tool is used for 3d looking layouts like this?

I've been trying to find a way to create layouts like this for a while, and now that I have the time to try, I'm wondering if anyone knows how to do this? Where do I start in trying to create images like this, especially like the second image in the link provided.  I am fairly advanced in Ai, Ps, and some of the other applications in the CC suite, but I never really use inDesign. Is that the tool used for these layouts?  Any help would be greatly appreciated, for I would really like to learn how to do this.


I have made the box and the lid. I want to close the box with the lid. I have selected the edge and with the 3d cursor as pivot point im rotating. with the x axis i rotate i hit x twice also but its not working. Why its moving from the position. Any suggestion or help plz.


I have a UK account but have relocated to Australia. I'm trying desperately to change my account details but the system won't let me as I have £10 credit on my UK account.  I don't mind losing the £10 I just want to change my details to my new Oz details.  Anyone know how? Also, is possible to credit the £10 to my Oz account as that would be fantastic.


Does Kylo not know the fate of Darth Vader?

It seems Kylo has an obsession of Darth Vader and has an interest in the dark side because of it.   Does he not realize that Darth Vader turned good and helped destroy the Empire (Spoilers?)? I feel like Kylo would've seen how much better the Light Side was as it was able to turn Vader from the Dark Side if he had known this.


In transformers, the ratio of the voltages equals the ratio of the turns - so double the output coil's turns and the output voltage doubles. Then, in order to conserve energy, current halves.  This makes perfect sense in terms of $\mathrm{P=VI}$, but what happened to $\mathrm{V=IR}$? Doubling voltage and halving the current seems to completely contradict this basic law. That is, of course, unless the resistance in the output circuit changes, with R proportional to $\mathrm{V^2}$ - but I don't see how this is possible.  So how can a transformer obey both laws? Can resistance change or am I missing something else?


I'm having some trouble with Biblatex.  This is a compileable version of my document:  \documentclass[ngerman]{article}  \usepackage[utf8]{inputenc} \usepackage{lscape} \usepackage{xspace} \usepackage[ngerman]{babel} \RequirePackage[ngerman=ngerman-x-latest]{hyphsubst} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{array} \usepackage{makecell} \usepackage{tabulary} \newcolumntype{?}{!{\vrule width 1pt}} \newcolumntype{~}{!{\hrule width 1pt}} \newcommand\textlcsc[1]{\textsc{\MakeLowercase{#1}}} \title{Übung} \author{Phil} %in the preamble for Bibliography %--------------------------------  \usepackage[   backend=biber, style=authoryear, ]{biblatex}  \addbibresource{IEEEexample.bib} %--------------------------------   \begin{document} \maketitle  Some text is to apper here. Yesterday... \cite{underwood_Test} now the usual  text continues.  But what does this actually mean?  Bring me one of these big bags... not the individual wrapped ones, the whole  big bag. That's the one I want. Business as usual... Disguting.   \newpage   \printbibliography  \end{document}   I'm getting this error and cannot find its cause by myself. Process started  This is BibTeX, Version 0.99d (MiKTeX 2.9.6630 64-bit) The top-level auxiliary file: mydocument.aux I found no \citation commands---while reading file mydocument.aux I found no \bibdata command---while reading file mydocument.aux I found no \bibstyle command---while reading file mydocument.aux (There were 3 error messages) Process exited with error(s)


Show only features within current Atlas feature

In QGIS 2.14 is there any way of just showing features within the atlas from another layer. In the image the atlas feature is the red "Estates" layer and the blue buildings are the "buildings" layer.  I have created over 30 plans showing different estates. I wish to only see the buildings that are within the estates boundary and none of the others. Is this possible?


I am struggling to find a solution for image styles not getting generated. The original pictures get uploaded to the server but no styles or thumbnails are generated.   I have checked folder permission and set it to 775 and even 777 (temporarily) for the /styles/ and its subfolders.   I even set $conf['image_allow_insecure_derivatives'] to TRUE.   Yet I still get access denied for the anonymous users (not verified when I upload images and no styles or thumbnails).   Any suggestions are greatly appreciated.


Does action really have to be Lorentz-invariant in SR?

From Landau & Lifshitz The Classical Theory Of Fields it is said:     To determine the action integral for a free material particle (a particle not under the influence of any external force), we note that this integral must not depend on our choice of reference system, that is, it must be invariant under Lorentz transformations.   This seems understandable. But in comments on  Ján Lalinský says that "there is no good physical reason why action should be invariant". Further he suggests another Lagrangian than that given in L&L, namely, if we denote L&L Lagrangian as $L_0$, then the example could be $L_0+Cv_x$, which is clearly anisotropic. Clearly, the equations of motion must not change with this Lagrangian, because $Cv_x$ is a total time derivative (of $Cx$).  On the other hand, in  Luboš Motl says that "the invariance of the action follows from special relativity – and special relativity is right (not only) because it is experimentally verified. [snip] If $S$ depended on the inertial system, so would the terms in the equations $\delta S=0$, and these laws of motion couldn't be Lorentz-covariant".  How could I connect L&L and Luboš's arguments with Ján's example? Can both sides be simultaneously right? They seem to contradict each other.


$W^{m,p}_{0}(\mathbb{R}^d) = W^{m,p}(\mathbb{R}^d)$ and continuously imbedded

Can anyone help me solve the following results? If $1\leq p < \infty$, then (a) $W^{m,p}_{0}(\mathbb{R}^d) = W^{m,p}(\mathbb{R}^d)$, (b) $W^{m,p}_{0}(\Omega) \hookrightarrow W_{m,p}(\Omega)$, (continuously imbedded), where $W^{m,p}_{0}(\mathbb{R}^d)$ the closure in $ W^{m,p}(\mathbb{R}^d)$ of $C_{c}^{\infty}(\Omega)(test function)$ and $W^{m,p}(\mathbb{R}^d)$ is space sobolev.


Is there an easy process to figure out a song's specific genre?

I always hear music that is apparently one genre, but it's actually another for some reason.  For example, earlier today I was listening to Infected Mushroom and I noticed some of their songs are verging on what most people would consider dubstep, but Infected Mushroom is classified as things such as psytrance and glitch-hop.  Is there a process to easily break large genres (e.g., electronic) down into smaller and smaller genres to figure something like this out?


How to install Windows 7 in Dual Boot with Ubuntu (Ubuntu pre-installed)

I want to ask how can I install Windows 7 Home Premium in Dual Boot with pre-installed Ubuntu. I`ve never opened my laptop, so the Ubuntu Set-up is not made.


How to draw a closed curve around a set of points/nodes keeping a minimum distance?

I basically want to achieve the same thing in Tikz as Ilonpilaaja in the following question:      However, I have to do this multiple times with nodes that are spread around more chaotically. I am not happy having to manually specify all the points the curve has to pass through (X.south west, X.south east, etc.). I'd rather specify the coordinates that it has to pass some distance around.  To put it another way: I'd be quite happy with a cycled path with rounded corners, but then I'd want specify the center for each 'corner arc' rather than the underlying 'sharp corner' points. One could be translated to the other, but as far as I can tell this would require tedious calculation of angles.  Is there a (simple) way to do this?


How to initialize a static reference to a variable inside the class, for use in nested classes

I need to save in Class static ref to a variable for use in nested classes in a future. I have no problem in use ref to a variable (not static), but with static i have to use int & myClass::refA = ... in someware. The problem is that i can use int & myClass::refA = ... only in myClass constuctor, because only there i got the ref for refA, in myClass mc(newA) colling. How to initialize a static reference to a variable inside the class constuctor?  Code:  class myClass {     private:         static int & refA;     public:         myClass(int &_refA);         void updateA(); };  myClass::myClass(int &_refA) : refA(_refA) { }  void myClass::updateA() {     refA = refA++; }  int newA = 10; myClass mc(newA); mc.updateA();    Error:  In constructor 'myClass::myClass(int&)':  QF:17:3: error: 'int& myClass::refA' is a static data member; it can only be initialized at its definition   : refA(_refA)    ^  exit status 1 'int& myClass::refA' is a static data member; it can only be initialized at its definition


Prove that $(\sin \theta+\csc \theta)^2+(\cos\theta+\text{sec}\theta)^2\geqslant 9$

Prove that $$ (\sin \theta+\csc \theta)^2+(\cos\theta+\text{sec}\theta)^2\geqslant 9 $$ My attempt: I started by expanding this and got $5+ \csc^2\theta + \sec^2\theta$, after I made this $5+ \frac{1}{\sin^2\theta}+\frac{1}{\csc^2\theta}$ but now I am not able to proceed and not getting how to prove this expression $\geq 9$. So kindly help me.