Edit: The  was answered by @James and his solution covers the particular problem presented here.    In  I have exposed the original problem and I have received answer to the points 1, 2 and 4, but not the 3th.  Inspired in the answer given by Carina I started to work in some solution, but it is still not 100% right.  Based on  I have decided to post a sub-question to refine the definitive answer and put it on the original post for the posterity.  The (remaining) problem   To make the sections* and put the labels on they (in the spaces, not the lines), @Carina gave me some good ideas, but I need something a little more advanced, the idea is that those lines continues below the X labels. To get the values for the section separator lines from an external file (as is done with the stacked area plots).   ("sections" are those vertical slices or partitions of the X axis seen in the picture. If X is time, they can be understood as consecutive "periods of time")  The partial answer    \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \usepackage{filecontents}  \begin{filecontents}{data.txt} Time core1 core2 core3 core4 mem 0 7.847 19.51 18.389 18.943  400.90 1 6.863 64.706 12.871 30  913.50 2 10 88 0 0  1215.19 3 57.576 39 0 0  1691.61 4 0.99 99 0.99 0  1694.64 5 0 40.594 60 0  1698.15 6 0 96.939 3.03 0  1699.55 7 0 50.495 48.515 0  1700.09 8 0.99 53 47 0  1703.00 9 0 28.283 69 3  1696.77 10 31.313 0 0 67.677  1697.30 11 15 84 1.01 2.941  2252.78 12 0 15 14.141 71.717  2249.72 13 31 27 6.931 37  2249.00 14 2 13.725 60.606 28  2248.16 15 9 34.343 41 19  2248.31 16 32 41.414 25.743 0  2250.18 17 26 33.663 20.408 21  2249.89 18 23 13 40 25.253  2249.89 19 47.525 18.182 22 12.121  2249.60 20 34.694 25.253 22.772 16.832  2249.32 21 22 0.99 42.574 37.374  2249.01 22 12.871 24 12.121 56.436  2251.39 23 17.172 15.152 49.02 20.202  2252.57 24 27 5.051 32.653 36  2252.72 \end{filecontents}  \begin{filecontents}{data2.txt} % For now, I'm not using this file steps 0 0.024 10.127 10.143 21.634 24.81 \end{filecontents}  \begin{document}     \begin{tikzpicture}[scale=1]         \begin{axis}[             axis y line=left,             axis x line=bottom,             enlarge x limits=0,             enlarge y limits=0,             width=15cm,             height=8cm,             stack plots=y,             area style,             xlabel={Time},             ylabel={CPU usage},             ymax=500         ]             \foreach \i in {1,...,4}{                 \addplot table [y index=\i]{data.txt} \closedcycle;             }         \end{axis}         \begin{axis}[             axis y line=right,             axis x line=none,             enlarge x limits=0,             enlarge y limits=0,             width=15cm,             height=8cm,             fill=none,             ymax=7600         ]             \addplot[very thick,draw=green] table[y index=5]{data.txt};              % The separators are written manually and there is no label             \draw[black](axis cs:  0.024,0)--(axis cs:  0.024,8000);             \draw[black](axis cs: 10.127,0)--(axis cs: 10.127,8000);             \draw[black](axis cs: 10.143,0)--(axis cs: 10.143,8000);             \draw[black](axis cs: 21.634,0)--(axis cs: 21.634,8000);             \draw[black](axis cs: 24.810,0)--(axis cs: 24.810,8000);         \end{axis}     \end{tikzpicture} \end{document}   Some gimp to show the desired output  (Please notice that the steps 1 and 3 are really short, so they seems like a single line but they are two)    Thanks a lot for your time :)


What is the best way to put a backdoor in an encryption system?

How can you put a backdoor into an encryption algorithm? Are there any techniques that can be used to reduce the time it takes to break a key?  I am looking for practical examples encryption schemes that have backdoors, because they were designed to or new techniques exposed them. It is my understanding that you can use a lack of entropy and diffusion in block ciphers which will reduce the necessary time that it takes to break a key. This is especially true with s-boxes, which can be designed to not increase the strength of the key. As for one-way algorithms, using none-primes can make it easier to reverse keys. What are other decisions that can be made to make a broken encryption algorithm?   The goal is find examples that can be used for encryption pedagogy, by collecting a sample of weak ciphers to practice on.


How to set system-wide environment variables on OS X Mavericks

We used to use /etc/environment to set system-wide environment variables on Mountain Lion. However, it seems this file is no longer read. Ideally the solution should apply to all users, and we need it to work with ssh console sessions. So we need this to work ssh user@mavericks-machine 'echo $MY_ENV_VAR'  So far we've tried:  /etc/launchd.conf Works for all users, but only applies to 'windowed' applications, i.e. works in Terminal, but not in an ssh session.  ~/.profile, ~/.bash_profile etc. Only applies to shells   Any suggestions?


Why does the accuracy not change, when applying different alpha values in L2 regularisation

Figure below shows the accuracy using different alpha values in L2 regularisation. As long as alpha is small in the range of $10^{-12}$ to $10^{-2}$ the accuracy remain the same. I do undarstand when alpha value is $10^{1}$ or greater it will increase the weights to a point where they do not fit the data optimal and then, resulting in under-fitting. What is the reason why the accuracy remain the same by smaller alpha values? The formula is: $$w^{2}=w^{1}-\alpha*w^{1}$$  where $w^{1}$ and $w^{2}$ are respectively the recent and the regularised weight parameters, $\alpha$ is the regularisation parameter specifying the amount of regularisation.


Mid 2012 MBP shuts down claiming no power with charge at 30% or 40% or more

I have two mid 2012 MBPs. Sometime last year they both started randomly shutting down and showing the 'please plug me in to power' image when trying to start them up. That would be fine if the batter was at 1% or less but this happens when the battery is at anywhere from 30% to as high as 48% full. The power cycle info says 500 cycles or so. Both of them do this. They are both patched current, always. I asked Apple they suggested NVRAM PRAM and SMC reset, as expected, which had no effect. Any ideas?


Proof of a formula involving Euler's totient function: $\varphi (mn) = \varphi (m) \varphi (n) \cdot \frac{d}{\varphi (d)}$

The third formula on the  states that $$\varphi (mn) = \varphi (m) \varphi (n) \cdot \dfrac{d}{\varphi (d)} $$ where $d = \gcd(m,n)$.  How is this claim justified?  Would we have to use the Chinese Remainder Theorem, as they suggest for proving that $\varphi$ is multiplicative?


Can "real" be used as an adverb to describe an adjective?

Is this correct?     That is a real cool answer.   I learned that that was incorrect, since "real" is an adjective which can describe a noun, e.g. "real answer" but it is not an adverb which can describe an adjective, "real cool". Instead you would have to say:     That is a really cool answer.   Since "really" is an adverb.


Currently I am using Cook's distance to detect outliers in multivariate data. Is there any better approach than Cook's distance for the same?


Flight from Morocco to London has a 4S-4 connection in Madrid, do I need to enter Schengen?

Extracting the core question from .  I looked at  and the people mover needs a boarding pass which makes me wonder whether it's air side.


How to disable SQL injection possibility in a simple form?

I have this comment form where the only inputs are a name and a textarea for a comment.  My question is: how can I be sure that there is no way to use SQL injection in my code? I found a couple of guides for this, but I am not sure how to make them work with my code.  <?php if(isset($_POST['submit'])){     $pvm = date("F j, Y");      $postId = $_GET["post"];      $lahettaja = $_POST['name'];      $kommentti = $_POST['comment'];      $sql = "INSERT INTO kommentti (post_id,kommentti_pvm,kommentti,lahettaja) VALUES (:post,:kommentti_pvm,:kommentti,:lahettaja)";      $kysely = $yhteys->prepare($sql);      $kysely->bindParam("post", $postId);      $kysely->bindParam("kommentti_pvm", $pvm);      $kysely->bindParam("kommentti", $kommentti);      $kysely->bindParam("lahettaja", $lahettaja);      $kysely->execute();  } ?>


I have a table showing which roles recursively grant access to which resources within a database. For example:  The Default_Role grants access to the App_Role, the App_Role grants access to the Security_Role, and the Security_Role grants access to three tables (customers, sales, users). So a member of the Default_Role is granted all of these, but Default_Role is not granted access to the Sys_Role, and is not granted access to the System or Admin tables. CREATE TABLE SQLTest(      DBName     NVARCHAR(100) NULL     ,Privilege    NVARCHAR(100) NULL     ,PrivilegeType NVARCHAR(100) NULL     ,PrivilegeDetail NVARCHAR(100) NULL     ,TableName NVARCHAR(100) NULL )  INSERT INTO SQLTest VALUES  ('TSDB','Default_Role','Role','App_Role',NULL), ('TSDB','App_Role','Role','Security_Role',NULL), ('TSDB','Sys_Role','Role','Security_Role',NULL), ('TSDB','Security_Role','Table','Customers','Customers'), ('TSDB','Security_Role','Table','Sales','Sales'), ('TSDB','Security_Role','Table','Users','Users'), ('TSDB','Sys_Role','Table','System','System'), ('TSDB','Sys_Role','Table','Admin','Admin')  What is the best way to flatten this out so you can see all the access (roles and tables) granted to the Default_Role, without showing additional access not granted to the Default_Role? Like this:  Tried putting together this example, but doesn't work.


I'm porting an application to Windows and I need to decide where to store user settings and session information on the filesystem. Under linux I put everything under ~/.myapp. I could do the same on Windows, but I'm wondering what the canonical approach is for this.  Things that will be stored in this directory:   user settings that need to persist across app lifetimes user authentication information logs


How to generate uniformly distributed points in the 3-d unit ball?

I have posted a , this is related but I think it is better to start another thread. This time, I am wondering how to generate uniformly distributed points inside the 3-d unit sphere and how to check the distribution visually and statistically too? I don't see the strategies posted there directly transferable to this situation.


Error converting float array to string array

I am trying to convert an array of floats to strings, but I am running into an error where the string array ends up slightly different from the original float array.  I am using the numpy.arange function to create my list of floats, and then using a basic for loop to convert the next float to a string and append it to a string array.  However, the results are not as expected.   hue_order = []  for i in np.arange(0.375,0.625,0.025):     hue_order.append(str(i))   Expected result:  ['0.375',  '0.4',  '0.425',  '0.45',  '0.475',  '0.5',  '0.525',  '0.55',  '0.575',  '0.6']  Actual result:  ['0.375',  '0.4',  '0.42500000000000004',  '0.45000000000000007',  '0.4750000000000001',  '0.5000000000000001',  '0.5250000000000001',  '0.5500000000000002',  '0.5750000000000002',  '0.6000000000000002']  Seems like some sort of numerical instability issue but I am not sure how to resolve it.


Bandwidth of CW modulation (morse code)?

