I would like to center a figure made on Tikz. This figure has a specific size which is wider than \textwidth,  and it needs to be centered. All options I see use \resibox or \makebox to center the figures. But I don't want to change the figure size. Are there any option or command to allow this?   Thanks very much in advance. Kind regards,  German  === SOLUTION == As Mr @David Carlisle commented below, the solution is uncomment the \makebox and set the scaling to 0pt as follow:  \begin{figure}[h!] \centering   \newlength\figureheight  \newlength\figurewidth  \setlength\figureheight{6cm}  \setlength\figurewidth{1.2\linewidth} \begingroup     \fontsize{8}{\baselinestretch}\selectfont     \makebox[0pt][c]{     \input{VoltFRFFreq.tikz}     %} \endgroup \caption{A plot of a sphere} \label{fig.freq} \end{figure}   Thanks again to all people!!  -- EDIT's --- P.D.-I forgot to mention I use XeLaTeX, I hope it helps. Kind regards, P.D.D- The code is  \begin{figure}[h!] \centering   \newlength\figureheight  \newlength\figurewidth  \setlength\figureheight{6cm}  \setlength\figurewidth{1.2\linewidth} \begingroup         \fontsize{8}{\baselinestretch}\selectfont         %\makebox[\figurewidth][c]{     \input{VoltFRFFreq.tikz}     %} \endgroup \caption{A plot of a sphere} \label{fig.freq} \end{figure}

I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the rightmost part spills into the right margin too much. I'd like to center the figure, so that it will exceed the \textwidth equally on both sides.


I have a python script that starts a process using multiprocessing Process class. Inside that process I start a thread with an infinite loop, and I simulate an exception on the main thread by doing exit(1). I was expecting exit to kill the process, but it doesn't, and the main thread reports it as alive.  I have tried with both raising exception and calling exit, but none work. I have tried waiting for the process to finish by waiting for is_alive, and by calling join. But both have the same behavior.  from multiprocessing import Process from threading import Thread from time import sleep   def infinite_loop():     while True:         print("It's sleeping man")         sleep(1)  def start_infinite_thread():     run_thread = Thread(target=infinite_loop)     run_thread.start()     exit(1)  def test_multi():     x = Process(target=start_infinite_thread)     x.start()     sleep(5)     assert not x.is_alive()   I am expecting the process not to be alive, but the assert fails.

In the  it says:     A thread can be flagged as a "daemon thread". The significance of this   flag is that the entire Python program exits when only daemon threads   are left. The initial value is inherited from the creating thread.   Does anyone have a clearer explanation of what that means or a practical example showing where you would set threads as daemonic?  Clarify it for me: so the only situation you wouldn't set threads as daemonic, is when you want them to continue running after the main thread exits?


Question: For each $k \in \mathbb{Z}^{+} \cup \{0\}$, let $D_k = \{n \in \mathbb{Z}^{+}\cup\{0\}: k = mn \text{ for some } m \in \mathbb{Z}^{+}\cup\{0\}\}$.  Write down each of the following sets in roster notation:  $\{n \in \mathbb{Z}^{+} \cup \{0\}:n \in D_k \text{ for some } k \in \mathbb{Z}^{+}\cup\{0\}\}.$  $\{n \in \mathbb{Z}^{+}\cup \{0\}: n \in D_k \text{ for all } k \in \mathbb{Z}^{+}\cup\{0\}\}.$   My answer for $1.$ is the set of non-negative integers, but there are infinite elements, so how do I represent them  in roster set notation? Can I just write $\{0, 1, 2, 3, 4, 5, \dots\}?$ My answer for $2.$ is $\{1\}$. But, I am not sure if my answers are correct? Thank you.

For each 𝑘 ∈ ℤ⩾0, let 𝐷𝑘 = {𝑛 ∈ ℤ⩾0 ∶ 𝑘 = 𝑚𝑛 for some 𝑚 ∈ ℤ⩾0}. D1 = {1} D2={1,2} D3={1,3} D4={1,2,4} D5={1,5} Find the following:(write in roster notation) 1.{𝑛 ∈ ℤ⩾0 ∶ 𝑛 ∈ 𝐷𝑘 for some 𝑘 ∈ ℤ⩾0}  {𝑛 ∈ ℤ⩾0 ∶ 𝑛 ∈ 𝐷𝑘 for all 𝑘 ∈ ℤ⩾0}.  My attempt: 1.{1,2,3,4.....} 2.{1} Is my attempt for question 1 correct? I could not think of a more convincing answer and if my answer happens to be correct, can anyone else explain how to derive the answer for both part 1 and 2. Thanks!


I'm trying to export sentinel-1 bands with this code in Google Earth Engine but I have recently this error. I didn't have this problem in the past. So here is the code.  The code:  var start = new Date("02/05/2015"); var end = new Date("03/05/2015");    var s1 = ee.ImageCollection('COPERNICUS/S1_GRD')       .filterDate(start, end)       //.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))       // Filter to get images collected in interferometric wide swath mode.       //.filter(ee.Filter.eq('instrumentMode', 'IW'))       .filterBounds(geometry);  var count = s1.size().getInfo();  for (var i = 0; i < count ; i++) {   var img = ee.Image(s1.toList(1, i).get(0));   var geom = img.geometry().getInfo();   Export.image(img, img.get('system:index').getInfo(), {     'scale': 20,     'crs': 'EPSG:4326',     'region': geometry.toGeoJSONString() }); } s1 = s1.toUint16();  Export.table(s1,'Sentinel1_csv');  print(Chart.image.seriesByRegion(s1, geometry, ee.Reducer.mean(),'VH') .setOptions({title: 'VH mean value over time on R3'}));

