How should I address my mediocre (at best) GPA in my Statement of Purpose [applying for MS in Engineering]?

I have a 3.18 undergraduate GPA, which isn't great for the schools I want to get into (I'll be applying to top 20 engineering schools for computer engineering). I was pretty blind to this at the time, but I was consumed by a bad relationship during my junior year and beginning of senior year that had a really bad impact on my balance of life and health at the time. It's especially evident in my grades, which are good Freshman and Sophomore year (A's/B's), droop to C's/B's junior year, then rise back up to B's/A's towards the end of senior year. I'd really appreciate some advice on how to extenuate my GPA using my Statement of Purpose!  Some other info:  My GRE score is strong (167 M / 162 V / 4.5 Writing), I still managed to get two letters of rec from professors and a strong one from a VP in my company, and my design work experience in my company is extremely valuable for what I am applying to (computer engineering). The glaring black mark is the 3.18 GPA, which if I don't address it, I don't think I am doing myself any justice with how hard I've worked on the other parts of my application.  What's the best way to exonerate myself while sounding professional and not seeming like I'm whining/making excuses? How directly should I talk about my overall mental health/balance at the time? Has anyone been in a similar situation?  Kind of related question: given my situation, does anyone have any advice on what the balance should be between talking about what I have accomplished (design work) at my company vs. why I am interested in the school's program/what I plan to do with my degree?  Thanks for the help!!


Should magazine names be written in italics?

should they be in italics like books and newspapers? I know about the latter but what about foreign magazines?


Are there any tools to scale/magnify a given window or application?

I recently purchased a Lenovo Yoga 2 Pro, which sports a high-dpi 13" screen with a resolution of 3200x1800, running under Win8.1.  The issue I sometimes face is that some applications will not scale properly and will look tiny on screen, making them almost unusable.  I'm aware of the scaling options for Win8 and of the magnifier tool (that you can call using the  and + or - keys), but it will magnify parts of the screen only and its use is cumbersome since it is indiscriminate.  Ideally, what I would need is a utility that can automatically resize the windows of a given application or at least a selected window.  I'm sure this is an issue that will become more common as high-dpi screens become more mainstream for Windows machines.


Wrong association bonus point number shown while joining Space Exploration community

Recently I had joined to  community. Though I have receive 100 association bonus point, wrong number was shown as notification.


How do you get your Google+ profile displayed in the right hand sidebar of the Google search results page?

Does anyone know how to get your Google+ profile displayed in the right hand sidebar of the Google search results page? As in the screenshot below:


Caption makes Table move in statsoc class

I am working in statsoc.cls (you can find it ). Here I show you a working file for the problem I am facing in my paper.  I have a table which has a long-ish caption (2-3 lines). Every time I compile my .tex file, the table moves a little to the right of the page. I think it is because the captions stop wrapping at some point.   \documentclass{statsoc}  %%%% Packages to be used \usepackage[a4paper]{geometry} \usepackage{amssymb, amsmath}  \usepackage{graphicx} \usepackage[caption = false]{subfig}  \usepackage{enumerate} \usepackage{comment} \usepackage{natbib, float}  \title{``Table keeps moving every time I compile''} \begin{document}  \maketitle  \begin{table}   \caption{Table moves a little everytime I compile. I think this is because I have a long caption, but I cannot figure out how to resolve this problem. As you can see I am using statsoc.cls. I can reset the table if I delete the .aux file and recompile}   \fbox{%     \begin{tabular}{c c c c c c c c c c c c c c c c c c}     \hline     1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5 & 1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5\\     1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5 & 1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5\\     1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5& 1 & 2 & 3 & 4 & 5 & 2 & 3 & 4 & 5\\     \hline     \end{tabular}} \end{table} \end{document}   When I delete the .aux file and re-compile, it starts off as this:    Then after one compilation becomes    Then after many more     As I recompile, I make no changes inside the table environment, and work outside it. I believe  question is exactly the same as mine, but the question got closed.   I am not sure if you need more information here. Let me know if you do.   There is an overleaf user who writes      Note that if your document contains other LaTeX errors, the tables   will not be processed correctly. Therefore if you're getting an error   message about Missing number and \statsocwidth@b etc, comment out your   tables and correct other errors in your code first. Then uncomment   your table code, and hit "recompile from scratch" at the bottom of the   error/warning message window.   So apparently, every time there is an error, the tables go haywire, and you need to get rid of the aux file.


Are there (additional) guidelines for converting older editions' equipment to 5e?

In , I was presented with the following equipment from D&D 3.5 (that does not exist in 5e despite its usefulness) :  This red silken cord is strong and springy. With a tug, the connected longsword flies into your hand. A weapon cord chains your weapon to your wrist, so if you drop it (or are disarmed) you merely need to tug on the weapon to bring it back to your hands. You can pick up a dropped weapon connected by a weapon cord as a swift action. The cord is a little cumbersome, on account of having a weapon dangling from the end of it. When attacking with other weapons while a weapon hangs by the cord you take a -1 penalty for light weapons, -2 for one-handed weapons, and -4 for two-handed weapons. Other items can be attached (such as wands) as a weapon of equivalent size. Attaching or removing a weapon cord is a standard action. If you have Two-Weapon Fighting you can pull but both weapons as part of the same swift action. The weapon cord has 0 hardness and 10 hp. Market Price: 300 gp  Weight: — lb.  I know that Wizards published these general guidelines to convert equipment from older editions to 5e amongst other things :  Equipment Equipment should be swapped for fifth edition equivalents. The DM handles the conversion and distribution of gear that isn’t in the Player’s Handbook. For the DM: Equipment Conversions As DM, you can allow characters to retain any gear and loot with which you are comfortable. Swap magic items for fifth edition equivalents. The rules in the “Starting at Higher Level” section of chapter 1 in the Dungeon Master’s Guide are a fine way to establish a character’s starting wealth and gear in a fifth edition campaign. In most cases, the high magic option is the best choice for representing treasure distribution of previous editions. For mundane equipment, most such gear converts easily, since it has pragmatic (and narrative) effects rather than broad mechanical ones. Use existing equipment as guides, and when necessary, create mechanics appropriate to fifth edition. Remember to use advantage instead of flat bonuses. Also, try to limit mechanical effects to at or below those of common magic items.  But I don't believe it's enough to cover everything. What about prices ? Should an item worth 10gp in 3.5e be also worth 10gp in 5e, or less/more ? What about swift actions mentioned in certain equipment descriptions ? Are they equivalent to bonus actions in 5e ? The point is : I'd like additional guidelines to make better older-edition-equipment conversion to 5e. Does any exist ?


Strip all whitespaces in string and convert it to an array in Java

I'm looking for a way to convert a string to an array and strip all whitespaces in the process. Here's what I have:           String[] splitArray = input.split(" ").trim();   But I can't figure out how to get rid of spaces in between the elements.  For example,   input = "    1        2 3 4      5    "  I want splitArray to be:   [1,2,3,4,5]


Why did the limit of power change from wizard/witch to wand?

So in the first 5 or 6 books, it was very clear that the wand chooses the wizard and the power/level of the spells the wizard produces is based on the knowledge and skill of the wizard.  This is referenced by people constantly being telling Harry that he wasn't skilled enough to perform certain spells, or Bellatrix telling Harry that he needed to mean the Cruciatus curse for it to be effective.  However, in the 7th book, this entire idea is changed to the wand being the thing that's powerful and regardless of the wizard's/witch's skill or knowledge, he/she could still perform a very advanced spell if it's something the wand could handle.  Goyle accidentally creating a fire serpent is something that instantly comes to mind from the movies(I don't remember if that happened in the book).  So, my question is, what actually holds the power, the wizard/witch, or the wand?


How to get number of identity ID from newly added record in SQL Server table? (asp.net)

Here's what I'm trying to do: I add a record to the table. This record receives its unique ID number (identity). Then I want to use this ID in my code. How can I find out which ID number has just received a newly added record in my SQL Server database table?


Why are determinants computed in such a way?

The determinant of a matrix can be interpreted as the signed volume of the unit square/cube/hypercube, etc.  Taking the latter as the definition of the determinant, I can understand why, in the $2\times2$ case, the determinant is computed in such a way, yet why is it that when dealing with a $3\times3$ matrix (or more generally, a $n \times n$ matrix) the determinant is computed the way it is?  Would appreciate any help!


How to enable virtualization via PowerShell on Win10, HP laptop? Reason why I am not doing it this way: Go to Windows Settings Click on Update & Security Now click on Recovery Click Restart now under Advanced startup Go to Troubleshoot Click on Advanced Options Now click on UEFI Firmware Settings Click Restart. --> My monitor on the laptop is broken, and thus I use an external monitor, when I go restart, I see the broken monitor "light up", but this restartu modus doesnt switch on the external monitor...


How do I change background image's size in compositor?

How can I change background image's size in compositor? The following screenshots are showing my node setup and the current size of the background image.


Show that $\left(1+\frac xk\right)^k$ is monotonically increasing

Note: I don't want to get the full solution, but only a hint.  I have to show that for $x \in [0, \infty)$, the sequence $\left(1+\frac xk\right)^k$ is monotonically increasing. We were already given the hint that we could use the inequality of arithmetic and geometric means, but I don't see how to apply it yet.   I tried to do it by induction. While the case $k = 1$ works easily, I don't know how to start further from here. I already tried to use the definition of the binomial theorem, but it didn't lead me anywhere.


Append on a 3rd Order List Not Working as Expected