How can I relate the bandwidth required by a morse code signal over RF to:   the length of a dash, and the length of a dot the time between dots and dashes the speed of keying?   Are all applicable to the bandwidth of the channel?  Can I model this as a function?


I'm a Junior Programmer But I need help with a query How do I execute a query showing all tables in a Database ??


So I have no errors in my code but for some reason my search is returning the true result no matter if the array contains it  public static void linSrch(String[] names) {     Scanner inputDevice = new Scanner(System. in );     System.out.println("Please enter search");     String search;     search = inputDevice.nextLine();     boolean searchReturn;     for (int index = 0; index < names.length - 1; index++) {         if (names[index] == search) {             searchReturn = true;         }     }     if (searchReturn = true) {         System.out.println(search + " is found in the array.");     } else {         System.out.println(search + " not found in the array");     } }


How to match only the digits that are between two dots excluding the dots using regex

I have series of numbers (versioning) like this:      1.6.8   1.9.7 (also with two digits in the middle)   How should I do to target only the middle numbers, the ones between dot and dot?  I tried something like that this:   \.\d+(?=\.)   and it is targeting the middle number, but also the first dot.


Prove $\sum\limits_{n=2}^\infty \frac {1} {n\ln(n)\ln\ln{n}}$ is divergent.

Evaluate if the following series is convergent or divergent: $\sum\limits_{n=2}^\infty \frac {1} {n\ln(n)\ln\ln{n}}$.   I cannot properly understand the notation that the book employs here $\ln\ln(x)$, but I guess it is referring to $\ln(\ln(x))$. Assuming $\ln \ln(x)=\ln(\ln(x))$,  I used the Weierstrass's or comparasion test to evaluate the series:  $$\sum\limits_{n=2}^\infty \frac {1} {n\ln(n)\ln\ln{n}}<\sum\limits_{n=2}^\infty \frac {1} {n\ln(n)\ln(n)}=\sum\limits_{n=2}^\infty \frac {1} {n\ln^2{n}}<\sum_\limits{n=2}^{\infty}\frac{1}{n^2},$$ proving the series converge. However the solution point out the series diverge.   I have already proved the convergence $\sum_\limits{n=2}^{\infty}\frac{1}{n^2}$.  Question:  What am I doing wrong? How can I prove the series diverge? Is $\ln\ln(x)=\ln(\ln(x))$ meant by the author of the book?


sudo apt-get update && sudo apt-get install netflix-desktop gives the error  The following packages have unmet dependencies:  netflix-desktop : Depends: wine-browser-installer but it is not going to be installed E: Unable to correct problems, you have held broken packages.   but dpkg --get-selections | grep hold shows nothing.    I'm running 12.04 64-bit. I've followed the directions in :   Confirmed that main, universe, restricted and multiverse software sources are enabled sudo apt-get clean sudo apt-get -f install (returning '0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.') sudo dpkg --configure -a sudo apt-get -f install (again '0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.) sudo apt-get -u dist-upgrade (0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.) used Y PPA Manager to check for duplicate ppas (none found)   [Edit] I have had the same error with other packages.  Here's the output requested by Alaa:  sudo apt-get install wine-browser-installer  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:  wine-browser-installer : Depends: wine-compholio (>= 1.5.19~precise1) E: Unable to correct problems, you have held broken packages.   [Edit 2] doing sudo apt-get install wine-compholio gave a list of further dependencies.  I installed each one, and now I have done sudo apt-get install netflix-desktop without error


PHP - Database Credentials INI vs Php File

I know that the question "how to correctly store Database credentials?" has been asked a lot, but in a discussion with a coworker that question resurfaced and we couldn't determine what was the correct answer:  Ini File:   Storing credentials in a .ini file looks elegant, but that kind of file can be viewed in a browser.   Php file:   In-script storage looks a little hardcoded but a hacker has to get into the server in order to peek at the file.   So what would be the best approach?  P.S.: Any other storage options are accepted  Thanks in advance


How to have emails matching a specific Gmail filter sent as SMS to a mobile device?

In some cases I receive an email that I would like to know about immediately.  Regardless of whether or not my 'phone has email abilities, SMS messages coming to my mobile are much more in your face. Therefore I am looking for a way to have emails matching some filter in Gmail automatically sent to mobile device via SMS.  Does not need to be the entire message, subject line would suffice.    I am fairly certain this is not possible through Gmail, perhaps I could setup a mailserver on one of my Linux boxes to periodically check for said email and push to SMS via @provider.com.  If relevant at all, I am running an iPhone 3G on T-Mobile but also have a BlackBerry at my disposal.    Any suggestions on this?


What is a good approach to read the whole file content in a buffer for C++?  While in plain C I could use fopen(), fseek(), fread() function combination and read the whole file to a buffer, is it still a good idea to use the same for C++? If yes, then how could I use RAII approach while opening, allocating memory for buffer, reading and reading file content to buffer.   Should I create some wrapper class for the buffer, which deallocates memory (allocated for buffer) in it's destructor, and the same wrapper for file handling?


Homeomorphism between $\mathbb{Q}$ and $\mathbb{Q}(>0)$, and $\mathbb{Q}(\ge 0)$

I want to ask about the homeomorphism between $\mathbb{Q}$, $\mathbb{Q}_{>0}$: the rationals greater than $0$, and $\mathbb{Q}_{\geqslant 0}$: the rationals $\geqslant 0$?  For $\mathbb{Q}$ and $\mathbb{Q}_{>0}$, I can use the back and forth map to have an order-isomorphism, and as a result, a homeomorphism. Is there a direct formula for the map?  It's very surprising that $\mathbb{Q}_{\geqslant 0}$ is homeomorphic to $\mathbb{Q}_{>0}$ and $\mathbb{Q}$,  I don't know how to show they are homeomorphic.    Could anyone please help me with the homeomorphisms between them?


How to get HTML Table Cell Value through JQuery?

Hi I'm looking to get the value from a HTML Tables Cell and then display it into a JQuery Dialog Window when the user has clicked in that cell How can I achieve this ? Here's my code currently  <script> $(function() {     $( ".dialog" ).click(function(){            $('#dialog').dialog({             resizable:true,             modal:true,         });     }); </script>


How to generate Unique ID without form submission in php ajax

i fill up 4 field(Name,Phone,Course,Center) in my form. 5th field is "roll". when i fill up 4 field, then how to generate roll without form submission, i want to generate roll like that My 4 field text are below Name-Jack,Phone-1234567890,Course-Computer,Center-010 after fill up this field then generate roll and print 5th field without form submission Roll-Jac890Com10


How to burn a DVD which is playable in an external player?

I have several .dvd files which were created using . To export the videos from OpenShot, I used the DV-NTSC widescreen and DV-PAL Widescreen property.  Can anyone tell me how I can burn these *.dvd files into a DVD that can be played with my external Sony CD/DVD 5.1 Player which is connected to a TV?


How to derive stream order from vector network

I have a recently-updated extract from NHD High Resolution (updated in last 6 months) which means it hasn't been cranked through NHDPlus, and won't for many years to come, and thus has no Stream Order (Strahler) attribute.   Running it through Arc Hydro (burn streams) and then through SA Stream Order tool doesn't work: That generates a new stream network! Converting the NHD to a raster and combining it with FDR, another miserable fail.  A few tools (RivEX, NVS Vector Stream Tools) "Claim" they have the ability to determine stream order from a vector network, but I have yet to see that work, and their tools are made for "Lab" (perfect) environments.  I'm able to generate FromNODE ToNODE on this network, is there some easy-button in Arc Toolbox that can pull this off? REALLY need to have Stream Order on this dataset covering 700,000 acres, will take the interns a long time......


How to prove that a sum of $\cosh(kx)$ is equal to a formula?

I need to prove that   $$\sum_{k=0}^{n}\cosh(kx) = \frac{\sinh((n+1/2)x) + \sinh(x/2)}{2\sinh(x/2)}$$  Can you help me out? How do I even start?


Specifying a difference in differences model with multiple time periods

When I estimate a difference in differences model with two time periods, the equivalent regression model would be  a.  $Y_{ist} = \alpha +\gamma_s*Treatment + \lambda d_t + \delta*(Treatment*d_t)+ \epsilon_{ist}$   where $Treatment$ is a dummy which is equal to 1 if the observation is from the treatment group and  $d$ is a dummy which is equal to 1 in the time period after the treatment occured   Thus the equation takes the following values.   Control group, before treatment: $\alpha$ Control group, after treatment: $\alpha +\lambda$ Treatment group, before treatment: $\alpha +\gamma$ Treatment group, after treatment:  $\alpha+ \gamma+ \lambda+ \delta$   Hence, in a two period model the difference in differences estimate is $\delta$.  But what happens concerning $d_t$ if I have more than one pre and post treatment period? Do I still use a dummy that indicates whether a year is before or after the treatment?  Or do I add year dummies instead without specifying whether each year belong to the pre or post treatment period? Like this:  b. $Y_{ist} = \alpha +\gamma_s*Treatment + yeardummy +     \delta*(Treatment*d_t)+ \epsilon_{ist}$  Or can I include both (i.e $yeardummy +\lambda d_t$)?  c. $Y_{ist} = \alpha +\gamma_s*Treatment  + yeardummy + \lambda d_t +     \delta*(Treatment*d_t)+ \epsilon_{ist}$  In conclusion, how do I specify a difference in differences model with multiple time periods (a,b or c)?


We have that: $ \dot{x}=x^{2/3} $, and $x(0)=0$. This Initial Value Problem has infinitely many solutions (is a problem in my Dynamics Book, so I'm sure about that), but personally I could found only two, $x=t^3/27$ and $x=0$. Normally I would say that a linear combination of the solutions will also be a solution, but in that case we have $x=0$. How can I find another?


I just created an empty WPF app in VS 2015.  It has  public partial class MainWindow : Window {     public MainWindow()     {         InitializeComponent();         var mainWindowHandle = new WindowInteropHelper(this).Handle;     } }   But mainWindowHandle  is 0 always.  Is it OK? Should it be > 0 ?


How to kill Whatsapp process without it resurrecting after a time?

On my Xiaomi Mi A1 if I go to Apps & notifications > WhatsApp and tap "force stop", the app seems to stop. But hours later, WhatsApp is strangely on again and I start receiving messages. If there is a way to safely kill the process associated with WhatsApp so the app does not start again, what is it?


How to create desktop icon that runs jar command

New to Linux but very happy with it so far and been able to learn a lot.  Currently opening a folder that contains Example.jar, then opening terminal, next entering  java -jar Example.jar to launch the jar file.  Ideally would like to double click a icon on the desktop to do the aforementioned.   Is this possible?  Running Linux Mint but believe the steps would be the same.


Running emacs completely from usb on windows

In few weeks I'll be on a competition for website development.  I can use Emacs from a usb stick. I can't write to system drives anything so all Emacs configs and plugins are needed to be loaded from the usb stick. These are rules so I would rather not break them.   So I think this can be done with setting load-path or recompiling emacs to look config files from the usb but I no idea how this would be done in practice.


How to design a product table for many kinds of product where each product has many parameters

I do not have much experience in table design. My goal is to create one or more product tables that meet the requirements below:   Support many kinds of products (TV, Phone, PC, ...). Each kind of product has a different set of parameters, like:   Phone will have Color, Size, Weight, OS... PC will have CPU, HDD, RAM...  The set of parameters must be dynamic. You can add or edit any parameter you like.   How can I meet these requirements without a separate table for each kind of product?


Demonstrate the following trivial equation:      $$\int_0^{\infty} \int_0^{\infty}\frac{\log x \log y}{\sqrt{xy}} \cos(x + y)dxdy = (\gamma + 2 \log 2) \pi^2$$      where $\gamma$ is the Euler-Mascheroni constant.   Proposed by Wan Lang Zonneveld  This seems to me to be a matter of symmetry.


I am using the following code and wanted to know how I can change it from click event to hover or mousemove event. I know there is a eventListner but I am unable to locate the click event where I must change it to mousemove event.  info = new OpenLayers.Control.WMSGetFeatureInfo({             url: 'http://localhost:8080/geoserver/iPlant/wms',              title: 'Identify features by clicking',             queryVisible: true,             eventListeners: {                 getfeatureinfo: function(event) {                     map.addPopup(new OpenLayers.Popup.FramedCloud(                         "chicken",                          map.getLonLatFromPixel(event.xy),                         null,                         event.text,                         null,                         true                     ));                 }             }         });         map.addControl(info);         info.activate();   Update 2.0  I made the changes and also added the PopUp, but only the click function is being recognized.  info = {             click: new OpenLayers.Control.WMSGetFeatureInfo({             url : 'http://niles.iplantcollaborative.org:8080/geoserver/wms',             title : 'Identify features by clicking',             queryVisible : true,             eventListeners : {             getfeatureinfo : function(event) {             deletePopUp();             popup = new OpenLayers.Popup.FramedCloud("popInfo", map.getLonLatFromPixel(event.xy), null, event.text, null, true);             map.addPopup(popup);}}             }),             hover: new OpenLayers.Control.WMSGetFeatureInfo({             url : 'http://niles.iplantcollaborative.org:8080/geoserver/wms',             title : 'Identify features by clicking',             queryVisible : true,                     hover : true,             eventListeners : {             getfeatureinfo : function(event) {             deletePopUp();             popup = new OpenLayers.Popup.FramedCloud("popInfo", map.getLonLatFromPixel(event.xy), null, event.text, null, true);             map.addPopup(popup);             }}             })             };             map.addControl(info.hover);             info.hover.activate();


I saw this sentence in an English article.     It’s time we had a serious rethink about “learning.”   There are some questions about this sentence.   Why the word 'had' has past tense in this sentence What does 'had' mean in this sentence. It seems like 'had + verb' has some special meaning.   and If I made some mistakes in this question. Please let me know. I'm all ears.  Thanks


How can I force a line break in the table of contents?

I'm writing a pretty long document, and at some point this happened with the table of contents:        I would like to be able to force a line break between 'complex' and 'space', either directly or by imposing suitable limits on line lengths or the separation between the lines and the numbers, or any such relevant lengths.  A minimal working example is below,   \documentclass[pdftex,11pt,twoside,a4paper]{report}  \usepackage[a4paper, left=3cm, right=3cm, top=3cm, bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{lmodern} % load a font with all the characters \usepackage[colorlinks,linkcolor=blue,final]{hyperref} \usepackage{tocloft}  \usepackage{lipsum}   %%% Headers \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \setlength{\headheight}{14pt}  \fancyhead[LE]{\thepage} \fancyhead[RE]{Electron dynamics in complex space and complex time} \fancyhead[LO]{\nouppercase{\leftmark}} \fancyhead[RO]{\thepage}  \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}   \begin{document}  \tableofcontents   \setcounter{page}{100} \chapter{Quantum orbits as trajectories through complex time and complex space} \lipsum[1-16]  \end{document}   including the headers in use in the document; obviously all of the non-lipsum packages are necessary in the larger document. How can I fix this ugliness?


prove $(n)$  prime ideal of $\mathbb{Z}$ iff $n$ is prime or zero    Defintions  Def of prime Ideal (n) $$ ab\in (n) \implies a\in(n) \vee b\in(n) $$ Def 1]  integer n is prime if $n \neq 0,\pm 1 $ and only divisors are $\pm n,\pm 1$   Def 2 of n is prime] If $n\neq0,\pm1$  only divisors of n are $\pm1,\pm n$ $$ n|ab \implies n|a \vee n|b $$    $\Rightarrow $] (Prime Ideal $(n)$ of $\mathbb{Z} $$\Rightarrow$ $n$ prime or zero)  Now consider the case where $(n)\neq (0)$. that is $n\neq 0$   Using the def of prime Ideals $$\begin{aligned} ab \in (n) \implies a \in(n) \vee b \in (n) \end{aligned}  $$  Well, If an element $x\in(n) \iff x=q*n \iff n|x$   $$n|ab \implies n|a \vee n|b$$  So, $n$ is prime ,nonzero.   In the case that $(n)=(0)$ clearly $n=0$ since there are no zero divisors in $\mathbb{Z}$  $\Leftarrow$] (n is prime or zero  $\Rightarrow $ $(n)$ is a prime ideal of $\mathbb{Z}$)  Consider the case where $p is prime$ so $n\neq 0, \pm1$  $$ \begin{aligned}  n|ab &\implies n|a \vee n|b \\ ab \in (n) &\implies a \in (n) \vee b\in(n) \end{aligned}$$  in the case $n=0$, since $\mathbb{Z}$ has no zero divisors  $$ab=0 \implies a=0 \vee b=0 $$ So (0) is a prime ideal.     Concern if this prove holds, also would be surprised if this question is not out there in this site. Did a search and clicked on similar questions and could not find it.And of course any other ways to prove it.