I'm trying to export a tiff map and gave the following error:     Error: Exported bands must have compatible data types; found   inconsistent types: Float64 and Float32.   How can I solve this?  Code:    //Choose country using GEE Feature Collection  var region = ee.FeatureCollection('ft:1tdSwUL7MVpOauSgRzqVTOwdfy17KDbw-1d9omPw').filterMetadata('Country', 'equals', 'Portugal');  //Add region outline to layer ‐ for selected countries  Map.addLayer(region,{}, 'Portugal');  // image collection pre 11/10/2017  var lt8_pre = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')   .filterBounds(region)    .filterDate(ee.Date("2017-08-01"),ee.Date("2017-10-11"));    Map.addLayer(lt8_pre, {bands: ['B4', 'B3', 'B2'],min: 1000, max: 1500}, 'image L8 pre');  var lt8_ndvi_pre = lt8_pre   .map(function(img){     return img.addBands(img.normalizedDifference(['B5', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2));   });  // Create an NBR image using bands the nir and red bands (6 and 4) var lt8_nbr_pre = lt8_pre   .map(function(img){     return img.addBands(img.normalizedDifference(['B7', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2));   });  print(lt8_ndvi_pre); print(lt8_nbr_pre);  // image collection pos 11/10/2017  var lt8_pos = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')   .filterBounds(region)    .filterDate(ee.Date("2017-10-18"),ee.Date("2018-02-10"));   Map.addLayer(lt8_pos, {bands: ['B4', 'B3', 'B2'], max: 1000}, 'image L8 pos');  var lt8_ndvi_pos = lt8_pos   .map(function(img){     return img.addBands(img.normalizedDifference(['B5', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2));   });  // Create an NBR image using bands the nir and red bands (6 and 4)   var lt8_nbr_pos = lt8_pos   .map(function(img){     return img.addBands(img.normalizedDifference(['B7', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2));   });   print(lt8_ndvi_pos); print(lt8_nbr_pos);  //Clip to Specified Region var NDVI_pre = lt8_ndvi_pre.mean().clip(region); var NDVI_pos = lt8_ndvi_pos.mean().clip(region); var NBR_pre = lt8_nbr_pre.mean().clip(region); var NBR_pos = lt8_nbr_pos.mean().clip(region);  Map.centerObject(region, 10); var ndvi_viz = {min:-0.8, max:1, palette:'000000,00FF00'}; Map.addLayer(NDVI_pre.select('nd'), ndvi_viz, "LT8 NDVI mean pre 11/10"); Map.addLayer(NDVI_pos.select('nd'), ndvi_viz, "LT8 NDVI mean pos 11/10");  // Display the NBRpost var nbr_viz = {min: -1, max:1, palette: ['FFFFFF','CC9966','CC9900','996600', '33CC00', '009900','006600','000000']}; Map.addLayer(NBR_pre.select('nd'), nbr_viz, "LT8 NBR mean pre 11/10"); Map.addLayer(NBR_pos.select('nd'), nbr_viz, "LT8 NBR mean pos 11/10");  //Calcule dNBR and dNDVI var dNBR = NBR_pre.subtract(NBR_pos); var dNDVI = NDVI_pre.subtract(NDVI_pos);   //Map.addLayer(dNBR,nbr_viz, "dNBR"); Map.addLayer(dNDVI.select('nd'), ndvi_viz, "LT8 dNDVI"); Map.addLayer(dNBR.select('nd'), nbr_viz, "LT8 dNBR");  Export.image.toDrive({       image: NBR_pos,       description: 'NBR_pos',       scale: 30,       region: Pt,       maxPixels: 278466375,     });


This again is another strange decision on Sauron's part, we know from Grishnakh and the fact Legolas killed a fell beast that there is at least one Nazgul on the eastern side of the Anduin, possibly more. Now in both Saruman and Sauron's case they know that a halfling currently holds the one ring, so they naturally think Merry or Pippin has it, as their the only halflings the Uruk-hai, northerners and possibly Mordor orcs come across at Amon Hen.  Now from my personal point of view it is likely Sauron learnt from the orcs on the eastern bank of the Anduin or merely guessing (we know he finds Saruman easy to predict) that Saruman has sent his own band of merry Uruk-hai to capture and deliver the hobbits to Isengard, so himself sends Grishnakh and maybe a few other Mordorians he make sure Ugluk actually takes the hobbits east. Grishnakh himself learns that Ugluk represents the white hand and out numbers him by a lot so Grishnakh then slumps off for a bit and returns with 40 Mordorians with him.  Now why i find this so strange is down to the fact Sauron risks letting a rival having the ring (from their view, we know Frodo in fact has the ring) by sending an orc messenger who is heavily outgunned, even though he has at least one nazgul on the eastern bank of the Anduin ( personally i think there is more than one waiting). Now the main argument against myself is that Grishnakh reveals the winged Nazgul of forbidden in showing themselves across the Anduin, but we know they could cross in secret and use horses instead of the giant fellbeast.  So why does Sauron send a lackey instead of an actual power to get the ring?

In the movies, the pack of Uruk-Hai capture Merry and Pippin, and are bringing them back to Saruman as quickly as possible.  Why didn't they use Wargs to carry the Hobbits instead of packing them on their backs?    Or, better yet, why didn't the Nazgul fly down and take them on their Fell Beasts?


Currently I have a XAMPP server and MySQL database related to it. The database has some data that has superscript charactors such as ™. I used some form to insert such data into database. In database it has been showing as â„¢. But when I query, then it shows correctly as ™ in the HTML page. My Issue I created the same database in another XAMPP server and transferred data by exporting from original MySQL database and import to new MySQL database. All data transferred correctly. But this time, when I query the special charactor and showed in HTML page, it is not showing the superscript charactor as ™, instead it shows as â„¢. When I export data, I used utf-8 too  But when I tried to add a new data with ™ in it by using query into the new MySQL database and such added data is showing correctly as ™ instead of â„¢. But those imported data is still not showing correctly in HTML page. I tried to add mysqli_set_charset($conn,“utf8”) in the connection file. But it is not solving the issue. Does anyone know why this way?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


In socratica's  video (which should be required for every abstract algebra class), she is explaining that a motivation for modules as rings allow you to do things that you can't do with fields. If you have a ring with an ideal $I\triangleleft R$ where M is an R module you can create an R/I quotient ring. Why can't you do this with a field?

$F$ is a field. I consider that if Quotient ring of $F $by $N$ exists, then it would be zero ring or isomorphic to $F$.  $F$ is field, so it is ring. Suppose that $N$ is an ideal of ring$F$. And consider Quotient ring of $F$ by $N$.   If $N$ is zero set, then $F/N$ is equal to $F$ Otherwise N contains nonzero elements. And a Quotient Ring <$F/N$,+,•> can be a field.  That is my ideal. Please give me idea How to think more here.


I have a task that need to list all the plain text files in a folder that contains plain text files and binary files, without knowing the file extension. I have been doing lots of google search but still not able to find the answer. any hints ? Thanks.

Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.  Assumption: The browser figures out which application/viewer to use by the mime-type (content-type?) header in the HTTP response.  Based on that assumption, in addition to the bytes of the file, you also want to save the MIME type.  How would you find the MIME type of a file? I'm currently on a Mac, but this should also work on Windows.   Does the browser add this information when posting the file to the web page?  Is there a neat python library for finding this information? A WebService or (even better) a downloadable database?


I'm trying to find email within text that is being followed by a key word 'domain' preg_match_all("/domain.+\b([a-z0-9\-]+\.[a-z]{2,3})/im", $input_lines, $output_array);  my input data is   here is some text capture this domain hi-there-welcome.co and this domain should be captured yes90well.com but not this link nolink.com but not this line of no domain on it   I should be able to capture hi-there-welcome.com and yes90well.com

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


Which is the standarized way of writing an XML? is it  <MODEL_NUMBER></MODEL_NUMBER>   or  <MODELNUMBER></MODELNUMBER>   Thanks !

Is there any standard, de facto or otherwise, for XML documents? For example which is the "best" way to write a tag?  <MyTag /> <myTag /> <mytag /> <my-tag /> <my_tag />   Likewise if I have an enumerated value for an attribute which is better  <myTag attribute="value one"/> <myTag attribute="ValueOne"/> <myTag attribute="value-one"/>


We want to proove that:      If $p_1,...,p_n$ are positive, distinct, prime numbers then   $\sqrt{p_1\cdots p_n} \notin \Bbb{Q}$.   Let's assume that $\sqrt{p_1\cdots p_n} \in \Bbb{Q}$. Then, $\exists (a,b)\in \mathbb{Z^*\times Z^*}:\sqrt{p_1\cdots p_n}=\frac{a}{b}$ with $\gcd (a,b)=1.$ So, $a^2=p_1\cdots p_n \cdot b^2. $ But how do we continue? Is this technique right or should we follow something different?  PS: This is a part  proof, and I would like to discuss it.  Thank you.

It is well known that $\sqrt{2}$ is irrational, and by modifying the proof (replacing 'even' with 'divisible by $3$'), one can prove that $\sqrt{3}$ is irrational, as well.  On the other hand, clearly $\sqrt{n^2} = n$ for any positive integer $n$.  It seems that any positive integer has a square root that is either an integer or irrational number.        How do we prove that if $a \in  \mathbb N$, then $\sqrt a$ is an integer or an irrational number?      I also notice that I can modify the proof that $\sqrt{2}$ is irrational to prove that $\sqrt[3]{2}, \sqrt[4]{2}, \cdots$ are all irrational.  This suggests we can extend the previous result to other radicals.        Can we extend 1? That is, can we show that for any $a, b \in \mathbb{N}$, $a^{1/b}$ is either an integer or irrational?


Points2one plugin is not compatible with QGIS 3.4.4. It's quite useful for our works related to forestry. Is there any other substitute plugin or new upgrade version of points2one plugin?

I downloaded the points2one plugin and tried many times to connect points to a line, but it never works.  Is there something that I set wrong?      I tried the answer,but it has been running 10 mins, and does nothing, so should I wait for it?


I'm using abntex2 as my document class, which extends the Memoir package. In this numbering scheme, the default is that the first section, subsections etc be 0.1, 0.2, etc. How can I change that, so that my section, subsection etc behaves as 1.1, 1.2, etc., as is in article? MWE: %%%%%%%%%%%%%%%%%%%%%%%%%%%% % !TeX TS-program = pdflatex  \documentclass[12pt,a4paper]{abntex2} % Use A4 paper with a 12pt font size - different paper sizes will require manual recalculation of page margins and border positions  %%%%%%%%%%%% ----------- PACOTES/PACKAGES ----------- %%%%%%%%%%%%%%  \usepackage[utf8]{inputenc} \usepackage{lastpage} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{lipsum} \usepackage{graphicx} \usepackage{textcomp} \usepackage{microtype}          % para melhorias de justificação \usepackage{morefloats}         % permite mais floats \usepackage{parskip}            % espaçamento entre os parágrafos   \usepackage[brazil]{babel}      % idiomas \usepackage{listings} \hypersetup{   pdftitle={\@title},    pdfauthor={\@author},   pdfsubject={Modelo de artigo científico com abnTeX2},   pdfcreator={LaTeX with abnTeX2},   pdfkeywords={abnt}{latex}{abntex}{abntex2}{atigo científico},    colorlinks=true,              % false: boxed links; true: colored links   linkcolor=blue,           % color of internal links   citecolor=blue,               % color of links to bibliography   filecolor=magenta,            % color of file links   urlcolor=blue,   bookmarksdepth=4 } \makeatother  % --- % Pacotes de citações % --- \usepackage[brazilian,hyperpageref]{backref}     % Paginas com as citações na bibl \usepackage[alf]{abntex2cite}   % Citações padrão ABNT % ---  \renewcommand{\backrefpagesname}{Citado na(s) página(s):~} % Texto padrão antes do número das páginas \renewcommand{\backref}{} % Define os textos da citação \renewcommand*{\backrefalt}[4]{   \ifcase #1 %   Nenhuma citação no texto.%   \or   Citado na página #2.%   \else   Citado #1 vezes nas páginas #2.%   \fi}% % --- % O tamanho do parágrafo é dado por: \setlength{\parindent}{1.3cm}  % Controle do espaçamento entre um parágrafo e outro: \setlength{\parskip}{0.2cm}  % tente também \onelineskip  % Espaçamento simples \SingleSpacing   %%%%%% HEADERS  <<<<<<<<<<<<<< \usepackage{nicematrix} % <<<< added for an easy  table \usepackage[datesep=/,useregional=numeric]{datetime2} %<<<<< added format date \DTMsetdatestyle{ddmmyyyy}  \usepackage{fancyhdr} % Required for header and footer configuration \renewcommand{\headrulewidth}{0pt}  \fancypagestyle{firstpagestyle}{% to use only in the first page   \fancyhf{}% Clear default headers and footers   \input{header-footer.tex} }%%%%%% firstpagestyle ends  \begin{document} % Seleciona o idioma do documento (conforme pacotes do babel) %\selectlanguage{english} \selectlanguage{brazil}  % Retira espaço extra obsoleto entre as frases. \frenchspacing    \section{Secção numérica} \lipsum[0] \section{Secção numérica 2} \lipsum[1]  \end{document}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I am using abntex2 to write my document and, for some reason unknown to me, the first section is marked with 0.1, instead of 1, the second, with 0.2 instead of 2 and so on. Here's a MWE:  \documentclass[brazil,sumario=tradicional]{abntex2} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{wrapfig} \usepackage{graphicx} \usepackage[alf]{abntex2cite} \usepackage[brazilian,hyperpageref]{backref}  \begin{document}  %\renewcommand\contentsname{Índice}  \thispagestyle{empty}  \begin{center}  UNIVERSIDADE FEDERAL DE SANTA CATARINA  CENTRO TECNOLÓGICO   DEPARTAMENTO DE ENGENHARIA DO CONHECIMENTO  \vspace{0.3cm}  Franciele Daltoé  \vspace{8.2cm}  \begin{Large}     \textbf{Avaliação e Aprendizagem: \\ métodos diferenciados de avaliação na disciplina de matemática} \end{Large}  \vspace{6.7cm}  Florianópolis  2015  \end{center}  \newpage  %\thispagestyle{empty}  \begin{center}  UNIVERSIDADE FEDERAL DE SANTA CATARINA  CENTRO TECNOLÓGICO   DEPARTAMENTO DE ENGENHARIA DO CONHECIMENTO  \vspace{0.3cm}  Franciele Daltoé  \vspace{6.5cm} \begin{Large}     \textbf{Avaliação e Aprendizagem: \\ métodos diferenciados de avaliação na disciplina de matemática} \end{Large} \end{center}  \begin{flushright}  \vspace{1cm}  \parbox{0.5\linewidth}{Projeto apresentado ao Curso de Licenciatura em Matemática como requisito para conclusão da disciplina Projetos Interdisciplinares I.}  \end{flushright}  \vspace{5.2cm}  \begin{center}  Florianópolis   2015 \end{center}  \newpage  \thispagestyle{empty} \tableofcontents  \newpage  \section{Introdução}  \end{document}   There is a lot more text below, but that already shows what the problem is. What could be the error in the code?


In the Silmarillion The Sun and Moon are actually Maia bearing lamps, Arien and Tilion. Is there any writing on the sources of Mars, Jupiter and the other planets?

Did Tolkien mention anything about other planets in his mythology or did he invent just the one planet for his stories?


When I submitted my first article to arXiv, in the article I mentioned my full name, which is just 'Afham' (I do not know whether it is not allowed to mention such personal information in a question, sorry if it is not). Because of this, my name is not listed as a co-author in the google scholar entry of the paper and neither is the paper listed under my google scholar page. Do people use unofficial names while submitting papers and can this lead to career related consequences in the future?

My name is SALMAN. No Middle and Last name. How do I write my name in research paper or article?


I have the following article file:  \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   In the same folder there is a mybib.bib file that contains the following code:  @misc{Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }   When I compile using Texmaker, I get the following warning:   Citation 'Nobody06' on page 1 undefined   and a [?] is at the citation place.  I have been compiling the main file with latex, bibtex, latex, latex as suggested in  . And no .bbl file is created.  The .blg file looks like the following:  This is BibTeX, Version 0.99d (TeX Live 2015/Debian) Capacity: max_strings=35307, hash_size=35307, hash_prime=30011 The top-level auxiliary file: Appendix1.aux The style file: plain.bst Database file #1: mybib.bib You've used 1 entry,             2118 wiz_defined-function locations,             508 strings with 4242 characters, and the built_in function-call counts, 576 in all, are: = -- 56 > -- 26 < -- 2 + -- 9 - -- 8 * -- 44 := -- 90 add.period$ -- 4 call.type$ -- 1 change.case$ -- 6 chr.to.int$ -- 0 cite$ -- 1 duplicate$ -- 24 empty$ -- 44 format.name$ -- 8 if$ -- 127 int.to.chr$ -- 0 int.to.str$ -- 1 missing$ -- 1 newline$ -- 8 num.names$ -- 4 pop$ -- 7 preamble$ -- 1 purify$ -- 5 quote$ -- 0 skip$ -- 20 stack$ -- 0 substring$ -- 37 swap$ -- 13 text.length$ -- 2 text.prefix$ -- 0 top$ -- 0 type$ -- 4 warning$ -- 0 while$ -- 6 width$ -- 2 write$ -- 15   Any idea what I'm missing?

On several occations I have read instructions like "run Latex on your file, then run Bibtex, and afterwards run Latex again..." . I am using TeXstudio as editor and when compiling any tex-code I simply press the compile-button. What happens behind this did not matter to me as the pdf I wanted was created anyway. Now that I am using .bib files for referencing, I am having a problem where the solution to this was the same as above. But how do I do it? I only know the compile-button. How can I run Latex individually from Bibtex and Bibtex individually from Latex? And which of both is running when simply pressing "compile"?


In French (my mother language), in order to be polite, we use "vous" (the second person of plurial) when we talk to another person who deserves respect (a boss, a teacher, etc.) and "tu" for a close friend, a child, etc.). How do we do the same  thing in English since there is only "you" for second person of singular and of plurial?

