package tictactoe.board;   public class Board {      protected char[][] Board= new char[2][2];      Board()     {         viderBoard();     }     private void viderBoard(){     for (int i=0;i<3;i++){         for (int j=0;j<3;j++){             Board[i][j]=' ';         }     }     }     public void afficheBoard() {          System.out.println("\t The Board");          System.out.println( "\n\n" );          System.out.println(  "\n\n" );          for (int i=0;i<3;i++){             for (int j=0;j<3;j++){                 System.out.println(Board[i][j]);                 System.out.println("|");                 System.out.println("\n _");             }         }         }       public int getPosition(int[] tab){             return Board[tab[0]][tab[1]];         }      // Ajouter un mouvement à la grille     public boolean InsererMouvement(int[] tab )     {         if (Board[tab[0]][tab[1]]==' ')         {              Board[tab[0]][tab[1]] = Joueur.getSigne();              System.out.println("Next move");         return(true);         }         else System.out.println("Try again");         return false;     }     public char[][] getBoard()      {         return Board;     }        // Check Board     public boolean checkBoard()     { boolean a=false;       boolean b=false;         // vérifier les lignes     while(a==false)     {for(int i=0;i<3;i++)     {             if ((Board[i][0]=='X')&&(Board[i][1]=='X')&&(Board[i][2]=='X')                     || (Board[i][0]=='O')&&(Board[i][1]=='O')&&(Board[i][2]=='O')                     || ((Board[0][i]=='X')&&(Board[1][i]=='X')&&(Board[2][i]=='X')                     || (Board[0][i]=='O')&&(Board[1][i]=='O')&&(Board[2][i]=='O') ) )                    a=true;             else a=false;     }     }         // vérifier les diagonales              if ((Board[0][0]=='X')&&(Board[1][1]=='X')&&(Board[2][2]=='X')                     || (Board[0][0]=='O')&&(Board[1][1]=='O')&&(Board[2][2]=='O')                     ||(Board[2][0]=='X')&&(Board[1][1]=='X')&&(Board[0][2]=='X')                     || (Board[2][0]=='O')&&(Board[1][1]=='O')&&(Board[0][2]=='O') )                  b=true;             else b=false;         if (a||b)         return(true);         else return(false);     }   }   I have this issue:     Internal compiler error: java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.ast.ReferenceExpression.copy(ReferenceExpression.java:141)   I couldn't find the solution anywhere, could someone help me?

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


What I do have (default way of charging tablets: A) vs. what I want to have (B or C):  Can I have it? It’s a simple thing, so why not? How else can I use a tablet together with a portable hard disk (or with any USB device in fact) when I run out of battery power? Update Marking my question as a duplicate of  is wrong (as @AliChen explains on my behalf in a comment below). In fact, I already use a USB hub connected to a universal USB charger to split electric power and charge multiple devices. And that hub is not even powered – it’s passive. So I know the answer to the other question very well – even without reading it. This is different from using a single USB socket to charge a tablet and connect that tablet to a pendrive at the same time (presumably by the means of some kind of USB hub).

This will probably sound familiar to most of you... In my home, we have a whole bunch of devices that can be charged via USB (two iPhones, a BlackBerry, an iPod Touch, etc ad nauseam). We also have a bunch of USB chargers, each of which has a single USB port on it. I'd like to have something permanently connected to AC power with at least 4 USB ports on it, so we can just plug devices in and don't need to go looking for a free outlet.  So here's the question: if I buy a powered USB hub, will that do the job even if I don't connect it to a PC? Ideally if you have a hub that you can personally verify will be suitable, let me know the manufacturer and model :-)  Thanks in advance!  EDIT: The solution I eventually went for was this:    There's also a US version here:    It arrived yesterday, so I used it to charge the following devices, all at the same time, overnight last night:   32GB iPhone 3GS 16GB iPhone 3G First-generation iPod Touch    I can't say anything about the charging speed (as I left it overnight) but all devices were fully charged this morning.


First i need to add in table of content, tables of figures and list of tables the title and page as i circle in picture which show my need..  \documentclass{UnimasThesis} \usepackage{graphicx} \usepackage[labelfont=bf]{caption} \captionsetup{labelfont=bf} \usepackage{pdflscape} \usepackage{adjustbox} \usepackage{dcolumn} \usepackage{booktabs} \usepackage{amsmath} \usepackage{cases} \usepackage[os=win]{menukeys} \usepackage[paper=a4paper]{geometry} \usepackage{multirow} \usepackage[]{algorithm2e} %\usepackage{enumerate}    \usepackage{listings} \lstset{language=[LaTeX]TeX,columns=fullflexible, basicstyle=\ttfamily,texcsstyle=*\bfseries\color{NavyBlue}, commentstyle=\itshape\color{PaleVioletRed4}, frame=single,framesep=6pt, framexleftmargin=6pt,framexrightmargin=6pt, xleftmargin=12pt,xrightmargin=12pt, breaklines=true,breakatwhitespace=true}   \title{Automatic Segmentation of Cardiac Magnetic Resonance Images for Oedema Assessment} \author{\textbf{Amajd Khan}} \faculty{Faculty of Computer Science and Information Technology} \facultyColour{6c7a8c} %% 6-digit RGB hexadecimal code  \submissionyear{\textbf{2017}} \degreetype{\textbf{Doctor of Philosophy}}  % If using APA bibliography style  \usepackage[natbibapa]{apacite}  \bibliographystyle{apacite}    %\usepackage{natbib}  %\bibliographystyle{apalike}    \newgeometry{top=3cm, bottom=3.00cm, right=2.5cm, left=2.5cm}  %\usepackage{etoolbox} % "lipsum" for filler text %\makeatletter  \makeatletter    \def\@makechapterhead#1{%     %%%%\vspace*{50\p@}% %%% removed!     {\parindent \z@ \Large         \ifnum \c@secnumdepth >\m@ne         \centering \Large\bfseries \MakeUppercase{\@chapapp}\space \thechapter         \par\nobreak         \vskip 3\p@         \fi         \interlinepenalty\@M         \centering         \Large \bfseries #1\par\nobreak         \vskip 20\p@ }} %\def\@makeschapterhead#1{% %  %%%%%\vspace*{50\p@}% %%% removed! %  {\parindent \z@ \raggedright %    \normalfont %    \interlinepenalty\@M %    \Huge \bfseries  #1\par\nobreak %    \vskip 40\p@ %  }} \makeatother   \begin{document} \maketitle  \frontmatter  \newpage~ \thispagestyle{empty} {\centering {Automatic Segmentation of Cardiac Magnetic Resonance Images for Oedema Assessment} \par} \vspace{4.7cm} {\centering Amjad Khan\par} \vspace{4.7cm} {\centering A thesis submitted \\     in fulfillment of the requirements for the degree of \\     Doctor of Philosophy\par}  \vspace{5.5cm} {\centering Faculty of Computer Sciences and Information Technology\\     UNIVERSITI MALAYSIA SARAWAK\\      2017\par}   % List of conformation may be prepared as in confirmation.tex %\input{confirmation} % List of declaration may be prepared as in confirmation.tex \input{declaration}  % Acknowledgements from ack.tex \input{ack}    % English abstract from abstract-en.tex \input{abstract-en}  % Malay Abstract from abstrak-ms.tex %\input{ABSTRAK}     %\input{abstract-mal} % Malay Abstract from abstrak-ms.tex \input{abstrak-ms}      % LIST OF TABLE  \tableofcontents \listoffigures \listoftables  % List of Symbols may be prepared as in symbols.tex \input{symbols}  \mainmatter % Each chapter from a separate file \input{chap1-Introduction} \input{chap2-literature} \input{chap3-NEW} \input{chap4-contoursegmentation} \input{chap5-assessment} \input{chap6-oedema} \input{chap7-conclusion} %\appendix %\input{app-Guidelines} %\input{app-code} %\input{app-results}   % references are listed in refs.bib \bibliography{refs}   \end{document}

I am using my school's latex . Unfortunately, since this package was last updated, we are now required to add the word 'Page' above the topmost page number on each page of the Table of Contents. This cls file includes the following bit of code, which puts 'Page' at the top of the first page, but not any subsequent pages (see attached)  \newcommand\chapteruaf{ \if@arabic\relax\else\if@chapterone\setcounter{page}{1}\else\relax\fi\fi \@chapteronefalse                     \if@openright\cleardoublepage\else\clearpage\fi                     \thispagestyle{myheadings}%                                                                                \global\@topnum\z@                     \@afterindentfalse                     \secdef\@chapter\@schapteruaf} \def\@schapteruaf#1{\if@twocolumn                    \@topnewpage[\@makeschapterheaduaf{#1}]%                                                                                \else                    \@makeschapterheaduaf{#1}%                                                                                \@afterheading                  \fi} \def\@makeschapterheaduaf#1{%                                                                                {\parindent \z@ \centering     \reset@font     \normalsize \bfseries  #1\par                                                                                \vspace{-18.3pt}\hspace{143mm} Page                                                                                \nobreak   }}   First page of the TOC:   second page of the TOC:   Any thoughts here? I have played with this a bit, and can't get it to work. Thanks.


SO, I'm just an enthusiast who's been doing some reading - and I don't have the level of math training to get my answer from the equations - so I apologize in advance if this is a stupid question.   I have been reading about the photon interference patterns in the double-slit and interferometer experiments...and how photons, even sent individually, will create an 'interference pattern with themselves' due to the duality of their wave-particle nature. I've also been reading about the theoretical (almost philosophical) explanations for decoherence such as 'multi-world' and the Copenhagen Wavefunction Collapse theories.   The question:   It seems that all of these experiments could be explained not by the photon having a constant dual wave-particle nature, but if it swapped completely in and out of one or the other.   I.e. when traveling 'uninterfered'* through empty spacetime (vacuum) the photon is entirely waveform with no particle characteristics. Upon interacting with something that can absorb and reflect (or eject new energy from a metastable state) the entire energy of the wave (not wavefunction but actual energy of the wave) collapses back into a point-area, before metastasizing (correct term?) back into wave energy (reflected).   Using a classical analogy, a (particulate) droplet of water falls onto the surface of a pond. At the point of contact, the droplet - for all intents and purposes - ceases to exist and becomes entirely wave energy in the form of a ripple.    The analogy breaks down when the wave, instead of expending it's energy evenly over the length of the shore; at the first point of contact with the shore, the ENTIRETY of the ripple's energy collapses - physically - back into a 'point', after which some of the energy is absorbed, but the remaining energy is again expressed - from that point - back out into the pond entirely as wave energy.   *I use the term 'interfered with' instead of observed, to avoid the idea that actual measurement must occur. Based on the above, anytime the wave energy interacts with something that can absorb/reflect any ratio of it - it collapses and then re-expresses - regardless of whether observed or not.   Thus, if the photon was reflected off two mirrors before being collected and 'observed', the process would still occur.   Has this already been addressed and discarded?