What is the "know the word but incapable to associate the word"-issue called that occurs mostly among non-native English speakers?

This is a phenomenon that occurs mostly among non-native English speakers. The other day, 4 non-native speakers were discussing the USSR flag. All of them described it as red-colored flag with a hammer and a cutting knife (example: That hook-like knife used for reaping or simply a knife). Now this kind of description would surely bring up the image of the actual USSR flag but would not be treated as a qualified description. When the topic digressed, I purposely mentioned the sickle in the ongoing conversation and everyone knew what a sickle was and all of them then said the reaping knife that they had described earlier was a sickle. Now the question is: They could not associate a sickle (which they knew already) with the image of a sickle on the USSR flag while describing the flag but once the sickle itself was the topic they knew that the knife on the flag was in fact a sickle. What does this communication-association-memory problem or issue called that occur mostly among Non-native English speaker. I don't know if it occurs among native English speaker at all. Addition after the question being flagged as duplicate + already answered: They wouldn't necessarily say that it was on the tip of their tongue as "tip of one's tongue" suggest that they has inkling of the word but they just didn't come up with it during the original flag conversation. I want to make distinction 1.) During the flag conversation, they would not bring up sickle in any case as there is not association, although they know sickle in isolation. But they just can't associate it with the sickle that they know on the flag during the flag conversation. 2.) The other is tip of the tongue which i understand is they know that the image on the is sickle but could not utter as they were not able to recall the word. They just don't experience any recall phenomenon. Would you still call it Tip-of-the-tongue (TOT) phenomenon (since the very phrase suggest that the association is made but it lacks utterance due to some sort of mental block (probably temporary) at the moment.


Excel Date Formula - Return the next specified day of the week