From the top of my head, Danish "De" (practically never used), German "Sie", Chinese "您", French "vous", Spanish "usted" are a formal way of addressing someone, especially if one isn't familiar with the addressee. Did English ever have this? It sounds as though Proto-Indo-European might have had this (based on my 4 examples), but perhaps someone can enlighten me?


It seems you have seen this question posed by many users. But still i want to clear my doubt Regarding Implication in Mathematical Logic which is $p \to q$   I have clearly understood these:  $1.$ If $p$ is True, $q$ is True, Then the Implication is True  $2.$ If $p$ is false, $q$ is False, Then the Implication is True  $3.$ If $p$ is True, $q$ is False, Then the Implication is False  But why If $p$ is False and $q$ is True, The Implication is treated as True.  One example I convinced myself with is:  If $x=2$, Then $x^2+1=5$  Where $p$ is the statement $x=2$ and $q$ is the statement $x^2+1=5$  Now if $p$ is false, Then still $q$ can be true, since $x=-2$ will help to make $q$ True.But there are infinite values of $x$ which makes $q$ false, hence majority of values of $x$ are making $q$ false. Hence the Implication is TRUE.  Now i started to think about a different example Viz:  If $x \gt 7$, Then $x \gt 5$  Now if $p$ is false There are infinite values of $x$ making $q$ True that is all numbers $ x \in (5 \:\: 7]$   Also $q$ is false for all $x \in (-\infty \:\: 5]$   Since density of numbers in second interval is more, The Implication Should be TRUE again.  Is this the Reason when $p$ is False and $q$ is True, Implication is considered TRUE?, since when $p$ is false the number of reasons for $q$ being true less than number of causes making $q$ false?

Provided we have this truth table where "$p\implies q$" means "if $p$ then $q$":  $$\begin{array}{|c|c|c|} \hline p&q&p\implies q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$  My understanding is that "$p\implies q$" means "when there is $p$, there is q". The second row in the truth table where $p$ is true and $q$ is false would then contradict "$p\implies q$" because there is no $q$ when $p$ is present.  Why then, does the third row of the truth table not contradict "$p\implies q$"? If $q$ is true when $p$ is false, then $p$ is not a condition of $q$.  I have not taken any logic class so please explain it in layman's terms.       Administrative note. You may experience being directed here even though your question was actually about line 4 of the truth table instead. In that case, see the companion question  And even if your original worry was about line 3, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.


Being really new to rendering things, I have little knowledge no how things work in Blender (texturing/rendering wise).  Watching Firechild's tutorial on how to create a golden ring.... he does have Diffuse BSDF and Image Texture nodes available.... which I do not... (there is only 'Image' node)  Downloaded some model from Blendswap and these nodes are there....   My question is what exactly affects the selection of nodes available to a particular scene? Does it has anything to do with the materials/settings used?  Thanks for your reply!  Cheers

I am looking for the  but it is not available under the Vector nodes menu or any other menu. I have Blender 2.77 which cooresponds with the manual version in the above link.    I also cannot find the Texture Coordinate or Gradient Texture.  Likely I am doing something wrong.


Sorry for the lame question, I faced VDS for the first time in my life. I've set everything up, installed all python modules the app needed and after I run my script like python test.py  it works just ok, but after I close my ssh window that i used for remote connect to my VDS - the script doesn't work anymore. How to run my test.py to make it work 24\7?

Let's say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine?


Is philosophy still considered as 'mother of science' nowadays? Because i don't know relevance philosophy with the term mother of science in this days. (21st Century)

Prologue Running google search:  at the time of this post yields about 114,000 results, and while this Quora post:  puts forth the question to determine the truth of the matter, it does not address the historical, etymological, and philosophical import of the matter. This PhilSE Post:  clearly addresses theory, but does not address the historical aspect. The related question in Researchgate post:  seems to not provide a substantial answer either. Inquiry What is the  context in which the statement 'Philosophy is the mother of all science' or related ones began to recognize as a  the  relationship between philosophy and the advent of modern science under thinkers like ? That is to say, what historical and social consequences were responsible for seeing  somehow superior as a theory to the ? Epilogue The question is intended to determine the metaphilosophical insights of philosophers. For example, if Karl Popper used the phrase or one similar, did he appeal to previous philosophers for insight on that same relationship? See Also


I am using monogame to make a simple platformer with a fairly low resolution.  Right now I am struggling to get smooth movement like in the mario games. In those games despite having the low resolution mario can still slowly accelerate from standing still and the movement looks smooth. How did they achieve this?  My current solution performs all of the game's physics and movement in floats and when it comes to drawing the x and y coordinate of the player it is rounded to an int. This results in very jagged looking movement.  Is there any way to improve this so that the movement is smooth and still has acceleration? I was thinking about scaling up all of my assets by 4 and working at a higher resolution but then the player would be able to walk between pixels (as 1 pixel in the assets would be represented by 4 pixels on the screen).  Any help would be much appreciate.  Here is an awful video of my character's movement:

I am rendering sprites at exact pixel coordinates to avoid the blurring effect caused by antialiasing (the sprites are pixel-art and would look awful if filtered). However, since the movement of the objects involves variable velocity, gravity, and physical interactions, the trajectory is computed with subpixel precision.  At large enough screenspace velocities (vΔt larger than 2 or 3 pixels) this works very well. However, when velocity is small, a noticeable staircase effect can appear, especially along diagonal lines. This is no longer a problem at very slow screenspace velocities (v << 1 pixel per second) so I am only looking for a solution for intermediate velocity values.  On the left is the plotted trajectory for a large velocity, obtained by simple rounding of the object coordinates. In the middle you can see what happens when velocity becomes smaller, and the staircase effect I am talking about. On the right, the locus of the trajectory I would like to get.    I am interested in algorithm ideas to filter the trajectory in order to minimise the aliasing, while retaining the original behaviour at large and small velocities. I have access to Δt, instant position and velocity, as well as an arbitrary number of previous values, but since it is a realtime simulation, I do not know about future values (though if necessary, an estimation could be extrapolated under certain assumptions). Note that because of the physics simulation, sudden direction changes can also happen.


I have an ANT+ USB dongle, and some software I wrote, which uses libusb to communicate with the device.  On recent linux distributions (like Ubuntu 18.04) when I plug in the dongle, in my dmesg I see the following:  #dmesg output [55632.489138] usb 1-10: USB disconnect, device number 26 [55634.300338] usb 1-10: new full-speed USB device number 30 using xhci_hcd [55634.452005] usb 1-10: New USB device found, idVendor=0fcf, idProduct=1008 [55634.452012] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [55634.452016] usb 1-10: Product: Movestick mini [55634.452020] usb 1-10: Manufacturer: Suunto [55634.452024] usb 1-10: SerialNumber: 1323802187 [55634.454188] usb_serial_simple 1-10:1.0: suunto converter detected [55634.454494] usb 1-10: suunto converter now attached to ttyUSB0   It is attaching a serial driver, and when it does this, I can't seem to access the USB device directly with libusb. If I unbind the serial driver with:  echo -n "1-10:1.0" > /sys/bus/usb/drivers/usb_serial_simple/unbind  it works just fine.  What I would like to do, is not have to do this manually every time. Is there a way I can disable the loading of usb_simple_serial for that dongle?  I found some examples of writing udev rules to explicitly load the serial driver (older linux distros would not automatically load it), but I need the exact opposite.  For example, on older distros, they would do this, to load the serial driver:  echo "options usbserial vendor=0x0fcf product=0x1008" > /etc/modprobe.d/ant-usb2.conf  And  echo 'SUBSYSTEM=="tty" ACTION=="add" ATTRS{idProduct}=="1008" ATTRS{idVendor}=="0fcf" SYMLINK+="ttyANT"' > /etc/udev/rules/ant.rule   Can I make a udev rule to do the exact opposite, and NOT load the driver? Also I would need the device to be accessible by all users, and not just root. How could I make that happen via the udev rule?

