Centering Subcaptions including a linebreak

I found an asnwered question concerning this topic already here:  Copying \captionsetup[subfigure]{justification=centering} doesn't help me thought for I am using different packages.  I would like my Captions and Subcaptions to be justified as the text below. Just under my pictures. Any suggestions?  Thanks a lot  \documentclass{article} \usepackage{subfig} \usepackage[labelfont=bf, justification=justified]{caption} \usepackage[demo]{graphicx}% Remove demo option in real document  \begin{document}     \begin{figure} %   \captionsetup[subfigure]{justification=centering}     \centering       \subfloat[Subcaption one \newline including a linebreak ]   {     \includegraphics[width=0.2\textwidth]{image1}     }     \hspace{1cm}     \subfloat[Subcaption two \newline including a linebreak]     {     \includegraphics[width=0.2\textwidth]{image2}     }        \caption{Figure caption \newline with additional text right here} \end{figure}  \begin{center} This is correctly justified Text \\ including a longer linebreak than blabla. \end{center} \end{document}


Suppose that $\phi$ is a homomorphism from $S_4$ onto $\mathbb Z_2$. Determine $\ker\phi$. Determine all homomorphisms from $S_4$ to $\mathbb Z_2$.   Please help me with this problem. I am stuck and I feel like I am not making any progress...  Also, unlike isomorphism, is it okay for one group to be non-cyclic and the other to be cyclic under homomorphisms? Because I think $S_4$ is not cyclic but $Z_2$ is cyclic.


Prove that if $n\ge4$ then $n,n+2,n+4$ cannot all be primes.

My question is well written in title. I thought that something like divisibility by $3$ will work but it is not. Please help.


Comments with MathJax not rendered on Firefox ESR

As of today comments do not render MathJax and remaining text. It only flashes the underlying LaTeX, but renders an empty space. Noticed on MSE and MO,  one comment now simply reads: "@Eric Write – Aweygan Jan 26 at 14:08 ".  Have tried different MathJax renderers or other MathJax context menu settings.  The problem appears on Windows 7 32bit and Firefox ESR (with a clean profile too). Works normal on Chrome and the new Firefox Quantum.  UPDATE: Broken on Tor Browser 7.0.2 (based on Firefox 52.2.0). But works on PaleMoon 27.7.1! Broken on Basilisk web browser.


When installing the operating system, I indicated the point to use commercial drivers. Now I want to completely abandon the commercial drivers in favor of the free ones. How can i do this?


How to Run SSH on remote machine and leave?

I want to achieve the following scenarios:   Connect to remote machine via SSH Run command on remote machine - that usually takes 3 days to complete and shows output while working Leave the SSH connection without killing that command terminal process Connect to remote machine from other machine and see the running output of command.


"The _______________ passage of Time": a word that means unhalting, steady

What is a word that can be used to describe the slow yet unstoppable progress of time? Something like (but not exactly) inevitable. I remember reading this phrase in a book but the exact word evades my memory.


Mysterious postgres process pegging CPU at 100%; no running queries

I have a recurring issue where a postgres process is pegging my cpu at > 100%. It's a strange one, you can see below the command is ./Ac2p20853 (surrounded by asterisks, added by me).  Running SELECT pid, datname, usename, query FROM pg_stat_activity shows nothing too interesting (to me at least). Simply a few inserts into pg_proc.  How would you go about debugging what is the issue here?  See below for output from ps, grepping postgres.  Thank you.  deploy@localhost:~$ ps auxww | grep ^postgres postgres   590  0.0  0.3 309312 13768 ?        Ss   20:29   0:00 postgres: deploy template1 5.5.5.5(53394) idle postgres  2264  0.0  0.3 309312 13748 ?        Ss   20:20   0:00 postgres: deploy template1 5.5.5.5(37818) idle postgres  3079  0.0  0.3 309312 13776 ?        Ss   20:12   0:00 postgres: deploy template1 5.5.5.5(60006) idle postgres  3809  0.8  0.0   4504  1656 ?        S    18:11   1:19 /bin/sh ./systemd **postgres  3862  167  0.1 252512  5464 ?        Ssl  18:11 265:06 ./Ac2p20853** postgres  5287  0.0  0.6 308388 24560 ?        S    Aug09   1:22 /usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf postgres  5289  0.0  2.1 308516 87096 ?        Ss   Aug09   0:01 postgres: checkpointer process postgres  5290  0.0  0.5 308388 22832 ?        Ss   Aug09   0:04 postgres: writer process postgres  5291  0.0  0.2 308388  8676 ?        Ss   Aug09   0:03 postgres: wal writer process postgres  5292  0.0  0.2 309196 11972 ?        Ss   Aug09   1:03 postgres: autovacuum launcher process postgres  5293  0.0  0.1 163724  5004 ?        Ss   Aug09   2:34 postgres: stats collector process postgres  6065  0.0  0.3 309312 13824 ?        Ss   20:04   0:00 postgres: deploy template1 5.5.5.5(51616) idle postgres  7384  0.0  0.3 309312 13832 ?        Ss   20:40   0:00 postgres: deploy template1 5.5.5.5(55916) idle postgres 11467  0.1  4.0 328788 161612 ?       Ss   Aug09  10:50 postgres: deploy db_production [local] idle postgres 11638  0.0  4.3 339336 174368 ?       Ss   Aug09   4:52 postgres: deploy db_production [local] idle postgres 11812  0.0  0.5 316092 21496 ?        Ss   Aug09   0:00 postgres: deploy postgres [local] idle postgres 12707  0.0  0.4 315660 16820 ?        Ss   Aug09   0:00 postgres: deploy db_production [local] idle postgres 17511  0.0  0.3 309312 13716 ?        Ss   20:33   0:00 postgres: deploy template1 5.5.5.5(33460) idle postgres 17968  0.0  0.3 309312 13804 ?        Ss   20:44   0:00 postgres: deploy template1 5.5.5.5(34548) idle postgres 18974  0.0  0.3 309312 13768 ?        Ss   20:16   0:00 postgres: deploy template1 5.5.5.5(52290) idle postgres 19017  0.0  0.3 309312 13752 ?        Ss   20:24   0:00 postgres: deploy template1 5.5.5.5(37348) idle postgres 21120  0.0  0.3 309312 13788 ?        Ss   20:08   0:00 postgres: deploy template1 5.5.5.5(33084) idle postgres 24189  0.0  0.3 309312 13744 ?        Ss   20:36   0:00 postgres: deploy template1 5.5.5.5(35660) idle postgres 31498  0.0  0.3 309312 13804 ?        Ss   20:48   0:00 postgres: deploy template1 5.5.5.5(39618) idle


Electric field inside the cavity of a conductor placed in an electric field

Suppose a conducting spherical shell with a cavity inside it is placed in a uniform horizontal electric field. My question is: Will the electric field in the cavity be zero? I understand that the electric field in the conducting region will be zero. Also from what I understand, due to electrostatic shielding, the charges/field outside the cavity do not affect the field inside the cavity, therefore, the field inside the cavity must be zero too. Is this correct?


In which way does quantum mechanics disprove determinism?

I've heard this pop up in a discussion with my physicist/engineer roommates, but didn't care to ask at the time.  Now I'm mighty curious about it.   doesn't really seem to say much on this issue.  From what I understand about the Uncertainty Principle, it says that there are certain properties of electrons and stuff that cannot be measured, and are therefore uncertain.  Then Wikipedia (under ) states that Sir Arthur Eddington says that the Uncertainty Principle isn't really so because we can't measure these properties, but because turns out nature is indeterministic.  At least that's what I took from those paragraphs.  Even without my biased wording, it sounds more like an assertion than evidence.  I've also read a few things about how other scientific conventions perceive the issue, like how a ball on the peak of a perfect mound might randomly roll down in any direction, and I'm still unconvinced.  My belief of determinism is generally that if you knew every single variable that existed as a factor at the very beginning and birth of the universe, you could correctly determine all properties of any individual particle at any point in time.  Could anyone provide some more background about this?  Especially regarding quantum mechanics?


i have problem With HttpWebRequest.getResponse(). My try catch don't catch my response :/. Here is code: proxy and ports are good  HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.google.com/");         req.Proxy = new WebProxy(Host, Port);         req.Method = "GET";         req.KeepAlive = false;         req.Timeout = 10000;         req.ContentType = "text/xml";        try         {             using (WebResponse response = req.GetResponse())             {                 using (Stream stream = response.GetResponseStream())                 {                  }             }          }         catch (WebException) { }         catch (Exception){ }   Still getting window with error:


Leverage Statistic (h) for Multiple Predictors

I'm working through Introduction to Statistical Learning and understand the leverage statistic for a simple linear regression. However the text says  "There is a simple extension of h_i to the case of multiple predictors, though we do not provide the formula here"  After a bit of searching (this seems like a useful thing to know!) I don't seem to be able to find this extension to the formula. Any pointers?


Extend the ubuntu root partition with unallocated space

I don't seem to be able to figure out how to extend the disk space on Ubuntu 16.  Currently I'm stuck with this situation:    I want to extend the /dev/sda6 with the unallocated memory above it which I just shrunk from Windows itself. I know this question has been asked multiple times but none seem to help me out. What's the smartest way to do this?   Another option is to just be able to use multiple partitions in Ubuntu, I don't know how.


Move files to parent directory, prefixing file name with former subdirectory name

I have a folder parentdir with many directories like this:  $ tree parentdir/subdir_1  parentdir/subdir_1 ├── important.txt ├── important_001.txt ├── important_002.log ├── important_007.bmp ├── something ├── else.mp3 ├── nothing.000 └── ignore.me   What I want is to move all files with a name starting with important to the parent directory parentdir and renaming them by prefixing each file name with the name of the subdirectory they came from.  For example, parentdir/subdir_1/important_001.txt should be moved/renamed to parentdir/subdir_1-important_001.txt.  How can I most easily perform this bulk move/rename operation on a huge directory?


How do I convert a MTL file to a OBJ file?

I was trying to make a snowman from scratch and when I tried to import the file into blender it showed the xyz axis thing but no object, so I checked the format and it was a .MTL file. I've been trying to find a .MTL to .OBJ converter to fix this problem because .OBJ files have worked in the past. I've found none and was wondering if there was a solution at all.


How to subtract date/time in JavaScript?

I have a field at a grid containing date/time and I need to know the difference between that and the current date/time. What could be the best way of doing so?  The dates are stored like "2011-02-07 15:13:06".


$\lim_{n \to \infty} \frac{1}{2n}\log\binom{2n}{n}$

Please help me to solve this problem. I can find almost no clue regarding the log part. I tried to break the $\binom{2n}{n}$ part, but in vague...will the breaking help me in anyway?


Is it possible that gravitation is not reconcilable with quantum mechanics?

And if so would there be any way of proving this?