I need a formula that will always return the next specified day of the week.  For instance   IF(A1="A",RETURN NEXT FRIDAY, IF(A1="B",RETURN NEXT TUESDAY.....ETC   The reason I need this is because I have a group of accounts and each of them has a specified delivery date, so if an account has been assigned to group A they will take delivery on Mondays, and if they have been assigned to group B, delivery will be Tuesdays etc.    I think from these examples the formula will result in a different day and date dependent on what day "today" is. What I need is for each account in group A to default to the next Monday, regardless of what day of the week it is currently. So group A would be today+4 if it is Monday but today+3 if it is Tuesday. I hope this makes sense.


Telepathic female alien crash-lands on earth, fights bug-like aliens

This has been bugging me for some time now, and I can't find anything on it.   It's a movie I remember watching as a kid with my father and I only remember bits of the movie, just images mostly.   It involves:   A female telepathic alien that crash lands on earth. She finds a local human detective/cop (?) and teams up with him to kill some big bug-like aliens.  The two protagonists, the female alien and the cop, are walking up some stairs after a meeting. She's in front and as she climbs the stairs he looks at her butt. She immediately turns around and says something to the effect of "that's gross".    I hope this is enough for someone to help me identify the movie. Thank you in advance!


I have a PDF with a strong password (contains uppercase, lowercase letter, digits, special characters). Now I don't know what's the length of the password. All I care about is contents of the file.  I am trying PDF Password Cracker Enterprise v3.1 it allows you to specify min and max password length and uses a Brute-Force type of attack. Problem is brute force attack takes a hell lot of time. For past 24 hours it's running the attack but so far it has only reached 6 characters.  Any way I can remove the password without actually cracking it !?


What's different between Python and Javascript regular expressions?

Are Python and JavaScript regular expression syntax identical?   If not, then:    What are the important differences between them Is there a python library that "implements" JavaScript regexps?


In HPGOF, why is the fake school name not written on Harry's parchment?

In Harry Potter and TGOF, each person was instructed to "write their name and school clearly on a slip of parchment and drop it into the Goblet" by Dumbledore. So why is the name of the fake school not written in the parchment with Harry's name when it comes back out?  Dumbledore is the one who reads each name out when the Goblet chooses each champion, and he doesn't know all of these children. Viktor Krum is famous, and I guess he could guess from the names which school each champion belongs to, but surely the school names are just still on the parchment, as they were written?


Steam: share games within family. Library locked?

I have bought a couple of games on steam for my kids. Everything worked great until I bought another computer for them. So now I have 2 computers for them to use. I thought that login om same account they could use both computer as long as they not played the same game. That didn't work. So I created another steam account and used familysharing to share the games between the two computers. That did not work either!! As soon as one computer used ANY game on the "library" the other computer could not play anything.. what the heck! How am I supposed to let my children play som games from steam without buying multiple copies of every game??!! I found something about creating multiple libraries. But for that I need to partition the hdd for each library which would contain only one game each.  Can that be an option? If I create multiple libraries will they all be locked while sharing to another computer? Please help me. Many people (parents) must have this problem?? Should I create a new steam account for each game?? Thanks!


Proving convergence of sums: If $\sum_{n=1}^{\infty}a^2_n$ and $\sum_{n=1}^{\infty}b^2_n$ converge then $\sum_{n=1}^{\infty}a_nb_n$ converges

Let $\sum_{n=1}^{\infty}a^2_n$ and $\sum_{n=1}^{\infty}b^2_n$ prove that: $\sum_{n=1}^{\infty}a_nb_n$ converges.  I thought about this answer: In order for a sum to converge i has to be bounded, Means Let $M_1\epsilon R$, So that $ \sum_{n=1}^{\infty}a_n<M_1 $. Same goes for $b_n$. [And lets say $M_2$].  So is it just: $\sum_{n=1}^{\infty}a_nb_n\le \max(M_1*M_2, \sqrt{M_1*M_2}$)?  And one more question: Let $\sum_{n=1}^{\infty}a^2_n$ prove that  $\sum_{n=1}^{\infty}\frac{a_n}{n}$ converges.  If i go the same as before, I have hard time cause i get something like:  $\sum_{n=1}^{\infty}\frac{M_1 }{n}$ which doesn't converge [I think].  Any guidelines please?


The proc file system allows the kernel to communicate information about each running process on a Linux system.  Why is proc called a file system? It’s not a real file system like ext4. It’s just a collection of files containing information about the running processes.


How to center a span text next to an image in CSS

I'm trying to center the text along side the image with CSS. I thought the transform tag would center it along the image but that must've been for a different circumstance.    <!DOCTYPE html>               <meta charset="utf-8">
        Center text


What is the bypass capacitor at the emitter of a common-emitter amplifier for?

Why do we have the by pass capacitor parallel to R(E) in this amplifier circuit? They say it is to bypasses the RE resistor for AC signals but then why is it required to by pass the R(E)    They say that it is to avoid the negative feedback by the resistor but i do not understand the concept of negative feed back in this case? What's negative feed back and why to get rid of it?


I'm new in ubuntu and I tried to install the alternate CD in my machine. Everything went fine but when I tried to boot a black screen and a blink cursor went on. I can boot from my USB and searching in internet I found a post suggesting that the swap was into the USB, the suggestion is to reinstall ubuntu. My question is: is there a way to fix this (booting from the hdd of my computer) without reinstalling?  If not, what should I do different in the new installation in order to avoid this situation in the future?  I hope you could give me a hand with this. Best regards, Seba.


iPhone shuts off when battery is at about 20%

I have an iPhone 4S running iOS 8.0.2. For the past few days, my phone has been shutting off when the battery reaches around 20%. It will not turn back on until I plug it into a power source. When I plug it in, it automatically powers itself on, and the battery shows about 20%.  This is my battery info:   CycleCount: 298 DesignCapacity: 1430 FullChargeCapacity: 1000 Status: Success BatteryCurrentCapacity: 72 BatteryIsCharging: true ExternalChargeCapable: false ExternalConnected: true FullyCharged: false GasGaugeCapability: true   Questions: does anyone knows why this is happening, and how can I make the battery function until 2-4% like it used to before?


Is there aluminum wiring in my vent fan?

I just purchased and installed a new Panasonic FV-10NLF1 inline exhaust fan.  My house has copper wiring, but the wires on the fan appear to be aluminum (they are silver in color).  I didn't think anything was made with aluminum wire anymore.    What special considerations do I need to take when connecting the copper house wiring to the fan wires?


$f$ entire, $f$ satisfies $|f(x+iy)|\leq\frac{1}{|y|}$ for all $x,y\in\mathbb{R}$. Prove that $f\equiv 0$.

Let $f$ be an entire function. Suppose that $f$ satisfies   $$ |f(x+iy)|\leq\frac{1}{|y|}. $$   for all $x,y\in\mathbb{R}$. Prove that $f$ is identically zero.   I'm having some trouble with this, but I'm probably just overthinking it. The first instinct as usual is to try and make something happen with Liouville's theorem (and then since $f$ tends to zero on the imaginary axis we can conclude that $f\equiv 0$), but since $f$ is potentially unbounded on the real axis it's inapplicable. I'm pretty sure it's still impossible for $|f|\to\infty$ as $x\to\pm\infty$ while the function is bounded everywhere else, as it seems there would be some topological obstruction, but I could be wrong. I've also thought of getting an estimate on the $|f'|$ as in the proof of Liouville's theorem, but it fails for the same reasons. Any hints or tips are greatly appreciated. Thank you


How to prove that if $\sum a_n^2 $ ,$\sum b_n^2$ converges then $\sum a_nb_n$ converges   I wanted to prove above .  I tried summation by parts but I did not get.     Please Just give me hint. Because I wanted to try this problem


using sed to find and replace, not adding

I have a simple text of URLs in stdout. Part of the URL looks as below.  https://somedomain./xx?t=s&u=random other text   I wish to change this using sed or something from the command line to read  https://somedomain./xx?t=l&u=random other text   I have used sed -e 's/s&/l&/'  Instead of replacing s& with l& I am getting ls& in the string. Is there something wrong with my command?


Hide files and directories starting with '.' in Nautilus

When viewing the home directory with Nautilus, files and directories starting with '.' are now visible.  Some examples of files/dirs that could earlier only be viewed by running ls -a, but are now even visible in Nautilus are - .bashhistory, .git, .gitignore, .config etc.  I am not sure how this happened and could not find an option to revert this under Nautilus preferences menu.   Help in reverting to old system would be appreciated.


How to install Windows 8 from USB flash drive?

I downloaded Windows 8 as an ISO image, and I'd like to install it on a computer that doesn't have an optical drive.   Is it possible to install Windows 8 from a USB drive? How would I do this?


I have a mathematical induction question and I know what I need to do just not how to do it.  The question is:     Prove the equality of:      $$(1 + 2 + . . . + n)^2 = 1^3 + 2^3 . . . + n^3$$   Base case:  $$(1 + 2)^2 = 1^3 + 2^3\\ (3)^2 = 1 + 8\\ 9 = 9$$  and I understand I have to get the sides to equal each other though I'm not sure how to do that:  I use this:  $$(1 + . . . + n + (n + 1))^2 = 1^3 + . . . + n^3 + (n + 1)^3$$  but i can't seem to factor anything in anyway to figure it out . . .  I've tried putting the $S(n)$ in the $S(n + 1)$:  $$(1 + . . . + n + (n + 1))^2 = (1 + . . . + n)^2 + (n + 1)^3$$  but its just getting the $-(n + 1)^3$ on the first side I can't figure out...  Any help would be amazing!!!!


Basically the title is the question: Do you get a notification if your comment is deleted? I couldn't find the answer in the help center or here on meta. But I'm pretty sure that I had comments under several questions/answers which aren't there anymore, so do you get a notification or do your comments simply vanish into oblivion?


Do characters ever gain new skills/proficiencies?

Do player characters ever freely learn new skills/proficiencies? From what I can see, most classes get two or four proficiency skills to start, and backgrounds provide two more. Some class specializations provide a new proficiency in a tool or with a stat. But I can't seem to find anything to indicate that a PC can decide to learn a new skill that they feel suits their character's developments. Something analogous to 'cross class skills' from old editions.  In other words, if a rogue character doesn't select "Sleight of Hand" as a proficiency at first level, they'll literally never gain that proficiency.  Again, this is probably a stupid question, so if I'm missing something go easy on me. Thanks.


How do I combine a group of circles and open paths to make one shape in Illustrator CS6?

I am trying to create a clubs symbol for some cards I am designing, but I do not know how to combine closed shapes with open paths. I know how to use pathfinder to combine closed shapes but that does not work for this.


In Debug mode value = 0.66666666666663 and in Console.WriteLine the result is 0.66666666666667

I'm doing calc like this  double sdf = 0.0; sdf = ((300.0-200.0)/(300.0-150.0)); Console.WriteLine(sdf);   Is there a reason for this and why the value is not same?


How do I base an outlook rule on the number of "To:" addresses?

I would like to create an Outlook rule that stops me from sending out emails that have more than ten email addresses in the "To:" line. Is this even possible? I'm using Outlook 2010 on Windows 7 64-bit.  My reasoning: I send out a distribution letter to a large number of addresses. I usually send this email to myself with the distribution list addresses in the "BCC:" line. Every once in a while I mess up and accidentally put the distribution list addresses on the "To:" line instead. This is a problem because then each email recipient will see all the addresses on the list. I want Outlook to stop me from doing this, or at least warn me before I send it out.  I also welcome suggestions on how to get around this problem.


Using the  for $\Gamma(x)$ and $\Gamma\Big(x + \frac12\Big)$, how can I prove the ? This is problem $10.7.3$ in the book , by Boros and Moll.  Any help is highly appreciated.


Regex start with a word till specific word/char/space

The string could be as following line by line every time.  code=876 and town=87 and geocode in(1,2,3) code=876 and town=878 and geocode in(1,2,3) code=876 and town="878" and geocode in(1,2,3) code=876 and town=8,43 and geocode in(1,2,3) code=876 and town='8,43' and geocode in(1,2,3) code=876 and town=-1 and geocode in(1,2,3) code=876 and town=N/A and geocode in(1,2,3)   The result should be with preg_match  town=87 town=878 town="878" town=8,43 town='8,43' town=-1 town=N/A   Note: I know there are various ways to achieve this task but I want to regex only. Thanks


My friend has installed Ubuntu but I know nothing about the system and she is no longer around.  How do I install an application that would allow me to view things on Youtube,Netflix or things like tennis streaming on the net or in general viewing anything video wise? It keeps asking me for plug-ins and then won't let me to download anything. Also, can I download Microsoft Internet Explorer to replace Mozilla Firefox?  Any help would be appreciated.


I'm preparing some notes, basically some  theorems and their proofs.  I'd like to define a show/hidden switch, so that when it was turned on (to show) , all content are generated into the pdf; if it's turned off(to hide), another pdf is generated, with all theorems shown, but the proofs hidden.  How to do this in latex? My document class is "article".  sorry i don't know what tag shall this belongs to.


Best way to retrieve variable values from a python file through another python script?

I have many python files all with the same variable names but different values. Something like this would be in one: var_one = 'happy' var_two = '2345' var_three = '-24.24' var_four = 'Chocolate'  I need to write a Python script that can read these files and when I ask for var_one it returns happy. If I ask for var_two it returns 2345 and so on and so forth. Right now I have a python two compliant toolbox that does this using something along the lines of: for fname in myfile:     d = toolbox.datafile(fname)     my_mood = d['var_one']     number  = d['var_two']     decimal = d['var_three']     candy   = d['var_four']  And then printing my_mood would print out happy. However, this toolbox is not python 3 compliant and I did not make it so I would like to know if there is an easy built in toolbox that can accomplish this task. Thanks in advance EDIT** The importing method seems like it will be the most helpful for answering this question. The only problem that I have now with it is that I do not know how to import the files. To explain further I am going to be parsing the command-line arguments and one of the arguments will be the location of said file that we want to import. What is the syntax to import that? I have an args.file that equals <home/myname/python/myfile.py> So how would I import args.file?


How (and why) use stderr for both reading and writing?

According to , less reads navigation commands from stderr if it's not able to open /dev/tty.  This seems puzzling, since I've never seen anything write to another program's stderr stream, and I don't know how I would even accomplish that.  What is the purpose of stderr being open for both reading and writing? And if this is useful, how do I make use of it on modern systems? (Is there some arcane syntax to pipe something into stderr instead of stdin, for instance?)


If both gold and golden refer to "made of gold", how do I choose?

I always thought that if something is made of gold, it is a gold thing, if it looks like gold but might not be, it is golden. But looking in the dictionary, I can see I was wrong.  In the Cambridge dictionary, for both  and  it reads:     made of gold, or the colour of gold   For "golden" it reads in also:     made of gold   Example sentences for gold:     She always does her presents up beautifully in gold and silver   paper. She was wearing a gold Lurex top with a pink mini skirt.   There are a couple of fish with blue markings, and a few more with   gold stripes down the side.    I understand in those examples "gold" refers to the color but why it is not golden? How would the meaning change if I put "golden" there? How to tell which one should I use?


Prove $x^2=y^3$ where $x,y\in \mathbb{Z}$ implies $x=a^3$ and $y=b^2$ where $a,b\in\mathbb{Z}$

I feel like I'm meant to use the uniqueness of prime factorization and show that since $\text{lcm}(3,2)=6$ each prime should appear 6 times, but how would I justify this?


Let $A,B$ and $U$ be sets so that $A\subseteq U$ and $B \subseteq U$. Prove that $A \subseteq B$ iff $(U\setminus B) \subseteq (U\setminus A).$   I've this question as my graded assignment. But for the entire module, I am completely lost and would really appreciate if anybody can help me with this question. Thank you so much!


Is it possible to fully install ubuntu instead of dual booting it with windows 7

After i dual booted Ubuntu on my laptop i noticed things haven't been right on my windows 7 OS and some programs that i'm trying to download on my ubuntu os is not working because of the other OS files interfering after the hard drive.besides the fact i want to know if there is a way to instead of dual booting linux to somehow bring back up the installation and do a full install of ubuntu instead of just dual booting.


I am making a body of email. Where I am giving a anchor tag  which supposed to show "TEXT" but instead of that it is showing url. Can anybody please help me in that.  My Code  MakeEmail : function(){             var myObje = Ext.getCmp("MyObj");  // My Obj         var Value = "3.14";         var aTag = document.createElement("a");             aTag.href = "https://www.w3schools.com";             aTag.innerText  = "w3Schools";         window.location.href = 'mailto:?subject=Search :'+myObje.id+'&body=Please check Value'+Value+aTag },


Can I build infrastructure on a town's seed tile without affecting town growth?

I was reading , where the accepted answer says:  When a player-owned building such as a bus stop, train station etc is placed on the seed tile, the city is unable to spawn new buildings and will slowly die off.  It is an old answer. Is the answer still relevant in more recent versions of OpenTTD? I am currently using version 1.7.1. Can I build infrastructure on a seed tile (i.e. a town's center tile) without affecting town growth?


What is the best free software to edit NEF photos?

I'm new to photography and just starting to take photo in RAW format. I haven't found a difference in quality of color adjustment editing between ViewNX (free software coming with my Nikon d5100) and Picasa, perhaps because of my inattentiveness. So I've decided to ask here what is the best free software to get most from RAW (Nikon NEF) photo editing?


I am trying to achieve autosuggestion functionality using jquery for SharePoint but not working

I am trying to achieve autosuggestion functionality using jquery for SharePoint but my code does not go fire the operation: getlistitem it directly jumps from there and goes to the input code  <script language ="javascript"  type = "text/javascript"> $(document).ready(function(){  readyCall();  });  function readyCall() {    var externalParties = [];    debugger;    $().SPServices({    operation:"GetListItems",    listName:"FruitsList",    CAMLViewFields:"<ViewFields><FieldRef Name='FruitNames'/></ViewFields>",     async:false,    completrefunc:function(xData,Status){            $(xData.responseXML).SPFilterNode("z:row").each(function(){     externaParties.push($(this).attr("ows_FruitNames")); }); }  });     $("input[id$='Name_x0020_Of_x0020_the_x0020_Fr_5df8c07d-1dd7-4e65-a9fe-695dbe65f187_$TextField']").autocomplete({      source:externalParties});  } </script>


Why am I not dead after repeatedly touching a high-voltage source?

While playing with mosquito racket in my home, I unscrewed the racket and touched the 2 wires with my hands. I felt that my bones were dislocated, I got shocked, but I am not dead.  My calculations say that I should die:  the output voltage is 5 kV to 10 kV, my body resistance is approx. 50 kΩ, the current through my body is 0.1 A if 5 kV to 0.2 A if 10 kV.  According to the table at  I should die; I tried this many times but I am still alive.  I think my interpretation regarding current, voltage and my body resistance is wrong (if right I would be dead by now) - please tell me why I am not dead?


Is there a notation for addition form of factorial?  $$5! = 5\times4\times3\times2\times1$$  That's pretty obvious. But I'm wondering what I'd need to use to describe  $$5+4+3+2+1$$  like the factorial $5!$ way.  EDIT: I know about the formula. I want to know if there's a short notation.


An $n$th root inequality: $\sqrt[n]{n} < 1 + \sqrt{2/n}$

Prove that for any positive integer $n$,       $$n^{1/n}  < 1 + \sqrt{\frac{2}{n}}.$$   This due to Victor Linis, Eureka, Vol. 2, No. 2, February 1976, p. 29.   Hint:      Use the binomial theorem.


I am trying to drive  with an  microcontroller.  Both devices are listed to work with I2C clock frequencies up to 400 kHz. The two devices are the only devices on the I2C bus.  However, working out the calculations for the pull-up resistor bounds gives some rather odd values.  Calculating the I2C minimum pullup resistor value:  \begin{equation} R_{min} = \frac{Vcc - 0.4}{3mA} = 966.7 \Omega \end{equation}  Looking at the uC datasheets, on page 92 lists the max pin input capacitance of 10pF.  However for the LCD, it has on page 8 something called the Capacitive load represent by each bus line labeled as Cb, and is listed at a max value of 400pF. I'm assuming I should just add this value to the 10pF uC input capacitance, but this seems really high and the calculations are wonky.  For example, when I try computing the maximum pullup resistor value for a 400kHz clock:  \begin{equation} R_{max} = \frac{300ns}{10pF + 400pF} = 731.7 \Omega \end{equation}  Am I misinterpreting the LCD datasheet? Obviously the max allowable pullup resistor value cannot be smaller than the min allowable value.  likewise, if I assume a maximum net bus capacitance of 400pF, I get:  \begin{equation} R_{max} = \frac{300ns}{400pF} = 750 \Omega \end{equation}  still under the maximum allowable value.


Any way to solve this right angle triangle problem without trig?

I know that the answer is 180 from using the arctangent (arctan(1)+arctan(2)+arctan(3)), but thats boring. Is there any way to solve this problem without the help of trig at all?


So one of the question on the MIT Integration bee has baffled me all day today $$\int_{0}^{\frac{\pi}{4}}\frac{\tan^2 x}{1+x^2}\text{d}x$$ I have tried a variety of things to do this, starting with Integration By Parts Part 1 $$\frac{\tan x-x}{1+x^2}\bigg\rvert_{0}^{\frac{\pi}{4}}-\int_{0}^{\frac{\pi}{4}}\frac{-2x(\tan x -x)}{\left (1+x^2 \right )^2}\text{d}x$$ which that second integral is not promising, so then we try Integration By Parts Part 2 $$\tan^{-1} x\tan^2 x\bigg\rvert_{0}^{\frac{\pi}{4}}-\int_{0}^{\frac{\pi}{4}}2\tan^{-1} x\tan x\sec^2 x\text{d}x$$ which also does not seem promising Trig Substitution $x=\tan\theta$ which results $$\int_{0}^{\tan^{-1}\frac{\pi}{4}}\tan^2 \left (\tan\theta\right )\text{d}\theta$$ which I think too simple to do anything with (which may or may not be a valid reason for stopping here) I had some ideas following this like power reducing $\tan^2 x=\frac{1-\cos 2x}{1+\cos 2x}$ which didn't spawn any new ideas. Then I thought maybe something could be done with differentiation under the integral but I could not figure out how to incorporate that. I also considered something with symmetry somehow which availed no results. I'm also fairly certain no indefinite integral exists. Now the answer MIT gave was $\frac{1}{3}$ but wolfram alpha gave $\approx$ .156503. Note  The integral I gave was a simplified version of the original here is the original in case someone can do something with it $$\int_{0}^{\frac{\pi}{4}}\frac{1-x^2+x^4-x^6...}{\cos^2 x+\cos^4 x+\cos^6 x...}\text{d}x$$ My simplification is verifiably correct, I'd prefer no complex analysis and this is from this  close .


I have an old Acer Aspire 4920 bought in 2008 or so with 1GB RAM, Intel Core 2 Duo processor. I had windows 7 on it. I erased it for obvious reasons and installed Ubuntu 16.04, but later felt its slow and 16.04 recommends 2GB RAM. So I erased it and installed 14.04 64bit which recommends minimum 512MB. I thought it will be fast because my RAM is double the minimum requirement. Unfortunately, it is slow as well. Does anyone know why? Is the RAM too low or should I try 32bit version? Please help.


How do I access MTP devices on the command line in Windows?

Most MTP () devices show up in Windows File Explorer under their device name or a GUID, but they don't have a drive letter assigned.  How can I access the files on such devices from the command line? Using either cmd.exe or PowerShell.


I know that frictions means a lot for car wheel. I've been looking all around a lot and trying to figure all out. I have found out about   Coefficient of friction depends on slip ratio(which I am still not sure how to calculate) Friction determines maximum force exceeded to move car Friction depends from load on wheel Friction prevents car from sliding   However, I am not kinda sure how that all works - how to calculate each of the variables and forces(slip ratio, friction-determined maximum force for longitudal motion of car(both acceleration and braking) and friction resistance that prevents car from rolling away(makes it static when gas is not pressed) or sliding freely in curves(makes it actually possible to steer in curves).  What I want is to receive equations and explanations of how this all works, how each of forces/variables affect other acts of car, what should I take in etc. And, please, remember that this is for a simulation type of game(it shouldn't matter much, though).  Thanks!:D


Determining sample size for ML algorithm validation

I'm looking to do a third-party assessment of the false-positive rate of a video classification algorithm. Since I have a lot of video I'm trying to do a power analysis to figure out exactly how much video I need to look through so that it is representative of all the video data at a given confidence interval.  The algorithm flags video sequences that have at least one cat in it, and I'm looking to evaluate the frequency of false positives on a new unlabeled test set. So I have tagged all the video that my algorithm has identified a cat in and now want to sample the tagged video sections and look through them manually to validate my model since looking through all of it would take too long! Note, I'm not looking to refine the model at this point, just assess it.  My null hypothesis is that the FP rate of the sample of video I watch is equal to the FP rate of all the video.   I think I can use this formula to determine the number of video sequences to view:    Here is my question: am I thinking through this formulation correctly? Since my model has a CV false positive rate of ~0.96, I figure I can use that as a reference. Can I use that for the null hypothesis proportion, p0? Or will that be p, the true proportion?    I've been using this online calculator:   I ask because when setting the parameters I have, I'm getting very small sample sizes, like less than 10 sequences to view. That can't be right.


Imported object shows aligned to the wrong axis

I was doing fine with importing an obj I made in Marvelous Designer into Blender for rigging.  The dress would settle nicely on my SL avi.    Now when I import the object; it is perpendicular to my avi and I have spent a week trying to figure out what I did...  Is there a keystroke or setting that I need to make sure is correct so that my dress fits my avatar again?


Chrome does not install on windows xp sp3

I've been having a lot of difficulties installing Chrome on my desktop, I have Windows XP with SP3. The setup program starts and then exits within a second. I can see in Process Viewer that it's accessing a lot of files and registry keys before exiting


Sample Standard Deviation vs. Population Standard Deviation

I have an HP 50g graphing calculator and I am using it to calculate the standard deviation of some data. In the statistics calculation there is a type which can have two values:  Sample Population  I didn't change it, but I kept getting the wrong results for the standard deviation. When I changed it to "Population" type, I started getting correct results!  Why is that? As far as I know, there is only one type of standard deviation which is to calculate the root-mean-square of the values!  Did I miss something?


Can I use a wpdb object to connect to a non-Wordpress Oracle database

I simply have a quick question. I've found information related to this, but I'm not completely sure if this is possible. I know that I can create a second database connection using the wpdb object as follows:  $new_db = new wpdb(usr, pw, name, host);   However, is this compatible with an Oracle database that wouldn't have any of the Wordpress tables?


What is the Stack Exchange (Staff) process of launching a site?

I've heard bits and pieces from various sources, but I would really like to know, what does the Stack Exchange staff do to launch a new site? What are the milestones? I'm talking about Area 51 milestones, reviews to leave private and public beta, other reviews that might happen along the path during a public beta, etc. I'd just like to get an idea of what Stack Exchange Employees do when when it comes to launching a new site.  If possible, I would like to know approximate days of the week, site milestones, etc, with the understanding that things change based off of holidays and other special occasions.


Do non-English papers/publications have value in a CV which is going to be sent to an English company/university?

Some of the students are doing research in another language than English because they are living and studying in a non-English speaking country; they may be doing research in their mother-tongue language because they are studying in their own country or they are studying in another country in which the language is not English.  If these students have non-English language publications which are published or sent to a non-English conference/journal; Do these publications still have the same value in their CV when they are going to send it to an English speaking university/company? Or only publications in English are of value in those institutions.  PS: I think the situation is easier for the students having English publications in their CVs and want to send it to a non-English speaking university/company as they welcome and accept those publications.


I think i know how to solve it but is that the best way? Is there a better way (using number theory). What i do is: knowing that  1st power last digit: 3 2nd power last digit: 9 3rd power last digit: 7 4rh power last digit: 1 5th power last digit: 3    $3^{347} = 3^{5\cdot69+2} = (3^5)^{69} \cdot3^2 = 3\cdot3^2=3^3=27 $ so the result is $7$.


How is winter time in Busan, South Korea?

I will travel around early January. I want to know from someone who has been there around this time if it's extremely cold?


HTTP 401 twice before HTTP 200 when serving files

I've built a Javascript web application which is served from Sharepoint (ie. there is no Sharepoint code at all operating on the web app, it's just some HTML/JS being served from a Sharepoint 2010 Document Library)  I'm displaying HTML5 video and sourcing a file from within the same Document Library, this works absolutely fine on Google Chrome, but if I try with Firefox (or with IE9) then every file I source gets denied twice with an HTTP 401 error before it gets returned with HTTP 200.  The upshot of this is that if I have a very simple HTML file (see below) and run it locally then the video plays fine in all browsers, if I upload the HTML and the video to my company's sharepoint server (into a document library) then it won't load in IE or Firefox - but works fine in Chrome!  <html> <body>     <video>         <source src="localvideo.webm" type="video/webm">     </video> </body> </html>   If I change the source element to reference a video file on a different server then it, again, works fine so this must be a problem with the way Sharepoint is serving files. Does anyone have any advice on how to work around this problem? Either in Sharepoint or in JS? There is no chance of me being able to edit anything above a site owner's privileges.


How can I un-vote the comment that I voted it earlier? It seems only possible in the first couple of seconds.


What is the difference between these two object methods in Javascript?

Consider the following code:  function someObj() {     this.someFunction = function() {         console.log('someFunction');     } }  someObj.prototype.foo = function() {     console.log('foo'); }   I can call both like so:  var test = new someObj(); test.someFunction();     // Logs 'someFunction' test.foo();              // Logs 'foo'   How would variable scope be affected here? Is there an advantage / disadvantage to each approach?


If a is a $\mathbb Z / p\mathbb Z$ generator, if $k$ is not a multiple of $p-1$, $a ^ k \not\equiv 1\pmod p$

If $a$ is a $\mathbb Z / p\mathbb Z$ generator, if $k$ is not a multiple of $p-1$, $a ^ k \not\equiv 1\pmod p$.  I don't understand why.  What does "$a$ is a $\mathbb Z / p\mathbb Z$ generator" mean?  Please tell me.


How can I prove this sequence is decreasing?

My problem is how to prove  $$\frac{1+2}{1}  > \frac{1+3+\frac{3^2}{2!}}{1+2} > \frac{1+4+\frac{4^2}{2!}+\frac{4^3}{3!}}{1+3+\frac{3^2}{2!}}>\cdots $$  i am sure that the sequence is decreasing as limit exp(1).  However, the reason why the sequence is decreasing is not evident.  Thanks if you consider this issue and make me relief.


Issue with word-wrap property in HTML code

Does anyone have idea why "word-wrap" not working in below html code?   <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" /><meta name=\"viewport\" content=\"width=341.0px, minimum-scale=1, word-wrap=break-all, maximum-scale=1, user-scalable=no, shrink-to-fit=no\" />HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHello


When I bought new Airpods 2nd gen, the firmware it came with was 1A673. The volume level on my android phone (OnePlus 6T) when connected was quite loud and everything was good.  But when I connected my Airpods to my iPad with iOS 13.1 the firmware on these got updated to 2A364 and then when connected to my android phone, music volume started getting low. I tried with other android phones too.  But the thing is during the phone calls the volume comes out loud but low only on music or videos.  How do I fix this?


Constancy of $c$ from Maxwell's Equations

How do you prove from Maxwell's equations that the speed of light is independent of the motions of the sources that produce the wave?


Is there a reason the Doctor couldn't save Amy and Rory?

I feel like the sad goodbye to Amy and Rory at the end of The Angels Take Manhattan in season 7 was unnecessary. I mean couldn't the Doctor have used River's vortex manipulator to go back to when the Book was published then used the "about the author" description to find their address or even go back about a hundred years and wait in New York and still use the book for their address? I mean he could have saved them if he really wanted to right?


I Dismissed Dogmeat and cant find him anywhere

I dismissed him and told him to go to sanctuary while on the mission to destroy the institute i did this because I had Nick after i did this I could not find him anywhere and I'm on console so I cant use the moveto Command


Why Run-as-Administrator in an administrator user?

As you see below I have two user account on my computer, and both of them have in  administrator group.     I want to run this below program :    When I log in with Abraham and double click on ELEnveloperGui it can't find my dongle that is connected to the computer :    But when I right-click on it and select Run as administrator it find my dongle !!!    Note: I have Windows-7 x64 professional  Q : What is the difference between Abraham and Administrator?     Update : I gave the program Full Permission, but problem still remain!


Oh My Zsh has this lovely feature where you can just type dir-name instead of cd dir-name to access the directory called dir-name.  In my old .bashrc I had a function that overwrites the builtin cd function such that every time I would cd into a directory, ls would be called in that directory.  However, this only works if I explicitly call cd dir-name.  Is there a way to do this in Oh My Zsh such that every time I access a directory by typing its name, ls will be called in that directory?


/etc/sysctl.conf settings do not last after reboot

Version: Ubuntu 16.04.4 LTS 32-bit  I am unable to get settings in /etc/sysctl.conf to stick around after a restart.  Here are the settings I am trying to implement (taken verbatim from sysctl.conf):  kernel.core_uses_pid=1 kernel.dmesg_restrict=1 kernel.kptr_restrict=2 kernel.sysrq=0 net.ipv4.conf.all.log_martians=1 net.ipv4.conf.all.send_redirects=0 net.ipv4.conf.default.log_martians=1 net.ipv4.tcp_syncookies=1 fs.suid_dumpable=0   I've checked /etc/init/procps.conf (which contains essentially nothing) and /etc/init/procps-instance.conf (which does contain the appropriate commands) and have come up empty.  If I use sysctl -p, the settings are loaded properly, but before issuing that command and immediately after a reboot, the commands are not set properly.  Ex:  username@servername:/etc$ sudo sysctl -a | grep sysrq kernel.sysrq = 136 sysctl: reading key "net.ipv6.conf.all.stable_secret" sysctl: reading key "net.ipv6.conf.default.stable_secret" sysctl: reading key "net.ipv6.conf.enp2s0f0.stable_secret" sysctl: reading key "net.ipv6.conf.enp2s0f1.stable_secret" sysctl: reading key "net.ipv6.conf.lo.stable_secret" username@servername:/etc$ sudo sysctl -p net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 kernel.core_uses_pid = 1 kernel.dmesg_restrict = 1 kernel.kptr_restrict = 2 kernel.sysrq = 0 net.ipv4.conf.all.log_martians = 1 net.ipv4.conf.all.send_redirects = 0 net.ipv4.conf.default.log_martians = 1 net.ipv4.tcp_syncookies = 1 fs.suid_dumpable = 0 username@servername:/etc$ sudo sysctl -a | grep sysrq kernel.sysrq = 0 sysctl: reading key "net.ipv6.conf.all.stable_secret" sysctl: reading key "net.ipv6.conf.default.stable_secret" sysctl: reading key "net.ipv6.conf.enp2s0f0.stable_secret" sysctl: reading key "net.ipv6.conf.enp2s0f1.stable_secret" sysctl: reading key "net.ipv6.conf.lo.stable_secret"   I've also checked pm-utils, which is installed, but does not have any settings files in power.d other than 95hdparm-apm.  As my previous statement indicated, laptop-power does not exist in power.d, that issue is irrelevant -- please read the entire post before marking as duplicate.  One more thing I'd like to add, in /etc/sysctl.d, several files are present with a 10- prefix, but the 99-prefixed link to sysctl.conf is in place, so it should run last and the settings should still be set correctly.  I am stumped.  Tried adding a sysctl reload command to crontab as recommended in :  @reboot sleep 60 && sysctl --system   Still no dice.  What am I missing?


Pauli-Exclusion Principle, Why not a force?

I understand the mechanics of the Pauli-Exclusion principle and how it is a common sense idea that a fermion can not occupy the same coordinates, quantum state, as another one.    Why is the Pauli-Exclusion principle not considered a force rather than just a principle?


how can I turn on HDRI for my rendering?

I'm new to blender, so sorry if my question sounds dumb. I was following tutorial, and built this model:  After building it, I was trying to render. Because I'm on mac laptop, so of course the render turn out very shitty.  But the most confusing thing is after this, my viewport became the same low quality as the render image.  My render mode is on Eevee. After receiving answers, I was able to find viewport shading in look dev mode. But in rendered mode, I could not access.


What obstacles does de Broglie's pilot theory have to overcome?

I have been reading through  on pilot wave theory which talks about new evidence in support of Louis de Broglie's concept of pilot theory through experiments showing that the droplet in a double slit experiment goes through one slit and the pilot wave going through both.  In the article, physicists are quoted saying things like     “I think the experiments are very clever and mind-expanding, ... but they take you only a few steps along what would have to be a very long road, going from a hypothetical classical underlying theory to the successful use of quantum mechanics as we know it.” - Frank Wilczek, a professor of physics at MIT and a Nobel laureate   and     “This really is a very striking and visible manifestation of the pilot-wave phenomenon ... It’s mind-blowing — but it’s not going to replace actual quantum mechanics anytime soon.” - Seth Lloyd, a quantum physicist at MIT   The article goes on to talk about how pilot theory is     "more cumbersome than standard quantum mechanics. Some researchers said that the theory has trouble dealing with identical particles, and that it becomes unwieldy when describing multiparticle interactions. They also claimed that it combines less elegantly with special relativity."   Looking into it some myself, it seems that one of the reasons why everyone is not on board is that the pilot wave interpretation gives up locality.  So, what obstacles does pilot theory have to overcome through more research before it can become a more uniformly accepted theory?


Using Elseif Conditional Statement in QGIS Field Calculator?

I am trying to write an ELSEIF conditional statement in QGIS Field Calculator (version 1.8.0). I have used an example I found online:  CASE WHEN val < 0 THEN 'negative'   WHEN val = 0 THEN "neutral'   ELSE 'positive' END   I modified the statement as follows:  CASE WHEN  "GRID_ID"  = 1 THEN 'complete'   ELSEIF  "GRID_ID"  = 2 THEN "in progress'   ELSE 'not started' END   This statement would not run, the Output preview stated Expression is invalid.  The more info stated: Parser Error: syntax error, unexpected COLUMN_REF, expecting WHEN or ELSE or END  If anyone has had this error, what did you do to fix it?


Installing Java 7 in 16.04 and using multiple Java versions

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


Word for something sad and funny at the same time

What's a word for conflicting emotions that are felt at the same time? For example, loneliness, sadness, happiness, being content but also feeling as if something isn't right?  To sum up: What's a word for something that is sad and funny at the same time?


I was working on a LibreOffice Writer document when my computer turned off. No problem there, I booted up, went back into LibreOffice and it gave the option to recover everything. I left the document up on my computer and a family member came by, closed it and hit Don't save. I had never officially saved it yet I believe.  I see that by going to .config/libreoffice/4/user/backup, it looks like I can view LibreOffice documents that are being "autosaved" until I officially save them (or "don't save" them). That leads me to believe it may be possible to recover this document since it was at least autosaved there before. Would I just go to advanced options in testdisk, and from there select the large partition (I only have one SSD), and then read through the list? Will testdisk pay attention to these autosaved LibreOffice documents that were temporarily in a backup folder until the user decided to oficially save?


Many-worlds: Where does the energy come from?

With regard to the theory that each time a wave function collapses the universe  so that each possible outcome really exists - where does all the energy required to create all the new universes come from?


I'm unable to install, or update anything using the terminal

There is a problem when I try to install something using the terminal using the sudo command. The commands I'm using are sudo apt-get install nmap.  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  linux-generic-hwe-18.04 : Depends: linux-image-generic-hwe-18.04 (= 5.0.0.32.89) but 5.0.0.23.80 is to be installed                            Depends: linux-headers-generic-hwe-18.04 (= 5.0.0.32.89) but 5.0.0.23.80 is to be installed  nmap : Depends: liblinear3 (>= 2.01+dfsg) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).    When I try to run the apt --fix-broken install command it says:  E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?    Any fixes?


What does abstraction actually mean in java?

abstract class Bank{       abstract int getRateOfInterest();     }      class SBI extends Bank{       int getRateOfInterest(){return 7;}     }   class PNB extends Bank{       int getRateOfInterest(){return 8;}     }      class TestBank{       public static void main(String args[]){         Bank b;       b=new SBI();       System.out.println("Rate of Interest is: "+b.getRateOfInterest()+" %");         b=new PNB();       System.out.println("Rate of Interest is: "+b.getRateOfInterest()+" %");       } }       So what I read in the books and online is: "Abstraction is a process of hiding the implementation details and showing only functionality to the user."  So my question is, If I write implementation in Bank class, will it not be hidden?, can user see that implementation?  What is the actual mean of 'hiding' here?


pgf-pie: How can I put the percentage values in the legend?

In the pie chart below, how can I move the percentage numbers out of the chart, and put them in the legend on the right, with the names? I'm using the  package.  \begin{figure}[H] \begin{tikzpicture} \centering \pie [text = legend] {25.75/Transformator , 12.59/aaaaaa,11.18/aaaaa,9.91/HV aaaaa, 9.10/aaaaaC, 7.99/aaaaa,7.47/aaa,5.74/aaaaaa4.95/aaaaa,4.19/aaaa680uf,1.06/aaaaaa}  \end{tikzpicture} \caption{pie chart.} \end{figure}


Automatically allow user1 in group1 to edit file with owner user2 and group user2

I am confused with groups in Linux.  Considering that user1 is in both groups user1 and user2 (and vice versa):  user1> id user1 uid=1000(user1) gid=1000(user1) groups=1000(user1),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),50(staff),113(lpadmin),130(sambashare),131(vboxusers),1001(user2)  user1> id user2 uid=1001(user2) gid=1001(user2) groups=1001(user2),0(root),1000(user1)   I do not understand why user1 cannot edit a -rwxrw-r-- file owned by the user2 and group user2:  user1>ls -l hey.xml -rwxrw-r-- 1 user2 user2 8385 May 24 11:39 hey.xml user1>echo "fails" >> hey.xml  bash: hey.xml: Permission denied   but it works when I change the group:  user1> sudo chgrp user1 hey.xml  user1> echo "works" >> hey.xml    Once this question is hopefully answered, what can I do to always allow user1 to read-write files in that user2 group? Thanks


LRU cache in Java with Generics and O(1) operations

This is a question that comes up a lot in job interviews. The idea is to define a data structure instead of using Java's built in LinkedHashMap.  An LRU cache deletes the least recently used entry to insert a new one. So, given the following scenario:   A - B - C - D - E   Where A is the least recently used item, if we were to insert F, we need to remove A.  This can be easily implemented if we keep a HashMap with the cache entries by (key,value) and a separate list that contains the elements' key and time of use. However, we would need to query the list to find the least recently used item, with a potential O(n) time complexity.  How can this structure be implemented in Java for Generic objects and O(1) operations?  This is different from the possible duplicate in that it focuses on efficiency (O(1) ops) and implementing the data structure itself, not extending Java's.


Algorithm based Combinatorics problem IMO style

The problem is described in the picture, the solution is suppose to be a constructive proof, so you need to find an algorithm that works regardless of stuff like running time. Any help would be grate I can’t solve this and I’ve trying for a while EDIT: My main direction was changing the sign on every raw with negative sum, now every raw is complete and the sum of all entries is nonnegative (since the sum of all raws is now nonnegative)


Can't open Software Center due to a malformed line

When I try to open Software Center, the icon blinks, but nothing happens. When I type sudo software-center in my terminal I get:  2012-05-07 12:57:18,385 - softwarecenter.ui.gtk3.em - INFO - EM's: 17 15 21 Traceback (most recent call last):   File "/usr/bin/software-center", line 151, in <module>     app = SoftwareCenterAppGtk3(datadir, xapian_base_path, options, args)   File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 213, in __init__     self.cache.open()   File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 209, in open     self._cache = apt.Cache(GtkMainIterationProgress())   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 93, in __init__     self.open(progress)   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 140, in open     self._list.read_main_list() SystemError: E:Malformed line 54 in source list /etc/apt/sources.list (dist parse)   I have Ubuntu 11.10. I am new to Linux.  Appreciate your help!!!


Notepad++ alternative with the ability to search in folder

I am looking for an alternative program on macOS, like Notepad++ with two abilities:   To write and edit program code,   and   Search specific string in a folder full of text files.


I've read and seen all the questions and the directions say that you have to click and drag the tab used to create a new window over the window until an arrow appears and it will remove the view window. BUT I KEEP TRYING AND NOW I HAVE OVER TWENTY WINDOWS OPEN I NEEEEEDDDD HEEELLPPPP! can someone tag a youtube video or make a better description of how in hell im supposed to close these lol.


My system was just updated with linux image 3.19.31. When it was rebooted, the system hang at the login screen and did nothing.  How can I remove this image? It has a major bug in it.


User profile shows "Earlier this month" for posts one year ago on Android app

I was checking a user profile (not mine) on the Android app v1.0.51, and noticed that posts from a year ago were tagged as "Earlier this month". When I checked such a post, I saw they were from December 2013.  It doesn't really matter which users feed I was checking in the app, any profile which goes 1 year back and has an activity in the Profile will show Earlier this month for last year February for example (I take February because it is February at the moment)    This bug still remains in the current version of the android app, as can be seen from the screenshot below (having post from June 2016 and earlier this month from may 2016 (with version 1.0.89)


I'd like to add a link to the glossary in my main text.  See the \nameref{XXX} on page \ref{XXX}.   So far I couldn't find out the name of the label of the glossary. There should be one, since the link in my TOC works. How can I find out the name of the label?


how to overwrite app.css styles with lightning components

I have read different posts that with winter 17 ,custom lightning components will have precedence for styling over app.css styling , however i am still facing issues where my modal hides behind the salesforce tab menu , however the modals that salesforce opens up  -   for example when you go to case tab and click new case - salesforce is able to open the modal window way above background window for the reason that it is able to override css element deskop to override:hidden ,   but my modal isnt able to do so , i have used below ltng:require tag where SLDS222 is zip CSS given by LDS , and attached is the screenshot of issue i am facing , any ideas on how to override and get salesforce default modal window      <ltng:require styles="/resource/SLDS222/assets/styles/salesforce-lightning-design-system-ltng.min.css" />


How can I (really) change the Windows 10 system language without doing a clean install?

I bought a Surface Pro 3 with Norwegian Windows 8.1 pre installed, since upgraded to Windows 10. I want US English Windows. As I have found out the hard way, changing locale and input language is not enough, now I'm left with something in between, where 90% is in English (the language I want) and the rest in Norwegian (Windows update packages, boot sequence, etc.). Among other things, this prevents Cortana from working properly, and effectively blocks me from receiving Insider builds. I am aware that a clean install from a English iso would solve my problem, but this is not practical for a number of reasons. Any ideas how to achieve this?


#include <iostream> using namespace std;  int main() {     long long a = 3400000000000000000;     float b = 3400000000000000000;     double c = 3400000015362424832;      if (a == b && b == c && c != a) {         cout << "true" << '\n';     } else {         cout << "false" << '\n';     }     return 0; }   i don't know why that if-condition is true.... According to Syllogism, this condition is false. i think the reason is C++ operator principle... but i cant search this problem...


I have joined the Meta Stack Exchange community. Although I have not received any .  How can I get the bonus?


In PostgreSQL is the row ordering preserved in functions and CTEs?

In SELECT statements the ordering of the returned rows is not guaranteed if the ORDER BY clause is not specified. This is true for "normal" tables.  Is this also true for ordered tables generated using WITH expressions (CTEs)? Ordered tables returned by functions? I assume that not. Is this somewhere explicitly stated in the documentation?  Specifically, can I assume that this (more efficient) query:  WITH ordered AS ( SELECT * FROM table1 ORDER BY col1 ) SELECT sum(col2) result FROM generate_series(0,50) nr, LATERAL (SELECT * FROM ordered LIMIT 100 OFFSET nr*100) a GROUP BY nr ORDER BY nr;   will be equivalent to this query:  SELECT sum(col2) result FROM generate_series(0,50) nr, LATERAL (SELECT * FROM table1 ORDER BY col1 LIMIT 100 OFFSET nr*100) a GROUP BY nr ORDER BY nr;     For functions:  If I have such function:  CREATE FUNCTION do_sort(name text[]) RETURNS TABLE(name text) AS $$ SELECT name.name FROM unnest($1) name ORDER BY name.name ASC; $$ LANGUAGE SQL IMMUTABLE;   can I make such wrapper function and assume that the array will always be correctly sorted?  CREATE FUNCTION do_sort_returns_array(name text[]) RETURNS text[] AS $$ SELECT array_agg(name) FROM do_sort($1); $$ LANGUAGE SQL IMMUTABLE;


Process for requesting features for a specific SE site

What is the process for requesting a feature (that already exists on some SE sites) for a site that doesn't yet have it?  I'd expect the default forum would be a question on the site's own meta, but I don't know if the moderators there would necessarily have the power to effect a requested change if they wanted to.  As a concrete example,  on meta.puzzling is asking for code syntax highlighting (as already exists on SO) for the puzzling site - would such a request need to be raised on meta.SE to be seen by someone capable of considering and delivering that change?  Apologies if this is covered by existing documentation somewhere - I couldn't find it anywhere but I'd be very happy to be pointed in the right direction :).