I often hear about the wave-particle duality, and how particles exhibit properties of both particles and waves. However, I wonder, is this actually a duality? At the most fundamental level, we 'know' that everything is made up out of particles, whether those are photons, electrons, or maybe even strings. That light for example, also shows wave-like properties, why does that even matter? Don't we know that everything is made up of particles? In other words, wasn't Young wrong and Newton right, instead of them both being right?


I am daily follower of Stack Overflow and I have seen one weird tag. When I click on a particular tag then all the questions regarding that tag will be display, right? Check this image:   Is this correct? Shouldn't it only display JavaScript questions here?

This is meant to be a canonical Q&A for all the caching questions we get on meta    What is caching? Where is caching employed across the network?  Approximately how long ought it take for each cache to update?


I'm trying to insert a picture in the caption to illustrate something. How can I do that?  Currently, I use the following code, the tex engine prompts uncontrolled sequence error.  \caption{Some caption words. \raisebox{-0.4\height}{\includegraphics[width=1em]{fig}} some other caption words.}

Similar to , I would like to insert an external icon inside figure captions, something like:  \begin{figure} \caption{text with \includegraphics{icon} somewhere inside} \includegraphics{image} \end{figure}   How might this be done?


In Episode 08 and 09 of Season 02, in Netflix's , we see Frank Castle (Punisher) in prison.  Why do all the other inmates, including Fisk, wear orange jumpsuits, while Frank Castle wears white?  I'm looking for an in-universe explanation (a red skull logo pops much better on white than it would on orange, so that makes sense as a meta, out-of-universe decision).

In Daredevil S02, we see two kinds of prison uniforms, full orange and full white. We see in the flashback that Wilson Fisk gets a white prison uniform but his current one was orange.  The Punisher was also given a white prison uniform but most of the prisoners had orange uniforms. What was with the two different colored uniforms? Does it have some significance or is it just random? Does it happen similar in real life US prisons too?


Can we use 'would' rather than 'might' in the following sentence?      Some students find it more difficult to sustain their motivation online than they might as part of a real learning group.

Please let me know if "would" and "may" can be used in the following sentence instead of "might"?      But despite these interpersonal elements, some students find it more difficult to sustain their motivation online than they might as part of a real learning group.


I have a card reader in my laptop. Today I needed to copy some files to the SD card.  Unfortunately, Ubuntu said it's read only. It wouldn't let me set permissions for the SD card in nautilus either.  It copies files to USB sticks and phones but not to the SD.  How do I fix this?

I've got an IcyBox USB hub/card reader combo in my computer, running Ubuntu 12.10.  It's got an issue with SD cards.  It always mounts them read-only, regardless of the write-lock switch.  This is observed across many SD cards that otherwise work, and crucially occurs for a microSD in an adapter, where the microSD was fine in the microSD slot in the reader.  Anyone got any ideas as to what's going on and how I can fix it?


Have been searching a couple of hours now just so I can find out how I can testfor a nearby player... One thing I noticed is that testfor doesn't even work anymore so whats the deal with that? I have been using /testfor @a[r=5] but yeah, not anymore...

I can't seem to figure this out. I am trying to testfor if a player is near certain coordiantes, namely {-9, 100, 16}, and then to teleport them somewhere else.  In earlier versions it would be /testfor @a[x=-9,y=100,z=16,r=2] in a repeating command block going into a chain conditional command block that says /tp @p ~8 ~ ~, although it seems in 1.13 they have removed /testfor. I've seen that apparently I'm supposed to use /execute now in some way but I'm not sure how.


I read this link  in which it is discussed why 60 parameters randomly chosen are enough.  But I do not fully understand the formula used   $$1−(1−0.05)n>0.95$$  $$n⩾60$$  I have read the paper of Bergstra and Bengio; but I have not found anything about that formula. Also, I was wondering if RandomSearch is only good for Neural Networks; as I am using RandomForest, XGBoost and SVM.  Thank you

I'm currently going through Bengio's and Bergstra's Random Search for Hyper-Parameter Optimization  where the authors claim random search is more efficient than grid search in achieving approximately equal performance. My question is: Do people here agree with that claim? In my work I've been using grid search mostly because of the lack of tools available to perform random search easily. What is the experience of people using grid vs. random search?


I do this to upgrade 15.10 to 16.04:       $ sudo apt-get update     $ sudo apt-get dist-upgrade     $ sudo do-release-upgrade  and after download from xenial repositories, show me this:   Checking package manager Reading package lists... Done Building dependency tree Reading state information... Done  Calculating the changes  Calculating the changes  Could not calculate the upgrade  An unresolvable problem occurred while calculating the upgrade.  This can be caused by: * Upgrading to a pre-release version of Ubuntu * Running the current pre-release version of Ubuntu * Unofficial software packages not provided by Ubuntu  If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.   Restoring original system state  Aborting Reading package lists... Done Building dependency tree Reading state information... Done === Command detached from window (Sun Apr 24 23:59:43 2016) === === Command terminated with exit status 1 (Sun Apr 24 23:59:53 2016) ===    I reported the bug to ubuntu wbsite. Any idea to fix this problem and upgrade to 16.04?   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I found this and my problem is solved now :) Try executing:   grep ERROR /var/log/dist-upgrade/main.log  Hopefully this will show you the names of conflicting packages. For me it was (I broken long line to be easier to read):  2014-10-25 18:15:05,915 ERROR Dist-upgrade failed:      'The package 'postgresql-9.3-postgis-2.1'      is marked for removal but it is in the removal blacklist.  postgresql-9.3-postgis-2.1 is conflicting package here. It will probably be different one or some for you. You can then remove it/them by:   sudo apt-get remove conflicting-package-1 conflicting-package-2 ...  Then just restart distribution upgrade.   in

I just finished backing up my system and when I try to upgrade to Utopic Unicorn, I get the error "Cannot Calculate the upgrades." I ran the upgrade by sudo apt-get dist-upgrade, sudo do-release-upgrade after the GUI method failed, they all gave the same error.  The feedback gives some recommendations:  This can be caused by:  * Upgrading to a pre-release version of Ubuntu  * Running the current pre-release version of Ubuntu  * Unofficial software packages not provided by Ubuntu    I am not upgrading to a pre-release version nor coming from one, I'm going from Ubuntu 14.04 LTS to 14.10. I have no broken packages and I have unchecked all my non-official software sources in the 'Software & Updates' manager.  My guess left is the Unofficial software packages not provided by Ubuntu. If anyone could give any help as to how to check for unofficial packages using Synaptic or another, my appreciation.  Are there any other factors that may be causing this error and how would I go about checking/fixing those?  Thanks.  Edit: I have no broken or held packages. Everything is up-to-date, and restarting everything or anything has no effect.


I am using a Dell Venue 8 pro. I think Windows 8.1 is not a good OS for tablet devices. I believe that Ubuntu is working well on tablets, but I've read that people are having issues with touch input and internet access when running Ubuntu on this device.  Is it possible to use Ubuntu on Dell Venue 8 pro?   If it is possible, how can I boot it?

I am a bit financially strapped and received a Gateway GT5056 tower. The tower has an AMD dual core 64-bit processor in it. Will Ubuntu 12.04 run on this machine? I will not have any other application other than LibreOffice installed.


My platform: U 14,04 LTS.  A problem with the modemmanger 1.0, that impossible to execute a connection via mobile broadband. Now I have to downgrade the modemmanager by version 0.5.2. Every perform      apt-get update && apt-get upgrade   the system will upgrade all new version package, of course also the modemmanager.  How to keep only the modemmanger staying not upgrade?

Update manager keeps wanting to install updates for LP-PPA-libreoffice / office productivity suite language packages  Afrikaans Assamese Bengali Breton ............. Zulu   I deactivate each language that I dont need in the click box, but they come back again the next day  How do I instruct Update Manager that the only languages that I need are Luxembourgish, German, French and English?


So I am trying to make an app that saves a text file sa device and uses the timestamp as the file name then yung same file would be sent to the computer to a specific folder. I am trying to start off by having the file saved and read in my device. My code runs but when I enter the data and press the save button to save the file, the app crashes.  Posted is the logcat of the app. Can't seem to find what's wrong. Any help would be useful. Thanks.

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


My sites got infected with some bad malware that has inserted malicious code on at least 3135 files (all my wordpress sites).  This is one of the files infected:   And here is my desired output:   I have no idea about Unix commands, besides some simple find and grep commands.  After some research I found about the sed command but I don't know how to use it in my case.   As you can see from the above code, the general pattern is that the code is inserted at the top of each file, meaning before the original <?php tag (which means now the original <?php tag is second.  So I thought I could find all the files containing cnajwp = and remove everything before the second <?php tag.  I can find the files containing cnajwp by using   find * -type f -name "*.php" -exec grep -l "cnajwp =" {} \;   but I don't know how to replace everything before the second <?php tag on these occurrences.  Could anybody here give me a helping hand?


I'm using ArcMap 10.  I want a python script that  tells me the Xmin, Xmax, Ymin, and Ymax of a polygon. (I guess this is finding the extent of a polygon?)  My current script gives me the correct the Xmin and Xmax, but it gives me the Ymin and Ymax of the data frame. I want the Ymin and Ymax of a polygon.  Here is my current code:  # Specify the shapefile shapeFile = "C:/Big_Creek_MapUnits.shp"  # Use the describe function desc = arcpy.Describe(shapeFile)  # Print stuff out arcpy.AddMessage(desc.extent.Xmin) arcpy.AddMessage(desc.extent.Xmax) arcpy.AddMessage(desc.extent.Ymin) arcpy.AddMessage(desc.extent.Ymax)   Anyone have any solutions or tips?