I have some code that takes n groups of states and then creates multiple "neighbors" by swapping states between groups randomly.  from random import randint as rand  groups = [['VT', 'TX', 'HI', 'AR', 'PA', 'OK', 'AK', 'MI', 'ND', 'ID', 'NY', 'WV', 'FL', 'UT'],           ['MO', 'MA', 'SD', 'NE', 'GA', 'MN', 'SC', 'CA', 'RI', 'AZ', 'NH', 'MS', 'AL', 'WI', 'GU', 'CT', 'MT', 'TN', 'OH', 'OR', 'IA'],           ['NV', 'KY', 'NM', 'KS', 'IN', 'LA', 'DE', 'MD', 'CO', 'IL', 'VA', 'NC', 'WY', 'NJ', 'WA', 'ME']]  def hill_climb_nbr(groups,nbr_size):     #swap one state in and out of each group      group_list = []      for g in range(0,nbr_size):          temp_val = []          groups_copy = groups          for i in range(0,len(groups)):             rand_num = rand(0,len(groups[i])-1)             temp_val.append(groups[i][rand_num])             groups_copy[i].pop(rand_num)             print(rand_num)          for j in range(0,len(temp_val)):             groups_copy[j].append(temp_val[j-1])          print(groups_copy)         print('group_list')          group_list.append(groups_copy)          print(group_list)      return group_list  hill_climb_nbr(groups,3)   Here is an example of input:  [['VT', 'TX', 'HI', 'AR', 'PA', 'OK', 'AK', 'MI', 'ND', 'ID', 'NY', 'WV', 'FL', 'UT'],  ['MO', 'MA', 'SD', 'NE', 'GA', 'MN', 'SC', 'CA', 'RI', 'AZ', 'NH', 'MS', 'AL', 'WI', 'GU', 'CT', 'MT', 'TN', 'OH', 'OR', 'IA'],  ['NV', 'KY', 'NM', 'KS', 'IN', 'LA', 'DE', 'MD', 'CO', 'IL', 'VA', 'NC', 'WY', 'NJ', 'WA', 'ME']]   The output of hill_climb_nbr(groups,3) where groups is the list of lists shown above is this:  [[['VT', 'TX', 'HI', 'AR', 'PA', 'OK', 'AK', 'MI', 'ND', 'ID', 'NY', 'WV', 'FL', 'UT'],   ['MO', 'MA', 'SD', 'NE', 'GA', 'MN', 'SC', 'CA', 'RI', 'AZ', 'NH', 'MS', 'AL', 'WI', 'GU', 'CT', 'MT', 'TN', 'OH', 'OR', 'IA'],   ['NV', 'KY', 'NM', 'KS', 'IN', 'LA', 'DE', 'MD', 'CO', 'IL', 'VA', 'NC', 'WY', 'NJ', 'WA', 'ME']],  [['VT', 'TX', 'HI', 'AR', 'PA', 'OK', 'AK', 'MI', 'ND', 'ID', 'NY', 'WV', 'FL', 'UT'],   ['MO', 'MA', 'SD', 'NE', 'GA', 'MN', 'SC', 'CA', 'RI', 'AZ', 'NH', 'MS', 'AL', 'WI', 'GU', 'CT', 'MT', 'TN', 'OH', 'OR', 'IA'],   ['NV', 'KY', 'NM', 'KS', 'IN', 'LA', 'DE', 'MD', 'CO', 'IL', 'VA', 'NC', 'WY', 'NJ', 'WA', 'ME']],  [['VT', 'TX', 'HI', 'AR', 'PA', 'OK', 'AK', 'MI', 'ND', 'ID', 'NY', 'WV', 'FL', 'UT'],   ['MO', 'MA', 'SD', 'NE', 'GA', 'MN', 'SC', 'CA', 'RI', 'AZ', 'NH', 'MS', 'AL', 'WI', 'GU', 'CT', 'MT', 'TN', 'OH', 'OR', 'IA'],   ['NV', 'KY', 'NM', 'KS', 'IN', 'LA', 'DE', 'MD', 'CO', 'IL', 'VA', 'NC', 'WY', 'NJ', 'WA', 'ME']]]   It is a strain to see, but it is just the same list of lists repeated three times.    While trying to diagnose the problem, I found that groups_copy looks correct right before the group_list.append(groups_copy).  Somehow the final group_list turns out to be the last groups_copy repeated nbr_size times instead of each iteration of groups_copy.  I've been looking at this for a few hours now and I'm about to loose my mind.  Does anything stand out to you as to where the issue is?


Finding files on a Unix server and sorting by size

I have a web server where I have run out of space and it's causing issues with the  sites I am running on them.  I know that I have a lot of large .png files (the fact that it's  is a mistake in itself, but let's not get into that).  I would like to get the list of PNG or  files that are on the server and sort them by decreasing size. I know I can use ls -SlahR, but the sorting is on a per-folder basis.  I then came up with find . -name "*.png" | xargs -i -n1 ls -lah {} which is OK except that (a) it doesn't sort the lines and (b) it shows the file permissions and ownerships which I couldn't care less about.  So is there something better? Something that would produce [size] [path_to_file]?


From where do the permanent magnets get energy from?

I have a doubt about permanent magnets. If a magnet is permanent it can attract some materials permanently.  Attracting something involves energy. If a permanent magnet can do this forever, from where does this energy come from? How can it not run out of energy? Doesn't it contradict with the laws of energy?


Should there be a separate site for questions related to mobile phone development?

The volume of questions on Stack Overflow is large. I think we should have a separate website for asking questions related to mobile phone related development.


Sealed Philadelphia cream cheese left out overnight, is it still safe to eat?

Bought it a the groceries store, and forgot it in the groceries bag.  So it was left at room temperature, in the original sealed container for around 12 hours.  Given that cheese should usually be refrigerated, is this product still safe to eat?


State space representation of ARMA(p,q) from Hamilton

I have been reading Hamilton Chapter 13 and he has the following state space representation for an ARMA(p,q). Let $r = \max(p,q+1)$.Then the ARMA (p,q) process is as follows: $$ \begin{aligned}  y_t -\mu &= \phi_1(y_{t-1} -\mu) + \phi_2(y_{t-2} -\mu) + ... + \phi_3(y_{t-3} -\mu) \\ &+ \epsilon_t + \theta_1\epsilon_{t-1} + ... + \theta_{r-1}\epsilon_{t-r+1}.  \end{aligned} $$ Then, he defines the State Equation as follows:   $$  \xi_{t+1} = \begin{bmatrix}      \phi_1 & \phi_2 & \dots & \phi_{r-1} & \phi_r \\      1 & 0  & \dots & 0 & 0  \\      \vdots & \vdots & \dots & 0 & 0 \\      0 & 0 & \dots &1 &0 \end{bmatrix} \xi_t  +  \begin{bmatrix}      \epsilon_{t+1} \\     0\\\vdots  \\     0       \end{bmatrix}  $$  and the observation equation as:  $$y_t = \mu + \begin{bmatrix}      1 & \theta_1 & \theta_2 & \dots & \theta_{r-1} \\     \end{bmatrix} \xi_t. $$  I do not understand what the $\xi_t$ is in this case. Because in his AR(p) representation it is $\begin{bmatrix}      y_{t} - \mu \\     y_{t-1} - \mu\\\vdots  \\     y_{t-p+1} - \mu       \end{bmatrix}  $ and in his MA (1) representation it is $\begin{bmatrix}      \epsilon_{t} \\     \epsilon_{t-1}      \end{bmatrix}  $.  Could someone explain this to me a little bit better?


How to FILTER the files with filename and then DELETE the OLDEST file from there?

I create and keep the following automated backup files e.g.:   fruits_29-12-2013.gz fruits_30-12-2013.gz fruits_31-12-2013.gz sweets_01-12-2013.gz sweets_02-12-2013.gz sweets_03-12-2013.gz   .. actually many of them in the same folder.  (But then it's a problem to house keeping them manually but I still have to. Because after a month, all are taken up the disk space. So I need to clean up the latest files, accordingly.)  How to automatically DELETE the OLDEST file with name starts with fruits?  (Then I'll put that script/command in the daily crons.)


12.04 does not detect wlan0(Broadcom  4365)

Installed 12.04 on dell inspiron 5420.  wired connection is working however wifi and bluetooth connection does not work. In fact I can't see wlan0. Can I know the correct driver to install?


Sometimes people tell me to subscribe to a Launchpad bug so I can follow along it's progress, how do I do this?