Dual Canadian and British citizen - healthcare coverage in the UK?

I want to know if I am entitled to medical assistance in the UK while visiting for 3 weeks in June. I am travelling on my Canadian passport since my UK one is outdated.


What is the logic/rationale behind the vector cross product?

I don't think I ever understood the rationale behind this.  I get that the dot product $\mathbf{a} \cdot  \mathbf{b} =\lVert \mathbf{a}\rVert \cdot\lVert \mathbf{b}\rVert \cos\theta$ is derived from the cosine rule. (Do correct me if I'm wrong.)  However, I never really understood why $\mathbf{a} \times  \mathbf{b} =\lVert \mathbf{a}\rVert \cdot\lVert \mathbf{b} \rVert \sin\theta$. Is there a proof for this?  In addition, how does the vector cross product lead to orthogonal vectors?  I remember learning that they do and I know how to solve equations using the respective formulas, but I never got why is it so.


Are human chromosomes connected or separate molecules?

Do the 46 human chromosomes form a single unbroken DNA helix?  Or is it rather that a human's genome consists of 46 disconnected helices?    If it is the former, does the common numbering scheme for the chromosomes have any correlation to their actual ordering in the one large strand?  If is the latter, is there a convention on how the chromosomes are ordered in genomic datasets?  Also, is there a clear understanding of how sister chromosomes "find" each other in Meiosis I?  Generally, during periods when Mitosis/Meiosis are not occurring,  what's a good physical picture for how the chromosomes are physically arranged (e.g. a bowl of 46 spaghetti noodles, or maybe the sister chromosomes always stay close together, etc)  thanks!