In ArcGIS 10 and Python I want to get the extent (xmax, ymax, xmin, ymin) info of each of the polygons in a shapefile.  I can get the extent of the whole shapefile using  file=r"D:\SCRATCH\ARCGIS\100k_trc_tiles_TVM.shp" desc=arcpy.Describe(file) print desc.extent.Xmax      394551.52085039532   But I can't seem to figure out how to get the same info for each row in the dataset.  rows = arcpy.SearchCursor("100k_trc_tiles_TVM") for row in rows:  print row   prints the 31 rows in the dataset but   for row in rows:  desc=arcpy.Describe(row)  print desc.extent.Xmax   gives an error.     Runtime error : Object: Describe input   value is not valid type   I was thinking of adding the extent values to the table using "calculate geometry" but this only gives the centroid. Then I guess we can use something like row.GetValue("xmax").  That being said I know that we can create the X/Y, max/min using the function from  but it would be best if we can avoid having to add fields, especially if ArcPy can get these values.  Basically I need to get the extents to feed into the clip tool to clip out 30 areas of data (according to the 1:100,000 map sheets) for geoprocessing since the Split tool fails due to the large size of the dataset (see ). I want to automate this as it is repeated on a number of datasets.  === working script ===  # Emulates Arc Info SPLIT tool by using Clip but # Requires a FC from which each row is used as the input clip feature. # Each row must be rectangular. # Used on 12GB FGDB with 100 million records.   #Licence: Creative Commons #Created by: George Corea; georgec@atgis.com.au, coreagc@gmail.com import arcpy, string  #inFrame=arcpy.GetParameterAsText(0) # Input dataframe FC #inFile=arcpy.GetParameterAsText(1) # Input FC for splitting #outDir=arcpy.GetParameterAsText(2) # Output FGDB  inFrame=r"D:\SCRATCH\ARCGIS\100k_trc_tiles_TVM.shp" inFile=r"c:\junk\106\data\7_Merge.gdb\FullRez_m2b" outDir=r"D:\SCRATCH\Projects\206\datasplit\test_slaasp.gdb" #NameField="Name_1"  #arcpy.env.workspace = r"C:/Workspace" arcpy.env.overwriteOutput = True  rows = arcpy.SearchCursor(inFrame) shapeName = arcpy.Describe(inFrame).shapeFieldName for row in rows:     feat = row.getValue(shapeName)     Name = row.Name_1     print "Executing clip on: "+str(Name)     extent = feat.extent     #print extent.XMin,extent.YMin,extent.XMax,extent.YMax # Create an in_memory polygon     XMAX = extent.XMax     XMIN = extent.XMin     YMAX = extent.YMax     YMIN = extent.YMin     pnt1 = arcpy.Point(XMIN, YMIN)     pnt2 = arcpy.Point(XMIN, YMAX)     pnt3 = arcpy.Point(XMAX, YMAX)     pnt4 = arcpy.Point(XMAX, YMIN)     array = arcpy.Array()     array.add(pnt1)     array.add(pnt2)     array.add(pnt3)     array.add(pnt4)     array.add(pnt1)     polygon = arcpy.Polygon(array)     ShapeFile = outDir+"\\temp_poly"     arcpy.CopyFeatures_management(polygon, ShapeFile)      #print Name ### Set local variables     in_features = inFile     clip_features = ShapeFile     out_feature_class = outDir+"\\"+Name     xy_tolerance = "0.22"      # Execute Clip      try:         arcpy.Clip_analysis(in_features, clip_features, out_feature_class, xy_tolerance)         print "Completed: "+str(Name)     except:         error = arcpy.GetMessages()         print "Failed on: "+str(Name)+" due to "+str(error)


I'm trying to change the iframe height parameter to the same px of the page being loaded within the iframe. The page that's being loaded in the iframe is coming from another domain.  Different pages will be loaded up inside of the iframe causing the height of the iframe content to change, So I will need to grab the iframe content height and apply it to the iframe height parameter.  Here a example of what im talking about:
Amazon

Cnn

Wikipedia
    .  $(document).ready(function() {     var iframe = $( "#source" );     $( "a[target=_top]" ).click( function(){         iframe.attr( "src", this.href );         return false;     });  });

I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes.   How do I resize the iframes to fit the height of the iframes' content?  I've tried to decipher the javascript Google uses but it's obfuscated, and searching the web has been fruitless so far.  Update: Please note that content is loaded from other domains, so the  applies.


I have been stuck trying to show $\limsup_{n\to\infty}s_n^{1/n}\leq\limsup_{n\to\infty}s_{n+1}/s_n$ for any sequence of positive reals, $s$ given that $\limsup_{n\to\infty}s_{n+1}/s_n=\lim_{n\to\infty}s_{n+1}/s_n=L\in\mathbb{R}$ I wonder if it would be appropriate to combine the limits: $\lim_{n\to\infty}\left(\sup_{m>n}s_m^{1/n}-\sup_{m>n}s_{m+1}/s_m\right)\geq0$ Since we know so little about $s$, I don't think combining the $\sup$ will be very helpful. So how can we find a relationship between these to prove the inequality? Even if we were to combine them, we don't know any relationship between $s_n$ and $s_{n+1}$. Of course, $s_{n+1}/s_n$ is bounded, so perhaps we can use this to but a bound on $\sup s_n^{1/n}$ and pin it between $0$ and $L$ instead of messing with combining the limits. This may be preferable since it seems impossible to establish a relationship between the elements of the two derived sequences, given so little information about $s$.

This may have been asked before, however I was unable to find any duplicate. This comes from  of "Mathematical Analysis: An Introduction" by Browder. Problem 14:     If $(a_n)$ is a sequence in $\mathbb R$ and $a_n > 0$ for every $n$. Then show:   $$ \liminf(a_{n+1}/a_n) \le \liminf((a_n)^{(1/n)}) \le \limsup((a_n)^{(1/n)}) \le \limsup(a_{n+1}/a_n)$$   The middle inequality is clear. However I am having a hard time showing the ones on the left and right. (It seems like the approach should be similar for each). This is homework, so it'd be great if someone could give me a hint to get started on at least one of the inequalities.  Thanks.


$$\left[\begin{array}{l}1&1&1&1\\1&1&1&1\\1&1&1&1\\1&1&1&1\end{array}\right]$$  I am having difficulties with calculating this. Currently I'm stuck at finding the determinant of the following matrix:  $$\left[\begin{array}{l}\lambda-1&-1&-1&-1\\-1&\lambda-1&-1&-1\\-1&-1&\lambda-1&-1\\-1&-1&-1&\lambda-1\end{array}\right]$$  Is there a "smart" way/trick to get the result or should I just crunch the numbers through Gaussian elimination? Normally it is not that difficult to do this, but if all the elements of the matrix are the same, it somehow got me confused.

I have the following $n\times n$ matrix:  $$A=\begin{bmatrix} a & b & \ldots & b\\ b & a & \ldots & b\\ \vdots & \vdots & \ddots & \vdots\\ b & b & \ldots & a\end{bmatrix}$$  where $0 < b < a$.  I am interested in the expression for the determinant $\det[A]$ in terms of $a$, $b$ and $n$.  This seems like a trivial problem, as the matrix $A$ has such a nice structure, but my linear algebra skills are pretty rusty and I can't figure it out.  Any help would be appreciated.


I am not sure if this is the right place to post this, but here is the situation.  In about two weeks or so I will be giving a 2-3 hours lecture on some topic in mathematics to freshman and sophomore high school kids. I am required to find some interesting topic, but that doesn't require any advanced mathematics. I believe, all I can use is up to, but not including, Calculus.   So, I was wondering if any of you guys could help me brainstorm some interesting topics that I could talk about, without using any advanced mathematics.  Thank you in advance!

I'm giving an hour long lecture to high school math students with a fairly high aptitude in math. I want to present something a little advanced for them (undergrad level) that they have to struggle with. So I want to be able to present a fact and prove it, or present an interesting theory in a single standalone hour long lecture. Any ideas as to what I should speak on?


If we know that $\frac{2^n}{n!}>0$ for every $n\in \mathbb{N}$ and $$\frac{2^n}{n!}=\frac{2}{1}\frac{2}{2}...\frac{2}{n}$$ how to bound this sequence above?

Why is     $$\lim_{n \to \infty} \frac{2^n}{n!}=0\text{ ?}$$   Can we generalize it to any exponent $x \in \Bbb R$? This is to say, is     $$\lim_{n \to \infty} \frac{x^n}{n!}=0\text{ ?}$$     This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


On a Canon 600D, what are the best settings for a 4-8sec long exposure in the daytime? I have tried manual and shutter priority modes but photos always come out completely white.

I would like to take a picture of a street during the day to depict how much traffic and cars there are on the street.  Is there anyway to do this with a long exposure photograph?  I have a Nikon D90 and I set the f stop down to 1/16 (the lowest of my lens) and set the time to 2 seconds. Doing this, the exposure is almost saturated when taken around 5pm with the sun setting behind a tree. Doing this, the cars passing by were very hard to make out against the stationary background, being visible as a blur in the color of the car.  Perhaps this is not possible and I should just do this at night where the cars lights are much brighter than the background.  Please suggest how else I might depict the traffic in a photograph?  Are daytime long exposure photographs even possible?


While reading a technical book, I stumbled upon the following sentence:     It is important [that all Java programmers be fully versed in, and comfortable with, the traditional approach].   For me, it's kinda counterintuitive to see Java programmers be here. I would understand for Java programmers to be or that Java programmers are, but not the existing variant.  Since it’s far from the first time I have seen such a construct, obviously there must be some grammatical explanation to it. I only wish someone could enlighten me about the exact rules being used here.

Why is this sentence correct?     She suggested that he go to the cinema.   I would definitely use goes instead of go.


I'm interested in self teaching myself Real Analysis with the primary purpose of using it for economics, for this I decided to use  by Efe A. Ok  Now what I was wondering was if this was a good book for somebody without a Maths background to use to self study a thing, as I'm primary interested in it for the methods used in economic theory.   Am I making a mistake reading this now or do I need more background in Maths to read this particular book? As I'm not finding it the most easy thing to read and I'm not sure if I'm understanding everything in it correctly, 50 pages in and I've already got quite a headache! Which sucks.

During the next quarter at uni, I'll be taking a course in real analysis and since I prefer studying with an additional text I thought I'd come here to look for some book recommendations.  My background: I'm comfortable with linear algebra and single variable calculus, but shakey on multivariable calculus. I did have a slight introduction in to geometry.  For linear algebra I found the common recommendation of Hoffman & Kunze to be very helpful (although the abstractness came as a bit of a kicker at first).   For Single variable calculus I used the book Calculus by Adams and Essex, which I found frustrating to work with, because it often left me guessing at what they were trying to do or why they were doing it. I also felt that they exercised a certain lack of rigour. (Which may be due to the subject which would make it hard to derive from axioms.)  Details: Though it would be a complementary text, I'd prefer one which will still hold value as a work of reference at a later point in my studies. I've heard that Rudin's Principles of mathematical analysis is one of the better textst out there, but also read several comments discouraging Rudin's book as a first introduction to real analysis, hence my quest to gather more information and maybe get some more personalised recommendations.  The course: The mandatory course literature will consist of lecture notes, but 4 texts are suggested as recommended reading.   T.M. Apostol, Mathematical analysis. Addison-Wesley (1974) J. Dieudonné, Foundations of Modern Analysis. Academic Press (1960) A. van Rooij, Analyse voor Beginners.Epsilon Uitgaven, no. 6 (2003)   R.S. Strichartz, The way of analysis (1995)   Thanks in advance!


Often you see diagrams like these.  Which makes me wonder what is the definition of a layer, because as it is drawn, it is very vague.  For example, when people say a fully connected layer, what do they mean by a layer?    From the diagram, it seems that:   The input layer is a set of components associated with your input vector, as well as the value of the weights going to the hidden layer, i.e., let your input vector $x = (x_1, \ldots, x_n)$, then the input layer is the set $$L_i = \{x_1, \ldots, x_n\} \cup \{w_{ij}\},$$ where $w_{ij}$ are the weights associated with the input layer.  The hidden layer as well as the output layer consists of a set of activation functions $a_i$ which transforms the input $x$ into a set of outputs $o_i$, along with the weights going into the next hidden layer,i.e.,  $$L_H = \{a_i\} \cup \{o_i\} \cup \{w_{ij}\} $$.   Is my interpretation correct?

What is the precise definition of layer in neural network? Are things like concatenate functions, activations, batch normalizations, skip connections considered as layers?