1) Let $F_1 = 1$, $F_2 = 1$, and $F_n = F_{n-1} + F_{n-2}$ for $n \geq 3$.   How do you prove that  $$\sum_{n=2}^\infty \frac1{F_{n-1} F_{n+1}} = 1$$   $$\sum_{n=2}^\infty \frac{F_n}{F_{n-1} F_{n+1}} = 1$$   Do you even use the formula $n(n+1)/2$?   I tried using $F_{n-1} = F_n - F_{n-2}$ and $F_{n+1} = F_n + F_{n-1}$ and then trying to figure out how to substitute those, but I've been going around in circles. How would you solve this? What tips can you give me to solve this? Is there any website that teaches this? I tried searching google and youtube but none were helpful.   2) Let $s_x = \tan(2/x)$. Where does this become nonincreasing? While using monotonic limits to establish there is a limit.   I was guessing you need to use upperbound and lowerbound but doesn't it go to infinity?


Get random Enum from similar name or from EnumSet Java

I am trying to get a random Enum of similar type. For example, I have the Enums TRACK_PLAY_1, TRACK_PLAY_2, TRACK_PAUSE_1. I wish to get a random TRACK_PLAY enum.  I'm currently using EnumSets to categorize the Enums. e.g. TRACK_PLAY from TRACK_PAUSE.  Here's what I have so far:  package com.TobyMellor.smash.core;  import java.util.EnumSet;  public enum SoundEffect {     SMASH_1("smash_1"),     SMASH_2("smash_2"),     SMASH_3("smash_3"),     TRACK_PAUSED_1("track_paused_1"),     TRACK_PAUSED_2("track_paused_2"),     TRACK_PAUSED_3("track_paused_3"),     TRACK_PAUSED_4("track_paused_4"),     TRACK_PAUSED_5("track_paused_5"),     TRACK_PAUSED_6("track_paused_6"),     TRACK_PLAY_1("track_play_1"),     TRACK_PLAY_2("track_play_2"),     TRACK_PLAY_3("track_play_3"),     TRACK_PLAY_4("track_play_4"),     TRACK_SKIPPED_1("track_skipped_1"),     TRACK_SKIPPED_2("track_skipped_2"),     TRACK_SKIPPED_3("track_skipped_3"),     TRACK_SKIPPED_4("track_skipped_4"),     TRACK_SKIPPED_5("track_skipped_5");      public static EnumSet<SoundEffect> SMASH = EnumSet.of(SMASH_1, SMASH_2, SMASH_3);     public static EnumSet<SoundEffect> TRACK_PAUSED = EnumSet.of(TRACK_PAUSED_1, TRACK_PAUSED_2, TRACK_PAUSED_3, TRACK_PAUSED_4, TRACK_PAUSED_5, TRACK_PAUSED_6);     public static EnumSet<SoundEffect> TRACK_PLAY = EnumSet.of(TRACK_PLAY_1, TRACK_PLAY_2, TRACK_PLAY_3, TRACK_PLAY_4);     public static EnumSet<SoundEffect> TRACK_SKIPPED = EnumSet.of(TRACK_SKIPPED_1, TRACK_SKIPPED_2, TRACK_SKIPPED_3, TRACK_SKIPPED_4, TRACK_SKIPPED_5);      private final String testSound;      SoundEffect(String bukkitSound) { this.testSound = testSound; }      public String getTestSound() { return testSound; } }   I'd like to be able to get the Enums by something like: SOUNDEFFECT.TRACK_PLAY[randomInt] which will return my SOUNDEFFECT.TRACK_PLAY_randomInt.  Any help is greatly appreciated.  Thanks!  Toby.


Run two users on the same computer (windows 7)

I'd like to use one computer for two people preferably on windows 7, without having to use another computer to connect to a virtual machine.


How to detect that a voltage source is not powered?

I need to detect when the switch SW1 is on and when it is off, and this input has to be sent to a GPIO of a microcontroller. I have no idea how to implement the circuit required to achieve this goal, so I would really appreciate somebody else's help.         – Schematic created using


Best way to switch magic keyboard and trackpad between work/personal Macs?

I just got a new work laptop. I would like to seamlessly switch my bluetooth devices (headphones, magic keyboard, touchpad) between work / personal Macs without complex repairing. Has anyone solved this problem? Ideally, I would love it if my bluetooth devices just paired with the computer docked into my dongle that connects to my monitor / power. Like if there was some kind of USB bluetooth controller that exposed my bluetooth devices as USB devices to whatever was connected to it, that would be awesome. But I haven’t found anything like that. I’m curious if people have different solutions? It would also be ideal if this could be used for other bluetooth devices, ie seamlessly switch headphones...


I'm working on a program that requires the PC to stay online at all times.  I want to allow my program to run while the monitor turns off but prevent sleep mode.  For example if I have auto sleep set to enable after 2 minutes of inactivity I'd like this process to begin and the monitor to turn off but the CPU stay active and allow my program to utilize the CPU.  I thought this line would do it but sleep mode still occurs.   SetThreadExecutionState(ES_SYSTEM_REQUIRED);   What am I doing wrong?


Can't compile any c program (/usr/bin/ld: 1: Syntax error: newline unexpected)

Hello everyone, I have a serious issue, i can't compile any c program, i get the following error : /usr/bin/ld: 1: Syntax error: newline unexpected collect2: ld returned 2 exit status  I have found on the net this solution but it doesn't work for me : sudo apt-get autoremove binutils     sudo apt-get install binutils  Any tips for this please ? I was doing some FairThreads in C, so i got to use the lib -lfthread. And i used a make file which has his LIB_DIR at usr/bin/ld I runned a make command and that was probably what caused all this... This is what the make file contains : INCL_DIR    = ../include LIB_DIR     = usr/bin/ld  ############################################################## MAKE        = make CC      = gcc AR      = ar RANLIB      = ranlib  ############################################################## LIBS        = -lfthread -lpthread #LIBS       = -lposix4 -lfthread -lpthread # for solaris  ############################################################## ############################################################## CFLAGS      = -Wall -O3 -D_REENTRANT  ############ Basic libraries ################################# LIB_NAME    = fthread LIBFT           = lib$(LIB_NAME).a  ############ C code to executable code ######################## .c.o :     $(CC) $(CFLAGS) -c $<  ############ The h files ###################################### HFILES        = fthread.h fthread_internal.h \                 event.h thread.h scheduler.h \                 broadcastlist.h locklist.h threadlist.h \                 environment.h trace.h verify.h  ############ The C files ###################################### CFILES        = event.c thread.c scheduler.c \                 broadcastlist.c locklist.c threadlist.c \                 environment.c automaton.c instruction.c  ############ The object files ################################## OBJS          = event.o thread.o scheduler.o \                 broadcastlist.o locklist.o threadlist.o \                 environment.o automaton.o instruction.o  ############ Make entries ###################################### all: lib  lib: $(HFILE) $(OBJS)     $(AR) r $(LIBFT) $(OBJS)     - $(RANLIB) $(LIBFT)  install: lib     cp $(LIBFT) $(LIB_DIR)     cp fthread.h $(INCL_DIR)  clean:     - rm -rf *.o *~ $(LIBFT) a.out  ############ Auxiliary ######################################## TEST        = test.c  lines:     wc -l $(CFILES) $(HFILES)  test:all     $(CC) $(CFLAGS) -I. -L. $(TEST) $(LIBS)     a.out  ############ Dependencies ######################################## $(OBJS): $(HFILE)  ############ end of makefile #####################################  I can normally execute files which are already compiled, but i can't compile anything. eg : #include <stdio.h> int main(void) {printf("Hello world");  return 0;}  when i compile this program by the command : gcc -o hello hello.c   I get the same error : /usr/bin/ld: 2: /usr/bin/ld: Syntax error: newline unexpected collect2: error: ld returned 2 exit status


When I try to execute the following function in Java:  public static int myfunc (int x) {     try {         return x;     } finally {         x++;     }        } public static void main (String args[]) {     int y=5,z;     z = myfunc(y);     System.out.println(z); }   The output printed on the console is 5, where as one would expect 6 to be printed. Any idea why?


Is it ever explained how people first got to Arrakis, before they had spice?

The Dune prequels say that people had used computers to navigate before the Bulterian Jihad. They only became dependent on the spice when they outlawed computers.  But what about the original series?  On Ix, computer navigators are invented as if they were novel.  So how did people ever get to Arrakis to get the spice in the first place?


Change a textbox colour when disabled C#

i am going to ask the same thing like other topic which I have seen.  When i use the Textbox.Enable or Textbox.readOnly, the textbox gets a dark colour, how can i change this colour for a better colour? (white could be better).


For debugging purposes, I'd like to see the approximate memory size of each living variable in my python script, because a variable is growing up quickly in size (or multiple variables are created but not destroyed).  EDIT 1:  Here is the output of  (total variables size ~54MB) at the moment when used memory grows by 6GB.  Partition of a set of 370715 objects. Total size = 54137008 bytes.  Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)      0 151088  41 16953320  31  16953320  31 str      1  91788  25  8121344  15  25074664  46 tuple      2  16472   4  4979464   9  30054128  56 unicode      3   4699   1  3118216   6  33172344  61 dict (no owner)      4    895   0  3100648   6  36272992  67 dict of module      5  23616   6  3022848   6  39295840  73 types.CodeType      6  23707   6  2844840   5  42140680  78 function      7   2412   1  2303520   4  44444200  82 dict of type      8   2412   1  2178768   4  46622968  86 type      9  12733   3  1805096   3  48428064  89 list <925 more rows. Type e.g. '_.more' to view.>   I suspect a library () that uses an external lib(libmagickwand-dev). but don't know at what level in my code this is happening.  is there a better way to debug this kind of problems ?  EDIT 2  I can see those 6GB in htop but not in Guppy-PE:


As a sort of follow up to the question called , what is the (major) differences or similarity in how the Java Virtual Machine works versus how the .NET Framework Common Language Runtime (CLR) works?  Also, is the .NET framework CLR a "virtual machine" or does it not have the attributes of a virtual machine?


I have disassembled 20 broken hard disks and taken out the motors, thinking they might be useful. However, they didn't work using DC current, because they required some kind of control circuit. Now I have a project (electrolysis) that might require to use those motors as generators. I want to know what kind of current these generate (DC or AC)? They were able to power an LED but as LEDs are diodes, I couldn't tell whether that motor generated AC.


Can put "if" statements inside "print" statements in python?

So I want a font to be red if a condition is true, but otherwise print in green font. Look at the code down below for an example.  #if Money is greater than or equal to 0, then the font color will be green. Otherwise, the font color will be red.  from colorama import Fore Cash = int(input("Enter random number here (This is how much money a player has)")) print("Money: ", if (Cash) >= 0: Fore.GREEN + (Cash), else: Fore.RED + (Cash))  #this does not work on python, is there a way you can fix this? #If I input a positive number, I get a green font. #If I input a negative number, I get a red font. #The output only says "SyntaxError: invalid syntax"