This is in continuation of my previous problem.   Here i have 2 usbserial hardware modules and it is provisionised that only one can be used at a time.   1. 0403:6014 2. 0403:6001   I also wanted to make sure device is R/W accesble to "plugdev" group  For device 0403:6014, I do not want to use inbuilt usbserial(ftdi_sio) driver. I want to access this device using FTD2XXX library. and for device  0403:6001, I want to use inbulit  usbserial(ftdi_sio) driver. I am trying to find a common way to acheive this.  Trails which I attempted so far. Since,  0403:6001 device uses inbuilt linux driver, I am trying to remove / blacklist ( 0403:6014 ) driver while loading    TRIAL 1  ACTION=="add", SUBSYSTEMS=="usb",  KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014",  RUN+="/usr/local/bin/rmmod.sh 4", GROUP="plugdev"  This removes the loaded FTDI driver, but it does not change the device group from ROOT to PLUGDEV   So address that issue added one more rule line   TRIAL 2  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GROUP="plugdev" ACTION=="add", SUBSYSTEMS=="usb",  KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", RUN+="/usr/local/bin/rmmod.sh 4"  This trial sets my device GROUP as expected to "plugdev", but this does not remove the kernel usbserial module. TRIAL 3  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GROUP="plugdev"  Added ftdi_sio to  /etc/modprobe.d/blacklist.conf , but this blacklists my  0403:6001 completely.   This approach works well for 0403:6014 but this completely obseltes my 0403:6001 device   Request some guidance to fix this issue


I want to add a csv-layer by PyQGIS in a standalone script. This is my code: uri = 'file:///C:/Users/sml/Desktop/point.csv?delimiter=,&crs=epsg:4326&xField=x&yField=y' vlayer = QgsVectorLayer(uri, "point", "delimitedtext") print(vlayer.isValid()) QgsProject.instance().addMapLayer(vlayer)  The same code works fine in the QGIS Python console, but it can't work in a standalone script. I don't know why.

I am having trouble loading csv files into layers using QgsVectorLayer().  I know this looks like a repeat, but I have carefully read     and    but still cannot get it work.  An example of my data file, test.csv:  Index,y,x 0,37.7646618,-122.4960858 1,37.777494,-122.416311 2,37.717707,-122.3997056 3,37.732284,-122.498118 4,37.749998,-122.392333   My code:  import os import urllib  import pathlib from qgis.core import QgsVectorLayer  local_path = 'C:\dev\FCMS_conflation\data\TMC_nodes.csv' node_layer = 'test'  abspath = os.path.abspath(local_path) params = {'delimiter': ',',           'decimalPoint': '.',           'xField': longitude,           'yField': latitude}  uri = "%s?%s" %(pathlib.Path(abspath).as_uri(), urllib.unquote(urllib.urlencode(params)))  layer = QgsVectorLayer(uri, node_layer, "delimitedtext")   The formatted URI looks like:  [] uri >>> 'file:///C:/dev/FCMS_conflation/data/TMC_nodes.csv?decimalPoint=.&delimiter=,&xField=longitude&yField=latitude'   I have tried many variations of the parameters, including the crs and type. But no matter what I try, I cannot create a valid layer.  [] layer.isValid() >>> False   I have verified that I can add the file using the QGIS gui. I even tried using the uri provided by layer.metadata from within the Python plugin.   I am using QGIS 2.10.1 on Windows 7 64-bit machine.


There is a field in the posts table named communityowneddate. What is the meaning of that field? And in what case is the post owned by community?

Stack Exchange releases "data dumps" of all its publicly available content roughly every three months , and also makes that information queryable over the Internet at the  (SEDE) (updated weekly, on Sunday). Over time, as new features and other bits of data are introduced to Stack Exchange sites, the "anatomy" of the data dump is likely to change.