I have a windows full path which I try to validate using regex. According to  I have to add "\\\\\\\\" but this is not working. What am I doing wrong? import re  regex1 = re.compile('downloads\\\\test_dir\\\\sql\\\\my-ee.sql')   s = "C:\x\xxx\temp\downloads\test_dir\sql\my-ee.sql"   gg = regex1.match(s)  gg is None.

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


I don't want to have to deal with terrain when I am rebuilding someone's world on PC Minecraft. They started their world before 1.8 and so I cannot look at F3 to find the seed. Does anyone have an answer?

The world I've been playing crashed recently and took the level.dat with it, so I've recreated it, however I have no idea what my seed used to be, and I really don't want to end up with another corrupted game world from exploring with the wrong seed.  How can I recover the seed which was used to generate my world?


I created 4 Personas for an online car reseller based on focus-group and analytics data. The head of sales pointed out that there are more user groups on our website.   I know that usually 3 personas is ideal so I'm left wondering how to proceed.   How do you determine the number of personas?   How do you decide what users should be represented by a persona?

I'm actually working on a mobile app. My boss asked me to focus all the design on one principal user archetype because he thinks that the way to create product interfaces and features with a strong design-bias.  I have some doubt. I'm afraid to lose essential needs doing like that.  So I would like to know for how many personas should I focus my design for a mobile app? Only one is that a smart choice?   It's a mobile app for professionnals, to do expense reports.


I have one row that I would like to split into columns for example column name is Code with the row showing 01,04,07 for product items. I want to split up the product items into columns. Any suggestions would be helpful as I have tried the older functions but realized the SQL version I am working on does not have those options such as string_split and character index. I used instr() and substring() but a buyer may purchase more or less items than shown above.

I have to create a report on some student completions. The students each belong to one client. Here are the tables (simplified for this question).  CREATE TABLE  `clients` (   `clientId` int(10) unsigned NOT NULL auto_increment,   `clientName` varchar(100) NOT NULL default '',   `courseNames` varchar(255) NOT NULL default '' )   The courseNames field holds a comma-delimited string of course names, eg "AB01,AB02,AB03"  CREATE TABLE  `clientenrols` (   `clientEnrolId` int(10) unsigned NOT NULL auto_increment,   `studentId` int(10) unsigned NOT NULL default '0',   `courseId` tinyint(3) unsigned NOT NULL default '0' )   The courseId field here is the index of the course name in the clients.courseNames field. So, if the client's courseNames are "AB01,AB02,AB03", and the courseId of the enrolment is 2, then the student is in AB03.  Is there a way that I can do a single select on these tables that includes the course name? Keep in mind that there will be students from different clients (and hence have different course names, not all of which are sequential,eg: "NW01,NW03")  Basically, if I could split that field and return a single element from the resulting array, that would be what I'm looking for. Here's what I mean in magical pseudocode:  SELECT e.`studentId`, SPLIT(",", c.`courseNames`)[e.`courseId`] FROM ...


I'm trying to pass a list of files with a known set of characters to sed for a find and replace.  For a directory containing multiple .xml files:  ls -la  file1.xml file2.xml file3.xml   Each containing a matching string:  grep -i foo *  file1.xml <foo/> file2.xml <foo/> file3.xml <foo/>   Replace foo with bar using a for loop:  for f in *.xml; do ls | sed -i "s|foo|bar|g" ; done   Returns:  sed: no input files sed: no input files sed: no input files   I already figured out an alternative that works, so this is mostly for my own edification at this point.  find /dir/ -name '*.xml' -exec sed -i "s|foo|bar|g" {} \;

I am using GNU sed 4.2.2 and after searching cannot find out the reason sed behaves oddly in some situations:  I have a directory with the following:  foofile.txt barfile.txt bazfile.txt config/   Case 1  sed -i 's/foo/bar/g' *.txt   This works as I expect.  It replaces all the "foo"s with "bar"s in the three regular files.  Case 2  sed -i 's/foo/bar/g' * sed: couldn't edit config: not a regular file   It replaces "foo" with "bar" in barfile.txt and bazfile.txt, but not in foofile.txt.  I assume it goes through the list of files expanded from the * alphabetically, and when it hits config/ it errors and exits.  Is there a way to have sed ignore errors and continue processing files?  Case 3  for file in $(find . -maxdepth 1 -type f); do sed -i 's/foo/bar/g' <"$file"; done sed: no input files sed: no input files sed: no input files   Could someone please explain why sed does this?  Why does it say there's no input file when it's being given one?  I know that I can use the following but I'm asking why sed acts this way, not how do I solve this one use case.  find . -maxdepth 1 -type f -exec sed -i 's/foo/bar/g' {} \;


Let $A$ be a ring, and let $a \in A$. Can the prime ideals of $A_a$ be identified with those prime ideals of $A$ which do not contain $a$?

If $A$ is a ring and $S=\{1,f,f^2,f^3,...\}$ a multiplicative set of $A$, prove that $\mathrm{Spec}(A_f)=\mathfrak{V}((f))^c$.   Notation: $A_f=S^{-1}A$ and $\mathfrak{V}((f))=\{P \in \mathrm{Spec}(A): P \supset (f)\}$  My attempt:   On one hand, if $P \in \mathrm{Spec}(A)$ and $P \cap S$ is empty then we identify $\mathrm{Spec}(A_f)=\mathrm{Spec}(S^{-1}A)=\{P \in \mathrm{Spec}(A): P\cap S= \emptyset\}$.  On the other hand, $\mathfrak{V}((f))^c=\{P \in \mathrm{Spec}(A): P \nsupseteq (f)\}$.   So the exercise is equivalent to prove: $$\{P \in \mathrm{Spec}(A): P\cap S =\emptyset\}=\{P \in \mathrm{Spec}(A): P \nsupseteq (f)\},$$ but I can't continue so I'd appreciate if somebody could help me.   Thanks in advance.


Robert Heinlein wrote a novel (one of his earlier novels, I believe) in which China had invaded the USA and the Americans, in order to combat and confuse their invaders, developed a weapon (tool?) which could change matter into just about anything. I am looking for the title of that book and I apologize for the short summary (which may be only partially accurate -- I am old and my memory is fading).  But I'd like to get a copy of that old book.  Any help would be greatly appreciated.  Thank you.

I vaguely remember a SciFi novel from my younger days, where scientists discover "alternative" forms of power beside electromagnetism.  I do not remember the specific forms, but it was something along the lines of "electrogravity", "magnetogravity" etc. -- you get the idea. If I remember correctly, the effects of these power forms were basically psionic / magic in nature.  Unfortunately I remember very little of the actual plot, and couldn't put it into words with any coherency. Some treachery from within the group of scientists, perhaps some involvement of aliens? I cannot really remember. I just remember I enjoyed the story very much, and would like to re-read it.  The title could be "The fifth column" or similar -- then again I might be confusing two seperate novels.  I know that's not much, sorry. Anyone remembers this?


I'm working with the code in a MFC project that uses CArray class to work with dynamic arrays. It works as such:  CArray<CUSTOM_STRUCT> arr; while(some_criteria) {     CUSTOM_STRUCT cs;     add.add(cs); }   This approach works, but becomes really slow with a large number of additions to dynamic array. So I was curious, is there a way to preallocate memory in CArray before I begin calling the add() method?  There's one caveat though. I can only estimate approximately the resulting number of elements in the array before I go into my while() loop.  PS. I cannot use any other arrays than CArray.  PS2. Due to complexity of this prokect, I would prefer to keep additions to the array via the add() method.

Someone mentioned it in the IRC as the slicing problem.


I know that the degree is at most $6$, since $\sqrt{2} + \sqrt[3]{5} \in \mathbb Q(\sqrt{2}, \sqrt[3]{5})$, which has degree $6$ over $\mathbb Q$. I'm trying to construct a polynomial with root $\sqrt{2} + \sqrt[3]{5}$ and coefficients in $\mathbb Q$ of degree $6$, and then show that it is irreducible over $\mathbb Q$.   I managed to find that it is a root of the polynomial $x^6 - 6x^4 - 10x^3 +12x^2 - 60x +17$. This is where I run in to some problems. I don't know how to show that this is irreducible over $\mathbb Q$ (or $\mathbb Z$). The only criteria we have learned is Eisenstein's criteria, which clearly does not apply here. How else can I show that the degree of this number over $\mathbb Q$ is $6$?


Since the most recent big Windows anniversary update, the previous option to disable automated reboots on Windows Updates has stopped working. The system gives you the option to set "active hours", but only 12 hours may be set. I'm not against rebooting, but I want it fully on my terms, manually. Is there a way since the anniversary update to disable automated reboot?

We've upgraded some machines to Windows 10 and realized there were some updates which updated as required. However, I realized there was no option available to stop the download similar to that on Windows 7 and 8.1. The only way I could stop the download was to stop the Windows Update service.  My question is does anyone know of a way to stop auto updates or is stopping the service is the only solution?


One of my friend wants to start career in Software Testing. I have suggested him to join some software testing classes and take ISTQB foundation level certification.   But the thing is he has qualification , 12th + diploma in IT and also he is doing some kind of network support work since 3 year in a non IT firm.  I'm not sure that above qualification accepted for Software Tester job role?  Suppose he has done certification and will have required skill then will it be comfortable to get a job after these many years of gap ?  Can someone please suggest ?

I'm in a dilemma I'm sure most of you were at some point at the beginning of your careers. I'm about to start my Junior year in college this fall and I major in Information Systems. I currently work at a hotel doing administrative work and have been lucky to make contacts in the software industry.   The people I met have encouraged me to get my feet "wet" in QA before attempting to land a developer/programmer role at their company. My college professors have recommended I do the same.  I feel misled.   As I search job sites for QA Engineers, the requirements present a host of technologies you must be familiar with, none of which I have even heard of, on top of 3-5 years of experience. Software Quality Assurance does not seem like an entry-level role at all - it seems it is its own monster.   With that said, I can program intermediately in JavaSE and Oracle's SQL, have experience with PHP, XML, and MySQL for web development, and have very strong HTML and CSS skills, albeit all skills were obtained through school projects.  None of the above is in the list of requirements for an SQA engineer at any level on the job sites I have found. Why have my professors and peers in the software industry recommended I pursue this? It seems clear I am a much better fit for Web Development.   My Question:   If anyone out there did start in SQA, without the familiarity of the plethora of software suites to do debugging, what were the fundamental requirements you did have to have to get the job?


yesterday I asked the question given with the following link:  I basically asked whether changing the subject of a category page with backlinks applicable to two different keywords would be penalised if I were to change the content of it which would make it fitting to the other keyword. I now have more of a hypothetical question: case a) would changing the subject of an old category with backlinks on it to fit the subject of a "hotter" category and then canonicalising it with the "hotter" category page that already exists penalise page ranking (or not affect it at all) case b) Would it somehow make it invalid to change the subject of the page with backlinks and then canonicalise it with another page that I made the page with backlink's content to fit to? Think about it this way: I have a page about oranges and one about apples, and one old page about carrots. a) I changed the subject of carrots to oranges and canonicalised it with the orange page, b) I changed it again to fit to apples. Any input would be appreciated