Motion tracking always gives me error messages and acts unpredictably

I have done my research and know that a reason for this might be that I don't have eight good trackers. However, I do have at least eight trackers in every frame of the shot, and I still get the same message everytime (some data failed to reconstruct, see console for more details). Also, where can I find the console? I looked at the python console and the info in the scripting work space, but I couldn't find anything. I also have no idea (besides eyeballing it in the tracker preview window) whether my trackers are good or not, since the solve error changes everytime I click on solve. I have keyframe unchecked, it still changes everytime I do something. For a short periodt of time it seemed to be working just fine, I could change the weights of the trackers and managed to drop the solve error to about 1.9, but suddenly I began getting random numbers again, over 100 etc, even though I didn't change anything but adjust the weight of another tracker. Sometimes solve error equals "nan". What does THAT mean? Some trackers are highlighted in yellow, some in red when I hit A to select all (I have info turned on). First I thought it was because those trackers are the ones that failed and kept refining them, but then I realised that if I select any red tracker, unselect it and select all again it turns yellow, and others turn red. I'm so confused. Checking the tripod box doesn't make it better either. Does anyone know what I can do to get a half decent track out of this?  Also, does anyone know where I can upload the .blend file? I tried a few but the file size is about 64201KB and that's too large for most sites. I can only provide screenshots for now.      Link to the footage I'm using:   (password is "tracking issue")


Are quads or triangles better for games?

I keep reading that triangles are bad to use, I still don't 100 percent understand why but I'm making some characters for a mobile game. Seeing as it is for games then would it be better to have quads or triangles or would it matter if it was mostly quads with some triangles?  I mainly ask because I'm modelling a hand and I'm having trouble connecting it to the wrist without using triangles.


How to gather tcolorboxes at the end of a document