after selecting records i want to delete that records..i tried following query - (after removing ,MAX(value)  but its showing-    You can't specify target table 'test' for update in FROM clause    DELETE FROM test WHERE ext_no IN  ( SELECT   ext_no, MAX(value) FROM     test GROUP BY ext_no HAVING   COUNT(*) > 2 AND           COUNT(*) = COUNT(CASE value WHEN 0 THEN 1 END) );

I have a table story_category in my database with corrupt entries. The next query returns the corrupt entries:  SELECT *  FROM  story_category  WHERE category_id NOT IN (     SELECT DISTINCT category.id      FROM category INNER JOIN         story_category ON category_id=category.id);   I tried to delete them executing:  DELETE FROM story_category  WHERE category_id NOT IN (     SELECT DISTINCT category.id      FROM category        INNER JOIN story_category ON category_id=category.id);   But I get the next error:      #1093 - You can't specify target table 'story_category' for update in FROM clause    How can I overcome this?


I followed  to install ftp server.  And also added ftp user(ftpuser) and also added ftp password(1234567).  But when I am using this password in any wordpress site or any ftp software such as FileZilla it is showing 530 Login incorrect  vsftpd file  listen=YES anonymous_enable=NO write_enable=YES local_enable=YES dirmessage_enable=YES use_localtime=YES connect_from_port_20=YES ftpd_banner=Welcome to blah FTP service. secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

Moving a tried-and-true vsftpd configuration onto a new server with Fedora 16, I ran into a problem.  All seems to go as it should, but user authentication fails.  I cannot find any entry in any log that indicates what happened.  Here is the full config file:  anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/vsftpd.log xferlog_std_format=YES idle_session_timeout=0 data_connection_timeout=0 nopriv_user=ftpsecure connect_from_port_20=YES listen=YES chroot_local_user=YES chroot_list_enable=NO ls_recurse_enable=YES listen_ipv6=NO  pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES   FTP challenges me for a username and password, I provide them, Login Incorrect.  I have verified, this user is able to login from ssh.  Something is screwed up with pam_service.  Anonymous (if changed to allowed) seems to work well.  SELinux is disabled.  Ftpsecure appears to be configured fine... I am at a complete loss!  Here are the log files I examined with no success:  /var/log/messages /var/log/xferlog      #empty /var/log/vsftpd.log   #empty /var/log/secure   Found something in /var/log/audit/audit.log:  type=USER_AUTH msg=audit(1335632253.332:18486): user pid=19528 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication acct="kate" exe="/usr/sbin/vsftpd" hostname=ip68-5-219-23.oc.oc.cox.net addr=68.5.219.23 terminal=ftp res=failed'  Perhaps I should look at /var/log/wtf-is-wrong.help  :-)  Further info:  /etc/pam.d/vsftpd looks like this:  #%PAM-1.0 session    optional     pam_keyinit.so    force revoke auth       required     pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed auth       required     pam_shells.so auth       include      password-auth account    include      password-auth session    required     pam_loginuid.so session    include      password-auth


In my user account page, I analyzed my reputation total, and it didn't add up:        I think they should match. What's wrong? What am I missing?     UPDATE: first time of downvote cast for me !!   After casting downvote , my reputation was descreased as my downvote casted. But there has nothing showing. I think that may differ reputation. Am I right ?

When I visit the reputation tab of my profile, I see a lot of stuff. I can make out some of it, but not all.   What do all the event types mean? Why do some events show an odd reputation gain or not show any reputation change at all? Why are some events sometimes highlighted in yellow? My reputation suddenly dropped, but I don't see anything. What happened? Why do some events disappear from my reputation history?


If I execute ls -al, i get:  drwxr-xr-x 14 root   root    4096 Jan 16 02:15  <dir-name>   But I want:  drwxr-xr-x 14 <user> <user>  4096 Jan 16 02:15  <dir-name>

How can I use the chown command to change the ownership of all a folder's subfolders and files?


I'm write simple application to load csv file,and in c# code start the new thread to load heavy csv file with this code:  Thread workerThread = new Thread(DoWork); workerThread.Priority = ThreadPriority.Highest; workerThread.Start();    and into the DoWork i try run this code:   public void DoWork()  {  label1.Text = "ok";  }    but when receive label line i get this error:  An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll  Additional information: Cross-thread operation not valid: Control 'label1' accessed from a thread other than the thread it was created on.     What happen?thanks.

I have a scenario. (Windows Forms, C#, .NET)   There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can)   I used a background worker thread which will be loading the data and when done will notify the application that it has done its work.   Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl.    The pseudocode would look like this:  CODE 1  UserContrl1_LoadDataMethod() {     if (textbox1.text == "MyName") // This gives exception     {         //Load data corresponding to "MyName".         //Populate a globale variable List<string> which will be binded to grid at some later stage.     } }   The Exception it gave was     Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.   To know more about this I did some googling and a suggestion came up like using the following code  CODE 2  UserContrl1_LoadDataMethod() {     if (InvokeRequired) // Line #1     {         this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod));         return;     }      if (textbox1.text == "MyName") // Now it wont give an exception     {     //Load data correspondin to "MyName"         //Populate a globale variable List<string> which will be binded to grid at some later stage     } }   BUT BUT BUT... it seems I'm back to square one. The Application again  become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned.  I don't know whether I perceived this right or wrong. I'm new to threading.  How do I resolve this and also what is the effect of execution of Line#1 if block?  The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread.   So only accessing the value so that the corresponding data can be fetched from the database.


In the sentence "A junk vehicle is any vehicle, or parts of a vehicle, which meets at least three of the following criteria...," shouldn't "meet" be singular due to the preceding "or"? I've encountered some alternative treatment of situations like this so am confused. Thanks in advance.

The following sentence refers to an apocalyptic story where money no longer has any value:     A can of sardines, radio batteries, or a bicycle is/are more precious than money.   Should I use is or are after the series?


So I've installed ubuntu on a laptop which used to run windows 10. I realized way to late that all the ethernet and wifi firmware was proprietary and default iso didn't have it. I attempted to follow this post:  but sadly I don't even have make it seems.

I need to install wifi drivers on my laptop, the drivers I have use 'Make' during the install process.   How can I download 'Make' without installing and save to usb (obviously using a pc with internet connection)?


Here is an example of Unix Shell program diff, from Version Control with Git, by Loeliger, 2ed:       Let’s look at the diff in detail.       In the header, the original file is denoted by - - - and the new file   by +++.       The @@ line provides line number context for both file versions.   What do the numbers in the "@@" line mean exactly?

I have file1.txt    this is the original text   line2   line3   line4   happy hacking !     and file2.txt    this is the original text   line2   line4   happy hacking !   GNU is not UNIX     if I do: diff file1.txt file2.txt I get:    3d2   < line3   5a5   > GNU is not UNIX     How is the output generally interpreted? I think that < means removed but what do 3d2 or 5a5 mean?  If I do:    $ diff -u file1.txt file2.txt   --- file1.txt        2013-07-06 17:44:59.180000000 +0200   +++ file2.txt        2013-07-06 17:39:53.433000000 +0200   @@ -1,5 +1,5 @@    this is the original text    line2   -line3    line4    happy hacking !   +GNU is not UNIX     The results are clearer but what does @@ -1,5 +1,5 @@ mean?


I want to run a background scheduler in my web application. This scheduler will check the current time and if it matches with the programmed time then it sends a E-mail. How can i create background Scheduler ?

I have a site on my webhotel I would like to run some scheduled tasks on. What methods of achieving this would you recommend?  What I’ve thought out so far is having a script included in the top of every page and then let this script check whether it’s time to run this job or not.  This is just a quick example of what I was thinking about:  if ($alreadyDone == 0 && time() > $timeToRunMaintainance) {    runTask();    $timeToRunMaintainance = time() + $interval; }    Anything else I should take into consideration or is there a better method than this?


Which one is correct or more correct?     I consider it to be true.   or      I consider it true.   Or maybe both?  According to Google Ngram Viewer both are used with the second being more common.

In a casual search of the web, I found a few indications English does not allow zero copulas ().  However, I frequently see sentences with subordinate clauses that juxtapose a noun phrase with an adverb phrase, such as the following from a contemporary sci-fi author:  Kai stares up at me from the grave, his eyes hard as obsidian.  If this clause were made into a sentence, it would take an obligatory verb:  *His eyes hard as obsidian.  His eyes are hard as obsidian.  The original clause seems to contain an implicit "to be."  Is it an example of a zero copula?  If not, what is this construction called?


i got the following error  "Fehler 9   error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __cdecl gameClass::getAttribute(class std::basic_string,class std::allocator >)" (??$getAttribute@_N@gameClass@@QEAA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)" in Funktion "main". C:\Users\Weexe\documents\visual studio 2010\Projects\Engine\Engine\main.obj Engine "  My Code  class.h  template <typename T> T getAttribute(std::string attribute);   class.cpp  template <typename T> T gameClass::getAttribute(std::string attribute) { std::map<std::string,int> matchAttribute;  matchAttribute["windowTitle"]=1; matchAttribute["windowSizeX"]=2; matchAttribute["windowSizeY"]=3; matchAttribute["isMenue"]=4;  switch(matchAttribute[attribute]) { case 1:     return this->windowTitle;     break; case 2:     return this->windowSizeX;     break; case 3:     return this->windowSizeY;     break; case 4:     return this->isMenue;     break; } }   Any one have an idear how to fix that error ?  I think its a syntax error or smth like that :/

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I recently had to reinstall windows due to driver issues and copied all my Steam games in the steamapps folder from the C-drive to another drive, but now I'm stuck with a problem. I have installed Steam again, but when I copy the games' backup to the steamapps folder, and then install the games again, they don't seem to pickup any game files and just starts to download the games again. I have tried verifying game cache, but it just jumps to downloading as well and I have tried modifying the appmanifest files but nothing have worked so far. Any other suggestions I could try before downloading 200GB+ again with a 4Mbps line (500kbps).  Would there be any way that I can make a 'Steam'-backup (backup and restore steam games in the menu) from the games in their folders, with other words, create a bunch of *.csd and *.csm files so Steam can identify it as restoreable?

I use (and have it much bigger) drive D: to store all my user data and games, but I have installed the Steam client on drive C:. When I was installing a first game (Warhammer 40000), I've chosen to place my library folder on drive D: and the game went there.  But now as I've got installed the second game (Portal), I can see that it was put on drive C: despite to the choice I've done previously. When I open Steam - Settings - Downloads + Cloud - Steam library folders, I can see both installation places in the list. Can I merge them into one?  I would even agree to use the default drive C: library (as I've replaced it with a symlink already). When I press to remove one library it says it can only remove empty ones.


find all solutions in integers m,n of the equation (m-n)^2 = 4mn/(m+n-1)  On solving i got, (m + n)[(m + n)/(m - n)^2 - 1] = 0  thus either m = -n or m + n = (m - n)^2  I tried some even odd stuff as m,n are integers but i am stuck now.

Find all the integer numbers (m, n) which satisfy: $(m-n)^2=4mn/(m+n-1)$


I have a function f(x):=\hat{f}(x-\lfloor x\rfloor), where  \hat{f}(x) =     \left\{ \begin{array}{lcl}   2x   & \mbox{for} & 0\leq x\leq \frac{1}{5} \\   \frac{1}{2}+\frac{1}{3}(2x-1) & \mbox{for} & \frac{1}{5}\leq x \leq1             \end{array}\right.   I am going to draw f(x) on the domain [-2,2] in latex via the tikzpicture. My idea is the following: Divide [-2,2] into pieces in order to define one function and draw. But I am pretty sure there is a more clever way to draw it.  \begin{tikzpicture}   \draw[->] (-2,0) -- (2,0) node[right] {$x$};   \draw[->] (0,-2) -- (0,2) node[above] {$y$};   \draw[scale=0.5,domain=0:0.2,smooth,variable=\x,blue] plot ({\x},{2*\x});  \end{tikzpicture}

I'm trying to learn to plot in latex, but I'm having a problem trying to find out which packages that are best to use in this situation, and I find it a bit of a learning curve.   Suppose you have the following function:    I would like to know, how I could graph this in Latex. I have searched around and found out that you could use the PGF and tikz packages, and use the declare function, but I have problems with the intervals in which $x$ is defined   How would I approach this problem, as a complete newbie to graphing in Latex?  I tried using a similiar post about it, and tried to plug in my intervals. My code looks like this:   \documentclass[tikz]{standalone} \usepackage{pgfplots} %\pgfplotsset{compat=1.8} \begin{document} \begin{tikzpicture}[   declare function={     func(\x)= (\x \in [-\pi, -\frac{pi}{2}) * (0)   +      and(\x \in [-\frac{\pi}{2},\frac{\pi}{2}) * (\frac{\pi}{2}-|x|)     +      and(\x \in [\frac{\pi}{2}, \pi]) * (0)    ;   } ] \begin{axis}[   axis x line=middle, axis y line=middle,   ymin=-5, ymax=5, ytick={-5,...,5}, ylabel=$y$,   xmin=-5, xmax=5, xtick={-5,...,5}, xlabel=$x$, ] \end{axis} \end{tikzpicture}  \end{document}


I took General Relativity at university, years ago and have a question that has recently occurred to me. This might be a dumb one, so I apologise if the answer is a well known negative. Mathematically, it seems to me that our curved spacetime must be mathematically embedded in a flat space of 5D+. I suspect that spacetime satisfies the requirement of a mathematical manifold, and the Witney embedding theorems would imply the existence of such an embedding. The analogy would be like a curved 2D sheet of paper can be thought of as being embedded in flat 3D Euclidean space. Furthermore there are the Nash embedding theorems. I am not too familiar with these, but I think they may be a stronger statement that applies to both Riemann manifolds and Pseudo Reimann manifolds. I think the Nash theorem may imply that, given a manifold (or pseudo manifold) with a metric, then a higher dimensional flat space exist which has a metric compatible with the metric of the curved space; inside which the curved space is embedded. So for instance, if spacetime is a 4D pseudo-Reimann manifold of signature (-1, 1, 1, 1), then a flat space of at least 5D exist, which will contain our 4D spacetime, and which will have a metric that is consistent with (-1, 1, 1, 1) when applied locally to our 4D spacetime. This is in analogy to the fact that metric in 3D space of signature (1, 1, 1) clearly is consistent (vi projection) with the metric of (1, 1) on the tangent plane of a point on the curved sheet of paper. Have I got this totally wrong, or is this a possibility? Please note: I am asking about the technicality of a compatible metric. I have already seen the link, below, and it does not answer my question

If you draw a big triangle in Earth 2D surface you will have an approximated spherical triangle, this will be a non euclidean geometry.  but from a 3D perspective, for example the same triangle from space, it could be depicted as euclidean in 3D.  Then why we talk about non-Euclidean instead of adding 1 dimension?  It is easier the non-Euclidean approach? I don't see how!  Sorry if the question is perhaps naive, but this is a long time doubt for me, so I will be grateful for an answer.


I have an old Windows 7 box that is used as a media centre. There are 2 partitions: C contains all the sys files, and all the data is stored on D. For some reason, the C drive has been filling up with more and more data recently, and I can't figure out why.  Here can you can clearly see that the C drive is   I then ran WinDirStat and it looks to me like there is only about .   I would expect that the usage should be much closer to 50GB, than 200GB, because that drive is only used for system files. Any ideas on how I can find out what is actually using all this space and how I can get it down?

I have 4 drives in Windows: C:, D:, E: and F:. Except C:, all of them are empty.    Suddenly it shows up to 2 GB space used – even when there are no files.     [  When I format the drives, it's fine for a while until it shows used space again.  I use Windows 8.1 Pro 64 Bit.


I have a dual boot Lubuntu/windows 7 computer, but I want to installing new Linux, in this case Kali Linux from USB. I would like if my Lubuntu git purged, so do I just go in win and format the Lubuntu partition or can I install it just on top of my Lubuntu?

I am running window7 and Ubuntu 13.10 together.  I'd like to also have Kali linux installed.Despite I did the installation of both OS , I am not a veteran in this subject , I dont know where to start on and if it is possible with a total HD of 250gb  Many thanks in advance


I have a directory named "BaseFile" with in this directory, I have few directories named "Dir1", "Dir2", "Dir3" etc.,   In these sub-directories, I have list of files which I need to get listed via code. Can Some one give me some tips on how to do this?  I need to do this both in windows and Linux platforms..

How can I determine the list of files in a directory from inside my C or C++ code?  I'm not allowed to execute the ls command and parse the results from within my program.


I am running on Kubuntu 20.04. I uninstalled python3, now system is broken. When I boot to root recovery mode, I can not run apt update or apt install to fix all the broken packages. If I run sudo apt update... Temporary failure resolving 'ca.achive.ubuntu'  Along with about 10 other instance of errors like this. Right after I realized my mistake, I reinstalled python. Now that I rebooted it totally borked because of the other packages that are gone. I know there are lots of questions about how to fix uninstalled python, but this question is about how to fix my broken apt now.

I am a new Ubuntu user running Ubuntu 13.04.  I've been trying to install and use a DeDRM tool, but I've been having problems doing so. I was following some directions that said I needed a version of Python 2.7, but not anything Python 3.0 or later (because 3.0 versions are missing some necessary libraries?). I tried to install Python 2.7.5.6, but it didn't work. I thought it was probably because I had the later version of Python, so I went through terminal and removed Python 3.3, so I could install the earlier version of Python.  Now that I've uninstalled Python 3.3, a lot of applications no longer work, including the terminal and the Ubuntu Software Center. I have no idea how to fix this problem now.


So my old computers motherboard died and right in the middle of a windows boot. As you imagine, after buying a new and suitable rig windows 7 will not boot. windows gets to the "windows starting up" animation and restarts. When the computer restarts it goes to the startup repair which says it cannot be repaired. However, with ubuntu installed, all HDD files are accounted for and all components work well. Is there a way for ubuntu to repair the booting process without compromising any files on the HDD? Thanks!

I have been playing with Ubuntu for a few weeks now, and I'd like to revert my computer back to it's original - factory - defaults.   On the computer I have a recovery partition (it's a netbook). I went through the process of recovery and everything seemed fine. However, when I restart the computer I'm presented with   grub rescue >   Now, my understanding is that when I installed Ubuntu "side by side" it replaced the MBR or something like it, with GRUB.   I've read on a slew of forums, that I need to use a Windows Recovery Disk.   Here are my issues:   a) I don't have a recovery disk, I have a recovery partition - it's a netbook. b) I don't have an external cd drive.   What I do have is a USB key that has about 1gb of space on it.   Thanks in advance.


For example, if we take the case of Hexa-2.4-diene we have 3 isomers which will have cis-cis, trans-trans and cis-trans arrangements at the two double bonds present. The aim is to get a formula for the number of geometrical isomers of a symmetric polyene with n double bonds, when n is odd and when it is even.  I observed that cis-trans and trans-cis would mean the same thing for two double bonds at same position from the two sides. When I try to think what's going to happen after this it just gets too overwhelming because I think that one would have to consider a lot of cases.  I also read  post but it does not seem to help.  The answer is-   $2^{n-1}+2^{\frac{n-1}{2}}$ ; when $n$ is odd. $2^{n-1}+2^{\frac{n}{2}-1}$ ; when $n$ is even.

For example, if we take the case of Hexa-2.4-diene we have 3 isomers which will have cis-cis, trans-trans and cis-trans arrangements at the two double bonds present. The aim is to get a formula for the number of geometrical isomers of a symmetric polyene with n double bonds, when n is odd and when it is even.  I observed that cis-trans and trans-cis would mean the same thing for two double bonds at same position from the two sides. When I try to think what's going to happen after this it just gets too overwhelming because I think that one would have to consider a lot of cases.  I also read  post but it does not seem to help.  Edit- The answer is-   $2^{n-1}+2^{\frac{n-1}{2}}$ ; when $n$ is odd. $2^{n-1}+2^{\frac{n}{2}-1}$ ; when $n$ is even.


When I try to install Ubuntu, I am unable to view the installation menu. The only thing I can see is a black screen. Are there other methods to install Ubuntu 13.10, & is this a graphic problem?

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


I have an Apex Job that is being triggered from an 'afterInsert' trigger, but I don't want that Job to be executed if the insert is being performed by a specific external application. I just need to know the Connected App Id that triggered the action, so I can skip the execution of the Job in case the Insert is coming from this specific app, but the only thing I can see is some information about the authSession (LoginType and SessionType) and the UserInfo, but nothing regarding the Connect App used.  Any idea how can I get this information?  Thanks in advance.

We have various ways of invoking apex. Triggers, Inbound Webservices, @InvocableMethod,@RemoteAction and what not. Often we call some or other utility methods from these execution contexts. I have some generic utility method,that should behave differently from the context it is called?  I know about Trigger.isExecuting but it only tells if its running in trigger context or not.  I have a utility method that creates lead from Webservices, VF button click and via Lightning . Whenever we create a lead I want some special operations to be done via the source it was originated.(Its not just updating a simple field leadSource, I have some methods that creates some childs and update other records of other type) . I can achieve this by passing an extra parameter to utility method to tell about source, but i have then to edit hundred of other class that uses this utility method. If i could dynamically find out via which context this piece of code is running,then i would have to change only one class to satisfy my requirement.    Is there something in APEX that tells in what context the apex method was called?


How can I delete/uninstall ubuntu from single boot laptop and install Windows 8.1? I have tried to do some responses posted before but coudln't make it.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I'm trying to create an illustration in Inkscape 1.0.2 and have been trying to combine these two nodes (I moved them away from each other just for the screenshot.) When I go into "edit paths by nodes" I place the nodes on top of of each other, drag select, and click "join selected nodes", but it never merges them. What am I doing wrong?

(Inkscape 1.0/windows10) While looking for a way to merge "overlapping" nodes of the flipped duplicated copy with the original object,(converting objects to path and selecting), and  joining these overlapping nodes with the "Join selected nodes" option,the nodes just don't merge into a single node and break apart when pulled. It does work in the first attempt , but in latter attempts it doesn't. Why does "join selected nodes" into a single node not work and what over alternatives are there for this operation?


I believe that there are 4 situations where my question may have different answers. These situations are sorted by member vs. non-member functions and within vs. without a library. Non-member function within a library Suppose that I have defined a template function func in header func.h. // func.h  template <typename T> int func(T t){     //definition }  I #include "func.h" in two cpp files of the same project/library/executable and call //a.cpp #include "func.h"  //stuff  int m = func<int>(3);  //stuff  and //b.cpp #include "func.h"  //stuff  int n = func<int>(27);  //stuff  My understanding is that these two cpp files should compile into their own object files. In what object file is func<int> instantiated? Why will the One Definition Rule not be violated? For this basic application of templates, is there any benefit to explicitly instantiating func<int> separate from its use? Member function within a library Suppose that func is instead a member function of some class Func. // func.h  class Func {     template <typename T>     int func(T t){         //definition     } };  Where will func be instantiated? Will func<int> be linked to or placed inline? Member and Non-Member functions across libraries Suppose that a.cpp and b.cpp are in different libraries that are compiled separately and later linked into an executable. Will the different libraries their own definitions of func<int>? At link time, why will the One Definition Rule not be violated? Note: There is a related question of the same title , but in a specific situation with one cpp file.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


public class Question {       public void doThing() {}       public static void main(String[] args) {               doThing();       } }   Should the doThing() method be declared static to be used in main()?  or   should the main() method not be declared static?  They both don't give me an error but which one would you say was right or wrong and why?

The method signature of a Java main() method is:  public static void main(String[] args){     ... }   Is there a reason for this method to be static?


My ADSL modem/router is DLink (AC1200 dual band).  I recently purchased a Mac and an Airport Time Capsule.  The AirPort is connected via Ethernet cable to the DLink modem/router to increase range of wireless at the back of my house.  The Airport has its own SSID.  Am I able to use the SSID the same for both the DLink and Airport so that when devices connect they only need to know one SSID? The type of devices connecting include iPhones, MacBook, iMac, iPad and a Windows laptop.  At the moment I have 3 SSID's, one for each of the following:   DLink 2.4 GHz DLink 5 GHz AirPort   The iMac is closest to the DLink so uses the 2.4 GHz DLink SSID.   However that means I can't see the Airport TimeCapsule from the iMac because it is on a different WiFi network. I need to have the iMac connected to the Airport SSID to access resources it provides.  I'm not very technical. I would appreciate advice on whether it is possible to share a single SSID across both routers.  I would also appreciate instructions on what config changes I need to make.  Thanks in advance, Tim.

I need to upgrade my existing wireless infrastructure and this time I want 2 access points to cover my house, since I get blind spots no matter what with a single AP. I have physical cabling to my central network available for both access points.  I would really like these two to interoperate seamlessly as a single SSID. How do I do this? What are the features that the new access points I'm buying would need to support?


I have been trying to figure out what is wrong with my code, but no matter what I do it does not compile.  \documentclass[12pt]{report} \usepackage{tikz-qtree, qtree, graphicx} \usepackage[margin=1in]{geometry} \newtheorem{theorem}{Theorem}[section] \author{My Name} \title{title}   \begin{document}     \maketitle     \pagebreak       \begin{tikzpicture}           \Tree[.sentence            [.{noun phrase}              [.article the]              [.adjective young]              [.noun ball]]            [.{verb phrase}              [.verb caught]              [.{noun phrase}                [.article the]                [.noun man]]]]     \end{tikzpicture}   \end{document}

I've scoured this forum and it looks to me like I'm setting up the tree correctly, but I'm still getting this error, I have   \usepackage{tikz} \usepackage{tikz-qtree}   in the header.  Here is the code that is causing the problem:  \begin{tikzpicture}  \Tree  [.{Boolean Groups}     [.{Abelian Groups}         [.Groups]     ]     [.{Class 3}          [.{Class 5}]         [.{Class 1}]         [.{Class 2}]         [.{Class 4}]     ] ]  \end{tikzpicture}


This is more out of curiosity than anything, but can LaTeX produce a pdf with a clickable check box? I imagine not, but it would be great to be proven wrong.

I'd like to create a LaTeX document that when rendered into PDF, has forms that can be filled out using Adobe Reader or other such programs. Then I'd like to be able to extract the data. I deliberately would like to avoid using Acrobat for all the usual reasons (non-free, need different versions for different platforms etc).   Can this be done ?


Is there an adapter for my Panasonic GH4 that will allow me to use a Kiron      28-210mm telephoto lens ? My father used this lens on his Canon AV-1 which I believe is a C/FD mount.

I've got some lenses of brand X, but I've just got a new camera of brand Y. How can I tell if it's possible to use my lenses on my camera? I accept that I may lose a lot of automatic functionality like autofocus, aperture control and metering when using an adapter to connect the two.


I  the following code:  obj = {};  // global object  function set(path, value) {     var schema = obj;  // a moving reference to internal objects within obj     var pList = path.split('.');     var len = pList.length;     for(var i = 0; i < len-1; i++) {         var elem = pList[i];         if( !schema[elem] ) schema[elem] = {}         schema = schema[elem];     }      schema[pList[len-1]] = value; }  set('mongo.db.user', 'root');   I read a bit further on it and found that schema is acting as a pointer of obj. How does this work? I even re-wrote the above code to incorporate ES6:    console.log(set('mongo.db.user', 'root'));  function set(path, data = '', obj = {}, delim = '.') {   if (path) {;     path.split(delim).reduce((s, n, i, a) => {       s.pointer[n] = s.pointer[n] || i === a.length - 1 ? data : {};       s.pointer = s.pointer[n];       return s;     }, {pointer: obj});   }   return obj; }     However I feel limited in my ability to expand upon this because I do not see how, for example, if pointer is obj, how does setting s.pointer[n] set object, but s.pointer = s.pointer[n] not set/overwrite obj?  If someone could please explain this that would be great - also if I am missing something from the bigger picture (and thus didn't ask) please let me know.

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


You can use character classes to match a range of characters rather than an exact match like this:  > str = "Daniel" > match = /A-Za-z/.match str => nil > match = /[A-Za-z]/.match str => #<MatchData "D">   The first example returned nil because "Daniel" does not match exactly to "A-Za-z". But the second example uses a character class where '-' has special meaning where it matches a range. So the regex engine checks the string and stops at the first occurance of a match, which is 'D' in this case.  Since the + modifier matches one or more occurances, I can return the full string this way:  > match = /[A-Za-z]+/.match str => #<MatchData "Daniel">   match[0] will provide the full string "Daniel" because the regex matched one or more occurences of essentially every letter in the alphabet.   With that knowledge, then the engine should also be able to match ALL a's in a string. But it doesn't:  > str = "Daaniaal" > match = /[a]+/.match str => #<MatchData "aa">   It seemed to stop after it matched the first two a's, even I used + modifier to match one or MORE occurances. Would have expected a result like "aaaa". How come this doesn't work?

Is there a quick way to find every match of a regular expression in Ruby? I've looked through the Regex object in the Ruby STL and searched on Google to no avail.


As in the title , I want to know which one of these sentences is correct and why?   I want to do something specific. or I want to do a specific something.

I want to better understand why the construction something + [adjective] makes grammatical sense. Background: I was recently reading a Washington Post article and came across the following sentence.  So if you fall in that category, [the movie] feels more like magic than repetitive.  (Note: I've copied the relevant spoiler-free sentence above; following the link to the article will open you up to movie spoilers! ) The phrase more like magic than repetitive struck me as odd, presumably because it was non-parallel (more like [noun] than [adjective]). I would have expected "...more like magic than something repetitive." (Actually, that needs to be rewritten to flow better, but the point is that at least it appears to be grammatical.) Thus, one would have the noun phrase "something repetitive," of the form "[noun] [adjective]." This got me to thinking about the use of adjectives after nouns. There is a great Stack Exchange article  that involves the characteristics of the adjective that indicate it should come after the noun. But I haven't been able to find examples of how the word "something" requires a postponed adjective. Consider the following sentences:  I want to buy something red. I am looking for something sweet to eat.  You cannot say:  *I want to buy red something. *I am looking for sweet something to eat.  But you can say:  I want to buy something (that is) red. I am looking for something (that is) sweet to eat.  So, my question:  Do the above examples mean that the "something [adjective]" construction is an example of the ellipsis of "that is"?  Is there something special about the word "something" that requires the postponed adjective? Note that I am NOT looking for details about adjectives that are postponed; I'm interested in the word that precedes the adjective (either "something" or similar words).   By the way, I am not interested in the following constructions, which are different:  I want to paint the house red. I tried to build the brick house taller.  Thanks in advance!


I am java programming beginner and I want to save (java) source file. However,when I open the java file from note pad  the indentation is totally different from the one that I wrote in eclipse.So how can I adjust indentation of Notepad or how to save java file so that to submit my project with correct indentation like tab should be 4 space instead of 8 space?  thank you

By default  indents with a hard tab character. How do I change it to spaces?


I recently came across a code where                   uint32_t index = -1;   Is this safe to use the above.Assume that the code will have to be compiled across multiple Linux platforms and distributions.Or is it recommended to use a signed value? if I compare it against -1 somewhere in the program is it likely to compare -1 with 0xffffffff and throw an error or manifest some other strange behaviour.

Suppose I have the following C code.  unsigned int u = 1234; int i = -5678;  unsigned int result = u + i;   What implicit conversions are going on here, and is this code safe for all values of u and i? (Safe, in the sense that even though result in this example will overflow to some huge positive number, I could cast it back to an int and get the real result.)


I want to create a macro which will reference a given section (or chapter, part, subsection, etc.) but if the section referenced is the next section after the current one, it will say "the next section" rather than "Section X", and the same for the previous section and "the previous section". What I'm imagining the pseudocode would look like is something like this:  \usepackage{\ifthen}  \newcommand{\secref}[1]{     \ifthenelse{\equal{\thesection}{\ref{#1}-1}}         {the next section}     {\ifthenelse{\equal{\thesection}{\ref{#1}+1}}         {the previous section}     {Section #1}}}    Is there a package for this? And if not, how would I go about creating a solution?

I'm aware of the cleveref package \cref which adds the correct reference name (see:  ). I have a few references which refer to the very next section and some find it odd to give the number in this case rather than just say "in the next section". Sometimes I've moved sections around and these references suddenly become quite broken. To have the best of both worlds, is there a way to automate this change?  E.g.: replace "this is discussed further in section 1.4" with "this is discussed further in the next section"


I'm very new in statistics. I was learning the PDF of Normal Distribution. But sometime before I learned that probability of getting exactly x in continuous distribution in 0. But what if I replace the value of x in PDF of normal distribution? It gives me the height and that is essentially the probability of getting x. So, probability of getting x is the height or the area in the distribution? If it is the area then what is the interpretation of the height?  I might have mixed concepts because this thing is not clear to me. It'll be great if you spare a few minutes to make me understand this. Thanks in advance.

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?


So today I woke up and couldn't log in into my user (the screen flashed and went back to the login screen), following advise elsewhere I deleted .Xauthority. Now I just get a black screen, I can only use tty's. I reinstalling unity but it also didnt work.  Edit: I installed gdm and it also doest load. It just shows the ubuntu loading screen forever.

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


Three times over the past week or two my laptop (9-year-old Dell running Windows XP Home SP3) has auto-run chkdsk when I've turned it on. The process has taken about 2 hours to complete, after which Windows appears to boot up normally. The chkdsk scans have detected bad sectors on my hard drive. I've made an image of the hard drive and ordered a replacement, but I want to know more about bad sectors.  If the computer can still boot to Windows (which it can), does that just mean that the bad sectors are being marked, the data in those sectors is being relocated and all the files on the hard drive are still fully intact?  Or is it the case that these bad sectors mean that some files have already become corrupted? When I made the image of the hard drive (with Redo Backup & Recovery), it also gave warnings of encountering bad sectors. If I clone the image to my replacement hard drive and corrupted files get replicated to the new drive, I may be missing some critical data and suffer crashes in the future as a result, correct? If that's the case, am I wasting my time cloning the old hard drive to the new one?  Thanks for your insight.

I ran chkdsk on a drive and when it got to stage 4 (verifying file data), this message appeared for some files:  Windows replaced bad clusters in file ###### of name \path\filename.ext   Does this mean that these files are now corrupt?  I'm mainly concerned about ISOs and executables.  Unfortunately, I don't have hashes of them so I have nothing to check their integrity against after chkdsk finishes running.  If it's relevant, this is a mechanical hard drive, a 2TB Western Digital Green.


I know there are thousands of iterations on this question, but I can't find one dealing with Photos.app from 10.10.3+.  I just want to stop it (or anything else) from opening ever. None of the answers I've found for Image Capture or iPhoto work anymore, as far as I can tell.  To be clear, I know I can go into Image Capture and change the setting per-device, but I am regularly plugging in random devices I've never used before, and I want to turn this behaviour off globally.  Is there a way to do this?

Ok I get how to disable Image Capture from opening for a specific device, but I'm an iOS developer and I work with a lot of devices. Is there a way to stop this ruddy app from launching the first time I connect any new device? It's a serious invasion of privacy when I connect someone's phone and immediately see their photos plastered on my screen for the world to see!


So here we have following question:    Which has: - no edit visible in review - no comments indicating that there is any discussion about question value  I understand that it may have been closed for wrong reasons, but that doesn't mean it is suitable for review test!  Yes, it's detailed, yes it's long, but hey - someone voted to close it in the first place? As a reviewer I see no reason why question which was once closed should be reopened just because (and why someone made a test out of it)

I recently received this rather amusing message while reviewing a user's first post:  Congratulations! This was only a test, designed to make sure you were paying attention. This post has already been removed, but thanks for taking time to leave feedback for the author.   What is the purpose of this test? How does the audit work? What happens if I fail? Why was the system expecting me to negatively review a good post, or positively review a bad post? A review is obviously an audit. Should I report it? Do review audits count toward the Reviewer badge? Do robo-reviewers dream of electric sheep?


In   - Context is for Kings, we see a prison transport .   Later there is a discussion between  and Captain . In it Captain Lorca suggests he has  her file, and that Burnam has the kind of attributes he is looking for.   It's not clear if he read the file prior to the prison transport accident, or after he got them onto the ship.   My question is: Did Captain Lorca arrange the prison transport incident in Context is for Kings?  EDIT I believe this is not a duplicate because the subject of the other question isn't clear - nor is the question - it is merely an open-ended invitation to comment on the plot.

SPOILERS FOR   Star Trek Discovery Season 1 Episode 3       The Shuttle that Michael Burnham is on is flying through a dangerous cloud that has energy-eating organisms inside it. When the discovery rescues the ship you see it just outside the cloud above the shuttle clearly is not in danger. So the question is: Why did the shuttle fly through the cloud when it clearly could have flown above the cloud?


Is small image file size means low image quality?what is JPEG image file size of 5d mark iv .Can we achive better image in small image file size?

I have a Casio EX-S12. It has a setting for image size, but also a separate setting for what it calls "image quality". There are three image quality values: "Fine", "Normal", and "Economy".  The Casio manual is not clear on what image "quality" actually means -- specifically how it's different from image size. All they say is that the "Fine" setting "helps to bring out details when shooting a finely detailed image of nature that includes dense tree branches or leaves, or an image of a complex pattern." I'm confused because isn't this what image size is all about (more pixels = more detail)?  In terms of memory usage, the manual also says that for a 5 megapixel picture, a "Fine" image takes up 2.99 MB, a "Normal" image takes up 1.62 MB, and an "Economy" image takes up 1.12 MB, so this "image quality" setting of theirs is certainly having a significant impact on memory usage.  My question is, what exactly is "image quality", if it's not image size? What is the "thing" that is taking up additional memory?  Thank you.


I've got a domain name, let's say example.com that point to my server. And my nginx.conf is:  upstream domain {     server 127.0.0.1:8002;  }  server {      listen 80;     server_name <example.com>;     client_max_body_size 10M;     keepalive_timeout    15;   During development, I want to deactivate example.com. I replace it by <different_name>.  server {      listen 80;     server_name <different_name>;     client_max_body_size 10M;     keepalive_timeout    15;   It works fine as expected with <different_name> but it still continues responding to <example.com>. And I can't figure out why. I'd like nginx to not respond at all on <example.com>.   Naturally I didn't forget to restart services as gunicorn and nginx.  Edit: It may be a duplicated post as suggested. In my opinion the way the problem is exposed in the post you mentioned is confused. Even the title is not clear. "nginx open reverse proxy" What does it mean seriously? I tried to expose my problem which has a similar solution in clear terms keeping in mind that it could / should be reusable and much more explicit to everyone.

Somehow, and I'm not sure how, we have configured an nginx reverse proxy that is acting as an open proxy.  The log files tells us the matching requests are going against the following conf file:  map $http_upgrade $connection_upgrade {         default upgrade;         ''      close; }  access_log      /var/log/nginx/access.p.log; error_log       /var/log/nginx/error.p.log;  proxy_next_upstream     error timeout invalid_header http_500 http_502 http_503 http_504; proxy_buffers           8 32k; proxy_buffer_size       64k; proxy_http_version      1.1; proxy_set_header        Host            $host; proxy_set_header        X-Real-IP       $remote_addr; proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect          off; proxy_set_header        Upgrade         $http_upgrade; proxy_set_header        Connection      $connection_upgrade;  server {         listen          80;         server_name     ~first.*\.second\.com;          location / {                 resolver                172.16.1.1 172.16.1.2;                 proxy_pass              http://$host;                 proxy_read_timeout      7200s;         } }  server {         listen          443;         server_name     ~first.*\.second\.com;         ssl             on;          location / {                 resolver                172.16.1.1 172.16.1.2;                 proxy_pass              https://$host;                 proxy_read_timeout      7200s;         } }   The top-level conf file looks like this:  user nginx; worker_processes 8; pid /var/run/nginx.pid;  events {         worker_connections 4096;         # multi_accept on; }  http {      ##     # Basic Settings     ##      sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     types_hash_max_size 2048;     # server_tokens off;      # server_names_hash_bucket_size 64;     # server_name_in_redirect off;      include /etc/nginx/mime.types;     default_type application/octet-stream;      ##     # Logging Settings     ##      access_log /var/log/nginx/access.log;     error_log /var/log/nginx/error.log;      ##     # Gzip Settings     ##      gzip on;     gzip_disable "msie6";      # gzip_vary on;     # gzip_proxied any;     # gzip_comp_level 6;     # gzip_buffers 16 8k;     # gzip_http_version 1.1;     # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;      ##     # nginx-naxsi config     ##     # Uncomment it if you installed nginx-naxsi     ##      #include /etc/nginx/naxsi_core.rules;      ##     # nginx-passenger config     ##     # Uncomment it if you installed nginx-passenger     ##      #passenger_root /usr;     #passenger_ruby /usr/bin/ruby;      ##      include /etc/nginx/conf.d/*.conf;     #include /etc/nginx/sites-enabled/*;   }  what here is causing this?


So, I paid my tuition in Massachussets and I'm currently working on my F-1 OPT in California(my final year). Can I drive here on my foreign license? Do I really qualify as a California resident given I don't have exact benefits extended to me as that of a resident, I don't vote or own property here. I've seen rental cars companies not checking for this requirement when we rent cars. I've also heard of my friend leasing my car on her foreign license.

I'm planning to attend a Californian university as a visiting scholar (not paid by the university) on a J-1 visa, for a total of four weeks; a colleague of mine will do the same, but for 12 weeks. I've been told (personally, ie. no citable sources) that, if you're staying on a J-1, you're effectively a California resident for the time you're there, and, therefore, need a Californian driver's license.  I've read up on this and found  that states:     If you are a visitor in California over 18 and have a valid driver   license from your home state or country, you may drive in this state   without getting a California driver license as long as your home state   license remains valid.      If you become a California resident, you must get a California driver   license within 10 days. Residency is established by voting in a   California election, paying resident tuition, filing for a homeowner's   property tax exemption, or any other privilege or benefit not   ordinarily extended to nonresidents.   I'm not planning to vote in any elections, nor will I own a home there, but I'm not sure what would constitute "privileges or benefits not ordinarily extended to nonresidents".  Do we need to get driver's licenses in California, or can we use our foreign licenses? How about day trips to Arizona or Nevada?  Note: this seems to be related to , but my question is specifically about staying there on a J-1.


Did the Avengers timeline change after stark snaps his finger and kills "Thanos from the past"?  if "Thanos from the past" if killed in the movie ending in the present, then that would mean there would be no Thanos in the past who'll collect stones and wipe out half the universe right?  And that alters the timeline?   Not only this, when Cap from the present goes back to restore the infinity stones and  decides to live his life fully... doesn't that mean there would be two Caps now in the present... One who'll go through Hydra, icing, and all that we know and the other one who lives his life with Margaret?

In Avengers: Endgame,      Present-Nebula kills Past-Nebula.   I'm confused. Wouldn't it cause a grandfather paradox?  Then how did she survive?


I am having the problem that almost at the end of my document, I want to add a figure with a footnote in its captin. While this is no problem inside the document where always new text comes where I can put the \footnotetext{} so that the footnote from \protect\footnotemark is forced onto the same page as its mark, this is a problem at the end where no usual text follows anymore. I tried to put the figure inside a minipage and use \vspace to put the footnote at the end of the page (suggested in another discussion), but all that happens is that the footnote is displayed at the end of the previous page. Also I tried to add \phantom or \color{white}{any text} to create some invisible text after the image where the footnote could stick to. But without success. Here is a not so short MWE - the problem does not happen here as most of the document is deleted. Summary: what i need is to force the footnote from \protect\footnotemark and \footnotetext onto the same page as the image. Problem: footnote is on previous page.  \documentclass[a4paper,oneside,abstracton]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} %%Language settings \usepackage[english]{babel} \usepackage{csquotes} \usepackage[hypcap=false]{caption} %%Math, astro, chemical packages and options \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amsbsy} \usepackage{mathtools} %%Paper adjustments \usepackage[a4paper,bottom=3.1cm]{geometry} \usepackage{booktabs} \usepackage{lscape} \usepackage{multirow} \usepackage{multicol} \usepackage{threeparttable} \usepackage{longtable} \usepackage{subcaption} \usepackage{afterpage} \usepackage{tabularx} %%Citations and Referencing \usepackage[]{natbib} \bibpunct[, ]{(}{)}{;}{a}{,}{,} \usepackage[nottoc,numbib]{tocbibind} \usepackage{hyperref}  \begin{document}  \begin{figure}[t] \centering \includegraphics[width=5\linewidth]{Img1} \caption{Img1 Caption.} \label{Fig:Img1} \end{figure}  \begin{figure}[h] \centering \includegraphics[width=0.5\linewidth]{Img2} \caption{Img2 Caption.\protect\footnotemark} \label{Fig:Img2} \end{figure} \footnotetext{\url{xyz}, Date.}  \begin{table}[!htb] \centering \caption{Table1 Caption} \label{Table:Table1} \begin{threeparttable} \begin{tabular}{cccc} \cmidrule{1-4} \morecmidrules \cmidrule{1-4} File Id. & Time [UT] & x & y \\ \midrule fts & long time ago & & \\ \cmidrule{1-4} \morecmidrules \cmidrule{1-4} \end{tabular} \begin{tablenotes}     \item Note 1: abc \end{tablenotes} \end{threeparttable} \end{table}  \end{document}

Maybe this is an easy one, but I struggled with this now too long :)  I want to have a footnote in a caption of a figure, see the example.   \begin{figure}[!ht]   \caption{a figure caption\footnote{where i got it from}}   \label{somelabel}   \begin{center}        \pgfuseimage{...}   \end{center} \end{figure}   The compilation error reads as follows  ! Argument of \@caption has an extra }. <inserted text>              \par  l.192 ...i got it from}}   The actual tex code for my figure with the answer of Leo  \pgfdeclareimage[width=6cm]{aba.medcenter}{aba.medcenter}  \begin{figure}[!ht]   \begin{minipage}{\textwidth}     \caption[Medcenter Monthly Medication System]{Medcenter\textsuperscript\textregistered Monthly Medication System\footnote{Quelle Bild: http://www.amazon.com/dp/B000RZPL0M}}     \label{aba.medcenter}     \begin{center}       \pgfuseimage{aba.medcenter}     \end{center}   \end{minipage} \end{figure}   leads to the error  ! LaTeX Error: Command \itshape invalid in math mode.   in the same line. If I comment out the foot note, everything compiles fine. \textsuperscript\texttrademark isn't the problem, too.


Was Wondering when will 13.00 be available to purchase on a disc from your store, right now the only thing i see to purchase is 12.00

I need to upgrade my existing Ubuntu system, and I also want to install Ubuntu on a new laptop.  I would like to have an installation CD or DVD to do both of these.  Where exactly I can order or request an Ubuntu installation CD/DVD/USB?