I would like to know if it is possible to not get penalised by google for changing the subject of a category entirely. I would like to swap a category that I have built on a webpage, for one with a more relevant (as of now) topic. Changing description, content and title etc... would this destroy my SEO? It has amassed backlinks of great quantity and quality over the course of time and I seriously would not like to have them wasted or passed with internal links as the page itself is invaluable. Assume anchors to my webpage were all "<empty>" for convenience purposes. They are nothing particularly descriptive.


My understanding is that if I am outside a black hole and watch something fall in, the object will appear to slow down and will never actually get sucked in.  So how can we ever get a black hole if time appears to slow down? It seems like we would only have almost black holes.

The event horizon of a black hole is where gravity is such that not even light can escape. This is also the point I understand that according to Einstein time dilation will be infinite for a far-away-observer.  If this is the case how can anything ever fall into a black hole.  In my thought experiment I am in a spaceship with a powerful telescope that can detect light at a wide range of wavelengths.  I have it focused on the black hole and watch as a large rock approaches the event horizon.  Am I correct in saying that from my far-away-position the rock would freeze outside the event horizon and would never pass it? If this is the case how can a black hole ever consume any material, let alone grow to millions of solar masses.  If I was able to train the telescope onto the black hole for millions of years would I still see the rock at the edge of the event horizon?  I am getting ready for the response of the object would slowly fade.  Why would it slowly fade and if it would how long would this fading take?  If it is going to red shift at some point would the red shifting not slow down to a standstill? This question has been bugging me for years!  OK - just an edit based on responses so far.  Again, please keep thinking from an observers point of view.  If observers see objects slowly fade and slowly disappear as they approach the event horizon would that mean that over time the event horizon would be "lumpy" with objects invisible, but not passed through?  We should be able to detect the "lumpiness" should we not through?


I'm stuck in a loop: I need the internet to get the driver I need, I can't get the driver I need because I don't have the internet I need I bought a new HP 15s-er1004AU laptop, not top of the range, but OK. I made a start up usb disk for Ubuntu 20.04 with Start-up Disk Creator. I installed Ubu 20.04 on the new HP. All good, except, no driver for the wifi and no wired internet socket. This installed the driver for Realtek  on my current Samsung (I think), although it does not have a Realtek wifi card:  sudo apt install rtl8821ce-dkms  So my question:  Is there some way to get the correct driver onto the boot stick??  (I ordered an external usb wifi. I hope it will arrive today, is recognized and I can proceed to update Ubuntu on the new laptop.) I tried copying the .deb package onto the new laptop, but, instead of installing, I get 'pending'. I tried again with dpkg -i in a terminal on the new laptop. Then I see that gcc is not installed, make is not installed all kinds of other dependencies to get dkms installed. /var/cache/apt/archives/ does not contain any rtl8821ce.deb files, although I installed the Ubuntu package on this computer, so I can't run them onto the new computer. If I could get gcc onto the new computer, maybe I could proceed. I have the other debian packages I need, dkms and rtl8821ce

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


I see a result on a textbook but I do not know how to prove it. let $(X,d)$ be a separable metric space and $A \subset X$. Suppose that the topology induced on $A$ by the metric $d_A$ coincides with the topology induced on $A$ by the topology on $X$ by the metric $d$.Then the metric space $(A,d_A)$ is separable.  Of course we have to find a countable dense set of points in $A$. But I cannot find way to do this because although we know there exists a countable dense subset of $X$, some points in $A$ may be approximated by a sequence of points in $X-A$, and I don't know how to find points in $A$ to replace them.  Can anyone help?

The problem statement, all variables and given/known data: Show that if $X$ is a subset of $M$ and $(M,d)$ is separable, then $(X,d)$ is separable. [This may be a little bit trickier than it looks - $E$ may be a countable dense subset of $M$ with $X\cap E = \varnothing$.]  Definitions Per our book:  A metric space $(M,d)$ is separable if there exists a countable dense $E$ contained in $M$.   $E$ contained in $M$ is dense if $\forall m\in M$, $\forall ε>0\in\mathbb R$, $\exists e\in E$ s.t. $d(m,e) < ε$   The attempt at a solution  My best attempt was doomed from the start, because I don't quite understand the hint. My thought process went as follows:  Since $X$ is a subset of $M$, $\forall x\in X, x\in M$. Thus, since $E$ is dense in $M$,  $\forall x\in X$, and ε > 0, $\exists e\in E$ st $d(x,e)<ε $.   At this point, I was done, because the set of $e$'s satisfying the above, is a subset of $E$, a countable set. So a subset of a countable set is dense in $X$, and $X$ is separable. This is incorrect, but I cannot see why.  Any help clearing up the confusion would be greatly appreciated. Thanks!  Edit: I wish I could upvote all of you for your help! I really appreciate the speedy replies and attempts to make this information clear to me.