naming a property with inbuilt definition. Invalid token in class

I created a property:  public string fixed { get; set; }   It appears "fixed" has an inbuilt definition. So it doesnt allow me to, says invalid token. But I need to create it with the same name. Is there a way, please help.


I'm trying to share my steam library but Valve seems to have updated their interface without updating their docs.  Every Tutorial I look at features the settings window with a horizontal tab bar, mine has a vertical list and no "Authorize" button.    I've been on the Beta Channel for years and the client updates regularly.    Has anyone been able to enable family sharing through the new interface?  Edit: I am logging into both accounts from the same PC.


Is there a reason the British omit the article when they "go to hospital"?

Why do British speakers omit the article in constructions like "go to hospital" or "go on holiday"? Pretty much all American speakers would rephrase those as "go to the hospital" and "go on a holiday", I think. Is there any good reason, or forgotten sense behind those words that might explain why the articles are ommitted?  Are there other common constructions other than those two that the British use that drop the article?  EDIT: I just realized per Kosmonaut's comment that Americans do much the same thing with a few nouns, so this isn't all that special.   Do grammaticists designate nouns that can have their article dropped with anything, i.e. do they have anything in common?


I am trying to prove that the polynomial $P = X^5 + X^2 + 1 ∈ F_2 [X]$ is irreducible.  What I did:  I showed that $X^2+X+1∈F_2[X]$ is the only irreducible polynomial of degree 2. Is there a way to use this to prove that $P$ is irreducible without checking all the polynomial products giving polynomials of degree $5$?  Many thanks!