How to do I inject Drupal\user\Entity\User class as dependency? I could not find service name in service list.  for example:  $user = User::load($this->currentUser->id())   for this code I want to call like this  $user = $this->user->load(($this->currentUser->id())   when injecting in Controller. How can I achieve this?


I have automated Soap request via Rest Assured code, but its written that Rest assured API can only be used for rest service

Here is my code public class xmlreq extends TestBase  { @Test public void buildRequest() {     logger.info("starting");     RestAssured.baseURI="http://webservices.oorsprong.org/websamples.countryinfo";          httpRequest=    RestAssured.given();     String b= "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://www.oorsprong.org/websamples.countryinfo\">\r\n" +              "   <soapenv:Header/>\r\n" +              "   <soapenv:Body>\r\n" +              "      <web:CapitalCity>\r\n" +              "         <web:sCountryISOCode>IND</web:sCountryISOCode>\r\n" +              "      </web:CapitalCity>\r\n" +              "   </soapenv:Body>\r\n" +              "</soapenv:Envelope>";     httpRequest.header("Content-Type","text/xml");     httpRequest.body(b);                    response=   httpRequest.request(Method.POST, "/CountryInfoService.wso?wsdl");          Assert.assertTrue(response.getBody().asString()!=null);     System.out.println(response.getBody().asString());      }  @Test(enabled=true) public void validate() {     String a = response.getBody().asString();     Assert.assertTrue(a.contains("New Delhi"));      }  }


Should a very popular question be closed as a duplicate of one that is older but extremely less popular?

Should a very popular question be closed as a duplicate one that is older but extremely less popular?  I ask because  was closed as a duplicate of the older . While they are certainly duplicates, this seemed very wrong to me:   71 answers, 46 votes, 7 favorites versus 18 answers, 4 votes, 2 favorites   In this case personally I would have closed the older less popular question as a duplicate of the newer one. Is there an official etiquette?  (Note: I flagged it for a mod, so it may be re-opened or merged or something else in the near future)


Let $f:(X,d)\rightarrow(Y,d)$ be a map of metric spaces. Let $f$ be locally Lipschitz, that is, for each $x\in X$ then there exist an open ball $B_x$ containing $x$ and a constant $L_x$ such that $d(f(x),f(y))\leq L_xd(x,y)$ for all $x,y\in B_x$. Prove that if $X$ is compact then $f$ is Lipschitz. My work: let $\{B_x :x \in X\}$ is a open cover of $X$. Since $X$ is compact the open cover admits a finite subcover. Let $L_j$ be the Lipschitz constant corresponding to $B_j$. Now my instinct tells me that I have to take the maximum of such constant. But it does not complete the proof. So I think I am missing some step. I need help to really understand this.


WhatsApp iCloud backup stuck at 0% and just won't move

Last successful backup of WhatsApp to iCloud was on 10th April 2019, since then the process keeps hanging.  My iCloud is as good as unused, it has 4.5 GB/5 GB available, so I doubt space is the issue.  Status is "Backing up..." and its hung at "Uploading: 0%"  What did I try:   Updated iOS to 12.3.1. Updated WhatsApp to version 2.19.61. Deleted WhatsApp data from iCloud Drive and tried to backup again. Instead of getting stuck at 0% it then got stuck at 3%. In iCloud Drive, turned WhatsApp "Off" and "On" Hard reset on iPhone   Nothing works! Anyone tips or the same problem?


Interview Qn for use of LinkedList,ArrayList

I was asked the following in interview :When would you use ArrayList and when LinkedList. I replied that if I want to do random access I will use ArrayList and if frequent addition/removal I will use LinkedList to which he cross-questioned and said , 1.what if we don't know where a particular element is stored in list and we need to search it which one would you use ? 2.If I need to add/remove from LinkedList I would have to search first , which would be a costly operation so how LinkedList would be faster,in this case ? Can anyone answer the above questions, along with a more clear answer to using LinkedList over ArrayList.


Is there a file exists command in Ubuntu Terminal?

Is there somehow I can check if a file or folder exists in Ubuntu Terminal?


How to monitor a folder and trigger a command-line action when a file is created or edited?

I need to set up some sort of a script on my Vista machine, so that whenever a file is added to a particular folder, it automatically triggers a background process that operates on the file.  (The background process is just a command-line utility that takes the file name as an argument, along with some other predefined options.)  I'd like to do this using native Windows features, if possible, for performance and maintenance reasons.  I've looked into using Task Scheduler, but after perusing the trigger system for a while, I haven't been able to make much sense of it, and I'm not even sure if it's capable of doing what I need.  I'd appreciate any suggestions.  Thanks!


How to convert light activated switch into dark activated switch

Can anyoe teach me how to convert this into light activated switch  ()


Can the 700 x 38c tire on the Trek DS2 be used on the Trek Verve 3 which comes with a 700 x 45?


How to solve the recurrence $T(n) = 2T(n/3)+n$

Base case of $T(1)=1$  As a part of your solution establish, a pattern for what the recurrence looks like after the $k$-th iteration  Express final answer as  $\Theta(n)$  $T(n) = 2T(n/3)+n $  How to solve and what is the best method to solve questions like these.   This may be an easy problem, but I run into issues with it.


If centripetal force and centrifugal force acting on an electron is equal, then what makes electron to revolve the nucleus?

I want to know that how an electron is in continuous motion.


When sharing folders on Google Drive do users know who else the folder is shared with?

I want to invite various people to a shared Google Drive folder but do not want each of the users (except myself) to see the names of the other users with which the folder has been shared.


Table column not align if give color for Table entries

My code follows:  \documentclass{book} \usepackage{color,colortbl} \begin{document}  \begin{tabular}{ll>{\color{red}}p{20pc}} a &1 &Test \end{tabular}  \end{document}   The output was:    Some unnecessary vertical space came before the last column. If I remove the tag \color{red} then everything works fine, how can I fix this?  Above said issue was fixed based on the suggestion given by David Carlisle and CarLaTeX, but the same problem was there if I use the supertabular environment, I used supertabular package for auto breaking table and the code follows:  \documentclass{book} \usepackage{color,colortbl,supertabular} \begin{document}  \begin{supertabular}{ll>{\leavevmode\color{red}}p{4pc}>{\leavevmode\color{black}}l>{\leavevmode\color{black}}l>{\leavevmode\color{red}}p{4pc}} a &1 &Test &a &1 &Test\\ a &1 &Test &a &1 &Test\\ \end{supertabular}  \end{document}


no Wi-Fi on Ubuntu 14.04 LTS Asus notebook with MEDIATEK MT7630e

I'm new to Ubuntu. I installed it today, but the first thing I encounter is that I can only connect to the Internet through wifi.  Can someone help me?   iwconfig result :  eth0      no wireless extensions.  lo        no wireless extensions.   lspci:  00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM     Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4) 00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04) 01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] (rev a1) 03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01) 04:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)   lspci -nnk | grep 0280 -A2:  03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]     Subsystem: Foxconn International, Inc. Device [105b:e074] 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:5289] (rev 01)


const updateSearchTopStoriesState = (hits, page) => (prevState) => { const { searchKey, results } = prevState   Can anyone explain to me what does the above do? why is there 2 arrow functions?  This is the whole code  const updateSearchTopStoriesState = (hits, page) => (prevState) => { const { searchKey, results } = prevState; const oldHits = results && results[searchKey] ? results[searchKey].hits : []; const updatedHits = [ ...oldHits, ...hits ]; return { results: { ...results, [searchKey]: { hits: updatedHits, page } }, isLoading: false }; }; class App extends Component { ...


Closure of a compact set in Regular space $ X $

I am trying to show that closure of a compact set in a Regular space is compact, but I am hitting some hurdles as a compact set in a regular space need not be closed.  This is what I started off with: If $ C $ is any compact subset, let $ U $ be any open neighbourhood containing $ C $. Then by regularity of $ X $, $ \forall x \in C, \exists V_x : \overset-V_x \subseteq U $ where $ V_x $ is a neighbourhood of $ x $. So $ \lbrace  V_x:x \in C\rbrace $ is an open cover for C, which by compactness of C , simplifies to $ \lbrace  V_{x_i}:x_i \in C\,\,for\,i=1,...,n\rbrace $. Now I end up looking at $ \cup \overset-V_{x_i} $ which  should contain $ \overset-C $. But I get stuck here. Should I look at the intersection rather??


I need to read every line, and to create an empty file after reading each and every line

Contents of file.txt:  apple mango orange   My script should read apple and create a zero byte file apple.txt then mango.txt file.  Could someone help, please?


I was reading that the best way to iterate over a HashMap to remove entries from it was to use an iterator. I did that. However, I am still getting a ConcurrentModificationException at "i.remove." Does anyone know why?      Iterator<Map.Entry<Integer, ArrayList<JLabel>>> i = tab.getReport().getRows().entrySet().iterator();     while (i.hasNext()) {         Entry e =  i.next();         int keyId = (int) e.getKey();         if (toChange.contains(keyId)) {             tab.getReport().getRows().put(keyId - 1, tab.getReport().getRows().get(keyId));             tab.getReport().getRows().get(keyId - 1).get(0).setText(Integer.toString(keyId - 1));             i.remove();         }     }   Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.remove(HashMap.java:1443)


Someone sent me $5000.00, told me to keep $100.00 and return rest of money to an address. Can I keep that money and do nothing? What could happen?

What happens if I keep cash sent to me instead of keeping a portion of it and returning the rest to  an address in the United States? They have my address but no other information that I can recall. They did not ask me to send them a card or deposit into my account. I was told to keep $100.00 and return the rest of the cash to them.


Couldn't revert downvote when answer edited during grace period

I downvoted  because it recommended a really terrible library. The author edited the reference out during the initial 5 minute (?) grace period.   I didn't get back to the answer for a while, and when I did I was unable to reverse the downvote because the question had not been edited, as far as the system was concerned, and it was too long since my downvote had happened so it was "locked in".   Is there anything that can be done about this?


I'm hoping to get some clarification on a snippet that I've recently stepped through in the debugger, but simply cannot really understand.  I'm taking a C# course on PluralSight and the current topic is on yield and returning a IEnumerable<T> with the keyword.   I've got this overly basic function that returns an IEnumerable collection of Vendors (A simple class with Id, CompanyName and Email):  public IEnumerable<Vendor> RetrieveWithIterator() {     this.Retrieve(); // <-- I've got a breakpoint here     foreach(var vendor in _vendors)     {         Debug.WriteLine($"Vendor Id: {vendor.VendorId}");         yield return vendor;     } }   And I've got this code in a unit test that I'm using to test the function:  var vendorIterator = repository.RetrieveWithIterator(); // <-- Why don't it enter function? foreach (var item in vendorIterator) // <-- But starts here? {     Debug.WriteLine(item); } var actual = vendorIterator.ToList();   What I really can't seem to understand, and I'm sure a lot of beginners are having the same trouble, is why the initial call to RetrieveWithIterator doesn't initiate the function, but it rather starts when we start iterating through its returned IEnumerable collection (see the comments).


In ED definition we need for all $a, b$ not zero then there exist $q$ and $r$ such that $a = bq+r$ with some condition with respect to norm.   Actually I am interested whether $q$ and $r$ are unique in ED or not  Further Questions: 1. Can we define some norm in ED with respect to which q and r are unique    And in how many ways we can define such norms   If it is not possible what algebraic structure like this i.e. ED with uniqueness of q and  r, has some special properties.


The role of SO(3) and SU(2) in quantum mechanics

When studying the irreducible representations of SO(3) one usually looks at the irreps of the infinitesimal rotations instead, i.e. the ones of so(3), the Lie Algebra of SO(3). The Irreps of so(3) can be parametrized by a single number $j \in {0, 1/2, 1, 3/2, ...}$  These irreps of so(3) can be raised to irreps of SO(3), via the map that maps elements of so(3) to SO(3).   My question now is: How does SU(2) come into play? IIRC the irreps of SO(3) only correspond to the full-integer irreps of so(3). How is this possible when every so(3) irrep can get raised to one of SO(3) as described above? Do several irreps of so(3) get raised to a single one of SO(3)?  If what I said so far is correct, then the discovery of the Zeeman effect called for an enhancement of this theory, as some spectral lines showed a degeneracy of $2j + 1 \in N$, meaning j had to be a half-integer: only the full integer irreps of SO(3) aren't enough!  SO(3) and SU(2) are isomorphic to each other, up to the Rotations $\pm id$. How does this solve the issue of SO(3) not accounting for half-integer representations?  Cheers and thanks in advance!


How to get which page threw an exception to Application_error in aspx

I have a general exception handler, Application_error in my global.asax where I'm trying to isolate all the uncaught exceptions on all my many pages. I don't want to use Page_error to catch exception because it's inefficient to call that on so many pages. So where in the exception can I find what page actually caused the exception?


I have written a wrapper class to a Mqtt PubSubClient to wrap the functionality of the PubSubClient and WifiManager library.  I would like to pass a callback to mqtt client when I initialize the Mqtt client connection, but It does not work for me:  this->client->setCallback(&this->mqttCallback);  Is there any way to reference mqttCallback function in MyMqtt class?  class MyMqtt {   public:     MyMqtt(char *device_type, int version, int status_led);        void mqttCallback(char *topic, byte *payload, unsigned int length);      PubSubClient* client; }   I can successfully reference to a global function   this->client->setCallback(mqttCallbackGlobal);  ...  void mqttCallbackGlobal(char *topic, byte *payload, unsigned int length)  { }   but I cannot refer to the instance of my MyMqtt class.


How can I enter Unicode emoji into programs on Ubuntu using only the keyboard?  I'm trying [ctrl] + [shift], 1F1E6 in terminal but the find window ends up poping up when I get to F.


Triggering an event on clicks of a page with ajax calls

I am trying to implement a click tracking on a page with some ajax calls, based on JWPlayer's opensource "Showcase" solution.  The page is basically a list of videos, and when clicking to see a video, the bottom video recommendations changes.  I have jquery selectors that works just fine, but when the content changes, the clicktracking do not works anymore. My original was to define a function. Calling it immediately for the first time, and then triggering it on click on the current elements + a delay.... but that last one do not works....  Any ideas?  var tc_r_clc = function() {              // BLOC TEXT                     $(".jw-card-title").on("click", function () {                     var v = $(this).closest(".jw-card-title").text();                     var y = $(this).closest(".jw-card-title").attr('href');                     alert(v + "---" + y);                 });  };   // FIRST TIME         tc_r_clc();  // REFRESH ON CLICKS         $(".jw-card-controls, .jw-card-description, .jw-card-title, .jw-button-link").on("click", function () {             window.setTimeout(tc_r_clc, 500);         });


How was the definition and the formula of work derived? Is it the best possible?

is defined as the dot product of force and displacement.   However, intuitively, should it not be the product of force and the time for which the body is acted upon by the force (force * time) because while time is independent of force applied, displacement is not.  Were these formulae (for work and energy) actually derived based on some physical understanding or are they just constructs to understand forces better?


What do you get when you sum over the smaller half of the harmonic series?

More specifically, how would you evaluate the below formula? $$\lim_{n\to\infty}\sum_{k=n/2}^{n}\frac{1}{k}$$ I know that the harmonic series starting at any point diverges, but when we limit it in this way, does the series diverge or converge?   If it diverges:   How might you determine that? Is there some $d$ that we can replace with $2$ to make the sequence converge?   If it converges:   What does it converge to, and how might you determine that? The sequence must converge for any $d>2$. Is there a formula for the series generalized for any $d$?


According to the original paper of , there is no key validation needed when using Curve25519 for Diffie-Hellman Key Exchange. However, where does this property come from? Is there any proof or argumentation available in order to understand this really practical property of Curve25519? Does this mean that each $x$ coordinate could belong to a point $P=(x,y)$ from Curve25519? Is that even possible?


Choosing resistors for an LED lighting panel

I want to build an LED lighting panel (something like this: ). To do so, I am thinking of an implementation with LED diodes placed in parallel.  I wonder if the two schematics above are equal. The first one is a classic schedule solution, while the second is an alternative one in order to avoid non necessary parts (The total resistor has a value multiplied by the number of the single resistors.) I should note that the LEDs will be turned on/off all together, and that they have the same characteristics concerning the forward voltage. Any suggestion would be appreciated.


How to replace `eval` when assigning variables in Bash

I have a function myFunction() that shall take an integer variable from outside, print it and then increment it. This works: myFunction: myFunction() {     local var="${1}"     eval "printf '%s\n' \$$var"     eval "$var=$(($var+1))" }  But, I don't want to use eval in this as a user of this function might enter a wrong variable name that might then be executed. I would like to use something like printf -v as it would make the usage safer. How can I do this?


How to understand "factor loadings" in PCA?

I have seen that some people are talking about "factor loadings" in PCA. It is a topic that I do not manage to understand, despite some googling.  I managed to obtain some code that generates the following plot (for 9 different "elements"). But I cannot interpret the results.


i'm about to get a new SSD for my PC, and before spending the money i have some doubts about my decision i would like to clarify First, my mobo is a B450 Aorus Pro Wifi, it has 2 M.2 slots, one of them full length (22110) compatible with PCIe 3.0 x4 and the other one standard length (2280) and support only for PCIe 3.0 x2 About the drive, i'm aiming for a 1tb XPG SX8200 Pro , which is a PCIe 3.0x4 SSD My first M.2 slot is already taken by the main SSD, which i use for the OS and other stuff, i can't really use it. Will a PCIe x4 SSD work on a PCIe x2 slot? How much performance will be lost if it does? Will it be worth it?


servlet always showing null while execution

When i run search.html file it runs successfully but after entering the values the output is as shown in image  please help if possible. Odbc data source name is base and table name is tab, I am using Microsoft Access for data storage   database.java  import java.sql.*; import javax.servlet.annotation.WebServlet;  public class database {  public Connection connect; public Statement stat; public String query; public ResultSet result;  public database() {     try     {         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");         connect = DriverManager.getConnection("jdbc:odbc:base","","");         stat = connect.createStatement();     }catch(Exception e){} }  }   search.html  <!DOCTYPE html>   <meta charset="ISO-8859-1"> <title>Search</title>   <form action="search" method="get">     <input type="number" name="ref" placeholder="reference" />     <input type="submit" value="search" /> </form>     search.java  import java.io.*; import java.sql.SQLException;  import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;   @WebServlet("/search") public class search extends HttpServlet { private static final long serialVersionUID = 1L;  /**  * @see HttpServlet#HttpServlet()  */ public search() {     super();     // TODO Auto-generated constructor stub }  /**  * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse   response)  */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {     // TODO Auto-generated method stub      response.setContentType("text/html");     PrintWriter out = response.getWriter();     database DB = new database();      DB.query = "SELECT * FROM tab where ref="             +request.getParameter("ref");     out.println("
"             +"
ref	des	pri	cat	"             +"
");      try     {         DB.result=DB.stat.executeQuery(DB.query);         while(DB.result.next())         {             out.println("
"                     +DB.result.getInt("ref")                     +DB.result.getString("des")                     +DB.result.getDouble("pri")                     +DB.result.getString("cat")                     +"
");          }         out.println("
");     }catch(Exception e){         out.println(e.getMessage());     } }  /**  * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)  */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {     // TODO Auto-generated method stub     doGet(request, response); }  }


How is a role considered leading vs supporting?

Are there any rules or other metrics that help determine if a role is considered a leading one or a supporting role? Or is it more like a gut feeling? Clearly, the choice is obvious in many movies such as Terminator or Pitch Black. But how do they determine the lead when there are several "main" characters to choose from?   For example: Lord of the Rings had Elijah Wood (Frodo), Ian McKellen (Gandalf), and Viggo Mortensen (Aragorn). Or Pulp Fiction's John Travolta (Vincent), Samuel L. Jackson (Jules) & Bruce Willis (Butch). How did they determine who was the leading role?  (Not sure what tags to put on this one)


How to force an application to use a specific cpu?

For example : To build a kernel we can use make it will take more than one hour , to accelerate the process we can use make -j4 all this may finish almost four times as quickly.  Generally : How to force an application to use a specific nombre nof cpu ?


Prove the empty set is closed for a metric space (X,d).

I'm not sure how to approach the proof for this. I know this statement is vacuously true, because the empty set does not contain any accumulation points. But I'm having a hard time writing a proof for this. I have looked at other answers on here, however we have not learned what a "ball" is in lecture.


My ArrayList data is not destroyed when creating new instance of a class

I am running three AsyncTask() each AsyncTask create an object of another class.  This is how i am creating instance of a class from doInBackground(),          DOM domObject = new DOM;   Now, there is a class level ArrayList in my DOM class,  public class DOM {     public static ArrayList<HashMap<String, Object>> tempNewsArray = new ArrayList<>();   My main class run three AysncTask object so three separate instance of DOM class should be created for each AsyncTask.  On each execution of AsyncTask, some data is added into the ArrayList.  Example, First AsynTask executed,    Some Data added in ArrayList. Second AsyncTask executed,    Some Data added in ArrayList (Previous Data should not be there in ArrayList)  But the problem is, the data from the previous instance of DOM class is still there in the ArrayList and not removed when new instance of DOM class is created by another AysnTask instace.  Why is this happening ?  Example, First instance of DOM class created by first Asynctask, Some data is added in ArrayList.  Second instance of DOM class is created by second Asynctask instance, Some new data is added in the ArrayList but the previous data from previous instances is still there.  Why so ?


Changing email addresses on my @me.com and @icloud.com

When I was married I started both my @me.com and @icloud.com accounts.  The accounts are my first name and last (previously married) name run together.  Now that I am divorced I don't want that as my email.  I would rather have a different name at the front of my email.  How do I go about changing both accounts to another name and getting all my devices and itunes accounts moved over.


For a $C^1$ function, the difference $|{g'(c)} - {{g(d)-g(c)} \over {d-c}} |$ is small when $|d-c|$ is small

Suppose $g\in C^1 [a,b]$. Prove that for all $\epsilon > 0$, there is $\delta > 0$ such that $|{g'(c)} - {{g(d)-g(c)} \over {d-c}} |{< \epsilon }$ for all points $c,d \in [a,b]$ with $0 <|d-c|< \delta$   First, I don't know what $C^1 [a,b]$ means.  Some ideas:  By Mean value theorem, $g'(c) =  {{g(b)-g(a)} \over {b-a}} $ since $c\in[a,b]$.   To show $|{g'(c)} - {{g(d)-g(c)} \over {d-c}} |{< \epsilon }$ whenever $0 <|d-c|< \delta$ for $ c,d \in [a,b]$. I guess I have to use the definition of limit of continuous function. But, I don't know how to connect all of these ideas.


Apt-get saying "Unable to correct problems, you have held broken packages."

Possible Duplicate:             TL;DR: sudo apt-get install ... saying "Unable to correct problems, you have held broken packages."   The problem  I was trying to get the WebApps feature for PP and QQ following .  I ran the sudo add-apt-repository ppa:webapps/preview command to add the repository, but i got a connection error. Since I know my current ISP gives a shaky connection, I tried again and sure enough, it worked.  Then I ran sudo apt-get install unity-webapps-preview, but I realized we had to update apt-get first, so I hit Ctrl + C to stop it. Then I ran sudo apt-get update which worked w/o a fuss, but when I ran sudo apt-get install unity-webapps-preview again later, it showed an error message. Here's the dump:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  unity-webapps-preview : Depends: xul-ext-unity but it is not going to be installed                          Depends: xul-ext-websites-integration but it is not going to be installed                          Depends: xul-ext-webaccounts but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I think this might be because of me interrupting the earlier command. It hadn't got a chance to output anything, though — I stopped it pretty fast.  What I tried  Commands  I tried these:-   sudo apt-get install --fix-broken sudo apt-get autoclean sudo apt-get autoremove sudo apt-get -f install   But even after running sudo apt-get upgrade after every try, none of them worked.  Purging  I tried purging the repository, but that didn't work either. First, I got the package using sudoapt-get install ppa-purgeand then tried to purge the WebApps repo usingsudo ppa-purge ppa:webapps/preview`.  Manually installing dependencies  If you look at the error dump carefully, it says:     Depends: xul-ext-unity but it is not going to be installed   Depends: xul-ext-websites-integration but it is not going to be installed   Depends: xul-ext-webaccounts but it is not going to be installed   So I tried installing them manually. I ran sudo apt-get install xul-ext-unity, but got this:     Depends: xul-ext-websites-integration but it is not going to be installed   Breaks: firefox (>= 15.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed   I have no idea what the second part means, but I tried resolving the first. Running sudo apt-get install xul-ext-websites-integration gave:     xul-ext-websites-integration : Breaks: firefox (>= 15.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed   As a last resort, I tried sudo apt-get install xul-ext-webaccounts, but that gave the sane message too:     Breaks: firefox (>= 14.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed   What does Breaks: firefox (>= 14.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed mean?  Research  I tried searching , looking at a couple of , looking at  and searching on AU, but to no avail. Help would be appreciated.


How to change parametric object attributes after creation

Once a cylinder is created, how to go back to its attributes ? "Vertices, Cap Fill type etc.."


I'm stuck trying to show that $$\sum_{n=2}^{\infty} (-1)^n \frac{\ln n}{n}=\gamma \ln 2- \frac{1}{2}(\ln 2)^2$$  This is a problem in Calculus by Simmons. It's in the end of chapter review and it's associated with the section about the alternating series test. There's a hint: refer to an equation from a previous section on the integral test. Specifically:  $$L=\lim_{n\to\infty} F(n)=\lim_{n\to\infty}\left[a_1+a_2+\cdots+a_n-\int_1^n\! f(x)\,\mathrm{d}x\right]$$  Here, $\{a_n\}$ is a decreasing sequence of positive numbers and $f(x)$ is a decreasing function such that $f(n)=a_n$, and $\gamma$ is this limit in the case that $a_n=\frac{ 1}{n}$.   New users can't answer their own questions inside of 8 hours, so I'm editing my question to reflect the answer.  Ok, I got it.  Following the hint in the book  $$L=\lim_{n\to\infty}\left[\frac{\ln 2}{2}+\frac{\ln 3}{3}+\cdots+\frac{\ln n}{n}-\int_2^n\! \frac{\ln x}{x}\,\mathrm{d}x\right]$$  $$=\lim\left[\frac{ \ln 2}{2}+\cdots+\frac{ \ln n}{n}-\left.\frac{ \ln^2x}{2}\right|_2^n\right]$$  The partial sum for the positive series is: $$\left(\frac{\ln^2n}{2}-\frac{\ln^2}{2}\right)+L+o(1)$$  Returning to the original, alternating series: $$-S_{2n}=\frac{ -\ln 2}{2}+\frac{ \ln 3}{3}-\frac{\ln 4}{4}+\frac{\ln 5}{5}-\cdots$$ $$=\frac{\ln 2}{2}+\frac{\ln 3}{3}+\cdots+\frac{\ln 2n}{2n}-2\left(\frac{\ln 2}{2}+\frac{\ln 4}{4}+\cdots+\frac{\ln 2n}{2n}\right)$$  Consider the partial sum in parentheses $$ \frac{\ln 2}{2}+\frac{\ln 4}{4}+\cdots+\frac{\ln 2n}{2n}=\frac{\ln 2}{2}+\frac{\ln 2 +\ln 2}{4}+\frac{\ln 2+\ln 3}{6}+\cdots+\frac{\ln 2+\ln n}{2n}$$ $$=\frac{1}{2}\left(\ln 2\left(1+\frac{ 1}{2}+\cdots+\frac{ 1}{n}\right)+\left(\frac{ \ln 2}{2}+\frac{ \ln 3}{3}+\cdots+\frac{ \ln n}{n}\right)\right)$$  Now, plug that back in $$-S_{2n}=\left(\frac{\ln 2}{2}+\cdots+\frac{ \ln 2n}{2n}\right)-\ln 2\left(1+\frac{ 1}{2}+\cdots+\frac{ 1}{n}\right)-\left(\frac{ \ln 2}{2}+\frac{ \ln 3}{3}+\cdots+\frac{ \ln n}{n}\right)$$ $$=\frac{ \ln^2(2n)}{2}-\frac{ \ln^2 2}{2}+L+o(1)-\ln 2\left(\ln n +\gamma+o(1)\right)-\left(\frac{ \ln^2 n}{2}-\frac{ \ln^2 2}{2}+L+o(1)\right)$$ $$=\frac{ (\ln 2 +\ln n)^2}{2}-(\ln 2)(\ln n)-\gamma\ln 2-\frac{ \ln^2 n}{2}+o(1)$$ $$=\frac{ \ln^2 2}{2}+(\ln 2)(\ln n)+\frac{ \ln^2 n}{2}-(\ln 2)(\ln n)-\gamma \ln 2 - \frac{ \ln^2 n}{2}+o(1)$$ $$-S_{2n}\to\frac{ \ln^2}{2}-\gamma\ln 2$$ Which gives the desired result $$\sum_2^{\infty}(-1)^n \frac{ \ln n}{n}=\gamma\ln 2 -\frac{ \ln^2 2}{2}$$


Edit file based on existence of a string

I have an input file, say, file1, which appears as follows:  WRITE=2 START=1 SMEAR=0 MIN=6 MAX=100   My problem is to search for the string SMEAR and if the string exists replace the entire line with SMEAR=-5. However, if the SMEAR does not exist, then I need to insert a new line SMEAR=-5. Ultimately the line SMEAR=-5 should appear only once. I can replace the string using sed:   sed -i '/SMEAR/c\SMEAR=-5' file1   Or I can insert the string as a new line    sed -i '10i SMEAR=-5' file1   But how can I combine them based on the existence of the string in the file?  EDIT: Also it would be helpful if I can pass the value of SMEAR as a variable.


What is the fastest speed that a massive object can travel at?

What is the fastest speed (in miles per hour) that a massive object can travel at? I have heard that an object can travel at the speed of light, but I've also heard that massive objects cannot travel at the speed of light.


In my econometric book, it says     $\sum\limits_{i=1}^n a^{i-1}=(1-a^n)/(1-a)$ because $\sum\limits_{i=1}^n a^{i-1}=(1-a^n)\sum\limits_{i=0}^\infty a^i$.   I understand the proof of $\sum\limits_{i=0}^\infty a^i=1/(1-a)$ and $\sum\limits_{i=1}^n a^{i-1}=(1-a^n)/(1-a)$ separately. But how do we know $\sum\limits_{i=1}^n a^{i-1}=(1-a^n)\sum\limits_{i=0}^\infty a^i$, assuming we don't know the representation of $\sum\limits_{i=0}^\infty a^i$ and $\sum\limits_{i=1}^n a^{i-1}$?


Vertical space between proof and theorem environments

When compiling my latex file, the space between the ending of theorem body and the word proof appears to be a bit much. I know how to individual manage this using \vspace, but I want to change the settings in the preamble so that even propositions, lemmas and corollaries have the same vertical distance between the starting of the proof. I have included my latex file . Any help will be much appreciated.   \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[left=3.50cm, right=3.0cm, top=3.0cm, bottom=3.0cm]{geometry} \usepackage{enumitem} \usepackage{amsthm} \usepackage{amsmath} \linespread{1.6} \setlength{\parskip}{5mm} \setlength{\parindent}{0mm} \setlength{\skip\footins}{1.6cm} \setlength{\footnotesep}{0.5cm} \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{proposition}[thm]{Proposition} \newtheorem{cor}[thm]{Corollary} \theoremstyle{definition} \newtheorem{defn}[thm]{Definition} \newtheorem{exmp}[thm]{Example} \newtheorem{remark}[thm]{Remark} \newcommand{\prn}{\mathrel{\mathrm{prn}}} \begin{document} \begin{thm} Let $G$ be a group with subgroups $H$ and $K$. Then $[H,K] \unlhd \langle H, K\rangle$ \end{thm} \begin{proof}  Every element in $[H,K]$ belongs to $\langle H, K \rangle$ because of the way in which the elements of $\langle H, K \rangle$ are defined. \end{proof} \end{document}


Update+Select in one SQL Server transaction, and concurrent deadlocks

I have a problem with a transaction isolation or concurrent atomic select+update.  SQL Server, C++ application, OTL/ODBC, and I can't use any stored procedures.  Here is the thing. The task is to update some field to a new value, and get (select) this value (it must be the last value, from update). However, there are several applications, which must do it concurrently.  My last code does something like:  SET IMPLICIT_TRANSACTIONS OFF SET TRANSACTION ISOLATION LEVEL SNAPSHOT  BEGIN TRAN  UPDATE tbl WITH (UPDLOCK, HOLDLOCK) SET value = value + 1  WHERE name = some_name;  SELECT value  FROM tbl WITH (SERIALIZABLE)  WHERE name = some_name;  COMMIT TRAN   If we have two concurrent applications, which do the same thing (above) in rate 50-100 per sec, it leads to (~ 0.2% cases):     OTL_EXCEPTION: 1205 : [Microsoft][ODBC SQL Server Driver][SQL   Server]Transaction (Process ID 59) was deadlocked on lock resources   with another process and has been chosen as the deadlock victim. Rerun   the transaction.[ stm_text: update ...   SNAPSHOT for DB:     SNAPSHOT ISOLATION is always enabled in this database.   Also there is the same results for SERIALIZABLE isolation level.  Is it possible to handle it? Currently, I have only one way - re-run query.


I recently noticed that the date/time disappared from my desktop. Until now I could see them both in the top-right corner of my system and clicking on it would show up the calender, but now it disappeared altogether


Cannot upgrade to 17.04 - has gpg key changed?

I can't upgrade from 16.04 LTS to 17.04 due to this error when i run sudo do-release-upgrade:  authenticate 'zesty.tar.gz' against 'zesty.tar.gz.gpg'  gpg exited 2 Debug information:   gpg: Signature made using RSA key ID C0B21F32 gpg: Can't check signature: public key not found  i already refreshed my repos before running the command


Is it possible to create a custom sidebar icon for a specific folder in macOS like Dropbox, Google Drive and Creative Cloud currently do without using an application?


Chemical potential of particles with zero mass

Why massless particles have zero chemical potential?


Word for 'cynical,' 'disdainful,' 'too cool for school'

I'm trying to summarize an attitude but can't think of the word. Examples: When a teen sneers and says, "High school? I'm so over it." Or says, "OK, boomer," and doesn't take advice, or a tradition or heritage seriously. The closest I can think of are cynical, disdainful, 'over it,'dismissive.'


I was just trying function hoisting in js , I have a doubt in below code  // Case 1 var foo = function() {     return 3; }  // Case 2 function foo() {     return 2;     } alert(foo());   Why case1 gets preference over case 2 always? case 2 never overrides case 1  , why?


How would the Ministry of Magic enforce Time Turner Laws

It's mentioned that tampering with past events is illegal in the Wizarding world. Hermione even states "We’re breaking one of the most important wizarding laws!" when they are using it.   The thing is, if tampering with the past is illegal, how does the ministry enforce it? For example, if a wizard were to travel back in time, effect a change, and then return to his origin place, with everything around him changing, wouldn't he be the only one who would have been aware of the change in the first place?  Obviously the Ministry seems oblivious to its use, as it was used illegally to make a change to the past and free an extremely "dangerous" criminal (Sirius), also a big no no, with no repercussions to its users.   Furthermore, if an official from the Ministry were to detect illegal use of a Time Turner somehow, could the wizard or witch who was caught not simply use the Time Turner once again, travel back in time, and do something in order to stop the official from noticing the use of a Time Turner? How would they even punish the user for breaking the law if they were to detect it, if the user could just time turn his/her way out of being apprehended.


I want to upgrade my current Wubi installation (Ubuntu 11.04) to Ubuntu 11.10. Is this possible to do inside Wubi? Or do I have delete Wubi from Windows, therefore deleting my current Ubuntu installation; and then install 11.10 via the Wubi installer?  Thanks


Sql Query to get single values from group of values seperated by comma

i have a string value '4578,6978,6578,987', now my requirement all comma's in the string should not come in resultset and should display like 4578 6978 6578 987


I wish to check for proper user input as such (pseudo code)  userInput=""  #check until user enters 'y' OR 'Y' OR 'n' OR 'N'  while [[ "$userInput" != "[yYnN]" ]] ; do       read userInput  done   My idea is to use the [] wild card for matching but what is the proper way to accomplish this task?


Why didn't the Ministry use owls to find Sirius?

Harry, before the Triwizard Tournament, was able to send owls to Sirius when he was in hiding (not at Grimmauld Place) just by telling them "just find him, will you?", and the owl would come back a few days later with an answer. This doesn't happen with Hedwig only, because, if I recall correctly, he uses school owls as well.  If finding Sirius was as easy as telling an owl "find him", and a 13-year-old wizard could do it, how come the Ministry had no clue as to where he was? They could've sent an owl with a summons and followed it from a distance.  Two theories, neither mentioned in the book, and both a bit unlikely:   He was living as a dog and -hopefully- the Ministry would not be able to recognize him. Unlikely because the owl would have got there anyway, so they would have guessed the dog was Sirius in disguise, not necessarily as an animagus, but maybe he could perform human-animal transfiguration (remember he was brilliant at school).. Kingsley Shacklebolt was already in charge of the hunt and Dumbledore told him Sirius was innocent and all that. Then, Kingsley would have prevented the Ministry from using any method that could've actually worked. Unlikely because they could've used owls before Dumbledore's tip, when Kingsley didn't know Sirius was innocent, and also because Kingsley was quite powerful and had the support of Crouch and others at the Ministry, so if he was in charge, they would probably have succeeded.   Your thoughts?


How to set a double variable displayed in jTextField to four decimal places?

Here is how my codes are: double pressure; double volume = Double.parseDouble(volumeTxt.getText()); double moles = Double.parseDouble(molesTxt.getText()); double temp = Double.parseDouble(tempTxt.getText());             pressure = (moles * R * temp)/volume; pressureTxt.setText(Double.toString(pressure));  How do I make the value of pressure that will be displayed be set to FOUR DECIMAL PLACES ONLY? Thank you so much


How to remove the references from table of contents

I have the following code:  \documentclass[a4paper,12pt]{article} \usepackage[margin=2cm]{geometry} %showframe \begin{document} \tableofcontents \newpage \section*{Abstract} \section{Introduction} \newpage \bibliographystyle{apacite} \bibliography{references} \end{document}   And when I create the table of contents it adds the "References" in the TOC, how can I remove this to not be included in TOC? So far I have tried something like   \bibliography*{references}


Center text inside Relative>Absolute>Relative divs

I'm trying to center a text inside a  Relative>Absolute>Relative>'text to be centered'. I've tried most of the solutions that I could find, but I can only get it to center horizontally. Here is a  of what I've got so far.  HTML:

       text

   CSS:   .outer{   position: relative;   width: 500px;   height: 250px;   background-color: red; }  .inner{   position: absolute;   width: 100px;   height: 100px;   background-color: blue;   top:20px;   left: 50px; }  .inner1{   position: relative; }  .inner1 p{   text-align: center;   margin: 0; }


Why do drivers change from different versions of Windows?

I am running into a problem with drivers on different versions of Windows. Why are newer versions not backward compatible (to a certain extent)? What changes between verions of windows in the OS that requires different drivers?


how to prevent (programmatically) a java application from starting if it's not in a pre-defined directory?

how to prevent (programmatically) a java application from starting if it's not in a predefined directory?  Example:  I have application.jar and I want to make it runnable only if it's located in             "C:\runnable" directory else the application will exit.  any ideas?


Missing as in, if I do find it and try to do something with it, iTunes will say "The file is not there; want to look for it?"  I suspect there are two of them, because every time I sync iPad, I get two pop-ups of "one item failed to sync, ask iTunes for the reason"  But there are never any pop-ups on iTunes.


Get total physical memory on Linux using C or C++ API

I am planning to create cross-platform library to provide access to system configuration information (installed hardware, model of CPU, etc...).  When looking for way to access total memory (by "total" I mean amount of memory installed in system, not memory available to system), I found some problems.  In Windows, this code provide correct value:  #include <Windows.h> .... uint64_t memory; GetPhysicallyInstalledSystemMemory(&memory);   In OS X, this code provide correct value:  #include <sys/sysctl.h> ... size_t memorySize; sysctlbyname("hw.memsize",nullptr,&memorySize,nullptr,0); int64_t memory; sysctlbyname("hw.memsize",(void*)&memory,&memorySize,nullptr,0);   In case of Linux(Ubuntu), common way to get memory information is to parse information from command "free" or file "/proc/meminfo". Problem is that these options provide memory usable to system, which is close but not the same as total memory (similar situation with Windows function "GlobalMemoryStatusEx").  Additionally, I plan to use only C or C++ API to gather required information and don't want to result to parsing text using File API.  I am aware of command dmidecode where I could just add memory in each installed memory bank, but beside the need to pars textual data, command requires root to run.  So main question, is there option as described here ? Maybe exists function that was added later in time and is not very popular ( For Windows, I found information about "GetPhysicallyInstalledSystemMemory" function much later, because it was introduced in Windows Vista and most examples use older "GlobalMemoryStatusEx").  EDITED:  Question is not duplicated as I describe specific problem with obtaining "total" memory as total memory installed in particular system. Also, I clearly specify requirements for possible solution using only C or C++ API available, not parsing results of command or text file like "/proc/meminfo" as other similar questions do not set such requirements.  EDITED_2:  Changes to reflect that both C and C++ API are applicable


I want to install blender on my old computer running Windows XP. I have installed the 2.76 version, but it did not install. I tried to remove it, but it is giving me an error again:  "The installer has encountered an unexpected error installing this package. this may indicate a problem with the package. the error code is 2753"   I have a PC Dual Core with 4 GB ram.  Which version can i install?  It must be near the latest and support Windows XP. Please have a link to download.


Short story (maybe two in the same collection) about Alien education versus Earth

I read this somewhere in the 1990s, but it was probably older. I vaguely remember it as being two stories in sequence in an anthology. One was a story involving an Earth administrator comparing Earth curriculum to Mars curriculum and the second was just a class listing for Martian curriculum.  In the first story, what sticks out in my head was the Earth administrator proudly claiming some high value of WPM for reading for his students and the Martian admitting that their rate was lower, and then added a comment along the lines of that the Martian students, when reading at the rate attained at Earth, could not recall every word of the book and recite them back verbatim. In the curriculum listing, I remember that the physical education classes included Tightrope Walking and Advanced Tightrope Walking. In short, the implication was that Mars held its children, and therefore its citizens, to much higher standards, at the cost of sacrificing actual childhood. The children never played, just studied and drilled.  In retrospect, it might not have been Mars... I know one side was Earth and the other was a planet in the Solar System, and Mars sounds about right, but so does Venus. Either way, it was the casual arrogance of the extra-terrestrial society and the blustering attempts of the Earth administrator that stuck out for me.


How can I asynchronously capture output from a long-running Python subprocess

For a test I want to start a long-running Python 3 script on Linux, capture some of its output, check that it's as expected and kill it again.  I'm just trying to get the general framework working for now.  When I run the following code, I would expect the output to include line = "0" -- the python script just prints out an increasing sequence of integers, one per second. Instead, that for loop is skipped completely.  import subprocess from tempfile import NamedTemporaryFile import time import unittest  import asynchronousfilereader  class TestProcessSpawning(unittest.TestCase):     def test_spawning_counter(self):         counter_code = \ """ import time i = 0 while True:     print(i)     i = i + 1     time.sleep(1) """          with NamedTemporaryFile(mode="w", suffix='.py', delete=False)\                 as temp_file:             temp_file.write(counter_code)             file_name = temp_file.name              # proc = subprocess.Popen(['ping', 'localhost'],             #                         stdout=subprocess.PIPE, close_fds=True)             proc = subprocess.Popen(['python3', file_name],                                     stdout=subprocess.PIPE, close_fds=True)              time.sleep(3)              assert proc.returncode is None  # None => still running              reader = asynchronousfilereader.AsynchronousFileReader(proc.stdout)              time.sleep(3)  # give it a chance?              for line in reader.readlines():                 print('line = "{}"'.format(line))                 break  # just grab first one              proc.kill()   However, if I change ['python3', file_name] to ['ping', 'localhost'] I do get a line of output from ping (I'm running on Linux so ping keeps producing output until you stop it).  Any idea why this seems to work ok for other types of subprocess but not for python?    Notes:   this code uses the  available from pip if I just run python3 <temp_file_name> in a shell, the script runs as expected, printing 0, 1, 2, ... the process return code of None after a few seconds suggests the process gets run (i.e. doesn't just crash) I have tried running it through unbuffer as suggested : the output did not appear I tried passing bufsize=1 to Popen: the output did not appear if I include the -v flag I get lots of output, including this, which suggests python is trying to run interactively even though I've provided a file name:      Python 3.5.2 (default, Nov 23 2017, 16:37:01)       [GCC 5.4.0 20160609] on linux      Type "help", "copyright", "credits" or "license" for more information.


How to set up broadband connection in Ubuntu 14.04 Desktop version

I have installed Ubuntu 14.04 LTS alongside Windows Xp. My broadband connection working ok in Windows Xp, but it is not working in Ubuntu. I want to connect through LAN over PPPoE.  Please guide me on how to set up a wired DSL connection.


I have some listings that contain pseudo-code of algorithms. And I use this: \lstset{caption={Descriptive Caption Text},label=DescriptiveLabel} to add captions to them.   My problem is that the caption at the created file shows Listing 1: Descriptive Caption Text. I would like it to write something like Algorithm 1: Descriptive Caption Text.  How can this be done?


How to use early stopping properly for training deep neural network?

I have a deep neural network model and I need to train it on my dataset which consists of about 100,000 examples, my validation data contains about 1000 examples. Because it takes time to train each example (around 0.5s for each example) and in order to avoid overfitting, I would like to apply early stopping to prevent unnecessary computation. But I am not sure how to properly train my neural network with early stopping, several things I do not quite understand now:   What would be a good validation frequency? Should I check my model on the validation data at the end of each epoch? (My batch size is 1) Is it the case that the first few epochs might yield worse result before it starts converging to better value? In that case, should we train our network for several epochs before checking for early stopping? How to handle the case when the validation loss might go up and down? In that case, early stopping might prevent my model from learning further, right?   Thank you in advance.


Question on differentiability of a continuous function

Suppose that $\mathcal f$ is continuous on a closed interval and $\mathcal v$ is a point in its interior. $\mathcal f$ is differentiable when $\mathcal x\not=v$, and suppose that $\,\displaystyle{\lim_{x\rightarrow v}f'(x)}\,$ exists.  Show that $\mathcal f$ is differentiable at $\mathcal v$.  Attempt at a solution  I want to show that   $$ \lim_{h\rightarrow 0}\frac {f(v+h)-f(v)}{h}$$   exists. Based on the fact that   $$ \lim_{x\rightarrow v}f'(x)=\lim_{x\rightarrow v}\ \lim_{h\rightarrow 0}\frac {f(x+h)-f(x)}{h}$$  exists. Using the fact that $\mathcal f$ is continuous, I think if somehow I could interchange the limits $$\mathcal {\lim_{x\rightarrow v}\ \lim_{h\rightarrow 0}\frac {f(x+h)-f(x)}{h}}={\lim_{h\rightarrow 0}\ \lim_{x\rightarrow v}\frac {f(x+h)-f(x)}{h}}=\lim_{h\rightarrow 0}\frac {f(v+h)-f(v)}{h}$$ then the result comes out. But I don't think that I could do that, based on continuity. Other than that, I am not sure how to approach this.


How to save command as well as output of that command to a file

Hi I want to save both output of a command and the command that has been run to create the output into the same single file. I understand either of  *some_command* > file.txt    *some_command* | tee file.txt   can be done but either case the some_command  doesn't get saved into the file but only the output of it gets saved. Is there a way to do so ?


Show that $Z_5 \times Z_7$ and $Z_{35}$ are isomorphic.   I tried $$f(a,b) = 7[a]+ [b]$$  where $a \in Z_5\ and\ b \in Z_7$  Is this Correct ?  **   Edit :   ** It is similar to this question :    I just read it but can you check if the approach I mentioned to the question is correct ?


Searching after a science fiction book/series about Galactic war with a weaker Human/Alien Alliance vs. Another hostile alien race

Human/Alien Alliance consists of many species including one that seemed to use physical movements(ear position and posture) to partially communicate, they seemed to be a very Spartan like society and had trouble understanding human emotion and sarcasm. Another were a historian or librarian type of species that had a caste system. I believe there were other species as well, including one that had incredible linguistic adaptability to understand other races languages. The antagonist or hostile alien race were compared to tall multi legged giraffe looking beings that themselves were fractured/divided into several different "fleets" or groups all with the purpose of achieving some sort of perfect symphony or song. They had some sort of telepathic or sound based communication system.  They had been systematically wiping out all other races and civilizations throughout the galaxy for quite some time and had at least one slave race that had been either genetically or trained over time to rely on their masters "song". Any distraction or disruption of the song/harmony weakens their capacity to communicate with other ships and their tactical advantages.   The hostile race had apparently been beaten back at a battle near or on earth , after the struggling alliance had found the humans. The victory giving the alliance time to search for allies. It seemed obvious this was a later, potentially not even the second book in the series.   The start of the book began with a fleet made of up alien and newer human made ships manned by both but led by an overall human female mission director. Their mission was to search different parts or arms of the galaxy for other alien races that might have survived the hostile race's holocaust.   In the first battle of the book, the alliance fleet finds some enemy ships positioned over a planet that had for quite some time been wiped out but now colonized by the hostile race. The Enemy commanders were  a mated pair that both had some time of musical names like  7th octave or something similar. The alliance used some sort of heavily armed ship to ram into and board the enemy flagship.After the male enemy leader was killed, the Female lost control after losing her mate and the disruption to the local harmony/symphony and attacked the boarders with blades of some sort but was killed.   After having defeated the hostile aliens fleets, they investigate the ruins of the planet's extinct species and find a very horrid and chilling scene where there are frozen/petrified members including children of the wiped out natives floating on the surface of the planets moon or possibly the planet itself having lost its atmosphere.  The alliance had been able to capture many members of the slave race the antagonist race used on their ships. And it was incredibly difficult to begin communicating with them. They appeared to be a reptilian/snake like species that now without their masters constant presence were panicking or entered a sorta of catatonic state. They gathered together in their holding cells in writhing moving mass of limbs and bodies trying to seek comfort and having been captured.  A significant technology of the book was using some sort of plasma shielding to warp/jump in to systems and hiding in their local suns to mask positions and movement.   The Protagonist is the Female Director of the mission, though there seemed to oft be multiple view points. Her position as leader of the operation is rare and new and she seemed very aware and partially self conscious of that fact. Humanity was relatively a new member and so still needed to prove itself. A significant decision she needed to make at the start of the book was whether to return their fleet back to Earth or continue jumping/warping farther in the chance of finding more allies.  -The book was found in 2017, at a public library.  -It is not the Damned Trilogy


Restricting duplicate attribute values in file geodatabase feature class?

I have created a File Geodatabase with around 9 feature datasets, and each of those have their own feature classes. So for one of the point feature classes in my GDB, I want to restrict the entering of duplicate values in only some of the fields in this particular feature class.   For example: I capture a point, now I need to fill out the following attributes for that point: 'Force_Number', 'Weekday', and 'Neighborhood'. I want the 'Force_Number' field to restrict me from entering any values that I have entered for previously captured points in this feature class, and I don't want them to auto increment. But I still want 'Weekday' and 'Neighborhood' to accept duplicate values.  Any Suggestion? :-)


IIRC then the mount options shown in /proc/mounts have changed. Some time ago acl and user_xattr were shown, now it seems that only noacl and nouser_xattr are shown if these features are turned off.  Where is this configured? Does that depend on the compiled-in defaults of the filesystem code? How can I check whether a volume supports e.g. ACL? Is there a better solution than testing with setfacl, getfacl?


Given that$$(3x-1)^7=a_7x^7+a_6x^6+a_5x^5+...+a_1x+a_0$$find $$a_7+a_6+a_5+a_4+...+a_1+a_0$$  Is there anyway to do the question without using binomial theorem and expanding the expression on the LHS??


What exactly is a function expression in Javascript?

So I found this terminology a little bit confusing. I normally see tutorials talking about function expression with an variable assigned to a function, but also, from Mozilla's official website , it says:     A function expression is very similar to and has almost the same syntax as a function statement (see function statement for details). The main difference between a function expression and a function statement is the function name, which can be omitted in function expressions to create anonymous functions. A function expression can be used as a IIFE (Immediately Invoked Function Expression) which runs as soon as it is defined. See also the chapter about functions for more information.   so it doesn't mention anything about variable assignation. So, is  var funcvar = function(){};   or  function(){};   is a function expression? Or neither of them? Can anybody give me a concise definition?  Thanks guys!  EDIT: or, is  function(){};   called function statement? And it's an anonymous function?


I updated ubuntu 18.04 to 20.04. All worked fine for weeks until today. Touchpad on lenovo y580 stopped working just like that. I didn't install any new updates yesterday.   Xinput log:  Virtual core pointer                        id=2    [master pointer  (3)] ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ↳ PS/2 Synaptics TouchPad                   id=14   [slave  pointer  (2)]  Virtual core keyboard                       id=3    [master keyboard (2)] ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)] ↳ Power Button                              id=6    [slave  keyboard (3)] ↳ Video Bus                                 id=7    [slave  keyboard (3)] ↳ Power Button                              id=8    [slave  keyboard (3)] ↳ Sleep Button                              id=9    [slave  keyboard (3)] ↳ Video Bus                                 id=10   [slave  keyboard (3)] ↳ Lenovo EasyCamera: Lenovo EasyC           id=11   [slave  keyboard (3)] ↳ Ideapad extra buttons                     id=12   [slave  keyboard (3)] ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]


Unity's "File Edit View" menus in Gnome Fallback in Ubuntu 12.04?

I was recently playing around with Ubuntu 11.04 (Ah, the last version of Ubuntu to use Gnome 2 in the background) and I noticed this:      As you can see its the "Unity" "File Edit View..." menu in GNOME 2. It's available as an indicator addon in 11.04.  Now what I'm asking is how do I get this integrated menu to the top bar in GNOME Fallback/Classic in Ubuntu 12.04? As it will be a great addition on my custom distro. Its also good for saving space on smaller screens like on my netbook. (Wink wink, nudge nudge. Hmm, maybe thats why he wants the answer)   It would also be nicer if it hid when the mouse isn't over it, but that's just a perk, but it would be nice ;)  I can confirm that the answer by tabakisp works! Thank you tabakisp!


What is the reason that a likelihood function is not a pdf?

What is the reason that a likelihood function is not a pdf (probability density function)?


What tools have been used to build StackOverflow Help Center?

Is SO Help Center built from scratch (ASP.NET) or  is it based on some tool ?


Cannot get Atheros AR9285 to work on 12.10

I've already went through all possible advices and still cannot start my Atheros AR9285 wireless card.   I have a laptop Toshiba Portege Z830 where the WiFi already worked under Windows 7. But after migration on Ubuntu 12.10. I'm not able get it work.  This is what I see on command lshw  *-network UNCLAIMED             description: Network controller        product: AR9285 Wireless Network Adapter (PCI-Express)        vendor: Atheros Communications Inc.        physical id: 0        bus info: pci@0000:02:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: latency=0        resources: memory:c0500000-c050ffff   This is what I see on command rfkill list  0: Toshiba Bluetooth: Bluetooth     Soft blocked: yes     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no   Any idea?


Father brought my plane ticket on his credit card, does he need to come with me to check in?

So I'm leaving from England to Texas in 2 days and was wondering since my Father brought my tickets with his credit card, does he need to be there with the credit card at check in?  He's taking me to the airport so it's possible but will he need to be there on my return flight too? Because obviously that isn't possible since he isn't coming with me  The airline I'm flying with is Lufthansa by the way!  Also just to be sure...check in is before security right? so he would be in and out right? and does this matter if I check in online?  Hope I was clear, thanks for all the help :)


About a year back i bought a USB from Asda that of which the manufacture is unknown. i made it a bootable USB for kali linux and done the install to a separate USB. i decide to format it as i could use it for other things, so i use admin EaseUS to wipe it, while later it fails so i unplug it an plug it back in. Next thing i know i try to open it in files and it says "Please insert disk" ive had a look in disk management it comes up as:  "  Disk 1 Removable (E:)  No media  "    By this point i don't know what do do so... can u guys help?


how does the beta function make the total probability of Dirichlet distribution integrate to 1?

the Dirichlet distribution $$Dir(\boldsymbol\mu|\boldsymbol\alpha)=\frac{1}{B(\boldsymbol\alpha)}\prod_K\mu_k^{\alpha_k-1}$$  How is the normalization term $B(\boldsymbol\alpha)$ calculated? or in other words how can I show that the total probability integrates to 1?     I tried searching relevant textbooks and pages, but they all seem to just put down the equation there directly.   Any help would be appreciated.


Have sort of a weird question. I'd like to create my own custom Ubuntu load, install specific software, change the interface and theme, then take that and create a live USB from it.   I'm making it for some people that are not computer smart, so I want to make it non-persistent, so if they mess it up, they can just reboot and have the exact same desktop from which they started. I was thinking maybe there is a way to convert a VirtualBox Ubuntu, or something like that. I'm not the best at the terminal, and I'd like to test it as I go to make sure that everything is working.  Any ideas?


How to install the "Broadcom Wireless Wifi 43142" driver?

So today I wanted to dual boot Ubuntu 20.04 in this system. I know already how to select the "Broadcom Wireless Drivers" on Ubuntu so I tried it in a live iso and it worked! But... Something went wrong. When I tried to go to additional hardware in the gnome application it just pops up the Nvidia drivers. Can anyone help me? Edit: Broadcom BCM43142 802.11 bgn Wi-FI Adapter Edit 2: Sorry it is like 23 hours since I posted this but, I just discovered that I need to install bcmwl-kernel-source. However, I don't have ethernet and just have wifi and i'm all doing it offline, since I dual booted it where can I find the link to the latest packages? Edit 3: So it’s the next day now, I tried to install bcmwl-kernel-source and it says E: Unable to locate package bcmwl-kernel-source now what am I supposed to do?


Cannot Center Text in CSS block using Text-Align

I am trying to center the words on my page. Everything is working except the text is on the left side of the screen, not the center. styling{      color: white;       background-color: aqua;      font-family: 'Hachi Maru Pop', cursive;       font-size: 18px;      font-weight: bold;      margin: o auto;      text-align: center;   }


Change color for different string in geoserver

I have a DB in pgAdmin and in one table i have an field named "description" that only can have 2 descriptions: "car" or "bike" in geoserver i set this label and work well:  <Label>  <ogc:PropertyName>description</ogc:PropertyName> </Label> <Font>  <CssParameter name="font-family">Arial</CssParameter>  <CssParameter name="font-style">Normal</CssParameter>  <CssParameter name="font-size">12</CssParameter> </Font> <Fill>  <CssParameter name="fill">#b7d5ff</CssParameter> </Fill>   but i want different colors for the 2 possibles descriptions. who is possible in geoserver?


Voltage source as we know is the battery but what is the current source? Is it just a voltage source converted to a current source on paper to simplify the computation of the circuit or it really exists and if it exists what is its example ?


If you could ride an elevator through the earth

What if it was possible to ride an elevator straight through earth. If we take all the heat and pressure problems away, and assume it would be possible: What would happen with gravity? Would gravity suddenly turn around as i pass through the center and hit my head into the roof?   Or would i gradually get weightless as i descend?  EDIT:  This is not a duplicate. The other questions does not involve an elevator car. The other ones are about jumping into it.


How to upgrade Windows 10 to version 1703 instead of 1709?

How do I upgrade a VM copy of Windows 10 to version 1703 (Redstone 2 - Creators Update) instead of to version 1709 (Redstone 3 - Fall Creators Update)? I have not been able to find the redistributable update and the update tools explicitly want to upgrade to the latest version. As a developer I can not skip a version here for testing purposes.  This is explicitly not an if/should question; those are reserved for noobs who lack a decisive reason for their questions.


Law of reversibility of light and total internal reflection

When a light passes from a denser to a rarer medium at critical angle of incidence the light rays graces through the surface of the denser medium.According to the law of reversibility of light same thing should happen when we reverse the direction of light.But, how can that be? How does the light know when to go into the denser medium?


How do I install Ubuntu on "free space"?

I am installing Ubuntu and I want to do it on "free space" on my disk, but I don't know how.  This is what I have:   Please help me to figure this out.


Is it possible to assign a base class object to a derived class reference with an explicit typecast?

Is it possible to assign a base class object to a derived class reference with an explicit typecast in C#?.  I have tried it and it creates a run-time error.


Is it possible to build memoryless logic gates?

I would like to build a memoryless (possibly cyclic) logic circuit. Perhaps this is not the best name, so let me illustrate what I would like to have with an example.  Consider a state machine with inputs a and b, and outputs i and o. The values of the outputs are defined by the equation:   i = a * b o = b   or with the truth tables:  a b | i o  0 0 | 0 0  0 1 | 0 1  1 0 | 0 0   1 1 | 1 1  The output values are completely defined by the inputs, independently of the history of the circuit or of the current value of i and o.   This can be easily implemented by a circuit where i is the output of an AND between a and b, and o is simply b (in this circuit, the values of the outputs are independent of the previous history, so it is  said to be combinatorial).  Now consider the following circuit.    If the initial state of i and o is 0, then the circuit computes exactly the function above. However, if then we change the input, that is no longer the behavior, because the circuit has "memory" (the circuit is not combinatorial, but rather sequential). For example:  i) First we set a and b to 1, so that i and o become 1 too.  ii) Afterwards a remains 1 and we set b to 0, then i and o remain with value 1 (the circuit remembers the previous value).  Then my question is: is there any implementation of logic gates such that in (ii) i and o become 0? More in general, I would like the machine to implement the function above no matter which is the previous history.  I would like to keep the wires between the gates, and simply change the implementation of the gates. My intuition is that if the circuit contains only OR gates, this can be achieved implementing the OR gates with diodes (). But I am not sure about this, and I have no clue about how to do that for AND gates (I only care about monotone circuits, so implementing NOT is not an issue).  I will try to give one more example of a simple circuit with one feedback loop and one OR gate. Consider the function o = i and the circuit on the left:    This is a sequential circuit. Assume initally o = i = 0. Then we set i to 1, and o becomes 1. Then, after setting i to 0, o remains 1.   However, if we implement the OR gate with diodes (as in the right image, see ), then the circuit is not sequential any more. The output o is always equal to i, no matter the previous history. Please, correct me if this is wrong. Then for this simple case, the answer is: yes, you can implement the OR gate with diodes to achieve that behavior.  Thank you!


Showing that the product of vector magnitudes is larger than their dot product

QUESTION  Show that $$|\mathtt{u} \cdot \mathtt v| \le |\mathtt u||\mathtt v|$$  ATTEMPT  Let $ \mathtt {u,v} \in \mathbb R^n$ such that $ \mathtt u = u_1 x_1 + u_2 x_2 + ... + u_n x_n, \mathtt v = v_1 x_1 + v_2 x_2 + ... + v_n x_n$   Then  $$|\mathtt{u} \cdot \mathtt v| = | u_1 v_1 + u_2 v_2 + ... + u_n v_n | $$ $$ |\mathtt u||\mathtt v| = \sqrt{ {u_1}^2 + {u_2}^2 + ... + {u_n}^2}\sqrt{ {v_1}^2 + {v_2}^2 + ... + {v_n}^2}  $$  This is where I get a bit stuck. Instinctively I do know that (2) is in fact larger or equal to (1). I'm just not sure which lemma/theorem/rule to use to show this.   Or am I going about this just the wrong way?


Electric arc and electric spark differences?

Why does an electric spark occur discontinuously while an electric arc is not extinguished as long as the current is maintained?


Creating a node fitting the horizontal width of two other nodes

I have the two PGF nodes foo and bar positioned in a row.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document}   \begin{tikzpicture}[node distance=0.2cm,mynode/.style={rectangle,draw}]     \node[mynode] (foo)                {foo};     \node[mynode] (bar) [right=of foo] {bar};   \end{tikzpicture} \end{document}   How can I create a third node below those two nodes with the width of foo, bar and the node distance between them? Is there a way to do this with the fit library or is this the wrong approach?


Ubuntu 14.10 blank screen on fresh install, new to this

Completely new to installing this, and confused as to why it is like this after I login.


I'm quite good at English,but not adept in it. Over a period of time I've gotten a good grip over it and I could ponder a lot about grammar in detail. I've doubt regarding the following Qs. and need details and if it is right why and how convict me with grammar.        You'll get a chance to see macy play live. (I think Correct)   or   You'll get a chance to see macy playing live. (Not Correct)   How to stop your hair become white? (I think Correct)   or   How to stop your hair becoming white? (Not Correct)


What is different $(a_0, a_1, ..., a_d) = (1)$ and $\gcd(a_0, a_1, ..., a_d) = 1$ in arbitrary UFD?

In the book which I'm reading now, the author says, in an arbitrary Unique Factorization Domain $R$, $(a_0, a_1, ..., a_d) = (1)$ and $\gcd(a_0, a_1, ..., a_d) = 1$, where each $a_i \in R $, is not necessarily equivalent. I know the first one implies the seconed one, but in my native thought, the second one is seemed to imply the first one. To disprove this, I'd like to see some example that in some UFD $R$, $(a_0, a_1, ..., a_d) \neq (1)$ but $\gcd(a_0, a_1, ..., a_d) = 1$. But I can't come up with such domain $ R$. Could you give me such example? Thank you for kind answer in advance.


Word between "proficient" and "mastery"?

I'm writing a résumé for the first time and I want to convey that I have a near-mastery of a programming language. Most sample resumes use "proficient", but that sounds like I'm not very good with the programming language. I have almost 10 years of extensive experience with the language, so I feel qualified to claim that I have "mastery" of the language. However, I don't want to use "mastery" because that sounds arrogant.  What's a word with a meaning between "proficient" and "mastery"?


The Riemann Zeta function $\zeta(s)$ for complex numbers whose real part is greater than $1$ is given by $$ \zeta(s) = \sum_{k=0}^{\infty} \frac{1}{k^s}$$ I came across an interesting problem : Show that $$ {\sum_{m=1}^{\infty} \sum_{n=1}^{\infty}}_{gcd(m,n)=1}\frac{1}{m^2n^2} = \frac{\zeta^2(2)}{\zeta(4)}$$ I know that if $a(1)=0$ and $a(n)=k$ when the prime decomposition of $n$ consists $k$ distict prime factors then $$ \sum_{n=0}^{\infty}\frac{2^{a(n)}}{n^s} = \frac{\zeta^2(s)}{\zeta(2s)} $$ But many attempts of mine were futile to conquer the above problem. Is there any way to do that?