This has been asked before:  Without a compilable example, so I made a mwe. I want a captioned table on a multicol environment, To that effect I wrote this: \documentclass[]{article}  \usepackage{multicol, caption} \usepackage{amsmath} \usepackage[toc,page]{appendix} \setlength{\parskip}{0em} \usepackage[a4paper, margin={2cm, 2cm}]{geometry}  \usepackage{amsfonts} \usepackage{amsthm} \usepackage{mathtools} \newtheorem{definition}{Definition} \newtheorem{theorem}{Theorem} \newtheorem*{lemma}{Lemma} \usepackage[ruled,vlined]{algorithm2e}  \begin{document}  \begin{multicols}{2} I am a test   \begin{tabular}{|l|l|}     \hline     & Average Delta \\     \hline     Sphere & 8.77237e-07 \\     WGS84 & 1.03976e-07 \\     Ellipsoid of revolution & 1.20783e-06 \\     Arbitrary Ellipsoid & 0.00126442 \\     \hline \end{tabular} \caption{\label{tab:StabilityResults} Average delta between the original curve and one obtained after 5 consecutive decompositions and reconstructions repeated 10 000 times.}   \end{multicols}  \end{document}  This compiles with an error (because the caption makes no sense as it's not in the correct environment) and produces this:  So you can try to add a table environment: \begin{table} \begin{tabular}{|l|l|}     \hline     & Average Delta \\     \hline     Sphere & 8.77237e-07 \\     WGS84 & 1.03976e-07 \\     Ellipsoid of revolution & 1.20783e-06 \\     Arbitrary Ellipsoid & 0.00126442 \\     \hline \end{tabular} \caption{\label{tab:StabilityResults} Average delta between the original curve and one obtained after 5 consecutive decompositions and reconstructions repeated 10 000 times.} \end{table}  Which compiles without terminal errors but magically poofs away the table:  That's the entire document, so there's no chance of it just going somewhere else. Any suggestions on getting the table captioned?

I have a two column document (using multicol) and want to insert figures so that they do NOT span columns. I have searched around and the only thing I can find says that only figure* is supported which spans the whole page (both columns). Is there a way to get single column figures in a document using multicols?


I want to show that for $E$ a normed space, $f\in E^*$ and $M=\{x\in E\,:\, f(x)=0\}$:  Write $M^\perp$ Show that $d(x,M)=\frac{|\langle f,x\rangle|}{||f||}$.  This is my attempt: For the second part: We have that $f\in E^*$ and for $x\in E$ and $m\in M$ $$\ |\langle f,x-m|\rangle \leq ||f|| ||x-m|| \Rightarrow \frac{|\langle f,x\rangle|}{||f||} \leq ||x-m||. $$ Therefore, $$ \frac{|\langle f,x\rangle|}{||f||} \leq \inf_{m\in M}||x-m|| =d(x,M). $$ The second inequalyty is that I can't prove, I think that any corollary of Hanh-Banach could help me to prove that  $$d(x,M)\leq \frac{|\langle f,x\rangle|}{||f||} $$ Does anyone have any idea and could check my proof? Update I found the same question in this link

I studying Brezis' book and I have somes partial solutions of the exercise $1.17.$  Let be $E$ a normed space and $f\in E^*$ be a linear functional nonzero. Consider the set  $M=[f=0]$ given by  $$M=\{x\in E \ : \ \langle f,x\rangle = 0 \}.$$  Here, $\langle f,x\rangle$ denote $f(x)$ and note that $M$ is just $\ker f$.     Dertemine $M^\perp.$   By definition   $$M^\perp=\{g\in E^* \ : \ \langle g,x\rangle=0, \forall x\in M \}.$$  So, the first doubt is: $M^\perp$ is just  $$M^\perp=\{g\in E^* \ : \ \ker f \subset \ker g  \} ?$$     Show that $\forall x\in E$, we have $d(x,M)=\inf_{y\in M}{\|x-y\|}=\frac{|\langle f,x\rangle|}{\|f\|}.$   Since $y\in M$, $|\langle f,x\rangle|=|\langle f,x-y\rangle|\le \|f\|\|x-y\|$. Then  $$\frac{|\langle f,x\rangle|}{\|f\|}\le d(x,M).$$  How can I show the equality? I know that since $\{x\}$ is a compact set and $M$ is a closed subspace of $E$, there is $y_0\in M$, such that $d(x,M)=\inf_{y\in M}{\|x-y\|}=\|x-y_0\|,$ but I don't know if that it is a help.  I tried to show that $\forall \varepsilon >0$, there is $z\in M$ such that  $$\|x-z\|<\frac{|\langle f,x\rangle|}{\|f\|}+\varepsilon,$$  but I could not. The last doubt is:     Let be $E=\{u\in C([0,1],\Bbb{R}) \ : \ u(0)=0\}$ and $f\in E^*$ given for each $u\in E$ by   $$\langle f,u\rangle = \int_0^1 u(t)dt.$$ Show that if $u\in E-M$ then $d(u,M)$ is never achieved.   For that, I tried something by absurd method but I found nothing. Can someone give a little help? Thanks.


mysql> show columns in m like 'fld'; +-------+-------------+------+-----+---------+-------+ | Field | Type        | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | fld   | varchar(45) | YES  | MUL | NULL    |       | +-------+-------------+------+-----+---------+-------+ 1 row in set (0.02 sec)  mysql> show columns in i like 'fld'; +-------+-------------+------+-----+---------+-------+ | Field | Type        | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | fld   | varchar(45) | YES  | MUL | NULL    |       | +-------+-------------+------+-----+---------+-------+ 1 row in set (0.02 sec)  mysql> select count(distinct fld) from i; +---------------------+ | count(distinct fld) | +---------------------+ |               27988 | +---------------------+ 1 row in set (0.03 sec)  mysql> select count(distinct fld) from m; +---------------------+ | count(distinct fld) | +---------------------+ |               72558 | +---------------------+ 1 row in set (0.07 sec)   The above results seem reasonable based on what I know of the tables in question.  mysql> select count(*) from m where fld not in (select fld from i); +----------+ | count(*) | +----------+ |        0 | +----------+ 1 row in set (0.11 sec)   That last result does not seem reasonable.  some rows in m with fld not in i! Can someone please explain why I get 0 as the result?    For completeness (because I suspect it may be relevant), I'll also paste this result:  mysql> select count(*) from m where fld is null; +----------+ | count(*) | +----------+ |        0 | +----------+ 1 row in set (0.00 sec)     Edit: In reply to comments, I'm editing in the following info also, in case it helps someone answer my question:   select count(*) from m join i using (fld) yields 9350; with left join, 73087; with right join, 28872. select count(*) from i where fld is null yields 810.

This issue came up when I got different records counts for what I thought were identical queries one using a not in where constraint and the other a left join. The table in the not in constraint had one null value (bad data) which caused that query to return a count of 0 records. I sort of understand why but I could use some help fully grasping the concept.  To state it simply, why does query A return a result but B doesn't?  A: select 'true' where 3 in (1, 2, 3, null) B: select 'true' where 3 not in (1, 2, null)   This was on SQL Server 2005. I also found that calling set ansi_nulls off causes B to return a result.


I am just curious to know if there is a way for regular users to know who the moderators are in their community of interest (let's say, Stack Overflow). Can the moderators be accessed? (maybe via chat feature of Stack Exchange?)

While having a  tonight with  over at , he made a comment about how we have around 150-200 moderators on SE total. I thought about this for a moment, and realized that seeing ALL the moderators we have could be tricky. Going to 60+ sites and looking at their about pages is time consuming. My idea is that we could have a full list of moderators, perhaps on , where we can see every single moderator on all of the 60+ sites out there. I think it would be neat to see who is running everything around here.


I have TitaniumBackup encrypting backup copies of app settings before uploading to Google Drive. In order to verify/restore applications I need to type my password.  I need to extract a backup outside of TB. The problem is that Linux won't read the encrypted .tar.gz file. AFAIK TB uses asymmetric cryptography, which I don't know being supported by Linux file managers (or Ark application).  The question is: how do I extract an encrypted Titanium backup in Linux?

How can I decrypt an encrypted "Titanium Backup" backup using standard (linux) tools?  Example:  Wi-Fi serves as a practical example, many other uses may apply to the solution I'm looking for.  If I quickly want to access backuped Wi-Fi credentials from my Linux box I know a fast way. With encrypted backups I'm currently out of luck.  That's my quick&dirty way how to do it without encryption so far:     me@local:~$ adb shell   root@android:/ # cd /sdcard/TitaniumBackup/   root@android:/sdcard/TitaniumBackup # ls *W*46.*gz   com.keramidas.virtual.WIFI_AP_LIST-20120622-105046.tar.gz   root@android:/sdcard/TitaniumBackup # gunzip -c *W*46.*gz | grep -C1 MyAccessPoint   network={             ssid="MyAccessPoint"     psk="supersecrecretpassphrase"        Some details on the company's site:


Here's my current setup:  My regexp match is Skript\.register(effect|expression|event|condition)\((.*)\)\; Basically, I want to match all methods from a source code file that start with Skript.registerwhatever.( and end with );, but the problem is the code can go multiline. If I change (.*) to ([\s\S]*), it completely wrecks and matches everything until the very last );.

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}?


A diligent student gives me (not for the first time!) a problem to solve; it is now:  Prove or disprove $$(m,n)\in \mathbb N^*\Rightarrow \frac{(mn)!}{m!(n!)^m}\in\mathbb N^*$$

$\forall m,n\in\mathbb Z$ , $m\ge1$ and $n\ge1$ how to prove that  $$\frac{(mn)!}{m!(n!)^m}$$ is an integer?  Thanks in advance.


I am trying to wrap my head around Simon's algorithm and I am trying to solve a question.    This is the solution that I have come up with. Please correct me if I am wrong.

Problem Statement: We are given a $2-1$ function $f:\{0,1\}^{n}\to\{0,1\}^{n}$ such that: there is a secret string $s\in\{0,1\}^{n}$ such that: $f(x)=f(x\oplus s)$. Challenge: find $s$.     Simon's algorithm says:         Set up a random superposition $$\frac{1}{\sqrt{2}}|r\rangle + \frac{1}{\sqrt{2}}|r\oplus s\rangle$$   Fourier sample to get a random $y$: $$y.s=0\ (\text{mod 2})$$   Repeat steps $n-1$ times to generate $n-1$ linear equations in $s$.         Solve for $s$.   I don't understand steps (1) and (2). Why and how exactly do we set up the random superposition? How does it help? Also, in step (2), what does the dot operator (in $y.s$) stand for? Bit-wise multiplication?


Let $m$ and $n$ be to positive integers strictly larger than $1$. Is it possible to find a group $G$ in which there are two elements, say $a$ and $b$, such that the order of $a$ is $m$, the order of $b$ is $n$ and their product has infinite order?  If $m$ and $n$ are not coprime I think I have solved using a restricted wreath product (which is then directly summed to some cyclic group); but in the general case I could not achieve anything.

For any integers $m,n$ , both greater than $1$ , does there exist a group $G$ with elements $a,b \in G$ such that $o(a)=m , o(b)=n$ but $ab$ has infinite order ?


I am about to buy a 4K laptop and I would like to run Ubuntu 15.10 on it. I believe that shouldn't be a big problem. I'm sure I can adjust the text and the Unity UI just right.  The thing is that I use VirtualBox quite often for running Ubuntu Server on it. I believe to run into problems here. When not yet set, the text within the guest operating system should be small and barely readable, right? Is there any way to do some scaling of the guest os view? Like for instance scale it by the factor of times 2? Is it possible to run applications that do not adapt to 4k with a kind of magnifying lens? Like for instance running VirtualBox with some double-size zoom?

I'm planning on buying a 4k monitor, but have heard about some applications, (in general all operating systems) may not be ready for 4k which results in a very bad user experience.   I mostly use standard applications (office, internet browsing, eventually gimp, etc... ) and developing applications (netbeans, mysql workbench, android studio...).   I'm currently running 16.04, Unity desktop.


This is how my program works: promt user to input a string, using compress_string() function to pass the string as argument. Using a temporary queue to take all non-space characters from string, then put them back to the string. The final string will have no space at all.  #include <iostream> #include "Queue.h" #include <cstring> using namespace std;  char* compress_string(char *s){     Queue q;     int cnt=0;     char tmp;     for(int i=0; i<strlen(s); i++){         if(s[i] != ' '){             q.enQueue(s[i]);             cnt++;         }     }     delete[] s;     s = new char[cnt+1];     for(int i=0; i<cnt; i++){         q.deQueue(tmp);         s[i] = tmp;     }     s[cnt] = '\0';     return s; }  int main(){     char *s = new char[20];     cin.getline(s, 20);     s = compress_string(s);     cout << s;     return 0; }   Here is problem: it works only when I return a pointer and then assign it to the input pointer as following:   s = compress_string(s);   If I make the compress_string() a void function which also means not return anything from it, and modify in the main function like this:  compress_string(s);   the output are now all non-sense characters.  I thought when I pass *s to the compress_string() function, it is already a pointer so it will have effect after getting out of the function. So where did everything go wrong? Thanks everyone.

What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?


I have installed Windows subsystem for Linux on my Windows 10 machine which is supposed to be emulating Ubuntu 16.04.  When I try to execute a script that has the following 2 lines at the top of the script, it gives me the error :invalid option name set: pipefail  Script lines:  #!/bin/bash set -eo pipefail   This script runs fine on my Mac and on a CentOS system I have.  I have checked  (and verified) my Ubuntu shell to ensure it supports the pipefail option in bash by running set -o.  The output of cat -net /path/to/myscript is:  #!/bin/bash^M$ set -eo pipefail^M$   This question was marked as a duplicate of "How to change Windows line-ending to Unix version" but I do not feel it is duplicative of that because I personally did not know that the problem I was having (that is outlined in my question) was being caused by the type of line-ending in my shell script.  The answer in each of the questions is the same but 2 different questions were asked.

We have 10 PC with some version of Ubuntu and only remote access. While doing some upgrades to custom software I did not notice that the line endings in some scripts were Windows version (CR+LF) and not the Unix version (LF). So now when I want to launch the script it gives an error:   bash: /usr/local/bin/portsee: /usr/bin/python^M: bad interpreter: No such file or directory   Is there a way to change all line endings in a script from terminal. The thing is that I can not install any new software to this group of PC-s.


Meaning: without running sudo apt-get install x. (where x is the name of the app). In Windows I'd download the app (x.exe). Save it on the USB. Then install it from the USB on the computer I want to install on. How can I do that with Xubuntu?

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


In this story, if I remember correctly, two humans in a prison are discussing how humans lost a war with an alien race because they kept improving their weapons, by which involved waits while the technology was developed, while our alien enemy just kept building less sophisticated weapons, but so many, the humans were overwhelmed. It wasn’t long, but it struck me at the time as right on target.

I am looking for help to point me out at a very old novel (likely from the '60s) about two empires at interstellar war. When it comes to starships, one is technologically very advanced, and the other has very low and inefficient technology.  The highly advanced empire has apparently strong chances to win the war, in particular considering a new technology they were developing. I remember the technology to work like this: consider the space as a flat surface, and on this surface, a disk around the spaceship. When the technology was turned on, this disk was stretched out, as made of rubber, so that it produced a cone, with the tip being the spaceship. The spaceship was therefore teleported 10 parsec away (if I remember correctly), but retained all the connections to the original position. If the spaceship moved, the cone moved as well. This allowed to move in position among enemy ships completely unnoticed, by stretching while afar, then moving in the proper position 10 parsecs away, then destretching.  Despite this technology, the empire lost the war because of delays. It's a perfect example of how having a disruptive technology does not guarantee to win against the competitors.  I am trying to find out the author and name of this novel, hopefully with the date of publication and in which journal/magazine.


Some application may installed with a bunch of packages. For example, vim can go along with packages: vim-gnome, vim-gtk, vim-nox etc. To uninstall application I need to define what is the exaxt package actually installed me an application. How to define it? I would like to get it via command line.     The answer for my question slightly differs from answers to :  $ dpkg -S "$(readlink -f `which vim`)"

Simple enough question: is there some shell command (or GUI method) I can use that, given the path to a file on my system, tells me what package put it there? Assuming the file did in fact come from a package, that is.  Bonus question: what if it's a file that isn't installed on my system? Is there, say, a website that will let me look up a file and see what packages, if any, provide it?


I want an editor that is as good as TextPad (for Windows) for compiling and running Java programs on Ubuntu 12.04. Please suggest one.

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. See  for more information.   This is a community wiki for IDEs available on Ubuntu. Please post one IDE per answer (including more than just a screenshot or a link, please at least put a short description).  In your answer, tell us what the IDE is for (which language(s) or if it is RAD capable).


i'm working on a java project and i have a package that contains many clasees (more than 100 files) some files are not saved with utf-8 and this cause some problem in the compilation proccess..  my question is : there is a way to change the encoding for theses all classes to utf-8 at once , somethink like bach script.. ? i'm using windows.  Thanks in advance

What is the fastest, easiest tool or method to convert text files between character sets?  Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.  Everything goes: one-liners in your favorite scripting language, command-line tools or other utilities for OS, web sites, etc.  Best solutions so far:  On Linux/UNIX/OS X/cygwin:   Gnu  suggested by  is best used as a filter. It seems to be universally available. Example:  $ iconv -f UTF-8 -t ISO-8859-15 in.txt > out.txt   As pointed out by , there is an . Gnu  () suggested by  will convert one or several files in-place. Example:  $ recode UTF8..ISO-8859-15 in.txt   This one uses shorter aliases:  $ recode utf8..l9 in.txt   Recode also supports surfaces which can be used to convert between different line ending types and encodings:  Convert newlines from LF (Unix) to CR-LF (DOS):  $ recode ../CR-LF in.txt   Base64 encode file:  $ recode ../Base64 in.txt   You can also combine them.  Convert a Base64 encoded UTF8 file with Unix line endings to Base64 encoded Latin 1 file with Dos line endings:  $ recode utf8/Base64..l1/CR-LF/Base64 file.txt    On Windows with  ():    PS C:\> gc -en utf8 in.txt | Out-File -en ascii out.txt  (No ISO-8859-15 support though; it says that supported charsets are unicode, utf7, utf8, utf32, ascii, bigendianunicode, default, and oem.)   Edit  Do you mean iso-8859-1 support? Using "String" does this e.g. for vice versa  gc -en string in.txt | Out-File -en utf8 out.txt   Note: The possible enumeration values are "Unknown, String, Unicode, Byte, BigEndianUnicode, UTF8, UTF7, Ascii".   CsCvt -  is another great command line based conversion tool for Windows.


error: attempt to read or write outside of disk 'hd0' . Entering rescue mode . . . grub rescue>

I tried to install Xubuntu 13.10 on an older computer. I noticed some difficulties during installation that may be relevant to my problems. Notably:   The screen resolution was extremely low. The windows were much larger than the screen and I had to move them around to get to the "Next" button. The mouse cursor was a blur of colours that was flashing all the time.   The installation finished and I tried to reboot the computer. Immediately I got:  error: attempt to read or write outside of disk 'hd0'.  Entering rescue mode...  grub rescue>   I made a  USB disk, booted it and chose the default repair. The application told me that the problem is repaired and that If this does not solve my problem I should show  to someone who can help me.  What should I do next? I already tried to install Ubuntu and Xubuntu, both with no success.  EDIT:  I found a workaround.   Insert the Xubuntu live USB Select "try Xubuntu" In the settings menu select "install Xubuntu"   This fixed the problem for me. Since it is solved I cannot test the answer.


Let's say someone doesn't feel fine at the moment when another person asks how he feels. But he's sure that he should feel better soon - which one is correct:     "I will be fine"   or     "I'm going to be fine"

When I grow up, I am going to be a doctor.   Is this sentence correct? Personally I think my growing up will happen in future and "I am going to be a doctor" sounds like it is going to happen in next month! But the sentence clearly indicates the speaker is a child. So according to me, "I am going to be a doctor" should be replaced by "I will be a doctor". So I think a more clear sentence would be     When I will grow up, I will be a doctor.   Is my concept correct here?


It's an old computer so I decided I'd mess around with Ubuntu and try it out, but now I have a use for it and would prefer it be windows. However, since updating last week Ubuntu has overwritten my ability to boot from a CD and I can't figure out a way to get rid of it.

I wish to remove Ubuntu and I'm not quite sure how. I know it has something to do with partitions. I have 3 partitions. 1. OS [683 GB]  2. Recovery [14 GB] 3. Ubuntu 12.04 LTS (E:)  I know it says Ubuntu but when I installed Ubuntu I think I put 14 gigabytes for it so I think its the recovery one but I'm not sure. I could have sworn I put more than 700 megabytes for it.  I have googled this and I can't seem to find an answer. Any help would be nice.


If $A$ and $B$ are $n×n$ matrices, $AB = -BA$ , and $n$ is odd, show that either $A$ or $B$ has no inverse.   I have no clue how to do this and any help/guidance would be appreciated!  Thanks in advance!    $$det(AB) = det(-BA)$$  $$det(AB)= det(-B)det(A)$$  $$det(AB) = (-1)^ndet(BA)$$ since n is odd  $$det(AB) = -det(BA)$$ $$det(A)det(B) = -det(B)det(A)$$ $$2det(A)det(B) = 0$$  Therefore $det(A)=0$ or $det(B)=0$

I have this problem :  $A,B \in M_n(\Bbb R)$ matrices while $n$ odd number.  Proof if $AB+BA=0$ then atleast one of $A,B$ is singular.  I assume that $A,B$ invertible.  Its clear that $\det(AB) \neq 0$ and  $\det(BA) \neq 0$.  If I could show that, $\det(AB) \neq -\det(BA)$ then I can conclude that $\det(AB)+\det(BA) \neq 0$.  But I don't seem to find a way to show that, I guess it has something to do with $n$ odd number.  Any ideas? Thanks!


This is not the duplicate of   I know that there is a 5 min grace period for a question in which every edits will be rejected by Community user automatically.    but while going through other question following edits which has been approved after a minute of question asked.(please see this  )   I just want to know what is process of approving edits?  Is there reputation cap for rejection by community user?

When clicking "edit" I see:  Your edit will be placed in a queue until it is peer reviewed. We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.  Like:     Likewise, when I am not logged in, clicking "improve this question" or "improve this answer" shows:  You are not . Your edit will be placed in a queue until it is .  And when I click 'Save', I get:  Thanks for submitting an edit. It is only visible to you until it's been approved by trusted community members  Like:     Who can suggest an edit? Where do suggested edits go? Who can vote on a suggested edit? How do suggested edits get reviewed? Can I earn reputation? What about abuse or bad edits? Sometimes the Community user approves or rejects my edit. Why is that? When can I not suggest an edit? Is there a minimum change requirement for a suggested edit? How do I check my suggested edit history? I disagree with the reasons why my suggested edit was rejected. What can I do? How do I know whether there are edits waiting for review? Someone suggested an edit to my own post, and the reviewers took the wrong action. What can I do? Are tag wikis included in this scheme? What do the "Improve Edit" and "Reject and Edit" buttons do? Why are apparently valid links to rejected edits resulting in 404 errors?   For more information about editing, see "" in the .


It's told in the story that if a titan shifter dies without transferring his power, this power will go to an eldian person who just was born. If Eren Jaeger dies without transferring his titan powers, will the attack titan and the founding titan go to different persons?  Note that his is not a duplicate of  as this is not about what happens when a titan shifter dies. But what happens if a titan shifter with 2 powers dies, which is not answered in the answer.

The question is very vague, so let me clear up some of the confusion and haze.  In the entirety of AoT, it is known that, to inherit the powers of a Titan Shifter, the chosen one must eat the current holder, absorbing their spinal fluid as they do so, as is the curse of Ymir. But what happens to the Titan abilities should the current Titan Shifter be killed in different circumstances, besides being eaten by the Inheritor of said power?  What if the Titan Shifter is killed in combat by being blindsided on the battlefield, for instance? Or dies under mysterious circumstances? Is the power still retained by the holder's corpse, or does the power "drain" away when they die?


If we take a look at JFK's flight schedule for this year's November 6th (which is the winter DST switch date), there are plenty of flights departing between 1am and 2am. For example, a .  If one were to actually buy that flight, what would be departure time printed on the ticket? And when would the plane actually depart — on the "first" or "second" 1:25am?

In most of Europe, when the clocks are set from daylight saving time to standard time, at 3 AM the clocks are set back to 2 AM. Thus, a time like 2:29 happens twice in that night. In spring, the clocks go from 1:59 to 3 AM straight. Thus, 2:29 does not happen at all.  Imagine a plane leaving at 2:29 AM from a certain place. When does it actually leave on those two nights?


The closest description I can think of is a "drama queen/king", except that tends to describe people who like being in a drama.   Instead, I want a phrase describing people who like to pick up on stories such as the following:   questionable decisions of others controversies immoral acts    and then they get on their soapbox and passionately rant, uttering phrases like "it's disgusting", "it's a joke", "anyone who agrees with them should be ashamed".   Perhaps the descriptive term for that person might need to include that they are often immune to reason on subjective topics, and that the rants cause displeasure in the listeners, since frequent rants can wear listeners down, as the tone is loud, highly opinionated and of a very negative nature.   The reason I ask is I want search terms to Google to find techniques for dealing with such a person, and protecting one's self from their effects.  Edit: it is not really about whether someone finds faults in others, but the manner in which they frequently rant about issues, either in others, or institutions, or the nature of things.

I'm looking for a single word, for someone who...   keeps seeing everything that is wrong with everybody else.  never seems to see the good of other people, only the bad things. points at others, as if he forgets he has weaknesses himself. does not brag about himself, he just seems to be dissatisfied with everyone else.   I prefer a word that is as unambiguous and clear-cut as possible.


I've recorded some footage using my iPhone 11 Pro that I want to track. Using Google I found that the primary lens (the one I used) has a focal length of 26 mm. However, I understand that for proper tracking I also need to know the Sensor Width and lens distortion values (K1, K2, K3). I've found some articles that explain how to calculate them, but that's quite a lot of work. Has anyone already calculated these values? Pretty strange that Blender 2.90 doesn't come with presets for recent iPhones. After all I think they're one of the most used 4K 60 fps cameras.

In the camera setting in motion tracking, how do I tweak the K1, K2 and K3 value properly. I was told that these values are not necessary to tweak but I do want to adjust it, just for the sake of perfection.


Can a generic article be published on arXiv? For example, can I publish an article on "Introduction to Linear Algebra," or does it have to be an innovative research paper or preprint?  If not, are there any journals (e.g., open access) that accept "articles" as papers?

I would like to know if arXiv allows authors to upload expository papers (for example, a paper in which the author explains a specific topic). If this is the case, how should those papers be written? And will they be automatically moved to the General Mathematics section?


I have used Audrey's code to cite something of the form: \citet[p.~42]{smth}. This code is excelent if someone wants to have the parentheses affected as well. Now, I ask if it is possible to have the parentheses with another color. For example I would have preferred it to be black. A minimal script for replication and possible change is the following:   \documentclass[hidelinks,12pt]{article} \usepackage[utf8x]{inputenc} \usepackage{colortbl, tcolorbox}          \usepackage[sectionbib, sort]{natbib}  \usepackage{chapterbib} \usepackage{etoolbox}  \definecolor{darkred}{rgb}{0.5,0,0} \definecolor{darkgreen}{rgb}{0,0.5,0} \definecolor{darkblue}{rgb}{0,0,0.5}  \definecolor{dark-red}{rgb}{0.4,0.15,0.15}  \usepackage[hyperfootnotes = true]{hyperref}  \hypersetup{colorlinks,                  linkcolor=red,                                 filecolor=darkgreen,  urlcolor=darkred,  citecolor=blue}  % Audrey's code starts \makeatletter   % include postnote and \citet closing bracket in hyperlink \pretocmd{\NAT@citex}{%   \let\NAT@hyper@\NAT@hyper@citex   \def\NAT@postnote{#2}%   \setcounter{NAT@total@cites}{0}%   \setcounter{NAT@count@cites}{0}%   \forcsvlist{\stepcounter{NAT@total@cites}\@gobble}{#3}}{}{} \newcounter{NAT@total@cites} \newcounter{NAT@count@cites} \def\NAT@postnote{}  % include postnote and \citet closing bracket in hyperlink \def\NAT@hyper@citex#1{%   \stepcounter{NAT@count@cites}%   \hyper@natlinkstart{\@citeb\@extra@b@citeb}#1%   \ifnumequal{\value{NAT@count@cites}}{\value{NAT@total@cites}}     {\ifNAT@swa\else\if*\NAT@postnote*\else%      \NAT@cmt\NAT@postnote\global\def\NAT@postnote{}\fi\fi}{}%   \ifNAT@swa\else\if\relax\NAT@date\relax   \else\NAT@@close\global\let\NAT@nm\@empty\fi\fi% avoid compact citations   \hyper@natlinkend} \renewcommand\hyper@natlinkbreak[2]{#1}  % avoid extraneous postnotes, closing brackets \patchcmd{\NAT@citex}   {\ifNAT@swa\else\if*#2*\else\NAT@cmt#2\fi    \if\relax\NAT@date\relax\else\NAT@@close\fi\fi}{}{}{} \patchcmd{\NAT@citex}   {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@close\fi}   {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@space\fi}{}{}  \makeatother % End of Audrey's code  \bibpunct{(}{)}{;}{a}{,}{,~}     \title{My title} \author{My name}

natbib and hyperref create by default two links to the bibentry in the reference section|chapter of the document:   \begin{filecontents}{\jobname.bib} @book{author08, title = {{A Title}}, publisher = {Alpha}, year = {2008}, author = {Author, A}, address = {London} } @book{buthor90, title = {{B Title}}, publisher = {Bravo}, year = {1990}, editor = {Buthor, B}, address = {New York} } \end{filecontents}  \documentclass{article}  \usepackage{natbib} \usepackage{hyperref} \hypersetup{colorlinks,citecolor=red}  \begin{document}  \noindent citet: \citet{author08}, \citet[see][p. 20]{author08} \\ citep: \citep{author08}, \citep[see][p. 20]{author08}  \bibliographystyle{plainnat} \bibliography{\jobname}  \end{document}     In order to avoid two links to the bibliography (one for the [author] and one for the year [year], respectively), I took  to an older question and added it to my preamble.  \usepackage{etoolbox} \makeatletter  \pretocmd{\NAT@citex}{%   \let\NAT@hyper@\NAT@hyper@citex   \def\NAT@postnote{#2}%   \setcounter{NAT@total@cites}{0}%   \setcounter{NAT@count@cites}{0}%   \forcsvlist{\stepcounter{NAT@total@cites}\@gobble}{#3}}{}{} \newcounter{NAT@total@cites} \newcounter{NAT@count@cites} \def\NAT@postnote{}  % include postnote and \citet closing bracket in hyperlink \def\NAT@hyper@citex#1{%   \stepcounter{NAT@count@cites}%   \hyper@natlinkstart{\@citeb\@extra@b@citeb}#1%   \ifnumequal{\value{NAT@count@cites}}{\value{NAT@total@cites}}     {\ifNAT@swa\else\if*\NAT@postnote*\else%      \NAT@cmt\NAT@postnote\global\def\NAT@postnote{}\fi\fi}{}%   \ifNAT@swa\else\if\relax\NAT@date\relax   \else\NAT@@close\global\let\NAT@nm\@empty\fi\fi% avoid compact citations   \hyper@natlinkend} \renewcommand\hyper@natlinkbreak[2]{#1}  % avoid extraneous postnotes, closing brackets \patchcmd{\NAT@citex}   {\ifNAT@swa\else\if*#2*\else\NAT@cmt#2\fi    \if\relax\NAT@date\relax\else\NAT@@close\fi\fi}{}{}{} \patchcmd{\NAT@citex}   {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@close\fi}   {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@space\fi}{}{}  \makeatother     Which gets me almost where I want to be, but leaves me with two issues I would like to be solved:   while \citet includes pre- and postnotes in the link, \citep doesn't. How can \citep be changed to include postnotes? is there a way to color the brackets and commas that are typeset in black in the unmodified first example also in black in the modified second example without removing them from the link?


In a population of $2n$ individuals there are $n$ infected individuals and $n$ uninfected. Suppose that $X$ of the n uninfected become infected, where $X \sim \mathcal B(n, p)$, and, then, given $X = j$, $Y$ of the $n + j$ infected recover, where $Y\mid X=j \sim \mathcal B(n + j, q)$, allowing $Z = n + j − Y$ infected.  It is assumed the infection and recovery probabilities satisfy $p, q ∈ (0; 1)$.  First find the probability generating function of $X$ and the conditional probability generating function of $Y$ given $X = j$. Then, use conditional expectation to find the probability generating function of $Z$.  Now, assume that $Z$ has the same distribution as the sum of two independent binomial random variables and thus comment on the effect of the infection/recovery process on the initial number of infected $n$.   I know that $G_X(z)=(1-p+pz)^n$ where $z$ is an element of $\Bbb R$ is the generating function for Binomial distribution but I'm unsure how to use this to start the question??

I am working on this problem, where I am required to write down the pgf of $X$, as well as the pgf of $Y$ given $X=j$, and then using conditional expectation find the pgf of $Z$.  So far, I have \begin{align*} G_{X}(z)&=(pz+(1-p))^{n}\\ G_{Y|X=j}(z)&=(qz+(1-q))^{n+j} \end{align*}  I'm new to generating functions and am having difficulty finding the pgf of $Z$. I thought I had a breakthrough when I wrote down \begin{align*} G_{Z}(z)&=\mathbb{E}\left(z^{Z}\right)\\ &=\mathbb{E}\left(z^{n+j-Y}\right)\\ &=\frac{z^{n+j}}{G_{Y}(z)} \end{align*}  But I'm quite sure this isn't correct as I am then required to deduce that $Z$ has the same distribution as the sum of two independent Binomial random variables. I don't know how to apply conditional expectation here. I'm sure this is a very simple problem, and I just want to understand it. Thanks for your patience and time.


This is an MWE to reproduce the same effect, as I encountered on a larger BibLaTeX database. The database was created in beginning of 2019 and used since then on a regular basis (twice a year).  I can't remember having problems like that. As you can see, the date entries are as described in the BibLaTeX manual, section 2.3.8, in YYYY-MM-DD, enclosed in either curly braces or quotes, followed by the comma. Here is the MWE including the BibLaTeX file with two entries: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{csquotes} \usepackage[backend=biber,style=numeric]{biblatex}  \newcommand{\TeXLive}{\TeX{}Live}  \begin{filecontents}{\jobname-2.bib} @Manual{texlive-de-2020,   editor =   {Berry, Karl},   title =    {Anleitung zur \TeXLive-Installation},   date =     {2020-03-28},   subtitle =     {Version 2020},   langid =       {ngerman},   translator =   {Dr. Ziegenhagen, Uwe},   pagetotal =    96,   langid =   {ngerman},   keywords =     {manual},   note =     {Bestandteil der Online-Dokumentation von \TeXLive,                   Datei \texttt{texlive-de.pdf}} }   @article{worland_renewable_2015,   title =    {The {Renewable} {Energy} {Source} {That}'s {About}                   to {Boom} {Again}},   issn =     {0040-781X},   url =      {http://time.com/3978215/hydropower-us-growth/},   abstract =     {'Whether we like it or not, over the next 20 years                   roughly the world will double its hydropower                   capacity'},   urldate =  "2016-12-07",   journal =  {Time},   author =   {Worland, Justin},   month =    jul,   year =     2015,   keywords =     {energy outlook, energy production in the u.s.,                   Hydropower, u.s. energy, u.s. energy production}, } \end{filecontents}  \addbibresource{\jobname-2.bib}  \begin{document} % \cite{texlive-de-2020} \nocite{*} \printbibliography{} \end{document}  After running latex I call biber and get this messages Running `Biber' on `test' with ``biber test'' INFO - This is Biber 2.15 INFO - Logfile is 'test.blg' INFO - Reading 'test.bcf' INFO - Using all citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file 'test-2.bib' for section 0 INFO - LaTeX decoding ... INFO - Found BibTeX data source 'test-2.bib' WARN - Entry 'texlive-de-2020' (test-2.bib): Invalid format '2020-03-28' of date field 'date' - ignoring WARN - Entry 'worland_renewable_2015' (test-2.bib): Invalid format '2016-12-07' of date field 'urldate' - ignoring  The next latex run will complain about the empty bibliography file LaTeX Warning: Empty bibliography on input line 49.  I can't see any error in my BibLaTeX files.  I think they are fine.  What is going wrong?

I'm having exactly the same issue as , also using Biber 2.14, albeit I didn't upgrade, downgrade, change TexLive version, change encoding or (seemingly) do anything. It's like Biber suddenly quit parsing dates on me.  Whether the bibfile is encoded in ASCII or UTF-8 makes no difference. Whether the date is a short format or the full YYYY-MM-DD makes no difference. I'm not sure what else to test.  Here's a MWE and the associated .blg file:  \begin{filecontents}{mwe.bib}     @Article{JD2020,         author       = {John Doe},         title        = {A Title},         date         = {2020-01-01},         %date       = {2020}         journaltitle = {Journal},     } \end{filecontents}  \documentclass{article} \usepackage{biblatex} \addbibresource{mwe.bib}  \begin{document}     test\autocite{JD2020}     \printbibliography \end{document}   [1] Config.pm:304> INFO - This is Biber 2.14 [1] Config.pm:307> INFO - Logfile is 'mwe.blg' [154] biber-darwin:322> INFO - === Thu Apr 30, 2020, 11:04:33 [185] Biber.pm:415> INFO - Reading 'mwe.bcf' [354] Biber.pm:943> INFO - Found 1 citekeys in bib section 0 [384] Biber.pm:4256> INFO - Processing section 0 [385] Utils.pm:75> INFO - Globbing data source 'mwe.bib' [385] Utils.pm:91> INFO - Globbed data source 'mwe.bib' to mwe.bib [401] Biber.pm:4455> INFO - Looking for bibtex format file 'mwe.bib' for section 0 [402] bibtex.pm:1653> INFO - LaTeX decoding ... [406] bibtex.pm:1471> INFO - Found BibTeX data source 'mwe.bib' [437] Utils.pm:304> WARN - Entry 'JD2020' (mwe.bib): Invalid format '2020-01-01' of date field 'date' - ignoring [457] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized' [457] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable' [457] Biber.pm:4084> INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US' [457] Biber.pm:4090> INFO - No sort tailoring available for locale 'en-US' [461] bbl.pm:652> INFO - Writing 'mwe.bbl' with encoding 'UTF-8' [463] bbl.pm:755> INFO - Output to mwe.bbl [463] Biber.pm:128> INFO - WARNINGS: 1   The \printbibliography output actually looks like this: [1] John Doe. “A Title”. In: Journal ().  In my actual thesis, all the dates are gone from the pdf output.