Why did Ser Gregor do this in Season 8 Episode 5, "The Bells"?

Why did he      kill Qyburn?   Was that just for stepping beside him and commanding him to listen to Cersei? It felt out of character for such an obedient beast.


How to get Ubuntu system with ntpd receiving data from GPS through USB and set clock accuracy?

I have a hardware which is Ublox EVK-M8T kit, with the GPS antenna.  I also install the gpsd and ntp in the Ubuntu system.  I check to make sure all are working probably, such as:    turn of daemon os:  sudo service gpsd stop  Remove any sockets gpsd might have left behind:  sudo rm /var/run/gpsd.sock  make sure there is no instance of gpsd running:  sudo killall -9 gpsd ntpd  find the current USB devices connected to the RPI:  ls /dev/ttyACM0  check that your device is emitting data, and save MNEA message to logfile:  gpsmon /dev/ttyACM0 -l logfile  and also work with:   cgps -s xgps  reconfiguration file:  sudo service ntp reload  see status overtime, show us all the clocks and what times are?  sudo ntpq -p  check ntp status:   service ntp status  change the server:   sudo vim /etc/ntp.conf  and:  ntpdate -d 192.168.1.231    ....  Those are steps that I was trying to set up gpsd and ntpd, but I still do not understand, why do I have to do that?  How can I get an get Ubuntu system with ntpd receiving data from GPS through USB and set clock accuracy?  Thank you.