I want to add remarks at different places in a document, using tcolorbox (which I found a very nice package) and at the end of the document to get a compilation of all the remarks added along the document. Here is my MWE :  \documentclass[french]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,amsbsy,thmtools} % thmtools pour list of theorem \usepackage[a4paper,     vmargin=2cm,     hmargin=2.5cm]{geometry} \usepackage{xcolor} \usepackage[many]{tcolorbox} \usepackage{lipsum} \usepackage{babel}  \renewcommand\familydefault{\sfdefault}  \newtcbtheorem[]{rema}{Remarque}%    {colback=white,colframe=gray!50,fonttitle=\bfseries,    enhanced,    coltitle=gray!75!black,    attach boxed title to top left={xshift=2ex,yshift=-2mm,yshifttext=-1mm},    boxed title style={colframe=red!50,colback=gray!25},    code=\bfseries    }{th}  \title{Comment faire une liste de remarques} \author{} \date{} \begin{document} \maketitle  \vspace{-1cm}  \noindent \section*{Bla} \lipsum[1] \begin{rema}{}{foo} \lipsum[2] \end{rema}  \section*{Bli} \lipsum[3] \begin{rema}{}{bar} \lipsum[4] \end{rema}  \section*{Liste des remarques} %\listofremarks% to be defined %\setcounter{\therema}{0} % not working \begin{rema}{}{foo} \lipsum[2] \end{rema}  \begin{rema}{}{bar} \lipsum[4] \end{rema}  \end{document}   What I would like to get is :  1) preferably some kind of command like `\listofremarks' which could list at the very end of the document all the remarks introduced previously, if this is possible.  2) if not possible, I could eventually add the remarks manually at the end of the document, but I would need to reset the remark counter to 0 and I did not found how to do this (I did not found the name of the counter involved).  I browsed through section 15.Theorem of the tcolorbox manual but did not found a satisfying solution.  EDIT: What I want is not exactly a list, it is a rather an extensive compilation of all the remarks of the document  EDIT2: Title changed (boxes, not list of boxes) and also the question slightly edited for a better explanation of the goal


Why isn't the verb to be used: The house sold for more than expected.

I'm trying to understand the construction of these two sentences and would appreciate any help/thoughts:        The house sold for more than expected.   The house fetched more than expected.      To me both sentences seem to convey the same meaning,that is, the value that was obtained after selling the house was greater than expected.   What I'm really trying to determine is why the verb to be isn't necessary to form the passive here, in either sentence and whether it has something to do with sold and fetched being used in an intransitive form.


How come dd only outputs when I press Ctl+t?

This is with OSX. When I run this in a terminal  scottcarlson$ sudo dd if=Downloads/CentOS-7-x86_64-Everything-1511.iso of=/dev/disk2 2> Desktop/out.txt   and then this in another  tail -f Desktop/out.txt   it only updates the log when I press Ctlt in the first terminal with the dd. Is this because of the nature of dd?  I don't know exactly how it writes to devices, but could it be too demanding for the process to take a break and write to the log?


Bash shell scripting command line parameters awk

Lets say that my script name is test.sh. What i want to do is when I give the command  ./tool.sh -f <file>   where file is a file of events(ex events.dat) to do something with awk and when i give the command  ./tool.sh -f <file> -id   to do something else. How can I achieve that?


Android app crashes when attempting to vote on posts

Whenever I try to vote on a post with the Android app it stops responding.    This has happened to me on both The Great Outdoors, Ask Ubuntu, and Meta.  I'm running Android 4.4.4 on a 2013 Moto G. I am running version 1.0.66 of the app.


How can I get nameof() functionality for the parameter name of a method called

The simplest way for me to describe this is in the Unit Testing context.  I have a method that accepts a parameter and asserts that parameter isn't null.  public void DoStuff(string requirementName) {      if (requirementName == null) throw new ArgumentNullException(nameof(requirementName));  }   Then I have a test that asserts this exception is thrown.  [Test] public void NullRequirementName_ThrowsArgNullException() {     var sub = new DoStuffClass();     Action doStuff = () => sub.DoStuff(null);     doStuff.Should().Throw<ArgumentNullException>();  }   What I want is to assert that the message of the exception contains the name of the parameter, and yet allow the parameter name in the signature of DoStuff to change and give compile time indication that the name is changed.  [Test] public void NullRequirementName_ThrowsArgNullException() {     var sub = new DoStuffClass();     Action doStuff = () => sub.DoStuff(null);     doStuff.Should().Throw<ArgumentNullException>().Where(ex => ex.Message.Contains("requirementName");  }   The above assertion works fine, but doesn't allow the param name to change without breaking the test at run-time. I'm looking for a simple looking syntax that effectively gives me nameof(DoStuffClass.DoStuff.requirementName)


Ubuntu 14.04 Type 'http://old-releases.ubuntu.com/ubuntu/' is not known on line 1 in source list /etc/apt/sources.list.d/ia32-libs-raring.list

I am rather new to using Linux OS. I would like to install new software to my newly installed Ubuntu OS. However, I am having trouble doing this. I get the following error while trying to download new software:  E: Type 'http://old-releases.ubuntu.com/ubuntu/' is not known on line 1 in source list /etc/apt/sources.list.d/ia32-libs-raring.list E: The list of sources could not be read.


Calculate integral with help the Euler's integrals

It is my first question. In advance please sorry for my bad English!  I need to calculate this integral with help the Euler's integrals: $$ \int_0^{+\infty} \frac{1}{1+x^5}  $$  I have tried decompose integrand in Taylor Series but I did not get anything. Also I tried use partial fractions and I got crazy expression.  I'm here to get an elegant solution of this question. Thank you for help in advance.


LaTeX incorrectly parsed in search results

I noticed that sometimes LaTeX is incorrectly parsed in the search result pages. For example, the first result for  right now looks like this, where the end of the first math block is not recognized:


Can the same B1 visa for USA be used after employer has changed?

A colleague was issued a 10-year B1 visa to travel to the US from India while at another company. Can he still use this same visa (within the 10 yrs of issue) for business travel with his current company? Or is a new visa with invitation and business letters from his current company required?


I have a list of list and I would like to add an element inside only one of the list but it is added everywhere. You can find my code bellow repartition_labels = [[]]*3 repartition_labels[2].append(2)  The result I have is [[2], [2], [2]]  and I would like to have the result [[], [], [2]]  I already tried to function insert and extend but it didn't solve the problem


I am interested to write a rigorous proof for a well-known results - every elementary operation is invertible. Although, there is another SE post that proves this result, I am not familiar with abstract algebra, so I found the approach difficult to follow. And I want to avoid any circularity(using an advanced results for example, to prove a more elementary result).   It would be nice, if someone could give any tips/hints on how to complete the proof or if my proof is correct.     Every elementary matrix $E$ is invertible.   Proof. (My attempt).  Let $E$ be an elementary matrix of order $n$ obtained by performing elementary column operations on $I_n$. Intuitively, any column of $E$ is a unique linear combination of the columns of $I_n$.   Let $E_j$ be the $j$th column of $E$.    Suppose $E_j= \begin{bmatrix} a_{1j}\\ a_{2j}\\ a_{3j}\\ \vdots \\ a_{nj} \end{bmatrix}=a_{1j}e_1 + a_{2j}e_2 + a_{3j}e_3+\ldots + a_{nj}e_n$.  $E_j$ has a unique representation in $\mathbb{R}^n$. For if we assume,   $E_j=b_{1j}e_1 + b_{2j}e_2 + b_{3j}e_3+\ldots + b_{nj}e_n$  Then:  $(a_{1j}-b_{1j})e_1+(a_{2j}-b_{2j})e_2+\ldots + (a_{nj}-b_{nj})e_n=0$  As $\{e_1,e_2,\ldots,e_n\}$ are linearly independent, we obtain $a_{1j}=b_{1j}, a_{2j}=b_{2j},\ldots,a_{nj}=b_{nj}$.  I am not sure how to proceed from here.  I could say, because each $E_j$ has unique coordinates, each $E_j \notin \text{span}(E_1,E_2,\ldots,E_{j-1})$. Therefore, they form a linearly independent set.   Invoking the inverse matrix theorem, $E$ must be invertible.


Inserting foreign lang data into mysql db table through html form & php

I inserted foreign lang into mysql db through html form and the result is as below.   à°¯à±‡à°¸à± à°•à±à°°à±€à°¸à±à°¤à± à°œà°¨à°¨à°®à±    When i insert data by the below statement it works very fine.  $conn->set_charset('utf8');     $sql = INSERT INTO table_name (column1, column2) VALUES (value1,value2);   Im facing problem when i use a html form to insert data.  Here is the code i use.  <?php  $db_database = 'xxxxx'; $db_hostname = 'xxxx'; $db_username = 'xxxxx'; $db_password = 'xxxxx';  $db_server = mysql_connect($db_hostname, $db_username, $db_password);  mysql_select_db($db_database)     or die("Unable to connect to database: " . mysql_error());  $title =$_POST['title']; $lang =$_POST['lang'];  mysql_query ("set character_set_results='utf8'");   $sql="INSERT INTO lyrics_a (title, lang)VALUES('$title', '$lang')"; $result=mysql_query($sql);  if($result){ echo "Successful"; echo "
"; echo "Back to main page"; }  else { echo "ERROR"; } ?>   Html form:  <form method="post" action="/insertdata.php"> TITLE <input name="title" type="text" id="title" class="form-control">  LANGUAGE <input name="lang" type="text" id="lang" class="form-control">  <button type="submit" name="submit" id="submit" value="Update">Submit</button>  </form>   Worked for me. Hope this help others.     I made changes to my code as below:   Include below lines in mysql statements. mysql_connect(); mysql_query("SET NAMES 'utf8'");  Change <form> as below. <form method="post" action="/insertmysql.php"  enctype="multipart/form-data" accept-charset="UTF-8">  Add the below line at the top of the forms PHP page. header("Content-Type: text/html;charset=UTF-8");


For two n$\times$n matrices A and B, if AB=I then BA=I?

In a book I'm reading, at some point it's said because we have found a n$\times$n matrix A so that AB=I (B being a n$\times$n matrix) then B is invertible and A is it's inverse, is it true and is there actually a proof for it? because I know for A to be inverse of B, BA=I should also be true.


Stop Windows 7 From Automatically Adjusting Recording Device Audio Levels

The most annoying thing I have found in Windows by far is when it automatically lowers the volume to the point where someone cannot hear me, just because I coughed or sneezed. It then never raises the volume, causing me to have to manually adjust the volume every couple minutes,  which is really annoying. What I am talking about is:  Windows Logo > Control Panel > Hardware and Sound > Manage Audio Devices > Recording > "device" > Levels > Microphone  It constantly lowers the volume and I wish it wouldn't. This happens when I use MSN only. How do I fix it?


I have question about checking if file exists or not. Which option is better?  source=fopen("text.txt","r"); if(source != NULL) {     printf("File Exists!\n");     exit(0); }   or to use  if (source) {     printf("File Exists!\n");     exit(0); }


i am coding an android app and i keep getting this error.  java.lang.RuntimeException: Unable to resume activity {com.blogspot.tipsberk.ultimatemap/com.blogspot.tipsberk.ultimatemap.SignupActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference                                                                                at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3239)                                                                                at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3270)                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2613)                                                                                at android.app.ActivityThread.access$800(ActivityThread.java:178)                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)                                                                                at android.os.Handler.dispatchMessage(Handler.java:111)                                                                                at android.os.Looper.loop(Looper.java:194)                                                                                at android.app.ActivityThread.main(ActivityThread.java:5637)                                                                                at java.lang.reflect.Method.invoke(Native Method)                                                                                at java.lang.reflect.Method.invoke(Method.java:372)                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)                                                                                Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference                                                                                at com.blogspot.tipsberk.ultimatemap.SignupActivity.onResume(SignupActivity.java:101)                                                                                at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1267)                                                                                at android.app.Activity.performResume(Activity.java:6178)   this is what is on line 101   98: @Override   99:  protected void onResume() {   100:    super.onResume();   101:      progressBar.setVisibility(View.GONE);   102:  }   PLEASE how do i go about this?


In Windows 7 (64-bit, Ultimate) the default audio output is extremely high. This has been an issue for a while but I was able to get around it as my previous headphones took more power to drive so it actually worked in my benefit.  However, now I have a set of really sensitive headphones and they're being over-powered. So much so that if I put it down at around 5% of total output it's bearable.  Is there a way I can sort of limit the system's volume so that it's incapable of going extremely loud and then have the rest of it just behave as normal?  Things I've tried:   Uninstalling and re-installing the audio device and drivers. Limiting each application individually. Searching for third-party software (so far nothing looks promising).   The first has no effect. The second works find but I have to do it for every application individually (which can be a pain) and many of them reset their volume every time they're launched, which makes it almost useless. Some even reset the volume while I'm playing a game!  So does anyone have any suggestions on how to make my volume reasonable?  The device is, apparently, a Cirrus Logic CS4206A (AB 24). The computer is an 2010 iMac.


Missing elements while rendering an image in Blender

I am totally new to Blender and I came upon an issue I can't solve by myself. I tried some solutions for a similar problem but seems not to work in my case. I was following a blender tutorial and everything was good until the last step when I wanted to render my last view. In my object mode, I have all elements but while rendering an image some of them are missing. Do you have any idea what is happening here because I am lost? I am using Blender Version 2.81 on Macbook Pro.  Here is a view from my Object Mode    and here is rendered result ...    Would really appreciate advise how to fix this problem ;))


Set network adapter priority in Windows 7

I have a couple of wireless connections available. I wish to automatically switch to a network connection when my Ethernet cable is plugged or unplugged. If I plug my cable in, it should disconnect my wireless connection. If I unplug my cable, then it connects my wireless. Can I achieve this without any third party software?


How do I access the host's hard drive in VMware?

I have a Windows 7 host machine. My VMware player is running Ubuntu 10.10.  I want to access my main C:\ in Ubuntu to be able to access all my files.  I have tried: "Edit virtual machine settings" > Hardware > Add > Hard Disk > Use Physical disk > Use entire disk > Finish*.  But when I go into Ubuntu and try to access the HD I run into this error which causes the Ubuntu to hang indefinitely.    *I have partitioned my disk but if I instead of selecting Use Entire Disk select a


Excision property for non measurable sets

I'm studying measure theory from the book Real Analysis by H. Royden & P. Fitzpatrick. I'm stuck at the question 19 of the chapter 2.  The question is:     Let $E$ has finite outer measure. If $E$ is not measurable, then there is an open set $O$ containing $E$ that has finite measure and for which $m^*(O\setminus E) > m^*(O) - m^*(E)$   Applying the definition of measurability, i get a set satisfying the inequality but cannot find an open set.  PS: I've found  but it has no answers. So i decided to ask again.


Why would the review system status go from "awaiting recommendation" back to "awaiting referee assignment"?

I recently submitted my first  paper to a philosophy journal. After about a month,  the status switched from "Awaiting Reviewer Scores" to "Awaiting recommendation". Then a few days later it switched back to "Awaiting referee assignment" again. Thus, seemingly, the review process ended only for a second one to be initiated by the EA just days later.    Why would the system change back to "Awaiting referee assignment"? Does this mean that EA has sent the manuscript out for a second review? Why would the EA send the manuscript out for a second review? Is the EA unsatisfied with the referees' report, so he wants to get an additional review?


"will … to apply for a visa” or “ will … and apply for a visa”?

Thank those who answered , I learned a lot especially the small difference when in past tense.  However, is there any difference if I change them to future tense? (Because neither of below imply the final result)   Once he gets the passport, he will go to the Chinese consulate in Toronto and apply for a visa. Once he gets the passport, he will go to the Chinese consulate in Toronto to apply for a visa.


WI FI adapter not found: Broadcom BCM43228

I freshly installed Ubuntu 20.04.1 LTS but there is no WiFi icon. Upon searching manually I found the settings but still having WiFi adapter not found error. $ lspci -knn | grep Net -A3; rfkill list 03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43228 802.11a/b/g/n [14e4:4359]     Subsystem: Foxconn International, Inc. BCM43228 802.11a/b/g/n [105b:e04b]     Kernel modules: bcma, wl 0: acer-wireless: Wireless LAN     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no


Compare two files and get unmatched rows from the second file based on first and second column

I have two pipe delimited files as below  File 1  TEST|123456 TEST|123457 TEST|123458 TEST|123459 TEST|123460   File 2  TEST|123456|RAY|DOE|| TEST|123457|JANE|DOE|| TEST|123458|ROSE|DAWN|| TEST|123459|GEORGE|BRID|| TEST|123460|RALPH|DOE|| TEST|123461|JOHN|DOE|| TEST|123462|STEVE|SMITH||   File 3 - Desired Output  TEST|123461|JOHN|DOE|| TEST|123462|STEVE|SMITH||   I want to use the first and second column of file1 and file2 as key to getting the unmatched rows from file 2.


Why do most NEMA 5-15P (North America 125V 15A) line and neutral blades have holes in them? I've been wondering this for quite some time and haven't yet found a satisfactory answer.


In my xml snippet there is a ToolBar in which I try to add a button to the left of the text but an error occurs while executing the code     java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.widget.Toolbar.setNavigationIcon(android.graphics.drawable.Drawable)' on a null object reference   Code      public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {      drawerLayout = getActivity().findViewById(R.id.Drawer);     settings = getActivity().getSharedPreferences("Settings", getActivity().MODE_PRIVATE);     toolbar =  getActivity().findViewById(R.id.toolbar);     toolbar.setNavigationIcon(getResources().getDrawable(R.drawable.menu)); //ERROR HERE       toolbar.setNavigationOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             drawerLayout.openDrawer(Gravity.LEFT);         }     });     viewPager = getActivity().findViewById(R.id.rager);     pagerAdapter = new MainActivity.PagerAdapter(getActivity().getSupportFragmentManager());     viewPager.setAdapter(pagerAdapter);     tabLayout = getActivity().findViewById(R.id.tabLayout4);     tabLayout.setupWithViewPager(viewPager);     tabLayout.setScrollX(tabLayout.getWidth());     tabLayout.getTabAt(5).select();     Date start = new Date();     switch (start.toString().substring(0,3)) {         case "Mon":             viewPager.setCurrentItem(0);             url = "Monday.txt";             break;         case "Tue":             viewPager.setCurrentItem(1);             url = "Tuesday.txt";             break;         case "Wed":             viewPager.setCurrentItem(2);             url = "Wednesday.txt";             break;         case "Thu":             viewPager.setCurrentItem(3);             url = "Thursday.txt";             break;         case "Fri":             viewPager.setCurrentItem(4);             url = "Friday.txt";             break;         case "Sat":             viewPager.setCurrentItem(5);             url = "Saturday.txt";             break;         default:             viewPager.setCurrentItem(0);             url = "Monday.txt";             break;     }       SharedPreferences.Editor editor = settings.edit();     editor.putString("Day", url);     editor.apply();      addListenerOnButton();     return inflater.inflate(R.layout.fragment_znonki, container, false); }   An error occurs on the           toolbar.setNavigationIcon(getResources().getDrawable(R.drawable.menu));   line  In the main activity this code works without errors


No capital letter in the beginning of a sentence? "... particles. de Broglie was able to show that ..."

I encountered the following text (from  a textbook): "... particles. de Broglie was able to show that ... " Is it correct to make an exception from the rule of a capital letter in the beginning of a sentence, if it begins with a name, which starts from a non-capital letter, like the French "de Broglie"? I don't think so...


Is there a Stack Overflow like site for computer science?

Are there any sites like Stack Overflow where we can ask computer science and more theoretical questions? What do you guys/gals use other than this site?  EDIT: Even though I really didn't get satisfactory answers, I am closing the bounty.  I have been using comp.lang.* and the guys there have been pretty helpful. But I hope Stack Overflow welcomes more theoretical and broad range of questions that may or may not have straightforward answers. I also hope I don't need to tag my questions with a vague title like 'computer-science'.


How to know the platform through the Java Program

I write a java program in which i accessed different servers and access some files.  Currently i am only accessing a linux server and executing some command. Actually this is now very specific to the linux environment.  I want that when i access the server , my program will check that weather is Linux environment or windows. If it is windows environment it will execute the command or if it is Linux environment it will execute the command for Linux. How can i check the platform pragmatically.


Can the Bestow Curse 3rd-level spell turn any creature into a humanoid?

Can a 'curse' or 'polymorph' transform any creature into a humanoid?    In Volo's Guide to Monsters, a note suggests a 'curse' can turn someone into another humanoid - the 2nd row of the Monstrous Origin table (p. 118) says:     You are the victim of a Curse or Polymorph spell.   Mr. Geddarm's book suggests that one could become a  playable (N)PC via either of these two source-spells. Note: Volothamp is portrayed as an unreliable source (guest writer 'Elminster Aumar' expands on this) / arguably not RAW.  Let us briefly explore each spell type below:    Bestow Curse (abridged):     At the GM’s option, you may choose an alternative curse effect, but it should be no more powerful than those described above. The GM has final say on such a curse’s effect.   This suggests Bestow Curse can do virtually anything, so long as it impacts the recipient less than the listed curse set. This leeway is explicitly subject to table rulings / under DM discretion.    Polymorph (abridged):     The new form can be any beast whose challenge rating is equal to or less than the target’s.   This should simply NOT work. Though one can argue that the  obviously applies to most beasts and most humanoids, 5e D&D is unique in that humanoids are NOT viable / selectable end-forms with this 4th level spell (no other edition had this limitation-severity). Note: this DOES work with the more powerful  True Polymorph spell - especially if concentration is held for an hour. At 9th lvl, is not an abuse of RAW, RAI or RAF.  Let us assume that the author(s) of Volo's Guide meant True Polymorph / kept it simple &/or elegant.    Can the Bestow Curse spell alter one's form?  Three possible interpretations:   Rule of Cool: Why not? This racial modification is far less grievous, arduous &/or impactful than any of the other listed Cursed possibilities in the PhB (q.v. Basic Rules, pg. 218). Cursed race-change = 'modify your character's abilities &/or innate magical powers appropriately'.  Against R.A.I.: A 3rd level spell ('Bestow Curse') CANNOT out-perform a 4th level spell ('Polymorph'). So deeply abusable! A variant human paladin gains long-range Darkvision, more strength - and easily  an entire orc tribe! Not a 'curse' at all, is it? Bestowing this 'curse' on a rabbit and making a pop-up elven ally is also right out of the question ('This curséd rabbit is our archer... and also does our cooking and cleaning! Poor thing.'). Some R.A.W. blending: Possibly give slight change in mass and appearance - and nothing else. Thus, the aforementioned vuman paladin would look a bit like an orc but be the same size-weight (NPC orc: 'Hm. You thin. Comrade orc, eat this sand-witch!'), yet not gain any magical or racial abilities. Logically this must NOT not work on rabbits... or Purple Worms... or anything that did not start as a living-breathing humanoid in the first place.   The main problem with this third ruling: some racial abilities are amazing curses (arguably the point of said spell &/or Volo's RAW option). Example: Drow sunlight-blindness IS a curse - with bonus universal hatred for any UnderElf that isn't . Second example: a PC that looks, smells, sounds and walks as a zombie (no other disadvantages) is a fantastic curse - both story-wise and 5e D&D thematically (especially if the PC goes to town unaware / cannot see his or her appearance).  Basic question / sum up: If 'Bestow Curse' spell transforms any creature into a humanoid of the caster's choosing (on failed save) - how does any self respecting DM keep power-balance &/or player abuse-ability in RAW-check?


Why are we allowed to multiply a 1x1 matrix by any matrix?

So, in order to multiply 2 matrices, there must be the same number of columns in the left matrix as there are rows in the right matrix. So if $A$ is an $m \times n$ matrix and $B$ is a $p \times q$ matrix, must not $n = p$ in order for $AB$ to exist and mustn't $q = m$ in order for $BA$ to exist. By this logic, we should only be allowed to multiply a $1 \times 1$ matrix by either a $1 \times n$ matrix on the right or a $n \times 1$ matrix on the left. However, if $C$ is a $1 \times 1$ matrix and $D$ is a $m \times n$ matrix, where neither $m$ nor $n = 1$, we're allowed to multiply the 2 matrices simply by multiplying each entry in $D$ by the entry in $C$. Why? Shouldn't the rules for a $1 \times 1$ matrix be the same as for all the other matrices?


In the phrase "the powers that be," as in the sentence:  It would never have occurred to the powers that be to run and supervise the National Lottery from anywhere but London.  () Why do we use "be", the infinitive form of the verb? Wouldn't "the powers that are" or "the powers that rule" make a lot more sense?


Cleared all of my cache but still seeing old website

I have a website setup on a free host called 00webhost. i was previously using a free web host called wink.s. i have a .com domain purchased from 1and1. i had wink.ws's dns servers pointed to the domain (my .com). 2 days ago i changed the .coms dns's to the 000webhosts dns's. for some reason, i still keep seeing the wink.ws one even though my domain isnt pointed to their dns servers. the thing is, everyone else who accesses the domain can see the new website host (000webhost). so i figured it was a cache problem. i cleared all my browser cache, ran ccleaner, and flushed dns in cmd prompt, restarted computer, and still cant get to the new website, it keeps taking me to the old one. im honestly out of ideas on what to do. any help would be great. thanks!


I have a simple setup.  Email server,Web server IIS running on windows 2012.  The site is simple static with a contact form.  No uploading capability.  Today I found it was encrypted by ransomeware asking to pay to get all files back.  Luckily there was backups of most things so just reinstalled everything.  Just wondering how it might be possible for someone to attack such setup as no one has access to the machine, so I can say 100% no one clicked a link on the server itself.  The only thing that comes to mind is that someone hacked the admin account and put it on there.  Would this be a correct assumption.


Tactics to avoid getting harassed by corrupt police?

In Uzbekistan I was stopped, searched and questioned six times in one day.  At the border with Tajikistan, one official tried hiding my paperwork to elicit something from me.  In Kyrgyzstan, I was physically harassed and detained by the police, and about US$30 taken while they searched everything on me and a Dutch backpacker I was going to get food with.  I'm not particularly dodgy looking - it's happening to a lot of backpackers I meet.  Tourists are apparently a prime target for corrupt officials.  Any suggestions or tactics for avoiding these occurrences?  Aside from carrying only photocopies of your passport so that they can't hold your passport ransom, I've not heard many successful tips...


As a high school student, a future college student, and someone who loves coding and answering questions on SO, I was wondering if there was a Stack Exchange internship, or perhaps something similar, for students to learn and develop their coding skills. If there were, that would be really awesome, and it would be a great experience. Is there a SE internship, and has anyone ever considered it?


Multiseat X setup with a single dual head graphics card

I am considering trying to setup a  system. It seems like this would be pretty straight forward if I had two graphics cards or if I didn't need hardware based OpenGL acceleration. Is it possible to setup a multi seat system with only a single dual-headed graphics card?


So is it true that HP printer no longer work with Linux at all?

Here is my conversation with HP regarding scanners:  08/30/2013 07:34:15AM   Agent (Janelle M.): "Hello, Ken." 08/30/2013 07:34:22AM   ken schutter: "Hello" 08/30/2013 07:35:06AM   Agent (Janelle M.): "Ken, I appreciate your interest in HP products." 08/30/2013 07:35:40AM   ken schutter: "Hp is my preference for all printers because they work out of the box in linux." 08/30/2013 07:35:57AM   Agent (Janelle M.): "I am very sorry to inform you though, however, our scanners and All-in-one printers with scanning capability do not support Linux anymore." 08/30/2013 07:36:32AM   ken schutter: "Too bad. HPLIP is no longer valid driver?" 08/30/2013 07:36:57AM   Agent (Janelle M.): "Yes, it is no longer a valid driver, Ken. I am sorry." 08/30/2013 07:37:14AM   ken schutter: "I will try elsewhere. Thanks" 08/30/2013 07:37:27AM   Session Ended


I am having issue with special character * in linux . when I do below I am having issue text='*'  if I do echo $text I am  getting list of all files in the directory. Please let me know how can I get * if I do echo $text. Thanks in advance


Total Physical Ram not showing full ram installed

I just upgraded my RAM from 4gb to 8gb.  My mother states he can be handled up to 16gb.  I installed 4x2gb memory.  When I boot up and look into the system information file on my windows 7 machine it states  Installed Physical Memory = 8gb Available Physical Memory = 2.75GB  Any help on this would be help


The sentence is: It is important that he learn French. What is the rule or guideline that says to drop the "s"? I am tutoring a non-native English speaker.


Subject Share Consolidation Type    Consolidation Description CONSOLIDATION OF EVERY 4 ORDINARY SHARES IN PDZ HOLDINGS BHD ("PDZ" OR THE "COMPANY") ("PDZ SHARES" OR "SHARES") HELD AT 5.00 P.M. ON 4 DECEMBER 2017 ("ENTITLEMENT DATE") INTO 1 PDZ SHARE ("CONSOLIDATED SHARE") ("SHARE CONSOLIDATION") Amount  4 : 1   What is Share Consolidation?  If a share price is $2, I buy it with $5000.     $5000/$2 = 2500units   Share consolidation will make the share units above decrease?     2500units /4 = 625units


Can I open Microsoft Word and Excel files?

Can I open Microsoft Word and Excel files with Ubuntu?


How do I select one or more random rows from a table using SQLAlchemy?


Show that Sobolev space is complete. I am trying  Than $L^p(\Omega)$ is complete then If $f_n \in L^p(\Omega)$ then $f_n \to f \in L^p(\Omega)$. But rest show that $D^{\alpha}f \in L^p(\Omega)$. How I will be able to show this?


What does double colon [::] inside the third bracket mean?

I have seen some programs in python has [::] in the code. But I can't understand why to use and when to use this. Could you please provide some description in a simple language? Thanks in advance.


Can one 'pay' their son so he can contribute to his Roth IRA?

I'm a college student doing some part time work (for my school), and my dad very generously said that he would match my contributions to my Roth IRA if I maxed it out - ie. I pay in 3000 and he pays in 3000. However, a quick google search says that you can't contribute more than you earned, which is a problem because in 2019 I only made 4500 dollars. I was wondering if:  a. The IRS would actually notice- since both 4500 and 6000 dollars are less than the minimum filing requirement I don't think my income would even end up on any tax returns either way.  or   b. Can my dad just decide to 'pay' me 1500 dollars for the work I do around the house (the usual babysitting, yardwork etc.) so that I reach the required income.


How to change the device label of a USB stick?

I have done some research on this and found this question many times. However, all the answers I have found only address how to change a partition label. I am talking about what is reported by lsblk -o label not lsblk -o partlabel.  I have created a new partition table and created new partitions with both parted and fdisk and I am quite surprised that the old label is still there. I have tried msdos and gpt as partition tables.  This is all the more confusing because parted has this mklabel command with the description "create a new disklabel" but it is equivalent to mktable and does not change the label.  How is the device label stored so that it's independent of the partition table? How can I change it?  The USB stick did not always have this label, it was named when I put a Debian Live System on it. Now where I would like to use it as a normal USB stick again I would like to give it a different name.    EDIT:  With  # fatlabel /dev/sdb1 TEST   I can change the label of a partition which is a good step in the right direction but I can not change the label of the device:  # fatlabel /dev/sdb TEST Currently, only 1 or 2 FATs are supported, not 251.   Same goes for mlabel which I have installed with pacman -S mtools:  # mlabel -i /dev/sdb1 TEST   works but  # mlabel -i /dev/sdb TEST init :: non DOS media mlabel: Cannot initialize the device   I have created the partition table for gpt with:  # parted /dev/sdb GNU Parted 3.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mktable                                                           New disk label type? gpt                                                   Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes                                                                (parted) mkpart                                                            Partition name?  []? test partition parted: invalid token: partition File system type?  [ext2]? fat32  Start? 0%                                                                  End? 100%                                                                  (parted) q   and for msdos with:  # parted /dev/sdb GNU Parted 3.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mktable                                                           New disk label type? msdos                                                 Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes                                                                (parted) mkpart  Partition type?  primary/extended? primary                                 File system type?  [ext2]? fat32                                           Start? 0%                                                                  End? 100%                                                                  (parted) q     EDIT2: The output of lsblk -o +label,partlabel before I executed dd if=/dev/zero of=/dev/sdb:  NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT LABEL                       PARTLABEL sdb      8:16   1   3.8G  0 disk            Debian Jessie-DI-rc1 i386 1 └─sdb1   8:17   1   3.8G  0 part            Debian Jessie-DI-rc1 i386 1


The relationship between the energy and amplitude of a wave? Derivation?

From multiple online sources I read that  $$E \propto A^2$$ but when I mentioned this in class, my teacher told me I was wrong and that it was directly proportional to amplitude instead.   As far as I know, every website I stumbled upon concerning this said that is the case. My teacher has a Ph.D and seems pretty experienced, so I don't see why he would make a mistake, are there cases where $E \propto A$?  I also saw this derivation:  $$\int_0^A {F(x)dx} = \int_0^A {kx dx} = \frac{1}{2} kA^2$$  located , does anyone mind explaining it in a bit more detail? I have a basic understanding of what an integral is but I'm not sure what the poster in the link was saying. I know there is , but it seems way too advanced for me (gave up once I saw partial derivatives, but I see that they're basically the same later on). The first one I linked seems like something I could understand.


Edit: The output using lspci command  mobtaker@Ebtkar:~$ lspci 00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics            Controller (rev 09) 00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09) 00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04) 00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04) 00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 1 (rev e4) 00:1c.2 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4) 00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4) 00:1c.5 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 6 (rev e4) 00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04) 02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01) 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)  installed Ubuntu 14.04 to my new machine, but the wireless does not work. I tried few tricks like rfkill command but nothing worked :( The machine does not have a wireless button. Thanks in advqce for your help


How to get git-completion.bash to work on Mac OS X?

I have followed  to  add git-completion.bash to my /opt/local/etc/bash_completion.d/git-completion  and I put PS1='\h:\W$(__git_ps1 "(%s)") \u\$ ' in my .bashrc_profile  But now I am getting this -bash: __git_ps1: command not found everything I do a cd.  Can you please tell me what am I missing?


Automated creation of perpendicular lines between a point layer and a line layer

I am using QGIS and I am looking for a script, or a plugin, that can create a large number of perpendicular lines from a point layer to lines in a separate line layer.  So far, I've tried to use the Hub Distance function in MMQGIS (turning the lines into points and then connecting the points to the nearest hub) and the respective tool of the QGIS geoalgorithms. Neither worked. Both take more than 2 hours and create either lines all of the layer or lines that are not perpendicular or connected to the points.  In the picture, you can see the present status of the project. The perpendicular lines should run from the points to the nearest line. In the end, I would like to use intersection points with a line between the points and the country borders to create a buffer of 4-sided polygons that is two polygons deep. I mention this in case that there is an easier way of doing this.    I know that there are some posts on how to create perpendicular lines, but neither of them solved my problem.


Process results from two different @wire methods after the @wires are finished

I have two different @wire methods that are calling Apex methods to get different results from two different objects.  After this information has been retrieved by each @wire respectively, I'd like to afterwards compare the results and set a few other attributes on the page.  How do I achieve this?  Should I use connectedCallback() or renderedCallback() or neither?  Is there a better way to do multiple Apex method calls then process them afterwards within the JS when the component loads?  I'm hoping there's a graceful way to accomplish this in LWC without having to chain Promises, or having to handle all of this within a single Apex method call.


Let us consider Dirac equation $$(i\gamma^\mu\partial_\mu -m)\psi ~=~0$$ as a classical field equation. Is it possible to introduce Poisson bracket on the space of spinors $\psi$ in such a way that Dirac equation becomes Hamiltonian equation   $$\dot{\psi}~=~\{ \psi,H\}_{PB}~?$$  Of course, such Poisson bracket would be graded (super Poisson bracket), but if it exists this would explain on classical level why $\frac{1}{2}$-spinors correspond to fermions.


How do I let people with older clients join my updated minecraft sever? (From 1.12.2 to 1.14.3)

I've seen servers do this, why can't I, and how?


Question:     Two given circles intersect at A and B. A straight line through B meets the circles again at C and D. Prove that CD is greatest when it is parallel to the line joining the centres   My attempt:  I made this diagram on Paint.NET:    Here CD is the required line parallel to the line $MNOP$ joining the centers N and O, and EF is another line not parallel to $MNOP$. Both CD and EF pass through point B. I know I have to prove that $CD > EF$.  But I don't know how to solve this problem. And I need hints.


How to zoom in/out an UIImage object when user pinches screen?

I would like to zoom in/out an UIImage object when the user performs the standard pinch action on my application. I'm currently using a UIImageView to display my image, if that detail helps in any way.  I'm trying to figure out how to do this, but no such luck so far.  Any clues?


How can I vertically shift the voltage of a zero-centered signal such that I can read it with the Teensy 3.2's internal ADC?

I have a sinusoidal signal with a frequency of 100 kHz. It's zero centered with a peak-to-peak of around 3V (i.e. from -1.5V to +1.5V). I want to be able to read the peak-to-peak voltage with one of the analog pins on a Teensy 3.2 MCU, but I'm unsure of how to shift this signal to the 0-3.3V range. I'm very much a beginner so I'm still a bit unfamiliar with the terminology. A basic explanation would be really appreciated.


VBA to sequentially number rows in column

I want to number sequentially all cells on sheet4 starting at A2 (starts at 0) for 26000 cells in the A column  I have been trying the get the below code to work but need help.  Sheet4.Range("A2") = 0 Sheet4.Range("A2").Select Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _   Step:=1, Stop:=26000, Trend:=False   Any advice/ fixes?


I have win 8.1 preinstalled.I installed  ubuntu  in a drive.but during the booting it is not asking which os is to boot and autometically win is booting.please help me.I am using hp laptop with preinstalled win 8.1


I am trying to add this script (Marc Anderson's blog) to AllItems.aspx.  Please guide me where it needs to go and what needs to be done to make it work.  Thank you.  <script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery-1.4.2.min.js"></script> <script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery.SPServices-0.5.4.min.js"></script> <script language="javascript" type="text/javascript"> $(document).ready(function() {     var userDepartment = $().SPServices.SPGetCurrentUser({         fieldName: "Department"     });     $("input[Title='Department']").val(userDepartment); var userPhone = $().SPServices.SPGetCurrentUser({     fieldName: "WorkPhone" }); $("input[Title='Phone']").val(userPhone); }); </script>


It is commonly proposed to look for life based on silicon, based on it's relative abundance and similarity to carbon. However, carbon and silicon are not completely interchangeable. The bond strength between carbon or silicon and itself is different, thus, some molecules with high chain length can not be replicated with silicone. Similarely, molecules such as proteins, for which all carbon atoms are replaced with silicon, would not retain their form and thus not their function.  Is life based on silicone still possible, just under a different environment?  This would affect how we should look for aliens. Also, if silicon based life is unlikely, is there some other element that could lead to life?


I am using a lot of tabulars in my dissertation, and I occasionally would like to append a footnote to an item in the table to explain exactly what I mean by it. When I run latex and convert into pdf, the footnote number shows in the table, but there is nothing at the bottom of the page. What can I do?   I am using MikTeX 2.9 and Winedt 10, and here is a (probably way to informative) MWE:   \documentclass[12]{report} \setcounter{tocdepth}{4}  \usepackage{layout} \setlength{\voffset}{-0.75in} \setlength{\headsep}{5pt}   \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{csquotes} \usepackage{authblk} \usepackage [T1]{fontenc} \usepackage[backend=biber, style=authoryear-comp]{biblatex} \usepackage{xyling} \usepackage[super]{nth} \usepackage{linguex} \usepackage{xspace} \usepackage{cgloss4e} \usepackage{abstract} \usepackage{booktabs} \usepackage{hyperref} \usepackage{xr}  \let\eachwordone\itshape  \addbibresource{ref2.bib}  \title{XXX} \author{YYY} \date{\today}   \begin{document}  blablabla.   \setlength{\tabcolsep}{1.5em} \begin{table}[h!] \caption{Z} \begin{tabular}{c} \toprule Item\footnote{With this I mean...} \\  \end{tabular} \end{table}  \end{document}


Issue with passing different value as ComponentValue in apex:dynamic Component inside apex:repeat tag

I am facing an issue. When i am putting <apex:dynamicComponent id="dynamicComp" componentValue="{!clauseList.dynamicCompName}" invokeAfterAction="true"> inside <apex:repeat> tag only the last component which is in "clauseList" getting rendered on VF Page.   All other dynamic component in clauseList getting override by Last components in the "clauseList".  Let say I have 2 dynamicComponent DynamicCustomComponent & DynamicCustomComponentNew when I am putting apex:dynamicComponent Tag inside <apex:repeat/> tag the output always return component which is added in last in wrapper list. So in this case "DynamicCustomComponentNew" is added in last to the wrapper list so the output comes as below -      **Output -     This is Dynamic Component New This is Dynamic Component New**      **Ideally Output should be as follows-     This is Dynamic Component This is Dynamic Component New**   Controller Code -   public List<ContractClauseWrapperNew> getContractClauseWrapperListNew(){     List<ContractClauseWrapperNew> ContractClauseWrapperList1 = new List<ContractClauseWrapperNew>();     ContractClauseWrapperList1.add(new ContractClauseWrapperNew(new Component.c.DynamicCustomComponent()));     ContractClauseWrapperList1.add(new ContractClauseWrapperNew(new Component.c.DynamicCustomComponentNew()));      return ContractClauseWrapperList1; }   Wrapper Class -   public class ContractClauseWrapperNew{             public ApexPages.Component dynamicCompName {get;set;}      public ContractClauseWrapperNew(ApexPages.Component dynamicCompName){         this.dynamicCompName = dynamicCompName;     } }   VF Page Code -  <apex:repeat value="{!contractClauseWrapperListNew}" var="clauseList">     apex:dynamicComponent componentValue="{!clauseList.dynamicCompName}" invokeAfterAction="true"/> </apex:repeat>


How to draw a curly R symbol if can't be found available in packages and available symbols

This is my answer to  question that is already closed (no problem if this will be closed too but had to upload my result to help the OP there since I had already draw it -or something like it-)  The Symbol was this:


biblatex change change format of urldate

I would like to change format of URLDATE attribute.   Currently, this is what I have:   (Accessed: 11/10/2016)  I would like to have it like this:   (Accessed: 11 November 2016)  How is it possible to do?   I have searched over off. guidance of the biblatex - , however none of the parameters below have helped me.   <datetype>date=year, short, long, terse, comp, ymd, edtf       default: comp      Similar to the date option but controls the format of the <datetype>date field in the datamodel   I mean, yeah, long give me something like (Accessed: Nov. 10, 2016), but this is not exactly, what I want. It would be nice to change month and day and make month display as the full name (eg. November).   Btw, forcing to use specific date, such as urldate = {{date}} does not work. Give me an error and accesses label is not even displayed in the reference.   P.s. I use Sharelatex


So I am playing a game with my two year old niece where I fall down and she comes to help me saying "I need help uncle" as in "I need to help my uncle".  The family discussion at the moment is whether "I need help uncle." is grammatically correct when used in this way.


I'm trying to use pgfplots to plot a graph but I run into the following error:  ! Undefined control sequence. \pgfplots@width ->0.95\textwidth -\heightof {ylabel}-\widthof {ymax}   Here is my document:  \documentclass[12pt]{article}  \usepackage{pgfplots} \usepackage{pgf}             \usepackage{tikz} \pgfplotsset{compat=newest} \usepgfplotslibrary{external}  \tikzexternalize  \begin{document} Hello world! \begin{figure}[htbp]     \centering     \begin{tikzpicture}         \begin{axis}[%         scale only axis,         separate axis lines,         ytick={-20,0,20,40,60,80,100,120,140},         xmin=1,         xmax=1.8,         xlabel={$\lambda (\epsilon + 1)$ },         ymin=-20,         ymax=140,         ylabel={$\sigma_{11} (kPa)$},         legend style={legend pos=north west, legend cell align=left,align=left,draw=none},         yticklabel style={align=right,inner sep=0pt,xshift=-0.1cm},          grid=none,         max space between ticks=40,         major tick length=0.15cm,         minor tick length=0.075cm,         tick style={semithick,color=black},          width=0.95\textwidth-\heightof{ylabel}-\widthof{ymax},         height=0.5\textwidth ] \addplot [color=black,mark size=2.5pt,only marks,mark=*,mark options={solid,fill=white!75!blue}]   table[row sep=crcr]{% 1.00781861  0.0102718\\ 1.0193275   -0.00690492\\ 1.0289739   0.0408018\\ 1.040467    0.0701334\\ 1.05104 0.0993509\\ }; \addlegendentry{Experimental data};  \addplot [color=blue,solid,line width=1.0pt]   table[row sep=crcr]{% 1.00781861  0.190117075896132\\ 1.0193275   0.474231238225642\\ 1.0289739   0.717201161857507\\ 1.040467    1.01366753959628\\ 1.05104 1.29424479212858\\ }; \addlegendentry{Ogden model};  \addplot [color=red,solid,line width=1.0pt]   table[row sep=crcr]{% 1.00781861  0.777179697089887\\ 1.0193275   1.92137205791344\\ 1.0289739   2.88076259714836\\ 1.040467    4.02448983176329\\ 1.05104 5.07751266247692\\ }; \addlegendentry{Neo-Hookean model};  \addplot [color=green,solid,line width=1.0pt]   table[row sep=crcr]{% 1.00781861  -3.7155599786856\\ 1.0193275   -7.79892723072965\\ 1.0289739   -10.2011747706551\\ 1.040467    -12.1140706845337\\ 1.05104 -13.154421182274\\ }; \addlegendentry{Mooney-Rivlin model};          \end{axis}      \end{tikzpicture}     \caption[]{Experimental data fitted to the hyperelastic models models}     \label{figure:curve_fitting_from_data} \end{figure} \end{document}


How to shift array elements after removing one?

I need to add a shift function only with loops (it means I can't use any ListArray method et simila, so this is not a copy of any other question with those methods.) to this method which removes a specific integer from a given array, and put the outcome into another array, and then returning it.  public static int[] removeInt(int v, int[] in) {      int length = 0;     length = in.length;     int[] toReturn = new int[length];      for (int b = 0; b < length; b++) {         toReturn[b] = 0;     }      for (int i = 0; i < length; i++) {         if (in[i] != v) {             toReturn[i] = in[i];         }     }      return toReturn; }   If the input for the array is {1, 2, 3, 4, 5}, and the number to remove is {2}, the output will be {1 0 3 4 5}, but it needs to be {1 3 4 5}, and I can't find a way to shift numbers to the left.   'v' comes from the main, user input. Same for 'in', fullfilled before by the user.


How to reproject and crop a 360°x180° panorama?

I'm not sure how to ask my question in generic terms, but here's what I want to do.  I have a 360°x180° panorama photo. I took the photo with an app (Google PhotoSphere).  Unfortunately my app doesn't save the individual photos I took, only the auto stitched panorama, with the "center" of the photo of its choosing.  I'd like to recenter, crop, reproject, etc. the photo, just as I would as if I had stitched individual photos into a panorama with a panostitching application like Hugin.  How can I bring a full panorama photo into Hugin (or similar software) so that I can manipulate the photo to my choosing?   My goal would be to export a new panorama photo (and not necessarily a 360x180).  Currently my only option is to view the photo in panorama viewing software, and take screenshots. However, this of course limits my resolution to my monitor, and only in the projection they're presenting it in.


Add the ability to cite questions and answers on all Stack Exchange sites

The  and  Stack Exchange sites have a great feature that allows a user to quickly . This is accomplished by clicking share and then clicking cite:    For ease of copying and pasting the cite feature even provides the  and  LaTeX formats (something which probably wouldn't be needed on other sites).  Currently I am working on a paper which has heavily referenced the  site. As such having the ability to quickly cite each question / answer would be incredibly helpful. While I agree the ability to easily cite is more applicable to certain SE sites, this seems like a frictionless feature with a lot of benefit.  Is there a reason this feature isn't available across the entire Stack Exchange network? Is this something that each Stack Exchange site needs to decide within its community (i.e. I need to move this discussion to meta.ux.se)? Can the ability to cite question and answers please be added to all other Stack Exchange sites?


Bib entry with urldate but no year uses the year of urldate as year

Hi i have the following bibliographic entry:  @misc{Wikipedia, author = {Wikipedia}, title = {{Software performance testing}}, url = {http://en.wikipedia.org/wiki/Software\_performance\_testing\#Load\_testing}, urldate = {2013-07-10} }   This entry gets rendered like the following in the bibliography:   if i add a year tag of 2012 to the entry, it becomes:    I think this is wrong, shouldn't i say something like (o.D. is a german abbreviation for no date, "Besucht am" is "visited at")     Wikipedia o.D. Software Performance testing. Besucht am 10.Juli 2013   ? How can i achieve this?


Given any $10$ consecutive positive integers , does there exist one integer which is relatively prime to the product of the rest ?


calculate age from database $day, $month, $year

I'm trying to calculate age. I'm using this code and it works great for the sample birthdate, but I can't figure out how to get $birthDate to equal my three separate variables $day, $month, $year that are stored in my database for each user. How would I do this so $birthDate = $day/$month/$year and works with the age calculator below?  <?php $birthDate = "12/17/1983"; $birthDate = explode("/", $birthDate); $age = (date("md", date("U", mktime(0, 0, 0, $birthDate[0], $birthDate[1], $birthDate[2]))) > date("md") ? ((date("Y")-$birthDate[2])-1):(date("Y")-$birthDate[2])); echo "Age is:".$age; ?>


Please demonstrate how the ternary operator works with a regular if/else block. Example:  Boolean isValueBig = value > 100 ? true : false;     Exact Duplicate:


Why don't people upvote questions they answer?

This has always been a bit of a puzzle to me.  I generally upvote every question I answer:   if it seems a good enough question to take time answering, it seems a good enough question to upvote I want to encouraging people to ask more questions about topics I'm interested in, especially since I work on some of the less-common areas here. Pragmatically, if I upvote a question, it seems more people may have the chance to read my wonderful answer.


I finally found a way to insert a footnote inside a caption while using float:Table in LyX, . You need to insert \protect\footnotemark in the caption and \footnotetext{Text to footnote} directly after the float.  See source:  \begin{table}[h] \begin{tabular}{|c|c|} \hline  1 & 2\tabularnewline \hline  \hline  3 & 4\tabularnewline \hline  \end{tabular}  \caption{This is the caption. \protect\footnotemark}   \end{table}  \footnotetext{Text to footnote}   Is there a more efficient way to include a footnote inside a caption when using LyX?


Should I pluralize based on an item in parentheses

Which of the following two sentences is correct:  Jon (and Michael) is smart. Jon (and Michael) are smart.   This example is clearly contrived but my question is whether the sentence should be grammatically correct when you erase the text in parentheses (Jon is smart) or should it be grammatically correct when read with the text in parentheses (Jon and Michael are smart).


Quebec, responding to French in English: faux pas?

I'm currently visiting Montreal. In almost every store or restaurant I go to, I'm greeted with "bonjour!" I know just a little French and I could probably get by with a simple transaction, but then I would be lost if anything more nuanced was required. So I usually respond with "hello" and continue in English. Is this OK or is it a faux pas? Would it be more appropriate to start off with "parlez-vous anglais", or is it assumed that most people are bilingual? What about Quebec City — is it more frowned upon there? I really don't want to exude the "arrogant American tourist" vibe!  UPDATE:  Tried speaking French as much as possible, resorting to "je suis desolé, je ne parle pas très bien français" whenever I ran into a phrase I couldn't understand. Pretty much everyone I met spoke English to varying degrees, and nobody gave me  a hard time. One person even complimented me on my French accent — apparently it was convincing! The only problem is that now I'm compelled to start speaking in French whenever I go into a restaurant in the US. :)


What is the complexity class most closely associated with what the human mind can accomplish quickly?

This question is something I've wondered about for a while.  When people describe the P vs. NP problem, they often compare the class NP to creativity.  They note that composing a Mozart-quality symphony (analogous to an NP task) seems much harder than verifying that an already-composed symphony is Mozart-quality (which is analogous to a P task).  But is NP really the "creativity class?"  Aren't there plenty of other candidates?  There's an old saying:  "A poem is never finished, only abandoned."  I'm no poet, but to me, this is reminiscent of the idea of something for which there is no definite right answer that can be verified quickly...it reminds me more of coNP and problems such as TAUTOLOGY than NP or SAT.  I guess what I'm getting at is that it's easy to verify when a poem is "wrong" and needs to be improved, but difficult to verify when a poem is "correct" or "finished."  Indeed, NP reminds me more of logic and left-brained thinking than creativity.  Proofs, engineering problems, Sudoku puzzles, and other stereotypically "left-brained problems" are more NP and easy to verify from a quality standpoint than than poetry or music.  So, my question is:  Which complexity class most precisely captures the totality of what human beings can accomplish with their minds?  I've always wondered idly (and without any scientific evidence to support my speculation) if perhaps the left-brain isn't an approximate SAT-solver, and the right-brain isn't an approximate TAUTOLOGY-solver.  Perhaps the mind is set up to solve PH problems...or perhaps it can even solve PSPACE problems.  I've offered my thoughts above; I'm curious as to whether anyone can offer any better insights into this.  To state my question succinctly:  I am asking which complexity class should be associated with what the human mind can accomplish, and for evidence or an argument supporting your viewpoint.  Or, if my qusetion is ill-posed and it doesn't make sense to compare humans and complexity classes, why is this the case?  Thanks.  Update:  I've left everything but the title intact above, but here's the question that I really meant to ask:  Which complexity class is associated with what the human mind can accomplish quickly?  What is "polynomial human time," if you will?  Obviously, a human can simulate a Turing machine given infinite time and resources.  I suspect that the answer is either PH or PSPACE, but I can't really articulate an intelligent, coherent argument for why this is the case.  Note also:  I am mainly interested in what humans can approximate or "do most of the time."  Obviously, no human can solve hard instances of SAT.  If the mind is an approximate X-solver, and X is complete for class C, that's important.


Bookmarking Others Questions in any Stack Exchange

If I bookmark a question posted by userA, will I receive, in the future notifications of userA's new posts?


What happens to options held during a reverse stock split?

I held 1 put option for 100 shares of USO that expires on May 8. Yesterday, USO underwent an 8:1 reverse stock split. My options are now for USO1 instead of USO, but what does that mean?  The strike price hasn't changed, so does that mean that my option will expire worthless as it's unlikely the stock will drop (significantly) to back below the strike price?


On a recent trip the US, someone explained to me that saying "sorry" meant taking responsibility for causing the loss. Thus you should only say sorry if you intended to fix the situation. (And potentially even had implications for  insurance and litigation).   I'm an Australian - generally when people say "I'm sorry" it means "I can display empathy for your loss and can put myself in your shoes". [implicitly also that no responsibility is taken - nor any effort being made to restore the situation]  My question is: Do English speaking subcultures attach different meanings to the phrase "I'm sorry"?  (This is different to the other questions relating to the meaning of 'sorry' because it considers the legal and restorative implications as well as the geographic context).


How do I take long (at least 1 minute) exposures in daytime without overexposing everything?

I bought a Vario ND 2-400 filter today and tested it out. I think it goes up to +8 stops, and I was using it darkest to let less light in.  I used high f-stop, ISO 200, and up to 10 seconds. However, anything longer than ~5 seconds became mostly white, and I couldn't see anything.  Question: how do people do exposure times of something like 1 minute without everything become overexposed?


How can someone have activity more recent than their "seen" time?

This  was last seen 19 minutes ago, yet he asked  13 minutes ago.


tried "remove doubles" on the whole model with bigger threshold with no results, also tried to unmark all edges as sharp/crease. all faces are quads.


What are the rules on data being entered?

I'm trying to enter 'validation - the confirmation of an email' and it fails because VALIDATION is a keyword in MySQL. do I need to escape the first letter? In this case the v in validation? Do word/key replacement after checking for the destination key? or is there a simpler method? I currently have: $db->issue("INSERT INTO tasks (task,added) VALUES('".htmlentities($task,ENT_QUOTES|ENT_HTML401)."',curdate())");


I have two pc's served by the same high speed internet connection. For the last few months updating query of sources are extremely slow. it can take 5 minutes or more to get a download list. the slider used to flash back and forth very quickly now it crawls slowly. what happened? Both pc's are using ubuntu 16.04 with 64 bit os.


Proving the convergence of $\sum_{n=2}^{\infty} \frac{1}{n (\ln n)^2}$

I am attempting to prove if the below expression converges or diverges:  $$\sum_{n=2}^{\infty} \frac{1}{n (\ln n)^2}$$  I decided to try using the . So then, I set $f(n) = \frac{1}{n (\ln n)^2}$ and $g(n) = \frac{1}{n}$ and did the following:  $$ \lim_{n \to \infty} \frac{f'(n)}{g'(n)} =  \lim_{n \to \infty} \frac{-\frac{\ln(n) + 2}{n^2 (\ln n)^3}}{-\frac{1}{n^2}} =  \lim_{n \to \infty} \frac{\ln(n) + 2}{n^2 (\ln n)^3} \cdot n^2 =  \lim_{n \to \infty} \frac{1}{(\ln n)^2} + \frac{2}{(\ln n)^3} = 0 $$  I know that $\sum \frac{1}{n}$ diverges due to properties of harmonic series, and so concluded that my first expression $\frac{1}{n (\ln n)^2}$ also must diverge.  However, according to , and as suggested by , the expression actually converges.  What did I do wrong?


Use ALT to move windows in Windows like in Linux

In most Linux window managers, one can use the Alt key while clicking and dragging to rearrange windows. This is one of my favorite features of Linux window managers.  Is there a way to do this in Windows 7?


$I:=\{f(x)\in R\mid f(1)=0\}$ is a maximal ideal?

Let $R$ be a ring of the real functions with "+" and "x" and let $I_1:=\{f(x)\in R\mid f(1)=0\}$, $I_1$ is a maximal ideal?   I think yes, but don't know how to prove it.


What if the Earth stops in its orbit and instead falls straight towards the Sun?

The Earth orbits around the Sun because it has angular momentum. If we stopped the Earth in orbit and then let it fall straight towards the Sun, how long would it take to reach the Sun in seconds?  Details and assumptions  The mass of the sun is 2*10^30 Kg. The mass of the earth is 6*10^24 Kg. The earth is 149,600,000 Km from the Sun. You may treat the Earth and Sun as point masses.


$$\lim_{x\to 1}\left(\frac{p}{1-x^p}-\frac{q}{1-x^q}\right)  , p,q\in N$$   I tried fitting the formula $\lim_{x\to a}\frac{x^n - a^n}{x-a} = na^{n-1}$ but could not proceed further. Also I don't think that we should directly apply L'Hôpital's rule as it will be too lengthy.


How to change the creation (st_birthtime) date/time of a file in Lion?

touch(1) can only change modification and access times, but has no options for creation time.  does not work, at least not on Lion.  So how do I change the creation time, also referred to as birthtime in fstat(2)? There's no corresponding call in utimes(2) and there doesn't seem to be any command line tool for this.  I know I can copy the file to a new file, which then gets the current time as birthtime (and then delete the original), but surely there must be a better way?


On the Maclaurin expansion of the Riemann zeta function and a related sequence.

I'm studying the Maclaurin series for the Riemann zeta function.  I got that for $\Re(s)\ge1$ we have $$\zeta(s)=\lim\limits_{m\to\infty}\sum_{n=0}^\infty\left(\frac{(-1)^n}{n!}\sum_{i=1}^m{\ln(i)^n}\right)s^n$$ if we allow $0^0=1$ By looking at patterns, I formulated a guess for what the continuation would be for $0\lt{\Re(s)}\lt1$. (Again, allow $0^0=1$). $$\zeta(s)=\lim\limits_{m\to\infty}\sum_{n=0}^\infty\left(\sum_{k=0}^n\frac{a(k)}{(n-k)!}\ln(2)^k\sum_{i=1}^m(-1)^{(n-k+i)}\ln(i)^{(n-k)}\right)s^n$$ $a(k)$ is a sequence of rational numbers. Starting at $k=0$ they go $$\{1,2,3,\frac{13}{3},\frac{25}{4},\frac{541}{60},\frac{1561}{120},\frac{47293}{2520},\dots\}$$ I noticed that $\frac{a(k-1)}{a(k)}$ gets closer and closer to $\ln2$ for larger and larger $k$.  I took a guess for the sake of computation that $$a(k)=\prod_{i=0}^k\frac{\left[\frac{i!}{\ln(2)^{(i+1)}}\right]}{\left[\frac{i!}{\ln(2)^i}\right]}$$ where the brackets notate the nearest integer function. Please check me on my formulas and on this sequence and help me find a better formula to define the sequence.  Edit (1/30/2021) I came back to this just to mess with it and have some new formulae that I would like to add to the body of this post just for records. I believe that the function is actually the Polylogarithm, $a(x)=L_{-x}\left(\frac12\right)$ This allows us to derive $$\zeta(s)=\sum_{n=1}^{\infty}\left(-1\right)^{n}\sum_{k=0}^{\infty}\frac{s^{k}}{k!}\sum_{i=1}^{\infty}\frac{\left(i\ln2-\ln n\right)^{k}}{2^{i}}$$ for $0\le\mathbb{R}(s)<1$.


How can I open a single app by an unidentified developer without allowing all

I know to secure safety it is now not allowed anymore to open apps that were not downloaded from the mac app store.  But surely there is a workaround for this to open an app that you know is 'good' but just isn't in the app store. Preferably allowing only that app and not allowing all downloaded apps to be opened.    How do I open an app that is not downloaded from the app store in mountain lion?


How to get correct floating-point precision in Qt and C++?

I am studying Qt, I find it really amazing and a bit easier because I've already used MFC in Microsoft.  I've developed a scientific calculator for educational use. But what faced me is:  I want float high precision like in real-world calculators so after searching I've found this function:      long double ldRes =  std::sqrt(3);     QMessageBox m;     m.settext(QString::number(ldRes, 'g', 30));     m.exec();   The output:  1.73205080756887719317660412344   While the output, according the , of the same operation to the same precision, should be:  1.73205080756887729352744634151   So it is apparent that the result is not the same so can anyone advise me how to get correct float-precision in my applications using Qt? or any other library?  Should I use GMP MPIR MPFR?  Thank you!