How do I protect Python code from being read by users?

I am developing a piece of software in Python that will be distributed to my employer's customers. My employer wants to limit the usage of the software with a time restricted license file. If we distribute the .py files or even .pyc files it will be easy to (decompile and) remove the code that checks the license file. Another aspect is that my employer does not want the code to be read by our customers, fearing that the code may be stolen or at least the "novel ideas". Is there a good way to handle this problem?


I was thinking about this problem today. If $p$ divides $n$, then $p-1$ must divide $\phi(n)$. But $p-1$ is even for all primes greater than $2$, so must $\phi(n) = 2$ - the only even prime? I feel like this argument is shaky and not very rigorous!


Flitwick's office: thirteenth window from the right of the West Tower, looking east or west?

In PoA Dumbledore tells Hermione and Harry that Flitwick's office is located on the seventh floor at the thirteenth window from the right of the west tower,but is it the right of the tower itself (looking west) or the right of the observer (looking east)?     “Now, pay attention,” said Dumbledore, speaking very low, and very   clearly. “Sirius is locked in Professor Flitwick’s office on the   seventh floor. Thirteenth window from the right of the West Tower. "


How do I ignore .DS_Store in my untracked files?

I am new to Git, and every time I work with it, I always get this annoying .DS_Store in my untracked files. I am assuming that is where my working directory is.   I have tried searching the answer on Stack Overflow, but only found the answer on how to remove it from the repository, not from the list of untracked files.  How can I tell Git to completely ignore .DS_Store files and never list them as untracked files?


If G is a finite group and N is a normal subgroup in G , then can we say G $\cong$ G/N $\times$ N always? Is it true for like normal nilpotent or normal solvable or any such special classes.   I couldn't help but ask for it. What if G is infinite? Please tell me if you can, the concept I am skipping here. If you can avoid using exact sequences, It will be much clearer to me. I have seen an answer which still is not so clear to me. Thanks!


float point multiple and divident precision problem

I'm facing float point precision problem in my C++ code  given double d = 32.4;  d / 0.01 == 3240.0;   gives true, while   d / 0.1 == 324.0   gives false.  But if I multiple by 10 and 100 then the result are both true.  Since 32.4, 324 and 3240 can all be represented by 64bit double without any precision loss, so this result is quite confusing to me. (I'm not very familiar with multiplier and divident operation in float point)  In my use case, I will do some conversion among different scale, by simpliy multiplying or dividing something like 0.1, 0.01, 0.05. I mean, I don't require very high precision, my operands are usually less than 6 decimals, which can be represent in 64bit double without precision loss, so I want to get consistent result. I have a guess: should I always use multiplying instead of dividing in my use case?